]> git.saurik.com Git - wxWidgets.git/blame - configure
Bump WX_CURRENT back to 3, this must stay the same as
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
d1c38808 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
3b57de8b 934 --enable-mediactrl use wxMediaCtrl class
77ffb593 935 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 936 --enable-zipstream use wxZipInputStream
a848cd7e
SC
937 --enable-url use wxURL class
938 --enable-protocol use wxProtocol class
939 --enable-protocol-http HTTP support in wxProtocol
940 --enable-protocol-ftp FTP support in wxProtocol
941 --enable-protocol-file FILE support in wxProtocol
942 --enable-threads use threads
943 --enable-docview use document view architecture
944 --enable-help use help subsystem
945 --enable-mshtmlhelp use MS HTML Help (win32)
946 --enable-html use wxHTML sub-library
947 --enable-htmlhelp use wxHTML-based help
9a8f0513 948 --enable-xrc use XRC resources sub-library
a848cd7e
SC
949 --enable-constraints use layout-constraints system
950 --enable-printarch use printing architecture
951 --enable-mdi use multiple document interface architecture
8a7b1113 952 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
953 --enable-loggui use standard GUI logger
954 --enable-logwin use wxLogWindow
955 --enable-logdialog use wxLogDialog
646b6ec1 956 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
957 --enable-postscript use wxPostscriptDC device context (default for gtk+)
958 --enable-prologio not available; see contrib
959 --enable-resources not available; see contrib
960 --enable-clipboard use wxClipboard class
961 --enable-dnd use Drag'n'Drop classes
962 --enable-metafile use win32 metafiles
963 --enable-controls use all usual controls
964 --enable-accel use accelerators
965 --enable-button use wxButton class
966 --enable-bmpbutton use wxBitmapButton class
967 --enable-calendar use wxCalendarCtrl class
968 --enable-caret use wxCaret class
969 --enable-checkbox use wxCheckBox class
970 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
971 --enable-choice use wxChoice class
92bbdbcd 972 --enable-choicebook use wxChoicebook class
a848cd7e
SC
973 --enable-combobox use wxComboBox class
974 --enable-display use wxDisplay class
975 --enable-gauge use wxGauge class
976 --enable-grid use wxGrid class
977 --enable-imaglist use wxImageList class
978 --enable-listbook use wxListbook class
979 --enable-listbox use wxListBox class
980 --enable-listctrl use wxListCtrl class
981 --enable-notebook use wxNotebook class
982 --enable-radiobox use wxRadioBox class
983 --enable-radiobtn use wxRadioButton class
984 --enable-sash use wxSashWindow class
985 --enable-scrollbar use wxScrollBar class and scrollable windows
986 --enable-slider use wxSlider class
987 --enable-spinbtn use wxSpinButton class
988 --enable-spinctrl use wxSpinCtrl class
989 --enable-splitter use wxSplitterWindow class
990 --enable-statbmp use wxStaticBitmap class
991 --enable-statbox use wxStaticBox class
992 --enable-statline use wxStaticLine class
993 --enable-stattext use wxStaticText class
994 --enable-statusbar use wxStatusBar class
995 --enable-tabdialog use wxTabControl class
996 --enable-textctrl use wxTextCtrl class
997 --enable-togglebtn use wxToggleButton class
998 --enable-toolbar use wxToolBar class
999 --enable-tbarnative use native wxToolBar class
1000 --enable-tbarsmpl use wxToolBarSimple class
1001 --enable-treectrl use wxTreeCtrl class
1002 --enable-tipwindow use wxTipWindow class
1003 --enable-popupwin use wxPopUpWindow class
1004 --enable-commondlg use all common dialogs
1005 --enable-choicedlg use wxChoiceDialog
1006 --enable-coldlg use wxColourDialog
1007 --enable-filedlg use wxFileDialog
1008 --enable-finddlg use wxFindReplaceDialog
1009 --enable-fontdlg use wxFontDialog
1010 --enable-dirdlg use wxDirDialog
1011 --enable-msgdlg use wxMessageDialog
1012 --enable-numberdlg use wxNumberEntryDialog
1013 --enable-splash use wxSplashScreen
1014 --enable-textdlg use wxTextDialog
1015 --enable-tipdlg use startup tips
1016 --enable-progressdlg use wxProgressDialog
1017 --enable-wizarddlg use wxWizard
1018 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1019 --enable-miniframe use wxMiniFrame class
1020 --enable-tooltips use wxToolTip class
1021 --enable-splines use spline drawing code
1022 --enable-validators use wxValidator and derived classes
1023 --enable-busyinfo use wxBusyInfo
1024 --enable-joystick use wxJoystick (Linux only)
1025 --enable-metafiles use wxMetaFile (Windows only)
1026 --enable-dragimage use wxDragImage
1027 --enable-accessibility enable accessibility support
1028 --enable-palette use wxPalette class
1029 --enable-image use wxImage class
1030 --enable-gif use gif images (GIF file format)
1031 --enable-pcx use pcx images (PCX file format)
1032 --enable-iff use iff images (IFF file format)
1033 --enable-pnm use pnm images (PNM file format)
1034 --enable-xpm use xpm images (XPM file format)
1035 --enable-icocur use Windows ICO and CUR formats
77ffb593 1036 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1037 --enable-vendor=VENDOR vendor name (win32 DLL only)
1038 --disable-largefile omit support for large files
1039 --disable-gtktest do not try to compile and run a test GTK+ program
1040 --disable-gtktest Do not try to compile and run a test GTK program
1041 --disable-sdltest Do not try to compile and run a test SDL program
1042 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1043 --disable-precomp-headers
1044 don't use precompiled headers even if compiler can
a848cd7e
SC
1045
1046Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gtk use GTK+
1050 --with-motif use Motif/Lesstif
1051 --with-mac use Mac OS X
1052 --with-cocoa use Cocoa
1053 --with-wine use Wine
1054 --with-msw use MS-Windows
1055 --with-pm use OS/2 Presentation Manager
1056 --with-mgl use SciTech MGL
1057 --with-microwin use MicroWindows
1058 --with-x11 use X11
1059 --with-libpng use libpng (PNG image format)
1060 --with-libjpeg use libjpeg (JPEG file format)
1061 --with-libtiff use libtiff (TIFF file format)
1062 --with-libxpm use libxpm (XPM file format)
1063 --with-libmspack use libmspack (CHM help files loading)
1064 --with-sdl use SDL for audio on Unix
d51253e8 1065 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1066 --with-opengl use OpenGL (or Mesa)
1067 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1068 --with-regex enable support for wxRegEx class
1069 --with-zlib use zlib for LZW compression
1070 --with-odbc use the IODBC and wxODBC classes
1071 --with-expat enable XML support using expat parser
ceec2216 1072 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1073 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1074 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1075 --with-x use the X Window System
1076 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1077 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1078 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1079 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1080 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1081
1082Some influential environment variables:
dcc1b6ad
VS
1083 CC C compiler command
1084 CFLAGS C compiler flags
1085 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1086 nonstandard directory <lib dir>
1087 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1088 headers in a nonstandard directory <include dir>
1089 CPP C preprocessor
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CXXCPP C++ preprocessor
a848cd7e
SC
1093
1094Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations.
1096
77ffb593 1097Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1098_ACEOF
1099fi
1100
1101if test "$ac_init_help" = "recursive"; then
1102 # If there are subdirs, report their specific --help.
1103 ac_popdir=`pwd`
1104 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1105 test -d $ac_dir || continue
1106 ac_builddir=.
1107
1108if test "$ac_dir" != .; then
1109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1110 # A "../" for each directory in $ac_dir_suffix.
1111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1112else
1113 ac_dir_suffix= ac_top_builddir=
1114fi
1115
1116case $srcdir in
1117 .) # No --srcdir option. We are building in place.
1118 ac_srcdir=.
1119 if test -z "$ac_top_builddir"; then
1120 ac_top_srcdir=.
1121 else
1122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1123 fi ;;
1124 [\\/]* | ?:[\\/]* ) # Absolute path.
1125 ac_srcdir=$srcdir$ac_dir_suffix;
1126 ac_top_srcdir=$srcdir ;;
1127 *) # Relative path.
1128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1130esac
ac1cb8d3
VS
1131
1132# Do not use `cd foo && pwd` to compute absolute paths, because
1133# the directories may not exist.
1134case `pwd` in
1135.) ac_abs_builddir="$ac_dir";;
1136*)
1137 case "$ac_dir" in
1138 .) ac_abs_builddir=`pwd`;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_builddir=${ac_top_builddir}.;;
1145*)
1146 case ${ac_top_builddir}. in
1147 .) ac_abs_top_builddir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_srcdir=$ac_srcdir;;
1154*)
1155 case $ac_srcdir in
1156 .) ac_abs_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_srcdir=$ac_top_srcdir;;
1163*)
1164 case $ac_top_srcdir in
1165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1168 esac;;
1169esac
a848cd7e
SC
1170
1171 cd $ac_dir
1172 # Check for guested configure; otherwise get Cygnus style configure.
1173 if test -f $ac_srcdir/configure.gnu; then
1174 echo
1175 $SHELL $ac_srcdir/configure.gnu --help=recursive
1176 elif test -f $ac_srcdir/configure; then
1177 echo
1178 $SHELL $ac_srcdir/configure --help=recursive
1179 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1180 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1181 echo
1182 $ac_configure --help
1183 else
1184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1185 fi
d51253e8 1186 cd "$ac_popdir"
a848cd7e
SC
1187 done
1188fi
1189
1190test -n "$ac_init_help" && exit 0
1191if $ac_init_version; then
1192 cat <<\_ACEOF
7714864e 1193wxWidgets configure 2.5.3
ac1cb8d3 1194generated by GNU Autoconf 2.59
a848cd7e 1195
ac1cb8d3 1196Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1197This configure script is free software; the Free Software Foundation
1198gives unlimited permission to copy, distribute and modify it.
1199_ACEOF
1200 exit 0
1201fi
1202exec 5>config.log
1203cat >&5 <<_ACEOF
1204This file contains any messages produced by compilers while
1205running configure, to aid debugging if configure makes a mistake.
1206
7714864e 1207It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1208generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1209
1210 $ $0 $@
1211
1212_ACEOF
1213{
1214cat <<_ASUNAME
1215## --------- ##
1216## Platform. ##
1217## --------- ##
1218
1219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1220uname -m = `(uname -m) 2>/dev/null || echo unknown`
1221uname -r = `(uname -r) 2>/dev/null || echo unknown`
1222uname -s = `(uname -s) 2>/dev/null || echo unknown`
1223uname -v = `(uname -v) 2>/dev/null || echo unknown`
1224
1225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1227
1228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1231hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1235
1236_ASUNAME
1237
1238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1239for as_dir in $PATH
1240do
1241 IFS=$as_save_IFS
1242 test -z "$as_dir" && as_dir=.
1243 echo "PATH: $as_dir"
1244done
1245
1246} >&5
1247
1248cat >&5 <<_ACEOF
1249
1250
1251## ----------- ##
1252## Core tests. ##
1253## ----------- ##
1254
1255_ACEOF
1256
1257
1258# Keep a trace of the command line.
1259# Strip out --no-create and --no-recursion so they do not pile up.
1260# Strip out --silent because we don't want to record it for future runs.
1261# Also quote any args containing shell meta-characters.
1262# Make two passes to allow for proper duplicate-argument suppression.
1263ac_configure_args=
1264ac_configure_args0=
1265ac_configure_args1=
1266ac_sep=
1267ac_must_keep_next=false
1268for ac_pass in 1 2
1269do
1270 for ac_arg
1271 do
1272 case $ac_arg in
1273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1276 continue ;;
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 esac
1280 case $ac_pass in
1281 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1282 2)
1283 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1284 if test $ac_must_keep_next = true; then
ac1cb8d3 1285 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1286 else
ac1cb8d3
VS
1287 case $ac_arg in
1288 *=* | --config-cache | -C | -disable-* | --disable-* \
1289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1291 | -with-* | --with-* | -without-* | --without-* | --x)
1292 case "$ac_configure_args0 " in
1293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1294 esac
1295 ;;
1296 -* ) ac_must_keep_next=true ;;
1297 esac
a848cd7e
SC
1298 fi
1299 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1300 # Get rid of the leading space.
1301 ac_sep=" "
1302 ;;
1303 esac
1304 done
1305done
1306$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1307$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1308
1309# When interrupted or exit'd, cleanup temporary files, and complete
1310# config.log. We remove comments because anyway the quotes in there
1311# would cause problems or look ugly.
1312# WARNING: Be sure not to use single quotes in there, as some shells,
1313# such as our DU 5.0 friend, will then `close' the trap.
1314trap 'exit_status=$?
1315 # Save into config.log some information that might help in debugging.
1316 {
1317 echo
1318
1319 cat <<\_ASBOX
1320## ---------------- ##
1321## Cache variables. ##
1322## ---------------- ##
1323_ASBOX
1324 echo
1325 # The following way of writing the cache mishandles newlines in values,
1326{
1327 (set) 2>&1 |
1328 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1329 *ac_space=\ *)
1330 sed -n \
ac1cb8d3
VS
1331 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1333 ;;
1334 *)
1335 sed -n \
ac1cb8d3 1336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1337 ;;
1338 esac;
1339}
1340 echo
1341
1342 cat <<\_ASBOX
1343## ----------------- ##
1344## Output variables. ##
1345## ----------------- ##
1346_ASBOX
1347 echo
1348 for ac_var in $ac_subst_vars
1349 do
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1352 done | sort
1353 echo
1354
1355 if test -n "$ac_subst_files"; then
1356 cat <<\_ASBOX
1357## ------------- ##
1358## Output files. ##
1359## ------------- ##
1360_ASBOX
1361 echo
1362 for ac_var in $ac_subst_files
1363 do
1364 eval ac_val=$`echo $ac_var`
ac1cb8d3 1365 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1366 done | sort
1367 echo
1368 fi
1369
1370 if test -s confdefs.h; then
1371 cat <<\_ASBOX
1372## ----------- ##
1373## confdefs.h. ##
1374## ----------- ##
1375_ASBOX
1376 echo
1377 sed "/^$/d" confdefs.h | sort
1378 echo
1379 fi
1380 test "$ac_signal" != 0 &&
1381 echo "$as_me: caught signal $ac_signal"
1382 echo "$as_me: exit $exit_status"
1383 } >&5
ac1cb8d3 1384 rm -f core *.core &&
a848cd7e
SC
1385 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1386 exit $exit_status
1387 ' 0
1388for ac_signal in 1 2 13 15; do
1389 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1390done
1391ac_signal=0
1392
1393# confdefs.h avoids OS command line length limits that DEFS can exceed.
1394rm -rf conftest* confdefs.h
1395# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1396echo >confdefs.h
1397
1398# Predefined preprocessor variables.
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_NAME "$PACKAGE_NAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_VERSION "$PACKAGE_VERSION"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_STRING "$PACKAGE_STRING"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422_ACEOF
1423
1424
1425# Let the site file select an alternate cache file if it wants to.
1426# Prefer explicitly selected file to automatically selected ones.
1427if test -z "$CONFIG_SITE"; then
1428 if test "x$prefix" != xNONE; then
1429 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1430 else
1431 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1432 fi
1433fi
1434for ac_site_file in $CONFIG_SITE; do
1435 if test -r "$ac_site_file"; then
1436 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1437echo "$as_me: loading site script $ac_site_file" >&6;}
1438 sed 's/^/| /' "$ac_site_file" >&5
1439 . "$ac_site_file"
1440 fi
1441done
1442
1443if test -r "$cache_file"; then
1444 # Some versions of bash will fail to source /dev/null (special
1445 # files actually), so we avoid doing that.
1446 if test -f "$cache_file"; then
1447 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1448echo "$as_me: loading cache $cache_file" >&6;}
1449 case $cache_file in
1450 [\\/]* | ?:[\\/]* ) . $cache_file;;
1451 *) . ./$cache_file;;
1452 esac
1453 fi
1454else
1455 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1456echo "$as_me: creating cache $cache_file" >&6;}
1457 >$cache_file
1458fi
1459
1460# Check that the precious variables saved in the cache have kept the same
1461# value.
1462ac_cache_corrupted=false
1463for ac_var in `(set) 2>&1 |
ac1cb8d3 1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1470 set,)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,set)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,);;
1479 *)
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1482echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1484echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1486echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1487 ac_cache_corrupted=:
a848cd7e
SC
1488 fi;;
1489 esac
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1492 case $ac_new_val in
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1496 esac
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 esac
1501 fi
1502done
1503if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510
1511ac_ext=c
1512ac_cpp='$CPP $CPPFLAGS'
1513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546ac_aux_dir=
1547for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1548 if test -f $ac_dir/install-sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install-sh -c"
1551 break
1552 elif test -f $ac_dir/install.sh; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/install.sh -c"
1555 break
1556 elif test -f $ac_dir/shtool; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 break
1560 fi
1561done
1562if test -z "$ac_aux_dir"; then
1563 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1564echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1565 { (exit 1); exit 1; }; }
1566fi
1567ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1568ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1569ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570
1571# Make sure we can run config.sub.
1572$ac_config_sub sun4 >/dev/null 2>&1 ||
1573 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1574echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577echo "$as_me:$LINENO: checking build system type" >&5
1578echo $ECHO_N "checking build system type... $ECHO_C" >&6
1579if test "${ac_cv_build+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 ac_cv_build_alias=$build_alias
1583test -z "$ac_cv_build_alias" &&
1584 ac_cv_build_alias=`$ac_config_guess`
1585test -z "$ac_cv_build_alias" &&
1586 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1587echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1588 { (exit 1); exit 1; }; }
1589ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1596echo "${ECHO_T}$ac_cv_build" >&6
1597build=$ac_cv_build
1598build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603echo "$as_me:$LINENO: checking host system type" >&5
1604echo $ECHO_N "checking host system type... $ECHO_C" >&6
1605if test "${ac_cv_host+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 ac_cv_host_alias=$host_alias
1609test -z "$ac_cv_host_alias" &&
1610 ac_cv_host_alias=$ac_cv_build_alias
1611ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1613echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1615
1616fi
1617echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1618echo "${ECHO_T}$ac_cv_host" >&6
1619host=$ac_cv_host
1620host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625echo "$as_me:$LINENO: checking target system type" >&5
1626echo $ECHO_N "checking target system type... $ECHO_C" >&6
1627if test "${ac_cv_target+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_target_alias=$target_alias
1631test "x$ac_cv_target_alias" = "x" &&
1632 ac_cv_target_alias=$ac_cv_host_alias
1633ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1640echo "${ECHO_T}$ac_cv_target" >&6
1641target=$ac_cv_target
1642target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647# The aliases save the names the user supplied, while $host etc.
1648# will get canonicalized.
1649test -n "$target_alias" &&
1650 test "$program_prefix$program_suffix$program_transform_name" = \
1651 NONENONEs,x,x, &&
1652 program_prefix=${target_alias}-
1653
1654
1655
ceec2216
RL
1656wx_major_version_number=2
1657wx_minor_version_number=5
7714864e 1658wx_release_number=3
2cbbc68d 1659wx_subrelease_number=2
a848cd7e 1660
ceec2216
RL
1661WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1662WX_VERSION=$WX_RELEASE.$wx_release_number
1663WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1664
ceec2216 1665WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1666
e653e181 1667WX_CURRENT=3
a848cd7e 1668WX_REVISION=0
e653e181 1669WX_AGE=2
a848cd7e
SC
1670
1671
1672
1673USE_UNIX=1
1674USE_OS2=0
1675USE_WIN32=0
1676USE_DOS=0
1677USE_BEOS=0
1678USE_MAC=0
1679
1680USE_AIX=
1681USE_BSD= USE_DARWIN= USE_FREEBSD=
1682USE_GNU= USE_HPUX=
1683USE_LINUX=
1684USE_NETBSD=
1685USE_OPENBSD=
1686USE_OSF= USE_SGI=
1687USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1688USE_ULTRIX=
1689USE_UNIXWARE=
1690
1691USE_ALPHA=
1692
1693NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1694
1695ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1696
1697DEFAULT_wxUSE_COCOA=0
1698DEFAULT_wxUSE_GTK=0
1699DEFAULT_wxUSE_MAC=0
1700DEFAULT_wxUSE_MGL=0
1701DEFAULT_wxUSE_MICROWIN=0
1702DEFAULT_wxUSE_MOTIF=0
1703DEFAULT_wxUSE_MSW=0
1704DEFAULT_wxUSE_PM=0
1705DEFAULT_wxUSE_X11=0
1706
1707DEFAULT_DEFAULT_wxUSE_COCOA=0
1708DEFAULT_DEFAULT_wxUSE_GTK=0
1709DEFAULT_DEFAULT_wxUSE_MAC=0
1710DEFAULT_DEFAULT_wxUSE_MGL=0
1711DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_DEFAULT_wxUSE_MSW=0
1714DEFAULT_DEFAULT_wxUSE_PM=0
1715DEFAULT_DEFAULT_wxUSE_X11=0
1716
1717PROGRAM_EXT=
1718SO_SUFFIX=so
1719SAMPLES_RPATH_FLAG=
1720SAMPLES_RPATH_POSTLINK=
1721
1722case "${host}" in
1723 *-hp-hpux* )
1724 USE_HPUX=1
1725 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1726 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1727 SO_SUFFIX=sl
1728 cat >>confdefs.h <<\_ACEOF
1729#define __HPUX__ 1
1730_ACEOF
1731
1732 ;;
1733 *-*-linux* )
1734 USE_LINUX=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __LINUX__ 1
1737_ACEOF
1738
1739 TMP=`uname -m`
1740 if test "x$TMP" = "xalpha"; then
1741 USE_ALPHA=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __ALPHA__ 1
1744_ACEOF
1745
1746 fi
1747 DEFAULT_DEFAULT_wxUSE_GTK=1
1748 ;;
1749 *-*-gnu* | *-*-k*bsd*-gnu )
1750 USE_GNU=1
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-irix5* | *-*-irix6* )
1762 USE_SGI=1
1763 USE_SVR4=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __SGI__ 1
1766_ACEOF
1767
1768 cat >>confdefs.h <<\_ACEOF
1769#define __SVR4__ 1
1770_ACEOF
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1773 ;;
1774 *-*-solaris2* )
1775 USE_SUN=1
1776 USE_SOLARIS=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SUN__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SOLARIS__ 1
1784_ACEOF
1785
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SVR4__ 1
1788_ACEOF
1789
1790 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1791 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1792 ;;
1793 *-*-sunos4* )
1794 USE_SUN=1
1795 USE_SUNOS=1
1796 USE_BSD=1
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SUN__ 1
1799_ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SUNOS__ 1
1803_ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806#define __BSD__ 1
1807_ACEOF
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1810 ;;
1811 *-*-freebsd*)
1812 USE_BSD=1
1813 USE_FREEBSD=1
1814 cat >>confdefs.h <<\_ACEOF
1815#define __FREEBSD__ 1
1816_ACEOF
1817
1818 cat >>confdefs.h <<\_ACEOF
1819#define __BSD__ 1
1820_ACEOF
1821
1822 DEFAULT_DEFAULT_wxUSE_GTK=1
1823 ;;
1824 *-*-openbsd*)
1825 USE_BSD=1
1826 USE_OPENBSD=1
1827 cat >>confdefs.h <<\_ACEOF
1828#define __OPENBSD__ 1
1829_ACEOF
1830
1831 cat >>confdefs.h <<\_ACEOF
1832#define __BSD__ 1
1833_ACEOF
1834
1835 DEFAULT_DEFAULT_wxUSE_GTK=1
1836 ;;
1837 *-*-netbsd*)
1838 USE_BSD=1
1839 USE_NETBSD=1
1840 cat >>confdefs.h <<\_ACEOF
1841#define __NETBSD__ 1
1842_ACEOF
1843
1844 cat >>confdefs.h <<\_ACEOF
1845#define __BSD__ 1
1846_ACEOF
1847
1848 DEFAULT_DEFAULT_wxUSE_GTK=1
1849 ;;
1850 *-*-osf* )
1851 USE_ALPHA=1
1852 USE_OSF=1
1853 cat >>confdefs.h <<\_ACEOF
1854#define __ALPHA__ 1
1855_ACEOF
1856
1857 cat >>confdefs.h <<\_ACEOF
1858#define __OSF__ 1
1859_ACEOF
1860
1861 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1862 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1863 ;;
1864 *-*-dgux5* )
1865 USE_ALPHA=1
1866 USE_SVR4=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __ALPHA__ 1
1869_ACEOF
1870
1871 cat >>confdefs.h <<\_ACEOF
1872#define __SVR4__ 1
1873_ACEOF
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 ;;
1877 *-*-sysv5* )
1878 USE_SYSV=1
1879 USE_SVR4=1
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SYSV__ 1
1882_ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885#define __SVR4__ 1
1886_ACEOF
1887
1888 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1889 ;;
1890 *-*-aix* )
1891 USE_AIX=1
1892 USE_SYSV=1
1893 USE_SVR4=1
1894 SO_SUFFIX=a
1895 cat >>confdefs.h <<\_ACEOF
1896#define __AIX__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SYSV__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909
1910 *-*-*UnixWare*)
1911 USE_SYSV=1
1912 USE_SVR4=1
1913 USE_UNIXWARE=1
1914 cat >>confdefs.h <<\_ACEOF
1915#define __UNIXWARE__ 1
1916_ACEOF
1917
1918 ;;
1919
1920 *-*-cygwin* | *-*-mingw32* )
1921 SO_SUFFIX=dll
1922 PROGRAM_EXT=".exe"
1923 RESCOMP=windres
1924 DEFAULT_DEFAULT_wxUSE_MSW=1
1925 ;;
1926
1927 *-pc-msdosdjgpp )
1928 USE_UNIX=0
1929 USE_DOS=1
1930 cat >>confdefs.h <<\_ACEOF
1931#define __DOS__ 1
1932_ACEOF
1933
1934 PROGRAM_EXT=".exe"
1935 DEFAULT_DEFAULT_wxUSE_MGL=1
1936 LIBS="$LIBS -lstdc++"
1937 ;;
1938
1939 *-pc-os2_emx | *-pc-os2-emx )
1940 cat >>confdefs.h <<\_ACEOF
1941#define __EMX__ 1
1942_ACEOF
1943
1944 USE_OS2=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __OS2__ 1
1947_ACEOF
1948
1949 PROGRAM_EXT=".exe"
1950 DEFAULT_DEFAULT_wxUSE_PM=1
1951 CXX=gcc
1952 LDFLAGS="$LDFLAGS -Zcrtdll"
1953 ac_executable_extensions=".exe"
1954 export ac_executable_extensions
1955 ac_save_IFS="$IFS"
1956 IFS='\\'
1957 ac_TEMP_PATH=
1958 for ac_dir in $PATH; do
1959 IFS=$ac_save_IFS
1960 if test -z "$ac_TEMP_PATH"; then
1961 ac_TEMP_PATH="$ac_dir"
1962 else
1963 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1964 fi
1965 done
1966 export PATH="$ac_TEMP_PATH"
1967 unset ac_TEMP_PATH
1968 ;;
1969
1970 powerpc-*-darwin* )
1971 USE_BSD=1
1972 USE_DARWIN=1
1973 SO_SUFFIX=dylib
1974 cat >>confdefs.h <<\_ACEOF
1975#define __BSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __DARWIN__ 1
1980_ACEOF
1981
1982 cat >>confdefs.h <<\_ACEOF
1983#define __POWERPC__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define TARGET_CARBON 1
1988_ACEOF
1989
1990 DEFAULT_DEFAULT_wxUSE_MAC=1
1991 ;;
1992
1993 *-*-beos* )
1994 USE_BEOS=1
1995 cat >>confdefs.h <<\_ACEOF
1996#define __BEOS__ 1
1997_ACEOF
1998
1999 ;;
2000
2001 *)
2002 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2003echo "$as_me: error: unknown system type ${host}." >&2;}
2004 { (exit 1); exit 1; }; }
2005esac
2006
2007
2008
2009
2010 wx_arg_cache_file="configarg.cache"
2011 echo "loading argument cache $wx_arg_cache_file"
2012 rm -f ${wx_arg_cache_file}.tmp
2013 touch ${wx_arg_cache_file}.tmp
2014 touch ${wx_arg_cache_file}
2015
2016
2017DEBUG_CONFIGURE=0
2018if test $DEBUG_CONFIGURE = 1; then
2019 DEFAULT_wxUSE_UNIVERSAL=no
2020 DEFAULT_wxUSE_STL=no
2021
2022 DEFAULT_wxUSE_NANOX=no
2023
2024 DEFAULT_wxUSE_THREADS=yes
2025
2026 DEFAULT_wxUSE_SHARED=yes
2027 DEFAULT_wxUSE_OPTIMISE=no
2028 DEFAULT_wxUSE_PROFILE=no
2029 DEFAULT_wxUSE_NO_DEPS=no
2030 DEFAULT_wxUSE_NO_RTTI=no
2031 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2032 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2033 DEFAULT_wxUSE_PERMISSIVE=no
2034 DEFAULT_wxUSE_DEBUG_FLAG=yes
2035 DEFAULT_wxUSE_DEBUG_INFO=yes
2036 DEFAULT_wxUSE_DEBUG_GDB=yes
2037 DEFAULT_wxUSE_MEM_TRACING=no
2038 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2039 DEFAULT_wxUSE_DMALLOC=no
2040 DEFAULT_wxUSE_APPLE_IEEE=no
2041
2042 DEFAULT_wxUSE_EXCEPTIONS=no
2043 DEFAULT_wxUSE_LOG=yes
2044 DEFAULT_wxUSE_LOGWINDOW=no
2045 DEFAULT_wxUSE_LOGGUI=no
2046 DEFAULT_wxUSE_LOGDIALOG=no
2047
2048 DEFAULT_wxUSE_GUI=yes
2049 DEFAULT_wxUSE_CONTROLS=no
2050
2051 DEFAULT_wxUSE_REGEX=no
2052 DEFAULT_wxUSE_XML=no
2053 DEFAULT_wxUSE_EXPAT=no
2054 DEFAULT_wxUSE_ZLIB=no
2055 DEFAULT_wxUSE_LIBPNG=no
2056 DEFAULT_wxUSE_LIBJPEG=no
2057 DEFAULT_wxUSE_LIBTIFF=no
2058 DEFAULT_wxUSE_LIBXPM=no
2059 DEFAULT_wxUSE_LIBMSPACK=no
2060 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2061 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2062 DEFAULT_wxUSE_ODBC=no
2063 DEFAULT_wxUSE_OPENGL=no
2064
2065 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2066 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2067 DEFAULT_wxUSE_STD_IOSTREAM=no
2068 DEFAULT_wxUSE_CMDLINE_PARSER=no
2069 DEFAULT_wxUSE_DATETIME=no
2070 DEFAULT_wxUSE_TIMER=no
2071 DEFAULT_wxUSE_STOPWATCH=no
2072 DEFAULT_wxUSE_FILE=no
2073 DEFAULT_wxUSE_FFILE=no
2074 DEFAULT_wxUSE_TEXTBUFFER=no
2075 DEFAULT_wxUSE_TEXTFILE=no
2076 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2077 DEFAULT_wxUSE_MEDIACTRL=no
2078 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2079 DEFAULT_wxUSE_INTL=no
2080 DEFAULT_wxUSE_CONFIG=no
2081 DEFAULT_wxUSE_FONTMAP=no
2082 DEFAULT_wxUSE_STREAMS=no
2083 DEFAULT_wxUSE_SOCKETS=no
2084 DEFAULT_wxUSE_OLE=no
2085 DEFAULT_wxUSE_DATAOBJ=no
2086 DEFAULT_wxUSE_DIALUP_MANAGER=no
2087 DEFAULT_wxUSE_JOYSTICK=no
2088 DEFAULT_wxUSE_DYNLIB_CLASS=no
2089 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2090 DEFAULT_wxUSE_LONGLONG=no
2091 DEFAULT_wxUSE_GEOMETRY=no
2092
2093 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2094 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2095 DEFAULT_wxUSE_POSTSCRIPT=no
2096
2097 DEFAULT_wxUSE_CLIPBOARD=no
2098 DEFAULT_wxUSE_TOOLTIPS=no
2099 DEFAULT_wxUSE_DRAG_AND_DROP=no
2100 DEFAULT_wxUSE_DRAGIMAGE=no
2101 DEFAULT_wxUSE_SPLINES=no
2102
8a7b1113 2103 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2104 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2105 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2106 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2107
2108 DEFAULT_wxUSE_RESOURCES=no
2109 DEFAULT_wxUSE_CONSTRAINTS=no
2110 DEFAULT_wxUSE_IPC=no
2111 DEFAULT_wxUSE_HELP=no
2112 DEFAULT_wxUSE_MS_HTML_HELP=no
2113 DEFAULT_wxUSE_WXHTML_HELP=no
2114 DEFAULT_wxUSE_TREELAYOUT=no
2115 DEFAULT_wxUSE_METAFILE=no
2116 DEFAULT_wxUSE_MIMETYPE=no
2117 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2118 DEFAULT_wxUSE_PROTOCOL=no
2119 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2120 DEFAULT_wxUSE_PROTOCOL_FTP=no
2121 DEFAULT_wxUSE_PROTOCOL_FILE=no
2122 DEFAULT_wxUSE_URL=no
2123
2124 DEFAULT_wxUSE_COMMONDLGS=no
2125 DEFAULT_wxUSE_CHOICEDLG=no
2126 DEFAULT_wxUSE_COLOURDLG=no
2127 DEFAULT_wxUSE_DIRDLG=no
2128 DEFAULT_wxUSE_FILEDLG=no
2129 DEFAULT_wxUSE_FINDREPLDLG=no
2130 DEFAULT_wxUSE_FONTDLG=no
2131 DEFAULT_wxUSE_MSGDLG=no
2132 DEFAULT_wxUSE_NUMBERDLG=no
2133 DEFAULT_wxUSE_TEXTDLG=no
2134 DEFAULT_wxUSE_SPLASH=no
2135 DEFAULT_wxUSE_STARTUP_TIPS=no
2136 DEFAULT_wxUSE_PROGRESSDLG=no
2137 DEFAULT_wxUSE_WIZARDDLG=no
2138
2139 DEFAULT_wxUSE_MENUS=no
2140 DEFAULT_wxUSE_MINIFRAME=no
2141 DEFAULT_wxUSE_HTML=no
9a8f0513 2142 DEFAULT_wxUSE_XRC=no
646b6ec1 2143 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2144 DEFAULT_wxUSE_FILESYSTEM=no
2145 DEFAULT_wxUSE_FS_INET=no
2146 DEFAULT_wxUSE_FS_ZIP=no
2147 DEFAULT_wxUSE_BUSYINFO=no
2148 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2149 DEFAULT_wxUSE_VALIDATORS=no
2150
2151 DEFAULT_wxUSE_ACCEL=no
2152 DEFAULT_wxUSE_BUTTON=no
2153 DEFAULT_wxUSE_BMPBUTTON=no
2154 DEFAULT_wxUSE_CALCTRL=no
2155 DEFAULT_wxUSE_CARET=no
2156 DEFAULT_wxUSE_CHECKBOX=no
2157 DEFAULT_wxUSE_CHECKLST=no
2158 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2159 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2160 DEFAULT_wxUSE_COMBOBOX=no
2161 DEFAULT_wxUSE_DISPLAY=no
2162 DEFAULT_wxUSE_GAUGE=no
2163 DEFAULT_wxUSE_GRID=no
2164 DEFAULT_wxUSE_IMAGLIST=no
2165 DEFAULT_wxUSE_LISTBOOK=no
2166 DEFAULT_wxUSE_LISTBOX=no
2167 DEFAULT_wxUSE_LISTCTRL=no
2168 DEFAULT_wxUSE_NOTEBOOK=no
2169 DEFAULT_wxUSE_RADIOBOX=no
2170 DEFAULT_wxUSE_RADIOBTN=no
2171 DEFAULT_wxUSE_SASH=no
2172 DEFAULT_wxUSE_SCROLLBAR=no
2173 DEFAULT_wxUSE_SLIDER=no
2174 DEFAULT_wxUSE_SPINBTN=no
2175 DEFAULT_wxUSE_SPINCTRL=no
2176 DEFAULT_wxUSE_SPLITTER=no
2177 DEFAULT_wxUSE_STATBMP=no
2178 DEFAULT_wxUSE_STATBOX=no
2179 DEFAULT_wxUSE_STATLINE=no
2180 DEFAULT_wxUSE_STATTEXT=no
2181 DEFAULT_wxUSE_STATUSBAR=yes
2182 DEFAULT_wxUSE_TABDIALOG=no
2183 DEFAULT_wxUSE_TEXTCTRL=no
2184 DEFAULT_wxUSE_TOGGLEBTN=no
2185 DEFAULT_wxUSE_TOOLBAR=no
2186 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2187 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2188 DEFAULT_wxUSE_TREECTRL=no
2189 DEFAULT_wxUSE_POPUPWIN=no
2190 DEFAULT_wxUSE_TIPWINDOW=no
2191
2192 DEFAULT_wxUSE_UNICODE=no
2193 DEFAULT_wxUSE_UNICODE_MSLU=no
2194 DEFAULT_wxUSE_WCSRTOMBS=no
2195
2196 DEFAULT_wxUSE_PALETTE=no
2197 DEFAULT_wxUSE_IMAGE=no
2198 DEFAULT_wxUSE_GIF=no
2199 DEFAULT_wxUSE_PCX=no
2200 DEFAULT_wxUSE_PNM=no
2201 DEFAULT_wxUSE_IFF=no
2202 DEFAULT_wxUSE_XPM=no
2203 DEFAULT_wxUSE_ICO_CUR=no
2204 DEFAULT_wxUSE_ACCESSIBILITY=no
2205
2206 DEFAULT_wxUSE_MONOLITHIC=no
2207 DEFAULT_wxUSE_PLUGINS=no
2208 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2209else
2210 DEFAULT_wxUSE_UNIVERSAL=no
2211 DEFAULT_wxUSE_STL=no
2212
2213 DEFAULT_wxUSE_NANOX=no
2214
2215 DEFAULT_wxUSE_THREADS=yes
2216
2217 DEFAULT_wxUSE_SHARED=yes
2218 DEFAULT_wxUSE_OPTIMISE=yes
2219 DEFAULT_wxUSE_PROFILE=no
2220 DEFAULT_wxUSE_NO_DEPS=no
2221 DEFAULT_wxUSE_NO_RTTI=no
2222 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2223 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2224 DEFAULT_wxUSE_PERMISSIVE=no
2225 DEFAULT_wxUSE_DEBUG_FLAG=no
2226 DEFAULT_wxUSE_DEBUG_INFO=no
2227 DEFAULT_wxUSE_DEBUG_GDB=no
2228 DEFAULT_wxUSE_MEM_TRACING=no
2229 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2230 DEFAULT_wxUSE_DMALLOC=no
2231 DEFAULT_wxUSE_APPLE_IEEE=yes
2232
2233 DEFAULT_wxUSE_EXCEPTIONS=yes
2234 DEFAULT_wxUSE_LOG=yes
2235 DEFAULT_wxUSE_LOGWINDOW=yes
2236 DEFAULT_wxUSE_LOGGUI=yes
2237 DEFAULT_wxUSE_LOGDIALOG=yes
2238
2239 DEFAULT_wxUSE_GUI=yes
2240
2241 DEFAULT_wxUSE_REGEX=yes
2242 DEFAULT_wxUSE_XML=yes
2243 DEFAULT_wxUSE_EXPAT=yes
2244 DEFAULT_wxUSE_ZLIB=yes
2245 DEFAULT_wxUSE_LIBPNG=yes
2246 DEFAULT_wxUSE_LIBJPEG=yes
2247 DEFAULT_wxUSE_LIBTIFF=yes
2248 DEFAULT_wxUSE_LIBXPM=yes
2249 DEFAULT_wxUSE_LIBMSPACK=yes
2250 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2251 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2252 DEFAULT_wxUSE_ODBC=no
2253 DEFAULT_wxUSE_OPENGL=no
2254
2255 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2256 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2257 DEFAULT_wxUSE_STD_IOSTREAM=no
2258 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2259 DEFAULT_wxUSE_DATETIME=yes
2260 DEFAULT_wxUSE_TIMER=yes
2261 DEFAULT_wxUSE_STOPWATCH=yes
2262 DEFAULT_wxUSE_FILE=yes
2263 DEFAULT_wxUSE_FFILE=yes
2264 DEFAULT_wxUSE_TEXTBUFFER=yes
2265 DEFAULT_wxUSE_TEXTFILE=yes
2266 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2267 DEFAULT_wxUSE_MEDIACTRL=no
2268 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2269 DEFAULT_wxUSE_INTL=yes
2270 DEFAULT_wxUSE_CONFIG=yes
2271 DEFAULT_wxUSE_FONTMAP=yes
2272 DEFAULT_wxUSE_STREAMS=yes
2273 DEFAULT_wxUSE_SOCKETS=yes
2274 DEFAULT_wxUSE_OLE=yes
2275 DEFAULT_wxUSE_DATAOBJ=yes
2276 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2277 DEFAULT_wxUSE_JOYSTICK=yes
2278 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2279 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2280 DEFAULT_wxUSE_LONGLONG=yes
2281 DEFAULT_wxUSE_GEOMETRY=yes
2282
2283 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2284 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2285 DEFAULT_wxUSE_POSTSCRIPT=yes
2286
2287 DEFAULT_wxUSE_CLIPBOARD=yes
2288 DEFAULT_wxUSE_TOOLTIPS=yes
2289 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2290 DEFAULT_wxUSE_DRAGIMAGE=yes
2291 DEFAULT_wxUSE_SPLINES=yes
2292
8a7b1113 2293 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2294 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2295 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2296 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2297
2298 DEFAULT_wxUSE_RESOURCES=no
2299 DEFAULT_wxUSE_CONSTRAINTS=yes
2300 DEFAULT_wxUSE_IPC=yes
2301 DEFAULT_wxUSE_HELP=yes
2302 DEFAULT_wxUSE_MS_HTML_HELP=yes
2303 DEFAULT_wxUSE_WXHTML_HELP=yes
2304 DEFAULT_wxUSE_TREELAYOUT=yes
2305 DEFAULT_wxUSE_METAFILE=yes
2306 DEFAULT_wxUSE_MIMETYPE=yes
2307 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2308 DEFAULT_wxUSE_PROTOCOL=yes
2309 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2310 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2311 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2312 DEFAULT_wxUSE_URL=yes
2313
2314 DEFAULT_wxUSE_COMMONDLGS=yes
2315 DEFAULT_wxUSE_CHOICEDLG=yes
2316 DEFAULT_wxUSE_COLOURDLG=yes
2317 DEFAULT_wxUSE_DIRDLG=yes
2318 DEFAULT_wxUSE_FILEDLG=yes
2319 DEFAULT_wxUSE_FINDREPLDLG=yes
2320 DEFAULT_wxUSE_FONTDLG=yes
2321 DEFAULT_wxUSE_MSGDLG=yes
2322 DEFAULT_wxUSE_NUMBERDLG=yes
2323 DEFAULT_wxUSE_TEXTDLG=yes
2324 DEFAULT_wxUSE_SPLASH=yes
2325 DEFAULT_wxUSE_STARTUP_TIPS=yes
2326 DEFAULT_wxUSE_PROGRESSDLG=yes
2327 DEFAULT_wxUSE_WIZARDDLG=yes
2328
2329 DEFAULT_wxUSE_MENUS=yes
2330 DEFAULT_wxUSE_MINIFRAME=yes
2331 DEFAULT_wxUSE_HTML=yes
9a8f0513 2332 DEFAULT_wxUSE_XRC=yes
646b6ec1 2333 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2334 DEFAULT_wxUSE_FILESYSTEM=yes
2335 DEFAULT_wxUSE_FS_INET=yes
2336 DEFAULT_wxUSE_FS_ZIP=yes
2337 DEFAULT_wxUSE_BUSYINFO=yes
2338 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2339 DEFAULT_wxUSE_VALIDATORS=yes
2340
2341 DEFAULT_wxUSE_ACCEL=yes
2342 DEFAULT_wxUSE_BUTTON=yes
2343 DEFAULT_wxUSE_BMPBUTTON=yes
2344 DEFAULT_wxUSE_CALCTRL=yes
2345 DEFAULT_wxUSE_CARET=yes
2346 DEFAULT_wxUSE_CHECKBOX=yes
2347 DEFAULT_wxUSE_CHECKLST=yes
2348 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2349 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2350 DEFAULT_wxUSE_COMBOBOX=yes
2351 DEFAULT_wxUSE_DISPLAY=yes
2352 DEFAULT_wxUSE_GAUGE=yes
2353 DEFAULT_wxUSE_GRID=yes
2354 DEFAULT_wxUSE_IMAGLIST=yes
2355 DEFAULT_wxUSE_LISTBOOK=yes
2356 DEFAULT_wxUSE_LISTBOX=yes
2357 DEFAULT_wxUSE_LISTCTRL=yes
2358 DEFAULT_wxUSE_NOTEBOOK=yes
2359 DEFAULT_wxUSE_RADIOBOX=yes
2360 DEFAULT_wxUSE_RADIOBTN=yes
2361 DEFAULT_wxUSE_SASH=yes
2362 DEFAULT_wxUSE_SCROLLBAR=yes
2363 DEFAULT_wxUSE_SLIDER=yes
2364 DEFAULT_wxUSE_SPINBTN=yes
2365 DEFAULT_wxUSE_SPINCTRL=yes
2366 DEFAULT_wxUSE_SPLITTER=yes
2367 DEFAULT_wxUSE_STATBMP=yes
2368 DEFAULT_wxUSE_STATBOX=yes
2369 DEFAULT_wxUSE_STATLINE=yes
2370 DEFAULT_wxUSE_STATTEXT=yes
2371 DEFAULT_wxUSE_STATUSBAR=yes
2372 DEFAULT_wxUSE_TABDIALOG=no
2373 DEFAULT_wxUSE_TEXTCTRL=yes
2374 DEFAULT_wxUSE_TOGGLEBTN=yes
2375 DEFAULT_wxUSE_TOOLBAR=yes
2376 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2377 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2378 DEFAULT_wxUSE_TREECTRL=yes
2379 DEFAULT_wxUSE_POPUPWIN=yes
2380 DEFAULT_wxUSE_TIPWINDOW=yes
2381
2382 DEFAULT_wxUSE_UNICODE=no
2383 DEFAULT_wxUSE_UNICODE_MSLU=yes
2384 DEFAULT_wxUSE_WCSRTOMBS=no
2385
2386 DEFAULT_wxUSE_PALETTE=yes
2387 DEFAULT_wxUSE_IMAGE=yes
2388 DEFAULT_wxUSE_GIF=yes
2389 DEFAULT_wxUSE_PCX=yes
2390 DEFAULT_wxUSE_IFF=no
2391 DEFAULT_wxUSE_PNM=yes
2392 DEFAULT_wxUSE_XPM=yes
2393 DEFAULT_wxUSE_ICO_CUR=yes
2394 DEFAULT_wxUSE_ACCESSIBILITY=no
2395
2396 DEFAULT_wxUSE_MONOLITHIC=no
2397 DEFAULT_wxUSE_PLUGINS=no
2398 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2399
2400 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2401fi
2402
2403
2404
2405for toolkit in `echo $ALL_TOOLKITS`; do
2406 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2407 if test "x$LINE" != "x" ; then
2408 has_toolkit_in_cache=1
2409 eval "DEFAULT_$LINE"
2410 eval "CACHE_$toolkit=1"
2411 fi
2412done
2413
2414
2415
2416 enablestring=
2417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2418echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2419 no_cache=0
2420 # Check whether --enable-gui or --disable-gui was given.
2421if test "${enable_gui+set}" = set; then
2422 enableval="$enable_gui"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_gui='wxUSE_GUI=yes'
2426 else
2427 ac_cv_use_gui='wxUSE_GUI=no'
2428 fi
2429
2430else
2431
2432 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2440
2441fi;
2442
2443 eval "$ac_cv_use_gui"
2444 if test "$no_cache" != 1; then
2445 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2446 fi
2447
2448 if test "$wxUSE_GUI" = yes; then
2449 echo "$as_me:$LINENO: result: yes" >&5
2450echo "${ECHO_T}yes" >&6
2451 else
2452 echo "$as_me:$LINENO: result: no" >&5
2453echo "${ECHO_T}no" >&6
2454 fi
2455
2456
2457 enablestring=
2458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2459echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2460 no_cache=0
2461 # Check whether --enable-monolithic or --disable-monolithic was given.
2462if test "${enable_monolithic+set}" = set; then
2463 enableval="$enable_monolithic"
2464
2465 if test "$enableval" = yes; then
2466 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2467 else
2468 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2469 fi
2470
2471else
2472
2473 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2481
2482fi;
2483
2484 eval "$ac_cv_use_monolithic"
2485 if test "$no_cache" != 1; then
2486 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2487 fi
2488
2489 if test "$wxUSE_MONOLITHIC" = yes; then
2490 echo "$as_me:$LINENO: result: yes" >&5
2491echo "${ECHO_T}yes" >&6
2492 else
2493 echo "$as_me:$LINENO: result: no" >&5
2494echo "${ECHO_T}no" >&6
2495 fi
2496
2497
2498 enablestring=
2499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2500echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2501 no_cache=0
2502 # Check whether --enable-plugins or --disable-plugins was given.
2503if test "${enable_plugins+set}" = set; then
2504 enableval="$enable_plugins"
2505
2506 if test "$enableval" = yes; then
2507 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2508 else
2509 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2510 fi
2511
2512else
2513
2514 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2515 if test "x$LINE" != x ; then
2516 eval "DEFAULT_$LINE"
2517 else
2518 no_cache=1
2519 fi
2520
2521 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2522
2523fi;
2524
2525 eval "$ac_cv_use_plugins"
2526 if test "$no_cache" != 1; then
2527 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2528 fi
2529
2530 if test "$wxUSE_PLUGINS" = yes; then
2531 echo "$as_me:$LINENO: result: yes" >&5
2532echo "${ECHO_T}yes" >&6
2533 else
2534 echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6
2536 fi
2537
2538
2539if test "$wxUSE_GUI" = "yes"; then
2540
2541
2542 enablestring=
2543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2544echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2545 no_cache=0
2546 # Check whether --enable-universal or --disable-universal was given.
2547if test "${enable_universal+set}" = set; then
2548 enableval="$enable_universal"
2549
2550 if test "$enableval" = yes; then
2551 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2552 else
2553 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2554 fi
2555
2556else
2557
2558 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2559 if test "x$LINE" != x ; then
2560 eval "DEFAULT_$LINE"
2561 else
2562 no_cache=1
2563 fi
2564
2565 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2566
2567fi;
2568
2569 eval "$ac_cv_use_universal"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_UNIVERSAL" = yes; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
2580 fi
2581
2582
2583# Check whether --with-gtk or --without-gtk was given.
2584if test "${with_gtk+set}" = set; then
2585 withval="$with_gtk"
2586 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2587fi;
2588
2589# Check whether --with-motif or --without-motif was given.
2590if test "${with_motif+set}" = set; then
2591 withval="$with_motif"
2592 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2593fi;
2594
2595# Check whether --with-mac or --without-mac was given.
2596if test "${with_mac+set}" = set; then
2597 withval="$with_mac"
c228d3a4 2598 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2599fi;
2600
2601# Check whether --with-cocoa or --without-cocoa was given.
2602if test "${with_cocoa+set}" = set; then
2603 withval="$with_cocoa"
c228d3a4 2604 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2605fi;
2606
2607# Check whether --with-wine or --without-wine was given.
2608if test "${with_wine+set}" = set; then
2609 withval="$with_wine"
2610 wxUSE_WINE="$withval" CACHE_WINE=1
2611fi;
2612
2613# Check whether --with-msw or --without-msw was given.
2614if test "${with_msw+set}" = set; then
2615 withval="$with_msw"
2616 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-pm or --without-pm was given.
2620if test "${with_pm+set}" = set; then
2621 withval="$with_pm"
2622 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-mgl or --without-mgl was given.
2626if test "${with_mgl+set}" = set; then
2627 withval="$with_mgl"
2628 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631# Check whether --with-microwin or --without-microwin was given.
2632if test "${with_microwin+set}" = set; then
2633 withval="$with_microwin"
2634 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2635fi;
2636
2637# Check whether --with-x11 or --without-x11 was given.
2638if test "${with_x11+set}" = set; then
2639 withval="$with_x11"
2640 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2641fi;
2642
2643 enablestring=
2644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2645echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2646 no_cache=0
2647 # Check whether --enable-nanox or --disable-nanox was given.
2648if test "${enable_nanox+set}" = set; then
2649 enableval="$enable_nanox"
2650
2651 if test "$enableval" = yes; then
2652 ac_cv_use_nanox='wxUSE_NANOX=yes'
2653 else
2654 ac_cv_use_nanox='wxUSE_NANOX=no'
2655 fi
2656
2657else
2658
2659 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2660 if test "x$LINE" != x ; then
2661 eval "DEFAULT_$LINE"
2662 else
2663 no_cache=1
2664 fi
2665
2666 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2667
2668fi;
2669
2670 eval "$ac_cv_use_nanox"
2671 if test "$no_cache" != 1; then
2672 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2673 fi
2674
2675 if test "$wxUSE_NANOX" = yes; then
2676 echo "$as_me:$LINENO: result: yes" >&5
2677echo "${ECHO_T}yes" >&6
2678 else
2679 echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6
2681 fi
2682
2683
2684
2685 enablestring=
2686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2687echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2688 no_cache=0
2689 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2690if test "${enable_gtk2+set}" = set; then
2691 enableval="$enable_gtk2"
2692
2693 if test "$enableval" = yes; then
2694 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2695 else
2696 ac_cv_use_gtk2='wxUSE_GTK2=no'
2697 fi
2698
2699else
2700
2701 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2702 if test "x$LINE" != x ; then
2703 eval "DEFAULT_$LINE"
2704 else
2705 no_cache=1
2706 fi
2707
2708 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2709
2710fi;
2711
2712 eval "$ac_cv_use_gtk2"
2713 if test "$no_cache" != 1; then
2714 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2715 fi
2716
2717 if test "$wxUSE_GTK2" = yes; then
2718 echo "$as_me:$LINENO: result: yes" >&5
2719echo "${ECHO_T}yes" >&6
2720 else
2721 echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6
2723 fi
2724
2725
2726 enablestring=
2727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2728echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2729 no_cache=0
2730 # Check whether --enable-gpe or --disable-gpe was given.
2731if test "${enable_gpe+set}" = set; then
2732 enableval="$enable_gpe"
2733
2734 if test "$enableval" = yes; then
2735 ac_cv_use_gpe='wxUSE_GPE=yes'
2736 else
2737 ac_cv_use_gpe='wxUSE_GPE=no'
2738 fi
2739
2740else
2741
2742 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2743 if test "x$LINE" != x ; then
2744 eval "DEFAULT_$LINE"
2745 else
2746 no_cache=1
2747 fi
2748
2749 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2750
2751fi;
2752
2753 eval "$ac_cv_use_gpe"
2754 if test "$no_cache" != 1; then
2755 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2756 fi
2757
2758 if test "$wxUSE_GPE" = yes; then
2759 echo "$as_me:$LINENO: result: yes" >&5
2760echo "${ECHO_T}yes" >&6
2761 else
2762 echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6
2764 fi
2765
2766
2767
2768 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2769echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2770 no_cache=0
2771
2772# Check whether --with-libpng or --without-libpng was given.
2773if test "${with_libpng+set}" = set; then
2774 withval="$with_libpng"
2775
2776 if test "$withval" = yes; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2778 elif test "$withval" = no; then
2779 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2780 elif test "$withval" = sys; then
2781 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2782 elif test "$withval" = builtin; then
2783 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2784 else
2785 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2786echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2787 { (exit 1); exit 1; }; }
2788 fi
2789
2790else
2791
2792 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2793 if test "x$LINE" != x ; then
2794 eval "DEFAULT_$LINE"
2795 else
2796 no_cache=1
2797 fi
2798
2799 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2800
2801fi;
2802
2803 eval "$ac_cv_use_libpng"
2804 if test "$no_cache" != 1; then
2805 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2806 fi
2807
2808 if test "$wxUSE_LIBPNG" = yes; then
2809 echo "$as_me:$LINENO: result: yes" >&5
2810echo "${ECHO_T}yes" >&6
2811 elif test "$wxUSE_LIBPNG" = no; then
2812 echo "$as_me:$LINENO: result: no" >&5
2813echo "${ECHO_T}no" >&6
2814 elif test "$wxUSE_LIBPNG" = sys; then
2815 echo "$as_me:$LINENO: result: system version" >&5
2816echo "${ECHO_T}system version" >&6
2817 elif test "$wxUSE_LIBPNG" = builtin; then
2818 echo "$as_me:$LINENO: result: builtin version" >&5
2819echo "${ECHO_T}builtin version" >&6
2820 else
2821 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2822echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2823 { (exit 1); exit 1; }; }
2824 fi
2825
2826
2827 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2828echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2829 no_cache=0
2830
2831# Check whether --with-libjpeg or --without-libjpeg was given.
2832if test "${with_libjpeg+set}" = set; then
2833 withval="$with_libjpeg"
2834
2835 if test "$withval" = yes; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2837 elif test "$withval" = no; then
2838 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2839 elif test "$withval" = sys; then
2840 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2841 elif test "$withval" = builtin; then
2842 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2843 else
2844 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2845echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2846 { (exit 1); exit 1; }; }
2847 fi
2848
2849else
2850
2851 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2859
2860fi;
2861
2862 eval "$ac_cv_use_libjpeg"
2863 if test "$no_cache" != 1; then
2864 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2865 fi
2866
2867 if test "$wxUSE_LIBJPEG" = yes; then
2868 echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6
2870 elif test "$wxUSE_LIBJPEG" = no; then
2871 echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6
2873 elif test "$wxUSE_LIBJPEG" = sys; then
2874 echo "$as_me:$LINENO: result: system version" >&5
2875echo "${ECHO_T}system version" >&6
2876 elif test "$wxUSE_LIBJPEG" = builtin; then
2877 echo "$as_me:$LINENO: result: builtin version" >&5
2878echo "${ECHO_T}builtin version" >&6
2879 else
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2881echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885
2886 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2887echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2888 no_cache=0
2889
2890# Check whether --with-libtiff or --without-libtiff was given.
2891if test "${with_libtiff+set}" = set; then
2892 withval="$with_libtiff"
2893
2894 if test "$withval" = yes; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2896 elif test "$withval" = no; then
2897 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2898 elif test "$withval" = sys; then
2899 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2900 elif test "$withval" = builtin; then
2901 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2902 else
2903 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2904echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907
2908else
2909
2910 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2911 if test "x$LINE" != x ; then
2912 eval "DEFAULT_$LINE"
2913 else
2914 no_cache=1
2915 fi
2916
2917 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2918
2919fi;
2920
2921 eval "$ac_cv_use_libtiff"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$wxUSE_LIBTIFF" = yes; then
2927 echo "$as_me:$LINENO: result: yes" >&5
2928echo "${ECHO_T}yes" >&6
2929 elif test "$wxUSE_LIBTIFF" = no; then
2930 echo "$as_me:$LINENO: result: no" >&5
2931echo "${ECHO_T}no" >&6
2932 elif test "$wxUSE_LIBTIFF" = sys; then
2933 echo "$as_me:$LINENO: result: system version" >&5
2934echo "${ECHO_T}system version" >&6
2935 elif test "$wxUSE_LIBTIFF" = builtin; then
2936 echo "$as_me:$LINENO: result: builtin version" >&5
2937echo "${ECHO_T}builtin version" >&6
2938 else
2939 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2940echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2941 { (exit 1); exit 1; }; }
2942 fi
2943
2944
2945 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2946echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2947 no_cache=0
2948
2949# Check whether --with-libxpm or --without-libxpm was given.
2950if test "${with_libxpm+set}" = set; then
2951 withval="$with_libxpm"
2952
2953 if test "$withval" = yes; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2955 elif test "$withval" = no; then
2956 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2957 elif test "$withval" = sys; then
2958 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2959 elif test "$withval" = builtin; then
2960 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2961 else
2962 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2963echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966
2967else
2968
2969 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2970 if test "x$LINE" != x ; then
2971 eval "DEFAULT_$LINE"
2972 else
2973 no_cache=1
2974 fi
2975
2976 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2977
2978fi;
2979
2980 eval "$ac_cv_use_libxpm"
2981 if test "$no_cache" != 1; then
2982 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2983 fi
2984
2985 if test "$wxUSE_LIBXPM" = yes; then
2986 echo "$as_me:$LINENO: result: yes" >&5
2987echo "${ECHO_T}yes" >&6
2988 elif test "$wxUSE_LIBXPM" = no; then
2989 echo "$as_me:$LINENO: result: no" >&5
2990echo "${ECHO_T}no" >&6
2991 elif test "$wxUSE_LIBXPM" = sys; then
2992 echo "$as_me:$LINENO: result: system version" >&5
2993echo "${ECHO_T}system version" >&6
2994 elif test "$wxUSE_LIBXPM" = builtin; then
2995 echo "$as_me:$LINENO: result: builtin version" >&5
2996echo "${ECHO_T}builtin version" >&6
2997 else
2998 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2999echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3000 { (exit 1); exit 1; }; }
3001 fi
3002
3003
3004 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3005echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3006 no_cache=0
3007
3008# Check whether --with-libmspack or --without-libmspack was given.
3009if test "${with_libmspack+set}" = set; then
3010 withval="$with_libmspack"
3011
3012 if test "$withval" = yes; then
3013 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3014 else
3015 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3016 fi
3017
3018else
3019
3020 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3028
3029fi;
3030
3031 eval "$ac_cv_use_libmspack"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_LIBMSPACK" = yes; then
3037 echo "$as_me:$LINENO: result: yes" >&5
3038echo "${ECHO_T}yes" >&6
3039 else
3040 echo "$as_me:$LINENO: result: no" >&5
3041echo "${ECHO_T}no" >&6
3042 fi
3043
3044
3045 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3046echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3047 no_cache=0
3048
3049# Check whether --with-sdl or --without-sdl was given.
3050if test "${with_sdl+set}" = set; then
3051 withval="$with_sdl"
3052
3053 if test "$withval" = yes; then
3054 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3055 else
3056 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3057 fi
3058
3059else
3060
3061 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3062 if test "x$LINE" != x ; then
3063 eval "DEFAULT_$LINE"
3064 else
3065 no_cache=1
3066 fi
3067
3068 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3069
3070fi;
3071
3072 eval "$ac_cv_use_sdl"
3073 if test "$no_cache" != 1; then
3074 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3075 fi
3076
3077 if test "$wxUSE_LIBSDL" = yes; then
3078 echo "$as_me:$LINENO: result: yes" >&5
3079echo "${ECHO_T}yes" >&6
3080 else
3081 echo "$as_me:$LINENO: result: no" >&5
3082echo "${ECHO_T}no" >&6
3083 fi
3084
3085
d1c38808
VZ
3086 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3087echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3088 no_cache=0
3089
3090# Check whether --with-gnomeprint or --without-gnomeprint was given.
3091if test "${with_gnomeprint+set}" = set; then
3092 withval="$with_gnomeprint"
3093
3094 if test "$withval" = yes; then
3095 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3096 else
3097 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3098 fi
3099
3100else
3101
3102 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3103 if test "x$LINE" != x ; then
3104 eval "DEFAULT_$LINE"
3105 else
3106 no_cache=1
3107 fi
3108
3109 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3110
3111fi;
3112
3113 eval "$ac_cv_use_gnomeprint"
3114 if test "$no_cache" != 1; then
3115 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3116 fi
3117
3118 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3119 echo "$as_me:$LINENO: result: yes" >&5
3120echo "${ECHO_T}yes" >&6
3121 else
3122 echo "$as_me:$LINENO: result: no" >&5
3123echo "${ECHO_T}no" >&6
3124 fi
3125
3126
a848cd7e
SC
3127 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3128echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3129 no_cache=0
3130
3131# Check whether --with-opengl or --without-opengl was given.
3132if test "${with_opengl+set}" = set; then
3133 withval="$with_opengl"
3134
3135 if test "$withval" = yes; then
3136 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3137 else
3138 ac_cv_use_opengl='wxUSE_OPENGL=no'
3139 fi
3140
3141else
3142
3143 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3151
3152fi;
3153
3154 eval "$ac_cv_use_opengl"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_OPENGL" = yes; then
3160 echo "$as_me:$LINENO: result: yes" >&5
3161echo "${ECHO_T}yes" >&6
3162 else
3163 echo "$as_me:$LINENO: result: no" >&5
3164echo "${ECHO_T}no" >&6
3165 fi
3166
3167
3168fi
3169
3170
3171 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3172echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3173 no_cache=0
3174
3175# Check whether --with-dmalloc or --without-dmalloc was given.
3176if test "${with_dmalloc+set}" = set; then
3177 withval="$with_dmalloc"
3178
3179 if test "$withval" = yes; then
3180 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3181 else
3182 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3183 fi
3184
3185else
3186
3187 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3195
3196fi;
3197
3198 eval "$ac_cv_use_dmalloc"
3199 if test "$no_cache" != 1; then
3200 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3201 fi
3202
3203 if test "$wxUSE_DMALLOC" = yes; then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205echo "${ECHO_T}yes" >&6
3206 else
3207 echo "$as_me:$LINENO: result: no" >&5
3208echo "${ECHO_T}no" >&6
3209 fi
3210
3211
3212 echo "$as_me:$LINENO: checking for --with-regex" >&5
3213echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3214 no_cache=0
3215
3216# Check whether --with-regex or --without-regex was given.
3217if test "${with_regex+set}" = set; then
3218 withval="$with_regex"
3219
3220 if test "$withval" = yes; then
3221 ac_cv_use_regex='wxUSE_REGEX=yes'
3222 elif test "$withval" = no; then
3223 ac_cv_use_regex='wxUSE_REGEX=no'
3224 elif test "$withval" = sys; then
3225 ac_cv_use_regex='wxUSE_REGEX=sys'
3226 elif test "$withval" = builtin; then
3227 ac_cv_use_regex='wxUSE_REGEX=builtin'
3228 else
3229 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3230echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3231 { (exit 1); exit 1; }; }
3232 fi
3233
3234else
3235
3236 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3237 if test "x$LINE" != x ; then
3238 eval "DEFAULT_$LINE"
3239 else
3240 no_cache=1
3241 fi
3242
3243 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3244
3245fi;
3246
3247 eval "$ac_cv_use_regex"
3248 if test "$no_cache" != 1; then
3249 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3250 fi
3251
3252 if test "$wxUSE_REGEX" = yes; then
3253 echo "$as_me:$LINENO: result: yes" >&5
3254echo "${ECHO_T}yes" >&6
3255 elif test "$wxUSE_REGEX" = no; then
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
3258 elif test "$wxUSE_REGEX" = sys; then
3259 echo "$as_me:$LINENO: result: system version" >&5
3260echo "${ECHO_T}system version" >&6
3261 elif test "$wxUSE_REGEX" = builtin; then
3262 echo "$as_me:$LINENO: result: builtin version" >&5
3263echo "${ECHO_T}builtin version" >&6
3264 else
3265 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3266echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270
3271 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3272echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3273 no_cache=0
3274
3275# Check whether --with-zlib or --without-zlib was given.
3276if test "${with_zlib+set}" = set; then
3277 withval="$with_zlib"
3278
3279 if test "$withval" = yes; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3281 elif test "$withval" = no; then
3282 ac_cv_use_zlib='wxUSE_ZLIB=no'
3283 elif test "$withval" = sys; then
3284 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3285 elif test "$withval" = builtin; then
3286 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3287 else
3288 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3289echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3290 { (exit 1); exit 1; }; }
3291 fi
3292
3293else
3294
3295 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3303
3304fi;
3305
3306 eval "$ac_cv_use_zlib"
3307 if test "$no_cache" != 1; then
3308 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3309 fi
3310
3311 if test "$wxUSE_ZLIB" = yes; then
3312 echo "$as_me:$LINENO: result: yes" >&5
3313echo "${ECHO_T}yes" >&6
3314 elif test "$wxUSE_ZLIB" = no; then
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317 elif test "$wxUSE_ZLIB" = sys; then
3318 echo "$as_me:$LINENO: result: system version" >&5
3319echo "${ECHO_T}system version" >&6
3320 elif test "$wxUSE_ZLIB" = builtin; then
3321 echo "$as_me:$LINENO: result: builtin version" >&5
3322echo "${ECHO_T}builtin version" >&6
3323 else
3324 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3325echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3326 { (exit 1); exit 1; }; }
3327 fi
3328
3329
3330 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3331echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3332 no_cache=0
3333
3334# Check whether --with-odbc or --without-odbc was given.
3335if test "${with_odbc+set}" = set; then
3336 withval="$with_odbc"
3337
3338 if test "$withval" = yes; then
3339 ac_cv_use_odbc='wxUSE_ODBC=yes'
3340 elif test "$withval" = no; then
3341 ac_cv_use_odbc='wxUSE_ODBC=no'
3342 elif test "$withval" = sys; then
3343 ac_cv_use_odbc='wxUSE_ODBC=sys'
3344 elif test "$withval" = builtin; then
3345 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3346 else
3347 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3348echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3349 { (exit 1); exit 1; }; }
3350 fi
3351
3352else
3353
3354 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3355 if test "x$LINE" != x ; then
3356 eval "DEFAULT_$LINE"
3357 else
3358 no_cache=1
3359 fi
3360
3361 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3362
3363fi;
3364
3365 eval "$ac_cv_use_odbc"
3366 if test "$no_cache" != 1; then
3367 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3368 fi
3369
3370 if test "$wxUSE_ODBC" = yes; then
3371 echo "$as_me:$LINENO: result: yes" >&5
3372echo "${ECHO_T}yes" >&6
3373 elif test "$wxUSE_ODBC" = no; then
3374 echo "$as_me:$LINENO: result: no" >&5
3375echo "${ECHO_T}no" >&6
3376 elif test "$wxUSE_ODBC" = sys; then
3377 echo "$as_me:$LINENO: result: system version" >&5
3378echo "${ECHO_T}system version" >&6
3379 elif test "$wxUSE_ODBC" = builtin; then
3380 echo "$as_me:$LINENO: result: builtin version" >&5
3381echo "${ECHO_T}builtin version" >&6
3382 else
3383 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3384echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3385 { (exit 1); exit 1; }; }
3386 fi
3387
3388
3389 echo "$as_me:$LINENO: checking for --with-expat" >&5
3390echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3391 no_cache=0
3392
3393# Check whether --with-expat or --without-expat was given.
3394if test "${with_expat+set}" = set; then
3395 withval="$with_expat"
3396
3397 if test "$withval" = yes; then
3398 ac_cv_use_expat='wxUSE_EXPAT=yes'
3399 elif test "$withval" = no; then
3400 ac_cv_use_expat='wxUSE_EXPAT=no'
3401 elif test "$withval" = sys; then
3402 ac_cv_use_expat='wxUSE_EXPAT=sys'
3403 elif test "$withval" = builtin; then
3404 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3405 else
3406 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3407echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3408 { (exit 1); exit 1; }; }
3409 fi
3410
3411else
3412
3413 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3421
3422fi;
3423
3424 eval "$ac_cv_use_expat"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_EXPAT" = yes; then
3430 echo "$as_me:$LINENO: result: yes" >&5
3431echo "${ECHO_T}yes" >&6
3432 elif test "$wxUSE_EXPAT" = no; then
3433 echo "$as_me:$LINENO: result: no" >&5
3434echo "${ECHO_T}no" >&6
3435 elif test "$wxUSE_EXPAT" = sys; then
3436 echo "$as_me:$LINENO: result: system version" >&5
3437echo "${ECHO_T}system version" >&6
3438 elif test "$wxUSE_EXPAT" = builtin; then
3439 echo "$as_me:$LINENO: result: builtin version" >&5
3440echo "${ECHO_T}builtin version" >&6
3441 else
3442 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3443echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3444 { (exit 1); exit 1; }; }
3445 fi
3446
3447
3448
3449
3450 enablestring=
3451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3452echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3453 no_cache=0
3454 # Check whether --enable-shared or --disable-shared was given.
3455if test "${enable_shared+set}" = set; then
3456 enableval="$enable_shared"
3457
3458 if test "$enableval" = yes; then
3459 ac_cv_use_shared='wxUSE_SHARED=yes'
3460 else
3461 ac_cv_use_shared='wxUSE_SHARED=no'
3462 fi
3463
3464else
3465
3466 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3467 if test "x$LINE" != x ; then
3468 eval "DEFAULT_$LINE"
3469 else
3470 no_cache=1
3471 fi
3472
3473 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3474
3475fi;
3476
3477 eval "$ac_cv_use_shared"
3478 if test "$no_cache" != 1; then
3479 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3480 fi
3481
3482 if test "$wxUSE_SHARED" = yes; then
3483 echo "$as_me:$LINENO: result: yes" >&5
3484echo "${ECHO_T}yes" >&6
3485 else
3486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488 fi
3489
3490
3491 enablestring=
3492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3493echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3494 no_cache=0
3495 # Check whether --enable-optimise or --disable-optimise was given.
3496if test "${enable_optimise+set}" = set; then
3497 enableval="$enable_optimise"
3498
3499 if test "$enableval" = yes; then
3500 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3501 else
3502 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3503 fi
3504
3505else
3506
3507 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3515
3516fi;
3517
3518 eval "$ac_cv_use_optimise"
3519 if test "$no_cache" != 1; then
3520 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3521 fi
3522
3523 if test "$wxUSE_OPTIMISE" = yes; then
3524 echo "$as_me:$LINENO: result: yes" >&5
3525echo "${ECHO_T}yes" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
3529 fi
3530
3531
3532 enablestring=
3533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3534echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3535 no_cache=0
3536 # Check whether --enable-debug or --disable-debug was given.
3537if test "${enable_debug+set}" = set; then
3538 enableval="$enable_debug"
3539
3540 if test "$enableval" = yes; then
3541 ac_cv_use_debug='wxUSE_DEBUG=yes'
3542 else
3543 ac_cv_use_debug='wxUSE_DEBUG=no'
3544 fi
3545
3546else
3547
3548 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3549 if test "x$LINE" != x ; then
3550 eval "DEFAULT_$LINE"
3551 else
3552 no_cache=1
3553 fi
3554
3555 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3556
3557fi;
3558
3559 eval "$ac_cv_use_debug"
3560 if test "$no_cache" != 1; then
3561 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3562 fi
3563
3564 if test "$wxUSE_DEBUG" = yes; then
3565 echo "$as_me:$LINENO: result: yes" >&5
3566echo "${ECHO_T}yes" >&6
3567 else
3568 echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6
3570 fi
3571
3572
3573 enablestring=
3574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3575echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3576 no_cache=0
3577 # Check whether --enable-stl or --disable-stl was given.
3578if test "${enable_stl+set}" = set; then
3579 enableval="$enable_stl"
3580
3581 if test "$enableval" = yes; then
3582 ac_cv_use_stl='wxUSE_STL=yes'
3583 else
3584 ac_cv_use_stl='wxUSE_STL=no'
3585 fi
3586
3587else
3588
3589 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3590 if test "x$LINE" != x ; then
3591 eval "DEFAULT_$LINE"
3592 else
3593 no_cache=1
3594 fi
3595
3596 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3597
3598fi;
3599
3600 eval "$ac_cv_use_stl"
3601 if test "$no_cache" != 1; then
3602 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3603 fi
3604
3605 if test "$wxUSE_STL" = yes; then
3606 echo "$as_me:$LINENO: result: yes" >&5
3607echo "${ECHO_T}yes" >&6
3608 else
3609 echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
3611 fi
3612
3613if test "$USE_OS2" = "1"; then
3614
3615 enablestring=
3616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3617echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3618 no_cache=0
3619 # Check whether --enable-omf or --disable-omf was given.
3620if test "${enable_omf+set}" = set; then
3621 enableval="$enable_omf"
3622
3623 if test "$enableval" = yes; then
3624 ac_cv_use_omf='wxUSE_OMF=yes'
3625 else
3626 ac_cv_use_omf='wxUSE_OMF=no'
3627 fi
3628
3629else
3630
3631 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3639
3640fi;
3641
3642 eval "$ac_cv_use_omf"
3643 if test "$no_cache" != 1; then
3644 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3645 fi
3646
3647 if test "$wxUSE_OMF" = yes; then
3648 echo "$as_me:$LINENO: result: yes" >&5
3649echo "${ECHO_T}yes" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no" >&5
3652echo "${ECHO_T}no" >&6
3653 fi
3654
3655fi
3656
3657if test "$wxUSE_DEBUG" = "yes"; then
3658 DEFAULT_wxUSE_DEBUG_FLAG=yes
3659 DEFAULT_wxUSE_DEBUG_INFO=yes
3660 BUILD=debug
3661elif test "$wxUSE_DEBUG" = "no"; then
3662 DEFAULT_wxUSE_DEBUG_FLAG=no
3663 DEFAULT_wxUSE_DEBUG_INFO=no
3664 BUILD=release
3665fi
3666
3667
3668 enablestring=
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3671 no_cache=0
3672 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3673if test "${enable_debug_flag+set}" = set; then
3674 enableval="$enable_debug_flag"
3675
3676 if test "$enableval" = yes; then
3677 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3678 else
3679 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3680 fi
3681
3682else
3683
3684 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3692
3693fi;
3694
3695 eval "$ac_cv_use_debug_flag"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DEBUG_FLAG" = yes; then
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
3703 else
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
3706 fi
3707
3708
3709 enablestring=
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3712 no_cache=0
3713 # Check whether --enable-debug_info or --disable-debug_info was given.
3714if test "${enable_debug_info+set}" = set; then
3715 enableval="$enable_debug_info"
3716
3717 if test "$enableval" = yes; then
3718 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3719 else
3720 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3721 fi
3722
3723else
3724
3725 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3733
3734fi;
3735
3736 eval "$ac_cv_use_debug_info"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_DEBUG_INFO" = yes; then
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
3747 fi
3748
3749
3750 enablestring=
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3753 no_cache=0
3754 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3755if test "${enable_debug_gdb+set}" = set; then
3756 enableval="$enable_debug_gdb"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3760 else
3761 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3762 fi
3763
3764else
3765
3766 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3774
3775fi;
3776
3777 eval "$ac_cv_use_debug_gdb"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$wxUSE_DEBUG_GDB" = yes; then
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
3785 else
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
3788 fi
3789
3790
3791 enablestring=
3792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3793echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3794 no_cache=0
3795 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3796if test "${enable_debug_cntxt+set}" = set; then
3797 enableval="$enable_debug_cntxt"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3801 else
3802 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3803 fi
3804
3805else
3806
3807 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3815
3816fi;
3817
3818 eval "$ac_cv_use_debug_cntxt"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3824 echo "$as_me:$LINENO: result: yes" >&5
3825echo "${ECHO_T}yes" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
3829 fi
3830
3831
3832 enablestring=
3833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3834echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3835 no_cache=0
3836 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3837if test "${enable_mem_tracing+set}" = set; then
3838 enableval="$enable_mem_tracing"
3839
3840 if test "$enableval" = yes; then
3841 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3842 else
3843 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3844 fi
3845
3846else
3847
3848 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3849 if test "x$LINE" != x ; then
3850 eval "DEFAULT_$LINE"
3851 else
3852 no_cache=1
3853 fi
3854
3855 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3856
3857fi;
3858
3859 eval "$ac_cv_use_mem_tracing"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_MEM_TRACING" = yes; then
3865 echo "$as_me:$LINENO: result: yes" >&5
3866echo "${ECHO_T}yes" >&6
3867 else
3868 echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870 fi
3871
3872
3873 enablestring=
3874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3875echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3876 no_cache=0
3877 # Check whether --enable-profile or --disable-profile was given.
3878if test "${enable_profile+set}" = set; then
3879 enableval="$enable_profile"
3880
3881 if test "$enableval" = yes; then
3882 ac_cv_use_profile='wxUSE_PROFILE=yes'
3883 else
3884 ac_cv_use_profile='wxUSE_PROFILE=no'
3885 fi
3886
3887else
3888
3889 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3897
3898fi;
3899
3900 eval "$ac_cv_use_profile"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_PROFILE" = yes; then
3906 echo "$as_me:$LINENO: result: yes" >&5
3907echo "${ECHO_T}yes" >&6
3908 else
3909 echo "$as_me:$LINENO: result: no" >&5
3910echo "${ECHO_T}no" >&6
3911 fi
3912
3913
3914 enablestring=
3915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3916echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3917 no_cache=0
3918 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3919if test "${enable_no_rtti+set}" = set; then
3920 enableval="$enable_no_rtti"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3924 else
3925 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3926 fi
3927
3928else
3929
3930 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3938
3939fi;
3940
3941 eval "$ac_cv_use_no_rtti"
3942 if test "$no_cache" != 1; then
3943 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3944 fi
3945
3946 if test "$wxUSE_NO_RTTI" = yes; then
3947 echo "$as_me:$LINENO: result: yes" >&5
3948echo "${ECHO_T}yes" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952 fi
3953
3954
3955 enablestring=
3956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3957echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3958 no_cache=0
3959 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3960if test "${enable_no_exceptions+set}" = set; then
3961 enableval="$enable_no_exceptions"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3965 else
3966 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3979
3980fi;
3981
3982 eval "$ac_cv_use_no_exceptions"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3988 echo "$as_me:$LINENO: result: yes" >&5
3989echo "${ECHO_T}yes" >&6
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
3993 fi
3994
3995
3996 enablestring=
3997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3998echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3999 no_cache=0
4000 # Check whether --enable-permissive or --disable-permissive was given.
4001if test "${enable_permissive+set}" = set; then
4002 enableval="$enable_permissive"
4003
4004 if test "$enableval" = yes; then
4005 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4006 else
4007 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4008 fi
4009
4010else
4011
4012 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4013 if test "x$LINE" != x ; then
4014 eval "DEFAULT_$LINE"
4015 else
4016 no_cache=1
4017 fi
4018
4019 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4020
4021fi;
4022
4023 eval "$ac_cv_use_permissive"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_PERMISSIVE" = yes; then
4029 echo "$as_me:$LINENO: result: yes" >&5
4030echo "${ECHO_T}yes" >&6
4031 else
4032 echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034 fi
4035
4036
4037 enablestring=
4038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4039echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4040 no_cache=0
4041 # Check whether --enable-no_deps or --disable-no_deps was given.
4042if test "${enable_no_deps+set}" = set; then
4043 enableval="$enable_no_deps"
4044
4045 if test "$enableval" = yes; then
4046 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4047 else
4048 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4049 fi
4050
4051else
4052
4053 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4054 if test "x$LINE" != x ; then
4055 eval "DEFAULT_$LINE"
4056 else
4057 no_cache=1
4058 fi
4059
4060 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4061
4062fi;
4063
4064 eval "$ac_cv_use_no_deps"
4065 if test "$no_cache" != 1; then
4066 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4067 fi
4068
4069 if test "$wxUSE_NO_DEPS" = yes; then
4070 echo "$as_me:$LINENO: result: yes" >&5
4071echo "${ECHO_T}yes" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no" >&5
4074echo "${ECHO_T}no" >&6
4075 fi
4076
4077
4078
4079 enablestring=
4080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4081echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4082 no_cache=0
4083 # Check whether --enable-compat22 or --disable-compat22 was given.
4084if test "${enable_compat22+set}" = set; then
4085 enableval="$enable_compat22"
4086
4087 if test "$enableval" = yes; then
4088 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4089 else
4090 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4091 fi
4092
4093else
4094
4095 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4103
4104fi;
4105
4106 eval "$ac_cv_use_compat22"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4112 echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114 else
4115 echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117 fi
4118
4119
4120 enablestring=disable
4121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4122echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4123 no_cache=0
4124 # Check whether --enable-compat24 or --disable-compat24 was given.
4125if test "${enable_compat24+set}" = set; then
4126 enableval="$enable_compat24"
4127
4128 if test "$enableval" = yes; then
4129 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4130 else
4131 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4132 fi
4133
4134else
4135
4136 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
4143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4144
4145fi;
4146
4147 eval "$ac_cv_use_compat24"
4148 if test "$no_cache" != 1; then
4149 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4150 fi
4151
4152 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4153 echo "$as_me:$LINENO: result: yes" >&5
4154echo "${ECHO_T}yes" >&6
4155 else
4156 echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
4158 fi
4159
4160
ffa0583f
RL
4161
4162 enablestring=
4163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4164echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4165 no_cache=0
4166 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4167if test "${enable_rpath+set}" = set; then
4168 enableval="$enable_rpath"
ffa0583f
RL
4169
4170 if test "$enableval" = yes; then
4171 ac_cv_use_rpath='wxUSE_RPATH=yes'
4172 else
4173 ac_cv_use_rpath='wxUSE_RPATH=no'
4174 fi
4175
4176else
4177
4178 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4179 if test "x$LINE" != x ; then
4180 eval "DEFAULT_$LINE"
4181 else
4182 no_cache=1
4183 fi
4184
4185 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4186
a848cd7e
SC
4187fi;
4188
ffa0583f
RL
4189 eval "$ac_cv_use_rpath"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_RPATH" = yes; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200 fi
4201
a848cd7e
SC
4202
4203
4204
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-intl or --disable-intl was given.
4211if test "${enable_intl+set}" = set; then
4212 enableval="$enable_intl"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_intl='wxUSE_INTL=yes'
4216 else
4217 ac_cv_use_intl='wxUSE_INTL=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4230
4231fi;
4232
4233 eval "$ac_cv_use_intl"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_INTL" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
4246
4247 enablestring=
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4250 no_cache=0
4251 # Check whether --enable-config or --disable-config was given.
4252if test "${enable_config+set}" = set; then
4253 enableval="$enable_config"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_config='wxUSE_CONFIG=yes'
4257 else
4258 ac_cv_use_config='wxUSE_CONFIG=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4271
4272fi;
4273
4274 eval "$ac_cv_use_config"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_CONFIG" = yes; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288
4289 enablestring=
4290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4291echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4292 no_cache=0
4293 # Check whether --enable-protocols or --disable-protocols was given.
4294if test "${enable_protocols+set}" = set; then
4295 enableval="$enable_protocols"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4299 else
4300 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4313
4314fi;
4315
4316 eval "$ac_cv_use_protocols"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_PROTOCOL" = yes; then
4322 echo "$as_me:$LINENO: result: yes" >&5
4323echo "${ECHO_T}yes" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
4327 fi
4328
4329
4330 enablestring=
4331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4332echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4333 no_cache=0
4334 # Check whether --enable-ftp or --disable-ftp was given.
4335if test "${enable_ftp+set}" = set; then
4336 enableval="$enable_ftp"
4337
4338 if test "$enableval" = yes; then
4339 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4340 else
4341 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4342 fi
4343
4344else
4345
4346 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4354
4355fi;
4356
4357 eval "$ac_cv_use_ftp"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4363 echo "$as_me:$LINENO: result: yes" >&5
4364echo "${ECHO_T}yes" >&6
4365 else
4366 echo "$as_me:$LINENO: result: no" >&5
4367echo "${ECHO_T}no" >&6
4368 fi
4369
4370
4371 enablestring=
4372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4373echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4374 no_cache=0
4375 # Check whether --enable-http or --disable-http was given.
4376if test "${enable_http+set}" = set; then
4377 enableval="$enable_http"
4378
4379 if test "$enableval" = yes; then
4380 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4381 else
4382 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4383 fi
4384
4385else
4386
4387 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
4390 else
4391 no_cache=1
4392 fi
4393
4394 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4395
4396fi;
4397
4398 eval "$ac_cv_use_http"
4399 if test "$no_cache" != 1; then
4400 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4401 fi
4402
4403 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4404 echo "$as_me:$LINENO: result: yes" >&5
4405echo "${ECHO_T}yes" >&6
4406 else
4407 echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6
4409 fi
4410
4411
4412 enablestring=
4413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4414echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4415 no_cache=0
4416 # Check whether --enable-fileproto or --disable-fileproto was given.
4417if test "${enable_fileproto+set}" = set; then
4418 enableval="$enable_fileproto"
4419
4420 if test "$enableval" = yes; then
4421 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4422 else
4423 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4424 fi
4425
4426else
4427
4428 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4429 if test "x$LINE" != x ; then
4430 eval "DEFAULT_$LINE"
4431 else
4432 no_cache=1
4433 fi
4434
4435 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4436
4437fi;
4438
4439 eval "$ac_cv_use_fileproto"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4445 echo "$as_me:$LINENO: result: yes" >&5
4446echo "${ECHO_T}yes" >&6
4447 else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450 fi
4451
4452
4453 enablestring=
4454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4455echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4456 no_cache=0
4457 # Check whether --enable-sockets or --disable-sockets was given.
4458if test "${enable_sockets+set}" = set; then
4459 enableval="$enable_sockets"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4463 else
4464 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4465 fi
4466
4467else
4468
4469 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4477
4478fi;
4479
4480 eval "$ac_cv_use_sockets"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_SOCKETS" = yes; then
4486 echo "$as_me:$LINENO: result: yes" >&5
4487echo "${ECHO_T}yes" >&6
4488 else
4489 echo "$as_me:$LINENO: result: no" >&5
4490echo "${ECHO_T}no" >&6
4491 fi
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-ole or --disable-ole was given.
4499if test "${enable_ole+set}" = set; then
4500 enableval="$enable_ole"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_ole='wxUSE_OLE=yes'
4504 else
4505 ac_cv_use_ole='wxUSE_OLE=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4518
4519fi;
4520
4521 eval "$ac_cv_use_ole"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_OLE" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535 enablestring=
4536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4537echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4538 no_cache=0
4539 # Check whether --enable-dataobj or --disable-dataobj was given.
4540if test "${enable_dataobj+set}" = set; then
4541 enableval="$enable_dataobj"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4545 else
4546 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4559
4560fi;
4561
4562 eval "$ac_cv_use_dataobj"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_DATAOBJ" = yes; then
4568 echo "$as_me:$LINENO: result: yes" >&5
4569echo "${ECHO_T}yes" >&6
4570 else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573 fi
4574
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-ipc or --disable-ipc was given.
4582if test "${enable_ipc+set}" = set; then
4583 enableval="$enable_ipc"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_ipc='wxUSE_IPC=yes'
4587 else
4588 ac_cv_use_ipc='wxUSE_IPC=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4601
4602fi;
4603
4604 eval "$ac_cv_use_ipc"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_IPC" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618
4619 enablestring=
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4622 no_cache=0
4623 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4624if test "${enable_apple_ieee+set}" = set; then
4625 enableval="$enable_apple_ieee"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4629 else
4630 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4643
4644fi;
4645
4646 eval "$ac_cv_use_apple_ieee"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_APPLE_IEEE" = yes; then
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654 else
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657 fi
4658
4659
4660 enablestring=
4661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4662echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4663 no_cache=0
4664 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4665if test "${enable_catch_segvs+set}" = set; then
4666 enableval="$enable_catch_segvs"
4667
4668 if test "$enableval" = yes; then
4669 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4670 else
4671 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4672 fi
4673
4674else
4675
4676 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4677 if test "x$LINE" != x ; then
4678 eval "DEFAULT_$LINE"
4679 else
4680 no_cache=1
4681 fi
4682
4683 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4684
4685fi;
4686
4687 eval "$ac_cv_use_catch_segvs"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4690 fi
4691
4692 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4693 echo "$as_me:$LINENO: result: yes" >&5
4694echo "${ECHO_T}yes" >&6
4695 else
4696 echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6
4698 fi
4699
4700
4701 enablestring=
4702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4703echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4704 no_cache=0
4705 # Check whether --enable-cmdline or --disable-cmdline was given.
4706if test "${enable_cmdline+set}" = set; then
4707 enableval="$enable_cmdline"
4708
4709 if test "$enableval" = yes; then
4710 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4711 else
4712 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4713 fi
4714
4715else
4716
4717 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
4724 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4725
4726fi;
4727
4728 eval "$ac_cv_use_cmdline"
4729 if test "$no_cache" != 1; then
4730 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4731 fi
4732
4733 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4734 echo "$as_me:$LINENO: result: yes" >&5
4735echo "${ECHO_T}yes" >&6
4736 else
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
4739 fi
4740
4741
4742 enablestring=
4743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4744echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4745 no_cache=0
4746 # Check whether --enable-datetime or --disable-datetime was given.
4747if test "${enable_datetime+set}" = set; then
4748 enableval="$enable_datetime"
4749
4750 if test "$enableval" = yes; then
4751 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4752 else
4753 ac_cv_use_datetime='wxUSE_DATETIME=no'
4754 fi
4755
4756else
4757
4758 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4759 if test "x$LINE" != x ; then
4760 eval "DEFAULT_$LINE"
4761 else
4762 no_cache=1
4763 fi
4764
4765 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4766
4767fi;
4768
4769 eval "$ac_cv_use_datetime"
4770 if test "$no_cache" != 1; then
4771 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4772 fi
4773
4774 if test "$wxUSE_DATETIME" = yes; then
4775 echo "$as_me:$LINENO: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
4777 else
4778 echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
4780 fi
4781
4782
4783 enablestring=
4784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4785echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4786 no_cache=0
4787 # Check whether --enable-dialupman or --disable-dialupman was given.
4788if test "${enable_dialupman+set}" = set; then
4789 enableval="$enable_dialupman"
4790
4791 if test "$enableval" = yes; then
4792 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4793 else
4794 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4795 fi
4796
4797else
4798
4799 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4800 if test "x$LINE" != x ; then
4801 eval "DEFAULT_$LINE"
4802 else
4803 no_cache=1
4804 fi
4805
4806 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4807
4808fi;
4809
4810 eval "$ac_cv_use_dialupman"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4816 echo "$as_me:$LINENO: result: yes" >&5
4817echo "${ECHO_T}yes" >&6
4818 else
4819 echo "$as_me:$LINENO: result: no" >&5
4820echo "${ECHO_T}no" >&6
4821 fi
4822
4823
4824 enablestring=
4825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4826echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4827 no_cache=0
4828 # Check whether --enable-dynlib or --disable-dynlib was given.
4829if test "${enable_dynlib+set}" = set; then
4830 enableval="$enable_dynlib"
4831
4832 if test "$enableval" = yes; then
4833 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4834 else
4835 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4836 fi
4837
4838else
4839
4840 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4841 if test "x$LINE" != x ; then
4842 eval "DEFAULT_$LINE"
4843 else
4844 no_cache=1
4845 fi
4846
4847 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4848
4849fi;
4850
4851 eval "$ac_cv_use_dynlib"
4852 if test "$no_cache" != 1; then
4853 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4854 fi
4855
4856 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4857 echo "$as_me:$LINENO: result: yes" >&5
4858echo "${ECHO_T}yes" >&6
4859 else
4860 echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
4862 fi
4863
4864
4865 enablestring=
4866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4867echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4868 no_cache=0
4869 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4870if test "${enable_dynamicloader+set}" = set; then
4871 enableval="$enable_dynamicloader"
4872
4873 if test "$enableval" = yes; then
4874 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4875 else
4876 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4877 fi
4878
4879else
4880
4881 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4889
4890fi;
4891
4892 eval "$ac_cv_use_dynamicloader"
4893 if test "$no_cache" != 1; then
4894 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4895 fi
4896
4897 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4898 echo "$as_me:$LINENO: result: yes" >&5
4899echo "${ECHO_T}yes" >&6
4900 else
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
4903 fi
4904
4905
4906 enablestring=
4907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4908echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4909 no_cache=0
4910 # Check whether --enable-exceptions or --disable-exceptions was given.
4911if test "${enable_exceptions+set}" = set; then
4912 enableval="$enable_exceptions"
4913
4914 if test "$enableval" = yes; then
4915 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4916 else
4917 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4918 fi
4919
4920else
4921
4922 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
4929 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4930
4931fi;
4932
4933 eval "$ac_cv_use_exceptions"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_EXCEPTIONS" = yes; then
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6
4944 fi
4945
4946
4947 enablestring=
4948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4949echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4950 no_cache=0
4951 # Check whether --enable-ffile or --disable-ffile was given.
4952if test "${enable_ffile+set}" = set; then
4953 enableval="$enable_ffile"
4954
4955 if test "$enableval" = yes; then
4956 ac_cv_use_ffile='wxUSE_FFILE=yes'
4957 else
4958 ac_cv_use_ffile='wxUSE_FFILE=no'
4959 fi
4960
4961else
4962
4963 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
4970 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4971
4972fi;
4973
4974 eval "$ac_cv_use_ffile"
4975 if test "$no_cache" != 1; then
4976 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4977 fi
4978
4979 if test "$wxUSE_FFILE" = yes; then
4980 echo "$as_me:$LINENO: result: yes" >&5
4981echo "${ECHO_T}yes" >&6
4982 else
4983 echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6
4985 fi
4986
4987
4988 enablestring=
4989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4990echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4991 no_cache=0
4992 # Check whether --enable-file or --disable-file was given.
4993if test "${enable_file+set}" = set; then
4994 enableval="$enable_file"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_file='wxUSE_FILE=yes'
4998 else
4999 ac_cv_use_file='wxUSE_FILE=no'
5000 fi
5001
5002else
5003
5004 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5012
5013fi;
5014
5015 eval "$ac_cv_use_file"
5016 if test "$no_cache" != 1; then
5017 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5018 fi
5019
5020 if test "$wxUSE_FILE" = yes; then
5021 echo "$as_me:$LINENO: result: yes" >&5
5022echo "${ECHO_T}yes" >&6
5023 else
5024 echo "$as_me:$LINENO: result: no" >&5
5025echo "${ECHO_T}no" >&6
5026 fi
5027
5028
5029 enablestring=
5030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5031echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5032 no_cache=0
5033 # Check whether --enable-filesystem or --disable-filesystem was given.
5034if test "${enable_filesystem+set}" = set; then
5035 enableval="$enable_filesystem"
5036
5037 if test "$enableval" = yes; then
5038 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5039 else
5040 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5041 fi
5042
5043else
5044
5045 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5053
5054fi;
5055
5056 eval "$ac_cv_use_filesystem"
5057 if test "$no_cache" != 1; then
5058 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5059 fi
5060
5061 if test "$wxUSE_FILESYSTEM" = yes; then
5062 echo "$as_me:$LINENO: result: yes" >&5
5063echo "${ECHO_T}yes" >&6
5064 else
5065 echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
5067 fi
5068
5069
5070 enablestring=
5071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5072echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5073 no_cache=0
5074 # Check whether --enable-fontmap or --disable-fontmap was given.
5075if test "${enable_fontmap+set}" = set; then
5076 enableval="$enable_fontmap"
5077
5078 if test "$enableval" = yes; then
5079 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5080 else
5081 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5082 fi
5083
5084else
5085
5086 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5087 if test "x$LINE" != x ; then
5088 eval "DEFAULT_$LINE"
5089 else
5090 no_cache=1
5091 fi
5092
5093 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5094
5095fi;
5096
5097 eval "$ac_cv_use_fontmap"
5098 if test "$no_cache" != 1; then
5099 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5100 fi
5101
5102 if test "$wxUSE_FONTMAP" = yes; then
5103 echo "$as_me:$LINENO: result: yes" >&5
5104echo "${ECHO_T}yes" >&6
5105 else
5106 echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108 fi
5109
5110
5111 enablestring=
5112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5113echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5114 no_cache=0
5115 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5116if test "${enable_fs_inet+set}" = set; then
5117 enableval="$enable_fs_inet"
5118
5119 if test "$enableval" = yes; then
5120 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5121 else
5122 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5123 fi
5124
5125else
5126
5127 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5128 if test "x$LINE" != x ; then
5129 eval "DEFAULT_$LINE"
5130 else
5131 no_cache=1
5132 fi
5133
5134 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5135
5136fi;
5137
5138 eval "$ac_cv_use_fs_inet"
5139 if test "$no_cache" != 1; then
5140 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5141 fi
5142
5143 if test "$wxUSE_FS_INET" = yes; then
5144 echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6
5146 else
5147 echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149 fi
5150
5151
5152 enablestring=
5153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5154echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5155 no_cache=0
5156 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5157if test "${enable_fs_zip+set}" = set; then
5158 enableval="$enable_fs_zip"
5159
5160 if test "$enableval" = yes; then
5161 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5162 else
5163 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5164 fi
5165
5166else
5167
5168 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5176
5177fi;
5178
5179 eval "$ac_cv_use_fs_zip"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_FS_ZIP" = yes; then
5185 echo "$as_me:$LINENO: result: yes" >&5
5186echo "${ECHO_T}yes" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190 fi
5191
5192
5193 enablestring=
5194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5195echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5196 no_cache=0
5197 # Check whether --enable-geometry or --disable-geometry was given.
5198if test "${enable_geometry+set}" = set; then
5199 enableval="$enable_geometry"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5203 else
5204 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5217
5218fi;
5219
5220 eval "$ac_cv_use_geometry"
5221 if test "$no_cache" != 1; then
5222 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5223 fi
5224
5225 if test "$wxUSE_GEOMETRY" = yes; then
5226 echo "$as_me:$LINENO: result: yes" >&5
5227echo "${ECHO_T}yes" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231 fi
5232
5233
5234 enablestring=
5235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5236echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5237 no_cache=0
5238 # Check whether --enable-log or --disable-log was given.
5239if test "${enable_log+set}" = set; then
5240 enableval="$enable_log"
5241
5242 if test "$enableval" = yes; then
5243 ac_cv_use_log='wxUSE_LOG=yes'
5244 else
5245 ac_cv_use_log='wxUSE_LOG=no'
5246 fi
5247
5248else
5249
5250 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5251 if test "x$LINE" != x ; then
5252 eval "DEFAULT_$LINE"
5253 else
5254 no_cache=1
5255 fi
5256
5257 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5258
5259fi;
5260
5261 eval "$ac_cv_use_log"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_LOG" = yes; then
5267 echo "$as_me:$LINENO: result: yes" >&5
5268echo "${ECHO_T}yes" >&6
5269 else
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272 fi
5273
5274
5275 enablestring=
5276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5277echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5278 no_cache=0
5279 # Check whether --enable-longlong or --disable-longlong was given.
5280if test "${enable_longlong+set}" = set; then
5281 enableval="$enable_longlong"
5282
5283 if test "$enableval" = yes; then
5284 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5285 else
5286 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5287 fi
5288
5289else
5290
5291 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5299
5300fi;
5301
5302 eval "$ac_cv_use_longlong"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_LONGLONG" = yes; then
5308 echo "$as_me:$LINENO: result: yes" >&5
5309echo "${ECHO_T}yes" >&6
5310 else
5311 echo "$as_me:$LINENO: result: no" >&5
5312echo "${ECHO_T}no" >&6
5313 fi
5314
5315
5316 enablestring=
5317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5318echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5319 no_cache=0
5320 # Check whether --enable-mimetype or --disable-mimetype was given.
5321if test "${enable_mimetype+set}" = set; then
5322 enableval="$enable_mimetype"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5326 else
5327 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5328 fi
5329
5330else
5331
5332 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5340
5341fi;
5342
5343 eval "$ac_cv_use_mimetype"
5344 if test "$no_cache" != 1; then
5345 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5346 fi
5347
5348 if test "$wxUSE_MIMETYPE" = yes; then
5349 echo "$as_me:$LINENO: result: yes" >&5
5350echo "${ECHO_T}yes" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
5354 fi
5355
5356
5357 enablestring=
5358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5359echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5360 no_cache=0
5361 # Check whether --enable-mslu or --disable-mslu was given.
5362if test "${enable_mslu+set}" = set; then
5363 enableval="$enable_mslu"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5367 else
5368 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5369 fi
5370
5371else
5372
5373 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5381
5382fi;
5383
5384 eval "$ac_cv_use_mslu"
5385 if test "$no_cache" != 1; then
5386 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5387 fi
5388
5389 if test "$wxUSE_UNICODE_MSLU" = yes; then
5390 echo "$as_me:$LINENO: result: yes" >&5
5391echo "${ECHO_T}yes" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395 fi
5396
5397
5398 enablestring=
5399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5400echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5401 no_cache=0
5402 # Check whether --enable-snglinst or --disable-snglinst was given.
5403if test "${enable_snglinst+set}" = set; then
5404 enableval="$enable_snglinst"
5405
5406 if test "$enableval" = yes; then
5407 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5408 else
5409 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5410 fi
5411
5412else
5413
5414 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5422
5423fi;
5424
5425 eval "$ac_cv_use_snglinst"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5431 echo "$as_me:$LINENO: result: yes" >&5
5432echo "${ECHO_T}yes" >&6
5433 else
5434 echo "$as_me:$LINENO: result: no" >&5
5435echo "${ECHO_T}no" >&6
5436 fi
5437
5438
5439 enablestring=
5440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5441echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5442 no_cache=0
5443 # Check whether --enable-streams or --disable-streams was given.
5444if test "${enable_streams+set}" = set; then
5445 enableval="$enable_streams"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_streams='wxUSE_STREAMS=yes'
5449 else
5450 ac_cv_use_streams='wxUSE_STREAMS=no'
5451 fi
5452
5453else
5454
5455 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5463
5464fi;
5465
5466 eval "$ac_cv_use_streams"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_STREAMS" = yes; then
5472 echo "$as_me:$LINENO: result: yes" >&5
5473echo "${ECHO_T}yes" >&6
5474 else
5475 echo "$as_me:$LINENO: result: no" >&5
5476echo "${ECHO_T}no" >&6
5477 fi
5478
5479
5480 enablestring=
5481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5482echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5483 no_cache=0
5484 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5485if test "${enable_std_iostreams+set}" = set; then
5486 enableval="$enable_std_iostreams"
5487
5488 if test "$enableval" = yes; then
5489 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5490 else
5491 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5492 fi
5493
5494else
5495
5496 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5497 if test "x$LINE" != x ; then
5498 eval "DEFAULT_$LINE"
5499 else
5500 no_cache=1
5501 fi
5502
5503 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5504
5505fi;
5506
5507 eval "$ac_cv_use_std_iostreams"
5508 if test "$no_cache" != 1; then
5509 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5510 fi
5511
5512 if test "$wxUSE_STD_IOSTREAM" = yes; then
5513 echo "$as_me:$LINENO: result: yes" >&5
5514echo "${ECHO_T}yes" >&6
5515 else
5516 echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6
5518 fi
5519
5520
5521 enablestring=
5522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5523echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5524 no_cache=0
5525 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5526if test "${enable_stopwatch+set}" = set; then
5527 enableval="$enable_stopwatch"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5531 else
5532 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5533 fi
5534
5535else
5536
5537 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5545
5546fi;
5547
5548 eval "$ac_cv_use_stopwatch"
5549 if test "$no_cache" != 1; then
5550 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5551 fi
5552
5553 if test "$wxUSE_STOPWATCH" = yes; then
5554 echo "$as_me:$LINENO: result: yes" >&5
5555echo "${ECHO_T}yes" >&6
5556 else
5557 echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559 fi
5560
5561
5562 enablestring=
5563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5564echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5565 no_cache=0
5566 # Check whether --enable-system_options or --disable-system_options was given.
5567if test "${enable_system_options+set}" = set; then
5568 enableval="$enable_system_options"
5569
5570 if test "$enableval" = yes; then
5571 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5572 else
5573 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5574 fi
5575
5576else
5577
5578 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5586
5587fi;
5588
5589 eval "$ac_cv_use_system_options"
5590 if test "$no_cache" != 1; then
5591 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5592 fi
5593
5594 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5595 echo "$as_me:$LINENO: result: yes" >&5
5596echo "${ECHO_T}yes" >&6
5597 else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600 fi
5601
5602
5603 enablestring=
5604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5605echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5606 no_cache=0
5607 # Check whether --enable-textbuf or --disable-textbuf was given.
5608if test "${enable_textbuf+set}" = set; then
5609 enableval="$enable_textbuf"
5610
5611 if test "$enableval" = yes; then
5612 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5613 else
5614 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5615 fi
5616
5617else
5618
5619 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5627
5628fi;
5629
5630 eval "$ac_cv_use_textbuf"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_TEXTBUFFER" = yes; then
5636 echo "$as_me:$LINENO: result: yes" >&5
5637echo "${ECHO_T}yes" >&6
5638 else
5639 echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6
5641 fi
5642
5643
5644 enablestring=
5645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5646echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5647 no_cache=0
5648 # Check whether --enable-textfile or --disable-textfile was given.
5649if test "${enable_textfile+set}" = set; then
5650 enableval="$enable_textfile"
5651
5652 if test "$enableval" = yes; then
5653 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5654 else
5655 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5656 fi
5657
5658else
5659
5660 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5668
5669fi;
5670
5671 eval "$ac_cv_use_textfile"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_TEXTFILE" = yes; then
5677 echo "$as_me:$LINENO: result: yes" >&5
5678echo "${ECHO_T}yes" >&6
5679 else
5680 echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682 fi
5683
5684
5685 enablestring=
5686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5687echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5688 no_cache=0
5689 # Check whether --enable-timer or --disable-timer was given.
5690if test "${enable_timer+set}" = set; then
5691 enableval="$enable_timer"
5692
5693 if test "$enableval" = yes; then
5694 ac_cv_use_timer='wxUSE_TIMER=yes'
5695 else
5696 ac_cv_use_timer='wxUSE_TIMER=no'
5697 fi
5698
5699else
5700
5701 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5702 if test "x$LINE" != x ; then
5703 eval "DEFAULT_$LINE"
5704 else
5705 no_cache=1
5706 fi
5707
5708 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5709
5710fi;
5711
5712 eval "$ac_cv_use_timer"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_TIMER" = yes; then
5718 echo "$as_me:$LINENO: result: yes" >&5
5719echo "${ECHO_T}yes" >&6
5720 else
5721 echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6
5723 fi
5724
5725
5726 enablestring=
5727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5728echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5729 no_cache=0
5730 # Check whether --enable-unicode or --disable-unicode was given.
5731if test "${enable_unicode+set}" = set; then
5732 enableval="$enable_unicode"
5733
5734 if test "$enableval" = yes; then
5735 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5736 else
5737 ac_cv_use_unicode='wxUSE_UNICODE=no'
5738 fi
5739
5740else
5741
5742 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5750
5751fi;
5752
5753 eval "$ac_cv_use_unicode"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_UNICODE" = yes; then
5759 echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6
5761 else
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764 fi
5765
5766
5767 enablestring=
5768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5769echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5770 no_cache=0
5771 # Check whether --enable-sound or --disable-sound was given.
5772if test "${enable_sound+set}" = set; then
5773 enableval="$enable_sound"
5774
5775 if test "$enableval" = yes; then
5776 ac_cv_use_sound='wxUSE_SOUND=yes'
5777 else
5778 ac_cv_use_sound='wxUSE_SOUND=no'
5779 fi
5780
5781else
5782
5783 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5791
5792fi;
5793
5794 eval "$ac_cv_use_sound"
5795 if test "$no_cache" != 1; then
5796 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5797 fi
5798
5799 if test "$wxUSE_SOUND" = yes; then
5800 echo "$as_me:$LINENO: result: yes" >&5
5801echo "${ECHO_T}yes" >&6
5802 else
5803 echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6
5805 fi
5806
5807
3b57de8b
RL
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5813if test "${enable_mediactrl+set}" = set; then
5814 enableval="$enable_mediactrl"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5818 else
5819 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5832
5833fi;
5834
5835 eval "$ac_cv_use_mediactrl"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_MEDIACTRL" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
a848cd7e
SC
5849 enablestring=
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5852 no_cache=0
5853 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5854if test "${enable_wxprintfv+set}" = set; then
5855 enableval="$enable_wxprintfv"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5859 else
5860 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5873
5874fi;
5875
5876 eval "$ac_cv_use_wxprintfv"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-zipstream or --disable-zipstream was given.
5895if test "${enable_zipstream+set}" = set; then
5896 enableval="$enable_zipstream"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5900 else
5901 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5914
5915fi;
5916
5917 eval "$ac_cv_use_zipstream"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_ZIPSTREAM" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
a848cd7e
SC
5931
5932 enablestring=
5933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5934echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5935 no_cache=0
5936 # Check whether --enable-url or --disable-url was given.
5937if test "${enable_url+set}" = set; then
5938 enableval="$enable_url"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_url='wxUSE_URL=yes'
5942 else
5943 ac_cv_use_url='wxUSE_URL=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5956
5957fi;
5958
5959 eval "$ac_cv_use_url"
5960 if test "$no_cache" != 1; then
5961 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5962 fi
5963
5964 if test "$wxUSE_URL" = yes; then
5965 echo "$as_me:$LINENO: result: yes" >&5
5966echo "${ECHO_T}yes" >&6
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970 fi
5971
5972
5973 enablestring=
5974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5975echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5976 no_cache=0
5977 # Check whether --enable-protocol or --disable-protocol was given.
5978if test "${enable_protocol+set}" = set; then
5979 enableval="$enable_protocol"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5983 else
5984 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5985 fi
5986
5987else
5988
5989 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5997
5998fi;
5999
6000 eval "$ac_cv_use_protocol"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_PROTOCOL" = yes; then
6006 echo "$as_me:$LINENO: result: yes" >&5
6007echo "${ECHO_T}yes" >&6
6008 else
6009 echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011 fi
6012
6013
6014 enablestring=
6015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6016echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6017 no_cache=0
6018 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6019if test "${enable_protocol_http+set}" = set; then
6020 enableval="$enable_protocol_http"
6021
6022 if test "$enableval" = yes; then
6023 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6024 else
6025 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6026 fi
6027
6028else
6029
6030 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6031 if test "x$LINE" != x ; then
6032 eval "DEFAULT_$LINE"
6033 else
6034 no_cache=1
6035 fi
6036
6037 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6038
6039fi;
6040
6041 eval "$ac_cv_use_protocol_http"
6042 if test "$no_cache" != 1; then
6043 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6044 fi
6045
6046 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6047 echo "$as_me:$LINENO: result: yes" >&5
6048echo "${ECHO_T}yes" >&6
6049 else
6050 echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052 fi
6053
6054
6055 enablestring=
6056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6057echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6058 no_cache=0
6059 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6060if test "${enable_protocol_ftp+set}" = set; then
6061 enableval="$enable_protocol_ftp"
6062
6063 if test "$enableval" = yes; then
6064 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6065 else
6066 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6067 fi
6068
6069else
6070
6071 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6072 if test "x$LINE" != x ; then
6073 eval "DEFAULT_$LINE"
6074 else
6075 no_cache=1
6076 fi
6077
6078 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6079
6080fi;
6081
6082 eval "$ac_cv_use_protocol_ftp"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6088 echo "$as_me:$LINENO: result: yes" >&5
6089echo "${ECHO_T}yes" >&6
6090 else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093 fi
6094
6095
6096 enablestring=
6097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6098echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6099 no_cache=0
6100 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6101if test "${enable_protocol_file+set}" = set; then
6102 enableval="$enable_protocol_file"
6103
6104 if test "$enableval" = yes; then
6105 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6106 else
6107 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6108 fi
6109
6110else
6111
6112 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6113 if test "x$LINE" != x ; then
6114 eval "DEFAULT_$LINE"
6115 else
6116 no_cache=1
6117 fi
6118
6119 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6120
6121fi;
6122
6123 eval "$ac_cv_use_protocol_file"
6124 if test "$no_cache" != 1; then
6125 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6126 fi
6127
6128 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6129 echo "$as_me:$LINENO: result: yes" >&5
6130echo "${ECHO_T}yes" >&6
6131 else
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134 fi
6135
6136
6137
6138
6139
6140 enablestring=
6141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6142echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6143 no_cache=0
6144 # Check whether --enable-threads or --disable-threads was given.
6145if test "${enable_threads+set}" = set; then
6146 enableval="$enable_threads"
6147
6148 if test "$enableval" = yes; then
6149 ac_cv_use_threads='wxUSE_THREADS=yes'
6150 else
6151 ac_cv_use_threads='wxUSE_THREADS=no'
6152 fi
6153
6154else
6155
6156 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6157 if test "x$LINE" != x ; then
6158 eval "DEFAULT_$LINE"
6159 else
6160 no_cache=1
6161 fi
6162
6163 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6164
6165fi;
6166
6167 eval "$ac_cv_use_threads"
6168 if test "$no_cache" != 1; then
6169 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6170 fi
6171
6172 if test "$wxUSE_THREADS" = yes; then
6173 echo "$as_me:$LINENO: result: yes" >&5
6174echo "${ECHO_T}yes" >&6
6175 else
6176 echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6
6178 fi
6179
6180
6181if test "$wxUSE_GUI" = "yes"; then
6182
6183
6184
6185 enablestring=
6186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6187echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6188 no_cache=0
6189 # Check whether --enable-docview or --disable-docview was given.
6190if test "${enable_docview+set}" = set; then
6191 enableval="$enable_docview"
6192
6193 if test "$enableval" = yes; then
6194 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6195 else
6196 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6197 fi
6198
6199else
6200
6201 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6209
6210fi;
6211
6212 eval "$ac_cv_use_docview"
6213 if test "$no_cache" != 1; then
6214 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6215 fi
6216
6217 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6218 echo "$as_me:$LINENO: result: yes" >&5
6219echo "${ECHO_T}yes" >&6
6220 else
6221 echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6
6223 fi
6224
6225
6226 enablestring=
6227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6228echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6229 no_cache=0
6230 # Check whether --enable-help or --disable-help was given.
6231if test "${enable_help+set}" = set; then
6232 enableval="$enable_help"
6233
6234 if test "$enableval" = yes; then
6235 ac_cv_use_help='wxUSE_HELP=yes'
6236 else
6237 ac_cv_use_help='wxUSE_HELP=no'
6238 fi
6239
6240else
6241
6242 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6243 if test "x$LINE" != x ; then
6244 eval "DEFAULT_$LINE"
6245 else
6246 no_cache=1
6247 fi
6248
6249 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6250
6251fi;
6252
6253 eval "$ac_cv_use_help"
6254 if test "$no_cache" != 1; then
6255 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6256 fi
6257
6258 if test "$wxUSE_HELP" = yes; then
6259 echo "$as_me:$LINENO: result: yes" >&5
6260echo "${ECHO_T}yes" >&6
6261 else
6262 echo "$as_me:$LINENO: result: no" >&5
6263echo "${ECHO_T}no" >&6
6264 fi
6265
6266
6267 enablestring=
6268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6269echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6270 no_cache=0
6271 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6272if test "${enable_mshtmlhelp+set}" = set; then
6273 enableval="$enable_mshtmlhelp"
6274
6275 if test "$enableval" = yes; then
6276 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6277 else
6278 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6279 fi
6280
6281else
6282
6283 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6284 if test "x$LINE" != x ; then
6285 eval "DEFAULT_$LINE"
6286 else
6287 no_cache=1
6288 fi
6289
6290 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6291
6292fi;
6293
6294 eval "$ac_cv_use_mshtmlhelp"
6295 if test "$no_cache" != 1; then
6296 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6297 fi
6298
6299 if test "$wxUSE_MS_HTML_HELP" = yes; then
6300 echo "$as_me:$LINENO: result: yes" >&5
6301echo "${ECHO_T}yes" >&6
6302 else
6303 echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6
6305 fi
6306
6307
6308 enablestring=
6309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6310echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6311 no_cache=0
6312 # Check whether --enable-html or --disable-html was given.
6313if test "${enable_html+set}" = set; then
6314 enableval="$enable_html"
6315
6316 if test "$enableval" = yes; then
6317 ac_cv_use_html='wxUSE_HTML=yes'
6318 else
6319 ac_cv_use_html='wxUSE_HTML=no'
6320 fi
6321
6322else
6323
6324 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6325 if test "x$LINE" != x ; then
6326 eval "DEFAULT_$LINE"
6327 else
6328 no_cache=1
6329 fi
6330
6331 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6332
6333fi;
6334
6335 eval "$ac_cv_use_html"
6336 if test "$no_cache" != 1; then
6337 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6338 fi
6339
6340 if test "$wxUSE_HTML" = yes; then
6341 echo "$as_me:$LINENO: result: yes" >&5
6342echo "${ECHO_T}yes" >&6
6343 else
6344 echo "$as_me:$LINENO: result: no" >&5
6345echo "${ECHO_T}no" >&6
6346 fi
6347
6348
6349 enablestring=
6350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6351echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6352 no_cache=0
6353 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6354if test "${enable_htmlhelp+set}" = set; then
6355 enableval="$enable_htmlhelp"
6356
6357 if test "$enableval" = yes; then
6358 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6359 else
6360 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6361 fi
6362
6363else
6364
6365 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6366 if test "x$LINE" != x ; then
6367 eval "DEFAULT_$LINE"
6368 else
6369 no_cache=1
6370 fi
6371
6372 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6373
6374fi;
6375
6376 eval "$ac_cv_use_htmlhelp"
6377 if test "$no_cache" != 1; then
6378 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6379 fi
6380
6381 if test "$wxUSE_WXHTML_HELP" = yes; then
6382 echo "$as_me:$LINENO: result: yes" >&5
6383echo "${ECHO_T}yes" >&6
6384 else
6385 echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6
6387 fi
6388
6389
9a8f0513
VS
6390 enablestring=
6391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6392echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6393 no_cache=0
6394 # Check whether --enable-xrc or --disable-xrc was given.
6395if test "${enable_xrc+set}" = set; then
6396 enableval="$enable_xrc"
6397
6398 if test "$enableval" = yes; then
6399 ac_cv_use_xrc='wxUSE_XRC=yes'
6400 else
6401 ac_cv_use_xrc='wxUSE_XRC=no'
6402 fi
6403
6404else
6405
6406 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6407 if test "x$LINE" != x ; then
6408 eval "DEFAULT_$LINE"
6409 else
6410 no_cache=1
6411 fi
6412
6413 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6414
6415fi;
6416
6417 eval "$ac_cv_use_xrc"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_XRC" = yes; then
6423 echo "$as_me:$LINENO: result: yes" >&5
6424echo "${ECHO_T}yes" >&6
6425 else
6426 echo "$as_me:$LINENO: result: no" >&5
6427echo "${ECHO_T}no" >&6
6428 fi
6429
6430
a848cd7e
SC
6431 enablestring=
6432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6433echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6434 no_cache=0
6435 # Check whether --enable-constraints or --disable-constraints was given.
6436if test "${enable_constraints+set}" = set; then
6437 enableval="$enable_constraints"
6438
6439 if test "$enableval" = yes; then
6440 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6441 else
6442 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6443 fi
6444
6445else
6446
6447 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6448 if test "x$LINE" != x ; then
6449 eval "DEFAULT_$LINE"
6450 else
6451 no_cache=1
6452 fi
6453
6454 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6455
6456fi;
6457
6458 eval "$ac_cv_use_constraints"
6459 if test "$no_cache" != 1; then
6460 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6461 fi
6462
6463 if test "$wxUSE_CONSTRAINTS" = yes; then
6464 echo "$as_me:$LINENO: result: yes" >&5
6465echo "${ECHO_T}yes" >&6
6466 else
6467 echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6
6469 fi
6470
6471
6472 enablestring=
6473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6474echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6475 no_cache=0
6476 # Check whether --enable-printarch or --disable-printarch was given.
6477if test "${enable_printarch+set}" = set; then
6478 enableval="$enable_printarch"
6479
6480 if test "$enableval" = yes; then
6481 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6482 else
6483 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6484 fi
6485
6486else
6487
6488 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6489 if test "x$LINE" != x ; then
6490 eval "DEFAULT_$LINE"
6491 else
6492 no_cache=1
6493 fi
6494
6495 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6496
6497fi;
6498
6499 eval "$ac_cv_use_printarch"
6500 if test "$no_cache" != 1; then
6501 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6502 fi
6503
6504 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6505 echo "$as_me:$LINENO: result: yes" >&5
6506echo "${ECHO_T}yes" >&6
6507 else
6508 echo "$as_me:$LINENO: result: no" >&5
6509echo "${ECHO_T}no" >&6
6510 fi
6511
6512
6513 enablestring=
6514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6515echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6516 no_cache=0
6517 # Check whether --enable-mdi or --disable-mdi was given.
6518if test "${enable_mdi+set}" = set; then
6519 enableval="$enable_mdi"
6520
6521 if test "$enableval" = yes; then
8a7b1113 6522 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6523 else
8a7b1113 6524 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6525 fi
6526
6527else
6528
8a7b1113 6529 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6530 if test "x$LINE" != x ; then
6531 eval "DEFAULT_$LINE"
6532 else
6533 no_cache=1
6534 fi
6535
8a7b1113 6536 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6537
6538fi;
6539
6540 eval "$ac_cv_use_mdi"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6543 fi
6544
8a7b1113
VZ
6545 if test "$wxUSE_MDI" = yes; then
6546 echo "$as_me:$LINENO: result: yes" >&5
6547echo "${ECHO_T}yes" >&6
6548 else
6549 echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551 fi
6552
6553
6554 enablestring=
6555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6556echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6557 no_cache=0
6558 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6559if test "${enable_mdidoc+set}" = set; then
6560 enableval="$enable_mdidoc"
6561
6562 if test "$enableval" = yes; then
6563 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6564 else
6565 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6566 fi
6567
6568else
6569
6570 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6571 if test "x$LINE" != x ; then
6572 eval "DEFAULT_$LINE"
6573 else
6574 no_cache=1
6575 fi
6576
6577 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6578
6579fi;
6580
6581 eval "$ac_cv_use_mdidoc"
6582 if test "$no_cache" != 1; then
6583 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6584 fi
6585
a848cd7e
SC
6586 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6587 echo "$as_me:$LINENO: result: yes" >&5
6588echo "${ECHO_T}yes" >&6
6589 else
6590 echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6
6592 fi
6593
6594
6595 enablestring=
6596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6597echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6598 no_cache=0
6599 # Check whether --enable-loggui or --disable-loggui was given.
6600if test "${enable_loggui+set}" = set; then
6601 enableval="$enable_loggui"
6602
6603 if test "$enableval" = yes; then
6604 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6605 else
6606 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6607 fi
6608
6609else
6610
6611 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6612 if test "x$LINE" != x ; then
6613 eval "DEFAULT_$LINE"
6614 else
6615 no_cache=1
6616 fi
6617
6618 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6619
6620fi;
6621
6622 eval "$ac_cv_use_loggui"
6623 if test "$no_cache" != 1; then
6624 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6625 fi
6626
6627 if test "$wxUSE_LOGGUI" = yes; then
6628 echo "$as_me:$LINENO: result: yes" >&5
6629echo "${ECHO_T}yes" >&6
6630 else
6631 echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6
6633 fi
6634
6635
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-logwin or --disable-logwin was given.
6641if test "${enable_logwin+set}" = set; then
6642 enableval="$enable_logwin"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6646 else
6647 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6660
6661fi;
6662
6663 eval "$ac_cv_use_logwin"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_LOGWINDOW" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677 enablestring=
6678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6679echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6680 no_cache=0
6681 # Check whether --enable-logdialog or --disable-logdialog was given.
6682if test "${enable_logdialog+set}" = set; then
6683 enableval="$enable_logdialog"
6684
6685 if test "$enableval" = yes; then
6686 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6687 else
6688 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6689 fi
6690
6691else
6692
6693 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6701
6702fi;
6703
6704 eval "$ac_cv_use_logdialog"
6705 if test "$no_cache" != 1; then
6706 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6707 fi
6708
6709 if test "$wxUSE_LOGDIALOG" = yes; then
6710 echo "$as_me:$LINENO: result: yes" >&5
6711echo "${ECHO_T}yes" >&6
6712 else
6713 echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6
6715 fi
6716
6717
646b6ec1
VS
6718 enablestring=
6719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6720echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6721 no_cache=0
6722 # Check whether --enable-webkit or --disable-webkit was given.
6723if test "${enable_webkit+set}" = set; then
6724 enableval="$enable_webkit"
6725
6726 if test "$enableval" = yes; then
6727 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6728 else
6729 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6730 fi
6731
6732else
6733
6734 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6735 if test "x$LINE" != x ; then
6736 eval "DEFAULT_$LINE"
6737 else
6738 no_cache=1
6739 fi
6740
6741 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6742
6743fi;
6744
6745 eval "$ac_cv_use_webkit"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_WEBKIT" = yes; then
6751 echo "$as_me:$LINENO: result: yes" >&5
6752echo "${ECHO_T}yes" >&6
6753 else
6754 echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6
6756 fi
6757
6758
a848cd7e
SC
6759
6760 enablestring=
6761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6762echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6763 no_cache=0
6764 # Check whether --enable-postscript or --disable-postscript was given.
6765if test "${enable_postscript+set}" = set; then
6766 enableval="$enable_postscript"
6767
6768 if test "$enableval" = yes; then
6769 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6770 else
6771 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6772 fi
6773
6774else
6775
6776 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
6783 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6784
6785fi;
6786
6787 eval "$ac_cv_use_postscript"
6788 if test "$no_cache" != 1; then
6789 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6790 fi
6791
6792 if test "$wxUSE_POSTSCRIPT" = yes; then
6793 echo "$as_me:$LINENO: result: yes" >&5
6794echo "${ECHO_T}yes" >&6
6795 else
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
6798 fi
6799
6800
6801
6802
6803
6804 enablestring=
6805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6806echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6807 no_cache=0
6808 # Check whether --enable-prologio or --disable-prologio was given.
6809if test "${enable_prologio+set}" = set; then
6810 enableval="$enable_prologio"
6811
6812 if test "$enableval" = yes; then
6813 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6814 else
6815 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6816 fi
6817
6818else
6819
6820 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6821 if test "x$LINE" != x ; then
6822 eval "DEFAULT_$LINE"
6823 else
6824 no_cache=1
6825 fi
6826
6827 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6828
6829fi;
6830
6831 eval "$ac_cv_use_prologio"
6832 if test "$no_cache" != 1; then
6833 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6834 fi
6835
6836 if test "$wxUSE_PROLOGIO" = yes; then
6837 echo "$as_me:$LINENO: result: yes" >&5
6838echo "${ECHO_T}yes" >&6
6839 else
6840 echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6
6842 fi
6843
6844
6845 enablestring=
6846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6847echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6848 no_cache=0
6849 # Check whether --enable-resources or --disable-resources was given.
6850if test "${enable_resources+set}" = set; then
6851 enableval="$enable_resources"
6852
6853 if test "$enableval" = yes; then
6854 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6855 else
6856 ac_cv_use_resources='wxUSE_RESOURCES=no'
6857 fi
6858
6859else
6860
6861 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6862 if test "x$LINE" != x ; then
6863 eval "DEFAULT_$LINE"
6864 else
6865 no_cache=1
6866 fi
6867
6868 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6869
6870fi;
6871
6872 eval "$ac_cv_use_resources"
6873 if test "$no_cache" != 1; then
6874 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6875 fi
6876
6877 if test "$wxUSE_RESOURCES" = yes; then
6878 echo "$as_me:$LINENO: result: yes" >&5
6879echo "${ECHO_T}yes" >&6
6880 else
6881 echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6
6883 fi
6884
6885
6886
6887
6888 enablestring=
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6890echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6891 no_cache=0
6892 # Check whether --enable-clipboard or --disable-clipboard was given.
6893if test "${enable_clipboard+set}" = set; then
6894 enableval="$enable_clipboard"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6898 else
6899 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6900 fi
6901
6902else
6903
6904 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6912
6913fi;
6914
6915 eval "$ac_cv_use_clipboard"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_CLIPBOARD" = yes; then
6921 echo "$as_me:$LINENO: result: yes" >&5
6922echo "${ECHO_T}yes" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
6926 fi
6927
6928
6929 enablestring=
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6932 no_cache=0
6933 # Check whether --enable-dnd or --disable-dnd was given.
6934if test "${enable_dnd+set}" = set; then
6935 enableval="$enable_dnd"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6939 else
6940 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6941 fi
6942
6943else
6944
6945 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6953
6954fi;
6955
6956 eval "$ac_cv_use_dnd"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
6964 else
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
6967 fi
6968
6969
6970 enablestring=
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6973 no_cache=0
6974 # Check whether --enable-metafile or --disable-metafile was given.
6975if test "${enable_metafile+set}" = set; then
6976 enableval="$enable_metafile"
6977
6978 if test "$enableval" = yes; then
6979 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6980 else
6981 ac_cv_use_metafile='wxUSE_METAFILE=no'
6982 fi
6983
6984else
6985
6986 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6994
6995fi;
6996
6997 eval "$ac_cv_use_metafile"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_METAFILE" = yes; then
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008 fi
7009
7010
7011
7012
7013
7014 enablestring=
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-controls or --disable-controls was given.
7019if test "${enable_controls+set}" = set; then
7020 enableval="$enable_controls"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7024 else
7025 ac_cv_use_controls='wxUSE_CONTROLS=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7038
7039fi;
7040
7041 eval "$ac_cv_use_controls"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_CONTROLS" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
7055if test "$wxUSE_CONTROLS" = "yes"; then
7056 DEFAULT_wxUSE_ACCEL=yes
7057 DEFAULT_wxUSE_BMPBUTTON=yes
7058 DEFAULT_wxUSE_BUTTON=yes
7059 DEFAULT_wxUSE_CALCTRL=no
7060 DEFAULT_wxUSE_CARET=yes
7061 DEFAULT_wxUSE_COMBOBOX=yes
7062 DEFAULT_wxUSE_CHECKBOX=yes
7063 DEFAULT_wxUSE_CHECKLISTBOX=yes
7064 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7065 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7066 DEFAULT_wxUSE_GAUGE=yes
7067 DEFAULT_wxUSE_GRID=yes
7068 DEFAULT_wxUSE_IMAGLIST=yes
7069 DEFAULT_wxUSE_LISTBOOK=yes
7070 DEFAULT_wxUSE_LISTBOX=yes
7071 DEFAULT_wxUSE_LISTCTRL=yes
7072 DEFAULT_wxUSE_NOTEBOOK=yes
7073 DEFAULT_wxUSE_RADIOBOX=yes
7074 DEFAULT_wxUSE_RADIOBTN=yes
7075 DEFAULT_wxUSE_SASH=yes
7076 DEFAULT_wxUSE_SCROLLBAR=yes
7077 DEFAULT_wxUSE_SLIDER=yes
7078 DEFAULT_wxUSE_SPINBTN=yes
7079 DEFAULT_wxUSE_SPINCTRL=yes
7080 DEFAULT_wxUSE_SPLITTER=yes
7081 DEFAULT_wxUSE_STATBMP=yes
7082 DEFAULT_wxUSE_STATBOX=yes
7083 DEFAULT_wxUSE_STATLINE=yes
7084 DEFAULT_wxUSE_STATUSBAR=yes
7085 DEFAULT_wxUSE_TAB_DIALOG=yes
7086 DEFAULT_wxUSE_TOGGLEBTN=yes
7087 DEFAULT_wxUSE_TOOLBAR=yes
7088 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7089 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7090 DEFAULT_wxUSE_TOOLTIPS=yes
7091 DEFAULT_wxUSE_TREECTRL=yes
7092 DEFAULT_wxUSE_POPUPWIN=yes
7093 DEFAULT_wxUSE_TIPWINDOW=yes
7094elif test "$wxUSE_CONTROLS" = "no"; then
7095 DEFAULT_wxUSE_ACCEL=no
7096 DEFAULT_wxUSE_BMPBUTTON=no
7097 DEFAULT_wxUSE_BUTTON=no
7098 DEFAULT_wxUSE_CALCTRL=no
7099 DEFAULT_wxUSE_CARET=no
7100 DEFAULT_wxUSE_COMBOBOX=no
7101 DEFAULT_wxUSE_CHECKBOX=no
7102 DEFAULT_wxUSE_CHECKLISTBOX=no
7103 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7104 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7105 DEFAULT_wxUSE_GAUGE=no
7106 DEFAULT_wxUSE_GRID=no
7107 DEFAULT_wxUSE_IMAGLIST=no
7108 DEFAULT_wxUSE_LISTBOOK=no
7109 DEFAULT_wxUSE_LISTBOX=no
7110 DEFAULT_wxUSE_LISTCTRL=no
7111 DEFAULT_wxUSE_NOTEBOOK=no
7112 DEFAULT_wxUSE_RADIOBOX=no
7113 DEFAULT_wxUSE_RADIOBTN=no
7114 DEFAULT_wxUSE_SASH=no
7115 DEFAULT_wxUSE_SCROLLBAR=no
7116 DEFAULT_wxUSE_SLIDER=no
7117 DEFAULT_wxUSE_SPINBTN=no
7118 DEFAULT_wxUSE_SPINCTRL=no
7119 DEFAULT_wxUSE_SPLITTER=no
7120 DEFAULT_wxUSE_STATBMP=no
7121 DEFAULT_wxUSE_STATBOX=no
7122 DEFAULT_wxUSE_STATLINE=no
7123 DEFAULT_wxUSE_STATUSBAR=no
7124 DEFAULT_wxUSE_TAB_DIALOG=no
7125 DEFAULT_wxUSE_TOGGLEBTN=no
7126 DEFAULT_wxUSE_TOOLBAR=no
7127 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7128 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7129 DEFAULT_wxUSE_TOOLTIPS=no
7130 DEFAULT_wxUSE_TREECTRL=no
7131 DEFAULT_wxUSE_POPUPWIN=no
7132 DEFAULT_wxUSE_TIPWINDOW=no
7133fi
7134
a848cd7e
SC
7135
7136 enablestring=
7137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7138echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7139 no_cache=0
7140 # Check whether --enable-accel or --disable-accel was given.
7141if test "${enable_accel+set}" = set; then
7142 enableval="$enable_accel"
7143
7144 if test "$enableval" = yes; then
7145 ac_cv_use_accel='wxUSE_ACCEL=yes'
7146 else
7147 ac_cv_use_accel='wxUSE_ACCEL=no'
7148 fi
7149
7150else
7151
7152 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7153 if test "x$LINE" != x ; then
7154 eval "DEFAULT_$LINE"
7155 else
7156 no_cache=1
7157 fi
7158
7159 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7160
7161fi;
7162
7163 eval "$ac_cv_use_accel"
7164 if test "$no_cache" != 1; then
7165 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7166 fi
7167
7168 if test "$wxUSE_ACCEL" = yes; then
7169 echo "$as_me:$LINENO: result: yes" >&5
7170echo "${ECHO_T}yes" >&6
7171 else
7172 echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6
7174 fi
7175
7176
7177 enablestring=
7178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7179echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7180 no_cache=0
7181 # Check whether --enable-button or --disable-button was given.
7182if test "${enable_button+set}" = set; then
7183 enableval="$enable_button"
7184
7185 if test "$enableval" = yes; then
7186 ac_cv_use_button='wxUSE_BUTTON=yes'
7187 else
7188 ac_cv_use_button='wxUSE_BUTTON=no'
7189 fi
7190
7191else
7192
7193 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7194 if test "x$LINE" != x ; then
7195 eval "DEFAULT_$LINE"
7196 else
7197 no_cache=1
7198 fi
7199
7200 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7201
7202fi;
7203
7204 eval "$ac_cv_use_button"
7205 if test "$no_cache" != 1; then
7206 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7207 fi
7208
7209 if test "$wxUSE_BUTTON" = yes; then
7210 echo "$as_me:$LINENO: result: yes" >&5
7211echo "${ECHO_T}yes" >&6
7212 else
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
7215 fi
7216
7217
7218 enablestring=
7219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7220echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7221 no_cache=0
7222 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7223if test "${enable_bmpbutton+set}" = set; then
7224 enableval="$enable_bmpbutton"
7225
7226 if test "$enableval" = yes; then
7227 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7228 else
7229 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7230 fi
7231
7232else
7233
7234 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7235 if test "x$LINE" != x ; then
7236 eval "DEFAULT_$LINE"
7237 else
7238 no_cache=1
7239 fi
7240
7241 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7242
7243fi;
7244
7245 eval "$ac_cv_use_bmpbutton"
7246 if test "$no_cache" != 1; then
7247 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7248 fi
7249
7250 if test "$wxUSE_BMPBUTTON" = yes; then
7251 echo "$as_me:$LINENO: result: yes" >&5
7252echo "${ECHO_T}yes" >&6
7253 else
7254 echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6
7256 fi
7257
7258
7259 enablestring=
7260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7261echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7262 no_cache=0
7263 # Check whether --enable-calendar or --disable-calendar was given.
7264if test "${enable_calendar+set}" = set; then
7265 enableval="$enable_calendar"
7266
7267 if test "$enableval" = yes; then
7268 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7269 else
7270 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7271 fi
7272
7273else
7274
7275 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7276 if test "x$LINE" != x ; then
7277 eval "DEFAULT_$LINE"
7278 else
7279 no_cache=1
7280 fi
7281
7282 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7283
7284fi;
7285
7286 eval "$ac_cv_use_calendar"
7287 if test "$no_cache" != 1; then
7288 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7289 fi
7290
7291 if test "$wxUSE_CALCTRL" = yes; then
7292 echo "$as_me:$LINENO: result: yes" >&5
7293echo "${ECHO_T}yes" >&6
7294 else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297 fi
7298
7299
7300 enablestring=
7301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7302echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7303 no_cache=0
7304 # Check whether --enable-caret or --disable-caret was given.
7305if test "${enable_caret+set}" = set; then
7306 enableval="$enable_caret"
7307
7308 if test "$enableval" = yes; then
7309 ac_cv_use_caret='wxUSE_CARET=yes'
7310 else
7311 ac_cv_use_caret='wxUSE_CARET=no'
7312 fi
7313
7314else
7315
7316 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7317 if test "x$LINE" != x ; then
7318 eval "DEFAULT_$LINE"
7319 else
7320 no_cache=1
7321 fi
7322
7323 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7324
7325fi;
7326
7327 eval "$ac_cv_use_caret"
7328 if test "$no_cache" != 1; then
7329 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7330 fi
7331
7332 if test "$wxUSE_CARET" = yes; then
7333 echo "$as_me:$LINENO: result: yes" >&5
7334echo "${ECHO_T}yes" >&6
7335 else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338 fi
7339
7340
7341 enablestring=
7342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7343echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7344 no_cache=0
7345 # Check whether --enable-checkbox or --disable-checkbox was given.
7346if test "${enable_checkbox+set}" = set; then
7347 enableval="$enable_checkbox"
7348
7349 if test "$enableval" = yes; then
7350 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7351 else
7352 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7353 fi
7354
7355else
7356
7357 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7358 if test "x$LINE" != x ; then
7359 eval "DEFAULT_$LINE"
7360 else
7361 no_cache=1
7362 fi
7363
7364 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7365
7366fi;
7367
7368 eval "$ac_cv_use_checkbox"
7369 if test "$no_cache" != 1; then
7370 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7371 fi
7372
7373 if test "$wxUSE_CHECKBOX" = yes; then
7374 echo "$as_me:$LINENO: result: yes" >&5
7375echo "${ECHO_T}yes" >&6
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6
7379 fi
7380
7381
7382 enablestring=
7383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7384echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7385 no_cache=0
7386 # Check whether --enable-checklst or --disable-checklst was given.
7387if test "${enable_checklst+set}" = set; then
7388 enableval="$enable_checklst"
7389
7390 if test "$enableval" = yes; then
7391 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7392 else
7393 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7394 fi
7395
7396else
7397
7398 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7399 if test "x$LINE" != x ; then
7400 eval "DEFAULT_$LINE"
7401 else
7402 no_cache=1
7403 fi
7404
7405 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7406
7407fi;
7408
7409 eval "$ac_cv_use_checklst"
7410 if test "$no_cache" != 1; then
7411 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7412 fi
7413
7414 if test "$wxUSE_CHECKLST" = yes; then
7415 echo "$as_me:$LINENO: result: yes" >&5
7416echo "${ECHO_T}yes" >&6
7417 else
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
7420 fi
7421
7422
7423 enablestring=
7424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7425echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7426 no_cache=0
7427 # Check whether --enable-choice or --disable-choice was given.
7428if test "${enable_choice+set}" = set; then
7429 enableval="$enable_choice"
7430
7431 if test "$enableval" = yes; then
7432 ac_cv_use_choice='wxUSE_CHOICE=yes'
7433 else
7434 ac_cv_use_choice='wxUSE_CHOICE=no'
7435 fi
7436
7437else
7438
7439 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7440 if test "x$LINE" != x ; then
7441 eval "DEFAULT_$LINE"
7442 else
7443 no_cache=1
7444 fi
7445
7446 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7447
7448fi;
7449
7450 eval "$ac_cv_use_choice"
7451 if test "$no_cache" != 1; then
7452 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7453 fi
7454
7455 if test "$wxUSE_CHOICE" = yes; then
7456 echo "$as_me:$LINENO: result: yes" >&5
7457echo "${ECHO_T}yes" >&6
7458 else
7459 echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6
7461 fi
7462
7463
92bbdbcd
WS
7464 enablestring=
7465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7466echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7467 no_cache=0
7468 # Check whether --enable-choicebook or --disable-choicebook was given.
7469if test "${enable_choicebook+set}" = set; then
7470 enableval="$enable_choicebook"
7471
7472 if test "$enableval" = yes; then
7473 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7474 else
7475 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7476 fi
7477
7478else
7479
7480 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7481 if test "x$LINE" != x ; then
7482 eval "DEFAULT_$LINE"
7483 else
7484 no_cache=1
7485 fi
7486
7487 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7488
7489fi;
7490
7491 eval "$ac_cv_use_choicebook"
7492 if test "$no_cache" != 1; then
7493 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7494 fi
7495
7496 if test "$wxUSE_CHOICEBOOK" = yes; then
7497 echo "$as_me:$LINENO: result: yes" >&5
7498echo "${ECHO_T}yes" >&6
7499 else
7500 echo "$as_me:$LINENO: result: no" >&5
7501echo "${ECHO_T}no" >&6
7502 fi
7503
7504
a848cd7e
SC
7505 enablestring=
7506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7507echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7508 no_cache=0
7509 # Check whether --enable-combobox or --disable-combobox was given.
7510if test "${enable_combobox+set}" = set; then
7511 enableval="$enable_combobox"
7512
7513 if test "$enableval" = yes; then
7514 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7515 else
7516 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7517 fi
7518
7519else
7520
7521 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7522 if test "x$LINE" != x ; then
7523 eval "DEFAULT_$LINE"
7524 else
7525 no_cache=1
7526 fi
7527
7528 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7529
7530fi;
7531
7532 eval "$ac_cv_use_combobox"
7533 if test "$no_cache" != 1; then
7534 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7535 fi
7536
7537 if test "$wxUSE_COMBOBOX" = yes; then
7538 echo "$as_me:$LINENO: result: yes" >&5
7539echo "${ECHO_T}yes" >&6
7540 else
7541 echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6
7543 fi
7544
7545
7546 enablestring=
7547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7548echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7549 no_cache=0
7550 # Check whether --enable-display or --disable-display was given.
7551if test "${enable_display+set}" = set; then
7552 enableval="$enable_display"
7553
7554 if test "$enableval" = yes; then
7555 ac_cv_use_display='wxUSE_DISPLAY=yes'
7556 else
7557 ac_cv_use_display='wxUSE_DISPLAY=no'
7558 fi
7559
7560else
7561
7562 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7563 if test "x$LINE" != x ; then
7564 eval "DEFAULT_$LINE"
7565 else
7566 no_cache=1
7567 fi
7568
7569 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7570
7571fi;
7572
7573 eval "$ac_cv_use_display"
7574 if test "$no_cache" != 1; then
7575 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7576 fi
7577
7578 if test "$wxUSE_DISPLAY" = yes; then
7579 echo "$as_me:$LINENO: result: yes" >&5
7580echo "${ECHO_T}yes" >&6
7581 else
7582 echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
7584 fi
7585
7586
7587 enablestring=
7588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7589echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7590 no_cache=0
7591 # Check whether --enable-gauge or --disable-gauge was given.
7592if test "${enable_gauge+set}" = set; then
7593 enableval="$enable_gauge"
7594
7595 if test "$enableval" = yes; then
7596 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7597 else
7598 ac_cv_use_gauge='wxUSE_GAUGE=no'
7599 fi
7600
7601else
7602
7603 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7604 if test "x$LINE" != x ; then
7605 eval "DEFAULT_$LINE"
7606 else
7607 no_cache=1
7608 fi
7609
7610 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7611
7612fi;
7613
7614 eval "$ac_cv_use_gauge"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_GAUGE" = yes; then
7620 echo "$as_me:$LINENO: result: yes" >&5
7621echo "${ECHO_T}yes" >&6
7622 else
7623 echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6
7625 fi
7626
7627
7628 enablestring=
7629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7630echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7631 no_cache=0
7632 # Check whether --enable-grid or --disable-grid was given.
7633if test "${enable_grid+set}" = set; then
7634 enableval="$enable_grid"
7635
7636 if test "$enableval" = yes; then
7637 ac_cv_use_grid='wxUSE_GRID=yes'
7638 else
7639 ac_cv_use_grid='wxUSE_GRID=no'
7640 fi
7641
7642else
7643
7644 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7645 if test "x$LINE" != x ; then
7646 eval "DEFAULT_$LINE"
7647 else
7648 no_cache=1
7649 fi
7650
7651 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7652
7653fi;
7654
7655 eval "$ac_cv_use_grid"
7656 if test "$no_cache" != 1; then
7657 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7658 fi
7659
7660 if test "$wxUSE_GRID" = yes; then
7661 echo "$as_me:$LINENO: result: yes" >&5
7662echo "${ECHO_T}yes" >&6
7663 else
7664 echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
7666 fi
7667
7668
7669 enablestring=
7670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7671echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7672 no_cache=0
7673 # Check whether --enable-imaglist or --disable-imaglist was given.
7674if test "${enable_imaglist+set}" = set; then
7675 enableval="$enable_imaglist"
7676
7677 if test "$enableval" = yes; then
7678 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7679 else
7680 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7681 fi
7682
7683else
7684
7685 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7686 if test "x$LINE" != x ; then
7687 eval "DEFAULT_$LINE"
7688 else
7689 no_cache=1
7690 fi
7691
7692 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7693
7694fi;
7695
7696 eval "$ac_cv_use_imaglist"
7697 if test "$no_cache" != 1; then
7698 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7699 fi
7700
7701 if test "$wxUSE_IMAGLIST" = yes; then
7702 echo "$as_me:$LINENO: result: yes" >&5
7703echo "${ECHO_T}yes" >&6
7704 else
7705 echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6
7707 fi
7708
7709
7710 enablestring=
7711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7712echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7713 no_cache=0
7714 # Check whether --enable-listbook or --disable-listbook was given.
7715if test "${enable_listbook+set}" = set; then
7716 enableval="$enable_listbook"
7717
7718 if test "$enableval" = yes; then
7719 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7720 else
7721 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7722 fi
7723
7724else
7725
7726 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7727 if test "x$LINE" != x ; then
7728 eval "DEFAULT_$LINE"
7729 else
7730 no_cache=1
7731 fi
7732
7733 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7734
7735fi;
7736
7737 eval "$ac_cv_use_listbook"
7738 if test "$no_cache" != 1; then
7739 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7740 fi
7741
7742 if test "$wxUSE_LISTBOOK" = yes; then
7743 echo "$as_me:$LINENO: result: yes" >&5
7744echo "${ECHO_T}yes" >&6
7745 else
7746 echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6
7748 fi
7749
7750
7751 enablestring=
7752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7753echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7754 no_cache=0
7755 # Check whether --enable-listbox or --disable-listbox was given.
7756if test "${enable_listbox+set}" = set; then
7757 enableval="$enable_listbox"
7758
7759 if test "$enableval" = yes; then
7760 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7761 else
7762 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7763 fi
7764
7765else
7766
7767 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7768 if test "x$LINE" != x ; then
7769 eval "DEFAULT_$LINE"
7770 else
7771 no_cache=1
7772 fi
7773
7774 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7775
7776fi;
7777
7778 eval "$ac_cv_use_listbox"
7779 if test "$no_cache" != 1; then
7780 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7781 fi
7782
7783 if test "$wxUSE_LISTBOX" = yes; then
7784 echo "$as_me:$LINENO: result: yes" >&5
7785echo "${ECHO_T}yes" >&6
7786 else
7787 echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6
7789 fi
7790
7791
7792 enablestring=
7793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7794echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7795 no_cache=0
7796 # Check whether --enable-listctrl or --disable-listctrl was given.
7797if test "${enable_listctrl+set}" = set; then
7798 enableval="$enable_listctrl"
7799
7800 if test "$enableval" = yes; then
7801 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7802 else
7803 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7804 fi
7805
7806else
7807
7808 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7809 if test "x$LINE" != x ; then
7810 eval "DEFAULT_$LINE"
7811 else
7812 no_cache=1
7813 fi
7814
7815 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7816
7817fi;
7818
7819 eval "$ac_cv_use_listctrl"
7820 if test "$no_cache" != 1; then
7821 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7822 fi
7823
7824 if test "$wxUSE_LISTCTRL" = yes; then
7825 echo "$as_me:$LINENO: result: yes" >&5
7826echo "${ECHO_T}yes" >&6
7827 else
7828 echo "$as_me:$LINENO: result: no" >&5
7829echo "${ECHO_T}no" >&6
7830 fi
7831
7832
7833 enablestring=
7834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7835echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7836 no_cache=0
7837 # Check whether --enable-notebook or --disable-notebook was given.
7838if test "${enable_notebook+set}" = set; then
7839 enableval="$enable_notebook"
7840
7841 if test "$enableval" = yes; then
7842 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7843 else
7844 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7845 fi
7846
7847else
7848
7849 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7850 if test "x$LINE" != x ; then
7851 eval "DEFAULT_$LINE"
7852 else
7853 no_cache=1
7854 fi
7855
7856 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7857
7858fi;
7859
7860 eval "$ac_cv_use_notebook"
7861 if test "$no_cache" != 1; then
7862 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7863 fi
7864
7865 if test "$wxUSE_NOTEBOOK" = yes; then
7866 echo "$as_me:$LINENO: result: yes" >&5
7867echo "${ECHO_T}yes" >&6
7868 else
7869 echo "$as_me:$LINENO: result: no" >&5
7870echo "${ECHO_T}no" >&6
7871 fi
7872
7873
7874 enablestring=
7875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7876echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7877 no_cache=0
7878 # Check whether --enable-radiobox or --disable-radiobox was given.
7879if test "${enable_radiobox+set}" = set; then
7880 enableval="$enable_radiobox"
7881
7882 if test "$enableval" = yes; then
7883 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7884 else
7885 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7886 fi
7887
7888else
7889
7890 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7891 if test "x$LINE" != x ; then
7892 eval "DEFAULT_$LINE"
7893 else
7894 no_cache=1
7895 fi
7896
7897 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7898
7899fi;
7900
7901 eval "$ac_cv_use_radiobox"
7902 if test "$no_cache" != 1; then
7903 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7904 fi
7905
7906 if test "$wxUSE_RADIOBOX" = yes; then
7907 echo "$as_me:$LINENO: result: yes" >&5
7908echo "${ECHO_T}yes" >&6
7909 else
7910 echo "$as_me:$LINENO: result: no" >&5
7911echo "${ECHO_T}no" >&6
7912 fi
7913
7914
7915 enablestring=
7916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7917echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7918 no_cache=0
7919 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7920if test "${enable_radiobtn+set}" = set; then
7921 enableval="$enable_radiobtn"
7922
7923 if test "$enableval" = yes; then
7924 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7925 else
7926 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7927 fi
7928
7929else
7930
7931 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7932 if test "x$LINE" != x ; then
7933 eval "DEFAULT_$LINE"
7934 else
7935 no_cache=1
7936 fi
7937
7938 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7939
7940fi;
7941
7942 eval "$ac_cv_use_radiobtn"
7943 if test "$no_cache" != 1; then
7944 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7945 fi
7946
7947 if test "$wxUSE_RADIOBTN" = yes; then
7948 echo "$as_me:$LINENO: result: yes" >&5
7949echo "${ECHO_T}yes" >&6
7950 else
7951 echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6
7953 fi
7954
7955
7956 enablestring=
7957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7958echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7959 no_cache=0
7960 # Check whether --enable-sash or --disable-sash was given.
7961if test "${enable_sash+set}" = set; then
7962 enableval="$enable_sash"
7963
7964 if test "$enableval" = yes; then
7965 ac_cv_use_sash='wxUSE_SASH=yes'
7966 else
7967 ac_cv_use_sash='wxUSE_SASH=no'
7968 fi
7969
7970else
7971
7972 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7973 if test "x$LINE" != x ; then
7974 eval "DEFAULT_$LINE"
7975 else
7976 no_cache=1
7977 fi
7978
7979 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7980
7981fi;
7982
7983 eval "$ac_cv_use_sash"
7984 if test "$no_cache" != 1; then
7985 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7986 fi
7987
7988 if test "$wxUSE_SASH" = yes; then
7989 echo "$as_me:$LINENO: result: yes" >&5
7990echo "${ECHO_T}yes" >&6
7991 else
7992 echo "$as_me:$LINENO: result: no" >&5
7993echo "${ECHO_T}no" >&6
7994 fi
7995
7996
7997 enablestring=
7998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7999echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8000 no_cache=0
8001 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8002if test "${enable_scrollbar+set}" = set; then
8003 enableval="$enable_scrollbar"
8004
8005 if test "$enableval" = yes; then
8006 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8007 else
8008 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8009 fi
8010
8011else
8012
8013 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8014 if test "x$LINE" != x ; then
8015 eval "DEFAULT_$LINE"
8016 else
8017 no_cache=1
8018 fi
8019
8020 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8021
8022fi;
8023
8024 eval "$ac_cv_use_scrollbar"
8025 if test "$no_cache" != 1; then
8026 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8027 fi
8028
8029 if test "$wxUSE_SCROLLBAR" = yes; then
8030 echo "$as_me:$LINENO: result: yes" >&5
8031echo "${ECHO_T}yes" >&6
8032 else
8033 echo "$as_me:$LINENO: result: no" >&5
8034echo "${ECHO_T}no" >&6
8035 fi
8036
8037
8038 enablestring=
8039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8040echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8041 no_cache=0
8042 # Check whether --enable-slider or --disable-slider was given.
8043if test "${enable_slider+set}" = set; then
8044 enableval="$enable_slider"
8045
8046 if test "$enableval" = yes; then
8047 ac_cv_use_slider='wxUSE_SLIDER=yes'
8048 else
8049 ac_cv_use_slider='wxUSE_SLIDER=no'
8050 fi
8051
8052else
8053
8054 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8055 if test "x$LINE" != x ; then
8056 eval "DEFAULT_$LINE"
8057 else
8058 no_cache=1
8059 fi
8060
8061 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8062
8063fi;
8064
8065 eval "$ac_cv_use_slider"
8066 if test "$no_cache" != 1; then
8067 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8068 fi
8069
8070 if test "$wxUSE_SLIDER" = yes; then
8071 echo "$as_me:$LINENO: result: yes" >&5
8072echo "${ECHO_T}yes" >&6
8073 else
8074 echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6
8076 fi
8077
8078
8079 enablestring=
8080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8081echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8082 no_cache=0
8083 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8084if test "${enable_spinbtn+set}" = set; then
8085 enableval="$enable_spinbtn"
8086
8087 if test "$enableval" = yes; then
8088 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8089 else
8090 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8091 fi
8092
8093else
8094
8095 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8096 if test "x$LINE" != x ; then
8097 eval "DEFAULT_$LINE"
8098 else
8099 no_cache=1
8100 fi
8101
8102 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8103
8104fi;
8105
8106 eval "$ac_cv_use_spinbtn"
8107 if test "$no_cache" != 1; then
8108 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8109 fi
8110
8111 if test "$wxUSE_SPINBTN" = yes; then
8112 echo "$as_me:$LINENO: result: yes" >&5
8113echo "${ECHO_T}yes" >&6
8114 else
8115 echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6
8117 fi
8118
8119
8120 enablestring=
8121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8122echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8123 no_cache=0
8124 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8125if test "${enable_spinctrl+set}" = set; then
8126 enableval="$enable_spinctrl"
8127
8128 if test "$enableval" = yes; then
8129 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8130 else
8131 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8132 fi
8133
8134else
8135
8136 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8137 if test "x$LINE" != x ; then
8138 eval "DEFAULT_$LINE"
8139 else
8140 no_cache=1
8141 fi
8142
8143 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8144
8145fi;
8146
8147 eval "$ac_cv_use_spinctrl"
8148 if test "$no_cache" != 1; then
8149 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8150 fi
8151
8152 if test "$wxUSE_SPINCTRL" = yes; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154echo "${ECHO_T}yes" >&6
8155 else
8156 echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6
8158 fi
8159
8160
8161 enablestring=
8162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8163echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8164 no_cache=0
8165 # Check whether --enable-splitter or --disable-splitter was given.
8166if test "${enable_splitter+set}" = set; then
8167 enableval="$enable_splitter"
8168
8169 if test "$enableval" = yes; then
8170 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8171 else
8172 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8173 fi
8174
8175else
8176
8177 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8178 if test "x$LINE" != x ; then
8179 eval "DEFAULT_$LINE"
8180 else
8181 no_cache=1
8182 fi
8183
8184 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8185
8186fi;
8187
8188 eval "$ac_cv_use_splitter"
8189 if test "$no_cache" != 1; then
8190 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8191 fi
8192
8193 if test "$wxUSE_SPLITTER" = yes; then
8194 echo "$as_me:$LINENO: result: yes" >&5
8195echo "${ECHO_T}yes" >&6
8196 else
8197 echo "$as_me:$LINENO: result: no" >&5
8198echo "${ECHO_T}no" >&6
8199 fi
8200
8201
8202 enablestring=
8203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8204echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8205 no_cache=0
8206 # Check whether --enable-statbmp or --disable-statbmp was given.
8207if test "${enable_statbmp+set}" = set; then
8208 enableval="$enable_statbmp"
8209
8210 if test "$enableval" = yes; then
8211 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8212 else
8213 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8214 fi
8215
8216else
8217
8218 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8219 if test "x$LINE" != x ; then
8220 eval "DEFAULT_$LINE"
8221 else
8222 no_cache=1
8223 fi
8224
8225 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8226
8227fi;
8228
8229 eval "$ac_cv_use_statbmp"
8230 if test "$no_cache" != 1; then
8231 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8232 fi
8233
8234 if test "$wxUSE_STATBMP" = yes; then
8235 echo "$as_me:$LINENO: result: yes" >&5
8236echo "${ECHO_T}yes" >&6
8237 else
8238 echo "$as_me:$LINENO: result: no" >&5
8239echo "${ECHO_T}no" >&6
8240 fi
8241
8242
8243 enablestring=
8244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8245echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8246 no_cache=0
8247 # Check whether --enable-statbox or --disable-statbox was given.
8248if test "${enable_statbox+set}" = set; then
8249 enableval="$enable_statbox"
8250
8251 if test "$enableval" = yes; then
8252 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8253 else
8254 ac_cv_use_statbox='wxUSE_STATBOX=no'
8255 fi
8256
8257else
8258
8259 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8260 if test "x$LINE" != x ; then
8261 eval "DEFAULT_$LINE"
8262 else
8263 no_cache=1
8264 fi
8265
8266 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8267
8268fi;
8269
8270 eval "$ac_cv_use_statbox"
8271 if test "$no_cache" != 1; then
8272 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8273 fi
8274
8275 if test "$wxUSE_STATBOX" = yes; then
8276 echo "$as_me:$LINENO: result: yes" >&5
8277echo "${ECHO_T}yes" >&6
8278 else
8279 echo "$as_me:$LINENO: result: no" >&5
8280echo "${ECHO_T}no" >&6
8281 fi
8282
8283
8284 enablestring=
8285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8286echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8287 no_cache=0
8288 # Check whether --enable-statline or --disable-statline was given.
8289if test "${enable_statline+set}" = set; then
8290 enableval="$enable_statline"
8291
8292 if test "$enableval" = yes; then
8293 ac_cv_use_statline='wxUSE_STATLINE=yes'
8294 else
8295 ac_cv_use_statline='wxUSE_STATLINE=no'
8296 fi
8297
8298else
8299
8300 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8301 if test "x$LINE" != x ; then
8302 eval "DEFAULT_$LINE"
8303 else
8304 no_cache=1
8305 fi
8306
8307 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8308
8309fi;
8310
8311 eval "$ac_cv_use_statline"
8312 if test "$no_cache" != 1; then
8313 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8314 fi
8315
8316 if test "$wxUSE_STATLINE" = yes; then
8317 echo "$as_me:$LINENO: result: yes" >&5
8318echo "${ECHO_T}yes" >&6
8319 else
8320 echo "$as_me:$LINENO: result: no" >&5
8321echo "${ECHO_T}no" >&6
8322 fi
8323
8324
8325 enablestring=
8326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8327echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8328 no_cache=0
8329 # Check whether --enable-stattext or --disable-stattext was given.
8330if test "${enable_stattext+set}" = set; then
8331 enableval="$enable_stattext"
8332
8333 if test "$enableval" = yes; then
8334 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8335 else
8336 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8337 fi
8338
8339else
8340
8341 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8342 if test "x$LINE" != x ; then
8343 eval "DEFAULT_$LINE"
8344 else
8345 no_cache=1
8346 fi
8347
8348 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8349
8350fi;
8351
8352 eval "$ac_cv_use_stattext"
8353 if test "$no_cache" != 1; then
8354 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8355 fi
8356
8357 if test "$wxUSE_STATTEXT" = yes; then
8358 echo "$as_me:$LINENO: result: yes" >&5
8359echo "${ECHO_T}yes" >&6
8360 else
8361 echo "$as_me:$LINENO: result: no" >&5
8362echo "${ECHO_T}no" >&6
8363 fi
8364
8365
8366 enablestring=
8367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8368echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8369 no_cache=0
8370 # Check whether --enable-statusbar or --disable-statusbar was given.
8371if test "${enable_statusbar+set}" = set; then
8372 enableval="$enable_statusbar"
8373
8374 if test "$enableval" = yes; then
8375 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8376 else
8377 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8378 fi
8379
8380else
8381
8382 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8383 if test "x$LINE" != x ; then
8384 eval "DEFAULT_$LINE"
8385 else
8386 no_cache=1
8387 fi
8388
8389 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8390
8391fi;
8392
8393 eval "$ac_cv_use_statusbar"
8394 if test "$no_cache" != 1; then
8395 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8396 fi
8397
8398 if test "$wxUSE_STATUSBAR" = yes; then
8399 echo "$as_me:$LINENO: result: yes" >&5
8400echo "${ECHO_T}yes" >&6
8401 else
8402 echo "$as_me:$LINENO: result: no" >&5
8403echo "${ECHO_T}no" >&6
8404 fi
8405
8406
8407 enablestring=
8408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8409echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8410 no_cache=0
8411 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8412if test "${enable_tabdialog+set}" = set; then
8413 enableval="$enable_tabdialog"
8414
8415 if test "$enableval" = yes; then
8416 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8417 else
8418 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8419 fi
8420
8421else
8422
8423 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8424 if test "x$LINE" != x ; then
8425 eval "DEFAULT_$LINE"
8426 else
8427 no_cache=1
8428 fi
8429
8430 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8431
8432fi;
8433
8434 eval "$ac_cv_use_tabdialog"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_TABDIALOG" = yes; then
8440 echo "$as_me:$LINENO: result: yes" >&5
8441echo "${ECHO_T}yes" >&6
8442 else
8443 echo "$as_me:$LINENO: result: no" >&5
8444echo "${ECHO_T}no" >&6
8445 fi
8446
8447
8448 enablestring=
8449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8450echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8451 no_cache=0
8452 # Check whether --enable-textctrl or --disable-textctrl was given.
8453if test "${enable_textctrl+set}" = set; then
8454 enableval="$enable_textctrl"
8455
8456 if test "$enableval" = yes; then
8457 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8458 else
8459 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8460 fi
8461
8462else
8463
8464 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8465 if test "x$LINE" != x ; then
8466 eval "DEFAULT_$LINE"
8467 else
8468 no_cache=1
8469 fi
8470
8471 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8472
8473fi;
8474
8475 eval "$ac_cv_use_textctrl"
8476 if test "$no_cache" != 1; then
8477 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8478 fi
8479
8480 if test "$wxUSE_TEXTCTRL" = yes; then
8481 echo "$as_me:$LINENO: result: yes" >&5
8482echo "${ECHO_T}yes" >&6
8483 else
8484 echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6
8486 fi
8487
8488
8489 enablestring=
8490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8491echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8492 no_cache=0
8493 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8494if test "${enable_togglebtn+set}" = set; then
8495 enableval="$enable_togglebtn"
8496
8497 if test "$enableval" = yes; then
8498 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8499 else
8500 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8501 fi
8502
8503else
8504
8505 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8506 if test "x$LINE" != x ; then
8507 eval "DEFAULT_$LINE"
8508 else
8509 no_cache=1
8510 fi
8511
8512 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8513
8514fi;
8515
8516 eval "$ac_cv_use_togglebtn"
8517 if test "$no_cache" != 1; then
8518 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8519 fi
8520
8521 if test "$wxUSE_TOGGLEBTN" = yes; then
8522 echo "$as_me:$LINENO: result: yes" >&5
8523echo "${ECHO_T}yes" >&6
8524 else
8525 echo "$as_me:$LINENO: result: no" >&5
8526echo "${ECHO_T}no" >&6
8527 fi
8528
8529
8530 enablestring=
8531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8532echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8533 no_cache=0
8534 # Check whether --enable-toolbar or --disable-toolbar was given.
8535if test "${enable_toolbar+set}" = set; then
8536 enableval="$enable_toolbar"
8537
8538 if test "$enableval" = yes; then
8539 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8540 else
8541 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8542 fi
8543
8544else
8545
8546 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8547 if test "x$LINE" != x ; then
8548 eval "DEFAULT_$LINE"
8549 else
8550 no_cache=1
8551 fi
8552
8553 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8554
8555fi;
8556
8557 eval "$ac_cv_use_toolbar"
8558 if test "$no_cache" != 1; then
8559 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8560 fi
8561
8562 if test "$wxUSE_TOOLBAR" = yes; then
8563 echo "$as_me:$LINENO: result: yes" >&5
8564echo "${ECHO_T}yes" >&6
8565 else
8566 echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
8568 fi
8569
8570
8571 enablestring=
8572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8573echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8574 no_cache=0
8575 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8576if test "${enable_tbarnative+set}" = set; then
8577 enableval="$enable_tbarnative"
8578
8579 if test "$enableval" = yes; then
8580 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8581 else
8582 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8583 fi
8584
8585else
8586
8587 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8588 if test "x$LINE" != x ; then
8589 eval "DEFAULT_$LINE"
8590 else
8591 no_cache=1
8592 fi
8593
8594 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8595
8596fi;
8597
8598 eval "$ac_cv_use_tbarnative"
8599 if test "$no_cache" != 1; then
8600 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8601 fi
8602
8603 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
8606 else
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
8609 fi
8610
8611
8612 enablestring=
8613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8614echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8615 no_cache=0
8616 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8617if test "${enable_tbarsmpl+set}" = set; then
8618 enableval="$enable_tbarsmpl"
8619
8620 if test "$enableval" = yes; then
8621 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8622 else
8623 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8624 fi
8625
8626else
8627
8628 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8629 if test "x$LINE" != x ; then
8630 eval "DEFAULT_$LINE"
8631 else
8632 no_cache=1
8633 fi
8634
8635 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8636
8637fi;
8638
8639 eval "$ac_cv_use_tbarsmpl"
8640 if test "$no_cache" != 1; then
8641 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8642 fi
8643
8644 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8645 echo "$as_me:$LINENO: result: yes" >&5
8646echo "${ECHO_T}yes" >&6
8647 else
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
8650 fi
8651
8652
8653 enablestring=
8654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8655echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8656 no_cache=0
8657 # Check whether --enable-treectrl or --disable-treectrl was given.
8658if test "${enable_treectrl+set}" = set; then
8659 enableval="$enable_treectrl"
8660
8661 if test "$enableval" = yes; then
8662 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8663 else
8664 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8665 fi
8666
8667else
8668
8669 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8670 if test "x$LINE" != x ; then
8671 eval "DEFAULT_$LINE"
8672 else
8673 no_cache=1
8674 fi
8675
8676 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8677
8678fi;
8679
8680 eval "$ac_cv_use_treectrl"
8681 if test "$no_cache" != 1; then
8682 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8683 fi
8684
8685 if test "$wxUSE_TREECTRL" = yes; then
8686 echo "$as_me:$LINENO: result: yes" >&5
8687echo "${ECHO_T}yes" >&6
8688 else
8689 echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
8691 fi
8692
8693
8694 enablestring=
8695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8696echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8697 no_cache=0
8698 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8699if test "${enable_tipwindow+set}" = set; then
8700 enableval="$enable_tipwindow"
8701
8702 if test "$enableval" = yes; then
8703 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8704 else
8705 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8706 fi
8707
8708else
8709
8710 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
8717 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8718
8719fi;
8720
8721 eval "$ac_cv_use_tipwindow"
8722 if test "$no_cache" != 1; then
8723 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8724 fi
8725
8726 if test "$wxUSE_TIPWINDOW" = yes; then
8727 echo "$as_me:$LINENO: result: yes" >&5
8728echo "${ECHO_T}yes" >&6
8729 else
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
8732 fi
8733
8734
8735 enablestring=
8736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8737echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8738 no_cache=0
8739 # Check whether --enable-popupwin or --disable-popupwin was given.
8740if test "${enable_popupwin+set}" = set; then
8741 enableval="$enable_popupwin"
8742
8743 if test "$enableval" = yes; then
8744 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8745 else
8746 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8747 fi
8748
8749else
8750
8751 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8752 if test "x$LINE" != x ; then
8753 eval "DEFAULT_$LINE"
8754 else
8755 no_cache=1
8756 fi
8757
8758 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8759
8760fi;
8761
8762 eval "$ac_cv_use_popupwin"
8763 if test "$no_cache" != 1; then
8764 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8765 fi
8766
8767 if test "$wxUSE_POPUPWIN" = yes; then
8768 echo "$as_me:$LINENO: result: yes" >&5
8769echo "${ECHO_T}yes" >&6
8770 else
8771 echo "$as_me:$LINENO: result: no" >&5
8772echo "${ECHO_T}no" >&6
8773 fi
8774
8775
8776
8777
8778 enablestring=
8779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8780echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8781 no_cache=0
8782 # Check whether --enable-commondlg or --disable-commondlg was given.
8783if test "${enable_commondlg+set}" = set; then
8784 enableval="$enable_commondlg"
8785
8786 if test "$enableval" = yes; then
8787 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8788 else
8789 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8790 fi
8791
8792else
8793
8794 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8795 if test "x$LINE" != x ; then
8796 eval "DEFAULT_$LINE"
8797 else
8798 no_cache=1
8799 fi
8800
8801 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8802
8803fi;
8804
8805 eval "$ac_cv_use_commondlg"
8806 if test "$no_cache" != 1; then
8807 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8808 fi
8809
8810 if test "$wxUSE_COMMONDLGS" = yes; then
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816 fi
8817
8818
8819 enablestring=
8820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8821echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8822 no_cache=0
8823 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8824if test "${enable_choicedlg+set}" = set; then
8825 enableval="$enable_choicedlg"
8826
8827 if test "$enableval" = yes; then
8828 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8829 else
8830 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8831 fi
8832
8833else
8834
8835 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8836 if test "x$LINE" != x ; then
8837 eval "DEFAULT_$LINE"
8838 else
8839 no_cache=1
8840 fi
8841
8842 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8843
8844fi;
8845
8846 eval "$ac_cv_use_choicedlg"
8847 if test "$no_cache" != 1; then
8848 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8849 fi
8850
8851 if test "$wxUSE_CHOICEDLG" = yes; then
8852 echo "$as_me:$LINENO: result: yes" >&5
8853echo "${ECHO_T}yes" >&6
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857 fi
8858
8859
8860 enablestring=
8861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8862echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8863 no_cache=0
8864 # Check whether --enable-coldlg or --disable-coldlg was given.
8865if test "${enable_coldlg+set}" = set; then
8866 enableval="$enable_coldlg"
8867
8868 if test "$enableval" = yes; then
8869 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8870 else
8871 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8872 fi
8873
8874else
8875
8876 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8877 if test "x$LINE" != x ; then
8878 eval "DEFAULT_$LINE"
8879 else
8880 no_cache=1
8881 fi
8882
8883 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8884
8885fi;
8886
8887 eval "$ac_cv_use_coldlg"
8888 if test "$no_cache" != 1; then
8889 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8890 fi
8891
8892 if test "$wxUSE_COLOURDLG" = yes; then
8893 echo "$as_me:$LINENO: result: yes" >&5
8894echo "${ECHO_T}yes" >&6
8895 else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898 fi
8899
8900
8901 enablestring=
8902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8903echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8904 no_cache=0
8905 # Check whether --enable-filedlg or --disable-filedlg was given.
8906if test "${enable_filedlg+set}" = set; then
8907 enableval="$enable_filedlg"
8908
8909 if test "$enableval" = yes; then
8910 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8911 else
8912 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8913 fi
8914
8915else
8916
8917 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8918 if test "x$LINE" != x ; then
8919 eval "DEFAULT_$LINE"
8920 else
8921 no_cache=1
8922 fi
8923
8924 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8925
8926fi;
8927
8928 eval "$ac_cv_use_filedlg"
8929 if test "$no_cache" != 1; then
8930 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8931 fi
8932
8933 if test "$wxUSE_FILEDLG" = yes; then
8934 echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
8936 else
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
8939 fi
8940
8941
8942 enablestring=
8943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8944echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8945 no_cache=0
8946 # Check whether --enable-finddlg or --disable-finddlg was given.
8947if test "${enable_finddlg+set}" = set; then
8948 enableval="$enable_finddlg"
8949
8950 if test "$enableval" = yes; then
8951 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8952 else
8953 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8954 fi
8955
8956else
8957
8958 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8959 if test "x$LINE" != x ; then
8960 eval "DEFAULT_$LINE"
8961 else
8962 no_cache=1
8963 fi
8964
8965 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8966
8967fi;
8968
8969 eval "$ac_cv_use_finddlg"
8970 if test "$no_cache" != 1; then
8971 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8972 fi
8973
8974 if test "$wxUSE_FINDREPLDLG" = yes; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976echo "${ECHO_T}yes" >&6
8977 else
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
8980 fi
8981
8982
8983 enablestring=
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8986 no_cache=0
8987 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8988if test "${enable_fontdlg+set}" = set; then
8989 enableval="$enable_fontdlg"
8990
8991 if test "$enableval" = yes; then
8992 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8993 else
8994 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8995 fi
8996
8997else
8998
8999 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9007
9008fi;
9009
9010 eval "$ac_cv_use_fontdlg"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_FONTDLG" = yes; then
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
9018 else
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
9021 fi
9022
9023
9024 enablestring=
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9027 no_cache=0
9028 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9029if test "${enable_dirdlg+set}" = set; then
9030 enableval="$enable_dirdlg"
9031
9032 if test "$enableval" = yes; then
9033 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9034 else
9035 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9036 fi
9037
9038else
9039
9040 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9048
9049fi;
9050
9051 eval "$ac_cv_use_dirdlg"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_DIRDLG" = yes; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
9059 else
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
9062 fi
9063
9064
9065 enablestring=
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9068 no_cache=0
9069 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9070if test "${enable_msgdlg+set}" = set; then
9071 enableval="$enable_msgdlg"
9072
9073 if test "$enableval" = yes; then
9074 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9075 else
9076 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9077 fi
9078
9079else
9080
9081 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9089
9090fi;
9091
9092 eval "$ac_cv_use_msgdlg"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_MSGDLG" = yes; then
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
9100 else
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
9103 fi
9104
9105
9106 enablestring=
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9109 no_cache=0
9110 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9111if test "${enable_numberdlg+set}" = set; then
9112 enableval="$enable_numberdlg"
9113
9114 if test "$enableval" = yes; then
9115 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9116 else
9117 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9118 fi
9119
9120else
9121
9122 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9130
9131fi;
9132
9133 eval "$ac_cv_use_numberdlg"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_NUMBERDLG" = yes; then
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
9141 else
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
9144 fi
9145
9146
9147 enablestring=
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9149echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9150 no_cache=0
9151 # Check whether --enable-splash or --disable-splash was given.
9152if test "${enable_splash+set}" = set; then
9153 enableval="$enable_splash"
9154
9155 if test "$enableval" = yes; then
9156 ac_cv_use_splash='wxUSE_SPLASH=yes'
9157 else
9158 ac_cv_use_splash='wxUSE_SPLASH=no'
9159 fi
9160
9161else
9162
9163 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9171
9172fi;
9173
9174 eval "$ac_cv_use_splash"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_SPLASH" = yes; then
9180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
9182 else
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
9185 fi
9186
9187
9188 enablestring=
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9190echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9191 no_cache=0
9192 # Check whether --enable-textdlg or --disable-textdlg was given.
9193if test "${enable_textdlg+set}" = set; then
9194 enableval="$enable_textdlg"
9195
9196 if test "$enableval" = yes; then
9197 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9198 else
9199 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9200 fi
9201
9202else
9203
9204 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9212
9213fi;
9214
9215 eval "$ac_cv_use_textdlg"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_TEXTDLG" = yes; then
9221 echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
9223 else
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
9226 fi
9227
9228
9229 enablestring=
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9231echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9232 no_cache=0
9233 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9234if test "${enable_tipdlg+set}" = set; then
9235 enableval="$enable_tipdlg"
9236
9237 if test "$enableval" = yes; then
9238 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9239 else
9240 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9241 fi
9242
9243else
9244
9245 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9253
9254fi;
9255
9256 eval "$ac_cv_use_tipdlg"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_STARTUP_TIPS" = yes; then
9262 echo "$as_me:$LINENO: result: yes" >&5
9263echo "${ECHO_T}yes" >&6
9264 else
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
9267 fi
9268
9269
9270 enablestring=
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9272echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9273 no_cache=0
9274 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9275if test "${enable_progressdlg+set}" = set; then
9276 enableval="$enable_progressdlg"
9277
9278 if test "$enableval" = yes; then
9279 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9280 else
9281 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9282 fi
9283
9284else
9285
9286 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9294
9295fi;
9296
9297 eval "$ac_cv_use_progressdlg"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_PROGRESSDLG" = yes; then
9303 echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
9305 else
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
9308 fi
9309
9310
9311 enablestring=
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9313echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9314 no_cache=0
9315 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9316if test "${enable_wizarddlg+set}" = set; then
9317 enableval="$enable_wizarddlg"
9318
9319 if test "$enableval" = yes; then
9320 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9321 else
9322 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9323 fi
9324
9325else
9326
9327 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9335
9336fi;
9337
9338 eval "$ac_cv_use_wizarddlg"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_WIZARDDLG" = yes; then
9344 echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6
9346 else
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
9349 fi
9350
9351
9352
9353
9354 enablestring=
9355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9356echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9357 no_cache=0
9358 # Check whether --enable-menus or --disable-menus was given.
9359if test "${enable_menus+set}" = set; then
9360 enableval="$enable_menus"
9361
9362 if test "$enableval" = yes; then
9363 ac_cv_use_menus='wxUSE_MENUS=yes'
9364 else
9365 ac_cv_use_menus='wxUSE_MENUS=no'
9366 fi
9367
9368else
9369
9370 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9371 if test "x$LINE" != x ; then
9372 eval "DEFAULT_$LINE"
9373 else
9374 no_cache=1
9375 fi
9376
9377 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9378
9379fi;
9380
9381 eval "$ac_cv_use_menus"
9382 if test "$no_cache" != 1; then
9383 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9384 fi
9385
9386 if test "$wxUSE_MENUS" = yes; then
9387 echo "$as_me:$LINENO: result: yes" >&5
9388echo "${ECHO_T}yes" >&6
9389 else
9390 echo "$as_me:$LINENO: result: no" >&5
9391echo "${ECHO_T}no" >&6
9392 fi
9393
9394
9395 enablestring=
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9397echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9398 no_cache=0
9399 # Check whether --enable-miniframe or --disable-miniframe was given.
9400if test "${enable_miniframe+set}" = set; then
9401 enableval="$enable_miniframe"
9402
9403 if test "$enableval" = yes; then
9404 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9405 else
9406 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9407 fi
9408
9409else
9410
9411 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
9418 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9419
9420fi;
9421
9422 eval "$ac_cv_use_miniframe"
9423 if test "$no_cache" != 1; then
9424 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9425 fi
9426
9427 if test "$wxUSE_MINIFRAME" = yes; then
9428 echo "$as_me:$LINENO: result: yes" >&5
9429echo "${ECHO_T}yes" >&6
9430 else
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
9433 fi
9434
9435
9436 enablestring=
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9439 no_cache=0
9440 # Check whether --enable-tooltips or --disable-tooltips was given.
9441if test "${enable_tooltips+set}" = set; then
9442 enableval="$enable_tooltips"
9443
9444 if test "$enableval" = yes; then
9445 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9446 else
9447 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9448 fi
9449
9450else
9451
9452 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9460
9461fi;
9462
9463 eval "$ac_cv_use_tooltips"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_TOOLTIPS" = yes; then
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
9471 else
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
9474 fi
9475
9476
9477 enablestring=
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9480 no_cache=0
9481 # Check whether --enable-splines or --disable-splines was given.
9482if test "${enable_splines+set}" = set; then
9483 enableval="$enable_splines"
9484
9485 if test "$enableval" = yes; then
9486 ac_cv_use_splines='wxUSE_SPLINES=yes'
9487 else
9488 ac_cv_use_splines='wxUSE_SPLINES=no'
9489 fi
9490
9491else
9492
9493 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9501
9502fi;
9503
9504 eval "$ac_cv_use_splines"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_SPLINES" = yes; then
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
9512 else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515 fi
9516
9517
9518 enablestring=
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9521 no_cache=0
9522 # Check whether --enable-validators or --disable-validators was given.
9523if test "${enable_validators+set}" = set; then
9524 enableval="$enable_validators"
9525
9526 if test "$enableval" = yes; then
9527 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9528 else
9529 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9530 fi
9531
9532else
9533
9534 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9542
9543fi;
9544
9545 eval "$ac_cv_use_validators"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_VALIDATORS" = yes; then
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
9553 else
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
9556 fi
9557
9558
9559 enablestring=
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9562 no_cache=0
9563 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9564if test "${enable_busyinfo+set}" = set; then
9565 enableval="$enable_busyinfo"
9566
9567 if test "$enableval" = yes; then
9568 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9569 else
9570 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9571 fi
9572
9573else
9574
9575 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9583
9584fi;
9585
9586 eval "$ac_cv_use_busyinfo"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_BUSYINFO" = yes; then
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
9594 else
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
9597 fi
9598
9599
9600 enablestring=
9601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9602echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9603 no_cache=0
9604 # Check whether --enable-joystick or --disable-joystick was given.
9605if test "${enable_joystick+set}" = set; then
9606 enableval="$enable_joystick"
9607
9608 if test "$enableval" = yes; then
9609 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9610 else
9611 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9612 fi
9613
9614else
9615
9616 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9617 if test "x$LINE" != x ; then
9618 eval "DEFAULT_$LINE"
9619 else
9620 no_cache=1
9621 fi
9622
9623 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9624
9625fi;
9626
9627 eval "$ac_cv_use_joystick"
9628 if test "$no_cache" != 1; then
9629 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9630 fi
9631
9632 if test "$wxUSE_JOYSTICK" = yes; then
9633 echo "$as_me:$LINENO: result: yes" >&5
9634echo "${ECHO_T}yes" >&6
9635 else
9636 echo "$as_me:$LINENO: result: no" >&5
9637echo "${ECHO_T}no" >&6
9638 fi
9639
9640
9641 enablestring=
9642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9643echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9644 no_cache=0
9645 # Check whether --enable-metafile or --disable-metafile was given.
9646if test "${enable_metafile+set}" = set; then
9647 enableval="$enable_metafile"
9648
9649 if test "$enableval" = yes; then
9650 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9651 else
9652 ac_cv_use_metafile='wxUSE_METAFILE=no'
9653 fi
9654
9655else
9656
9657 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9658 if test "x$LINE" != x ; then
9659 eval "DEFAULT_$LINE"
9660 else
9661 no_cache=1
9662 fi
9663
9664 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9665
9666fi;
9667
9668 eval "$ac_cv_use_metafile"
9669 if test "$no_cache" != 1; then
9670 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9671 fi
9672
9673 if test "$wxUSE_METAFILE" = yes; then
9674 echo "$as_me:$LINENO: result: yes" >&5
9675echo "${ECHO_T}yes" >&6
9676 else
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
9679 fi
9680
9681
9682 enablestring=
9683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9684echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9685 no_cache=0
9686 # Check whether --enable-dragimage or --disable-dragimage was given.
9687if test "${enable_dragimage+set}" = set; then
9688 enableval="$enable_dragimage"
9689
9690 if test "$enableval" = yes; then
9691 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9692 else
9693 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9694 fi
9695
9696else
9697
9698 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9699 if test "x$LINE" != x ; then
9700 eval "DEFAULT_$LINE"
9701 else
9702 no_cache=1
9703 fi
9704
9705 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9706
9707fi;
9708
9709 eval "$ac_cv_use_dragimage"
9710 if test "$no_cache" != 1; then
9711 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9712 fi
9713
9714 if test "$wxUSE_DRAGIMAGE" = yes; then
9715 echo "$as_me:$LINENO: result: yes" >&5
9716echo "${ECHO_T}yes" >&6
9717 else
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
9720 fi
9721
9722
9723 enablestring=
9724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9725echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9726 no_cache=0
9727 # Check whether --enable-accessibility or --disable-accessibility was given.
9728if test "${enable_accessibility+set}" = set; then
9729 enableval="$enable_accessibility"
9730
9731 if test "$enableval" = yes; then
9732 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9733 else
9734 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9735 fi
9736
9737else
9738
9739 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9740 if test "x$LINE" != x ; then
9741 eval "DEFAULT_$LINE"
9742 else
9743 no_cache=1
9744 fi
9745
9746 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9747
9748fi;
9749
9750 eval "$ac_cv_use_accessibility"
9751 if test "$no_cache" != 1; then
9752 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9753 fi
9754
9755 if test "$wxUSE_ACCESSIBILITY" = yes; then
9756 echo "$as_me:$LINENO: result: yes" >&5
9757echo "${ECHO_T}yes" >&6
9758 else
9759 echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761 fi
9762
9763
9764
9765
9766 enablestring=
9767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9768echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9769 no_cache=0
9770 # Check whether --enable-palette or --disable-palette was given.
9771if test "${enable_palette+set}" = set; then
9772 enableval="$enable_palette"
9773
9774 if test "$enableval" = yes; then
9775 ac_cv_use_palette='wxUSE_PALETTE=yes'
9776 else
9777 ac_cv_use_palette='wxUSE_PALETTE=no'
9778 fi
9779
9780else
9781
9782 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9783 if test "x$LINE" != x ; then
9784 eval "DEFAULT_$LINE"
9785 else
9786 no_cache=1
9787 fi
9788
9789 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9790
9791fi;
9792
9793 eval "$ac_cv_use_palette"
9794 if test "$no_cache" != 1; then
9795 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9796 fi
9797
9798 if test "$wxUSE_PALETTE" = yes; then
9799 echo "$as_me:$LINENO: result: yes" >&5
9800echo "${ECHO_T}yes" >&6
9801 else
9802 echo "$as_me:$LINENO: result: no" >&5
9803echo "${ECHO_T}no" >&6
9804 fi
9805
9806
9807 enablestring=
9808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9809echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9810 no_cache=0
9811 # Check whether --enable-image or --disable-image was given.
9812if test "${enable_image+set}" = set; then
9813 enableval="$enable_image"
9814
9815 if test "$enableval" = yes; then
9816 ac_cv_use_image='wxUSE_IMAGE=yes'
9817 else
9818 ac_cv_use_image='wxUSE_IMAGE=no'
9819 fi
9820
9821else
9822
9823 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9824 if test "x$LINE" != x ; then
9825 eval "DEFAULT_$LINE"
9826 else
9827 no_cache=1
9828 fi
9829
9830 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9831
9832fi;
9833
9834 eval "$ac_cv_use_image"
9835 if test "$no_cache" != 1; then
9836 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9837 fi
9838
9839 if test "$wxUSE_IMAGE" = yes; then
9840 echo "$as_me:$LINENO: result: yes" >&5
9841echo "${ECHO_T}yes" >&6
9842 else
9843 echo "$as_me:$LINENO: result: no" >&5
9844echo "${ECHO_T}no" >&6
9845 fi
9846
9847
9848 enablestring=
9849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9850echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9851 no_cache=0
9852 # Check whether --enable-gif or --disable-gif was given.
9853if test "${enable_gif+set}" = set; then
9854 enableval="$enable_gif"
9855
9856 if test "$enableval" = yes; then
9857 ac_cv_use_gif='wxUSE_GIF=yes'
9858 else
9859 ac_cv_use_gif='wxUSE_GIF=no'
9860 fi
9861
9862else
9863
9864 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9865 if test "x$LINE" != x ; then
9866 eval "DEFAULT_$LINE"
9867 else
9868 no_cache=1
9869 fi
9870
9871 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9872
9873fi;
9874
9875 eval "$ac_cv_use_gif"
9876 if test "$no_cache" != 1; then
9877 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9878 fi
9879
9880 if test "$wxUSE_GIF" = yes; then
9881 echo "$as_me:$LINENO: result: yes" >&5
9882echo "${ECHO_T}yes" >&6
9883 else
9884 echo "$as_me:$LINENO: result: no" >&5
9885echo "${ECHO_T}no" >&6
9886 fi
9887
9888
9889 enablestring=
9890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9891echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9892 no_cache=0
9893 # Check whether --enable-pcx or --disable-pcx was given.
9894if test "${enable_pcx+set}" = set; then
9895 enableval="$enable_pcx"
9896
9897 if test "$enableval" = yes; then
9898 ac_cv_use_pcx='wxUSE_PCX=yes'
9899 else
9900 ac_cv_use_pcx='wxUSE_PCX=no'
9901 fi
9902
9903else
9904
9905 LINE=`grep "wxUSE_PCX" ${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_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9913
9914fi;
9915
9916 eval "$ac_cv_use_pcx"
9917 if test "$no_cache" != 1; then
9918 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9919 fi
9920
9921 if test "$wxUSE_PCX" = 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
9930 enablestring=
9931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9932echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9933 no_cache=0
9934 # Check whether --enable-iff or --disable-iff was given.
9935if test "${enable_iff+set}" = set; then
9936 enableval="$enable_iff"
9937
9938 if test "$enableval" = yes; then
9939 ac_cv_use_iff='wxUSE_IFF=yes'
9940 else
9941 ac_cv_use_iff='wxUSE_IFF=no'
9942 fi
9943
9944else
9945
9946 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9947 if test "x$LINE" != x ; then
9948 eval "DEFAULT_$LINE"
9949 else
9950 no_cache=1
9951 fi
9952
9953 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9954
9955fi;
9956
9957 eval "$ac_cv_use_iff"
9958 if test "$no_cache" != 1; then
9959 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9960 fi
9961
9962 if test "$wxUSE_IFF" = yes; then
9963 echo "$as_me:$LINENO: result: yes" >&5
9964echo "${ECHO_T}yes" >&6
9965 else
9966 echo "$as_me:$LINENO: result: no" >&5
9967echo "${ECHO_T}no" >&6
9968 fi
9969
9970
9971 enablestring=
9972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9973echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9974 no_cache=0
9975 # Check whether --enable-pnm or --disable-pnm was given.
9976if test "${enable_pnm+set}" = set; then
9977 enableval="$enable_pnm"
9978
9979 if test "$enableval" = yes; then
9980 ac_cv_use_pnm='wxUSE_PNM=yes'
9981 else
9982 ac_cv_use_pnm='wxUSE_PNM=no'
9983 fi
9984
9985else
9986
9987 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9988 if test "x$LINE" != x ; then
9989 eval "DEFAULT_$LINE"
9990 else
9991 no_cache=1
9992 fi
9993
9994 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9995
9996fi;
9997
9998 eval "$ac_cv_use_pnm"
9999 if test "$no_cache" != 1; then
10000 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10001 fi
10002
10003 if test "$wxUSE_PNM" = yes; then
10004 echo "$as_me:$LINENO: result: yes" >&5
10005echo "${ECHO_T}yes" >&6
10006 else
10007 echo "$as_me:$LINENO: result: no" >&5
10008echo "${ECHO_T}no" >&6
10009 fi
10010
10011
10012 enablestring=
10013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10014echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10015 no_cache=0
10016 # Check whether --enable-xpm or --disable-xpm was given.
10017if test "${enable_xpm+set}" = set; then
10018 enableval="$enable_xpm"
10019
10020 if test "$enableval" = yes; then
10021 ac_cv_use_xpm='wxUSE_XPM=yes'
10022 else
10023 ac_cv_use_xpm='wxUSE_XPM=no'
10024 fi
10025
10026else
10027
10028 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10029 if test "x$LINE" != x ; then
10030 eval "DEFAULT_$LINE"
10031 else
10032 no_cache=1
10033 fi
10034
10035 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10036
10037fi;
10038
10039 eval "$ac_cv_use_xpm"
10040 if test "$no_cache" != 1; then
10041 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10042 fi
10043
10044 if test "$wxUSE_XPM" = yes; then
10045 echo "$as_me:$LINENO: result: yes" >&5
10046echo "${ECHO_T}yes" >&6
10047 else
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
10050 fi
10051
10052
10053 enablestring=
10054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10055echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10056 no_cache=0
10057 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10058if test "${enable_ico_cur+set}" = set; then
10059 enableval="$enable_ico_cur"
10060
10061 if test "$enableval" = yes; then
10062 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10063 else
10064 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10065 fi
10066
10067else
10068
10069 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10070 if test "x$LINE" != x ; then
10071 eval "DEFAULT_$LINE"
10072 else
10073 no_cache=1
10074 fi
10075
10076 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10077
10078fi;
10079
10080 eval "$ac_cv_use_ico_cur"
10081 if test "$no_cache" != 1; then
10082 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10083 fi
10084
10085 if test "$wxUSE_ICO_CUR" = yes; then
10086 echo "$as_me:$LINENO: result: yes" >&5
10087echo "${ECHO_T}yes" >&6
10088 else
10089 echo "$as_me:$LINENO: result: no" >&5
10090echo "${ECHO_T}no" >&6
10091 fi
10092
10093
10094fi
10095
10096
10097
ceec2216
RL
10098# Check whether --with-flavour or --without-flavour was given.
10099if test "${with_flavour+set}" = set; then
10100 withval="$with_flavour"
10101 WX_FLAVOUR="$withval"
10102fi;
10103
10104
10105
a848cd7e
SC
10106 enablestring=
10107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10108echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10109 no_cache=0
10110 # Check whether --enable-official_build or --disable-official_build was given.
10111if test "${enable_official_build+set}" = set; then
10112 enableval="$enable_official_build"
10113
10114 if test "$enableval" = yes; then
10115 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10116 else
10117 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10118 fi
10119
10120else
10121
10122 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10123 if test "x$LINE" != x ; then
10124 eval "DEFAULT_$LINE"
10125 else
10126 no_cache=1
10127 fi
10128
10129 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10130
10131fi;
10132
10133 eval "$ac_cv_use_official_build"
10134 if test "$no_cache" != 1; then
10135 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10136 fi
10137
10138 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10139 echo "$as_me:$LINENO: result: yes" >&5
10140echo "${ECHO_T}yes" >&6
10141 else
10142 echo "$as_me:$LINENO: result: no" >&5
10143echo "${ECHO_T}no" >&6
10144 fi
10145
10146# Check whether --enable-vendor or --disable-vendor was given.
10147if test "${enable_vendor+set}" = set; then
10148 enableval="$enable_vendor"
10149 VENDOR="$enableval"
10150fi;
10151if test "x$VENDOR" = "x"; then
10152 VENDOR="custom"
10153fi
10154
a848cd7e
SC
10155
10156
10157
10158 echo "saving argument cache $wx_arg_cache_file"
10159 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10160
10161
10162
10163echo "$as_me:$LINENO: checking for toolkit" >&5
10164echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10165
10166# In Wine, we need to default to MSW, not GTK or MOTIF
10167if test "$wxUSE_WINE" = "yes"; then
10168 DEFAULT_DEFAULT_wxUSE_GTK=0
10169 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10170 DEFAULT_DEFAULT_wxUSE_MSW=1
10171 wxUSE_SHARED=no
10172fi
10173
10174if test "$wxUSE_GUI" = "yes"; then
10175
10176 if test "$USE_BEOS" = 1; then
10177 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10178echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10179 { (exit 1); exit 1; }; }
10180 fi
10181
10182 if test "$TOOLKIT_GIVEN" = 1; then
10183 for toolkit in `echo $ALL_TOOLKITS`; do
10184 var=wxUSE_$toolkit
10185 eval "value=\$${var}"
10186 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10187 done
10188 else
10189 for toolkit in `echo $ALL_TOOLKITS`; do
10190 if test "$has_toolkit_in_cache" != 1; then
10191 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10192 else
10193 var=DEFAULT_wxUSE_$toolkit
10194 fi
10195 eval "wxUSE_$toolkit=\$${var}"
10196 done
10197 fi
10198
10199 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10200 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10201 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10202
10203 case "${host}" in
10204 *-pc-os2_emx | *-pc-os2-emx )
10205 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10206 esac
10207
10208 case "$NUM_TOOLKITS" in
10209 1)
10210 ;;
10211 0)
10212 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10213echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10214 { (exit 1); exit 1; }; }
10215 ;;
10216 *)
10217 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10218echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10219 { (exit 1); exit 1; }; }
10220 esac
10221
10222 for toolkit in `echo $ALL_TOOLKITS`; do
10223 var=wxUSE_$toolkit
10224 eval "value=\$${var}"
10225 if test "x$value" != x; then
10226 cache_var=CACHE_$toolkit
10227 eval "cache=\$${cache_var}"
10228 if test "$cache" = 1; then
10229 echo "$var=$value" >> ${wx_arg_cache_file}
10230 fi
10231 if test "$value" = 1; then
10232 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10233 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10234echo "${ECHO_T}$toolkit_echo" >&6
10235 fi
10236 fi
10237 done
10238else
10239 if test "x$host_alias" != "x"; then
10240 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10241echo "${ECHO_T}base ($host_alias hosted) only" >&6
10242 else
10243 echo "$as_me:$LINENO: result: base only" >&5
10244echo "${ECHO_T}base only" >&6
10245 fi
10246fi
10247
10248wants_win32=0
10249doesnt_want_win32=0
10250case "${host}" in
10251 *-*-cygwin*)
10252 if test "$wxUSE_MSW" = 1 ; then
10253 wants_win32=1
10254 else
10255 doesnt_want_win32=1
10256 fi
10257 ;;
10258 *-*-mingw*)
10259 wants_win32=1
10260 ;;
10261esac
10262
10263if test "$wxUSE_WINE" = "yes"; then
10264 wants_win32=1
10265 CC=winegcc
10266 CXX=wineg++
10267 RESCOMP=wrc
10268 LDFLAGS_GUI="-mwindows"
10269fi
10270
10271if test "$wants_win32" = 1 ; then
10272 USE_UNIX=0
10273 USE_WIN32=1
10274 cat >>confdefs.h <<\_ACEOF
10275#define __WIN32__ 1
10276_ACEOF
10277
10278 cat >>confdefs.h <<\_ACEOF
10279#define __WIN95__ 1
10280_ACEOF
10281
10282 cat >>confdefs.h <<\_ACEOF
10283#define __WINDOWS__ 1
10284_ACEOF
10285
10286 cat >>confdefs.h <<\_ACEOF
10287#define __GNUWIN32__ 1
10288_ACEOF
10289
10290 cat >>confdefs.h <<\_ACEOF
10291#define STRICT 1
10292_ACEOF
10293
10294 cat >>confdefs.h <<\_ACEOF
10295#define WINVER 0x0400
10296_ACEOF
10297
10298fi
10299if test "$doesnt_want_win32" = 1 ; then
10300 USE_UNIX=1
10301 USE_WIN32=0
10302fi
10303
10304if test "$USE_UNIX" = 1 ; then
10305 wxUSE_UNIX=yes
10306 cat >>confdefs.h <<\_ACEOF
10307#define __UNIX__ 1
10308_ACEOF
10309
10310fi
10311
10312
10313cat >confcache <<\_ACEOF
10314# This file is a shell script that caches the results of configure
10315# tests run on this system so they can be shared between configure
10316# scripts and configure runs, see configure's option --config-cache.
10317# It is not useful on other systems. If it contains results you don't
10318# want to keep, you may remove or edit it.
10319#
10320# config.status only pays attention to the cache file if you give it
10321# the --recheck option to rerun configure.
10322#
10323# `ac_cv_env_foo' variables (set or unset) will be overridden when
10324# loading this file, other *unset* `ac_cv_foo' will be assigned the
10325# following values.
10326
10327_ACEOF
10328
10329# The following way of writing the cache mishandles newlines in values,
10330# but we know of no workaround that is simple, portable, and efficient.
10331# So, don't put newlines in cache variables' values.
10332# Ultrix sh set writes to stderr and can't be redirected directly,
10333# and sets the high bit in the cache file unless we assign to the vars.
10334{
10335 (set) 2>&1 |
10336 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10337 *ac_space=\ *)
10338 # `set' does not quote correctly, so add quotes (double-quote
10339 # substitution turns \\\\ into \\, and sed turns \\ into \).
10340 sed -n \
ac1cb8d3
VS
10341 "s/'/'\\\\''/g;
10342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10343 ;;
10344 *)
10345 # `set' quotes correctly as required by POSIX, so do not add quotes.
10346 sed -n \
ac1cb8d3 10347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10348 ;;
10349 esac;
10350} |
10351 sed '
10352 t clear
10353 : clear
10354 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10355 t end
10356 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10357 : end' >>confcache
10358if diff $cache_file confcache >/dev/null 2>&1; then :; else
10359 if test -w $cache_file; then
10360 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10361 cat confcache >$cache_file
10362 else
10363 echo "not updating unwritable cache $cache_file"
10364 fi
10365fi
10366rm -f confcache
10367
10368if test "$build" != "$host" ; then
10369 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10370 CC=$host_alias-gcc
10371 CXX=$host_alias-c++
10372 AR=$host_alias-ar
10373 RANLIB=$host_alias-ranlib
10374 DLLTOOL=$host_alias-dlltool
10375 RESCOMP=$host_alias-windres
a848cd7e
SC
10376 STRIP=$host_alias-strip
10377 else
10378 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10379echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10380 { (exit 1); exit 1; }; }
10381 fi
10382fi
10383
10384CFLAGS=${CFLAGS:=}
10385ac_ext=c
10386ac_cpp='$CPP $CPPFLAGS'
10387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10389ac_compiler_gnu=$ac_cv_c_compiler_gnu
10390if test -n "$ac_tool_prefix"; then
10391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10392set dummy ${ac_tool_prefix}gcc; ac_word=$2
10393echo "$as_me:$LINENO: checking for $ac_word" >&5
10394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10395if test "${ac_cv_prog_CC+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397else
10398 if test -n "$CC"; then
10399 ac_cv_prog_CC="$CC" # Let the user override the test.
10400else
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10411 fi
10412done
10413done
10414
10415fi
10416fi
10417CC=$ac_cv_prog_CC
10418if test -n "$CC"; then
10419 echo "$as_me:$LINENO: result: $CC" >&5
10420echo "${ECHO_T}$CC" >&6
10421else
10422 echo "$as_me:$LINENO: result: no" >&5
10423echo "${ECHO_T}no" >&6
10424fi
10425
10426fi
10427if test -z "$ac_cv_prog_CC"; then
10428 ac_ct_CC=$CC
10429 # Extract the first word of "gcc", so it can be a program name with args.
10430set dummy gcc; ac_word=$2
10431echo "$as_me:$LINENO: checking for $ac_word" >&5
10432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10433if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436 if test -n "$ac_ct_CC"; then
10437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10438else
10439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440for as_dir in $PATH
10441do
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446 ac_cv_prog_ac_ct_CC="gcc"
10447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10449 fi
10450done
10451done
10452
10453fi
10454fi
10455ac_ct_CC=$ac_cv_prog_ac_ct_CC
10456if test -n "$ac_ct_CC"; then
10457 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10458echo "${ECHO_T}$ac_ct_CC" >&6
10459else
10460 echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
10462fi
10463
10464 CC=$ac_ct_CC
10465else
10466 CC="$ac_cv_prog_CC"
10467fi
10468
10469if test -z "$CC"; then
10470 if test -n "$ac_tool_prefix"; then
10471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10472set dummy ${ac_tool_prefix}cc; ac_word=$2
10473echo "$as_me:$LINENO: checking for $ac_word" >&5
10474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10475if test "${ac_cv_prog_CC+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10477else
10478 if test -n "$CC"; then
10479 ac_cv_prog_CC="$CC" # Let the user override the test.
10480else
10481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482for as_dir in $PATH
10483do
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10488 ac_cv_prog_CC="${ac_tool_prefix}cc"
10489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10491 fi
10492done
10493done
10494
10495fi
10496fi
10497CC=$ac_cv_prog_CC
10498if test -n "$CC"; then
10499 echo "$as_me:$LINENO: result: $CC" >&5
10500echo "${ECHO_T}$CC" >&6
10501else
10502 echo "$as_me:$LINENO: result: no" >&5
10503echo "${ECHO_T}no" >&6
10504fi
10505
10506fi
10507if test -z "$ac_cv_prog_CC"; then
10508 ac_ct_CC=$CC
10509 # Extract the first word of "cc", so it can be a program name with args.
10510set dummy cc; ac_word=$2
10511echo "$as_me:$LINENO: checking for $ac_word" >&5
10512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 if test -n "$ac_ct_CC"; then
10517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10518else
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10526 ac_cv_prog_ac_ct_CC="cc"
10527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10529 fi
10530done
10531done
10532
10533fi
10534fi
10535ac_ct_CC=$ac_cv_prog_ac_ct_CC
10536if test -n "$ac_ct_CC"; then
10537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10538echo "${ECHO_T}$ac_ct_CC" >&6
10539else
10540 echo "$as_me:$LINENO: result: no" >&5
10541echo "${ECHO_T}no" >&6
10542fi
10543
10544 CC=$ac_ct_CC
10545else
10546 CC="$ac_cv_prog_CC"
10547fi
10548
10549fi
10550if test -z "$CC"; then
10551 # Extract the first word of "cc", so it can be a program name with args.
10552set dummy cc; ac_word=$2
10553echo "$as_me:$LINENO: checking for $ac_word" >&5
10554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10555if test "${ac_cv_prog_CC+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10557else
10558 if test -n "$CC"; then
10559 ac_cv_prog_CC="$CC" # Let the user override the test.
10560else
10561 ac_prog_rejected=no
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10570 ac_prog_rejected=yes
10571 continue
10572 fi
10573 ac_cv_prog_CC="cc"
10574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10576 fi
10577done
10578done
10579
10580if test $ac_prog_rejected = yes; then
10581 # We found a bogon in the path, so make sure we never use it.
10582 set dummy $ac_cv_prog_CC
10583 shift
10584 if test $# != 0; then
10585 # We chose a different compiler from the bogus one.
10586 # However, it has the same basename, so the bogon will be chosen
10587 # first if we set CC to just the basename; use the full file name.
10588 shift
10589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10590 fi
10591fi
10592fi
10593fi
10594CC=$ac_cv_prog_CC
10595if test -n "$CC"; then
10596 echo "$as_me:$LINENO: result: $CC" >&5
10597echo "${ECHO_T}$CC" >&6
10598else
10599 echo "$as_me:$LINENO: result: no" >&5
10600echo "${ECHO_T}no" >&6
10601fi
10602
10603fi
10604if test -z "$CC"; then
10605 if test -n "$ac_tool_prefix"; then
10606 for ac_prog in cl
10607 do
10608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10610echo "$as_me:$LINENO: checking for $ac_word" >&5
10611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10612if test "${ac_cv_prog_CC+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614else
10615 if test -n "$CC"; then
10616 ac_cv_prog_CC="$CC" # Let the user override the test.
10617else
10618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619for as_dir in $PATH
10620do
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629done
10630done
10631
10632fi
10633fi
10634CC=$ac_cv_prog_CC
10635if test -n "$CC"; then
10636 echo "$as_me:$LINENO: result: $CC" >&5
10637echo "${ECHO_T}$CC" >&6
10638else
10639 echo "$as_me:$LINENO: result: no" >&5
10640echo "${ECHO_T}no" >&6
10641fi
10642
10643 test -n "$CC" && break
10644 done
10645fi
10646if test -z "$CC"; then
10647 ac_ct_CC=$CC
10648 for ac_prog in cl
10649do
10650 # Extract the first word of "$ac_prog", so it can be a program name with args.
10651set dummy $ac_prog; ac_word=$2
10652echo "$as_me:$LINENO: checking for $ac_word" >&5
10653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10654if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656else
10657 if test -n "$ac_ct_CC"; then
10658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10659else
10660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661for as_dir in $PATH
10662do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10667 ac_cv_prog_ac_ct_CC="$ac_prog"
10668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10670 fi
10671done
10672done
10673
10674fi
10675fi
10676ac_ct_CC=$ac_cv_prog_ac_ct_CC
10677if test -n "$ac_ct_CC"; then
10678 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10679echo "${ECHO_T}$ac_ct_CC" >&6
10680else
10681 echo "$as_me:$LINENO: result: no" >&5
10682echo "${ECHO_T}no" >&6
10683fi
10684
10685 test -n "$ac_ct_CC" && break
10686done
10687
10688 CC=$ac_ct_CC
10689fi
10690
10691fi
10692
10693
10694test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10695See \`config.log' for more details." >&5
10696echo "$as_me: error: no acceptable C compiler found in \$PATH
10697See \`config.log' for more details." >&2;}
10698 { (exit 1); exit 1; }; }
10699
10700# Provide some information about the compiler.
10701echo "$as_me:$LINENO:" \
10702 "checking for C compiler version" >&5
10703ac_compiler=`set X $ac_compile; echo $2`
10704{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10705 (eval $ac_compiler --version </dev/null >&5) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }
10709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10710 (eval $ac_compiler -v </dev/null >&5) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }
10714{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10715 (eval $ac_compiler -V </dev/null >&5) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }
10719
10720cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h. */
10726
10727int
10728main ()
10729{
10730
10731 ;
10732 return 0;
10733}
10734_ACEOF
10735ac_clean_files_save=$ac_clean_files
10736ac_clean_files="$ac_clean_files a.out a.exe b.out"
10737# Try to create an executable without -o first, disregard a.out.
10738# It will help us diagnose broken compilers, and finding out an intuition
10739# of exeext.
ac1cb8d3
VS
10740echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10741echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10742ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10743if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10744 (eval $ac_link_default) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; then
10748 # Find the output, starting from the most likely. This scheme is
10749# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10750# resort.
10751
10752# Be careful to initialize this variable, since it used to be cached.
10753# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10754ac_cv_exeext=
10755# b.out is created by i960 compilers.
10756for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10757do
10758 test -f "$ac_file" || continue
10759 case $ac_file in
10760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10761 ;;
a848cd7e 10762 conftest.$ac_ext )
ac1cb8d3
VS
10763 # This is the source file.
10764 ;;
a848cd7e 10765 [ab].out )
ac1cb8d3
VS
10766 # We found the default executable, but exeext='' is most
10767 # certainly right.
10768 break;;
a848cd7e 10769 *.* )
ac1cb8d3
VS
10770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10771 # FIXME: I believe we export ac_cv_exeext for Libtool,
10772 # but it would be cool to find out if it's true. Does anybody
10773 # maintain Libtool? --akim.
10774 export ac_cv_exeext
10775 break;;
a848cd7e 10776 * )
ac1cb8d3 10777 break;;
a848cd7e
SC
10778 esac
10779done
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10785See \`config.log' for more details." >&5
10786echo "$as_me: error: C compiler cannot create executables
10787See \`config.log' for more details." >&2;}
10788 { (exit 77); exit 77; }; }
10789fi
10790
10791ac_exeext=$ac_cv_exeext
10792echo "$as_me:$LINENO: result: $ac_file" >&5
10793echo "${ECHO_T}$ac_file" >&6
10794
10795# Check the compiler produces executables we can run. If not, either
10796# the compiler is broken, or we cross compile.
10797echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10798echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10799# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10800# If not cross compiling, check that we can run a simple program.
10801if test "$cross_compiling" != yes; then
10802 if { ac_try='./$ac_file'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 cross_compiling=no
10809 else
10810 if test "$cross_compiling" = maybe; then
10811 cross_compiling=yes
10812 else
10813 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10814If you meant to cross compile, use \`--host'.
10815See \`config.log' for more details." >&5
10816echo "$as_me: error: cannot run C compiled programs.
10817If you meant to cross compile, use \`--host'.
10818See \`config.log' for more details." >&2;}
10819 { (exit 1); exit 1; }; }
10820 fi
10821 fi
10822fi
10823echo "$as_me:$LINENO: result: yes" >&5
10824echo "${ECHO_T}yes" >&6
10825
10826rm -f a.out a.exe conftest$ac_cv_exeext b.out
10827ac_clean_files=$ac_clean_files_save
10828# Check the compiler produces executables we can run. If not, either
10829# the compiler is broken, or we cross compile.
10830echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10831echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10832echo "$as_me:$LINENO: result: $cross_compiling" >&5
10833echo "${ECHO_T}$cross_compiling" >&6
10834
10835echo "$as_me:$LINENO: checking for suffix of executables" >&5
10836echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; then
10842 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10843# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10844# work properly (i.e., refer to `conftest.exe'), while it won't with
10845# `rm'.
10846for ac_file in conftest.exe conftest conftest.*; do
10847 test -f "$ac_file" || continue
10848 case $ac_file in
10849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10851 export ac_cv_exeext
10852 break;;
a848cd7e
SC
10853 * ) break;;
10854 esac
10855done
10856else
10857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10858See \`config.log' for more details." >&5
10859echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10860See \`config.log' for more details." >&2;}
10861 { (exit 1); exit 1; }; }
10862fi
10863
10864rm -f conftest$ac_cv_exeext
10865echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10866echo "${ECHO_T}$ac_cv_exeext" >&6
10867
10868rm -f conftest.$ac_ext
10869EXEEXT=$ac_cv_exeext
10870ac_exeext=$EXEEXT
10871echo "$as_me:$LINENO: checking for suffix of object files" >&5
10872echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10873if test "${ac_cv_objext+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875else
10876 cat >conftest.$ac_ext <<_ACEOF
10877/* confdefs.h. */
10878_ACEOF
10879cat confdefs.h >>conftest.$ac_ext
10880cat >>conftest.$ac_ext <<_ACEOF
10881/* end confdefs.h. */
10882
10883int
10884main ()
10885{
10886
10887 ;
10888 return 0;
10889}
10890_ACEOF
10891rm -f conftest.o conftest.obj
10892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893 (eval $ac_compile) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; then
10897 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10898 case $ac_file in
10899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10900 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10901 break;;
10902 esac
10903done
10904else
10905 echo "$as_me: failed program was:" >&5
10906sed 's/^/| /' conftest.$ac_ext >&5
10907
10908{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10909See \`config.log' for more details." >&5
10910echo "$as_me: error: cannot compute suffix of object files: cannot compile
10911See \`config.log' for more details." >&2;}
10912 { (exit 1); exit 1; }; }
10913fi
10914
10915rm -f conftest.$ac_cv_objext conftest.$ac_ext
10916fi
10917echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10918echo "${ECHO_T}$ac_cv_objext" >&6
10919OBJEXT=$ac_cv_objext
10920ac_objext=$OBJEXT
10921echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10922echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10923if test "${ac_cv_c_compiler_gnu+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925else
10926 cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
10932
10933int
10934main ()
10935{
10936#ifndef __GNUC__
10937 choke me
10938#endif
10939
10940 ;
10941 return 0;
10942}
10943_ACEOF
10944rm -f conftest.$ac_objext
10945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10946 (eval $ac_compile) 2>conftest.er1
a848cd7e 10947 ac_status=$?
ac1cb8d3
VS
10948 grep -v '^ *+' conftest.er1 >conftest.err
10949 rm -f conftest.er1
10950 cat conftest.err >&5
a848cd7e
SC
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
d51253e8 10953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_compiler_gnu=yes
10966else
10967 echo "$as_me: failed program was:" >&5
10968sed 's/^/| /' conftest.$ac_ext >&5
10969
10970ac_compiler_gnu=no
10971fi
ac1cb8d3 10972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10973ac_cv_c_compiler_gnu=$ac_compiler_gnu
10974
10975fi
10976echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10977echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10978GCC=`test $ac_compiler_gnu = yes && echo yes`
10979ac_test_CFLAGS=${CFLAGS+set}
10980ac_save_CFLAGS=$CFLAGS
10981CFLAGS="-g"
10982echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10983echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10984if test "${ac_cv_prog_cc_g+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986else
10987 cat >conftest.$ac_ext <<_ACEOF
10988/* confdefs.h. */
10989_ACEOF
10990cat confdefs.h >>conftest.$ac_ext
10991cat >>conftest.$ac_ext <<_ACEOF
10992/* end confdefs.h. */
10993
10994int
10995main ()
10996{
10997
10998 ;
10999 return 0;
11000}
11001_ACEOF
11002rm -f conftest.$ac_objext
11003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11004 (eval $ac_compile) 2>conftest.er1
a848cd7e 11005 ac_status=$?
ac1cb8d3
VS
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
a848cd7e
SC
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
d51253e8 11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_prog_cc_g=yes
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028ac_cv_prog_cc_g=no
11029fi
ac1cb8d3 11030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11031fi
11032echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11033echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11034if test "$ac_test_CFLAGS" = set; then
11035 CFLAGS=$ac_save_CFLAGS
11036elif test $ac_cv_prog_cc_g = yes; then
11037 if test "$GCC" = yes; then
11038 CFLAGS="-g -O2"
11039 else
11040 CFLAGS="-g"
11041 fi
11042else
11043 if test "$GCC" = yes; then
11044 CFLAGS="-O2"
11045 else
11046 CFLAGS=
11047 fi
11048fi
11049echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11050echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11051if test "${ac_cv_prog_cc_stdc+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11053else
11054 ac_cv_prog_cc_stdc=no
11055ac_save_CC=$CC
11056cat >conftest.$ac_ext <<_ACEOF
11057/* confdefs.h. */
11058_ACEOF
11059cat confdefs.h >>conftest.$ac_ext
11060cat >>conftest.$ac_ext <<_ACEOF
11061/* end confdefs.h. */
11062#include <stdarg.h>
11063#include <stdio.h>
11064#include <sys/types.h>
11065#include <sys/stat.h>
11066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11067struct buf { int x; };
11068FILE * (*rcsopen) (struct buf *, struct stat *, int);
11069static char *e (p, i)
11070 char **p;
11071 int i;
11072{
11073 return p[i];
11074}
11075static char *f (char * (*g) (char **, int), char **p, ...)
11076{
11077 char *s;
11078 va_list v;
11079 va_start (v,p);
11080 s = g (p, va_arg (v,int));
11081 va_end (v);
11082 return s;
11083}
ac1cb8d3
VS
11084
11085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11086 function prototypes and stuff, but not '\xHH' hex character constants.
11087 These don't provoke an error unfortunately, instead are silently treated
11088 as 'x'. The following induces an error, until -std1 is added to get
11089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11090 array size at least. It's necessary to write '\x00'==0 to get something
11091 that's true only with -std1. */
11092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11093
a848cd7e
SC
11094int test (int i, double x);
11095struct s1 {int (*f) (int a);};
11096struct s2 {int (*f) (double a);};
11097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11098int argc;
11099char **argv;
11100int
11101main ()
11102{
11103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11104 ;
11105 return 0;
11106}
11107_ACEOF
11108# Don't try gcc -ansi; that turns off useful extensions and
11109# breaks some systems' header files.
11110# AIX -qlanglvl=ansi
11111# Ultrix and OSF/1 -std1
11112# HP-UX 10.20 and later -Ae
11113# HP-UX older versions -Aa -D_HPUX_SOURCE
11114# SVR4 -Xc -D__EXTENSIONS__
11115for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11116do
11117 CC="$ac_save_CC $ac_arg"
11118 rm -f conftest.$ac_objext
11119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11120 (eval $ac_compile) 2>conftest.er1
a848cd7e 11121 ac_status=$?
ac1cb8d3
VS
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
a848cd7e
SC
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
d51253e8 11127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_prog_cc_stdc=$ac_arg
11140break
11141else
11142 echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145fi
ac1cb8d3 11146rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11147done
11148rm -f conftest.$ac_ext conftest.$ac_objext
11149CC=$ac_save_CC
11150
11151fi
11152
11153case "x$ac_cv_prog_cc_stdc" in
11154 x|xno)
11155 echo "$as_me:$LINENO: result: none needed" >&5
11156echo "${ECHO_T}none needed" >&6 ;;
11157 *)
11158 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11159echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11160 CC="$CC $ac_cv_prog_cc_stdc" ;;
11161esac
11162
11163# Some people use a C++ compiler to compile C. Since we use `exit',
11164# in C++ we need to declare it. In case someone uses the same compiler
11165# for both compiling C and C++ we need to have the C++ compiler decide
11166# the declaration of exit, since it's the most demanding environment.
11167cat >conftest.$ac_ext <<_ACEOF
11168#ifndef __cplusplus
11169 choke me
11170#endif
11171_ACEOF
11172rm -f conftest.$ac_objext
11173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11174 (eval $ac_compile) 2>conftest.er1
a848cd7e 11175 ac_status=$?
ac1cb8d3
VS
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
a848cd7e
SC
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
d51253e8 11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 for ac_declaration in \
ac1cb8d3 11194 '' \
a848cd7e
SC
11195 'extern "C" void std::exit (int) throw (); using std::exit;' \
11196 'extern "C" void std::exit (int); using std::exit;' \
11197 'extern "C" void exit (int) throw ();' \
11198 'extern "C" void exit (int);' \
11199 'void exit (int);'
11200do
11201 cat >conftest.$ac_ext <<_ACEOF
11202/* confdefs.h. */
11203_ACEOF
11204cat confdefs.h >>conftest.$ac_ext
11205cat >>conftest.$ac_ext <<_ACEOF
11206/* end confdefs.h. */
de59c161 11207$ac_declaration
ac1cb8d3 11208#include <stdlib.h>
a848cd7e
SC
11209int
11210main ()
11211{
11212exit (42);
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11219 (eval $ac_compile) 2>conftest.er1
a848cd7e 11220 ac_status=$?
ac1cb8d3
VS
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
a848cd7e
SC
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
d51253e8 11226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 :
11239else
11240 echo "$as_me: failed program was:" >&5
11241sed 's/^/| /' conftest.$ac_ext >&5
11242
11243continue
11244fi
ac1cb8d3 11245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11246 cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h. */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h. */
11252$ac_declaration
11253int
11254main ()
11255{
11256exit (42);
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11263 (eval $ac_compile) 2>conftest.er1
a848cd7e 11264 ac_status=$?
ac1cb8d3
VS
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
a848cd7e
SC
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
d51253e8 11270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 break
11283else
11284 echo "$as_me: failed program was:" >&5
11285sed 's/^/| /' conftest.$ac_ext >&5
11286
11287fi
ac1cb8d3 11288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11289done
11290rm -f conftest*
11291if test -n "$ac_declaration"; then
11292 echo '#ifdef __cplusplus' >>confdefs.h
11293 echo $ac_declaration >>confdefs.h
11294 echo '#endif' >>confdefs.h
11295fi
11296
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301fi
ac1cb8d3 11302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11303ac_ext=c
11304ac_cpp='$CPP $CPPFLAGS'
11305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11307ac_compiler_gnu=$ac_cv_c_compiler_gnu
11308
11309
11310
11311ac_ext=c
11312ac_cpp='$CPP $CPPFLAGS'
11313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11315ac_compiler_gnu=$ac_cv_c_compiler_gnu
11316echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11317echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11318# On Suns, sometimes $CPP names a directory.
11319if test -n "$CPP" && test -d "$CPP"; then
11320 CPP=
11321fi
11322if test -z "$CPP"; then
11323 if test "${ac_cv_prog_CPP+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325else
11326 # Double quotes because CPP needs to be expanded
11327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11328 do
11329 ac_preproc_ok=false
11330for ac_c_preproc_warn_flag in '' yes
11331do
11332 # Use a header file that comes with gcc, so configuring glibc
11333 # with a fresh cross-compiler works.
11334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335 # <limits.h> exists even on freestanding compilers.
11336 # On the NeXT, cc -E runs the code through the compiler's parser,
11337 # not just through cpp. "Syntax error" is here to catch this case.
11338 cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
11344#ifdef __STDC__
11345# include <limits.h>
11346#else
11347# include <assert.h>
11348#endif
ac1cb8d3 11349 Syntax error
a848cd7e
SC
11350_ACEOF
11351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11353 ac_status=$?
11354 grep -v '^ *+' conftest.er1 >conftest.err
11355 rm -f conftest.er1
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null; then
11359 if test -s conftest.err; then
11360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11362 else
11363 ac_cpp_err=
11364 fi
11365else
11366 ac_cpp_err=yes
11367fi
11368if test -z "$ac_cpp_err"; then
11369 :
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 # Broken: fails on valid input.
11375continue
11376fi
11377rm -f conftest.err conftest.$ac_ext
11378
11379 # OK, works on sane cases. Now check whether non-existent headers
11380 # can be detected and how.
11381 cat >conftest.$ac_ext <<_ACEOF
11382/* confdefs.h. */
11383_ACEOF
11384cat confdefs.h >>conftest.$ac_ext
11385cat >>conftest.$ac_ext <<_ACEOF
11386/* end confdefs.h. */
11387#include <ac_nonexistent.h>
11388_ACEOF
11389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11400 else
11401 ac_cpp_err=
11402 fi
11403else
11404 ac_cpp_err=yes
11405fi
11406if test -z "$ac_cpp_err"; then
11407 # Broken: success on invalid input.
11408continue
11409else
11410 echo "$as_me: failed program was:" >&5
11411sed 's/^/| /' conftest.$ac_ext >&5
11412
11413 # Passes both tests.
11414ac_preproc_ok=:
11415break
11416fi
11417rm -f conftest.err conftest.$ac_ext
11418
11419done
11420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11421rm -f conftest.err conftest.$ac_ext
11422if $ac_preproc_ok; then
11423 break
11424fi
11425
11426 done
11427 ac_cv_prog_CPP=$CPP
11428
11429fi
11430 CPP=$ac_cv_prog_CPP
11431else
11432 ac_cv_prog_CPP=$CPP
11433fi
11434echo "$as_me:$LINENO: result: $CPP" >&5
11435echo "${ECHO_T}$CPP" >&6
11436ac_preproc_ok=false
11437for ac_c_preproc_warn_flag in '' yes
11438do
11439 # Use a header file that comes with gcc, so configuring glibc
11440 # with a fresh cross-compiler works.
11441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11442 # <limits.h> exists even on freestanding compilers.
11443 # On the NeXT, cc -E runs the code through the compiler's parser,
11444 # not just through cpp. "Syntax error" is here to catch this case.
11445 cat >conftest.$ac_ext <<_ACEOF
11446/* confdefs.h. */
11447_ACEOF
11448cat confdefs.h >>conftest.$ac_ext
11449cat >>conftest.$ac_ext <<_ACEOF
11450/* end confdefs.h. */
11451#ifdef __STDC__
11452# include <limits.h>
11453#else
11454# include <assert.h>
11455#endif
ac1cb8d3 11456 Syntax error
a848cd7e
SC
11457_ACEOF
11458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } >/dev/null; then
11466 if test -s conftest.err; then
11467 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11469 else
11470 ac_cpp_err=
11471 fi
11472else
11473 ac_cpp_err=yes
11474fi
11475if test -z "$ac_cpp_err"; then
11476 :
11477else
11478 echo "$as_me: failed program was:" >&5
11479sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 # Broken: fails on valid input.
11482continue
11483fi
11484rm -f conftest.err conftest.$ac_ext
11485
11486 # OK, works on sane cases. Now check whether non-existent headers
11487 # can be detected and how.
11488 cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h. */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */
11494#include <ac_nonexistent.h>
11495_ACEOF
11496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } >/dev/null; then
11504 if test -s conftest.err; then
11505 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11507 else
11508 ac_cpp_err=
11509 fi
11510else
11511 ac_cpp_err=yes
11512fi
11513if test -z "$ac_cpp_err"; then
11514 # Broken: success on invalid input.
11515continue
11516else
11517 echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520 # Passes both tests.
11521ac_preproc_ok=:
11522break
11523fi
11524rm -f conftest.err conftest.$ac_ext
11525
11526done
11527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11528rm -f conftest.err conftest.$ac_ext
11529if $ac_preproc_ok; then
11530 :
11531else
11532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11533See \`config.log' for more details." >&5
11534echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11535See \`config.log' for more details." >&2;}
11536 { (exit 1); exit 1; }; }
11537fi
11538
11539ac_ext=c
11540ac_cpp='$CPP $CPPFLAGS'
11541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11543ac_compiler_gnu=$ac_cv_c_compiler_gnu
11544
11545
11546echo "$as_me:$LINENO: checking for egrep" >&5
11547echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11548if test "${ac_cv_prog_egrep+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11552 then ac_cv_prog_egrep='grep -E'
11553 else ac_cv_prog_egrep='egrep'
11554 fi
11555fi
11556echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11557echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11558 EGREP=$ac_cv_prog_egrep
11559
11560
11561if test $ac_cv_c_compiler_gnu = yes; then
11562 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11563echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11564if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 ac_pattern="Autoconf.*'x'"
11568 cat >conftest.$ac_ext <<_ACEOF
11569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
11574#include <sgtty.h>
11575Autoconf TIOCGETP
11576_ACEOF
11577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11579 ac_cv_prog_gcc_traditional=yes
11580else
11581 ac_cv_prog_gcc_traditional=no
11582fi
11583rm -f conftest*
11584
11585
11586 if test $ac_cv_prog_gcc_traditional = no; then
11587 cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
11593#include <termio.h>
11594Autoconf TCGETA
11595_ACEOF
11596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11597 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11598 ac_cv_prog_gcc_traditional=yes
11599fi
11600rm -f conftest*
11601
11602 fi
11603fi
11604echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11605echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11606 if test $ac_cv_prog_gcc_traditional = yes; then
11607 CC="$CC -traditional"
11608 fi
11609fi
11610
11611
11612
11613
11614ac_ext=cc
11615ac_cpp='$CXXCPP $CPPFLAGS'
11616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11619
11620
11621CXXFLAGS=${CXXFLAGS:=}
11622ac_ext=cc
11623ac_cpp='$CXXCPP $CPPFLAGS'
11624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11627if test -n "$ac_tool_prefix"; then
11628 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11629 do
11630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11632echo "$as_me:$LINENO: checking for $ac_word" >&5
11633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11634if test "${ac_cv_prog_CXX+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636else
11637 if test -n "$CXX"; then
11638 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11639else
11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641for as_dir in $PATH
11642do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11650 fi
11651done
11652done
11653
11654fi
11655fi
11656CXX=$ac_cv_prog_CXX
11657if test -n "$CXX"; then
11658 echo "$as_me:$LINENO: result: $CXX" >&5
11659echo "${ECHO_T}$CXX" >&6
11660else
11661 echo "$as_me:$LINENO: result: no" >&5
11662echo "${ECHO_T}no" >&6
11663fi
11664
11665 test -n "$CXX" && break
11666 done
11667fi
11668if test -z "$CXX"; then
11669 ac_ct_CXX=$CXX
11670 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11671do
11672 # Extract the first word of "$ac_prog", so it can be a program name with args.
11673set dummy $ac_prog; ac_word=$2
11674echo "$as_me:$LINENO: checking for $ac_word" >&5
11675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11676if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 if test -n "$ac_ct_CXX"; then
11680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11681else
11682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683for as_dir in $PATH
11684do
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11689 ac_cv_prog_ac_ct_CXX="$ac_prog"
11690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 break 2
11692 fi
11693done
11694done
11695
11696fi
11697fi
11698ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11699if test -n "$ac_ct_CXX"; then
11700 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11701echo "${ECHO_T}$ac_ct_CXX" >&6
11702else
11703 echo "$as_me:$LINENO: result: no" >&5
11704echo "${ECHO_T}no" >&6
11705fi
11706
11707 test -n "$ac_ct_CXX" && break
11708done
11709test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11710
11711 CXX=$ac_ct_CXX
11712fi
11713
11714
11715# Provide some information about the compiler.
11716echo "$as_me:$LINENO:" \
11717 "checking for C++ compiler version" >&5
11718ac_compiler=`set X $ac_compile; echo $2`
11719{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11720 (eval $ac_compiler --version </dev/null >&5) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }
11724{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11725 (eval $ac_compiler -v </dev/null >&5) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }
11729{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11730 (eval $ac_compiler -V </dev/null >&5) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }
11734
11735echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11736echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11737if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
11746
11747int
11748main ()
11749{
11750#ifndef __GNUC__
11751 choke me
11752#endif
11753
11754 ;
11755 return 0;
11756}
11757_ACEOF
11758rm -f conftest.$ac_objext
11759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11760 (eval $ac_compile) 2>conftest.er1
a848cd7e 11761 ac_status=$?
ac1cb8d3
VS
11762 grep -v '^ *+' conftest.er1 >conftest.err
11763 rm -f conftest.er1
11764 cat conftest.err >&5
a848cd7e
SC
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
d51253e8 11767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; } &&
11773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_compiler_gnu=yes
11780else
11781 echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
11783
11784ac_compiler_gnu=no
11785fi
ac1cb8d3 11786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11787ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11788
11789fi
11790echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11791echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11792GXX=`test $ac_compiler_gnu = yes && echo yes`
11793ac_test_CXXFLAGS=${CXXFLAGS+set}
11794ac_save_CXXFLAGS=$CXXFLAGS
11795CXXFLAGS="-g"
11796echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11797echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11798if test "${ac_cv_prog_cxx_g+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807
11808int
11809main ()
11810{
11811
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext
11817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11818 (eval $ac_compile) 2>conftest.er1
a848cd7e 11819 ac_status=$?
ac1cb8d3
VS
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
a848cd7e
SC
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
d51253e8 11825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_prog_cxx_g=yes
11838else
11839 echo "$as_me: failed program was:" >&5
11840sed 's/^/| /' conftest.$ac_ext >&5
11841
11842ac_cv_prog_cxx_g=no
11843fi
ac1cb8d3 11844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11845fi
11846echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11847echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11848if test "$ac_test_CXXFLAGS" = set; then
11849 CXXFLAGS=$ac_save_CXXFLAGS
11850elif test $ac_cv_prog_cxx_g = yes; then
11851 if test "$GXX" = yes; then
11852 CXXFLAGS="-g -O2"
11853 else
11854 CXXFLAGS="-g"
11855 fi
11856else
11857 if test "$GXX" = yes; then
11858 CXXFLAGS="-O2"
11859 else
11860 CXXFLAGS=
11861 fi
11862fi
11863for ac_declaration in \
ac1cb8d3 11864 '' \
a848cd7e
SC
11865 'extern "C" void std::exit (int) throw (); using std::exit;' \
11866 'extern "C" void std::exit (int); using std::exit;' \
11867 'extern "C" void exit (int) throw ();' \
11868 'extern "C" void exit (int);' \
11869 'void exit (int);'
11870do
11871 cat >conftest.$ac_ext <<_ACEOF
11872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
de59c161 11877$ac_declaration
ac1cb8d3 11878#include <stdlib.h>
a848cd7e
SC
11879int
11880main ()
11881{
11882exit (42);
11883 ;
11884 return 0;
11885}
11886_ACEOF
11887rm -f conftest.$ac_objext
11888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11889 (eval $ac_compile) 2>conftest.er1
a848cd7e 11890 ac_status=$?
ac1cb8d3
VS
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
a848cd7e
SC
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
d51253e8 11896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; } &&
11902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 :
11909else
11910 echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
11913continue
11914fi
ac1cb8d3 11915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11916 cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922$ac_declaration
11923int
11924main ()
11925{
11926exit (42);
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext
11932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11933 (eval $ac_compile) 2>conftest.er1
a848cd7e 11934 ac_status=$?
ac1cb8d3
VS
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
a848cd7e
SC
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
d51253e8 11940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 break
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957fi
ac1cb8d3 11958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11959done
11960rm -f conftest*
11961if test -n "$ac_declaration"; then
11962 echo '#ifdef __cplusplus' >>confdefs.h
11963 echo $ac_declaration >>confdefs.h
11964 echo '#endif' >>confdefs.h
11965fi
11966
11967ac_ext=cc
11968ac_cpp='$CXXCPP $CPPFLAGS'
11969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11972
11973
11974ac_ext=c
11975ac_cpp='$CPP $CPPFLAGS'
11976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11978ac_compiler_gnu=$ac_cv_c_compiler_gnu
11979
11980
a848cd7e
SC
11981if test -n "$ac_tool_prefix"; then
11982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11983set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11984echo "$as_me:$LINENO: checking for $ac_word" >&5
11985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11986if test "${ac_cv_prog_RANLIB+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988else
11989 if test -n "$RANLIB"; then
11990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11991else
11992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993for as_dir in $PATH
11994do
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11999 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12002 fi
12003done
12004done
12005
12006fi
12007fi
12008RANLIB=$ac_cv_prog_RANLIB
12009if test -n "$RANLIB"; then
12010 echo "$as_me:$LINENO: result: $RANLIB" >&5
12011echo "${ECHO_T}$RANLIB" >&6
12012else
12013 echo "$as_me:$LINENO: result: no" >&5
12014echo "${ECHO_T}no" >&6
12015fi
12016
12017fi
12018if test -z "$ac_cv_prog_RANLIB"; then
12019 ac_ct_RANLIB=$RANLIB
12020 # Extract the first word of "ranlib", so it can be a program name with args.
12021set dummy ranlib; ac_word=$2
12022echo "$as_me:$LINENO: checking for $ac_word" >&5
12023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12024if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 if test -n "$ac_ct_RANLIB"; then
12028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12029else
12030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $PATH
12032do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_prog_ac_ct_RANLIB="ranlib"
12038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12040 fi
12041done
12042done
12043
12044 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12045fi
12046fi
12047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12048if test -n "$ac_ct_RANLIB"; then
12049 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12050echo "${ECHO_T}$ac_ct_RANLIB" >&6
12051else
12052 echo "$as_me:$LINENO: result: no" >&5
12053echo "${ECHO_T}no" >&6
12054fi
12055
12056 RANLIB=$ac_ct_RANLIB
12057else
12058 RANLIB="$ac_cv_prog_RANLIB"
12059fi
12060
12061
12062# Extract the first word of "ar", so it can be a program name with args.
12063set dummy ar; ac_word=$2
12064echo "$as_me:$LINENO: checking for $ac_word" >&5
12065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12066if test "${ac_cv_prog_AR+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12068else
12069 if test -n "$AR"; then
12070 ac_cv_prog_AR="$AR" # Let the user override the test.
12071else
12072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $PATH
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12079 ac_cv_prog_AR="ar"
12080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12081 break 2
12082 fi
12083done
12084done
12085
12086fi
12087fi
12088AR=$ac_cv_prog_AR
12089if test -n "$AR"; then
12090 echo "$as_me:$LINENO: result: $AR" >&5
12091echo "${ECHO_T}$AR" >&6
12092else
12093 echo "$as_me:$LINENO: result: no" >&5
12094echo "${ECHO_T}no" >&6
12095fi
12096
12097if test "x$AR" = "x" ; then
77ffb593
JS
12098 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12099echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12100 { (exit 1); exit 1; }; }
12101fi
12102
12103# Find a good install program. We prefer a C program (faster),
12104# so one script is as good as another. But avoid the broken or
12105# incompatible versions:
12106# SysV /etc/install, /usr/sbin/install
12107# SunOS /usr/etc/install
12108# IRIX /sbin/install
12109# AIX /bin/install
12110# AmigaOS /C/install, which installs bootblocks on floppy discs
12111# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12112# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12113# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12114# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12115# ./install, which can be erroneously created by make from ./install.sh.
12116echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12117echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12118if test -z "$INSTALL"; then
12119if test "${ac_cv_path_install+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in $PATH
12124do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 # Account for people who put trailing slashes in PATH elements.
12128case $as_dir/ in
12129 ./ | .// | /cC/* | \
12130 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12131 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12132 /usr/ucb/* ) ;;
12133 *)
12134 # OSF1 and SCO ODT 3.0 have their own names for install.
12135 # Don't use installbsd from OSF since it installs stuff as root
12136 # by default.
12137 for ac_prog in ginstall scoinst install; do
12138 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12139 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12140 if test $ac_prog = install &&
12141 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12142 # AIX install. It has an incompatible calling convention.
12143 :
12144 elif test $ac_prog = install &&
12145 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12146 # program-specific install script used by HP pwplus--don't use.
12147 :
12148 else
12149 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12150 break 3
12151 fi
12152 fi
a848cd7e
SC
12153 done
12154 done
12155 ;;
12156esac
12157done
12158
12159
12160fi
12161 if test "${ac_cv_path_install+set}" = set; then
12162 INSTALL=$ac_cv_path_install
12163 else
12164 # As a last resort, use the slow shell script. We don't cache a
12165 # path for INSTALL within a source directory, because that will
12166 # break other packages using the cache if that directory is
12167 # removed, or if the path is relative.
12168 INSTALL=$ac_install_sh
12169 fi
12170fi
12171echo "$as_me:$LINENO: result: $INSTALL" >&5
12172echo "${ECHO_T}$INSTALL" >&6
12173
12174# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12175# It thinks the first close brace ends the variable substitution.
12176test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12177
12178test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12179
12180test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12181
12182
12183case ${INSTALL} in
12184 /* ) # Absolute
12185 ;;
12186 ?:* ) # Drive letter, considered as absolute.
12187 ;;
12188 *)
12189 INSTALL=`pwd`/${INSTALL} ;;
12190esac
12191
a848cd7e
SC
12192
12193case "${host}" in
12194
12195 powerpc-*-darwin* )
12196 INSTALL_PROGRAM="cp -fp"
12197 INSTALL_DATA="cp -fp"
12198 ;;
12199 *)
12200 ;;
12201esac
12202
12203# Extract the first word of "strip", so it can be a program name with args.
12204set dummy strip; ac_word=$2
12205echo "$as_me:$LINENO: checking for $ac_word" >&5
12206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12207if test "${ac_cv_prog_STRIP+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 if test -n "$STRIP"; then
12211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12212else
12213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214for as_dir in $PATH
12215do
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_prog_STRIP="strip"
12221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 break 2
12223 fi
12224done
12225done
12226
12227 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12228fi
12229fi
12230STRIP=$ac_cv_prog_STRIP
12231if test -n "$STRIP"; then
12232 echo "$as_me:$LINENO: result: $STRIP" >&5
12233echo "${ECHO_T}$STRIP" >&6
12234else
12235 echo "$as_me:$LINENO: result: no" >&5
12236echo "${ECHO_T}no" >&6
12237fi
12238
12239
12240echo "$as_me:$LINENO: checking if make is GNU make" >&5
12241echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12242if test "${wx_cv_prog_makeisgnu+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244else
12245
12246 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12247 egrep -s GNU > /dev/null); then
12248 wx_cv_prog_makeisgnu="yes"
12249 else
12250 wx_cv_prog_makeisgnu="no"
12251 fi
12252
12253fi
12254echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12255echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12256
12257if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12258 IF_GNU_MAKE=""
12259else
12260 IF_GNU_MAKE="#"
12261fi
12262
12263
12264
12265if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12266echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12267echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12268if test "${wx_cv_prog_makevpath+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271
12272cat - << EOF > confMake
12273check : file
12274 cp \$? \$@
12275 cp \$? final_file
12276EOF
12277
12278if test ! -d sub ; then
12279 mkdir sub
12280fi
12281echo dummy > sub/file
12282${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12283RESULT=$?
12284rm -f sub/file check final_file confMake
12285rmdir sub
12286if test "$RESULT" = 0; then
12287 wx_cv_prog_makevpath="yes"
12288else
12289 wx_cv_prog_makevpath="no"
12290fi
12291
12292fi
12293echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12294echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12295
12296if test "x$wx_cv_prog_makevpath" != "xyes"; then
12297{ { echo "$as_me:$LINENO: error:
12298You need a make-utility that is able to use the variable
12299VPATH correctly.
12300If your version of make does not support VPATH correctly,
12301please install GNU-make (possibly as gmake), and start
12302configure with the following command:
12303export MAKE=gmake; ./configure for sh-type shells
12304setenv MAKE gmake; ./configure for csh-type shells
12305Also please do remember to use gmake in this case every time
12306you are trying to compile.
12307" >&5
12308echo "$as_me: error:
12309You need a make-utility that is able to use the variable
12310VPATH correctly.
12311If your version of make does not support VPATH correctly,
12312please install GNU-make (possibly as gmake), and start
12313configure with the following command:
12314export MAKE=gmake; ./configure for sh-type shells
12315setenv MAKE gmake; ./configure for csh-type shells
12316Also please do remember to use gmake in this case every time
12317you are trying to compile.
12318" >&2;}
12319 { (exit 1); exit 1; }; }
12320fi fi
12321echo "$as_me:$LINENO: checking whether ln -s works" >&5
12322echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12323LN_S=$as_ln_s
12324if test "$LN_S" = "ln -s"; then
12325 echo "$as_me:$LINENO: result: yes" >&5
12326echo "${ECHO_T}yes" >&6
12327else
12328 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12329echo "${ECHO_T}no, using $LN_S" >&6
12330fi
12331
12332
12333
12334case "${host}" in
12335 *-pc-os2_emx | *-pc-os2-emx )
12336 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12337 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12338echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12339if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342 ac_check_lib_save_LIBS=$LIBS
12343LIBS="-lcExt $LIBS"
12344cat >conftest.$ac_ext <<_ACEOF
12345/* confdefs.h. */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
12349/* end confdefs.h. */
12350
12351/* Override any gcc2 internal prototype to avoid an error. */
12352#ifdef __cplusplus
12353extern "C"
12354#endif
12355/* We use char because int might match the return type of a gcc2
12356 builtin and then its argument prototype would still apply. */
12357char drand48 ();
12358int
12359main ()
12360{
12361drand48 ();
12362 ;
12363 return 0;
12364}
12365_ACEOF
12366rm -f conftest.$ac_objext conftest$ac_exeext
12367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12368 (eval $ac_link) 2>conftest.er1
a848cd7e 12369 ac_status=$?
ac1cb8d3
VS
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
a848cd7e
SC
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
d51253e8 12375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; } &&
12381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 ac_cv_lib_cExt_drand48=yes
12388else
12389 echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392ac_cv_lib_cExt_drand48=no
12393fi
ac1cb8d3
VS
12394rm -f conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12396LIBS=$ac_check_lib_save_LIBS
12397fi
12398echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12399echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12400if test $ac_cv_lib_cExt_drand48 = yes; then
12401 LIBS="$LIBS -lcExt"
12402fi
12403
12404 else
12405 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12406 fi
12407 echo "$as_me:$LINENO: checking for gcc version" >&5
12408echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12409if test "${wx_cv_gccversion+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411else
12412
12413 cat >conftest.$ac_ext <<_ACEOF
12414/* confdefs.h. */
12415_ACEOF
12416cat confdefs.h >>conftest.$ac_ext
12417cat >>conftest.$ac_ext <<_ACEOF
12418/* end confdefs.h. */
12419
12420int
12421main ()
12422{
12423
12424 #if (__GNUC__ < 3)
12425 #error old gcc
12426 #endif
12427
12428 ;
12429 return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext
12433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12434 (eval $ac_compile) 2>conftest.er1
a848cd7e 12435 ac_status=$?
ac1cb8d3
VS
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
a848cd7e
SC
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
d51253e8 12441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453
12454 cat >conftest.$ac_ext <<_ACEOF
12455/* confdefs.h. */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h. */
12460
12461int
12462main ()
12463{
12464
12465 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12466 #error intermediate gcc
12467 #endif
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12475 (eval $ac_compile) 2>conftest.er1
a848cd7e 12476 ac_status=$?
ac1cb8d3
VS
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
a848cd7e
SC
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
d51253e8 12482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494
12495 wx_cv_gccversion=Innotek
12496
12497else
12498 echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501
12502 wx_cv_gccversion=3
12503
12504
12505fi
ac1cb8d3 12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12507
12508else
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512
12513 wx_cv_gccversion=2
12514
12515
12516fi
ac1cb8d3 12517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12518
12519fi
12520echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12521echo "${ECHO_T}$wx_cv_gccversion" >&6
12522 if test "$wx_cv_gccversion" = "2"; then
12523 LIBS="$LIBS -lstdcpp"
12524 LDFLAGS="$LDFLAGS -Zsysv-signals"
12525 else
12526 if test "$wx_cv_gccversion" = "3"; then
12527 LIBS="$LIBS -lstdcxx"
12528 LDFLAGS="$LDFLAGS -Zsysv-signals"
12529 else
12530 LIBS="$LIBS -lstdc++"
12531 fi
12532 fi
12533 if test "$wxUSE_OMF" = "yes"; then
de59c161 12534 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12535 fi
12536 ;;
12537 *)
12538
12539
12540
12541 ac_ext=cc
12542ac_cpp='$CXXCPP $CPPFLAGS'
12543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12546
12547
12548
12549echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12550echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12551if test "${ac_cv_string_strcasecmp+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554
12555 cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
12561
12562 #include <string.h>
12563
12564int
12565main ()
12566{
12567
12568 strcasecmp("foo", "bar");
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574rm -f conftest.$ac_objext conftest$ac_exeext
12575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12576 (eval $ac_link) 2>conftest.er1
a848cd7e 12577 ac_status=$?
ac1cb8d3
VS
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
a848cd7e
SC
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
d51253e8 12583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_cv_string_strcasecmp=yes
12596else
12597 echo "$as_me: failed program was:" >&5
12598sed 's/^/| /' conftest.$ac_ext >&5
12599
12600ac_cv_string_strcasecmp=no
12601
12602fi
ac1cb8d3
VS
12603rm -f conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12605
12606fi
12607echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12608echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12609
12610 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12611 cat >>confdefs.h <<\_ACEOF
12612#define HAVE_STRCASECMP_IN_STRING_H 1
12613_ACEOF
12614
12615 else
12616 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12617echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12618if test "${ac_cv_strings_strcasecmp+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620else
12621
12622 cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h. */
12628
12629 #include <strings.h>
12630
12631int
12632main ()
12633{
12634
12635 strcasecmp("foo", "bar");
12636
12637 ;
12638 return 0;
12639}
12640_ACEOF
12641rm -f conftest.$ac_objext conftest$ac_exeext
12642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12643 (eval $ac_link) 2>conftest.er1
a848cd7e 12644 ac_status=$?
ac1cb8d3
VS
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
a848cd7e
SC
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
d51253e8 12650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_strings_strcasecmp=yes
12663else
12664 echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667ac_cv_strings_strcasecmp=no
12668
12669fi
ac1cb8d3
VS
12670rm -f conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12672
12673fi
12674echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12675echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12676
0c3c69fc 12677 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12678 cat >>confdefs.h <<\_ACEOF
12679#define HAVE_STRCASECMP_IN_STRINGS_H 1
12680_ACEOF
12681
12682 else
12683 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12684echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12685 { (exit 1); exit 1; }; }
12686 fi
12687 fi
12688
12689 ac_ext=c
12690ac_cpp='$CPP $CPPFLAGS'
12691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12693ac_compiler_gnu=$ac_cv_c_compiler_gnu
12694
12695 ;;
12696esac
12697
12698
12699echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12700echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12701if test "${ac_cv_header_stdc+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703else
12704 cat >conftest.$ac_ext <<_ACEOF
12705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
12709/* end confdefs.h. */
12710#include <stdlib.h>
12711#include <stdarg.h>
12712#include <string.h>
12713#include <float.h>
12714
12715int
12716main ()
12717{
12718
12719 ;
12720 return 0;
12721}
12722_ACEOF
12723rm -f conftest.$ac_objext
12724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12725 (eval $ac_compile) 2>conftest.er1
a848cd7e 12726 ac_status=$?
ac1cb8d3
VS
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
a848cd7e
SC
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
d51253e8 12732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_cv_header_stdc=yes
12745else
12746 echo "$as_me: failed program was:" >&5
12747sed 's/^/| /' conftest.$ac_ext >&5
12748
12749ac_cv_header_stdc=no
12750fi
ac1cb8d3 12751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12752
12753if test $ac_cv_header_stdc = yes; then
12754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12755 cat >conftest.$ac_ext <<_ACEOF
12756/* confdefs.h. */
12757_ACEOF
12758cat confdefs.h >>conftest.$ac_ext
12759cat >>conftest.$ac_ext <<_ACEOF
12760/* end confdefs.h. */
12761#include <string.h>
12762
12763_ACEOF
12764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "memchr" >/dev/null 2>&1; then
12766 :
12767else
12768 ac_cv_header_stdc=no
12769fi
12770rm -f conftest*
12771
12772fi
12773
12774if test $ac_cv_header_stdc = yes; then
12775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12776 cat >conftest.$ac_ext <<_ACEOF
12777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
12782#include <stdlib.h>
12783
12784_ACEOF
12785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12786 $EGREP "free" >/dev/null 2>&1; then
12787 :
12788else
12789 ac_cv_header_stdc=no
12790fi
12791rm -f conftest*
12792
12793fi
12794
12795if test $ac_cv_header_stdc = yes; then
12796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12797 if test "$cross_compiling" = yes; then
12798 :
12799else
12800 cat >conftest.$ac_ext <<_ACEOF
12801/* confdefs.h. */
12802_ACEOF
12803cat confdefs.h >>conftest.$ac_ext
12804cat >>conftest.$ac_ext <<_ACEOF
12805/* end confdefs.h. */
12806#include <ctype.h>
12807#if ((' ' & 0x0FF) == 0x020)
12808# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12809# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12810#else
12811# define ISLOWER(c) \
ac1cb8d3
VS
12812 (('a' <= (c) && (c) <= 'i') \
12813 || ('j' <= (c) && (c) <= 'r') \
12814 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12815# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12816#endif
12817
12818#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12819int
12820main ()
12821{
12822 int i;
12823 for (i = 0; i < 256; i++)
12824 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12825 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12826 exit(2);
12827 exit (0);
12828}
12829_ACEOF
12830rm -f conftest$ac_exeext
12831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12832 (eval $ac_link) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 :
12842else
12843 echo "$as_me: program exited with status $ac_status" >&5
12844echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847( exit $ac_status )
12848ac_cv_header_stdc=no
12849fi
ac1cb8d3 12850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12851fi
12852fi
12853fi
12854echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12855echo "${ECHO_T}$ac_cv_header_stdc" >&6
12856if test $ac_cv_header_stdc = yes; then
12857
12858cat >>confdefs.h <<\_ACEOF
12859#define STDC_HEADERS 1
12860_ACEOF
12861
12862fi
12863
12864# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12875 inttypes.h stdint.h unistd.h
a848cd7e
SC
12876do
12877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12878echo "$as_me:$LINENO: checking for $ac_header" >&5
12879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12880if eval "test \"\${$as_ac_Header+set}\" = set"; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882else
12883 cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889$ac_includes_default
12890
12891#include <$ac_header>
12892_ACEOF
12893rm -f conftest.$ac_objext
12894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12895 (eval $ac_compile) 2>conftest.er1
a848cd7e 12896 ac_status=$?
ac1cb8d3
VS
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
a848cd7e
SC
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
d51253e8 12902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_Header=yes"
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919eval "$as_ac_Header=no"
12920fi
ac1cb8d3 12921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12922fi
12923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12925if test `eval echo '${'$as_ac_Header'}'` = yes; then
12926 cat >>confdefs.h <<_ACEOF
12927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928_ACEOF
12929
12930fi
12931
12932done
12933
12934
12935
12936for ac_header in stdlib.h
12937do
12938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12939if eval "test \"\${$as_ac_Header+set}\" = set"; then
12940 echo "$as_me:$LINENO: checking for $ac_header" >&5
12941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12942if eval "test \"\${$as_ac_Header+set}\" = set"; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944fi
12945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12947else
12948 # Is the header compilable?
12949echo "$as_me:$LINENO: checking $ac_header usability" >&5
12950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12951cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
12957$ac_includes_default
12958#include <$ac_header>
12959_ACEOF
12960rm -f conftest.$ac_objext
12961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12962 (eval $ac_compile) 2>conftest.er1
a848cd7e 12963 ac_status=$?
ac1cb8d3
VS
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
a848cd7e
SC
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
d51253e8 12969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_header_compiler=yes
12982else
12983 echo "$as_me: failed program was:" >&5
12984sed 's/^/| /' conftest.$ac_ext >&5
12985
12986ac_header_compiler=no
12987fi
ac1cb8d3 12988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12990echo "${ECHO_T}$ac_header_compiler" >&6
12991
12992# Is the header present?
12993echo "$as_me:$LINENO: checking $ac_header presence" >&5
12994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12995cat >conftest.$ac_ext <<_ACEOF
12996/* confdefs.h. */
12997_ACEOF
12998cat confdefs.h >>conftest.$ac_ext
12999cat >>conftest.$ac_ext <<_ACEOF
13000/* end confdefs.h. */
13001#include <$ac_header>
13002_ACEOF
13003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } >/dev/null; then
13011 if test -s conftest.err; then
13012 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13014 else
13015 ac_cpp_err=
13016 fi
13017else
13018 ac_cpp_err=yes
13019fi
13020if test -z "$ac_cpp_err"; then
13021 ac_header_preproc=yes
13022else
13023 echo "$as_me: failed program was:" >&5
13024sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 ac_header_preproc=no
13027fi
13028rm -f conftest.err conftest.$ac_ext
13029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13030echo "${ECHO_T}$ac_header_preproc" >&6
13031
13032# So? What about this header?
ac1cb8d3
VS
13033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13034 yes:no: )
a848cd7e
SC
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13039 ac_header_preproc=yes
a848cd7e 13040 ;;
ac1cb8d3 13041 no:yes:* )
a848cd7e
SC
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13054 (
13055 cat <<\_ASBOX
ac1cb8d3
VS
13056## ----------------------------------------- ##
13057## Report this to wx-dev@lists.wxwidgets.org ##
13058## ----------------------------------------- ##
a848cd7e
SC
13059_ASBOX
13060 ) |
13061 sed "s/^/$as_me: WARNING: /" >&2
13062 ;;
13063esac
13064echo "$as_me:$LINENO: checking for $ac_header" >&5
13065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13066if eval "test \"\${$as_ac_Header+set}\" = set"; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
ac1cb8d3 13069 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13070fi
13071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13073
13074fi
13075if test `eval echo '${'$as_ac_Header'}'` = yes; then
13076 cat >>confdefs.h <<_ACEOF
13077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13078_ACEOF
13079
13080fi
13081
13082done
13083
13084
13085for ac_header in malloc.h
13086do
13087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13088if eval "test \"\${$as_ac_Header+set}\" = set"; then
13089 echo "$as_me:$LINENO: checking for $ac_header" >&5
13090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13091if eval "test \"\${$as_ac_Header+set}\" = set"; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093fi
13094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13096else
13097 # Is the header compilable?
13098echo "$as_me:$LINENO: checking $ac_header usability" >&5
13099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13100cat >conftest.$ac_ext <<_ACEOF
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
13106$ac_includes_default
13107#include <$ac_header>
13108_ACEOF
13109rm -f conftest.$ac_objext
13110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13111 (eval $ac_compile) 2>conftest.er1
a848cd7e 13112 ac_status=$?
ac1cb8d3
VS
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
a848cd7e
SC
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
d51253e8 13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_header_compiler=yes
13131else
13132 echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
13134
13135ac_header_compiler=no
13136fi
ac1cb8d3 13137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13139echo "${ECHO_T}$ac_header_compiler" >&6
13140
13141# Is the header present?
13142echo "$as_me:$LINENO: checking $ac_header presence" >&5
13143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13144cat >conftest.$ac_ext <<_ACEOF
13145/* confdefs.h. */
13146_ACEOF
13147cat confdefs.h >>conftest.$ac_ext
13148cat >>conftest.$ac_ext <<_ACEOF
13149/* end confdefs.h. */
13150#include <$ac_header>
13151_ACEOF
13152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13154 ac_status=$?
13155 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } >/dev/null; then
13160 if test -s conftest.err; then
13161 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13163 else
13164 ac_cpp_err=
13165 fi
13166else
13167 ac_cpp_err=yes
13168fi
13169if test -z "$ac_cpp_err"; then
13170 ac_header_preproc=yes
13171else
13172 echo "$as_me: failed program was:" >&5
13173sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_header_preproc=no
13176fi
13177rm -f conftest.err conftest.$ac_ext
13178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13179echo "${ECHO_T}$ac_header_preproc" >&6
13180
13181# So? What about this header?
ac1cb8d3
VS
13182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13183 yes:no: )
a848cd7e
SC
13184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13188 ac_header_preproc=yes
a848cd7e 13189 ;;
ac1cb8d3 13190 no:yes:* )
a848cd7e
SC
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13203 (
13204 cat <<\_ASBOX
ac1cb8d3
VS
13205## ----------------------------------------- ##
13206## Report this to wx-dev@lists.wxwidgets.org ##
13207## ----------------------------------------- ##
a848cd7e
SC
13208_ASBOX
13209 ) |
13210 sed "s/^/$as_me: WARNING: /" >&2
13211 ;;
13212esac
13213echo "$as_me:$LINENO: checking for $ac_header" >&5
13214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13215if eval "test \"\${$as_ac_Header+set}\" = set"; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217else
ac1cb8d3 13218 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13219fi
13220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13222
13223fi
13224if test `eval echo '${'$as_ac_Header'}'` = yes; then
13225 cat >>confdefs.h <<_ACEOF
13226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13227_ACEOF
13228
13229fi
13230
13231done
13232
13233
13234for ac_header in unistd.h
13235do
13236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13237if eval "test \"\${$as_ac_Header+set}\" = set"; then
13238 echo "$as_me:$LINENO: checking for $ac_header" >&5
13239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13240if eval "test \"\${$as_ac_Header+set}\" = set"; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242fi
13243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13245else
13246 # Is the header compilable?
13247echo "$as_me:$LINENO: checking $ac_header usability" >&5
13248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13249cat >conftest.$ac_ext <<_ACEOF
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
13254/* end confdefs.h. */
13255$ac_includes_default
13256#include <$ac_header>
13257_ACEOF
13258rm -f conftest.$ac_objext
13259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13260 (eval $ac_compile) 2>conftest.er1
a848cd7e 13261 ac_status=$?
ac1cb8d3
VS
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
a848cd7e
SC
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
d51253e8 13267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_header_compiler=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284ac_header_compiler=no
13285fi
ac1cb8d3 13286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13288echo "${ECHO_T}$ac_header_compiler" >&6
13289
13290# Is the header present?
13291echo "$as_me:$LINENO: checking $ac_header presence" >&5
13292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13293cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
13299#include <$ac_header>
13300_ACEOF
13301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13312 else
13313 ac_cpp_err=
13314 fi
13315else
13316 ac_cpp_err=yes
13317fi
13318if test -z "$ac_cpp_err"; then
13319 ac_header_preproc=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_header_preproc=no
13325fi
13326rm -f conftest.err conftest.$ac_ext
13327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328echo "${ECHO_T}$ac_header_preproc" >&6
13329
13330# So? What about this header?
ac1cb8d3
VS
13331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13332 yes:no: )
a848cd7e
SC
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13337 ac_header_preproc=yes
a848cd7e 13338 ;;
ac1cb8d3 13339 no:yes:* )
a848cd7e
SC
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13352 (
13353 cat <<\_ASBOX
ac1cb8d3
VS
13354## ----------------------------------------- ##
13355## Report this to wx-dev@lists.wxwidgets.org ##
13356## ----------------------------------------- ##
a848cd7e
SC
13357_ASBOX
13358 ) |
13359 sed "s/^/$as_me: WARNING: /" >&2
13360 ;;
13361esac
13362echo "$as_me:$LINENO: checking for $ac_header" >&5
13363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13364if eval "test \"\${$as_ac_Header+set}\" = set"; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
ac1cb8d3 13367 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13368fi
13369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13371
13372fi
13373if test `eval echo '${'$as_ac_Header'}'` = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376_ACEOF
13377
13378fi
13379
13380done
13381
13382
13383for ac_header in wchar.h
13384do
13385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13386if eval "test \"\${$as_ac_Header+set}\" = set"; then
13387 echo "$as_me:$LINENO: checking for $ac_header" >&5
13388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13389if eval "test \"\${$as_ac_Header+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391fi
13392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13394else
13395 # Is the header compilable?
13396echo "$as_me:$LINENO: checking $ac_header usability" >&5
13397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13398cat >conftest.$ac_ext <<_ACEOF
13399/* confdefs.h. */
13400_ACEOF
13401cat confdefs.h >>conftest.$ac_ext
13402cat >>conftest.$ac_ext <<_ACEOF
13403/* end confdefs.h. */
13404$ac_includes_default
13405#include <$ac_header>
13406_ACEOF
13407rm -f conftest.$ac_objext
13408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13409 (eval $ac_compile) 2>conftest.er1
a848cd7e 13410 ac_status=$?
ac1cb8d3
VS
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
a848cd7e
SC
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
d51253e8 13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_header_compiler=yes
13429else
13430 echo "$as_me: failed program was:" >&5
13431sed 's/^/| /' conftest.$ac_ext >&5
13432
13433ac_header_compiler=no
13434fi
ac1cb8d3 13435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13437echo "${ECHO_T}$ac_header_compiler" >&6
13438
13439# Is the header present?
13440echo "$as_me:$LINENO: checking $ac_header presence" >&5
13441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13442cat >conftest.$ac_ext <<_ACEOF
13443/* confdefs.h. */
13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448#include <$ac_header>
13449_ACEOF
13450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13461 else
13462 ac_cpp_err=
13463 fi
13464else
13465 ac_cpp_err=yes
13466fi
13467if test -z "$ac_cpp_err"; then
13468 ac_header_preproc=yes
13469else
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_header_preproc=no
13474fi
13475rm -f conftest.err conftest.$ac_ext
13476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13477echo "${ECHO_T}$ac_header_preproc" >&6
13478
13479# So? What about this header?
ac1cb8d3
VS
13480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13481 yes:no: )
a848cd7e
SC
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13486 ac_header_preproc=yes
a848cd7e 13487 ;;
ac1cb8d3 13488 no:yes:* )
a848cd7e
SC
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13501 (
13502 cat <<\_ASBOX
ac1cb8d3
VS
13503## ----------------------------------------- ##
13504## Report this to wx-dev@lists.wxwidgets.org ##
13505## ----------------------------------------- ##
a848cd7e
SC
13506_ASBOX
13507 ) |
13508 sed "s/^/$as_me: WARNING: /" >&2
13509 ;;
13510esac
13511echo "$as_me:$LINENO: checking for $ac_header" >&5
13512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13513if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
ac1cb8d3 13516 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13517fi
13518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520
13521fi
13522if test `eval echo '${'$as_ac_Header'}'` = yes; then
13523 cat >>confdefs.h <<_ACEOF
13524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13525_ACEOF
13526
13527fi
13528
13529done
13530
13531
13532if test "$ac_cv_header_wchar_h" != "yes"; then
13533
13534for ac_header in wcstr.h
13535do
13536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13537if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538 echo "$as_me:$LINENO: checking for $ac_header" >&5
13539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13540if eval "test \"\${$as_ac_Header+set}\" = set"; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542fi
13543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13545else
13546 # Is the header compilable?
13547echo "$as_me:$LINENO: checking $ac_header usability" >&5
13548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13549cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555$ac_includes_default
13556#include <$ac_header>
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13560 (eval $ac_compile) 2>conftest.er1
a848cd7e 13561 ac_status=$?
ac1cb8d3
VS
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
a848cd7e
SC
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
d51253e8 13567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_header_compiler=yes
13580else
13581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
13583
13584ac_header_compiler=no
13585fi
ac1cb8d3 13586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13587echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13588echo "${ECHO_T}$ac_header_compiler" >&6
13589
13590# Is the header present?
13591echo "$as_me:$LINENO: checking $ac_header presence" >&5
13592echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13593cat >conftest.$ac_ext <<_ACEOF
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
13599#include <$ac_header>
13600_ACEOF
13601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } >/dev/null; then
13609 if test -s conftest.err; then
13610 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13612 else
13613 ac_cpp_err=
13614 fi
13615else
13616 ac_cpp_err=yes
13617fi
13618if test -z "$ac_cpp_err"; then
13619 ac_header_preproc=yes
13620else
13621 echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 ac_header_preproc=no
13625fi
13626rm -f conftest.err conftest.$ac_ext
13627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13628echo "${ECHO_T}$ac_header_preproc" >&6
13629
13630# So? What about this header?
ac1cb8d3
VS
13631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13632 yes:no: )
a848cd7e
SC
13633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13637 ac_header_preproc=yes
a848cd7e 13638 ;;
ac1cb8d3 13639 no:yes:* )
a848cd7e
SC
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13652 (
13653 cat <<\_ASBOX
ac1cb8d3
VS
13654## ----------------------------------------- ##
13655## Report this to wx-dev@lists.wxwidgets.org ##
13656## ----------------------------------------- ##
a848cd7e
SC
13657_ASBOX
13658 ) |
13659 sed "s/^/$as_me: WARNING: /" >&2
13660 ;;
13661esac
13662echo "$as_me:$LINENO: checking for $ac_header" >&5
13663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13664if eval "test \"\${$as_ac_Header+set}\" = set"; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666else
ac1cb8d3 13667 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13668fi
13669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13671
13672fi
13673if test `eval echo '${'$as_ac_Header'}'` = yes; then
13674 cat >>confdefs.h <<_ACEOF
13675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13676_ACEOF
13677
13678fi
13679
13680done
13681
13682fi
13683
13684
13685for ac_header in fnmatch.h
13686do
13687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13688if eval "test \"\${$as_ac_Header+set}\" = set"; then
13689 echo "$as_me:$LINENO: checking for $ac_header" >&5
13690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13691if eval "test \"\${$as_ac_Header+set}\" = set"; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693fi
13694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13696else
13697 # Is the header compilable?
13698echo "$as_me:$LINENO: checking $ac_header usability" >&5
13699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13700cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
13705/* end confdefs.h. */
13706$ac_includes_default
13707#include <$ac_header>
13708_ACEOF
13709rm -f conftest.$ac_objext
13710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13711 (eval $ac_compile) 2>conftest.er1
a848cd7e 13712 ac_status=$?
ac1cb8d3
VS
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
a848cd7e
SC
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
d51253e8 13718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_header_compiler=yes
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
13735ac_header_compiler=no
13736fi
ac1cb8d3 13737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13739echo "${ECHO_T}$ac_header_compiler" >&6
13740
13741# Is the header present?
13742echo "$as_me:$LINENO: checking $ac_header presence" >&5
13743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13744cat >conftest.$ac_ext <<_ACEOF
13745/* confdefs.h. */
13746_ACEOF
13747cat confdefs.h >>conftest.$ac_ext
13748cat >>conftest.$ac_ext <<_ACEOF
13749/* end confdefs.h. */
13750#include <$ac_header>
13751_ACEOF
13752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } >/dev/null; then
13760 if test -s conftest.err; then
13761 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13763 else
13764 ac_cpp_err=
13765 fi
13766else
13767 ac_cpp_err=yes
13768fi
13769if test -z "$ac_cpp_err"; then
13770 ac_header_preproc=yes
13771else
13772 echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 ac_header_preproc=no
13776fi
13777rm -f conftest.err conftest.$ac_ext
13778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779echo "${ECHO_T}$ac_header_preproc" >&6
13780
13781# So? What about this header?
ac1cb8d3
VS
13782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13783 yes:no: )
a848cd7e
SC
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13788 ac_header_preproc=yes
a848cd7e 13789 ;;
ac1cb8d3 13790 no:yes:* )
a848cd7e
SC
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13803 (
13804 cat <<\_ASBOX
ac1cb8d3
VS
13805## ----------------------------------------- ##
13806## Report this to wx-dev@lists.wxwidgets.org ##
13807## ----------------------------------------- ##
a848cd7e
SC
13808_ASBOX
13809 ) |
13810 sed "s/^/$as_me: WARNING: /" >&2
13811 ;;
13812esac
13813echo "$as_me:$LINENO: checking for $ac_header" >&5
13814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13815if eval "test \"\${$as_ac_Header+set}\" = set"; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817else
ac1cb8d3 13818 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13819fi
13820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13822
13823fi
13824if test `eval echo '${'$as_ac_Header'}'` = yes; then
13825 cat >>confdefs.h <<_ACEOF
13826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13827_ACEOF
13828
13829fi
13830
13831done
13832
13833
13834if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13835
13836for ac_func in fnmatch
13837do
13838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839echo "$as_me:$LINENO: checking for $ac_func" >&5
13840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13841if eval "test \"\${$as_ac_var+set}\" = set"; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843else
13844 cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
ac1cb8d3
VS
13850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13852#define $ac_func innocuous_$ac_func
13853
a848cd7e
SC
13854/* System header to define __stub macros and hopefully few prototypes,
13855 which can conflict with char $ac_func (); below.
13856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13857 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13858
a848cd7e
SC
13859#ifdef __STDC__
13860# include <limits.h>
13861#else
13862# include <assert.h>
13863#endif
ac1cb8d3
VS
13864
13865#undef $ac_func
13866
a848cd7e
SC
13867/* Override any gcc2 internal prototype to avoid an error. */
13868#ifdef __cplusplus
13869extern "C"
13870{
13871#endif
13872/* We use char because int might match the return type of a gcc2
13873 builtin and then its argument prototype would still apply. */
13874char $ac_func ();
13875/* The GNU C library defines this for functions which it implements
13876 to always fail with ENOSYS. Some functions are actually named
13877 something starting with __ and the normal name is an alias. */
13878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13879choke me
13880#else
13881char (*f) () = $ac_func;
13882#endif
13883#ifdef __cplusplus
13884}
13885#endif
13886
13887int
13888main ()
13889{
13890return f != $ac_func;
13891 ;
13892 return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext conftest$ac_exeext
13896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13897 (eval $ac_link) 2>conftest.er1
a848cd7e 13898 ac_status=$?
ac1cb8d3
VS
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
a848cd7e
SC
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
d51253e8 13904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; } &&
13910 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
13916 eval "$as_ac_var=yes"
13917else
13918 echo "$as_me: failed program was:" >&5
13919sed 's/^/| /' conftest.$ac_ext >&5
13920
13921eval "$as_ac_var=no"
13922fi
ac1cb8d3
VS
13923rm -f conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13925fi
13926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13927echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13928if test `eval echo '${'$as_ac_var'}'` = yes; then
13929 cat >>confdefs.h <<_ACEOF
13930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13931_ACEOF
13932
13933fi
13934done
13935
13936fi
13937
13938
13939for ac_header in langinfo.h
13940do
13941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13942if eval "test \"\${$as_ac_Header+set}\" = set"; then
13943 echo "$as_me:$LINENO: checking for $ac_header" >&5
13944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13945if eval "test \"\${$as_ac_Header+set}\" = set"; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947fi
13948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13950else
13951 # Is the header compilable?
13952echo "$as_me:$LINENO: checking $ac_header usability" >&5
13953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13954cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960$ac_includes_default
13961#include <$ac_header>
13962_ACEOF
13963rm -f conftest.$ac_objext
13964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13965 (eval $ac_compile) 2>conftest.er1
a848cd7e 13966 ac_status=$?
ac1cb8d3
VS
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
a848cd7e
SC
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
d51253e8 13972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_header_compiler=yes
13985else
13986 echo "$as_me: failed program was:" >&5
13987sed 's/^/| /' conftest.$ac_ext >&5
13988
13989ac_header_compiler=no
13990fi
ac1cb8d3 13991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13993echo "${ECHO_T}$ac_header_compiler" >&6
13994
13995# Is the header present?
13996echo "$as_me:$LINENO: checking $ac_header presence" >&5
13997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13998cat >conftest.$ac_ext <<_ACEOF
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
14003/* end confdefs.h. */
14004#include <$ac_header>
14005_ACEOF
14006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } >/dev/null; then
14014 if test -s conftest.err; then
14015 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14017 else
14018 ac_cpp_err=
14019 fi
14020else
14021 ac_cpp_err=yes
14022fi
14023if test -z "$ac_cpp_err"; then
14024 ac_header_preproc=yes
14025else
14026 echo "$as_me: failed program was:" >&5
14027sed 's/^/| /' conftest.$ac_ext >&5
14028
14029 ac_header_preproc=no
14030fi
14031rm -f conftest.err conftest.$ac_ext
14032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14033echo "${ECHO_T}$ac_header_preproc" >&6
14034
14035# So? What about this header?
ac1cb8d3
VS
14036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14037 yes:no: )
a848cd7e
SC
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14042 ac_header_preproc=yes
a848cd7e 14043 ;;
ac1cb8d3 14044 no:yes:* )
a848cd7e
SC
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14057 (
14058 cat <<\_ASBOX
ac1cb8d3
VS
14059## ----------------------------------------- ##
14060## Report this to wx-dev@lists.wxwidgets.org ##
14061## ----------------------------------------- ##
a848cd7e
SC
14062_ASBOX
14063 ) |
14064 sed "s/^/$as_me: WARNING: /" >&2
14065 ;;
14066esac
14067echo "$as_me:$LINENO: checking for $ac_header" >&5
14068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071else
ac1cb8d3 14072 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14073fi
14074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14076
14077fi
14078if test `eval echo '${'$as_ac_Header'}'` = yes; then
14079 cat >>confdefs.h <<_ACEOF
14080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14081_ACEOF
14082
14083fi
14084
14085done
14086
14087
14088case "${host}" in
14089 *-pc-os2_emx | *-pc-os2-emx )
14090 if test $ac_cv_header_langinfo_h = "yes"; then
14091 LIBS="$LIBS -lintl"
14092 fi
14093 ;;
14094esac
14095
14096if test "$wxUSE_GUI" = "yes"; then
14097 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14098
14099for ac_header in X11/Xlib.h
14100do
14101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14102if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo "$as_me:$LINENO: checking for $ac_header" >&5
14104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14105if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107fi
14108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14110else
14111 # Is the header compilable?
14112echo "$as_me:$LINENO: checking $ac_header usability" >&5
14113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14114cat >conftest.$ac_ext <<_ACEOF
14115/* confdefs.h. */
14116_ACEOF
14117cat confdefs.h >>conftest.$ac_ext
14118cat >>conftest.$ac_ext <<_ACEOF
14119/* end confdefs.h. */
14120$ac_includes_default
14121#include <$ac_header>
14122_ACEOF
14123rm -f conftest.$ac_objext
14124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14125 (eval $ac_compile) 2>conftest.er1
a848cd7e 14126 ac_status=$?
ac1cb8d3
VS
14127 grep -v '^ *+' conftest.er1 >conftest.err
14128 rm -f conftest.er1
14129 cat conftest.err >&5
a848cd7e
SC
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
d51253e8 14132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; } &&
14138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 ac_header_compiler=yes
14145else
14146 echo "$as_me: failed program was:" >&5
14147sed 's/^/| /' conftest.$ac_ext >&5
14148
14149ac_header_compiler=no
14150fi
ac1cb8d3 14151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14153echo "${ECHO_T}$ac_header_compiler" >&6
14154
14155# Is the header present?
14156echo "$as_me:$LINENO: checking $ac_header presence" >&5
14157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14158cat >conftest.$ac_ext <<_ACEOF
14159/* confdefs.h. */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */
14164#include <$ac_header>
14165_ACEOF
14166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } >/dev/null; then
14174 if test -s conftest.err; then
14175 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14177 else
14178 ac_cpp_err=
14179 fi
14180else
14181 ac_cpp_err=yes
14182fi
14183if test -z "$ac_cpp_err"; then
14184 ac_header_preproc=yes
14185else
14186 echo "$as_me: failed program was:" >&5
14187sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 ac_header_preproc=no
14190fi
14191rm -f conftest.err conftest.$ac_ext
14192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14193echo "${ECHO_T}$ac_header_preproc" >&6
14194
14195# So? What about this header?
ac1cb8d3
VS
14196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14197 yes:no: )
a848cd7e
SC
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14202 ac_header_preproc=yes
a848cd7e 14203 ;;
ac1cb8d3 14204 no:yes:* )
a848cd7e
SC
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14217 (
14218 cat <<\_ASBOX
ac1cb8d3
VS
14219## ----------------------------------------- ##
14220## Report this to wx-dev@lists.wxwidgets.org ##
14221## ----------------------------------------- ##
a848cd7e
SC
14222_ASBOX
14223 ) |
14224 sed "s/^/$as_me: WARNING: /" >&2
14225 ;;
14226esac
14227echo "$as_me:$LINENO: checking for $ac_header" >&5
14228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14229if eval "test \"\${$as_ac_Header+set}\" = set"; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231else
ac1cb8d3 14232 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14233fi
14234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14236
14237fi
14238if test `eval echo '${'$as_ac_Header'}'` = yes; then
14239 cat >>confdefs.h <<_ACEOF
14240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14241_ACEOF
14242
14243fi
14244
14245done
14246
14247
14248for ac_header in X11/XKBlib.h
14249do
14250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14251echo "$as_me:$LINENO: checking for $ac_header" >&5
14252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14253if eval "test \"\${$as_ac_Header+set}\" = set"; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255else
14256 cat >conftest.$ac_ext <<_ACEOF
14257/* confdefs.h. */
14258_ACEOF
14259cat confdefs.h >>conftest.$ac_ext
14260cat >>conftest.$ac_ext <<_ACEOF
14261/* end confdefs.h. */
14262
14263 #if HAVE_X11_XLIB_H
14264 #include <X11/Xlib.h>
14265 #endif
14266
14267
14268#include <$ac_header>
14269_ACEOF
14270rm -f conftest.$ac_objext
14271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14272 (eval $ac_compile) 2>conftest.er1
a848cd7e 14273 ac_status=$?
ac1cb8d3
VS
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
a848cd7e
SC
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
d51253e8 14279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 eval "$as_ac_Header=yes"
14292else
14293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296eval "$as_ac_Header=no"
14297fi
ac1cb8d3 14298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14299fi
14300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14302if test `eval echo '${'$as_ac_Header'}'` = yes; then
14303 cat >>confdefs.h <<_ACEOF
14304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14305_ACEOF
14306
14307fi
14308
14309done
14310
14311 fi
14312fi
14313
14314
14315echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14316echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14317if test "${ac_cv_c_const+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319else
14320 cat >conftest.$ac_ext <<_ACEOF
14321/* confdefs.h. */
14322_ACEOF
14323cat confdefs.h >>conftest.$ac_ext
14324cat >>conftest.$ac_ext <<_ACEOF
14325/* end confdefs.h. */
14326
14327int
14328main ()
14329{
14330/* FIXME: Include the comments suggested by Paul. */
14331#ifndef __cplusplus
14332 /* Ultrix mips cc rejects this. */
14333 typedef int charset[2];
14334 const charset x;
14335 /* SunOS 4.1.1 cc rejects this. */
14336 char const *const *ccp;
14337 char **p;
14338 /* NEC SVR4.0.2 mips cc rejects this. */
14339 struct point {int x, y;};
14340 static struct point const zero = {0,0};
14341 /* AIX XL C 1.02.0.0 rejects this.
14342 It does not let you subtract one const X* pointer from another in
14343 an arm of an if-expression whose if-part is not a constant
14344 expression */
14345 const char *g = "string";
14346 ccp = &g + (g ? g-g : 0);
14347 /* HPUX 7.0 cc rejects these. */
14348 ++ccp;
14349 p = (char**) ccp;
14350 ccp = (char const *const *) p;
14351 { /* SCO 3.2v4 cc rejects this. */
14352 char *t;
14353 char const *s = 0 ? (char *) 0 : (char const *) 0;
14354
14355 *t++ = 0;
14356 }
14357 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14358 int x[] = {25, 17};
14359 const int *foo = &x[0];
14360 ++foo;
14361 }
14362 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14363 typedef const int *iptr;
14364 iptr p = 0;
14365 ++p;
14366 }
14367 { /* AIX XL C 1.02.0.0 rejects this saying
14368 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14369 struct s { int j; const int *ap[3]; };
14370 struct s *b; b->j = 5;
14371 }
14372 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14373 const int foo = 10;
14374 }
14375#endif
14376
14377 ;
14378 return 0;
14379}
14380_ACEOF
14381rm -f conftest.$ac_objext
14382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14383 (eval $ac_compile) 2>conftest.er1
a848cd7e 14384 ac_status=$?
ac1cb8d3
VS
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
a848cd7e
SC
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
d51253e8 14390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_cv_c_const=yes
14403else
14404 echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
14406
14407ac_cv_c_const=no
14408fi
ac1cb8d3 14409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14410fi
14411echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14412echo "${ECHO_T}$ac_cv_c_const" >&6
14413if test $ac_cv_c_const = no; then
14414
14415cat >>confdefs.h <<\_ACEOF
14416#define const
14417_ACEOF
14418
14419fi
14420
14421echo "$as_me:$LINENO: checking for inline" >&5
14422echo $ECHO_N "checking for inline... $ECHO_C" >&6
14423if test "${ac_cv_c_inline+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426 ac_cv_c_inline=no
14427for ac_kw in inline __inline__ __inline; do
14428 cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
14434#ifndef __cplusplus
14435typedef int foo_t;
14436static $ac_kw foo_t static_foo () {return 0; }
14437$ac_kw foo_t foo () {return 0; }
14438#endif
14439
14440_ACEOF
14441rm -f conftest.$ac_objext
14442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14443 (eval $ac_compile) 2>conftest.er1
a848cd7e 14444 ac_status=$?
ac1cb8d3
VS
14445 grep -v '^ *+' conftest.er1 >conftest.err
14446 rm -f conftest.er1
14447 cat conftest.err >&5
a848cd7e
SC
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
d51253e8 14450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; }; then
14462 ac_cv_c_inline=$ac_kw; break
14463else
14464 echo "$as_me: failed program was:" >&5
14465sed 's/^/| /' conftest.$ac_ext >&5
14466
14467fi
ac1cb8d3 14468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14469done
14470
14471fi
14472echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14473echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14474
14475
a848cd7e
SC
14476case $ac_cv_c_inline in
14477 inline | yes) ;;
ac1cb8d3
VS
14478 *)
14479 case $ac_cv_c_inline in
14480 no) ac_val=;;
14481 *) ac_val=$ac_cv_c_inline;;
14482 esac
14483 cat >>confdefs.h <<_ACEOF
14484#ifndef __cplusplus
14485#define inline $ac_val
14486#endif
de59c161 14487_ACEOF
ac1cb8d3 14488 ;;
a848cd7e
SC
14489esac
14490
14491
14492echo "$as_me:$LINENO: checking for char" >&5
14493echo $ECHO_N "checking for char... $ECHO_C" >&6
14494if test "${ac_cv_type_char+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14496else
14497 cat >conftest.$ac_ext <<_ACEOF
14498/* confdefs.h. */
14499_ACEOF
14500cat confdefs.h >>conftest.$ac_ext
14501cat >>conftest.$ac_ext <<_ACEOF
14502/* end confdefs.h. */
14503$ac_includes_default
14504int
14505main ()
14506{
14507if ((char *) 0)
14508 return 0;
14509if (sizeof (char))
14510 return 0;
14511 ;
14512 return 0;
14513}
14514_ACEOF
14515rm -f conftest.$ac_objext
14516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14517 (eval $ac_compile) 2>conftest.er1
a848cd7e 14518 ac_status=$?
ac1cb8d3
VS
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
a848cd7e
SC
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
d51253e8 14524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 ac_cv_type_char=yes
14537else
14538 echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541ac_cv_type_char=no
14542fi
ac1cb8d3 14543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14544fi
14545echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14546echo "${ECHO_T}$ac_cv_type_char" >&6
14547
14548echo "$as_me:$LINENO: checking size of char" >&5
14549echo $ECHO_N "checking size of char... $ECHO_C" >&6
14550if test "${ac_cv_sizeof_char+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552else
14553 if test "$ac_cv_type_char" = yes; then
14554 # The cast to unsigned long works around a bug in the HP C Compiler
14555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14557 # This bug is HP SR number 8606223364.
14558 if test "$cross_compiling" = yes; then
14559 # Depending upon the size, compute the lo and hi bounds.
14560cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
14566$ac_includes_default
14567int
14568main ()
14569{
14570static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14571test_array [0] = 0
14572
14573 ;
14574 return 0;
14575}
14576_ACEOF
14577rm -f conftest.$ac_objext
14578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14579 (eval $ac_compile) 2>conftest.er1
a848cd7e 14580 ac_status=$?
ac1cb8d3
VS
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
a848cd7e
SC
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
d51253e8 14586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_lo=0 ac_mid=0
14599 while :; do
14600 cat >conftest.$ac_ext <<_ACEOF
14601/* confdefs.h. */
14602_ACEOF
14603cat confdefs.h >>conftest.$ac_ext
14604cat >>conftest.$ac_ext <<_ACEOF
14605/* end confdefs.h. */
14606$ac_includes_default
14607int
14608main ()
14609{
14610static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14611test_array [0] = 0
14612
14613 ;
14614 return 0;
14615}
14616_ACEOF
14617rm -f conftest.$ac_objext
14618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14619 (eval $ac_compile) 2>conftest.er1
a848cd7e 14620 ac_status=$?
ac1cb8d3
VS
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
a848cd7e
SC
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } &&
d51253e8 14626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_hi=$ac_mid; break
14639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14644 if test $ac_lo -le $ac_mid; then
14645 ac_lo= ac_hi=
14646 break
14647 fi
14648 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14649fi
ac1cb8d3 14650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14651 done
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656cat >conftest.$ac_ext <<_ACEOF
14657/* confdefs.h. */
14658_ACEOF
14659cat confdefs.h >>conftest.$ac_ext
14660cat >>conftest.$ac_ext <<_ACEOF
14661/* end confdefs.h. */
14662$ac_includes_default
14663int
14664main ()
14665{
14666static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14667test_array [0] = 0
14668
14669 ;
14670 return 0;
14671}
14672_ACEOF
14673rm -f conftest.$ac_objext
14674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14675 (eval $ac_compile) 2>conftest.er1
a848cd7e 14676 ac_status=$?
ac1cb8d3
VS
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
a848cd7e
SC
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
d51253e8 14682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_hi=-1 ac_mid=-1
14695 while :; do
14696 cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702$ac_includes_default
14703int
14704main ()
14705{
14706static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14707test_array [0] = 0
14708
14709 ;
14710 return 0;
14711}
14712_ACEOF
14713rm -f conftest.$ac_objext
14714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14715 (eval $ac_compile) 2>conftest.er1
a848cd7e 14716 ac_status=$?
ac1cb8d3
VS
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
a848cd7e
SC
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
d51253e8 14722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_lo=$ac_mid; break
14735else
14736 echo "$as_me: failed program was:" >&5
14737sed 's/^/| /' conftest.$ac_ext >&5
14738
14739ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14740 if test $ac_mid -le $ac_hi; then
14741 ac_lo= ac_hi=
14742 break
14743 fi
14744 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14745fi
ac1cb8d3 14746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14747 done
14748else
14749 echo "$as_me: failed program was:" >&5
14750sed 's/^/| /' conftest.$ac_ext >&5
14751
14752ac_lo= ac_hi=
14753fi
ac1cb8d3 14754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14755fi
ac1cb8d3 14756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14757# Binary search between lo and hi bounds.
14758while test "x$ac_lo" != "x$ac_hi"; do
14759 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14760 cat >conftest.$ac_ext <<_ACEOF
14761/* confdefs.h. */
14762_ACEOF
14763cat confdefs.h >>conftest.$ac_ext
14764cat >>conftest.$ac_ext <<_ACEOF
14765/* end confdefs.h. */
14766$ac_includes_default
14767int
14768main ()
14769{
14770static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14771test_array [0] = 0
14772
14773 ;
14774 return 0;
14775}
14776_ACEOF
14777rm -f conftest.$ac_objext
14778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14779 (eval $ac_compile) 2>conftest.er1
a848cd7e 14780 ac_status=$?
ac1cb8d3
VS
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
a848cd7e
SC
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
d51253e8 14786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } &&
14792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_hi=$ac_mid
14799else
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803ac_lo=`expr '(' $ac_mid ')' + 1`
14804fi
ac1cb8d3 14805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14806done
14807case $ac_lo in
14808?*) ac_cv_sizeof_char=$ac_lo;;
14809'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14810See \`config.log' for more details." >&5
14811echo "$as_me: error: cannot compute sizeof (char), 77
14812See \`config.log' for more details." >&2;}
14813 { (exit 1); exit 1; }; } ;;
14814esac
14815else
14816 if test "$cross_compiling" = yes; then
d51253e8
RL
14817 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14818echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14819 { (exit 1); exit 1; }; }
14820else
14821 cat >conftest.$ac_ext <<_ACEOF
14822/* confdefs.h. */
14823_ACEOF
14824cat confdefs.h >>conftest.$ac_ext
14825cat >>conftest.$ac_ext <<_ACEOF
14826/* end confdefs.h. */
14827$ac_includes_default
14828long longval () { return (long) (sizeof (char)); }
14829unsigned long ulongval () { return (long) (sizeof (char)); }
14830#include <stdio.h>
14831#include <stdlib.h>
14832int
14833main ()
14834{
14835
14836 FILE *f = fopen ("conftest.val", "w");
14837 if (! f)
14838 exit (1);
14839 if (((long) (sizeof (char))) < 0)
14840 {
14841 long i = longval ();
14842 if (i != ((long) (sizeof (char))))
14843 exit (1);
14844 fprintf (f, "%ld\n", i);
14845 }
14846 else
14847 {
14848 unsigned long i = ulongval ();
14849 if (i != ((long) (sizeof (char))))
14850 exit (1);
14851 fprintf (f, "%lu\n", i);
14852 }
14853 exit (ferror (f) || fclose (f) != 0);
14854
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest$ac_exeext
14860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861 (eval $ac_link) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_cv_sizeof_char=`cat conftest.val`
14871else
14872 echo "$as_me: program exited with status $ac_status" >&5
14873echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
14876( exit $ac_status )
14877{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14878See \`config.log' for more details." >&5
14879echo "$as_me: error: cannot compute sizeof (char), 77
14880See \`config.log' for more details." >&2;}
14881 { (exit 1); exit 1; }; }
14882fi
ac1cb8d3 14883rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14884fi
14885fi
14886rm -f conftest.val
14887else
14888 ac_cv_sizeof_char=0
14889fi
14890fi
14891echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14892echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14893cat >>confdefs.h <<_ACEOF
14894#define SIZEOF_CHAR $ac_cv_sizeof_char
14895_ACEOF
14896
14897
14898echo "$as_me:$LINENO: checking for short" >&5
14899echo $ECHO_N "checking for short... $ECHO_C" >&6
14900if test "${ac_cv_type_short+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902else
14903 cat >conftest.$ac_ext <<_ACEOF
14904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
14908/* end confdefs.h. */
14909$ac_includes_default
14910int
14911main ()
14912{
14913if ((short *) 0)
14914 return 0;
14915if (sizeof (short))
14916 return 0;
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); } &&
d51253e8 14930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 ac_cv_type_short=yes
14943else
14944 echo "$as_me: failed program was:" >&5
14945sed 's/^/| /' conftest.$ac_ext >&5
14946
14947ac_cv_type_short=no
14948fi
ac1cb8d3 14949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14950fi
14951echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14952echo "${ECHO_T}$ac_cv_type_short" >&6
14953
14954echo "$as_me:$LINENO: checking size of short" >&5
14955echo $ECHO_N "checking size of short... $ECHO_C" >&6
14956if test "${ac_cv_sizeof_short+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958else
14959 if test "$ac_cv_type_short" = yes; then
14960 # The cast to unsigned long works around a bug in the HP C Compiler
14961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14963 # This bug is HP SR number 8606223364.
14964 if test "$cross_compiling" = yes; then
14965 # Depending upon the size, compute the lo and hi bounds.
14966cat >conftest.$ac_ext <<_ACEOF
14967/* confdefs.h. */
14968_ACEOF
14969cat confdefs.h >>conftest.$ac_ext
14970cat >>conftest.$ac_ext <<_ACEOF
14971/* end confdefs.h. */
14972$ac_includes_default
14973int
14974main ()
14975{
14976static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14977test_array [0] = 0
14978
14979 ;
14980 return 0;
14981}
14982_ACEOF
14983rm -f conftest.$ac_objext
14984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14985 (eval $ac_compile) 2>conftest.er1
a848cd7e 14986 ac_status=$?
ac1cb8d3
VS
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
a848cd7e
SC
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
d51253e8 14992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_lo=0 ac_mid=0
15005 while :; do
15006 cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012$ac_includes_default
15013int
15014main ()
15015{
15016static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15017test_array [0] = 0
15018
15019 ;
15020 return 0;
15021}
15022_ACEOF
15023rm -f conftest.$ac_objext
15024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15025 (eval $ac_compile) 2>conftest.er1
a848cd7e 15026 ac_status=$?
ac1cb8d3
VS
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
a848cd7e
SC
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
d51253e8 15032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_hi=$ac_mid; break
15045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15050 if test $ac_lo -le $ac_mid; then
15051 ac_lo= ac_hi=
15052 break
15053 fi
15054 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15055fi
ac1cb8d3 15056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15057 done
15058else
15059 echo "$as_me: failed program was:" >&5
15060sed 's/^/| /' conftest.$ac_ext >&5
15061
15062cat >conftest.$ac_ext <<_ACEOF
15063/* confdefs.h. */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h. */
15068$ac_includes_default
15069int
15070main ()
15071{
15072static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15073test_array [0] = 0
15074
15075 ;
15076 return 0;
15077}
15078_ACEOF
15079rm -f conftest.$ac_objext
15080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15081 (eval $ac_compile) 2>conftest.er1
a848cd7e 15082 ac_status=$?
ac1cb8d3
VS
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
a848cd7e
SC
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
d51253e8 15088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_hi=-1 ac_mid=-1
15101 while :; do
15102 cat >conftest.$ac_ext <<_ACEOF
15103/* confdefs.h. */
15104_ACEOF
15105cat confdefs.h >>conftest.$ac_ext
15106cat >>conftest.$ac_ext <<_ACEOF
15107/* end confdefs.h. */
15108$ac_includes_default
15109int
15110main ()
15111{
15112static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15113test_array [0] = 0
15114
15115 ;
15116 return 0;
15117}
15118_ACEOF
15119rm -f conftest.$ac_objext
15120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15121 (eval $ac_compile) 2>conftest.er1
a848cd7e 15122 ac_status=$?
ac1cb8d3
VS
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
a848cd7e
SC
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
d51253e8 15128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 ac_lo=$ac_mid; break
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15146 if test $ac_mid -le $ac_hi; then
15147 ac_lo= ac_hi=
15148 break
15149 fi
15150 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15151fi
ac1cb8d3 15152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15153 done
15154else
15155 echo "$as_me: failed program was:" >&5
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158ac_lo= ac_hi=
15159fi
ac1cb8d3 15160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15161fi
ac1cb8d3 15162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15163# Binary search between lo and hi bounds.
15164while test "x$ac_lo" != "x$ac_hi"; do
15165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15166 cat >conftest.$ac_ext <<_ACEOF
15167/* confdefs.h. */
15168_ACEOF
15169cat confdefs.h >>conftest.$ac_ext
15170cat >>conftest.$ac_ext <<_ACEOF
15171/* end confdefs.h. */
15172$ac_includes_default
15173int
15174main ()
15175{
15176static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15177test_array [0] = 0
15178
15179 ;
15180 return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext
15184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15185 (eval $ac_compile) 2>conftest.er1
a848cd7e 15186 ac_status=$?
ac1cb8d3
VS
15187 grep -v '^ *+' conftest.er1 >conftest.err
15188 rm -f conftest.er1
15189 cat conftest.err >&5
a848cd7e
SC
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } &&
d51253e8 15192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_hi=$ac_mid
15205else
15206 echo "$as_me: failed program was:" >&5
15207sed 's/^/| /' conftest.$ac_ext >&5
15208
15209ac_lo=`expr '(' $ac_mid ')' + 1`
15210fi
ac1cb8d3 15211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15212done
15213case $ac_lo in
15214?*) ac_cv_sizeof_short=$ac_lo;;
15215'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15216See \`config.log' for more details." >&5
15217echo "$as_me: error: cannot compute sizeof (short), 77
15218See \`config.log' for more details." >&2;}
15219 { (exit 1); exit 1; }; } ;;
15220esac
15221else
15222 if test "$cross_compiling" = yes; then
d51253e8
RL
15223 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15224echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15225 { (exit 1); exit 1; }; }
15226else
15227 cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h. */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
15232/* end confdefs.h. */
15233$ac_includes_default
15234long longval () { return (long) (sizeof (short)); }
15235unsigned long ulongval () { return (long) (sizeof (short)); }
15236#include <stdio.h>
15237#include <stdlib.h>
15238int
15239main ()
15240{
15241
15242 FILE *f = fopen ("conftest.val", "w");
15243 if (! f)
15244 exit (1);
15245 if (((long) (sizeof (short))) < 0)
15246 {
15247 long i = longval ();
15248 if (i != ((long) (sizeof (short))))
15249 exit (1);
15250 fprintf (f, "%ld\n", i);
15251 }
15252 else
15253 {
15254 unsigned long i = ulongval ();
15255 if (i != ((long) (sizeof (short))))
15256 exit (1);
15257 fprintf (f, "%lu\n", i);
15258 }
15259 exit (ferror (f) || fclose (f) != 0);
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265rm -f conftest$ac_exeext
15266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15267 (eval $ac_link) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_cv_sizeof_short=`cat conftest.val`
15277else
15278 echo "$as_me: program exited with status $ac_status" >&5
15279echo "$as_me: failed program was:" >&5
15280sed 's/^/| /' conftest.$ac_ext >&5
15281
15282( exit $ac_status )
15283{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15284See \`config.log' for more details." >&5
15285echo "$as_me: error: cannot compute sizeof (short), 77
15286See \`config.log' for more details." >&2;}
15287 { (exit 1); exit 1; }; }
15288fi
ac1cb8d3 15289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15290fi
15291fi
15292rm -f conftest.val
15293else
15294 ac_cv_sizeof_short=0
15295fi
15296fi
15297echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15298echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15299cat >>confdefs.h <<_ACEOF
15300#define SIZEOF_SHORT $ac_cv_sizeof_short
15301_ACEOF
15302
15303
15304echo "$as_me:$LINENO: checking for void *" >&5
15305echo $ECHO_N "checking for void *... $ECHO_C" >&6
15306if test "${ac_cv_type_void_p+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308else
15309 cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315$ac_includes_default
15316int
15317main ()
15318{
15319if ((void * *) 0)
15320 return 0;
15321if (sizeof (void *))
15322 return 0;
15323 ;
15324 return 0;
15325}
15326_ACEOF
15327rm -f conftest.$ac_objext
15328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15329 (eval $ac_compile) 2>conftest.er1
a848cd7e 15330 ac_status=$?
ac1cb8d3
VS
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
a848cd7e
SC
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
d51253e8 15336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_cv_type_void_p=yes
15349else
15350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353ac_cv_type_void_p=no
15354fi
ac1cb8d3 15355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15356fi
15357echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15358echo "${ECHO_T}$ac_cv_type_void_p" >&6
15359
15360echo "$as_me:$LINENO: checking size of void *" >&5
15361echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15362if test "${ac_cv_sizeof_void_p+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15364else
15365 if test "$ac_cv_type_void_p" = yes; then
15366 # The cast to unsigned long works around a bug in the HP C Compiler
15367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15369 # This bug is HP SR number 8606223364.
15370 if test "$cross_compiling" = yes; then
15371 # Depending upon the size, compute the lo and hi bounds.
15372cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378$ac_includes_default
15379int
15380main ()
15381{
15382static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15383test_array [0] = 0
15384
15385 ;
15386 return 0;
15387}
15388_ACEOF
15389rm -f conftest.$ac_objext
15390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15391 (eval $ac_compile) 2>conftest.er1
a848cd7e 15392 ac_status=$?
ac1cb8d3
VS
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
a848cd7e
SC
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
d51253e8 15398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_lo=0 ac_mid=0
15411 while :; do
15412 cat >conftest.$ac_ext <<_ACEOF
15413/* confdefs.h. */
15414_ACEOF
15415cat confdefs.h >>conftest.$ac_ext
15416cat >>conftest.$ac_ext <<_ACEOF
15417/* end confdefs.h. */
15418$ac_includes_default
15419int
15420main ()
15421{
15422static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15423test_array [0] = 0
15424
15425 ;
15426 return 0;
15427}
15428_ACEOF
15429rm -f conftest.$ac_objext
15430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15431 (eval $ac_compile) 2>conftest.er1
a848cd7e 15432 ac_status=$?
ac1cb8d3
VS
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
a848cd7e
SC
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
d51253e8 15438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_hi=$ac_mid; break
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15456 if test $ac_lo -le $ac_mid; then
15457 ac_lo= ac_hi=
15458 break
15459 fi
15460 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15461fi
ac1cb8d3 15462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15463 done
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468cat >conftest.$ac_ext <<_ACEOF
15469/* confdefs.h. */
15470_ACEOF
15471cat confdefs.h >>conftest.$ac_ext
15472cat >>conftest.$ac_ext <<_ACEOF
15473/* end confdefs.h. */
15474$ac_includes_default
15475int
15476main ()
15477{
15478static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15479test_array [0] = 0
15480
15481 ;
15482 return 0;
15483}
15484_ACEOF
15485rm -f conftest.$ac_objext
15486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15487 (eval $ac_compile) 2>conftest.er1
a848cd7e 15488 ac_status=$?
ac1cb8d3
VS
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
a848cd7e
SC
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
d51253e8 15494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_hi=-1 ac_mid=-1
15507 while :; do
15508 cat >conftest.$ac_ext <<_ACEOF
15509/* confdefs.h. */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h. */
15514$ac_includes_default
15515int
15516main ()
15517{
15518static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15519test_array [0] = 0
15520
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525rm -f conftest.$ac_objext
15526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15527 (eval $ac_compile) 2>conftest.er1
a848cd7e 15528 ac_status=$?
ac1cb8d3
VS
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
a848cd7e
SC
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
d51253e8 15534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_lo=$ac_mid; break
15547else
15548 echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15552 if test $ac_mid -le $ac_hi; then
15553 ac_lo= ac_hi=
15554 break
15555 fi
15556 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15557fi
ac1cb8d3 15558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15559 done
15560else
15561 echo "$as_me: failed program was:" >&5
15562sed 's/^/| /' conftest.$ac_ext >&5
15563
15564ac_lo= ac_hi=
15565fi
ac1cb8d3 15566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15567fi
ac1cb8d3 15568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15569# Binary search between lo and hi bounds.
15570while test "x$ac_lo" != "x$ac_hi"; do
15571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15572 cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578$ac_includes_default
15579int
15580main ()
15581{
15582static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15583test_array [0] = 0
15584
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext
15590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15591 (eval $ac_compile) 2>conftest.er1
a848cd7e 15592 ac_status=$?
ac1cb8d3
VS
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
a848cd7e
SC
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
d51253e8 15598 { ac_try='test -z "$ac_c_werror_flag" || 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_hi=$ac_mid
15611else
15612 echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615ac_lo=`expr '(' $ac_mid ')' + 1`
15616fi
ac1cb8d3 15617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15618done
15619case $ac_lo in
15620?*) ac_cv_sizeof_void_p=$ac_lo;;
15621'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15622See \`config.log' for more details." >&5
15623echo "$as_me: error: cannot compute sizeof (void *), 77
15624See \`config.log' for more details." >&2;}
15625 { (exit 1); exit 1; }; } ;;
15626esac
15627else
15628 if test "$cross_compiling" = yes; then
d51253e8
RL
15629 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15630echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15631 { (exit 1); exit 1; }; }
15632else
15633 cat >conftest.$ac_ext <<_ACEOF
15634/* confdefs.h. */
15635_ACEOF
15636cat confdefs.h >>conftest.$ac_ext
15637cat >>conftest.$ac_ext <<_ACEOF
15638/* end confdefs.h. */
15639$ac_includes_default
15640long longval () { return (long) (sizeof (void *)); }
15641unsigned long ulongval () { return (long) (sizeof (void *)); }
15642#include <stdio.h>
15643#include <stdlib.h>
15644int
15645main ()
15646{
15647
15648 FILE *f = fopen ("conftest.val", "w");
15649 if (! f)
15650 exit (1);
15651 if (((long) (sizeof (void *))) < 0)
15652 {
15653 long i = longval ();
15654 if (i != ((long) (sizeof (void *))))
15655 exit (1);
15656 fprintf (f, "%ld\n", i);
15657 }
15658 else
15659 {
15660 unsigned long i = ulongval ();
15661 if (i != ((long) (sizeof (void *))))
15662 exit (1);
15663 fprintf (f, "%lu\n", i);
15664 }
15665 exit (ferror (f) || fclose (f) != 0);
15666
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671rm -f conftest$ac_exeext
15672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_cv_sizeof_void_p=`cat conftest.val`
15683else
15684 echo "$as_me: program exited with status $ac_status" >&5
15685echo "$as_me: failed program was:" >&5
15686sed 's/^/| /' conftest.$ac_ext >&5
15687
15688( exit $ac_status )
15689{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15690See \`config.log' for more details." >&5
15691echo "$as_me: error: cannot compute sizeof (void *), 77
15692See \`config.log' for more details." >&2;}
15693 { (exit 1); exit 1; }; }
15694fi
ac1cb8d3 15695rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15696fi
15697fi
15698rm -f conftest.val
15699else
15700 ac_cv_sizeof_void_p=0
15701fi
15702fi
15703echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15704echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15705cat >>confdefs.h <<_ACEOF
15706#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15707_ACEOF
15708
15709
15710echo "$as_me:$LINENO: checking for int" >&5
15711echo $ECHO_N "checking for int... $ECHO_C" >&6
15712if test "${ac_cv_type_int+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714else
15715 cat >conftest.$ac_ext <<_ACEOF
15716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
15721$ac_includes_default
15722int
15723main ()
15724{
15725if ((int *) 0)
15726 return 0;
15727if (sizeof (int))
15728 return 0;
15729 ;
15730 return 0;
15731}
15732_ACEOF
15733rm -f conftest.$ac_objext
15734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15735 (eval $ac_compile) 2>conftest.er1
a848cd7e 15736 ac_status=$?
ac1cb8d3
VS
15737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
a848cd7e
SC
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
d51253e8 15742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_cv_type_int=yes
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759ac_cv_type_int=no
15760fi
ac1cb8d3 15761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15762fi
15763echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15764echo "${ECHO_T}$ac_cv_type_int" >&6
15765
15766echo "$as_me:$LINENO: checking size of int" >&5
15767echo $ECHO_N "checking size of int... $ECHO_C" >&6
15768if test "${ac_cv_sizeof_int+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15770else
15771 if test "$ac_cv_type_int" = yes; then
15772 # The cast to unsigned long works around a bug in the HP C Compiler
15773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15775 # This bug is HP SR number 8606223364.
15776 if test "$cross_compiling" = yes; then
15777 # Depending upon the size, compute the lo and hi bounds.
15778cat >conftest.$ac_ext <<_ACEOF
15779/* confdefs.h. */
15780_ACEOF
15781cat confdefs.h >>conftest.$ac_ext
15782cat >>conftest.$ac_ext <<_ACEOF
15783/* end confdefs.h. */
15784$ac_includes_default
15785int
15786main ()
15787{
15788static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15789test_array [0] = 0
15790
15791 ;
15792 return 0;
15793}
15794_ACEOF
15795rm -f conftest.$ac_objext
15796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15797 (eval $ac_compile) 2>conftest.er1
a848cd7e 15798 ac_status=$?
ac1cb8d3
VS
15799 grep -v '^ *+' conftest.er1 >conftest.err
15800 rm -f conftest.er1
15801 cat conftest.err >&5
a848cd7e
SC
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
d51253e8 15804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_lo=0 ac_mid=0
15817 while :; do
15818 cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824$ac_includes_default
15825int
15826main ()
15827{
15828static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15829test_array [0] = 0
15830
15831 ;
15832 return 0;
15833}
15834_ACEOF
15835rm -f conftest.$ac_objext
15836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15837 (eval $ac_compile) 2>conftest.er1
a848cd7e 15838 ac_status=$?
ac1cb8d3
VS
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
a848cd7e
SC
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
d51253e8 15844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_hi=$ac_mid; break
15857else
15858 echo "$as_me: failed program was:" >&5
15859sed 's/^/| /' conftest.$ac_ext >&5
15860
15861ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15862 if test $ac_lo -le $ac_mid; then
15863 ac_lo= ac_hi=
15864 break
15865 fi
15866 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15867fi
ac1cb8d3 15868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15869 done
15870else
15871 echo "$as_me: failed program was:" >&5
15872sed 's/^/| /' conftest.$ac_ext >&5
15873
15874cat >conftest.$ac_ext <<_ACEOF
15875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
15880$ac_includes_default
15881int
15882main ()
15883{
15884static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15885test_array [0] = 0
15886
15887 ;
15888 return 0;
15889}
15890_ACEOF
15891rm -f conftest.$ac_objext
15892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15893 (eval $ac_compile) 2>conftest.er1
a848cd7e 15894 ac_status=$?
ac1cb8d3
VS
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
a848cd7e
SC
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
d51253e8 15900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 ac_hi=-1 ac_mid=-1
15913 while :; do
15914 cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920$ac_includes_default
15921int
15922main ()
15923{
15924static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15925test_array [0] = 0
15926
15927 ;
15928 return 0;
15929}
15930_ACEOF
15931rm -f conftest.$ac_objext
15932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15933 (eval $ac_compile) 2>conftest.er1
a848cd7e 15934 ac_status=$?
ac1cb8d3
VS
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
a848cd7e
SC
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
d51253e8 15940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_lo=$ac_mid; break
15953else
15954 echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15958 if test $ac_mid -le $ac_hi; then
15959 ac_lo= ac_hi=
15960 break
15961 fi
15962 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15963fi
ac1cb8d3 15964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15965 done
15966else
15967 echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970ac_lo= ac_hi=
15971fi
ac1cb8d3 15972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15973fi
ac1cb8d3 15974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15975# Binary search between lo and hi bounds.
15976while test "x$ac_lo" != "x$ac_hi"; do
15977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15978 cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984$ac_includes_default
15985int
15986main ()
15987{
15988static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15989test_array [0] = 0
15990
15991 ;
15992 return 0;
15993}
15994_ACEOF
15995rm -f conftest.$ac_objext
15996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15997 (eval $ac_compile) 2>conftest.er1
a848cd7e 15998 ac_status=$?
ac1cb8d3
VS
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
a848cd7e
SC
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
d51253e8 16004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; } &&
16010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 ac_hi=$ac_mid
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021ac_lo=`expr '(' $ac_mid ')' + 1`
16022fi
ac1cb8d3 16023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16024done
16025case $ac_lo in
16026?*) ac_cv_sizeof_int=$ac_lo;;
16027'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16028See \`config.log' for more details." >&5
16029echo "$as_me: error: cannot compute sizeof (int), 77
16030See \`config.log' for more details." >&2;}
16031 { (exit 1); exit 1; }; } ;;
16032esac
16033else
16034 if test "$cross_compiling" = yes; then
d51253e8
RL
16035 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16036echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16037 { (exit 1); exit 1; }; }
16038else
16039 cat >conftest.$ac_ext <<_ACEOF
16040/* confdefs.h. */
16041_ACEOF
16042cat confdefs.h >>conftest.$ac_ext
16043cat >>conftest.$ac_ext <<_ACEOF
16044/* end confdefs.h. */
16045$ac_includes_default
16046long longval () { return (long) (sizeof (int)); }
16047unsigned long ulongval () { return (long) (sizeof (int)); }
16048#include <stdio.h>
16049#include <stdlib.h>
16050int
16051main ()
16052{
16053
16054 FILE *f = fopen ("conftest.val", "w");
16055 if (! f)
16056 exit (1);
16057 if (((long) (sizeof (int))) < 0)
16058 {
16059 long i = longval ();
16060 if (i != ((long) (sizeof (int))))
16061 exit (1);
16062 fprintf (f, "%ld\n", i);
16063 }
16064 else
16065 {
16066 unsigned long i = ulongval ();
16067 if (i != ((long) (sizeof (int))))
16068 exit (1);
16069 fprintf (f, "%lu\n", i);
16070 }
16071 exit (ferror (f) || fclose (f) != 0);
16072
16073 ;
16074 return 0;
16075}
16076_ACEOF
16077rm -f conftest$ac_exeext
16078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16079 (eval $ac_link) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_cv_sizeof_int=`cat conftest.val`
16089else
16090 echo "$as_me: program exited with status $ac_status" >&5
16091echo "$as_me: failed program was:" >&5
16092sed 's/^/| /' conftest.$ac_ext >&5
16093
16094( exit $ac_status )
16095{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16096See \`config.log' for more details." >&5
16097echo "$as_me: error: cannot compute sizeof (int), 77
16098See \`config.log' for more details." >&2;}
16099 { (exit 1); exit 1; }; }
16100fi
ac1cb8d3 16101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16102fi
16103fi
16104rm -f conftest.val
16105else
16106 ac_cv_sizeof_int=0
16107fi
16108fi
16109echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16110echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16111cat >>confdefs.h <<_ACEOF
16112#define SIZEOF_INT $ac_cv_sizeof_int
16113_ACEOF
16114
16115
16116echo "$as_me:$LINENO: checking for long" >&5
16117echo $ECHO_N "checking for long... $ECHO_C" >&6
16118if test "${ac_cv_type_long+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16120else
16121 cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h. */
16127$ac_includes_default
16128int
16129main ()
16130{
16131if ((long *) 0)
16132 return 0;
16133if (sizeof (long))
16134 return 0;
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139rm -f conftest.$ac_objext
16140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16141 (eval $ac_compile) 2>conftest.er1
a848cd7e 16142 ac_status=$?
ac1cb8d3
VS
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
a848cd7e
SC
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
d51253e8 16148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_cv_type_long=yes
16161else
16162 echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165ac_cv_type_long=no
16166fi
ac1cb8d3 16167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16168fi
16169echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16170echo "${ECHO_T}$ac_cv_type_long" >&6
16171
16172echo "$as_me:$LINENO: checking size of long" >&5
16173echo $ECHO_N "checking size of long... $ECHO_C" >&6
16174if test "${ac_cv_sizeof_long+set}" = set; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16176else
16177 if test "$ac_cv_type_long" = yes; then
16178 # The cast to unsigned long works around a bug in the HP C Compiler
16179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16181 # This bug is HP SR number 8606223364.
16182 if test "$cross_compiling" = yes; then
16183 # Depending upon the size, compute the lo and hi bounds.
16184cat >conftest.$ac_ext <<_ACEOF
16185/* confdefs.h. */
16186_ACEOF
16187cat confdefs.h >>conftest.$ac_ext
16188cat >>conftest.$ac_ext <<_ACEOF
16189/* end confdefs.h. */
16190$ac_includes_default
16191int
16192main ()
16193{
16194static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16195test_array [0] = 0
16196
16197 ;
16198 return 0;
16199}
16200_ACEOF
16201rm -f conftest.$ac_objext
16202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16203 (eval $ac_compile) 2>conftest.er1
a848cd7e 16204 ac_status=$?
ac1cb8d3
VS
16205 grep -v '^ *+' conftest.er1 >conftest.err
16206 rm -f conftest.er1
16207 cat conftest.err >&5
a848cd7e
SC
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
d51253e8 16210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ac_lo=0 ac_mid=0
16223 while :; do
16224 cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230$ac_includes_default
16231int
16232main ()
16233{
16234static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16235test_array [0] = 0
16236
16237 ;
16238 return 0;
16239}
16240_ACEOF
16241rm -f conftest.$ac_objext
16242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16243 (eval $ac_compile) 2>conftest.er1
a848cd7e 16244 ac_status=$?
ac1cb8d3
VS
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
a848cd7e
SC
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
d51253e8 16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; } &&
16256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_hi=$ac_mid; break
16263else
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
16267ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16268 if test $ac_lo -le $ac_mid; then
16269 ac_lo= ac_hi=
16270 break
16271 fi
16272 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16273fi
ac1cb8d3 16274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16275 done
16276else
16277 echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
16279
16280cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h. */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
16285/* end confdefs.h. */
16286$ac_includes_default
16287int
16288main ()
16289{
16290static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16291test_array [0] = 0
16292
16293 ;
16294 return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext
16298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16299 (eval $ac_compile) 2>conftest.er1
a848cd7e 16300 ac_status=$?
ac1cb8d3
VS
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
a848cd7e
SC
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
d51253e8 16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 ac_hi=-1 ac_mid=-1
16319 while :; do
16320 cat >conftest.$ac_ext <<_ACEOF
16321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
16326$ac_includes_default
16327int
16328main ()
16329{
16330static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16331test_array [0] = 0
16332
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext
16338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16339 (eval $ac_compile) 2>conftest.er1
a848cd7e 16340 ac_status=$?
ac1cb8d3
VS
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
a848cd7e
SC
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
d51253e8 16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_lo=$ac_mid; break
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16364 if test $ac_mid -le $ac_hi; then
16365 ac_lo= ac_hi=
16366 break
16367 fi
16368 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16369fi
ac1cb8d3 16370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16371 done
16372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376ac_lo= ac_hi=
16377fi
ac1cb8d3 16378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16379fi
ac1cb8d3 16380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16381# Binary search between lo and hi bounds.
16382while test "x$ac_lo" != "x$ac_hi"; do
16383 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16384 cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390$ac_includes_default
16391int
16392main ()
16393{
16394static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16395test_array [0] = 0
16396
16397 ;
16398 return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext
16402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16403 (eval $ac_compile) 2>conftest.er1
a848cd7e 16404 ac_status=$?
ac1cb8d3
VS
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
a848cd7e
SC
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
d51253e8 16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_hi=$ac_mid
16423else
16424 echo "$as_me: failed program was:" >&5
16425sed 's/^/| /' conftest.$ac_ext >&5
16426
16427ac_lo=`expr '(' $ac_mid ')' + 1`
16428fi
ac1cb8d3 16429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16430done
16431case $ac_lo in
16432?*) ac_cv_sizeof_long=$ac_lo;;
16433'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16434See \`config.log' for more details." >&5
16435echo "$as_me: error: cannot compute sizeof (long), 77
16436See \`config.log' for more details." >&2;}
16437 { (exit 1); exit 1; }; } ;;
16438esac
16439else
16440 if test "$cross_compiling" = yes; then
d51253e8
RL
16441 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16442echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16443 { (exit 1); exit 1; }; }
16444else
16445 cat >conftest.$ac_ext <<_ACEOF
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451$ac_includes_default
16452long longval () { return (long) (sizeof (long)); }
16453unsigned long ulongval () { return (long) (sizeof (long)); }
16454#include <stdio.h>
16455#include <stdlib.h>
16456int
16457main ()
16458{
16459
16460 FILE *f = fopen ("conftest.val", "w");
16461 if (! f)
16462 exit (1);
16463 if (((long) (sizeof (long))) < 0)
16464 {
16465 long i = longval ();
16466 if (i != ((long) (sizeof (long))))
16467 exit (1);
16468 fprintf (f, "%ld\n", i);
16469 }
16470 else
16471 {
16472 unsigned long i = ulongval ();
16473 if (i != ((long) (sizeof (long))))
16474 exit (1);
16475 fprintf (f, "%lu\n", i);
16476 }
16477 exit (ferror (f) || fclose (f) != 0);
16478
16479 ;
16480 return 0;
16481}
16482_ACEOF
16483rm -f conftest$ac_exeext
16484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485 (eval $ac_link) 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ac_cv_sizeof_long=`cat conftest.val`
16495else
16496 echo "$as_me: program exited with status $ac_status" >&5
16497echo "$as_me: failed program was:" >&5
16498sed 's/^/| /' conftest.$ac_ext >&5
16499
16500( exit $ac_status )
16501{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16502See \`config.log' for more details." >&5
16503echo "$as_me: error: cannot compute sizeof (long), 77
16504See \`config.log' for more details." >&2;}
16505 { (exit 1); exit 1; }; }
16506fi
ac1cb8d3 16507rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16508fi
16509fi
16510rm -f conftest.val
16511else
16512 ac_cv_sizeof_long=0
16513fi
16514fi
16515echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16516echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16517cat >>confdefs.h <<_ACEOF
16518#define SIZEOF_LONG $ac_cv_sizeof_long
16519_ACEOF
16520
16521
16522echo "$as_me:$LINENO: checking for size_t" >&5
16523echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16524if test "${ac_cv_type_size_t+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526else
16527 cat >conftest.$ac_ext <<_ACEOF
16528/* confdefs.h. */
16529_ACEOF
16530cat confdefs.h >>conftest.$ac_ext
16531cat >>conftest.$ac_ext <<_ACEOF
16532/* end confdefs.h. */
16533$ac_includes_default
16534int
16535main ()
16536{
16537if ((size_t *) 0)
16538 return 0;
16539if (sizeof (size_t))
16540 return 0;
16541 ;
16542 return 0;
16543}
16544_ACEOF
16545rm -f conftest.$ac_objext
16546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16547 (eval $ac_compile) 2>conftest.er1
a848cd7e 16548 ac_status=$?
ac1cb8d3
VS
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
a848cd7e
SC
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
d51253e8 16554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_type_size_t=yes
16567else
16568 echo "$as_me: failed program was:" >&5
16569sed 's/^/| /' conftest.$ac_ext >&5
16570
16571ac_cv_type_size_t=no
16572fi
ac1cb8d3 16573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16574fi
16575echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16576echo "${ECHO_T}$ac_cv_type_size_t" >&6
16577
16578echo "$as_me:$LINENO: checking size of size_t" >&5
16579echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16580if test "${ac_cv_sizeof_size_t+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583 if test "$ac_cv_type_size_t" = yes; then
16584 # The cast to unsigned long works around a bug in the HP C Compiler
16585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16587 # This bug is HP SR number 8606223364.
16588 if test "$cross_compiling" = yes; then
16589 # Depending upon the size, compute the lo and hi bounds.
16590cat >conftest.$ac_ext <<_ACEOF
16591/* confdefs.h. */
16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
16596$ac_includes_default
16597int
16598main ()
16599{
16600static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16601test_array [0] = 0
16602
16603 ;
16604 return 0;
16605}
16606_ACEOF
16607rm -f conftest.$ac_objext
16608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16609 (eval $ac_compile) 2>conftest.er1
a848cd7e 16610 ac_status=$?
ac1cb8d3
VS
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
a848cd7e
SC
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
d51253e8 16616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; } &&
16622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_lo=0 ac_mid=0
16629 while :; do
16630 cat >conftest.$ac_ext <<_ACEOF
16631/* confdefs.h. */
16632_ACEOF
16633cat confdefs.h >>conftest.$ac_ext
16634cat >>conftest.$ac_ext <<_ACEOF
16635/* end confdefs.h. */
16636$ac_includes_default
16637int
16638main ()
16639{
16640static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16641test_array [0] = 0
16642
16643 ;
16644 return 0;
16645}
16646_ACEOF
16647rm -f conftest.$ac_objext
16648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16649 (eval $ac_compile) 2>conftest.er1
a848cd7e 16650 ac_status=$?
ac1cb8d3
VS
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
a848cd7e
SC
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
d51253e8 16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_hi=$ac_mid; break
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16674 if test $ac_lo -le $ac_mid; then
16675 ac_lo= ac_hi=
16676 break
16677 fi
16678 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16679fi
ac1cb8d3 16680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16681 done
16682else
16683 echo "$as_me: failed program was:" >&5
16684sed 's/^/| /' conftest.$ac_ext >&5
16685
16686cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692$ac_includes_default
16693int
16694main ()
16695{
16696static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16697test_array [0] = 0
16698
16699 ;
16700 return 0;
16701}
16702_ACEOF
16703rm -f conftest.$ac_objext
16704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16705 (eval $ac_compile) 2>conftest.er1
a848cd7e 16706 ac_status=$?
ac1cb8d3
VS
16707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
a848cd7e
SC
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
d51253e8 16712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_hi=-1 ac_mid=-1
16725 while :; do
16726 cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732$ac_includes_default
16733int
16734main ()
16735{
16736static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16737test_array [0] = 0
16738
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext
16744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16745 (eval $ac_compile) 2>conftest.er1
a848cd7e 16746 ac_status=$?
ac1cb8d3
VS
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
a848cd7e
SC
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
d51253e8 16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_lo=$ac_mid; break
16765else
16766 echo "$as_me: failed program was:" >&5
16767sed 's/^/| /' conftest.$ac_ext >&5
16768
16769ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16770 if test $ac_mid -le $ac_hi; then
16771 ac_lo= ac_hi=
16772 break
16773 fi
16774 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16775fi
ac1cb8d3 16776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16777 done
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782ac_lo= ac_hi=
16783fi
ac1cb8d3 16784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16785fi
ac1cb8d3 16786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16787# Binary search between lo and hi bounds.
16788while test "x$ac_lo" != "x$ac_hi"; do
16789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16790 cat >conftest.$ac_ext <<_ACEOF
16791/* confdefs.h. */
16792_ACEOF
16793cat confdefs.h >>conftest.$ac_ext
16794cat >>conftest.$ac_ext <<_ACEOF
16795/* end confdefs.h. */
16796$ac_includes_default
16797int
16798main ()
16799{
16800static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16801test_array [0] = 0
16802
16803 ;
16804 return 0;
16805}
16806_ACEOF
16807rm -f conftest.$ac_objext
16808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16809 (eval $ac_compile) 2>conftest.er1
a848cd7e 16810 ac_status=$?
ac1cb8d3
VS
16811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
a848cd7e
SC
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
d51253e8 16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 ac_hi=$ac_mid
16829else
16830 echo "$as_me: failed program was:" >&5
16831sed 's/^/| /' conftest.$ac_ext >&5
16832
16833ac_lo=`expr '(' $ac_mid ')' + 1`
16834fi
ac1cb8d3 16835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16836done
16837case $ac_lo in
16838?*) ac_cv_sizeof_size_t=$ac_lo;;
16839'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16840See \`config.log' for more details." >&5
16841echo "$as_me: error: cannot compute sizeof (size_t), 77
16842See \`config.log' for more details." >&2;}
16843 { (exit 1); exit 1; }; } ;;
16844esac
16845else
16846 if test "$cross_compiling" = yes; then
d51253e8
RL
16847 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16848echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16849 { (exit 1); exit 1; }; }
16850else
16851 cat >conftest.$ac_ext <<_ACEOF
16852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
16857$ac_includes_default
16858long longval () { return (long) (sizeof (size_t)); }
16859unsigned long ulongval () { return (long) (sizeof (size_t)); }
16860#include <stdio.h>
16861#include <stdlib.h>
16862int
16863main ()
16864{
16865
16866 FILE *f = fopen ("conftest.val", "w");
16867 if (! f)
16868 exit (1);
16869 if (((long) (sizeof (size_t))) < 0)
16870 {
16871 long i = longval ();
16872 if (i != ((long) (sizeof (size_t))))
16873 exit (1);
16874 fprintf (f, "%ld\n", i);
16875 }
16876 else
16877 {
16878 unsigned long i = ulongval ();
16879 if (i != ((long) (sizeof (size_t))))
16880 exit (1);
16881 fprintf (f, "%lu\n", i);
16882 }
16883 exit (ferror (f) || fclose (f) != 0);
16884
16885 ;
16886 return 0;
16887}
16888_ACEOF
16889rm -f conftest$ac_exeext
16890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16891 (eval $ac_link) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_sizeof_size_t=`cat conftest.val`
16901else
16902 echo "$as_me: program exited with status $ac_status" >&5
16903echo "$as_me: failed program was:" >&5
16904sed 's/^/| /' conftest.$ac_ext >&5
16905
16906( exit $ac_status )
16907{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16908See \`config.log' for more details." >&5
16909echo "$as_me: error: cannot compute sizeof (size_t), 77
16910See \`config.log' for more details." >&2;}
16911 { (exit 1); exit 1; }; }
16912fi
ac1cb8d3 16913rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16914fi
16915fi
16916rm -f conftest.val
16917else
16918 ac_cv_sizeof_size_t=0
16919fi
16920fi
16921echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16922echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16923cat >>confdefs.h <<_ACEOF
16924#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16925_ACEOF
16926
16927
16928
16929case "${host}" in
16930 arm-*-linux* )
16931 echo "$as_me:$LINENO: checking for long long" >&5
16932echo $ECHO_N "checking for long long... $ECHO_C" >&6
16933if test "${ac_cv_type_long_long+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942$ac_includes_default
16943int
16944main ()
16945{
16946if ((long long *) 0)
16947 return 0;
16948if (sizeof (long long))
16949 return 0;
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext
16955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16956 (eval $ac_compile) 2>conftest.er1
a848cd7e 16957 ac_status=$?
ac1cb8d3
VS
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
a848cd7e
SC
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
d51253e8 16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_type_long_long=yes
16976else
16977 echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980ac_cv_type_long_long=no
16981fi
ac1cb8d3 16982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16983fi
16984echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16985echo "${ECHO_T}$ac_cv_type_long_long" >&6
16986
16987echo "$as_me:$LINENO: checking size of long long" >&5
16988echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16989if test "${ac_cv_sizeof_long_long+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991else
16992 if test "$ac_cv_type_long_long" = yes; then
16993 # The cast to unsigned long works around a bug in the HP C Compiler
16994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16996 # This bug is HP SR number 8606223364.
16997 if test "$cross_compiling" = yes; then
16998 # Depending upon the size, compute the lo and hi bounds.
16999cat >conftest.$ac_ext <<_ACEOF
17000/* confdefs.h. */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h. */
17005$ac_includes_default
17006int
17007main ()
17008{
17009static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17010test_array [0] = 0
17011
17012 ;
17013 return 0;
17014}
17015_ACEOF
17016rm -f conftest.$ac_objext
17017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17018 (eval $ac_compile) 2>conftest.er1
a848cd7e 17019 ac_status=$?
ac1cb8d3
VS
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
a848cd7e
SC
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
d51253e8 17025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_lo=0 ac_mid=0
17038 while :; do
17039 cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045$ac_includes_default
17046int
17047main ()
17048{
17049static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17050test_array [0] = 0
17051
17052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17058 (eval $ac_compile) 2>conftest.er1
a848cd7e 17059 ac_status=$?
ac1cb8d3
VS
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
a848cd7e
SC
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
d51253e8 17065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_hi=$ac_mid; break
17078else
17079 echo "$as_me: failed program was:" >&5
17080sed 's/^/| /' conftest.$ac_ext >&5
17081
17082ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17083 if test $ac_lo -le $ac_mid; then
17084 ac_lo= ac_hi=
17085 break
17086 fi
17087 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17088fi
ac1cb8d3 17089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17090 done
17091else
17092 echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095cat >conftest.$ac_ext <<_ACEOF
17096/* confdefs.h. */
17097_ACEOF
17098cat confdefs.h >>conftest.$ac_ext
17099cat >>conftest.$ac_ext <<_ACEOF
17100/* end confdefs.h. */
17101$ac_includes_default
17102int
17103main ()
17104{
17105static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17106test_array [0] = 0
17107
17108 ;
17109 return 0;
17110}
17111_ACEOF
17112rm -f conftest.$ac_objext
17113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17114 (eval $ac_compile) 2>conftest.er1
a848cd7e 17115 ac_status=$?
ac1cb8d3
VS
17116 grep -v '^ *+' conftest.er1 >conftest.err
17117 rm -f conftest.er1
17118 cat conftest.err >&5
a848cd7e
SC
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); } &&
d51253e8 17121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } &&
17127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_hi=-1 ac_mid=-1
17134 while :; do
17135 cat >conftest.$ac_ext <<_ACEOF
17136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
17141$ac_includes_default
17142int
17143main ()
17144{
17145static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17146test_array [0] = 0
17147
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext
17153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17154 (eval $ac_compile) 2>conftest.er1
a848cd7e 17155 ac_status=$?
ac1cb8d3
VS
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
a848cd7e
SC
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
d51253e8 17161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_lo=$ac_mid; break
17174else
17175 echo "$as_me: failed program was:" >&5
17176sed 's/^/| /' conftest.$ac_ext >&5
17177
17178ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17179 if test $ac_mid -le $ac_hi; then
17180 ac_lo= ac_hi=
17181 break
17182 fi
17183 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17184fi
ac1cb8d3 17185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17186 done
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
17191ac_lo= ac_hi=
17192fi
ac1cb8d3 17193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17194fi
ac1cb8d3 17195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17196# Binary search between lo and hi bounds.
17197while test "x$ac_lo" != "x$ac_hi"; do
17198 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17199 cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205$ac_includes_default
17206int
17207main ()
17208{
17209static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17210test_array [0] = 0
17211
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216rm -f conftest.$ac_objext
17217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17218 (eval $ac_compile) 2>conftest.er1
a848cd7e 17219 ac_status=$?
ac1cb8d3
VS
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
a848cd7e
SC
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
d51253e8 17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_hi=$ac_mid
17238else
17239 echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242ac_lo=`expr '(' $ac_mid ')' + 1`
17243fi
ac1cb8d3 17244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17245done
17246case $ac_lo in
17247?*) ac_cv_sizeof_long_long=$ac_lo;;
17248'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17249See \`config.log' for more details." >&5
17250echo "$as_me: error: cannot compute sizeof (long long), 77
17251See \`config.log' for more details." >&2;}
17252 { (exit 1); exit 1; }; } ;;
17253esac
17254else
17255 if test "$cross_compiling" = yes; then
d51253e8
RL
17256 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17257echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17258 { (exit 1); exit 1; }; }
17259else
17260 cat >conftest.$ac_ext <<_ACEOF
17261/* confdefs.h. */
17262_ACEOF
17263cat confdefs.h >>conftest.$ac_ext
17264cat >>conftest.$ac_ext <<_ACEOF
17265/* end confdefs.h. */
17266$ac_includes_default
17267long longval () { return (long) (sizeof (long long)); }
17268unsigned long ulongval () { return (long) (sizeof (long long)); }
17269#include <stdio.h>
17270#include <stdlib.h>
17271int
17272main ()
17273{
17274
17275 FILE *f = fopen ("conftest.val", "w");
17276 if (! f)
17277 exit (1);
17278 if (((long) (sizeof (long long))) < 0)
17279 {
17280 long i = longval ();
17281 if (i != ((long) (sizeof (long long))))
17282 exit (1);
17283 fprintf (f, "%ld\n", i);
17284 }
17285 else
17286 {
17287 unsigned long i = ulongval ();
17288 if (i != ((long) (sizeof (long long))))
17289 exit (1);
17290 fprintf (f, "%lu\n", i);
17291 }
17292 exit (ferror (f) || fclose (f) != 0);
17293
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest$ac_exeext
17299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17300 (eval $ac_link) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_cv_sizeof_long_long=`cat conftest.val`
17310else
17311 echo "$as_me: program exited with status $ac_status" >&5
17312echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315( exit $ac_status )
17316{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17317See \`config.log' for more details." >&5
17318echo "$as_me: error: cannot compute sizeof (long long), 77
17319See \`config.log' for more details." >&2;}
17320 { (exit 1); exit 1; }; }
17321fi
ac1cb8d3 17322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17323fi
17324fi
17325rm -f conftest.val
17326else
17327 ac_cv_sizeof_long_long=0
17328fi
17329fi
17330echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17331echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17332cat >>confdefs.h <<_ACEOF
17333#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17334_ACEOF
17335
17336
17337 ;;
17338 *-hp-hpux* )
17339 echo "$as_me:$LINENO: checking for long long" >&5
17340echo $ECHO_N "checking for long long... $ECHO_C" >&6
17341if test "${ac_cv_type_long_long+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343else
17344 cat >conftest.$ac_ext <<_ACEOF
17345/* confdefs.h. */
17346_ACEOF
17347cat confdefs.h >>conftest.$ac_ext
17348cat >>conftest.$ac_ext <<_ACEOF
17349/* end confdefs.h. */
17350$ac_includes_default
17351int
17352main ()
17353{
17354if ((long long *) 0)
17355 return 0;
17356if (sizeof (long long))
17357 return 0;
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext
17363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17364 (eval $ac_compile) 2>conftest.er1
a848cd7e 17365 ac_status=$?
ac1cb8d3
VS
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
a848cd7e
SC
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
d51253e8 17371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_cv_type_long_long=yes
17384else
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388ac_cv_type_long_long=no
17389fi
ac1cb8d3 17390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17391fi
17392echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17393echo "${ECHO_T}$ac_cv_type_long_long" >&6
17394
17395echo "$as_me:$LINENO: checking size of long long" >&5
17396echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17397if test "${ac_cv_sizeof_long_long+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399else
17400 if test "$ac_cv_type_long_long" = yes; then
17401 # The cast to unsigned long works around a bug in the HP C Compiler
17402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17404 # This bug is HP SR number 8606223364.
17405 if test "$cross_compiling" = yes; then
17406 # Depending upon the size, compute the lo and hi bounds.
17407cat >conftest.$ac_ext <<_ACEOF
17408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
17413$ac_includes_default
17414int
17415main ()
17416{
17417static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17418test_array [0] = 0
17419
17420 ;
17421 return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext
17425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17426 (eval $ac_compile) 2>conftest.er1
a848cd7e 17427 ac_status=$?
ac1cb8d3
VS
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
a848cd7e
SC
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
d51253e8 17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 ac_lo=0 ac_mid=0
17446 while :; do
17447 cat >conftest.$ac_ext <<_ACEOF
17448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
17453$ac_includes_default
17454int
17455main ()
17456{
17457static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17458test_array [0] = 0
17459
17460 ;
17461 return 0;
17462}
17463_ACEOF
17464rm -f conftest.$ac_objext
17465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17466 (eval $ac_compile) 2>conftest.er1
a848cd7e 17467 ac_status=$?
ac1cb8d3
VS
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
a848cd7e
SC
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
d51253e8 17473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_hi=$ac_mid; break
17486else
17487 echo "$as_me: failed program was:" >&5
17488sed 's/^/| /' conftest.$ac_ext >&5
17489
17490ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17491 if test $ac_lo -le $ac_mid; then
17492 ac_lo= ac_hi=
17493 break
17494 fi
17495 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17496fi
ac1cb8d3 17497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17498 done
17499else
17500 echo "$as_me: failed program was:" >&5
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
17503cat >conftest.$ac_ext <<_ACEOF
17504/* confdefs.h. */
17505_ACEOF
17506cat confdefs.h >>conftest.$ac_ext
17507cat >>conftest.$ac_ext <<_ACEOF
17508/* end confdefs.h. */
17509$ac_includes_default
17510int
17511main ()
17512{
17513static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17514test_array [0] = 0
17515
17516 ;
17517 return 0;
17518}
17519_ACEOF
17520rm -f conftest.$ac_objext
17521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17522 (eval $ac_compile) 2>conftest.er1
a848cd7e 17523 ac_status=$?
ac1cb8d3
VS
17524 grep -v '^ *+' conftest.er1 >conftest.err
17525 rm -f conftest.er1
17526 cat conftest.err >&5
a848cd7e
SC
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
d51253e8 17529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_hi=-1 ac_mid=-1
17542 while :; do
17543 cat >conftest.$ac_ext <<_ACEOF
17544/* confdefs.h. */
17545_ACEOF
17546cat confdefs.h >>conftest.$ac_ext
17547cat >>conftest.$ac_ext <<_ACEOF
17548/* end confdefs.h. */
17549$ac_includes_default
17550int
17551main ()
17552{
17553static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17554test_array [0] = 0
17555
17556 ;
17557 return 0;
17558}
17559_ACEOF
17560rm -f conftest.$ac_objext
17561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17562 (eval $ac_compile) 2>conftest.er1
a848cd7e 17563 ac_status=$?
ac1cb8d3
VS
17564 grep -v '^ *+' conftest.er1 >conftest.err
17565 rm -f conftest.er1
17566 cat conftest.err >&5
a848cd7e
SC
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
d51253e8 17569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_lo=$ac_mid; break
17582else
17583 echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
17586ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17587 if test $ac_mid -le $ac_hi; then
17588 ac_lo= ac_hi=
17589 break
17590 fi
17591 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17592fi
ac1cb8d3 17593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17594 done
17595else
17596 echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599ac_lo= ac_hi=
17600fi
ac1cb8d3 17601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17602fi
ac1cb8d3 17603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17604# Binary search between lo and hi bounds.
17605while test "x$ac_lo" != "x$ac_hi"; do
17606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17607 cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
17613$ac_includes_default
17614int
17615main ()
17616{
17617static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17618test_array [0] = 0
17619
17620 ;
17621 return 0;
17622}
17623_ACEOF
17624rm -f conftest.$ac_objext
17625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17626 (eval $ac_compile) 2>conftest.er1
a848cd7e 17627 ac_status=$?
ac1cb8d3
VS
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
a848cd7e
SC
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
d51253e8 17633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } &&
17639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_hi=$ac_mid
17646else
17647 echo "$as_me: failed program was:" >&5
17648sed 's/^/| /' conftest.$ac_ext >&5
17649
17650ac_lo=`expr '(' $ac_mid ')' + 1`
17651fi
ac1cb8d3 17652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17653done
17654case $ac_lo in
17655?*) ac_cv_sizeof_long_long=$ac_lo;;
17656'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17657See \`config.log' for more details." >&5
17658echo "$as_me: error: cannot compute sizeof (long long), 77
17659See \`config.log' for more details." >&2;}
17660 { (exit 1); exit 1; }; } ;;
17661esac
17662else
17663 if test "$cross_compiling" = yes; then
d51253e8
RL
17664 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17665echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17666 { (exit 1); exit 1; }; }
17667else
17668 cat >conftest.$ac_ext <<_ACEOF
17669/* confdefs.h. */
17670_ACEOF
17671cat confdefs.h >>conftest.$ac_ext
17672cat >>conftest.$ac_ext <<_ACEOF
17673/* end confdefs.h. */
17674$ac_includes_default
17675long longval () { return (long) (sizeof (long long)); }
17676unsigned long ulongval () { return (long) (sizeof (long long)); }
17677#include <stdio.h>
17678#include <stdlib.h>
17679int
17680main ()
17681{
17682
17683 FILE *f = fopen ("conftest.val", "w");
17684 if (! f)
17685 exit (1);
17686 if (((long) (sizeof (long long))) < 0)
17687 {
17688 long i = longval ();
17689 if (i != ((long) (sizeof (long long))))
17690 exit (1);
17691 fprintf (f, "%ld\n", i);
17692 }
17693 else
17694 {
17695 unsigned long i = ulongval ();
17696 if (i != ((long) (sizeof (long long))))
17697 exit (1);
17698 fprintf (f, "%lu\n", i);
17699 }
17700 exit (ferror (f) || fclose (f) != 0);
17701
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest$ac_exeext
17707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708 (eval $ac_link) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 ac_cv_sizeof_long_long=`cat conftest.val`
17718else
17719 echo "$as_me: program exited with status $ac_status" >&5
17720echo "$as_me: failed program was:" >&5
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
17723( exit $ac_status )
17724{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17725See \`config.log' for more details." >&5
17726echo "$as_me: error: cannot compute sizeof (long long), 77
17727See \`config.log' for more details." >&2;}
17728 { (exit 1); exit 1; }; }
17729fi
ac1cb8d3 17730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17731fi
17732fi
17733rm -f conftest.val
17734else
17735 ac_cv_sizeof_long_long=0
17736fi
17737fi
17738echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17739echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17740cat >>confdefs.h <<_ACEOF
17741#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17742_ACEOF
17743
17744
17745 if test "$ac_cv_sizeof_long_long" != "0"; then
17746 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17747 fi
17748 ;;
17749 * )
17750 echo "$as_me:$LINENO: checking for long long" >&5
17751echo $ECHO_N "checking for long long... $ECHO_C" >&6
17752if test "${ac_cv_type_long_long+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754else
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{
17765if ((long long *) 0)
17766 return 0;
17767if (sizeof (long long))
17768 return 0;
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17775 (eval $ac_compile) 2>conftest.er1
a848cd7e 17776 ac_status=$?
ac1cb8d3
VS
17777 grep -v '^ *+' conftest.er1 >conftest.err
17778 rm -f conftest.er1
17779 cat conftest.err >&5
a848cd7e
SC
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
d51253e8 17782 { ac_try='test -z "$ac_c_werror_flag" || 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_cv_type_long_long=yes
17795else
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799ac_cv_type_long_long=no
17800fi
ac1cb8d3 17801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17802fi
17803echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17804echo "${ECHO_T}$ac_cv_type_long_long" >&6
17805
17806echo "$as_me:$LINENO: checking size of long long" >&5
17807echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17808if test "${ac_cv_sizeof_long_long+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810else
17811 if test "$ac_cv_type_long_long" = yes; then
17812 # The cast to unsigned long works around a bug in the HP C Compiler
17813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17815 # This bug is HP SR number 8606223364.
17816 if test "$cross_compiling" = yes; then
17817 # Depending upon the size, compute the lo and hi bounds.
17818cat >conftest.$ac_ext <<_ACEOF
17819/* confdefs.h. */
17820_ACEOF
17821cat confdefs.h >>conftest.$ac_ext
17822cat >>conftest.$ac_ext <<_ACEOF
17823/* end confdefs.h. */
17824$ac_includes_default
17825int
17826main ()
17827{
17828static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17829test_array [0] = 0
17830
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext
17836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17837 (eval $ac_compile) 2>conftest.er1
a848cd7e 17838 ac_status=$?
ac1cb8d3
VS
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
a848cd7e
SC
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
d51253e8 17844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 ac_lo=0 ac_mid=0
17857 while :; do
17858 cat >conftest.$ac_ext <<_ACEOF
17859/* confdefs.h. */
17860_ACEOF
17861cat confdefs.h >>conftest.$ac_ext
17862cat >>conftest.$ac_ext <<_ACEOF
17863/* end confdefs.h. */
17864$ac_includes_default
17865int
17866main ()
17867{
17868static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17869test_array [0] = 0
17870
17871 ;
17872 return 0;
17873}
17874_ACEOF
17875rm -f conftest.$ac_objext
17876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17877 (eval $ac_compile) 2>conftest.er1
a848cd7e 17878 ac_status=$?
ac1cb8d3
VS
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
a848cd7e
SC
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } &&
d51253e8 17884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_hi=$ac_mid; break
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17902 if test $ac_lo -le $ac_mid; then
17903 ac_lo= ac_hi=
17904 break
17905 fi
17906 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17907fi
ac1cb8d3 17908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17909 done
17910else
17911 echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
17914cat >conftest.$ac_ext <<_ACEOF
17915/* confdefs.h. */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h. */
17920$ac_includes_default
17921int
17922main ()
17923{
17924static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17925test_array [0] = 0
17926
17927 ;
17928 return 0;
17929}
17930_ACEOF
17931rm -f conftest.$ac_objext
17932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17933 (eval $ac_compile) 2>conftest.er1
a848cd7e 17934 ac_status=$?
ac1cb8d3
VS
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
a848cd7e
SC
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
d51253e8 17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 ac_hi=-1 ac_mid=-1
17953 while :; do
17954 cat >conftest.$ac_ext <<_ACEOF
17955/* confdefs.h. */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
17959/* end confdefs.h. */
17960$ac_includes_default
17961int
17962main ()
17963{
17964static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17965test_array [0] = 0
17966
17967 ;
17968 return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext
17972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17973 (eval $ac_compile) 2>conftest.er1
a848cd7e 17974 ac_status=$?
ac1cb8d3
VS
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
a848cd7e
SC
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
d51253e8 17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; }; then
17992 ac_lo=$ac_mid; break
17993else
17994 echo "$as_me: failed program was:" >&5
17995sed 's/^/| /' conftest.$ac_ext >&5
17996
17997ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17998 if test $ac_mid -le $ac_hi; then
17999 ac_lo= ac_hi=
18000 break
18001 fi
18002 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18003fi
ac1cb8d3 18004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18005 done
18006else
18007 echo "$as_me: failed program was:" >&5
18008sed 's/^/| /' conftest.$ac_ext >&5
18009
18010ac_lo= ac_hi=
18011fi
ac1cb8d3 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18013fi
ac1cb8d3 18014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18015# Binary search between lo and hi bounds.
18016while test "x$ac_lo" != "x$ac_hi"; do
18017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18018 cat >conftest.$ac_ext <<_ACEOF
18019/* confdefs.h. */
18020_ACEOF
18021cat confdefs.h >>conftest.$ac_ext
18022cat >>conftest.$ac_ext <<_ACEOF
18023/* end confdefs.h. */
18024$ac_includes_default
18025int
18026main ()
18027{
18028static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18029test_array [0] = 0
18030
18031 ;
18032 return 0;
18033}
18034_ACEOF
18035rm -f conftest.$ac_objext
18036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18037 (eval $ac_compile) 2>conftest.er1
a848cd7e 18038 ac_status=$?
ac1cb8d3
VS
18039 grep -v '^ *+' conftest.er1 >conftest.err
18040 rm -f conftest.er1
18041 cat conftest.err >&5
a848cd7e
SC
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
d51253e8 18044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_hi=$ac_mid
18057else
18058 echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061ac_lo=`expr '(' $ac_mid ')' + 1`
18062fi
ac1cb8d3 18063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18064done
18065case $ac_lo in
18066?*) ac_cv_sizeof_long_long=$ac_lo;;
18067'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18068See \`config.log' for more details." >&5
18069echo "$as_me: error: cannot compute sizeof (long long), 77
18070See \`config.log' for more details." >&2;}
18071 { (exit 1); exit 1; }; } ;;
18072esac
18073else
18074 if test "$cross_compiling" = yes; then
d51253e8
RL
18075 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18076echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18077 { (exit 1); exit 1; }; }
18078else
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085$ac_includes_default
18086long longval () { return (long) (sizeof (long long)); }
18087unsigned long ulongval () { return (long) (sizeof (long long)); }
18088#include <stdio.h>
18089#include <stdlib.h>
18090int
18091main ()
18092{
18093
18094 FILE *f = fopen ("conftest.val", "w");
18095 if (! f)
18096 exit (1);
18097 if (((long) (sizeof (long long))) < 0)
18098 {
18099 long i = longval ();
18100 if (i != ((long) (sizeof (long long))))
18101 exit (1);
18102 fprintf (f, "%ld\n", i);
18103 }
18104 else
18105 {
18106 unsigned long i = ulongval ();
18107 if (i != ((long) (sizeof (long long))))
18108 exit (1);
18109 fprintf (f, "%lu\n", i);
18110 }
18111 exit (ferror (f) || fclose (f) != 0);
18112
18113 ;
18114 return 0;
18115}
18116_ACEOF
18117rm -f conftest$ac_exeext
18118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18119 (eval $ac_link) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_sizeof_long_long=`cat conftest.val`
18129else
18130 echo "$as_me: program exited with status $ac_status" >&5
18131echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
18134( exit $ac_status )
18135{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18136See \`config.log' for more details." >&5
18137echo "$as_me: error: cannot compute sizeof (long long), 77
18138See \`config.log' for more details." >&2;}
18139 { (exit 1); exit 1; }; }
18140fi
ac1cb8d3 18141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18142fi
18143fi
18144rm -f conftest.val
18145else
18146 ac_cv_sizeof_long_long=0
18147fi
18148fi
18149echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18150echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18151cat >>confdefs.h <<_ACEOF
18152#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18153_ACEOF
18154
18155
18156esac
18157
18158echo "$as_me:$LINENO: checking size of wchar_t" >&5
18159echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18160if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18162else
18163
18164 if test "$cross_compiling" = yes; then
18165
18166 case "${host}" in
18167 *-pc-msdosdjgpp )
18168 wx_cv_sizeof_wchar_t=0
18169 ;;
18170 * )
18171 wx_cv_sizeof_wchar_t=4
18172 ;;
18173 esac
18174
18175
18176else
18177 cat >conftest.$ac_ext <<_ACEOF
18178/* confdefs.h. */
18179_ACEOF
18180cat confdefs.h >>conftest.$ac_ext
18181cat >>conftest.$ac_ext <<_ACEOF
18182/* end confdefs.h. */
18183
18184 /* DJGPP only has fake wchar_t: */
18185 #ifdef __DJGPP__
18186 # error "fake wchar_t"
18187 #endif
18188 #ifdef HAVE_WCHAR_H
18189 # ifdef __CYGWIN__
18190 # include <stddef.h>
18191 # endif
18192 # include <wchar.h>
18193 #endif
18194 #ifdef HAVE_STDLIB_H
18195 # include <stdlib.h>
18196 #endif
18197 #include <stdio.h>
18198 int main()
18199 {
18200 FILE *f=fopen("conftestval", "w");
18201 if (!f) exit(1);
18202 fprintf(f, "%i", sizeof(wchar_t));
18203 exit(0);
18204 }
18205
18206_ACEOF
18207rm -f conftest$ac_exeext
18208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209 (eval $ac_link) 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 wx_cv_sizeof_wchar_t=`cat conftestval`
18219else
18220 echo "$as_me: program exited with status $ac_status" >&5
18221echo "$as_me: failed program was:" >&5
18222sed 's/^/| /' conftest.$ac_ext >&5
18223
18224( exit $ac_status )
18225wx_cv_sizeof_wchar_t=0
18226fi
ac1cb8d3 18227rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18228fi
18229
18230fi
18231echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18232echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18233
18234cat >>confdefs.h <<_ACEOF
18235#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18236_ACEOF
18237
18238
ba3d13e1
VZ
18239echo "$as_me:$LINENO: checking for va_copy" >&5
18240echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18241if test "${wx_cv_func_va_copy+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18243else
18244
18245 cat >conftest.$ac_ext <<_ACEOF
18246
18247 #include <stdarg.h>
18248 void foo(char *f, ...)
18249 {
18250 va_list ap1, ap2;
18251 va_start(ap1, f);
18252 va_copy(ap2, ap1);
18253 va_end(ap2);
18254 va_end(ap1);
18255 }
18256_ACEOF
18257rm -f conftest.$ac_objext conftest$ac_exeext
18258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18259 (eval $ac_link) 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
d51253e8 18266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; } &&
18272 { ac_try='test -s conftest$ac_exeext'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 wx_cv_func_va_copy=yes
18279else
18280 echo "$as_me: failed program was:" >&5
18281sed 's/^/| /' conftest.$ac_ext >&5
18282
18283wx_cv_func_va_copy=no
18284
18285fi
18286rm -f conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18288
18289
18290fi
18291echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18292echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18293
18294if test $wx_cv_func_va_copy = "yes"; then
18295 cat >>confdefs.h <<\_ACEOF
18296#define HAVE_VA_COPY 1
18297_ACEOF
18298
18299else
18300 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18301echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18302if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304else
18305
18306 if test "$cross_compiling" = yes; then
18307 wx_cv_type_va_list_lvalue=yes
18308
18309else
18310 cat >conftest.$ac_ext <<_ACEOF
18311
18312 #include <stdarg.h>
18313 int foo(char *f, ...)
18314 {
18315 va_list ap1, ap2;
18316 va_start(ap1, f);
18317 ap2 = ap1;
18318 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18319 return 1;
18320 va_end(ap2);
18321 va_end(ap1);
18322 return 0;
18323 }
18324 int main()
18325 {
18326 return foo("hi", 17);
18327 }
18328_ACEOF
18329rm -f conftest$ac_exeext
18330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18331 (eval $ac_link) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 wx_cv_type_va_list_lvalue=yes
18341else
18342 echo "$as_me: program exited with status $ac_status" >&5
18343echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346( exit $ac_status )
18347wx_cv_type_va_list_lvalue=no
18348fi
18349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18350fi
18351
18352
18353fi
18354echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18355echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18356
18357 if test $wx_cv_type_va_list_lvalue != "yes"; then
18358 cat >>confdefs.h <<\_ACEOF
18359#define VA_LIST_IS_ARRAY 1
18360_ACEOF
18361
18362 fi
18363fi
18364
a848cd7e
SC
18365# Check whether --enable-largefile or --disable-largefile was given.
18366if test "${enable_largefile+set}" = set; then
18367 enableval="$enable_largefile"
18368
18369fi;
18370if test "$enable_largefile" != no; then
18371 wx_largefile=no
18372
18373 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18374echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18375if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377else
18378
18379 cat >conftest.$ac_ext <<_ACEOF
18380/* confdefs.h. */
18381_ACEOF
18382cat confdefs.h >>conftest.$ac_ext
18383cat >>conftest.$ac_ext <<_ACEOF
18384/* end confdefs.h. */
18385#define _FILE_OFFSET_BITS 64
18386 #include <sys/types.h>
18387int
18388main ()
18389{
18390typedef struct {
18391 unsigned int field: sizeof(off_t) == 8;
18392} wxlf;
18393
18394 ;
18395 return 0;
18396}
18397_ACEOF
18398rm -f conftest.$ac_objext
18399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18400 (eval $ac_compile) 2>conftest.er1
a848cd7e 18401 ac_status=$?
ac1cb8d3
VS
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
a848cd7e
SC
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
d51253e8 18407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; } &&
18413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 ac_cv_sys_file_offset_bits=64
18420else
18421 echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424ac_cv_sys_file_offset_bits=no
18425fi
ac1cb8d3 18426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18427
18428
18429fi
18430echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18431echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18432
18433 if test "$ac_cv_sys_file_offset_bits" != no; then
18434 wx_largefile=yes
18435 cat >>confdefs.h <<_ACEOF
18436#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18437_ACEOF
18438
18439 fi
18440
18441 if test "x$wx_largefile" != "xyes"; then
18442
18443 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18444echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18445if test "${ac_cv_sys_large_files+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18447else
18448
18449 cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
18454/* end confdefs.h. */
18455#define _LARGE_FILES 1
18456 #include <sys/types.h>
18457int
18458main ()
18459{
18460typedef struct {
18461 unsigned int field: sizeof(off_t) == 8;
18462} wxlf;
18463
18464 ;
18465 return 0;
18466}
18467_ACEOF
18468rm -f conftest.$ac_objext
18469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18470 (eval $ac_compile) 2>conftest.er1
a848cd7e 18471 ac_status=$?
ac1cb8d3
VS
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
a848cd7e
SC
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
d51253e8 18477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; } &&
18483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 ac_cv_sys_large_files=1
18490else
18491 echo "$as_me: failed program was:" >&5
18492sed 's/^/| /' conftest.$ac_ext >&5
18493
18494ac_cv_sys_large_files=no
18495fi
ac1cb8d3 18496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18497
18498
18499fi
18500echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18501echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18502
18503 if test "$ac_cv_sys_large_files" != no; then
18504 wx_largefile=yes
18505 cat >>confdefs.h <<_ACEOF
18506#define _LARGE_FILES $ac_cv_sys_large_files
18507_ACEOF
18508
18509 fi
18510
18511 fi
18512
18513 echo "$as_me:$LINENO: checking if large file support is available" >&5
18514echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18515 if test "x$wx_largefile" = "xyes"; then
18516 cat >>confdefs.h <<\_ACEOF
18517#define HAVE_LARGEFILE_SUPPORT 1
18518_ACEOF
18519
18520 fi
18521 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18522echo "${ECHO_T}$wx_largefile" >&6
18523fi
18524
18525
18526if test "x$wx_largefile" = "xyes"; then
18527 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18528 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18529 else
18530 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18531 fi
18532 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18533fi
18534
18535echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18536echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18537if test "${ac_cv_c_bigendian+set}" = set; then
18538 echo $ECHO_N "(cached) $ECHO_C" >&6
18539else
18540 ac_cv_c_bigendian=unknown
18541# See if sys/param.h defines the BYTE_ORDER macro.
18542cat >conftest.$ac_ext <<_ACEOF
18543/* confdefs.h. */
18544_ACEOF
18545cat confdefs.h >>conftest.$ac_ext
18546cat >>conftest.$ac_ext <<_ACEOF
18547/* end confdefs.h. */
18548#include <sys/types.h>
18549#include <sys/param.h>
18550int
18551main ()
18552{
18553
18554#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18555 bogus endian macros
18556#endif
18557 ;
18558 return 0;
18559}
18560_ACEOF
18561rm -f conftest.$ac_objext
18562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18563 (eval $ac_compile) 2>conftest.er1
a848cd7e 18564 ac_status=$?
ac1cb8d3
VS
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
a848cd7e
SC
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
d51253e8 18570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 # It does; now see whether it defined to BIG_ENDIAN or not.
18583cat >conftest.$ac_ext <<_ACEOF
18584/* confdefs.h. */
18585_ACEOF
18586cat confdefs.h >>conftest.$ac_ext
18587cat >>conftest.$ac_ext <<_ACEOF
18588/* end confdefs.h. */
18589#include <sys/types.h>
18590#include <sys/param.h>
18591int
18592main ()
18593{
18594
18595#if BYTE_ORDER != BIG_ENDIAN
18596 not big endian
18597#endif
18598 ;
18599 return 0;
18600}
18601_ACEOF
18602rm -f conftest.$ac_objext
18603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18604 (eval $ac_compile) 2>conftest.er1
a848cd7e 18605 ac_status=$?
ac1cb8d3
VS
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
a848cd7e
SC
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
d51253e8 18611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_c_bigendian=yes
18624else
18625 echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
18628ac_cv_c_bigendian=no
18629fi
ac1cb8d3 18630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18631else
18632 echo "$as_me: failed program was:" >&5
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
18635fi
ac1cb8d3 18636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18637if test $ac_cv_c_bigendian = unknown; then
18638if test "$cross_compiling" = yes; then
18639 ac_cv_c_bigendian=unknown
18640else
18641 cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647main () {
18648 /* Are we little or big endian? From Harbison&Steele. */
18649 union
18650 {
18651 long l;
18652 char c[sizeof (long)];
18653 } u;
18654 u.l = 1;
18655 exit (u.c[sizeof (long) - 1] == 1);
18656}
18657_ACEOF
18658rm -f conftest$ac_exeext
18659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18660 (eval $ac_link) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_c_bigendian=no
18670else
18671 echo "$as_me: program exited with status $ac_status" >&5
18672echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
18675( exit $ac_status )
18676ac_cv_c_bigendian=yes
18677fi
ac1cb8d3 18678rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18679fi
18680fi
18681fi
18682echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18683echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18684if test $ac_cv_c_bigendian = unknown; then
18685 { 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
18686echo "$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;}
18687fi
18688if test $ac_cv_c_bigendian = yes; then
18689 cat >>confdefs.h <<\_ACEOF
18690#define WORDS_BIGENDIAN 1
18691_ACEOF
18692
18693fi
18694
18695
18696ac_ext=cc
18697ac_cpp='$CXXCPP $CPPFLAGS'
18698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18701echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18702echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18703if test -z "$CXXCPP"; then
18704 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706else
18707 # Double quotes because CXXCPP needs to be expanded
18708 for CXXCPP in "$CXX -E" "/lib/cpp"
18709 do
18710 ac_preproc_ok=false
18711for ac_cxx_preproc_warn_flag in '' yes
18712do
18713 # Use a header file that comes with gcc, so configuring glibc
18714 # with a fresh cross-compiler works.
18715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18716 # <limits.h> exists even on freestanding compilers.
18717 # On the NeXT, cc -E runs the code through the compiler's parser,
18718 # not just through cpp. "Syntax error" is here to catch this case.
18719 cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725#ifdef __STDC__
18726# include <limits.h>
18727#else
18728# include <assert.h>
18729#endif
ac1cb8d3 18730 Syntax error
a848cd7e
SC
18731_ACEOF
18732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } >/dev/null; then
18740 if test -s conftest.err; then
18741 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18743 else
18744 ac_cpp_err=
18745 fi
18746else
18747 ac_cpp_err=yes
18748fi
18749if test -z "$ac_cpp_err"; then
18750 :
18751else
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755 # Broken: fails on valid input.
18756continue
18757fi
18758rm -f conftest.err conftest.$ac_ext
18759
18760 # OK, works on sane cases. Now check whether non-existent headers
18761 # can be detected and how.
18762 cat >conftest.$ac_ext <<_ACEOF
18763/* confdefs.h. */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h. */
18768#include <ac_nonexistent.h>
18769_ACEOF
18770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18772 ac_status=$?
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } >/dev/null; then
18778 if test -s conftest.err; then
18779 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18780 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18781 else
18782 ac_cpp_err=
18783 fi
18784else
18785 ac_cpp_err=yes
18786fi
18787if test -z "$ac_cpp_err"; then
18788 # Broken: success on invalid input.
18789continue
18790else
18791 echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 # Passes both tests.
18795ac_preproc_ok=:
18796break
18797fi
18798rm -f conftest.err conftest.$ac_ext
18799
18800done
18801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18802rm -f conftest.err conftest.$ac_ext
18803if $ac_preproc_ok; then
18804 break
18805fi
18806
18807 done
18808 ac_cv_prog_CXXCPP=$CXXCPP
18809
18810fi
18811 CXXCPP=$ac_cv_prog_CXXCPP
18812else
18813 ac_cv_prog_CXXCPP=$CXXCPP
18814fi
18815echo "$as_me:$LINENO: result: $CXXCPP" >&5
18816echo "${ECHO_T}$CXXCPP" >&6
18817ac_preproc_ok=false
18818for ac_cxx_preproc_warn_flag in '' yes
18819do
18820 # Use a header file that comes with gcc, so configuring glibc
18821 # with a fresh cross-compiler works.
18822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18823 # <limits.h> exists even on freestanding compilers.
18824 # On the NeXT, cc -E runs the code through the compiler's parser,
18825 # not just through cpp. "Syntax error" is here to catch this case.
18826 cat >conftest.$ac_ext <<_ACEOF
18827/* confdefs.h. */
18828_ACEOF
18829cat confdefs.h >>conftest.$ac_ext
18830cat >>conftest.$ac_ext <<_ACEOF
18831/* end confdefs.h. */
18832#ifdef __STDC__
18833# include <limits.h>
18834#else
18835# include <assert.h>
18836#endif
ac1cb8d3 18837 Syntax error
a848cd7e
SC
18838_ACEOF
18839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } >/dev/null; then
18847 if test -s conftest.err; then
18848 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18850 else
18851 ac_cpp_err=
18852 fi
18853else
18854 ac_cpp_err=yes
18855fi
18856if test -z "$ac_cpp_err"; then
18857 :
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 # Broken: fails on valid input.
18863continue
18864fi
18865rm -f conftest.err conftest.$ac_ext
18866
18867 # OK, works on sane cases. Now check whether non-existent headers
18868 # can be detected and how.
18869 cat >conftest.$ac_ext <<_ACEOF
18870/* confdefs.h. */
18871_ACEOF
18872cat confdefs.h >>conftest.$ac_ext
18873cat >>conftest.$ac_ext <<_ACEOF
18874/* end confdefs.h. */
18875#include <ac_nonexistent.h>
18876_ACEOF
18877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } >/dev/null; then
18885 if test -s conftest.err; then
18886 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18888 else
18889 ac_cpp_err=
18890 fi
18891else
18892 ac_cpp_err=yes
18893fi
18894if test -z "$ac_cpp_err"; then
18895 # Broken: success on invalid input.
18896continue
18897else
18898 echo "$as_me: failed program was:" >&5
18899sed 's/^/| /' conftest.$ac_ext >&5
18900
18901 # Passes both tests.
18902ac_preproc_ok=:
18903break
18904fi
18905rm -f conftest.err conftest.$ac_ext
18906
18907done
18908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18909rm -f conftest.err conftest.$ac_ext
18910if $ac_preproc_ok; then
18911 :
18912else
18913 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18914See \`config.log' for more details." >&5
18915echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18916See \`config.log' for more details." >&2;}
18917 { (exit 1); exit 1; }; }
18918fi
18919
18920ac_ext=cc
18921ac_cpp='$CXXCPP $CPPFLAGS'
18922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18925
18926
18927
18928
18929
18930 ac_ext=cc
18931ac_cpp='$CXXCPP $CPPFLAGS'
18932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18935
18936
18937
18938for ac_header in iostream
18939do
18940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18941if eval "test \"\${$as_ac_Header+set}\" = set"; then
18942 echo "$as_me:$LINENO: checking for $ac_header" >&5
18943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18944if eval "test \"\${$as_ac_Header+set}\" = set"; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946fi
18947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18949else
18950 # Is the header compilable?
18951echo "$as_me:$LINENO: checking $ac_header usability" >&5
18952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18953cat >conftest.$ac_ext <<_ACEOF
18954/* confdefs.h. */
18955_ACEOF
18956cat confdefs.h >>conftest.$ac_ext
18957cat >>conftest.$ac_ext <<_ACEOF
18958/* end confdefs.h. */
18959$ac_includes_default
18960#include <$ac_header>
18961_ACEOF
18962rm -f conftest.$ac_objext
18963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18964 (eval $ac_compile) 2>conftest.er1
a848cd7e 18965 ac_status=$?
ac1cb8d3
VS
18966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
a848cd7e
SC
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
d51253e8 18971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_header_compiler=yes
18984else
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988ac_header_compiler=no
18989fi
ac1cb8d3 18990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18992echo "${ECHO_T}$ac_header_compiler" >&6
18993
18994# Is the header present?
18995echo "$as_me:$LINENO: checking $ac_header presence" >&5
18996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18997cat >conftest.$ac_ext <<_ACEOF
18998/* confdefs.h. */
18999_ACEOF
19000cat confdefs.h >>conftest.$ac_ext
19001cat >>conftest.$ac_ext <<_ACEOF
19002/* end confdefs.h. */
19003#include <$ac_header>
19004_ACEOF
19005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } >/dev/null; then
19013 if test -s conftest.err; then
19014 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19015 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19016 else
19017 ac_cpp_err=
19018 fi
19019else
19020 ac_cpp_err=yes
19021fi
19022if test -z "$ac_cpp_err"; then
19023 ac_header_preproc=yes
19024else
19025 echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 ac_header_preproc=no
19029fi
19030rm -f conftest.err conftest.$ac_ext
19031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19032echo "${ECHO_T}$ac_header_preproc" >&6
19033
19034# So? What about this header?
ac1cb8d3
VS
19035case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19036 yes:no: )
a848cd7e
SC
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19041 ac_header_preproc=yes
a848cd7e 19042 ;;
ac1cb8d3 19043 no:yes:* )
a848cd7e
SC
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19056 (
19057 cat <<\_ASBOX
ac1cb8d3
VS
19058## ----------------------------------------- ##
19059## Report this to wx-dev@lists.wxwidgets.org ##
19060## ----------------------------------------- ##
a848cd7e
SC
19061_ASBOX
19062 ) |
19063 sed "s/^/$as_me: WARNING: /" >&2
19064 ;;
19065esac
19066echo "$as_me:$LINENO: checking for $ac_header" >&5
19067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19068if eval "test \"\${$as_ac_Header+set}\" = set"; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
ac1cb8d3 19071 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19072fi
19073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19075
19076fi
19077if test `eval echo '${'$as_ac_Header'}'` = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19080_ACEOF
19081
19082fi
19083
19084done
19085
19086
19087 if test "$ac_cv_header_iostream" = "yes" ; then
19088 :
19089 else
19090 cat >>confdefs.h <<\_ACEOF
19091#define wxUSE_IOSTREAMH 1
19092_ACEOF
19093
19094 fi
19095
19096 ac_ext=c
19097ac_cpp='$CPP $CPPFLAGS'
19098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101
19102
19103
19104
19105 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19106echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19107if test "${wx_cv_cpp_bool+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109else
19110
19111
19112
19113 ac_ext=cc
19114ac_cpp='$CXXCPP $CPPFLAGS'
19115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19118
19119
19120 cat >conftest.$ac_ext <<_ACEOF
19121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
19126
19127
19128int
19129main ()
19130{
19131
19132 bool b = true;
19133
19134 return 0;
19135
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext
19141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19142 (eval $ac_compile) 2>conftest.er1
a848cd7e 19143 ac_status=$?
ac1cb8d3
VS
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
a848cd7e
SC
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
d51253e8 19149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161
19162 wx_cv_cpp_bool=yes
19163
19164else
19165 echo "$as_me: failed program was:" >&5
19166sed 's/^/| /' conftest.$ac_ext >&5
19167
19168
19169 wx_cv_cpp_bool=no
19170
19171
19172fi
ac1cb8d3 19173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19174
19175 ac_ext=c
19176ac_cpp='$CPP $CPPFLAGS'
19177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179ac_compiler_gnu=$ac_cv_c_compiler_gnu
19180
19181
19182fi
19183echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19184echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19185
19186 if test "$wx_cv_cpp_bool" = "yes"; then
19187 cat >>confdefs.h <<\_ACEOF
19188#define HAVE_BOOL 1
19189_ACEOF
19190
19191 fi
19192
19193
19194
19195 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19196echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19197if test "${wx_cv_explicit+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199else
19200
19201
19202
19203 ac_ext=cc
19204ac_cpp='$CXXCPP $CPPFLAGS'
19205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19208
19209
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216
19217 class Foo { public: explicit Foo(int) {} };
19218
19219int
19220main ()
19221{
19222
19223 return 0;
19224
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19231 (eval $ac_compile) 2>conftest.er1
a848cd7e 19232 ac_status=$?
ac1cb8d3
VS
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
a848cd7e
SC
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
d51253e8 19238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250
19251 cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257
19258 class Foo { public: explicit Foo(int) {} };
19259 static void TakeFoo(const Foo& foo) { }
19260
19261int
19262main ()
19263{
19264
19265 TakeFoo(17);
19266 return 0;
19267
19268 ;
19269 return 0;
19270}
19271_ACEOF
19272rm -f conftest.$ac_objext
19273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19274 (eval $ac_compile) 2>conftest.er1
a848cd7e 19275 ac_status=$?
ac1cb8d3
VS
19276 grep -v '^ *+' conftest.er1 >conftest.err
19277 rm -f conftest.er1
19278 cat conftest.err >&5
a848cd7e
SC
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
d51253e8 19281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; } &&
19287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 wx_cv_explicit=no
19294else
19295 echo "$as_me: failed program was:" >&5
19296sed 's/^/| /' conftest.$ac_ext >&5
19297
19298wx_cv_explicit=yes
19299
19300fi
ac1cb8d3 19301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19302
19303else
19304 echo "$as_me: failed program was:" >&5
19305sed 's/^/| /' conftest.$ac_ext >&5
19306
19307wx_cv_explicit=no
19308
19309fi
ac1cb8d3 19310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19311
19312 ac_ext=c
19313ac_cpp='$CPP $CPPFLAGS'
19314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19316ac_compiler_gnu=$ac_cv_c_compiler_gnu
19317
19318
19319fi
19320echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19321echo "${ECHO_T}$wx_cv_explicit" >&6
19322
19323 if test "$wx_cv_explicit" = "yes"; then
19324 cat >>confdefs.h <<\_ACEOF
19325#define HAVE_EXPLICIT 1
19326_ACEOF
19327
19328 fi
19329
19330
19331echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19332echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19333if test "${ac_cv_cxx_const_cast+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19335else
19336
19337
19338 ac_ext=cc
19339ac_cpp='$CXXCPP $CPPFLAGS'
19340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19343
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
19351int
19352main ()
19353{
19354int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
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); } &&
d51253e8 19368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 ac_cv_cxx_const_cast=yes
19381else
19382 echo "$as_me: failed program was:" >&5
19383sed 's/^/| /' conftest.$ac_ext >&5
19384
19385ac_cv_cxx_const_cast=no
19386fi
ac1cb8d3 19387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19388 ac_ext=c
19389ac_cpp='$CPP $CPPFLAGS'
19390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394
19395fi
19396echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19397echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19398if test "$ac_cv_cxx_const_cast" = yes; then
19399
19400cat >>confdefs.h <<\_ACEOF
19401#define HAVE_CONST_CAST
19402_ACEOF
19403
19404fi
19405
7714864e
RL
19406echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19407echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19408if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410else
19411
19412
19413 ac_ext=cc
19414ac_cpp='$CXXCPP $CPPFLAGS'
19415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19418
19419 cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h. */
19425#include <typeinfo>
19426class Base { public : Base () {} virtual void f () = 0;};
19427class Derived : public Base { public : Derived () {} virtual void f () {} };
19428class Unrelated { public : Unrelated () {} };
19429int g (Unrelated&) { return 0; }
19430int
19431main ()
19432{
19433
19434Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext
19440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
d51253e8 19448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_cv_cxx_reinterpret_cast=yes
19461else
19462 echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465ac_cv_cxx_reinterpret_cast=no
19466fi
19467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19468 ac_ext=c
19469ac_cpp='$CPP $CPPFLAGS'
19470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19472ac_compiler_gnu=$ac_cv_c_compiler_gnu
19473
19474
19475fi
19476echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19477echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19478if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19479
19480cat >>confdefs.h <<\_ACEOF
19481#define HAVE_REINTERPRET_CAST
19482_ACEOF
19483
19484fi
19485
a848cd7e
SC
19486echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19487echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19488if test "${ac_cv_cxx_static_cast+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490else
19491
19492
19493 ac_ext=cc
19494ac_cpp='$CXXCPP $CPPFLAGS'
19495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19498
19499 cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h. */
19505#include <typeinfo>
19506class Base { public : Base () {} virtual void f () = 0; };
19507class Derived : public Base { public : Derived () {} virtual void f () {} };
19508int g (Derived&) { return 0; }
19509int
19510main ()
19511{
19512
19513Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest.$ac_objext
19519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19520 (eval $ac_compile) 2>conftest.er1
a848cd7e 19521 ac_status=$?
ac1cb8d3
VS
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
a848cd7e
SC
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
d51253e8 19527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 ac_cv_cxx_static_cast=yes
19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544ac_cv_cxx_static_cast=no
19545fi
ac1cb8d3 19546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19547 ac_ext=c
19548ac_cpp='$CPP $CPPFLAGS'
19549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553
19554fi
19555echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19556echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19557if test "$ac_cv_cxx_static_cast" = yes; then
19558
19559cat >>confdefs.h <<\_ACEOF
19560#define HAVE_STATIC_CAST
19561_ACEOF
19562
19563fi
19564
19565
19566if test "$wxUSE_STL" = "yes"; then
19567 ac_ext=cc
19568ac_cpp='$CXXCPP $CPPFLAGS'
19569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19572
19573
19574 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19575echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
19582#include <string>
19583 #include <functional>
19584 #include <algorithm>
19585 #include <vector>
19586 #include <list>
19587int
19588main ()
19589{
19590std::vector<int> moo;
19591 std::list<int> foo;
19592 std::vector<int>::iterator it =
19593 std::find_if(moo.begin(), moo.end(),
19594 std::bind2nd(std::less<int>(), 3));
19595 ;
19596 return 0;
19597}
19598_ACEOF
19599rm -f conftest.$ac_objext
19600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19601 (eval $ac_compile) 2>conftest.er1
a848cd7e 19602 ac_status=$?
ac1cb8d3
VS
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
a848cd7e
SC
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
d51253e8 19608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; } &&
19614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 echo "$as_me:$LINENO: result: yes" >&5
19621echo "${ECHO_T}yes" >&6
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626echo "$as_me:$LINENO: result: no" >&5
19627echo "${ECHO_T}no" >&6
19628 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19629echo "$as_me: error: Basic STL functionality missing" >&2;}
19630 { (exit 1); exit 1; }; }
19631fi
ac1cb8d3 19632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19633
19634 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19635echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19636 cat >conftest.$ac_ext <<_ACEOF
19637/* confdefs.h. */
19638_ACEOF
19639cat confdefs.h >>conftest.$ac_ext
19640cat >>conftest.$ac_ext <<_ACEOF
19641/* end confdefs.h. */
19642#include <string>
19643int
19644main ()
19645{
19646std::wstring foo;
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19653 (eval $ac_compile) 2>conftest.er1
a848cd7e 19654 ac_status=$?
ac1cb8d3
VS
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
a848cd7e
SC
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
d51253e8 19660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 echo "$as_me:$LINENO: result: yes" >&5
19673echo "${ECHO_T}yes" >&6
19674 cat >>confdefs.h <<\_ACEOF
19675#define HAVE_STD_WSTRING 1
19676_ACEOF
19677
19678else
19679 echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682echo "$as_me:$LINENO: result: no" >&5
19683echo "${ECHO_T}no" >&6
19684fi
ac1cb8d3 19685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19686
19687 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19688echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19689 cat >conftest.$ac_ext <<_ACEOF
19690/* confdefs.h. */
19691_ACEOF
19692cat confdefs.h >>conftest.$ac_ext
19693cat >>conftest.$ac_ext <<_ACEOF
19694/* end confdefs.h. */
19695#include <string>
19696int
19697main ()
19698{
19699std::string foo, bar;
19700 foo.compare(bar);
19701 foo.compare(1, 1, bar);
19702 foo.compare(1, 1, bar, 1, 1);
19703 foo.compare("");
19704 foo.compare(1, 1, "");
19705 foo.compare(1, 1, "", 2);
19706 ;
19707 return 0;
19708}
19709_ACEOF
19710rm -f conftest.$ac_objext
19711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19712 (eval $ac_compile) 2>conftest.er1
a848cd7e 19713 ac_status=$?
ac1cb8d3
VS
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
a848cd7e
SC
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
d51253e8 19719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 echo "$as_me:$LINENO: result: yes" >&5
19732echo "${ECHO_T}yes" >&6
19733 cat >>confdefs.h <<\_ACEOF
19734#define HAVE_STD_STRING_COMPARE 1
19735_ACEOF
19736
19737else
19738 echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741echo "$as_me:$LINENO: result: no" >&5
19742echo "${ECHO_T}no" >&6
19743fi
ac1cb8d3 19744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19745
19746 if test "${ac_cv_header_hash_map+set}" = set; then
19747 echo "$as_me:$LINENO: checking for hash_map" >&5
19748echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19749if test "${ac_cv_header_hash_map+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751fi
19752echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19753echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19754else
19755 # Is the header compilable?
19756echo "$as_me:$LINENO: checking hash_map usability" >&5
19757echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19758cat >conftest.$ac_ext <<_ACEOF
19759/* confdefs.h. */
19760_ACEOF
19761cat confdefs.h >>conftest.$ac_ext
19762cat >>conftest.$ac_ext <<_ACEOF
19763/* end confdefs.h. */
19764$ac_includes_default
19765#include <hash_map>
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19769 (eval $ac_compile) 2>conftest.er1
bdcade0a 19770 ac_status=$?
ac1cb8d3
VS
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
bdcade0a
MB
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
d51253e8 19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_header_compiler=yes
19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793ac_header_compiler=no
19794fi
ac1cb8d3 19795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19797echo "${ECHO_T}$ac_header_compiler" >&6
19798
19799# Is the header present?
19800echo "$as_me:$LINENO: checking hash_map presence" >&5
19801echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19802cat >conftest.$ac_ext <<_ACEOF
19803/* confdefs.h. */
19804_ACEOF
19805cat confdefs.h >>conftest.$ac_ext
19806cat >>conftest.$ac_ext <<_ACEOF
19807/* end confdefs.h. */
19808#include <hash_map>
19809_ACEOF
19810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } >/dev/null; then
19818 if test -s conftest.err; then
19819 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19820 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19821 else
19822 ac_cpp_err=
19823 fi
19824else
19825 ac_cpp_err=yes
19826fi
19827if test -z "$ac_cpp_err"; then
19828 ac_header_preproc=yes
19829else
19830 echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 ac_header_preproc=no
19834fi
19835rm -f conftest.err conftest.$ac_ext
19836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19837echo "${ECHO_T}$ac_header_preproc" >&6
19838
19839# So? What about this header?
ac1cb8d3
VS
19840case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19841 yes:no: )
bdcade0a
MB
19842 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19843echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19844 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19845echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19846 ac_header_preproc=yes
bdcade0a 19847 ;;
ac1cb8d3 19848 no:yes:* )
bdcade0a
MB
19849 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19850echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19851 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19852echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19854echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19856echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19857 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19858echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19859 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19860echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19861 (
19862 cat <<\_ASBOX
ac1cb8d3
VS
19863## ----------------------------------------- ##
19864## Report this to wx-dev@lists.wxwidgets.org ##
19865## ----------------------------------------- ##
bdcade0a
MB
19866_ASBOX
19867 ) |
19868 sed "s/^/$as_me: WARNING: /" >&2
19869 ;;
19870esac
19871echo "$as_me:$LINENO: checking for hash_map" >&5
19872echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19873if test "${ac_cv_header_hash_map+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875else
19876 ac_cv_header_hash_map=$ac_header_preproc
19877fi
19878echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19879echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19880
19881fi
19882if test $ac_cv_header_hash_map = yes; then
19883 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19884echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19886/* confdefs.h. */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h. */
19891#include <hash_map>
19892 #include <hash_set>
19893int
19894main ()
19895{
19896std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19897 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19898 ;
19899 return 0;
19900}
19901_ACEOF
19902rm -f conftest.$ac_objext
19903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19904 (eval $ac_compile) 2>conftest.er1
bdcade0a 19905 ac_status=$?
ac1cb8d3
VS
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
bdcade0a
MB
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } &&
d51253e8 19911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 echo "$as_me:$LINENO: result: yes" >&5
19924echo "${ECHO_T}yes" >&6
19925 cat >>confdefs.h <<\_ACEOF
19926#define HAVE_HASH_MAP 1
19927_ACEOF
19928
19929 cat >>confdefs.h <<\_ACEOF
19930#define HAVE_STD_HASH_MAP 1
19931_ACEOF
19932
19933else
19934 echo "$as_me: failed program was:" >&5
19935sed 's/^/| /' conftest.$ac_ext >&5
19936
19937echo "$as_me:$LINENO: result: no" >&5
19938echo "${ECHO_T}no" >&6
19939fi
ac1cb8d3 19940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19941
19942fi
19943
19944
19945
19946 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19947 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19948echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19949if test "${ac_cv_header_ext_hash_map+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951fi
19952echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19953echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19954else
19955 # Is the header compilable?
19956echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19957echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19958cat >conftest.$ac_ext <<_ACEOF
19959/* confdefs.h. */
19960_ACEOF
19961cat confdefs.h >>conftest.$ac_ext
19962cat >>conftest.$ac_ext <<_ACEOF
19963/* end confdefs.h. */
19964$ac_includes_default
19965#include <ext/hash_map>
19966_ACEOF
19967rm -f conftest.$ac_objext
19968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19969 (eval $ac_compile) 2>conftest.er1
bdcade0a 19970 ac_status=$?
ac1cb8d3
VS
19971 grep -v '^ *+' conftest.er1 >conftest.err
19972 rm -f conftest.er1
19973 cat conftest.err >&5
bdcade0a
MB
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
d51253e8 19976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 ac_header_compiler=yes
19989else
19990 echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
19993ac_header_compiler=no
19994fi
ac1cb8d3 19995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19997echo "${ECHO_T}$ac_header_compiler" >&6
19998
19999# Is the header present?
20000echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20001echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20002cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
20008#include <ext/hash_map>
20009_ACEOF
20010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } >/dev/null; then
20018 if test -s conftest.err; then
20019 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20020 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20021 else
20022 ac_cpp_err=
20023 fi
20024else
20025 ac_cpp_err=yes
20026fi
20027if test -z "$ac_cpp_err"; then
20028 ac_header_preproc=yes
20029else
20030 echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_header_preproc=no
20034fi
20035rm -f conftest.err conftest.$ac_ext
20036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20037echo "${ECHO_T}$ac_header_preproc" >&6
20038
20039# So? What about this header?
ac1cb8d3
VS
20040case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20041 yes:no: )
bdcade0a
MB
20042 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20043echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20044 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20045echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20046 ac_header_preproc=yes
bdcade0a 20047 ;;
ac1cb8d3 20048 no:yes:* )
bdcade0a
MB
20049 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20050echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20051 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20052echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20054echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20056echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20057 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20058echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20059 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20060echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20061 (
20062 cat <<\_ASBOX
ac1cb8d3
VS
20063## ----------------------------------------- ##
20064## Report this to wx-dev@lists.wxwidgets.org ##
20065## ----------------------------------------- ##
bdcade0a
MB
20066_ASBOX
20067 ) |
20068 sed "s/^/$as_me: WARNING: /" >&2
20069 ;;
20070esac
20071echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20072echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20073if test "${ac_cv_header_ext_hash_map+set}" = set; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20075else
20076 ac_cv_header_ext_hash_map=$ac_header_preproc
20077fi
20078echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20079echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20080
20081fi
20082if test $ac_cv_header_ext_hash_map = yes; then
20083 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20084echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20085 cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
20091#include <ext/hash_map>
20092 #include <ext/hash_set>
20093int
20094main ()
20095{
20096__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20097 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20098 ;
20099 return 0;
20100}
20101_ACEOF
20102rm -f conftest.$ac_objext
20103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20104 (eval $ac_compile) 2>conftest.er1
bdcade0a 20105 ac_status=$?
ac1cb8d3
VS
20106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
bdcade0a
MB
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
d51253e8 20111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 echo "$as_me:$LINENO: result: yes" >&5
20124echo "${ECHO_T}yes" >&6
20125 cat >>confdefs.h <<\_ACEOF
20126#define HAVE_EXT_HASH_MAP 1
20127_ACEOF
20128
20129 cat >>confdefs.h <<\_ACEOF
20130#define HAVE_GNU_CXX_HASH_MAP 1
20131_ACEOF
20132
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137echo "$as_me:$LINENO: result: no" >&5
20138echo "${ECHO_T}no" >&6
20139fi
ac1cb8d3 20140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20141
20142fi
20143
20144
a848cd7e
SC
20145
20146 ac_ext=c
20147ac_cpp='$CPP $CPPFLAGS'
20148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150ac_compiler_gnu=$ac_cv_c_compiler_gnu
20151
20152fi
20153
20154
20155SEARCH_INCLUDE="\
20156 /usr/local/include \
20157 \
20158 /usr/Motif-2.1/include \
20159 /usr/Motif-1.2/include \
20160 /usr/include/Motif1.2 \
20161 /opt/xpm/include/X11 \
20162 /opt/GBxpm/include/ \
20163 /opt/GBxpm/X11/include/ \
20164 \
20165 /usr/dt/include \
20166 /usr/openwin/include \
20167 \
20168 /usr/include/Xm \
20169 \
20170 /usr/X11R6/include \
20171 /usr/X11R6.4/include \
20172 /usr/X11R5/include \
20173 /usr/X11R4/include \
20174 \
20175 /usr/include/X11R6 \
20176 /usr/include/X11R5 \
20177 /usr/include/X11R4 \
20178 \
20179 /usr/local/X11R6/include \
20180 /usr/local/X11R5/include \
20181 /usr/local/X11R4/include \
20182 \
20183 /usr/local/include/X11R6 \
20184 /usr/local/include/X11R5 \
20185 /usr/local/include/X11R4 \
20186 \
20187 /usr/X11/include \
20188 /usr/include/X11 \
20189 /usr/local/X11/include \
20190 /usr/local/include/X11 \
20191 \
20192 /usr/X386/include \
20193 /usr/x386/include \
20194 /usr/XFree86/include/X11 \
20195 \
20196 X:/XFree86/include \
20197 X:/XFree86/include/X11 \
20198 \
20199 /usr/include/gtk \
20200 /usr/local/include/gtk \
20201 /usr/include/glib \
20202 /usr/local/include/glib \
20203 \
20204 /usr/include/qt \
20205 /usr/local/include/qt \
20206 \
20207 /usr/local/arm/3.3.2/include \
20208 \
20209 /usr/include/windows \
20210 /usr/include/wine \
20211 /usr/local/include/wine \
20212 \
20213 /usr/unsupported/include \
20214 /usr/athena/include \
20215 /usr/local/x11r5/include \
20216 /usr/lpp/Xamples/include \
20217 \
20218 /usr/openwin/share/include"
20219
20220SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20221
20222
20223cat >confcache <<\_ACEOF
20224# This file is a shell script that caches the results of configure
20225# tests run on this system so they can be shared between configure
20226# scripts and configure runs, see configure's option --config-cache.
20227# It is not useful on other systems. If it contains results you don't
20228# want to keep, you may remove or edit it.
20229#
20230# config.status only pays attention to the cache file if you give it
20231# the --recheck option to rerun configure.
20232#
20233# `ac_cv_env_foo' variables (set or unset) will be overridden when
20234# loading this file, other *unset* `ac_cv_foo' will be assigned the
20235# following values.
20236
20237_ACEOF
20238
20239# The following way of writing the cache mishandles newlines in values,
20240# but we know of no workaround that is simple, portable, and efficient.
20241# So, don't put newlines in cache variables' values.
20242# Ultrix sh set writes to stderr and can't be redirected directly,
20243# and sets the high bit in the cache file unless we assign to the vars.
20244{
20245 (set) 2>&1 |
20246 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20247 *ac_space=\ *)
20248 # `set' does not quote correctly, so add quotes (double-quote
20249 # substitution turns \\\\ into \\, and sed turns \\ into \).
20250 sed -n \
ac1cb8d3
VS
20251 "s/'/'\\\\''/g;
20252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20253 ;;
20254 *)
20255 # `set' quotes correctly as required by POSIX, so do not add quotes.
20256 sed -n \
ac1cb8d3 20257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20258 ;;
20259 esac;
20260} |
20261 sed '
20262 t clear
20263 : clear
20264 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20265 t end
20266 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20267 : end' >>confcache
20268if diff $cache_file confcache >/dev/null 2>&1; then :; else
20269 if test -w $cache_file; then
20270 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20271 cat confcache >$cache_file
20272 else
20273 echo "not updating unwritable cache $cache_file"
20274 fi
20275fi
20276rm -f confcache
20277
20278if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20279 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20280echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20281if test "${wx_cv_lib_glibc21+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283else
20284
20285 cat >conftest.$ac_ext <<_ACEOF
20286/* confdefs.h. */
20287_ACEOF
20288cat confdefs.h >>conftest.$ac_ext
20289cat >>conftest.$ac_ext <<_ACEOF
20290/* end confdefs.h. */
20291#include <features.h>
20292int
20293main ()
20294{
20295
20296 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20297 #error not glibc2.1
20298 #endif
20299
20300 ;
20301 return 0;
20302}
20303_ACEOF
20304rm -f conftest.$ac_objext
20305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20306 (eval $ac_compile) 2>conftest.er1
a848cd7e 20307 ac_status=$?
ac1cb8d3
VS
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
a848cd7e
SC
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
d51253e8 20313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325
20326 wx_cv_lib_glibc21=yes
20327
20328else
20329 echo "$as_me: failed program was:" >&5
20330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332
20333 wx_cv_lib_glibc21=no
20334
20335
20336fi
ac1cb8d3 20337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20338
20339fi
20340echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20341echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20342 if test "$wx_cv_lib_glibc21" = "yes"; then
20343 cat >>confdefs.h <<\_ACEOF
20344#define wxHAVE_GLIBC2 1
20345_ACEOF
20346
20347 fi
20348fi
20349
20350if test "x$wx_cv_lib_glibc21" = "xyes"; then
20351 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20352 cat >>confdefs.h <<\_ACEOF
20353#define _GNU_SOURCE 1
20354_ACEOF
20355
20356 fi
20357fi
20358
20359
20360
20361if test "$wxUSE_REGEX" != "no"; then
20362 cat >>confdefs.h <<\_ACEOF
20363#define wxUSE_REGEX 1
20364_ACEOF
20365
20366
20367 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20368 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20369echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20370 wxUSE_REGEX=builtin
20371 fi
20372
20373 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20374 if test "${ac_cv_header_regex_h+set}" = set; then
20375 echo "$as_me:$LINENO: checking for regex.h" >&5
20376echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20377if test "${ac_cv_header_regex_h+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379fi
20380echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20381echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20382else
20383 # Is the header compilable?
20384echo "$as_me:$LINENO: checking regex.h usability" >&5
20385echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20386cat >conftest.$ac_ext <<_ACEOF
20387/* confdefs.h. */
20388_ACEOF
20389cat confdefs.h >>conftest.$ac_ext
20390cat >>conftest.$ac_ext <<_ACEOF
20391/* end confdefs.h. */
20392$ac_includes_default
20393#include <regex.h>
20394_ACEOF
20395rm -f conftest.$ac_objext
20396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20397 (eval $ac_compile) 2>conftest.er1
a848cd7e 20398 ac_status=$?
ac1cb8d3
VS
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
a848cd7e
SC
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
d51253e8 20404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 ac_header_compiler=yes
20417else
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421ac_header_compiler=no
20422fi
ac1cb8d3 20423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20425echo "${ECHO_T}$ac_header_compiler" >&6
20426
20427# Is the header present?
20428echo "$as_me:$LINENO: checking regex.h presence" >&5
20429echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20430cat >conftest.$ac_ext <<_ACEOF
20431/* confdefs.h. */
20432_ACEOF
20433cat confdefs.h >>conftest.$ac_ext
20434cat >>conftest.$ac_ext <<_ACEOF
20435/* end confdefs.h. */
20436#include <regex.h>
20437_ACEOF
20438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } >/dev/null; then
20446 if test -s conftest.err; then
20447 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20449 else
20450 ac_cpp_err=
20451 fi
20452else
20453 ac_cpp_err=yes
20454fi
20455if test -z "$ac_cpp_err"; then
20456 ac_header_preproc=yes
20457else
20458 echo "$as_me: failed program was:" >&5
20459sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 ac_header_preproc=no
20462fi
20463rm -f conftest.err conftest.$ac_ext
20464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20465echo "${ECHO_T}$ac_header_preproc" >&6
20466
20467# So? What about this header?
ac1cb8d3
VS
20468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20469 yes:no: )
a848cd7e
SC
20470 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20471echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20472 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20473echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20474 ac_header_preproc=yes
a848cd7e 20475 ;;
ac1cb8d3 20476 no:yes:* )
a848cd7e
SC
20477 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20478echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20479 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20480echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20482echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20483 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20484echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20485 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20486echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20487 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20488echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20489 (
20490 cat <<\_ASBOX
ac1cb8d3
VS
20491## ----------------------------------------- ##
20492## Report this to wx-dev@lists.wxwidgets.org ##
20493## ----------------------------------------- ##
a848cd7e
SC
20494_ASBOX
20495 ) |
20496 sed "s/^/$as_me: WARNING: /" >&2
20497 ;;
20498esac
20499echo "$as_me:$LINENO: checking for regex.h" >&5
20500echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20501if test "${ac_cv_header_regex_h+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20503else
20504 ac_cv_header_regex_h=$ac_header_preproc
20505fi
20506echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20507echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20508
20509fi
20510if test $ac_cv_header_regex_h = yes; then
20511
20512for ac_func in regcomp
20513do
20514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20515echo "$as_me:$LINENO: checking for $ac_func" >&5
20516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20517if eval "test \"\${$as_ac_var+set}\" = set"; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20519else
20520 cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h. */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
20525/* end confdefs.h. */
ac1cb8d3
VS
20526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20528#define $ac_func innocuous_$ac_func
20529
a848cd7e
SC
20530/* System header to define __stub macros and hopefully few prototypes,
20531 which can conflict with char $ac_func (); below.
20532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20533 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20534
a848cd7e
SC
20535#ifdef __STDC__
20536# include <limits.h>
20537#else
20538# include <assert.h>
20539#endif
ac1cb8d3
VS
20540
20541#undef $ac_func
20542
a848cd7e
SC
20543/* Override any gcc2 internal prototype to avoid an error. */
20544#ifdef __cplusplus
20545extern "C"
20546{
20547#endif
20548/* We use char because int might match the return type of a gcc2
20549 builtin and then its argument prototype would still apply. */
20550char $ac_func ();
20551/* The GNU C library defines this for functions which it implements
20552 to always fail with ENOSYS. Some functions are actually named
20553 something starting with __ and the normal name is an alias. */
20554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20555choke me
20556#else
20557char (*f) () = $ac_func;
20558#endif
20559#ifdef __cplusplus
20560}
20561#endif
20562
20563int
20564main ()
20565{
20566return f != $ac_func;
20567 ;
20568 return 0;
20569}
20570_ACEOF
20571rm -f conftest.$ac_objext conftest$ac_exeext
20572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20573 (eval $ac_link) 2>conftest.er1
a848cd7e 20574 ac_status=$?
ac1cb8d3
VS
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
a848cd7e
SC
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } &&
d51253e8 20580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; } &&
20586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; }; then
20592 eval "$as_ac_var=yes"
20593else
20594 echo "$as_me: failed program was:" >&5
20595sed 's/^/| /' conftest.$ac_ext >&5
20596
20597eval "$as_ac_var=no"
20598fi
ac1cb8d3
VS
20599rm -f conftest.err conftest.$ac_objext \
20600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20601fi
20602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20604if test `eval echo '${'$as_ac_var'}'` = yes; then
20605 cat >>confdefs.h <<_ACEOF
20606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20607_ACEOF
20608
20609fi
20610done
20611
20612fi
20613
20614
20615
20616 if test "x$ac_cv_func_regcomp" != "xyes"; then
20617 if test "$wxUSE_REGEX" = "sys" ; then
20618 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20619echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20620 { (exit 1); exit 1; }; }
20621 else
20622 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20623echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20624 wxUSE_REGEX=builtin
20625 fi
20626 else
20627 wxUSE_REGEX=sys
20628 cat >>confdefs.h <<\_ACEOF
20629#define WX_NO_REGEX_ADVANCED 1
20630_ACEOF
20631
20632 fi
20633 fi
20634fi
20635
20636
20637ZLIB_LINK=
20638if test "$wxUSE_ZLIB" != "no" ; then
20639 cat >>confdefs.h <<\_ACEOF
20640#define wxUSE_ZLIB 1
20641_ACEOF
20642
20643
20644 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20645 if test "$USE_DARWIN" = 1; then
20646 system_zlib_h_ok="yes"
20647 else
20648 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20649echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20650if test "${ac_cv_header_zlib_h+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652else
20653 if test "$cross_compiling" = yes; then
20654 unset ac_cv_header_zlib_h
20655
20656else
20657 cat >conftest.$ac_ext <<_ACEOF
20658/* confdefs.h. */
20659_ACEOF
20660cat confdefs.h >>conftest.$ac_ext
20661cat >>conftest.$ac_ext <<_ACEOF
20662/* end confdefs.h. */
20663
20664 #include <zlib.h>
20665 #include <stdio.h>
20666
20667 int main()
20668 {
20669 FILE *f=fopen("conftestval", "w");
20670 if (!f) exit(1);
20671 fprintf(f, "%s",
20672 ZLIB_VERSION[0] == '1' &&
20673 (ZLIB_VERSION[2] > '1' ||
20674 (ZLIB_VERSION[2] == '1' &&
20675 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20676 exit(0);
20677 }
20678
20679_ACEOF
20680rm -f conftest$ac_exeext
20681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682 (eval $ac_link) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20688 ac_status=$?
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; }; then
20691 ac_cv_header_zlib_h=`cat conftestval`
20692else
20693 echo "$as_me: program exited with status $ac_status" >&5
20694echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
20697( exit $ac_status )
20698ac_cv_header_zlib_h=no
20699fi
ac1cb8d3 20700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20701fi
20702
20703fi
20704echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20705echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20706 if test "${ac_cv_header_zlib_h+set}" = set; then
20707 echo "$as_me:$LINENO: checking for zlib.h" >&5
20708echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20709if test "${ac_cv_header_zlib_h+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711fi
20712echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20713echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20714else
20715 # Is the header compilable?
20716echo "$as_me:$LINENO: checking zlib.h usability" >&5
20717echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20718cat >conftest.$ac_ext <<_ACEOF
20719/* confdefs.h. */
20720_ACEOF
20721cat confdefs.h >>conftest.$ac_ext
20722cat >>conftest.$ac_ext <<_ACEOF
20723/* end confdefs.h. */
20724$ac_includes_default
20725#include <zlib.h>
20726_ACEOF
20727rm -f conftest.$ac_objext
20728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20729 (eval $ac_compile) 2>conftest.er1
a848cd7e 20730 ac_status=$?
ac1cb8d3
VS
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
a848cd7e
SC
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
d51253e8 20736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_header_compiler=yes
20749else
20750 echo "$as_me: failed program was:" >&5
20751sed 's/^/| /' conftest.$ac_ext >&5
20752
20753ac_header_compiler=no
20754fi
ac1cb8d3 20755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20757echo "${ECHO_T}$ac_header_compiler" >&6
20758
20759# Is the header present?
20760echo "$as_me:$LINENO: checking zlib.h presence" >&5
20761echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20762cat >conftest.$ac_ext <<_ACEOF
20763/* confdefs.h. */
20764_ACEOF
20765cat confdefs.h >>conftest.$ac_ext
20766cat >>conftest.$ac_ext <<_ACEOF
20767/* end confdefs.h. */
20768#include <zlib.h>
20769_ACEOF
20770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20772 ac_status=$?
20773 grep -v '^ *+' conftest.er1 >conftest.err
20774 rm -f conftest.er1
20775 cat conftest.err >&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); } >/dev/null; then
20778 if test -s conftest.err; then
20779 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20781 else
20782 ac_cpp_err=
20783 fi
20784else
20785 ac_cpp_err=yes
20786fi
20787if test -z "$ac_cpp_err"; then
20788 ac_header_preproc=yes
20789else
20790 echo "$as_me: failed program was:" >&5
20791sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_header_preproc=no
20794fi
20795rm -f conftest.err conftest.$ac_ext
20796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20797echo "${ECHO_T}$ac_header_preproc" >&6
20798
20799# So? What about this header?
ac1cb8d3
VS
20800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20801 yes:no: )
a848cd7e
SC
20802 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20803echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20804 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20805echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20806 ac_header_preproc=yes
a848cd7e 20807 ;;
ac1cb8d3 20808 no:yes:* )
a848cd7e
SC
20809 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20810echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20811 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20812echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20814echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20816echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20817 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20818echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20819 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20820echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20821 (
20822 cat <<\_ASBOX
ac1cb8d3
VS
20823## ----------------------------------------- ##
20824## Report this to wx-dev@lists.wxwidgets.org ##
20825## ----------------------------------------- ##
a848cd7e
SC
20826_ASBOX
20827 ) |
20828 sed "s/^/$as_me: WARNING: /" >&2
20829 ;;
20830esac
20831echo "$as_me:$LINENO: checking for zlib.h" >&5
20832echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20833if test "${ac_cv_header_zlib_h+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20835else
20836 ac_cv_header_zlib_h=$ac_header_preproc
20837fi
20838echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20839echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20840
20841fi
20842
20843
20844
20845 system_zlib_h_ok=$ac_cv_header_zlib_h
20846 fi
20847
20848 if test "$system_zlib_h_ok" = "yes"; then
20849 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20850echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20851if test "${ac_cv_lib_z_deflate+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853else
20854 ac_check_lib_save_LIBS=$LIBS
20855LIBS="-lz $LIBS"
20856cat >conftest.$ac_ext <<_ACEOF
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
20862
20863/* Override any gcc2 internal prototype to avoid an error. */
20864#ifdef __cplusplus
20865extern "C"
20866#endif
20867/* We use char because int might match the return type of a gcc2
20868 builtin and then its argument prototype would still apply. */
20869char deflate ();
20870int
20871main ()
20872{
20873deflate ();
20874 ;
20875 return 0;
20876}
20877_ACEOF
20878rm -f conftest.$ac_objext conftest$ac_exeext
20879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20880 (eval $ac_link) 2>conftest.er1
a848cd7e 20881 ac_status=$?
ac1cb8d3
VS
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
a848cd7e
SC
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
d51253e8 20887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_cv_lib_z_deflate=yes
20900else
20901 echo "$as_me: failed program was:" >&5
20902sed 's/^/| /' conftest.$ac_ext >&5
20903
20904ac_cv_lib_z_deflate=no
20905fi
ac1cb8d3
VS
20906rm -f conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20908LIBS=$ac_check_lib_save_LIBS
20909fi
20910echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20911echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20912if test $ac_cv_lib_z_deflate = yes; then
20913 ZLIB_LINK=" -lz"
20914fi
20915
20916 fi
20917
20918 if test "x$ZLIB_LINK" = "x" ; then
20919 if test "$wxUSE_ZLIB" = "sys" ; then
20920 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20921echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20922 { (exit 1); exit 1; }; }
20923 else
20924 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20925echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20926 wxUSE_ZLIB=builtin
20927 fi
20928 else
20929 wxUSE_ZLIB=sys
20930 fi
20931 fi
20932fi
20933
20934
20935PNG_LINK=
20936if test "$wxUSE_LIBPNG" != "no" ; then
20937 cat >>confdefs.h <<\_ACEOF
20938#define wxUSE_LIBPNG 1
20939_ACEOF
20940
20941
20942 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20943 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20944echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20945 wxUSE_LIBPNG=sys
20946 fi
20947
20948 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20949 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20950echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20951 wxUSE_LIBPNG=builtin
20952 fi
20953
20954 if test "$wxUSE_MGL" != 1 ; then
20955 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20956 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20957echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20958if test "${ac_cv_header_png_h+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960else
20961 if test "$cross_compiling" = yes; then
20962 unset ac_cv_header_png_h
20963
20964else
20965 cat >conftest.$ac_ext <<_ACEOF
20966/* confdefs.h. */
20967_ACEOF
20968cat confdefs.h >>conftest.$ac_ext
20969cat >>conftest.$ac_ext <<_ACEOF
20970/* end confdefs.h. */
20971
20972 #include <png.h>
20973 #include <stdio.h>
20974
20975 int main()
20976 {
20977 FILE *f=fopen("conftestval", "w");
20978 if (!f) exit(1);
20979 fprintf(f, "%s",
20980 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20981 exit(0);
20982 }
20983
20984_ACEOF
20985rm -f conftest$ac_exeext
20986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_cv_header_png_h=`cat conftestval`
20997else
20998 echo "$as_me: program exited with status $ac_status" >&5
20999echo "$as_me: failed program was:" >&5
21000sed 's/^/| /' conftest.$ac_ext >&5
21001
21002( exit $ac_status )
21003ac_cv_header_png_h=no
21004fi
ac1cb8d3 21005rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21006fi
21007
21008fi
21009echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21010echo "${ECHO_T}$ac_cv_header_png_h" >&6
21011 if test "${ac_cv_header_png_h+set}" = set; then
21012 echo "$as_me:$LINENO: checking for png.h" >&5
21013echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21014if test "${ac_cv_header_png_h+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21016fi
21017echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21018echo "${ECHO_T}$ac_cv_header_png_h" >&6
21019else
21020 # Is the header compilable?
21021echo "$as_me:$LINENO: checking png.h usability" >&5
21022echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21023cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h. */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h. */
21029$ac_includes_default
21030#include <png.h>
21031_ACEOF
21032rm -f conftest.$ac_objext
21033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21034 (eval $ac_compile) 2>conftest.er1
a848cd7e 21035 ac_status=$?
ac1cb8d3
VS
21036 grep -v '^ *+' conftest.er1 >conftest.err
21037 rm -f conftest.er1
21038 cat conftest.err >&5
a848cd7e
SC
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } &&
d51253e8 21041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_header_compiler=yes
21054else
21055 echo "$as_me: failed program was:" >&5
21056sed 's/^/| /' conftest.$ac_ext >&5
21057
21058ac_header_compiler=no
21059fi
ac1cb8d3 21060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21062echo "${ECHO_T}$ac_header_compiler" >&6
21063
21064# Is the header present?
21065echo "$as_me:$LINENO: checking png.h presence" >&5
21066echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21067cat >conftest.$ac_ext <<_ACEOF
21068/* confdefs.h. */
21069_ACEOF
21070cat confdefs.h >>conftest.$ac_ext
21071cat >>conftest.$ac_ext <<_ACEOF
21072/* end confdefs.h. */
21073#include <png.h>
21074_ACEOF
21075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } >/dev/null; then
21083 if test -s conftest.err; then
21084 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21086 else
21087 ac_cpp_err=
21088 fi
21089else
21090 ac_cpp_err=yes
21091fi
21092if test -z "$ac_cpp_err"; then
21093 ac_header_preproc=yes
21094else
21095 echo "$as_me: failed program was:" >&5
21096sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 ac_header_preproc=no
21099fi
21100rm -f conftest.err conftest.$ac_ext
21101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21102echo "${ECHO_T}$ac_header_preproc" >&6
21103
21104# So? What about this header?
ac1cb8d3
VS
21105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21106 yes:no: )
a848cd7e
SC
21107 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21108echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21109 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21110echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21111 ac_header_preproc=yes
a848cd7e 21112 ;;
ac1cb8d3 21113 no:yes:* )
a848cd7e
SC
21114 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21115echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21116 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21117echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21118 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21119echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21121echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21122 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21123echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21124 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21125echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21126 (
21127 cat <<\_ASBOX
ac1cb8d3
VS
21128## ----------------------------------------- ##
21129## Report this to wx-dev@lists.wxwidgets.org ##
21130## ----------------------------------------- ##
a848cd7e
SC
21131_ASBOX
21132 ) |
21133 sed "s/^/$as_me: WARNING: /" >&2
21134 ;;
21135esac
21136echo "$as_me:$LINENO: checking for png.h" >&5
21137echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21138if test "${ac_cv_header_png_h+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21140else
21141 ac_cv_header_png_h=$ac_header_preproc
21142fi
21143echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21144echo "${ECHO_T}$ac_cv_header_png_h" >&6
21145
21146fi
21147
21148
21149
21150 if test "$ac_cv_header_png_h" = "yes"; then
21151 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21152echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21153if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155else
21156 ac_check_lib_save_LIBS=$LIBS
21157LIBS="-lpng -lz -lm $LIBS"
21158cat >conftest.$ac_ext <<_ACEOF
21159/* confdefs.h. */
21160_ACEOF
21161cat confdefs.h >>conftest.$ac_ext
21162cat >>conftest.$ac_ext <<_ACEOF
21163/* end confdefs.h. */
21164
21165/* Override any gcc2 internal prototype to avoid an error. */
21166#ifdef __cplusplus
21167extern "C"
21168#endif
21169/* We use char because int might match the return type of a gcc2
21170 builtin and then its argument prototype would still apply. */
21171char png_check_sig ();
21172int
21173main ()
21174{
21175png_check_sig ();
21176 ;
21177 return 0;
21178}
21179_ACEOF
21180rm -f conftest.$ac_objext conftest$ac_exeext
21181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21182 (eval $ac_link) 2>conftest.er1
a848cd7e 21183 ac_status=$?
ac1cb8d3
VS
21184 grep -v '^ *+' conftest.er1 >conftest.err
21185 rm -f conftest.er1
21186 cat conftest.err >&5
a848cd7e
SC
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
d51253e8 21189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; } &&
21195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; }; then
21201 ac_cv_lib_png_png_check_sig=yes
21202else
21203 echo "$as_me: failed program was:" >&5
21204sed 's/^/| /' conftest.$ac_ext >&5
21205
21206ac_cv_lib_png_png_check_sig=no
21207fi
ac1cb8d3
VS
21208rm -f conftest.err conftest.$ac_objext \
21209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21210LIBS=$ac_check_lib_save_LIBS
21211fi
21212echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21213echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21214if test $ac_cv_lib_png_png_check_sig = yes; then
21215 PNG_LINK=" -lpng -lz"
21216fi
21217
21218 fi
21219
21220 if test "x$PNG_LINK" = "x" ; then
21221 if test "$wxUSE_LIBPNG" = "sys" ; then
21222 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21223echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21224 { (exit 1); exit 1; }; }
21225 else
21226 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21227echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21228 wxUSE_LIBPNG=builtin
21229 fi
21230 else
21231 wxUSE_LIBPNG=sys
21232 fi
21233 fi
21234 fi
21235
21236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21237fi
21238
21239
21240JPEG_LINK=
21241if test "$wxUSE_LIBJPEG" != "no" ; then
21242 cat >>confdefs.h <<\_ACEOF
21243#define wxUSE_LIBJPEG 1
21244_ACEOF
21245
21246
21247 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21248 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21249echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21250 wxUSE_LIBJPEG=sys
21251 fi
21252
21253 if test "$wxUSE_MGL" != 1 ; then
21254 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21255 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21256echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21257 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259else
21260 cat >conftest.$ac_ext <<_ACEOF
21261/* confdefs.h. */
21262_ACEOF
21263cat confdefs.h >>conftest.$ac_ext
21264cat >>conftest.$ac_ext <<_ACEOF
21265/* end confdefs.h. */
21266
21267 #undef HAVE_STDLIB_H
21268 #include <stdio.h>
21269 #include <jpeglib.h>
21270
21271int
21272main ()
21273{
21274
21275
21276 ;
21277 return 0;
21278}
21279_ACEOF
21280rm -f conftest.$ac_objext
21281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21282 (eval $ac_compile) 2>conftest.er1
a848cd7e 21283 ac_status=$?
ac1cb8d3
VS
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
a848cd7e
SC
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
d51253e8 21289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; } &&
21295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 ac_cv_header_jpeglib_h=yes
21302else
21303 echo "$as_me: failed program was:" >&5
21304sed 's/^/| /' conftest.$ac_ext >&5
21305
21306ac_cv_header_jpeglib_h=no
21307
21308fi
ac1cb8d3 21309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21310
21311fi
21312
21313 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21314echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21315
21316 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21317 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21318echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21319if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21321else
21322 ac_check_lib_save_LIBS=$LIBS
21323LIBS="-ljpeg $LIBS"
21324cat >conftest.$ac_ext <<_ACEOF
21325/* confdefs.h. */
21326_ACEOF
21327cat confdefs.h >>conftest.$ac_ext
21328cat >>conftest.$ac_ext <<_ACEOF
21329/* end confdefs.h. */
21330
21331/* Override any gcc2 internal prototype to avoid an error. */
21332#ifdef __cplusplus
21333extern "C"
21334#endif
21335/* We use char because int might match the return type of a gcc2
21336 builtin and then its argument prototype would still apply. */
21337char jpeg_read_header ();
21338int
21339main ()
21340{
21341jpeg_read_header ();
21342 ;
21343 return 0;
21344}
21345_ACEOF
21346rm -f conftest.$ac_objext conftest$ac_exeext
21347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21348 (eval $ac_link) 2>conftest.er1
a848cd7e 21349 ac_status=$?
ac1cb8d3
VS
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
a848cd7e
SC
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
d51253e8 21355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_lib_jpeg_jpeg_read_header=yes
21368else
21369 echo "$as_me: failed program was:" >&5
21370sed 's/^/| /' conftest.$ac_ext >&5
21371
21372ac_cv_lib_jpeg_jpeg_read_header=no
21373fi
ac1cb8d3
VS
21374rm -f conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21376LIBS=$ac_check_lib_save_LIBS
21377fi
21378echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21379echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21380if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21381 JPEG_LINK=" -ljpeg"
21382fi
21383
21384 fi
21385
21386 if test "x$JPEG_LINK" = "x" ; then
21387 if test "$wxUSE_LIBJPEG" = "sys" ; then
21388 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21389echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21390 { (exit 1); exit 1; }; }
21391 else
21392 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21393echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21394 wxUSE_LIBJPEG=builtin
21395 fi
21396 else
21397 wxUSE_LIBJPEG=sys
21398 fi
21399 fi
21400 fi
21401fi
21402
21403
21404TIFF_LINK=
21405TIFF_PREREQ_LINKS=-lm
21406if test "$wxUSE_LIBTIFF" != "no" ; then
21407 cat >>confdefs.h <<\_ACEOF
21408#define wxUSE_LIBTIFF 1
21409_ACEOF
21410
21411
21412 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21413 if test "$wxUSE_LIBJPEG" = "sys"; then
21414 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21415 fi
21416 if test "$wxUSE_ZLIB" = "sys"; then
21417 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21418 fi
21419 if test "${ac_cv_header_tiffio_h+set}" = set; then
21420 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21421echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21422if test "${ac_cv_header_tiffio_h+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424fi
21425echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21426echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21427else
21428 # Is the header compilable?
21429echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21430echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21431cat >conftest.$ac_ext <<_ACEOF
21432/* confdefs.h. */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h. */
21437$ac_includes_default
21438#include <tiffio.h>
21439_ACEOF
21440rm -f conftest.$ac_objext
21441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21442 (eval $ac_compile) 2>conftest.er1
a848cd7e 21443 ac_status=$?
ac1cb8d3
VS
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
a848cd7e
SC
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
d51253e8 21449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
21461 ac_header_compiler=yes
21462else
21463 echo "$as_me: failed program was:" >&5
21464sed 's/^/| /' conftest.$ac_ext >&5
21465
21466ac_header_compiler=no
21467fi
ac1cb8d3 21468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21470echo "${ECHO_T}$ac_header_compiler" >&6
21471
21472# Is the header present?
21473echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21474echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21475cat >conftest.$ac_ext <<_ACEOF
21476/* confdefs.h. */
21477_ACEOF
21478cat confdefs.h >>conftest.$ac_ext
21479cat >>conftest.$ac_ext <<_ACEOF
21480/* end confdefs.h. */
21481#include <tiffio.h>
21482_ACEOF
21483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } >/dev/null; then
21491 if test -s conftest.err; then
21492 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21494 else
21495 ac_cpp_err=
21496 fi
21497else
21498 ac_cpp_err=yes
21499fi
21500if test -z "$ac_cpp_err"; then
21501 ac_header_preproc=yes
21502else
21503 echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_header_preproc=no
21507fi
21508rm -f conftest.err conftest.$ac_ext
21509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21510echo "${ECHO_T}$ac_header_preproc" >&6
21511
21512# So? What about this header?
ac1cb8d3
VS
21513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21514 yes:no: )
a848cd7e
SC
21515 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21516echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21517 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21518echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21519 ac_header_preproc=yes
a848cd7e 21520 ;;
ac1cb8d3 21521 no:yes:* )
a848cd7e
SC
21522 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21523echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21524 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21525echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21526 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21527echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21529echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21530 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21531echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21532 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21533echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21534 (
21535 cat <<\_ASBOX
ac1cb8d3
VS
21536## ----------------------------------------- ##
21537## Report this to wx-dev@lists.wxwidgets.org ##
21538## ----------------------------------------- ##
a848cd7e
SC
21539_ASBOX
21540 ) |
21541 sed "s/^/$as_me: WARNING: /" >&2
21542 ;;
21543esac
21544echo "$as_me:$LINENO: checking for tiffio.h" >&5
21545echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21546if test "${ac_cv_header_tiffio_h+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548else
21549 ac_cv_header_tiffio_h=$ac_header_preproc
21550fi
21551echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21552echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21553
21554fi
21555if test $ac_cv_header_tiffio_h = yes; then
21556
21557 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21558echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21559if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561else
21562 ac_check_lib_save_LIBS=$LIBS
21563LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21564cat >conftest.$ac_ext <<_ACEOF
21565/* confdefs.h. */
21566_ACEOF
21567cat confdefs.h >>conftest.$ac_ext
21568cat >>conftest.$ac_ext <<_ACEOF
21569/* end confdefs.h. */
21570
21571/* Override any gcc2 internal prototype to avoid an error. */
21572#ifdef __cplusplus
21573extern "C"
21574#endif
21575/* We use char because int might match the return type of a gcc2
21576 builtin and then its argument prototype would still apply. */
21577char TIFFError ();
21578int
21579main ()
21580{
21581TIFFError ();
21582 ;
21583 return 0;
21584}
21585_ACEOF
21586rm -f conftest.$ac_objext conftest$ac_exeext
21587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21588 (eval $ac_link) 2>conftest.er1
a848cd7e 21589 ac_status=$?
ac1cb8d3
VS
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
a848cd7e
SC
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } &&
d51253e8 21595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; } &&
21601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 ac_cv_lib_tiff_TIFFError=yes
21608else
21609 echo "$as_me: failed program was:" >&5
21610sed 's/^/| /' conftest.$ac_ext >&5
21611
21612ac_cv_lib_tiff_TIFFError=no
21613fi
ac1cb8d3
VS
21614rm -f conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21616LIBS=$ac_check_lib_save_LIBS
21617fi
21618echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21619echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21620if test $ac_cv_lib_tiff_TIFFError = yes; then
21621 TIFF_LINK=" -ltiff"
21622fi
21623
21624
21625
21626fi
21627
21628
21629
21630 if test "x$TIFF_LINK" = "x" ; then
21631 if test "$wxUSE_LIBTIFF" = "sys" ; then
21632 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21633echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21634 { (exit 1); exit 1; }; }
21635 else
21636 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21637echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21638 wxUSE_LIBTIFF=builtin
21639 fi
21640 else
21641 wxUSE_LIBTIFF=sys
21642 fi
21643 fi
21644fi
21645
21646
21647if test "$wxUSE_EXPAT" != "no"; then
21648 wxUSE_XML=yes
21649 cat >>confdefs.h <<\_ACEOF
21650#define wxUSE_EXPAT 1
21651_ACEOF
21652
21653 cat >>confdefs.h <<\_ACEOF
21654#define wxUSE_XML 1
21655_ACEOF
21656
21657
21658 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21659 if test "${ac_cv_header_expat_h+set}" = set; then
21660 echo "$as_me:$LINENO: checking for expat.h" >&5
21661echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21662if test "${ac_cv_header_expat_h+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21664fi
21665echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21666echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21667else
21668 # Is the header compilable?
21669echo "$as_me:$LINENO: checking expat.h usability" >&5
21670echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21671cat >conftest.$ac_ext <<_ACEOF
21672/* confdefs.h. */
21673_ACEOF
21674cat confdefs.h >>conftest.$ac_ext
21675cat >>conftest.$ac_ext <<_ACEOF
21676/* end confdefs.h. */
21677$ac_includes_default
21678#include <expat.h>
21679_ACEOF
21680rm -f conftest.$ac_objext
21681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21682 (eval $ac_compile) 2>conftest.er1
a848cd7e 21683 ac_status=$?
ac1cb8d3
VS
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
a848cd7e
SC
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
d51253e8 21689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ac_header_compiler=yes
21702else
21703 echo "$as_me: failed program was:" >&5
21704sed 's/^/| /' conftest.$ac_ext >&5
21705
21706ac_header_compiler=no
21707fi
ac1cb8d3 21708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21710echo "${ECHO_T}$ac_header_compiler" >&6
21711
21712# Is the header present?
21713echo "$as_me:$LINENO: checking expat.h presence" >&5
21714echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21715cat >conftest.$ac_ext <<_ACEOF
21716/* confdefs.h. */
21717_ACEOF
21718cat confdefs.h >>conftest.$ac_ext
21719cat >>conftest.$ac_ext <<_ACEOF
21720/* end confdefs.h. */
21721#include <expat.h>
21722_ACEOF
21723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } >/dev/null; then
21731 if test -s conftest.err; then
21732 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21734 else
21735 ac_cpp_err=
21736 fi
21737else
21738 ac_cpp_err=yes
21739fi
21740if test -z "$ac_cpp_err"; then
21741 ac_header_preproc=yes
21742else
21743 echo "$as_me: failed program was:" >&5
21744sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ac_header_preproc=no
21747fi
21748rm -f conftest.err conftest.$ac_ext
21749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750echo "${ECHO_T}$ac_header_preproc" >&6
21751
21752# So? What about this header?
ac1cb8d3
VS
21753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754 yes:no: )
a848cd7e
SC
21755 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21756echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21757 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21758echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21759 ac_header_preproc=yes
a848cd7e 21760 ;;
ac1cb8d3 21761 no:yes:* )
a848cd7e
SC
21762 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21763echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21764 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21765echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21767echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21769echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21770 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21771echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21772 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21773echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21774 (
21775 cat <<\_ASBOX
ac1cb8d3
VS
21776## ----------------------------------------- ##
21777## Report this to wx-dev@lists.wxwidgets.org ##
21778## ----------------------------------------- ##
a848cd7e
SC
21779_ASBOX
21780 ) |
21781 sed "s/^/$as_me: WARNING: /" >&2
21782 ;;
21783esac
21784echo "$as_me:$LINENO: checking for expat.h" >&5
21785echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21786if test "${ac_cv_header_expat_h+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788else
21789 ac_cv_header_expat_h=$ac_header_preproc
21790fi
21791echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21792echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21793
21794fi
21795if test $ac_cv_header_expat_h = yes; then
21796 found_expat_h=1
21797fi
21798
21799
21800 if test "x$found_expat_h" = "x1"; then
21801 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21802echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21803if test "${wx_cv_expat_is_not_broken+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21805else
21806
21807
21808
21809 ac_ext=cc
21810ac_cpp='$CXXCPP $CPPFLAGS'
21811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21814
21815 cat >conftest.$ac_ext <<_ACEOF
21816/* confdefs.h. */
21817_ACEOF
21818cat confdefs.h >>conftest.$ac_ext
21819cat >>conftest.$ac_ext <<_ACEOF
21820/* end confdefs.h. */
21821#include <expat.h>
21822int
21823main ()
21824{
21825
21826 ;
21827 return 0;
21828}
21829_ACEOF
21830rm -f conftest.$ac_objext
21831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21832 (eval $ac_compile) 2>conftest.er1
a848cd7e 21833 ac_status=$?
ac1cb8d3
VS
21834 grep -v '^ *+' conftest.er1 >conftest.err
21835 rm -f conftest.er1
21836 cat conftest.err >&5
a848cd7e
SC
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
d51253e8 21839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 wx_cv_expat_is_not_broken=yes
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
21856wx_cv_expat_is_not_broken=no
21857
21858fi
ac1cb8d3 21859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21860 ac_ext=c
21861ac_cpp='$CPP $CPPFLAGS'
21862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21864ac_compiler_gnu=$ac_cv_c_compiler_gnu
21865
21866
21867
21868fi
21869echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21870echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21871 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21872 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21873echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21874if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21876else
21877 ac_check_lib_save_LIBS=$LIBS
21878LIBS="-lexpat $LIBS"
21879cat >conftest.$ac_ext <<_ACEOF
21880/* confdefs.h. */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h. */
21885
21886/* Override any gcc2 internal prototype to avoid an error. */
21887#ifdef __cplusplus
21888extern "C"
21889#endif
21890/* We use char because int might match the return type of a gcc2
21891 builtin and then its argument prototype would still apply. */
21892char XML_ParserCreate ();
21893int
21894main ()
21895{
21896XML_ParserCreate ();
21897 ;
21898 return 0;
21899}
21900_ACEOF
21901rm -f conftest.$ac_objext conftest$ac_exeext
21902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21903 (eval $ac_link) 2>conftest.er1
a848cd7e 21904 ac_status=$?
ac1cb8d3
VS
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
a848cd7e
SC
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } &&
d51253e8 21910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; } &&
21916 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21919 ac_status=$?
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; }; then
21922 ac_cv_lib_expat_XML_ParserCreate=yes
21923else
21924 echo "$as_me: failed program was:" >&5
21925sed 's/^/| /' conftest.$ac_ext >&5
21926
21927ac_cv_lib_expat_XML_ParserCreate=no
21928fi
ac1cb8d3
VS
21929rm -f conftest.err conftest.$ac_objext \
21930 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21931LIBS=$ac_check_lib_save_LIBS
21932fi
21933echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21934echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21935if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21936 EXPAT_LINK=" -lexpat"
21937fi
21938
21939 fi
21940 fi
21941 if test "x$EXPAT_LINK" = "x" ; then
21942 if test "$wxUSE_EXPAT" = "sys" ; then
21943 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21944echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21945 { (exit 1); exit 1; }; }
21946 else
21947 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21948echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21949 wxUSE_EXPAT=builtin
21950 fi
21951 else
21952 wxUSE_EXPAT=sys
21953 fi
21954 fi
21955 if test "$wxUSE_EXPAT" = "builtin" ; then
21956
21957
21958subdirs="$subdirs src/expat"
21959
21960 fi
21961fi
21962
21963
21964
21965if test "$wxUSE_LIBMSPACK" != "no"; then
21966
21967 if test "${ac_cv_header_mspack_h+set}" = set; then
21968 echo "$as_me:$LINENO: checking for mspack.h" >&5
21969echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21970if test "${ac_cv_header_mspack_h+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21972fi
21973echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21974echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21975else
21976 # Is the header compilable?
21977echo "$as_me:$LINENO: checking mspack.h usability" >&5
21978echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21979cat >conftest.$ac_ext <<_ACEOF
21980/* confdefs.h. */
21981_ACEOF
21982cat confdefs.h >>conftest.$ac_ext
21983cat >>conftest.$ac_ext <<_ACEOF
21984/* end confdefs.h. */
21985$ac_includes_default
21986#include <mspack.h>
21987_ACEOF
21988rm -f conftest.$ac_objext
21989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21990 (eval $ac_compile) 2>conftest.er1
a848cd7e 21991 ac_status=$?
ac1cb8d3
VS
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
a848cd7e
SC
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
d51253e8 21997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22000 ac_status=$?
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; } &&
22003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; }; then
22009 ac_header_compiler=yes
22010else
22011 echo "$as_me: failed program was:" >&5
22012sed 's/^/| /' conftest.$ac_ext >&5
22013
22014ac_header_compiler=no
22015fi
ac1cb8d3 22016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22018echo "${ECHO_T}$ac_header_compiler" >&6
22019
22020# Is the header present?
22021echo "$as_me:$LINENO: checking mspack.h presence" >&5
22022echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22023cat >conftest.$ac_ext <<_ACEOF
22024/* confdefs.h. */
22025_ACEOF
22026cat confdefs.h >>conftest.$ac_ext
22027cat >>conftest.$ac_ext <<_ACEOF
22028/* end confdefs.h. */
22029#include <mspack.h>
22030_ACEOF
22031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22033 ac_status=$?
22034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } >/dev/null; then
22039 if test -s conftest.err; then
22040 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22042 else
22043 ac_cpp_err=
22044 fi
22045else
22046 ac_cpp_err=yes
22047fi
22048if test -z "$ac_cpp_err"; then
22049 ac_header_preproc=yes
22050else
22051 echo "$as_me: failed program was:" >&5
22052sed 's/^/| /' conftest.$ac_ext >&5
22053
22054 ac_header_preproc=no
22055fi
22056rm -f conftest.err conftest.$ac_ext
22057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22058echo "${ECHO_T}$ac_header_preproc" >&6
22059
22060# So? What about this header?
ac1cb8d3
VS
22061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22062 yes:no: )
a848cd7e
SC
22063 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22064echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22065 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22066echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22067 ac_header_preproc=yes
a848cd7e 22068 ;;
ac1cb8d3 22069 no:yes:* )
a848cd7e
SC
22070 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22071echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22072 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22073echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22075echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22076 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22077echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22078 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22079echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22080 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22081echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22082 (
22083 cat <<\_ASBOX
ac1cb8d3
VS
22084## ----------------------------------------- ##
22085## Report this to wx-dev@lists.wxwidgets.org ##
22086## ----------------------------------------- ##
a848cd7e
SC
22087_ASBOX
22088 ) |
22089 sed "s/^/$as_me: WARNING: /" >&2
22090 ;;
22091esac
22092echo "$as_me:$LINENO: checking for mspack.h" >&5
22093echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22094if test "${ac_cv_header_mspack_h+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096else
22097 ac_cv_header_mspack_h=$ac_header_preproc
22098fi
22099echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22100echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22101
22102fi
22103if test $ac_cv_header_mspack_h = yes; then
22104 found_mspack_h=1
22105fi
22106
22107
22108 if test "x$found_mspack_h" = "x1"; then
22109 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22110echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22111if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22112 echo $ECHO_N "(cached) $ECHO_C" >&6
22113else
22114 ac_check_lib_save_LIBS=$LIBS
22115LIBS="-lmspack $LIBS"
22116cat >conftest.$ac_ext <<_ACEOF
22117/* confdefs.h. */
22118_ACEOF
22119cat confdefs.h >>conftest.$ac_ext
22120cat >>conftest.$ac_ext <<_ACEOF
22121/* end confdefs.h. */
22122
22123/* Override any gcc2 internal prototype to avoid an error. */
22124#ifdef __cplusplus
22125extern "C"
22126#endif
22127/* We use char because int might match the return type of a gcc2
22128 builtin and then its argument prototype would still apply. */
22129char mspack_create_chm_decompressor ();
22130int
22131main ()
22132{
22133mspack_create_chm_decompressor ();
22134 ;
22135 return 0;
22136}
22137_ACEOF
22138rm -f conftest.$ac_objext conftest$ac_exeext
22139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22140 (eval $ac_link) 2>conftest.er1
a848cd7e 22141 ac_status=$?
ac1cb8d3
VS
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
a848cd7e
SC
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
d51253e8 22147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22160else
22161 echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22165fi
ac1cb8d3
VS
22166rm -f conftest.err conftest.$ac_objext \
22167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22168LIBS=$ac_check_lib_save_LIBS
22169fi
22170echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22171echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22172if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22173 MSPACK_LINK=" -lmspack"
22174fi
22175
22176 fi
22177 if test "x$MSPACK_LINK" = "x" ; then
22178 wxUSE_LIBMSPACK=no
22179 else
22180 cat >>confdefs.h <<\_ACEOF
22181#define wxUSE_LIBMSPACK 1
22182_ACEOF
22183
22184 fi
22185fi
22186
22187
22188
22189AFMINSTALL=
22190WIN32INSTALL=
22191
22192TOOLKIT=
22193TOOLKIT_INCLUDE=
22194WIDGET_SET=
22195
22196if test "$USE_WIN32" = 1 ; then
22197
22198for ac_header in w32api.h
22199do
22200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22201if eval "test \"\${$as_ac_Header+set}\" = set"; then
22202 echo "$as_me:$LINENO: checking for $ac_header" >&5
22203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22204if eval "test \"\${$as_ac_Header+set}\" = set"; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206fi
22207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22209else
22210 # Is the header compilable?
22211echo "$as_me:$LINENO: checking $ac_header usability" >&5
22212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22213cat >conftest.$ac_ext <<_ACEOF
22214/* confdefs.h. */
22215_ACEOF
22216cat confdefs.h >>conftest.$ac_ext
22217cat >>conftest.$ac_ext <<_ACEOF
22218/* end confdefs.h. */
22219$ac_includes_default
22220#include <$ac_header>
22221_ACEOF
22222rm -f conftest.$ac_objext
22223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22224 (eval $ac_compile) 2>conftest.er1
a848cd7e 22225 ac_status=$?
ac1cb8d3
VS
22226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
a848cd7e
SC
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } &&
d51253e8 22231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; } &&
22237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
22243 ac_header_compiler=yes
22244else
22245 echo "$as_me: failed program was:" >&5
22246sed 's/^/| /' conftest.$ac_ext >&5
22247
22248ac_header_compiler=no
22249fi
ac1cb8d3 22250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22252echo "${ECHO_T}$ac_header_compiler" >&6
22253
22254# Is the header present?
22255echo "$as_me:$LINENO: checking $ac_header presence" >&5
22256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22257cat >conftest.$ac_ext <<_ACEOF
22258/* confdefs.h. */
22259_ACEOF
22260cat confdefs.h >>conftest.$ac_ext
22261cat >>conftest.$ac_ext <<_ACEOF
22262/* end confdefs.h. */
22263#include <$ac_header>
22264_ACEOF
22265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22267 ac_status=$?
22268 grep -v '^ *+' conftest.er1 >conftest.err
22269 rm -f conftest.er1
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } >/dev/null; then
22273 if test -s conftest.err; then
22274 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22276 else
22277 ac_cpp_err=
22278 fi
22279else
22280 ac_cpp_err=yes
22281fi
22282if test -z "$ac_cpp_err"; then
22283 ac_header_preproc=yes
22284else
22285 echo "$as_me: failed program was:" >&5
22286sed 's/^/| /' conftest.$ac_ext >&5
22287
22288 ac_header_preproc=no
22289fi
22290rm -f conftest.err conftest.$ac_ext
22291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22292echo "${ECHO_T}$ac_header_preproc" >&6
22293
22294# So? What about this header?
ac1cb8d3
VS
22295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22296 yes:no: )
a848cd7e
SC
22297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22301 ac_header_preproc=yes
a848cd7e 22302 ;;
ac1cb8d3 22303 no:yes:* )
a848cd7e
SC
22304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22316 (
22317 cat <<\_ASBOX
ac1cb8d3
VS
22318## ----------------------------------------- ##
22319## Report this to wx-dev@lists.wxwidgets.org ##
22320## ----------------------------------------- ##
a848cd7e
SC
22321_ASBOX
22322 ) |
22323 sed "s/^/$as_me: WARNING: /" >&2
22324 ;;
22325esac
22326echo "$as_me:$LINENO: checking for $ac_header" >&5
22327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22328if eval "test \"\${$as_ac_Header+set}\" = set"; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22330else
ac1cb8d3 22331 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22332fi
22333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22335
22336fi
22337if test `eval echo '${'$as_ac_Header'}'` = yes; then
22338 cat >>confdefs.h <<_ACEOF
22339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22340_ACEOF
22341
22342fi
22343
22344done
22345
22346 if test "${ac_cv_header_windows_h+set}" = set; then
22347 echo "$as_me:$LINENO: checking for windows.h" >&5
22348echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22349if test "${ac_cv_header_windows_h+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351fi
22352echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22353echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22354else
22355 # Is the header compilable?
22356echo "$as_me:$LINENO: checking windows.h usability" >&5
22357echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22358cat >conftest.$ac_ext <<_ACEOF
22359/* confdefs.h. */
22360_ACEOF
22361cat confdefs.h >>conftest.$ac_ext
22362cat >>conftest.$ac_ext <<_ACEOF
22363/* end confdefs.h. */
22364$ac_includes_default
22365#include <windows.h>
22366_ACEOF
22367rm -f conftest.$ac_objext
22368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22369 (eval $ac_compile) 2>conftest.er1
a848cd7e 22370 ac_status=$?
ac1cb8d3
VS
22371 grep -v '^ *+' conftest.er1 >conftest.err
22372 rm -f conftest.er1
22373 cat conftest.err >&5
a848cd7e
SC
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } &&
d51253e8 22376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22379 ac_status=$?
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; } &&
22382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22388 ac_header_compiler=yes
22389else
22390 echo "$as_me: failed program was:" >&5
22391sed 's/^/| /' conftest.$ac_ext >&5
22392
22393ac_header_compiler=no
22394fi
ac1cb8d3 22395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22397echo "${ECHO_T}$ac_header_compiler" >&6
22398
22399# Is the header present?
22400echo "$as_me:$LINENO: checking windows.h presence" >&5
22401echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22402cat >conftest.$ac_ext <<_ACEOF
22403/* confdefs.h. */
22404_ACEOF
22405cat confdefs.h >>conftest.$ac_ext
22406cat >>conftest.$ac_ext <<_ACEOF
22407/* end confdefs.h. */
22408#include <windows.h>
22409_ACEOF
22410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } >/dev/null; then
22418 if test -s conftest.err; then
22419 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22421 else
22422 ac_cpp_err=
22423 fi
22424else
22425 ac_cpp_err=yes
22426fi
22427if test -z "$ac_cpp_err"; then
22428 ac_header_preproc=yes
22429else
22430 echo "$as_me: failed program was:" >&5
22431sed 's/^/| /' conftest.$ac_ext >&5
22432
22433 ac_header_preproc=no
22434fi
22435rm -f conftest.err conftest.$ac_ext
22436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22437echo "${ECHO_T}$ac_header_preproc" >&6
22438
22439# So? What about this header?
ac1cb8d3
VS
22440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22441 yes:no: )
a848cd7e
SC
22442 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22443echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22444 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22445echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22446 ac_header_preproc=yes
a848cd7e 22447 ;;
ac1cb8d3 22448 no:yes:* )
a848cd7e
SC
22449 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22450echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22451 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22452echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22453 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22454echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22455 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22456echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22457 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22458echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22459 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22460echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22461 (
22462 cat <<\_ASBOX
ac1cb8d3
VS
22463## ----------------------------------------- ##
22464## Report this to wx-dev@lists.wxwidgets.org ##
22465## ----------------------------------------- ##
a848cd7e
SC
22466_ASBOX
22467 ) |
22468 sed "s/^/$as_me: WARNING: /" >&2
22469 ;;
22470esac
22471echo "$as_me:$LINENO: checking for windows.h" >&5
22472echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22473if test "${ac_cv_header_windows_h+set}" = set; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22475else
22476 ac_cv_header_windows_h=$ac_header_preproc
22477fi
22478echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22479echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22480
22481fi
22482if test $ac_cv_header_windows_h = yes; then
22483 :
22484else
22485
22486 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22487echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22488 { (exit 1); exit 1; }; }
22489
22490fi
22491
22492
22493
22494 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22495
22496 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22497 LIBS="$LIBS -loleacc"
22498 fi
22499
22500 case "${host}" in
22501 *-*-cygwin* )
22502 LIBS="$LIBS -lkernel32 -luser32"
22503 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22504 esac
22505
22506 if test "$wxUSE_ODBC" = "sys" ; then
22507 wxUSE_ODBC = "yes"
22508 fi
22509 if test "$wxUSE_ODBC" = "yes" ; then
22510 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22511 cat >>confdefs.h <<\_ACEOF
22512#define wxUSE_ODBC 1
22513_ACEOF
22514
22515 fi
22516
22517 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22518 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22519
22520 WIN32INSTALL=win32install
22521fi
22522
22523if test "$wxUSE_GUI" = "yes"; then
22524 USE_GUI=1
22525
22526 GUI_TK_LIBRARY=
22527
22528 WXGTK12=
22529 WXGTK127=
22530 WXGTK20=
22531 WXGPE=
22532
207bc66c
RN
22533 if test "$wxUSE_COCOA" = 1 ; then
22534 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22535 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22536echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22537 wxUSE_PRINTING_ARCHITECTURE=no
22538 fi
22539 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22540 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22541echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22542 wxUSE_DRAG_AND_DROP=no
22543 fi
22544 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22545 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22546echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22547 wxUSE_DRAGIMAGE=no
22548 fi
22549 fi
22550
a848cd7e
SC
22551 if test "$wxUSE_MSW" = 1 ; then
22552 TOOLKIT=MSW
22553 GUIDIST=MSW_DIST
22554
ceec2216 22555 case "${host}" in
a848cd7e
SC
22556 *-*-mingw32* )
22557 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22558 esac
22559 fi
22560
22561 if test "$wxUSE_GTK" = 1; then
22562 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22563echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22564
22565 gtk_version_cached=1
22566 if test "${wx_cv_lib_gtk+set}" = set; then
22567 echo $ECHO_N "(cached) $ECHO_C" >&6
22568else
22569
22570 gtk_version_cached=0
22571 echo "$as_me:$LINENO: result: " >&5
22572echo "${ECHO_T}" >&6
22573
22574 GTK_MODULES=
22575 if test "$wxUSE_THREADS" = "yes"; then
22576 GTK_MODULES=gthread
22577 fi
22578
22579 wx_cv_lib_gtk=
22580 if test "x$wxUSE_GTK2" = "xyes"; then
22581 # Check whether --enable-gtktest or --disable-gtktest was given.
22582if test "${enable_gtktest+set}" = set; then
22583 enableval="$enable_gtktest"
22584
22585else
22586 enable_gtktest=yes
22587fi;
22588
22589 pkg_config_args=gtk+-2.0
22590 for module in . $GTK_MODULES
22591 do
22592 case "$module" in
22593 gthread)
22594 pkg_config_args="$pkg_config_args gthread-2.0"
22595 ;;
22596 esac
22597 done
22598
22599 no_gtk=""
22600
22601 # Extract the first word of "pkg-config", so it can be a program name with args.
22602set dummy pkg-config; ac_word=$2
22603echo "$as_me:$LINENO: checking for $ac_word" >&5
22604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22605if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22606 echo $ECHO_N "(cached) $ECHO_C" >&6
22607else
22608 case $PKG_CONFIG in
22609 [\\/]* | ?:[\\/]*)
22610 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22611 ;;
22612 *)
22613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22614for as_dir in $PATH
22615do
22616 IFS=$as_save_IFS
22617 test -z "$as_dir" && as_dir=.
22618 for ac_exec_ext in '' $ac_executable_extensions; do
22619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22620 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22622 break 2
22623 fi
22624done
22625done
22626
22627 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22628 ;;
22629esac
22630fi
22631PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22632
22633if test -n "$PKG_CONFIG"; then
22634 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22635echo "${ECHO_T}$PKG_CONFIG" >&6
22636else
22637 echo "$as_me:$LINENO: result: no" >&5
22638echo "${ECHO_T}no" >&6
22639fi
22640
22641
22642 if test x$PKG_CONFIG != xno ; then
22643 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22644 :
22645 else
c2218763 22646 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22647 no_gtk=yes
22648 PKG_CONFIG=no
22649 fi
22650 else
22651 no_gtk=yes
22652 fi
22653
22654 min_gtk_version=2.0.0
22655 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22656echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22657
22658 if test x$PKG_CONFIG != xno ; then
22659 ## don't try to run the test against uninstalled libtool libs
22660 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22661 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22662 enable_gtktest=no
22663 fi
22664
22665 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22666 :
22667 else
22668 no_gtk=yes
22669 fi
22670 fi
22671
22672 if test x"$no_gtk" = x ; then
22673 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22674 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22675 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22677 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22678 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22679 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22680 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22681 if test "x$enable_gtktest" = "xyes" ; then
22682 ac_save_CFLAGS="$CFLAGS"
22683 ac_save_LIBS="$LIBS"
22684 CFLAGS="$CFLAGS $GTK_CFLAGS"
22685 LIBS="$GTK_LIBS $LIBS"
22686 rm -f conf.gtktest
22687 if test "$cross_compiling" = yes; then
22688 echo $ac_n "cross compiling; assumed OK... $ac_c"
22689else
22690 cat >conftest.$ac_ext <<_ACEOF
22691/* confdefs.h. */
22692_ACEOF
22693cat confdefs.h >>conftest.$ac_ext
22694cat >>conftest.$ac_ext <<_ACEOF
22695/* end confdefs.h. */
22696
22697#include <gtk/gtk.h>
22698#include <stdio.h>
22699#include <stdlib.h>
22700
22701int
22702main ()
22703{
22704 int major, minor, micro;
22705 char *tmp_version;
22706
22707 system ("touch conf.gtktest");
22708
22709 /* HP/UX 9 (%@#!) writes to sscanf strings */
22710 tmp_version = g_strdup("$min_gtk_version");
22711 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22712 printf("%s, bad version string\n", "$min_gtk_version");
22713 exit(1);
22714 }
22715
22716 if ((gtk_major_version != $gtk_config_major_version) ||
22717 (gtk_minor_version != $gtk_config_minor_version) ||
22718 (gtk_micro_version != $gtk_config_micro_version))
22719 {
22720 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22721 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22722 gtk_major_version, gtk_minor_version, gtk_micro_version);
22723 printf ("*** was found! If pkg-config was correct, then it is best\n");
22724 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22725 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22726 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22727 printf("*** required on your system.\n");
22728 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22729 printf("*** to point to the correct configuration files\n");
22730 }
22731 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22732 (gtk_minor_version != GTK_MINOR_VERSION) ||
22733 (gtk_micro_version != GTK_MICRO_VERSION))
22734 {
22735 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22736 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22737 printf("*** library (version %d.%d.%d)\n",
22738 gtk_major_version, gtk_minor_version, gtk_micro_version);
22739 }
22740 else
22741 {
22742 if ((gtk_major_version > major) ||
22743 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22744 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22745 {
22746 return 0;
22747 }
22748 else
22749 {
22750 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22751 gtk_major_version, gtk_minor_version, gtk_micro_version);
22752 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22753 major, minor, micro);
22754 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22755 printf("***\n");
22756 printf("*** If you have already installed a sufficiently new version, this error\n");
22757 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22758 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22759 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22760 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22761 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22762 printf("*** so that the correct libraries are found at run-time))\n");
22763 }
22764 }
22765 return 1;
22766}
22767
22768_ACEOF
22769rm -f conftest$ac_exeext
22770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22771 (eval $ac_link) 2>&5
22772 ac_status=$?
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; }; then
22780 :
22781else
22782 echo "$as_me: program exited with status $ac_status" >&5
22783echo "$as_me: failed program was:" >&5
22784sed 's/^/| /' conftest.$ac_ext >&5
22785
22786( exit $ac_status )
22787no_gtk=yes
22788fi
ac1cb8d3 22789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22790fi
22791 CFLAGS="$ac_save_CFLAGS"
22792 LIBS="$ac_save_LIBS"
22793 fi
22794 fi
22795 if test "x$no_gtk" = x ; then
22796 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22797echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22798 wx_cv_lib_gtk=2.0
22799 else
22800 echo "$as_me:$LINENO: result: no" >&5
22801echo "${ECHO_T}no" >&6
22802 if test "$PKG_CONFIG" = "no" ; then
22803 echo "*** A new enough version of pkg-config was not found."
22804 echo "*** See http://pkgconfig.sourceforge.net"
22805 else
22806 if test -f conf.gtktest ; then
22807 :
22808 else
22809 echo "*** Could not run GTK+ test program, checking why..."
22810 ac_save_CFLAGS="$CFLAGS"
22811 ac_save_LIBS="$LIBS"
22812 CFLAGS="$CFLAGS $GTK_CFLAGS"
22813 LIBS="$LIBS $GTK_LIBS"
22814 cat >conftest.$ac_ext <<_ACEOF
22815/* confdefs.h. */
22816_ACEOF
22817cat confdefs.h >>conftest.$ac_ext
22818cat >>conftest.$ac_ext <<_ACEOF
22819/* end confdefs.h. */
22820
22821#include <gtk/gtk.h>
22822#include <stdio.h>
22823
22824int
22825main ()
22826{
22827 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22828 ;
22829 return 0;
22830}
22831_ACEOF
22832rm -f conftest.$ac_objext conftest$ac_exeext
22833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22834 (eval $ac_link) 2>conftest.er1
a848cd7e 22835 ac_status=$?
ac1cb8d3
VS
22836 grep -v '^ *+' conftest.er1 >conftest.err
22837 rm -f conftest.er1
22838 cat conftest.err >&5
a848cd7e
SC
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } &&
d51253e8 22841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 echo "*** The test program compiled, but did not run. This usually means"
22854 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22855 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22856 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22857 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22858 echo "*** is required on your system"
22859 echo "***"
22860 echo "*** If you have an old version installed, it is best to remove it, although"
22861 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22862else
22863 echo "$as_me: failed program was:" >&5
22864sed 's/^/| /' conftest.$ac_ext >&5
22865
22866 echo "*** The test program failed to compile or link. See the file config.log for the"
22867 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22868fi
ac1cb8d3
VS
22869rm -f conftest.err conftest.$ac_objext \
22870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22871 CFLAGS="$ac_save_CFLAGS"
22872 LIBS="$ac_save_LIBS"
22873 fi
22874 fi
22875 GTK_CFLAGS=""
22876 GTK_LIBS=""
22877 :
22878 fi
22879
22880
22881 rm -f conf.gtktest
22882
22883 else
22884
22885# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22886if test "${with_gtk_prefix+set}" = set; then
22887 withval="$with_gtk_prefix"
22888 gtk_config_prefix="$withval"
22889else
22890 gtk_config_prefix=""
22891fi;
22892
22893# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22894if test "${with_gtk_exec_prefix+set}" = set; then
22895 withval="$with_gtk_exec_prefix"
22896 gtk_config_exec_prefix="$withval"
22897else
22898 gtk_config_exec_prefix=""
22899fi;
22900# Check whether --enable-gtktest or --disable-gtktest was given.
22901if test "${enable_gtktest+set}" = set; then
22902 enableval="$enable_gtktest"
22903
22904else
22905 enable_gtktest=yes
22906fi;
22907
22908 for module in . $GTK_MODULES
22909 do
22910 case "$module" in
22911 gthread)
22912 gtk_config_args="$gtk_config_args gthread"
22913 ;;
22914 esac
22915 done
22916
22917 if test x$gtk_config_exec_prefix != x ; then
22918 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22919 if test x${GTK_CONFIG+set} != xset ; then
22920 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22921 fi
22922 fi
22923 if test x$gtk_config_prefix != x ; then
22924 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22925 if test x${GTK_CONFIG+set} != xset ; then
22926 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22927 fi
22928 fi
22929
22930 # Extract the first word of "gtk-config", so it can be a program name with args.
22931set dummy gtk-config; ac_word=$2
22932echo "$as_me:$LINENO: checking for $ac_word" >&5
22933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22934if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22936else
22937 case $GTK_CONFIG in
22938 [\\/]* | ?:[\\/]*)
22939 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22940 ;;
22941 *)
22942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22943for as_dir in $PATH
22944do
22945 IFS=$as_save_IFS
22946 test -z "$as_dir" && as_dir=.
22947 for ac_exec_ext in '' $ac_executable_extensions; do
22948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22949 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22951 break 2
22952 fi
22953done
22954done
22955
22956 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22957 ;;
22958esac
22959fi
22960GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22961
22962if test -n "$GTK_CONFIG"; then
22963 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22964echo "${ECHO_T}$GTK_CONFIG" >&6
22965else
22966 echo "$as_me:$LINENO: result: no" >&5
22967echo "${ECHO_T}no" >&6
22968fi
22969
22970 min_gtk_version=1.2.7
22971 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22972echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22973 no_gtk=""
22974 if test "$GTK_CONFIG" = "no" ; then
22975 no_gtk=yes
22976 else
22977 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22978 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22979 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22981 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22983 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22985 if test "x$enable_gtktest" = "xyes" ; then
22986 ac_save_CFLAGS="$CFLAGS"
22987 ac_save_LIBS="$LIBS"
22988 CFLAGS="$CFLAGS $GTK_CFLAGS"
22989 LIBS="$GTK_LIBS $LIBS"
22990 rm -f conf.gtktest
22991 if test "$cross_compiling" = yes; then
22992 echo $ac_n "cross compiling; assumed OK... $ac_c"
22993else
22994 cat >conftest.$ac_ext <<_ACEOF
22995/* confdefs.h. */
22996_ACEOF
22997cat confdefs.h >>conftest.$ac_ext
22998cat >>conftest.$ac_ext <<_ACEOF
22999/* end confdefs.h. */
23000
23001#include <gtk/gtk.h>
23002#include <stdio.h>
23003#include <stdlib.h>
23004
23005int
23006main ()
23007{
23008 int major, minor, micro;
23009 char *tmp_version;
23010
23011 system ("touch conf.gtktest");
23012
23013 /* HP/UX 9 (%@#!) writes to sscanf strings */
23014 tmp_version = g_strdup("$min_gtk_version");
23015 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23016 printf("%s, bad version string\n", "$min_gtk_version");
23017 exit(1);
23018 }
23019
23020 if ((gtk_major_version != $gtk_config_major_version) ||
23021 (gtk_minor_version != $gtk_config_minor_version) ||
23022 (gtk_micro_version != $gtk_config_micro_version))
23023 {
23024 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23025 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23026 gtk_major_version, gtk_minor_version, gtk_micro_version);
23027 printf ("*** was found! If gtk-config was correct, then it is best\n");
23028 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23029 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23030 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23031 printf("*** required on your system.\n");
23032 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23033 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23034 printf("*** before re-running configure\n");
23035 }
23036#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23037 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23038 (gtk_minor_version != GTK_MINOR_VERSION) ||
23039 (gtk_micro_version != GTK_MICRO_VERSION))
23040 {
23041 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23042 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23043 printf("*** library (version %d.%d.%d)\n",
23044 gtk_major_version, gtk_minor_version, gtk_micro_version);
23045 }
23046#endif /* defined (GTK_MAJOR_VERSION) ... */
23047 else
23048 {
23049 if ((gtk_major_version > major) ||
23050 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23051 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23052 {
23053 return 0;
23054 }
23055 else
23056 {
23057 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23058 gtk_major_version, gtk_minor_version, gtk_micro_version);
23059 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23060 major, minor, micro);
23061 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23062 printf("***\n");
23063 printf("*** If you have already installed a sufficiently new version, this error\n");
23064 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23065 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23066 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23067 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23068 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23069 printf("*** so that the correct libraries are found at run-time))\n");
23070 }
23071 }
23072 return 1;
23073}
23074
23075_ACEOF
23076rm -f conftest$ac_exeext
23077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23078 (eval $ac_link) 2>&5
23079 ac_status=$?
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23084 ac_status=$?
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 :
23088else
23089 echo "$as_me: program exited with status $ac_status" >&5
23090echo "$as_me: failed program was:" >&5
23091sed 's/^/| /' conftest.$ac_ext >&5
23092
23093( exit $ac_status )
23094no_gtk=yes
23095fi
ac1cb8d3 23096rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23097fi
23098 CFLAGS="$ac_save_CFLAGS"
23099 LIBS="$ac_save_LIBS"
23100 fi
23101 fi
23102 if test "x$no_gtk" = x ; then
23103 echo "$as_me:$LINENO: result: yes" >&5
23104echo "${ECHO_T}yes" >&6
23105 wx_cv_lib_gtk=1.2.7
23106 else
23107 echo "$as_me:$LINENO: result: no" >&5
23108echo "${ECHO_T}no" >&6
23109 if test "$GTK_CONFIG" = "no" ; then
23110 echo "*** The gtk-config script installed by GTK could not be found"
23111 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23112 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23113 echo "*** full path to gtk-config."
23114 else
23115 if test -f conf.gtktest ; then
23116 :
23117 else
23118 echo "*** Could not run GTK test program, checking why..."
23119 CFLAGS="$CFLAGS $GTK_CFLAGS"
23120 LIBS="$LIBS $GTK_LIBS"
23121 cat >conftest.$ac_ext <<_ACEOF
23122/* confdefs.h. */
23123_ACEOF
23124cat confdefs.h >>conftest.$ac_ext
23125cat >>conftest.$ac_ext <<_ACEOF
23126/* end confdefs.h. */
23127
23128#include <gtk/gtk.h>
23129#include <stdio.h>
23130
23131int
23132main ()
23133{
23134 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23135 ;
23136 return 0;
23137}
23138_ACEOF
23139rm -f conftest.$ac_objext conftest$ac_exeext
23140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23141 (eval $ac_link) 2>conftest.er1
a848cd7e 23142 ac_status=$?
ac1cb8d3
VS
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
a848cd7e
SC
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } &&
d51253e8 23148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; }; then
23160 echo "*** The test program compiled, but did not run. This usually means"
23161 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23162 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23163 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23164 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23165 echo "*** is required on your system"
23166 echo "***"
23167 echo "*** If you have an old version installed, it is best to remove it, although"
23168 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23169 echo "***"
23170 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23171 echo "*** came with the system with the command"
23172 echo "***"
23173 echo "*** rpm --erase --nodeps gtk gtk-devel"
23174else
23175 echo "$as_me: failed program was:" >&5
23176sed 's/^/| /' conftest.$ac_ext >&5
23177
23178 echo "*** The test program failed to compile or link. See the file config.log for the"
23179 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23180 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23181 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23182fi
ac1cb8d3
VS
23183rm -f conftest.err conftest.$ac_objext \
23184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23185 CFLAGS="$ac_save_CFLAGS"
23186 LIBS="$ac_save_LIBS"
23187 fi
23188 fi
23189 GTK_CFLAGS=""
23190 GTK_LIBS=""
23191 :
23192 fi
23193
23194
23195 rm -f conf.gtktest
23196
23197
23198 if test -z "$wx_cv_lib_gtk"; then
23199
23200# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23201if test "${with_gtk_prefix+set}" = set; then
23202 withval="$with_gtk_prefix"
23203 gtk_config_prefix="$withval"
23204else
23205 gtk_config_prefix=""
23206fi;
23207
23208# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23209if test "${with_gtk_exec_prefix+set}" = set; then
23210 withval="$with_gtk_exec_prefix"
23211 gtk_config_exec_prefix="$withval"
23212else
23213 gtk_config_exec_prefix=""
23214fi;
23215# Check whether --enable-gtktest or --disable-gtktest was given.
23216if test "${enable_gtktest+set}" = set; then
23217 enableval="$enable_gtktest"
23218
23219else
23220 enable_gtktest=yes
23221fi;
23222
23223 for module in . $GTK_MODULES
23224 do
23225 case "$module" in
23226 gthread)
23227 gtk_config_args="$gtk_config_args gthread"
23228 ;;
23229 esac
23230 done
23231
23232 if test x$gtk_config_exec_prefix != x ; then
23233 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23234 if test x${GTK_CONFIG+set} != xset ; then
23235 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23236 fi
23237 fi
23238 if test x$gtk_config_prefix != x ; then
23239 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23240 if test x${GTK_CONFIG+set} != xset ; then
23241 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23242 fi
23243 fi
23244
23245 # Extract the first word of "gtk-config", so it can be a program name with args.
23246set dummy gtk-config; ac_word=$2
23247echo "$as_me:$LINENO: checking for $ac_word" >&5
23248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23249if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23251else
23252 case $GTK_CONFIG in
23253 [\\/]* | ?:[\\/]*)
23254 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23255 ;;
23256 *)
23257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23258for as_dir in $PATH
23259do
23260 IFS=$as_save_IFS
23261 test -z "$as_dir" && as_dir=.
23262 for ac_exec_ext in '' $ac_executable_extensions; do
23263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23264 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23266 break 2
23267 fi
23268done
23269done
23270
23271 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23272 ;;
23273esac
23274fi
23275GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23276
23277if test -n "$GTK_CONFIG"; then
23278 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23279echo "${ECHO_T}$GTK_CONFIG" >&6
23280else
23281 echo "$as_me:$LINENO: result: no" >&5
23282echo "${ECHO_T}no" >&6
23283fi
23284
23285 min_gtk_version=1.2.3
23286 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23287echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23288 no_gtk=""
23289 if test "$GTK_CONFIG" = "no" ; then
23290 no_gtk=yes
23291 else
23292 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23293 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23294 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23295 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23296 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23297 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23298 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23299 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23300 if test "x$enable_gtktest" = "xyes" ; then
23301 ac_save_CFLAGS="$CFLAGS"
23302 ac_save_LIBS="$LIBS"
23303 CFLAGS="$CFLAGS $GTK_CFLAGS"
23304 LIBS="$GTK_LIBS $LIBS"
23305 rm -f conf.gtktest
23306 if test "$cross_compiling" = yes; then
23307 echo $ac_n "cross compiling; assumed OK... $ac_c"
23308else
23309 cat >conftest.$ac_ext <<_ACEOF
23310/* confdefs.h. */
23311_ACEOF
23312cat confdefs.h >>conftest.$ac_ext
23313cat >>conftest.$ac_ext <<_ACEOF
23314/* end confdefs.h. */
23315
23316#include <gtk/gtk.h>
23317#include <stdio.h>
23318#include <stdlib.h>
23319
23320int
23321main ()
23322{
23323 int major, minor, micro;
23324 char *tmp_version;
23325
23326 system ("touch conf.gtktest");
23327
23328 /* HP/UX 9 (%@#!) writes to sscanf strings */
23329 tmp_version = g_strdup("$min_gtk_version");
23330 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23331 printf("%s, bad version string\n", "$min_gtk_version");
23332 exit(1);
23333 }
23334
23335 if ((gtk_major_version != $gtk_config_major_version) ||
23336 (gtk_minor_version != $gtk_config_minor_version) ||
23337 (gtk_micro_version != $gtk_config_micro_version))
23338 {
23339 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23340 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23341 gtk_major_version, gtk_minor_version, gtk_micro_version);
23342 printf ("*** was found! If gtk-config was correct, then it is best\n");
23343 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23344 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23345 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23346 printf("*** required on your system.\n");
23347 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23348 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23349 printf("*** before re-running configure\n");
23350 }
23351#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23352 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23353 (gtk_minor_version != GTK_MINOR_VERSION) ||
23354 (gtk_micro_version != GTK_MICRO_VERSION))
23355 {
23356 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23357 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23358 printf("*** library (version %d.%d.%d)\n",
23359 gtk_major_version, gtk_minor_version, gtk_micro_version);
23360 }
23361#endif /* defined (GTK_MAJOR_VERSION) ... */
23362 else
23363 {
23364 if ((gtk_major_version > major) ||
23365 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23366 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23367 {
23368 return 0;
23369 }
23370 else
23371 {
23372 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23373 gtk_major_version, gtk_minor_version, gtk_micro_version);
23374 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23375 major, minor, micro);
23376 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23377 printf("***\n");
23378 printf("*** If you have already installed a sufficiently new version, this error\n");
23379 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23380 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23381 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23382 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23383 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23384 printf("*** so that the correct libraries are found at run-time))\n");
23385 }
23386 }
23387 return 1;
23388}
23389
23390_ACEOF
23391rm -f conftest$ac_exeext
23392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23393 (eval $ac_link) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 :
23403else
23404 echo "$as_me: program exited with status $ac_status" >&5
23405echo "$as_me: failed program was:" >&5
23406sed 's/^/| /' conftest.$ac_ext >&5
23407
23408( exit $ac_status )
23409no_gtk=yes
23410fi
ac1cb8d3 23411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23412fi
23413 CFLAGS="$ac_save_CFLAGS"
23414 LIBS="$ac_save_LIBS"
23415 fi
23416 fi
23417 if test "x$no_gtk" = x ; then
23418 echo "$as_me:$LINENO: result: yes" >&5
23419echo "${ECHO_T}yes" >&6
23420 wx_cv_lib_gtk=1.2.3
23421 else
23422 echo "$as_me:$LINENO: result: no" >&5
23423echo "${ECHO_T}no" >&6
23424 if test "$GTK_CONFIG" = "no" ; then
23425 echo "*** The gtk-config script installed by GTK could not be found"
23426 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23427 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23428 echo "*** full path to gtk-config."
23429 else
23430 if test -f conf.gtktest ; then
23431 :
23432 else
23433 echo "*** Could not run GTK test program, checking why..."
23434 CFLAGS="$CFLAGS $GTK_CFLAGS"
23435 LIBS="$LIBS $GTK_LIBS"
23436 cat >conftest.$ac_ext <<_ACEOF
23437/* confdefs.h. */
23438_ACEOF
23439cat confdefs.h >>conftest.$ac_ext
23440cat >>conftest.$ac_ext <<_ACEOF
23441/* end confdefs.h. */
23442
23443#include <gtk/gtk.h>
23444#include <stdio.h>
23445
23446int
23447main ()
23448{
23449 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23450 ;
23451 return 0;
23452}
23453_ACEOF
23454rm -f conftest.$ac_objext conftest$ac_exeext
23455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23456 (eval $ac_link) 2>conftest.er1
a848cd7e 23457 ac_status=$?
ac1cb8d3
VS
23458 grep -v '^ *+' conftest.er1 >conftest.err
23459 rm -f conftest.er1
23460 cat conftest.err >&5
a848cd7e
SC
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } &&
d51253e8 23463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23465 (eval $ac_try) 2>&5
23466 ac_status=$?
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); }; } &&
23469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471 (eval $ac_try) 2>&5
23472 ac_status=$?
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 echo "*** The test program compiled, but did not run. This usually means"
23476 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23477 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23478 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23479 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23480 echo "*** is required on your system"
23481 echo "***"
23482 echo "*** If you have an old version installed, it is best to remove it, although"
23483 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23484 echo "***"
23485 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23486 echo "*** came with the system with the command"
23487 echo "***"
23488 echo "*** rpm --erase --nodeps gtk gtk-devel"
23489else
23490 echo "$as_me: failed program was:" >&5
23491sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 echo "*** The test program failed to compile or link. See the file config.log for the"
23494 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23495 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23496 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23497fi
ac1cb8d3
VS
23498rm -f conftest.err conftest.$ac_objext \
23499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23500 CFLAGS="$ac_save_CFLAGS"
23501 LIBS="$ac_save_LIBS"
23502 fi
23503 fi
23504 GTK_CFLAGS=""
23505 GTK_LIBS=""
23506 :
23507 fi
23508
23509
23510 rm -f conf.gtktest
23511
23512 fi
23513 fi
23514
23515 if test -z "$wx_cv_lib_gtk"; then
23516 wx_cv_lib_gtk=none
23517 else
23518 wx_cv_cflags_gtk=$GTK_CFLAGS
23519 wx_cv_libs_gtk=$GTK_LIBS
23520 fi
23521
23522
23523fi
23524
23525
23526 if test "$gtk_version_cached" = 1; then
23527 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23528echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23529 fi
23530
23531 case "$wx_cv_lib_gtk" in
23532 2.0) WXGTK20=1
23533 TOOLKIT_VERSION=2
23534 ;;
23535 1.2.7) WXGTK127=1
23536 WXGTK12=1
23537 ;;
23538 1.2.3) WXGTK12=1
23539 ;;
23540 *) { { echo "$as_me:$LINENO: error:
23541Please check that gtk-config is in path, the directory
23542where GTK+ libraries are installed (returned by
23543'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23544equivalent variable and GTK+ is version 1.2.3 or above.
23545 " >&5
23546echo "$as_me: error:
23547Please check that gtk-config is in path, the directory
23548where GTK+ libraries are installed (returned by
23549'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23550equivalent variable and GTK+ is version 1.2.3 or above.
23551 " >&2;}
23552 { (exit 1); exit 1; }; }
23553 ;;
23554 esac
23555
23556 if test "$WXGTK20" = 1; then
304205f1
VS
23557 save_CFLAGS="$CFLAGS"
23558 save_LIBS="$LIBS"
23559 CFLAGS="$CFLAGS $GTK_CFLAGS"
23560 LIBS="$LIBS $GTK_LIBS"
23561
23562for ac_func in pango_font_family_is_monospace
23563do
23564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23565echo "$as_me:$LINENO: checking for $ac_func" >&5
23566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23567if eval "test \"\${$as_ac_var+set}\" = set"; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569else
23570 cat >conftest.$ac_ext <<_ACEOF
23571/* confdefs.h. */
23572_ACEOF
23573cat confdefs.h >>conftest.$ac_ext
23574cat >>conftest.$ac_ext <<_ACEOF
23575/* end confdefs.h. */
23576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23578#define $ac_func innocuous_$ac_func
23579
23580/* System header to define __stub macros and hopefully few prototypes,
23581 which can conflict with char $ac_func (); below.
23582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23583 <limits.h> exists even on freestanding compilers. */
23584
23585#ifdef __STDC__
23586# include <limits.h>
23587#else
23588# include <assert.h>
23589#endif
23590
23591#undef $ac_func
23592
23593/* Override any gcc2 internal prototype to avoid an error. */
23594#ifdef __cplusplus
23595extern "C"
23596{
23597#endif
23598/* We use char because int might match the return type of a gcc2
23599 builtin and then its argument prototype would still apply. */
23600char $ac_func ();
23601/* The GNU C library defines this for functions which it implements
23602 to always fail with ENOSYS. Some functions are actually named
23603 something starting with __ and the normal name is an alias. */
23604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23605choke me
23606#else
23607char (*f) () = $ac_func;
23608#endif
23609#ifdef __cplusplus
23610}
23611#endif
23612
23613int
23614main ()
23615{
23616return f != $ac_func;
23617 ;
23618 return 0;
23619}
23620_ACEOF
23621rm -f conftest.$ac_objext conftest$ac_exeext
23622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23623 (eval $ac_link) 2>conftest.er1
23624 ac_status=$?
23625 grep -v '^ *+' conftest.er1 >conftest.err
23626 rm -f conftest.er1
23627 cat conftest.err >&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } &&
d51253e8 23630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632 (eval $ac_try) 2>&5
23633 ac_status=$?
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; } &&
23636 { ac_try='test -s conftest$ac_exeext'
23637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); }; }; then
23642 eval "$as_ac_var=yes"
23643else
23644 echo "$as_me: failed program was:" >&5
23645sed 's/^/| /' conftest.$ac_ext >&5
23646
23647eval "$as_ac_var=no"
23648fi
23649rm -f conftest.err conftest.$ac_objext \
23650 conftest$ac_exeext conftest.$ac_ext
23651fi
23652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23654if test `eval echo '${'$as_ac_var'}'` = yes; then
23655 cat >>confdefs.h <<_ACEOF
23656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23657_ACEOF
23658
23659fi
23660done
23661
23662 CFLAGS="$save_CFLAGS"
23663 LIBS="$save_LIBS"
a848cd7e
SC
23664 else
23665 if test "$wxUSE_UNICODE" = "yes"; then
23666 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23667echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23668 wxUSE_UNICODE=no
23669 fi
23670 fi
23671
23672 if test "$USE_DARWIN" != 1; then
23673
23674for ac_func in poll
23675do
23676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23677echo "$as_me:$LINENO: checking for $ac_func" >&5
23678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23679if eval "test \"\${$as_ac_var+set}\" = set"; then
23680 echo $ECHO_N "(cached) $ECHO_C" >&6
23681else
23682 cat >conftest.$ac_ext <<_ACEOF
23683/* confdefs.h. */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h. */
ac1cb8d3
VS
23688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23690#define $ac_func innocuous_$ac_func
23691
a848cd7e
SC
23692/* System header to define __stub macros and hopefully few prototypes,
23693 which can conflict with char $ac_func (); below.
23694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23695 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23696
a848cd7e
SC
23697#ifdef __STDC__
23698# include <limits.h>
23699#else
23700# include <assert.h>
23701#endif
ac1cb8d3
VS
23702
23703#undef $ac_func
23704
a848cd7e
SC
23705/* Override any gcc2 internal prototype to avoid an error. */
23706#ifdef __cplusplus
23707extern "C"
23708{
23709#endif
23710/* We use char because int might match the return type of a gcc2
23711 builtin and then its argument prototype would still apply. */
23712char $ac_func ();
23713/* The GNU C library defines this for functions which it implements
23714 to always fail with ENOSYS. Some functions are actually named
23715 something starting with __ and the normal name is an alias. */
23716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23717choke me
23718#else
23719char (*f) () = $ac_func;
23720#endif
23721#ifdef __cplusplus
23722}
23723#endif
23724
23725int
23726main ()
23727{
23728return f != $ac_func;
23729 ;
23730 return 0;
23731}
23732_ACEOF
23733rm -f conftest.$ac_objext conftest$ac_exeext
23734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23735 (eval $ac_link) 2>conftest.er1
a848cd7e 23736 ac_status=$?
ac1cb8d3
VS
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
a848cd7e
SC
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } &&
d51253e8 23742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744 (eval $ac_try) 2>&5
23745 ac_status=$?
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); }; } &&
23748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750 (eval $ac_try) 2>&5
23751 ac_status=$?
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); }; }; then
23754 eval "$as_ac_var=yes"
23755else
23756 echo "$as_me: failed program was:" >&5
23757sed 's/^/| /' conftest.$ac_ext >&5
23758
23759eval "$as_ac_var=no"
23760fi
ac1cb8d3
VS
23761rm -f conftest.err conftest.$ac_objext \
23762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23763fi
23764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23765echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23766if test `eval echo '${'$as_ac_var'}'` = yes; then
23767 cat >>confdefs.h <<_ACEOF
23768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23769_ACEOF
23770
23771fi
23772done
23773
23774 fi
23775
23776 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23777 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23778
23779 AFMINSTALL=afminstall
23780 TOOLKIT=GTK
23781 GUIDIST=GTK_DIST
23782
23783 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23784echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23785if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23787else
23788 ac_check_lib_save_LIBS=$LIBS
23789LIBS="-lgdk $LIBS"
23790cat >conftest.$ac_ext <<_ACEOF
23791/* confdefs.h. */
23792_ACEOF
23793cat confdefs.h >>conftest.$ac_ext
23794cat >>conftest.$ac_ext <<_ACEOF
23795/* end confdefs.h. */
23796
23797/* Override any gcc2 internal prototype to avoid an error. */
23798#ifdef __cplusplus
23799extern "C"
23800#endif
23801/* We use char because int might match the return type of a gcc2
23802 builtin and then its argument prototype would still apply. */
23803char gdk_im_open ();
23804int
23805main ()
23806{
23807gdk_im_open ();
23808 ;
23809 return 0;
23810}
23811_ACEOF
23812rm -f conftest.$ac_objext conftest$ac_exeext
23813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23814 (eval $ac_link) 2>conftest.er1
a848cd7e 23815 ac_status=$?
ac1cb8d3
VS
23816 grep -v '^ *+' conftest.er1 >conftest.err
23817 rm -f conftest.er1
23818 cat conftest.err >&5
a848cd7e
SC
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } &&
d51253e8 23821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; } &&
23827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; }; then
23833 ac_cv_lib_gdk_gdk_im_open=yes
23834else
23835 echo "$as_me: failed program was:" >&5
23836sed 's/^/| /' conftest.$ac_ext >&5
23837
23838ac_cv_lib_gdk_gdk_im_open=no
23839fi
ac1cb8d3
VS
23840rm -f conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23842LIBS=$ac_check_lib_save_LIBS
23843fi
23844echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23845echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23846if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23847 cat >>confdefs.h <<\_ACEOF
23848#define HAVE_XIM 1
23849_ACEOF
23850
23851fi
23852
23853
23854
23855 if test "$wxUSE_GPE" = "yes"; then
23856 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23857echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23858
23859ac_find_libraries=
23860for ac_dir in $SEARCH_LIB /usr/lib;
23861 do
23862 for ac_extension in a so sl dylib; do
23863 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23864 ac_find_libraries=$ac_dir
23865 break 2
23866 fi
23867 done
23868 done
23869
23870 if test "$ac_find_libraries" != "" ; then
23871
23872 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23873 result=$?
23874 if test $result = 0; then
23875 ac_path_to_link=""
23876 else
23877 ac_path_to_link=" -L$ac_find_libraries"
23878 fi
23879
23880 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23881 WXGPE=1
23882 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23883echo "${ECHO_T}found at $ac_find_libraries" >&6
23884 else
23885 echo "$as_me:$LINENO: result: not found" >&5
23886echo "${ECHO_T}not found" >&6
23887 fi
23888
23889 fi
23890 fi
23891
23892 if test "$wxUSE_MGL" = 1; then
23893 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23894echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23895 if test "x$MGL_ROOT" = x ; then
23896 echo "$as_me:$LINENO: result: not found" >&5
23897echo "${ECHO_T}not found" >&6
23898 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23899echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23900 { (exit 1); exit 1; }; }
23901 else
23902 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23903echo "${ECHO_T}$MGL_ROOT" >&6
23904 fi
23905
23906 echo "$as_me:$LINENO: checking for libmgl location" >&5
23907echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23908 case "${host}" in
23909 *-*-linux* )
23910 if test "x$wxUSE_SHARED" = xyes ; then
23911 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23912 else
23913 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23914 fi
23915 ;;
23916 *-pc-msdosdjgpp )
23917 mgl_os_candidates="dos32/dj2"
23918 ;;
23919 *)
23920 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23921echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23922 { (exit 1); exit 1; }; }
23923 esac
23924
23925 mgl_lib_type=""
23926 mgl_os=""
23927
23928 for mgl_os_i in $mgl_os_candidates ; do
23929 if test "x$mgl_os" = x ; then
23930 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23931 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23932 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23933 mgl_lib_type=debug
23934 mgl_os=$mgl_os_i
23935 fi
23936 fi
23937 if test "x$mgl_lib_type" = x ; then
23938 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23939 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23940 mgl_lib_type=release
23941 mgl_os=$mgl_os_i
23942 fi
23943 fi
23944 fi
23945 done
23946
23947 if test "x$mgl_os" = x ; then
23948 echo "$as_me:$LINENO: result: not found" >&5
23949echo "${ECHO_T}not found" >&6
23950 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23951echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23952 { (exit 1); exit 1; }; }
23953 fi
23954 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23955echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23956
23957 wxUSE_UNIVERSAL="yes"
23958
23959 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23960 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23961
23962 AFMINSTALL=afminstall
23963 TOOLKIT=MGL
23964 GUIDIST=MGL_DIST
23965 fi
23966
23967 if test "$wxUSE_MICROWIN" = 1; then
23968 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23969echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23970 if test "x$MICROWINDOWS" = x ; then
23971 echo "$as_me:$LINENO: result: not found" >&5
23972echo "${ECHO_T}not found" >&6
23973 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23974echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23975 { (exit 1); exit 1; }; }
23976 else
23977 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23978echo "${ECHO_T}$MICROWINDOWS" >&6
23979 fi
23980
23981 if test -f $MICROWINDOWS/lib/libmwin.a; then
23982 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23983echo "${ECHO_T}MicroWindows' libraries found." >&6
23984 else
23985 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23986echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23987 { (exit 1); exit 1; }; }
23988 fi
23989
23990 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23991 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23992
23993 wxUSE_UNIVERSAL="yes"
23994
23995 AFMINSTALL=afminstall
23996 TOOLKIT=MICROWIN
23997 GUIDIST=MICROWIN_DIST
23998
23999 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24000 fi
24001
74b84332 24002 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
d51253e8
RL
24003
24004if test "x$ac_path_x_has_been_run" != xyes; then
24005 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24006echo $ECHO_N "checking for X... $ECHO_C" >&6
24007
d51253e8 24008ac_path_x_has_been_run=yes
a848cd7e
SC
24009
24010# Check whether --with-x or --without-x was given.
24011if test "${with_x+set}" = set; then
24012 withval="$with_x"
24013
24014fi;
24015# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24016if test "x$with_x" = xno; then
24017 # The user explicitly disabled X.
24018 have_x=disabled
24019else
24020 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24021 # Both variables are already set.
24022 have_x=yes
24023 else
24024 if test "${ac_cv_have_x+set}" = set; then
24025 echo $ECHO_N "(cached) $ECHO_C" >&6
24026else
24027 # One or both of the vars are not set, and there is no cached value.
24028ac_x_includes=no ac_x_libraries=no
24029rm -fr conftest.dir
24030if mkdir conftest.dir; then
24031 cd conftest.dir
24032 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24033 cat >Imakefile <<'_ACEOF'
24034acfindx:
24035 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24036_ACEOF
24037 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24038 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24039 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24040 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24041 for ac_extension in a so sl; do
24042 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24043 test -f $ac_im_libdir/libX11.$ac_extension; then
24044 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24045 fi
24046 done
24047 # Screen out bogus values from the imake configuration. They are
24048 # bogus both because they are the default anyway, and because
24049 # using them would break gcc on systems where it needs fixed includes.
24050 case $ac_im_incroot in
24051 /usr/include) ;;
24052 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24053 esac
24054 case $ac_im_usrlibdir in
24055 /usr/lib | /lib) ;;
24056 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24057 esac
24058 fi
24059 cd ..
24060 rm -fr conftest.dir
24061fi
24062
24063# Standard set of common directories for X headers.
24064# Check X11 before X11Rn because it is often a symlink to the current release.
24065ac_x_header_dirs='
24066/usr/X11/include
24067/usr/X11R6/include
24068/usr/X11R5/include
24069/usr/X11R4/include
24070
24071/usr/include/X11
24072/usr/include/X11R6
24073/usr/include/X11R5
24074/usr/include/X11R4
24075
24076/usr/local/X11/include
24077/usr/local/X11R6/include
24078/usr/local/X11R5/include
24079/usr/local/X11R4/include
24080
24081/usr/local/include/X11
24082/usr/local/include/X11R6
24083/usr/local/include/X11R5
24084/usr/local/include/X11R4
24085
24086/usr/X386/include
24087/usr/x386/include
24088/usr/XFree86/include/X11
24089
24090/usr/include
24091/usr/local/include
24092/usr/unsupported/include
24093/usr/athena/include
24094/usr/local/x11r5/include
24095/usr/lpp/Xamples/include
24096
24097/usr/openwin/include
24098/usr/openwin/share/include'
24099
24100if test "$ac_x_includes" = no; then
d51253e8 24101 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24102 # First, try using that file with no special directory specified.
24103 cat >conftest.$ac_ext <<_ACEOF
24104/* confdefs.h. */
24105_ACEOF
24106cat confdefs.h >>conftest.$ac_ext
24107cat >>conftest.$ac_ext <<_ACEOF
24108/* end confdefs.h. */
24109#include <X11/Intrinsic.h>
24110_ACEOF
24111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24113 ac_status=$?
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } >/dev/null; then
24119 if test -s conftest.err; then
24120 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24122 else
24123 ac_cpp_err=
24124 fi
24125else
24126 ac_cpp_err=yes
24127fi
24128if test -z "$ac_cpp_err"; then
24129 # We can compile using X headers with no special include directory.
24130ac_x_includes=
24131else
24132 echo "$as_me: failed program was:" >&5
24133sed 's/^/| /' conftest.$ac_ext >&5
24134
24135 for ac_dir in $ac_x_header_dirs; do
24136 if test -r "$ac_dir/X11/Intrinsic.h"; then
24137 ac_x_includes=$ac_dir
24138 break
24139 fi
24140done
24141fi
24142rm -f conftest.err conftest.$ac_ext
24143fi # $ac_x_includes = no
24144
24145if test "$ac_x_libraries" = no; then
24146 # Check for the libraries.
24147 # See if we find them without any special options.
24148 # Don't add to $LIBS permanently.
24149 ac_save_LIBS=$LIBS
24150 LIBS="-lXt $LIBS"
24151 cat >conftest.$ac_ext <<_ACEOF
24152/* confdefs.h. */
24153_ACEOF
24154cat confdefs.h >>conftest.$ac_ext
24155cat >>conftest.$ac_ext <<_ACEOF
24156/* end confdefs.h. */
24157#include <X11/Intrinsic.h>
24158int
24159main ()
24160{
24161XtMalloc (0)
24162 ;
24163 return 0;
24164}
24165_ACEOF
24166rm -f conftest.$ac_objext conftest$ac_exeext
24167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24168 (eval $ac_link) 2>conftest.er1
a848cd7e 24169 ac_status=$?
ac1cb8d3
VS
24170 grep -v '^ *+' conftest.er1 >conftest.err
24171 rm -f conftest.er1
24172 cat conftest.err >&5
a848cd7e
SC
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } &&
d51253e8 24175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; } &&
24181 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); }; }; then
24187 LIBS=$ac_save_LIBS
24188# We can link X programs with no special library path.
24189ac_x_libraries=
24190else
24191 echo "$as_me: failed program was:" >&5
24192sed 's/^/| /' conftest.$ac_ext >&5
24193
24194LIBS=$ac_save_LIBS
24195for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24196do
24197 # Don't even attempt the hair of trying to link an X program!
24198 for ac_extension in a so sl; do
24199 if test -r $ac_dir/libXt.$ac_extension; then
24200 ac_x_libraries=$ac_dir
24201 break 2
24202 fi
24203 done
24204done
24205fi
ac1cb8d3
VS
24206rm -f conftest.err conftest.$ac_objext \
24207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24208fi # $ac_x_libraries = no
24209
24210if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24211 # Didn't find X anywhere. Cache the known absence of X.
24212 ac_cv_have_x="have_x=no"
24213else
24214 # Record where we found X for the cache.
24215 ac_cv_have_x="have_x=yes \
ac1cb8d3 24216 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24217fi
24218fi
24219
24220 fi
24221 eval "$ac_cv_have_x"
24222fi # $with_x != no
24223
24224if test "$have_x" != yes; then
24225 echo "$as_me:$LINENO: result: $have_x" >&5
24226echo "${ECHO_T}$have_x" >&6
24227 no_x=yes
24228else
24229 # If each of the values was on the command line, it overrides each guess.
24230 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24231 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24232 # Update the cache value to reflect the command line values.
24233 ac_cv_have_x="have_x=yes \
24234 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
d51253e8
RL
24235 # It might be that x_includes is empty (headers are found in the
24236 # standard search path. Then output the corresponding message
24237 ac_out_x_includes=$x_includes
24238 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24239 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24240echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24241fi
24242
d51253e8 24243fi
a848cd7e
SC
24244if test "$no_x" = yes; then
24245 # Not all programs may use this symbol, but it does not hurt to define it.
24246
24247cat >>confdefs.h <<\_ACEOF
24248#define X_DISPLAY_MISSING 1
24249_ACEOF
24250
24251 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24252else
24253 if test -n "$x_includes"; then
24254 X_CFLAGS="$X_CFLAGS -I$x_includes"
24255 fi
24256
24257 # It would also be nice to do this for all -L options, not just this one.
24258 if test -n "$x_libraries"; then
24259 X_LIBS="$X_LIBS -L$x_libraries"
24260 # For Solaris; some versions of Sun CC require a space after -R and
24261 # others require no space. Words are not sufficient . . . .
24262 case `(uname -sr) 2>/dev/null` in
24263 "SunOS 5"*)
24264 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24265echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24266 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24267 cat >conftest.$ac_ext <<_ACEOF
24268/* confdefs.h. */
24269_ACEOF
24270cat confdefs.h >>conftest.$ac_ext
24271cat >>conftest.$ac_ext <<_ACEOF
24272/* end confdefs.h. */
24273
24274int
24275main ()
24276{
24277
24278 ;
24279 return 0;
24280}
24281_ACEOF
24282rm -f conftest.$ac_objext conftest$ac_exeext
24283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24284 (eval $ac_link) 2>conftest.er1
a848cd7e 24285 ac_status=$?
ac1cb8d3
VS
24286 grep -v '^ *+' conftest.er1 >conftest.err
24287 rm -f conftest.er1
24288 cat conftest.err >&5
a848cd7e
SC
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } &&
d51253e8 24291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24293 (eval $ac_try) 2>&5
24294 ac_status=$?
24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296 (exit $ac_status); }; } &&
24297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
24303 ac_R_nospace=yes
24304else
24305 echo "$as_me: failed program was:" >&5
24306sed 's/^/| /' conftest.$ac_ext >&5
24307
24308ac_R_nospace=no
24309fi
ac1cb8d3
VS
24310rm -f conftest.err conftest.$ac_objext \
24311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24312 if test $ac_R_nospace = yes; then
24313 echo "$as_me:$LINENO: result: no" >&5
24314echo "${ECHO_T}no" >&6
24315 X_LIBS="$X_LIBS -R$x_libraries"
24316 else
24317 LIBS="$ac_xsave_LIBS -R $x_libraries"
24318 cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h. */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h. */
24324
24325int
24326main ()
24327{
24328
24329 ;
24330 return 0;
24331}
24332_ACEOF
24333rm -f conftest.$ac_objext conftest$ac_exeext
24334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24335 (eval $ac_link) 2>conftest.er1
a848cd7e 24336 ac_status=$?
ac1cb8d3
VS
24337 grep -v '^ *+' conftest.er1 >conftest.err
24338 rm -f conftest.er1
24339 cat conftest.err >&5
a848cd7e
SC
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } &&
d51253e8 24342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344 (eval $ac_try) 2>&5
24345 ac_status=$?
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; } &&
24348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24350 (eval $ac_try) 2>&5
24351 ac_status=$?
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); }; }; then
24354 ac_R_space=yes
24355else
24356 echo "$as_me: failed program was:" >&5
24357sed 's/^/| /' conftest.$ac_ext >&5
24358
24359ac_R_space=no
24360fi
ac1cb8d3
VS
24361rm -f conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24363 if test $ac_R_space = yes; then
24364 echo "$as_me:$LINENO: result: yes" >&5
24365echo "${ECHO_T}yes" >&6
24366 X_LIBS="$X_LIBS -R $x_libraries"
24367 else
24368 echo "$as_me:$LINENO: result: neither works" >&5
24369echo "${ECHO_T}neither works" >&6
24370 fi
24371 fi
24372 LIBS=$ac_xsave_LIBS
24373 esac
24374 fi
24375
24376 # Check for system-dependent libraries X programs must link with.
24377 # Do this before checking for the system-independent R6 libraries
24378 # (-lICE), since we may need -lsocket or whatever for X linking.
24379
24380 if test "$ISC" = yes; then
24381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24382 else
24383 # Martyn Johnson says this is needed for Ultrix, if the X
24384 # libraries were built with DECnet support. And Karl Berry says
24385 # the Alpha needs dnet_stub (dnet does not exist).
24386 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24387 cat >conftest.$ac_ext <<_ACEOF
24388/* confdefs.h. */
24389_ACEOF
24390cat confdefs.h >>conftest.$ac_ext
24391cat >>conftest.$ac_ext <<_ACEOF
24392/* end confdefs.h. */
24393
24394/* Override any gcc2 internal prototype to avoid an error. */
24395#ifdef __cplusplus
24396extern "C"
24397#endif
24398/* We use char because int might match the return type of a gcc2
24399 builtin and then its argument prototype would still apply. */
24400char XOpenDisplay ();
24401int
24402main ()
24403{
24404XOpenDisplay ();
24405 ;
24406 return 0;
24407}
24408_ACEOF
24409rm -f conftest.$ac_objext conftest$ac_exeext
24410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24411 (eval $ac_link) 2>conftest.er1
a848cd7e 24412 ac_status=$?
ac1cb8d3
VS
24413 grep -v '^ *+' conftest.er1 >conftest.err
24414 rm -f conftest.er1
24415 cat conftest.err >&5
a848cd7e
SC
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); } &&
d51253e8 24418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24420 (eval $ac_try) 2>&5
24421 ac_status=$?
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; } &&
24424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; }; then
24430 :
24431else
24432 echo "$as_me: failed program was:" >&5
24433sed 's/^/| /' conftest.$ac_ext >&5
24434
24435echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24436echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24437if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24438 echo $ECHO_N "(cached) $ECHO_C" >&6
24439else
24440 ac_check_lib_save_LIBS=$LIBS
24441LIBS="-ldnet $LIBS"
24442cat >conftest.$ac_ext <<_ACEOF
24443/* confdefs.h. */
24444_ACEOF
24445cat confdefs.h >>conftest.$ac_ext
24446cat >>conftest.$ac_ext <<_ACEOF
24447/* end confdefs.h. */
24448
24449/* Override any gcc2 internal prototype to avoid an error. */
24450#ifdef __cplusplus
24451extern "C"
24452#endif
24453/* We use char because int might match the return type of a gcc2
24454 builtin and then its argument prototype would still apply. */
24455char dnet_ntoa ();
24456int
24457main ()
24458{
24459dnet_ntoa ();
24460 ;
24461 return 0;
24462}
24463_ACEOF
24464rm -f conftest.$ac_objext conftest$ac_exeext
24465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24466 (eval $ac_link) 2>conftest.er1
a848cd7e 24467 ac_status=$?
ac1cb8d3
VS
24468 grep -v '^ *+' conftest.er1 >conftest.err
24469 rm -f conftest.er1
24470 cat conftest.err >&5
a848cd7e
SC
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); } &&
d51253e8 24473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); }; } &&
24479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); }; }; then
24485 ac_cv_lib_dnet_dnet_ntoa=yes
24486else
24487 echo "$as_me: failed program was:" >&5
24488sed 's/^/| /' conftest.$ac_ext >&5
24489
24490ac_cv_lib_dnet_dnet_ntoa=no
24491fi
ac1cb8d3
VS
24492rm -f conftest.err conftest.$ac_objext \
24493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24494LIBS=$ac_check_lib_save_LIBS
24495fi
24496echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24497echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24498if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24499 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24500fi
24501
24502 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24503 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24504echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24505if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24507else
24508 ac_check_lib_save_LIBS=$LIBS
24509LIBS="-ldnet_stub $LIBS"
24510cat >conftest.$ac_ext <<_ACEOF
24511/* confdefs.h. */
24512_ACEOF
24513cat confdefs.h >>conftest.$ac_ext
24514cat >>conftest.$ac_ext <<_ACEOF
24515/* end confdefs.h. */
24516
24517/* Override any gcc2 internal prototype to avoid an error. */
24518#ifdef __cplusplus
24519extern "C"
24520#endif
24521/* We use char because int might match the return type of a gcc2
24522 builtin and then its argument prototype would still apply. */
24523char dnet_ntoa ();
24524int
24525main ()
24526{
24527dnet_ntoa ();
24528 ;
24529 return 0;
24530}
24531_ACEOF
24532rm -f conftest.$ac_objext conftest$ac_exeext
24533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24534 (eval $ac_link) 2>conftest.er1
a848cd7e 24535 ac_status=$?
ac1cb8d3
VS
24536 grep -v '^ *+' conftest.er1 >conftest.err
24537 rm -f conftest.er1
24538 cat conftest.err >&5
a848cd7e
SC
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); } &&
d51253e8 24541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; } &&
24547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24550 ac_status=$?
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; }; then
24553 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24554else
24555 echo "$as_me: failed program was:" >&5
24556sed 's/^/| /' conftest.$ac_ext >&5
24557
24558ac_cv_lib_dnet_stub_dnet_ntoa=no
24559fi
ac1cb8d3
VS
24560rm -f conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24562LIBS=$ac_check_lib_save_LIBS
24563fi
24564echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24565echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24566if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24567 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24568fi
24569
24570 fi
24571fi
ac1cb8d3
VS
24572rm -f conftest.err conftest.$ac_objext \
24573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24574 LIBS="$ac_xsave_LIBS"
24575
24576 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24577 # to get the SysV transport functions.
24578 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24579 # needs -lnsl.
24580 # The nsl library prevents programs from opening the X display
24581 # on Irix 5.2, according to T.E. Dickey.
24582 # The functions gethostbyname, getservbyname, and inet_addr are
24583 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24584 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24585echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24586if test "${ac_cv_func_gethostbyname+set}" = set; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24588else
24589 cat >conftest.$ac_ext <<_ACEOF
24590/* confdefs.h. */
24591_ACEOF
24592cat confdefs.h >>conftest.$ac_ext
24593cat >>conftest.$ac_ext <<_ACEOF
24594/* end confdefs.h. */
ac1cb8d3
VS
24595/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24597#define gethostbyname innocuous_gethostbyname
24598
a848cd7e
SC
24599/* System header to define __stub macros and hopefully few prototypes,
24600 which can conflict with char gethostbyname (); below.
24601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24603
a848cd7e
SC
24604#ifdef __STDC__
24605# include <limits.h>
24606#else
24607# include <assert.h>
24608#endif
ac1cb8d3
VS
24609
24610#undef gethostbyname
24611
a848cd7e
SC
24612/* Override any gcc2 internal prototype to avoid an error. */
24613#ifdef __cplusplus
24614extern "C"
24615{
24616#endif
24617/* We use char because int might match the return type of a gcc2
24618 builtin and then its argument prototype would still apply. */
24619char gethostbyname ();
24620/* The GNU C library defines this for functions which it implements
24621 to always fail with ENOSYS. Some functions are actually named
24622 something starting with __ and the normal name is an alias. */
24623#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24624choke me
24625#else
24626char (*f) () = gethostbyname;
24627#endif
24628#ifdef __cplusplus
24629}
24630#endif
24631
24632int
24633main ()
24634{
24635return f != gethostbyname;
24636 ;
24637 return 0;
24638}
24639_ACEOF
24640rm -f conftest.$ac_objext conftest$ac_exeext
24641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24642 (eval $ac_link) 2>conftest.er1
a848cd7e 24643 ac_status=$?
ac1cb8d3
VS
24644 grep -v '^ *+' conftest.er1 >conftest.err
24645 rm -f conftest.er1
24646 cat conftest.err >&5
a848cd7e
SC
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); } &&
d51253e8 24649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; } &&
24655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24657 (eval $ac_try) 2>&5
24658 ac_status=$?
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; }; then
24661 ac_cv_func_gethostbyname=yes
24662else
24663 echo "$as_me: failed program was:" >&5
24664sed 's/^/| /' conftest.$ac_ext >&5
24665
24666ac_cv_func_gethostbyname=no
24667fi
ac1cb8d3
VS
24668rm -f conftest.err conftest.$ac_objext \
24669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24670fi
24671echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24672echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24673
24674 if test $ac_cv_func_gethostbyname = no; then
24675 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24676echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24677if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24679else
24680 ac_check_lib_save_LIBS=$LIBS
24681LIBS="-lnsl $LIBS"
24682cat >conftest.$ac_ext <<_ACEOF
24683/* confdefs.h. */
24684_ACEOF
24685cat confdefs.h >>conftest.$ac_ext
24686cat >>conftest.$ac_ext <<_ACEOF
24687/* end confdefs.h. */
24688
24689/* Override any gcc2 internal prototype to avoid an error. */
24690#ifdef __cplusplus
24691extern "C"
24692#endif
24693/* We use char because int might match the return type of a gcc2
24694 builtin and then its argument prototype would still apply. */
24695char gethostbyname ();
24696int
24697main ()
24698{
24699gethostbyname ();
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
VS
24706 (eval $ac_link) 2>conftest.er1
24707 ac_status=$?
24708 grep -v '^ *+' conftest.er1 >conftest.err
24709 rm -f conftest.er1
24710 cat conftest.err >&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
d51253e8 24713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; } &&
24719 { ac_try='test -s conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24722 ac_status=$?
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 ac_cv_lib_nsl_gethostbyname=yes
24726else
24727 echo "$as_me: failed program was:" >&5
24728sed 's/^/| /' conftest.$ac_ext >&5
24729
24730ac_cv_lib_nsl_gethostbyname=no
24731fi
24732rm -f conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
24734LIBS=$ac_check_lib_save_LIBS
24735fi
24736echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24737echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24738if test $ac_cv_lib_nsl_gethostbyname = yes; then
24739 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24740fi
24741
24742 if test $ac_cv_lib_nsl_gethostbyname = no; then
24743 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24744echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24745if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24747else
24748 ac_check_lib_save_LIBS=$LIBS
24749LIBS="-lbsd $LIBS"
24750cat >conftest.$ac_ext <<_ACEOF
24751/* confdefs.h. */
24752_ACEOF
24753cat confdefs.h >>conftest.$ac_ext
24754cat >>conftest.$ac_ext <<_ACEOF
24755/* end confdefs.h. */
24756
24757/* Override any gcc2 internal prototype to avoid an error. */
24758#ifdef __cplusplus
24759extern "C"
24760#endif
24761/* We use char because int might match the return type of a gcc2
24762 builtin and then its argument prototype would still apply. */
24763char gethostbyname ();
24764int
24765main ()
24766{
24767gethostbyname ();
24768 ;
24769 return 0;
24770}
24771_ACEOF
24772rm -f conftest.$ac_objext conftest$ac_exeext
24773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24774 (eval $ac_link) 2>conftest.er1
a848cd7e 24775 ac_status=$?
ac1cb8d3
VS
24776 grep -v '^ *+' conftest.er1 >conftest.err
24777 rm -f conftest.er1
24778 cat conftest.err >&5
a848cd7e
SC
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } &&
d51253e8 24781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783 (eval $ac_try) 2>&5
24784 ac_status=$?
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24786 (exit $ac_status); }; } &&
24787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789 (eval $ac_try) 2>&5
24790 ac_status=$?
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); }; }; then
24793 ac_cv_lib_bsd_gethostbyname=yes
24794else
24795 echo "$as_me: failed program was:" >&5
24796sed 's/^/| /' conftest.$ac_ext >&5
24797
24798ac_cv_lib_bsd_gethostbyname=no
24799fi
ac1cb8d3
VS
24800rm -f conftest.err conftest.$ac_objext \
24801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24802LIBS=$ac_check_lib_save_LIBS
24803fi
24804echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24805echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24806if test $ac_cv_lib_bsd_gethostbyname = yes; then
24807 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24808fi
24809
24810 fi
24811 fi
24812
24813 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24814 # socket/setsockopt and other routines are undefined under SCO ODT
24815 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24816 # on later versions), says Simon Leinen: it contains gethostby*
24817 # variants that don't use the name server (or something). -lsocket
24818 # must be given before -lnsl if both are needed. We assume that
24819 # if connect needs -lnsl, so does gethostbyname.
24820 echo "$as_me:$LINENO: checking for connect" >&5
24821echo $ECHO_N "checking for connect... $ECHO_C" >&6
24822if test "${ac_cv_func_connect+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24824else
24825 cat >conftest.$ac_ext <<_ACEOF
24826/* confdefs.h. */
24827_ACEOF
24828cat confdefs.h >>conftest.$ac_ext
24829cat >>conftest.$ac_ext <<_ACEOF
24830/* end confdefs.h. */
ac1cb8d3
VS
24831/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24833#define connect innocuous_connect
24834
a848cd7e
SC
24835/* System header to define __stub macros and hopefully few prototypes,
24836 which can conflict with char connect (); below.
24837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24839
a848cd7e
SC
24840#ifdef __STDC__
24841# include <limits.h>
24842#else
24843# include <assert.h>
24844#endif
ac1cb8d3
VS
24845
24846#undef connect
24847
a848cd7e
SC
24848/* Override any gcc2 internal prototype to avoid an error. */
24849#ifdef __cplusplus
24850extern "C"
24851{
24852#endif
24853/* We use char because int might match the return type of a gcc2
24854 builtin and then its argument prototype would still apply. */
24855char connect ();
24856/* The GNU C library defines this for functions which it implements
24857 to always fail with ENOSYS. Some functions are actually named
24858 something starting with __ and the normal name is an alias. */
24859#if defined (__stub_connect) || defined (__stub___connect)
24860choke me
24861#else
24862char (*f) () = connect;
24863#endif
24864#ifdef __cplusplus
24865}
24866#endif
24867
24868int
24869main ()
24870{
24871return f != connect;
24872 ;
24873 return 0;
24874}
24875_ACEOF
24876rm -f conftest.$ac_objext conftest$ac_exeext
24877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24878 (eval $ac_link) 2>conftest.er1
a848cd7e 24879 ac_status=$?
ac1cb8d3
VS
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
a848cd7e
SC
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } &&
d51253e8 24885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 ac_cv_func_connect=yes
24898else
24899 echo "$as_me: failed program was:" >&5
24900sed 's/^/| /' conftest.$ac_ext >&5
24901
24902ac_cv_func_connect=no
24903fi
ac1cb8d3
VS
24904rm -f conftest.err conftest.$ac_objext \
24905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24906fi
24907echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24908echo "${ECHO_T}$ac_cv_func_connect" >&6
24909
24910 if test $ac_cv_func_connect = no; then
24911 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24912echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24913if test "${ac_cv_lib_socket_connect+set}" = set; then
24914 echo $ECHO_N "(cached) $ECHO_C" >&6
24915else
24916 ac_check_lib_save_LIBS=$LIBS
24917LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24918cat >conftest.$ac_ext <<_ACEOF
24919/* confdefs.h. */
24920_ACEOF
24921cat confdefs.h >>conftest.$ac_ext
24922cat >>conftest.$ac_ext <<_ACEOF
24923/* end confdefs.h. */
24924
24925/* Override any gcc2 internal prototype to avoid an error. */
24926#ifdef __cplusplus
24927extern "C"
24928#endif
24929/* We use char because int might match the return type of a gcc2
24930 builtin and then its argument prototype would still apply. */
24931char connect ();
24932int
24933main ()
24934{
24935connect ();
24936 ;
24937 return 0;
24938}
24939_ACEOF
24940rm -f conftest.$ac_objext conftest$ac_exeext
24941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24942 (eval $ac_link) 2>conftest.er1
a848cd7e 24943 ac_status=$?
ac1cb8d3
VS
24944 grep -v '^ *+' conftest.er1 >conftest.err
24945 rm -f conftest.er1
24946 cat conftest.err >&5
a848cd7e
SC
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } &&
d51253e8 24949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24958 ac_status=$?
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ac_cv_lib_socket_connect=yes
24962else
24963 echo "$as_me: failed program was:" >&5
24964sed 's/^/| /' conftest.$ac_ext >&5
24965
24966ac_cv_lib_socket_connect=no
24967fi
ac1cb8d3
VS
24968rm -f conftest.err conftest.$ac_objext \
24969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24970LIBS=$ac_check_lib_save_LIBS
24971fi
24972echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24973echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24974if test $ac_cv_lib_socket_connect = yes; then
24975 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24976fi
24977
24978 fi
24979
24980 # Guillermo Gomez says -lposix is necessary on A/UX.
24981 echo "$as_me:$LINENO: checking for remove" >&5
24982echo $ECHO_N "checking for remove... $ECHO_C" >&6
24983if test "${ac_cv_func_remove+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24985else
24986 cat >conftest.$ac_ext <<_ACEOF
24987/* confdefs.h. */
24988_ACEOF
24989cat confdefs.h >>conftest.$ac_ext
24990cat >>conftest.$ac_ext <<_ACEOF
24991/* end confdefs.h. */
ac1cb8d3
VS
24992/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24994#define remove innocuous_remove
24995
a848cd7e
SC
24996/* System header to define __stub macros and hopefully few prototypes,
24997 which can conflict with char remove (); below.
24998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24999 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25000
a848cd7e
SC
25001#ifdef __STDC__
25002# include <limits.h>
25003#else
25004# include <assert.h>
25005#endif
ac1cb8d3
VS
25006
25007#undef remove
25008
a848cd7e
SC
25009/* Override any gcc2 internal prototype to avoid an error. */
25010#ifdef __cplusplus
25011extern "C"
25012{
25013#endif
25014/* We use char because int might match the return type of a gcc2
25015 builtin and then its argument prototype would still apply. */
25016char remove ();
25017/* The GNU C library defines this for functions which it implements
25018 to always fail with ENOSYS. Some functions are actually named
25019 something starting with __ and the normal name is an alias. */
25020#if defined (__stub_remove) || defined (__stub___remove)
25021choke me
25022#else
25023char (*f) () = remove;
25024#endif
25025#ifdef __cplusplus
25026}
25027#endif
25028
25029int
25030main ()
25031{
25032return f != remove;
25033 ;
25034 return 0;
25035}
25036_ACEOF
25037rm -f conftest.$ac_objext conftest$ac_exeext
25038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25039 (eval $ac_link) 2>conftest.er1
a848cd7e 25040 ac_status=$?
ac1cb8d3
VS
25041 grep -v '^ *+' conftest.er1 >conftest.err
25042 rm -f conftest.er1
25043 cat conftest.err >&5
a848cd7e
SC
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); } &&
d51253e8 25046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
25052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054 (eval $ac_try) 2>&5
25055 ac_status=$?
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; }; then
25058 ac_cv_func_remove=yes
25059else
25060 echo "$as_me: failed program was:" >&5
25061sed 's/^/| /' conftest.$ac_ext >&5
25062
25063ac_cv_func_remove=no
25064fi
ac1cb8d3
VS
25065rm -f conftest.err conftest.$ac_objext \
25066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25067fi
25068echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25069echo "${ECHO_T}$ac_cv_func_remove" >&6
25070
25071 if test $ac_cv_func_remove = no; then
25072 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25073echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25074if test "${ac_cv_lib_posix_remove+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25076else
25077 ac_check_lib_save_LIBS=$LIBS
25078LIBS="-lposix $LIBS"
25079cat >conftest.$ac_ext <<_ACEOF
25080/* confdefs.h. */
25081_ACEOF
25082cat confdefs.h >>conftest.$ac_ext
25083cat >>conftest.$ac_ext <<_ACEOF
25084/* end confdefs.h. */
25085
25086/* Override any gcc2 internal prototype to avoid an error. */
25087#ifdef __cplusplus
25088extern "C"
25089#endif
25090/* We use char because int might match the return type of a gcc2
25091 builtin and then its argument prototype would still apply. */
25092char remove ();
25093int
25094main ()
25095{
25096remove ();
25097 ;
25098 return 0;
25099}
25100_ACEOF
25101rm -f conftest.$ac_objext conftest$ac_exeext
25102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25103 (eval $ac_link) 2>conftest.er1
a848cd7e 25104 ac_status=$?
ac1cb8d3
VS
25105 grep -v '^ *+' conftest.er1 >conftest.err
25106 rm -f conftest.er1
25107 cat conftest.err >&5
a848cd7e
SC
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } &&
d51253e8 25110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } &&
25116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; }; then
25122 ac_cv_lib_posix_remove=yes
25123else
25124 echo "$as_me: failed program was:" >&5
25125sed 's/^/| /' conftest.$ac_ext >&5
25126
25127ac_cv_lib_posix_remove=no
25128fi
ac1cb8d3
VS
25129rm -f conftest.err conftest.$ac_objext \
25130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25131LIBS=$ac_check_lib_save_LIBS
25132fi
25133echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25134echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25135if test $ac_cv_lib_posix_remove = yes; then
25136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25137fi
25138
25139 fi
25140
25141 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25142 echo "$as_me:$LINENO: checking for shmat" >&5
25143echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25144if test "${ac_cv_func_shmat+set}" = set; then
25145 echo $ECHO_N "(cached) $ECHO_C" >&6
25146else
25147 cat >conftest.$ac_ext <<_ACEOF
25148/* confdefs.h. */
25149_ACEOF
25150cat confdefs.h >>conftest.$ac_ext
25151cat >>conftest.$ac_ext <<_ACEOF
25152/* end confdefs.h. */
ac1cb8d3
VS
25153/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25155#define shmat innocuous_shmat
25156
a848cd7e
SC
25157/* System header to define __stub macros and hopefully few prototypes,
25158 which can conflict with char shmat (); below.
25159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25161
a848cd7e
SC
25162#ifdef __STDC__
25163# include <limits.h>
25164#else
25165# include <assert.h>
25166#endif
ac1cb8d3
VS
25167
25168#undef shmat
25169
a848cd7e
SC
25170/* Override any gcc2 internal prototype to avoid an error. */
25171#ifdef __cplusplus
25172extern "C"
25173{
25174#endif
25175/* We use char because int might match the return type of a gcc2
25176 builtin and then its argument prototype would still apply. */
25177char shmat ();
25178/* The GNU C library defines this for functions which it implements
25179 to always fail with ENOSYS. Some functions are actually named
25180 something starting with __ and the normal name is an alias. */
25181#if defined (__stub_shmat) || defined (__stub___shmat)
25182choke me
25183#else
25184char (*f) () = shmat;
25185#endif
25186#ifdef __cplusplus
25187}
25188#endif
25189
25190int
25191main ()
25192{
25193return f != shmat;
25194 ;
25195 return 0;
25196}
25197_ACEOF
25198rm -f conftest.$ac_objext conftest$ac_exeext
25199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25200 (eval $ac_link) 2>conftest.er1
a848cd7e 25201 ac_status=$?
ac1cb8d3
VS
25202 grep -v '^ *+' conftest.er1 >conftest.err
25203 rm -f conftest.er1
25204 cat conftest.err >&5
a848cd7e
SC
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } &&
d51253e8 25207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; } &&
25213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; }; then
25219 ac_cv_func_shmat=yes
25220else
25221 echo "$as_me: failed program was:" >&5
25222sed 's/^/| /' conftest.$ac_ext >&5
25223
25224ac_cv_func_shmat=no
25225fi
ac1cb8d3
VS
25226rm -f conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25228fi
25229echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25230echo "${ECHO_T}$ac_cv_func_shmat" >&6
25231
25232 if test $ac_cv_func_shmat = no; then
25233 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25234echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25235if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25236 echo $ECHO_N "(cached) $ECHO_C" >&6
25237else
25238 ac_check_lib_save_LIBS=$LIBS
25239LIBS="-lipc $LIBS"
25240cat >conftest.$ac_ext <<_ACEOF
25241/* confdefs.h. */
25242_ACEOF
25243cat confdefs.h >>conftest.$ac_ext
25244cat >>conftest.$ac_ext <<_ACEOF
25245/* end confdefs.h. */
25246
25247/* Override any gcc2 internal prototype to avoid an error. */
25248#ifdef __cplusplus
25249extern "C"
25250#endif
25251/* We use char because int might match the return type of a gcc2
25252 builtin and then its argument prototype would still apply. */
25253char shmat ();
25254int
25255main ()
25256{
25257shmat ();
25258 ;
25259 return 0;
25260}
25261_ACEOF
25262rm -f conftest.$ac_objext conftest$ac_exeext
25263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25264 (eval $ac_link) 2>conftest.er1
a848cd7e 25265 ac_status=$?
ac1cb8d3
VS
25266 grep -v '^ *+' conftest.er1 >conftest.err
25267 rm -f conftest.er1
25268 cat conftest.err >&5
a848cd7e
SC
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); } &&
d51253e8 25271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25274 ac_status=$?
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; } &&
25277 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279 (eval $ac_try) 2>&5
25280 ac_status=$?
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); }; }; then
25283 ac_cv_lib_ipc_shmat=yes
25284else
25285 echo "$as_me: failed program was:" >&5
25286sed 's/^/| /' conftest.$ac_ext >&5
25287
25288ac_cv_lib_ipc_shmat=no
25289fi
ac1cb8d3
VS
25290rm -f conftest.err conftest.$ac_objext \
25291 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25292LIBS=$ac_check_lib_save_LIBS
25293fi
25294echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25295echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25296if test $ac_cv_lib_ipc_shmat = yes; then
25297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25298fi
25299
25300 fi
25301 fi
25302
25303 # Check for libraries that X11R6 Xt/Xaw programs need.
25304 ac_save_LDFLAGS=$LDFLAGS
25305 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25306 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25307 # check for ICE first), but we must link in the order -lSM -lICE or
25308 # we get undefined symbols. So assume we have SM if we have ICE.
25309 # These have to be linked with before -lX11, unlike the other
25310 # libraries we check for below, so use a different variable.
25311 # John Interrante, Karl Berry
25312 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25313echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25314if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25316else
25317 ac_check_lib_save_LIBS=$LIBS
25318LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25319cat >conftest.$ac_ext <<_ACEOF
25320/* confdefs.h. */
25321_ACEOF
25322cat confdefs.h >>conftest.$ac_ext
25323cat >>conftest.$ac_ext <<_ACEOF
25324/* end confdefs.h. */
25325
25326/* Override any gcc2 internal prototype to avoid an error. */
25327#ifdef __cplusplus
25328extern "C"
25329#endif
25330/* We use char because int might match the return type of a gcc2
25331 builtin and then its argument prototype would still apply. */
25332char IceConnectionNumber ();
25333int
25334main ()
25335{
25336IceConnectionNumber ();
25337 ;
25338 return 0;
25339}
25340_ACEOF
25341rm -f conftest.$ac_objext conftest$ac_exeext
25342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25343 (eval $ac_link) 2>conftest.er1
a848cd7e 25344 ac_status=$?
ac1cb8d3
VS
25345 grep -v '^ *+' conftest.er1 >conftest.err
25346 rm -f conftest.er1
25347 cat conftest.err >&5
a848cd7e
SC
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
d51253e8 25350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25359 ac_status=$?
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_lib_ICE_IceConnectionNumber=yes
25363else
25364 echo "$as_me: failed program was:" >&5
25365sed 's/^/| /' conftest.$ac_ext >&5
25366
25367ac_cv_lib_ICE_IceConnectionNumber=no
25368fi
ac1cb8d3
VS
25369rm -f conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25371LIBS=$ac_check_lib_save_LIBS
25372fi
25373echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25374echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25375if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25376 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25377fi
25378
25379 LDFLAGS=$ac_save_LDFLAGS
25380
25381fi
25382
25383
25384 if test "$no_x" = "yes"; then
25385 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25386echo "$as_me: error: X11 not found" >&2;}
25387 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25388 fi
25389
74b84332
VS
25390 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25391 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25392 AFMINSTALL=afminstall
25393 COMPILED_X_PROGRAM=0
25394
74b84332
VS
25395 fi
25396
25397 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25398 if test "$wxUSE_NANOX" = "yes"; then
25399 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25400echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25401 if test "x$MICROWIN" = x ; then
25402 echo "$as_me:$LINENO: result: not found" >&5
25403echo "${ECHO_T}not found" >&6
25404 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25405echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25406 { (exit 1); exit 1; }; }
25407 else
25408 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25409echo "${ECHO_T}$MICROWIN" >&6
25410 cat >>confdefs.h <<\_ACEOF
25411#define wxUSE_NANOX 1
25412_ACEOF
25413
25414 fi
25415 fi
25416
25417 if test "$wxUSE_UNICODE" = "yes"; then
25418
25419 succeeded=no
25420
25421 if test -z "$PKG_CONFIG"; then
25422 # Extract the first word of "pkg-config", so it can be a program name with args.
25423set dummy pkg-config; ac_word=$2
25424echo "$as_me:$LINENO: checking for $ac_word" >&5
25425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25426if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25428else
25429 case $PKG_CONFIG in
25430 [\\/]* | ?:[\\/]*)
25431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25432 ;;
25433 *)
25434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25435for as_dir in $PATH
25436do
25437 IFS=$as_save_IFS
25438 test -z "$as_dir" && as_dir=.
25439 for ac_exec_ext in '' $ac_executable_extensions; do
25440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25443 break 2
25444 fi
25445done
25446done
25447
25448 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25449 ;;
25450esac
25451fi
25452PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25453
25454if test -n "$PKG_CONFIG"; then
25455 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25456echo "${ECHO_T}$PKG_CONFIG" >&6
25457else
25458 echo "$as_me:$LINENO: result: no" >&5
25459echo "${ECHO_T}no" >&6
25460fi
25461
25462 fi
25463
25464 if test "$PKG_CONFIG" = "no" ; then
25465 echo "*** The pkg-config script could not be found. Make sure it is"
25466 echo "*** in your path, or set the PKG_CONFIG environment variable"
25467 echo "*** to the full path to pkg-config."
25468 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25469 else
25470 PKG_CONFIG_MIN_VERSION=0.9.0
25471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25472 echo "$as_me:$LINENO: checking for pangox" >&5
25473echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25474
25475 if $PKG_CONFIG --exists "pangox" ; then
25476 echo "$as_me:$LINENO: result: yes" >&5
25477echo "${ECHO_T}yes" >&6
25478 succeeded=yes
25479
25480 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25481echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25482 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25483 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25484echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25485
25486 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25487echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25488 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25489 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25490echo "${ECHO_T}$PANGOX_LIBS" >&6
25491 else
25492 PANGOX_CFLAGS=""
25493 PANGOX_LIBS=""
25494 ## If we have a custom action on failure, don't print errors, but
25495 ## do set a variable so people can do so.
25496 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25497
25498 fi
25499
25500
25501
25502 else
25503 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25504 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25505 fi
25506 fi
25507
25508 if test $succeeded = yes; then
25509
25510 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25511 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25512
25513 else
25514
25515 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25516echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25517 { (exit 1); exit 1; }; }
25518
25519
25520 fi
25521
25522
25523 succeeded=no
25524
25525 if test -z "$PKG_CONFIG"; then
25526 # Extract the first word of "pkg-config", so it can be a program name with args.
25527set dummy pkg-config; ac_word=$2
25528echo "$as_me:$LINENO: checking for $ac_word" >&5
25529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25530if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25531 echo $ECHO_N "(cached) $ECHO_C" >&6
25532else
25533 case $PKG_CONFIG in
25534 [\\/]* | ?:[\\/]*)
25535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25536 ;;
25537 *)
25538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25539for as_dir in $PATH
25540do
25541 IFS=$as_save_IFS
25542 test -z "$as_dir" && as_dir=.
25543 for ac_exec_ext in '' $ac_executable_extensions; do
25544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25547 break 2
25548 fi
25549done
25550done
25551
25552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25553 ;;
25554esac
25555fi
25556PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25557
25558if test -n "$PKG_CONFIG"; then
25559 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25560echo "${ECHO_T}$PKG_CONFIG" >&6
25561else
25562 echo "$as_me:$LINENO: result: no" >&5
25563echo "${ECHO_T}no" >&6
25564fi
25565
25566 fi
25567
25568 if test "$PKG_CONFIG" = "no" ; then
25569 echo "*** The pkg-config script could not be found. Make sure it is"
25570 echo "*** in your path, or set the PKG_CONFIG environment variable"
25571 echo "*** to the full path to pkg-config."
25572 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25573 else
25574 PKG_CONFIG_MIN_VERSION=0.9.0
25575 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25576 echo "$as_me:$LINENO: checking for pangoft2" >&5
25577echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25578
25579 if $PKG_CONFIG --exists "pangoft2" ; then
25580 echo "$as_me:$LINENO: result: yes" >&5
25581echo "${ECHO_T}yes" >&6
25582 succeeded=yes
25583
25584 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25585echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25586 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25587 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25588echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25589
25590 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25591echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25592 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25593 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25594echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25595 else
25596 PANGOFT2_CFLAGS=""
25597 PANGOFT2_LIBS=""
25598 ## If we have a custom action on failure, don't print errors, but
25599 ## do set a variable so people can do so.
25600 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25601
25602 fi
25603
25604
25605
25606 else
25607 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25608 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25609 fi
25610 fi
25611
25612 if test $succeeded = yes; then
25613
25614 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25615 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25616
25617 else
25618
25619 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25620echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25621 wxUSE_PRINTING_ARCHITECTURE="no"
25622
25623
25624 fi
25625
25626
25627 succeeded=no
25628
25629 if test -z "$PKG_CONFIG"; then
25630 # Extract the first word of "pkg-config", so it can be a program name with args.
25631set dummy pkg-config; ac_word=$2
25632echo "$as_me:$LINENO: checking for $ac_word" >&5
25633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25634if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25635 echo $ECHO_N "(cached) $ECHO_C" >&6
25636else
25637 case $PKG_CONFIG in
25638 [\\/]* | ?:[\\/]*)
25639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25640 ;;
25641 *)
25642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25643for as_dir in $PATH
25644do
25645 IFS=$as_save_IFS
25646 test -z "$as_dir" && as_dir=.
25647 for ac_exec_ext in '' $ac_executable_extensions; do
25648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25651 break 2
25652 fi
25653done
25654done
25655
25656 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25657 ;;
25658esac
25659fi
25660PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25661
25662if test -n "$PKG_CONFIG"; then
25663 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25664echo "${ECHO_T}$PKG_CONFIG" >&6
25665else
25666 echo "$as_me:$LINENO: result: no" >&5
25667echo "${ECHO_T}no" >&6
25668fi
25669
25670 fi
25671
25672 if test "$PKG_CONFIG" = "no" ; then
25673 echo "*** The pkg-config script could not be found. Make sure it is"
25674 echo "*** in your path, or set the PKG_CONFIG environment variable"
25675 echo "*** to the full path to pkg-config."
25676 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25677 else
25678 PKG_CONFIG_MIN_VERSION=0.9.0
25679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25680 echo "$as_me:$LINENO: checking for pangoxft" >&5
25681echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25682
25683 if $PKG_CONFIG --exists "pangoxft" ; then
25684 echo "$as_me:$LINENO: result: yes" >&5
25685echo "${ECHO_T}yes" >&6
25686 succeeded=yes
25687
25688 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25689echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25690 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25691 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25692echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25693
25694 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25695echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25696 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25697 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25698echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25699 else
25700 PANGOXFT_CFLAGS=""
25701 PANGOXFT_LIBS=""
25702 ## If we have a custom action on failure, don't print errors, but
25703 ## do set a variable so people can do so.
25704 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25705
25706 fi
25707
25708
25709
25710 else
25711 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25712 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25713 fi
25714 fi
25715
25716 if test $succeeded = yes; then
25717
25718 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25719 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25720
25721 else
25722
25723 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25724echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25725
25726
25727 fi
25728
304205f1
VS
25729 save_CFLAGS="$CFLAGS"
25730 save_LIBS="$LIBS"
25731 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25732 LIBS="$LIBS $PANGOX_LIBS"
25733
25734for ac_func in pango_font_family_is_monospace
25735do
25736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25737echo "$as_me:$LINENO: checking for $ac_func" >&5
25738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25739if eval "test \"\${$as_ac_var+set}\" = set"; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25741else
25742 cat >conftest.$ac_ext <<_ACEOF
25743/* confdefs.h. */
25744_ACEOF
25745cat confdefs.h >>conftest.$ac_ext
25746cat >>conftest.$ac_ext <<_ACEOF
25747/* end confdefs.h. */
25748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25750#define $ac_func innocuous_$ac_func
25751
25752/* System header to define __stub macros and hopefully few prototypes,
25753 which can conflict with char $ac_func (); below.
25754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25755 <limits.h> exists even on freestanding compilers. */
25756
25757#ifdef __STDC__
25758# include <limits.h>
25759#else
25760# include <assert.h>
25761#endif
25762
25763#undef $ac_func
25764
25765/* Override any gcc2 internal prototype to avoid an error. */
25766#ifdef __cplusplus
25767extern "C"
25768{
25769#endif
25770/* We use char because int might match the return type of a gcc2
25771 builtin and then its argument prototype would still apply. */
25772char $ac_func ();
25773/* The GNU C library defines this for functions which it implements
25774 to always fail with ENOSYS. Some functions are actually named
25775 something starting with __ and the normal name is an alias. */
25776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25777choke me
25778#else
25779char (*f) () = $ac_func;
25780#endif
25781#ifdef __cplusplus
25782}
25783#endif
25784
25785int
25786main ()
25787{
25788return f != $ac_func;
25789 ;
25790 return 0;
25791}
25792_ACEOF
25793rm -f conftest.$ac_objext conftest$ac_exeext
25794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25795 (eval $ac_link) 2>conftest.er1
25796 ac_status=$?
25797 grep -v '^ *+' conftest.er1 >conftest.err
25798 rm -f conftest.er1
25799 cat conftest.err >&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } &&
d51253e8 25802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; } &&
25808 { ac_try='test -s conftest$ac_exeext'
25809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; }; then
25814 eval "$as_ac_var=yes"
25815else
25816 echo "$as_me: failed program was:" >&5
25817sed 's/^/| /' conftest.$ac_ext >&5
25818
25819eval "$as_ac_var=no"
25820fi
25821rm -f conftest.err conftest.$ac_objext \
25822 conftest$ac_exeext conftest.$ac_ext
25823fi
25824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25826if test `eval echo '${'$as_ac_var'}'` = yes; then
25827 cat >>confdefs.h <<_ACEOF
25828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25829_ACEOF
25830
25831fi
25832done
25833
25834 CFLAGS="$save_CFLAGS"
25835 LIBS="$save_LIBS"
a848cd7e
SC
25836 fi
25837
25838 wxUSE_UNIVERSAL="yes"
25839
25840 if test "$wxUSE_NANOX" = "yes"; then
25841 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25842 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"
25843 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25844 else
25845 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25846 fi
25847
a848cd7e
SC
25848 TOOLKIT=X11
25849 GUIDIST=X11_DIST
25850 fi
25851
25852 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25853 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25854echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25855
74b84332
VS
25856ac_find_includes=
25857for ac_dir in $SEARCH_INCLUDE /usr/include;
25858 do
25859 if test -f "$ac_dir/Xm/Xm.h"; then
25860 ac_find_includes=$ac_dir
25861 break
25862 fi
25863 done
a848cd7e 25864
74b84332
VS
25865 if test "$ac_find_includes" != "" ; then
25866 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25867echo "${ECHO_T}found in $ac_find_includes" >&6
25868
25869 if test "x$ac_find_includes" = "x/usr/include"; then
25870 ac_path_to_include=""
25871 else
25872 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25873 result=$?
25874 if test $result = 0; then
25875 ac_path_to_include=""
25876 else
25877 ac_path_to_include=" -I$ac_find_includes"
25878 fi
a848cd7e
SC
25879 fi
25880
74b84332
VS
25881 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25882 else
25883 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25884/* confdefs.h. */
25885_ACEOF
25886cat confdefs.h >>conftest.$ac_ext
25887cat >>conftest.$ac_ext <<_ACEOF
25888/* end confdefs.h. */
25889
74b84332
VS
25890 #include <Xm/Xm.h>
25891
a848cd7e
SC
25892int
25893main ()
25894{
25895
74b84332
VS
25896 int version;
25897 version = xmUseVersion;
25898
a848cd7e
SC
25899 ;
25900 return 0;
25901}
25902_ACEOF
74b84332
VS
25903rm -f conftest.$ac_objext
25904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25905 (eval $ac_compile) 2>conftest.er1
a848cd7e 25906 ac_status=$?
ac1cb8d3
VS
25907 grep -v '^ *+' conftest.er1 >conftest.err
25908 rm -f conftest.er1
25909 cat conftest.err >&5
a848cd7e
SC
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } &&
d51253e8 25912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914 (eval $ac_try) 2>&5
25915 ac_status=$?
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; } &&
74b84332 25918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920 (eval $ac_try) 2>&5
25921 ac_status=$?
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); }; }; then
74b84332
VS
25924
25925 echo "$as_me:$LINENO: result: found in default search path" >&5
25926echo "${ECHO_T}found in default search path" >&6
25927 COMPILED_X_PROGRAM=1
25928
a848cd7e
SC
25929else
25930 echo "$as_me: failed program was:" >&5
25931sed 's/^/| /' conftest.$ac_ext >&5
25932
a848cd7e 25933
74b84332
VS
25934 echo "$as_me:$LINENO: result: no" >&5
25935echo "${ECHO_T}no" >&6
25936 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25937echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25938 { (exit 1); exit 1; }; }
a848cd7e 25939
a848cd7e 25940
a848cd7e 25941fi
74b84332
VS
25942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25943 fi
25944
25945 if test "$COMPILED_X_PROGRAM" = 0; then
25946 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25947echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25948
25949ac_find_libraries=
25950for ac_dir in $SEARCH_LIB /usr/lib;
25951 do
25952 for ac_extension in a so sl dylib; do
25953 if test -f "$ac_dir/libXm.$ac_extension"; then
25954 ac_find_libraries=$ac_dir
25955 break 2
a848cd7e 25956 fi
74b84332
VS
25957 done
25958 done
a848cd7e 25959
74b84332
VS
25960 if test "$ac_find_libraries" != "" ; then
25961 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25962echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25963
74b84332
VS
25964
25965 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25966 result=$?
25967 if test $result = 0; then
25968 ac_path_to_link=""
a848cd7e 25969 else
74b84332
VS
25970 ac_path_to_link=" -L$ac_find_libraries"
25971 fi
25972
25973 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25974 else
25975 save_CFLAGS=$CFLAGS
25976 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25977
25978 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25979/* confdefs.h. */
25980_ACEOF
25981cat confdefs.h >>conftest.$ac_ext
25982cat >>conftest.$ac_ext <<_ACEOF
25983/* end confdefs.h. */
25984
74b84332
VS
25985 #include <Xm/Xm.h>
25986
a848cd7e
SC
25987int
25988main ()
25989{
74b84332
VS
25990
25991 int version;
25992 version = xmUseVersion;
25993
a848cd7e
SC
25994 ;
25995 return 0;
25996}
25997_ACEOF
74b84332
VS
25998rm -f conftest.$ac_objext
25999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
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); } &&
d51253e8 26007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); }; } &&
74b84332 26013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; }; then
74b84332
VS
26019
26020 echo "$as_me:$LINENO: result: found in default search path" >&5
26021echo "${ECHO_T}found in default search path" >&6
26022 COMPILED_X_PROGRAM=1
26023
a848cd7e
SC
26024else
26025 echo "$as_me: failed program was:" >&5
26026sed 's/^/| /' conftest.$ac_ext >&5
26027
74b84332
VS
26028
26029 echo "$as_me:$LINENO: result: no" >&5
26030echo "${ECHO_T}no" >&6
26031 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26032echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26033 { (exit 1); exit 1; }; }
26034
26035
26036fi
26037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26038
26039 CFLAGS=$save_CFLAGS
26040 fi
26041 fi
26042
26043 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26044echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26045 libp_link=""
26046 libsm_ice_link=""
26047 libs_found=0
26048 for libp in "" " -lXp"; do
26049 if test "$libs_found" = "0"; then
26050 for libsm_ice in "" " -lSM -lICE"; do
26051 if test "$libs_found" = "0"; then
26052 save_LIBS="$LIBS"
26053 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26054 save_CFLAGS=$CFLAGS
26055 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26056
26057 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26058/* confdefs.h. */
26059_ACEOF
26060cat confdefs.h >>conftest.$ac_ext
26061cat >>conftest.$ac_ext <<_ACEOF
26062/* end confdefs.h. */
26063
74b84332
VS
26064 #include <Xm/Xm.h>
26065 #include <Xm/List.h>
26066
a848cd7e
SC
26067int
26068main ()
26069{
74b84332
VS
26070
26071 XmString string = NULL;
26072 Widget w = NULL;
26073 int position = 0;
26074 XmListAddItem(w, string, position);
26075
a848cd7e
SC
26076 ;
26077 return 0;
26078}
26079_ACEOF
26080rm -f conftest.$ac_objext conftest$ac_exeext
26081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26082 (eval $ac_link) 2>conftest.er1
a848cd7e 26083 ac_status=$?
ac1cb8d3
VS
26084 grep -v '^ *+' conftest.er1 >conftest.err
26085 rm -f conftest.er1
26086 cat conftest.err >&5
a848cd7e
SC
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } &&
d51253e8 26089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); }; } &&
26095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26097 (eval $ac_try) 2>&5
26098 ac_status=$?
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); }; }; then
26101
26102 libp_link="$libp"
26103 libsm_ice_link="$libsm_ice"
26104 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26105echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26106 libs_found=1
26107
26108else
26109 echo "$as_me: failed program was:" >&5
26110sed 's/^/| /' conftest.$ac_ext >&5
26111
26112
26113
26114fi
ac1cb8d3
VS
26115rm -f conftest.err conftest.$ac_objext \
26116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26117
26118 LIBS="$save_LIBS"
26119 CFLAGS=$save_CFLAGS
26120 fi
26121 done
26122 fi
26123 done
26124
26125 if test "$libs_found" = "0"; then
26126 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26127echo "${ECHO_T}can't find the right libraries" >&6
26128 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26129echo "$as_me: error: can't link a simple motif program" >&2;}
26130 { (exit 1); exit 1; }; }
26131 fi
26132
26133 save_CFLAGS=$CFLAGS
26134 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26135 echo "$as_me:$LINENO: checking for Motif 2" >&5
26136echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26137 cat >conftest.$ac_ext <<_ACEOF
26138/* confdefs.h. */
26139_ACEOF
26140cat confdefs.h >>conftest.$ac_ext
26141cat >>conftest.$ac_ext <<_ACEOF
26142/* end confdefs.h. */
26143
26144 #include <Xm/Xm.h>
26145
26146int
26147main ()
26148{
26149
26150 #if XmVersion < 2000
26151 #error "Not Motif 2"
26152 #endif
26153
26154 ;
26155 return 0;
26156}
26157_ACEOF
26158rm -f conftest.$ac_objext
26159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26160 (eval $ac_compile) 2>conftest.er1
a848cd7e 26161 ac_status=$?
ac1cb8d3
VS
26162 grep -v '^ *+' conftest.er1 >conftest.err
26163 rm -f conftest.er1
26164 cat conftest.err >&5
a848cd7e
SC
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } &&
d51253e8 26167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26169 (eval $ac_try) 2>&5
26170 ac_status=$?
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); }; } &&
26173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175 (eval $ac_try) 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; }; then
26179
26180 cat >>confdefs.h <<\_ACEOF
26181#define __WXMOTIF20__ 1
26182_ACEOF
26183
26184 echo "$as_me:$LINENO: result: found" >&5
26185echo "${ECHO_T}found" >&6
26186
26187else
26188 echo "$as_me: failed program was:" >&5
26189sed 's/^/| /' conftest.$ac_ext >&5
26190
26191
26192 cat >>confdefs.h <<\_ACEOF
26193#define __WXMOTIF20__ 0
26194_ACEOF
26195
26196 echo "$as_me:$LINENO: result: not found" >&5
26197echo "${ECHO_T}not found" >&6
26198
26199fi
ac1cb8d3 26200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26201 CFLAGS=$save_CFLAGS
26202
26203 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26204 TOOLKIT=MOTIF
26205 GUIDIST=MOTIF_DIST
26206 fi
26207
74b84332 26208 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26209 if test "$wxUSE_LIBXPM" = "sys"; then
26210 echo "$as_me:$LINENO: checking for Xpm library" >&5
26211echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26212
26213ac_find_libraries=
26214for ac_dir in $SEARCH_LIB /usr/lib;
26215 do
26216 for ac_extension in a so sl dylib; do
26217 if test -f "$ac_dir/libXpm.$ac_extension"; then
26218 ac_find_libraries=$ac_dir
26219 break 2
26220 fi
26221 done
26222 done
26223
26224 if test "$ac_find_libraries" != "" ; then
26225
26226 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26227 result=$?
26228 if test $result = 0; then
26229 ac_path_to_link=""
26230 else
26231 ac_path_to_link=" -L$ac_find_libraries"
26232 fi
26233
26234 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26235 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26236echo "${ECHO_T}found at $ac_find_libraries" >&6
26237
26238 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26239echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26240if test "${wx_cv_x11_xpm_h+set}" = set; then
26241 echo $ECHO_N "(cached) $ECHO_C" >&6
26242else
26243
26244 save_CFLAGS=$CFLAGS
26245 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26246
26247 cat >conftest.$ac_ext <<_ACEOF
26248/* confdefs.h. */
26249_ACEOF
26250cat confdefs.h >>conftest.$ac_ext
26251cat >>conftest.$ac_ext <<_ACEOF
26252/* end confdefs.h. */
26253
26254 #include <X11/xpm.h>
26255
26256int
26257main ()
26258{
26259
26260 int version;
26261 version = XpmLibraryVersion();
26262
26263 ;
26264 return 0;
26265}
26266_ACEOF
26267rm -f conftest.$ac_objext
26268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26269 (eval $ac_compile) 2>conftest.er1
a848cd7e 26270 ac_status=$?
ac1cb8d3
VS
26271 grep -v '^ *+' conftest.er1 >conftest.err
26272 rm -f conftest.er1
26273 cat conftest.err >&5
a848cd7e
SC
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); } &&
d51253e8 26276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; } &&
26282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284 (eval $ac_try) 2>&5
26285 ac_status=$?
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); }; }; then
26288 wx_cv_x11_xpm_h=yes
26289else
26290 echo "$as_me: failed program was:" >&5
26291sed 's/^/| /' conftest.$ac_ext >&5
26292
26293wx_cv_x11_xpm_h=no
26294
26295fi
ac1cb8d3 26296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26297
26298 CFLAGS=$save_CFLAGS
26299
26300
26301fi
26302echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26303echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26304
26305 if test $wx_cv_x11_xpm_h = "yes"; then
26306 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26307 cat >>confdefs.h <<\_ACEOF
26308#define wxHAVE_LIB_XPM 1
26309_ACEOF
26310
26311 else
26312 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26313echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26314 fi
26315 fi
26316
26317 fi
26318
26319 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26320echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26321if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26322 echo $ECHO_N "(cached) $ECHO_C" >&6
26323else
26324 ac_check_lib_save_LIBS=$LIBS
26325LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26326cat >conftest.$ac_ext <<_ACEOF
26327/* confdefs.h. */
26328_ACEOF
26329cat confdefs.h >>conftest.$ac_ext
26330cat >>conftest.$ac_ext <<_ACEOF
26331/* end confdefs.h. */
26332
26333/* Override any gcc2 internal prototype to avoid an error. */
26334#ifdef __cplusplus
26335extern "C"
26336#endif
26337/* We use char because int might match the return type of a gcc2
26338 builtin and then its argument prototype would still apply. */
26339char XShapeQueryExtension ();
26340int
26341main ()
26342{
26343XShapeQueryExtension ();
26344 ;
26345 return 0;
26346}
26347_ACEOF
26348rm -f conftest.$ac_objext conftest$ac_exeext
26349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26350 (eval $ac_link) 2>conftest.er1
a848cd7e 26351 ac_status=$?
ac1cb8d3
VS
26352 grep -v '^ *+' conftest.er1 >conftest.err
26353 rm -f conftest.er1
26354 cat conftest.err >&5
a848cd7e
SC
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } &&
d51253e8 26357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26360 ac_status=$?
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; } &&
26363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; }; then
26369 ac_cv_lib_Xext_XShapeQueryExtension=yes
26370else
26371 echo "$as_me: failed program was:" >&5
26372sed 's/^/| /' conftest.$ac_ext >&5
26373
26374ac_cv_lib_Xext_XShapeQueryExtension=no
26375fi
ac1cb8d3
VS
26376rm -f conftest.err conftest.$ac_objext \
26377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26378LIBS=$ac_check_lib_save_LIBS
26379fi
26380echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26381echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26382if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26383
26384 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26385 wxHAVE_XEXT_LIB=1
26386
26387fi
26388
26389
26390 if test "$wxHAVE_XEXT_LIB" = 1; then
26391 save_CFLAGS="$CFLAGS"
26392 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26393
26394 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26395echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26396 cat >conftest.$ac_ext <<_ACEOF
26397/* confdefs.h. */
26398_ACEOF
26399cat confdefs.h >>conftest.$ac_ext
26400cat >>conftest.$ac_ext <<_ACEOF
26401/* end confdefs.h. */
26402
26403 #include <X11/Xlib.h>
26404 #include <X11/extensions/shape.h>
26405
26406int
26407main ()
26408{
26409
26410 int dummy1, dummy2;
26411 XShapeQueryExtension((Display*)NULL,
26412 (int*)NULL, (int*)NULL);
26413
26414 ;
26415 return 0;
26416}
26417_ACEOF
26418rm -f conftest.$ac_objext
26419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26420 (eval $ac_compile) 2>conftest.er1
a848cd7e 26421 ac_status=$?
ac1cb8d3
VS
26422 grep -v '^ *+' conftest.er1 >conftest.err
26423 rm -f conftest.er1
26424 cat conftest.err >&5
a848cd7e
SC
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } &&
d51253e8 26427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435 (eval $ac_try) 2>&5
26436 ac_status=$?
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); }; }; then
26439
26440 cat >>confdefs.h <<\_ACEOF
26441#define HAVE_XSHAPE 1
26442_ACEOF
26443
26444 echo "$as_me:$LINENO: result: found" >&5
26445echo "${ECHO_T}found" >&6
26446
26447else
26448 echo "$as_me: failed program was:" >&5
26449sed 's/^/| /' conftest.$ac_ext >&5
26450
26451
26452 echo "$as_me:$LINENO: result: not found" >&5
26453echo "${ECHO_T}not found" >&6
26454
26455fi
ac1cb8d3 26456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26457 CFLAGS="$save_CFLAGS"
26458
26459 fi
26460 fi
26461
26462 if test "$wxUSE_MAC" = 1; then
26463 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26464echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26465 if test "$GCC" = yes; then
26466 echo "$as_me:$LINENO: result: gcc" >&5
26467echo "${ECHO_T}gcc" >&6
26468 CPPFLAGS_PASCAL="-fpascal-strings"
26469 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26470 echo "$as_me:$LINENO: result: xlc" >&5
26471echo "${ECHO_T}xlc" >&6
26472 CPPFLAGS_PASCAL="-qmacpstr"
26473 else
26474 echo "$as_me:$LINENO: result: none" >&5
26475echo "${ECHO_T}none" >&6
26476 fi
26477
26478 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26479
a848cd7e
SC
26480 TOOLKIT=MAC
26481 GUIDIST=MACX_DIST
dd21ced8 26482 WXBASEPORT="_carbon"
a848cd7e
SC
26483 fi
26484
26485 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26486 TOOLKIT=COCOA
26487 GUIDIST=COCOA_DIST
26488 fi
26489
26490 if test "$wxUSE_PM" = 1; then
26491 TOOLKIT=PM
de59c161
RD
26492 GUIDIST=PM_DIST
26493 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26494echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26495if test "${wx_cv_spbcdata+set}" = set; then
26496 echo $ECHO_N "(cached) $ECHO_C" >&6
26497else
26498
26499 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26500/* confdefs.h. */
26501_ACEOF
26502cat confdefs.h >>conftest.$ac_ext
26503cat >>conftest.$ac_ext <<_ACEOF
26504/* end confdefs.h. */
26505
26506 #define INCL_PM
26507 #include <os2.h>
26508
26509int
26510main ()
26511{
26512
26513 SPBCDATA test;
26514
26515 ;
26516 return 0;
26517}
26518_ACEOF
26519rm -f conftest.$ac_objext
26520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26521 (eval $ac_compile) 2>conftest.er1
de59c161 26522 ac_status=$?
ac1cb8d3
VS
26523 grep -v '^ *+' conftest.er1 >conftest.err
26524 rm -f conftest.er1
26525 cat conftest.err >&5
de59c161
RD
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } &&
d51253e8 26528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530 (eval $ac_try) 2>&5
26531 ac_status=$?
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); }; } &&
26534 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536 (eval $ac_try) 2>&5
26537 ac_status=$?
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); }; }; then
26540 wx_cv_spbcdata=yes
26541else
26542 echo "$as_me: failed program was:" >&5
26543sed 's/^/| /' conftest.$ac_ext >&5
26544
26545wx_cv_spbcdata=no
26546
26547fi
ac1cb8d3 26548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26549
26550
26551fi
26552echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26553echo "${ECHO_T}$wx_cv_spbcdata" >&6
26554
26555 if test $wx_cv_spbcdata = "yes"; then
26556 cat >>confdefs.h <<\_ACEOF
26557#define HAVE_SPBCDATA 1
26558_ACEOF
26559
26560 fi
a848cd7e
SC
26561 fi
26562
26563 if test "$TOOLKIT" = "PM" ; then
26564 TOOLKIT_DIR="os2"
26565 else
26566 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26567 fi
26568
a848cd7e 26569 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26570 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26571 WIDGET_SET=univ
a848cd7e
SC
26572 fi
26573
26574 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26575 DISTDIR="wx\$(TOOLKIT)"
26576else
26577 USE_GUI=0
26578
26579 TOOLKIT_DIR="base"
26580
26581 if test "$USE_WIN32" = 1 ; then
a848cd7e 26582 TOOLKIT="MSW"
a848cd7e
SC
26583 fi
26584
a848cd7e
SC
26585 GUIDIST="BASE_DIST"
26586 DISTDIR="wxBase"
26587fi
26588
26589
26590
26591
26592IODBC_C_SRC=""
26593
26594
26595if test "$TOOLKIT" != "MSW" ; then
26596
26597 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26598
26599 if test "${ac_cv_header_sql_h+set}" = set; then
26600 echo "$as_me:$LINENO: checking for sql.h" >&5
26601echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26602if test "${ac_cv_header_sql_h+set}" = set; then
26603 echo $ECHO_N "(cached) $ECHO_C" >&6
26604fi
26605echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26606echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26607else
26608 # Is the header compilable?
26609echo "$as_me:$LINENO: checking sql.h usability" >&5
26610echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26611cat >conftest.$ac_ext <<_ACEOF
26612/* confdefs.h. */
26613_ACEOF
26614cat confdefs.h >>conftest.$ac_ext
26615cat >>conftest.$ac_ext <<_ACEOF
26616/* end confdefs.h. */
26617$ac_includes_default
26618#include <sql.h>
26619_ACEOF
26620rm -f conftest.$ac_objext
26621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26622 (eval $ac_compile) 2>conftest.er1
a848cd7e 26623 ac_status=$?
ac1cb8d3
VS
26624 grep -v '^ *+' conftest.er1 >conftest.err
26625 rm -f conftest.er1
26626 cat conftest.err >&5
a848cd7e
SC
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } &&
d51253e8 26629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631 (eval $ac_try) 2>&5
26632 ac_status=$?
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; } &&
26635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); }; }; then
26641 ac_header_compiler=yes
26642else
26643 echo "$as_me: failed program was:" >&5
26644sed 's/^/| /' conftest.$ac_ext >&5
26645
26646ac_header_compiler=no
26647fi
ac1cb8d3 26648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26650echo "${ECHO_T}$ac_header_compiler" >&6
26651
26652# Is the header present?
26653echo "$as_me:$LINENO: checking sql.h presence" >&5
26654echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26655cat >conftest.$ac_ext <<_ACEOF
26656/* confdefs.h. */
26657_ACEOF
26658cat confdefs.h >>conftest.$ac_ext
26659cat >>conftest.$ac_ext <<_ACEOF
26660/* end confdefs.h. */
26661#include <sql.h>
26662_ACEOF
26663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26665 ac_status=$?
26666 grep -v '^ *+' conftest.er1 >conftest.err
26667 rm -f conftest.er1
26668 cat conftest.err >&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } >/dev/null; then
26671 if test -s conftest.err; then
26672 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26674 else
26675 ac_cpp_err=
26676 fi
26677else
26678 ac_cpp_err=yes
26679fi
26680if test -z "$ac_cpp_err"; then
26681 ac_header_preproc=yes
26682else
26683 echo "$as_me: failed program was:" >&5
26684sed 's/^/| /' conftest.$ac_ext >&5
26685
26686 ac_header_preproc=no
26687fi
26688rm -f conftest.err conftest.$ac_ext
26689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26690echo "${ECHO_T}$ac_header_preproc" >&6
26691
26692# So? What about this header?
ac1cb8d3
VS
26693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26694 yes:no: )
a848cd7e
SC
26695 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26696echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26697 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26698echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26699 ac_header_preproc=yes
a848cd7e 26700 ;;
ac1cb8d3 26701 no:yes:* )
a848cd7e
SC
26702 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26703echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26704 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26705echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26706 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26707echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26708 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26709echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26710 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26711echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26712 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26713echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26714 (
26715 cat <<\_ASBOX
ac1cb8d3
VS
26716## ----------------------------------------- ##
26717## Report this to wx-dev@lists.wxwidgets.org ##
26718## ----------------------------------------- ##
a848cd7e
SC
26719_ASBOX
26720 ) |
26721 sed "s/^/$as_me: WARNING: /" >&2
26722 ;;
26723esac
26724echo "$as_me:$LINENO: checking for sql.h" >&5
26725echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26726if test "${ac_cv_header_sql_h+set}" = set; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26728else
26729 ac_cv_header_sql_h=$ac_header_preproc
26730fi
26731echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26732echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26733
26734fi
26735if test $ac_cv_header_sql_h = yes; then
26736 found_sql_h=1
26737fi
26738
26739
26740 if test "x$found_sql_h" = "x1" ; then
26741 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26742echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26743if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26744 echo $ECHO_N "(cached) $ECHO_C" >&6
26745else
26746 ac_check_lib_save_LIBS=$LIBS
26747LIBS="-liodbc $LIBS"
26748cat >conftest.$ac_ext <<_ACEOF
26749/* confdefs.h. */
26750_ACEOF
26751cat confdefs.h >>conftest.$ac_ext
26752cat >>conftest.$ac_ext <<_ACEOF
26753/* end confdefs.h. */
26754
26755/* Override any gcc2 internal prototype to avoid an error. */
26756#ifdef __cplusplus
26757extern "C"
26758#endif
26759/* We use char because int might match the return type of a gcc2
26760 builtin and then its argument prototype would still apply. */
26761char SQLAllocEnv ();
26762int
26763main ()
26764{
26765SQLAllocEnv ();
26766 ;
26767 return 0;
26768}
26769_ACEOF
26770rm -f conftest.$ac_objext conftest$ac_exeext
26771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26772 (eval $ac_link) 2>conftest.er1
a848cd7e 26773 ac_status=$?
ac1cb8d3
VS
26774 grep -v '^ *+' conftest.er1 >conftest.err
26775 rm -f conftest.er1
26776 cat conftest.err >&5
a848cd7e
SC
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } &&
d51253e8 26779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26781 (eval $ac_try) 2>&5
26782 ac_status=$?
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); }; } &&
26785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26788 ac_status=$?
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; }; then
26791 ac_cv_lib_iodbc_SQLAllocEnv=yes
26792else
26793 echo "$as_me: failed program was:" >&5
26794sed 's/^/| /' conftest.$ac_ext >&5
26795
26796ac_cv_lib_iodbc_SQLAllocEnv=no
26797fi
ac1cb8d3
VS
26798rm -f conftest.err conftest.$ac_objext \
26799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26800LIBS=$ac_check_lib_save_LIBS
26801fi
26802echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26803echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26804if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26805 ODBC_LINK=" -liodbc"
26806else
26807
26808 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26809echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26810if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26811 echo $ECHO_N "(cached) $ECHO_C" >&6
26812else
26813 ac_check_lib_save_LIBS=$LIBS
26814LIBS="-lunixodbc $LIBS"
26815cat >conftest.$ac_ext <<_ACEOF
26816/* confdefs.h. */
26817_ACEOF
26818cat confdefs.h >>conftest.$ac_ext
26819cat >>conftest.$ac_ext <<_ACEOF
26820/* end confdefs.h. */
26821
26822/* Override any gcc2 internal prototype to avoid an error. */
26823#ifdef __cplusplus
26824extern "C"
26825#endif
26826/* We use char because int might match the return type of a gcc2
26827 builtin and then its argument prototype would still apply. */
26828char SQLAllocEnv ();
26829int
26830main ()
26831{
26832SQLAllocEnv ();
26833 ;
26834 return 0;
26835}
26836_ACEOF
26837rm -f conftest.$ac_objext conftest$ac_exeext
26838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26839 (eval $ac_link) 2>conftest.er1
a848cd7e 26840 ac_status=$?
ac1cb8d3
VS
26841 grep -v '^ *+' conftest.er1 >conftest.err
26842 rm -f conftest.er1
26843 cat conftest.err >&5
a848cd7e
SC
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
d51253e8 26846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26849 ac_status=$?
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; } &&
26852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854 (eval $ac_try) 2>&5
26855 ac_status=$?
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); }; }; then
26858 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26859else
26860 echo "$as_me: failed program was:" >&5
26861sed 's/^/| /' conftest.$ac_ext >&5
26862
26863ac_cv_lib_unixodbc_SQLAllocEnv=no
26864fi
ac1cb8d3
VS
26865rm -f conftest.err conftest.$ac_objext \
26866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26867LIBS=$ac_check_lib_save_LIBS
26868fi
26869echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26870echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26871if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26872 ODBC_LINK=" -lunixodbc"
26873else
26874
26875 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26876echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26877if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26879else
26880 ac_check_lib_save_LIBS=$LIBS
26881LIBS="-lodbc $LIBS"
26882cat >conftest.$ac_ext <<_ACEOF
26883/* confdefs.h. */
26884_ACEOF
26885cat confdefs.h >>conftest.$ac_ext
26886cat >>conftest.$ac_ext <<_ACEOF
26887/* end confdefs.h. */
26888
26889/* Override any gcc2 internal prototype to avoid an error. */
26890#ifdef __cplusplus
26891extern "C"
26892#endif
26893/* We use char because int might match the return type of a gcc2
26894 builtin and then its argument prototype would still apply. */
26895char SQLAllocEnv ();
26896int
26897main ()
26898{
26899SQLAllocEnv ();
26900 ;
26901 return 0;
26902}
26903_ACEOF
26904rm -f conftest.$ac_objext conftest$ac_exeext
26905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26906 (eval $ac_link) 2>conftest.er1
a848cd7e 26907 ac_status=$?
ac1cb8d3
VS
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
a848cd7e
SC
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
d51253e8 26913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; } &&
26919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; }; then
26925 ac_cv_lib_odbc_SQLAllocEnv=yes
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930ac_cv_lib_odbc_SQLAllocEnv=no
26931fi
ac1cb8d3
VS
26932rm -f conftest.err conftest.$ac_objext \
26933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26934LIBS=$ac_check_lib_save_LIBS
26935fi
26936echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26937echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26938if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26939 ODBC_LINK=" -lodbc"
26940fi
26941
26942
26943fi
26944
26945
26946fi
26947
26948 fi
26949 if test "x$ODBC_LINK" = "x" ; then
26950 if test "$wxUSE_ODBC" = "sys" ; then
26951 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26952echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26953 { (exit 1); exit 1; }; }
26954 else
26955 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26956echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26957 wxUSE_ODBC=builtin
26958 fi
26959 else
26960 wxUSE_ODBC=sys
26961 fi
26962 fi
26963 if test "$wxUSE_ODBC" != "no" ; then
26964 cat >>confdefs.h <<\_ACEOF
26965#define wxUSE_ODBC 1
26966_ACEOF
26967
26968 if test "$wxUSE_ODBC" = "builtin" ; then
26969 cat >>confdefs.h <<\_ACEOF
26970#define wxUSE_BUILTIN_IODBC 1
26971_ACEOF
26972
26973 fi
26974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26975
26976 WXODBCFLAG="-D_IODBC_"
26977 fi
26978fi
26979
a848cd7e 26980
01cb68df 26981
a848cd7e 26982if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26983 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26984 echo "$as_me:$LINENO: checking for Xinerama" >&5
26985echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26986
26987ac_find_libraries=
26988for ac_dir in $SEARCH_LIB /usr/lib;
26989 do
26990 for ac_extension in a so sl dylib; do
26991 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26992 ac_find_libraries=$ac_dir
26993 break 2
26994 fi
26995 done
26996 done
26997
26998 if test "$ac_find_libraries" != "" ; then
26999
27000 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27001 result=$?
27002 if test $result = 0; then
27003 ac_path_to_link=""
27004 else
27005 ac_path_to_link=" -L$ac_find_libraries"
27006 fi
27007
27008 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27009 LDFLAGS="$LDFLAGS $ac_path_to_link"
27010 fi
27011 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27012 echo "$as_me:$LINENO: result: yes" >&5
27013echo "${ECHO_T}yes" >&6
27014
27015 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27016echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27017
27018ac_find_libraries=
27019for ac_dir in $SEARCH_LIB /usr/lib;
27020 do
27021 for ac_extension in a so sl dylib; do
27022 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27023 ac_find_libraries=$ac_dir
27024 break 2
27025 fi
27026 done
27027 done
27028
27029 if test "$ac_find_libraries" != "" ; then
27030 echo "$as_me:$LINENO: result: yes" >&5
27031echo "${ECHO_T}yes" >&6
27032
27033for ac_header in X11/extensions/xf86vmode.h
27034do
27035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27036echo "$as_me:$LINENO: checking for $ac_header" >&5
27037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27038if eval "test \"\${$as_ac_Header+set}\" = set"; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27040else
27041 cat >conftest.$ac_ext <<_ACEOF
27042/* confdefs.h. */
27043_ACEOF
27044cat confdefs.h >>conftest.$ac_ext
27045cat >>conftest.$ac_ext <<_ACEOF
27046/* end confdefs.h. */
27047
27048 #if HAVE_X11_XLIB_H
27049 #include <X11/Xlib.h>
27050 #endif
27051
27052
27053#include <$ac_header>
27054_ACEOF
27055rm -f conftest.$ac_objext
27056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27057 (eval $ac_compile) 2>conftest.er1
a848cd7e 27058 ac_status=$?
ac1cb8d3
VS
27059 grep -v '^ *+' conftest.er1 >conftest.err
27060 rm -f conftest.er1
27061 cat conftest.err >&5
a848cd7e
SC
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
d51253e8 27064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27067 ac_status=$?
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; } &&
27070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27073 ac_status=$?
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; }; then
27076 eval "$as_ac_Header=yes"
27077else
27078 echo "$as_me: failed program was:" >&5
27079sed 's/^/| /' conftest.$ac_ext >&5
27080
27081eval "$as_ac_Header=no"
27082fi
ac1cb8d3 27083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27084fi
27085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27087if test `eval echo '${'$as_ac_Header'}'` = yes; then
27088 cat >>confdefs.h <<_ACEOF
27089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27090_ACEOF
27091
27092 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27093
27094fi
27095
27096done
27097
27098 else
27099 echo "$as_me:$LINENO: result: no" >&5
27100echo "${ECHO_T}no" >&6
27101 fi
27102
27103 else
27104 echo "$as_me:$LINENO: result: no" >&5
27105echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27106 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27107echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27108 wxUSE_DISPLAY="no"
27109 fi
01cb68df
RG
27110 elif test "$wxUSE_MSW" = 1; then
27111
27112
27113for ac_header in multimon.h ddraw.h
27114do
27115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27116if eval "test \"\${$as_ac_Header+set}\" = set"; then
27117 echo "$as_me:$LINENO: checking for $ac_header" >&5
27118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27119if eval "test \"\${$as_ac_Header+set}\" = set"; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27121fi
27122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27124else
27125 # Is the header compilable?
27126echo "$as_me:$LINENO: checking $ac_header usability" >&5
27127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27128cat >conftest.$ac_ext <<_ACEOF
27129/* confdefs.h. */
27130_ACEOF
27131cat confdefs.h >>conftest.$ac_ext
27132cat >>conftest.$ac_ext <<_ACEOF
27133/* end confdefs.h. */
27134$ac_includes_default
27135#include <$ac_header>
27136_ACEOF
27137rm -f conftest.$ac_objext
27138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27139 (eval $ac_compile) 2>conftest.er1
01cb68df 27140 ac_status=$?
ac1cb8d3
VS
27141 grep -v '^ *+' conftest.er1 >conftest.err
27142 rm -f conftest.er1
27143 cat conftest.err >&5
01cb68df
RG
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } &&
d51253e8 27146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; } &&
27152 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; }; then
27158 ac_header_compiler=yes
27159else
27160 echo "$as_me: failed program was:" >&5
27161sed 's/^/| /' conftest.$ac_ext >&5
27162
27163ac_header_compiler=no
27164fi
ac1cb8d3 27165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27167echo "${ECHO_T}$ac_header_compiler" >&6
27168
27169# Is the header present?
27170echo "$as_me:$LINENO: checking $ac_header presence" >&5
27171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27172cat >conftest.$ac_ext <<_ACEOF
27173/* confdefs.h. */
27174_ACEOF
27175cat confdefs.h >>conftest.$ac_ext
27176cat >>conftest.$ac_ext <<_ACEOF
27177/* end confdefs.h. */
27178#include <$ac_header>
27179_ACEOF
27180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27182 ac_status=$?
27183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } >/dev/null; then
27188 if test -s conftest.err; then
27189 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27191 else
27192 ac_cpp_err=
27193 fi
27194else
27195 ac_cpp_err=yes
27196fi
27197if test -z "$ac_cpp_err"; then
27198 ac_header_preproc=yes
27199else
27200 echo "$as_me: failed program was:" >&5
27201sed 's/^/| /' conftest.$ac_ext >&5
27202
27203 ac_header_preproc=no
27204fi
27205rm -f conftest.err conftest.$ac_ext
27206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27207echo "${ECHO_T}$ac_header_preproc" >&6
27208
27209# So? What about this header?
ac1cb8d3
VS
27210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27211 yes:no: )
01cb68df
RG
27212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27216 ac_header_preproc=yes
01cb68df 27217 ;;
ac1cb8d3 27218 no:yes:* )
01cb68df
RG
27219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27231 (
27232 cat <<\_ASBOX
ac1cb8d3
VS
27233## ----------------------------------------- ##
27234## Report this to wx-dev@lists.wxwidgets.org ##
27235## ----------------------------------------- ##
01cb68df
RG
27236_ASBOX
27237 ) |
27238 sed "s/^/$as_me: WARNING: /" >&2
27239 ;;
27240esac
27241echo "$as_me:$LINENO: checking for $ac_header" >&5
27242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27243if eval "test \"\${$as_ac_Header+set}\" = set"; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27245else
ac1cb8d3 27246 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27247fi
27248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27250
27251fi
27252if test `eval echo '${'$as_ac_Header'}'` = yes; then
27253 cat >>confdefs.h <<_ACEOF
27254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27255_ACEOF
27256
27257else
27258
27259 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27260 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27261echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27262
27263fi
27264
27265done
27266
a848cd7e
SC
27267 fi
27268fi
27269
27270
3b57de8b
RL
27271if test "$wxUSE_MEDIACTRL" = "yes"; then
27272 if test "$wxUSE_MSW" = 1; then
27273 wxUSE_DIRECTSHOW="yes"
27274
27275for ac_header in dshow.h
27276do
27277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27278if eval "test \"\${$as_ac_Header+set}\" = set"; then
27279 echo "$as_me:$LINENO: checking for $ac_header" >&5
27280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27281if eval "test \"\${$as_ac_Header+set}\" = set"; then
27282 echo $ECHO_N "(cached) $ECHO_C" >&6
27283fi
27284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27286else
27287 # Is the header compilable?
27288echo "$as_me:$LINENO: checking $ac_header usability" >&5
27289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27290cat >conftest.$ac_ext <<_ACEOF
27291/* confdefs.h. */
27292_ACEOF
27293cat confdefs.h >>conftest.$ac_ext
27294cat >>conftest.$ac_ext <<_ACEOF
27295/* end confdefs.h. */
27296$ac_includes_default
27297#include <$ac_header>
27298_ACEOF
27299rm -f conftest.$ac_objext
27300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27301 (eval $ac_compile) 2>conftest.er1
27302 ac_status=$?
27303 grep -v '^ *+' conftest.er1 >conftest.err
27304 rm -f conftest.er1
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } &&
d51253e8 27308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3b57de8b
RL
27309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27310 (eval $ac_try) 2>&5
27311 ac_status=$?
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; } &&
27314 { ac_try='test -s conftest.$ac_objext'
27315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27316 (eval $ac_try) 2>&5
27317 ac_status=$?
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); }; }; then
27320 ac_header_compiler=yes
27321else
27322 echo "$as_me: failed program was:" >&5
27323sed 's/^/| /' conftest.$ac_ext >&5
27324
27325ac_header_compiler=no
27326fi
27327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27329echo "${ECHO_T}$ac_header_compiler" >&6
27330
27331# Is the header present?
27332echo "$as_me:$LINENO: checking $ac_header presence" >&5
27333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27334cat >conftest.$ac_ext <<_ACEOF
27335/* confdefs.h. */
27336_ACEOF
27337cat confdefs.h >>conftest.$ac_ext
27338cat >>conftest.$ac_ext <<_ACEOF
27339/* end confdefs.h. */
27340#include <$ac_header>
27341_ACEOF
27342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27344 ac_status=$?
27345 grep -v '^ *+' conftest.er1 >conftest.err
27346 rm -f conftest.er1
27347 cat conftest.err >&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } >/dev/null; then
27350 if test -s conftest.err; then
27351 ac_cpp_err=$ac_c_preproc_warn_flag
27352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27353 else
27354 ac_cpp_err=
27355 fi
27356else
27357 ac_cpp_err=yes
27358fi
27359if test -z "$ac_cpp_err"; then
27360 ac_header_preproc=yes
27361else
27362 echo "$as_me: failed program was:" >&5
27363sed 's/^/| /' conftest.$ac_ext >&5
27364
27365 ac_header_preproc=no
27366fi
27367rm -f conftest.err conftest.$ac_ext
27368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27369echo "${ECHO_T}$ac_header_preproc" >&6
27370
27371# So? What about this header?
27372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27373 yes:no: )
27374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27378 ac_header_preproc=yes
27379 ;;
27380 no:yes:* )
27381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27384echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27388echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27393 (
27394 cat <<\_ASBOX
27395## ----------------------------------------- ##
27396## Report this to wx-dev@lists.wxwidgets.org ##
27397## ----------------------------------------- ##
27398_ASBOX
27399 ) |
27400 sed "s/^/$as_me: WARNING: /" >&2
27401 ;;
27402esac
27403echo "$as_me:$LINENO: checking for $ac_header" >&5
27404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27405if eval "test \"\${$as_ac_Header+set}\" = set"; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27407else
27408 eval "$as_ac_Header=\$ac_header_preproc"
27409fi
27410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27412
27413fi
27414if test `eval echo '${'$as_ac_Header'}'` = yes; then
27415 cat >>confdefs.h <<_ACEOF
27416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27417_ACEOF
27418
27419else
27420
27421 wxUSE_DIRECTSHOW="no"
27422 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
27423echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27424
27425fi
27426
27427done
27428
27429
27430 if test "$wxUSE_DIRECTSHOW" = "yes"; then
27431 cat >>confdefs.h <<\_ACEOF
27432#define wxUSE_DIRECTSHOW 1
27433_ACEOF
27434
27435 LIBS="$LIBS -lstrmiids"
a98bf0c0 27436 fi
3b57de8b 27437 fi
7e4a1c28
RN
27438
27439 cat >>confdefs.h <<\_ACEOF
27440#define wxUSE_MEDIACTRL 1
27441_ACEOF
27442
3b57de8b
RL
27443fi
27444
27445
a848cd7e
SC
27446USE_OPENGL=0
27447if test "$wxUSE_OPENGL" = "yes"; then
27448 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27449 OPENGL_LIBS="-framework OpenGL -framework AGL"
27450 elif test "$wxUSE_MSW" = 1; then
27451 OPENGL_LIBS="-lopengl32 -lglu32"
27452 else
27453
27454
27455ac_find_includes=
27456for ac_dir in $SEARCH_INCLUDE /usr/include;
27457 do
27458 if test -f "$ac_dir/GL/gl.h"; then
27459 ac_find_includes=$ac_dir
27460 break
27461 fi
27462 done
27463
27464 if test "$ac_find_includes" != "" ; then
27465 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27466echo "${ECHO_T}found in $ac_find_includes" >&6
27467
27468 if test "x$ac_find_includes" = "x/usr/include"; then
27469 ac_path_to_include=""
27470 else
27471 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27472 result=$?
27473 if test $result = 0; then
27474 ac_path_to_include=""
27475 else
27476 ac_path_to_include=" -I$ac_find_includes"
27477 fi
27478 fi
27479
27480 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27481 fi
27482
27483 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27484 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27485echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27486if test "${ac_cv_header_GL_gl_h+set}" = set; then
27487 echo $ECHO_N "(cached) $ECHO_C" >&6
27488fi
27489echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27490echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27491else
27492 # Is the header compilable?
27493echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27494echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27495cat >conftest.$ac_ext <<_ACEOF
27496/* confdefs.h. */
27497_ACEOF
27498cat confdefs.h >>conftest.$ac_ext
27499cat >>conftest.$ac_ext <<_ACEOF
27500/* end confdefs.h. */
27501$ac_includes_default
27502#include <GL/gl.h>
27503_ACEOF
27504rm -f conftest.$ac_objext
27505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27506 (eval $ac_compile) 2>conftest.er1
a848cd7e 27507 ac_status=$?
ac1cb8d3
VS
27508 grep -v '^ *+' conftest.er1 >conftest.err
27509 rm -f conftest.er1
27510 cat conftest.err >&5
a848cd7e
SC
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } &&
d51253e8 27513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27516 ac_status=$?
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; } &&
27519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
27525 ac_header_compiler=yes
27526else
27527 echo "$as_me: failed program was:" >&5
27528sed 's/^/| /' conftest.$ac_ext >&5
27529
27530ac_header_compiler=no
27531fi
ac1cb8d3 27532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27534echo "${ECHO_T}$ac_header_compiler" >&6
27535
27536# Is the header present?
27537echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27538echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27539cat >conftest.$ac_ext <<_ACEOF
27540/* confdefs.h. */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h. */
27545#include <GL/gl.h>
27546_ACEOF
27547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27549 ac_status=$?
27550 grep -v '^ *+' conftest.er1 >conftest.err
27551 rm -f conftest.er1
27552 cat conftest.err >&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); } >/dev/null; then
27555 if test -s conftest.err; then
27556 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27558 else
27559 ac_cpp_err=
27560 fi
27561else
27562 ac_cpp_err=yes
27563fi
27564if test -z "$ac_cpp_err"; then
27565 ac_header_preproc=yes
27566else
27567 echo "$as_me: failed program was:" >&5
27568sed 's/^/| /' conftest.$ac_ext >&5
27569
27570 ac_header_preproc=no
27571fi
27572rm -f conftest.err conftest.$ac_ext
27573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27574echo "${ECHO_T}$ac_header_preproc" >&6
27575
27576# So? What about this header?
ac1cb8d3
VS
27577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27578 yes:no: )
a848cd7e
SC
27579 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27580echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27581 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27582echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27583 ac_header_preproc=yes
a848cd7e 27584 ;;
ac1cb8d3 27585 no:yes:* )
a848cd7e
SC
27586 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27587echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27588 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27589echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27590 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27591echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27592 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27593echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27594 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27595echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27596 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27597echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27598 (
27599 cat <<\_ASBOX
ac1cb8d3
VS
27600## ----------------------------------------- ##
27601## Report this to wx-dev@lists.wxwidgets.org ##
27602## ----------------------------------------- ##
a848cd7e
SC
27603_ASBOX
27604 ) |
27605 sed "s/^/$as_me: WARNING: /" >&2
27606 ;;
27607esac
27608echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27609echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27610if test "${ac_cv_header_GL_gl_h+set}" = set; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27612else
27613 ac_cv_header_GL_gl_h=$ac_header_preproc
27614fi
27615echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27616echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27617
27618fi
27619if test $ac_cv_header_GL_gl_h = yes; then
27620
27621 found_gl=0
27622
27623 echo "$as_me:$LINENO: checking for -lGL" >&5
27624echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27625
27626ac_find_libraries=
27627for ac_dir in $SEARCH_LIB /usr/lib;
27628 do
27629 for ac_extension in a so sl dylib; do
27630 if test -f "$ac_dir/libGL.$ac_extension"; then
27631 ac_find_libraries=$ac_dir
27632 break 2
27633 fi
27634 done
27635 done
27636
27637 if test "$ac_find_libraries" != "" ; then
27638
27639 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27640 result=$?
27641 if test $result = 0; then
27642 ac_path_to_link=""
27643 else
27644 ac_path_to_link=" -L$ac_find_libraries"
27645 fi
27646
27647 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27648 LDFLAGS_GL="$ac_path_to_link"
27649 fi
27650
27651
27652ac_find_libraries=
27653for ac_dir in $SEARCH_LIB /usr/lib;
27654 do
27655 for ac_extension in a so sl dylib; do
27656 if test -f "$ac_dir/libGLU.$ac_extension"; then
27657 ac_find_libraries=$ac_dir
27658 break 2
27659 fi
27660 done
27661 done
27662
27663 if test "$ac_find_libraries" != "" ; then
27664
27665 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27666 result=$?
27667 if test $result = 0; then
27668 ac_path_to_link=""
27669 else
27670 ac_path_to_link=" -L$ac_find_libraries"
27671 fi
27672
27673 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27674 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27675 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27676 fi
27677
27678 found_gl=1
27679 OPENGL_LIBS="-lGL -lGLU"
27680 echo "$as_me:$LINENO: result: yes" >&5
27681echo "${ECHO_T}yes" >&6
27682 fi
27683 fi
27684
27685 if test "$found_gl" != 1; then
27686 echo "$as_me:$LINENO: result: no" >&5
27687echo "${ECHO_T}no" >&6
27688 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27689echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27690
27691ac_find_libraries=
27692for ac_dir in $SEARCH_LIB /usr/lib;
27693 do
27694 for ac_extension in a so sl dylib; do
27695 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27696 ac_find_libraries=$ac_dir
27697 break 2
27698 fi
27699 done
27700 done
27701
27702 if test "$ac_find_libraries" != "" ; then
27703
27704 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27705 result=$?
27706 if test $result = 0; then
27707 ac_path_to_link=""
27708 else
27709 ac_path_to_link=" -L$ac_find_libraries"
27710 fi
27711
27712 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27713 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27714 echo "$as_me:$LINENO: result: yes" >&5
27715echo "${ECHO_T}yes" >&6
27716 else
27717 echo "$as_me:$LINENO: result: no" >&5
27718echo "${ECHO_T}no" >&6
27719 fi
27720 fi
27721
27722fi
27723
27724
27725
27726 if test "x$OPENGL_LIBS" = "x"; then
27727 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27728echo "$as_me: error: OpenGL libraries not available" >&2;}
27729 { (exit 1); exit 1; }; }
27730 fi
27731 fi
27732
27733 if test "$wxUSE_OPENGL" = "yes"; then
27734 USE_OPENGL=1
27735 cat >>confdefs.h <<\_ACEOF
27736#define wxUSE_OPENGL 1
27737_ACEOF
27738
27739 cat >>confdefs.h <<\_ACEOF
27740#define wxUSE_GLCANVAS 1
27741_ACEOF
27742
27743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27744 fi
27745fi
27746
a848cd7e
SC
27747
27748if test -n "$TOOLKIT" ; then
27749 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27750fi
27751
a848cd7e
SC
27752
27753
27754if test "$wxUSE_SHARED" = "yes"; then
27755 case "${host}" in
27756 *-pc-msdosdjgpp )
27757 wxUSE_SHARED=no
27758 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27759echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27760 ;;
27761 esac
27762fi
27763
a848cd7e 27764if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27765
27766
27767 found_versioning=no
27768
27769
27770 if test $found_versioning = no ; then
27771 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27772echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27773if test "${wx_cv_version_script+set}" = set; then
27774 echo $ECHO_N "(cached) $ECHO_C" >&6
27775else
27776
27777 echo "VER_1 { *; };" >conftest.sym
27778 echo "int main() { return 0; }" >conftest.cpp
27779
27780 if { ac_try='
27781 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27782 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784 (eval $ac_try) 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; } ; then
27788 if test -s conftest.stderr ; then
27789 wx_cv_version_script=no
27790 else
27791 wx_cv_version_script=yes
27792 fi
27793 else
27794 wx_cv_version_script=no
27795 fi
27796 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27797
27798fi
27799echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27800echo "${ECHO_T}$wx_cv_version_script" >&6
27801 if test $wx_cv_version_script = yes ; then
27802 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27803 fi
27804 fi
27805
27806
27807 case "${host}" in
27808 *-*-linux* | *-*-gnu* )
27809 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27810 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27811 ;;
27812
27813 *-*-solaris2* )
27814 if test "$GCC" = yes ; then
27815 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27816
27817 saveLdflags="$LDFLAGS"
27818 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27819 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27820echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27821 cat >conftest.$ac_ext <<_ACEOF
27822/* confdefs.h. */
27823_ACEOF
27824cat confdefs.h >>conftest.$ac_ext
27825cat >>conftest.$ac_ext <<_ACEOF
27826/* end confdefs.h. */
27827
27828int
27829main ()
27830{
27831
27832 ;
27833 return 0;
27834}
27835_ACEOF
27836rm -f conftest.$ac_objext conftest$ac_exeext
27837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27838 (eval $ac_link) 2>conftest.er1
a848cd7e 27839 ac_status=$?
ac1cb8d3
VS
27840 grep -v '^ *+' conftest.er1 >conftest.err
27841 rm -f conftest.er1
27842 cat conftest.err >&5
a848cd7e
SC
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); } &&
d51253e8 27845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847 (eval $ac_try) 2>&5
27848 ac_status=$?
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); }; } &&
27851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27853 (eval $ac_try) 2>&5
27854 ac_status=$?
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); }; }; then
27857
27858 echo "$as_me:$LINENO: result: yes" >&5
27859echo "${ECHO_T}yes" >&6
27860 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27861 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27862
27863else
27864 echo "$as_me: failed program was:" >&5
27865sed 's/^/| /' conftest.$ac_ext >&5
27866
27867
27868 echo "$as_me:$LINENO: result: no" >&5
27869echo "${ECHO_T}no" >&6
27870 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27871echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27872 LDFLAGS="$saveLdflags -Wl,-R,/"
27873 cat >conftest.$ac_ext <<_ACEOF
27874/* confdefs.h. */
27875_ACEOF
27876cat confdefs.h >>conftest.$ac_ext
27877cat >>conftest.$ac_ext <<_ACEOF
27878/* end confdefs.h. */
27879
27880int
27881main ()
27882{
27883
27884 ;
27885 return 0;
27886}
27887_ACEOF
27888rm -f conftest.$ac_objext conftest$ac_exeext
27889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27890 (eval $ac_link) 2>conftest.er1
a848cd7e 27891 ac_status=$?
ac1cb8d3
VS
27892 grep -v '^ *+' conftest.er1 >conftest.err
27893 rm -f conftest.er1
27894 cat conftest.err >&5
a848cd7e
SC
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); } &&
d51253e8 27897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27899 (eval $ac_try) 2>&5
27900 ac_status=$?
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); }; } &&
27903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27905 (eval $ac_try) 2>&5
27906 ac_status=$?
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); }; }; then
27909
ffa0583f 27910 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 27911echo "${ECHO_T}yes" >&6
ffa0583f
RL
27912 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27913 WXCONFIG_RPATH="-Wl,-R,\$libdir"
27914
a848cd7e
SC
27915else
27916 echo "$as_me: failed program was:" >&5
27917sed 's/^/| /' conftest.$ac_ext >&5
27918
27919
27920 echo "$as_me:$LINENO: result: no" >&5
27921echo "${ECHO_T}no" >&6
27922
27923fi
ac1cb8d3
VS
27924rm -f conftest.err conftest.$ac_objext \
27925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27926
27927fi
ac1cb8d3
VS
27928rm -f conftest.err conftest.$ac_objext \
27929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27930 LDFLAGS="$saveLdflags"
27931 else
a848cd7e 27932 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 27933 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
27934 fi
27935 ;;
27936
27937 powerpc-*-darwin* )
27938 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27939 cat <<EOF >change-install-names
27940#!/bin/sh
27941libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27942inst_cmd="install_name_tool "
27943for i in \${libnames} ; do
27944 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27945done
27946\${inst_cmd} \${3}
27947EOF
27948 chmod +x change-install-names
27949 ;;
27950
27951 *-*-cygwin* | *-*-mingw32* )
27952 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27953 ;;
27954
27955 esac
ceec2216 27956
ffa0583f
RL
27957 if test $wxUSE_RPATH = "no"; then
27958 SAMPLES_RPATH_FLAG=''
27959 SAMPLES_RPATH_POSTLINK=''
27960 WXCONFIG_RPATH=''
27961 fi
27962
27963 SHARED=1
27964
27965else
27966
ceec2216
RL
27967 config_linkage_component="-static"
27968 SHARED=0
ffa0583f 27969
ceec2216 27970fi
a848cd7e 27971
a848cd7e 27972
ceec2216
RL
27973UNICODE=0
27974lib_unicode_suffix=
27975WX_CHARTYPE="ansi"
27976if test "$wxUSE_UNICODE" = "yes"; then
27977 lib_unicode_suffix=u
27978 WX_CHARTYPE="unicode"
27979 UNICODE=1
a848cd7e
SC
27980fi
27981
ceec2216
RL
27982lib_debug_suffix=
27983WX_DEBUGTYPE="release"
27984DEBUG_FLAG=0
27985if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27986 lib_debug_suffix=d
27987 WX_DEBUGTYPE="debug"
27988 DEBUG_FLAG=1
27989fi
a848cd7e 27990
ceec2216
RL
27991WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27992WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27993
ceec2216
RL
27994DEBUG_INFO=0
27995if test "$wxUSE_DEBUG_INFO" = "yes"; then
27996 DEBUG_INFO=1
27997fi
a848cd7e 27998
ceec2216 27999WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28000
ceec2216 28001TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28002
ceec2216 28003TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28004
ceec2216
RL
28005if test "$cross_compiling" = "yes"; then
28006 HOST_SUFFIX="-$host_alias"
28007 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28008 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28009fi
28010
dd21ced8 28011WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28012WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28013
28014
28015
a848cd7e 28016if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28017 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28018 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28019
a848cd7e 28020 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28021
28022 # Extract the first word of "Rez", so it can be a program name with args.
28023set dummy Rez; ac_word=$2
28024echo "$as_me:$LINENO: checking for $ac_word" >&5
28025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28026if test "${ac_cv_prog_RESCOMP+set}" = set; then
28027 echo $ECHO_N "(cached) $ECHO_C" >&6
28028else
28029 if test -n "$RESCOMP"; then
28030 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28031else
28032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28033for as_dir in $PATH
28034do
28035 IFS=$as_save_IFS
28036 test -z "$as_dir" && as_dir=.
28037 for ac_exec_ext in '' $ac_executable_extensions; do
28038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28039 ac_cv_prog_RESCOMP="Rez"
28040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28041 break 2
28042 fi
28043done
28044done
28045
28046 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28047fi
28048fi
28049RESCOMP=$ac_cv_prog_RESCOMP
28050if test -n "$RESCOMP"; then
28051 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28052echo "${ECHO_T}$RESCOMP" >&6
28053else
28054 echo "$as_me:$LINENO: result: no" >&5
28055echo "${ECHO_T}no" >&6
28056fi
28057
28058 # Extract the first word of "DeRez", so it can be a program name with args.
28059set dummy DeRez; ac_word=$2
28060echo "$as_me:$LINENO: checking for $ac_word" >&5
28061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28062if test "${ac_cv_prog_DEREZ+set}" = set; then
28063 echo $ECHO_N "(cached) $ECHO_C" >&6
28064else
28065 if test -n "$DEREZ"; then
28066 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28067else
28068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28069for as_dir in $PATH
28070do
28071 IFS=$as_save_IFS
28072 test -z "$as_dir" && as_dir=.
28073 for ac_exec_ext in '' $ac_executable_extensions; do
28074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28075 ac_cv_prog_DEREZ="DeRez"
28076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28077 break 2
28078 fi
28079done
28080done
28081
28082 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28083fi
28084fi
28085DEREZ=$ac_cv_prog_DEREZ
28086if test -n "$DEREZ"; then
28087 echo "$as_me:$LINENO: result: $DEREZ" >&5
28088echo "${ECHO_T}$DEREZ" >&6
28089else
28090 echo "$as_me:$LINENO: result: no" >&5
28091echo "${ECHO_T}no" >&6
28092fi
28093
28094 # Extract the first word of "SetFile", so it can be a program name with args.
28095set dummy SetFile; ac_word=$2
28096echo "$as_me:$LINENO: checking for $ac_word" >&5
28097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28098if test "${ac_cv_prog_SETFILE+set}" = set; then
28099 echo $ECHO_N "(cached) $ECHO_C" >&6
28100else
28101 if test -n "$SETFILE"; then
28102 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28103else
28104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28105for as_dir in $PATH
28106do
28107 IFS=$as_save_IFS
28108 test -z "$as_dir" && as_dir=.
28109 for ac_exec_ext in '' $ac_executable_extensions; do
28110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28111 ac_cv_prog_SETFILE="SetFile"
28112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28113 break 2
28114 fi
28115done
28116done
28117
28118 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28119fi
28120fi
28121SETFILE=$ac_cv_prog_SETFILE
28122if test -n "$SETFILE"; then
28123 echo "$as_me:$LINENO: result: $SETFILE" >&5
28124echo "${ECHO_T}$SETFILE" >&6
28125else
28126 echo "$as_me:$LINENO: result: no" >&5
28127echo "${ECHO_T}no" >&6
28128fi
28129
28130
28131 MACSETFILE="\$(SETFILE)"
28132
28133 if test "$wxUSE_MAC" = 1; then
28134 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28135
28136 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28137 else
28138 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28139 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28140 fi
28141else
ffa0583f
RL
28142 MACSETFILE="@true"
28143 MACRESWXCONFIG="@true"
a848cd7e
SC
28144
28145 if test "$wxUSE_PM" = 1; then
28146 MACRESCOMP="emxbind -ep"
28147 else
ffa0583f 28148 MACRESCOMP="@true"
a848cd7e
SC
28149 fi
28150fi
28151
28152
28153
28154echo "$as_me:$LINENO: checking for mode_t" >&5
28155echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28156if test "${ac_cv_type_mode_t+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28158else
28159 cat >conftest.$ac_ext <<_ACEOF
28160/* confdefs.h. */
28161_ACEOF
28162cat confdefs.h >>conftest.$ac_ext
28163cat >>conftest.$ac_ext <<_ACEOF
28164/* end confdefs.h. */
28165$ac_includes_default
28166int
28167main ()
28168{
28169if ((mode_t *) 0)
28170 return 0;
28171if (sizeof (mode_t))
28172 return 0;
28173 ;
28174 return 0;
28175}
28176_ACEOF
28177rm -f conftest.$ac_objext
28178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28179 (eval $ac_compile) 2>conftest.er1
a848cd7e 28180 ac_status=$?
ac1cb8d3
VS
28181 grep -v '^ *+' conftest.er1 >conftest.err
28182 rm -f conftest.er1
28183 cat conftest.err >&5
a848cd7e
SC
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); } &&
d51253e8 28186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28188 (eval $ac_try) 2>&5
28189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; } &&
28192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194 (eval $ac_try) 2>&5
28195 ac_status=$?
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; }; then
28198 ac_cv_type_mode_t=yes
28199else
28200 echo "$as_me: failed program was:" >&5
28201sed 's/^/| /' conftest.$ac_ext >&5
28202
28203ac_cv_type_mode_t=no
28204fi
ac1cb8d3 28205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28206fi
28207echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28208echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28209if test $ac_cv_type_mode_t = yes; then
28210 :
28211else
28212
28213cat >>confdefs.h <<_ACEOF
28214#define mode_t int
28215_ACEOF
28216
28217fi
28218
28219echo "$as_me:$LINENO: checking for off_t" >&5
28220echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28221if test "${ac_cv_type_off_t+set}" = set; then
28222 echo $ECHO_N "(cached) $ECHO_C" >&6
28223else
28224 cat >conftest.$ac_ext <<_ACEOF
28225/* confdefs.h. */
28226_ACEOF
28227cat confdefs.h >>conftest.$ac_ext
28228cat >>conftest.$ac_ext <<_ACEOF
28229/* end confdefs.h. */
28230$ac_includes_default
28231int
28232main ()
28233{
28234if ((off_t *) 0)
28235 return 0;
28236if (sizeof (off_t))
28237 return 0;
28238 ;
28239 return 0;
28240}
28241_ACEOF
28242rm -f conftest.$ac_objext
28243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28244 (eval $ac_compile) 2>conftest.er1
a848cd7e 28245 ac_status=$?
ac1cb8d3
VS
28246 grep -v '^ *+' conftest.er1 >conftest.err
28247 rm -f conftest.er1
28248 cat conftest.err >&5
a848cd7e
SC
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); } &&
d51253e8 28251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253 (eval $ac_try) 2>&5
28254 ac_status=$?
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; } &&
28257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259 (eval $ac_try) 2>&5
28260 ac_status=$?
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; }; then
28263 ac_cv_type_off_t=yes
28264else
28265 echo "$as_me: failed program was:" >&5
28266sed 's/^/| /' conftest.$ac_ext >&5
28267
28268ac_cv_type_off_t=no
28269fi
ac1cb8d3 28270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28271fi
28272echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28273echo "${ECHO_T}$ac_cv_type_off_t" >&6
28274if test $ac_cv_type_off_t = yes; then
28275 :
28276else
28277
28278cat >>confdefs.h <<_ACEOF
28279#define off_t long
28280_ACEOF
28281
28282fi
28283
28284echo "$as_me:$LINENO: checking for pid_t" >&5
28285echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28286if test "${ac_cv_type_pid_t+set}" = set; then
28287 echo $ECHO_N "(cached) $ECHO_C" >&6
28288else
28289 cat >conftest.$ac_ext <<_ACEOF
28290/* confdefs.h. */
28291_ACEOF
28292cat confdefs.h >>conftest.$ac_ext
28293cat >>conftest.$ac_ext <<_ACEOF
28294/* end confdefs.h. */
28295$ac_includes_default
28296int
28297main ()
28298{
28299if ((pid_t *) 0)
28300 return 0;
28301if (sizeof (pid_t))
28302 return 0;
28303 ;
28304 return 0;
28305}
28306_ACEOF
28307rm -f conftest.$ac_objext
28308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28309 (eval $ac_compile) 2>conftest.er1
a848cd7e 28310 ac_status=$?
ac1cb8d3
VS
28311 grep -v '^ *+' conftest.er1 >conftest.err
28312 rm -f conftest.er1
28313 cat conftest.err >&5
a848cd7e
SC
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); } &&
d51253e8 28316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28318 (eval $ac_try) 2>&5
28319 ac_status=$?
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; } &&
28322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28324 (eval $ac_try) 2>&5
28325 ac_status=$?
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); }; }; then
28328 ac_cv_type_pid_t=yes
28329else
28330 echo "$as_me: failed program was:" >&5
28331sed 's/^/| /' conftest.$ac_ext >&5
28332
28333ac_cv_type_pid_t=no
28334fi
ac1cb8d3 28335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28336fi
28337echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28338echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28339if test $ac_cv_type_pid_t = yes; then
28340 :
28341else
28342
28343cat >>confdefs.h <<_ACEOF
28344#define pid_t int
28345_ACEOF
28346
28347fi
28348
28349echo "$as_me:$LINENO: checking for size_t" >&5
28350echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28351if test "${ac_cv_type_size_t+set}" = set; then
28352 echo $ECHO_N "(cached) $ECHO_C" >&6
28353else
28354 cat >conftest.$ac_ext <<_ACEOF
28355/* confdefs.h. */
28356_ACEOF
28357cat confdefs.h >>conftest.$ac_ext
28358cat >>conftest.$ac_ext <<_ACEOF
28359/* end confdefs.h. */
28360$ac_includes_default
28361int
28362main ()
28363{
28364if ((size_t *) 0)
28365 return 0;
28366if (sizeof (size_t))
28367 return 0;
28368 ;
28369 return 0;
28370}
28371_ACEOF
28372rm -f conftest.$ac_objext
28373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28374 (eval $ac_compile) 2>conftest.er1
a848cd7e 28375 ac_status=$?
ac1cb8d3
VS
28376 grep -v '^ *+' conftest.er1 >conftest.err
28377 rm -f conftest.er1
28378 cat conftest.err >&5
a848cd7e
SC
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); } &&
d51253e8 28381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28383 (eval $ac_try) 2>&5
28384 ac_status=$?
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; } &&
28387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28389 (eval $ac_try) 2>&5
28390 ac_status=$?
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); }; }; then
28393 ac_cv_type_size_t=yes
28394else
28395 echo "$as_me: failed program was:" >&5
28396sed 's/^/| /' conftest.$ac_ext >&5
28397
28398ac_cv_type_size_t=no
28399fi
ac1cb8d3 28400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28401fi
28402echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28403echo "${ECHO_T}$ac_cv_type_size_t" >&6
28404if test $ac_cv_type_size_t = yes; then
28405 :
28406else
28407
28408cat >>confdefs.h <<_ACEOF
28409#define size_t unsigned
28410_ACEOF
28411
28412fi
28413
28414echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28415echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28416if test "${ac_cv_type_uid_t+set}" = set; then
28417 echo $ECHO_N "(cached) $ECHO_C" >&6
28418else
28419 cat >conftest.$ac_ext <<_ACEOF
28420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
28425#include <sys/types.h>
28426
28427_ACEOF
28428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28429 $EGREP "uid_t" >/dev/null 2>&1; then
28430 ac_cv_type_uid_t=yes
28431else
28432 ac_cv_type_uid_t=no
28433fi
28434rm -f conftest*
28435
28436fi
28437echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28438echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28439if test $ac_cv_type_uid_t = no; then
28440
28441cat >>confdefs.h <<\_ACEOF
28442#define uid_t int
28443_ACEOF
28444
28445
28446cat >>confdefs.h <<\_ACEOF
28447#define gid_t int
28448_ACEOF
28449
28450fi
28451
28452
d51253e8
RL
28453echo "$as_me:$LINENO: checking for ssize_t" >&5
28454echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28455if test "${ac_cv_type_ssize_t+set}" = set; then
28456 echo $ECHO_N "(cached) $ECHO_C" >&6
28457else
28458 cat >conftest.$ac_ext <<_ACEOF
28459/* confdefs.h. */
28460_ACEOF
28461cat confdefs.h >>conftest.$ac_ext
28462cat >>conftest.$ac_ext <<_ACEOF
28463/* end confdefs.h. */
28464$ac_includes_default
28465int
28466main ()
28467{
28468if ((ssize_t *) 0)
28469 return 0;
28470if (sizeof (ssize_t))
28471 return 0;
28472 ;
28473 return 0;
28474}
28475_ACEOF
28476rm -f conftest.$ac_objext
28477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28478 (eval $ac_compile) 2>conftest.er1
28479 ac_status=$?
28480 grep -v '^ *+' conftest.er1 >conftest.err
28481 rm -f conftest.er1
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
28485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487 (eval $ac_try) 2>&5
28488 ac_status=$?
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); }; } &&
28491 { ac_try='test -s conftest.$ac_objext'
28492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493 (eval $ac_try) 2>&5
28494 ac_status=$?
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); }; }; then
28497 ac_cv_type_ssize_t=yes
28498else
28499 echo "$as_me: failed program was:" >&5
28500sed 's/^/| /' conftest.$ac_ext >&5
28501
28502ac_cv_type_ssize_t=no
28503fi
28504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28505fi
28506echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28507echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28508if test $ac_cv_type_ssize_t = yes; then
28509
28510cat >>confdefs.h <<_ACEOF
28511#define HAVE_SSIZE_T 1
28512_ACEOF
28513
28514
28515fi
28516
28517
a848cd7e
SC
28518
28519
28520ac_ext=cc
28521ac_cpp='$CXXCPP $CPPFLAGS'
28522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28525
28526echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28527echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28528if test "${wx_cv_size_t_is_uint+set}" = set; then
28529 echo $ECHO_N "(cached) $ECHO_C" >&6
28530else
28531
28532 cat >conftest.$ac_ext <<_ACEOF
28533/* confdefs.h. */
28534_ACEOF
28535cat confdefs.h >>conftest.$ac_ext
28536cat >>conftest.$ac_ext <<_ACEOF
28537/* end confdefs.h. */
28538#include <stddef.h>
28539int
28540main ()
28541{
28542
28543 return 0; }
28544
28545 struct Foo { void foo(size_t); void foo(unsigned int); };
28546
28547 int bar() {
28548
28549 ;
28550 return 0;
28551}
28552_ACEOF
28553rm -f conftest.$ac_objext
28554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28555 (eval $ac_compile) 2>conftest.er1
a848cd7e 28556 ac_status=$?
ac1cb8d3
VS
28557 grep -v '^ *+' conftest.er1 >conftest.err
28558 rm -f conftest.er1
28559 cat conftest.err >&5
a848cd7e
SC
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
d51253e8 28562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28565 ac_status=$?
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; } &&
28568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
28574 wx_cv_size_t_is_uint=no
28575else
28576 echo "$as_me: failed program was:" >&5
28577sed 's/^/| /' conftest.$ac_ext >&5
28578
28579wx_cv_size_t_is_uint=yes
28580
28581fi
ac1cb8d3 28582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28583
28584
28585fi
28586echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28587echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28588
28589if test "$wx_cv_size_t_is_uint" = "yes"; then
28590 cat >>confdefs.h <<\_ACEOF
28591#define wxSIZE_T_IS_UINT 1
28592_ACEOF
28593
28594else
28595 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28596echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28597if test "${wx_cv_size_t_is_ulong+set}" = set; then
28598 echo $ECHO_N "(cached) $ECHO_C" >&6
28599else
28600 cat >conftest.$ac_ext <<_ACEOF
28601/* confdefs.h. */
28602_ACEOF
28603cat confdefs.h >>conftest.$ac_ext
28604cat >>conftest.$ac_ext <<_ACEOF
28605/* end confdefs.h. */
28606#include <stddef.h>
28607int
28608main ()
28609{
28610
28611 return 0; }
28612
28613 struct Foo { void foo(size_t); void foo(unsigned long); };
28614
28615 int bar() {
28616
28617 ;
28618 return 0;
28619}
28620_ACEOF
28621rm -f conftest.$ac_objext
28622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28623 (eval $ac_compile) 2>conftest.er1
a848cd7e 28624 ac_status=$?
ac1cb8d3
VS
28625 grep -v '^ *+' conftest.er1 >conftest.err
28626 rm -f conftest.er1
28627 cat conftest.err >&5
a848cd7e
SC
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } &&
d51253e8 28630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28632 (eval $ac_try) 2>&5
28633 ac_status=$?
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); }; } &&
28636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; }; then
28642 wx_cv_size_t_is_ulong=no
28643else
28644 echo "$as_me: failed program was:" >&5
28645sed 's/^/| /' conftest.$ac_ext >&5
28646
28647wx_cv_size_t_is_ulong=yes
28648
28649fi
ac1cb8d3 28650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28651
28652fi
28653echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28654echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28655
28656 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28657 cat >>confdefs.h <<\_ACEOF
28658#define wxSIZE_T_IS_ULONG 1
28659_ACEOF
28660
28661 fi
28662fi
28663
28664ac_ext=c
28665ac_cpp='$CPP $CPPFLAGS'
28666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28668ac_compiler_gnu=$ac_cv_c_compiler_gnu
28669
28670
28671
28672echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28673echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28674if test "${wx_cv_struct_pw_gecos+set}" = set; then
28675 echo $ECHO_N "(cached) $ECHO_C" >&6
28676else
28677
28678 cat >conftest.$ac_ext <<_ACEOF
28679/* confdefs.h. */
28680_ACEOF
28681cat confdefs.h >>conftest.$ac_ext
28682cat >>conftest.$ac_ext <<_ACEOF
28683/* end confdefs.h. */
28684#include <pwd.h>
28685int
28686main ()
28687{
28688
28689 char *p;
28690 struct passwd *pw;
28691 p = pw->pw_gecos;
28692
28693 ;
28694 return 0;
28695}
28696_ACEOF
28697rm -f conftest.$ac_objext
28698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28699 (eval $ac_compile) 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); } &&
d51253e8 28706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708 (eval $ac_try) 2>&5
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); }; } &&
28712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718
28719 wx_cv_struct_pw_gecos=yes
28720
28721else
28722 echo "$as_me: failed program was:" >&5
28723sed 's/^/| /' conftest.$ac_ext >&5
28724
28725
28726 wx_cv_struct_pw_gecos=no
28727
28728
28729fi
ac1cb8d3 28730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28731
28732
28733fi
28734echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28735echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28736
28737if test "$wx_cv_struct_pw_gecos" = "yes"; then
28738 cat >>confdefs.h <<\_ACEOF
28739#define HAVE_PW_GECOS 1
28740_ACEOF
28741
28742fi
28743
28744
28745if test "$wx_cv_sizeof_wchar_t" != "0"; then
28746 cat >>confdefs.h <<\_ACEOF
28747#define wxUSE_WCHAR_T 1
28748_ACEOF
28749
28750
28751 WCSLEN_FOUND=0
28752 WCHAR_LINK=
28753
28754for ac_func in wcslen
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); } &&
d51253e8 28822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28825 ac_status=$?
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; } &&
28828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830 (eval $ac_try) 2>&5
28831 ac_status=$?
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; }; then
28834 eval "$as_ac_var=yes"
28835else
28836 echo "$as_me: failed program was:" >&5
28837sed 's/^/| /' conftest.$ac_ext >&5
28838
28839eval "$as_ac_var=no"
28840fi
ac1cb8d3
VS
28841rm -f conftest.err conftest.$ac_objext \
28842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28843fi
28844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28846if test `eval echo '${'$as_ac_var'}'` = yes; then
28847 cat >>confdefs.h <<_ACEOF
28848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28849_ACEOF
28850 WCSLEN_FOUND=1
28851fi
28852done
28853
28854
28855 if test "$WCSLEN_FOUND" = 0; then
28856 if test "$TOOLKIT" = "MSW"; then
28857 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28858echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28859if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28860 echo $ECHO_N "(cached) $ECHO_C" >&6
28861else
28862 ac_check_lib_save_LIBS=$LIBS
28863LIBS="-lmsvcrt $LIBS"
28864cat >conftest.$ac_ext <<_ACEOF
28865/* confdefs.h. */
28866_ACEOF
28867cat confdefs.h >>conftest.$ac_ext
28868cat >>conftest.$ac_ext <<_ACEOF
28869/* end confdefs.h. */
28870
28871/* Override any gcc2 internal prototype to avoid an error. */
28872#ifdef __cplusplus
28873extern "C"
28874#endif
28875/* We use char because int might match the return type of a gcc2
28876 builtin and then its argument prototype would still apply. */
28877char wcslen ();
28878int
28879main ()
28880{
28881wcslen ();
28882 ;
28883 return 0;
28884}
28885_ACEOF
28886rm -f conftest.$ac_objext conftest$ac_exeext
28887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28888 (eval $ac_link) 2>conftest.er1
a848cd7e 28889 ac_status=$?
ac1cb8d3
VS
28890 grep -v '^ *+' conftest.er1 >conftest.err
28891 rm -f conftest.er1
28892 cat conftest.err >&5
a848cd7e
SC
28893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } &&
d51253e8 28895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28897 (eval $ac_try) 2>&5
28898 ac_status=$?
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; } &&
28901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28903 (eval $ac_try) 2>&5
28904 ac_status=$?
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); }; }; then
28907 ac_cv_lib_msvcrt_wcslen=yes
28908else
28909 echo "$as_me: failed program was:" >&5
28910sed 's/^/| /' conftest.$ac_ext >&5
28911
28912ac_cv_lib_msvcrt_wcslen=no
28913fi
ac1cb8d3
VS
28914rm -f conftest.err conftest.$ac_objext \
28915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28916LIBS=$ac_check_lib_save_LIBS
28917fi
28918echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28919echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28920if test $ac_cv_lib_msvcrt_wcslen = yes; then
28921 WCHAR_OK=1
28922fi
28923
28924 else
28925 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28926echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28927if test "${ac_cv_lib_w_wcslen+set}" = set; then
28928 echo $ECHO_N "(cached) $ECHO_C" >&6
28929else
28930 ac_check_lib_save_LIBS=$LIBS
28931LIBS="-lw $LIBS"
28932cat >conftest.$ac_ext <<_ACEOF
28933/* confdefs.h. */
28934_ACEOF
28935cat confdefs.h >>conftest.$ac_ext
28936cat >>conftest.$ac_ext <<_ACEOF
28937/* end confdefs.h. */
28938
28939/* Override any gcc2 internal prototype to avoid an error. */
28940#ifdef __cplusplus
28941extern "C"
28942#endif
28943/* We use char because int might match the return type of a gcc2
28944 builtin and then its argument prototype would still apply. */
28945char wcslen ();
28946int
28947main ()
28948{
28949wcslen ();
28950 ;
28951 return 0;
28952}
28953_ACEOF
28954rm -f conftest.$ac_objext conftest$ac_exeext
28955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28956 (eval $ac_link) 2>conftest.er1
a848cd7e 28957 ac_status=$?
ac1cb8d3
VS
28958 grep -v '^ *+' conftest.er1 >conftest.err
28959 rm -f conftest.er1
28960 cat conftest.err >&5
a848cd7e
SC
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); } &&
d51253e8 28963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28966 ac_status=$?
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; } &&
28969 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
28975 ac_cv_lib_w_wcslen=yes
28976else
28977 echo "$as_me: failed program was:" >&5
28978sed 's/^/| /' conftest.$ac_ext >&5
28979
28980ac_cv_lib_w_wcslen=no
28981fi
ac1cb8d3
VS
28982rm -f conftest.err conftest.$ac_objext \
28983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28984LIBS=$ac_check_lib_save_LIBS
28985fi
28986echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28987echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28988if test $ac_cv_lib_w_wcslen = yes; then
28989
28990 WCHAR_LINK=" -lw"
28991 WCSLEN_FOUND=1
28992
28993fi
28994
28995 fi
28996 fi
28997
28998 if test "$WCSLEN_FOUND" = 1; then
28999 cat >>confdefs.h <<\_ACEOF
29000#define HAVE_WCSLEN 1
29001_ACEOF
29002
29003 fi
29004
473276a9
VS
29005 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29006 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29007 fi
29008
a848cd7e
SC
29009
29010for ac_func in wcsrtombs
29011do
29012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29013echo "$as_me:$LINENO: checking for $ac_func" >&5
29014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29015if eval "test \"\${$as_ac_var+set}\" = set"; then
29016 echo $ECHO_N "(cached) $ECHO_C" >&6
29017else
29018 cat >conftest.$ac_ext <<_ACEOF
29019/* confdefs.h. */
29020_ACEOF
29021cat confdefs.h >>conftest.$ac_ext
29022cat >>conftest.$ac_ext <<_ACEOF
29023/* end confdefs.h. */
ac1cb8d3
VS
29024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29026#define $ac_func innocuous_$ac_func
29027
a848cd7e
SC
29028/* System header to define __stub macros and hopefully few prototypes,
29029 which can conflict with char $ac_func (); below.
29030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29031 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29032
a848cd7e
SC
29033#ifdef __STDC__
29034# include <limits.h>
29035#else
29036# include <assert.h>
29037#endif
ac1cb8d3
VS
29038
29039#undef $ac_func
29040
a848cd7e
SC
29041/* Override any gcc2 internal prototype to avoid an error. */
29042#ifdef __cplusplus
29043extern "C"
29044{
29045#endif
29046/* We use char because int might match the return type of a gcc2
29047 builtin and then its argument prototype would still apply. */
29048char $ac_func ();
29049/* The GNU C library defines this for functions which it implements
29050 to always fail with ENOSYS. Some functions are actually named
29051 something starting with __ and the normal name is an alias. */
29052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29053choke me
29054#else
29055char (*f) () = $ac_func;
29056#endif
29057#ifdef __cplusplus
29058}
29059#endif
29060
29061int
29062main ()
29063{
29064return f != $ac_func;
29065 ;
29066 return 0;
29067}
29068_ACEOF
29069rm -f conftest.$ac_objext conftest$ac_exeext
29070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29071 (eval $ac_link) 2>conftest.er1
a848cd7e 29072 ac_status=$?
ac1cb8d3
VS
29073 grep -v '^ *+' conftest.er1 >conftest.err
29074 rm -f conftest.er1
29075 cat conftest.err >&5
a848cd7e
SC
29076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077 (exit $ac_status); } &&
d51253e8 29078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29080 (eval $ac_try) 2>&5
29081 ac_status=$?
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); }; } &&
29084 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29086 (eval $ac_try) 2>&5
29087 ac_status=$?
29088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089 (exit $ac_status); }; }; then
29090 eval "$as_ac_var=yes"
29091else
29092 echo "$as_me: failed program was:" >&5
29093sed 's/^/| /' conftest.$ac_ext >&5
29094
29095eval "$as_ac_var=no"
29096fi
ac1cb8d3
VS
29097rm -f conftest.err conftest.$ac_objext \
29098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29099fi
29100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29102if test `eval echo '${'$as_ac_var'}'` = yes; then
29103 cat >>confdefs.h <<_ACEOF
29104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29105_ACEOF
29106
29107fi
29108done
29109
29110else
29111 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29112echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29113fi
29114
29115
29116
29117ac_ext=cc
29118ac_cpp='$CXXCPP $CPPFLAGS'
29119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29122
29123
29124
29125for ac_func in vsnprintf
29126do
29127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29128echo "$as_me:$LINENO: checking for $ac_func" >&5
29129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29130if eval "test \"\${$as_ac_var+set}\" = set"; then
29131 echo $ECHO_N "(cached) $ECHO_C" >&6
29132else
29133 cat >conftest.$ac_ext <<_ACEOF
29134/* confdefs.h. */
29135_ACEOF
29136cat confdefs.h >>conftest.$ac_ext
29137cat >>conftest.$ac_ext <<_ACEOF
29138/* end confdefs.h. */
ac1cb8d3
VS
29139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29141#define $ac_func innocuous_$ac_func
29142
a848cd7e
SC
29143/* System header to define __stub macros and hopefully few prototypes,
29144 which can conflict with char $ac_func (); below.
29145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29146 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29147
a848cd7e
SC
29148#ifdef __STDC__
29149# include <limits.h>
29150#else
29151# include <assert.h>
29152#endif
ac1cb8d3
VS
29153
29154#undef $ac_func
29155
a848cd7e
SC
29156/* Override any gcc2 internal prototype to avoid an error. */
29157#ifdef __cplusplus
29158extern "C"
29159{
29160#endif
29161/* We use char because int might match the return type of a gcc2
29162 builtin and then its argument prototype would still apply. */
29163char $ac_func ();
29164/* The GNU C library defines this for functions which it implements
29165 to always fail with ENOSYS. Some functions are actually named
29166 something starting with __ and the normal name is an alias. */
29167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29168choke me
29169#else
29170char (*f) () = $ac_func;
29171#endif
29172#ifdef __cplusplus
29173}
29174#endif
29175
29176int
29177main ()
29178{
29179return f != $ac_func;
29180 ;
29181 return 0;
29182}
29183_ACEOF
29184rm -f conftest.$ac_objext conftest$ac_exeext
29185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29186 (eval $ac_link) 2>conftest.er1
a848cd7e 29187 ac_status=$?
ac1cb8d3
VS
29188 grep -v '^ *+' conftest.er1 >conftest.err
29189 rm -f conftest.er1
29190 cat conftest.err >&5
a848cd7e
SC
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); } &&
d51253e8 29193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29196 ac_status=$?
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; } &&
29199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 eval "$as_ac_var=yes"
29206else
29207 echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
29210eval "$as_ac_var=no"
29211fi
ac1cb8d3
VS
29212rm -f conftest.err conftest.$ac_objext \
29213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29214fi
29215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29217if test `eval echo '${'$as_ac_var'}'` = yes; then
29218 cat >>confdefs.h <<_ACEOF
29219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29220_ACEOF
29221
29222fi
29223done
29224
29225
29226if test "$ac_cv_func_vsnprintf" = "yes"; then
29227 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29228echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29229if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29231else
29232
29233 cat >conftest.$ac_ext <<_ACEOF
29234/* confdefs.h. */
29235_ACEOF
29236cat confdefs.h >>conftest.$ac_ext
29237cat >>conftest.$ac_ext <<_ACEOF
29238/* end confdefs.h. */
29239
29240 #include <stdio.h>
29241 #include <stdarg.h>
29242
29243int
29244main ()
29245{
29246
29247 char *buf;
29248 va_list ap;
29249 vsnprintf(buf, 10u, "%s", ap);
29250
29251 ;
29252 return 0;
29253}
29254_ACEOF
29255rm -f conftest.$ac_objext
29256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29257 (eval $ac_compile) 2>conftest.er1
a848cd7e 29258 ac_status=$?
ac1cb8d3
VS
29259 grep -v '^ *+' conftest.er1 >conftest.err
29260 rm -f conftest.er1
29261 cat conftest.err >&5
a848cd7e
SC
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } &&
d51253e8 29264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266 (eval $ac_try) 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; } &&
29270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272 (eval $ac_try) 2>&5
29273 ac_status=$?
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); }; }; then
29276 wx_cv_func_vsnprintf_decl=yes
29277else
29278 echo "$as_me: failed program was:" >&5
29279sed 's/^/| /' conftest.$ac_ext >&5
29280
29281wx_cv_func_vsnprintf_decl=no
29282
29283fi
ac1cb8d3 29284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29285
29286
29287fi
29288echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29289echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29290
29291 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29292 cat >>confdefs.h <<\_ACEOF
29293#define HAVE_VSNPRINTF_DECL 1
29294_ACEOF
29295
29296 fi
29297fi
29298
29299if test "$wxUSE_UNICODE" = yes; then
29300
29301
29302
fbe47c7b
VS
29303
29304
29305
29306for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29307do
29308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29309echo "$as_me:$LINENO: checking for $ac_func" >&5
29310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29311if eval "test \"\${$as_ac_var+set}\" = set"; then
29312 echo $ECHO_N "(cached) $ECHO_C" >&6
29313else
29314 cat >conftest.$ac_ext <<_ACEOF
29315/* confdefs.h. */
29316_ACEOF
29317cat confdefs.h >>conftest.$ac_ext
29318cat >>conftest.$ac_ext <<_ACEOF
29319/* end confdefs.h. */
ac1cb8d3
VS
29320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29322#define $ac_func innocuous_$ac_func
29323
a848cd7e
SC
29324/* System header to define __stub macros and hopefully few prototypes,
29325 which can conflict with char $ac_func (); below.
29326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29327 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29328
a848cd7e
SC
29329#ifdef __STDC__
29330# include <limits.h>
29331#else
29332# include <assert.h>
29333#endif
ac1cb8d3
VS
29334
29335#undef $ac_func
29336
a848cd7e
SC
29337/* Override any gcc2 internal prototype to avoid an error. */
29338#ifdef __cplusplus
29339extern "C"
29340{
29341#endif
29342/* We use char because int might match the return type of a gcc2
29343 builtin and then its argument prototype would still apply. */
29344char $ac_func ();
29345/* The GNU C library defines this for functions which it implements
29346 to always fail with ENOSYS. Some functions are actually named
29347 something starting with __ and the normal name is an alias. */
29348#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29349choke me
29350#else
29351char (*f) () = $ac_func;
29352#endif
29353#ifdef __cplusplus
29354}
29355#endif
29356
29357int
29358main ()
29359{
29360return f != $ac_func;
29361 ;
29362 return 0;
29363}
29364_ACEOF
29365rm -f conftest.$ac_objext conftest$ac_exeext
29366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29367 (eval $ac_link) 2>conftest.er1
a848cd7e 29368 ac_status=$?
ac1cb8d3
VS
29369 grep -v '^ *+' conftest.er1 >conftest.err
29370 rm -f conftest.er1
29371 cat conftest.err >&5
a848cd7e
SC
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); } &&
d51253e8 29374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376 (eval $ac_try) 2>&5
29377 ac_status=$?
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); }; } &&
29380 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29383 ac_status=$?
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; }; then
29386 eval "$as_ac_var=yes"
29387else
29388 echo "$as_me: failed program was:" >&5
29389sed 's/^/| /' conftest.$ac_ext >&5
29390
29391eval "$as_ac_var=no"
29392fi
ac1cb8d3
VS
29393rm -f conftest.err conftest.$ac_objext \
29394 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29395fi
29396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29397echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29398if test `eval echo '${'$as_ac_var'}'` = yes; then
29399 cat >>confdefs.h <<_ACEOF
29400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29401_ACEOF
29402
29403fi
29404done
29405
29406
29407 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29408echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29409 cat >conftest.$ac_ext <<_ACEOF
29410/* confdefs.h. */
29411_ACEOF
29412cat confdefs.h >>conftest.$ac_ext
29413cat >>conftest.$ac_ext <<_ACEOF
29414/* end confdefs.h. */
29415#include <wchar.h>
29416int
29417main ()
29418{
29419&_vsnwprintf;
29420 ;
29421 return 0;
29422}
29423_ACEOF
29424rm -f conftest.$ac_objext
29425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29426 (eval $ac_compile) 2>conftest.er1
a848cd7e 29427 ac_status=$?
ac1cb8d3
VS
29428 grep -v '^ *+' conftest.er1 >conftest.err
29429 rm -f conftest.er1
29430 cat conftest.err >&5
a848cd7e
SC
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
d51253e8 29433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; } &&
29439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441 (eval $ac_try) 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; }; then
29445 echo "$as_me:$LINENO: result: yes" >&5
29446echo "${ECHO_T}yes" >&6
29447 cat >>confdefs.h <<\_ACEOF
29448#define HAVE__VSNWPRINTF 1
29449_ACEOF
29450
29451else
29452 echo "$as_me: failed program was:" >&5
29453sed 's/^/| /' conftest.$ac_ext >&5
29454
29455echo "$as_me:$LINENO: result: no" >&5
29456echo "${ECHO_T}no" >&6
29457fi
ac1cb8d3 29458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29459fi
29460
29461ac_ext=c
29462ac_cpp='$CPP $CPPFLAGS'
29463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29465ac_compiler_gnu=$ac_cv_c_compiler_gnu
29466
29467
29468
29469
29470if test "$TOOLKIT" != "MSW"; then
29471
29472
29473
29474
29475ac_ext=cc
29476ac_cpp='$CXXCPP $CPPFLAGS'
29477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29480
29481
29482
29483
29484# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29485if test "${with_libiconv_prefix+set}" = set; then
29486 withval="$with_libiconv_prefix"
29487
29488 for dir in `echo "$withval" | tr : ' '`; do
29489 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29490 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29491 done
29492
29493fi;
29494
29495 echo "$as_me:$LINENO: checking for iconv" >&5
29496echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29497if test "${am_cv_func_iconv+set}" = set; then
29498 echo $ECHO_N "(cached) $ECHO_C" >&6
29499else
29500
29501 am_cv_func_iconv="no, consider installing GNU libiconv"
29502 am_cv_lib_iconv=no
29503 cat >conftest.$ac_ext <<_ACEOF
29504/* confdefs.h. */
29505_ACEOF
29506cat confdefs.h >>conftest.$ac_ext
29507cat >>conftest.$ac_ext <<_ACEOF
29508/* end confdefs.h. */
29509#include <stdlib.h>
29510#include <iconv.h>
29511int
29512main ()
29513{
29514iconv_t cd = iconv_open("","");
29515 iconv(cd,NULL,NULL,NULL,NULL);
29516 iconv_close(cd);
29517 ;
29518 return 0;
29519}
29520_ACEOF
29521rm -f conftest.$ac_objext conftest$ac_exeext
29522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29523 (eval $ac_link) 2>conftest.er1
a848cd7e 29524 ac_status=$?
ac1cb8d3
VS
29525 grep -v '^ *+' conftest.er1 >conftest.err
29526 rm -f conftest.er1
29527 cat conftest.err >&5
a848cd7e
SC
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); } &&
d51253e8 29530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532 (eval $ac_try) 2>&5
29533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; } &&
29536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; }; then
29542 am_cv_func_iconv=yes
29543else
29544 echo "$as_me: failed program was:" >&5
29545sed 's/^/| /' conftest.$ac_ext >&5
29546
29547fi
ac1cb8d3
VS
29548rm -f conftest.err conftest.$ac_objext \
29549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29550 if test "$am_cv_func_iconv" != yes; then
29551 am_save_LIBS="$LIBS"
29552 LIBS="$LIBS -liconv"
29553 cat >conftest.$ac_ext <<_ACEOF
29554/* confdefs.h. */
29555_ACEOF
29556cat confdefs.h >>conftest.$ac_ext
29557cat >>conftest.$ac_ext <<_ACEOF
29558/* end confdefs.h. */
29559#include <stdlib.h>
29560#include <iconv.h>
29561int
29562main ()
29563{
29564iconv_t cd = iconv_open("","");
29565 iconv(cd,NULL,NULL,NULL,NULL);
29566 iconv_close(cd);
29567 ;
29568 return 0;
29569}
29570_ACEOF
29571rm -f conftest.$ac_objext conftest$ac_exeext
29572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29573 (eval $ac_link) 2>conftest.er1
a848cd7e 29574 ac_status=$?
ac1cb8d3
VS
29575 grep -v '^ *+' conftest.er1 >conftest.err
29576 rm -f conftest.er1
29577 cat conftest.err >&5
a848cd7e
SC
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } &&
d51253e8 29580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582 (eval $ac_try) 2>&5
29583 ac_status=$?
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); }; } &&
29586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588 (eval $ac_try) 2>&5
29589 ac_status=$?
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; }; then
29592 am_cv_lib_iconv=yes
29593 am_cv_func_iconv=yes
29594else
29595 echo "$as_me: failed program was:" >&5
29596sed 's/^/| /' conftest.$ac_ext >&5
29597
29598fi
ac1cb8d3
VS
29599rm -f conftest.err conftest.$ac_objext \
29600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29601 LIBS="$am_save_LIBS"
29602 fi
29603
29604fi
29605echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29606echo "${ECHO_T}$am_cv_func_iconv" >&6
29607 if test "$am_cv_func_iconv" = yes; then
29608
29609cat >>confdefs.h <<\_ACEOF
29610#define HAVE_ICONV 1
29611_ACEOF
29612
29613 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29614echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29615if test "${wx_cv_func_iconv_const+set}" = set; then
29616 echo $ECHO_N "(cached) $ECHO_C" >&6
29617else
29618 cat >conftest.$ac_ext <<_ACEOF
29619/* confdefs.h. */
29620_ACEOF
29621cat confdefs.h >>conftest.$ac_ext
29622cat >>conftest.$ac_ext <<_ACEOF
29623/* end confdefs.h. */
29624
29625#include <stdlib.h>
29626#include <iconv.h>
29627extern
29628#ifdef __cplusplus
29629"C"
29630#endif
29631#if defined(__STDC__) || defined(__cplusplus)
29632size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29633#else
29634size_t iconv();
29635#endif
29636
29637int
29638main ()
29639{
29640
29641 ;
29642 return 0;
29643}
29644_ACEOF
29645rm -f conftest.$ac_objext
29646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29647 (eval $ac_compile) 2>conftest.er1
a848cd7e 29648 ac_status=$?
ac1cb8d3
VS
29649 grep -v '^ *+' conftest.er1 >conftest.err
29650 rm -f conftest.er1
29651 cat conftest.err >&5
a848cd7e
SC
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } &&
d51253e8 29654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; } &&
29660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662 (eval $ac_try) 2>&5
29663 ac_status=$?
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; }; then
29666 wx_cv_func_iconv_const="no"
29667else
29668 echo "$as_me: failed program was:" >&5
29669sed 's/^/| /' conftest.$ac_ext >&5
29670
29671wx_cv_func_iconv_const="yes"
29672
29673fi
ac1cb8d3 29674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29675
29676fi
29677echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29678echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29679
29680 iconv_const=
29681 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29682 iconv_const="const"
29683 fi
29684
29685
29686cat >>confdefs.h <<_ACEOF
29687#define ICONV_CONST $iconv_const
29688_ACEOF
29689
29690 fi
29691 LIBICONV=
29692 if test "$am_cv_lib_iconv" = yes; then
29693 LIBICONV="-liconv"
29694 fi
29695
29696
29697LIBS="$LIBICONV $LIBS"
29698ac_ext=c
29699ac_cpp='$CPP $CPPFLAGS'
29700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29702ac_compiler_gnu=$ac_cv_c_compiler_gnu
29703
29704
29705if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29706
29707for ac_func in sigaction
29708do
29709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29710echo "$as_me:$LINENO: checking for $ac_func" >&5
29711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29712if eval "test \"\${$as_ac_var+set}\" = set"; then
29713 echo $ECHO_N "(cached) $ECHO_C" >&6
29714else
29715 cat >conftest.$ac_ext <<_ACEOF
29716/* confdefs.h. */
29717_ACEOF
29718cat confdefs.h >>conftest.$ac_ext
29719cat >>conftest.$ac_ext <<_ACEOF
29720/* end confdefs.h. */
ac1cb8d3
VS
29721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29723#define $ac_func innocuous_$ac_func
29724
a848cd7e
SC
29725/* System header to define __stub macros and hopefully few prototypes,
29726 which can conflict with char $ac_func (); below.
29727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29728 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29729
a848cd7e
SC
29730#ifdef __STDC__
29731# include <limits.h>
29732#else
29733# include <assert.h>
29734#endif
ac1cb8d3
VS
29735
29736#undef $ac_func
29737
a848cd7e
SC
29738/* Override any gcc2 internal prototype to avoid an error. */
29739#ifdef __cplusplus
29740extern "C"
29741{
29742#endif
29743/* We use char because int might match the return type of a gcc2
29744 builtin and then its argument prototype would still apply. */
29745char $ac_func ();
29746/* The GNU C library defines this for functions which it implements
29747 to always fail with ENOSYS. Some functions are actually named
29748 something starting with __ and the normal name is an alias. */
29749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29750choke me
29751#else
29752char (*f) () = $ac_func;
29753#endif
29754#ifdef __cplusplus
29755}
29756#endif
29757
29758int
29759main ()
29760{
29761return f != $ac_func;
29762 ;
29763 return 0;
29764}
29765_ACEOF
29766rm -f conftest.$ac_objext conftest$ac_exeext
29767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29768 (eval $ac_link) 2>conftest.er1
a848cd7e 29769 ac_status=$?
ac1cb8d3
VS
29770 grep -v '^ *+' conftest.er1 >conftest.err
29771 rm -f conftest.er1
29772 cat conftest.err >&5
a848cd7e
SC
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); } &&
d51253e8 29775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29777 (eval $ac_try) 2>&5
29778 ac_status=$?
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); }; } &&
29781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783 (eval $ac_try) 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 eval "$as_ac_var=yes"
29788else
29789 echo "$as_me: failed program was:" >&5
29790sed 's/^/| /' conftest.$ac_ext >&5
29791
29792eval "$as_ac_var=no"
29793fi
ac1cb8d3
VS
29794rm -f conftest.err conftest.$ac_objext \
29795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29796fi
29797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29799if test `eval echo '${'$as_ac_var'}'` = yes; then
29800 cat >>confdefs.h <<_ACEOF
29801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29802_ACEOF
29803
29804fi
29805done
29806
29807
29808 if test "$ac_cv_func_sigaction" = "no"; then
29809 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29810echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29811 wxUSE_ON_FATAL_EXCEPTION=no
29812 fi
29813
29814 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29815
29816
29817 ac_ext=cc
29818ac_cpp='$CXXCPP $CPPFLAGS'
29819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29822
29823
29824 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29825echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29826if test "${wx_cv_type_sa_handler+set}" = set; then
29827 echo $ECHO_N "(cached) $ECHO_C" >&6
29828else
29829
29830 cat >conftest.$ac_ext <<_ACEOF
29831/* confdefs.h. */
29832_ACEOF
29833cat confdefs.h >>conftest.$ac_ext
29834cat >>conftest.$ac_ext <<_ACEOF
29835/* end confdefs.h. */
29836#include <signal.h>
29837int
29838main ()
29839{
29840
29841 extern void testSigHandler(int);
29842
29843 struct sigaction sa;
29844 sa.sa_handler = testSigHandler;
29845
29846 ;
29847 return 0;
29848}
29849_ACEOF
29850rm -f conftest.$ac_objext
29851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29852 (eval $ac_compile) 2>conftest.er1
a848cd7e 29853 ac_status=$?
ac1cb8d3
VS
29854 grep -v '^ *+' conftest.er1 >conftest.err
29855 rm -f conftest.er1
29856 cat conftest.err >&5
a848cd7e
SC
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } &&
d51253e8 29859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861 (eval $ac_try) 2>&5
29862 ac_status=$?
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; } &&
29865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
29871
29872 wx_cv_type_sa_handler=int
29873
29874else
29875 echo "$as_me: failed program was:" >&5
29876sed 's/^/| /' conftest.$ac_ext >&5
29877
29878
29879 wx_cv_type_sa_handler=void
29880
29881fi
ac1cb8d3 29882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29883
29884fi
29885echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29886echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29887
29888 ac_ext=c
29889ac_cpp='$CPP $CPPFLAGS'
29890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29892ac_compiler_gnu=$ac_cv_c_compiler_gnu
29893
29894
29895 cat >>confdefs.h <<_ACEOF
29896#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29897_ACEOF
29898
29899 fi
29900fi
29901
29902
29903
29904for ac_func in mkstemp mktemp
29905do
29906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29907echo "$as_me:$LINENO: checking for $ac_func" >&5
29908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29909if eval "test \"\${$as_ac_var+set}\" = set"; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29911else
29912 cat >conftest.$ac_ext <<_ACEOF
29913/* confdefs.h. */
29914_ACEOF
29915cat confdefs.h >>conftest.$ac_ext
29916cat >>conftest.$ac_ext <<_ACEOF
29917/* end confdefs.h. */
ac1cb8d3
VS
29918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29920#define $ac_func innocuous_$ac_func
29921
a848cd7e
SC
29922/* System header to define __stub macros and hopefully few prototypes,
29923 which can conflict with char $ac_func (); below.
29924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29925 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29926
a848cd7e
SC
29927#ifdef __STDC__
29928# include <limits.h>
29929#else
29930# include <assert.h>
29931#endif
ac1cb8d3
VS
29932
29933#undef $ac_func
29934
a848cd7e
SC
29935/* Override any gcc2 internal prototype to avoid an error. */
29936#ifdef __cplusplus
29937extern "C"
29938{
29939#endif
29940/* We use char because int might match the return type of a gcc2
29941 builtin and then its argument prototype would still apply. */
29942char $ac_func ();
29943/* The GNU C library defines this for functions which it implements
29944 to always fail with ENOSYS. Some functions are actually named
29945 something starting with __ and the normal name is an alias. */
29946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29947choke me
29948#else
29949char (*f) () = $ac_func;
29950#endif
29951#ifdef __cplusplus
29952}
29953#endif
29954
29955int
29956main ()
29957{
29958return f != $ac_func;
29959 ;
29960 return 0;
29961}
29962_ACEOF
29963rm -f conftest.$ac_objext conftest$ac_exeext
29964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29965 (eval $ac_link) 2>conftest.er1
a848cd7e 29966 ac_status=$?
ac1cb8d3
VS
29967 grep -v '^ *+' conftest.er1 >conftest.err
29968 rm -f conftest.er1
29969 cat conftest.err >&5
a848cd7e
SC
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } &&
d51253e8 29972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; } &&
29978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29980 (eval $ac_try) 2>&5
29981 ac_status=$?
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; }; then
29984 eval "$as_ac_var=yes"
29985else
29986 echo "$as_me: failed program was:" >&5
29987sed 's/^/| /' conftest.$ac_ext >&5
29988
29989eval "$as_ac_var=no"
29990fi
ac1cb8d3
VS
29991rm -f conftest.err conftest.$ac_objext \
29992 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29993fi
29994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29995echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29996if test `eval echo '${'$as_ac_var'}'` = yes; then
29997 cat >>confdefs.h <<_ACEOF
29998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29999_ACEOF
30000 break
30001fi
30002done
30003
30004
30005echo "$as_me:$LINENO: checking for statfs" >&5
30006echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30007if test "${wx_cv_func_statfs+set}" = set; then
30008 echo $ECHO_N "(cached) $ECHO_C" >&6
30009else
30010 cat >conftest.$ac_ext <<_ACEOF
30011/* confdefs.h. */
30012_ACEOF
30013cat confdefs.h >>conftest.$ac_ext
30014cat >>conftest.$ac_ext <<_ACEOF
30015/* end confdefs.h. */
30016
30017 #if defined(__BSD__)
30018 #include <sys/param.h>
30019 #include <sys/mount.h>
30020 #else
30021 #include <sys/vfs.h>
30022 #endif
30023
30024int
30025main ()
30026{
30027
30028 long l;
30029 struct statfs fs;
30030 statfs("/", &fs);
30031 l = fs.f_bsize;
30032 l += fs.f_blocks;
30033 l += fs.f_bavail;
30034
30035 ;
30036 return 0;
30037}
30038_ACEOF
30039rm -f conftest.$ac_objext
30040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30041 (eval $ac_compile) 2>conftest.er1
a848cd7e 30042 ac_status=$?
ac1cb8d3
VS
30043 grep -v '^ *+' conftest.er1 >conftest.err
30044 rm -f conftest.er1
30045 cat conftest.err >&5
a848cd7e
SC
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } &&
d51253e8 30048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; } &&
30054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060
30061 wx_cv_func_statfs=yes
30062
30063else
30064 echo "$as_me: failed program was:" >&5
30065sed 's/^/| /' conftest.$ac_ext >&5
30066
30067
30068 wx_cv_func_statfs=no
30069
30070
30071fi
ac1cb8d3 30072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30073
30074fi
30075echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30076echo "${ECHO_T}$wx_cv_func_statfs" >&6
30077
30078if test "$wx_cv_func_statfs" = "yes"; then
30079 wx_cv_type_statvfs_t="struct statfs"
30080 cat >>confdefs.h <<\_ACEOF
30081#define HAVE_STATFS 1
30082_ACEOF
30083
30084else
30085 echo "$as_me:$LINENO: checking for statvfs" >&5
30086echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30087if test "${wx_cv_func_statvfs+set}" = set; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30089else
30090 cat >conftest.$ac_ext <<_ACEOF
30091/* confdefs.h. */
30092_ACEOF
30093cat confdefs.h >>conftest.$ac_ext
30094cat >>conftest.$ac_ext <<_ACEOF
30095/* end confdefs.h. */
30096
30097 #include <stddef.h>
30098 #include <sys/statvfs.h>
30099
30100int
30101main ()
30102{
30103
30104 statvfs("/", NULL);
30105
30106 ;
30107 return 0;
30108}
30109_ACEOF
30110rm -f conftest.$ac_objext
30111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30112 (eval $ac_compile) 2>conftest.er1
a848cd7e 30113 ac_status=$?
ac1cb8d3
VS
30114 grep -v '^ *+' conftest.er1 >conftest.err
30115 rm -f conftest.er1
30116 cat conftest.err >&5
a848cd7e
SC
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } &&
d51253e8 30119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30121 (eval $ac_try) 2>&5
30122 ac_status=$?
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; } &&
30125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; }; then
30131 wx_cv_func_statvfs=yes
30132else
30133 echo "$as_me: failed program was:" >&5
30134sed 's/^/| /' conftest.$ac_ext >&5
30135
30136wx_cv_func_statvfs=no
30137
30138fi
ac1cb8d3 30139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30140
30141fi
30142echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30143echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30144
30145 if test "$wx_cv_func_statvfs" = "yes"; then
30146
30147
30148 ac_ext=cc
30149ac_cpp='$CXXCPP $CPPFLAGS'
30150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30153
30154
30155 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30156echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30157if test "${wx_cv_type_statvfs_t+set}" = set; then
30158 echo $ECHO_N "(cached) $ECHO_C" >&6
30159else
30160 cat >conftest.$ac_ext <<_ACEOF
30161/* confdefs.h. */
30162_ACEOF
30163cat confdefs.h >>conftest.$ac_ext
30164cat >>conftest.$ac_ext <<_ACEOF
30165/* end confdefs.h. */
30166
30167 #include <sys/statvfs.h>
30168
30169int
30170main ()
30171{
30172
30173 long l;
30174 statvfs_t fs;
30175 statvfs("/", &fs);
30176 l = fs.f_bsize;
30177 l += fs.f_blocks;
30178 l += fs.f_bavail;
30179
30180 ;
30181 return 0;
30182}
30183_ACEOF
30184rm -f conftest.$ac_objext
30185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30186 (eval $ac_compile) 2>conftest.er1
a848cd7e 30187 ac_status=$?
ac1cb8d3
VS
30188 grep -v '^ *+' conftest.er1 >conftest.err
30189 rm -f conftest.er1
30190 cat conftest.err >&5
a848cd7e
SC
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); } &&
d51253e8 30193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195 (eval $ac_try) 2>&5
30196 ac_status=$?
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; } &&
30199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; }; then
30205 wx_cv_type_statvfs_t=statvfs_t
30206else
30207 echo "$as_me: failed program was:" >&5
30208sed 's/^/| /' conftest.$ac_ext >&5
30209
30210
30211 cat >conftest.$ac_ext <<_ACEOF
30212/* confdefs.h. */
30213_ACEOF
30214cat confdefs.h >>conftest.$ac_ext
30215cat >>conftest.$ac_ext <<_ACEOF
30216/* end confdefs.h. */
30217
30218 #include <sys/statvfs.h>
30219
30220int
30221main ()
30222{
30223
30224 long l;
30225 struct statvfs fs;
30226 statvfs("/", &fs);
30227 l = fs.f_bsize;
30228 l += fs.f_blocks;
30229 l += fs.f_bavail;
30230
30231 ;
30232 return 0;
30233}
30234_ACEOF
30235rm -f conftest.$ac_objext
30236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30237 (eval $ac_compile) 2>conftest.er1
a848cd7e 30238 ac_status=$?
ac1cb8d3
VS
30239 grep -v '^ *+' conftest.er1 >conftest.err
30240 rm -f conftest.er1
30241 cat conftest.err >&5
a848cd7e
SC
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); } &&
d51253e8 30244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30246 (eval $ac_try) 2>&5
30247 ac_status=$?
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); }; } &&
30250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30252 (eval $ac_try) 2>&5
30253 ac_status=$?
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); }; }; then
30256 wx_cv_type_statvfs_t="struct statvfs"
30257else
30258 echo "$as_me: failed program was:" >&5
30259sed 's/^/| /' conftest.$ac_ext >&5
30260
30261wx_cv_type_statvfs_t="unknown"
30262
30263fi
ac1cb8d3 30264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30265
30266
30267fi
ac1cb8d3 30268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30269
30270fi
30271echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30272echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30273
30274 ac_ext=c
30275ac_cpp='$CPP $CPPFLAGS'
30276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30278ac_compiler_gnu=$ac_cv_c_compiler_gnu
30279
30280
30281 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30282 cat >>confdefs.h <<\_ACEOF
30283#define HAVE_STATVFS 1
30284_ACEOF
30285
30286 fi
30287 else
30288 wx_cv_type_statvfs_t="unknown"
30289 fi
30290fi
30291
30292if test "$wx_cv_type_statvfs_t" != "unknown"; then
30293 cat >>confdefs.h <<_ACEOF
30294#define WX_STATFS_T $wx_cv_type_statvfs_t
30295_ACEOF
30296
30297else
30298 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30299echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30300fi
30301
30302if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30303
30304
30305for ac_func in fcntl flock
30306do
30307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30308echo "$as_me:$LINENO: checking for $ac_func" >&5
30309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30310if eval "test \"\${$as_ac_var+set}\" = set"; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312else
30313 cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
ac1cb8d3
VS
30319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30321#define $ac_func innocuous_$ac_func
30322
a848cd7e
SC
30323/* System header to define __stub macros and hopefully few prototypes,
30324 which can conflict with char $ac_func (); below.
30325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30326 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30327
a848cd7e
SC
30328#ifdef __STDC__
30329# include <limits.h>
30330#else
30331# include <assert.h>
30332#endif
ac1cb8d3
VS
30333
30334#undef $ac_func
30335
a848cd7e
SC
30336/* Override any gcc2 internal prototype to avoid an error. */
30337#ifdef __cplusplus
30338extern "C"
30339{
30340#endif
30341/* We use char because int might match the return type of a gcc2
30342 builtin and then its argument prototype would still apply. */
30343char $ac_func ();
30344/* The GNU C library defines this for functions which it implements
30345 to always fail with ENOSYS. Some functions are actually named
30346 something starting with __ and the normal name is an alias. */
30347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30348choke me
30349#else
30350char (*f) () = $ac_func;
30351#endif
30352#ifdef __cplusplus
30353}
30354#endif
30355
30356int
30357main ()
30358{
30359return f != $ac_func;
30360 ;
30361 return 0;
30362}
30363_ACEOF
30364rm -f conftest.$ac_objext conftest$ac_exeext
30365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30366 (eval $ac_link) 2>conftest.er1
a848cd7e 30367 ac_status=$?
ac1cb8d3
VS
30368 grep -v '^ *+' conftest.er1 >conftest.err
30369 rm -f conftest.er1
30370 cat conftest.err >&5
a848cd7e
SC
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } &&
d51253e8 30373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30375 (eval $ac_try) 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; } &&
30379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30381 (eval $ac_try) 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; }; then
30385 eval "$as_ac_var=yes"
30386else
30387 echo "$as_me: failed program was:" >&5
30388sed 's/^/| /' conftest.$ac_ext >&5
30389
30390eval "$as_ac_var=no"
30391fi
ac1cb8d3
VS
30392rm -f conftest.err conftest.$ac_objext \
30393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30394fi
30395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30397if test `eval echo '${'$as_ac_var'}'` = yes; then
30398 cat >>confdefs.h <<_ACEOF
30399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30400_ACEOF
30401 break
30402fi
30403done
30404
30405
30406 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30407 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30408echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30409 wxUSE_SNGLINST_CHECKER=no
30410 fi
30411fi
30412
30413
30414for ac_func in timegm
30415do
30416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30417echo "$as_me:$LINENO: checking for $ac_func" >&5
30418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30419if eval "test \"\${$as_ac_var+set}\" = set"; then
30420 echo $ECHO_N "(cached) $ECHO_C" >&6
30421else
30422 cat >conftest.$ac_ext <<_ACEOF
30423/* confdefs.h. */
30424_ACEOF
30425cat confdefs.h >>conftest.$ac_ext
30426cat >>conftest.$ac_ext <<_ACEOF
30427/* end confdefs.h. */
ac1cb8d3
VS
30428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30430#define $ac_func innocuous_$ac_func
30431
a848cd7e
SC
30432/* System header to define __stub macros and hopefully few prototypes,
30433 which can conflict with char $ac_func (); below.
30434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30435 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30436
a848cd7e
SC
30437#ifdef __STDC__
30438# include <limits.h>
30439#else
30440# include <assert.h>
30441#endif
ac1cb8d3
VS
30442
30443#undef $ac_func
30444
a848cd7e
SC
30445/* Override any gcc2 internal prototype to avoid an error. */
30446#ifdef __cplusplus
30447extern "C"
30448{
30449#endif
30450/* We use char because int might match the return type of a gcc2
30451 builtin and then its argument prototype would still apply. */
30452char $ac_func ();
30453/* The GNU C library defines this for functions which it implements
30454 to always fail with ENOSYS. Some functions are actually named
30455 something starting with __ and the normal name is an alias. */
30456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30457choke me
30458#else
30459char (*f) () = $ac_func;
30460#endif
30461#ifdef __cplusplus
30462}
30463#endif
30464
30465int
30466main ()
30467{
30468return f != $ac_func;
30469 ;
30470 return 0;
30471}
30472_ACEOF
30473rm -f conftest.$ac_objext conftest$ac_exeext
30474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30475 (eval $ac_link) 2>conftest.er1
a848cd7e 30476 ac_status=$?
ac1cb8d3
VS
30477 grep -v '^ *+' conftest.er1 >conftest.err
30478 rm -f conftest.er1
30479 cat conftest.err >&5
a848cd7e
SC
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); } &&
d51253e8 30482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30484 (eval $ac_try) 2>&5
30485 ac_status=$?
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); }; } &&
30488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30490 (eval $ac_try) 2>&5
30491 ac_status=$?
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); }; }; then
30494 eval "$as_ac_var=yes"
30495else
30496 echo "$as_me: failed program was:" >&5
30497sed 's/^/| /' conftest.$ac_ext >&5
30498
30499eval "$as_ac_var=no"
30500fi
ac1cb8d3
VS
30501rm -f conftest.err conftest.$ac_objext \
30502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30503fi
30504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30505echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30506if test `eval echo '${'$as_ac_var'}'` = yes; then
30507 cat >>confdefs.h <<_ACEOF
30508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30509_ACEOF
30510
30511fi
30512done
30513
30514
30515
30516
30517for ac_func in putenv setenv
30518do
30519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30520echo "$as_me:$LINENO: checking for $ac_func" >&5
30521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30522if eval "test \"\${$as_ac_var+set}\" = set"; then
30523 echo $ECHO_N "(cached) $ECHO_C" >&6
30524else
30525 cat >conftest.$ac_ext <<_ACEOF
30526/* confdefs.h. */
30527_ACEOF
30528cat confdefs.h >>conftest.$ac_ext
30529cat >>conftest.$ac_ext <<_ACEOF
30530/* end confdefs.h. */
ac1cb8d3
VS
30531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30533#define $ac_func innocuous_$ac_func
30534
a848cd7e
SC
30535/* System header to define __stub macros and hopefully few prototypes,
30536 which can conflict with char $ac_func (); below.
30537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30539
a848cd7e
SC
30540#ifdef __STDC__
30541# include <limits.h>
30542#else
30543# include <assert.h>
30544#endif
ac1cb8d3
VS
30545
30546#undef $ac_func
30547
a848cd7e
SC
30548/* Override any gcc2 internal prototype to avoid an error. */
30549#ifdef __cplusplus
30550extern "C"
30551{
30552#endif
30553/* We use char because int might match the return type of a gcc2
30554 builtin and then its argument prototype would still apply. */
30555char $ac_func ();
30556/* The GNU C library defines this for functions which it implements
30557 to always fail with ENOSYS. Some functions are actually named
30558 something starting with __ and the normal name is an alias. */
30559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30560choke me
30561#else
30562char (*f) () = $ac_func;
30563#endif
30564#ifdef __cplusplus
30565}
30566#endif
30567
30568int
30569main ()
30570{
30571return f != $ac_func;
30572 ;
30573 return 0;
30574}
30575_ACEOF
30576rm -f conftest.$ac_objext conftest$ac_exeext
30577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30578 (eval $ac_link) 2>conftest.er1
a848cd7e 30579 ac_status=$?
ac1cb8d3
VS
30580 grep -v '^ *+' conftest.er1 >conftest.err
30581 rm -f conftest.er1
30582 cat conftest.err >&5
a848cd7e
SC
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); } &&
d51253e8 30585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30587 (eval $ac_try) 2>&5
30588 ac_status=$?
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; } &&
30591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30593 (eval $ac_try) 2>&5
30594 ac_status=$?
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); }; }; then
30597 eval "$as_ac_var=yes"
30598else
30599 echo "$as_me: failed program was:" >&5
30600sed 's/^/| /' conftest.$ac_ext >&5
30601
30602eval "$as_ac_var=no"
30603fi
ac1cb8d3
VS
30604rm -f conftest.err conftest.$ac_objext \
30605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30606fi
30607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30609if test `eval echo '${'$as_ac_var'}'` = yes; then
30610 cat >>confdefs.h <<_ACEOF
30611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30612_ACEOF
30613 break
30614fi
30615done
30616
30617
30618HAVE_SOME_SLEEP_FUNC=0
30619if test "$USE_BEOS" = 1; then
30620 cat >>confdefs.h <<\_ACEOF
30621#define HAVE_SLEEP 1
30622_ACEOF
30623
30624 HAVE_SOME_SLEEP_FUNC=1
30625fi
30626
30627if test "$USE_DARWIN" = 1; then
30628 cat >>confdefs.h <<\_ACEOF
30629#define HAVE_USLEEP 1
30630_ACEOF
30631
30632 HAVE_SOME_SLEEP_FUNC=1
30633fi
30634
30635if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30636 POSIX4_LINK=
30637
30638for ac_func in nanosleep
30639do
30640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30641echo "$as_me:$LINENO: checking for $ac_func" >&5
30642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30643if eval "test \"\${$as_ac_var+set}\" = set"; then
30644 echo $ECHO_N "(cached) $ECHO_C" >&6
30645else
30646 cat >conftest.$ac_ext <<_ACEOF
30647/* confdefs.h. */
30648_ACEOF
30649cat confdefs.h >>conftest.$ac_ext
30650cat >>conftest.$ac_ext <<_ACEOF
30651/* end confdefs.h. */
ac1cb8d3
VS
30652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30654#define $ac_func innocuous_$ac_func
30655
a848cd7e
SC
30656/* System header to define __stub macros and hopefully few prototypes,
30657 which can conflict with char $ac_func (); below.
30658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30659 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30660
a848cd7e
SC
30661#ifdef __STDC__
30662# include <limits.h>
30663#else
30664# include <assert.h>
30665#endif
ac1cb8d3
VS
30666
30667#undef $ac_func
30668
a848cd7e
SC
30669/* Override any gcc2 internal prototype to avoid an error. */
30670#ifdef __cplusplus
30671extern "C"
30672{
30673#endif
30674/* We use char because int might match the return type of a gcc2
30675 builtin and then its argument prototype would still apply. */
30676char $ac_func ();
30677/* The GNU C library defines this for functions which it implements
30678 to always fail with ENOSYS. Some functions are actually named
30679 something starting with __ and the normal name is an alias. */
30680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30681choke me
30682#else
30683char (*f) () = $ac_func;
30684#endif
30685#ifdef __cplusplus
30686}
30687#endif
30688
30689int
30690main ()
30691{
30692return f != $ac_func;
30693 ;
30694 return 0;
30695}
30696_ACEOF
30697rm -f conftest.$ac_objext conftest$ac_exeext
30698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30699 (eval $ac_link) 2>conftest.er1
a848cd7e 30700 ac_status=$?
ac1cb8d3
VS
30701 grep -v '^ *+' conftest.er1 >conftest.err
30702 rm -f conftest.er1
30703 cat conftest.err >&5
a848cd7e
SC
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
d51253e8 30706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708 (eval $ac_try) 2>&5
30709 ac_status=$?
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); }; } &&
30712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714 (eval $ac_try) 2>&5
30715 ac_status=$?
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; }; then
30718 eval "$as_ac_var=yes"
30719else
30720 echo "$as_me: failed program was:" >&5
30721sed 's/^/| /' conftest.$ac_ext >&5
30722
30723eval "$as_ac_var=no"
30724fi
ac1cb8d3
VS
30725rm -f conftest.err conftest.$ac_objext \
30726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30727fi
30728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30730if test `eval echo '${'$as_ac_var'}'` = yes; then
30731 cat >>confdefs.h <<_ACEOF
30732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30733_ACEOF
30734 cat >>confdefs.h <<\_ACEOF
30735#define HAVE_NANOSLEEP 1
30736_ACEOF
30737
30738else
30739
30740 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30741echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30742if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30743 echo $ECHO_N "(cached) $ECHO_C" >&6
30744else
30745 ac_check_lib_save_LIBS=$LIBS
30746LIBS="-lposix4 $LIBS"
30747cat >conftest.$ac_ext <<_ACEOF
30748/* confdefs.h. */
30749_ACEOF
30750cat confdefs.h >>conftest.$ac_ext
30751cat >>conftest.$ac_ext <<_ACEOF
30752/* end confdefs.h. */
30753
30754/* Override any gcc2 internal prototype to avoid an error. */
30755#ifdef __cplusplus
30756extern "C"
30757#endif
30758/* We use char because int might match the return type of a gcc2
30759 builtin and then its argument prototype would still apply. */
30760char nanosleep ();
30761int
30762main ()
30763{
30764nanosleep ();
30765 ;
30766 return 0;
30767}
30768_ACEOF
30769rm -f conftest.$ac_objext conftest$ac_exeext
30770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30771 (eval $ac_link) 2>conftest.er1
a848cd7e 30772 ac_status=$?
ac1cb8d3
VS
30773 grep -v '^ *+' conftest.er1 >conftest.err
30774 rm -f conftest.er1
30775 cat conftest.err >&5
a848cd7e
SC
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } &&
d51253e8 30778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780 (eval $ac_try) 2>&5
30781 ac_status=$?
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; } &&
30784 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30786 (eval $ac_try) 2>&5
30787 ac_status=$?
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; }; then
30790 ac_cv_lib_posix4_nanosleep=yes
30791else
30792 echo "$as_me: failed program was:" >&5
30793sed 's/^/| /' conftest.$ac_ext >&5
30794
30795ac_cv_lib_posix4_nanosleep=no
30796fi
ac1cb8d3
VS
30797rm -f conftest.err conftest.$ac_objext \
30798 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30799LIBS=$ac_check_lib_save_LIBS
30800fi
30801echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30802echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30803if test $ac_cv_lib_posix4_nanosleep = yes; then
30804
30805 cat >>confdefs.h <<\_ACEOF
30806#define HAVE_NANOSLEEP 1
30807_ACEOF
30808
30809 POSIX4_LINK=" -lposix4"
30810
30811else
30812
30813
30814for ac_func in usleep
30815do
30816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30817echo "$as_me:$LINENO: checking for $ac_func" >&5
30818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30819if eval "test \"\${$as_ac_var+set}\" = set"; then
30820 echo $ECHO_N "(cached) $ECHO_C" >&6
30821else
30822 cat >conftest.$ac_ext <<_ACEOF
30823/* confdefs.h. */
30824_ACEOF
30825cat confdefs.h >>conftest.$ac_ext
30826cat >>conftest.$ac_ext <<_ACEOF
30827/* end confdefs.h. */
ac1cb8d3
VS
30828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30830#define $ac_func innocuous_$ac_func
30831
a848cd7e
SC
30832/* System header to define __stub macros and hopefully few prototypes,
30833 which can conflict with char $ac_func (); below.
30834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30835 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30836
a848cd7e
SC
30837#ifdef __STDC__
30838# include <limits.h>
30839#else
30840# include <assert.h>
30841#endif
ac1cb8d3
VS
30842
30843#undef $ac_func
30844
a848cd7e
SC
30845/* Override any gcc2 internal prototype to avoid an error. */
30846#ifdef __cplusplus
30847extern "C"
30848{
30849#endif
30850/* We use char because int might match the return type of a gcc2
30851 builtin and then its argument prototype would still apply. */
30852char $ac_func ();
30853/* The GNU C library defines this for functions which it implements
30854 to always fail with ENOSYS. Some functions are actually named
30855 something starting with __ and the normal name is an alias. */
30856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30857choke me
30858#else
30859char (*f) () = $ac_func;
30860#endif
30861#ifdef __cplusplus
30862}
30863#endif
30864
30865int
30866main ()
30867{
30868return f != $ac_func;
30869 ;
30870 return 0;
30871}
30872_ACEOF
30873rm -f conftest.$ac_objext conftest$ac_exeext
30874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30875 (eval $ac_link) 2>conftest.er1
a848cd7e 30876 ac_status=$?
ac1cb8d3
VS
30877 grep -v '^ *+' conftest.er1 >conftest.err
30878 rm -f conftest.er1
30879 cat conftest.err >&5
a848cd7e
SC
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); } &&
d51253e8 30882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30884 (eval $ac_try) 2>&5
30885 ac_status=$?
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 eval "$as_ac_var=yes"
30895else
30896 echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899eval "$as_ac_var=no"
30900fi
ac1cb8d3
VS
30901rm -f conftest.err conftest.$ac_objext \
30902 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30903fi
30904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30906if test `eval echo '${'$as_ac_var'}'` = yes; then
30907 cat >>confdefs.h <<_ACEOF
30908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30909_ACEOF
30910 cat >>confdefs.h <<\_ACEOF
30911#define HAVE_USLEEP 1
30912_ACEOF
30913
30914else
30915 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30916echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30917
30918fi
30919done
30920
30921
30922
30923fi
30924
30925
30926
30927fi
30928done
30929
30930fi
30931
30932
30933
30934for ac_func in uname gethostname
30935do
30936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30937echo "$as_me:$LINENO: checking for $ac_func" >&5
30938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30939if eval "test \"\${$as_ac_var+set}\" = set"; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30941else
30942 cat >conftest.$ac_ext <<_ACEOF
30943/* confdefs.h. */
30944_ACEOF
30945cat confdefs.h >>conftest.$ac_ext
30946cat >>conftest.$ac_ext <<_ACEOF
30947/* end confdefs.h. */
ac1cb8d3
VS
30948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30950#define $ac_func innocuous_$ac_func
30951
a848cd7e
SC
30952/* System header to define __stub macros and hopefully few prototypes,
30953 which can conflict with char $ac_func (); below.
30954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30955 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30956
a848cd7e
SC
30957#ifdef __STDC__
30958# include <limits.h>
30959#else
30960# include <assert.h>
30961#endif
ac1cb8d3
VS
30962
30963#undef $ac_func
30964
a848cd7e
SC
30965/* Override any gcc2 internal prototype to avoid an error. */
30966#ifdef __cplusplus
30967extern "C"
30968{
30969#endif
30970/* We use char because int might match the return type of a gcc2
30971 builtin and then its argument prototype would still apply. */
30972char $ac_func ();
30973/* The GNU C library defines this for functions which it implements
30974 to always fail with ENOSYS. Some functions are actually named
30975 something starting with __ and the normal name is an alias. */
30976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30977choke me
30978#else
30979char (*f) () = $ac_func;
30980#endif
30981#ifdef __cplusplus
30982}
30983#endif
30984
30985int
30986main ()
30987{
30988return f != $ac_func;
30989 ;
30990 return 0;
30991}
30992_ACEOF
30993rm -f conftest.$ac_objext conftest$ac_exeext
30994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30995 (eval $ac_link) 2>conftest.er1
a848cd7e 30996 ac_status=$?
ac1cb8d3
VS
30997 grep -v '^ *+' conftest.er1 >conftest.err
30998 rm -f conftest.er1
30999 cat conftest.err >&5
a848cd7e
SC
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); } &&
d51253e8 31002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31004 (eval $ac_try) 2>&5
31005 ac_status=$?
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); }; } &&
31008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31010 (eval $ac_try) 2>&5
31011 ac_status=$?
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); }; }; then
31014 eval "$as_ac_var=yes"
31015else
31016 echo "$as_me: failed program was:" >&5
31017sed 's/^/| /' conftest.$ac_ext >&5
31018
31019eval "$as_ac_var=no"
31020fi
ac1cb8d3
VS
31021rm -f conftest.err conftest.$ac_objext \
31022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31023fi
31024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31026if test `eval echo '${'$as_ac_var'}'` = yes; then
31027 cat >>confdefs.h <<_ACEOF
31028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31029_ACEOF
31030 break
31031fi
31032done
31033
31034
31035
31036
31037ac_ext=cc
31038ac_cpp='$CXXCPP $CPPFLAGS'
31039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31042
31043
31044
31045for ac_func in strtok_r
31046do
31047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31048echo "$as_me:$LINENO: checking for $ac_func" >&5
31049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31050if eval "test \"\${$as_ac_var+set}\" = set"; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31052else
31053 cat >conftest.$ac_ext <<_ACEOF
31054/* confdefs.h. */
31055_ACEOF
31056cat confdefs.h >>conftest.$ac_ext
31057cat >>conftest.$ac_ext <<_ACEOF
31058/* end confdefs.h. */
ac1cb8d3
VS
31059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31061#define $ac_func innocuous_$ac_func
31062
a848cd7e
SC
31063/* System header to define __stub macros and hopefully few prototypes,
31064 which can conflict with char $ac_func (); below.
31065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31066 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31067
a848cd7e
SC
31068#ifdef __STDC__
31069# include <limits.h>
31070#else
31071# include <assert.h>
31072#endif
ac1cb8d3
VS
31073
31074#undef $ac_func
31075
a848cd7e
SC
31076/* Override any gcc2 internal prototype to avoid an error. */
31077#ifdef __cplusplus
31078extern "C"
31079{
31080#endif
31081/* We use char because int might match the return type of a gcc2
31082 builtin and then its argument prototype would still apply. */
31083char $ac_func ();
31084/* The GNU C library defines this for functions which it implements
31085 to always fail with ENOSYS. Some functions are actually named
31086 something starting with __ and the normal name is an alias. */
31087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31088choke me
31089#else
31090char (*f) () = $ac_func;
31091#endif
31092#ifdef __cplusplus
31093}
31094#endif
31095
31096int
31097main ()
31098{
31099return f != $ac_func;
31100 ;
31101 return 0;
31102}
31103_ACEOF
31104rm -f conftest.$ac_objext conftest$ac_exeext
31105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31106 (eval $ac_link) 2>conftest.er1
a848cd7e 31107 ac_status=$?
ac1cb8d3
VS
31108 grep -v '^ *+' conftest.er1 >conftest.err
31109 rm -f conftest.er1
31110 cat conftest.err >&5
a848cd7e
SC
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } &&
d51253e8 31113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31115 (eval $ac_try) 2>&5
31116 ac_status=$?
31117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118 (exit $ac_status); }; } &&
31119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121 (eval $ac_try) 2>&5
31122 ac_status=$?
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); }; }; then
31125 eval "$as_ac_var=yes"
31126else
31127 echo "$as_me: failed program was:" >&5
31128sed 's/^/| /' conftest.$ac_ext >&5
31129
31130eval "$as_ac_var=no"
31131fi
ac1cb8d3
VS
31132rm -f conftest.err conftest.$ac_objext \
31133 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31134fi
31135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31137if test `eval echo '${'$as_ac_var'}'` = yes; then
31138 cat >>confdefs.h <<_ACEOF
31139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31140_ACEOF
31141
31142fi
31143done
31144
31145
31146ac_ext=c
31147ac_cpp='$CPP $CPPFLAGS'
31148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31150ac_compiler_gnu=$ac_cv_c_compiler_gnu
31151
31152
31153INET_LINK=
31154
31155for ac_func in inet_addr
31156do
31157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31158echo "$as_me:$LINENO: checking for $ac_func" >&5
31159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31160if eval "test \"\${$as_ac_var+set}\" = set"; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31162else
31163 cat >conftest.$ac_ext <<_ACEOF
31164/* confdefs.h. */
31165_ACEOF
31166cat confdefs.h >>conftest.$ac_ext
31167cat >>conftest.$ac_ext <<_ACEOF
31168/* end confdefs.h. */
ac1cb8d3
VS
31169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31171#define $ac_func innocuous_$ac_func
31172
a848cd7e
SC
31173/* System header to define __stub macros and hopefully few prototypes,
31174 which can conflict with char $ac_func (); below.
31175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31176 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31177
a848cd7e
SC
31178#ifdef __STDC__
31179# include <limits.h>
31180#else
31181# include <assert.h>
31182#endif
ac1cb8d3
VS
31183
31184#undef $ac_func
31185
a848cd7e
SC
31186/* Override any gcc2 internal prototype to avoid an error. */
31187#ifdef __cplusplus
31188extern "C"
31189{
31190#endif
31191/* We use char because int might match the return type of a gcc2
31192 builtin and then its argument prototype would still apply. */
31193char $ac_func ();
31194/* The GNU C library defines this for functions which it implements
31195 to always fail with ENOSYS. Some functions are actually named
31196 something starting with __ and the normal name is an alias. */
31197#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31198choke me
31199#else
31200char (*f) () = $ac_func;
31201#endif
31202#ifdef __cplusplus
31203}
31204#endif
31205
31206int
31207main ()
31208{
31209return f != $ac_func;
31210 ;
31211 return 0;
31212}
31213_ACEOF
31214rm -f conftest.$ac_objext conftest$ac_exeext
31215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31216 (eval $ac_link) 2>conftest.er1
a848cd7e 31217 ac_status=$?
ac1cb8d3
VS
31218 grep -v '^ *+' conftest.er1 >conftest.err
31219 rm -f conftest.er1
31220 cat conftest.err >&5
a848cd7e
SC
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
d51253e8 31223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31225 (eval $ac_try) 2>&5
31226 ac_status=$?
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; } &&
31229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231 (eval $ac_try) 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; }; then
31235 eval "$as_ac_var=yes"
31236else
31237 echo "$as_me: failed program was:" >&5
31238sed 's/^/| /' conftest.$ac_ext >&5
31239
31240eval "$as_ac_var=no"
31241fi
ac1cb8d3
VS
31242rm -f conftest.err conftest.$ac_objext \
31243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31244fi
31245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31246echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31247if test `eval echo '${'$as_ac_var'}'` = yes; then
31248 cat >>confdefs.h <<_ACEOF
31249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31250_ACEOF
31251 cat >>confdefs.h <<\_ACEOF
31252#define HAVE_INET_ADDR 1
31253_ACEOF
31254
31255else
31256
31257 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31258echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31259if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31260 echo $ECHO_N "(cached) $ECHO_C" >&6
31261else
31262 ac_check_lib_save_LIBS=$LIBS
31263LIBS="-lnsl $LIBS"
31264cat >conftest.$ac_ext <<_ACEOF
31265/* confdefs.h. */
31266_ACEOF
31267cat confdefs.h >>conftest.$ac_ext
31268cat >>conftest.$ac_ext <<_ACEOF
31269/* end confdefs.h. */
31270
31271/* Override any gcc2 internal prototype to avoid an error. */
31272#ifdef __cplusplus
31273extern "C"
31274#endif
31275/* We use char because int might match the return type of a gcc2
31276 builtin and then its argument prototype would still apply. */
31277char inet_addr ();
31278int
31279main ()
31280{
31281inet_addr ();
31282 ;
31283 return 0;
31284}
31285_ACEOF
31286rm -f conftest.$ac_objext conftest$ac_exeext
31287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31288 (eval $ac_link) 2>conftest.er1
a848cd7e 31289 ac_status=$?
ac1cb8d3
VS
31290 grep -v '^ *+' conftest.er1 >conftest.err
31291 rm -f conftest.er1
31292 cat conftest.err >&5
a848cd7e
SC
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 (exit $ac_status); } &&
d51253e8 31295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31297 (eval $ac_try) 2>&5
31298 ac_status=$?
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); }; } &&
31301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31303 (eval $ac_try) 2>&5
31304 ac_status=$?
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; }; then
31307 ac_cv_lib_nsl_inet_addr=yes
31308else
31309 echo "$as_me: failed program was:" >&5
31310sed 's/^/| /' conftest.$ac_ext >&5
31311
31312ac_cv_lib_nsl_inet_addr=no
31313fi
ac1cb8d3
VS
31314rm -f conftest.err conftest.$ac_objext \
31315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31316LIBS=$ac_check_lib_save_LIBS
31317fi
31318echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31319echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31320if test $ac_cv_lib_nsl_inet_addr = yes; then
31321 INET_LINK="nsl"
31322else
31323
31324 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31325echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31326if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31327 echo $ECHO_N "(cached) $ECHO_C" >&6
31328else
31329 ac_check_lib_save_LIBS=$LIBS
31330LIBS="-lresolv $LIBS"
31331cat >conftest.$ac_ext <<_ACEOF
31332/* confdefs.h. */
31333_ACEOF
31334cat confdefs.h >>conftest.$ac_ext
31335cat >>conftest.$ac_ext <<_ACEOF
31336/* end confdefs.h. */
31337
31338/* Override any gcc2 internal prototype to avoid an error. */
31339#ifdef __cplusplus
31340extern "C"
31341#endif
31342/* We use char because int might match the return type of a gcc2
31343 builtin and then its argument prototype would still apply. */
31344char inet_addr ();
31345int
31346main ()
31347{
31348inet_addr ();
31349 ;
31350 return 0;
31351}
31352_ACEOF
31353rm -f conftest.$ac_objext conftest$ac_exeext
31354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31355 (eval $ac_link) 2>conftest.er1
a848cd7e 31356 ac_status=$?
ac1cb8d3
VS
31357 grep -v '^ *+' conftest.er1 >conftest.err
31358 rm -f conftest.er1
31359 cat conftest.err >&5
a848cd7e
SC
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); } &&
d51253e8 31362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31364 (eval $ac_try) 2>&5
31365 ac_status=$?
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } &&
31368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31370 (eval $ac_try) 2>&5
31371 ac_status=$?
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
31374 ac_cv_lib_resolv_inet_addr=yes
31375else
31376 echo "$as_me: failed program was:" >&5
31377sed 's/^/| /' conftest.$ac_ext >&5
31378
31379ac_cv_lib_resolv_inet_addr=no
31380fi
ac1cb8d3
VS
31381rm -f conftest.err conftest.$ac_objext \
31382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31383LIBS=$ac_check_lib_save_LIBS
31384fi
31385echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31386echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31387if test $ac_cv_lib_resolv_inet_addr = yes; then
31388 INET_LINK="resolv"
31389else
31390
31391 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31392echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31393if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31394 echo $ECHO_N "(cached) $ECHO_C" >&6
31395else
31396 ac_check_lib_save_LIBS=$LIBS
31397LIBS="-lsocket $LIBS"
31398cat >conftest.$ac_ext <<_ACEOF
31399/* confdefs.h. */
31400_ACEOF
31401cat confdefs.h >>conftest.$ac_ext
31402cat >>conftest.$ac_ext <<_ACEOF
31403/* end confdefs.h. */
31404
31405/* Override any gcc2 internal prototype to avoid an error. */
31406#ifdef __cplusplus
31407extern "C"
31408#endif
31409/* We use char because int might match the return type of a gcc2
31410 builtin and then its argument prototype would still apply. */
31411char inet_addr ();
31412int
31413main ()
31414{
31415inet_addr ();
31416 ;
31417 return 0;
31418}
31419_ACEOF
31420rm -f conftest.$ac_objext conftest$ac_exeext
31421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31422 (eval $ac_link) 2>conftest.er1
a848cd7e 31423 ac_status=$?
ac1cb8d3
VS
31424 grep -v '^ *+' conftest.er1 >conftest.err
31425 rm -f conftest.er1
31426 cat conftest.err >&5
a848cd7e
SC
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } &&
d51253e8 31429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31431 (eval $ac_try) 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; } &&
31435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437 (eval $ac_try) 2>&5
31438 ac_status=$?
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; }; then
31441 ac_cv_lib_socket_inet_addr=yes
31442else
31443 echo "$as_me: failed program was:" >&5
31444sed 's/^/| /' conftest.$ac_ext >&5
31445
31446ac_cv_lib_socket_inet_addr=no
31447fi
ac1cb8d3
VS
31448rm -f conftest.err conftest.$ac_objext \
31449 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31450LIBS=$ac_check_lib_save_LIBS
31451fi
31452echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31453echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31454if test $ac_cv_lib_socket_inet_addr = yes; then
31455 INET_LINK="socket"
31456
31457fi
31458
31459
31460
31461fi
31462
31463
31464
31465fi
31466
31467
31468
31469fi
31470done
31471
31472
31473
31474for ac_func in inet_aton
31475do
31476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31477echo "$as_me:$LINENO: checking for $ac_func" >&5
31478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31479if eval "test \"\${$as_ac_var+set}\" = set"; then
31480 echo $ECHO_N "(cached) $ECHO_C" >&6
31481else
31482 cat >conftest.$ac_ext <<_ACEOF
31483/* confdefs.h. */
31484_ACEOF
31485cat confdefs.h >>conftest.$ac_ext
31486cat >>conftest.$ac_ext <<_ACEOF
31487/* end confdefs.h. */
ac1cb8d3
VS
31488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31490#define $ac_func innocuous_$ac_func
31491
a848cd7e
SC
31492/* System header to define __stub macros and hopefully few prototypes,
31493 which can conflict with char $ac_func (); below.
31494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31496
a848cd7e
SC
31497#ifdef __STDC__
31498# include <limits.h>
31499#else
31500# include <assert.h>
31501#endif
ac1cb8d3
VS
31502
31503#undef $ac_func
31504
a848cd7e
SC
31505/* Override any gcc2 internal prototype to avoid an error. */
31506#ifdef __cplusplus
31507extern "C"
31508{
31509#endif
31510/* We use char because int might match the return type of a gcc2
31511 builtin and then its argument prototype would still apply. */
31512char $ac_func ();
31513/* The GNU C library defines this for functions which it implements
31514 to always fail with ENOSYS. Some functions are actually named
31515 something starting with __ and the normal name is an alias. */
31516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31517choke me
31518#else
31519char (*f) () = $ac_func;
31520#endif
31521#ifdef __cplusplus
31522}
31523#endif
31524
31525int
31526main ()
31527{
31528return f != $ac_func;
31529 ;
31530 return 0;
31531}
31532_ACEOF
31533rm -f conftest.$ac_objext conftest$ac_exeext
31534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31535 (eval $ac_link) 2>conftest.er1
a848cd7e 31536 ac_status=$?
ac1cb8d3
VS
31537 grep -v '^ *+' conftest.er1 >conftest.err
31538 rm -f conftest.er1
31539 cat conftest.err >&5
a848cd7e
SC
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); } &&
d51253e8 31542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31544 (eval $ac_try) 2>&5
31545 ac_status=$?
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; } &&
31548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31550 (eval $ac_try) 2>&5
31551 ac_status=$?
31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); }; }; then
31554 eval "$as_ac_var=yes"
31555else
31556 echo "$as_me: failed program was:" >&5
31557sed 's/^/| /' conftest.$ac_ext >&5
31558
31559eval "$as_ac_var=no"
31560fi
ac1cb8d3
VS
31561rm -f conftest.err conftest.$ac_objext \
31562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31563fi
31564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31566if test `eval echo '${'$as_ac_var'}'` = yes; then
31567 cat >>confdefs.h <<_ACEOF
31568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31569_ACEOF
31570 cat >>confdefs.h <<\_ACEOF
31571#define HAVE_INET_ATON 1
31572_ACEOF
31573
31574else
31575
31576 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31577echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31578echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31579if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31580 echo $ECHO_N "(cached) $ECHO_C" >&6
31581else
31582 ac_check_lib_save_LIBS=$LIBS
31583LIBS="-l$INET_LINK $LIBS"
31584cat >conftest.$ac_ext <<_ACEOF
31585/* confdefs.h. */
31586_ACEOF
31587cat confdefs.h >>conftest.$ac_ext
31588cat >>conftest.$ac_ext <<_ACEOF
31589/* end confdefs.h. */
31590
31591/* Override any gcc2 internal prototype to avoid an error. */
31592#ifdef __cplusplus
31593extern "C"
31594#endif
31595/* We use char because int might match the return type of a gcc2
31596 builtin and then its argument prototype would still apply. */
31597char inet_aton ();
31598int
31599main ()
31600{
31601inet_aton ();
31602 ;
31603 return 0;
31604}
31605_ACEOF
31606rm -f conftest.$ac_objext conftest$ac_exeext
31607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31608 (eval $ac_link) 2>conftest.er1
a848cd7e 31609 ac_status=$?
ac1cb8d3
VS
31610 grep -v '^ *+' conftest.er1 >conftest.err
31611 rm -f conftest.er1
31612 cat conftest.err >&5
a848cd7e
SC
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); } &&
d51253e8 31615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31617 (eval $ac_try) 2>&5
31618 ac_status=$?
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); }; } &&
31621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31623 (eval $ac_try) 2>&5
31624 ac_status=$?
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; }; then
31627 eval "$as_ac_Lib=yes"
31628else
31629 echo "$as_me: failed program was:" >&5
31630sed 's/^/| /' conftest.$ac_ext >&5
31631
31632eval "$as_ac_Lib=no"
31633fi
ac1cb8d3
VS
31634rm -f conftest.err conftest.$ac_objext \
31635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31636LIBS=$ac_check_lib_save_LIBS
31637fi
31638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31639echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31640if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31641 cat >>confdefs.h <<\_ACEOF
31642#define HAVE_INET_ATON 1
31643_ACEOF
31644
31645fi
31646
31647
31648fi
31649done
31650
31651
31652if test "x$INET_LINK" != "x"; then
31653 cat >>confdefs.h <<\_ACEOF
31654#define HAVE_INET_ADDR 1
31655_ACEOF
31656
31657 INET_LINK=" -l$INET_LINK"
31658fi
31659
31660fi
31661
31662
31663
31664EXTRALIBS_ESD=
31665echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31666echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31667if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31668 echo $ECHO_N "(cached) $ECHO_C" >&6
31669else
31670 ac_check_lib_save_LIBS=$LIBS
31671LIBS="-lesd $LIBS"
31672cat >conftest.$ac_ext <<_ACEOF
31673/* confdefs.h. */
31674_ACEOF
31675cat confdefs.h >>conftest.$ac_ext
31676cat >>conftest.$ac_ext <<_ACEOF
31677/* end confdefs.h. */
31678
31679/* Override any gcc2 internal prototype to avoid an error. */
31680#ifdef __cplusplus
31681extern "C"
31682#endif
31683/* We use char because int might match the return type of a gcc2
31684 builtin and then its argument prototype would still apply. */
31685char esd_close ();
31686int
31687main ()
31688{
31689esd_close ();
31690 ;
31691 return 0;
31692}
31693_ACEOF
31694rm -f conftest.$ac_objext conftest$ac_exeext
31695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31696 (eval $ac_link) 2>conftest.er1
a848cd7e 31697 ac_status=$?
ac1cb8d3
VS
31698 grep -v '^ *+' conftest.er1 >conftest.err
31699 rm -f conftest.er1
31700 cat conftest.err >&5
a848cd7e
SC
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); } &&
d51253e8 31703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31705 (eval $ac_try) 2>&5
31706 ac_status=$?
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; } &&
31709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711 (eval $ac_try) 2>&5
31712 ac_status=$?
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; }; then
31715 ac_cv_lib_esd_esd_close=yes
31716else
31717 echo "$as_me: failed program was:" >&5
31718sed 's/^/| /' conftest.$ac_ext >&5
31719
31720ac_cv_lib_esd_esd_close=no
31721fi
ac1cb8d3
VS
31722rm -f conftest.err conftest.$ac_objext \
31723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31724LIBS=$ac_check_lib_save_LIBS
31725fi
31726echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31727echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31728if test $ac_cv_lib_esd_esd_close = yes; then
31729
31730
31731for ac_header in esd.h
31732do
31733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31734if eval "test \"\${$as_ac_Header+set}\" = set"; then
31735 echo "$as_me:$LINENO: checking for $ac_header" >&5
31736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31737if eval "test \"\${$as_ac_Header+set}\" = set"; then
31738 echo $ECHO_N "(cached) $ECHO_C" >&6
31739fi
31740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31742else
31743 # Is the header compilable?
31744echo "$as_me:$LINENO: checking $ac_header usability" >&5
31745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31746cat >conftest.$ac_ext <<_ACEOF
31747/* confdefs.h. */
31748_ACEOF
31749cat confdefs.h >>conftest.$ac_ext
31750cat >>conftest.$ac_ext <<_ACEOF
31751/* end confdefs.h. */
31752$ac_includes_default
31753#include <$ac_header>
31754_ACEOF
31755rm -f conftest.$ac_objext
31756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31757 (eval $ac_compile) 2>conftest.er1
a848cd7e 31758 ac_status=$?
ac1cb8d3
VS
31759 grep -v '^ *+' conftest.er1 >conftest.err
31760 rm -f conftest.er1
31761 cat conftest.err >&5
a848cd7e
SC
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); } &&
d51253e8 31764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; } &&
31770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772 (eval $ac_try) 2>&5
31773 ac_status=$?
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; }; then
31776 ac_header_compiler=yes
31777else
31778 echo "$as_me: failed program was:" >&5
31779sed 's/^/| /' conftest.$ac_ext >&5
31780
31781ac_header_compiler=no
31782fi
ac1cb8d3 31783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31785echo "${ECHO_T}$ac_header_compiler" >&6
31786
31787# Is the header present?
31788echo "$as_me:$LINENO: checking $ac_header presence" >&5
31789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31790cat >conftest.$ac_ext <<_ACEOF
31791/* confdefs.h. */
31792_ACEOF
31793cat confdefs.h >>conftest.$ac_ext
31794cat >>conftest.$ac_ext <<_ACEOF
31795/* end confdefs.h. */
31796#include <$ac_header>
31797_ACEOF
31798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31800 ac_status=$?
31801 grep -v '^ *+' conftest.er1 >conftest.err
31802 rm -f conftest.er1
31803 cat conftest.err >&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); } >/dev/null; then
31806 if test -s conftest.err; then
31807 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31809 else
31810 ac_cpp_err=
31811 fi
31812else
31813 ac_cpp_err=yes
31814fi
31815if test -z "$ac_cpp_err"; then
31816 ac_header_preproc=yes
31817else
31818 echo "$as_me: failed program was:" >&5
31819sed 's/^/| /' conftest.$ac_ext >&5
31820
31821 ac_header_preproc=no
31822fi
31823rm -f conftest.err conftest.$ac_ext
31824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31825echo "${ECHO_T}$ac_header_preproc" >&6
31826
31827# So? What about this header?
ac1cb8d3
VS
31828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31829 yes:no: )
a848cd7e
SC
31830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31834 ac_header_preproc=yes
a848cd7e 31835 ;;
ac1cb8d3 31836 no:yes:* )
a848cd7e
SC
31837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31849 (
31850 cat <<\_ASBOX
ac1cb8d3
VS
31851## ----------------------------------------- ##
31852## Report this to wx-dev@lists.wxwidgets.org ##
31853## ----------------------------------------- ##
a848cd7e
SC
31854_ASBOX
31855 ) |
31856 sed "s/^/$as_me: WARNING: /" >&2
31857 ;;
31858esac
31859echo "$as_me:$LINENO: checking for $ac_header" >&5
31860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31861if eval "test \"\${$as_ac_Header+set}\" = set"; then
31862 echo $ECHO_N "(cached) $ECHO_C" >&6
31863else
ac1cb8d3 31864 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31865fi
31866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31868
31869fi
31870if test `eval echo '${'$as_ac_Header'}'` = yes; then
31871 cat >>confdefs.h <<_ACEOF
31872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31873_ACEOF
31874
31875 EXTRALIBS_ESD="-lesd"
31876
31877fi
31878
31879done
31880
31881
31882fi
31883
31884
31885
31886echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31887echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31888cat >conftest.$ac_ext <<_ACEOF
31889/* confdefs.h. */
31890_ACEOF
31891cat confdefs.h >>conftest.$ac_ext
31892cat >>conftest.$ac_ext <<_ACEOF
31893/* end confdefs.h. */
31894#ifdef __linux__
31895 #include <linux/cdrom.h>
31896 #else
31897 /* For Solaris */
31898 #include <sys/cdio.h>
31899 #endif
31900
31901int
31902main ()
31903{
31904struct cdrom_tocentry entry, old_entry;
31905 ;
31906 return 0;
31907}
31908_ACEOF
31909rm -f conftest.$ac_objext
31910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31911 (eval $ac_compile) 2>conftest.er1
a848cd7e 31912 ac_status=$?
ac1cb8d3
VS
31913 grep -v '^ *+' conftest.er1 >conftest.err
31914 rm -f conftest.er1
31915 cat conftest.err >&5
a848cd7e
SC
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); } &&
d51253e8 31918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31920 (eval $ac_try) 2>&5
31921 ac_status=$?
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); }; } &&
31924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31926 (eval $ac_try) 2>&5
31927 ac_status=$?
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); }; }; then
31930 echo "$as_me:$LINENO: result: yes" >&5
31931echo "${ECHO_T}yes" >&6
31932 cat >>confdefs.h <<\_ACEOF
31933#define HAVE_KNOWN_CDROM_INTERFACE 1
31934_ACEOF
31935
31936else
31937 echo "$as_me: failed program was:" >&5
31938sed 's/^/| /' conftest.$ac_ext >&5
31939
31940echo "$as_me:$LINENO: result: no" >&5
31941echo "${ECHO_T}no" >&6
31942fi
ac1cb8d3 31943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31944
31945
31946cat >confcache <<\_ACEOF
31947# This file is a shell script that caches the results of configure
31948# tests run on this system so they can be shared between configure
31949# scripts and configure runs, see configure's option --config-cache.
31950# It is not useful on other systems. If it contains results you don't
31951# want to keep, you may remove or edit it.
31952#
31953# config.status only pays attention to the cache file if you give it
31954# the --recheck option to rerun configure.
31955#
31956# `ac_cv_env_foo' variables (set or unset) will be overridden when
31957# loading this file, other *unset* `ac_cv_foo' will be assigned the
31958# following values.
31959
31960_ACEOF
31961
31962# The following way of writing the cache mishandles newlines in values,
31963# but we know of no workaround that is simple, portable, and efficient.
31964# So, don't put newlines in cache variables' values.
31965# Ultrix sh set writes to stderr and can't be redirected directly,
31966# and sets the high bit in the cache file unless we assign to the vars.
31967{
31968 (set) 2>&1 |
31969 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31970 *ac_space=\ *)
31971 # `set' does not quote correctly, so add quotes (double-quote
31972 # substitution turns \\\\ into \\, and sed turns \\ into \).
31973 sed -n \
ac1cb8d3
VS
31974 "s/'/'\\\\''/g;
31975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31976 ;;
31977 *)
31978 # `set' quotes correctly as required by POSIX, so do not add quotes.
31979 sed -n \
ac1cb8d3 31980 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31981 ;;
31982 esac;
31983} |
31984 sed '
31985 t clear
31986 : clear
31987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31988 t end
31989 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31990 : end' >>confcache
31991if diff $cache_file confcache >/dev/null 2>&1; then :; else
31992 if test -w $cache_file; then
31993 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31994 cat confcache >$cache_file
31995 else
31996 echo "not updating unwritable cache $cache_file"
31997 fi
31998fi
31999rm -f confcache
32000
32001
32002CPP_MT_FLAG=
32003if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32004
32005
32006 THREADS_LINK=
32007 THREADS_CFLAGS=
32008
32009 if test "$wxUSE_THREADS" = "yes" ; then
32010 if test "$USE_BEOS" = 1; then
32011 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32012echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32013 wxUSE_THREADS="no"
32014 fi
32015 fi
32016
32017 if test "$wxUSE_THREADS" = "yes" ; then
32018
32019
32020 THREAD_OPTS="-pthread"
32021 case "${host}" in
32022 *-*-solaris2* | *-*-sunos4* )
32023 if test "x$GCC" = "xyes"; then
32024 THREAD_OPTS="-pthreads $THREAD_OPTS"
32025 else
32026 THREAD_OPTS="-mt $THREAD_OPTS"
32027 fi
32028 ;;
32029 *-*-freebsd*)
32030 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32031 ;;
32032 *-*-darwin* | *-*-cygwin* )
32033 THREAD_OPTS=""
32034 ;;
32035 *-*-aix*)
32036 THREAD_OPTS="pthreads"
32037 ;;
32038 *-hp-hpux* )
32039 if test "x$GCC" != "xyes"; then
32040 THREAD_OPTS=""
32041 fi
32042 ;;
32043
32044 *-*-irix* )
32045 if test "x$GCC" = "xyes"; then
32046 THREAD_OPTS=""
32047 fi
32048 ;;
32049
32050 *-*-*UnixWare*)
32051 if test "x$GCC" != "xyes"; then
32052 THREAD_OPTS="-Ethread"
32053 fi
32054 ;;
32055 esac
32056
32057 THREAD_OPTS="$THREAD_OPTS pthread none"
32058
32059 THREADS_OK=no
32060 for flag in $THREAD_OPTS; do
32061 case $flag in
32062 none)
32063 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32064echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32065 ;;
32066
32067 -*)
32068 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32069echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32070 THREADS_CFLAGS="$flag"
32071 ;;
32072
32073 *)
32074 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32075echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32076 THREADS_LINK="-l$flag"
32077 ;;
32078 esac
32079
32080 save_LIBS="$LIBS"
32081 save_CFLAGS="$CFLAGS"
32082 LIBS="$THREADS_LINK $LIBS"
32083 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32084
32085 cat >conftest.$ac_ext <<_ACEOF
32086/* confdefs.h. */
32087_ACEOF
32088cat confdefs.h >>conftest.$ac_ext
32089cat >>conftest.$ac_ext <<_ACEOF
32090/* end confdefs.h. */
32091#include <pthread.h>
32092int
32093main ()
32094{
32095pthread_create(0,0,0,0);
32096 ;
32097 return 0;
32098}
32099_ACEOF
32100rm -f conftest.$ac_objext conftest$ac_exeext
32101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32102 (eval $ac_link) 2>conftest.er1
a848cd7e 32103 ac_status=$?
ac1cb8d3
VS
32104 grep -v '^ *+' conftest.er1 >conftest.err
32105 rm -f conftest.er1
32106 cat conftest.err >&5
a848cd7e
SC
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); } &&
d51253e8 32109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32115 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32117 (eval $ac_try) 2>&5
32118 ac_status=$?
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; }; then
32121 THREADS_OK=yes
32122else
32123 echo "$as_me: failed program was:" >&5
32124sed 's/^/| /' conftest.$ac_ext >&5
32125
32126fi
ac1cb8d3
VS
32127rm -f conftest.err conftest.$ac_objext \
32128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32129
32130 LIBS="$save_LIBS"
32131 CFLAGS="$save_CFLAGS"
32132
32133 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32134echo "${ECHO_T}$THREADS_OK" >&6
32135 if test "x$THREADS_OK" = "xyes"; then
32136 break;
32137 fi
32138
32139 THREADS_LINK=""
32140 THREADS_CFLAGS=""
32141 done
32142
32143 if test "x$THREADS_OK" != "xyes"; then
32144 wxUSE_THREADS=no
32145 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32146echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32147 else
32148 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32149 LIBS="$THREADS_LINK $LIBS"
32150
32151 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32152echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32153 flag=no
32154 case "${host}" in
32155 *-aix*)
32156 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32157 flag="-D_THREAD_SAFE"
32158 ;;
32159 *-freebsd*)
32160 flag="-D_THREAD_SAFE"
32161 ;;
32162 *-hp-hpux* )
32163 flag="-D_REENTRANT"
32164 if test "x$GCC" != "xyes"; then
32165 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32166
32167 LIBS="$LIBS -lcma"
a848cd7e
SC
32168 fi
32169 ;;
32170 *solaris* | alpha*-osf*)
32171 flag="-D_REENTRANT"
32172 ;;
32173 esac
32174 echo "$as_me:$LINENO: result: ${flag}" >&5
32175echo "${ECHO_T}${flag}" >&6
32176 if test "x$flag" != xno; then
32177 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32178 fi
32179
32180 if test "x$THREADS_CFLAGS" != "x"; then
32181 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32182 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32183 fi
32184 fi
32185 fi
32186
32187 if test "$wxUSE_THREADS" = "yes" ; then
32188
32189for ac_func in thr_setconcurrency
32190do
32191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32192echo "$as_me:$LINENO: checking for $ac_func" >&5
32193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32194if eval "test \"\${$as_ac_var+set}\" = set"; then
32195 echo $ECHO_N "(cached) $ECHO_C" >&6
32196else
32197 cat >conftest.$ac_ext <<_ACEOF
32198/* confdefs.h. */
32199_ACEOF
32200cat confdefs.h >>conftest.$ac_ext
32201cat >>conftest.$ac_ext <<_ACEOF
32202/* end confdefs.h. */
ac1cb8d3
VS
32203/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32205#define $ac_func innocuous_$ac_func
32206
a848cd7e
SC
32207/* System header to define __stub macros and hopefully few prototypes,
32208 which can conflict with char $ac_func (); below.
32209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32210 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32211
a848cd7e
SC
32212#ifdef __STDC__
32213# include <limits.h>
32214#else
32215# include <assert.h>
32216#endif
ac1cb8d3
VS
32217
32218#undef $ac_func
32219
a848cd7e
SC
32220/* Override any gcc2 internal prototype to avoid an error. */
32221#ifdef __cplusplus
32222extern "C"
32223{
32224#endif
32225/* We use char because int might match the return type of a gcc2
32226 builtin and then its argument prototype would still apply. */
32227char $ac_func ();
32228/* The GNU C library defines this for functions which it implements
32229 to always fail with ENOSYS. Some functions are actually named
32230 something starting with __ and the normal name is an alias. */
32231#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32232choke me
32233#else
32234char (*f) () = $ac_func;
32235#endif
32236#ifdef __cplusplus
32237}
32238#endif
32239
32240int
32241main ()
32242{
32243return f != $ac_func;
32244 ;
32245 return 0;
32246}
32247_ACEOF
32248rm -f conftest.$ac_objext conftest$ac_exeext
32249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32250 (eval $ac_link) 2>conftest.er1
a848cd7e 32251 ac_status=$?
ac1cb8d3
VS
32252 grep -v '^ *+' conftest.er1 >conftest.err
32253 rm -f conftest.er1
32254 cat conftest.err >&5
a848cd7e
SC
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); } &&
d51253e8 32257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32259 (eval $ac_try) 2>&5
32260 ac_status=$?
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); }; } &&
32263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32265 (eval $ac_try) 2>&5
32266 ac_status=$?
32267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); }; }; then
32269 eval "$as_ac_var=yes"
32270else
32271 echo "$as_me: failed program was:" >&5
32272sed 's/^/| /' conftest.$ac_ext >&5
32273
32274eval "$as_ac_var=no"
32275fi
ac1cb8d3
VS
32276rm -f conftest.err conftest.$ac_objext \
32277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32278fi
32279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32281if test `eval echo '${'$as_ac_var'}'` = yes; then
32282 cat >>confdefs.h <<_ACEOF
32283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32284_ACEOF
32285
32286fi
32287done
32288
32289
32290
32291for ac_header in sched.h
32292do
32293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32294if eval "test \"\${$as_ac_Header+set}\" = set"; then
32295 echo "$as_me:$LINENO: checking for $ac_header" >&5
32296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32297if eval "test \"\${$as_ac_Header+set}\" = set"; then
32298 echo $ECHO_N "(cached) $ECHO_C" >&6
32299fi
32300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32302else
32303 # Is the header compilable?
32304echo "$as_me:$LINENO: checking $ac_header usability" >&5
32305echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32306cat >conftest.$ac_ext <<_ACEOF
32307/* confdefs.h. */
32308_ACEOF
32309cat confdefs.h >>conftest.$ac_ext
32310cat >>conftest.$ac_ext <<_ACEOF
32311/* end confdefs.h. */
32312$ac_includes_default
32313#include <$ac_header>
32314_ACEOF
32315rm -f conftest.$ac_objext
32316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32317 (eval $ac_compile) 2>conftest.er1
a848cd7e 32318 ac_status=$?
ac1cb8d3
VS
32319 grep -v '^ *+' conftest.er1 >conftest.err
32320 rm -f conftest.er1
32321 cat conftest.err >&5
a848cd7e
SC
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); } &&
d51253e8 32324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32326 (eval $ac_try) 2>&5
32327 ac_status=$?
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); }; } &&
32330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332 (eval $ac_try) 2>&5
32333 ac_status=$?
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; }; then
32336 ac_header_compiler=yes
32337else
32338 echo "$as_me: failed program was:" >&5
32339sed 's/^/| /' conftest.$ac_ext >&5
32340
32341ac_header_compiler=no
32342fi
ac1cb8d3 32343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32345echo "${ECHO_T}$ac_header_compiler" >&6
32346
32347# Is the header present?
32348echo "$as_me:$LINENO: checking $ac_header presence" >&5
32349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32350cat >conftest.$ac_ext <<_ACEOF
32351/* confdefs.h. */
32352_ACEOF
32353cat confdefs.h >>conftest.$ac_ext
32354cat >>conftest.$ac_ext <<_ACEOF
32355/* end confdefs.h. */
32356#include <$ac_header>
32357_ACEOF
32358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32360 ac_status=$?
32361 grep -v '^ *+' conftest.er1 >conftest.err
32362 rm -f conftest.er1
32363 cat conftest.err >&5
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); } >/dev/null; then
32366 if test -s conftest.err; then
32367 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32369 else
32370 ac_cpp_err=
32371 fi
32372else
32373 ac_cpp_err=yes
32374fi
32375if test -z "$ac_cpp_err"; then
32376 ac_header_preproc=yes
32377else
32378 echo "$as_me: failed program was:" >&5
32379sed 's/^/| /' conftest.$ac_ext >&5
32380
32381 ac_header_preproc=no
32382fi
32383rm -f conftest.err conftest.$ac_ext
32384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32385echo "${ECHO_T}$ac_header_preproc" >&6
32386
32387# So? What about this header?
ac1cb8d3
VS
32388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32389 yes:no: )
a848cd7e
SC
32390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32394 ac_header_preproc=yes
a848cd7e 32395 ;;
ac1cb8d3 32396 no:yes:* )
a848cd7e
SC
32397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32409 (
32410 cat <<\_ASBOX
ac1cb8d3
VS
32411## ----------------------------------------- ##
32412## Report this to wx-dev@lists.wxwidgets.org ##
32413## ----------------------------------------- ##
a848cd7e
SC
32414_ASBOX
32415 ) |
32416 sed "s/^/$as_me: WARNING: /" >&2
32417 ;;
32418esac
32419echo "$as_me:$LINENO: checking for $ac_header" >&5
32420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32421if eval "test \"\${$as_ac_Header+set}\" = set"; then
32422 echo $ECHO_N "(cached) $ECHO_C" >&6
32423else
ac1cb8d3 32424 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32425fi
32426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32428
32429fi
32430if test `eval echo '${'$as_ac_Header'}'` = yes; then
32431 cat >>confdefs.h <<_ACEOF
32432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32433_ACEOF
32434
32435fi
32436
32437done
32438
32439 if test "$ac_cv_header_sched_h" = "yes"; then
32440 echo "$as_me:$LINENO: checking for sched_yield" >&5
32441echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32442if test "${ac_cv_func_sched_yield+set}" = set; then
32443 echo $ECHO_N "(cached) $ECHO_C" >&6
32444else
32445 cat >conftest.$ac_ext <<_ACEOF
32446/* confdefs.h. */
32447_ACEOF
32448cat confdefs.h >>conftest.$ac_ext
32449cat >>conftest.$ac_ext <<_ACEOF
32450/* end confdefs.h. */
ac1cb8d3
VS
32451/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32453#define sched_yield innocuous_sched_yield
32454
a848cd7e
SC
32455/* System header to define __stub macros and hopefully few prototypes,
32456 which can conflict with char sched_yield (); below.
32457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32458 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32459
a848cd7e
SC
32460#ifdef __STDC__
32461# include <limits.h>
32462#else
32463# include <assert.h>
32464#endif
ac1cb8d3
VS
32465
32466#undef sched_yield
32467
a848cd7e
SC
32468/* Override any gcc2 internal prototype to avoid an error. */
32469#ifdef __cplusplus
32470extern "C"
32471{
32472#endif
32473/* We use char because int might match the return type of a gcc2
32474 builtin and then its argument prototype would still apply. */
32475char sched_yield ();
32476/* The GNU C library defines this for functions which it implements
32477 to always fail with ENOSYS. Some functions are actually named
32478 something starting with __ and the normal name is an alias. */
32479#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32480choke me
32481#else
32482char (*f) () = sched_yield;
32483#endif
32484#ifdef __cplusplus
32485}
32486#endif
32487
32488int
32489main ()
32490{
32491return f != sched_yield;
32492 ;
32493 return 0;
32494}
32495_ACEOF
32496rm -f conftest.$ac_objext conftest$ac_exeext
32497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32498 (eval $ac_link) 2>conftest.er1
a848cd7e 32499 ac_status=$?
ac1cb8d3
VS
32500 grep -v '^ *+' conftest.er1 >conftest.err
32501 rm -f conftest.er1
32502 cat conftest.err >&5
a848cd7e
SC
32503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504 (exit $ac_status); } &&
d51253e8 32505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507 (eval $ac_try) 2>&5
32508 ac_status=$?
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; } &&
32511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32513 (eval $ac_try) 2>&5
32514 ac_status=$?
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); }; }; then
32517 ac_cv_func_sched_yield=yes
32518else
32519 echo "$as_me: failed program was:" >&5
32520sed 's/^/| /' conftest.$ac_ext >&5
32521
32522ac_cv_func_sched_yield=no
32523fi
ac1cb8d3
VS
32524rm -f conftest.err conftest.$ac_objext \
32525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32526fi
32527echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32528echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32529if test $ac_cv_func_sched_yield = yes; then
32530 cat >>confdefs.h <<\_ACEOF
32531#define HAVE_SCHED_YIELD 1
32532_ACEOF
32533
32534else
32535
32536 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32537echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32538if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32539 echo $ECHO_N "(cached) $ECHO_C" >&6
32540else
32541 ac_check_lib_save_LIBS=$LIBS
32542LIBS="-lposix4 $LIBS"
32543cat >conftest.$ac_ext <<_ACEOF
32544/* confdefs.h. */
32545_ACEOF
32546cat confdefs.h >>conftest.$ac_ext
32547cat >>conftest.$ac_ext <<_ACEOF
32548/* end confdefs.h. */
32549
32550/* Override any gcc2 internal prototype to avoid an error. */
32551#ifdef __cplusplus
32552extern "C"
32553#endif
32554/* We use char because int might match the return type of a gcc2
32555 builtin and then its argument prototype would still apply. */
32556char sched_yield ();
32557int
32558main ()
32559{
32560sched_yield ();
32561 ;
32562 return 0;
32563}
32564_ACEOF
32565rm -f conftest.$ac_objext conftest$ac_exeext
32566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32567 (eval $ac_link) 2>conftest.er1
a848cd7e 32568 ac_status=$?
ac1cb8d3
VS
32569 grep -v '^ *+' conftest.er1 >conftest.err
32570 rm -f conftest.er1
32571 cat conftest.err >&5
a848cd7e
SC
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); } &&
d51253e8 32574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32576 (eval $ac_try) 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32582 (eval $ac_try) 2>&5
32583 ac_status=$?
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); }; }; then
32586 ac_cv_lib_posix4_sched_yield=yes
32587else
32588 echo "$as_me: failed program was:" >&5
32589sed 's/^/| /' conftest.$ac_ext >&5
32590
32591ac_cv_lib_posix4_sched_yield=no
32592fi
ac1cb8d3
VS
32593rm -f conftest.err conftest.$ac_objext \
32594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32595LIBS=$ac_check_lib_save_LIBS
32596fi
32597echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32598echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32599if test $ac_cv_lib_posix4_sched_yield = yes; then
32600 cat >>confdefs.h <<\_ACEOF
32601#define HAVE_SCHED_YIELD 1
32602_ACEOF
32603 POSIX4_LINK=" -lposix4"
32604else
32605 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32606echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32607
32608fi
32609
32610
32611
32612fi
32613
32614 fi
32615
32616 HAVE_PRIOR_FUNCS=0
32617 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32618echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32619if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32620 echo $ECHO_N "(cached) $ECHO_C" >&6
32621else
32622 cat >conftest.$ac_ext <<_ACEOF
32623/* confdefs.h. */
32624_ACEOF
32625cat confdefs.h >>conftest.$ac_ext
32626cat >>conftest.$ac_ext <<_ACEOF
32627/* end confdefs.h. */
ac1cb8d3
VS
32628/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32630#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32631
a848cd7e
SC
32632/* System header to define __stub macros and hopefully few prototypes,
32633 which can conflict with char pthread_attr_getschedpolicy (); below.
32634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32635 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32636
a848cd7e
SC
32637#ifdef __STDC__
32638# include <limits.h>
32639#else
32640# include <assert.h>
32641#endif
ac1cb8d3
VS
32642
32643#undef pthread_attr_getschedpolicy
32644
a848cd7e
SC
32645/* Override any gcc2 internal prototype to avoid an error. */
32646#ifdef __cplusplus
32647extern "C"
32648{
32649#endif
32650/* We use char because int might match the return type of a gcc2
32651 builtin and then its argument prototype would still apply. */
32652char pthread_attr_getschedpolicy ();
32653/* The GNU C library defines this for functions which it implements
32654 to always fail with ENOSYS. Some functions are actually named
32655 something starting with __ and the normal name is an alias. */
32656#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32657choke me
32658#else
32659char (*f) () = pthread_attr_getschedpolicy;
32660#endif
32661#ifdef __cplusplus
32662}
32663#endif
32664
32665int
32666main ()
32667{
32668return f != pthread_attr_getschedpolicy;
32669 ;
32670 return 0;
32671}
32672_ACEOF
32673rm -f conftest.$ac_objext conftest$ac_exeext
32674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32675 (eval $ac_link) 2>conftest.er1
a848cd7e 32676 ac_status=$?
ac1cb8d3
VS
32677 grep -v '^ *+' conftest.er1 >conftest.err
32678 rm -f conftest.er1
32679 cat conftest.err >&5
a848cd7e
SC
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); } &&
d51253e8 32682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32684 (eval $ac_try) 2>&5
32685 ac_status=$?
32686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); }; } &&
32688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690 (eval $ac_try) 2>&5
32691 ac_status=$?
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; }; then
32694 ac_cv_func_pthread_attr_getschedpolicy=yes
32695else
32696 echo "$as_me: failed program was:" >&5
32697sed 's/^/| /' conftest.$ac_ext >&5
32698
32699ac_cv_func_pthread_attr_getschedpolicy=no
32700fi
ac1cb8d3
VS
32701rm -f conftest.err conftest.$ac_objext \
32702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32703fi
32704echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32705echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32706if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32707 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32708echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32709if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32710 echo $ECHO_N "(cached) $ECHO_C" >&6
32711else
32712 cat >conftest.$ac_ext <<_ACEOF
32713/* confdefs.h. */
32714_ACEOF
32715cat confdefs.h >>conftest.$ac_ext
32716cat >>conftest.$ac_ext <<_ACEOF
32717/* end confdefs.h. */
ac1cb8d3
VS
32718/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32720#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32721
a848cd7e
SC
32722/* System header to define __stub macros and hopefully few prototypes,
32723 which can conflict with char pthread_attr_setschedparam (); below.
32724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32725 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32726
a848cd7e
SC
32727#ifdef __STDC__
32728# include <limits.h>
32729#else
32730# include <assert.h>
32731#endif
ac1cb8d3
VS
32732
32733#undef pthread_attr_setschedparam
32734
a848cd7e
SC
32735/* Override any gcc2 internal prototype to avoid an error. */
32736#ifdef __cplusplus
32737extern "C"
32738{
32739#endif
32740/* We use char because int might match the return type of a gcc2
32741 builtin and then its argument prototype would still apply. */
32742char pthread_attr_setschedparam ();
32743/* The GNU C library defines this for functions which it implements
32744 to always fail with ENOSYS. Some functions are actually named
32745 something starting with __ and the normal name is an alias. */
32746#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32747choke me
32748#else
32749char (*f) () = pthread_attr_setschedparam;
32750#endif
32751#ifdef __cplusplus
32752}
32753#endif
32754
32755int
32756main ()
32757{
32758return f != pthread_attr_setschedparam;
32759 ;
32760 return 0;
32761}
32762_ACEOF
32763rm -f conftest.$ac_objext conftest$ac_exeext
32764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32765 (eval $ac_link) 2>conftest.er1
a848cd7e 32766 ac_status=$?
ac1cb8d3
VS
32767 grep -v '^ *+' conftest.er1 >conftest.err
32768 rm -f conftest.er1
32769 cat conftest.err >&5
a848cd7e
SC
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } &&
d51253e8 32772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32774 (eval $ac_try) 2>&5
32775 ac_status=$?
32776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777 (exit $ac_status); }; } &&
32778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32780 (eval $ac_try) 2>&5
32781 ac_status=$?
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); }; }; then
32784 ac_cv_func_pthread_attr_setschedparam=yes
32785else
32786 echo "$as_me: failed program was:" >&5
32787sed 's/^/| /' conftest.$ac_ext >&5
32788
32789ac_cv_func_pthread_attr_setschedparam=no
32790fi
ac1cb8d3
VS
32791rm -f conftest.err conftest.$ac_objext \
32792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32793fi
32794echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32795echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32796if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32797 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32798echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32799if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32800 echo $ECHO_N "(cached) $ECHO_C" >&6
32801else
32802 cat >conftest.$ac_ext <<_ACEOF
32803/* confdefs.h. */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h. */
ac1cb8d3
VS
32808/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32810#define sched_get_priority_max innocuous_sched_get_priority_max
32811
a848cd7e
SC
32812/* System header to define __stub macros and hopefully few prototypes,
32813 which can conflict with char sched_get_priority_max (); below.
32814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32815 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32816
a848cd7e
SC
32817#ifdef __STDC__
32818# include <limits.h>
32819#else
32820# include <assert.h>
32821#endif
ac1cb8d3
VS
32822
32823#undef sched_get_priority_max
32824
a848cd7e
SC
32825/* Override any gcc2 internal prototype to avoid an error. */
32826#ifdef __cplusplus
32827extern "C"
32828{
32829#endif
32830/* We use char because int might match the return type of a gcc2
32831 builtin and then its argument prototype would still apply. */
32832char sched_get_priority_max ();
32833/* The GNU C library defines this for functions which it implements
32834 to always fail with ENOSYS. Some functions are actually named
32835 something starting with __ and the normal name is an alias. */
32836#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32837choke me
32838#else
32839char (*f) () = sched_get_priority_max;
32840#endif
32841#ifdef __cplusplus
32842}
32843#endif
32844
32845int
32846main ()
32847{
32848return f != sched_get_priority_max;
32849 ;
32850 return 0;
32851}
32852_ACEOF
32853rm -f conftest.$ac_objext conftest$ac_exeext
32854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32855 (eval $ac_link) 2>conftest.er1
a848cd7e 32856 ac_status=$?
ac1cb8d3
VS
32857 grep -v '^ *+' conftest.er1 >conftest.err
32858 rm -f conftest.er1
32859 cat conftest.err >&5
a848cd7e
SC
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); } &&
d51253e8 32862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; } &&
32868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870 (eval $ac_try) 2>&5
32871 ac_status=$?
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); }; }; then
32874 ac_cv_func_sched_get_priority_max=yes
32875else
32876 echo "$as_me: failed program was:" >&5
32877sed 's/^/| /' conftest.$ac_ext >&5
32878
32879ac_cv_func_sched_get_priority_max=no
32880fi
ac1cb8d3
VS
32881rm -f conftest.err conftest.$ac_objext \
32882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32883fi
32884echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32885echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32886if test $ac_cv_func_sched_get_priority_max = yes; then
32887 HAVE_PRIOR_FUNCS=1
32888else
32889 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32890echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32891if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32892 echo $ECHO_N "(cached) $ECHO_C" >&6
32893else
32894 ac_check_lib_save_LIBS=$LIBS
32895LIBS="-lposix4 $LIBS"
32896cat >conftest.$ac_ext <<_ACEOF
32897/* confdefs.h. */
32898_ACEOF
32899cat confdefs.h >>conftest.$ac_ext
32900cat >>conftest.$ac_ext <<_ACEOF
32901/* end confdefs.h. */
32902
32903/* Override any gcc2 internal prototype to avoid an error. */
32904#ifdef __cplusplus
32905extern "C"
32906#endif
32907/* We use char because int might match the return type of a gcc2
32908 builtin and then its argument prototype would still apply. */
32909char sched_get_priority_max ();
32910int
32911main ()
32912{
32913sched_get_priority_max ();
32914 ;
32915 return 0;
32916}
32917_ACEOF
32918rm -f conftest.$ac_objext conftest$ac_exeext
32919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32920 (eval $ac_link) 2>conftest.er1
a848cd7e 32921 ac_status=$?
ac1cb8d3
VS
32922 grep -v '^ *+' conftest.er1 >conftest.err
32923 rm -f conftest.er1
32924 cat conftest.err >&5
a848cd7e
SC
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); } &&
d51253e8 32927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32929 (eval $ac_try) 2>&5
32930 ac_status=$?
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); }; } &&
32933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32935 (eval $ac_try) 2>&5
32936 ac_status=$?
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); }; }; then
32939 ac_cv_lib_posix4_sched_get_priority_max=yes
32940else
32941 echo "$as_me: failed program was:" >&5
32942sed 's/^/| /' conftest.$ac_ext >&5
32943
32944ac_cv_lib_posix4_sched_get_priority_max=no
32945fi
ac1cb8d3
VS
32946rm -f conftest.err conftest.$ac_objext \
32947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32948LIBS=$ac_check_lib_save_LIBS
32949fi
32950echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32951echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32952if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32953
32954 HAVE_PRIOR_FUNCS=1
32955 POSIX4_LINK=" -lposix4"
32956
32957fi
32958
32959
32960fi
32961
32962
32963fi
32964
32965
32966fi
32967
32968
32969 if test "$HAVE_PRIOR_FUNCS" = 1; then
32970 cat >>confdefs.h <<\_ACEOF
32971#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32972_ACEOF
32973
32974 else
32975 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32976echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32977 fi
32978
32979 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32980echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32981if test "${ac_cv_func_pthread_cancel+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32983else
32984 cat >conftest.$ac_ext <<_ACEOF
32985/* confdefs.h. */
32986_ACEOF
32987cat confdefs.h >>conftest.$ac_ext
32988cat >>conftest.$ac_ext <<_ACEOF
32989/* end confdefs.h. */
ac1cb8d3
VS
32990/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32992#define pthread_cancel innocuous_pthread_cancel
32993
a848cd7e
SC
32994/* System header to define __stub macros and hopefully few prototypes,
32995 which can conflict with char pthread_cancel (); below.
32996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32997 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32998
a848cd7e
SC
32999#ifdef __STDC__
33000# include <limits.h>
33001#else
33002# include <assert.h>
33003#endif
ac1cb8d3
VS
33004
33005#undef pthread_cancel
33006
a848cd7e
SC
33007/* Override any gcc2 internal prototype to avoid an error. */
33008#ifdef __cplusplus
33009extern "C"
33010{
33011#endif
33012/* We use char because int might match the return type of a gcc2
33013 builtin and then its argument prototype would still apply. */
33014char pthread_cancel ();
33015/* The GNU C library defines this for functions which it implements
33016 to always fail with ENOSYS. Some functions are actually named
33017 something starting with __ and the normal name is an alias. */
33018#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33019choke me
33020#else
33021char (*f) () = pthread_cancel;
33022#endif
33023#ifdef __cplusplus
33024}
33025#endif
33026
33027int
33028main ()
33029{
33030return f != pthread_cancel;
33031 ;
33032 return 0;
33033}
33034_ACEOF
33035rm -f conftest.$ac_objext conftest$ac_exeext
33036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33037 (eval $ac_link) 2>conftest.er1
a848cd7e 33038 ac_status=$?
ac1cb8d3
VS
33039 grep -v '^ *+' conftest.er1 >conftest.err
33040 rm -f conftest.er1
33041 cat conftest.err >&5
a848cd7e
SC
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } &&
d51253e8 33044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33046 (eval $ac_try) 2>&5
33047 ac_status=$?
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); }; } &&
33050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33053 ac_status=$?
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; }; then
33056 ac_cv_func_pthread_cancel=yes
33057else
33058 echo "$as_me: failed program was:" >&5
33059sed 's/^/| /' conftest.$ac_ext >&5
33060
33061ac_cv_func_pthread_cancel=no
33062fi
ac1cb8d3
VS
33063rm -f conftest.err conftest.$ac_objext \
33064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33065fi
33066echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33067echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33068if test $ac_cv_func_pthread_cancel = yes; then
33069 cat >>confdefs.h <<\_ACEOF
33070#define HAVE_PTHREAD_CANCEL 1
33071_ACEOF
33072
33073else
33074 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33075echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33076fi
33077
33078
33079
33080
33081 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33082echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33083if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33084 echo $ECHO_N "(cached) $ECHO_C" >&6
33085else
33086
33087 cat >conftest.$ac_ext <<_ACEOF
33088/* confdefs.h. */
33089_ACEOF
33090cat confdefs.h >>conftest.$ac_ext
33091cat >>conftest.$ac_ext <<_ACEOF
33092/* end confdefs.h. */
33093#include <pthread.h>
33094int
33095main ()
33096{
33097
33098 pthread_mutexattr_t attr;
33099 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33100
33101 ;
33102 return 0;
33103}
33104_ACEOF
33105rm -f conftest.$ac_objext
33106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33107 (eval $ac_compile) 2>conftest.er1
a848cd7e 33108 ac_status=$?
ac1cb8d3
VS
33109 grep -v '^ *+' conftest.er1 >conftest.err
33110 rm -f conftest.er1
33111 cat conftest.err >&5
a848cd7e
SC
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); } &&
d51253e8 33114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33116 (eval $ac_try) 2>&5
33117 ac_status=$?
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); }; } &&
33120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; }; then
33126
33127 wx_cv_type_pthread_mutexattr_t=yes
33128
33129else
33130 echo "$as_me: failed program was:" >&5
33131sed 's/^/| /' conftest.$ac_ext >&5
33132
33133
33134 wx_cv_type_pthread_mutexattr_t=no
33135
33136
33137fi
ac1cb8d3 33138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33139
33140fi
33141echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33142echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33143
33144 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33145 cat >>confdefs.h <<\_ACEOF
33146#define HAVE_PTHREAD_MUTEXATTR_T 1
33147_ACEOF
33148
33149 else
33150 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33151echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33152if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33154else
33155
33156 cat >conftest.$ac_ext <<_ACEOF
33157/* confdefs.h. */
33158_ACEOF
33159cat confdefs.h >>conftest.$ac_ext
33160cat >>conftest.$ac_ext <<_ACEOF
33161/* end confdefs.h. */
33162#include <pthread.h>
33163int
33164main ()
33165{
33166
33167 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33168
33169 ;
33170 return 0;
33171}
33172_ACEOF
33173rm -f conftest.$ac_objext
33174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33175 (eval $ac_compile) 2>conftest.er1
a848cd7e 33176 ac_status=$?
ac1cb8d3
VS
33177 grep -v '^ *+' conftest.er1 >conftest.err
33178 rm -f conftest.er1
33179 cat conftest.err >&5
a848cd7e
SC
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); } &&
d51253e8 33182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33184 (eval $ac_try) 2>&5
33185 ac_status=$?
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); }; } &&
33188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190 (eval $ac_try) 2>&5
33191 ac_status=$?
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; }; then
33194
33195 wx_cv_type_pthread_rec_mutex_init=yes
33196
33197else
33198 echo "$as_me: failed program was:" >&5
33199sed 's/^/| /' conftest.$ac_ext >&5
33200
33201
33202 wx_cv_type_pthread_rec_mutex_init=no
33203
33204
33205fi
ac1cb8d3 33206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33207
33208fi
33209echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33210echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33211 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33212 cat >>confdefs.h <<\_ACEOF
33213#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33214_ACEOF
33215
33216 else
33217 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33218echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33219 fi
33220 fi
33221 fi
33222
33223else
33224 if test "$wxUSE_THREADS" = "yes" ; then
33225 case "${host}" in
33226 *-*-mingw32* )
33227 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33228echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33229if test "${wx_cv_cflags_mthread+set}" = set; then
33230 echo $ECHO_N "(cached) $ECHO_C" >&6
33231else
33232
33233 CFLAGS_OLD="$CFLAGS"
33234 CFLAGS="$CFLAGS -mthreads"
33235 cat >conftest.$ac_ext <<_ACEOF
33236/* confdefs.h. */
33237_ACEOF
33238cat confdefs.h >>conftest.$ac_ext
33239cat >>conftest.$ac_ext <<_ACEOF
33240/* end confdefs.h. */
33241
33242int
33243main ()
33244{
33245
33246 ;
33247 return 0;
33248}
33249_ACEOF
33250rm -f conftest.$ac_objext
33251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33252 (eval $ac_compile) 2>conftest.er1
a848cd7e 33253 ac_status=$?
ac1cb8d3
VS
33254 grep -v '^ *+' conftest.er1 >conftest.err
33255 rm -f conftest.er1
33256 cat conftest.err >&5
a848cd7e
SC
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); } &&
d51253e8 33259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33261 (eval $ac_try) 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; } &&
33265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33267 (eval $ac_try) 2>&5
33268 ac_status=$?
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; }; then
33271 wx_cv_cflags_mthread=yes
33272else
33273 echo "$as_me: failed program was:" >&5
33274sed 's/^/| /' conftest.$ac_ext >&5
33275
33276wx_cv_cflags_mthread=no
33277
33278fi
ac1cb8d3 33279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33280
33281
33282fi
33283echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33284echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33285
33286 if test "$wx_cv_cflags_mthread" = "yes"; then
33287 CXXFLAGS="$CXXFLAGS -mthreads"
33288 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33289 LDFLAGS="$LDFLAGS -mthreads"
33290 else
33291 CFLAGS="$CFLAGS_OLD"
33292 fi
33293 ;;
33294 *-pc-os2*emx )
33295 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33296 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33297 LDFLAGS="$LDFLAGS -Zmt"
33298 ;;
33299 esac
33300 fi
33301fi
33302
33303if test "$wxUSE_THREADS" = "yes"; then
33304 cat >>confdefs.h <<\_ACEOF
33305#define wxUSE_THREADS 1
33306_ACEOF
33307
33308
33309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33310else
33311 if test "$ac_cv_func_strtok_r" = "yes"; then
33312 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33313echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33314 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33315 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33316 echo "$as_me:$LINENO: result: yes" >&5
33317echo "${ECHO_T}yes" >&6
33318 else
33319 echo "$as_me:$LINENO: result: no" >&5
33320echo "${ECHO_T}no" >&6
33321 fi
33322 fi
33323fi
33324
33325if test "$WXGTK20" = 1 ; then
33326 cat >>confdefs.h <<_ACEOF
33327#define __WXGTK20__ $WXGTK20
33328_ACEOF
33329
33330 WXGTK12=1
33331fi
33332
33333if test "$WXGTK12" = 1 ; then
33334 cat >>confdefs.h <<_ACEOF
33335#define __WXGTK12__ $WXGTK12
33336_ACEOF
33337
33338fi
33339
33340if test "$WXGTK127" = 1 ; then
33341 cat >>confdefs.h <<_ACEOF
33342#define __WXGTK127__ $WXGTK127
33343_ACEOF
33344
33345fi
33346
33347if test "$WXGPE" = 1 ; then
33348 cat >>confdefs.h <<_ACEOF
33349#define __WXGPE__ $WXGPE
33350_ACEOF
33351
33352fi
33353
33354WXDEBUG=
33355
33356if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33357 WXDEBUG="-g"
33358 wxUSE_OPTIMISE=no
33359fi
33360
33361if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33362 wxUSE_DEBUG_INFO=yes
33363 WXDEBUG="-ggdb"
33364fi
33365
33366if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33367 cat >>confdefs.h <<\_ACEOF
33368#define WXDEBUG 1
33369_ACEOF
33370
33371 WXDEBUG_DEFINE="-D__WXDEBUG__"
33372else
33373 if test "$wxUSE_GTK" = 1 ; then
33374 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33375 fi
33376fi
33377
33378if test "$wxUSE_MEM_TRACING" = "yes" ; then
33379 cat >>confdefs.h <<\_ACEOF
33380#define wxUSE_MEMORY_TRACING 1
33381_ACEOF
33382
33383 cat >>confdefs.h <<\_ACEOF
33384#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33385_ACEOF
33386
33387 cat >>confdefs.h <<\_ACEOF
33388#define wxUSE_DEBUG_NEW_ALWAYS 1
33389_ACEOF
33390
33391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33392fi
33393
33394if test "$wxUSE_DMALLOC" = "yes" ; then
33395 DMALLOC_LIBS="-ldmalloc"
33396fi
33397
33398PROFILE=
33399if test "$wxUSE_PROFILE" = "yes" ; then
33400 PROFILE=" -pg"
33401fi
33402
33403CODE_GEN_FLAGS=
33404CODE_GEN_FLAGS_CXX=
33405if test "$GCC" = "yes" ; then
33406 if test "$wxUSE_NO_RTTI" = "yes" ; then
33407 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33408 fi
33409 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33410 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33411 fi
33412 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33413 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33414 fi
33415
33416 case "${host}" in
33417 powerpc*-*-aix* )
33418 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33419 ;;
33420 *-hppa* )
33421 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33422 ;;
33423 esac
33424fi
33425
33426OPTIMISE=
33427if test "$wxUSE_OPTIMISE" = "no" ; then
33428 if test "$GCC" = yes ; then
33429 OPTIMISE="-O0"
33430 fi
33431else
33432 if test "$GCC" = yes ; then
33433 OPTIMISE="-O2"
33434
33435 case "${host}" in
33436 i586-*-*|i686-*-* )
33437 OPTIMISE="${OPTIMISE} "
33438 ;;
33439 esac
33440 else
33441 OPTIMISE="-O"
33442 fi
33443fi
33444
33445
33446if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33447 cat >>confdefs.h <<\_ACEOF
33448#define WXWIN_COMPATIBILITY_2_2 1
33449_ACEOF
33450
33451
33452 WXWIN_COMPATIBILITY_2_4="yes"
33453fi
33454
33455if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33456 cat >>confdefs.h <<\_ACEOF
33457#define WXWIN_COMPATIBILITY_2_4 1
33458_ACEOF
33459
33460fi
33461
33462
33463if test "$wxUSE_GUI" = "yes"; then
33464 cat >>confdefs.h <<\_ACEOF
33465#define wxUSE_GUI 1
33466_ACEOF
33467
33468
33469 else
33470 cat >>confdefs.h <<\_ACEOF
33471#define wxUSE_NOGUI 1
33472_ACEOF
33473
33474fi
33475
33476
33477if test "$wxUSE_UNIX" = "yes"; then
33478 cat >>confdefs.h <<\_ACEOF
33479#define wxUSE_UNIX 1
33480_ACEOF
33481
33482fi
33483
33484
33485if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33486
33487 HAVE_DL_FUNCS=0
33488 HAVE_SHL_FUNCS=0
33489 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33490 if test "$USE_DARWIN" = 1; then
33491 HAVE_DL_FUNCS=1
33492 else
33493
33494for ac_func in dlopen
33495do
33496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33497echo "$as_me:$LINENO: checking for $ac_func" >&5
33498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33499if eval "test \"\${$as_ac_var+set}\" = set"; then
33500 echo $ECHO_N "(cached) $ECHO_C" >&6
33501else
33502 cat >conftest.$ac_ext <<_ACEOF
33503/* confdefs.h. */
33504_ACEOF
33505cat confdefs.h >>conftest.$ac_ext
33506cat >>conftest.$ac_ext <<_ACEOF
33507/* end confdefs.h. */
ac1cb8d3
VS
33508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33510#define $ac_func innocuous_$ac_func
33511
a848cd7e
SC
33512/* System header to define __stub macros and hopefully few prototypes,
33513 which can conflict with char $ac_func (); below.
33514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33515 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33516
a848cd7e
SC
33517#ifdef __STDC__
33518# include <limits.h>
33519#else
33520# include <assert.h>
33521#endif
ac1cb8d3
VS
33522
33523#undef $ac_func
33524
a848cd7e
SC
33525/* Override any gcc2 internal prototype to avoid an error. */
33526#ifdef __cplusplus
33527extern "C"
33528{
33529#endif
33530/* We use char because int might match the return type of a gcc2
33531 builtin and then its argument prototype would still apply. */
33532char $ac_func ();
33533/* The GNU C library defines this for functions which it implements
33534 to always fail with ENOSYS. Some functions are actually named
33535 something starting with __ and the normal name is an alias. */
33536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33537choke me
33538#else
33539char (*f) () = $ac_func;
33540#endif
33541#ifdef __cplusplus
33542}
33543#endif
33544
33545int
33546main ()
33547{
33548return f != $ac_func;
33549 ;
33550 return 0;
33551}
33552_ACEOF
33553rm -f conftest.$ac_objext conftest$ac_exeext
33554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33555 (eval $ac_link) 2>conftest.er1
a848cd7e 33556 ac_status=$?
ac1cb8d3
VS
33557 grep -v '^ *+' conftest.er1 >conftest.err
33558 rm -f conftest.er1
33559 cat conftest.err >&5
a848cd7e
SC
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); } &&
d51253e8 33562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33564 (eval $ac_try) 2>&5
33565 ac_status=$?
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); }; } &&
33568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33570 (eval $ac_try) 2>&5
33571 ac_status=$?
33572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33573 (exit $ac_status); }; }; then
33574 eval "$as_ac_var=yes"
33575else
33576 echo "$as_me: failed program was:" >&5
33577sed 's/^/| /' conftest.$ac_ext >&5
33578
33579eval "$as_ac_var=no"
33580fi
ac1cb8d3
VS
33581rm -f conftest.err conftest.$ac_objext \
33582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33583fi
33584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33586if test `eval echo '${'$as_ac_var'}'` = yes; then
33587 cat >>confdefs.h <<_ACEOF
33588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33589_ACEOF
33590
33591 cat >>confdefs.h <<\_ACEOF
33592#define HAVE_DLOPEN 1
33593_ACEOF
33594
33595 HAVE_DL_FUNCS=1
33596
33597else
33598
33599 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33600echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33601if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33602 echo $ECHO_N "(cached) $ECHO_C" >&6
33603else
33604 ac_check_lib_save_LIBS=$LIBS
33605LIBS="-ldl $LIBS"
33606cat >conftest.$ac_ext <<_ACEOF
33607/* confdefs.h. */
33608_ACEOF
33609cat confdefs.h >>conftest.$ac_ext
33610cat >>conftest.$ac_ext <<_ACEOF
33611/* end confdefs.h. */
33612
33613/* Override any gcc2 internal prototype to avoid an error. */
33614#ifdef __cplusplus
33615extern "C"
33616#endif
33617/* We use char because int might match the return type of a gcc2
33618 builtin and then its argument prototype would still apply. */
33619char dlopen ();
33620int
33621main ()
33622{
33623dlopen ();
33624 ;
33625 return 0;
33626}
33627_ACEOF
33628rm -f conftest.$ac_objext conftest$ac_exeext
33629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33630 (eval $ac_link) 2>conftest.er1
a848cd7e 33631 ac_status=$?
ac1cb8d3
VS
33632 grep -v '^ *+' conftest.er1 >conftest.err
33633 rm -f conftest.er1
33634 cat conftest.err >&5
a848cd7e
SC
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); } &&
d51253e8 33637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33639 (eval $ac_try) 2>&5
33640 ac_status=$?
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); }; } &&
33643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645 (eval $ac_try) 2>&5
33646 ac_status=$?
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); }; }; then
33649 ac_cv_lib_dl_dlopen=yes
33650else
33651 echo "$as_me: failed program was:" >&5
33652sed 's/^/| /' conftest.$ac_ext >&5
33653
33654ac_cv_lib_dl_dlopen=no
33655fi
ac1cb8d3
VS
33656rm -f conftest.err conftest.$ac_objext \
33657 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33658LIBS=$ac_check_lib_save_LIBS
33659fi
33660echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33661echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33662if test $ac_cv_lib_dl_dlopen = yes; then
33663
33664 cat >>confdefs.h <<\_ACEOF
33665#define HAVE_DLOPEN 1
33666_ACEOF
33667
33668 HAVE_DL_FUNCS=1
33669 DL_LINK=" -ldl$DL_LINK"
33670
33671else
33672
33673
33674for ac_func in shl_load
33675do
33676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33677echo "$as_me:$LINENO: checking for $ac_func" >&5
33678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33679if eval "test \"\${$as_ac_var+set}\" = set"; then
33680 echo $ECHO_N "(cached) $ECHO_C" >&6
33681else
33682 cat >conftest.$ac_ext <<_ACEOF
33683/* confdefs.h. */
33684_ACEOF
33685cat confdefs.h >>conftest.$ac_ext
33686cat >>conftest.$ac_ext <<_ACEOF
33687/* end confdefs.h. */
ac1cb8d3
VS
33688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33690#define $ac_func innocuous_$ac_func
33691
a848cd7e
SC
33692/* System header to define __stub macros and hopefully few prototypes,
33693 which can conflict with char $ac_func (); below.
33694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33695 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33696
a848cd7e
SC
33697#ifdef __STDC__
33698# include <limits.h>
33699#else
33700# include <assert.h>
33701#endif
ac1cb8d3
VS
33702
33703#undef $ac_func
33704
a848cd7e
SC
33705/* Override any gcc2 internal prototype to avoid an error. */
33706#ifdef __cplusplus
33707extern "C"
33708{
33709#endif
33710/* We use char because int might match the return type of a gcc2
33711 builtin and then its argument prototype would still apply. */
33712char $ac_func ();
33713/* The GNU C library defines this for functions which it implements
33714 to always fail with ENOSYS. Some functions are actually named
33715 something starting with __ and the normal name is an alias. */
33716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33717choke me
33718#else
33719char (*f) () = $ac_func;
33720#endif
33721#ifdef __cplusplus
33722}
33723#endif
33724
33725int
33726main ()
33727{
33728return f != $ac_func;
33729 ;
33730 return 0;
33731}
33732_ACEOF
33733rm -f conftest.$ac_objext conftest$ac_exeext
33734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33735 (eval $ac_link) 2>conftest.er1
a848cd7e 33736 ac_status=$?
ac1cb8d3
VS
33737 grep -v '^ *+' conftest.er1 >conftest.err
33738 rm -f conftest.er1
33739 cat conftest.err >&5
a848cd7e
SC
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); } &&
d51253e8 33742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744 (eval $ac_try) 2>&5
33745 ac_status=$?
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); }; } &&
33748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33750 (eval $ac_try) 2>&5
33751 ac_status=$?
33752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); }; }; then
33754 eval "$as_ac_var=yes"
33755else
33756 echo "$as_me: failed program was:" >&5
33757sed 's/^/| /' conftest.$ac_ext >&5
33758
33759eval "$as_ac_var=no"
33760fi
ac1cb8d3
VS
33761rm -f conftest.err conftest.$ac_objext \
33762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33763fi
33764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33765echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33766if test `eval echo '${'$as_ac_var'}'` = yes; then
33767 cat >>confdefs.h <<_ACEOF
33768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33769_ACEOF
33770
33771 cat >>confdefs.h <<\_ACEOF
33772#define HAVE_SHL_LOAD 1
33773_ACEOF
33774
33775 HAVE_SHL_FUNCS=1
33776
33777else
33778
33779 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33780echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33781if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33782 echo $ECHO_N "(cached) $ECHO_C" >&6
33783else
33784 ac_check_lib_save_LIBS=$LIBS
33785LIBS="-lshl_load $LIBS"
33786cat >conftest.$ac_ext <<_ACEOF
33787/* confdefs.h. */
33788_ACEOF
33789cat confdefs.h >>conftest.$ac_ext
33790cat >>conftest.$ac_ext <<_ACEOF
33791/* end confdefs.h. */
33792
33793/* Override any gcc2 internal prototype to avoid an error. */
33794#ifdef __cplusplus
33795extern "C"
33796#endif
33797/* We use char because int might match the return type of a gcc2
33798 builtin and then its argument prototype would still apply. */
33799char dld ();
33800int
33801main ()
33802{
33803dld ();
33804 ;
33805 return 0;
33806}
33807_ACEOF
33808rm -f conftest.$ac_objext conftest$ac_exeext
33809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33810 (eval $ac_link) 2>conftest.er1
a848cd7e 33811 ac_status=$?
ac1cb8d3
VS
33812 grep -v '^ *+' conftest.er1 >conftest.err
33813 rm -f conftest.er1
33814 cat conftest.err >&5
a848cd7e
SC
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); } &&
d51253e8 33817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819 (eval $ac_try) 2>&5
33820 ac_status=$?
33821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822 (exit $ac_status); }; } &&
33823 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33825 (eval $ac_try) 2>&5
33826 ac_status=$?
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); }; }; then
33829 ac_cv_lib_shl_load_dld=yes
33830else
33831 echo "$as_me: failed program was:" >&5
33832sed 's/^/| /' conftest.$ac_ext >&5
33833
33834ac_cv_lib_shl_load_dld=no
33835fi
ac1cb8d3
VS
33836rm -f conftest.err conftest.$ac_objext \
33837 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33838LIBS=$ac_check_lib_save_LIBS
33839fi
33840echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33841echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33842if test $ac_cv_lib_shl_load_dld = yes; then
33843
33844 HAVE_SHL_FUNCS=1
33845 DL_LINK=" -ldld$DL_LINK"
33846
33847fi
33848
33849
33850fi
33851done
33852
33853
33854fi
33855
33856
33857fi
33858done
33859
33860
33861 if test "$HAVE_DL_FUNCS" = 1; then
33862
33863for ac_func in dlerror
33864do
33865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33866echo "$as_me:$LINENO: checking for $ac_func" >&5
33867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33868if eval "test \"\${$as_ac_var+set}\" = set"; then
33869 echo $ECHO_N "(cached) $ECHO_C" >&6
33870else
33871 cat >conftest.$ac_ext <<_ACEOF
33872/* confdefs.h. */
33873_ACEOF
33874cat confdefs.h >>conftest.$ac_ext
33875cat >>conftest.$ac_ext <<_ACEOF
33876/* end confdefs.h. */
ac1cb8d3
VS
33877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33879#define $ac_func innocuous_$ac_func
33880
a848cd7e
SC
33881/* System header to define __stub macros and hopefully few prototypes,
33882 which can conflict with char $ac_func (); below.
33883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33884 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33885
a848cd7e
SC
33886#ifdef __STDC__
33887# include <limits.h>
33888#else
33889# include <assert.h>
33890#endif
ac1cb8d3
VS
33891
33892#undef $ac_func
33893
a848cd7e
SC
33894/* Override any gcc2 internal prototype to avoid an error. */
33895#ifdef __cplusplus
33896extern "C"
33897{
33898#endif
33899/* We use char because int might match the return type of a gcc2
33900 builtin and then its argument prototype would still apply. */
33901char $ac_func ();
33902/* The GNU C library defines this for functions which it implements
33903 to always fail with ENOSYS. Some functions are actually named
33904 something starting with __ and the normal name is an alias. */
33905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33906choke me
33907#else
33908char (*f) () = $ac_func;
33909#endif
33910#ifdef __cplusplus
33911}
33912#endif
33913
33914int
33915main ()
33916{
33917return f != $ac_func;
33918 ;
33919 return 0;
33920}
33921_ACEOF
33922rm -f conftest.$ac_objext conftest$ac_exeext
33923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33924 (eval $ac_link) 2>conftest.er1
a848cd7e 33925 ac_status=$?
ac1cb8d3
VS
33926 grep -v '^ *+' conftest.er1 >conftest.err
33927 rm -f conftest.er1
33928 cat conftest.err >&5
a848cd7e
SC
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } &&
d51253e8 33931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; } &&
33937 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939 (eval $ac_try) 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
33943 eval "$as_ac_var=yes"
33944else
33945 echo "$as_me: failed program was:" >&5
33946sed 's/^/| /' conftest.$ac_ext >&5
33947
33948eval "$as_ac_var=no"
33949fi
ac1cb8d3
VS
33950rm -f conftest.err conftest.$ac_objext \
33951 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33952fi
33953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33954echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33955if test `eval echo '${'$as_ac_var'}'` = yes; then
33956 cat >>confdefs.h <<_ACEOF
33957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33958_ACEOF
33959 cat >>confdefs.h <<\_ACEOF
33960#define HAVE_DLERROR 1
33961_ACEOF
33962
33963else
33964
33965 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33966echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33967if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33968 echo $ECHO_N "(cached) $ECHO_C" >&6
33969else
33970 ac_check_lib_save_LIBS=$LIBS
33971LIBS="-ldl $LIBS"
33972cat >conftest.$ac_ext <<_ACEOF
33973/* confdefs.h. */
33974_ACEOF
33975cat confdefs.h >>conftest.$ac_ext
33976cat >>conftest.$ac_ext <<_ACEOF
33977/* end confdefs.h. */
33978
33979/* Override any gcc2 internal prototype to avoid an error. */
33980#ifdef __cplusplus
33981extern "C"
33982#endif
33983/* We use char because int might match the return type of a gcc2
33984 builtin and then its argument prototype would still apply. */
33985char dlerror ();
33986int
33987main ()
33988{
33989dlerror ();
33990 ;
33991 return 0;
33992}
33993_ACEOF
33994rm -f conftest.$ac_objext conftest$ac_exeext
33995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33996 (eval $ac_link) 2>conftest.er1
a848cd7e 33997 ac_status=$?
ac1cb8d3
VS
33998 grep -v '^ *+' conftest.er1 >conftest.err
33999 rm -f conftest.er1
34000 cat conftest.err >&5
a848cd7e
SC
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } &&
d51253e8 34003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; } &&
34009 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34011 (eval $ac_try) 2>&5
34012 ac_status=$?
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); }; }; then
34015 ac_cv_lib_dl_dlerror=yes
34016else
34017 echo "$as_me: failed program was:" >&5
34018sed 's/^/| /' conftest.$ac_ext >&5
34019
34020ac_cv_lib_dl_dlerror=no
34021fi
ac1cb8d3
VS
34022rm -f conftest.err conftest.$ac_objext \
34023 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34024LIBS=$ac_check_lib_save_LIBS
34025fi
34026echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34027echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34028if test $ac_cv_lib_dl_dlerror = yes; then
34029 cat >>confdefs.h <<\_ACEOF
34030#define HAVE_DLERROR 1
34031_ACEOF
34032
34033fi
34034
34035
34036
34037fi
34038done
34039
34040 fi
34041 fi
34042
34043 if test "$HAVE_DL_FUNCS" = 0; then
34044 if test "$HAVE_SHL_FUNCS" = 0; then
34045 if test "$USE_UNIX" = 1; then
34046 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34047echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34048 wxUSE_DYNAMIC_LOADER=no
34049 wxUSE_DYNLIB_CLASS=no
34050 else
34051 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34052echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34053 fi
34054 fi
34055 fi
34056 fi
34057fi
34058
34059if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34060 cat >>confdefs.h <<\_ACEOF
34061#define wxUSE_DYNAMIC_LOADER 1
34062_ACEOF
34063
34064fi
34065if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34066 cat >>confdefs.h <<\_ACEOF
34067#define wxUSE_DYNLIB_CLASS 1
34068_ACEOF
34069
34070fi
34071
34072
34073
34074if test "$wxUSE_PLUGINS" = "yes" ; then
34075 if test "$wxUSE_SHARED" = "no" ; then
34076 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34077echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34078 wxUSE_PLUGINS=no
34079 fi
34080 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34081 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34082echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34083 wxUSE_PLUGINS=no
34084 fi
34085 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34086 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34087echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34088 wxUSE_PLUGINS=no
34089 fi
34090 if test "$wxUSE_PLUGINS" = "yes" ; then
34091 cat >>confdefs.h <<\_ACEOF
34092#define wxUSE_PLUGINS 1
34093_ACEOF
34094
34095 fi
34096fi
34097
34098
34099if test "$wxUSE_STL" = "yes"; then
34100 cat >>confdefs.h <<\_ACEOF
34101#define wxUSE_STL 1
34102_ACEOF
34103
34104fi
34105
34106if test "$wxUSE_APPLE_IEEE" = "yes"; then
34107 cat >>confdefs.h <<\_ACEOF
34108#define wxUSE_APPLE_IEEE 1
34109_ACEOF
34110
34111fi
34112
34113if test "$wxUSE_TIMER" = "yes"; then
34114 cat >>confdefs.h <<\_ACEOF
34115#define wxUSE_TIMER 1
34116_ACEOF
34117
34118fi
34119
34120WITH_PLUGIN_SDL=0
34121if test "$wxUSE_SOUND" = "yes"; then
34122 if test "$USE_UNIX" = "1" ; then
34123
34124for ac_header in sys/soundcard.h
34125do
34126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34127if eval "test \"\${$as_ac_Header+set}\" = set"; then
34128 echo "$as_me:$LINENO: checking for $ac_header" >&5
34129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34130if eval "test \"\${$as_ac_Header+set}\" = set"; then
34131 echo $ECHO_N "(cached) $ECHO_C" >&6
34132fi
34133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34135else
34136 # Is the header compilable?
34137echo "$as_me:$LINENO: checking $ac_header usability" >&5
34138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34139cat >conftest.$ac_ext <<_ACEOF
34140/* confdefs.h. */
34141_ACEOF
34142cat confdefs.h >>conftest.$ac_ext
34143cat >>conftest.$ac_ext <<_ACEOF
34144/* end confdefs.h. */
34145$ac_includes_default
34146#include <$ac_header>
34147_ACEOF
34148rm -f conftest.$ac_objext
34149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34150 (eval $ac_compile) 2>conftest.er1
a848cd7e 34151 ac_status=$?
ac1cb8d3
VS
34152 grep -v '^ *+' conftest.er1 >conftest.err
34153 rm -f conftest.er1
34154 cat conftest.err >&5
a848cd7e
SC
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); } &&
d51253e8 34157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159 (eval $ac_try) 2>&5
34160 ac_status=$?
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); }; } &&
34163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34165 (eval $ac_try) 2>&5
34166 ac_status=$?
34167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168 (exit $ac_status); }; }; then
34169 ac_header_compiler=yes
34170else
34171 echo "$as_me: failed program was:" >&5
34172sed 's/^/| /' conftest.$ac_ext >&5
34173
34174ac_header_compiler=no
34175fi
ac1cb8d3 34176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34178echo "${ECHO_T}$ac_header_compiler" >&6
34179
34180# Is the header present?
34181echo "$as_me:$LINENO: checking $ac_header presence" >&5
34182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34183cat >conftest.$ac_ext <<_ACEOF
34184/* confdefs.h. */
34185_ACEOF
34186cat confdefs.h >>conftest.$ac_ext
34187cat >>conftest.$ac_ext <<_ACEOF
34188/* end confdefs.h. */
34189#include <$ac_header>
34190_ACEOF
34191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34193 ac_status=$?
34194 grep -v '^ *+' conftest.er1 >conftest.err
34195 rm -f conftest.er1
34196 cat conftest.err >&5
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); } >/dev/null; then
34199 if test -s conftest.err; then
34200 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34202 else
34203 ac_cpp_err=
34204 fi
34205else
34206 ac_cpp_err=yes
34207fi
34208if test -z "$ac_cpp_err"; then
34209 ac_header_preproc=yes
34210else
34211 echo "$as_me: failed program was:" >&5
34212sed 's/^/| /' conftest.$ac_ext >&5
34213
34214 ac_header_preproc=no
34215fi
34216rm -f conftest.err conftest.$ac_ext
34217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34218echo "${ECHO_T}$ac_header_preproc" >&6
34219
34220# So? What about this header?
ac1cb8d3
VS
34221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34222 yes:no: )
a848cd7e
SC
34223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34227 ac_header_preproc=yes
a848cd7e 34228 ;;
ac1cb8d3 34229 no:yes:* )
a848cd7e
SC
34230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34242 (
34243 cat <<\_ASBOX
ac1cb8d3
VS
34244## ----------------------------------------- ##
34245## Report this to wx-dev@lists.wxwidgets.org ##
34246## ----------------------------------------- ##
a848cd7e
SC
34247_ASBOX
34248 ) |
34249 sed "s/^/$as_me: WARNING: /" >&2
34250 ;;
34251esac
34252echo "$as_me:$LINENO: checking for $ac_header" >&5
34253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34254if eval "test \"\${$as_ac_Header+set}\" = set"; then
34255 echo $ECHO_N "(cached) $ECHO_C" >&6
34256else
ac1cb8d3 34257 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34258fi
34259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34261
34262fi
34263if test `eval echo '${'$as_ac_Header'}'` = yes; then
34264 cat >>confdefs.h <<_ACEOF
34265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34266_ACEOF
34267
34268fi
34269
34270done
34271
34272
34273 if test "$wxUSE_LIBSDL" != "no"; then
34274
34275# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34276if test "${with_sdl_prefix+set}" = set; then
34277 withval="$with_sdl_prefix"
34278 sdl_prefix="$withval"
34279else
34280 sdl_prefix=""
34281fi;
34282
34283# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34284if test "${with_sdl_exec_prefix+set}" = set; then
34285 withval="$with_sdl_exec_prefix"
34286 sdl_exec_prefix="$withval"
34287else
34288 sdl_exec_prefix=""
34289fi;
34290# Check whether --enable-sdltest or --disable-sdltest was given.
34291if test "${enable_sdltest+set}" = set; then
34292 enableval="$enable_sdltest"
34293
34294else
34295 enable_sdltest=yes
34296fi;
34297
34298 if test x$sdl_exec_prefix != x ; then
34299 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34300 if test x${SDL_CONFIG+set} != xset ; then
34301 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34302 fi
34303 fi
34304 if test x$sdl_prefix != x ; then
34305 sdl_args="$sdl_args --prefix=$sdl_prefix"
34306 if test x${SDL_CONFIG+set} != xset ; then
34307 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34308 fi
34309 fi
34310
34311
34312 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34313 # Extract the first word of "sdl-config", so it can be a program name with args.
34314set dummy sdl-config; ac_word=$2
34315echo "$as_me:$LINENO: checking for $ac_word" >&5
34316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34317if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34318 echo $ECHO_N "(cached) $ECHO_C" >&6
34319else
34320 case $SDL_CONFIG in
34321 [\\/]* | ?:[\\/]*)
34322 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34323 ;;
34324 *)
34325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34326for as_dir in $PATH
34327do
34328 IFS=$as_save_IFS
34329 test -z "$as_dir" && as_dir=.
34330 for ac_exec_ext in '' $ac_executable_extensions; do
34331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34332 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34334 break 2
34335 fi
34336done
34337done
34338
34339 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34340 ;;
34341esac
34342fi
34343SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34344
34345if test -n "$SDL_CONFIG"; then
34346 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34347echo "${ECHO_T}$SDL_CONFIG" >&6
34348else
34349 echo "$as_me:$LINENO: result: no" >&5
34350echo "${ECHO_T}no" >&6
34351fi
34352
34353 min_sdl_version=1.2.0
34354 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34355echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34356 no_sdl=""
34357 if test "$SDL_CONFIG" = "no" ; then
34358 no_sdl=yes
34359 else
34360 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34361 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34362
34363 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34364 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34365 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34366 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34367 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34368 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34369 if test "x$enable_sdltest" = "xyes" ; then
34370 ac_save_CFLAGS="$CFLAGS"
34371 ac_save_LIBS="$LIBS"
34372 CFLAGS="$CFLAGS $SDL_CFLAGS"
34373 LIBS="$LIBS $SDL_LIBS"
34374 rm -f conf.sdltest
34375 if test "$cross_compiling" = yes; then
34376 echo $ac_n "cross compiling; assumed OK... $ac_c"
34377else
34378 cat >conftest.$ac_ext <<_ACEOF
34379/* confdefs.h. */
34380_ACEOF
34381cat confdefs.h >>conftest.$ac_ext
34382cat >>conftest.$ac_ext <<_ACEOF
34383/* end confdefs.h. */
34384
34385#include <stdio.h>
34386#include <stdlib.h>
34387#include <string.h>
34388#include "SDL.h"
34389
34390char*
34391my_strdup (char *str)
34392{
34393 char *new_str;
34394
34395 if (str)
34396 {
34397 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34398 strcpy (new_str, str);
34399 }
34400 else
34401 new_str = NULL;
34402
34403 return new_str;
34404}
34405
34406int main (int argc, char *argv[])
34407{
34408 int major, minor, micro;
34409 char *tmp_version;
34410
34411 /* This hangs on some systems (?)
34412 system ("touch conf.sdltest");
34413 */
34414 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34415
34416 /* HP/UX 9 (%@#!) writes to sscanf strings */
34417 tmp_version = my_strdup("$min_sdl_version");
34418 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34419 printf("%s, bad version string\n", "$min_sdl_version");
34420 exit(1);
34421 }
34422
34423 if (($sdl_major_version > major) ||
34424 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34425 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34426 {
34427 return 0;
34428 }
34429 else
34430 {
34431 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34432 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34433 printf("*** best to upgrade to the required version.\n");
34434 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34435 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34436 printf("*** config.cache before re-running configure\n");
34437 return 1;
34438 }
34439}
34440
34441
34442_ACEOF
34443rm -f conftest$ac_exeext
34444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34445 (eval $ac_link) 2>&5
34446 ac_status=$?
34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34450 (eval $ac_try) 2>&5
34451 ac_status=$?
34452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453 (exit $ac_status); }; }; then
34454 :
34455else
34456 echo "$as_me: program exited with status $ac_status" >&5
34457echo "$as_me: failed program was:" >&5
34458sed 's/^/| /' conftest.$ac_ext >&5
34459
34460( exit $ac_status )
34461no_sdl=yes
34462fi
ac1cb8d3 34463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34464fi
34465 CFLAGS="$ac_save_CFLAGS"
34466 LIBS="$ac_save_LIBS"
34467 fi
34468 fi
34469 if test "x$no_sdl" = x ; then
34470 echo "$as_me:$LINENO: result: yes" >&5
34471echo "${ECHO_T}yes" >&6
34472
34473 EXTRALIBS_SDL="$SDL_LIBS"
34474 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34475 cat >>confdefs.h <<\_ACEOF
34476#define wxUSE_LIBSDL 1
34477_ACEOF
34478
34479
34480 else
34481 echo "$as_me:$LINENO: result: no" >&5
34482echo "${ECHO_T}no" >&6
34483 if test "$SDL_CONFIG" = "no" ; then
34484 echo "*** The sdl-config script installed by SDL could not be found"
34485 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34486 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34487 echo "*** full path to sdl-config."
34488 else
34489 if test -f conf.sdltest ; then
34490 :
34491 else
34492 echo "*** Could not run SDL test program, checking why..."
34493 CFLAGS="$CFLAGS $SDL_CFLAGS"
34494 LIBS="$LIBS $SDL_LIBS"
34495 cat >conftest.$ac_ext <<_ACEOF
34496/* confdefs.h. */
34497_ACEOF
34498cat confdefs.h >>conftest.$ac_ext
34499cat >>conftest.$ac_ext <<_ACEOF
34500/* end confdefs.h. */
34501
34502#include <stdio.h>
34503#include "SDL.h"
34504
34505int main(int argc, char *argv[])
34506{ return 0; }
34507#undef main
34508#define main K_and_R_C_main
34509
34510int
34511main ()
34512{
34513 return 0;
34514 ;
34515 return 0;
34516}
34517_ACEOF
34518rm -f conftest.$ac_objext conftest$ac_exeext
34519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34520 (eval $ac_link) 2>conftest.er1
a848cd7e 34521 ac_status=$?
ac1cb8d3
VS
34522 grep -v '^ *+' conftest.er1 >conftest.err
34523 rm -f conftest.er1
34524 cat conftest.err >&5
a848cd7e
SC
34525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); } &&
d51253e8 34527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34529 (eval $ac_try) 2>&5
34530 ac_status=$?
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); }; } &&
34533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34535 (eval $ac_try) 2>&5
34536 ac_status=$?
34537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34538 (exit $ac_status); }; }; then
34539 echo "*** The test program compiled, but did not run. This usually means"
34540 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34541 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34542 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34543 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34544 echo "*** is required on your system"
34545 echo "***"
34546 echo "*** If you have an old version installed, it is best to remove it, although"
34547 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34548else
34549 echo "$as_me: failed program was:" >&5
34550sed 's/^/| /' conftest.$ac_ext >&5
34551
34552 echo "*** The test program failed to compile or link. See the file config.log for the"
34553 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34554 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34555 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34556fi
ac1cb8d3
VS
34557rm -f conftest.err conftest.$ac_objext \
34558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34559 CFLAGS="$ac_save_CFLAGS"
34560 LIBS="$ac_save_LIBS"
34561 fi
34562 fi
34563 SDL_CFLAGS=""
34564 SDL_LIBS=""
34565 wxUSE_LIBSDL="no"
34566 fi
34567
34568
34569 rm -f conf.sdltest
34570
34571 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34572 WITH_PLUGIN_SDL=1
34573 fi
34574 fi
34575 fi
34576
34577 cat >>confdefs.h <<\_ACEOF
34578#define wxUSE_SOUND 1
34579_ACEOF
34580
34581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34582fi
34583
d1c38808
VZ
34584if test "$WXGTK20" = 1; then
34585 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34586 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
34587
34588
34589 succeeded=no
34590
34591 if test -z "$PKG_CONFIG"; then
34592 # Extract the first word of "pkg-config", so it can be a program name with args.
34593set dummy pkg-config; ac_word=$2
34594echo "$as_me:$LINENO: checking for $ac_word" >&5
34595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34596if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34597 echo $ECHO_N "(cached) $ECHO_C" >&6
34598else
34599 case $PKG_CONFIG in
34600 [\\/]* | ?:[\\/]*)
34601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34602 ;;
34603 *)
34604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34605for as_dir in $PATH
34606do
34607 IFS=$as_save_IFS
34608 test -z "$as_dir" && as_dir=.
34609 for ac_exec_ext in '' $ac_executable_extensions; do
34610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34613 break 2
34614 fi
34615done
34616done
34617
34618 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34619 ;;
34620esac
34621fi
34622PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34623
34624if test -n "$PKG_CONFIG"; then
34625 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34626echo "${ECHO_T}$PKG_CONFIG" >&6
34627else
34628 echo "$as_me:$LINENO: result: no" >&5
34629echo "${ECHO_T}no" >&6
34630fi
34631
34632 fi
34633
34634 if test "$PKG_CONFIG" = "no" ; then
34635 echo "*** The pkg-config script could not be found. Make sure it is"
34636 echo "*** in your path, or set the PKG_CONFIG environment variable"
34637 echo "*** to the full path to pkg-config."
34638 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
34639 else
34640 PKG_CONFIG_MIN_VERSION=0.9.0
34641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
34642 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2" >&5
34643echo $ECHO_N "checking for libgnomeprintui-2.2... $ECHO_C" >&6
34644
34645 if $PKG_CONFIG --exists "libgnomeprintui-2.2" ; then
34646 echo "$as_me:$LINENO: result: yes" >&5
34647echo "${ECHO_T}yes" >&6
34648 succeeded=yes
34649
34650 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
34651echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
34652 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2"`
34653 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
34654echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
34655
34656 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
34657echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
34658 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2"`
34659 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
34660echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
34661 else
34662 LIBGNOMEPRINTUI_CFLAGS=""
34663 LIBGNOMEPRINTUI_LIBS=""
34664 ## If we have a custom action on failure, don't print errors, but
34665 ## do set a variable so people can do so.
34666 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2"`
34667
34668 fi
34669
34670
34671
34672 else
34673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
34674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
34675 fi
34676 fi
34677
34678 if test $succeeded = yes; then
34679
34680 EXTRALIBS_GNOMEPRINT="$LIBGNOMEPRINTUI_LIBS"
34681 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
34682 cat >>confdefs.h <<\_ACEOF
34683#define wxUSE_LIBGNOMEPRINT 1
34684_ACEOF
34685
34686
34687 else
34688
34689 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
34690echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
34691 wxUSE_LIBGNOMEPRINT="no"
34692
34693
34694 fi
34695
34696 fi
34697 fi
34698fi
34699
34700
a848cd7e
SC
34701if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34702 cat >>confdefs.h <<\_ACEOF
34703#define wxUSE_CMDLINE_PARSER 1
34704_ACEOF
34705
34706fi
34707
34708if test "$wxUSE_STOPWATCH" = "yes"; then
34709 cat >>confdefs.h <<\_ACEOF
34710#define wxUSE_STOPWATCH 1
34711_ACEOF
34712
34713fi
34714
34715if test "$wxUSE_DATETIME" = "yes"; then
34716 cat >>confdefs.h <<\_ACEOF
34717#define wxUSE_DATETIME 1
34718_ACEOF
34719
34720fi
34721
34722if test "$wxUSE_FILE" = "yes"; then
34723 cat >>confdefs.h <<\_ACEOF
34724#define wxUSE_FILE 1
34725_ACEOF
34726
34727fi
34728
34729if test "$wxUSE_FFILE" = "yes"; then
34730 cat >>confdefs.h <<\_ACEOF
34731#define wxUSE_FFILE 1
34732_ACEOF
34733
34734fi
34735
34736if test "$wxUSE_FILESYSTEM" = "yes"; then
34737 cat >>confdefs.h <<\_ACEOF
34738#define wxUSE_FILESYSTEM 1
34739_ACEOF
34740
34741fi
34742
34743if test "$wxUSE_FS_ZIP" = "yes"; then
34744 cat >>confdefs.h <<\_ACEOF
34745#define wxUSE_FS_ZIP 1
34746_ACEOF
34747
34748fi
34749
34750if test "$wxUSE_ZIPSTREAM" = "yes"; then
34751 cat >>confdefs.h <<\_ACEOF
34752#define wxUSE_ZIPSTREAM 1
34753_ACEOF
34754
34755fi
34756
a848cd7e
SC
34757if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34758 cat >>confdefs.h <<\_ACEOF
34759#define wxUSE_ON_FATAL_EXCEPTION 1
34760_ACEOF
34761
34762fi
34763
34764if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34765 cat >>confdefs.h <<\_ACEOF
34766#define wxUSE_SNGLINST_CHECKER 1
34767_ACEOF
34768
34769fi
34770
34771if test "$wxUSE_BUSYINFO" = "yes"; then
34772 cat >>confdefs.h <<\_ACEOF
34773#define wxUSE_BUSYINFO 1
34774_ACEOF
34775
34776fi
34777
34778if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34779 cat >>confdefs.h <<\_ACEOF
34780#define wxUSE_STD_IOSTREAM 1
34781_ACEOF
34782
34783fi
34784
34785if test "$wxUSE_TEXTBUFFER" = "yes"; then
34786 cat >>confdefs.h <<\_ACEOF
34787#define wxUSE_TEXTBUFFER 1
34788_ACEOF
34789
34790fi
34791
34792if test "$wxUSE_TEXTFILE" = "yes"; then
34793 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34794 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34795echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34796 else
34797 cat >>confdefs.h <<\_ACEOF
34798#define wxUSE_TEXTFILE 1
34799_ACEOF
34800
34801 fi
34802fi
34803
34804if test "$wxUSE_CONFIG" = "yes" ; then
34805 if test "$wxUSE_TEXTFILE" != "yes"; then
34806 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34807echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34808 else
34809 cat >>confdefs.h <<\_ACEOF
34810#define wxUSE_CONFIG 1
34811_ACEOF
34812
34813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34814 fi
34815fi
34816
34817if test "$wxUSE_INTL" = "yes" ; then
34818 if test "$wxUSE_FILE" != "yes"; then
34819 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34820echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34821 else
34822 cat >>confdefs.h <<\_ACEOF
34823#define wxUSE_INTL 1
34824_ACEOF
34825
34826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34827 GUIDIST="$GUIDIST INTL_DIST"
34828 fi
34829fi
34830
34831if test "$wxUSE_LOG" = "yes"; then
34832 cat >>confdefs.h <<\_ACEOF
34833#define wxUSE_LOG 1
34834_ACEOF
34835
34836
34837 if test "$wxUSE_LOGGUI" = "yes"; then
34838 cat >>confdefs.h <<\_ACEOF
34839#define wxUSE_LOGGUI 1
34840_ACEOF
34841
34842 fi
34843
34844 if test "$wxUSE_LOGWINDOW" = "yes"; then
34845 cat >>confdefs.h <<\_ACEOF
34846#define wxUSE_LOGWINDOW 1
34847_ACEOF
34848
34849 fi
34850
34851 if test "$wxUSE_LOGDIALOG" = "yes"; then
34852 cat >>confdefs.h <<\_ACEOF
34853#define wxUSE_LOG_DIALOG 1
34854_ACEOF
34855
34856 fi
34857fi
34858
34859if test "$wxUSE_LONGLONG" = "yes"; then
34860 cat >>confdefs.h <<\_ACEOF
34861#define wxUSE_LONGLONG 1
34862_ACEOF
34863
34864fi
34865
34866if test "$wxUSE_GEOMETRY" = "yes"; then
34867 cat >>confdefs.h <<\_ACEOF
34868#define wxUSE_GEOMETRY 1
34869_ACEOF
34870
34871fi
34872
34873if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34874 cat >>confdefs.h <<\_ACEOF
34875#define wxUSE_DIALUP_MANAGER 1
34876_ACEOF
34877
34878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34879fi
34880
34881if test "$wxUSE_STREAMS" = "yes" ; then
34882 cat >>confdefs.h <<\_ACEOF
34883#define wxUSE_STREAMS 1
34884_ACEOF
34885
34886fi
34887
34888
34889if test "$wxUSE_DATETIME" = "yes"; then
34890
34891for ac_func in strptime
34892do
34893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34894echo "$as_me:$LINENO: checking for $ac_func" >&5
34895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34896if eval "test \"\${$as_ac_var+set}\" = set"; then
34897 echo $ECHO_N "(cached) $ECHO_C" >&6
34898else
34899 cat >conftest.$ac_ext <<_ACEOF
34900/* confdefs.h. */
34901_ACEOF
34902cat confdefs.h >>conftest.$ac_ext
34903cat >>conftest.$ac_ext <<_ACEOF
34904/* end confdefs.h. */
ac1cb8d3
VS
34905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34907#define $ac_func innocuous_$ac_func
34908
a848cd7e
SC
34909/* System header to define __stub macros and hopefully few prototypes,
34910 which can conflict with char $ac_func (); below.
34911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34912 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34913
a848cd7e
SC
34914#ifdef __STDC__
34915# include <limits.h>
34916#else
34917# include <assert.h>
34918#endif
ac1cb8d3
VS
34919
34920#undef $ac_func
34921
a848cd7e
SC
34922/* Override any gcc2 internal prototype to avoid an error. */
34923#ifdef __cplusplus
34924extern "C"
34925{
34926#endif
34927/* We use char because int might match the return type of a gcc2
34928 builtin and then its argument prototype would still apply. */
34929char $ac_func ();
34930/* The GNU C library defines this for functions which it implements
34931 to always fail with ENOSYS. Some functions are actually named
34932 something starting with __ and the normal name is an alias. */
34933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34934choke me
34935#else
34936char (*f) () = $ac_func;
34937#endif
34938#ifdef __cplusplus
34939}
34940#endif
34941
34942int
34943main ()
34944{
34945return f != $ac_func;
34946 ;
34947 return 0;
34948}
34949_ACEOF
34950rm -f conftest.$ac_objext conftest$ac_exeext
34951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34952 (eval $ac_link) 2>conftest.er1
a848cd7e 34953 ac_status=$?
ac1cb8d3
VS
34954 grep -v '^ *+' conftest.er1 >conftest.err
34955 rm -f conftest.er1
34956 cat conftest.err >&5
a848cd7e
SC
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); } &&
d51253e8 34959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34961 (eval $ac_try) 2>&5
34962 ac_status=$?
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964 (exit $ac_status); }; } &&
34965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967 (eval $ac_try) 2>&5
34968 ac_status=$?
34969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970 (exit $ac_status); }; }; then
34971 eval "$as_ac_var=yes"
34972else
34973 echo "$as_me: failed program was:" >&5
34974sed 's/^/| /' conftest.$ac_ext >&5
34975
34976eval "$as_ac_var=no"
34977fi
ac1cb8d3
VS
34978rm -f conftest.err conftest.$ac_objext \
34979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34980fi
34981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34983if test `eval echo '${'$as_ac_var'}'` = yes; then
34984 cat >>confdefs.h <<_ACEOF
34985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34986_ACEOF
34987
34988fi
34989done
34990
34991
34992 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34993echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34994if test "${wx_cv_var_timezone+set}" = set; then
34995 echo $ECHO_N "(cached) $ECHO_C" >&6
34996else
34997
34998 cat >conftest.$ac_ext <<_ACEOF
34999/* confdefs.h. */
35000_ACEOF
35001cat confdefs.h >>conftest.$ac_ext
35002cat >>conftest.$ac_ext <<_ACEOF
35003/* end confdefs.h. */
35004
35005 #include <time.h>
35006
35007int
35008main ()
35009{
35010
35011 int tz;
35012 tz = timezone;
35013
35014 ;
35015 return 0;
35016}
35017_ACEOF
35018rm -f conftest.$ac_objext
35019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35020 (eval $ac_compile) 2>conftest.er1
a848cd7e 35021 ac_status=$?
ac1cb8d3
VS
35022 grep -v '^ *+' conftest.er1 >conftest.err
35023 rm -f conftest.er1
35024 cat conftest.err >&5
a848cd7e
SC
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); } &&
d51253e8 35027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029 (eval $ac_try) 2>&5
35030 ac_status=$?
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); }; } &&
35033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35036 ac_status=$?
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; }; then
35039
35040 wx_cv_var_timezone=timezone
35041
35042else
35043 echo "$as_me: failed program was:" >&5
35044sed 's/^/| /' conftest.$ac_ext >&5
35045
35046
35047 cat >conftest.$ac_ext <<_ACEOF
35048/* confdefs.h. */
35049_ACEOF
35050cat confdefs.h >>conftest.$ac_ext
35051cat >>conftest.$ac_ext <<_ACEOF
35052/* end confdefs.h. */
35053
35054 #include <time.h>
35055
35056int
35057main ()
35058{
35059
35060 int tz;
35061 tz = _timezone;
35062
35063 ;
35064 return 0;
35065}
35066_ACEOF
35067rm -f conftest.$ac_objext
35068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35069 (eval $ac_compile) 2>conftest.er1
a848cd7e 35070 ac_status=$?
ac1cb8d3
VS
35071 grep -v '^ *+' conftest.er1 >conftest.err
35072 rm -f conftest.er1
35073 cat conftest.err >&5
a848cd7e
SC
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } &&
d51253e8 35076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35078 (eval $ac_try) 2>&5
35079 ac_status=$?
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); }; } &&
35082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35084 (eval $ac_try) 2>&5
35085 ac_status=$?
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); }; }; then
35088
35089 wx_cv_var_timezone=_timezone
35090
35091else
35092 echo "$as_me: failed program was:" >&5
35093sed 's/^/| /' conftest.$ac_ext >&5
35094
35095
35096 cat >conftest.$ac_ext <<_ACEOF
35097/* confdefs.h. */
35098_ACEOF
35099cat confdefs.h >>conftest.$ac_ext
35100cat >>conftest.$ac_ext <<_ACEOF
35101/* end confdefs.h. */
35102
35103 #include <time.h>
35104
35105int
35106main ()
35107{
35108
35109 int tz;
35110 tz = __timezone;
35111
35112 ;
35113 return 0;
35114}
35115_ACEOF
35116rm -f conftest.$ac_objext
35117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35118 (eval $ac_compile) 2>conftest.er1
a848cd7e 35119 ac_status=$?
ac1cb8d3
VS
35120 grep -v '^ *+' conftest.er1 >conftest.err
35121 rm -f conftest.er1
35122 cat conftest.err >&5
a848cd7e
SC
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); } &&
d51253e8 35125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; } &&
35131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35133 (eval $ac_try) 2>&5
35134 ac_status=$?
35135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136 (exit $ac_status); }; }; then
35137
35138 wx_cv_var_timezone=__timezone
35139
35140else
35141 echo "$as_me: failed program was:" >&5
35142sed 's/^/| /' conftest.$ac_ext >&5
35143
35144
35145 if test "$USE_DOS" = 0 ; then
35146 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35147echo "$as_me: WARNING: no timezone variable" >&2;}
35148 fi
35149
35150
35151fi
ac1cb8d3 35152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35153
35154
35155fi
ac1cb8d3 35156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35157
35158
35159fi
ac1cb8d3 35160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35161
35162
35163fi
35164echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35165echo "${ECHO_T}$wx_cv_var_timezone" >&6
35166
35167 if test "x$wx_cv_var_timezone" != x ; then
35168 cat >>confdefs.h <<_ACEOF
35169#define WX_TIMEZONE $wx_cv_var_timezone
35170_ACEOF
35171
35172 fi
35173
35174
35175for ac_func in localtime
35176do
35177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35178echo "$as_me:$LINENO: checking for $ac_func" >&5
35179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35180if eval "test \"\${$as_ac_var+set}\" = set"; then
35181 echo $ECHO_N "(cached) $ECHO_C" >&6
35182else
35183 cat >conftest.$ac_ext <<_ACEOF
35184/* confdefs.h. */
35185_ACEOF
35186cat confdefs.h >>conftest.$ac_ext
35187cat >>conftest.$ac_ext <<_ACEOF
35188/* end confdefs.h. */
ac1cb8d3
VS
35189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35191#define $ac_func innocuous_$ac_func
35192
a848cd7e
SC
35193/* System header to define __stub macros and hopefully few prototypes,
35194 which can conflict with char $ac_func (); below.
35195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35196 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35197
a848cd7e
SC
35198#ifdef __STDC__
35199# include <limits.h>
35200#else
35201# include <assert.h>
35202#endif
ac1cb8d3
VS
35203
35204#undef $ac_func
35205
a848cd7e
SC
35206/* Override any gcc2 internal prototype to avoid an error. */
35207#ifdef __cplusplus
35208extern "C"
35209{
35210#endif
35211/* We use char because int might match the return type of a gcc2
35212 builtin and then its argument prototype would still apply. */
35213char $ac_func ();
35214/* The GNU C library defines this for functions which it implements
35215 to always fail with ENOSYS. Some functions are actually named
35216 something starting with __ and the normal name is an alias. */
35217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35218choke me
35219#else
35220char (*f) () = $ac_func;
35221#endif
35222#ifdef __cplusplus
35223}
35224#endif
35225
35226int
35227main ()
35228{
35229return f != $ac_func;
35230 ;
35231 return 0;
35232}
35233_ACEOF
35234rm -f conftest.$ac_objext conftest$ac_exeext
35235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35236 (eval $ac_link) 2>conftest.er1
a848cd7e 35237 ac_status=$?
ac1cb8d3
VS
35238 grep -v '^ *+' conftest.er1 >conftest.err
35239 rm -f conftest.er1
35240 cat conftest.err >&5
a848cd7e
SC
35241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); } &&
d51253e8 35243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35245 (eval $ac_try) 2>&5
35246 ac_status=$?
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); }; } &&
35249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35251 (eval $ac_try) 2>&5
35252 ac_status=$?
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); }; }; then
35255 eval "$as_ac_var=yes"
35256else
35257 echo "$as_me: failed program was:" >&5
35258sed 's/^/| /' conftest.$ac_ext >&5
35259
35260eval "$as_ac_var=no"
35261fi
ac1cb8d3
VS
35262rm -f conftest.err conftest.$ac_objext \
35263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35264fi
35265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35267if test `eval echo '${'$as_ac_var'}'` = yes; then
35268 cat >>confdefs.h <<_ACEOF
35269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35270_ACEOF
35271
35272fi
35273done
35274
35275
35276 if test "$ac_cv_func_localtime" = "yes"; then
35277 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35278echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35279if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35280 echo $ECHO_N "(cached) $ECHO_C" >&6
35281else
35282
35283 cat >conftest.$ac_ext <<_ACEOF
35284/* confdefs.h. */
35285_ACEOF
35286cat confdefs.h >>conftest.$ac_ext
35287cat >>conftest.$ac_ext <<_ACEOF
35288/* end confdefs.h. */
35289
35290 #include <time.h>
35291
35292int
35293main ()
35294{
35295
35296 struct tm tm;
35297 tm.tm_gmtoff++;
35298
35299 ;
35300 return 0;
35301}
35302_ACEOF
35303rm -f conftest.$ac_objext
35304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35305 (eval $ac_compile) 2>conftest.er1
a848cd7e 35306 ac_status=$?
ac1cb8d3
VS
35307 grep -v '^ *+' conftest.er1 >conftest.err
35308 rm -f conftest.er1
35309 cat conftest.err >&5
a848cd7e
SC
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); } &&
d51253e8 35312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314 (eval $ac_try) 2>&5
35315 ac_status=$?
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); }; } &&
35318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35321 ac_status=$?
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; }; then
35324
35325 wx_cv_struct_tm_has_gmtoff=yes
35326
35327else
35328 echo "$as_me: failed program was:" >&5
35329sed 's/^/| /' conftest.$ac_ext >&5
35330
35331wx_cv_struct_tm_has_gmtoff=no
35332
35333fi
ac1cb8d3 35334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35335
35336fi
35337echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35338echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35339 fi
35340
35341 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35342 cat >>confdefs.h <<\_ACEOF
35343#define WX_GMTOFF_IN_TM 1
35344_ACEOF
35345
35346 fi
35347
35348
35349
35350for ac_func in gettimeofday ftime
35351do
35352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35353echo "$as_me:$LINENO: checking for $ac_func" >&5
35354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35355if eval "test \"\${$as_ac_var+set}\" = set"; then
35356 echo $ECHO_N "(cached) $ECHO_C" >&6
35357else
35358 cat >conftest.$ac_ext <<_ACEOF
35359/* confdefs.h. */
35360_ACEOF
35361cat confdefs.h >>conftest.$ac_ext
35362cat >>conftest.$ac_ext <<_ACEOF
35363/* end confdefs.h. */
ac1cb8d3
VS
35364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35366#define $ac_func innocuous_$ac_func
35367
a848cd7e
SC
35368/* System header to define __stub macros and hopefully few prototypes,
35369 which can conflict with char $ac_func (); below.
35370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35371 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35372
a848cd7e
SC
35373#ifdef __STDC__
35374# include <limits.h>
35375#else
35376# include <assert.h>
35377#endif
ac1cb8d3
VS
35378
35379#undef $ac_func
35380
a848cd7e
SC
35381/* Override any gcc2 internal prototype to avoid an error. */
35382#ifdef __cplusplus
35383extern "C"
35384{
35385#endif
35386/* We use char because int might match the return type of a gcc2
35387 builtin and then its argument prototype would still apply. */
35388char $ac_func ();
35389/* The GNU C library defines this for functions which it implements
35390 to always fail with ENOSYS. Some functions are actually named
35391 something starting with __ and the normal name is an alias. */
35392#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35393choke me
35394#else
35395char (*f) () = $ac_func;
35396#endif
35397#ifdef __cplusplus
35398}
35399#endif
35400
35401int
35402main ()
35403{
35404return f != $ac_func;
35405 ;
35406 return 0;
35407}
35408_ACEOF
35409rm -f conftest.$ac_objext conftest$ac_exeext
35410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35411 (eval $ac_link) 2>conftest.er1
a848cd7e 35412 ac_status=$?
ac1cb8d3
VS
35413 grep -v '^ *+' conftest.er1 >conftest.err
35414 rm -f conftest.er1
35415 cat conftest.err >&5
a848cd7e
SC
35416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417 (exit $ac_status); } &&
d51253e8 35418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420 (eval $ac_try) 2>&5
35421 ac_status=$?
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); }; } &&
35424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426 (eval $ac_try) 2>&5
35427 ac_status=$?
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; }; then
35430 eval "$as_ac_var=yes"
35431else
35432 echo "$as_me: failed program was:" >&5
35433sed 's/^/| /' conftest.$ac_ext >&5
35434
35435eval "$as_ac_var=no"
35436fi
ac1cb8d3
VS
35437rm -f conftest.err conftest.$ac_objext \
35438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35439fi
35440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35442if test `eval echo '${'$as_ac_var'}'` = yes; then
35443 cat >>confdefs.h <<_ACEOF
35444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35445_ACEOF
35446 break
35447fi
35448done
35449
35450
35451 if test "$ac_cv_func_gettimeofday" = "yes"; then
35452 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35453echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35454if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35455 echo $ECHO_N "(cached) $ECHO_C" >&6
35456else
35457
35458
35459
35460 ac_ext=cc
35461ac_cpp='$CXXCPP $CPPFLAGS'
35462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35465
35466
35467 cat >conftest.$ac_ext <<_ACEOF
35468/* confdefs.h. */
35469_ACEOF
35470cat confdefs.h >>conftest.$ac_ext
35471cat >>conftest.$ac_ext <<_ACEOF
35472/* end confdefs.h. */
35473
35474 #include <sys/time.h>
35475 #include <unistd.h>
35476
35477int
35478main ()
35479{
35480
35481 struct timeval tv;
35482 gettimeofday(&tv, NULL);
35483
35484 ;
35485 return 0;
35486}
35487_ACEOF
35488rm -f conftest.$ac_objext
35489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35490 (eval $ac_compile) 2>conftest.er1
a848cd7e 35491 ac_status=$?
ac1cb8d3
VS
35492 grep -v '^ *+' conftest.er1 >conftest.err
35493 rm -f conftest.er1
35494 cat conftest.err >&5
a848cd7e
SC
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); } &&
d51253e8 35497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499 (eval $ac_try) 2>&5
35500 ac_status=$?
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); }; } &&
35503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35505 (eval $ac_try) 2>&5
35506 ac_status=$?
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); }; }; then
35509 wx_cv_func_gettimeofday_has_2_args=yes
35510else
35511 echo "$as_me: failed program was:" >&5
35512sed 's/^/| /' conftest.$ac_ext >&5
35513
35514cat >conftest.$ac_ext <<_ACEOF
35515/* confdefs.h. */
35516_ACEOF
35517cat confdefs.h >>conftest.$ac_ext
35518cat >>conftest.$ac_ext <<_ACEOF
35519/* end confdefs.h. */
35520
35521 #include <sys/time.h>
35522 #include <unistd.h>
35523
35524int
35525main ()
35526{
35527
35528 struct timeval tv;
35529 gettimeofday(&tv);
35530
35531 ;
35532 return 0;
35533}
35534_ACEOF
35535rm -f conftest.$ac_objext
35536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35537 (eval $ac_compile) 2>conftest.er1
a848cd7e 35538 ac_status=$?
ac1cb8d3
VS
35539 grep -v '^ *+' conftest.er1 >conftest.err
35540 rm -f conftest.er1
35541 cat conftest.err >&5
a848cd7e
SC
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); } &&
d51253e8 35544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35546 (eval $ac_try) 2>&5
35547 ac_status=$?
35548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); }; } &&
35550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552 (eval $ac_try) 2>&5
35553 ac_status=$?
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); }; }; then
35556 wx_cv_func_gettimeofday_has_2_args=no
35557else
35558 echo "$as_me: failed program was:" >&5
35559sed 's/^/| /' conftest.$ac_ext >&5
35560
35561
35562 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35563echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35564 wx_cv_func_gettimeofday_has_2_args=unknown
35565
35566
35567fi
ac1cb8d3 35568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35569
35570fi
ac1cb8d3 35571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35572 ac_ext=c
35573ac_cpp='$CPP $CPPFLAGS'
35574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35576ac_compiler_gnu=$ac_cv_c_compiler_gnu
35577
35578
35579fi
35580echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35581echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35582
35583 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35584 cat >>confdefs.h <<\_ACEOF
35585#define WX_GETTIMEOFDAY_NO_TZ 1
35586_ACEOF
35587
35588 fi
35589 fi
35590
35591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35592fi
35593
35594
35595if test "$wxUSE_SOCKETS" = "yes"; then
35596 if test "$wxUSE_MGL" = "1"; then
35597 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35598echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35599 wxUSE_SOCKETS="no"
35600 fi
35601fi
35602
35603if test "$wxUSE_SOCKETS" = "yes"; then
35604 if test "$TOOLKIT" != "MSW"; then
35605 echo "$as_me:$LINENO: checking for socket" >&5
35606echo $ECHO_N "checking for socket... $ECHO_C" >&6
35607if test "${ac_cv_func_socket+set}" = set; then
35608 echo $ECHO_N "(cached) $ECHO_C" >&6
35609else
35610 cat >conftest.$ac_ext <<_ACEOF
35611/* confdefs.h. */
35612_ACEOF
35613cat confdefs.h >>conftest.$ac_ext
35614cat >>conftest.$ac_ext <<_ACEOF
35615/* end confdefs.h. */
ac1cb8d3
VS
35616/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35618#define socket innocuous_socket
35619
a848cd7e
SC
35620/* System header to define __stub macros and hopefully few prototypes,
35621 which can conflict with char socket (); below.
35622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35623 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35624
a848cd7e
SC
35625#ifdef __STDC__
35626# include <limits.h>
35627#else
35628# include <assert.h>
35629#endif
ac1cb8d3
VS
35630
35631#undef socket
35632
a848cd7e
SC
35633/* Override any gcc2 internal prototype to avoid an error. */
35634#ifdef __cplusplus
35635extern "C"
35636{
35637#endif
35638/* We use char because int might match the return type of a gcc2
35639 builtin and then its argument prototype would still apply. */
35640char socket ();
35641/* The GNU C library defines this for functions which it implements
35642 to always fail with ENOSYS. Some functions are actually named
35643 something starting with __ and the normal name is an alias. */
35644#if defined (__stub_socket) || defined (__stub___socket)
35645choke me
35646#else
35647char (*f) () = socket;
35648#endif
35649#ifdef __cplusplus
35650}
35651#endif
35652
35653int
35654main ()
35655{
35656return f != socket;
35657 ;
35658 return 0;
35659}
35660_ACEOF
35661rm -f conftest.$ac_objext conftest$ac_exeext
35662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35663 (eval $ac_link) 2>conftest.er1
a848cd7e 35664 ac_status=$?
ac1cb8d3
VS
35665 grep -v '^ *+' conftest.er1 >conftest.err
35666 rm -f conftest.er1
35667 cat conftest.err >&5
a848cd7e
SC
35668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669 (exit $ac_status); } &&
d51253e8 35670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35672 (eval $ac_try) 2>&5
35673 ac_status=$?
35674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 (exit $ac_status); }; } &&
35676 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35678 (eval $ac_try) 2>&5
35679 ac_status=$?
35680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681 (exit $ac_status); }; }; then
35682 ac_cv_func_socket=yes
35683else
35684 echo "$as_me: failed program was:" >&5
35685sed 's/^/| /' conftest.$ac_ext >&5
35686
35687ac_cv_func_socket=no
35688fi
ac1cb8d3
VS
35689rm -f conftest.err conftest.$ac_objext \
35690 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35691fi
35692echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35693echo "${ECHO_T}$ac_cv_func_socket" >&6
35694if test $ac_cv_func_socket = yes; then
35695 :
35696else
35697
35698 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35699echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35700if test "${ac_cv_lib_socket_socket+set}" = set; then
35701 echo $ECHO_N "(cached) $ECHO_C" >&6
35702else
35703 ac_check_lib_save_LIBS=$LIBS
35704LIBS="-lsocket $LIBS"
35705cat >conftest.$ac_ext <<_ACEOF
35706/* confdefs.h. */
35707_ACEOF
35708cat confdefs.h >>conftest.$ac_ext
35709cat >>conftest.$ac_ext <<_ACEOF
35710/* end confdefs.h. */
35711
35712/* Override any gcc2 internal prototype to avoid an error. */
35713#ifdef __cplusplus
35714extern "C"
35715#endif
35716/* We use char because int might match the return type of a gcc2
35717 builtin and then its argument prototype would still apply. */
35718char socket ();
35719int
35720main ()
35721{
35722socket ();
35723 ;
35724 return 0;
35725}
35726_ACEOF
35727rm -f conftest.$ac_objext conftest$ac_exeext
35728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35729 (eval $ac_link) 2>conftest.er1
a848cd7e 35730 ac_status=$?
ac1cb8d3
VS
35731 grep -v '^ *+' conftest.er1 >conftest.err
35732 rm -f conftest.er1
35733 cat conftest.err >&5
a848cd7e
SC
35734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735 (exit $ac_status); } &&
d51253e8 35736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35738 (eval $ac_try) 2>&5
35739 ac_status=$?
35740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35741 (exit $ac_status); }; } &&
35742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744 (eval $ac_try) 2>&5
35745 ac_status=$?
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); }; }; then
35748 ac_cv_lib_socket_socket=yes
35749else
35750 echo "$as_me: failed program was:" >&5
35751sed 's/^/| /' conftest.$ac_ext >&5
35752
35753ac_cv_lib_socket_socket=no
35754fi
ac1cb8d3
VS
35755rm -f conftest.err conftest.$ac_objext \
35756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35757LIBS=$ac_check_lib_save_LIBS
35758fi
35759echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35760echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35761if test $ac_cv_lib_socket_socket = yes; then
35762 if test "$INET_LINK" != " -lsocket"; then
35763 INET_LINK="$INET_LINK -lsocket"
35764 fi
35765else
35766
35767 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35768echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35769 wxUSE_SOCKETS=no
35770
35771
35772fi
35773
35774
35775
35776fi
35777
35778 fi
35779fi
35780
35781if test "$wxUSE_SOCKETS" = "yes" ; then
35782 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35783 ac_ext=cc
35784ac_cpp='$CXXCPP $CPPFLAGS'
35785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35788
35789 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35790echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35791if test "${wx_cv_type_getsockname3+set}" = set; then
35792 echo $ECHO_N "(cached) $ECHO_C" >&6
35793else
35794
35795 cat >conftest.$ac_ext <<_ACEOF
35796/* confdefs.h. */
35797_ACEOF
35798cat confdefs.h >>conftest.$ac_ext
35799cat >>conftest.$ac_ext <<_ACEOF
35800/* end confdefs.h. */
35801
35802 #include <sys/types.h>
35803 #include <sys/socket.h>
35804
35805int
35806main ()
35807{
35808
35809 socklen_t len;
35810 getsockname(0, 0, &len);
35811
35812 ;
35813 return 0;
35814}
35815_ACEOF
35816rm -f conftest.$ac_objext
35817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35818 (eval $ac_compile) 2>conftest.er1
a848cd7e 35819 ac_status=$?
ac1cb8d3
VS
35820 grep -v '^ *+' conftest.er1 >conftest.err
35821 rm -f conftest.er1
35822 cat conftest.err >&5
a848cd7e
SC
35823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824 (exit $ac_status); } &&
d51253e8 35825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35827 (eval $ac_try) 2>&5
35828 ac_status=$?
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); }; } &&
35831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35833 (eval $ac_try) 2>&5
35834 ac_status=$?
35835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836 (exit $ac_status); }; }; then
35837 wx_cv_type_getsockname3=socklen_t
35838else
35839 echo "$as_me: failed program was:" >&5
35840sed 's/^/| /' conftest.$ac_ext >&5
35841
35842
35843 CFLAGS_OLD="$CFLAGS"
35844 if test "$GCC" = yes ; then
35845 CFLAGS="$CFLAGS -Werror"
35846 fi
35847
35848 cat >conftest.$ac_ext <<_ACEOF
35849/* confdefs.h. */
35850_ACEOF
35851cat confdefs.h >>conftest.$ac_ext
35852cat >>conftest.$ac_ext <<_ACEOF
35853/* end confdefs.h. */
35854
35855 #include <sys/types.h>
35856 #include <sys/socket.h>
35857
35858int
35859main ()
35860{
35861
35862 size_t len;
35863 getsockname(0, 0, &len);
35864
35865 ;
35866 return 0;
35867}
35868_ACEOF
35869rm -f conftest.$ac_objext
35870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35871 (eval $ac_compile) 2>conftest.er1
a848cd7e 35872 ac_status=$?
ac1cb8d3
VS
35873 grep -v '^ *+' conftest.er1 >conftest.err
35874 rm -f conftest.er1
35875 cat conftest.err >&5
a848cd7e
SC
35876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877 (exit $ac_status); } &&
d51253e8 35878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35880 (eval $ac_try) 2>&5
35881 ac_status=$?
35882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883 (exit $ac_status); }; } &&
35884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35886 (eval $ac_try) 2>&5
35887 ac_status=$?
35888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889 (exit $ac_status); }; }; then
35890 wx_cv_type_getsockname3=size_t
35891else
35892 echo "$as_me: failed program was:" >&5
35893sed 's/^/| /' conftest.$ac_ext >&5
35894
35895cat >conftest.$ac_ext <<_ACEOF
35896/* confdefs.h. */
35897_ACEOF
35898cat confdefs.h >>conftest.$ac_ext
35899cat >>conftest.$ac_ext <<_ACEOF
35900/* end confdefs.h. */
35901
35902 #include <sys/types.h>
35903 #include <sys/socket.h>
35904
35905int
35906main ()
35907{
35908
35909 int len;
35910 getsockname(0, 0, &len);
35911
35912 ;
35913 return 0;
35914}
35915_ACEOF
35916rm -f conftest.$ac_objext
35917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35918 (eval $ac_compile) 2>conftest.er1
a848cd7e 35919 ac_status=$?
ac1cb8d3
VS
35920 grep -v '^ *+' conftest.er1 >conftest.err
35921 rm -f conftest.er1
35922 cat conftest.err >&5
a848cd7e
SC
35923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35924 (exit $ac_status); } &&
d51253e8 35925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35927 (eval $ac_try) 2>&5
35928 ac_status=$?
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); }; } &&
35931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35933 (eval $ac_try) 2>&5
35934 ac_status=$?
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); }; }; then
35937 wx_cv_type_getsockname3=int
35938else
35939 echo "$as_me: failed program was:" >&5
35940sed 's/^/| /' conftest.$ac_ext >&5
35941
35942wx_cv_type_getsockname3=unknown
35943
35944fi
ac1cb8d3 35945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35946
35947fi
ac1cb8d3 35948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35949
35950 CFLAGS="$CFLAGS_OLD"
35951
35952
35953fi
ac1cb8d3 35954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35955
35956fi
35957echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35958echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35959
35960 if test "$wx_cv_type_getsockname3" = "unknown"; then
35961 wxUSE_SOCKETS=no
35962 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35963echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35964 else
35965 cat >>confdefs.h <<_ACEOF
35966#define SOCKLEN_T $wx_cv_type_getsockname3
35967_ACEOF
35968
35969 fi
4d4ff94c
VZ
35970 ac_ext=c
35971ac_cpp='$CPP $CPPFLAGS'
35972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35974ac_compiler_gnu=$ac_cv_c_compiler_gnu
35975
a848cd7e
SC
35976 fi
35977fi
35978
35979if test "$wxUSE_SOCKETS" = "yes" ; then
35980 cat >>confdefs.h <<\_ACEOF
35981#define wxUSE_SOCKETS 1
35982_ACEOF
35983
35984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35985fi
35986
35987if test "$wxUSE_PROTOCOL" = "yes"; then
35988 if test "$wxUSE_SOCKETS" != "yes"; then
35989 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35990echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35991 wxUSE_PROTOCOL=no
35992 fi
35993fi
35994
35995if test "$wxUSE_PROTOCOL" = "yes"; then
35996 cat >>confdefs.h <<\_ACEOF
35997#define wxUSE_PROTOCOL 1
35998_ACEOF
35999
36000
36001 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36002 cat >>confdefs.h <<\_ACEOF
36003#define wxUSE_PROTOCOL_HTTP 1
36004_ACEOF
36005
36006 fi
36007 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36008 cat >>confdefs.h <<\_ACEOF
36009#define wxUSE_PROTOCOL_FTP 1
36010_ACEOF
36011
36012 fi
36013 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36014 cat >>confdefs.h <<\_ACEOF
36015#define wxUSE_PROTOCOL_FILE 1
36016_ACEOF
36017
36018 fi
36019else
36020 if test "$wxUSE_FS_INET" = "yes"; then
36021 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36022echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36023 wxUSE_FS_INET="no"
36024 fi
36025fi
36026
36027if test "$wxUSE_URL" = "yes"; then
36028 if test "$wxUSE_PROTOCOL" != "yes"; then
36029 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36030echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36031 wxUSE_URL=no
36032 fi
36033 if test "$wxUSE_URL" = "yes"; then
36034 cat >>confdefs.h <<\_ACEOF
36035#define wxUSE_URL 1
36036_ACEOF
36037
36038 fi
36039fi
36040
36041if test "$wxUSE_FS_INET" = "yes"; then
36042 cat >>confdefs.h <<\_ACEOF
36043#define wxUSE_FS_INET 1
36044_ACEOF
36045
36046fi
36047
36048
36049if test "$wxUSE_GUI" = "yes"; then
36050
36051 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36052 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36053echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36054 wxUSE_JOYSTICK=no
36055 fi
36056
36057 if test "$TOOLKIT" != "MSW"; then
36058 if test "$wxUSE_JOYSTICK" = "yes"; then
36059
36060for ac_header in linux/joystick.h
36061do
36062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36063if eval "test \"\${$as_ac_Header+set}\" = set"; then
36064 echo "$as_me:$LINENO: checking for $ac_header" >&5
36065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36066if eval "test \"\${$as_ac_Header+set}\" = set"; then
36067 echo $ECHO_N "(cached) $ECHO_C" >&6
36068fi
36069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36071else
36072 # Is the header compilable?
36073echo "$as_me:$LINENO: checking $ac_header usability" >&5
36074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36075cat >conftest.$ac_ext <<_ACEOF
36076/* confdefs.h. */
36077_ACEOF
36078cat confdefs.h >>conftest.$ac_ext
36079cat >>conftest.$ac_ext <<_ACEOF
36080/* end confdefs.h. */
36081$ac_includes_default
36082#include <$ac_header>
36083_ACEOF
36084rm -f conftest.$ac_objext
36085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36086 (eval $ac_compile) 2>conftest.er1
a848cd7e 36087 ac_status=$?
ac1cb8d3
VS
36088 grep -v '^ *+' conftest.er1 >conftest.err
36089 rm -f conftest.er1
36090 cat conftest.err >&5
a848cd7e
SC
36091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092 (exit $ac_status); } &&
d51253e8 36093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36095 (eval $ac_try) 2>&5
36096 ac_status=$?
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; } &&
36099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36101 (eval $ac_try) 2>&5
36102 ac_status=$?
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); }; }; then
36105 ac_header_compiler=yes
36106else
36107 echo "$as_me: failed program was:" >&5
36108sed 's/^/| /' conftest.$ac_ext >&5
36109
36110ac_header_compiler=no
36111fi
ac1cb8d3 36112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36114echo "${ECHO_T}$ac_header_compiler" >&6
36115
36116# Is the header present?
36117echo "$as_me:$LINENO: checking $ac_header presence" >&5
36118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36119cat >conftest.$ac_ext <<_ACEOF
36120/* confdefs.h. */
36121_ACEOF
36122cat confdefs.h >>conftest.$ac_ext
36123cat >>conftest.$ac_ext <<_ACEOF
36124/* end confdefs.h. */
36125#include <$ac_header>
36126_ACEOF
36127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36129 ac_status=$?
36130 grep -v '^ *+' conftest.er1 >conftest.err
36131 rm -f conftest.er1
36132 cat conftest.err >&5
36133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134 (exit $ac_status); } >/dev/null; then
36135 if test -s conftest.err; then
36136 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36138 else
36139 ac_cpp_err=
36140 fi
36141else
36142 ac_cpp_err=yes
36143fi
36144if test -z "$ac_cpp_err"; then
36145 ac_header_preproc=yes
36146else
36147 echo "$as_me: failed program was:" >&5
36148sed 's/^/| /' conftest.$ac_ext >&5
36149
36150 ac_header_preproc=no
36151fi
36152rm -f conftest.err conftest.$ac_ext
36153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36154echo "${ECHO_T}$ac_header_preproc" >&6
36155
36156# So? What about this header?
ac1cb8d3
VS
36157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36158 yes:no: )
a848cd7e
SC
36159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36163 ac_header_preproc=yes
a848cd7e 36164 ;;
ac1cb8d3 36165 no:yes:* )
a848cd7e
SC
36166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36178 (
36179 cat <<\_ASBOX
ac1cb8d3
VS
36180## ----------------------------------------- ##
36181## Report this to wx-dev@lists.wxwidgets.org ##
36182## ----------------------------------------- ##
a848cd7e
SC
36183_ASBOX
36184 ) |
36185 sed "s/^/$as_me: WARNING: /" >&2
36186 ;;
36187esac
36188echo "$as_me:$LINENO: checking for $ac_header" >&5
36189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36190if eval "test \"\${$as_ac_Header+set}\" = set"; then
36191 echo $ECHO_N "(cached) $ECHO_C" >&6
36192else
ac1cb8d3 36193 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36194fi
36195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36197
36198fi
36199if test `eval echo '${'$as_ac_Header'}'` = yes; then
36200 cat >>confdefs.h <<_ACEOF
36201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36202_ACEOF
36203
36204fi
36205
36206done
36207
36208 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36209 wxUSE_JOYSTICK=no
36210 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36211echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36212 fi
36213 fi
36214 fi
36215
36216 if test "$wxUSE_JOYSTICK" = "yes"; then
36217 cat >>confdefs.h <<\_ACEOF
36218#define wxUSE_JOYSTICK 1
36219_ACEOF
36220
36221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36222 fi
36223fi
36224
36225
36226
36227if test "$wxUSE_FONTMAP" = "yes" ; then
36228 cat >>confdefs.h <<\_ACEOF
36229#define wxUSE_FONTMAP 1
36230_ACEOF
36231
36232fi
36233
36234if test "$wxUSE_UNICODE" = "yes" ; then
36235 cat >>confdefs.h <<\_ACEOF
36236#define wxUSE_UNICODE 1
36237_ACEOF
36238
36239
36240 if test "$USE_WIN32" != 1; then
36241 wxUSE_UNICODE_MSLU=no
36242 fi
36243
36244 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36245 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36246echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36247if test "${ac_cv_lib_unicows_main+set}" = set; then
36248 echo $ECHO_N "(cached) $ECHO_C" >&6
36249else
36250 ac_check_lib_save_LIBS=$LIBS
36251LIBS="-lunicows $LIBS"
36252cat >conftest.$ac_ext <<_ACEOF
36253/* confdefs.h. */
36254_ACEOF
36255cat confdefs.h >>conftest.$ac_ext
36256cat >>conftest.$ac_ext <<_ACEOF
36257/* end confdefs.h. */
36258
36259
36260int
36261main ()
36262{
36263main ();
36264 ;
36265 return 0;
36266}
36267_ACEOF
36268rm -f conftest.$ac_objext conftest$ac_exeext
36269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36270 (eval $ac_link) 2>conftest.er1
a848cd7e 36271 ac_status=$?
ac1cb8d3
VS
36272 grep -v '^ *+' conftest.er1 >conftest.err
36273 rm -f conftest.er1
36274 cat conftest.err >&5
a848cd7e
SC
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); } &&
d51253e8 36277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36280 ac_status=$?
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; } &&
36283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36285 (eval $ac_try) 2>&5
36286 ac_status=$?
36287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288 (exit $ac_status); }; }; then
36289 ac_cv_lib_unicows_main=yes
36290else
36291 echo "$as_me: failed program was:" >&5
36292sed 's/^/| /' conftest.$ac_ext >&5
36293
36294ac_cv_lib_unicows_main=no
36295fi
ac1cb8d3
VS
36296rm -f conftest.err conftest.$ac_objext \
36297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36298LIBS=$ac_check_lib_save_LIBS
36299fi
36300echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36301echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36302if test $ac_cv_lib_unicows_main = yes; then
36303
36304 cat >>confdefs.h <<\_ACEOF
36305#define wxUSE_UNICODE_MSLU 1
36306_ACEOF
36307
36308
36309else
36310
36311 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36312 Applications will only run on Windows NT/2000/XP!" >&5
36313echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36314 Applications will only run on Windows NT/2000/XP!" >&2;}
36315 wxUSE_UNICODE_MSLU=no
36316
36317fi
36318
36319 fi
36320fi
36321
36322if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36323 cat >>confdefs.h <<\_ACEOF
36324#define wxUSE_EXPERIMENTAL_PRINTF 1
36325_ACEOF
36326
36327fi
36328
36329
36330if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36331 cat >>confdefs.h <<\_ACEOF
36332#define wxUSE_POSTSCRIPT 1
36333_ACEOF
36334
36335fi
36336
36337cat >>confdefs.h <<\_ACEOF
36338#define wxUSE_AFM_FOR_POSTSCRIPT 1
36339_ACEOF
36340
36341
36342cat >>confdefs.h <<\_ACEOF
36343#define wxUSE_NORMALIZED_PS_FONTS 1
36344_ACEOF
36345
36346
36347
36348if test "$wxUSE_CONSTRAINTS" = "yes"; then
36349 cat >>confdefs.h <<\_ACEOF
36350#define wxUSE_CONSTRAINTS 1
36351_ACEOF
36352
36353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36354fi
36355
8a7b1113
VZ
36356if test "$wxUSE_MDI" = "yes"; then
36357 cat >>confdefs.h <<\_ACEOF
36358#define wxUSE_MDI 1
36359_ACEOF
36360
36361
36362 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36363 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36364#define wxUSE_MDI_ARCHITECTURE 1
36365_ACEOF
36366
8a7b1113
VZ
36367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36368 fi
a848cd7e
SC
36369fi
36370
36371if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36372 cat >>confdefs.h <<\_ACEOF
36373#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36374_ACEOF
36375
36376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36377 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36379 fi
36380fi
36381
36382if test "$wxUSE_HELP" = "yes"; then
36383 cat >>confdefs.h <<\_ACEOF
36384#define wxUSE_HELP 1
36385_ACEOF
36386
36387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36388
36389 if test "$wxUSE_MSW" = 1; then
36390 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36391 cat >>confdefs.h <<\_ACEOF
36392#define wxUSE_MS_HTML_HELP 1
36393_ACEOF
36394
36395 fi
36396 fi
36397
36398 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36399 if test "$wxUSE_HTML" = "yes"; then
36400 cat >>confdefs.h <<\_ACEOF
36401#define wxUSE_WXHTML_HELP 1
36402_ACEOF
36403
36404 else
36405 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36406echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36407 wxUSE_WXHTML_HELP=no
36408 fi
36409 fi
36410fi
36411
36412if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36413 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36414 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36415echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36416 else
36417 cat >>confdefs.h <<\_ACEOF
36418#define wxUSE_PRINTING_ARCHITECTURE 1
36419_ACEOF
36420
36421 fi
36422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36423fi
36424
36425if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36426 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36427echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36428 { (exit 1); exit 1; }; }
36429fi
36430
36431
36432if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36433 -o "$wxUSE_CLIPBOARD" = "yes" \
36434 -o "$wxUSE_OLE" = "yes" \
36435 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36436
36437for ac_header in ole2.h
36438do
36439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36440if eval "test \"\${$as_ac_Header+set}\" = set"; then
36441 echo "$as_me:$LINENO: checking for $ac_header" >&5
36442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36443if eval "test \"\${$as_ac_Header+set}\" = set"; then
36444 echo $ECHO_N "(cached) $ECHO_C" >&6
36445fi
36446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36448else
36449 # Is the header compilable?
36450echo "$as_me:$LINENO: checking $ac_header usability" >&5
36451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36452cat >conftest.$ac_ext <<_ACEOF
36453/* confdefs.h. */
36454_ACEOF
36455cat confdefs.h >>conftest.$ac_ext
36456cat >>conftest.$ac_ext <<_ACEOF
36457/* end confdefs.h. */
36458$ac_includes_default
36459#include <$ac_header>
36460_ACEOF
36461rm -f conftest.$ac_objext
36462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36463 (eval $ac_compile) 2>conftest.er1
a848cd7e 36464 ac_status=$?
ac1cb8d3
VS
36465 grep -v '^ *+' conftest.er1 >conftest.err
36466 rm -f conftest.er1
36467 cat conftest.err >&5
a848cd7e
SC
36468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469 (exit $ac_status); } &&
d51253e8 36470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36472 (eval $ac_try) 2>&5
36473 ac_status=$?
36474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475 (exit $ac_status); }; } &&
36476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36478 (eval $ac_try) 2>&5
36479 ac_status=$?
36480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481 (exit $ac_status); }; }; then
36482 ac_header_compiler=yes
36483else
36484 echo "$as_me: failed program was:" >&5
36485sed 's/^/| /' conftest.$ac_ext >&5
36486
36487ac_header_compiler=no
36488fi
ac1cb8d3 36489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36490echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36491echo "${ECHO_T}$ac_header_compiler" >&6
36492
36493# Is the header present?
36494echo "$as_me:$LINENO: checking $ac_header presence" >&5
36495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36496cat >conftest.$ac_ext <<_ACEOF
36497/* confdefs.h. */
36498_ACEOF
36499cat confdefs.h >>conftest.$ac_ext
36500cat >>conftest.$ac_ext <<_ACEOF
36501/* end confdefs.h. */
36502#include <$ac_header>
36503_ACEOF
36504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36506 ac_status=$?
36507 grep -v '^ *+' conftest.er1 >conftest.err
36508 rm -f conftest.er1
36509 cat conftest.err >&5
36510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511 (exit $ac_status); } >/dev/null; then
36512 if test -s conftest.err; then
36513 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36515 else
36516 ac_cpp_err=
36517 fi
36518else
36519 ac_cpp_err=yes
36520fi
36521if test -z "$ac_cpp_err"; then
36522 ac_header_preproc=yes
36523else
36524 echo "$as_me: failed program was:" >&5
36525sed 's/^/| /' conftest.$ac_ext >&5
36526
36527 ac_header_preproc=no
36528fi
36529rm -f conftest.err conftest.$ac_ext
36530echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36531echo "${ECHO_T}$ac_header_preproc" >&6
36532
36533# So? What about this header?
ac1cb8d3
VS
36534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36535 yes:no: )
a848cd7e
SC
36536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36540 ac_header_preproc=yes
a848cd7e 36541 ;;
ac1cb8d3 36542 no:yes:* )
a848cd7e
SC
36543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36555 (
36556 cat <<\_ASBOX
ac1cb8d3
VS
36557## ----------------------------------------- ##
36558## Report this to wx-dev@lists.wxwidgets.org ##
36559## ----------------------------------------- ##
a848cd7e
SC
36560_ASBOX
36561 ) |
36562 sed "s/^/$as_me: WARNING: /" >&2
36563 ;;
36564esac
36565echo "$as_me:$LINENO: checking for $ac_header" >&5
36566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36567if eval "test \"\${$as_ac_Header+set}\" = set"; then
36568 echo $ECHO_N "(cached) $ECHO_C" >&6
36569else
ac1cb8d3 36570 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36571fi
36572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36574
36575fi
36576if test `eval echo '${'$as_ac_Header'}'` = yes; then
36577 cat >>confdefs.h <<_ACEOF
36578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36579_ACEOF
36580
36581fi
36582
36583done
36584
36585
36586 if test "$ac_cv_header_ole2_h" = "yes" ; then
36587 if test "$GCC" = yes ; then
36588
36589
36590 ac_ext=cc
36591ac_cpp='$CXXCPP $CPPFLAGS'
36592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36595
36596
36597 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36598echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36599 cat >conftest.$ac_ext <<_ACEOF
36600/* confdefs.h. */
36601_ACEOF
36602cat confdefs.h >>conftest.$ac_ext
36603cat >>conftest.$ac_ext <<_ACEOF
36604/* end confdefs.h. */
36605#include <windows.h>
36606 #include <ole2.h>
36607int
36608main ()
36609{
36610
36611 ;
36612 return 0;
36613}
36614_ACEOF
36615rm -f conftest.$ac_objext
36616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36617 (eval $ac_compile) 2>conftest.er1
a848cd7e 36618 ac_status=$?
ac1cb8d3
VS
36619 grep -v '^ *+' conftest.er1 >conftest.err
36620 rm -f conftest.er1
36621 cat conftest.err >&5
a848cd7e
SC
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); } &&
d51253e8 36624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36626 (eval $ac_try) 2>&5
36627 ac_status=$?
36628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629 (exit $ac_status); }; } &&
36630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36632 (eval $ac_try) 2>&5
36633 ac_status=$?
36634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635 (exit $ac_status); }; }; then
36636 echo "$as_me:$LINENO: result: no" >&5
36637echo "${ECHO_T}no" >&6
36638else
36639 echo "$as_me: failed program was:" >&5
36640sed 's/^/| /' conftest.$ac_ext >&5
36641
36642echo "$as_me:$LINENO: result: yes" >&5
36643echo "${ECHO_T}yes" >&6
36644 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36645fi
ac1cb8d3 36646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36647 ac_ext=c
36648ac_cpp='$CPP $CPPFLAGS'
36649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36651ac_compiler_gnu=$ac_cv_c_compiler_gnu
36652
a848cd7e
SC
36653 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36654 if test "$wxUSE_OLE" = "yes" ; then
36655 cat >>confdefs.h <<\_ACEOF
36656#define wxUSE_OLE 1
36657_ACEOF
36658
36659 fi
36660 fi
36661
36662 if test "$wxUSE_DATAOBJ" = "yes" ; then
36663 cat >>confdefs.h <<\_ACEOF
36664#define wxUSE_DATAOBJ 1
36665_ACEOF
36666
36667 fi
36668 else
36669 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36670echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36671
36672 wxUSE_CLIPBOARD=no
36673 wxUSE_DRAG_AND_DROP=no
36674 wxUSE_DATAOBJ=no
36675 wxUSE_OLE=no
36676 fi
36677
36678 if test "$wxUSE_METAFILE" = "yes"; then
36679 cat >>confdefs.h <<\_ACEOF
36680#define wxUSE_METAFILE 1
36681_ACEOF
36682
36683
36684 cat >>confdefs.h <<\_ACEOF
36685#define wxUSE_ENH_METAFILE 1
36686_ACEOF
36687
36688 fi
36689fi
36690
36691if test "$wxUSE_IPC" = "yes"; then
36692 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36693 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36694echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36695 fi
36696
36697 cat >>confdefs.h <<\_ACEOF
36698#define wxUSE_IPC 1
36699_ACEOF
36700
36701fi
36702
36703if test "$wxUSE_CLIPBOARD" = "yes"; then
36704 if test "$wxUSE_MGL" = 1; then
36705 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36706echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36707 wxUSE_CLIPBOARD=no
36708 fi
36709
36710 if test "$wxUSE_CLIPBOARD" = "yes"; then
36711 cat >>confdefs.h <<\_ACEOF
36712#define wxUSE_CLIPBOARD 1
36713_ACEOF
36714
36715
36716 cat >>confdefs.h <<\_ACEOF
36717#define wxUSE_DATAOBJ 1
36718_ACEOF
36719
36720 fi
36721fi
36722
36723if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36724 if test "$wxUSE_GTK" = 1; then
36725 if test "$WXGTK12" != 1; then
36726 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36727echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36728 wxUSE_DRAG_AND_DROP=no
36729 fi
36730 fi
36731
36732 if test "$wxUSE_MOTIF" = 1; then
36733 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36734echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36735 wxUSE_DRAG_AND_DROP=no
36736 fi
36737
36738 if test "$wxUSE_X11" = 1; then
36739 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36740echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36741 wxUSE_DRAG_AND_DROP=no
36742 fi
36743
36744 if test "$wxUSE_MGL" = 1; then
36745 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36746echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36747 wxUSE_DRAG_AND_DROP=no
36748 fi
36749
36750 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36751 cat >>confdefs.h <<\_ACEOF
36752#define wxUSE_DRAG_AND_DROP 1
36753_ACEOF
36754
36755 fi
36756
36757fi
36758
36759if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36761fi
36762
36763if test "$wxUSE_SPLINES" = "yes" ; then
36764 cat >>confdefs.h <<\_ACEOF
36765#define wxUSE_SPLINES 1
36766_ACEOF
36767
36768fi
36769
36770
36771USES_CONTROLS=0
36772if test "$wxUSE_CONTROLS" = "yes"; then
36773 USES_CONTROLS=1
36774fi
36775
36776if test "$wxUSE_ACCEL" = "yes"; then
36777 cat >>confdefs.h <<\_ACEOF
36778#define wxUSE_ACCEL 1
36779_ACEOF
36780
36781 USES_CONTROLS=1
36782fi
36783
36784if test "$wxUSE_BUTTON" = "yes"; then
36785 cat >>confdefs.h <<\_ACEOF
36786#define wxUSE_BUTTON 1
36787_ACEOF
36788
36789 USES_CONTROLS=1
36790fi
36791
36792if test "$wxUSE_BMPBUTTON" = "yes"; then
36793 cat >>confdefs.h <<\_ACEOF
36794#define wxUSE_BMPBUTTON 1
36795_ACEOF
36796
36797 USES_CONTROLS=1
36798fi
36799
36800if test "$wxUSE_CALCTRL" = "yes"; then
36801 cat >>confdefs.h <<\_ACEOF
36802#define wxUSE_CALENDARCTRL 1
36803_ACEOF
36804
36805 USES_CONTROLS=1
36806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36807fi
36808
36809if test "$wxUSE_CARET" = "yes"; then
36810 cat >>confdefs.h <<\_ACEOF
36811#define wxUSE_CARET 1
36812_ACEOF
36813
36814 USES_CONTROLS=1
36815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36816fi
36817
36818if test "$wxUSE_COMBOBOX" = "yes"; then
36819 cat >>confdefs.h <<\_ACEOF
36820#define wxUSE_COMBOBOX 1
36821_ACEOF
36822
36823 USES_CONTROLS=1
36824fi
36825
36826if test "$wxUSE_CHOICE" = "yes"; then
36827 cat >>confdefs.h <<\_ACEOF
36828#define wxUSE_CHOICE 1
36829_ACEOF
36830
36831 USES_CONTROLS=1
36832fi
36833
92bbdbcd
WS
36834if test "$wxUSE_CHOICEBOOK" = "yes"; then
36835 cat >>confdefs.h <<\_ACEOF
36836#define wxUSE_CHOICEBOOK 1
36837_ACEOF
36838
36839 USES_CONTROLS=1
36840fi
36841
a848cd7e
SC
36842if test "$wxUSE_CHECKBOX" = "yes"; then
36843 cat >>confdefs.h <<\_ACEOF
36844#define wxUSE_CHECKBOX 1
36845_ACEOF
36846
36847 USES_CONTROLS=1
36848fi
36849
36850if test "$wxUSE_CHECKLST" = "yes"; then
36851 cat >>confdefs.h <<\_ACEOF
36852#define wxUSE_CHECKLISTBOX 1
36853_ACEOF
36854
36855 USES_CONTROLS=1
36856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36857fi
36858
36859if test "$wxUSE_DISPLAY" = "yes"; then
36860 cat >>confdefs.h <<\_ACEOF
36861#define wxUSE_DISPLAY 1
36862_ACEOF
36863
36864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36865fi
36866
36867if test "$wxUSE_GAUGE" = "yes"; then
36868 cat >>confdefs.h <<\_ACEOF
36869#define wxUSE_GAUGE 1
36870_ACEOF
36871
36872 USES_CONTROLS=1
36873fi
36874
36875if test "$wxUSE_GRID" = "yes"; then
36876 cat >>confdefs.h <<\_ACEOF
36877#define wxUSE_GRID 1
36878_ACEOF
36879
36880 USES_CONTROLS=1
36881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36882fi
36883
36884if test "$wxUSE_IMAGLIST" = "yes"; then
36885 cat >>confdefs.h <<\_ACEOF
36886#define wxUSE_IMAGLIST 1
36887_ACEOF
36888
36889fi
36890
36891if test "$wxUSE_LISTBOOK" = "yes"; then
36892 cat >>confdefs.h <<\_ACEOF
36893#define wxUSE_LISTBOOK 1
36894_ACEOF
36895
36896 USES_CONTROLS=1
36897fi
36898
36899if test "$wxUSE_LISTBOX" = "yes"; then
36900 cat >>confdefs.h <<\_ACEOF
36901#define wxUSE_LISTBOX 1
36902_ACEOF
36903
36904 USES_CONTROLS=1
36905fi
36906
36907if test "$wxUSE_LISTCTRL" = "yes"; then
36908 if test "$wxUSE_IMAGLIST" = "yes"; then
36909 cat >>confdefs.h <<\_ACEOF
36910#define wxUSE_LISTCTRL 1
36911_ACEOF
36912
36913 USES_CONTROLS=1
36914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36915 else
36916 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36917echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36918 fi
36919fi
36920
36921if test "$wxUSE_NOTEBOOK" = "yes"; then
36922 cat >>confdefs.h <<\_ACEOF
36923#define wxUSE_NOTEBOOK 1
36924_ACEOF
36925
36926 USES_CONTROLS=1
36927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36928fi
36929
36930
36931if test "$wxUSE_RADIOBOX" = "yes"; then
36932 cat >>confdefs.h <<\_ACEOF
36933#define wxUSE_RADIOBOX 1
36934_ACEOF
36935
36936 USES_CONTROLS=1
36937fi
36938
36939if test "$wxUSE_RADIOBTN" = "yes"; then
36940 cat >>confdefs.h <<\_ACEOF
36941#define wxUSE_RADIOBTN 1
36942_ACEOF
36943
36944 USES_CONTROLS=1
36945fi
36946
36947if test "$wxUSE_SASH" = "yes"; then
36948 cat >>confdefs.h <<\_ACEOF
36949#define wxUSE_SASH 1
36950_ACEOF
36951
36952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36953fi
36954
36955if test "$wxUSE_SCROLLBAR" = "yes"; then
36956 cat >>confdefs.h <<\_ACEOF
36957#define wxUSE_SCROLLBAR 1
36958_ACEOF
36959
36960 USES_CONTROLS=1
36961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36962fi
36963
36964if test "$wxUSE_SLIDER" = "yes"; then
36965 cat >>confdefs.h <<\_ACEOF
36966#define wxUSE_SLIDER 1
36967_ACEOF
36968
36969 USES_CONTROLS=1
36970fi
36971
36972if test "$wxUSE_SPINBTN" = "yes"; then
36973 cat >>confdefs.h <<\_ACEOF
36974#define wxUSE_SPINBTN 1
36975_ACEOF
36976
36977 USES_CONTROLS=1
36978fi
36979
36980if test "$wxUSE_SPINCTRL" = "yes"; then
36981 cat >>confdefs.h <<\_ACEOF
36982#define wxUSE_SPINCTRL 1
36983_ACEOF
36984
36985 USES_CONTROLS=1
36986fi
36987
36988if test "$wxUSE_SPLITTER" = "yes"; then
36989 cat >>confdefs.h <<\_ACEOF
36990#define wxUSE_SPLITTER 1
36991_ACEOF
36992
36993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36994fi
36995
36996if test "$wxUSE_STATBMP" = "yes"; then
36997 cat >>confdefs.h <<\_ACEOF
36998#define wxUSE_STATBMP 1
36999_ACEOF
37000
37001 USES_CONTROLS=1
37002fi
37003
37004if test "$wxUSE_STATBOX" = "yes"; then
37005 cat >>confdefs.h <<\_ACEOF
37006#define wxUSE_STATBOX 1
37007_ACEOF
37008
37009 USES_CONTROLS=1
37010fi
37011
37012if test "$wxUSE_STATTEXT" = "yes"; then
37013 cat >>confdefs.h <<\_ACEOF
37014#define wxUSE_STATTEXT 1
37015_ACEOF
37016
37017 USES_CONTROLS=1
37018fi
37019
37020if test "$wxUSE_STATLINE" = "yes"; then
37021 cat >>confdefs.h <<\_ACEOF
37022#define wxUSE_STATLINE 1
37023_ACEOF
37024
37025 USES_CONTROLS=1
37026fi
37027
37028if test "$wxUSE_STATUSBAR" = "yes"; then
37029 cat >>confdefs.h <<\_ACEOF
37030#define wxUSE_STATUSBAR 1
37031_ACEOF
37032
37033 USES_CONTROLS=1
37034
37035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37036fi
37037
37038if test "$wxUSE_TABDIALOG" = "yes"; then
37039 cat >>confdefs.h <<\_ACEOF
37040#define wxUSE_TAB_DIALOG 1
37041_ACEOF
37042
37043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37044fi
37045
37046if test "$wxUSE_TEXTCTRL" = "yes"; then
37047 cat >>confdefs.h <<\_ACEOF
37048#define wxUSE_TEXTCTRL 1
37049_ACEOF
37050
37051 USES_CONTROLS=1
37052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37053fi
37054
37055if test "$wxUSE_TOGGLEBTN" = "yes"; then
37056 if test "$wxUSE_COCOA" = 1 ; then
37057 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37058echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37059 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37060 else
37061 if test "$wxUSE_PM" = 1; then
37062 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37063echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37064 wxUSE_TOGGLEBTN=no
37065 fi
a848cd7e
SC
37066 fi
37067 if test "$wxUSE_UNIVERSAL" = "yes"; then
37068 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37069echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37070 wxUSE_TOGGLEBTN=no
37071 fi
37072
37073 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37074 cat >>confdefs.h <<\_ACEOF
37075#define wxUSE_TOGGLEBTN 1
37076_ACEOF
37077
37078 USES_CONTROLS=1
37079 fi
37080fi
37081
37082if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37083 cat >>confdefs.h <<\_ACEOF
37084#define wxUSE_TOOLBAR_SIMPLE 1
37085_ACEOF
37086
37087 wxUSE_TOOLBAR="yes"
37088 USES_CONTROLS=1
37089fi
37090
37091if test "$wxUSE_TOOLBAR" = "yes"; then
37092 cat >>confdefs.h <<\_ACEOF
37093#define wxUSE_TOOLBAR 1
37094_ACEOF
37095
37096 USES_CONTROLS=1
37097
37098 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37099 wxUSE_TOOLBAR_NATIVE="yes"
37100 fi
37101
37102 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37103 cat >>confdefs.h <<\_ACEOF
37104#define wxUSE_TOOLBAR_NATIVE 1
37105_ACEOF
37106
37107 USES_CONTROLS=1
37108 fi
37109
37110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37111fi
37112
37113if test "$wxUSE_TOOLTIPS" = "yes"; then
37114 if test "$wxUSE_MOTIF" = 1; then
37115 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37116echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37117 else
37118 if test "$wxUSE_UNIVERSAL" = "yes"; then
37119 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37120echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37121 else
37122 cat >>confdefs.h <<\_ACEOF
37123#define wxUSE_TOOLTIPS 1
37124_ACEOF
37125
37126 fi
37127 fi
37128fi
37129
37130if test "$wxUSE_TREECTRL" = "yes"; then
37131 if test "$wxUSE_IMAGLIST" = "yes"; then
37132 cat >>confdefs.h <<\_ACEOF
37133#define wxUSE_TREECTRL 1
37134_ACEOF
37135
37136 USES_CONTROLS=1
37137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37138 else
37139 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37140echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37141 fi
37142fi
37143
37144if test "$wxUSE_POPUPWIN" = "yes"; then
37145 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37146 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37147echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37148 else
37149 if test "$wxUSE_PM" = 1; then
37150 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37151echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37152 else
37153 cat >>confdefs.h <<\_ACEOF
37154#define wxUSE_POPUPWIN 1
37155_ACEOF
37156
37157
37158 USES_CONTROLS=1
37159 fi
37160 fi
37161fi
37162
37163if test "$wxUSE_TIPWINDOW" = "yes"; then
37164 if test "$wxUSE_PM" = 1; then
37165 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37166echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37167 else
37168 cat >>confdefs.h <<\_ACEOF
37169#define wxUSE_TIPWINDOW 1
37170_ACEOF
37171
37172 fi
37173fi
37174
37175if test "$USES_CONTROLS" = 1; then
37176 cat >>confdefs.h <<\_ACEOF
37177#define wxUSE_CONTROLS 1
37178_ACEOF
37179
37180fi
37181
37182
37183if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37184 cat >>confdefs.h <<\_ACEOF
37185#define wxUSE_ACCESSIBILITY 1
37186_ACEOF
37187
37188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37189fi
37190
37191if test "$wxUSE_DRAGIMAGE" = "yes"; then
37192 cat >>confdefs.h <<\_ACEOF
37193#define wxUSE_DRAGIMAGE 1
37194_ACEOF
37195
37196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37197fi
37198
37199if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37200 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37201 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37202echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37203 else
37204 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37205#define wxUSE_EXCEPTIONS 1
37206_ACEOF
37207
07bea8f0
VS
37208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37209 fi
a848cd7e
SC
37210fi
37211
37212USE_HTML=0
37213if test "$wxUSE_HTML" = "yes"; then
37214 cat >>confdefs.h <<\_ACEOF
37215#define wxUSE_HTML 1
37216_ACEOF
37217
37218 USE_HTML=1
37219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37220 if test "$wxUSE_MAC" = 1; then
37221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37222 fi
a848cd7e 37223fi
646b6ec1 37224if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
37225 if test "$wxUSE_MAC" = 1; then
37226 old_CPPFLAGS="$CPPFLAGS"
37227 CPPFLAGS="$CPPFLAGS -x objective-c++"
37228 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37229echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37230if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37231 echo $ECHO_N "(cached) $ECHO_C" >&6
37232else
37233 cat >conftest.$ac_ext <<_ACEOF
37234/* confdefs.h. */
37235_ACEOF
37236cat confdefs.h >>conftest.$ac_ext
37237cat >>conftest.$ac_ext <<_ACEOF
37238/* end confdefs.h. */
37239#include <Carbon/Carbon.h>
37240
37241#include <WebKit/HIWebView.h>
37242_ACEOF
37243rm -f conftest.$ac_objext
37244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37245 (eval $ac_compile) 2>conftest.er1
37246 ac_status=$?
37247 grep -v '^ *+' conftest.er1 >conftest.err
37248 rm -f conftest.er1
37249 cat conftest.err >&5
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); } &&
d51253e8 37252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
37253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37254 (eval $ac_try) 2>&5
37255 ac_status=$?
37256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257 (exit $ac_status); }; } &&
37258 { ac_try='test -s conftest.$ac_objext'
37259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37260 (eval $ac_try) 2>&5
37261 ac_status=$?
37262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263 (exit $ac_status); }; }; then
37264 ac_cv_header_WebKit_HIWebView_h=yes
37265else
37266 echo "$as_me: failed program was:" >&5
37267sed 's/^/| /' conftest.$ac_ext >&5
37268
37269ac_cv_header_WebKit_HIWebView_h=no
37270fi
37271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37272fi
37273echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37274echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37275if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37276
37277 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37278#define wxUSE_WEBKIT 1
37279_ACEOF
37280
07bea8f0
VS
37281 WEBKIT_LINK="-framework WebKit"
37282
37283else
37284
37285 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37286echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37287 wxUSE_WEBKIT=no
37288
646b6ec1
VS
37289fi
37290
07bea8f0
VS
37291
37292 CPPFLAGS="$old_CPPFLAGS"
37293 elif test "$wxUSE_COCOA" = 1; then
37294 cat >>confdefs.h <<\_ACEOF
37295#define wxUSE_WEBKIT 1
37296_ACEOF
37297
37298 else
37299 wxUSE_WEBKIT=no
37300 fi
37301fi
37302
9a8f0513
VS
37303USE_XRC=0
37304if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37305 if test "$wxUSE_XML" != "yes"; then
37306 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37307echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37308 wxUSE_XRC=no
37309 else
37310 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37311#define wxUSE_XRC 1
37312_ACEOF
37313
d2ebf0b7
VS
37314 USE_XRC=1
37315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37316 fi
9a8f0513 37317fi
07bea8f0 37318
a848cd7e
SC
37319if test "$wxUSE_MENUS" = "yes"; then
37320 cat >>confdefs.h <<\_ACEOF
37321#define wxUSE_MENUS 1
37322_ACEOF
37323
37324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37325fi
37326
37327if test "$wxUSE_METAFILE" = "yes"; then
37328 cat >>confdefs.h <<\_ACEOF
37329#define wxUSE_METAFILE 1
37330_ACEOF
37331
37332fi
37333
37334if test "$wxUSE_MIMETYPE" = "yes"; then
37335 cat >>confdefs.h <<\_ACEOF
37336#define wxUSE_MIMETYPE 1
37337_ACEOF
37338
37339fi
37340
37341if test "$wxUSE_MINIFRAME" = "yes"; then
37342 cat >>confdefs.h <<\_ACEOF
37343#define wxUSE_MINIFRAME 1
37344_ACEOF
37345
37346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37347fi
37348
37349if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37350 cat >>confdefs.h <<\_ACEOF
37351#define wxUSE_SYSTEM_OPTIONS 1
37352_ACEOF
37353
37354 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37355 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37357 fi
37358fi
37359
37360
37361if test "$wxUSE_VALIDATORS" = "yes"; then
37362 cat >>confdefs.h <<\_ACEOF
37363#define wxUSE_VALIDATORS 1
37364_ACEOF
37365
37366 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37367fi
37368
37369if test "$wxUSE_PALETTE" = "yes" ; then
37370 cat >>confdefs.h <<\_ACEOF
37371#define wxUSE_PALETTE 1
37372_ACEOF
37373
37374fi
37375
37376if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37377 LIBS=" -lunicows $LIBS"
37378fi
37379
37380
37381if test "$wxUSE_IMAGE" = "yes" ; then
37382 cat >>confdefs.h <<\_ACEOF
37383#define wxUSE_IMAGE 1
37384_ACEOF
37385
37386
37387 if test "$wxUSE_GIF" = "yes" ; then
37388 cat >>confdefs.h <<\_ACEOF
37389#define wxUSE_GIF 1
37390_ACEOF
37391
37392 fi
37393
37394 if test "$wxUSE_PCX" = "yes" ; then
37395 cat >>confdefs.h <<\_ACEOF
37396#define wxUSE_PCX 1
37397_ACEOF
37398
37399 fi
37400
37401 if test "$wxUSE_IFF" = "yes" ; then
37402 cat >>confdefs.h <<\_ACEOF
37403#define wxUSE_IFF 1
37404_ACEOF
37405
37406 fi
37407
37408 if test "$wxUSE_PNM" = "yes" ; then
37409 cat >>confdefs.h <<\_ACEOF
37410#define wxUSE_PNM 1
37411_ACEOF
37412
37413 fi
37414
37415 if test "$wxUSE_XPM" = "yes" ; then
37416 cat >>confdefs.h <<\_ACEOF
37417#define wxUSE_XPM 1
37418_ACEOF
37419
37420 fi
37421
37422 if test "$wxUSE_ICO_CUR" = "yes" ; then
37423 cat >>confdefs.h <<\_ACEOF
37424#define wxUSE_ICO_CUR 1
37425_ACEOF
37426
37427 fi
37428fi
37429
37430
37431if test "$wxUSE_CHOICEDLG" = "yes"; then
37432 cat >>confdefs.h <<\_ACEOF
37433#define wxUSE_CHOICEDLG 1
37434_ACEOF
37435
37436fi
37437
37438if test "$wxUSE_COLOURDLG" = "yes"; then
37439 cat >>confdefs.h <<\_ACEOF
37440#define wxUSE_COLOURDLG 1
37441_ACEOF
37442
37443fi
37444
37445if test "$wxUSE_FILEDLG" = "yes"; then
37446 cat >>confdefs.h <<\_ACEOF
37447#define wxUSE_FILEDLG 1
37448_ACEOF
37449
37450fi
37451
37452if test "$wxUSE_FINDREPLDLG" = "yes"; then
37453 cat >>confdefs.h <<\_ACEOF
37454#define wxUSE_FINDREPLDLG 1
37455_ACEOF
37456
37457fi
37458
37459if test "$wxUSE_FONTDLG" = "yes"; then
37460 cat >>confdefs.h <<\_ACEOF
37461#define wxUSE_FONTDLG 1
37462_ACEOF
37463
37464fi
37465
37466if test "$wxUSE_DIRDLG" = "yes"; then
37467 if test "$wxUSE_TREECTRL" != "yes"; then
37468 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37469echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37470 else
37471 cat >>confdefs.h <<\_ACEOF
37472#define wxUSE_DIRDLG 1
37473_ACEOF
37474
37475 fi
37476fi
37477
37478if test "$wxUSE_MSGDLG" = "yes"; then
37479 cat >>confdefs.h <<\_ACEOF
37480#define wxUSE_MSGDLG 1
37481_ACEOF
37482
37483fi
37484
37485if test "$wxUSE_NUMBERDLG" = "yes"; then
37486 cat >>confdefs.h <<\_ACEOF
37487#define wxUSE_NUMBERDLG 1
37488_ACEOF
37489
37490fi
37491
37492if test "$wxUSE_PROGRESSDLG" = "yes"; then
37493 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37494 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37495echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37496 else
37497 cat >>confdefs.h <<\_ACEOF
37498#define wxUSE_PROGRESSDLG 1
37499_ACEOF
37500
37501 fi
37502fi
37503
37504if test "$wxUSE_SPLASH" = "yes"; then
37505 cat >>confdefs.h <<\_ACEOF
37506#define wxUSE_SPLASH 1
37507_ACEOF
37508
2057db16 37509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37510fi
37511
37512if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37513 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37514 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37515echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37516 else
37517 cat >>confdefs.h <<\_ACEOF
37518#define wxUSE_STARTUP_TIPS 1
37519_ACEOF
37520
37521 fi
37522fi
37523
37524if test "$wxUSE_TEXTDLG" = "yes"; then
37525 cat >>confdefs.h <<\_ACEOF
37526#define wxUSE_TEXTDLG 1
37527_ACEOF
37528
37529fi
37530
37531if test "$wxUSE_WIZARDDLG" = "yes"; then
37532 cat >>confdefs.h <<\_ACEOF
37533#define wxUSE_WIZARDDLG 1
37534_ACEOF
37535
37536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37537fi
37538
37539
37540if test "$cross_compiling" = "yes"; then
37541 OSINFO="\"$host\""
37542else
37543 OSINFO=`uname -s -r -m`
37544 OSINFO="\"$OSINFO\""
37545fi
37546
37547cat >>confdefs.h <<_ACEOF
37548#define WXWIN_OS_DESCRIPTION $OSINFO
37549_ACEOF
37550
37551
37552
37553if test "x$prefix" != "xNONE"; then
37554 wxPREFIX=$prefix
37555else
37556 wxPREFIX=$ac_default_prefix
37557fi
37558
37559cat >>confdefs.h <<_ACEOF
37560#define wxINSTALL_PREFIX "$wxPREFIX"
37561_ACEOF
37562
37563
a848cd7e
SC
37564
37565
37566CORE_BASE_LIBS="net base"
37567CORE_GUI_LIBS="adv core"
37568
37569if test "$wxUSE_XML" = "yes" ; then
37570 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37571fi
37572if test "$wxUSE_ODBC" != "no" ; then
37573 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37574 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37575fi
37576if test "$wxUSE_HTML" = "yes" ; then
37577 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37578fi
9a8f0513
VS
37579if test "$wxUSE_XRC" = "yes" ; then
37580 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37581fi
a848cd7e
SC
37582
37583if test "$wxUSE_GUI" != "yes"; then
37584 CORE_GUI_LIBS=""
37585fi
37586
37587
37588
37589
37590
37591
37592
37593
37594if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 37595 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
07bea8f0
VS
37596 LDFLAGS="$LDFLAGS -framework QuickTime"
37597 fi
5dcf30a0
RN
37598 if test "$USE_DARWIN" = 1; then
37599 LDFLAGS="$LDFLAGS -framework IOKit"
37600 fi
07bea8f0 37601 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37602fi
37603if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37604 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37605fi
37606
37607
37608LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37609
37610have_cos=0
37611have_floor=0
37612
37613for ac_func in cos
37614do
37615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37616echo "$as_me:$LINENO: checking for $ac_func" >&5
37617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37618if eval "test \"\${$as_ac_var+set}\" = set"; then
37619 echo $ECHO_N "(cached) $ECHO_C" >&6
37620else
37621 cat >conftest.$ac_ext <<_ACEOF
37622/* confdefs.h. */
37623_ACEOF
37624cat confdefs.h >>conftest.$ac_ext
37625cat >>conftest.$ac_ext <<_ACEOF
37626/* end confdefs.h. */
ac1cb8d3
VS
37627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37629#define $ac_func innocuous_$ac_func
37630
a848cd7e
SC
37631/* System header to define __stub macros and hopefully few prototypes,
37632 which can conflict with char $ac_func (); below.
37633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37634 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37635
a848cd7e
SC
37636#ifdef __STDC__
37637# include <limits.h>
37638#else
37639# include <assert.h>
37640#endif
ac1cb8d3
VS
37641
37642#undef $ac_func
37643
a848cd7e
SC
37644/* Override any gcc2 internal prototype to avoid an error. */
37645#ifdef __cplusplus
37646extern "C"
37647{
37648#endif
37649/* We use char because int might match the return type of a gcc2
37650 builtin and then its argument prototype would still apply. */
37651char $ac_func ();
37652/* The GNU C library defines this for functions which it implements
37653 to always fail with ENOSYS. Some functions are actually named
37654 something starting with __ and the normal name is an alias. */
37655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37656choke me
37657#else
37658char (*f) () = $ac_func;
37659#endif
37660#ifdef __cplusplus
37661}
37662#endif
37663
37664int
37665main ()
37666{
37667return f != $ac_func;
37668 ;
37669 return 0;
37670}
37671_ACEOF
37672rm -f conftest.$ac_objext conftest$ac_exeext
37673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37674 (eval $ac_link) 2>conftest.er1
a848cd7e 37675 ac_status=$?
ac1cb8d3
VS
37676 grep -v '^ *+' conftest.er1 >conftest.err
37677 rm -f conftest.er1
37678 cat conftest.err >&5
a848cd7e
SC
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); } &&
d51253e8 37681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37683 (eval $ac_try) 2>&5
37684 ac_status=$?
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); }; } &&
37687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37689 (eval $ac_try) 2>&5
37690 ac_status=$?
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37692 (exit $ac_status); }; }; then
37693 eval "$as_ac_var=yes"
37694else
37695 echo "$as_me: failed program was:" >&5
37696sed 's/^/| /' conftest.$ac_ext >&5
37697
37698eval "$as_ac_var=no"
37699fi
ac1cb8d3
VS
37700rm -f conftest.err conftest.$ac_objext \
37701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37702fi
37703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37705if test `eval echo '${'$as_ac_var'}'` = yes; then
37706 cat >>confdefs.h <<_ACEOF
37707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37708_ACEOF
37709 have_cos=1
37710fi
37711done
37712
37713
37714for ac_func in floor
37715do
37716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37717echo "$as_me:$LINENO: checking for $ac_func" >&5
37718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37719if eval "test \"\${$as_ac_var+set}\" = set"; then
37720 echo $ECHO_N "(cached) $ECHO_C" >&6
37721else
37722 cat >conftest.$ac_ext <<_ACEOF
37723/* confdefs.h. */
37724_ACEOF
37725cat confdefs.h >>conftest.$ac_ext
37726cat >>conftest.$ac_ext <<_ACEOF
37727/* end confdefs.h. */
ac1cb8d3
VS
37728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37730#define $ac_func innocuous_$ac_func
37731
a848cd7e
SC
37732/* System header to define __stub macros and hopefully few prototypes,
37733 which can conflict with char $ac_func (); below.
37734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37735 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37736
a848cd7e
SC
37737#ifdef __STDC__
37738# include <limits.h>
37739#else
37740# include <assert.h>
37741#endif
ac1cb8d3
VS
37742
37743#undef $ac_func
37744
a848cd7e
SC
37745/* Override any gcc2 internal prototype to avoid an error. */
37746#ifdef __cplusplus
37747extern "C"
37748{
37749#endif
37750/* We use char because int might match the return type of a gcc2
37751 builtin and then its argument prototype would still apply. */
37752char $ac_func ();
37753/* The GNU C library defines this for functions which it implements
37754 to always fail with ENOSYS. Some functions are actually named
37755 something starting with __ and the normal name is an alias. */
37756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37757choke me
37758#else
37759char (*f) () = $ac_func;
37760#endif
37761#ifdef __cplusplus
37762}
37763#endif
37764
37765int
37766main ()
37767{
37768return f != $ac_func;
37769 ;
37770 return 0;
37771}
37772_ACEOF
37773rm -f conftest.$ac_objext conftest$ac_exeext
37774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37775 (eval $ac_link) 2>conftest.er1
a848cd7e 37776 ac_status=$?
ac1cb8d3
VS
37777 grep -v '^ *+' conftest.er1 >conftest.err
37778 rm -f conftest.er1
37779 cat conftest.err >&5
a848cd7e
SC
37780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781 (exit $ac_status); } &&
d51253e8 37782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37784 (eval $ac_try) 2>&5
37785 ac_status=$?
37786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); }; } &&
37788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37791 ac_status=$?
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; }; then
37794 eval "$as_ac_var=yes"
37795else
37796 echo "$as_me: failed program was:" >&5
37797sed 's/^/| /' conftest.$ac_ext >&5
37798
37799eval "$as_ac_var=no"
37800fi
ac1cb8d3
VS
37801rm -f conftest.err conftest.$ac_objext \
37802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37803fi
37804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37805echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37806if test `eval echo '${'$as_ac_var'}'` = yes; then
37807 cat >>confdefs.h <<_ACEOF
37808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37809_ACEOF
37810 have_floor=1
37811fi
37812done
37813
37814echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37815echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37816if test "$have_cos" = 1 -a "$have_floor" = 1; then
37817 echo "$as_me:$LINENO: result: yes" >&5
37818echo "${ECHO_T}yes" >&6
37819else
37820 echo "$as_me:$LINENO: result: no" >&5
37821echo "${ECHO_T}no" >&6
37822 LIBS="$LIBS -lm"
37823 # use different functions to avoid configure caching
37824 have_sin=0
37825 have_ceil=0
37826
37827for ac_func in sin
37828do
37829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37830echo "$as_me:$LINENO: checking for $ac_func" >&5
37831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37832if eval "test \"\${$as_ac_var+set}\" = set"; then
37833 echo $ECHO_N "(cached) $ECHO_C" >&6
37834else
37835 cat >conftest.$ac_ext <<_ACEOF
37836/* confdefs.h. */
37837_ACEOF
37838cat confdefs.h >>conftest.$ac_ext
37839cat >>conftest.$ac_ext <<_ACEOF
37840/* end confdefs.h. */
ac1cb8d3
VS
37841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37843#define $ac_func innocuous_$ac_func
37844
a848cd7e
SC
37845/* System header to define __stub macros and hopefully few prototypes,
37846 which can conflict with char $ac_func (); below.
37847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37848 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37849
a848cd7e
SC
37850#ifdef __STDC__
37851# include <limits.h>
37852#else
37853# include <assert.h>
37854#endif
ac1cb8d3
VS
37855
37856#undef $ac_func
37857
a848cd7e
SC
37858/* Override any gcc2 internal prototype to avoid an error. */
37859#ifdef __cplusplus
37860extern "C"
37861{
37862#endif
37863/* We use char because int might match the return type of a gcc2
37864 builtin and then its argument prototype would still apply. */
37865char $ac_func ();
37866/* The GNU C library defines this for functions which it implements
37867 to always fail with ENOSYS. Some functions are actually named
37868 something starting with __ and the normal name is an alias. */
37869#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37870choke me
37871#else
37872char (*f) () = $ac_func;
37873#endif
37874#ifdef __cplusplus
37875}
37876#endif
37877
37878int
37879main ()
37880{
37881return f != $ac_func;
37882 ;
37883 return 0;
37884}
37885_ACEOF
37886rm -f conftest.$ac_objext conftest$ac_exeext
37887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37888 (eval $ac_link) 2>conftest.er1
a848cd7e 37889 ac_status=$?
ac1cb8d3
VS
37890 grep -v '^ *+' conftest.er1 >conftest.err
37891 rm -f conftest.er1
37892 cat conftest.err >&5
a848cd7e
SC
37893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37894 (exit $ac_status); } &&
d51253e8 37895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37897 (eval $ac_try) 2>&5
37898 ac_status=$?
37899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900 (exit $ac_status); }; } &&
37901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37903 (eval $ac_try) 2>&5
37904 ac_status=$?
37905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37906 (exit $ac_status); }; }; then
37907 eval "$as_ac_var=yes"
37908else
37909 echo "$as_me: failed program was:" >&5
37910sed 's/^/| /' conftest.$ac_ext >&5
37911
37912eval "$as_ac_var=no"
37913fi
ac1cb8d3
VS
37914rm -f conftest.err conftest.$ac_objext \
37915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37916fi
37917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37919if test `eval echo '${'$as_ac_var'}'` = yes; then
37920 cat >>confdefs.h <<_ACEOF
37921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37922_ACEOF
37923 have_sin=1
37924fi
37925done
37926
37927
37928for ac_func in ceil
37929do
37930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37931echo "$as_me:$LINENO: checking for $ac_func" >&5
37932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37933if eval "test \"\${$as_ac_var+set}\" = set"; then
37934 echo $ECHO_N "(cached) $ECHO_C" >&6
37935else
37936 cat >conftest.$ac_ext <<_ACEOF
37937/* confdefs.h. */
37938_ACEOF
37939cat confdefs.h >>conftest.$ac_ext
37940cat >>conftest.$ac_ext <<_ACEOF
37941/* end confdefs.h. */
ac1cb8d3
VS
37942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37944#define $ac_func innocuous_$ac_func
37945
a848cd7e
SC
37946/* System header to define __stub macros and hopefully few prototypes,
37947 which can conflict with char $ac_func (); below.
37948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37949 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37950
a848cd7e
SC
37951#ifdef __STDC__
37952# include <limits.h>
37953#else
37954# include <assert.h>
37955#endif
ac1cb8d3
VS
37956
37957#undef $ac_func
37958
a848cd7e
SC
37959/* Override any gcc2 internal prototype to avoid an error. */
37960#ifdef __cplusplus
37961extern "C"
37962{
37963#endif
37964/* We use char because int might match the return type of a gcc2
37965 builtin and then its argument prototype would still apply. */
37966char $ac_func ();
37967/* The GNU C library defines this for functions which it implements
37968 to always fail with ENOSYS. Some functions are actually named
37969 something starting with __ and the normal name is an alias. */
37970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37971choke me
37972#else
37973char (*f) () = $ac_func;
37974#endif
37975#ifdef __cplusplus
37976}
37977#endif
37978
37979int
37980main ()
37981{
37982return f != $ac_func;
37983 ;
37984 return 0;
37985}
37986_ACEOF
37987rm -f conftest.$ac_objext conftest$ac_exeext
37988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37989 (eval $ac_link) 2>conftest.er1
a848cd7e 37990 ac_status=$?
ac1cb8d3
VS
37991 grep -v '^ *+' conftest.er1 >conftest.err
37992 rm -f conftest.er1
37993 cat conftest.err >&5
a848cd7e
SC
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); } &&
d51253e8 37996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; } &&
38002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38004 (eval $ac_try) 2>&5
38005 ac_status=$?
38006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); }; }; then
38008 eval "$as_ac_var=yes"
38009else
38010 echo "$as_me: failed program was:" >&5
38011sed 's/^/| /' conftest.$ac_ext >&5
38012
38013eval "$as_ac_var=no"
38014fi
ac1cb8d3
VS
38015rm -f conftest.err conftest.$ac_objext \
38016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38017fi
38018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38020if test `eval echo '${'$as_ac_var'}'` = yes; then
38021 cat >>confdefs.h <<_ACEOF
38022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38023_ACEOF
38024 have_ceil=1
38025fi
38026done
38027
38028 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38029echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38030 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38031 echo "$as_me:$LINENO: result: yes" >&5
38032echo "${ECHO_T}yes" >&6
38033 else
38034 echo "$as_me:$LINENO: result: no" >&5
38035echo "${ECHO_T}no" >&6
38036 # not sure we should warn the user, crash, etc.
38037 fi
38038fi
38039
38040if test "$wxUSE_GUI" = "yes"; then
38041
38042
38043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38044 drawing dynamic erase event exec font image \
38045 minimal propsize rotate shaped widgets render"
38046
38047 if test "$wxUSE_MONOLITHIC" != "yes"; then
38048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38049 fi
38050else
38051 SAMPLES_SUBDIRS="console"
38052fi
38053
38054
ceec2216 38055INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38056-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38057
38058if test "$GXX" = yes ; then
38059 CXXWARNINGS="-Wall"
38060 fi
38061
38062EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38063
0c3c69fc
VS
38064CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
38065CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
38066CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
38067
38068
0c3c69fc 38069LIBS=`echo $LIBS`
a848cd7e
SC
38070EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38071EXTRALIBS_XML="$EXPAT_LINK"
38072EXTRALIBS_HTML="$MSPACK_LINK"
38073EXTRALIBS_ODBC="$ODBC_LINK"
38074if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38075 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38076fi
38077if test "$wxUSE_OPENGL" = "yes"; then
38078 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38079fi
38080
38081LDFLAGS="$LDFLAGS $PROFILE"
38082
38083if test "$wxUSE_GTK" = 1; then
38084 WXCONFIG_INCLUDE=
38085else
38086 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38087fi
38088
38089WXCONFIG_EXTRALIBS="$LIBS"
38090
38091if test "$wxUSE_REGEX" = "builtin" ; then
38092 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38093fi
38094if test "$wxUSE_EXPAT" = "builtin" ; then
38095 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38096fi
38097if test "$wxUSE_ODBC" = "builtin" ; then
38098 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38099fi
38100if test "$wxUSE_LIBTIFF" = "builtin" ; then
38101 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38102fi
38103if test "$wxUSE_LIBJPEG" = "builtin" ; then
38104 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38105fi
38106if test "$wxUSE_LIBPNG" = "builtin" ; then
38107 wxconfig_3rdparty="$wxconfig_3rdparty png"
38108fi
38109if test "$wxUSE_ZLIB" = "builtin" ; then
38110 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38111fi
38112if test "$wxUSE_ODBC" = "builtin" ; then
38113 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38114fi
38115
38116for i in $wxconfig_3rdparty ; do
ceec2216 38117 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38118done
38119
38120
38121if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38122 WXUNIV=1
38123else
38124 WXUNIV=0
38125fi
38126
38127
38128
38129
38130
38131
38132
38133
38134
38135if test $wxUSE_MONOLITHIC = "yes" ; then
38136 MONOLITHIC=1
38137else
38138 MONOLITHIC=0
38139fi
38140
38141if test $wxUSE_PLUGINS = "yes" ; then
38142 USE_PLUGINS=1
38143else
38144 USE_PLUGINS=0
38145fi
38146
38147if test $wxUSE_ODBC != "no" ; then
38148 USE_ODBC=1
38149else
38150 USE_ODBC=0
38151fi
38152
38153if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38154 OFFICIAL_BUILD=1
38155else
38156 OFFICIAL_BUILD=0
38157fi
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176
ceec2216 38177
d1c38808 38178
a848cd7e
SC
38179
38180
38181TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38182
38183
38184
38185
38186
38187
38188
38189
4d4ff94c
VZ
38190case "$TOOLKIT" in
38191 GTK)
38192 TOOLKIT_USER="GTK+"
38193 if test "$WXGTK20" = 1; then
38194 TOOLKIT_USER="$TOOLKIT_USER 2"
38195 fi
9a8f0513 38196 ;;
4d4ff94c
VZ
38197
38198 *)
38199 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38200 ;;
4d4ff94c 38201esac
a848cd7e 38202
9a8f0513 38203
a848cd7e
SC
38204 if test "x$BAKEFILE_HOST" = "x"; then
38205 BAKEFILE_HOST="${host}"
38206 fi
38207
38208 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38209
38210 if test -n "$ac_tool_prefix"; then
38211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38212set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38213echo "$as_me:$LINENO: checking for $ac_word" >&5
38214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38215if test "${ac_cv_prog_RANLIB+set}" = set; then
38216 echo $ECHO_N "(cached) $ECHO_C" >&6
38217else
38218 if test -n "$RANLIB"; then
38219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38220else
38221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38222for as_dir in $PATH
38223do
38224 IFS=$as_save_IFS
38225 test -z "$as_dir" && as_dir=.
38226 for ac_exec_ext in '' $ac_executable_extensions; do
38227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38230 break 2
38231 fi
38232done
38233done
38234
38235fi
38236fi
38237RANLIB=$ac_cv_prog_RANLIB
38238if test -n "$RANLIB"; then
38239 echo "$as_me:$LINENO: result: $RANLIB" >&5
38240echo "${ECHO_T}$RANLIB" >&6
38241else
38242 echo "$as_me:$LINENO: result: no" >&5
38243echo "${ECHO_T}no" >&6
38244fi
38245
38246fi
38247if test -z "$ac_cv_prog_RANLIB"; then
38248 ac_ct_RANLIB=$RANLIB
38249 # Extract the first word of "ranlib", so it can be a program name with args.
38250set dummy ranlib; ac_word=$2
38251echo "$as_me:$LINENO: checking for $ac_word" >&5
38252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38253if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38254 echo $ECHO_N "(cached) $ECHO_C" >&6
38255else
38256 if test -n "$ac_ct_RANLIB"; then
38257 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38258else
38259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38260for as_dir in $PATH
38261do
38262 IFS=$as_save_IFS
38263 test -z "$as_dir" && as_dir=.
38264 for ac_exec_ext in '' $ac_executable_extensions; do
38265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38266 ac_cv_prog_ac_ct_RANLIB="ranlib"
38267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38268 break 2
38269 fi
38270done
38271done
38272
38273 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38274fi
38275fi
38276ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38277if test -n "$ac_ct_RANLIB"; then
38278 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38279echo "${ECHO_T}$ac_ct_RANLIB" >&6
38280else
38281 echo "$as_me:$LINENO: result: no" >&5
38282echo "${ECHO_T}no" >&6
38283fi
38284
38285 RANLIB=$ac_ct_RANLIB
38286else
38287 RANLIB="$ac_cv_prog_RANLIB"
38288fi
38289
38290 # Find a good install program. We prefer a C program (faster),
38291# so one script is as good as another. But avoid the broken or
38292# incompatible versions:
38293# SysV /etc/install, /usr/sbin/install
38294# SunOS /usr/etc/install
38295# IRIX /sbin/install
38296# AIX /bin/install
38297# AmigaOS /C/install, which installs bootblocks on floppy discs
38298# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38299# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38300# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38301# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38302# ./install, which can be erroneously created by make from ./install.sh.
38303echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38304echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38305if test -z "$INSTALL"; then
38306if test "${ac_cv_path_install+set}" = set; then
38307 echo $ECHO_N "(cached) $ECHO_C" >&6
38308else
38309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38310for as_dir in $PATH
38311do
38312 IFS=$as_save_IFS
38313 test -z "$as_dir" && as_dir=.
38314 # Account for people who put trailing slashes in PATH elements.
38315case $as_dir/ in
38316 ./ | .// | /cC/* | \
38317 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38318 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38319 /usr/ucb/* ) ;;
38320 *)
38321 # OSF1 and SCO ODT 3.0 have their own names for install.
38322 # Don't use installbsd from OSF since it installs stuff as root
38323 # by default.
38324 for ac_prog in ginstall scoinst install; do
38325 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38326 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38327 if test $ac_prog = install &&
38328 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38329 # AIX install. It has an incompatible calling convention.
38330 :
38331 elif test $ac_prog = install &&
38332 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38333 # program-specific install script used by HP pwplus--don't use.
38334 :
38335 else
38336 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38337 break 3
38338 fi
38339 fi
a848cd7e
SC
38340 done
38341 done
38342 ;;
38343esac
38344done
38345
38346
38347fi
38348 if test "${ac_cv_path_install+set}" = set; then
38349 INSTALL=$ac_cv_path_install
38350 else
38351 # As a last resort, use the slow shell script. We don't cache a
38352 # path for INSTALL within a source directory, because that will
38353 # break other packages using the cache if that directory is
38354 # removed, or if the path is relative.
38355 INSTALL=$ac_install_sh
38356 fi
38357fi
38358echo "$as_me:$LINENO: result: $INSTALL" >&5
38359echo "${ECHO_T}$INSTALL" >&6
38360
38361# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38362# It thinks the first close brace ends the variable substitution.
38363test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38364
38365test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38366
38367test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38368
38369 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38370echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38371LN_S=$as_ln_s
38372if test "$LN_S" = "ln -s"; then
38373 echo "$as_me:$LINENO: result: yes" >&5
38374echo "${ECHO_T}yes" >&6
38375else
38376 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38377echo "${ECHO_T}no, using $LN_S" >&6
38378fi
38379
38380
38381 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38382echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38383set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38384if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38385 echo $ECHO_N "(cached) $ECHO_C" >&6
38386else
38387 cat >conftest.make <<\_ACEOF
38388all:
38389 @echo 'ac_maketemp="$(MAKE)"'
38390_ACEOF
38391# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38392eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38393if test -n "$ac_maketemp"; then
38394 eval ac_cv_prog_make_${ac_make}_set=yes
38395else
38396 eval ac_cv_prog_make_${ac_make}_set=no
38397fi
38398rm -f conftest.make
38399fi
38400if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38401 echo "$as_me:$LINENO: result: yes" >&5
38402echo "${ECHO_T}yes" >&6
38403 SET_MAKE=
38404else
38405 echo "$as_me:$LINENO: result: no" >&5
38406echo "${ECHO_T}no" >&6
38407 SET_MAKE="MAKE=${MAKE-make}"
38408fi
38409
38410
38411
38412 if test -n "$ac_tool_prefix"; then
38413 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38414set dummy ${ac_tool_prefix}ar; ac_word=$2
38415echo "$as_me:$LINENO: checking for $ac_word" >&5
38416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38417if test "${ac_cv_prog_AR+set}" = set; then
38418 echo $ECHO_N "(cached) $ECHO_C" >&6
38419else
38420 if test -n "$AR"; then
38421 ac_cv_prog_AR="$AR" # Let the user override the test.
38422else
38423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38424for as_dir in $PATH
38425do
38426 IFS=$as_save_IFS
38427 test -z "$as_dir" && as_dir=.
38428 for ac_exec_ext in '' $ac_executable_extensions; do
38429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38430 ac_cv_prog_AR="${ac_tool_prefix}ar"
38431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38432 break 2
38433 fi
38434done
38435done
38436
38437fi
38438fi
38439AR=$ac_cv_prog_AR
38440if test -n "$AR"; then
38441 echo "$as_me:$LINENO: result: $AR" >&5
38442echo "${ECHO_T}$AR" >&6
38443else
38444 echo "$as_me:$LINENO: result: no" >&5
38445echo "${ECHO_T}no" >&6
38446fi
38447
38448fi
38449if test -z "$ac_cv_prog_AR"; then
38450 ac_ct_AR=$AR
38451 # Extract the first word of "ar", so it can be a program name with args.
38452set dummy ar; ac_word=$2
38453echo "$as_me:$LINENO: checking for $ac_word" >&5
38454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38455if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38456 echo $ECHO_N "(cached) $ECHO_C" >&6
38457else
38458 if test -n "$ac_ct_AR"; then
38459 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38460else
38461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38462for as_dir in $PATH
38463do
38464 IFS=$as_save_IFS
38465 test -z "$as_dir" && as_dir=.
38466 for ac_exec_ext in '' $ac_executable_extensions; do
38467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38468 ac_cv_prog_ac_ct_AR="ar"
38469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38470 break 2
38471 fi
38472done
38473done
38474
38475 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38476fi
38477fi
38478ac_ct_AR=$ac_cv_prog_ac_ct_AR
38479if test -n "$ac_ct_AR"; then
38480 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38481echo "${ECHO_T}$ac_ct_AR" >&6
38482else
38483 echo "$as_me:$LINENO: result: no" >&5
38484echo "${ECHO_T}no" >&6
38485fi
38486
38487 AR=$ac_ct_AR
38488else
38489 AR="$ac_cv_prog_AR"
38490fi
38491
38492 if test -n "$ac_tool_prefix"; then
38493 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38494set dummy ${ac_tool_prefix}strip; ac_word=$2
38495echo "$as_me:$LINENO: checking for $ac_word" >&5
38496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38497if test "${ac_cv_prog_STRIP+set}" = set; then
38498 echo $ECHO_N "(cached) $ECHO_C" >&6
38499else
38500 if test -n "$STRIP"; then
38501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38502else
38503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38504for as_dir in $PATH
38505do
38506 IFS=$as_save_IFS
38507 test -z "$as_dir" && as_dir=.
38508 for ac_exec_ext in '' $ac_executable_extensions; do
38509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38512 break 2
38513 fi
38514done
38515done
38516
38517fi
38518fi
38519STRIP=$ac_cv_prog_STRIP
38520if test -n "$STRIP"; then
38521 echo "$as_me:$LINENO: result: $STRIP" >&5
38522echo "${ECHO_T}$STRIP" >&6
38523else
38524 echo "$as_me:$LINENO: result: no" >&5
38525echo "${ECHO_T}no" >&6
38526fi
38527
38528fi
38529if test -z "$ac_cv_prog_STRIP"; then
38530 ac_ct_STRIP=$STRIP
38531 # Extract the first word of "strip", so it can be a program name with args.
38532set dummy strip; ac_word=$2
38533echo "$as_me:$LINENO: checking for $ac_word" >&5
38534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38535if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38536 echo $ECHO_N "(cached) $ECHO_C" >&6
38537else
38538 if test -n "$ac_ct_STRIP"; then
38539 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38540else
38541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38542for as_dir in $PATH
38543do
38544 IFS=$as_save_IFS
38545 test -z "$as_dir" && as_dir=.
38546 for ac_exec_ext in '' $ac_executable_extensions; do
38547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38548 ac_cv_prog_ac_ct_STRIP="strip"
38549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38550 break 2
38551 fi
38552done
38553done
38554
38555 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38556fi
38557fi
38558ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38559if test -n "$ac_ct_STRIP"; then
38560 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38561echo "${ECHO_T}$ac_ct_STRIP" >&6
38562else
38563 echo "$as_me:$LINENO: result: no" >&5
38564echo "${ECHO_T}no" >&6
38565fi
38566
38567 STRIP=$ac_ct_STRIP
38568else
38569 STRIP="$ac_cv_prog_STRIP"
38570fi
38571
38572 if test -n "$ac_tool_prefix"; then
38573 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38574set dummy ${ac_tool_prefix}nm; ac_word=$2
38575echo "$as_me:$LINENO: checking for $ac_word" >&5
38576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38577if test "${ac_cv_prog_NM+set}" = set; then
38578 echo $ECHO_N "(cached) $ECHO_C" >&6
38579else
38580 if test -n "$NM"; then
38581 ac_cv_prog_NM="$NM" # Let the user override the test.
38582else
38583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38584for as_dir in $PATH
38585do
38586 IFS=$as_save_IFS
38587 test -z "$as_dir" && as_dir=.
38588 for ac_exec_ext in '' $ac_executable_extensions; do
38589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38590 ac_cv_prog_NM="${ac_tool_prefix}nm"
38591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38592 break 2
38593 fi
38594done
38595done
38596
38597fi
38598fi
38599NM=$ac_cv_prog_NM
38600if test -n "$NM"; then
38601 echo "$as_me:$LINENO: result: $NM" >&5
38602echo "${ECHO_T}$NM" >&6
38603else
38604 echo "$as_me:$LINENO: result: no" >&5
38605echo "${ECHO_T}no" >&6
38606fi
38607
38608fi
38609if test -z "$ac_cv_prog_NM"; then
38610 ac_ct_NM=$NM
38611 # Extract the first word of "nm", so it can be a program name with args.
38612set dummy nm; ac_word=$2
38613echo "$as_me:$LINENO: checking for $ac_word" >&5
38614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38615if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38616 echo $ECHO_N "(cached) $ECHO_C" >&6
38617else
38618 if test -n "$ac_ct_NM"; then
38619 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38620else
38621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38622for as_dir in $PATH
38623do
38624 IFS=$as_save_IFS
38625 test -z "$as_dir" && as_dir=.
38626 for ac_exec_ext in '' $ac_executable_extensions; do
38627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38628 ac_cv_prog_ac_ct_NM="nm"
38629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38630 break 2
38631 fi
38632done
38633done
38634
38635 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38636fi
38637fi
38638ac_ct_NM=$ac_cv_prog_ac_ct_NM
38639if test -n "$ac_ct_NM"; then
38640 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38641echo "${ECHO_T}$ac_ct_NM" >&6
38642else
38643 echo "$as_me:$LINENO: result: no" >&5
38644echo "${ECHO_T}no" >&6
38645fi
38646
38647 NM=$ac_ct_NM
38648else
38649 NM="$ac_cv_prog_NM"
38650fi
38651
38652
38653 case ${BAKEFILE_HOST} in
38654 *-hp-hpux* )
a49baeab 38655 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38656 ;;
38657 *) INSTALL_DIR="$INSTALL -d"
38658 ;;
38659 esac
38660
38661
38662 LDFLAGS_GUI=
38663 case ${BAKEFILE_HOST} in
38664 *-*-cygwin* | *-*-mingw32* )
38665 LDFLAGS_GUI="-mwindows"
38666 esac
38667
38668
38669 fi
38670
38671 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38672echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38673if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38674 echo $ECHO_N "(cached) $ECHO_C" >&6
38675else
38676
38677 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38678 egrep -s GNU > /dev/null); then
38679 bakefile_cv_prog_makeisgnu="yes"
38680 else
38681 bakefile_cv_prog_makeisgnu="no"
38682 fi
38683
38684fi
38685echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38686echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38687
38688 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38689 IF_GNU_MAKE=""
38690 else
38691 IF_GNU_MAKE="#"
38692 fi
38693
38694
38695
38696 PLATFORM_UNIX=0
38697 PLATFORM_WIN32=0
38698 PLATFORM_MSDOS=0
38699 PLATFORM_MAC=0
38700 PLATFORM_MACOSX=0
38701 PLATFORM_OS2=0
38702
38703 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38704 case "${BAKEFILE_HOST}" in
38705 *-*-cygwin* | *-*-mingw32* )
38706 PLATFORM_WIN32=1
38707 ;;
38708 *-pc-msdosdjgpp )
38709 PLATFORM_MSDOS=1
38710 ;;
38711 *-pc-os2_emx | *-pc-os2-emx )
38712 PLATFORM_OS2=1
38713 ;;
38714 powerpc-*-darwin* )
38715 PLATFORM_MAC=1
38716 PLATFORM_MACOSX=1
38717 ;;
38718 * )
38719 PLATFORM_UNIX=1
38720 ;;
38721 esac
38722 else
38723 case "$BAKEFILE_FORCE_PLATFORM" in
38724 win32 )
38725 PLATFORM_WIN32=1
38726 ;;
38727 msdos )
38728 PLATFORM_MSDOS=1
38729 ;;
38730 os2 )
38731 PLATFORM_OS2=1
38732 ;;
38733 darwin )
38734 PLATFORM_MAC=1
38735 PLATFORM_MACOSX=1
38736 ;;
38737 unix )
38738 PLATFORM_UNIX=1
38739 ;;
38740 * )
38741 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38742echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38743 { (exit 1); exit 1; }; }
38744 ;;
38745 esac
38746 fi
38747
38748
38749
38750
38751
38752
38753
38754
38755
38756 # Check whether --enable-omf or --disable-omf was given.
38757if test "${enable_omf+set}" = set; then
38758 enableval="$enable_omf"
38759 bk_os2_use_omf="$enableval"
38760fi;
38761
38762 case "${BAKEFILE_HOST}" in
38763 *-*-darwin* )
38764 CFLAGS="$CFLAGS -fno-common"
38765 CXXFLAGS="$CXXFLAGS -fno-common"
38766 ;;
38767
38768 *-pc-os2_emx | *-pc-os2-emx )
38769 if test "x$bk_os2_use_omf" = "xyes" ; then
38770 AR=emxomfar
38771 RANLIB=:
38772 LDFLAGS="-Zomf $LDFLAGS"
38773 CFLAGS="-Zomf $CFLAGS"
38774 CXXFLAGS="-Zomf $CXXFLAGS"
38775 OS2_LIBEXT="lib"
38776 else
38777 OS2_LIBEXT="a"
38778 fi
38779 ;;
38780 esac
38781
38782
38783 SO_SUFFIX="so"
38784 SO_SUFFIX_MODULE="so"
38785 EXEEXT=""
38786 LIBPREFIX="lib"
38787 LIBEXT=".a"
38788 DLLPREFIX="lib"
38789 DLLPREFIX_MODULE=""
38790 DLLIMP_SUFFIX=""
38791
38792 case "${BAKEFILE_HOST}" in
38793 *-hp-hpux* )
38794 SO_SUFFIX="sl"
38795 SO_SUFFIX_MODULE="sl"
38796 ;;
38797 *-*-aix* )
38798 SO_SUFFIX="a"
38799 SO_SUFFIX_MODULE="a"
38800 ;;
38801 *-*-cygwin* | *-*-mingw32* )
38802 SO_SUFFIX="dll"
38803 SO_SUFFIX_MODULE="dll"
38804 DLLIMP_SUFFIX="dll.a"
38805 EXEEXT=".exe"
38806 DLLPREFIX=""
38807 ;;
38808 *-pc-msdosdjgpp )
38809 EXEEXT=".exe"
38810 DLLPREFIX=""
38811 ;;
38812 *-pc-os2_emx | *-pc-os2-emx )
38813 SO_SUFFIX="dll"
38814 SO_SUFFIX_MODULE="dll"
38815 DLLIMP_SUFFIX=$OS2_LIBEXT
38816 EXEEXT=".exe"
38817 DLLPREFIX=""
38818 LIBPREFIX=""
38819 LIBEXT=".$OS2_LIBEXT"
38820 ;;
38821 powerpc-*-darwin* )
38822 SO_SUFFIX="dylib"
38823 SO_SUFFIX_MODULE="bundle"
38824 ;;
38825 esac
38826
38827 if test "x$DLLIMP_SUFFIX" = "x" ; then
38828 DLLIMP_SUFFIX="$SO_SUFFIX"
38829 fi
38830
38831
38832
38833
38834
38835
38836
38837
38838
38839
38840
38841 SHARED_LD_CC="\$(CC) -shared -o"
38842 SHARED_LD_CXX="\$(CXX) -shared -o"
38843
38844 if test "x$GCC" = "xyes"; then
38845 PIC_FLAG="-fPIC"
38846 fi
38847
38848 case "${BAKEFILE_HOST}" in
38849 *-hp-hpux* )
38850 if test "x$GCC" = "xyes"; then
38851 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38852 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38853 else
38854 LDFLAGS="$LDFLAGS -L/usr/lib"
38855
38856 SHARED_LD_CC="${CC} -b -o"
38857 SHARED_LD_CXX="${CXX} -b -o"
38858 PIC_FLAG="+Z"
38859 fi
38860 ;;
38861
38862 *-*-linux* )
38863 if test "x$GCC" != "xyes"; then
38864 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38865echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38866if test "${bakefile_cv_prog_icc+set}" = set; then
38867 echo $ECHO_N "(cached) $ECHO_C" >&6
38868else
38869
38870 cat >conftest.$ac_ext <<_ACEOF
38871/* confdefs.h. */
38872_ACEOF
38873cat confdefs.h >>conftest.$ac_ext
38874cat >>conftest.$ac_ext <<_ACEOF
38875/* end confdefs.h. */
38876
38877int
38878main ()
38879{
38880
38881 #ifndef __INTEL_COMPILER
38882 #error Not icc
38883 #endif
38884
38885 ;
38886 return 0;
38887}
38888_ACEOF
38889rm -f conftest.$ac_objext
38890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38891 (eval $ac_compile) 2>conftest.er1
a848cd7e 38892 ac_status=$?
ac1cb8d3
VS
38893 grep -v '^ *+' conftest.er1 >conftest.err
38894 rm -f conftest.er1
38895 cat conftest.err >&5
a848cd7e
SC
38896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897 (exit $ac_status); } &&
d51253e8 38898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38900 (eval $ac_try) 2>&5
38901 ac_status=$?
38902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903 (exit $ac_status); }; } &&
38904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38906 (eval $ac_try) 2>&5
38907 ac_status=$?
38908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909 (exit $ac_status); }; }; then
38910 bakefile_cv_prog_icc=yes
38911else
38912 echo "$as_me: failed program was:" >&5
38913sed 's/^/| /' conftest.$ac_ext >&5
38914
38915bakefile_cv_prog_icc=no
38916
38917fi
ac1cb8d3 38918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38919
38920fi
38921echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38922echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38923 if test "$bakefile_cv_prog_icc" = "yes"; then
38924 PIC_FLAG="-KPIC"
38925 fi
38926 fi
38927 ;;
38928
38929 *-*-solaris2* )
38930 if test "x$GCC" != xyes ; then
38931 SHARED_LD_CC="${CC} -G -o"
38932 SHARED_LD_CXX="${CXX} -G -o"
38933 PIC_FLAG="-KPIC"
38934 fi
38935 ;;
38936
38937 *-*-darwin* )
38938
38939 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38940echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38941if test "${wx_cv_gcc31+set}" = set; then
38942 echo $ECHO_N "(cached) $ECHO_C" >&6
38943else
38944
38945 cat >conftest.$ac_ext <<_ACEOF
38946/* confdefs.h. */
38947_ACEOF
38948cat confdefs.h >>conftest.$ac_ext
38949cat >>conftest.$ac_ext <<_ACEOF
38950/* end confdefs.h. */
38951
38952int
38953main ()
38954{
38955
38956 #if (__GNUC__ < 3) || \
38957 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38958 #error old gcc
38959 #endif
38960
38961 ;
38962 return 0;
38963}
38964_ACEOF
38965rm -f conftest.$ac_objext
38966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38967 (eval $ac_compile) 2>conftest.er1
a848cd7e 38968 ac_status=$?
ac1cb8d3
VS
38969 grep -v '^ *+' conftest.er1 >conftest.err
38970 rm -f conftest.er1
38971 cat conftest.err >&5
a848cd7e
SC
38972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973 (exit $ac_status); } &&
d51253e8 38974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38976 (eval $ac_try) 2>&5
38977 ac_status=$?
38978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979 (exit $ac_status); }; } &&
38980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38982 (eval $ac_try) 2>&5
38983 ac_status=$?
38984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38985 (exit $ac_status); }; }; then
38986
38987 wx_cv_gcc31=yes
38988
38989else
38990 echo "$as_me: failed program was:" >&5
38991sed 's/^/| /' conftest.$ac_ext >&5
38992
38993
38994 wx_cv_gcc31=no
38995
38996
38997fi
ac1cb8d3 38998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38999
39000fi
39001echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39002echo "${ECHO_T}$wx_cv_gcc31" >&6
39003 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39004
39005D='$'
39006cat <<EOF >shared-ld-sh
a848cd7e
SC
39007#!/bin/sh
39008#-----------------------------------------------------------------------------
39009#-- Name: distrib/mac/shared-ld-sh
39010#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39011#-- Author: Gilles Depeyrot
39012#-- Copyright: (c) 2002 Gilles Depeyrot
39013#-- Licence: any use permitted
39014#-----------------------------------------------------------------------------
39015
39016verbose=0
39017args=""
39018objects=""
39019linking_flag="-dynamiclib"
39020
473276a9
VS
39021while test ${D}# -gt 0; do
39022 case ${D}1 in
a848cd7e
SC
39023
39024 -v)
39025 verbose=1
39026 ;;
39027
39028 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39029 # collect these options and values
473276a9 39030 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39031 shift
39032 ;;
39033
39034 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39035 # collect these options
473276a9 39036 args="${D}{args} ${D}1"
a848cd7e
SC
39037 ;;
39038
39039 -dynamiclib|-bundle)
473276a9 39040 linking_flag="${D}1"
a848cd7e
SC
39041 ;;
39042
39043 -*)
473276a9 39044 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39045 exit 1
39046 ;;
39047
39048 *.o | *.a | *.dylib)
39049 # collect object files
473276a9 39050 objects="${D}{objects} ${D}1"
a848cd7e
SC
39051 ;;
39052
39053 *)
473276a9 39054 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39055 exit 1
39056 ;;
39057
39058 esac
39059 shift
39060done
39061
39062#
39063# Link one module containing all the others
39064#
473276a9
VS
39065if test ${D}{verbose} = 1; then
39066 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39067fi
473276a9
VS
39068c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39069status=${D}?
39070if test ${D}{status} != 0; then
39071 exit ${D}{status}
a848cd7e
SC
39072fi
39073
39074#
39075# Link the shared library from the single module created
39076#
473276a9
VS
39077if test ${D}{verbose} = 1; then
39078 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39079fi
473276a9
VS
39080c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39081status=${D}?
39082if test ${D}{status} != 0; then
39083 exit ${D}{status}
a848cd7e
SC
39084fi
39085
39086#
39087# Remove intermediate module
39088#
473276a9 39089rm -f master.${D}${D}.o
a848cd7e
SC
39090
39091exit 0
39092EOF
473276a9 39093
a848cd7e
SC
39094 chmod +x shared-ld-sh
39095
39096 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39097 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39098 SHARED_LD_CXX="$SHARED_LD_CC"
39099 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39100 else
39101 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39102 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39103 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39104 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39105 fi
39106
39107 PIC_FLAG="-dynamic -fPIC"
39108 ;;
39109
39110 *-*-aix* )
39111 if test "x$GCC" != "xyes"; then
39112 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39113set dummy makeC++SharedLib; ac_word=$2
39114echo "$as_me:$LINENO: checking for $ac_word" >&5
39115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39116if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39117 echo $ECHO_N "(cached) $ECHO_C" >&6
39118else
39119 if test -n "$AIX_CXX_LD"; then
39120 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39121else
39122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39123for as_dir in $PATH
39124do
39125 IFS=$as_save_IFS
39126 test -z "$as_dir" && as_dir=.
39127 for ac_exec_ext in '' $ac_executable_extensions; do
39128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39129 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39131 break 2
39132 fi
39133done
39134done
39135
39136 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39137fi
39138fi
39139AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39140if test -n "$AIX_CXX_LD"; then
39141 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39142echo "${ECHO_T}$AIX_CXX_LD" >&6
39143else
39144 echo "$as_me:$LINENO: result: no" >&5
39145echo "${ECHO_T}no" >&6
39146fi
39147
39148 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39149 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39150 fi
39151 ;;
39152
39153 *-*-beos* )
39154 SHARED_LD_CC="${LD} -shared -o"
39155 SHARED_LD_CXX="${LD} -shared -o"
39156 ;;
39157
39158 *-*-irix* )
39159 if test "x$GCC" != "xyes"; then
39160 PIC_FLAG="-KPIC"
39161 fi
39162 ;;
39163
39164 *-*-cygwin* | *-*-mingw32* )
39165 PIC_FLAG=""
39166 ;;
39167
39168 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39169 SHARED_LD_CC="`pwd`/dllar.sh -o"
39170 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39171 PIC_FLAG=""
473276a9
VS
39172
39173D='$'
39174cat <<EOF >dllar.sh
39175#!/bin/sh
39176#
39177# dllar - a tool to build both a .dll and an .a file
39178# from a set of object (.o) files for EMX/OS2.
39179#
39180# Written by Andrew Zabolotny, bit@freya.etu.ru
39181# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39182#
39183# This script will accept a set of files on the command line.
39184# All the public symbols from the .o files will be exported into
39185# a .DEF file, then linker will be run (through gcc) against them to
39186# build a shared library consisting of all given .o files. All libraries
39187# (.a) will be first decompressed into component .o files then act as
39188# described above. You can optionally give a description (-d "description")
39189# which will be put into .DLL. To see the list of accepted options (as well
39190# as command-line format) simply run this program without options. The .DLL
39191# is built to be imported by name (there is no guarantee that new versions
39192# of the library you build will have same ordinals for same symbols).
39193#
39194# dllar is free software; you can redistribute it and/or modify
39195# it under the terms of the GNU General Public License as published by
39196# the Free Software Foundation; either version 2, or (at your option)
39197# any later version.
39198#
39199# dllar is distributed in the hope that it will be useful,
39200# but WITHOUT ANY WARRANTY; without even the implied warranty of
39201# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39202# GNU General Public License for more details.
39203#
39204# You should have received a copy of the GNU General Public License
39205# along with dllar; see the file COPYING. If not, write to the Free
39206# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39207# 02111-1307, USA.
39208
39209# To successfuly run this program you will need:
39210# - Current drive should have LFN support (HPFS, ext2, network, etc)
39211# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39212# - gcc
39213# (used to build the .dll)
39214# - emxexp
39215# (used to create .def file from .o files)
39216# - emximp
39217# (used to create .a file from .def file)
39218# - GNU text utilites (cat, sort, uniq)
39219# used to process emxexp output
39220# - GNU file utilities (mv, rm)
39221# - GNU sed
39222# - lxlite (optional, see flag below)
39223# (used for general .dll cleanup)
39224#
39225
39226flag_USE_LXLITE=1;
39227
39228#
39229# helper functions
39230# basnam, variant of basename, which does _not_ remove the path, _iff_
39231# second argument (suffix to remove) is given
39232basnam(){
39233 case ${D}# in
39234 1)
39235 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39236 ;;
39237 2)
39238 echo ${D}1 | sed 's/'${D}2'${D}//'
39239 ;;
39240 *)
39241 echo "error in basnam ${D}*"
39242 exit 8
39243 ;;
39244 esac
39245}
39246
39247# Cleanup temporary files and output
39248CleanUp() {
39249 cd ${D}curDir
39250 for i in ${D}inputFiles ; do
39251 case ${D}i in
39252 *!)
39253 rm -rf \`basnam ${D}i !\`
39254 ;;
39255 *)
39256 ;;
39257 esac
39258 done
39259
39260 # Kill result in case of failure as there is just to many stupid make/nmake
39261 # things out there which doesn't do this.
2057db16 39262 if [] ${D}# -eq 0 []; then
473276a9
VS
39263 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39264 fi
39265}
39266
39267# Print usage and exit script with rc=1.
39268PrintHelp() {
2057db16
VS
39269 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
39270 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
39271 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
39272 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
39273 echo ' []*.o[] []*.a[]'
473276a9
VS
39274 echo '*> "output_file" should have no extension.'
39275 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39276 echo ' The import library name is derived from this and is set to "name".a,'
39277 echo ' unless overridden by -import'
39278 echo '*> "importlib_name" should have no extension.'
39279 echo ' If it has the .o, or .a extension, it is automatically removed.'
39280 echo ' This name is used as the import library name and may be longer and'
39281 echo ' more descriptive than the DLL name which has to follow the old '
39282 echo ' 8.3 convention of FAT.'
39283 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39284 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39285 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
39286 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
39287 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
39288 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39289 echo ' If the last character of a symbol is "*", all symbols beginning'
39290 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 39291 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39292 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 39293 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 39294 echo ' C runtime DLLs.'
2057db16 39295 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39296 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39297 echo ' unchanged to GCC at the end of command line.'
39298 echo '*> If you create a DLL from a library and you do not specify -o,'
39299 echo ' the basename for DLL and import library will be set to library name,'
39300 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39301 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39302 echo ' library will be renamed into gcc_s.a.'
39303 echo '--------'
39304 echo 'Example:'
39305 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39306 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39307 CleanUp
39308 exit 1
39309}
39310
39311# Execute a command.
39312# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39313# @Uses Whatever CleanUp() uses.
39314doCommand() {
39315 echo "${D}*"
39316 eval ${D}*
39317 rcCmd=${D}?
39318
2057db16 39319 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
39320 echo "command failed, exit code="${D}rcCmd
39321 CleanUp
39322 exit ${D}rcCmd
39323 fi
39324}
39325
39326# main routine
39327# setup globals
39328cmdLine=${D}*
39329outFile=""
39330outimpFile=""
39331inputFiles=""
39332description=""
39333CC=gcc.exe
39334CFLAGS="-s -Zcrtdll"
39335EXTRA_CFLAGS=""
39336EXPORT_BY_ORDINALS=0
39337exclude_symbols=""
39338library_flags=""
39339curDir=\`pwd\`
39340curDirS=curDir
39341case ${D}curDirS in
39342*/)
39343 ;;
39344*)
39345 curDirS=${D}{curDirS}"/"
39346 ;;
39347esac
39348# Parse commandline
39349libsToLink=0
2057db16 39350while [] ${D}1 []; do
473276a9
VS
39351 case ${D}1 in
39352 -ord*)
39353 EXPORT_BY_ORDINALS=1;
39354 ;;
39355 -o*)
39356 shift
39357 outFile=${D}1
39358 ;;
39359 -i*)
39360 shift
39361 outimpFile=${D}1
39362 ;;
39363 -d*)
39364 shift
39365 description=${D}1
39366 ;;
39367 -f*)
39368 shift
39369 CFLAGS=${D}1
39370 ;;
39371 -c*)
39372 shift
39373 CC=${D}1
39374 ;;
39375 -h*)
39376 PrintHelp
39377 ;;
39378 -ex*)
39379 shift
39380 exclude_symbols=${D}{exclude_symbols}${D}1" "
39381 ;;
39382 -libf*)
39383 shift
39384 library_flags=${D}{library_flags}${D}1" "
39385 ;;
39386 -nocrt*)
39387 CFLAGS="-s"
39388 ;;
39389 -nolxl*)
39390 flag_USE_LXLITE=0
39391 ;;
39392 -* | /*)
39393 case ${D}1 in
39394 -L* | -l*)
39395 libsToLink=1
39396 ;;
39397 *)
39398 ;;
39399 esac
39400 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39401 ;;
39402 *)
39403 found=0;
2057db16 39404 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39405 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39406 else
39407 for file in ${D}1 ; do
2057db16 39408 if [] -f ${D}file []; then
473276a9
VS
39409 inputFiles="${D}{inputFiles} ${D}file"
39410 found=1
39411 fi
39412 done
2057db16 39413 if [] ${D}found -eq 0 []; then
473276a9
VS
39414 echo "ERROR: No file(s) found: "${D}1
39415 exit 8
39416 fi
39417 fi
39418 ;;
39419 esac
39420 shift
39421done # iterate cmdline words
39422
39423#
2057db16 39424if [] -z "${D}inputFiles" []; then
473276a9
VS
39425 echo "dllar: no input files"
39426 PrintHelp
39427fi
39428
39429# Now extract all .o files from .a files
39430newInputFiles=""
39431for file in ${D}inputFiles ; do
39432 case ${D}file in
39433 *.a | *.lib)
39434 case ${D}file in
39435 *.a)
39436 suffix=".a"
39437 AR="ar"
39438 ;;
39439 *.lib)
39440 suffix=".lib"
39441 AR="emxomfar"
39442 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39443 ;;
39444 *)
39445 ;;
39446 esac
39447 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39448 mkdir ${D}dirname
2057db16 39449 if [] ${D}? -ne 0 []; then
473276a9
VS
39450 echo "Failed to create subdirectory ./${D}dirname"
39451 CleanUp
39452 exit 8;
39453 fi
39454 # Append '!' to indicate archive
39455 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39456 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39457 cd ${D}curDir
39458 found=0;
39459 for subfile in ${D}dirname/*.o* ; do
2057db16 39460 if [] -f ${D}subfile []; then
473276a9 39461 found=1
2057db16 39462 if [] -s ${D}subfile []; then
473276a9
VS
39463 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39464 newInputFiles="${D}newInputFiles ${D}subfile"
39465 fi
39466 fi
39467 done
2057db16 39468 if [] ${D}found -eq 0 []; then
473276a9
VS
39469 echo "WARNING: there are no files in archive \'${D}file\'"
39470 fi
39471 ;;
39472 *)
39473 newInputFiles="${D}{newInputFiles} ${D}file"
39474 ;;
39475 esac
39476done
39477inputFiles="${D}newInputFiles"
39478
39479# Output filename(s).
39480do_backup=0;
2057db16 39481if [] -z ${D}outFile []; then
473276a9
VS
39482 do_backup=1;
39483 set outFile ${D}inputFiles; outFile=${D}2
39484fi
39485
39486# If it is an archive, remove the '!' and the '_%' suffixes
39487case ${D}outFile in
39488*_%!)
39489 outFile=\`basnam ${D}outFile _%!\`
39490 ;;
39491*)
39492 ;;
39493esac
39494case ${D}outFile in
39495*.dll)
39496 outFile=\`basnam ${D}outFile .dll\`
39497 ;;
39498*.DLL)
39499 outFile=\`basnam ${D}outFile .DLL\`
39500 ;;
39501*.o)
39502 outFile=\`basnam ${D}outFile .o\`
39503 ;;
39504*.obj)
39505 outFile=\`basnam ${D}outFile .obj\`
39506 ;;
39507*.a)
39508 outFile=\`basnam ${D}outFile .a\`
39509 ;;
39510*.lib)
39511 outFile=\`basnam ${D}outFile .lib\`
39512 ;;
39513*)
39514 ;;
39515esac
39516case ${D}outimpFile in
39517*.a)
39518 outimpFile=\`basnam ${D}outimpFile .a\`
39519 ;;
39520*.lib)
39521 outimpFile=\`basnam ${D}outimpFile .lib\`
39522 ;;
39523*)
39524 ;;
39525esac
2057db16 39526if [] -z ${D}outimpFile []; then
473276a9
VS
39527 outimpFile=${D}outFile
39528fi
39529defFile="${D}{outFile}.def"
39530arcFile="${D}{outimpFile}.a"
39531arcFile2="${D}{outimpFile}.lib"
39532dllFile="${D}outFile"
39533# Add suffix to dllFile later, first we need a version to use as
39534# name in .def file.
39535
2057db16
VS
39536if [] ${D}do_backup -ne 0 [] ; then
39537 if [] -f ${D}arcFile [] ; then
473276a9
VS
39538 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39539 fi
2057db16 39540 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39541 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39542 fi
39543fi
39544
39545# Extract public symbols from all the object files.
39546tmpdefFile=${D}{defFile}_%
39547rm -f ${D}tmpdefFile
39548for file in ${D}inputFiles ; do
39549 case ${D}file in
39550 *!)
39551 ;;
39552 *)
39553 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39554 ;;
39555 esac
39556done
39557
39558# Create the def file.
39559rm -f ${D}defFile
39560echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39561dllFile="${D}dllFile.dll"
2057db16 39562if [] -n ${D}description []; then
473276a9
VS
39563 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39564fi
39565echo "EXPORTS" >> ${D}defFile
39566
39567doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39568grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39569
39570# Checks if the export is ok or not.
39571for word in ${D}exclude_symbols; do
39572 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39573 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39574done
39575
39576
2057db16 39577if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39578 sed "=" < ${D}tmpdefFile | \
39579 sed '
39580 N
39581 : loop
2057db16 39582 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39583 t loop
39584 ' > ${D}{tmpdefFile}%
39585 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39586else
39587 rm -f ${D}{tmpdefFile}%
39588fi
39589cat ${D}tmpdefFile >> ${D}defFile
39590rm -f ${D}tmpdefFile
39591
39592# Do linking, create implib, and apply lxlite.
39593gccCmdl="";
39594for file in ${D}inputFiles ; do
39595 case ${D}file in
39596 *!)
39597 ;;
39598 *)
39599 gccCmdl="${D}gccCmdl ${D}file"
39600 ;;
39601 esac
39602done
39603doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39604touch "${D}{outFile}.dll"
39605
39606doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39607if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39608 add_flags="";
2057db16 39609 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39610 add_flags="-ynd"
39611 fi
39612 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39613fi
39614doCommand "emxomf -s -l ${D}arcFile"
39615
39616# Successful exit.
39617CleanUp 1
39618exit 0
39619EOF
39620
39621 chmod +x dllar.sh
a848cd7e
SC
39622 ;;
39623
39624 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39625 *-*-sunos4* | \
39626 *-*-osf* | \
39627 *-*-dgux5* | \
39628 *-*-sysv5* )
39629 ;;
39630
39631 *)
39632 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39633echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39634 { (exit 1); exit 1; }; }
39635 esac
39636
2057db16
VS
39637 if test "x$PIC_FLAG" != "x" ; then
39638 PIC_FLAG="$PIC_FLAG -DPIC"
39639 fi
39640
a848cd7e
SC
39641 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39642 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39643 fi
39644 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39645 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39646 fi
39647
39648
39649
39650
39651
39652
39653
39654
39655 USE_SOVERSION=0
39656 USE_SOVERLINUX=0
39657 USE_SOVERSOLARIS=0
39658 USE_SOSYMLINKS=0
39659 USE_MACVERSION=0
39660 SONAME_FLAG=
39661
39662 case "${BAKEFILE_HOST}" in
39663 *-*-linux* )
39664 SONAME_FLAG="-Wl,-soname,"
39665 USE_SOVERSION=1
39666 USE_SOVERLINUX=1
39667 USE_SOSYMLINKS=1
39668 ;;
39669
39670 *-*-solaris2* )
39671 SONAME_FLAG="-h "
39672 USE_SOVERSION=1
39673 USE_SOVERSOLARIS=1
39674 USE_SOSYMLINKS=1
39675 ;;
39676
39677 *-*-darwin* )
39678 USE_MACVERSION=1
39679 USE_SOVERSION=1
39680 USE_SOSYMLINKS=1
39681 ;;
39682 esac
39683
39684
39685
39686
39687
39688
39689
39690
39691
39692 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39693echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39694 DEPS_TRACKING=0
39695
39696 if test "x$GCC" = "xyes"; then
39697 DEPSMODE=gcc
39698 DEPS_TRACKING=1
39699 case "${BAKEFILE_HOST}" in
39700 powerpc-*-darwin* )
39701 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39702 ;;
39703 * )
39704 DEPSFLAG_GCC="-MMD"
39705 ;;
39706 esac
39707 echo "$as_me:$LINENO: result: gcc" >&5
39708echo "${ECHO_T}gcc" >&6
39709 else
39710 echo "$as_me:$LINENO: result: none" >&5
39711echo "${ECHO_T}none" >&6
39712 fi
39713
39714 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39715
39716D='$'
39717cat <<EOF >bk-deps
a848cd7e
SC
39718#!/bin/sh
39719
39720# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39721# script. It is used to track C/C++ files dependencies in portable way.
39722#
39723# Permission is given to use this file in any way.
39724
473276a9 39725DEPSMODE=${DEPSMODE}
a848cd7e 39726DEPSDIR=.deps
473276a9 39727DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39728
473276a9 39729mkdir -p ${D}DEPSDIR
a848cd7e 39730
473276a9
VS
39731if test ${D}DEPSMODE = gcc ; then
39732 ${D}* ${D}{DEPSFLAG_GCC}
39733 status=${D}?
39734 if test ${D}{status} != 0 ; then
39735 exit ${D}{status}
a848cd7e
SC
39736 fi
39737 # move created file to the location we want it in:
473276a9
VS
39738 while test ${D}# -gt 0; do
39739 case "${D}1" in
a848cd7e
SC
39740 -o )
39741 shift
473276a9 39742 objfile=${D}1
a848cd7e
SC
39743 ;;
39744 -* )
39745 ;;
39746 * )
473276a9 39747 srcfile=${D}1
a848cd7e
SC
39748 ;;
39749 esac
39750 shift
39751 done
473276a9
VS
39752 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39753 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39754 if test -f ${D}depfile ; then
39755 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39756 rm -f ${D}depfile
a848cd7e 39757 else
473276a9
VS
39758 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39759 if test -f ${D}depfile ; then
39760 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39761 rm -f ${D}depfile
a848cd7e
SC
39762 fi
39763 fi
39764 exit 0
39765else
473276a9
VS
39766 ${D}*
39767 exit ${D}?
a848cd7e
SC
39768fi
39769EOF
473276a9 39770
a848cd7e
SC
39771 chmod +x bk-deps
39772 fi
39773
39774
39775
39776
39777 RESCOMP=
39778 SETFILE=
39779
39780 case ${BAKEFILE_HOST} in
39781 *-*-cygwin* | *-*-mingw32* )
39782 if test "$build" != "$host" ; then
39783 RESCOMP=$host_alias-windres
39784 else
39785 # Extract the first word of "windres", so it can be a program name with args.
39786set dummy windres; ac_word=$2
39787echo "$as_me:$LINENO: checking for $ac_word" >&5
39788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39789if test "${ac_cv_prog_RESCOMP+set}" = set; then
39790 echo $ECHO_N "(cached) $ECHO_C" >&6
39791else
39792 if test -n "$RESCOMP"; then
39793 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39794else
39795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39796for as_dir in $PATH
39797do
39798 IFS=$as_save_IFS
39799 test -z "$as_dir" && as_dir=.
39800 for ac_exec_ext in '' $ac_executable_extensions; do
39801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39802 ac_cv_prog_RESCOMP="windres"
39803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39804 break 2
39805 fi
39806done
39807done
39808
39809 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39810fi
39811fi
39812RESCOMP=$ac_cv_prog_RESCOMP
39813if test -n "$RESCOMP"; then
39814 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39815echo "${ECHO_T}$RESCOMP" >&6
39816else
39817 echo "$as_me:$LINENO: result: no" >&5
39818echo "${ECHO_T}no" >&6
39819fi
39820
39821 fi
39822 ;;
39823
39824 *-*-darwin* )
39825 # Extract the first word of "Rez", so it can be a program name with args.
39826set dummy Rez; ac_word=$2
39827echo "$as_me:$LINENO: checking for $ac_word" >&5
39828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39829if test "${ac_cv_prog_RESCOMP+set}" = set; then
39830 echo $ECHO_N "(cached) $ECHO_C" >&6
39831else
39832 if test -n "$RESCOMP"; then
39833 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39834else
39835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39836for as_dir in $PATH
39837do
39838 IFS=$as_save_IFS
39839 test -z "$as_dir" && as_dir=.
39840 for ac_exec_ext in '' $ac_executable_extensions; do
39841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39842 ac_cv_prog_RESCOMP="Rez"
39843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39844 break 2
39845 fi
39846done
39847done
39848
39849 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39850fi
39851fi
39852RESCOMP=$ac_cv_prog_RESCOMP
39853if test -n "$RESCOMP"; then
39854 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39855echo "${ECHO_T}$RESCOMP" >&6
39856else
39857 echo "$as_me:$LINENO: result: no" >&5
39858echo "${ECHO_T}no" >&6
39859fi
39860
39861 # Extract the first word of "SetFile", so it can be a program name with args.
39862set dummy SetFile; ac_word=$2
39863echo "$as_me:$LINENO: checking for $ac_word" >&5
39864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39865if test "${ac_cv_prog_SETFILE+set}" = set; then
39866 echo $ECHO_N "(cached) $ECHO_C" >&6
39867else
39868 if test -n "$SETFILE"; then
39869 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39870else
39871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39872for as_dir in $PATH
39873do
39874 IFS=$as_save_IFS
39875 test -z "$as_dir" && as_dir=.
39876 for ac_exec_ext in '' $ac_executable_extensions; do
39877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39878 ac_cv_prog_SETFILE="SetFile"
39879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39880 break 2
39881 fi
39882done
39883done
39884
39885 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39886fi
39887fi
39888SETFILE=$ac_cv_prog_SETFILE
39889if test -n "$SETFILE"; then
39890 echo "$as_me:$LINENO: result: $SETFILE" >&5
39891echo "${ECHO_T}$SETFILE" >&6
39892else
39893 echo "$as_me:$LINENO: result: no" >&5
39894echo "${ECHO_T}no" >&6
39895fi
39896
39897 ;;
39898 esac
39899
39900
39901
39902
39903
2057db16 39904 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39905
dcc1b6ad 39906
a49baeab 39907
9f45f08e 39908BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39909
646b6ec1 39910
74b84332 39911
a848cd7e
SC
39912 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39913if test "${enable_precomp_headers+set}" = set; then
39914 enableval="$enable_precomp_headers"
39915 bk_use_pch="$enableval"
39916fi;
39917
39918 GCC_PCH=0
39919
39920 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39921 if test "x$GCC" = "xyes"; then
39922 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39923echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39924 cat >conftest.$ac_ext <<_ACEOF
39925/* confdefs.h. */
39926_ACEOF
39927cat confdefs.h >>conftest.$ac_ext
39928cat >>conftest.$ac_ext <<_ACEOF
39929/* end confdefs.h. */
39930
39931int
39932main ()
39933{
39934
39935 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39936 #error "no pch support"
39937 #endif
39938 #if (__GNUC__ < 3)
39939 #error "no pch support"
39940 #endif
39941 #if (__GNUC__ == 3) && \
39942 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39943 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39944 #error "no pch support"
39945 #endif
39946
39947 ;
39948 return 0;
39949}
39950_ACEOF
39951rm -f conftest.$ac_objext
39952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39953 (eval $ac_compile) 2>conftest.er1
a848cd7e 39954 ac_status=$?
ac1cb8d3
VS
39955 grep -v '^ *+' conftest.er1 >conftest.err
39956 rm -f conftest.er1
39957 cat conftest.err >&5
a848cd7e
SC
39958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959 (exit $ac_status); } &&
d51253e8 39960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39962 (eval $ac_try) 2>&5
39963 ac_status=$?
39964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965 (exit $ac_status); }; } &&
39966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39968 (eval $ac_try) 2>&5
39969 ac_status=$?
39970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971 (exit $ac_status); }; }; then
39972
39973 echo "$as_me:$LINENO: result: yes" >&5
39974echo "${ECHO_T}yes" >&6
a848cd7e
SC
39975 GCC_PCH=1
39976
39977else
39978 echo "$as_me: failed program was:" >&5
39979sed 's/^/| /' conftest.$ac_ext >&5
39980
39981
39982 echo "$as_me:$LINENO: result: no" >&5
39983echo "${ECHO_T}no" >&6
39984
39985fi
ac1cb8d3 39986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39987 if test $GCC_PCH = 1 ; then
39988 cat <<EOF >bk-make-pch
39989#!/bin/sh
39990
39991# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39992# script. It is used to generated precompiled headers.
39993#
39994# Permission is given to use this file in any way.
39995
39996outfile="\${1}"
39997header="\${2}"
39998shift
39999shift
40000
40001compiler=
40002headerfile=
40003while test \${#} -gt 0; do
40004 case "\${1}" in
40005 -I* )
40006 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40007 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40008 headerfile="\${incdir}/\${header}"
40009 fi
40010 ;;
40011 esac
40012 compiler="\${compiler} \${1}"
40013 shift
40014done
40015
40016if test "x\${headerfile}" = "x" ; then
40017 echo "error: can't find header \${header} in include paths" >2
40018else
40019 if test -f \${outfile} ; then
40020 rm -f \${outfile}
40021 else
40022 mkdir -p \`dirname \${outfile}\`
40023 fi
40024 depsfile=".deps/\`basename \${outfile}\`.d"
40025 mkdir -p .deps
40026 # can do this because gcc is >= 3.4:
40027 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40028 exit \${?}
40029fi
40030EOF
40031 chmod +x bk-make-pch
40032 fi
40033 fi
40034 fi
40035
40036
40037
40038
40039
dcc1b6ad
VS
40040
40041
40042 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40043if test "${enable_precomp_headers+set}" = set; then
40044 enableval="$enable_precomp_headers"
40045 bk_use_pch="$enableval"
40046fi;
40047
40048 GCC_PCH=0
40049
40050 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40051 if test "x$GCC" = "xyes"; then
40052 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40053echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40054 cat >conftest.$ac_ext <<_ACEOF
40055/* confdefs.h. */
40056_ACEOF
40057cat confdefs.h >>conftest.$ac_ext
40058cat >>conftest.$ac_ext <<_ACEOF
40059/* end confdefs.h. */
40060
40061int
40062main ()
40063{
40064
40065 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40066 #error "no pch support"
40067 #endif
40068 #if (__GNUC__ < 3)
40069 #error "no pch support"
40070 #endif
40071 #if (__GNUC__ == 3) && \
40072 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40073 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40074 #error "no pch support"
40075 #endif
40076
40077 ;
40078 return 0;
40079}
40080_ACEOF
40081rm -f conftest.$ac_objext
40082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40083 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40084 ac_status=$?
ac1cb8d3
VS
40085 grep -v '^ *+' conftest.er1 >conftest.err
40086 rm -f conftest.er1
40087 cat conftest.err >&5
dcc1b6ad
VS
40088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089 (exit $ac_status); } &&
d51253e8 40090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40092 (eval $ac_try) 2>&5
40093 ac_status=$?
40094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40095 (exit $ac_status); }; } &&
40096 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40098 (eval $ac_try) 2>&5
40099 ac_status=$?
40100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40101 (exit $ac_status); }; }; then
40102
40103 echo "$as_me:$LINENO: result: yes" >&5
40104echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
40105 GCC_PCH=1
40106
40107else
40108 echo "$as_me: failed program was:" >&5
40109sed 's/^/| /' conftest.$ac_ext >&5
40110
40111
40112 echo "$as_me:$LINENO: result: no" >&5
40113echo "${ECHO_T}no" >&6
40114
40115fi
ac1cb8d3 40116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
40117 if test $GCC_PCH = 1 ; then
40118 cat <<EOF >bk-make-pch
40119#!/bin/sh
40120
40121# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40122# script. It is used to generated precompiled headers.
40123#
40124# Permission is given to use this file in any way.
40125
40126outfile="\${1}"
40127header="\${2}"
40128shift
40129shift
40130
40131compiler=
40132headerfile=
40133while test \${#} -gt 0; do
40134 case "\${1}" in
40135 -I* )
40136 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40137 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40138 headerfile="\${incdir}/\${header}"
40139 fi
40140 ;;
40141 esac
40142 compiler="\${compiler} \${1}"
40143 shift
40144done
40145
40146if test "x\${headerfile}" = "x" ; then
40147 echo "error: can't find header \${header} in include paths" >2
40148else
40149 if test -f \${outfile} ; then
40150 rm -f \${outfile}
40151 else
40152 mkdir -p \`dirname \${outfile}\`
40153 fi
40154 depsfile=".deps/\`basename \${outfile}\`.d"
40155 mkdir -p .deps
40156 # can do this because gcc is >= 3.4:
40157 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40158 exit \${?}
40159fi
40160EOF
40161 chmod +x bk-make-pch
40162 fi
40163 fi
40164 fi
40165
40166
40167
a848cd7e
SC
40168 COND_BUILD_DEBUG="#"
40169 if test "x$BUILD" = "xdebug" ; then
40170 COND_BUILD_DEBUG=""
40171 fi
40172
40173 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40174 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40175 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40176 fi
40177
40178 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40179 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40180 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40181 fi
40182
40183 COND_BUILD_DEBUG_UNICODE_0="#"
40184 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40185 COND_BUILD_DEBUG_UNICODE_0=""
40186 fi
40187
40188 COND_BUILD_DEBUG_UNICODE_1="#"
40189 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40190 COND_BUILD_DEBUG_UNICODE_1=""
40191 fi
40192
40193 COND_BUILD_RELEASE="#"
40194 if test "x$BUILD" = "xrelease" ; then
40195 COND_BUILD_RELEASE=""
40196 fi
40197
40198 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40199 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40200 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40201 fi
40202
40203 COND_BUILD_RELEASE_UNICODE_0="#"
40204 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40205 COND_BUILD_RELEASE_UNICODE_0=""
40206 fi
40207
40208 COND_BUILD_RELEASE_UNICODE_1="#"
40209 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40210 COND_BUILD_RELEASE_UNICODE_1=""
40211 fi
40212
40213 COND_DEBUG_FLAG_1="#"
40214 if test "x$DEBUG_FLAG" = "x1" ; then
40215 COND_DEBUG_FLAG_1=""
40216 fi
40217
40218 COND_DEBUG_INFO_0="#"
40219 if test "x$DEBUG_INFO" = "x0" ; then
40220 COND_DEBUG_INFO_0=""
40221 fi
40222
40223 COND_DEBUG_INFO_1="#"
40224 if test "x$DEBUG_INFO" = "x1" ; then
40225 COND_DEBUG_INFO_1=""
40226 fi
40227
40228 COND_DEPS_TRACKING_0="#"
40229 if test "x$DEPS_TRACKING" = "x0" ; then
40230 COND_DEPS_TRACKING_0=""
40231 fi
40232
40233 COND_DEPS_TRACKING_1="#"
40234 if test "x$DEPS_TRACKING" = "x1" ; then
40235 COND_DEPS_TRACKING_1=""
40236 fi
40237
40238 COND_GCC_PCH_1="#"
40239 if test "x$GCC_PCH" = "x1" ; then
40240 COND_GCC_PCH_1=""
40241 fi
40242
40243 COND_MONOLITHIC_0="#"
40244 if test "x$MONOLITHIC" = "x0" ; then
40245 COND_MONOLITHIC_0=""
40246 fi
40247
40248 COND_MONOLITHIC_0_SHARED_0="#"
40249 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40250 COND_MONOLITHIC_0_SHARED_0=""
40251 fi
40252
40253 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40254 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40255 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40256 fi
40257
40258 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40259 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40260 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40261 fi
40262
40263 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40264 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40265 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40266 fi
40267
40268 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40269 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40270 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40271 fi
40272
ceec2216
RL
40273 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40274 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40275 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40276 fi
40277
a848cd7e
SC
40278 COND_MONOLITHIC_0_SHARED_1="#"
40279 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40280 COND_MONOLITHIC_0_SHARED_1=""
40281 fi
40282
40283 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40284 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40285 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40286 fi
40287
40288 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40289 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40290 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40291 fi
40292
40293 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40294 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40295 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40296 fi
40297
40298 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40299 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40300 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40301 fi
40302
ceec2216
RL
40303 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40304 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40305 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40306 fi
40307
a848cd7e
SC
40308 COND_MONOLITHIC_0_USE_ODBC_1="#"
40309 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40310 COND_MONOLITHIC_0_USE_ODBC_1=""
40311 fi
40312
40313 COND_MONOLITHIC_1="#"
40314 if test "x$MONOLITHIC" = "x1" ; then
40315 COND_MONOLITHIC_1=""
40316 fi
40317
40318 COND_MONOLITHIC_1_SHARED_0="#"
40319 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40320 COND_MONOLITHIC_1_SHARED_0=""
40321 fi
40322
40323 COND_MONOLITHIC_1_SHARED_1="#"
40324 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40325 COND_MONOLITHIC_1_SHARED_1=""
40326 fi
40327
40328 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40329 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40330 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40331 fi
40332
40333 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40334 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40335 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40336 fi
40337
40338 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40339 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40340 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40341 fi
40342
40343 COND_PLATFORM_MACOSX_1="#"
40344 if test "x$PLATFORM_MACOSX" = "x1" ; then
40345 COND_PLATFORM_MACOSX_1=""
40346 fi
40347
a30f955f
VS
40348 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40349 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40350 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40351 fi
40352
a848cd7e
SC
40353 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40354 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40355 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40356 fi
40357
40358 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40359 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40360 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40361 fi
40362
40363 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40364 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40365 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40366 fi
40367
ebee3cd0
VS
40368 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40369 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40370 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40371 fi
40372
40373 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40374 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40375 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40376 fi
40377
a848cd7e
SC
40378 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40379 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40380 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40381 fi
40382
40383 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40384 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40385 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40386 fi
40387
b48a2016
DE
40388 COND_PLATFORM_MACOS_1="#"
40389 if test "x$PLATFORM_MACOS" = "x1" ; then
40390 COND_PLATFORM_MACOS_1=""
40391 fi
40392
a848cd7e
SC
40393 COND_PLATFORM_MAC_1="#"
40394 if test "x$PLATFORM_MAC" = "x1" ; then
40395 COND_PLATFORM_MAC_1=""
40396 fi
40397
40398 COND_PLATFORM_OS2_1="#"
40399 if test "x$PLATFORM_OS2" = "x1" ; then
40400 COND_PLATFORM_OS2_1=""
40401 fi
40402
40403 COND_PLATFORM_UNIX_0="#"
40404 if test "x$PLATFORM_UNIX" = "x0" ; then
40405 COND_PLATFORM_UNIX_0=""
40406 fi
40407
40408 COND_PLATFORM_UNIX_1="#"
40409 if test "x$PLATFORM_UNIX" = "x1" ; then
40410 COND_PLATFORM_UNIX_1=""
40411 fi
40412
40413 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40414 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40415 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40416 fi
40417
40418 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40419 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40420 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40421 fi
40422
40423 COND_PLATFORM_WIN32_0="#"
40424 if test "x$PLATFORM_WIN32" = "x0" ; then
40425 COND_PLATFORM_WIN32_0=""
40426 fi
40427
40428 COND_PLATFORM_WIN32_1="#"
40429 if test "x$PLATFORM_WIN32" = "x1" ; then
40430 COND_PLATFORM_WIN32_1=""
40431 fi
40432
40433 COND_SHARED_0="#"
40434 if test "x$SHARED" = "x0" ; then
40435 COND_SHARED_0=""
40436 fi
40437
ceec2216
RL
40438 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40439 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40440 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40441 fi
40442
40443 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40444 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40445 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40446 fi
40447
40448 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40449 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40450 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40451 fi
40452
a848cd7e
SC
40453 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40454 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40455 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40456 fi
40457
40458 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40459 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40460 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40461 fi
40462
40463 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40464 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40465 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40466 fi
40467
40468 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40469 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40470 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40471 fi
40472
40473 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40474 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40475 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40476 fi
40477
40478 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40479 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40480 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40481 fi
40482
40483 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40484 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40485 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40486 fi
40487
40488 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40489 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40490 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40491 fi
40492
40493 COND_SHARED_1="#"
40494 if test "x$SHARED" = "x1" ; then
40495 COND_SHARED_1=""
40496 fi
40497
40498 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40499 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40500 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40501 fi
40502
a30f955f
VS
40503 COND_TOOLKIT_="#"
40504 if test "x$TOOLKIT" = "x" ; then
40505 COND_TOOLKIT_=""
40506 fi
40507
a848cd7e
SC
40508 COND_TOOLKIT_COCOA="#"
40509 if test "x$TOOLKIT" = "xCOCOA" ; then
40510 COND_TOOLKIT_COCOA=""
40511 fi
40512
a49baeab
DE
40513 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40514 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40515 COND_TOOLKIT_COCOA_USE_GUI_1=""
40516 fi
40517
a848cd7e
SC
40518 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40519 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40520 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40521 fi
40522
40523 COND_TOOLKIT_GTK="#"
40524 if test "x$TOOLKIT" = "xGTK" ; then
40525 COND_TOOLKIT_GTK=""
40526 fi
40527
40528 COND_TOOLKIT_GTK_USE_GUI_1="#"
40529 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40530 COND_TOOLKIT_GTK_USE_GUI_1=""
40531 fi
40532
40533 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40534 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40535 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40536 fi
40537
40538 COND_TOOLKIT_MAC="#"
40539 if test "x$TOOLKIT" = "xMAC" ; then
40540 COND_TOOLKIT_MAC=""
40541 fi
40542
40543 COND_TOOLKIT_MAC_USE_GUI_1="#"
40544 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40545 COND_TOOLKIT_MAC_USE_GUI_1=""
40546 fi
40547
40548 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40549 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40550 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40551 fi
40552
40553 COND_TOOLKIT_MGL="#"
40554 if test "x$TOOLKIT" = "xMGL" ; then
40555 COND_TOOLKIT_MGL=""
40556 fi
40557
40558 COND_TOOLKIT_MGL_USE_GUI_1="#"
40559 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40560 COND_TOOLKIT_MGL_USE_GUI_1=""
40561 fi
40562
40563 COND_TOOLKIT_MOTIF="#"
40564 if test "x$TOOLKIT" = "xMOTIF" ; then
40565 COND_TOOLKIT_MOTIF=""
40566 fi
40567
40568 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40569 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40570 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40571 fi
40572
40573 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40574 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40575 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40576 fi
40577
40578 COND_TOOLKIT_MSW="#"
40579 if test "x$TOOLKIT" = "xMSW" ; then
40580 COND_TOOLKIT_MSW=""
40581 fi
40582
40583 COND_TOOLKIT_MSW_USE_GUI_1="#"
40584 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40585 COND_TOOLKIT_MSW_USE_GUI_1=""
40586 fi
40587
40588 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40589 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40590 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40591 fi
40592
40593 COND_TOOLKIT_PM="#"
40594 if test "x$TOOLKIT" = "xPM" ; then
40595 COND_TOOLKIT_PM=""
40596 fi
40597
40598 COND_TOOLKIT_PM_USE_GUI_1="#"
40599 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40600 COND_TOOLKIT_PM_USE_GUI_1=""
40601 fi
40602
40603 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40604 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40605 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40606 fi
40607
3fd9c298
DE
40608 COND_TOOLKIT_WINCE="#"
40609 if test "x$TOOLKIT" = "xWINCE" ; then
40610 COND_TOOLKIT_WINCE=""
40611 fi
40612
40613 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40614 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40615 COND_TOOLKIT_WINCE_USE_GUI_1=""
40616 fi
40617
40618 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40619 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40620 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40621 fi
40622
a848cd7e
SC
40623 COND_TOOLKIT_X11="#"
40624 if test "x$TOOLKIT" = "xX11" ; then
40625 COND_TOOLKIT_X11=""
40626 fi
40627
40628 COND_TOOLKIT_X11_USE_GUI_1="#"
40629 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40630 COND_TOOLKIT_X11_USE_GUI_1=""
40631 fi
40632
40633 COND_UNICODE_1="#"
40634 if test "x$UNICODE" = "x1" ; then
40635 COND_UNICODE_1=""
40636 fi
40637
40638 COND_USE_EXCEPTIONS_0="#"
40639 if test "x$USE_EXCEPTIONS" = "x0" ; then
40640 COND_USE_EXCEPTIONS_0=""
40641 fi
40642
40643 COND_USE_EXCEPTIONS_1="#"
40644 if test "x$USE_EXCEPTIONS" = "x1" ; then
40645 COND_USE_EXCEPTIONS_1=""
40646 fi
40647
40648 COND_USE_GUI_0="#"
40649 if test "x$USE_GUI" = "x0" ; then
40650 COND_USE_GUI_0=""
40651 fi
40652
40653 COND_USE_GUI_1="#"
40654 if test "x$USE_GUI" = "x1" ; then
40655 COND_USE_GUI_1=""
40656 fi
40657
40658 COND_USE_GUI_1_WXUNIV_0="#"
40659 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40660 COND_USE_GUI_1_WXUNIV_0=""
40661 fi
40662
40663 COND_USE_GUI_1_WXUNIV_1="#"
40664 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40665 COND_USE_GUI_1_WXUNIV_1=""
40666 fi
40667
40668 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40669 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40670 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40671 fi
40672
40673 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40674 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40675 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40676 fi
40677
40678 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40679 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40680 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40681 fi
40682
ceec2216
RL
40683 COND_USE_ODBC_1="#"
40684 if test "x$USE_ODBC" = "x1" ; then
40685 COND_USE_ODBC_1=""
40686 fi
40687
ffa0583f
RL
40688 COND_USE_OPENGL_1="#"
40689 if test "x$USE_OPENGL" = "x1" ; then
40690 COND_USE_OPENGL_1=""
40691 fi
40692
a848cd7e
SC
40693 COND_USE_PLUGINS_0="#"
40694 if test "x$USE_PLUGINS" = "x0" ; then
40695 COND_USE_PLUGINS_0=""
40696 fi
40697
40698 COND_USE_SOSYMLINKS_1="#"
40699 if test "x$USE_SOSYMLINKS" = "x1" ; then
40700 COND_USE_SOSYMLINKS_1=""
40701 fi
40702
40703 COND_USE_SOVERLINUX_1="#"
40704 if test "x$USE_SOVERLINUX" = "x1" ; then
40705 COND_USE_SOVERLINUX_1=""
40706 fi
40707
40708 COND_USE_SOVERSION_0="#"
40709 if test "x$USE_SOVERSION" = "x0" ; then
40710 COND_USE_SOVERSION_0=""
40711 fi
40712
40713 COND_USE_SOVERSOLARIS_1="#"
40714 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40715 COND_USE_SOVERSOLARIS_1=""
40716 fi
40717
a13a7f89
RL
40718 COND_USE_XRC_1="#"
40719 if test "x$USE_XRC" = "x1" ; then
40720 COND_USE_XRC_1=""
40721 fi
40722
a848cd7e
SC
40723 COND_WITH_PLUGIN_SDL_1="#"
40724 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40725 COND_WITH_PLUGIN_SDL_1=""
40726 fi
40727
a848cd7e
SC
40728 COND_WXUNIV_1="#"
40729 if test "x$WXUNIV" = "x1" ; then
40730 COND_WXUNIV_1=""
40731 fi
40732
40733 COND_WXUSE_EXPAT_BUILTIN="#"
40734 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40735 COND_WXUSE_EXPAT_BUILTIN=""
40736 fi
40737
40738 COND_WXUSE_LIBJPEG_BUILTIN="#"
40739 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40740 COND_WXUSE_LIBJPEG_BUILTIN=""
40741 fi
40742
40743 COND_WXUSE_LIBPNG_BUILTIN="#"
40744 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40745 COND_WXUSE_LIBPNG_BUILTIN=""
40746 fi
40747
40748 COND_WXUSE_LIBTIFF_BUILTIN="#"
40749 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40750 COND_WXUSE_LIBTIFF_BUILTIN=""
40751 fi
40752
40753 COND_WXUSE_ODBC_BUILTIN="#"
40754 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40755 COND_WXUSE_ODBC_BUILTIN=""
40756 fi
40757
40758 COND_WXUSE_REGEX_BUILTIN="#"
40759 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40760 COND_WXUSE_REGEX_BUILTIN=""
40761 fi
40762
40763 COND_WXUSE_ZLIB_BUILTIN="#"
40764 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40765 COND_WXUSE_ZLIB_BUILTIN=""
40766 fi
40767
dcc1b6ad
VS
40768 COND_BUILD_DEBUG="#"
40769 if test "x$BUILD" = "xdebug" ; then
40770 COND_BUILD_DEBUG=""
40771 fi
40772
40773 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40774 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40775 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40776 fi
40777
40778 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40779 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40780 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40781 fi
40782
40783 COND_BUILD_DEBUG_UNICODE_0="#"
40784 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40785 COND_BUILD_DEBUG_UNICODE_0=""
40786 fi
40787
40788 COND_BUILD_DEBUG_UNICODE_1="#"
40789 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40790 COND_BUILD_DEBUG_UNICODE_1=""
40791 fi
40792
40793 COND_BUILD_RELEASE="#"
40794 if test "x$BUILD" = "xrelease" ; then
40795 COND_BUILD_RELEASE=""
40796 fi
40797
40798 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40799 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40800 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40801 fi
40802
40803 COND_BUILD_RELEASE_UNICODE_0="#"
40804 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40805 COND_BUILD_RELEASE_UNICODE_0=""
40806 fi
40807
40808 COND_BUILD_RELEASE_UNICODE_1="#"
40809 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40810 COND_BUILD_RELEASE_UNICODE_1=""
40811 fi
40812
40813 COND_DEBUG_FLAG_1="#"
40814 if test "x$DEBUG_FLAG" = "x1" ; then
40815 COND_DEBUG_FLAG_1=""
40816 fi
40817
40818 COND_DEBUG_INFO_0="#"
40819 if test "x$DEBUG_INFO" = "x0" ; then
40820 COND_DEBUG_INFO_0=""
40821 fi
40822
40823 COND_DEBUG_INFO_1="#"
40824 if test "x$DEBUG_INFO" = "x1" ; then
40825 COND_DEBUG_INFO_1=""
40826 fi
40827
40828 COND_DEPS_TRACKING_0="#"
40829 if test "x$DEPS_TRACKING" = "x0" ; then
40830 COND_DEPS_TRACKING_0=""
40831 fi
40832
40833 COND_DEPS_TRACKING_1="#"
40834 if test "x$DEPS_TRACKING" = "x1" ; then
40835 COND_DEPS_TRACKING_1=""
40836 fi
40837
40838 COND_GCC_PCH_1="#"
40839 if test "x$GCC_PCH" = "x1" ; then
40840 COND_GCC_PCH_1=""
40841 fi
40842
40843 COND_MONOLITHIC_0="#"
40844 if test "x$MONOLITHIC" = "x0" ; then
40845 COND_MONOLITHIC_0=""
40846 fi
40847
40848 COND_MONOLITHIC_0_SHARED_0="#"
40849 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40850 COND_MONOLITHIC_0_SHARED_0=""
40851 fi
40852
40853 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40854 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40855 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40856 fi
40857
40858 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40859 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40860 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40861 fi
40862
40863 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40864 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40865 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40866 fi
40867
40868 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40869 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40870 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40871 fi
40872
9a8f0513
VS
40873 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40874 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40875 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40876 fi
40877
dcc1b6ad
VS
40878 COND_MONOLITHIC_0_SHARED_1="#"
40879 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40880 COND_MONOLITHIC_0_SHARED_1=""
40881 fi
40882
40883 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40884 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40885 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40886 fi
40887
40888 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40889 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40890 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40891 fi
40892
40893 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40894 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40895 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40896 fi
40897
40898 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40899 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40900 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40901 fi
40902
9a8f0513
VS
40903 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40904 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40905 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40906 fi
40907
dcc1b6ad
VS
40908 COND_MONOLITHIC_0_USE_ODBC_1="#"
40909 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40910 COND_MONOLITHIC_0_USE_ODBC_1=""
40911 fi
40912
40913 COND_MONOLITHIC_1="#"
40914 if test "x$MONOLITHIC" = "x1" ; then
40915 COND_MONOLITHIC_1=""
40916 fi
40917
40918 COND_MONOLITHIC_1_SHARED_0="#"
40919 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40920 COND_MONOLITHIC_1_SHARED_0=""
40921 fi
40922
40923 COND_MONOLITHIC_1_SHARED_1="#"
40924 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40925 COND_MONOLITHIC_1_SHARED_1=""
40926 fi
40927
40928 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40929 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40930 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40931 fi
40932
40933 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40934 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40935 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40936 fi
40937
40938 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40939 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40940 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40941 fi
40942
40943 COND_PLATFORM_MACOSX_1="#"
40944 if test "x$PLATFORM_MACOSX" = "x1" ; then
40945 COND_PLATFORM_MACOSX_1=""
40946 fi
40947
40948 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40949 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40950 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40951 fi
40952
40953 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40954 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40955 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40956 fi
40957
40958 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40959 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40960 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40961 fi
40962
9a8f0513
VS
40963 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40964 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40965 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40966 fi
40967
40968 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40969 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40970 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40971 fi
40972
dcc1b6ad
VS
40973 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40974 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40975 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40976 fi
40977
40978 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40979 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40980 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40981 fi
40982
40983 COND_PLATFORM_MAC_1="#"
40984 if test "x$PLATFORM_MAC" = "x1" ; then
40985 COND_PLATFORM_MAC_1=""
40986 fi
40987
40988 COND_PLATFORM_OS2_1="#"
40989 if test "x$PLATFORM_OS2" = "x1" ; then
40990 COND_PLATFORM_OS2_1=""
40991 fi
40992
40993 COND_PLATFORM_UNIX_0="#"
40994 if test "x$PLATFORM_UNIX" = "x0" ; then
40995 COND_PLATFORM_UNIX_0=""
40996 fi
40997
40998 COND_PLATFORM_UNIX_1="#"
40999 if test "x$PLATFORM_UNIX" = "x1" ; then
41000 COND_PLATFORM_UNIX_1=""
41001 fi
41002
41003 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41004 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41005 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41006 fi
41007
41008 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41009 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41010 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41011 fi
41012
41013 COND_PLATFORM_WIN32_0="#"
41014 if test "x$PLATFORM_WIN32" = "x0" ; then
41015 COND_PLATFORM_WIN32_0=""
41016 fi
41017
41018 COND_PLATFORM_WIN32_1="#"
41019 if test "x$PLATFORM_WIN32" = "x1" ; then
41020 COND_PLATFORM_WIN32_1=""
41021 fi
41022
41023 COND_SHARED_0="#"
41024 if test "x$SHARED" = "x0" ; then
41025 COND_SHARED_0=""
41026 fi
41027
41028 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41029 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41030 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41031 fi
41032
41033 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41034 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41035 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41036 fi
41037
41038 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41039 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41040 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41041 fi
41042
41043 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41044 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41045 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41046 fi
41047
41048 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41049 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41050 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41051 fi
41052
41053 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41054 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41055 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41056 fi
41057
41058 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41059 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41060 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41061 fi
41062
41063 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41064 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41065 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41066 fi
41067
41068 COND_SHARED_1="#"
41069 if test "x$SHARED" = "x1" ; then
41070 COND_SHARED_1=""
41071 fi
41072
41073 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41074 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41075 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41076 fi
41077
41078 COND_TOOLKIT_COCOA="#"
41079 if test "x$TOOLKIT" = "xCOCOA" ; then
41080 COND_TOOLKIT_COCOA=""
41081 fi
41082
41083 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41084 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41085 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41086 fi
41087
41088 COND_TOOLKIT_GTK="#"
41089 if test "x$TOOLKIT" = "xGTK" ; then
41090 COND_TOOLKIT_GTK=""
41091 fi
41092
41093 COND_TOOLKIT_GTK_USE_GUI_1="#"
41094 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41095 COND_TOOLKIT_GTK_USE_GUI_1=""
41096 fi
41097
41098 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41099 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41100 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41101 fi
41102
41103 COND_TOOLKIT_MAC="#"
41104 if test "x$TOOLKIT" = "xMAC" ; then
41105 COND_TOOLKIT_MAC=""
41106 fi
41107
41108 COND_TOOLKIT_MAC_USE_GUI_1="#"
41109 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41110 COND_TOOLKIT_MAC_USE_GUI_1=""
41111 fi
41112
41113 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41114 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41115 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41116 fi
41117
9a8f0513
VS
41118 COND_TOOLKIT_MAC_WXUNIV_0="#"
41119 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41120 COND_TOOLKIT_MAC_WXUNIV_0=""
41121 fi
41122
dcc1b6ad
VS
41123 COND_TOOLKIT_MGL="#"
41124 if test "x$TOOLKIT" = "xMGL" ; then
41125 COND_TOOLKIT_MGL=""
41126 fi
41127
41128 COND_TOOLKIT_MGL_USE_GUI_1="#"
41129 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41130 COND_TOOLKIT_MGL_USE_GUI_1=""
41131 fi
41132
41133 COND_TOOLKIT_MOTIF="#"
41134 if test "x$TOOLKIT" = "xMOTIF" ; then
41135 COND_TOOLKIT_MOTIF=""
41136 fi
41137
41138 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41139 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41140 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41141 fi
41142
41143 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41144 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41145 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41146 fi
41147
41148 COND_TOOLKIT_MSW="#"
41149 if test "x$TOOLKIT" = "xMSW" ; then
41150 COND_TOOLKIT_MSW=""
41151 fi
41152
41153 COND_TOOLKIT_MSW_USE_GUI_1="#"
41154 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41155 COND_TOOLKIT_MSW_USE_GUI_1=""
41156 fi
41157
41158 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41159 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41160 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41161 fi
41162
9a8f0513
VS
41163 COND_TOOLKIT_MSW_WXUNIV_0="#"
41164 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41165 COND_TOOLKIT_MSW_WXUNIV_0=""
41166 fi
41167
dcc1b6ad
VS
41168 COND_TOOLKIT_PM="#"
41169 if test "x$TOOLKIT" = "xPM" ; then
41170 COND_TOOLKIT_PM=""
41171 fi
41172
41173 COND_TOOLKIT_PM_USE_GUI_1="#"
41174 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41175 COND_TOOLKIT_PM_USE_GUI_1=""
41176 fi
41177
41178 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41179 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41180 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41181 fi
41182
9a8f0513
VS
41183 COND_TOOLKIT_PM_WXUNIV_0="#"
41184 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41185 COND_TOOLKIT_PM_WXUNIV_0=""
41186 fi
41187
dcc1b6ad
VS
41188 COND_TOOLKIT_WINCE="#"
41189 if test "x$TOOLKIT" = "xWINCE" ; then
41190 COND_TOOLKIT_WINCE=""
41191 fi
41192
41193 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41194 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41195 COND_TOOLKIT_WINCE_USE_GUI_1=""
41196 fi
41197
41198 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41199 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41200 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41201 fi
41202
41203 COND_TOOLKIT_X11="#"
41204 if test "x$TOOLKIT" = "xX11" ; then
41205 COND_TOOLKIT_X11=""
41206 fi
41207
41208 COND_TOOLKIT_X11_USE_GUI_1="#"
41209 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41210 COND_TOOLKIT_X11_USE_GUI_1=""
41211 fi
41212
41213 COND_UNICODE_1="#"
41214 if test "x$UNICODE" = "x1" ; then
41215 COND_UNICODE_1=""
41216 fi
41217
41218 COND_USE_EXCEPTIONS_0="#"
41219 if test "x$USE_EXCEPTIONS" = "x0" ; then
41220 COND_USE_EXCEPTIONS_0=""
41221 fi
41222
41223 COND_USE_EXCEPTIONS_1="#"
41224 if test "x$USE_EXCEPTIONS" = "x1" ; then
41225 COND_USE_EXCEPTIONS_1=""
41226 fi
41227
41228 COND_USE_GUI_0="#"
41229 if test "x$USE_GUI" = "x0" ; then
41230 COND_USE_GUI_0=""
41231 fi
41232
41233 COND_USE_GUI_1="#"
41234 if test "x$USE_GUI" = "x1" ; then
41235 COND_USE_GUI_1=""
41236 fi
41237
41238 COND_USE_GUI_1_WXUNIV_0="#"
41239 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41240 COND_USE_GUI_1_WXUNIV_0=""
41241 fi
41242
41243 COND_USE_GUI_1_WXUNIV_1="#"
41244 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41245 COND_USE_GUI_1_WXUNIV_1=""
41246 fi
41247
41248 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41249 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41250 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41251 fi
41252
41253 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41254 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41255 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41256 fi
41257
41258 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41259 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41260 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41261 fi
41262
41263 COND_USE_ODBC_1="#"
41264 if test "x$USE_ODBC" = "x1" ; then
41265 COND_USE_ODBC_1=""
41266 fi
41267
41268 COND_USE_PLUGINS_0="#"
41269 if test "x$USE_PLUGINS" = "x0" ; then
41270 COND_USE_PLUGINS_0=""
41271 fi
41272
41273 COND_USE_SOSYMLINKS_1="#"
41274 if test "x$USE_SOSYMLINKS" = "x1" ; then
41275 COND_USE_SOSYMLINKS_1=""
41276 fi
41277
41278 COND_USE_SOVERLINUX_1="#"
41279 if test "x$USE_SOVERLINUX" = "x1" ; then
41280 COND_USE_SOVERLINUX_1=""
41281 fi
41282
41283 COND_USE_SOVERSION_0="#"
41284 if test "x$USE_SOVERSION" = "x0" ; then
41285 COND_USE_SOVERSION_0=""
41286 fi
41287
41288 COND_USE_SOVERSOLARIS_1="#"
41289 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41290 COND_USE_SOVERSOLARIS_1=""
41291 fi
41292
41293 COND_WITH_PLUGIN_SDL_1="#"
41294 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41295 COND_WITH_PLUGIN_SDL_1=""
41296 fi
41297
41298 COND_WXUNIV_1="#"
41299 if test "x$WXUNIV" = "x1" ; then
41300 COND_WXUNIV_1=""
41301 fi
41302
41303 COND_WXUSE_EXPAT_BUILTIN="#"
41304 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41305 COND_WXUSE_EXPAT_BUILTIN=""
41306 fi
41307
41308 COND_WXUSE_LIBJPEG_BUILTIN="#"
41309 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41310 COND_WXUSE_LIBJPEG_BUILTIN=""
41311 fi
41312
41313 COND_WXUSE_LIBPNG_BUILTIN="#"
41314 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41315 COND_WXUSE_LIBPNG_BUILTIN=""
41316 fi
41317
41318 COND_WXUSE_LIBTIFF_BUILTIN="#"
41319 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41320 COND_WXUSE_LIBTIFF_BUILTIN=""
41321 fi
41322
41323 COND_WXUSE_ODBC_BUILTIN="#"
41324 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41325 COND_WXUSE_ODBC_BUILTIN=""
41326 fi
41327
41328 COND_WXUSE_REGEX_BUILTIN="#"
41329 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41330 COND_WXUSE_REGEX_BUILTIN=""
41331 fi
41332
41333 COND_WXUSE_ZLIB_BUILTIN="#"
41334 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41335 COND_WXUSE_ZLIB_BUILTIN=""
41336 fi
41337
a848cd7e
SC
41338
41339
2057db16
VS
41340 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41341 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
41342echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
41343 { (exit 1); exit 1; }; }
41344 fi
41345
a848cd7e 41346
ceec2216
RL
41347if test "$wxUSE_SHARED" = "yes"; then
41348
41349 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41350 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41351
41352else
41353
41354 EXE_LINKER="$CXX -o"
41355
41356fi
a848cd7e 41357
74b84332 41358GCC_PRAGMA_FLAGS=""
a848cd7e 41359if test $GCC_PCH = 1 ; then
74b84332 41360 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41361else
41362 case "${host}" in
41363 powerpc-*-darwin* )
74b84332 41364 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41365 ;;
bea8e651 41366 *-*-mingw32* )
1f344abf
VS
41367 if test "$wxUSE_STL" = "yes" -o \
41368 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41369 "$wxUSE_NO_RTTI" != "yes"; then
41370 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41371echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41372 cat >conftest.$ac_ext <<_ACEOF
41373/* confdefs.h. */
41374_ACEOF
41375cat confdefs.h >>conftest.$ac_ext
41376cat >>conftest.$ac_ext <<_ACEOF
41377/* end confdefs.h. */
41378
41379int
41380main ()
41381{
1f344abf 41382#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41383 #error "Not GCC 3.2 or greater"
41384 #endif
41385
41386 ;
41387 return 0;
41388}
41389_ACEOF
41390rm -f conftest.$ac_objext
41391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41392 (eval $ac_compile) 2>conftest.er1
bea8e651 41393 ac_status=$?
ac1cb8d3
VS
41394 grep -v '^ *+' conftest.er1 >conftest.err
41395 rm -f conftest.er1
41396 cat conftest.err >&5
bea8e651
MB
41397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398 (exit $ac_status); } &&
d51253e8 41399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41401 (eval $ac_try) 2>&5
41402 ac_status=$?
41403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41404 (exit $ac_status); }; } &&
41405 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41407 (eval $ac_try) 2>&5
41408 ac_status=$?
41409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410 (exit $ac_status); }; }; then
74b84332 41411 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41412 echo "$as_me:$LINENO: result: yes" >&5
41413echo "${ECHO_T}yes" >&6
41414else
41415 echo "$as_me: failed program was:" >&5
41416sed 's/^/| /' conftest.$ac_ext >&5
41417
41418echo "$as_me:$LINENO: result: no" >&5
41419echo "${ECHO_T}no" >&6
41420fi
ac1cb8d3 41421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41422 fi
41423 ;;
a848cd7e
SC
41424 esac
41425fi
74b84332 41426CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41427
41428
41429SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41430
41431
41432
41433
41434
41435
41436
41437
41438
41439
41440
41441
41442
41443
41444
41445
41446
41447
41448
41449
41450
41451
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466
41467
41468
41469
41470
41471
a848cd7e
SC
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488
41489
74b84332 41490
a848cd7e
SC
41491
41492
41493echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41494echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41495set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41496if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41497 echo $ECHO_N "(cached) $ECHO_C" >&6
41498else
41499 cat >conftest.make <<\_ACEOF
41500all:
41501 @echo 'ac_maketemp="$(MAKE)"'
41502_ACEOF
41503# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41504eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41505if test -n "$ac_maketemp"; then
41506 eval ac_cv_prog_make_${ac_make}_set=yes
41507else
41508 eval ac_cv_prog_make_${ac_make}_set=no
41509fi
41510rm -f conftest.make
41511fi
41512if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41513 echo "$as_me:$LINENO: result: yes" >&5
41514echo "${ECHO_T}yes" >&6
41515 SET_MAKE=
41516else
41517 echo "$as_me:$LINENO: result: no" >&5
41518echo "${ECHO_T}no" >&6
41519 SET_MAKE="MAKE=${MAKE-make}"
41520fi
41521
41522
a848cd7e 41523
ceec2216
RL
41524 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41525
a848cd7e 41526
ceec2216 41527 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41528
a848cd7e 41529
ceec2216 41530 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41531
ceec2216
RL
41532
41533 ac_config_files="$ac_config_files version-script Makefile"
41534
41535
41536 ac_config_commands="$ac_config_commands wx-config
41537 "
a848cd7e
SC
41538
41539
9103d280
RL
41540
41541
a848cd7e
SC
41542if test "$wxUSE_GUI" = "yes"; then
41543 SUBDIRS="samples demos utils contrib"
41544else SUBDIRS="samples utils"
41545fi
41546
41547
41548
41549# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41550if test "${with_cppunit_prefix+set}" = set; then
41551 withval="$with_cppunit_prefix"
41552 cppunit_config_prefix="$withval"
41553else
41554 cppunit_config_prefix=""
41555fi;
41556
41557# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41558if test "${with_cppunit_exec_prefix+set}" = set; then
41559 withval="$with_cppunit_exec_prefix"
41560 cppunit_config_exec_prefix="$withval"
41561else
41562 cppunit_config_exec_prefix=""
41563fi;
41564
41565 if test x$cppunit_config_exec_prefix != x ; then
41566 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41567 if test x${CPPUNIT_CONFIG+set} != xset ; then
41568 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41569 fi
41570 fi
41571 if test x$cppunit_config_prefix != x ; then
41572 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41573 if test x${CPPUNIT_CONFIG+set} != xset ; then
41574 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41575 fi
41576 fi
41577
41578 # Extract the first word of "cppunit-config", so it can be a program name with args.
41579set dummy cppunit-config; ac_word=$2
41580echo "$as_me:$LINENO: checking for $ac_word" >&5
41581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41582if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41583 echo $ECHO_N "(cached) $ECHO_C" >&6
41584else
41585 case $CPPUNIT_CONFIG in
41586 [\\/]* | ?:[\\/]*)
41587 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41588 ;;
41589 *)
41590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41591for as_dir in $PATH
41592do
41593 IFS=$as_save_IFS
41594 test -z "$as_dir" && as_dir=.
41595 for ac_exec_ext in '' $ac_executable_extensions; do
41596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41597 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41599 break 2
41600 fi
41601done
41602done
41603
41604 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41605 ;;
41606esac
41607fi
41608CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41609
41610if test -n "$CPPUNIT_CONFIG"; then
41611 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41612echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41613else
41614 echo "$as_me:$LINENO: result: no" >&5
41615echo "${ECHO_T}no" >&6
41616fi
41617
41618 cppunit_version_min=1.8.0
41619
41620 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41621echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41622 no_cppunit=""
41623 if test "$CPPUNIT_CONFIG" = "no" ; then
41624 no_cppunit=yes
41625 else
41626 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41627 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41628 cppunit_version=`$CPPUNIT_CONFIG --version`
41629
41630 cppunit_major_version=`echo $cppunit_version | \
41631 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41632 cppunit_minor_version=`echo $cppunit_version | \
41633 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41634 cppunit_micro_version=`echo $cppunit_version | \
41635 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41636
41637 cppunit_major_min=`echo $cppunit_version_min | \
41638 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41639 cppunit_minor_min=`echo $cppunit_version_min | \
41640 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41641 cppunit_micro_min=`echo $cppunit_version_min | \
41642 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41643
41644 cppunit_version_proper=`expr \
41645 $cppunit_major_version \> $cppunit_major_min \| \
41646 $cppunit_major_version \= $cppunit_major_min \& \
41647 $cppunit_minor_version \> $cppunit_minor_min \| \
41648 $cppunit_major_version \= $cppunit_major_min \& \
41649 $cppunit_minor_version \= $cppunit_minor_min \& \
41650 $cppunit_micro_version \>= $cppunit_micro_min `
41651
41652 if test "$cppunit_version_proper" = "1" ; then
41653 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41654echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41655 else
41656 echo "$as_me:$LINENO: result: no" >&5
41657echo "${ECHO_T}no" >&6
41658 no_cppunit=yes
41659 fi
41660 fi
41661
41662 if test "x$no_cppunit" = x ; then
c2218763 41663 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41664 else
41665 CPPUNIT_CFLAGS=""
41666 CPPUNIT_LIBS=""
c2218763 41667 :
a848cd7e
SC
41668 fi
41669
41670
41671
41672
41673
41674for subdir in `echo $SUBDIRS`; do
41675 if test -d ${srcdir}/${subdir} ; then
41676 if test "$wxUSE_GUI" = "yes"; then
41677 if test ${subdir} = "samples"; then
41678 makefiles="samples/Makefile.in $makefiles"
41679 for sample in `echo $SAMPLES_SUBDIRS`; do
41680 if test -d $srcdir/samples/$sample; then
41681 makefiles="samples/$sample/Makefile.in $makefiles"
41682 fi
41683 done
41684 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41685 fi
41686 else if test ${subdir} = "samples"; then
41687 makefiles="samples/Makefile.in samples/console/Makefile.in"
41688 elif test ${subdir} = "utils"; then
6537ccf8
VS
41689 makefiles=""
41690 for util in HelpGen tex2rtf ; do
41691 if test -d $srcdir/utils/$util ; then
41692 makefiles="utils/$util/Makefile.in \
41693 utils/$util/src/Makefile.in \
41694 $makefiles"
41695 fi
41696 done
a848cd7e
SC
41697 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41698 fi
41699 fi
41700
41701 for mkin in $makefiles ; do
41702 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41703 ac_config_files="$ac_config_files $mk"
41704
41705 done
41706 fi
41707done
41708
41709
41710cat >confcache <<\_ACEOF
41711# This file is a shell script that caches the results of configure
41712# tests run on this system so they can be shared between configure
41713# scripts and configure runs, see configure's option --config-cache.
41714# It is not useful on other systems. If it contains results you don't
41715# want to keep, you may remove or edit it.
41716#
41717# config.status only pays attention to the cache file if you give it
41718# the --recheck option to rerun configure.
41719#
41720# `ac_cv_env_foo' variables (set or unset) will be overridden when
41721# loading this file, other *unset* `ac_cv_foo' will be assigned the
41722# following values.
41723
41724_ACEOF
41725
41726# The following way of writing the cache mishandles newlines in values,
41727# but we know of no workaround that is simple, portable, and efficient.
41728# So, don't put newlines in cache variables' values.
41729# Ultrix sh set writes to stderr and can't be redirected directly,
41730# and sets the high bit in the cache file unless we assign to the vars.
41731{
41732 (set) 2>&1 |
41733 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41734 *ac_space=\ *)
41735 # `set' does not quote correctly, so add quotes (double-quote
41736 # substitution turns \\\\ into \\, and sed turns \\ into \).
41737 sed -n \
ac1cb8d3
VS
41738 "s/'/'\\\\''/g;
41739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41740 ;;
41741 *)
41742 # `set' quotes correctly as required by POSIX, so do not add quotes.
41743 sed -n \
ac1cb8d3 41744 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41745 ;;
41746 esac;
41747} |
41748 sed '
41749 t clear
41750 : clear
41751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41752 t end
41753 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41754 : end' >>confcache
41755if diff $cache_file confcache >/dev/null 2>&1; then :; else
41756 if test -w $cache_file; then
41757 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41758 cat confcache >$cache_file
41759 else
41760 echo "not updating unwritable cache $cache_file"
41761 fi
41762fi
41763rm -f confcache
41764
41765test "x$prefix" = xNONE && prefix=$ac_default_prefix
41766# Let make expand exec_prefix.
41767test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41768
41769# VPATH may cause trouble with some makes, so we remove $(srcdir),
41770# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41771# trailing colons and then remove the whole line if VPATH becomes empty
41772# (actually we leave an empty line to preserve line numbers).
41773if test "x$srcdir" = x.; then
ac1cb8d3 41774 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41775s/:*\$(srcdir):*/:/;
41776s/:*\${srcdir}:*/:/;
41777s/:*@srcdir@:*/:/;
ac1cb8d3 41778s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41779s/:*$//;
ac1cb8d3 41780s/^[^=]*=[ ]*$//;
a848cd7e
SC
41781}'
41782fi
41783
41784DEFS=-DHAVE_CONFIG_H
41785
41786ac_libobjs=
41787ac_ltlibobjs=
41788for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41789 # 1. Remove the extension, and $U if already installed.
41790 ac_i=`echo "$ac_i" |
ac1cb8d3 41791 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41792 # 2. Add them.
41793 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41794 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41795done
41796LIBOBJS=$ac_libobjs
41797
41798LTLIBOBJS=$ac_ltlibobjs
41799
41800
41801
41802: ${CONFIG_STATUS=./config.status}
41803ac_clean_files_save=$ac_clean_files
41804ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41805{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41806echo "$as_me: creating $CONFIG_STATUS" >&6;}
41807cat >$CONFIG_STATUS <<_ACEOF
41808#! $SHELL
41809# Generated by $as_me.
41810# Run this file to recreate the current configuration.
41811# Compiler output produced by configure, useful for debugging
41812# configure, is in config.log if it exists.
41813
41814debug=false
41815ac_cs_recheck=false
41816ac_cs_silent=false
41817SHELL=\${CONFIG_SHELL-$SHELL}
41818_ACEOF
41819
41820cat >>$CONFIG_STATUS <<\_ACEOF
41821## --------------------- ##
41822## M4sh Initialization. ##
41823## --------------------- ##
41824
41825# Be Bourne compatible
41826if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41827 emulate sh
41828 NULLCMD=:
41829 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41830 # is contrary to our usage. Disable this feature.
41831 alias -g '${1+"$@"}'='"$@"'
41832elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41833 set -o posix
41834fi
ac1cb8d3 41835DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41836
41837# Support unset when possible.
ac1cb8d3 41838if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41839 as_unset=unset
41840else
41841 as_unset=false
41842fi
41843
41844
41845# Work around bugs in pre-3.0 UWIN ksh.
41846$as_unset ENV MAIL MAILPATH
41847PS1='$ '
41848PS2='> '
41849PS4='+ '
41850
41851# NLS nuisances.
41852for as_var in \
41853 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41854 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41855 LC_TELEPHONE LC_TIME
41856do
ac1cb8d3 41857 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41858 eval $as_var=C; export $as_var
41859 else
41860 $as_unset $as_var
41861 fi
41862done
41863
41864# Required to use basename.
41865if expr a : '\(a\)' >/dev/null 2>&1; then
41866 as_expr=expr
41867else
41868 as_expr=false
41869fi
41870
41871if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41872 as_basename=basename
41873else
41874 as_basename=false
41875fi
41876
41877
41878# Name of the executable.
41879as_me=`$as_basename "$0" ||
41880$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41881 X"$0" : 'X\(//\)$' \| \
41882 X"$0" : 'X\(/\)$' \| \
41883 . : '\(.\)' 2>/dev/null ||
41884echo X/"$0" |
41885 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41886 /^X\/\(\/\/\)$/{ s//\1/; q; }
41887 /^X\/\(\/\).*/{ s//\1/; q; }
41888 s/.*/./; q'`
41889
41890
41891# PATH needs CR, and LINENO needs CR and PATH.
41892# Avoid depending upon Character Ranges.
41893as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41894as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41895as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41896as_cr_digits='0123456789'
41897as_cr_alnum=$as_cr_Letters$as_cr_digits
41898
41899# The user is always right.
41900if test "${PATH_SEPARATOR+set}" != set; then
41901 echo "#! /bin/sh" >conf$$.sh
41902 echo "exit 0" >>conf$$.sh
41903 chmod +x conf$$.sh
41904 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41905 PATH_SEPARATOR=';'
41906 else
41907 PATH_SEPARATOR=:
41908 fi
41909 rm -f conf$$.sh
41910fi
41911
41912
41913 as_lineno_1=$LINENO
41914 as_lineno_2=$LINENO
41915 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41916 test "x$as_lineno_1" != "x$as_lineno_2" &&
41917 test "x$as_lineno_3" = "x$as_lineno_2" || {
41918 # Find who we are. Look in the path if we contain no path at all
41919 # relative or not.
41920 case $0 in
41921 *[\\/]* ) as_myself=$0 ;;
41922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41923for as_dir in $PATH
41924do
41925 IFS=$as_save_IFS
41926 test -z "$as_dir" && as_dir=.
41927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41928done
41929
41930 ;;
41931 esac
41932 # We did not find ourselves, most probably we were run as `sh COMMAND'
41933 # in which case we are not to be found in the path.
41934 if test "x$as_myself" = x; then
41935 as_myself=$0
41936 fi
41937 if test ! -f "$as_myself"; then
41938 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41939echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41940 { (exit 1); exit 1; }; }
41941 fi
41942 case $CONFIG_SHELL in
41943 '')
41944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41945for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41946do
41947 IFS=$as_save_IFS
41948 test -z "$as_dir" && as_dir=.
41949 for as_base in sh bash ksh sh5; do
41950 case $as_dir in
41951 /*)
41952 if ("$as_dir/$as_base" -c '
41953 as_lineno_1=$LINENO
41954 as_lineno_2=$LINENO
41955 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41956 test "x$as_lineno_1" != "x$as_lineno_2" &&
41957 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41958 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41959 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41960 CONFIG_SHELL=$as_dir/$as_base
41961 export CONFIG_SHELL
41962 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41963 fi;;
41964 esac
41965 done
41966done
41967;;
41968 esac
41969
41970 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41971 # uniformly replaced by the line number. The first 'sed' inserts a
41972 # line-number line before each line; the second 'sed' does the real
41973 # work. The second script uses 'N' to pair each line-number line
41974 # with the numbered line, and appends trailing '-' during
41975 # substitution so that $LINENO is not a special case at line end.
41976 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41977 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41978 sed '=' <$as_myself |
41979 sed '
41980 N
41981 s,$,-,
41982 : loop
41983 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41984 t loop
41985 s,-$,,
41986 s,^['$as_cr_digits']*\n,,
41987 ' >$as_me.lineno &&
41988 chmod +x $as_me.lineno ||
41989 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41990echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41991 { (exit 1); exit 1; }; }
41992
41993 # Don't try to exec as it changes $[0], causing all sort of problems
41994 # (the dirname of $[0] is not the place where we might find the
41995 # original and so on. Autoconf is especially sensible to this).
41996 . ./$as_me.lineno
41997 # Exit status is that of the last command.
41998 exit
41999}
42000
42001
42002case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42003 *c*,-n*) ECHO_N= ECHO_C='
42004' ECHO_T=' ' ;;
42005 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42006 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42007esac
42008
42009if expr a : '\(a\)' >/dev/null 2>&1; then
42010 as_expr=expr
42011else
42012 as_expr=false
42013fi
42014
42015rm -f conf$$ conf$$.exe conf$$.file
42016echo >conf$$.file
42017if ln -s conf$$.file conf$$ 2>/dev/null; then
42018 # We could just check for DJGPP; but this test a) works b) is more generic
42019 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42020 if test -f conf$$.exe; then
42021 # Don't use ln at all; we don't have any links
42022 as_ln_s='cp -p'
42023 else
42024 as_ln_s='ln -s'
42025 fi
42026elif ln conf$$.file conf$$ 2>/dev/null; then
42027 as_ln_s=ln
42028else
42029 as_ln_s='cp -p'
42030fi
42031rm -f conf$$ conf$$.exe conf$$.file
42032
42033if mkdir -p . 2>/dev/null; then
42034 as_mkdir_p=:
42035else
ac1cb8d3 42036 test -d ./-p && rmdir ./-p
a848cd7e
SC
42037 as_mkdir_p=false
42038fi
42039
42040as_executable_p="test -f"
42041
42042# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42043as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42044
42045# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42046as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42047
42048
42049# IFS
42050# We need space, tab and new line, in precisely that order.
42051as_nl='
42052'
42053IFS=" $as_nl"
42054
42055# CDPATH.
42056$as_unset CDPATH
42057
42058exec 6>&1
42059
42060# Open the log real soon, to keep \$[0] and so on meaningful, and to
42061# report actual input values of CONFIG_FILES etc. instead of their
42062# values after options handling. Logging --version etc. is OK.
42063exec 5>>config.log
42064{
42065 echo
42066 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42067## Running $as_me. ##
42068_ASBOX
42069} >&5
42070cat >&5 <<_CSEOF
42071
7714864e 42072This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42073generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42074
42075 CONFIG_FILES = $CONFIG_FILES
42076 CONFIG_HEADERS = $CONFIG_HEADERS
42077 CONFIG_LINKS = $CONFIG_LINKS
42078 CONFIG_COMMANDS = $CONFIG_COMMANDS
42079 $ $0 $@
42080
42081_CSEOF
42082echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42083echo >&5
42084_ACEOF
42085
42086# Files that config.status was made for.
42087if test -n "$ac_config_files"; then
42088 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42089fi
42090
42091if test -n "$ac_config_headers"; then
42092 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42093fi
42094
42095if test -n "$ac_config_links"; then
42096 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42097fi
42098
42099if test -n "$ac_config_commands"; then
42100 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42101fi
42102
42103cat >>$CONFIG_STATUS <<\_ACEOF
42104
42105ac_cs_usage="\
42106\`$as_me' instantiates files from templates according to the
42107current configuration.
42108
42109Usage: $0 [OPTIONS] [FILE]...
42110
42111 -h, --help print this help, then exit
42112 -V, --version print version number, then exit
42113 -q, --quiet do not print progress messages
42114 -d, --debug don't remove temporary files
42115 --recheck update $as_me by reconfiguring in the same conditions
42116 --file=FILE[:TEMPLATE]
ac1cb8d3 42117 instantiate the configuration file FILE
a848cd7e 42118 --header=FILE[:TEMPLATE]
ac1cb8d3 42119 instantiate the configuration header FILE
a848cd7e
SC
42120
42121Configuration files:
42122$config_files
42123
42124Configuration headers:
42125$config_headers
42126
42127Configuration commands:
42128$config_commands
42129
42130Report bugs to <bug-autoconf@gnu.org>."
42131_ACEOF
42132
42133cat >>$CONFIG_STATUS <<_ACEOF
42134ac_cs_version="\\
7714864e 42135wxWidgets config.status 2.5.3
ac1cb8d3 42136configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42137 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42138
ac1cb8d3 42139Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42140This config.status script is free software; the Free Software Foundation
42141gives unlimited permission to copy, distribute and modify it."
42142srcdir=$srcdir
42143INSTALL="$INSTALL"
42144_ACEOF
42145
42146cat >>$CONFIG_STATUS <<\_ACEOF
42147# If no file are specified by the user, then we need to provide default
42148# value. By we need to know if files were specified by the user.
42149ac_need_defaults=:
42150while test $# != 0
42151do
42152 case $1 in
42153 --*=*)
42154 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42155 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42156 ac_shift=:
42157 ;;
42158 -*)
42159 ac_option=$1
42160 ac_optarg=$2
42161 ac_shift=shift
42162 ;;
42163 *) # This is not an option, so the user has probably given explicit
42164 # arguments.
42165 ac_option=$1
42166 ac_need_defaults=false;;
42167 esac
42168
42169 case $ac_option in
42170 # Handling of the options.
42171_ACEOF
42172cat >>$CONFIG_STATUS <<\_ACEOF
42173 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42174 ac_cs_recheck=: ;;
42175 --version | --vers* | -V )
42176 echo "$ac_cs_version"; exit 0 ;;
42177 --he | --h)
42178 # Conflict between --help and --header
42179 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42180Try \`$0 --help' for more information." >&5
42181echo "$as_me: error: ambiguous option: $1
42182Try \`$0 --help' for more information." >&2;}
42183 { (exit 1); exit 1; }; };;
42184 --help | --hel | -h )
42185 echo "$ac_cs_usage"; exit 0 ;;
42186 --debug | --d* | -d )
42187 debug=: ;;
42188 --file | --fil | --fi | --f )
42189 $ac_shift
42190 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42191 ac_need_defaults=false;;
42192 --header | --heade | --head | --hea )
42193 $ac_shift
42194 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42195 ac_need_defaults=false;;
42196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42197 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42198 ac_cs_silent=: ;;
42199
42200 # This is an error.
42201 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42202Try \`$0 --help' for more information." >&5
42203echo "$as_me: error: unrecognized option: $1
42204Try \`$0 --help' for more information." >&2;}
42205 { (exit 1); exit 1; }; } ;;
42206
42207 *) ac_config_targets="$ac_config_targets $1" ;;
42208
42209 esac
42210 shift
42211done
42212
42213ac_configure_extra_args=
42214
42215if $ac_cs_silent; then
42216 exec 6>/dev/null
42217 ac_configure_extra_args="$ac_configure_extra_args --silent"
42218fi
42219
42220_ACEOF
42221cat >>$CONFIG_STATUS <<_ACEOF
42222if \$ac_cs_recheck; then
42223 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42224 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42225fi
42226
42227_ACEOF
42228
42229cat >>$CONFIG_STATUS <<_ACEOF
42230#
42231# INIT-COMMANDS section.
42232#
42233
ceec2216
RL
42234 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42235 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42236 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42237 LN_S="${LN_S}"
a848cd7e
SC
42238
42239
42240_ACEOF
42241
42242
42243
42244cat >>$CONFIG_STATUS <<\_ACEOF
42245for ac_config_target in $ac_config_targets
42246do
42247 case "$ac_config_target" in
42248 # Handling of arguments.
ceec2216
RL
42249 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42250 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42251 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42252 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42253 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42254 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42255 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
a848cd7e
SC
42256 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42257echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42258 { (exit 1); exit 1; }; };;
42259 esac
42260done
42261
42262# If the user did not use the arguments to specify the items to instantiate,
42263# then the envvar interface is used. Set only those that are not.
42264# We use the long form for the default assignment because of an extremely
42265# bizarre bug on SunOS 4.1.3.
42266if $ac_need_defaults; then
42267 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42268 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42269 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42270fi
42271
42272# Have a temporary directory for convenience. Make it in the build tree
42273# simply because there is no reason to put it here, and in addition,
42274# creating and moving files from /tmp can sometimes cause problems.
42275# Create a temporary directory, and hook for its removal unless debugging.
42276$debug ||
42277{
42278 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42279 trap '{ (exit 1); exit 1; }' 1 2 13 15
42280}
42281
42282# Create a (secure) tmp directory for tmp files.
42283
42284{
42285 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42286 test -n "$tmp" && test -d "$tmp"
42287} ||
42288{
42289 tmp=./confstat$$-$RANDOM
42290 (umask 077 && mkdir $tmp)
42291} ||
42292{
42293 echo "$me: cannot create a temporary directory in ." >&2
42294 { (exit 1); exit 1; }
42295}
42296
42297_ACEOF
42298
42299cat >>$CONFIG_STATUS <<_ACEOF
42300
42301#
42302# CONFIG_FILES section.
42303#
42304
42305# No need to generate the scripts if there are no CONFIG_FILES.
42306# This happens for instance when ./config.status config.h
42307if test -n "\$CONFIG_FILES"; then
42308 # Protect against being on the right side of a sed subst in config.status.
42309 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42310 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42311s,@SHELL@,$SHELL,;t t
42312s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42313s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42314s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42315s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42316s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42317s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42318s,@exec_prefix@,$exec_prefix,;t t
42319s,@prefix@,$prefix,;t t
42320s,@program_transform_name@,$program_transform_name,;t t
42321s,@bindir@,$bindir,;t t
42322s,@sbindir@,$sbindir,;t t
42323s,@libexecdir@,$libexecdir,;t t
42324s,@datadir@,$datadir,;t t
42325s,@sysconfdir@,$sysconfdir,;t t
42326s,@sharedstatedir@,$sharedstatedir,;t t
42327s,@localstatedir@,$localstatedir,;t t
42328s,@libdir@,$libdir,;t t
42329s,@includedir@,$includedir,;t t
42330s,@oldincludedir@,$oldincludedir,;t t
42331s,@infodir@,$infodir,;t t
42332s,@mandir@,$mandir,;t t
42333s,@build_alias@,$build_alias,;t t
42334s,@host_alias@,$host_alias,;t t
42335s,@target_alias@,$target_alias,;t t
42336s,@DEFS@,$DEFS,;t t
42337s,@ECHO_C@,$ECHO_C,;t t
42338s,@ECHO_N@,$ECHO_N,;t t
42339s,@ECHO_T@,$ECHO_T,;t t
42340s,@LIBS@,$LIBS,;t t
42341s,@build@,$build,;t t
42342s,@build_cpu@,$build_cpu,;t t
42343s,@build_vendor@,$build_vendor,;t t
42344s,@build_os@,$build_os,;t t
42345s,@host@,$host,;t t
42346s,@host_cpu@,$host_cpu,;t t
42347s,@host_vendor@,$host_vendor,;t t
42348s,@host_os@,$host_os,;t t
42349s,@target@,$target,;t t
42350s,@target_cpu@,$target_cpu,;t t
42351s,@target_vendor@,$target_vendor,;t t
42352s,@target_os@,$target_os,;t t
42353s,@CC@,$CC,;t t
42354s,@CFLAGS@,$CFLAGS,;t t
42355s,@LDFLAGS@,$LDFLAGS,;t t
42356s,@CPPFLAGS@,$CPPFLAGS,;t t
42357s,@ac_ct_CC@,$ac_ct_CC,;t t
42358s,@EXEEXT@,$EXEEXT,;t t
42359s,@OBJEXT@,$OBJEXT,;t t
42360s,@CPP@,$CPP,;t t
42361s,@EGREP@,$EGREP,;t t
42362s,@CXX@,$CXX,;t t
42363s,@CXXFLAGS@,$CXXFLAGS,;t t
42364s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42365s,@RANLIB@,$RANLIB,;t t
42366s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42367s,@AR@,$AR,;t t
42368s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42369s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42370s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42371s,@STRIP@,$STRIP,;t t
42372s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42373s,@LN_S@,$LN_S,;t t
42374s,@CXXCPP@,$CXXCPP,;t t
42375s,@subdirs@,$subdirs,;t t
42376s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42377s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42378s,@GTK_LIBS@,$GTK_LIBS,;t t
42379s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42380s,@X_CFLAGS@,$X_CFLAGS,;t t
42381s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42382s,@X_LIBS@,$X_LIBS,;t t
42383s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42384s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42385s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42386s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42387s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42388s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42389s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42390s,@RESCOMP@,$RESCOMP,;t t
42391s,@DEREZ@,$DEREZ,;t t
42392s,@SETFILE@,$SETFILE,;t t
42393s,@LIBICONV@,$LIBICONV,;t t
42394s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42395s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42396s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42397s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42398s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42399s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42400s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42401s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42402s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42403s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42404s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42405s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42406s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42407s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42408s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42409s,@VENDOR@,$VENDOR,;t t
42410s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42411s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42412s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42413s,@WXUNIV@,$WXUNIV,;t t
42414s,@MONOLITHIC@,$MONOLITHIC,;t t
42415s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42416s,@EXTRALIBS@,$EXTRALIBS,;t t
42417s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42418s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42419s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42420s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42421s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42422s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42423s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42424s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42425s,@UNICODE@,$UNICODE,;t t
42426s,@BUILD@,$BUILD,;t t
42427s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42428s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42429s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42430s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42431s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42432s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42433s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42434s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42435s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42436s,@SET_MAKE@,$SET_MAKE,;t t
42437s,@MAKE_SET@,$MAKE_SET,;t t
42438s,@ac_ct_AR@,$ac_ct_AR,;t t
42439s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42440s,@NM@,$NM,;t t
42441s,@ac_ct_NM@,$ac_ct_NM,;t t
42442s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42443s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42444s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42445s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42446s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42447s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42448s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42449s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42450s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42451s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42452s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42453s,@LIBPREFIX@,$LIBPREFIX,;t t
42454s,@LIBEXT@,$LIBEXT,;t t
42455s,@DLLPREFIX@,$DLLPREFIX,;t t
42456s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42457s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42458s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42459s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42460s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42461s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42462s,@PIC_FLAG@,$PIC_FLAG,;t t
42463s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42464s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42465s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42466s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42467s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42468s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42469s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42470s,@GCC_PCH@,$GCC_PCH,;t t
42471s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42472s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42473s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42474s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42475s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42476s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42477s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42478s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42479s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42480s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42481s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42482s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42483s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42484s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42485s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42486s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42487s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42488s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42489s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42490s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42491s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42492s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42493s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42494s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42495s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42496s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42497s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42498s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42499s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42500s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42501s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42502s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42503s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42504s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42505s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42506s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42507s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42508s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42509s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42510s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42511s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42512s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42513s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42514s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42515s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42516s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42517s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42518s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42519s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42520s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42521s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42522s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42523s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42524s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42525s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42526s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42527s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42528s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42529s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42530s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42531s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42532s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42533s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42534s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42535s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42536s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42537s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42538s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42539s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42540s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42541s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42542s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42543s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42544s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42545s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42546s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42547s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42548s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42549s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42550s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42551s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42552s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42553s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42554s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42555s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42556s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42557s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42558s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42559s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42560s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42561s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42562s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42563s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42564s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42565s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42566s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42567s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42568s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42569s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42570s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42571s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42572s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42573s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42574s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42575s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42576s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42577s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42578s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42579s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42580s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42581s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42582s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42583s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42584s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42585s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42586s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42587s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42588s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42589s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42590s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42591s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42592s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42593s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42594s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42595s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42596s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42597s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42598s,@USE_GUI@,$USE_GUI,;t t
42599s,@AFMINSTALL@,$AFMINSTALL,;t t
42600s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42601s,@TOOLKIT@,$TOOLKIT,;t t
42602s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42603s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42604s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42605s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42606s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42607s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42608s,@WIDGET_SET@,$WIDGET_SET,;t t
42609s,@WX_RELEASE@,$WX_RELEASE,;t t
42610s,@WX_VERSION@,$WX_VERSION,;t t
42611s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42612s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42613s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42614s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42615s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42616s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42617s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42618s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42619s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42620s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42621s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42622s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42623s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42624s,@DISTDIR@,$DISTDIR,;t t
42625s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42626s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42627s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42628s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42629s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42630s,@RESFLAGS@,$RESFLAGS,;t t
42631s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42632s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42633s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42634s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42635s,@MACRESCOMP@,$MACRESCOMP,;t t
42636s,@MACSETFILE@,$MACSETFILE,;t t
42637s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42638s,@GCC@,$GCC,;t t
a848cd7e 42639s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42640s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42641s,@LIBOBJS@,$LIBOBJS,;t t
42642s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42643CEOF
42644
42645_ACEOF
42646
42647 cat >>$CONFIG_STATUS <<\_ACEOF
42648 # Split the substitutions into bite-sized pieces for seds with
42649 # small command number limits, like on Digital OSF/1 and HP-UX.
42650 ac_max_sed_lines=48
42651 ac_sed_frag=1 # Number of current file.
42652 ac_beg=1 # First line for current file.
42653 ac_end=$ac_max_sed_lines # Line after last line for current file.
42654 ac_more_lines=:
42655 ac_sed_cmds=
42656 while $ac_more_lines; do
42657 if test $ac_beg -gt 1; then
42658 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42659 else
42660 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42661 fi
42662 if test ! -s $tmp/subs.frag; then
42663 ac_more_lines=false
42664 else
42665 # The purpose of the label and of the branching condition is to
42666 # speed up the sed processing (if there are no `@' at all, there
42667 # is no need to browse any of the substitutions).
42668 # These are the two extra sed commands mentioned above.
42669 (echo ':t
42670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42671 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42672 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42673 else
ac1cb8d3 42674 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42675 fi
42676 ac_sed_frag=`expr $ac_sed_frag + 1`
42677 ac_beg=$ac_end
42678 ac_end=`expr $ac_end + $ac_max_sed_lines`
42679 fi
42680 done
42681 if test -z "$ac_sed_cmds"; then
42682 ac_sed_cmds=cat
42683 fi
42684fi # test -n "$CONFIG_FILES"
42685
42686_ACEOF
42687cat >>$CONFIG_STATUS <<\_ACEOF
42688for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42690 case $ac_file in
42691 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42692 cat >$tmp/stdin
42693 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42695 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42697 * ) ac_file_in=$ac_file.in ;;
42698 esac
42699
42700 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42701 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42702$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42703 X"$ac_file" : 'X\(//\)[^/]' \| \
42704 X"$ac_file" : 'X\(//\)$' \| \
42705 X"$ac_file" : 'X\(/\)' \| \
42706 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42707echo X"$ac_file" |
42708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42710 /^X\(\/\/\)$/{ s//\1/; q; }
42711 /^X\(\/\).*/{ s//\1/; q; }
42712 s/.*/./; q'`
42713 { if $as_mkdir_p; then
42714 mkdir -p "$ac_dir"
42715 else
42716 as_dir="$ac_dir"
42717 as_dirs=
42718 while test ! -d "$as_dir"; do
42719 as_dirs="$as_dir $as_dirs"
42720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42722 X"$as_dir" : 'X\(//\)[^/]' \| \
42723 X"$as_dir" : 'X\(//\)$' \| \
42724 X"$as_dir" : 'X\(/\)' \| \
42725 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42726echo X"$as_dir" |
42727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42729 /^X\(\/\/\)$/{ s//\1/; q; }
42730 /^X\(\/\).*/{ s//\1/; q; }
42731 s/.*/./; q'`
42732 done
42733 test ! -n "$as_dirs" || mkdir $as_dirs
42734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42735echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42736 { (exit 1); exit 1; }; }; }
42737
42738 ac_builddir=.
42739
42740if test "$ac_dir" != .; then
42741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42742 # A "../" for each directory in $ac_dir_suffix.
42743 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42744else
42745 ac_dir_suffix= ac_top_builddir=
42746fi
42747
42748case $srcdir in
42749 .) # No --srcdir option. We are building in place.
42750 ac_srcdir=.
42751 if test -z "$ac_top_builddir"; then
42752 ac_top_srcdir=.
42753 else
42754 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42755 fi ;;
42756 [\\/]* | ?:[\\/]* ) # Absolute path.
42757 ac_srcdir=$srcdir$ac_dir_suffix;
42758 ac_top_srcdir=$srcdir ;;
42759 *) # Relative path.
42760 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42761 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42762esac
ac1cb8d3
VS
42763
42764# Do not use `cd foo && pwd` to compute absolute paths, because
42765# the directories may not exist.
42766case `pwd` in
42767.) ac_abs_builddir="$ac_dir";;
42768*)
42769 case "$ac_dir" in
42770 .) ac_abs_builddir=`pwd`;;
42771 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42772 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42773 esac;;
42774esac
42775case $ac_abs_builddir in
42776.) ac_abs_top_builddir=${ac_top_builddir}.;;
42777*)
42778 case ${ac_top_builddir}. in
42779 .) ac_abs_top_builddir=$ac_abs_builddir;;
42780 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42781 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42782 esac;;
42783esac
42784case $ac_abs_builddir in
42785.) ac_abs_srcdir=$ac_srcdir;;
42786*)
42787 case $ac_srcdir in
42788 .) ac_abs_srcdir=$ac_abs_builddir;;
42789 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42790 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42791 esac;;
42792esac
42793case $ac_abs_builddir in
42794.) ac_abs_top_srcdir=$ac_top_srcdir;;
42795*)
42796 case $ac_top_srcdir in
42797 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42798 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42799 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42800 esac;;
42801esac
a848cd7e
SC
42802
42803
42804 case $INSTALL in
42805 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42806 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42807 esac
42808
a848cd7e
SC
42809 # Let's still pretend it is `configure' which instantiates (i.e., don't
42810 # use $as_me), people would be surprised to read:
42811 # /* config.h. Generated by config.status. */
42812 if test x"$ac_file" = x-; then
42813 configure_input=
42814 else
42815 configure_input="$ac_file. "
42816 fi
42817 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42818 sed 's,.*/,,'` by configure."
a848cd7e
SC
42819
42820 # First look for the input files in the build tree, otherwise in the
42821 # src tree.
42822 ac_file_inputs=`IFS=:
42823 for f in $ac_file_in; do
42824 case $f in
42825 -) echo $tmp/stdin ;;
42826 [\\/$]*)
ac1cb8d3
VS
42827 # Absolute (can't be DOS-style, as IFS=:)
42828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42829echo "$as_me: error: cannot find input file: $f" >&2;}
42830 { (exit 1); exit 1; }; }
ac1cb8d3 42831 echo "$f";;
a848cd7e 42832 *) # Relative
ac1cb8d3
VS
42833 if test -f "$f"; then
42834 # Build tree
42835 echo "$f"
42836 elif test -f "$srcdir/$f"; then
42837 # Source tree
42838 echo "$srcdir/$f"
42839 else
42840 # /dev/null tree
42841 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42842echo "$as_me: error: cannot find input file: $f" >&2;}
42843 { (exit 1); exit 1; }; }
ac1cb8d3 42844 fi;;
a848cd7e
SC
42845 esac
42846 done` || { (exit 1); exit 1; }
d51253e8
RL
42847
42848 if test x"$ac_file" != x-; then
42849 { echo "$as_me:$LINENO: creating $ac_file" >&5
42850echo "$as_me: creating $ac_file" >&6;}
42851 rm -f "$ac_file"
42852 fi
a848cd7e
SC
42853_ACEOF
42854cat >>$CONFIG_STATUS <<_ACEOF
42855 sed "$ac_vpsub
42856$extrasub
42857_ACEOF
42858cat >>$CONFIG_STATUS <<\_ACEOF
42859:t
42860/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42861s,@configure_input@,$configure_input,;t t
42862s,@srcdir@,$ac_srcdir,;t t
42863s,@abs_srcdir@,$ac_abs_srcdir,;t t
42864s,@top_srcdir@,$ac_top_srcdir,;t t
42865s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42866s,@builddir@,$ac_builddir,;t t
42867s,@abs_builddir@,$ac_abs_builddir,;t t
42868s,@top_builddir@,$ac_top_builddir,;t t
42869s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42870s,@INSTALL@,$ac_INSTALL,;t t
42871" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42872 rm -f $tmp/stdin
42873 if test x"$ac_file" != x-; then
42874 mv $tmp/out $ac_file
42875 else
42876 cat $tmp/out
42877 rm -f $tmp/out
42878 fi
42879
ceec2216
RL
42880 # Run the commands associated with the file.
42881 case $ac_file in
42882 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42883 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42884 esac
a848cd7e
SC
42885done
42886_ACEOF
42887cat >>$CONFIG_STATUS <<\_ACEOF
42888
42889#
42890# CONFIG_HEADER section.
42891#
42892
42893# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42894# NAME is the cpp macro being defined and VALUE is the value it is being given.
42895#
42896# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42897ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42898ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42899ac_dC=' '
42900ac_dD=',;t'
42901# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42902ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42903ac_uB='$,\1#\2define\3'
42904ac_uC=' '
42905ac_uD=',;t'
42906
42907for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42909 case $ac_file in
42910 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42911 cat >$tmp/stdin
42912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42916 * ) ac_file_in=$ac_file.in ;;
42917 esac
42918
42919 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42920echo "$as_me: creating $ac_file" >&6;}
42921
42922 # First look for the input files in the build tree, otherwise in the
42923 # src tree.
42924 ac_file_inputs=`IFS=:
42925 for f in $ac_file_in; do
42926 case $f in
42927 -) echo $tmp/stdin ;;
42928 [\\/$]*)
ac1cb8d3
VS
42929 # Absolute (can't be DOS-style, as IFS=:)
42930 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42931echo "$as_me: error: cannot find input file: $f" >&2;}
42932 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42933 # Do quote $f, to prevent DOS paths from being IFS'd.
42934 echo "$f";;
a848cd7e 42935 *) # Relative
ac1cb8d3
VS
42936 if test -f "$f"; then
42937 # Build tree
42938 echo "$f"
42939 elif test -f "$srcdir/$f"; then
42940 # Source tree
42941 echo "$srcdir/$f"
42942 else
42943 # /dev/null tree
42944 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42945echo "$as_me: error: cannot find input file: $f" >&2;}
42946 { (exit 1); exit 1; }; }
ac1cb8d3 42947 fi;;
a848cd7e
SC
42948 esac
42949 done` || { (exit 1); exit 1; }
42950 # Remove the trailing spaces.
ac1cb8d3 42951 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42952
42953_ACEOF
42954
42955# Transform confdefs.h into two sed scripts, `conftest.defines' and
42956# `conftest.undefs', that substitutes the proper values into
42957# config.h.in to produce config.h. The first handles `#define'
42958# templates, and the second `#undef' templates.
42959# And first: Protect against being on the right side of a sed subst in
42960# config.status. Protect against being in an unquoted here document
42961# in config.status.
42962rm -f conftest.defines conftest.undefs
42963# Using a here document instead of a string reduces the quoting nightmare.
42964# Putting comments in sed scripts is not portable.
42965#
42966# `end' is used to avoid that the second main sed command (meant for
42967# 0-ary CPP macros) applies to n-ary macro definitions.
42968# See the Autoconf documentation for `clear'.
42969cat >confdef2sed.sed <<\_ACEOF
42970s/[\\&,]/\\&/g
42971s,[\\$`],\\&,g
42972t clear
42973: clear
ac1cb8d3 42974s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42975t end
ac1cb8d3 42976s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42977: end
42978_ACEOF
42979# If some macros were called several times there might be several times
42980# the same #defines, which is useless. Nevertheless, we may not want to
42981# sort them, since we want the *last* AC-DEFINE to be honored.
42982uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42983sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42984rm -f confdef2sed.sed
42985
42986# This sed command replaces #undef with comments. This is necessary, for
42987# example, in the case of _POSIX_SOURCE, which is predefined and required
42988# on some systems where configure will not decide to define it.
42989cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42990s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42991_ACEOF
42992
42993# Break up conftest.defines because some shells have a limit on the size
42994# of here documents, and old seds have small limits too (100 cmds).
42995echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42996echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42997echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42998echo ' :' >>$CONFIG_STATUS
42999rm -f conftest.tail
43000while grep . conftest.defines >/dev/null
43001do
43002 # Write a limited-size here document to $tmp/defines.sed.
43003 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43004 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43005 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43006 # Work around the forget-to-reset-the-flag bug.
43007 echo 't clr' >>$CONFIG_STATUS
43008 echo ': clr' >>$CONFIG_STATUS
43009 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43010 echo 'CEOF
43011 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43012 rm -f $tmp/in
43013 mv $tmp/out $tmp/in
43014' >>$CONFIG_STATUS
43015 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43016 rm -f conftest.defines
43017 mv conftest.tail conftest.defines
43018done
43019rm -f conftest.defines
43020echo ' fi # grep' >>$CONFIG_STATUS
43021echo >>$CONFIG_STATUS
43022
43023# Break up conftest.undefs because some shells have a limit on the size
43024# of here documents, and old seds have small limits too (100 cmds).
43025echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43026rm -f conftest.tail
43027while grep . conftest.undefs >/dev/null
43028do
43029 # Write a limited-size here document to $tmp/undefs.sed.
43030 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43031 # Speed up: don't consider the non `#undef'
ac1cb8d3 43032 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43033 # Work around the forget-to-reset-the-flag bug.
43034 echo 't clr' >>$CONFIG_STATUS
43035 echo ': clr' >>$CONFIG_STATUS
43036 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43037 echo 'CEOF
43038 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43039 rm -f $tmp/in
43040 mv $tmp/out $tmp/in
43041' >>$CONFIG_STATUS
43042 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43043 rm -f conftest.undefs
43044 mv conftest.tail conftest.undefs
43045done
43046rm -f conftest.undefs
43047
43048cat >>$CONFIG_STATUS <<\_ACEOF
43049 # Let's still pretend it is `configure' which instantiates (i.e., don't
43050 # use $as_me), people would be surprised to read:
43051 # /* config.h. Generated by config.status. */
43052 if test x"$ac_file" = x-; then
43053 echo "/* Generated by configure. */" >$tmp/config.h
43054 else
43055 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43056 fi
43057 cat $tmp/in >>$tmp/config.h
43058 rm -f $tmp/in
43059 if test x"$ac_file" != x-; then
43060 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43061 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43062echo "$as_me: $ac_file is unchanged" >&6;}
43063 else
43064 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43065$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43066 X"$ac_file" : 'X\(//\)[^/]' \| \
43067 X"$ac_file" : 'X\(//\)$' \| \
43068 X"$ac_file" : 'X\(/\)' \| \
43069 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43070echo X"$ac_file" |
43071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43073 /^X\(\/\/\)$/{ s//\1/; q; }
43074 /^X\(\/\).*/{ s//\1/; q; }
43075 s/.*/./; q'`
43076 { if $as_mkdir_p; then
43077 mkdir -p "$ac_dir"
43078 else
43079 as_dir="$ac_dir"
43080 as_dirs=
43081 while test ! -d "$as_dir"; do
43082 as_dirs="$as_dir $as_dirs"
43083 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43085 X"$as_dir" : 'X\(//\)[^/]' \| \
43086 X"$as_dir" : 'X\(//\)$' \| \
43087 X"$as_dir" : 'X\(/\)' \| \
43088 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43089echo X"$as_dir" |
43090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43092 /^X\(\/\/\)$/{ s//\1/; q; }
43093 /^X\(\/\).*/{ s//\1/; q; }
43094 s/.*/./; q'`
43095 done
43096 test ! -n "$as_dirs" || mkdir $as_dirs
43097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43098echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43099 { (exit 1); exit 1; }; }; }
43100
43101 rm -f $ac_file
43102 mv $tmp/config.h $ac_file
43103 fi
43104 else
43105 cat $tmp/config.h
43106 rm -f $tmp/config.h
43107 fi
43108done
43109_ACEOF
43110cat >>$CONFIG_STATUS <<\_ACEOF
43111
43112#
43113# CONFIG_COMMANDS section.
43114#
43115for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43116 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43117 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43118 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43119$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43120 X"$ac_dest" : 'X\(//\)[^/]' \| \
43121 X"$ac_dest" : 'X\(//\)$' \| \
43122 X"$ac_dest" : 'X\(/\)' \| \
43123 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43124echo X"$ac_dest" |
43125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43127 /^X\(\/\/\)$/{ s//\1/; q; }
43128 /^X\(\/\).*/{ s//\1/; q; }
43129 s/.*/./; q'`
ac1cb8d3
VS
43130 { if $as_mkdir_p; then
43131 mkdir -p "$ac_dir"
43132 else
43133 as_dir="$ac_dir"
43134 as_dirs=
43135 while test ! -d "$as_dir"; do
43136 as_dirs="$as_dir $as_dirs"
43137 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43139 X"$as_dir" : 'X\(//\)[^/]' \| \
43140 X"$as_dir" : 'X\(//\)$' \| \
43141 X"$as_dir" : 'X\(/\)' \| \
43142 . : '\(.\)' 2>/dev/null ||
43143echo X"$as_dir" |
43144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43146 /^X\(\/\/\)$/{ s//\1/; q; }
43147 /^X\(\/\).*/{ s//\1/; q; }
43148 s/.*/./; q'`
43149 done
43150 test ! -n "$as_dirs" || mkdir $as_dirs
43151 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43152echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43153 { (exit 1); exit 1; }; }; }
43154
a848cd7e
SC
43155 ac_builddir=.
43156
43157if test "$ac_dir" != .; then
43158 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43159 # A "../" for each directory in $ac_dir_suffix.
43160 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43161else
43162 ac_dir_suffix= ac_top_builddir=
43163fi
43164
43165case $srcdir in
43166 .) # No --srcdir option. We are building in place.
43167 ac_srcdir=.
43168 if test -z "$ac_top_builddir"; then
43169 ac_top_srcdir=.
43170 else
43171 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43172 fi ;;
43173 [\\/]* | ?:[\\/]* ) # Absolute path.
43174 ac_srcdir=$srcdir$ac_dir_suffix;
43175 ac_top_srcdir=$srcdir ;;
43176 *) # Relative path.
43177 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43178 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43179esac
ac1cb8d3
VS
43180
43181# Do not use `cd foo && pwd` to compute absolute paths, because
43182# the directories may not exist.
43183case `pwd` in
43184.) ac_abs_builddir="$ac_dir";;
43185*)
43186 case "$ac_dir" in
43187 .) ac_abs_builddir=`pwd`;;
43188 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43189 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43190 esac;;
43191esac
43192case $ac_abs_builddir in
43193.) ac_abs_top_builddir=${ac_top_builddir}.;;
43194*)
43195 case ${ac_top_builddir}. in
43196 .) ac_abs_top_builddir=$ac_abs_builddir;;
43197 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43198 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43199 esac;;
43200esac
43201case $ac_abs_builddir in
43202.) ac_abs_srcdir=$ac_srcdir;;
43203*)
43204 case $ac_srcdir in
43205 .) ac_abs_srcdir=$ac_abs_builddir;;
43206 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43207 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43208 esac;;
43209esac
43210case $ac_abs_builddir in
43211.) ac_abs_top_srcdir=$ac_top_srcdir;;
43212*)
43213 case $ac_top_srcdir in
43214 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43215 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43216 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43217 esac;;
43218esac
a848cd7e
SC
43219
43220
43221 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43222echo "$as_me: executing $ac_dest commands" >&6;}
43223 case $ac_dest in
ceec2216
RL
43224 wx-config ) rm -f wx-config
43225 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43226 ;;
a848cd7e
SC
43227 esac
43228done
43229_ACEOF
43230
43231cat >>$CONFIG_STATUS <<\_ACEOF
43232
43233{ (exit 0); exit 0; }
43234_ACEOF
43235chmod +x $CONFIG_STATUS
43236ac_clean_files=$ac_clean_files_save
43237
43238
43239# configure is writing to config.log, and then calls config.status.
43240# config.status does its own redirection, appending to config.log.
43241# Unfortunately, on DOS this fails, as config.log is still kept open
43242# by configure, so config.status won't be able to write to it; its
43243# output is simply discarded. So we exec the FD to /dev/null,
43244# effectively closing config.log, so it can be properly (re)opened and
43245# appended to by config.status. When coming back to configure, we
43246# need to make the FD available again.
43247if test "$no_create" != yes; then
43248 ac_cs_success=:
43249 ac_config_status_args=
43250 test "$silent" = yes &&
43251 ac_config_status_args="$ac_config_status_args --quiet"
43252 exec 5>/dev/null
43253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43254 exec 5>>config.log
43255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43256 # would make configure fail if this is the last instruction.
43257 $ac_cs_success || { (exit 1); exit 1; }
43258fi
43259
43260#
43261# CONFIG_SUBDIRS section.
43262#
43263if test "$no_recursion" != yes; then
43264
43265 # Remove --cache-file and --srcdir arguments so they do not pile up.
43266 ac_sub_configure_args=
43267 ac_prev=
43268 for ac_arg in $ac_configure_args; do
43269 if test -n "$ac_prev"; then
43270 ac_prev=
43271 continue
43272 fi
43273 case $ac_arg in
43274 -cache-file | --cache-file | --cache-fil | --cache-fi \
43275 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43276 ac_prev=cache_file ;;
43277 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43278 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43279 | --c=*)
43280 ;;
43281 --config-cache | -C)
43282 ;;
43283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43284 ac_prev=srcdir ;;
43285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43286 ;;
43287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43288 ac_prev=prefix ;;
43289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43290 ;;
43291 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43292 esac
43293 done
43294
43295 # Always prepend --prefix to ensure using the same prefix
43296 # in subdir configurations.
43297 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43298
43299 ac_popdir=`pwd`
43300 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43301
43302 # Do not complain, so a configure script can configure whichever
43303 # parts of a large source tree are present.
43304 test -d $srcdir/$ac_dir || continue
43305
43306 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43307echo "$as_me: configuring in $ac_dir" >&6;}
43308 { if $as_mkdir_p; then
43309 mkdir -p "$ac_dir"
43310 else
43311 as_dir="$ac_dir"
43312 as_dirs=
43313 while test ! -d "$as_dir"; do
43314 as_dirs="$as_dir $as_dirs"
43315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43317 X"$as_dir" : 'X\(//\)[^/]' \| \
43318 X"$as_dir" : 'X\(//\)$' \| \
43319 X"$as_dir" : 'X\(/\)' \| \
43320 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43321echo X"$as_dir" |
43322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43324 /^X\(\/\/\)$/{ s//\1/; q; }
43325 /^X\(\/\).*/{ s//\1/; q; }
43326 s/.*/./; q'`
43327 done
43328 test ! -n "$as_dirs" || mkdir $as_dirs
43329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43330echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43331 { (exit 1); exit 1; }; }; }
43332
43333 ac_builddir=.
43334
43335if test "$ac_dir" != .; then
43336 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43337 # A "../" for each directory in $ac_dir_suffix.
43338 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43339else
43340 ac_dir_suffix= ac_top_builddir=
43341fi
43342
43343case $srcdir in
43344 .) # No --srcdir option. We are building in place.
43345 ac_srcdir=.
43346 if test -z "$ac_top_builddir"; then
43347 ac_top_srcdir=.
43348 else
43349 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43350 fi ;;
43351 [\\/]* | ?:[\\/]* ) # Absolute path.
43352 ac_srcdir=$srcdir$ac_dir_suffix;
43353 ac_top_srcdir=$srcdir ;;
43354 *) # Relative path.
43355 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43356 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43357esac
ac1cb8d3
VS
43358
43359# Do not use `cd foo && pwd` to compute absolute paths, because
43360# the directories may not exist.
43361case `pwd` in
43362.) ac_abs_builddir="$ac_dir";;
43363*)
43364 case "$ac_dir" in
43365 .) ac_abs_builddir=`pwd`;;
43366 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43367 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43368 esac;;
43369esac
43370case $ac_abs_builddir in
43371.) ac_abs_top_builddir=${ac_top_builddir}.;;
43372*)
43373 case ${ac_top_builddir}. in
43374 .) ac_abs_top_builddir=$ac_abs_builddir;;
43375 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43376 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43377 esac;;
43378esac
43379case $ac_abs_builddir in
43380.) ac_abs_srcdir=$ac_srcdir;;
43381*)
43382 case $ac_srcdir in
43383 .) ac_abs_srcdir=$ac_abs_builddir;;
43384 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43385 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43386 esac;;
43387esac
43388case $ac_abs_builddir in
43389.) ac_abs_top_srcdir=$ac_top_srcdir;;
43390*)
43391 case $ac_top_srcdir in
43392 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43393 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43394 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43395 esac;;
43396esac
a848cd7e
SC
43397
43398
43399 cd $ac_dir
43400
43401 # Check for guested configure; otherwise get Cygnus style configure.
43402 if test -f $ac_srcdir/configure.gnu; then
43403 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43404 elif test -f $ac_srcdir/configure; then
43405 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43406 elif test -f $ac_srcdir/configure.in; then
43407 ac_sub_configure=$ac_configure
43408 else
43409 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43410echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43411 ac_sub_configure=
43412 fi
43413
43414 # The recursion is here.
43415 if test -n "$ac_sub_configure"; then
43416 # Make the cache file name correct relative to the subdirectory.
43417 case $cache_file in
43418 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43419 *) # Relative path.
ac1cb8d3 43420 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43421 esac
43422
43423 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43424echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43425 # The eval makes quoting arguments work.
43426 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43427 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43428 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43429echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43430 { (exit 1); exit 1; }; }
43431 fi
43432
d51253e8 43433 cd "$ac_popdir"
a848cd7e
SC
43434 done
43435fi
43436
43437
43438echo
77ffb593 43439echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43440echo ""
4d4ff94c 43441echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43442echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43443
77ffb593
JS
43444echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43445echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43446echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43447
77ffb593
JS
43448echo " What level of wxWidgets compatibility should be enabled?"
43449echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43450echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43451
77ffb593 43452echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43453echo " jpeg ${wxUSE_LIBJPEG-none}"
43454echo " png ${wxUSE_LIBPNG-none}"
43455echo " regex ${wxUSE_REGEX}"
43456echo " tiff ${wxUSE_LIBTIFF-none}"
43457if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43458echo " xpm ${wxUSE_LIBXPM-none}"
43459fi
43460echo " zlib ${wxUSE_ZLIB}"
43461echo " odbc ${wxUSE_ODBC}"
43462echo " expat ${wxUSE_EXPAT}"
43463echo " libmspack ${wxUSE_LIBMSPACK}"
43464echo " sdl ${wxUSE_LIBSDL}"
d1c38808 43465echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}"
a848cd7e
SC
43466
43467echo ""
43468