]> git.saurik.com Git - wxWidgets.git/blame - configure
Correct orientation of splitter sash again.
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
81f90336 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
81f90336
MW
273PACKAGE_VERSION='2.5.4'
274PACKAGE_STRING='wxWidgets 2.5.4'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
0b78747f 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
81f90336 797\`configure' configures wxWidgets 2.5.4 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
81f90336 863 short | recursive ) echo "Configuration of wxWidgets 2.5.4:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
07158944 929 --enable-stdpaths use wxStandardPaths class
a848cd7e 930 --enable-stopwatch use wxStopWatch class
07158944 931 --enable-streams use wxStream etc classes
a848cd7e
SC
932 --enable-sysoptions use wxSystemOptions
933 --enable-textbuf use wxTextBuffer class
934 --enable-textfile use wxTextFile class
935 --enable-timer use wxTimer class
936 --enable-unicode compile wxString with Unicode support
937 --enable-sound use wxSound class
3b57de8b 938 --enable-mediactrl use wxMediaCtrl class
77ffb593 939 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 940 --enable-zipstream use wxZip streams
a848cd7e
SC
941 --enable-url use wxURL class
942 --enable-protocol use wxProtocol class
943 --enable-protocol-http HTTP support in wxProtocol
944 --enable-protocol-ftp FTP support in wxProtocol
945 --enable-protocol-file FILE support in wxProtocol
946 --enable-threads use threads
947 --enable-docview use document view architecture
948 --enable-help use help subsystem
949 --enable-mshtmlhelp use MS HTML Help (win32)
950 --enable-html use wxHTML sub-library
951 --enable-htmlhelp use wxHTML-based help
9a8f0513 952 --enable-xrc use XRC resources sub-library
a848cd7e
SC
953 --enable-constraints use layout-constraints system
954 --enable-printarch use printing architecture
955 --enable-mdi use multiple document interface architecture
8a7b1113 956 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
957 --enable-loggui use standard GUI logger
958 --enable-logwin use wxLogWindow
959 --enable-logdialog use wxLogDialog
646b6ec1 960 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
961 --enable-postscript use wxPostscriptDC device context (default for gtk+)
962 --enable-prologio not available; see contrib
963 --enable-resources not available; see contrib
964 --enable-clipboard use wxClipboard class
965 --enable-dnd use Drag'n'Drop classes
966 --enable-metafile use win32 metafiles
967 --enable-controls use all usual controls
968 --enable-accel use accelerators
969 --enable-button use wxButton class
970 --enable-bmpbutton use wxBitmapButton class
971 --enable-calendar use wxCalendarCtrl class
972 --enable-caret use wxCaret class
973 --enable-checkbox use wxCheckBox class
974 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
975 --enable-choice use wxChoice class
92bbdbcd 976 --enable-choicebook use wxChoicebook class
a848cd7e 977 --enable-combobox use wxComboBox class
da98e9be 978 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
979 --enable-display use wxDisplay class
980 --enable-gauge use wxGauge class
981 --enable-grid use wxGrid class
982 --enable-imaglist use wxImageList class
983 --enable-listbook use wxListbook class
984 --enable-listbox use wxListBox class
985 --enable-listctrl use wxListCtrl class
986 --enable-notebook use wxNotebook class
987 --enable-radiobox use wxRadioBox class
988 --enable-radiobtn use wxRadioButton class
989 --enable-sash use wxSashWindow class
990 --enable-scrollbar use wxScrollBar class and scrollable windows
991 --enable-slider use wxSlider class
992 --enable-spinbtn use wxSpinButton class
993 --enable-spinctrl use wxSpinCtrl class
994 --enable-splitter use wxSplitterWindow class
995 --enable-statbmp use wxStaticBitmap class
996 --enable-statbox use wxStaticBox class
997 --enable-statline use wxStaticLine class
998 --enable-stattext use wxStaticText class
999 --enable-statusbar use wxStatusBar class
1000 --enable-tabdialog use wxTabControl class
1001 --enable-textctrl use wxTextCtrl class
1002 --enable-togglebtn use wxToggleButton class
1003 --enable-toolbar use wxToolBar class
1004 --enable-tbarnative use native wxToolBar class
1005 --enable-tbarsmpl use wxToolBarSimple class
1006 --enable-treectrl use wxTreeCtrl class
1007 --enable-tipwindow use wxTipWindow class
1008 --enable-popupwin use wxPopUpWindow class
1009 --enable-commondlg use all common dialogs
1010 --enable-choicedlg use wxChoiceDialog
1011 --enable-coldlg use wxColourDialog
1012 --enable-filedlg use wxFileDialog
1013 --enable-finddlg use wxFindReplaceDialog
1014 --enable-fontdlg use wxFontDialog
1015 --enable-dirdlg use wxDirDialog
1016 --enable-msgdlg use wxMessageDialog
1017 --enable-numberdlg use wxNumberEntryDialog
1018 --enable-splash use wxSplashScreen
1019 --enable-textdlg use wxTextDialog
1020 --enable-tipdlg use startup tips
1021 --enable-progressdlg use wxProgressDialog
1022 --enable-wizarddlg use wxWizard
1023 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1024 --enable-miniframe use wxMiniFrame class
1025 --enable-tooltips use wxToolTip class
1026 --enable-splines use spline drawing code
1027 --enable-validators use wxValidator and derived classes
1028 --enable-busyinfo use wxBusyInfo
4cb1d3da 1029 --enable-joystick use wxJoystick
a848cd7e
SC
1030 --enable-metafiles use wxMetaFile (Windows only)
1031 --enable-dragimage use wxDragImage
1032 --enable-accessibility enable accessibility support
1033 --enable-palette use wxPalette class
1034 --enable-image use wxImage class
1035 --enable-gif use gif images (GIF file format)
1036 --enable-pcx use pcx images (PCX file format)
1037 --enable-iff use iff images (IFF file format)
1038 --enable-pnm use pnm images (PNM file format)
1039 --enable-xpm use xpm images (XPM file format)
1040 --enable-icocur use Windows ICO and CUR formats
77ffb593 1041 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1042 --enable-vendor=VENDOR vendor name (win32 DLL only)
1043 --disable-largefile omit support for large files
1044 --disable-gtktest do not try to compile and run a test GTK+ program
1045 --disable-gtktest Do not try to compile and run a test GTK program
1046 --disable-sdltest Do not try to compile and run a test SDL program
1047 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1048 --disable-precomp-headers
1049 don't use precompiled headers even if compiler can
a848cd7e
SC
1050
1051Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-gtk use GTK+
1055 --with-motif use Motif/Lesstif
1056 --with-mac use Mac OS X
1057 --with-cocoa use Cocoa
1058 --with-wine use Wine
1059 --with-msw use MS-Windows
1060 --with-pm use OS/2 Presentation Manager
1061 --with-mgl use SciTech MGL
1062 --with-microwin use MicroWindows
1063 --with-x11 use X11
1064 --with-libpng use libpng (PNG image format)
1065 --with-libjpeg use libjpeg (JPEG file format)
1066 --with-libtiff use libtiff (TIFF file format)
1067 --with-libxpm use libxpm (XPM file format)
1068 --with-libmspack use libmspack (CHM help files loading)
1069 --with-sdl use SDL for audio on Unix
d51253e8 1070 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1071 --with-opengl use OpenGL (or Mesa)
1072 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1073 --with-regex enable support for wxRegEx class
1074 --with-zlib use zlib for LZW compression
1075 --with-odbc use the IODBC and wxODBC classes
1076 --with-expat enable XML support using expat parser
ceec2216 1077 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1078 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1079 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1080 --with-x use the X Window System
1081 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1082 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1083 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1084 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1085 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1086
1087Some influential environment variables:
dcc1b6ad
VS
1088 CC C compiler command
1089 CFLAGS C compiler flags
1090 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1091 nonstandard directory <lib dir>
1092 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093 headers in a nonstandard directory <include dir>
1094 CPP C preprocessor
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CXXCPP C++ preprocessor
a848cd7e
SC
1098
1099Use these variables to override the choices made by `configure' or to help
1100it to find libraries and programs with nonstandard names/locations.
1101
77ffb593 1102Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
ac1cb8d3
VS
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
a848cd7e
SC
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1185 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
07158944 1191 cd "$ac_popdir"
a848cd7e
SC
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
81f90336 1198wxWidgets configure 2.5.4
ac1cb8d3 1199generated by GNU Autoconf 2.59
a848cd7e 1200
ac1cb8d3 1201Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1202This configure script is free software; the Free Software Foundation
1203gives unlimited permission to copy, distribute and modify it.
1204_ACEOF
1205 exit 0
1206fi
1207exec 5>config.log
1208cat >&5 <<_ACEOF
1209This file contains any messages produced by compilers while
1210running configure, to aid debugging if configure makes a mistake.
1211
81f90336 1212It was created by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 1213generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1214
1215 $ $0 $@
1216
1217_ACEOF
1218{
1219cat <<_ASUNAME
1220## --------- ##
1221## Platform. ##
1222## --------- ##
1223
1224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228uname -v = `(uname -v) 2>/dev/null || echo unknown`
1229
1230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1231/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1232
1233/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1234/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1236hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1237/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1238/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1239/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1240
1241_ASUNAME
1242
1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244for as_dir in $PATH
1245do
1246 IFS=$as_save_IFS
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1249done
1250
1251} >&5
1252
1253cat >&5 <<_ACEOF
1254
1255
1256## ----------- ##
1257## Core tests. ##
1258## ----------- ##
1259
1260_ACEOF
1261
1262
1263# Keep a trace of the command line.
1264# Strip out --no-create and --no-recursion so they do not pile up.
1265# Strip out --silent because we don't want to record it for future runs.
1266# Also quote any args containing shell meta-characters.
1267# Make two passes to allow for proper duplicate-argument suppression.
1268ac_configure_args=
1269ac_configure_args0=
1270ac_configure_args1=
1271ac_sep=
1272ac_must_keep_next=false
1273for ac_pass in 1 2
1274do
1275 for ac_arg
1276 do
1277 case $ac_arg in
1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 continue ;;
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 esac
1285 case $ac_pass in
1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1287 2)
1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1289 if test $ac_must_keep_next = true; then
ac1cb8d3 1290 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1291 else
ac1cb8d3
VS
1292 case $ac_arg in
1293 *=* | --config-cache | -C | -disable-* | --disable-* \
1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1296 | -with-* | --with-* | -without-* | --without-* | --x)
1297 case "$ac_configure_args0 " in
1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1299 esac
1300 ;;
1301 -* ) ac_must_keep_next=true ;;
1302 esac
a848cd7e
SC
1303 fi
1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305 # Get rid of the leading space.
1306 ac_sep=" "
1307 ;;
1308 esac
1309 done
1310done
1311$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1312$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1313
1314# When interrupted or exit'd, cleanup temporary files, and complete
1315# config.log. We remove comments because anyway the quotes in there
1316# would cause problems or look ugly.
1317# WARNING: Be sure not to use single quotes in there, as some shells,
1318# such as our DU 5.0 friend, will then `close' the trap.
1319trap 'exit_status=$?
1320 # Save into config.log some information that might help in debugging.
1321 {
1322 echo
1323
1324 cat <<\_ASBOX
1325## ---------------- ##
1326## Cache variables. ##
1327## ---------------- ##
1328_ASBOX
1329 echo
1330 # The following way of writing the cache mishandles newlines in values,
1331{
1332 (set) 2>&1 |
1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1334 *ac_space=\ *)
1335 sed -n \
ac1cb8d3
VS
1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1338 ;;
1339 *)
1340 sed -n \
ac1cb8d3 1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1342 ;;
1343 esac;
1344}
1345 echo
1346
1347 cat <<\_ASBOX
1348## ----------------- ##
1349## Output variables. ##
1350## ----------------- ##
1351_ASBOX
1352 echo
1353 for ac_var in $ac_subst_vars
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359
1360 if test -n "$ac_subst_files"; then
1361 cat <<\_ASBOX
1362## ------------- ##
1363## Output files. ##
1364## ------------- ##
1365_ASBOX
1366 echo
1367 for ac_var in $ac_subst_files
1368 do
1369 eval ac_val=$`echo $ac_var`
ac1cb8d3 1370 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1371 done | sort
1372 echo
1373 fi
1374
1375 if test -s confdefs.h; then
1376 cat <<\_ASBOX
1377## ----------- ##
1378## confdefs.h. ##
1379## ----------- ##
1380_ASBOX
1381 echo
1382 sed "/^$/d" confdefs.h | sort
1383 echo
1384 fi
1385 test "$ac_signal" != 0 &&
1386 echo "$as_me: caught signal $ac_signal"
1387 echo "$as_me: exit $exit_status"
1388 } >&5
ac1cb8d3 1389 rm -f core *.core &&
a848cd7e
SC
1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1391 exit $exit_status
1392 ' 0
1393for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395done
1396ac_signal=0
1397
1398# confdefs.h avoids OS command line length limits that DEFS can exceed.
1399rm -rf conftest* confdefs.h
1400# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1401echo >confdefs.h
1402
1403# Predefined preprocessor variables.
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_NAME "$PACKAGE_NAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_VERSION "$PACKAGE_VERSION"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_STRING "$PACKAGE_STRING"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1427_ACEOF
1428
1429
1430# Let the site file select an alternate cache file if it wants to.
1431# Prefer explicitly selected file to automatically selected ones.
1432if test -z "$CONFIG_SITE"; then
1433 if test "x$prefix" != xNONE; then
1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1435 else
1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1437 fi
1438fi
1439for ac_site_file in $CONFIG_SITE; do
1440 if test -r "$ac_site_file"; then
1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1442echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1444 . "$ac_site_file"
1445 fi
1446done
1447
1448if test -r "$cache_file"; then
1449 # Some versions of bash will fail to source /dev/null (special
1450 # files actually), so we avoid doing that.
1451 if test -f "$cache_file"; then
1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1453echo "$as_me: loading cache $cache_file" >&6;}
1454 case $cache_file in
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1457 esac
1458 fi
1459else
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461echo "$as_me: creating cache $cache_file" >&6;}
1462 >$cache_file
1463fi
1464
1465# Check that the precious variables saved in the cache have kept the same
1466# value.
1467ac_cache_corrupted=false
1468for ac_var in `(set) 2>&1 |
ac1cb8d3 1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1471 eval ac_new_set=\$ac_env_${ac_var}_set
1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1473 eval ac_new_val="\$ac_env_${ac_var}_value"
1474 case $ac_old_set,$ac_new_set in
1475 set,)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,set)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,);;
1484 *)
1485 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1489echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1491echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1492 ac_cache_corrupted=:
a848cd7e
SC
1493 fi;;
1494 esac
1495 # Pass precious variables to config.status.
1496 if test "$ac_new_set" = set; then
1497 case $ac_new_val in
1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 *) ac_arg=$ac_var=$ac_new_val ;;
1501 esac
1502 case " $ac_configure_args " in
1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1505 esac
1506 fi
1507done
1508if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1512echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551ac_aux_dir=
1552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553 if test -f $ac_dir/install-sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install-sh -c"
1556 break
1557 elif test -f $ac_dir/install.sh; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/install.sh -c"
1560 break
1561 elif test -f $ac_dir/shtool; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/shtool install -c"
1564 break
1565 fi
1566done
1567if test -z "$ac_aux_dir"; then
1568 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570 { (exit 1); exit 1; }; }
1571fi
1572ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575
1576# Make sure we can run config.sub.
1577$ac_config_sub sun4 >/dev/null 2>&1 ||
1578 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582echo "$as_me:$LINENO: checking build system type" >&5
1583echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584if test "${ac_cv_build+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 ac_cv_build_alias=$build_alias
1588test -z "$ac_cv_build_alias" &&
1589 ac_cv_build_alias=`$ac_config_guess`
1590test -z "$ac_cv_build_alias" &&
1591 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593 { (exit 1); exit 1; }; }
1594ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601echo "${ECHO_T}$ac_cv_build" >&6
1602build=$ac_cv_build
1603build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking host system type" >&5
1609echo $ECHO_N "checking host system type... $ECHO_C" >&6
1610if test "${ac_cv_host+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_host_alias=$host_alias
1614test -z "$ac_cv_host_alias" &&
1615 ac_cv_host_alias=$ac_cv_build_alias
1616ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1623echo "${ECHO_T}$ac_cv_host" >&6
1624host=$ac_cv_host
1625host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630echo "$as_me:$LINENO: checking target system type" >&5
1631echo $ECHO_N "checking target system type... $ECHO_C" >&6
1632if test "${ac_cv_target+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_target_alias=$target_alias
1636test "x$ac_cv_target_alias" = "x" &&
1637 ac_cv_target_alias=$ac_cv_host_alias
1638ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1645echo "${ECHO_T}$ac_cv_target" >&6
1646target=$ac_cv_target
1647target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652# The aliases save the names the user supplied, while $host etc.
1653# will get canonicalized.
1654test -n "$target_alias" &&
1655 test "$program_prefix$program_suffix$program_transform_name" = \
1656 NONENONEs,x,x, &&
1657 program_prefix=${target_alias}-
1658
1659
1660
ceec2216
RL
1661wx_major_version_number=2
1662wx_minor_version_number=5
e41c39d6 1663wx_release_number=4
2da0c077 1664wx_subrelease_number=1
a848cd7e 1665
ceec2216
RL
1666WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1667WX_VERSION=$WX_RELEASE.$wx_release_number
1668WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1669
ceec2216 1670WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1671
e41c39d6 1672WX_CURRENT=4
a848cd7e 1673WX_REVISION=0
e41c39d6 1674WX_AGE=4
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
1727case "${host}" in
1728 *-hp-hpux* )
1729 USE_HPUX=1
1730 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1732 SO_SUFFIX=sl
1733 cat >>confdefs.h <<\_ACEOF
1734#define __HPUX__ 1
1735_ACEOF
1736
1737 ;;
1738 *-*-linux* )
1739 USE_LINUX=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __LINUX__ 1
1742_ACEOF
1743
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-gnu* | *-*-k*bsd*-gnu )
1755 USE_GNU=1
1756 TMP=`uname -m`
1757 if test "x$TMP" = "xalpha"; then
1758 USE_ALPHA=1
1759 cat >>confdefs.h <<\_ACEOF
1760#define __ALPHA__ 1
1761_ACEOF
1762
1763 fi
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-irix5* | *-*-irix6* )
1767 USE_SGI=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SGI__ 1
1771_ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SVR4__ 1
1775_ACEOF
1776
1777 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1778 ;;
1779 *-*-solaris2* )
1780 USE_SUN=1
1781 USE_SOLARIS=1
1782 USE_SVR4=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SUN__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SOLARIS__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SVR4__ 1
1793_ACEOF
1794
1795 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1796 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1797 ;;
1798 *-*-sunos4* )
1799 USE_SUN=1
1800 USE_SUNOS=1
1801 USE_BSD=1
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUN__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUNOS__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1815 ;;
1816 *-*-freebsd*)
1817 USE_BSD=1
1818 USE_FREEBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __FREEBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-openbsd*)
1830 USE_BSD=1
1831 USE_OPENBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __OPENBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-netbsd*)
1843 USE_BSD=1
1844 USE_NETBSD=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __NETBSD__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __BSD__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_GTK=1
1854 ;;
1855 *-*-osf* )
1856 USE_ALPHA=1
1857 USE_OSF=1
1858 cat >>confdefs.h <<\_ACEOF
1859#define __ALPHA__ 1
1860_ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863#define __OSF__ 1
1864_ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1868 ;;
1869 *-*-dgux5* )
1870 USE_ALPHA=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __ALPHA__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-sysv5* )
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SYSV__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SVR4__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 ;;
1895 *-*-aix* )
1896 USE_AIX=1
1897 USE_SYSV=1
1898 USE_SVR4=1
1899 SO_SUFFIX=a
1900 cat >>confdefs.h <<\_ACEOF
1901#define __AIX__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SYSV__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SVR4__ 1
1910_ACEOF
1911
1912 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1913 ;;
1914
1915 *-*-*UnixWare*)
1916 USE_SYSV=1
1917 USE_SVR4=1
1918 USE_UNIXWARE=1
1919 cat >>confdefs.h <<\_ACEOF
1920#define __UNIXWARE__ 1
1921_ACEOF
1922
1923 ;;
1924
1925 *-*-cygwin* | *-*-mingw32* )
1926 SO_SUFFIX=dll
1927 PROGRAM_EXT=".exe"
1928 RESCOMP=windres
1929 DEFAULT_DEFAULT_wxUSE_MSW=1
1930 ;;
1931
1932 *-pc-msdosdjgpp )
1933 USE_UNIX=0
1934 USE_DOS=1
1935 cat >>confdefs.h <<\_ACEOF
1936#define __DOS__ 1
1937_ACEOF
1938
1939 PROGRAM_EXT=".exe"
1940 DEFAULT_DEFAULT_wxUSE_MGL=1
1941 LIBS="$LIBS -lstdc++"
1942 ;;
1943
1944 *-pc-os2_emx | *-pc-os2-emx )
1945 cat >>confdefs.h <<\_ACEOF
1946#define __EMX__ 1
1947_ACEOF
1948
1949 USE_OS2=1
1950 cat >>confdefs.h <<\_ACEOF
1951#define __OS2__ 1
1952_ACEOF
1953
1954 PROGRAM_EXT=".exe"
1955 DEFAULT_DEFAULT_wxUSE_PM=1
1956 CXX=gcc
1957 LDFLAGS="$LDFLAGS -Zcrtdll"
1958 ac_executable_extensions=".exe"
1959 export ac_executable_extensions
1960 ac_save_IFS="$IFS"
1961 IFS='\\'
1962 ac_TEMP_PATH=
1963 for ac_dir in $PATH; do
1964 IFS=$ac_save_IFS
1965 if test -z "$ac_TEMP_PATH"; then
1966 ac_TEMP_PATH="$ac_dir"
1967 else
1968 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1969 fi
1970 done
1971 export PATH="$ac_TEMP_PATH"
1972 unset ac_TEMP_PATH
1973 ;;
1974
1975 powerpc-*-darwin* )
1976 USE_BSD=1
1977 USE_DARWIN=1
1978 SO_SUFFIX=dylib
1979 cat >>confdefs.h <<\_ACEOF
1980#define __BSD__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __DARWIN__ 1
a848cd7e
SC
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2074 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2075 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076 DEFAULT_wxUSE_STD_IOSTREAM=no
2077 DEFAULT_wxUSE_CMDLINE_PARSER=no
2078 DEFAULT_wxUSE_DATETIME=no
2079 DEFAULT_wxUSE_TIMER=no
2080 DEFAULT_wxUSE_STOPWATCH=no
2081 DEFAULT_wxUSE_FILE=no
2082 DEFAULT_wxUSE_FFILE=no
07158944 2083 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2084 DEFAULT_wxUSE_TEXTBUFFER=no
2085 DEFAULT_wxUSE_TEXTFILE=no
2086 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2087 DEFAULT_wxUSE_MEDIACTRL=no
2088 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2089 DEFAULT_wxUSE_INTL=no
2090 DEFAULT_wxUSE_CONFIG=no
2091 DEFAULT_wxUSE_FONTMAP=no
2092 DEFAULT_wxUSE_STREAMS=no
2093 DEFAULT_wxUSE_SOCKETS=no
2094 DEFAULT_wxUSE_OLE=no
2095 DEFAULT_wxUSE_DATAOBJ=no
2096 DEFAULT_wxUSE_DIALUP_MANAGER=no
2097 DEFAULT_wxUSE_JOYSTICK=no
2098 DEFAULT_wxUSE_DYNLIB_CLASS=no
2099 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2100 DEFAULT_wxUSE_LONGLONG=no
2101 DEFAULT_wxUSE_GEOMETRY=no
2102
2103 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2104 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2105 DEFAULT_wxUSE_POSTSCRIPT=no
2106
2107 DEFAULT_wxUSE_CLIPBOARD=no
2108 DEFAULT_wxUSE_TOOLTIPS=no
2109 DEFAULT_wxUSE_DRAG_AND_DROP=no
2110 DEFAULT_wxUSE_DRAGIMAGE=no
2111 DEFAULT_wxUSE_SPLINES=no
2112
8a7b1113 2113 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2114 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2115 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2116 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2117
2118 DEFAULT_wxUSE_RESOURCES=no
2119 DEFAULT_wxUSE_CONSTRAINTS=no
2120 DEFAULT_wxUSE_IPC=no
2121 DEFAULT_wxUSE_HELP=no
2122 DEFAULT_wxUSE_MS_HTML_HELP=no
2123 DEFAULT_wxUSE_WXHTML_HELP=no
2124 DEFAULT_wxUSE_TREELAYOUT=no
2125 DEFAULT_wxUSE_METAFILE=no
2126 DEFAULT_wxUSE_MIMETYPE=no
2127 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2128 DEFAULT_wxUSE_PROTOCOL=no
2129 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FTP=no
2131 DEFAULT_wxUSE_PROTOCOL_FILE=no
2132 DEFAULT_wxUSE_URL=no
2133
2134 DEFAULT_wxUSE_COMMONDLGS=no
2135 DEFAULT_wxUSE_CHOICEDLG=no
2136 DEFAULT_wxUSE_COLOURDLG=no
2137 DEFAULT_wxUSE_DIRDLG=no
2138 DEFAULT_wxUSE_FILEDLG=no
2139 DEFAULT_wxUSE_FINDREPLDLG=no
2140 DEFAULT_wxUSE_FONTDLG=no
2141 DEFAULT_wxUSE_MSGDLG=no
2142 DEFAULT_wxUSE_NUMBERDLG=no
2143 DEFAULT_wxUSE_TEXTDLG=no
2144 DEFAULT_wxUSE_SPLASH=no
2145 DEFAULT_wxUSE_STARTUP_TIPS=no
2146 DEFAULT_wxUSE_PROGRESSDLG=no
2147 DEFAULT_wxUSE_WIZARDDLG=no
2148
2149 DEFAULT_wxUSE_MENUS=no
2150 DEFAULT_wxUSE_MINIFRAME=no
2151 DEFAULT_wxUSE_HTML=no
9a8f0513 2152 DEFAULT_wxUSE_XRC=no
646b6ec1 2153 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2154 DEFAULT_wxUSE_FILESYSTEM=no
2155 DEFAULT_wxUSE_FS_INET=no
2156 DEFAULT_wxUSE_FS_ZIP=no
2157 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2158 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2159 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2160 DEFAULT_wxUSE_VALIDATORS=no
2161
2162 DEFAULT_wxUSE_ACCEL=no
2163 DEFAULT_wxUSE_BUTTON=no
2164 DEFAULT_wxUSE_BMPBUTTON=no
2165 DEFAULT_wxUSE_CALCTRL=no
2166 DEFAULT_wxUSE_CARET=no
2167 DEFAULT_wxUSE_CHECKBOX=no
2168 DEFAULT_wxUSE_CHECKLST=no
2169 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2170 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2171 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2172 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2173 DEFAULT_wxUSE_DISPLAY=no
2174 DEFAULT_wxUSE_GAUGE=no
2175 DEFAULT_wxUSE_GRID=no
2176 DEFAULT_wxUSE_IMAGLIST=no
2177 DEFAULT_wxUSE_LISTBOOK=no
2178 DEFAULT_wxUSE_LISTBOX=no
2179 DEFAULT_wxUSE_LISTCTRL=no
2180 DEFAULT_wxUSE_NOTEBOOK=no
2181 DEFAULT_wxUSE_RADIOBOX=no
2182 DEFAULT_wxUSE_RADIOBTN=no
2183 DEFAULT_wxUSE_SASH=no
2184 DEFAULT_wxUSE_SCROLLBAR=no
2185 DEFAULT_wxUSE_SLIDER=no
2186 DEFAULT_wxUSE_SPINBTN=no
2187 DEFAULT_wxUSE_SPINCTRL=no
2188 DEFAULT_wxUSE_SPLITTER=no
2189 DEFAULT_wxUSE_STATBMP=no
2190 DEFAULT_wxUSE_STATBOX=no
2191 DEFAULT_wxUSE_STATLINE=no
2192 DEFAULT_wxUSE_STATTEXT=no
2193 DEFAULT_wxUSE_STATUSBAR=yes
2194 DEFAULT_wxUSE_TABDIALOG=no
2195 DEFAULT_wxUSE_TEXTCTRL=no
2196 DEFAULT_wxUSE_TOGGLEBTN=no
2197 DEFAULT_wxUSE_TOOLBAR=no
2198 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2199 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2200 DEFAULT_wxUSE_TREECTRL=no
2201 DEFAULT_wxUSE_POPUPWIN=no
2202 DEFAULT_wxUSE_TIPWINDOW=no
2203
2204 DEFAULT_wxUSE_UNICODE=no
2205 DEFAULT_wxUSE_UNICODE_MSLU=no
2206 DEFAULT_wxUSE_WCSRTOMBS=no
2207
2208 DEFAULT_wxUSE_PALETTE=no
2209 DEFAULT_wxUSE_IMAGE=no
2210 DEFAULT_wxUSE_GIF=no
2211 DEFAULT_wxUSE_PCX=no
2212 DEFAULT_wxUSE_PNM=no
2213 DEFAULT_wxUSE_IFF=no
2214 DEFAULT_wxUSE_XPM=no
2215 DEFAULT_wxUSE_ICO_CUR=no
2216 DEFAULT_wxUSE_ACCESSIBILITY=no
2217
2218 DEFAULT_wxUSE_MONOLITHIC=no
2219 DEFAULT_wxUSE_PLUGINS=no
2220 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2221else
2222 DEFAULT_wxUSE_UNIVERSAL=no
2223 DEFAULT_wxUSE_STL=no
2224
2225 DEFAULT_wxUSE_NANOX=no
2226
2227 DEFAULT_wxUSE_THREADS=yes
2228
2229 DEFAULT_wxUSE_SHARED=yes
2230 DEFAULT_wxUSE_OPTIMISE=yes
2231 DEFAULT_wxUSE_PROFILE=no
2232 DEFAULT_wxUSE_NO_DEPS=no
2233 DEFAULT_wxUSE_NO_RTTI=no
2234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2235 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2236 DEFAULT_wxUSE_PERMISSIVE=no
2237 DEFAULT_wxUSE_DEBUG_FLAG=no
2238 DEFAULT_wxUSE_DEBUG_INFO=no
2239 DEFAULT_wxUSE_DEBUG_GDB=no
2240 DEFAULT_wxUSE_MEM_TRACING=no
2241 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2242 DEFAULT_wxUSE_DMALLOC=no
2243 DEFAULT_wxUSE_APPLE_IEEE=yes
2244
2245 DEFAULT_wxUSE_EXCEPTIONS=yes
2246 DEFAULT_wxUSE_LOG=yes
2247 DEFAULT_wxUSE_LOGWINDOW=yes
2248 DEFAULT_wxUSE_LOGGUI=yes
2249 DEFAULT_wxUSE_LOGDIALOG=yes
2250
2251 DEFAULT_wxUSE_GUI=yes
2252
2253 DEFAULT_wxUSE_REGEX=yes
2254 DEFAULT_wxUSE_XML=yes
2255 DEFAULT_wxUSE_EXPAT=yes
2256 DEFAULT_wxUSE_ZLIB=yes
2257 DEFAULT_wxUSE_LIBPNG=yes
2258 DEFAULT_wxUSE_LIBJPEG=yes
2259 DEFAULT_wxUSE_LIBTIFF=yes
2260 DEFAULT_wxUSE_LIBXPM=yes
2261 DEFAULT_wxUSE_LIBMSPACK=yes
2262 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2263 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2264 DEFAULT_wxUSE_ODBC=no
2265 DEFAULT_wxUSE_OPENGL=no
2266
2267 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2268 DEFAULT_wxUSE_STACKWALKER=yes
36b6448c 2269 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e
SC
2270 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2271 DEFAULT_wxUSE_STD_IOSTREAM=no
2272 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2273 DEFAULT_wxUSE_DATETIME=yes
2274 DEFAULT_wxUSE_TIMER=yes
2275 DEFAULT_wxUSE_STOPWATCH=yes
2276 DEFAULT_wxUSE_FILE=yes
2277 DEFAULT_wxUSE_FFILE=yes
07158944 2278 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2279 DEFAULT_wxUSE_TEXTBUFFER=yes
2280 DEFAULT_wxUSE_TEXTFILE=yes
2281 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2282 DEFAULT_wxUSE_MEDIACTRL=no
2283 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2284 DEFAULT_wxUSE_INTL=yes
2285 DEFAULT_wxUSE_CONFIG=yes
2286 DEFAULT_wxUSE_FONTMAP=yes
2287 DEFAULT_wxUSE_STREAMS=yes
2288 DEFAULT_wxUSE_SOCKETS=yes
2289 DEFAULT_wxUSE_OLE=yes
2290 DEFAULT_wxUSE_DATAOBJ=yes
2291 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2292 DEFAULT_wxUSE_JOYSTICK=yes
2293 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2294 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2295 DEFAULT_wxUSE_LONGLONG=yes
2296 DEFAULT_wxUSE_GEOMETRY=yes
2297
2298 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2299 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2300 DEFAULT_wxUSE_POSTSCRIPT=yes
2301
2302 DEFAULT_wxUSE_CLIPBOARD=yes
2303 DEFAULT_wxUSE_TOOLTIPS=yes
2304 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2305 DEFAULT_wxUSE_DRAGIMAGE=yes
2306 DEFAULT_wxUSE_SPLINES=yes
2307
8a7b1113 2308 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2309 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2310 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2311 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2312
2313 DEFAULT_wxUSE_RESOURCES=no
2314 DEFAULT_wxUSE_CONSTRAINTS=yes
2315 DEFAULT_wxUSE_IPC=yes
2316 DEFAULT_wxUSE_HELP=yes
2317 DEFAULT_wxUSE_MS_HTML_HELP=yes
2318 DEFAULT_wxUSE_WXHTML_HELP=yes
2319 DEFAULT_wxUSE_TREELAYOUT=yes
2320 DEFAULT_wxUSE_METAFILE=yes
2321 DEFAULT_wxUSE_MIMETYPE=yes
2322 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2323 DEFAULT_wxUSE_PROTOCOL=yes
2324 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2325 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2326 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2327 DEFAULT_wxUSE_URL=yes
2328
2329 DEFAULT_wxUSE_COMMONDLGS=yes
2330 DEFAULT_wxUSE_CHOICEDLG=yes
2331 DEFAULT_wxUSE_COLOURDLG=yes
2332 DEFAULT_wxUSE_DIRDLG=yes
2333 DEFAULT_wxUSE_FILEDLG=yes
2334 DEFAULT_wxUSE_FINDREPLDLG=yes
2335 DEFAULT_wxUSE_FONTDLG=yes
2336 DEFAULT_wxUSE_MSGDLG=yes
2337 DEFAULT_wxUSE_NUMBERDLG=yes
2338 DEFAULT_wxUSE_TEXTDLG=yes
2339 DEFAULT_wxUSE_SPLASH=yes
2340 DEFAULT_wxUSE_STARTUP_TIPS=yes
2341 DEFAULT_wxUSE_PROGRESSDLG=yes
2342 DEFAULT_wxUSE_WIZARDDLG=yes
2343
2344 DEFAULT_wxUSE_MENUS=yes
2345 DEFAULT_wxUSE_MINIFRAME=yes
2346 DEFAULT_wxUSE_HTML=yes
9a8f0513 2347 DEFAULT_wxUSE_XRC=yes
646b6ec1 2348 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_FILESYSTEM=yes
2350 DEFAULT_wxUSE_FS_INET=yes
2351 DEFAULT_wxUSE_FS_ZIP=yes
2352 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2353 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2354 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_VALIDATORS=yes
2356
2357 DEFAULT_wxUSE_ACCEL=yes
2358 DEFAULT_wxUSE_BUTTON=yes
2359 DEFAULT_wxUSE_BMPBUTTON=yes
2360 DEFAULT_wxUSE_CALCTRL=yes
2361 DEFAULT_wxUSE_CARET=yes
2362 DEFAULT_wxUSE_CHECKBOX=yes
2363 DEFAULT_wxUSE_CHECKLST=yes
2364 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2365 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2366 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2367 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2368 DEFAULT_wxUSE_DISPLAY=yes
2369 DEFAULT_wxUSE_GAUGE=yes
2370 DEFAULT_wxUSE_GRID=yes
2371 DEFAULT_wxUSE_IMAGLIST=yes
2372 DEFAULT_wxUSE_LISTBOOK=yes
2373 DEFAULT_wxUSE_LISTBOX=yes
2374 DEFAULT_wxUSE_LISTCTRL=yes
2375 DEFAULT_wxUSE_NOTEBOOK=yes
2376 DEFAULT_wxUSE_RADIOBOX=yes
2377 DEFAULT_wxUSE_RADIOBTN=yes
2378 DEFAULT_wxUSE_SASH=yes
2379 DEFAULT_wxUSE_SCROLLBAR=yes
2380 DEFAULT_wxUSE_SLIDER=yes
2381 DEFAULT_wxUSE_SPINBTN=yes
2382 DEFAULT_wxUSE_SPINCTRL=yes
2383 DEFAULT_wxUSE_SPLITTER=yes
2384 DEFAULT_wxUSE_STATBMP=yes
2385 DEFAULT_wxUSE_STATBOX=yes
2386 DEFAULT_wxUSE_STATLINE=yes
2387 DEFAULT_wxUSE_STATTEXT=yes
2388 DEFAULT_wxUSE_STATUSBAR=yes
2389 DEFAULT_wxUSE_TABDIALOG=no
2390 DEFAULT_wxUSE_TEXTCTRL=yes
2391 DEFAULT_wxUSE_TOGGLEBTN=yes
2392 DEFAULT_wxUSE_TOOLBAR=yes
2393 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2394 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2395 DEFAULT_wxUSE_TREECTRL=yes
2396 DEFAULT_wxUSE_POPUPWIN=yes
2397 DEFAULT_wxUSE_TIPWINDOW=yes
2398
2399 DEFAULT_wxUSE_UNICODE=no
2400 DEFAULT_wxUSE_UNICODE_MSLU=yes
2401 DEFAULT_wxUSE_WCSRTOMBS=no
2402
2403 DEFAULT_wxUSE_PALETTE=yes
2404 DEFAULT_wxUSE_IMAGE=yes
2405 DEFAULT_wxUSE_GIF=yes
2406 DEFAULT_wxUSE_PCX=yes
2407 DEFAULT_wxUSE_IFF=no
2408 DEFAULT_wxUSE_PNM=yes
2409 DEFAULT_wxUSE_XPM=yes
2410 DEFAULT_wxUSE_ICO_CUR=yes
2411 DEFAULT_wxUSE_ACCESSIBILITY=no
2412
2413 DEFAULT_wxUSE_MONOLITHIC=no
2414 DEFAULT_wxUSE_PLUGINS=no
2415 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2416
2417 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2418fi
2419
2420
2421
2422for toolkit in `echo $ALL_TOOLKITS`; do
2423 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2424 if test "x$LINE" != "x" ; then
2425 has_toolkit_in_cache=1
2426 eval "DEFAULT_$LINE"
2427 eval "CACHE_$toolkit=1"
2428 fi
2429done
2430
2431
2432
2433 enablestring=
2434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2435echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2436 no_cache=0
2437 # Check whether --enable-gui or --disable-gui was given.
2438if test "${enable_gui+set}" = set; then
2439 enableval="$enable_gui"
2440
2441 if test "$enableval" = yes; then
2442 ac_cv_use_gui='wxUSE_GUI=yes'
2443 else
2444 ac_cv_use_gui='wxUSE_GUI=no'
2445 fi
2446
2447else
2448
2449 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2457
2458fi;
2459
2460 eval "$ac_cv_use_gui"
2461 if test "$no_cache" != 1; then
2462 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2463 fi
2464
2465 if test "$wxUSE_GUI" = yes; then
2466 echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6
2468 else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471 fi
2472
2473
2474 enablestring=
2475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2476echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2477 no_cache=0
2478 # Check whether --enable-monolithic or --disable-monolithic was given.
2479if test "${enable_monolithic+set}" = set; then
2480 enableval="$enable_monolithic"
2481
2482 if test "$enableval" = yes; then
2483 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2484 else
2485 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2486 fi
2487
2488else
2489
2490 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2491 if test "x$LINE" != x ; then
2492 eval "DEFAULT_$LINE"
2493 else
2494 no_cache=1
2495 fi
2496
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2498
2499fi;
2500
2501 eval "$ac_cv_use_monolithic"
2502 if test "$no_cache" != 1; then
2503 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2504 fi
2505
2506 if test "$wxUSE_MONOLITHIC" = yes; then
2507 echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6
2509 else
2510 echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6
2512 fi
2513
2514
2515 enablestring=
2516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2517echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2518 no_cache=0
2519 # Check whether --enable-plugins or --disable-plugins was given.
2520if test "${enable_plugins+set}" = set; then
2521 enableval="$enable_plugins"
2522
2523 if test "$enableval" = yes; then
2524 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2525 else
2526 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2527 fi
2528
2529else
2530
2531 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2532 if test "x$LINE" != x ; then
2533 eval "DEFAULT_$LINE"
2534 else
2535 no_cache=1
2536 fi
2537
2538 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2539
2540fi;
2541
2542 eval "$ac_cv_use_plugins"
2543 if test "$no_cache" != 1; then
2544 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2545 fi
2546
2547 if test "$wxUSE_PLUGINS" = yes; then
2548 echo "$as_me:$LINENO: result: yes" >&5
2549echo "${ECHO_T}yes" >&6
2550 else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553 fi
2554
2555
2556if test "$wxUSE_GUI" = "yes"; then
2557
2558
2559 enablestring=
2560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2561echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2562 no_cache=0
2563 # Check whether --enable-universal or --disable-universal was given.
2564if test "${enable_universal+set}" = set; then
2565 enableval="$enable_universal"
2566
2567 if test "$enableval" = yes; then
2568 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2569 else
2570 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2571 fi
2572
2573else
2574
2575 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2576 if test "x$LINE" != x ; then
2577 eval "DEFAULT_$LINE"
2578 else
2579 no_cache=1
2580 fi
2581
2582 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2583
2584fi;
2585
2586 eval "$ac_cv_use_universal"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_UNIVERSAL" = yes; then
2592 echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
2594 else
2595 echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
2597 fi
2598
2599
2600# Check whether --with-gtk or --without-gtk was given.
2601if test "${with_gtk+set}" = set; then
2602 withval="$with_gtk"
2603 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-motif or --without-motif was given.
2607if test "${with_motif+set}" = set; then
2608 withval="$with_motif"
2609 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-mac or --without-mac was given.
2613if test "${with_mac+set}" = set; then
2614 withval="$with_mac"
c228d3a4 2615 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-cocoa or --without-cocoa was given.
2619if test "${with_cocoa+set}" = set; then
2620 withval="$with_cocoa"
c228d3a4 2621 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2622fi;
2623
2624# Check whether --with-wine or --without-wine was given.
2625if test "${with_wine+set}" = set; then
2626 withval="$with_wine"
2627 wxUSE_WINE="$withval" CACHE_WINE=1
2628fi;
2629
2630# Check whether --with-msw or --without-msw was given.
2631if test "${with_msw+set}" = set; then
2632 withval="$with_msw"
2633 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-pm or --without-pm was given.
2637if test "${with_pm+set}" = set; then
2638 withval="$with_pm"
2639 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-mgl or --without-mgl was given.
2643if test "${with_mgl+set}" = set; then
2644 withval="$with_mgl"
2645 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-microwin or --without-microwin was given.
2649if test "${with_microwin+set}" = set; then
2650 withval="$with_microwin"
2651 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-x11 or --without-x11 was given.
2655if test "${with_x11+set}" = set; then
2656 withval="$with_x11"
2657 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-nanox or --disable-nanox was given.
2665if test "${enable_nanox+set}" = set; then
2666 enableval="$enable_nanox"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_nanox='wxUSE_NANOX=yes'
2670 else
2671 ac_cv_use_nanox='wxUSE_NANOX=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2684
2685fi;
2686
2687 eval "$ac_cv_use_nanox"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_NANOX" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701
2702 enablestring=
2703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2704echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2705 no_cache=0
2706 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2707if test "${enable_gtk2+set}" = set; then
2708 enableval="$enable_gtk2"
2709
2710 if test "$enableval" = yes; then
2711 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2712 else
2713 ac_cv_use_gtk2='wxUSE_GTK2=no'
2714 fi
2715
2716else
2717
2718 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2726
2727fi;
2728
2729 eval "$ac_cv_use_gtk2"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_GTK2" = yes; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740 fi
2741
2742
2743 enablestring=
2744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2745echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2746 no_cache=0
2747 # Check whether --enable-gpe or --disable-gpe was given.
2748if test "${enable_gpe+set}" = set; then
2749 enableval="$enable_gpe"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_gpe='wxUSE_GPE=yes'
2753 else
2754 ac_cv_use_gpe='wxUSE_GPE=no'
2755 fi
2756
2757else
2758
2759 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2767
2768fi;
2769
2770 eval "$ac_cv_use_gpe"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_GPE" = yes; then
2776 echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6
2781 fi
2782
2783
2784
2785 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2786echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2787 no_cache=0
2788
2789# Check whether --with-libpng or --without-libpng was given.
2790if test "${with_libpng+set}" = set; then
2791 withval="$with_libpng"
2792
2793 if test "$withval" = yes; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2795 elif test "$withval" = no; then
2796 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2797 elif test "$withval" = sys; then
2798 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2799 elif test "$withval" = builtin; then
2800 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807else
2808
2809 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2810 if test "x$LINE" != x ; then
2811 eval "DEFAULT_$LINE"
2812 else
2813 no_cache=1
2814 fi
2815
2816 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2817
2818fi;
2819
2820 eval "$ac_cv_use_libpng"
2821 if test "$no_cache" != 1; then
2822 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2823 fi
2824
2825 if test "$wxUSE_LIBPNG" = yes; then
2826 echo "$as_me:$LINENO: result: yes" >&5
2827echo "${ECHO_T}yes" >&6
2828 elif test "$wxUSE_LIBPNG" = no; then
2829 echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831 elif test "$wxUSE_LIBPNG" = sys; then
2832 echo "$as_me:$LINENO: result: system version" >&5
2833echo "${ECHO_T}system version" >&6
2834 elif test "$wxUSE_LIBPNG" = builtin; then
2835 echo "$as_me:$LINENO: result: builtin version" >&5
2836echo "${ECHO_T}builtin version" >&6
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843
2844 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2845echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2846 no_cache=0
2847
2848# Check whether --with-libjpeg or --without-libjpeg was given.
2849if test "${with_libjpeg+set}" = set; then
2850 withval="$with_libjpeg"
2851
2852 if test "$withval" = yes; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2854 elif test "$withval" = no; then
2855 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2856 elif test "$withval" = sys; then
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2858 elif test "$withval" = builtin; then
2859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866else
2867
2868 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2876
2877fi;
2878
2879 eval "$ac_cv_use_libjpeg"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_LIBJPEG" = yes; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 elif test "$wxUSE_LIBJPEG" = no; then
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
2890 elif test "$wxUSE_LIBJPEG" = sys; then
2891 echo "$as_me:$LINENO: result: system version" >&5
2892echo "${ECHO_T}system version" >&6
2893 elif test "$wxUSE_LIBJPEG" = builtin; then
2894 echo "$as_me:$LINENO: result: builtin version" >&5
2895echo "${ECHO_T}builtin version" >&6
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902
2903 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2904echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2905 no_cache=0
2906
2907# Check whether --with-libtiff or --without-libtiff was given.
2908if test "${with_libtiff+set}" = set; then
2909 withval="$with_libtiff"
2910
2911 if test "$withval" = yes; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2913 elif test "$withval" = no; then
2914 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2915 elif test "$withval" = sys; then
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2917 elif test "$withval" = builtin; then
2918 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925else
2926
2927 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
2934 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2935
2936fi;
2937
2938 eval "$ac_cv_use_libtiff"
2939 if test "$no_cache" != 1; then
2940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2941 fi
2942
2943 if test "$wxUSE_LIBTIFF" = yes; then
2944 echo "$as_me:$LINENO: result: yes" >&5
2945echo "${ECHO_T}yes" >&6
2946 elif test "$wxUSE_LIBTIFF" = no; then
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
2949 elif test "$wxUSE_LIBTIFF" = sys; then
2950 echo "$as_me:$LINENO: result: system version" >&5
2951echo "${ECHO_T}system version" >&6
2952 elif test "$wxUSE_LIBTIFF" = builtin; then
2953 echo "$as_me:$LINENO: result: builtin version" >&5
2954echo "${ECHO_T}builtin version" >&6
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961
2962 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2963echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2964 no_cache=0
2965
2966# Check whether --with-libxpm or --without-libxpm was given.
2967if test "${with_libxpm+set}" = set; then
2968 withval="$with_libxpm"
2969
2970 if test "$withval" = yes; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2972 elif test "$withval" = no; then
2973 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2974 elif test "$withval" = sys; then
2975 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2976 elif test "$withval" = builtin; then
2977 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2994
2995fi;
2996
2997 eval "$ac_cv_use_libxpm"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_LIBXPM" = yes; then
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
3005 elif test "$wxUSE_LIBXPM" = no; then
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
3008 elif test "$wxUSE_LIBXPM" = sys; then
3009 echo "$as_me:$LINENO: result: system version" >&5
3010echo "${ECHO_T}system version" >&6
3011 elif test "$wxUSE_LIBXPM" = builtin; then
3012 echo "$as_me:$LINENO: result: builtin version" >&5
3013echo "${ECHO_T}builtin version" >&6
3014 else
3015 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3016echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020
3021 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3022echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3023 no_cache=0
3024
3025# Check whether --with-libmspack or --without-libmspack was given.
3026if test "${with_libmspack+set}" = set; then
3027 withval="$with_libmspack"
3028
3029 if test "$withval" = yes; then
3030 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3031 else
3032 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3033 fi
3034
3035else
3036
3037 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3045
3046fi;
3047
3048 eval "$ac_cv_use_libmspack"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_LIBMSPACK" = yes; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055echo "${ECHO_T}yes" >&6
3056 else
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
3059 fi
3060
3061
3062 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3063echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3064 no_cache=0
3065
3066# Check whether --with-sdl or --without-sdl was given.
3067if test "${with_sdl+set}" = set; then
3068 withval="$with_sdl"
3069
3070 if test "$withval" = yes; then
3071 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3072 else
3073 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3074 fi
3075
3076else
3077
3078 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3079 if test "x$LINE" != x ; then
3080 eval "DEFAULT_$LINE"
3081 else
3082 no_cache=1
3083 fi
3084
3085 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3086
3087fi;
3088
3089 eval "$ac_cv_use_sdl"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$wxUSE_LIBSDL" = yes; then
3095 echo "$as_me:$LINENO: result: yes" >&5
3096echo "${ECHO_T}yes" >&6
3097 else
3098 echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
3100 fi
3101
3102
d1c38808
VZ
3103 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3104echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3105 no_cache=0
3106
3107# Check whether --with-gnomeprint or --without-gnomeprint was given.
3108if test "${with_gnomeprint+set}" = set; then
3109 withval="$with_gnomeprint"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3113 else
3114 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3115 fi
3116
3117else
3118
3119 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3127
3128fi;
3129
3130 eval "$ac_cv_use_gnomeprint"
3131 if test "$no_cache" != 1; then
3132 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3133 fi
3134
3135 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3136 echo "$as_me:$LINENO: result: yes" >&5
3137echo "${ECHO_T}yes" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141 fi
3142
3143
a848cd7e
SC
3144 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3145echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3146 no_cache=0
3147
3148# Check whether --with-opengl or --without-opengl was given.
3149if test "${with_opengl+set}" = set; then
3150 withval="$with_opengl"
3151
3152 if test "$withval" = yes; then
3153 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3154 else
3155 ac_cv_use_opengl='wxUSE_OPENGL=no'
3156 fi
3157
3158else
3159
3160 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3168
3169fi;
3170
3171 eval "$ac_cv_use_opengl"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_OPENGL" = yes; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6
3179 else
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182 fi
3183
3184
3185fi
3186
3187
3188 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3189echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3190 no_cache=0
3191
3192# Check whether --with-dmalloc or --without-dmalloc was given.
3193if test "${with_dmalloc+set}" = set; then
3194 withval="$with_dmalloc"
3195
3196 if test "$withval" = yes; then
3197 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3198 else
3199 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3212
3213fi;
3214
3215 eval "$ac_cv_use_dmalloc"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_DMALLOC" = yes; then
3221 echo "$as_me:$LINENO: result: yes" >&5
3222echo "${ECHO_T}yes" >&6
3223 else
3224 echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226 fi
3227
3228
3229 echo "$as_me:$LINENO: checking for --with-regex" >&5
3230echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3231 no_cache=0
3232
3233# Check whether --with-regex or --without-regex was given.
3234if test "${with_regex+set}" = set; then
3235 withval="$with_regex"
3236
3237 if test "$withval" = yes; then
3238 ac_cv_use_regex='wxUSE_REGEX=yes'
3239 elif test "$withval" = no; then
3240 ac_cv_use_regex='wxUSE_REGEX=no'
3241 elif test "$withval" = sys; then
3242 ac_cv_use_regex='wxUSE_REGEX=sys'
3243 elif test "$withval" = builtin; then
3244 ac_cv_use_regex='wxUSE_REGEX=builtin'
3245 else
3246 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3247echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250
3251else
3252
3253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3261
3262fi;
3263
3264 eval "$ac_cv_use_regex"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_REGEX" = yes; then
3270 echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
3272 elif test "$wxUSE_REGEX" = no; then
3273 echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275 elif test "$wxUSE_REGEX" = sys; then
3276 echo "$as_me:$LINENO: result: system version" >&5
3277echo "${ECHO_T}system version" >&6
3278 elif test "$wxUSE_REGEX" = builtin; then
3279 echo "$as_me:$LINENO: result: builtin version" >&5
3280echo "${ECHO_T}builtin version" >&6
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287
3288 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3289echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3290 no_cache=0
3291
3292# Check whether --with-zlib or --without-zlib was given.
3293if test "${with_zlib+set}" = set; then
3294 withval="$with_zlib"
3295
3296 if test "$withval" = yes; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3298 elif test "$withval" = no; then
3299 ac_cv_use_zlib='wxUSE_ZLIB=no'
3300 elif test "$withval" = sys; then
3301 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3302 elif test "$withval" = builtin; then
3303 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3304 else
3305 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3306echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3307 { (exit 1); exit 1; }; }
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3320
3321fi;
3322
3323 eval "$ac_cv_use_zlib"
3324 if test "$no_cache" != 1; then
3325 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3326 fi
3327
3328 if test "$wxUSE_ZLIB" = yes; then
3329 echo "$as_me:$LINENO: result: yes" >&5
3330echo "${ECHO_T}yes" >&6
3331 elif test "$wxUSE_ZLIB" = no; then
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334 elif test "$wxUSE_ZLIB" = sys; then
3335 echo "$as_me:$LINENO: result: system version" >&5
3336echo "${ECHO_T}system version" >&6
3337 elif test "$wxUSE_ZLIB" = builtin; then
3338 echo "$as_me:$LINENO: result: builtin version" >&5
3339echo "${ECHO_T}builtin version" >&6
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346
3347 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3348echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3349 no_cache=0
3350
3351# Check whether --with-odbc or --without-odbc was given.
3352if test "${with_odbc+set}" = set; then
3353 withval="$with_odbc"
3354
3355 if test "$withval" = yes; then
3356 ac_cv_use_odbc='wxUSE_ODBC=yes'
3357 elif test "$withval" = no; then
3358 ac_cv_use_odbc='wxUSE_ODBC=no'
3359 elif test "$withval" = sys; then
3360 ac_cv_use_odbc='wxUSE_ODBC=sys'
3361 elif test "$withval" = builtin; then
3362 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3363 else
3364 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3365echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3366 { (exit 1); exit 1; }; }
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3379
3380fi;
3381
3382 eval "$ac_cv_use_odbc"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_ODBC" = yes; then
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
3390 elif test "$wxUSE_ODBC" = no; then
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393 elif test "$wxUSE_ODBC" = sys; then
3394 echo "$as_me:$LINENO: result: system version" >&5
3395echo "${ECHO_T}system version" >&6
3396 elif test "$wxUSE_ODBC" = builtin; then
3397 echo "$as_me:$LINENO: result: builtin version" >&5
3398echo "${ECHO_T}builtin version" >&6
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405
3406 echo "$as_me:$LINENO: checking for --with-expat" >&5
3407echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3408 no_cache=0
3409
3410# Check whether --with-expat or --without-expat was given.
3411if test "${with_expat+set}" = set; then
3412 withval="$with_expat"
3413
3414 if test "$withval" = yes; then
3415 ac_cv_use_expat='wxUSE_EXPAT=yes'
3416 elif test "$withval" = no; then
3417 ac_cv_use_expat='wxUSE_EXPAT=no'
3418 elif test "$withval" = sys; then
3419 ac_cv_use_expat='wxUSE_EXPAT=sys'
3420 elif test "$withval" = builtin; then
3421 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3422 else
3423 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3424echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3425 { (exit 1); exit 1; }; }
3426 fi
3427
3428else
3429
3430 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3438
3439fi;
3440
3441 eval "$ac_cv_use_expat"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_EXPAT" = yes; then
3447 echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449 elif test "$wxUSE_EXPAT" = no; then
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452 elif test "$wxUSE_EXPAT" = sys; then
3453 echo "$as_me:$LINENO: result: system version" >&5
3454echo "${ECHO_T}system version" >&6
3455 elif test "$wxUSE_EXPAT" = builtin; then
3456 echo "$as_me:$LINENO: result: builtin version" >&5
3457echo "${ECHO_T}builtin version" >&6
3458 else
3459 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3460echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3461 { (exit 1); exit 1; }; }
3462 fi
3463
3464
3465
3466
3467 enablestring=
3468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3469echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3470 no_cache=0
3471 # Check whether --enable-shared or --disable-shared was given.
3472if test "${enable_shared+set}" = set; then
3473 enableval="$enable_shared"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_shared='wxUSE_SHARED=yes'
3477 else
3478 ac_cv_use_shared='wxUSE_SHARED=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3491
3492fi;
3493
3494 eval "$ac_cv_use_shared"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_SHARED" = yes; then
3500 echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505 fi
3506
3507
3508 enablestring=
3509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3510echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3511 no_cache=0
3512 # Check whether --enable-optimise or --disable-optimise was given.
3513if test "${enable_optimise+set}" = set; then
3514 enableval="$enable_optimise"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3518 else
3519 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3532
3533fi;
3534
3535 eval "$ac_cv_use_optimise"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_OPTIMISE" = yes; then
3541 echo "$as_me:$LINENO: result: yes" >&5
3542echo "${ECHO_T}yes" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
3546 fi
3547
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3551echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-debug or --disable-debug was given.
3554if test "${enable_debug+set}" = set; then
3555 enableval="$enable_debug"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_debug='wxUSE_DEBUG=yes'
3559 else
3560 ac_cv_use_debug='wxUSE_DEBUG=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3573
3574fi;
3575
3576 eval "$ac_cv_use_debug"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_DEBUG" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 fi
3588
3589
3590 enablestring=
3591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3592echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3593 no_cache=0
3594 # Check whether --enable-stl or --disable-stl was given.
3595if test "${enable_stl+set}" = set; then
3596 enableval="$enable_stl"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_stl='wxUSE_STL=yes'
3600 else
3601 ac_cv_use_stl='wxUSE_STL=no'
3602 fi
3603
3604else
3605
3606 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3614
3615fi;
3616
3617 eval "$ac_cv_use_stl"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_STL" = yes; then
3623 echo "$as_me:$LINENO: result: yes" >&5
3624echo "${ECHO_T}yes" >&6
3625 else
3626 echo "$as_me:$LINENO: result: no" >&5
3627echo "${ECHO_T}no" >&6
3628 fi
3629
3630if test "$USE_OS2" = "1"; then
3631
3632 enablestring=
3633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3634echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3635 no_cache=0
3636 # Check whether --enable-omf or --disable-omf was given.
3637if test "${enable_omf+set}" = set; then
3638 enableval="$enable_omf"
3639
3640 if test "$enableval" = yes; then
3641 ac_cv_use_omf='wxUSE_OMF=yes'
3642 else
3643 ac_cv_use_omf='wxUSE_OMF=no'
3644 fi
3645
3646else
3647
3648 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3649 if test "x$LINE" != x ; then
3650 eval "DEFAULT_$LINE"
3651 else
3652 no_cache=1
3653 fi
3654
3655 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3656
3657fi;
3658
3659 eval "$ac_cv_use_omf"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_OMF" = yes; then
3665 echo "$as_me:$LINENO: result: yes" >&5
3666echo "${ECHO_T}yes" >&6
3667 else
3668 echo "$as_me:$LINENO: result: no" >&5
3669echo "${ECHO_T}no" >&6
3670 fi
3671
3672fi
3673
3674if test "$wxUSE_DEBUG" = "yes"; then
3675 DEFAULT_wxUSE_DEBUG_FLAG=yes
3676 DEFAULT_wxUSE_DEBUG_INFO=yes
3677 BUILD=debug
3678elif test "$wxUSE_DEBUG" = "no"; then
3679 DEFAULT_wxUSE_DEBUG_FLAG=no
3680 DEFAULT_wxUSE_DEBUG_INFO=no
3681 BUILD=release
3682fi
3683
3684
3685 enablestring=
3686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3687echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3688 no_cache=0
3689 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3690if test "${enable_debug_flag+set}" = set; then
3691 enableval="$enable_debug_flag"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3695 else
3696 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3697 fi
3698
3699else
3700
3701 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3709
3710fi;
3711
3712 eval "$ac_cv_use_debug_flag"
3713 if test "$no_cache" != 1; then
3714 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3715 fi
3716
3717 if test "$wxUSE_DEBUG_FLAG" = yes; then
3718 echo "$as_me:$LINENO: result: yes" >&5
3719echo "${ECHO_T}yes" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723 fi
3724
3725
3726 enablestring=
3727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3728echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3729 no_cache=0
3730 # Check whether --enable-debug_info or --disable-debug_info was given.
3731if test "${enable_debug_info+set}" = set; then
3732 enableval="$enable_debug_info"
3733
3734 if test "$enableval" = yes; then
3735 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3736 else
3737 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3738 fi
3739
3740else
3741
3742 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3743 if test "x$LINE" != x ; then
3744 eval "DEFAULT_$LINE"
3745 else
3746 no_cache=1
3747 fi
3748
3749 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3750
3751fi;
3752
3753 eval "$ac_cv_use_debug_info"
3754 if test "$no_cache" != 1; then
3755 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3756 fi
3757
3758 if test "$wxUSE_DEBUG_INFO" = yes; then
3759 echo "$as_me:$LINENO: result: yes" >&5
3760echo "${ECHO_T}yes" >&6
3761 else
3762 echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6
3764 fi
3765
3766
3767 enablestring=
3768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3769echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3770 no_cache=0
3771 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3772if test "${enable_debug_gdb+set}" = set; then
3773 enableval="$enable_debug_gdb"
3774
3775 if test "$enableval" = yes; then
3776 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3777 else
3778 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3779 fi
3780
3781else
3782
3783 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3791
3792fi;
3793
3794 eval "$ac_cv_use_debug_gdb"
3795 if test "$no_cache" != 1; then
3796 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3797 fi
3798
3799 if test "$wxUSE_DEBUG_GDB" = yes; then
3800 echo "$as_me:$LINENO: result: yes" >&5
3801echo "${ECHO_T}yes" >&6
3802 else
3803 echo "$as_me:$LINENO: result: no" >&5
3804echo "${ECHO_T}no" >&6
3805 fi
3806
3807
3808 enablestring=
3809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3810echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3811 no_cache=0
3812 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3813if test "${enable_debug_cntxt+set}" = set; then
3814 enableval="$enable_debug_cntxt"
3815
3816 if test "$enableval" = yes; then
3817 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3818 else
3819 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3820 fi
3821
3822else
3823
3824 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3832
3833fi;
3834
3835 eval "$ac_cv_use_debug_cntxt"
3836 if test "$no_cache" != 1; then
3837 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3838 fi
3839
3840 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3841 echo "$as_me:$LINENO: result: yes" >&5
3842echo "${ECHO_T}yes" >&6
3843 else
3844 echo "$as_me:$LINENO: result: no" >&5
3845echo "${ECHO_T}no" >&6
3846 fi
3847
3848
3849 enablestring=
3850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3851echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3852 no_cache=0
3853 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3854if test "${enable_mem_tracing+set}" = set; then
3855 enableval="$enable_mem_tracing"
3856
3857 if test "$enableval" = yes; then
3858 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3859 else
3860 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3861 fi
3862
3863else
3864
3865 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3866 if test "x$LINE" != x ; then
3867 eval "DEFAULT_$LINE"
3868 else
3869 no_cache=1
3870 fi
3871
3872 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3873
3874fi;
3875
3876 eval "$ac_cv_use_mem_tracing"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_MEM_TRACING" = yes; then
3882 echo "$as_me:$LINENO: result: yes" >&5
3883echo "${ECHO_T}yes" >&6
3884 else
3885 echo "$as_me:$LINENO: result: no" >&5
3886echo "${ECHO_T}no" >&6
3887 fi
3888
3889
3890 enablestring=
3891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3892echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3893 no_cache=0
3894 # Check whether --enable-profile or --disable-profile was given.
3895if test "${enable_profile+set}" = set; then
3896 enableval="$enable_profile"
3897
3898 if test "$enableval" = yes; then
3899 ac_cv_use_profile='wxUSE_PROFILE=yes'
3900 else
3901 ac_cv_use_profile='wxUSE_PROFILE=no'
3902 fi
3903
3904else
3905
3906 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3907 if test "x$LINE" != x ; then
3908 eval "DEFAULT_$LINE"
3909 else
3910 no_cache=1
3911 fi
3912
3913 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3914
3915fi;
3916
3917 eval "$ac_cv_use_profile"
3918 if test "$no_cache" != 1; then
3919 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3920 fi
3921
3922 if test "$wxUSE_PROFILE" = yes; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925 else
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928 fi
3929
3930
3931 enablestring=
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3933echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3934 no_cache=0
3935 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3936if test "${enable_no_rtti+set}" = set; then
3937 enableval="$enable_no_rtti"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3941 else
3942 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3955
3956fi;
3957
3958 eval "$ac_cv_use_no_rtti"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_NO_RTTI" = yes; then
3964 echo "$as_me:$LINENO: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969 fi
3970
3971
3972 enablestring=
3973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3974echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3975 no_cache=0
3976 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3977if test "${enable_no_exceptions+set}" = set; then
3978 enableval="$enable_no_exceptions"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3982 else
3983 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3984 fi
3985
3986else
3987
3988 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3996
3997fi;
3998
3999 eval "$ac_cv_use_no_exceptions"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4005 echo "$as_me:$LINENO: result: yes" >&5
4006echo "${ECHO_T}yes" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010 fi
4011
4012
4013 enablestring=
4014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4015echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4016 no_cache=0
4017 # Check whether --enable-permissive or --disable-permissive was given.
4018if test "${enable_permissive+set}" = set; then
4019 enableval="$enable_permissive"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4023 else
4024 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4037
4038fi;
4039
4040 eval "$ac_cv_use_permissive"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_PERMISSIVE" = yes; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047echo "${ECHO_T}yes" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 enablestring=
4055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4056echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4057 no_cache=0
4058 # Check whether --enable-no_deps or --disable-no_deps was given.
4059if test "${enable_no_deps+set}" = set; then
4060 enableval="$enable_no_deps"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4064 else
4065 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4078
4079fi;
4080
4081 eval "$ac_cv_use_no_deps"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$wxUSE_NO_DEPS" = yes; then
4087 echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095
4096 enablestring=
4097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4098echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4099 no_cache=0
4100 # Check whether --enable-compat22 or --disable-compat22 was given.
4101if test "${enable_compat22+set}" = set; then
4102 enableval="$enable_compat22"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4106 else
4107 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4120
4121fi;
4122
4123 eval "$ac_cv_use_compat22"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4129 echo "$as_me:$LINENO: result: yes" >&5
4130echo "${ECHO_T}yes" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133echo "${ECHO_T}no" >&6
4134 fi
4135
4136
4137 enablestring=disable
4138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4139echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4140 no_cache=0
4141 # Check whether --enable-compat24 or --disable-compat24 was given.
4142if test "${enable_compat24+set}" = set; then
4143 enableval="$enable_compat24"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4147 else
4148 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4149 fi
4150
4151else
4152
4153 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4161
4162fi;
4163
4164 eval "$ac_cv_use_compat24"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175 fi
4176
4177
ffa0583f
RL
4178
4179 enablestring=
4180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4181echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4182 no_cache=0
4183 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4184if test "${enable_rpath+set}" = set; then
4185 enableval="$enable_rpath"
ffa0583f
RL
4186
4187 if test "$enableval" = yes; then
4188 ac_cv_use_rpath='wxUSE_RPATH=yes'
4189 else
4190 ac_cv_use_rpath='wxUSE_RPATH=no'
4191 fi
4192
4193else
4194
4195 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4196 if test "x$LINE" != x ; then
4197 eval "DEFAULT_$LINE"
4198 else
4199 no_cache=1
4200 fi
4201
4202 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4203
a848cd7e
SC
4204fi;
4205
ffa0583f
RL
4206 eval "$ac_cv_use_rpath"
4207 if test "$no_cache" != 1; then
4208 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4209 fi
4210
4211 if test "$wxUSE_RPATH" = yes; then
4212 echo "$as_me:$LINENO: result: yes" >&5
4213echo "${ECHO_T}yes" >&6
4214 else
4215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217 fi
4218
a848cd7e
SC
4219
4220
4221
4222
4223 enablestring=
4224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4225echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4226 no_cache=0
4227 # Check whether --enable-intl or --disable-intl was given.
4228if test "${enable_intl+set}" = set; then
4229 enableval="$enable_intl"
4230
4231 if test "$enableval" = yes; then
4232 ac_cv_use_intl='wxUSE_INTL=yes'
4233 else
4234 ac_cv_use_intl='wxUSE_INTL=no'
4235 fi
4236
4237else
4238
4239 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4247
4248fi;
4249
4250 eval "$ac_cv_use_intl"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_INTL" = yes; then
4256 echo "$as_me:$LINENO: result: yes" >&5
4257echo "${ECHO_T}yes" >&6
4258 else
4259 echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6
4261 fi
4262
4263
4264 enablestring=
4265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4266echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4267 no_cache=0
4268 # Check whether --enable-config or --disable-config was given.
4269if test "${enable_config+set}" = set; then
4270 enableval="$enable_config"
4271
4272 if test "$enableval" = yes; then
4273 ac_cv_use_config='wxUSE_CONFIG=yes'
4274 else
4275 ac_cv_use_config='wxUSE_CONFIG=no'
4276 fi
4277
4278else
4279
4280 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4281 if test "x$LINE" != x ; then
4282 eval "DEFAULT_$LINE"
4283 else
4284 no_cache=1
4285 fi
4286
4287 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4288
4289fi;
4290
4291 eval "$ac_cv_use_config"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_CONFIG" = yes; then
4297 echo "$as_me:$LINENO: result: yes" >&5
4298echo "${ECHO_T}yes" >&6
4299 else
4300 echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302 fi
4303
4304
4305
4306 enablestring=
4307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4308echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4309 no_cache=0
4310 # Check whether --enable-protocols or --disable-protocols was given.
4311if test "${enable_protocols+set}" = set; then
4312 enableval="$enable_protocols"
4313
4314 if test "$enableval" = yes; then
4315 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4316 else
4317 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4318 fi
4319
4320else
4321
4322 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4330
4331fi;
4332
4333 eval "$ac_cv_use_protocols"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_PROTOCOL" = yes; then
4339 echo "$as_me:$LINENO: result: yes" >&5
4340echo "${ECHO_T}yes" >&6
4341 else
4342 echo "$as_me:$LINENO: result: no" >&5
4343echo "${ECHO_T}no" >&6
4344 fi
4345
4346
4347 enablestring=
4348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4349echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4350 no_cache=0
4351 # Check whether --enable-ftp or --disable-ftp was given.
4352if test "${enable_ftp+set}" = set; then
4353 enableval="$enable_ftp"
4354
4355 if test "$enableval" = yes; then
4356 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4357 else
4358 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4359 fi
4360
4361else
4362
4363 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4371
4372fi;
4373
4374 eval "$ac_cv_use_ftp"
4375 if test "$no_cache" != 1; then
4376 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4377 fi
4378
4379 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381echo "${ECHO_T}yes" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
4385 fi
4386
4387
4388 enablestring=
4389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4390echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4391 no_cache=0
4392 # Check whether --enable-http or --disable-http was given.
4393if test "${enable_http+set}" = set; then
4394 enableval="$enable_http"
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4398 else
4399 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4400 fi
4401
4402else
4403
4404 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4412
4413fi;
4414
4415 eval "$ac_cv_use_http"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4421 echo "$as_me:$LINENO: result: yes" >&5
4422echo "${ECHO_T}yes" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426 fi
4427
4428
4429 enablestring=
4430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4431echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4432 no_cache=0
4433 # Check whether --enable-fileproto or --disable-fileproto was given.
4434if test "${enable_fileproto+set}" = set; then
4435 enableval="$enable_fileproto"
4436
4437 if test "$enableval" = yes; then
4438 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4439 else
4440 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4441 fi
4442
4443else
4444
4445 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4446 if test "x$LINE" != x ; then
4447 eval "DEFAULT_$LINE"
4448 else
4449 no_cache=1
4450 fi
4451
4452 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4453
4454fi;
4455
4456 eval "$ac_cv_use_fileproto"
4457 if test "$no_cache" != 1; then
4458 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4459 fi
4460
4461 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463echo "${ECHO_T}yes" >&6
4464 else
4465 echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6
4467 fi
4468
4469
4470 enablestring=
4471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4472echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4473 no_cache=0
4474 # Check whether --enable-sockets or --disable-sockets was given.
4475if test "${enable_sockets+set}" = set; then
4476 enableval="$enable_sockets"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4480 else
4481 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4494
4495fi;
4496
4497 eval "$ac_cv_use_sockets"
4498 if test "$no_cache" != 1; then
4499 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4500 fi
4501
4502 if test "$wxUSE_SOCKETS" = yes; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508 fi
4509
4510
4511 enablestring=
4512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4513echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4514 no_cache=0
4515 # Check whether --enable-ole or --disable-ole was given.
4516if test "${enable_ole+set}" = set; then
4517 enableval="$enable_ole"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_ole='wxUSE_OLE=yes'
4521 else
4522 ac_cv_use_ole='wxUSE_OLE=no'
4523 fi
4524
4525else
4526
4527 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4535
4536fi;
4537
4538 eval "$ac_cv_use_ole"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_OLE" = yes; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549 fi
4550
4551
4552 enablestring=
4553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4554echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4555 no_cache=0
4556 # Check whether --enable-dataobj or --disable-dataobj was given.
4557if test "${enable_dataobj+set}" = set; then
4558 enableval="$enable_dataobj"
4559
4560 if test "$enableval" = yes; then
4561 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4562 else
4563 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4564 fi
4565
4566else
4567
4568 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4569 if test "x$LINE" != x ; then
4570 eval "DEFAULT_$LINE"
4571 else
4572 no_cache=1
4573 fi
4574
4575 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4576
4577fi;
4578
4579 eval "$ac_cv_use_dataobj"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_DATAOBJ" = yes; then
4585 echo "$as_me:$LINENO: result: yes" >&5
4586echo "${ECHO_T}yes" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
4590 fi
4591
4592
4593
4594 enablestring=
4595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4596echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4597 no_cache=0
4598 # Check whether --enable-ipc or --disable-ipc was given.
4599if test "${enable_ipc+set}" = set; then
4600 enableval="$enable_ipc"
4601
4602 if test "$enableval" = yes; then
4603 ac_cv_use_ipc='wxUSE_IPC=yes'
4604 else
4605 ac_cv_use_ipc='wxUSE_IPC=no'
4606 fi
4607
4608else
4609
4610 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4611 if test "x$LINE" != x ; then
4612 eval "DEFAULT_$LINE"
4613 else
4614 no_cache=1
4615 fi
4616
4617 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4618
4619fi;
4620
4621 eval "$ac_cv_use_ipc"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_IPC" = yes; then
4627 echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629 else
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632 fi
4633
4634
4635
4636 enablestring=
4637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4638echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4639 no_cache=0
4640 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4641if test "${enable_apple_ieee+set}" = set; then
4642 enableval="$enable_apple_ieee"
4643
4644 if test "$enableval" = yes; then
4645 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4646 else
4647 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4648 fi
4649
4650else
4651
4652 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4660
4661fi;
4662
4663 eval "$ac_cv_use_apple_ieee"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_APPLE_IEEE" = yes; then
4669 echo "$as_me:$LINENO: result: yes" >&5
4670echo "${ECHO_T}yes" >&6
4671 else
4672 echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6
4674 fi
4675
4676
81f90336
MW
4677 enablestring=
4678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4679echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4680 no_cache=0
4681 # Check whether --enable-arcstream or --disable-arcstream was given.
4682if test "${enable_arcstream+set}" = set; then
4683 enableval="$enable_arcstream"
4684
4685 if test "$enableval" = yes; then
9e8e867f 4686 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4687 else
9e8e867f 4688 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4689 fi
4690
4691else
4692
9e8e867f 4693 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4694 if test "x$LINE" != x ; then
4695 eval "DEFAULT_$LINE"
4696 else
4697 no_cache=1
4698 fi
4699
9e8e867f 4700 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4701
4702fi;
4703
4704 eval "$ac_cv_use_arcstream"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4707 fi
4708
9e8e867f 4709 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4710 echo "$as_me:$LINENO: result: yes" >&5
4711echo "${ECHO_T}yes" >&6
4712 else
4713 echo "$as_me:$LINENO: result: no" >&5
4714echo "${ECHO_T}no" >&6
4715 fi
4716
4717
a848cd7e 4718 enablestring=
36b6448c
VZ
4719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4720echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4721 no_cache=0
36b6448c
VZ
4722 # Check whether --enable-backtrace or --disable-backtrace was given.
4723if test "${enable_backtrace+set}" = set; then
4724 enableval="$enable_backtrace"
a848cd7e
SC
4725
4726 if test "$enableval" = yes; then
36b6448c 4727 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4728 else
36b6448c 4729 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4730 fi
4731
4732else
4733
36b6448c 4734 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
36b6448c 4741 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4742
4743fi;
4744
36b6448c 4745 eval "$ac_cv_use_backtrace"
a848cd7e 4746 if test "$no_cache" != 1; then
36b6448c 4747 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4748 fi
4749
36b6448c 4750 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4751 echo "$as_me:$LINENO: result: yes" >&5
4752echo "${ECHO_T}yes" >&6
4753 else
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
4756 fi
4757
4758
eaff0f0d 4759 enablestring=
36b6448c
VZ
4760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4761echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4762 no_cache=0
36b6448c
VZ
4763 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4764if test "${enable_catch_segvs+set}" = set; then
4765 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4766
4767 if test "$enableval" = yes; then
36b6448c 4768 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4769 else
36b6448c 4770 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4771 fi
4772
4773else
4774
36b6448c 4775 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4776 if test "x$LINE" != x ; then
4777 eval "DEFAULT_$LINE"
4778 else
4779 no_cache=1
4780 fi
4781
36b6448c 4782 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4783
4784fi;
4785
36b6448c 4786 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4787 if test "$no_cache" != 1; then
36b6448c 4788 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4789 fi
4790
36b6448c 4791 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4792 echo "$as_me:$LINENO: result: yes" >&5
4793echo "${ECHO_T}yes" >&6
4794 else
4795 echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797 fi
4798
4799
a848cd7e
SC
4800 enablestring=
4801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4802echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4803 no_cache=0
4804 # Check whether --enable-cmdline or --disable-cmdline was given.
4805if test "${enable_cmdline+set}" = set; then
4806 enableval="$enable_cmdline"
4807
4808 if test "$enableval" = yes; then
4809 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4810 else
4811 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4812 fi
4813
4814else
4815
4816 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4824
4825fi;
4826
4827 eval "$ac_cv_use_cmdline"
4828 if test "$no_cache" != 1; then
4829 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4830 fi
4831
4832 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
4835 else
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838 fi
4839
4840
4841 enablestring=
4842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4843echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4844 no_cache=0
4845 # Check whether --enable-datetime or --disable-datetime was given.
4846if test "${enable_datetime+set}" = set; then
4847 enableval="$enable_datetime"
4848
4849 if test "$enableval" = yes; then
4850 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4851 else
4852 ac_cv_use_datetime='wxUSE_DATETIME=no'
4853 fi
4854
4855else
4856
4857 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4858 if test "x$LINE" != x ; then
4859 eval "DEFAULT_$LINE"
4860 else
4861 no_cache=1
4862 fi
4863
4864 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4865
4866fi;
4867
4868 eval "$ac_cv_use_datetime"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_DATETIME" = yes; then
4874 echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879 fi
4880
4881
36b6448c
VZ
4882 enablestring=
4883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4884echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4885 no_cache=0
4886 # Check whether --enable-debugreport or --disable-debugreport was given.
4887if test "${enable_debugreport+set}" = set; then
4888 enableval="$enable_debugreport"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4892 else
4893 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4906
4907fi;
4908
4909 eval "$ac_cv_use_debugreport"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_DEBUGREPORT" = yes; then
4915 echo "$as_me:$LINENO: result: yes" >&5
4916echo "${ECHO_T}yes" >&6
4917 else
4918 echo "$as_me:$LINENO: result: no" >&5
4919echo "${ECHO_T}no" >&6
4920 fi
4921
4922
a848cd7e
SC
4923 enablestring=
4924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4925echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4926 no_cache=0
4927 # Check whether --enable-dialupman or --disable-dialupman was given.
4928if test "${enable_dialupman+set}" = set; then
4929 enableval="$enable_dialupman"
4930
4931 if test "$enableval" = yes; then
4932 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4933 else
4934 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4935 fi
4936
4937else
4938
4939 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4947
4948fi;
4949
4950 eval "$ac_cv_use_dialupman"
4951 if test "$no_cache" != 1; then
4952 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4953 fi
4954
4955 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4956 echo "$as_me:$LINENO: result: yes" >&5
4957echo "${ECHO_T}yes" >&6
4958 else
4959 echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6
4961 fi
4962
4963
4964 enablestring=
4965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4966echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4967 no_cache=0
4968 # Check whether --enable-dynlib or --disable-dynlib was given.
4969if test "${enable_dynlib+set}" = set; then
4970 enableval="$enable_dynlib"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4974 else
4975 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4976 fi
4977
4978else
4979
4980 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4988
4989fi;
4990
4991 eval "$ac_cv_use_dynlib"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4997 echo "$as_me:$LINENO: result: yes" >&5
4998echo "${ECHO_T}yes" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002 fi
5003
5004
5005 enablestring=
5006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5007echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5008 no_cache=0
5009 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5010if test "${enable_dynamicloader+set}" = set; then
5011 enableval="$enable_dynamicloader"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5015 else
5016 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5017 fi
5018
5019else
5020
5021 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5029
5030fi;
5031
5032 eval "$ac_cv_use_dynamicloader"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5038 echo "$as_me:$LINENO: result: yes" >&5
5039echo "${ECHO_T}yes" >&6
5040 else
5041 echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043 fi
5044
5045
5046 enablestring=
5047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5048echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5049 no_cache=0
5050 # Check whether --enable-exceptions or --disable-exceptions was given.
5051if test "${enable_exceptions+set}" = set; then
5052 enableval="$enable_exceptions"
5053
5054 if test "$enableval" = yes; then
5055 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5056 else
5057 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5058 fi
5059
5060else
5061
5062 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5070
5071fi;
5072
5073 eval "$ac_cv_use_exceptions"
5074 if test "$no_cache" != 1; then
5075 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5076 fi
5077
5078 if test "$wxUSE_EXCEPTIONS" = yes; then
5079 echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081 else
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084 fi
5085
5086
5087 enablestring=
5088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5089echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5090 no_cache=0
5091 # Check whether --enable-ffile or --disable-ffile was given.
5092if test "${enable_ffile+set}" = set; then
5093 enableval="$enable_ffile"
5094
5095 if test "$enableval" = yes; then
5096 ac_cv_use_ffile='wxUSE_FFILE=yes'
5097 else
5098 ac_cv_use_ffile='wxUSE_FFILE=no'
5099 fi
5100
5101else
5102
5103 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5104 if test "x$LINE" != x ; then
5105 eval "DEFAULT_$LINE"
5106 else
5107 no_cache=1
5108 fi
5109
5110 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5111
5112fi;
5113
5114 eval "$ac_cv_use_ffile"
5115 if test "$no_cache" != 1; then
5116 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5117 fi
5118
5119 if test "$wxUSE_FFILE" = yes; then
5120 echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
5122 else
5123 echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125 fi
5126
5127
5128 enablestring=
5129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5130echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5131 no_cache=0
5132 # Check whether --enable-file or --disable-file was given.
5133if test "${enable_file+set}" = set; then
5134 enableval="$enable_file"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_file='wxUSE_FILE=yes'
5138 else
5139 ac_cv_use_file='wxUSE_FILE=no'
5140 fi
5141
5142else
5143
5144 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5152
5153fi;
5154
5155 eval "$ac_cv_use_file"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_FILE" = yes; then
5161 echo "$as_me:$LINENO: result: yes" >&5
5162echo "${ECHO_T}yes" >&6
5163 else
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166 fi
5167
5168
5169 enablestring=
5170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5171echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5172 no_cache=0
5173 # Check whether --enable-filesystem or --disable-filesystem was given.
5174if test "${enable_filesystem+set}" = set; then
5175 enableval="$enable_filesystem"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5179 else
5180 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5181 fi
5182
5183else
5184
5185 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5193
5194fi;
5195
5196 eval "$ac_cv_use_filesystem"
5197 if test "$no_cache" != 1; then
5198 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5199 fi
5200
5201 if test "$wxUSE_FILESYSTEM" = yes; then
5202 echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
5204 else
5205 echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207 fi
5208
5209
5210 enablestring=
5211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5212echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5213 no_cache=0
5214 # Check whether --enable-fontmap or --disable-fontmap was given.
5215if test "${enable_fontmap+set}" = set; then
5216 enableval="$enable_fontmap"
5217
5218 if test "$enableval" = yes; then
5219 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5220 else
5221 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5222 fi
5223
5224else
5225
5226 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5234
5235fi;
5236
5237 eval "$ac_cv_use_fontmap"
5238 if test "$no_cache" != 1; then
5239 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5240 fi
5241
5242 if test "$wxUSE_FONTMAP" = yes; then
5243 echo "$as_me:$LINENO: result: yes" >&5
5244echo "${ECHO_T}yes" >&6
5245 else
5246 echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248 fi
5249
5250
5251 enablestring=
5252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5253echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5254 no_cache=0
5255 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5256if test "${enable_fs_inet+set}" = set; then
5257 enableval="$enable_fs_inet"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5261 else
5262 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5275
5276fi;
5277
5278 eval "$ac_cv_use_fs_inet"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_FS_INET" = yes; then
5284 echo "$as_me:$LINENO: result: yes" >&5
5285echo "${ECHO_T}yes" >&6
5286 else
5287 echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289 fi
5290
5291
5292 enablestring=
5293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5294echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5295 no_cache=0
5296 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5297if test "${enable_fs_zip+set}" = set; then
5298 enableval="$enable_fs_zip"
5299
5300 if test "$enableval" = yes; then
5301 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5302 else
5303 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5304 fi
5305
5306else
5307
5308 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5316
5317fi;
5318
5319 eval "$ac_cv_use_fs_zip"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_FS_ZIP" = yes; then
5325 echo "$as_me:$LINENO: result: yes" >&5
5326echo "${ECHO_T}yes" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
5330 fi
5331
5332
5333 enablestring=
5334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5335echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5336 no_cache=0
5337 # Check whether --enable-geometry or --disable-geometry was given.
5338if test "${enable_geometry+set}" = set; then
5339 enableval="$enable_geometry"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5343 else
5344 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5357
5358fi;
5359
5360 eval "$ac_cv_use_geometry"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_GEOMETRY" = yes; then
5366 echo "$as_me:$LINENO: result: yes" >&5
5367echo "${ECHO_T}yes" >&6
5368 else
5369 echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6
5371 fi
5372
5373
5374 enablestring=
5375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5376echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5377 no_cache=0
5378 # Check whether --enable-log or --disable-log was given.
5379if test "${enable_log+set}" = set; then
5380 enableval="$enable_log"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_log='wxUSE_LOG=yes'
5384 else
5385 ac_cv_use_log='wxUSE_LOG=no'
5386 fi
5387
5388else
5389
5390 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5398
5399fi;
5400
5401 eval "$ac_cv_use_log"
5402 if test "$no_cache" != 1; then
5403 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5404 fi
5405
5406 if test "$wxUSE_LOG" = yes; then
5407 echo "$as_me:$LINENO: result: yes" >&5
5408echo "${ECHO_T}yes" >&6
5409 else
5410 echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412 fi
5413
5414
5415 enablestring=
5416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5417echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5418 no_cache=0
5419 # Check whether --enable-longlong or --disable-longlong was given.
5420if test "${enable_longlong+set}" = set; then
5421 enableval="$enable_longlong"
5422
5423 if test "$enableval" = yes; then
5424 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5425 else
5426 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5427 fi
5428
5429else
5430
5431 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5439
5440fi;
5441
5442 eval "$ac_cv_use_longlong"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_LONGLONG" = yes; then
5448 echo "$as_me:$LINENO: result: yes" >&5
5449echo "${ECHO_T}yes" >&6
5450 else
5451 echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6
5453 fi
5454
5455
5456 enablestring=
5457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5458echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5459 no_cache=0
5460 # Check whether --enable-mimetype or --disable-mimetype was given.
5461if test "${enable_mimetype+set}" = set; then
5462 enableval="$enable_mimetype"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5466 else
5467 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5468 fi
5469
5470else
5471
5472 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5480
5481fi;
5482
5483 eval "$ac_cv_use_mimetype"
5484 if test "$no_cache" != 1; then
5485 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5486 fi
5487
5488 if test "$wxUSE_MIMETYPE" = yes; then
5489 echo "$as_me:$LINENO: result: yes" >&5
5490echo "${ECHO_T}yes" >&6
5491 else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494 fi
5495
5496
5497 enablestring=
5498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5499echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5500 no_cache=0
5501 # Check whether --enable-mslu or --disable-mslu was given.
5502if test "${enable_mslu+set}" = set; then
5503 enableval="$enable_mslu"
5504
5505 if test "$enableval" = yes; then
5506 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5507 else
5508 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5509 fi
5510
5511else
5512
5513 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5514 if test "x$LINE" != x ; then
5515 eval "DEFAULT_$LINE"
5516 else
5517 no_cache=1
5518 fi
5519
5520 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5521
5522fi;
5523
5524 eval "$ac_cv_use_mslu"
5525 if test "$no_cache" != 1; then
5526 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5527 fi
5528
5529 if test "$wxUSE_UNICODE_MSLU" = yes; then
5530 echo "$as_me:$LINENO: result: yes" >&5
5531echo "${ECHO_T}yes" >&6
5532 else
5533 echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535 fi
5536
5537
5538 enablestring=
5539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5540echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5541 no_cache=0
5542 # Check whether --enable-snglinst or --disable-snglinst was given.
5543if test "${enable_snglinst+set}" = set; then
5544 enableval="$enable_snglinst"
5545
5546 if test "$enableval" = yes; then
5547 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5548 else
5549 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5550 fi
5551
5552else
5553
5554 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5555 if test "x$LINE" != x ; then
5556 eval "DEFAULT_$LINE"
5557 else
5558 no_cache=1
5559 fi
5560
5561 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5562
5563fi;
5564
5565 eval "$ac_cv_use_snglinst"
5566 if test "$no_cache" != 1; then
5567 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5568 fi
5569
5570 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5571 echo "$as_me:$LINENO: result: yes" >&5
5572echo "${ECHO_T}yes" >&6
5573 else
5574 echo "$as_me:$LINENO: result: no" >&5
5575echo "${ECHO_T}no" >&6
5576 fi
5577
5578
5579 enablestring=
07158944
VZ
5580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5581echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5582 no_cache=0
07158944
VZ
5583 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5584if test "${enable_std_iostreams+set}" = set; then
5585 enableval="$enable_std_iostreams"
a848cd7e
SC
5586
5587 if test "$enableval" = yes; then
07158944 5588 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5589 else
07158944 5590 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5591 fi
5592
5593else
5594
07158944 5595 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5596 if test "x$LINE" != x ; then
5597 eval "DEFAULT_$LINE"
5598 else
5599 no_cache=1
5600 fi
5601
07158944 5602 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5603
5604fi;
5605
07158944 5606 eval "$ac_cv_use_std_iostreams"
a848cd7e 5607 if test "$no_cache" != 1; then
07158944 5608 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5609 fi
5610
07158944 5611 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5612 echo "$as_me:$LINENO: result: yes" >&5
5613echo "${ECHO_T}yes" >&6
5614 else
5615 echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617 fi
5618
5619
5620 enablestring=
07158944
VZ
5621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5622echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5623 no_cache=0
07158944
VZ
5624 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5625if test "${enable_stdpaths+set}" = set; then
5626 enableval="$enable_stdpaths"
a848cd7e
SC
5627
5628 if test "$enableval" = yes; then
07158944 5629 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5630 else
07158944 5631 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5632 fi
5633
5634else
5635
07158944 5636 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5637 if test "x$LINE" != x ; then
5638 eval "DEFAULT_$LINE"
5639 else
5640 no_cache=1
5641 fi
5642
07158944 5643 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5644
5645fi;
5646
07158944 5647 eval "$ac_cv_use_stdpaths"
a848cd7e 5648 if test "$no_cache" != 1; then
07158944 5649 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5650 fi
5651
07158944 5652 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5653 echo "$as_me:$LINENO: result: yes" >&5
5654echo "${ECHO_T}yes" >&6
5655 else
5656 echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658 fi
5659
5660
5661 enablestring=
5662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5663echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5664 no_cache=0
5665 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5666if test "${enable_stopwatch+set}" = set; then
5667 enableval="$enable_stopwatch"
5668
5669 if test "$enableval" = yes; then
5670 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5671 else
5672 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5673 fi
5674
5675else
5676
5677 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
5684 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5685
5686fi;
5687
5688 eval "$ac_cv_use_stopwatch"
5689 if test "$no_cache" != 1; then
5690 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5691 fi
5692
5693 if test "$wxUSE_STOPWATCH" = yes; then
5694 echo "$as_me:$LINENO: result: yes" >&5
5695echo "${ECHO_T}yes" >&6
5696 else
5697 echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6
5699 fi
5700
5701
07158944
VZ
5702 enablestring=
5703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5704echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5705 no_cache=0
5706 # Check whether --enable-streams or --disable-streams was given.
5707if test "${enable_streams+set}" = set; then
5708 enableval="$enable_streams"
5709
5710 if test "$enableval" = yes; then
5711 ac_cv_use_streams='wxUSE_STREAMS=yes'
5712 else
5713 ac_cv_use_streams='wxUSE_STREAMS=no'
5714 fi
5715
5716else
5717
5718 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5719 if test "x$LINE" != x ; then
5720 eval "DEFAULT_$LINE"
5721 else
5722 no_cache=1
5723 fi
5724
5725 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5726
5727fi;
5728
5729 eval "$ac_cv_use_streams"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_STREAMS" = yes; then
5735 echo "$as_me:$LINENO: result: yes" >&5
5736echo "${ECHO_T}yes" >&6
5737 else
5738 echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6
5740 fi
5741
5742
a848cd7e
SC
5743 enablestring=
5744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5745echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5746 no_cache=0
5747 # Check whether --enable-system_options or --disable-system_options was given.
5748if test "${enable_system_options+set}" = set; then
5749 enableval="$enable_system_options"
5750
5751 if test "$enableval" = yes; then
5752 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5753 else
5754 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5755 fi
5756
5757else
5758
5759 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5760 if test "x$LINE" != x ; then
5761 eval "DEFAULT_$LINE"
5762 else
5763 no_cache=1
5764 fi
5765
5766 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5767
5768fi;
5769
5770 eval "$ac_cv_use_system_options"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5776 echo "$as_me:$LINENO: result: yes" >&5
5777echo "${ECHO_T}yes" >&6
5778 else
5779 echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781 fi
5782
5783
5784 enablestring=
5785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5786echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5787 no_cache=0
5788 # Check whether --enable-textbuf or --disable-textbuf was given.
5789if test "${enable_textbuf+set}" = set; then
5790 enableval="$enable_textbuf"
5791
5792 if test "$enableval" = yes; then
5793 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5794 else
5795 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5796 fi
5797
5798else
5799
5800 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5808
5809fi;
5810
5811 eval "$ac_cv_use_textbuf"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_TEXTBUFFER" = yes; then
5817 echo "$as_me:$LINENO: result: yes" >&5
5818echo "${ECHO_T}yes" >&6
5819 else
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822 fi
5823
5824
5825 enablestring=
5826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5827echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5828 no_cache=0
5829 # Check whether --enable-textfile or --disable-textfile was given.
5830if test "${enable_textfile+set}" = set; then
5831 enableval="$enable_textfile"
5832
5833 if test "$enableval" = yes; then
5834 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5835 else
5836 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5837 fi
5838
5839else
5840
5841 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5842 if test "x$LINE" != x ; then
5843 eval "DEFAULT_$LINE"
5844 else
5845 no_cache=1
5846 fi
5847
5848 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5849
5850fi;
5851
5852 eval "$ac_cv_use_textfile"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_TEXTFILE" = yes; then
5858 echo "$as_me:$LINENO: result: yes" >&5
5859echo "${ECHO_T}yes" >&6
5860 else
5861 echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863 fi
5864
5865
5866 enablestring=
5867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5868echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5869 no_cache=0
5870 # Check whether --enable-timer or --disable-timer was given.
5871if test "${enable_timer+set}" = set; then
5872 enableval="$enable_timer"
5873
5874 if test "$enableval" = yes; then
5875 ac_cv_use_timer='wxUSE_TIMER=yes'
5876 else
5877 ac_cv_use_timer='wxUSE_TIMER=no'
5878 fi
5879
5880else
5881
5882 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5890
5891fi;
5892
5893 eval "$ac_cv_use_timer"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_TIMER" = yes; then
5899 echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
5901 else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904 fi
5905
5906
5907 enablestring=
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5910 no_cache=0
5911 # Check whether --enable-unicode or --disable-unicode was given.
5912if test "${enable_unicode+set}" = set; then
5913 enableval="$enable_unicode"
5914
5915 if test "$enableval" = yes; then
5916 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5917 else
5918 ac_cv_use_unicode='wxUSE_UNICODE=no'
5919 fi
5920
5921else
5922
5923 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5931
5932fi;
5933
5934 eval "$ac_cv_use_unicode"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_UNICODE" = yes; then
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
5942 else
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945 fi
5946
5947
5948 enablestring=
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5951 no_cache=0
5952 # Check whether --enable-sound or --disable-sound was given.
5953if test "${enable_sound+set}" = set; then
5954 enableval="$enable_sound"
5955
5956 if test "$enableval" = yes; then
5957 ac_cv_use_sound='wxUSE_SOUND=yes'
5958 else
5959 ac_cv_use_sound='wxUSE_SOUND=no'
5960 fi
5961
5962else
5963
5964 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5972
5973fi;
5974
5975 eval "$ac_cv_use_sound"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_SOUND" = yes; then
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
5983 else
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986 fi
5987
5988
3b57de8b
RL
5989 enablestring=
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5992 no_cache=0
5993 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5994if test "${enable_mediactrl+set}" = set; then
5995 enableval="$enable_mediactrl"
5996
5997 if test "$enableval" = yes; then
5998 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5999 else
6000 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6001 fi
6002
6003else
6004
6005 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6013
6014fi;
6015
6016 eval "$ac_cv_use_mediactrl"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_MEDIACTRL" = yes; then
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
6024 else
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
6027 fi
6028
6029
a848cd7e
SC
6030 enablestring=
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6033 no_cache=0
6034 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6035if test "${enable_wxprintfv+set}" = set; then
6036 enableval="$enable_wxprintfv"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6040 else
6041 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6042 fi
6043
6044else
6045
6046 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6054
6055fi;
6056
6057 eval "$ac_cv_use_wxprintfv"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
6065 else
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068 fi
6069
6070
6071 enablestring=
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6074 no_cache=0
6075 # Check whether --enable-zipstream or --disable-zipstream was given.
6076if test "${enable_zipstream+set}" = set; then
6077 enableval="$enable_zipstream"
6078
6079 if test "$enableval" = yes; then
6080 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6081 else
6082 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6083 fi
6084
6085else
6086
6087 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6095
6096fi;
6097
6098 eval "$ac_cv_use_zipstream"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_ZIPSTREAM" = yes; then
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
6106 else
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
6109 fi
6110
6111
a848cd7e
SC
6112
6113 enablestring=
6114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6115echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6116 no_cache=0
6117 # Check whether --enable-url or --disable-url was given.
6118if test "${enable_url+set}" = set; then
6119 enableval="$enable_url"
6120
6121 if test "$enableval" = yes; then
6122 ac_cv_use_url='wxUSE_URL=yes'
6123 else
6124 ac_cv_use_url='wxUSE_URL=no'
6125 fi
6126
6127else
6128
6129 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6137
6138fi;
6139
6140 eval "$ac_cv_use_url"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_URL" = yes; then
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
6148 else
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
6151 fi
6152
6153
6154 enablestring=
6155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6156echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6157 no_cache=0
6158 # Check whether --enable-protocol or --disable-protocol was given.
6159if test "${enable_protocol+set}" = set; then
6160 enableval="$enable_protocol"
6161
6162 if test "$enableval" = yes; then
6163 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6164 else
6165 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6166 fi
6167
6168else
6169
6170 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6178
6179fi;
6180
6181 eval "$ac_cv_use_protocol"
6182 if test "$no_cache" != 1; then
6183 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6184 fi
6185
6186 if test "$wxUSE_PROTOCOL" = yes; then
6187 echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6
6189 else
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
6192 fi
6193
6194
6195 enablestring=
6196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6197echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6198 no_cache=0
6199 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6200if test "${enable_protocol_http+set}" = set; then
6201 enableval="$enable_protocol_http"
6202
6203 if test "$enableval" = yes; then
6204 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6205 else
6206 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6207 fi
6208
6209else
6210
6211 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6219
6220fi;
6221
6222 eval "$ac_cv_use_protocol_http"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6228 echo "$as_me:$LINENO: result: yes" >&5
6229echo "${ECHO_T}yes" >&6
6230 else
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
6233 fi
6234
6235
6236 enablestring=
6237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6238echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6239 no_cache=0
6240 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6241if test "${enable_protocol_ftp+set}" = set; then
6242 enableval="$enable_protocol_ftp"
6243
6244 if test "$enableval" = yes; then
6245 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6246 else
6247 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6248 fi
6249
6250else
6251
6252 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6260
6261fi;
6262
6263 eval "$ac_cv_use_protocol_ftp"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6269 echo "$as_me:$LINENO: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
6271 else
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
6274 fi
6275
6276
6277 enablestring=
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6280 no_cache=0
6281 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6282if test "${enable_protocol_file+set}" = set; then
6283 enableval="$enable_protocol_file"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6287 else
6288 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6301
6302fi;
6303
6304 eval "$ac_cv_use_protocol_file"
6305 if test "$no_cache" != 1; then
6306 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6307 fi
6308
6309 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315 fi
6316
6317
6318
6319
6320
6321 enablestring=
6322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6323echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6324 no_cache=0
6325 # Check whether --enable-threads or --disable-threads was given.
6326if test "${enable_threads+set}" = set; then
6327 enableval="$enable_threads"
6328
6329 if test "$enableval" = yes; then
6330 ac_cv_use_threads='wxUSE_THREADS=yes'
6331 else
6332 ac_cv_use_threads='wxUSE_THREADS=no'
6333 fi
6334
6335else
6336
6337 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6338 if test "x$LINE" != x ; then
6339 eval "DEFAULT_$LINE"
6340 else
6341 no_cache=1
6342 fi
6343
6344 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6345
6346fi;
6347
6348 eval "$ac_cv_use_threads"
6349 if test "$no_cache" != 1; then
6350 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6351 fi
6352
6353 if test "$wxUSE_THREADS" = yes; then
6354 echo "$as_me:$LINENO: result: yes" >&5
6355echo "${ECHO_T}yes" >&6
6356 else
6357 echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6
6359 fi
6360
6361
6362if test "$wxUSE_GUI" = "yes"; then
6363
6364
6365
6366 enablestring=
6367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6368echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6369 no_cache=0
6370 # Check whether --enable-docview or --disable-docview was given.
6371if test "${enable_docview+set}" = set; then
6372 enableval="$enable_docview"
6373
6374 if test "$enableval" = yes; then
6375 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6376 else
6377 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6378 fi
6379
6380else
6381
6382 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6390
6391fi;
6392
6393 eval "$ac_cv_use_docview"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6399 echo "$as_me:$LINENO: result: yes" >&5
6400echo "${ECHO_T}yes" >&6
6401 else
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
6404 fi
6405
6406
6407 enablestring=
6408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6409echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6410 no_cache=0
6411 # Check whether --enable-help or --disable-help was given.
6412if test "${enable_help+set}" = set; then
6413 enableval="$enable_help"
6414
6415 if test "$enableval" = yes; then
6416 ac_cv_use_help='wxUSE_HELP=yes'
6417 else
6418 ac_cv_use_help='wxUSE_HELP=no'
6419 fi
6420
6421else
6422
6423 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6424 if test "x$LINE" != x ; then
6425 eval "DEFAULT_$LINE"
6426 else
6427 no_cache=1
6428 fi
6429
6430 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6431
6432fi;
6433
6434 eval "$ac_cv_use_help"
6435 if test "$no_cache" != 1; then
6436 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6437 fi
6438
6439 if test "$wxUSE_HELP" = yes; then
6440 echo "$as_me:$LINENO: result: yes" >&5
6441echo "${ECHO_T}yes" >&6
6442 else
6443 echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445 fi
6446
6447
6448 enablestring=
6449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6450echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6451 no_cache=0
6452 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6453if test "${enable_mshtmlhelp+set}" = set; then
6454 enableval="$enable_mshtmlhelp"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6458 else
6459 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6460 fi
6461
6462else
6463
6464 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6472
6473fi;
6474
6475 eval "$ac_cv_use_mshtmlhelp"
6476 if test "$no_cache" != 1; then
6477 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6478 fi
6479
6480 if test "$wxUSE_MS_HTML_HELP" = yes; then
6481 echo "$as_me:$LINENO: result: yes" >&5
6482echo "${ECHO_T}yes" >&6
6483 else
6484 echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6
6486 fi
6487
6488
6489 enablestring=
6490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6491echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6492 no_cache=0
6493 # Check whether --enable-html or --disable-html was given.
6494if test "${enable_html+set}" = set; then
6495 enableval="$enable_html"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_html='wxUSE_HTML=yes'
6499 else
6500 ac_cv_use_html='wxUSE_HTML=no'
6501 fi
6502
6503else
6504
6505 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6513
6514fi;
6515
6516 eval "$ac_cv_use_html"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_HTML" = yes; then
6522 echo "$as_me:$LINENO: result: yes" >&5
6523echo "${ECHO_T}yes" >&6
6524 else
6525 echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6
6527 fi
6528
6529
6530 enablestring=
6531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6532echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6533 no_cache=0
6534 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6535if test "${enable_htmlhelp+set}" = set; then
6536 enableval="$enable_htmlhelp"
6537
6538 if test "$enableval" = yes; then
6539 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6540 else
6541 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6542 fi
6543
6544else
6545
6546 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6554
6555fi;
6556
6557 eval "$ac_cv_use_htmlhelp"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_WXHTML_HELP" = yes; then
6563 echo "$as_me:$LINENO: result: yes" >&5
6564echo "${ECHO_T}yes" >&6
6565 else
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
6568 fi
6569
6570
9a8f0513
VS
6571 enablestring=
6572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6573echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6574 no_cache=0
6575 # Check whether --enable-xrc or --disable-xrc was given.
6576if test "${enable_xrc+set}" = set; then
6577 enableval="$enable_xrc"
6578
6579 if test "$enableval" = yes; then
6580 ac_cv_use_xrc='wxUSE_XRC=yes'
6581 else
6582 ac_cv_use_xrc='wxUSE_XRC=no'
6583 fi
6584
6585else
6586
6587 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6595
6596fi;
6597
6598 eval "$ac_cv_use_xrc"
6599 if test "$no_cache" != 1; then
6600 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6601 fi
6602
6603 if test "$wxUSE_XRC" = yes; then
6604 echo "$as_me:$LINENO: result: yes" >&5
6605echo "${ECHO_T}yes" >&6
6606 else
6607 echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6
6609 fi
6610
6611
a848cd7e
SC
6612 enablestring=
6613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6614echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6615 no_cache=0
6616 # Check whether --enable-constraints or --disable-constraints was given.
6617if test "${enable_constraints+set}" = set; then
6618 enableval="$enable_constraints"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6622 else
6623 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6636
6637fi;
6638
6639 eval "$ac_cv_use_constraints"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_CONSTRAINTS" = yes; then
6645 echo "$as_me:$LINENO: result: yes" >&5
6646echo "${ECHO_T}yes" >&6
6647 else
6648 echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6
6650 fi
6651
6652
6653 enablestring=
6654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6655echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6656 no_cache=0
6657 # Check whether --enable-printarch or --disable-printarch was given.
6658if test "${enable_printarch+set}" = set; then
6659 enableval="$enable_printarch"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6663 else
6664 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6665 fi
6666
6667else
6668
6669 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6677
6678fi;
6679
6680 eval "$ac_cv_use_printarch"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6686 echo "$as_me:$LINENO: result: yes" >&5
6687echo "${ECHO_T}yes" >&6
6688 else
6689 echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6
6691 fi
6692
6693
6694 enablestring=
6695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6696echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6697 no_cache=0
6698 # Check whether --enable-mdi or --disable-mdi was given.
6699if test "${enable_mdi+set}" = set; then
6700 enableval="$enable_mdi"
6701
6702 if test "$enableval" = yes; then
8a7b1113 6703 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6704 else
8a7b1113 6705 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6706 fi
6707
6708else
6709
8a7b1113 6710 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6711 if test "x$LINE" != x ; then
6712 eval "DEFAULT_$LINE"
6713 else
6714 no_cache=1
6715 fi
6716
8a7b1113 6717 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6718
6719fi;
6720
6721 eval "$ac_cv_use_mdi"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6724 fi
6725
8a7b1113
VZ
6726 if test "$wxUSE_MDI" = yes; then
6727 echo "$as_me:$LINENO: result: yes" >&5
6728echo "${ECHO_T}yes" >&6
6729 else
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732 fi
6733
6734
6735 enablestring=
6736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6737echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6738 no_cache=0
6739 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6740if test "${enable_mdidoc+set}" = set; then
6741 enableval="$enable_mdidoc"
6742
6743 if test "$enableval" = yes; then
6744 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6745 else
6746 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6747 fi
6748
6749else
6750
6751 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6759
6760fi;
6761
6762 eval "$ac_cv_use_mdidoc"
6763 if test "$no_cache" != 1; then
6764 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6765 fi
6766
a848cd7e
SC
6767 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6768 echo "$as_me:$LINENO: result: yes" >&5
6769echo "${ECHO_T}yes" >&6
6770 else
6771 echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6
6773 fi
6774
6775
6776 enablestring=
6777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6778echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6779 no_cache=0
6780 # Check whether --enable-loggui or --disable-loggui was given.
6781if test "${enable_loggui+set}" = set; then
6782 enableval="$enable_loggui"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6786 else
6787 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6788 fi
6789
6790else
6791
6792 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6800
6801fi;
6802
6803 eval "$ac_cv_use_loggui"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_LOGGUI" = yes; then
6809 echo "$as_me:$LINENO: result: yes" >&5
6810echo "${ECHO_T}yes" >&6
6811 else
6812 echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6
6814 fi
6815
6816
6817 enablestring=
6818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6819echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6820 no_cache=0
6821 # Check whether --enable-logwin or --disable-logwin was given.
6822if test "${enable_logwin+set}" = set; then
6823 enableval="$enable_logwin"
6824
6825 if test "$enableval" = yes; then
6826 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6827 else
6828 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6829 fi
6830
6831else
6832
6833 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6834 if test "x$LINE" != x ; then
6835 eval "DEFAULT_$LINE"
6836 else
6837 no_cache=1
6838 fi
6839
6840 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6841
6842fi;
6843
6844 eval "$ac_cv_use_logwin"
6845 if test "$no_cache" != 1; then
6846 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6847 fi
6848
6849 if test "$wxUSE_LOGWINDOW" = yes; then
6850 echo "$as_me:$LINENO: result: yes" >&5
6851echo "${ECHO_T}yes" >&6
6852 else
6853 echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6
6855 fi
6856
6857
6858 enablestring=
6859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6860echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6861 no_cache=0
6862 # Check whether --enable-logdialog or --disable-logdialog was given.
6863if test "${enable_logdialog+set}" = set; then
6864 enableval="$enable_logdialog"
6865
6866 if test "$enableval" = yes; then
6867 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6868 else
6869 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6870 fi
6871
6872else
6873
6874 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6875 if test "x$LINE" != x ; then
6876 eval "DEFAULT_$LINE"
6877 else
6878 no_cache=1
6879 fi
6880
6881 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6882
6883fi;
6884
6885 eval "$ac_cv_use_logdialog"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_LOGDIALOG" = yes; then
6891 echo "$as_me:$LINENO: result: yes" >&5
6892echo "${ECHO_T}yes" >&6
6893 else
6894 echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6
6896 fi
6897
6898
646b6ec1
VS
6899 enablestring=
6900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6901echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6902 no_cache=0
6903 # Check whether --enable-webkit or --disable-webkit was given.
6904if test "${enable_webkit+set}" = set; then
6905 enableval="$enable_webkit"
6906
6907 if test "$enableval" = yes; then
6908 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6909 else
6910 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6911 fi
6912
6913else
6914
6915 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6923
6924fi;
6925
6926 eval "$ac_cv_use_webkit"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_WEBKIT" = yes; then
6932 echo "$as_me:$LINENO: result: yes" >&5
6933echo "${ECHO_T}yes" >&6
6934 else
6935 echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937 fi
6938
6939
a848cd7e
SC
6940
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-postscript or --disable-postscript was given.
6946if test "${enable_postscript+set}" = set; then
6947 enableval="$enable_postscript"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6951 else
6952 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6965
6966fi;
6967
6968 eval "$ac_cv_use_postscript"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_POSTSCRIPT" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
6982
6983
6984
6985 enablestring=
6986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6987echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6988 no_cache=0
6989 # Check whether --enable-prologio or --disable-prologio was given.
6990if test "${enable_prologio+set}" = set; then
6991 enableval="$enable_prologio"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6995 else
6996 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6997 fi
6998
6999else
7000
7001 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7009
7010fi;
7011
7012 eval "$ac_cv_use_prologio"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_PROLOGIO" = yes; then
7018 echo "$as_me:$LINENO: result: yes" >&5
7019echo "${ECHO_T}yes" >&6
7020 else
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
7023 fi
7024
7025
7026 enablestring=
7027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7028echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7029 no_cache=0
7030 # Check whether --enable-resources or --disable-resources was given.
7031if test "${enable_resources+set}" = set; then
7032 enableval="$enable_resources"
7033
7034 if test "$enableval" = yes; then
7035 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7036 else
7037 ac_cv_use_resources='wxUSE_RESOURCES=no'
7038 fi
7039
7040else
7041
7042 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7043 if test "x$LINE" != x ; then
7044 eval "DEFAULT_$LINE"
7045 else
7046 no_cache=1
7047 fi
7048
7049 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7050
7051fi;
7052
7053 eval "$ac_cv_use_resources"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7056 fi
7057
7058 if test "$wxUSE_RESOURCES" = yes; then
7059 echo "$as_me:$LINENO: result: yes" >&5
7060echo "${ECHO_T}yes" >&6
7061 else
7062 echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6
7064 fi
7065
7066
7067
7068
7069 enablestring=
7070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7071echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7072 no_cache=0
7073 # Check whether --enable-clipboard or --disable-clipboard was given.
7074if test "${enable_clipboard+set}" = set; then
7075 enableval="$enable_clipboard"
7076
7077 if test "$enableval" = yes; then
7078 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7079 else
7080 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7081 fi
7082
7083else
7084
7085 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7086 if test "x$LINE" != x ; then
7087 eval "DEFAULT_$LINE"
7088 else
7089 no_cache=1
7090 fi
7091
7092 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7093
7094fi;
7095
7096 eval "$ac_cv_use_clipboard"
7097 if test "$no_cache" != 1; then
7098 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7099 fi
7100
7101 if test "$wxUSE_CLIPBOARD" = yes; then
7102 echo "$as_me:$LINENO: result: yes" >&5
7103echo "${ECHO_T}yes" >&6
7104 else
7105 echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6
7107 fi
7108
7109
7110 enablestring=
7111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7112echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7113 no_cache=0
7114 # Check whether --enable-dnd or --disable-dnd was given.
7115if test "${enable_dnd+set}" = set; then
7116 enableval="$enable_dnd"
7117
7118 if test "$enableval" = yes; then
7119 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7120 else
7121 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7122 fi
7123
7124else
7125
7126 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7127 if test "x$LINE" != x ; then
7128 eval "DEFAULT_$LINE"
7129 else
7130 no_cache=1
7131 fi
7132
7133 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7134
7135fi;
7136
7137 eval "$ac_cv_use_dnd"
7138 if test "$no_cache" != 1; then
7139 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7140 fi
7141
7142 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7143 echo "$as_me:$LINENO: result: yes" >&5
7144echo "${ECHO_T}yes" >&6
7145 else
7146 echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6
7148 fi
7149
7150
7151 enablestring=
7152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7153echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7154 no_cache=0
7155 # Check whether --enable-metafile or --disable-metafile was given.
7156if test "${enable_metafile+set}" = set; then
7157 enableval="$enable_metafile"
7158
7159 if test "$enableval" = yes; then
7160 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7161 else
7162 ac_cv_use_metafile='wxUSE_METAFILE=no'
7163 fi
7164
7165else
7166
7167 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7168 if test "x$LINE" != x ; then
7169 eval "DEFAULT_$LINE"
7170 else
7171 no_cache=1
7172 fi
7173
7174 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7175
7176fi;
7177
7178 eval "$ac_cv_use_metafile"
7179 if test "$no_cache" != 1; then
7180 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7181 fi
7182
7183 if test "$wxUSE_METAFILE" = yes; then
7184 echo "$as_me:$LINENO: result: yes" >&5
7185echo "${ECHO_T}yes" >&6
7186 else
7187 echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6
7189 fi
7190
7191
7192
7193
7194
7195 enablestring=
7196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7197echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7198 no_cache=0
7199 # Check whether --enable-controls or --disable-controls was given.
7200if test "${enable_controls+set}" = set; then
7201 enableval="$enable_controls"
7202
7203 if test "$enableval" = yes; then
7204 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7205 else
7206 ac_cv_use_controls='wxUSE_CONTROLS=no'
7207 fi
7208
7209else
7210
7211 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7219
7220fi;
7221
7222 eval "$ac_cv_use_controls"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_CONTROLS" = yes; then
7228 echo "$as_me:$LINENO: result: yes" >&5
7229echo "${ECHO_T}yes" >&6
7230 else
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
7233 fi
7234
7235
7236if test "$wxUSE_CONTROLS" = "yes"; then
7237 DEFAULT_wxUSE_ACCEL=yes
7238 DEFAULT_wxUSE_BMPBUTTON=yes
7239 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7240 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7241 DEFAULT_wxUSE_CARET=yes
7242 DEFAULT_wxUSE_COMBOBOX=yes
7243 DEFAULT_wxUSE_CHECKBOX=yes
7244 DEFAULT_wxUSE_CHECKLISTBOX=yes
7245 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7246 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7247 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7248 DEFAULT_wxUSE_GAUGE=yes
7249 DEFAULT_wxUSE_GRID=yes
7250 DEFAULT_wxUSE_IMAGLIST=yes
7251 DEFAULT_wxUSE_LISTBOOK=yes
7252 DEFAULT_wxUSE_LISTBOX=yes
7253 DEFAULT_wxUSE_LISTCTRL=yes
7254 DEFAULT_wxUSE_NOTEBOOK=yes
7255 DEFAULT_wxUSE_RADIOBOX=yes
7256 DEFAULT_wxUSE_RADIOBTN=yes
7257 DEFAULT_wxUSE_SASH=yes
7258 DEFAULT_wxUSE_SCROLLBAR=yes
7259 DEFAULT_wxUSE_SLIDER=yes
7260 DEFAULT_wxUSE_SPINBTN=yes
7261 DEFAULT_wxUSE_SPINCTRL=yes
7262 DEFAULT_wxUSE_SPLITTER=yes
7263 DEFAULT_wxUSE_STATBMP=yes
7264 DEFAULT_wxUSE_STATBOX=yes
7265 DEFAULT_wxUSE_STATLINE=yes
7266 DEFAULT_wxUSE_STATUSBAR=yes
7267 DEFAULT_wxUSE_TAB_DIALOG=yes
7268 DEFAULT_wxUSE_TOGGLEBTN=yes
7269 DEFAULT_wxUSE_TOOLBAR=yes
7270 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7271 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7272 DEFAULT_wxUSE_TOOLTIPS=yes
7273 DEFAULT_wxUSE_TREECTRL=yes
7274 DEFAULT_wxUSE_POPUPWIN=yes
7275 DEFAULT_wxUSE_TIPWINDOW=yes
7276elif test "$wxUSE_CONTROLS" = "no"; then
7277 DEFAULT_wxUSE_ACCEL=no
7278 DEFAULT_wxUSE_BMPBUTTON=no
7279 DEFAULT_wxUSE_BUTTON=no
7280 DEFAULT_wxUSE_CALCTRL=no
7281 DEFAULT_wxUSE_CARET=no
7282 DEFAULT_wxUSE_COMBOBOX=no
7283 DEFAULT_wxUSE_CHECKBOX=no
7284 DEFAULT_wxUSE_CHECKLISTBOX=no
7285 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7286 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7287 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7288 DEFAULT_wxUSE_GAUGE=no
7289 DEFAULT_wxUSE_GRID=no
7290 DEFAULT_wxUSE_IMAGLIST=no
7291 DEFAULT_wxUSE_LISTBOOK=no
7292 DEFAULT_wxUSE_LISTBOX=no
7293 DEFAULT_wxUSE_LISTCTRL=no
7294 DEFAULT_wxUSE_NOTEBOOK=no
7295 DEFAULT_wxUSE_RADIOBOX=no
7296 DEFAULT_wxUSE_RADIOBTN=no
7297 DEFAULT_wxUSE_SASH=no
7298 DEFAULT_wxUSE_SCROLLBAR=no
7299 DEFAULT_wxUSE_SLIDER=no
7300 DEFAULT_wxUSE_SPINBTN=no
7301 DEFAULT_wxUSE_SPINCTRL=no
7302 DEFAULT_wxUSE_SPLITTER=no
7303 DEFAULT_wxUSE_STATBMP=no
7304 DEFAULT_wxUSE_STATBOX=no
7305 DEFAULT_wxUSE_STATLINE=no
7306 DEFAULT_wxUSE_STATUSBAR=no
7307 DEFAULT_wxUSE_TAB_DIALOG=no
7308 DEFAULT_wxUSE_TOGGLEBTN=no
7309 DEFAULT_wxUSE_TOOLBAR=no
7310 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7311 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7312 DEFAULT_wxUSE_TOOLTIPS=no
7313 DEFAULT_wxUSE_TREECTRL=no
7314 DEFAULT_wxUSE_POPUPWIN=no
7315 DEFAULT_wxUSE_TIPWINDOW=no
7316fi
7317
a848cd7e
SC
7318
7319 enablestring=
7320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7321echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7322 no_cache=0
7323 # Check whether --enable-accel or --disable-accel was given.
7324if test "${enable_accel+set}" = set; then
7325 enableval="$enable_accel"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_accel='wxUSE_ACCEL=yes'
7329 else
7330 ac_cv_use_accel='wxUSE_ACCEL=no'
7331 fi
7332
7333else
7334
7335 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7343
7344fi;
7345
7346 eval "$ac_cv_use_accel"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_ACCEL" = yes; then
7352 echo "$as_me:$LINENO: result: yes" >&5
7353echo "${ECHO_T}yes" >&6
7354 else
7355 echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6
7357 fi
7358
7359
7360 enablestring=
7361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7362echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7363 no_cache=0
7364 # Check whether --enable-button or --disable-button was given.
7365if test "${enable_button+set}" = set; then
7366 enableval="$enable_button"
7367
7368 if test "$enableval" = yes; then
7369 ac_cv_use_button='wxUSE_BUTTON=yes'
7370 else
7371 ac_cv_use_button='wxUSE_BUTTON=no'
7372 fi
7373
7374else
7375
7376 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7377 if test "x$LINE" != x ; then
7378 eval "DEFAULT_$LINE"
7379 else
7380 no_cache=1
7381 fi
7382
7383 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7384
7385fi;
7386
7387 eval "$ac_cv_use_button"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_BUTTON" = yes; then
7393 echo "$as_me:$LINENO: result: yes" >&5
7394echo "${ECHO_T}yes" >&6
7395 else
7396 echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6
7398 fi
7399
7400
7401 enablestring=
7402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7403echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7404 no_cache=0
7405 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7406if test "${enable_bmpbutton+set}" = set; then
7407 enableval="$enable_bmpbutton"
7408
7409 if test "$enableval" = yes; then
7410 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7411 else
7412 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7413 fi
7414
7415else
7416
7417 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7425
7426fi;
7427
7428 eval "$ac_cv_use_bmpbutton"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_BMPBUTTON" = yes; then
7434 echo "$as_me:$LINENO: result: yes" >&5
7435echo "${ECHO_T}yes" >&6
7436 else
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
7439 fi
7440
7441
7442 enablestring=
7443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7444echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7445 no_cache=0
7446 # Check whether --enable-calendar or --disable-calendar was given.
7447if test "${enable_calendar+set}" = set; then
7448 enableval="$enable_calendar"
7449
7450 if test "$enableval" = yes; then
7451 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7452 else
7453 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7454 fi
7455
7456else
7457
7458 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7466
7467fi;
7468
7469 eval "$ac_cv_use_calendar"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_CALCTRL" = yes; then
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
7477 else
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
7480 fi
7481
7482
7483 enablestring=
7484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7485echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7486 no_cache=0
7487 # Check whether --enable-caret or --disable-caret was given.
7488if test "${enable_caret+set}" = set; then
7489 enableval="$enable_caret"
7490
7491 if test "$enableval" = yes; then
7492 ac_cv_use_caret='wxUSE_CARET=yes'
7493 else
7494 ac_cv_use_caret='wxUSE_CARET=no'
7495 fi
7496
7497else
7498
7499 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7507
7508fi;
7509
7510 eval "$ac_cv_use_caret"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_CARET" = yes; then
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
7518 else
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
7521 fi
7522
7523
7524 enablestring=
7525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7526echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7527 no_cache=0
7528 # Check whether --enable-checkbox or --disable-checkbox was given.
7529if test "${enable_checkbox+set}" = set; then
7530 enableval="$enable_checkbox"
7531
7532 if test "$enableval" = yes; then
7533 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7534 else
7535 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7536 fi
7537
7538else
7539
7540 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7548
7549fi;
7550
7551 eval "$ac_cv_use_checkbox"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_CHECKBOX" = yes; then
7557 echo "$as_me:$LINENO: result: yes" >&5
7558echo "${ECHO_T}yes" >&6
7559 else
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
7562 fi
7563
7564
7565 enablestring=
7566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7567echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7568 no_cache=0
7569 # Check whether --enable-checklst or --disable-checklst was given.
7570if test "${enable_checklst+set}" = set; then
7571 enableval="$enable_checklst"
7572
7573 if test "$enableval" = yes; then
7574 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7575 else
7576 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7577 fi
7578
7579else
7580
7581 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7582 if test "x$LINE" != x ; then
7583 eval "DEFAULT_$LINE"
7584 else
7585 no_cache=1
7586 fi
7587
7588 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7589
7590fi;
7591
7592 eval "$ac_cv_use_checklst"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_CHECKLST" = yes; then
7598 echo "$as_me:$LINENO: result: yes" >&5
7599echo "${ECHO_T}yes" >&6
7600 else
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603 fi
7604
7605
7606 enablestring=
7607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7608echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7609 no_cache=0
7610 # Check whether --enable-choice or --disable-choice was given.
7611if test "${enable_choice+set}" = set; then
7612 enableval="$enable_choice"
7613
7614 if test "$enableval" = yes; then
7615 ac_cv_use_choice='wxUSE_CHOICE=yes'
7616 else
7617 ac_cv_use_choice='wxUSE_CHOICE=no'
7618 fi
7619
7620else
7621
7622 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7630
7631fi;
7632
7633 eval "$ac_cv_use_choice"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_CHOICE" = yes; then
7639 echo "$as_me:$LINENO: result: yes" >&5
7640echo "${ECHO_T}yes" >&6
7641 else
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
7644 fi
7645
7646
92bbdbcd
WS
7647 enablestring=
7648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7649echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7650 no_cache=0
7651 # Check whether --enable-choicebook or --disable-choicebook was given.
7652if test "${enable_choicebook+set}" = set; then
7653 enableval="$enable_choicebook"
7654
7655 if test "$enableval" = yes; then
7656 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7657 else
7658 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7659 fi
7660
7661else
7662
7663 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7671
7672fi;
7673
7674 eval "$ac_cv_use_choicebook"
7675 if test "$no_cache" != 1; then
7676 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7677 fi
7678
7679 if test "$wxUSE_CHOICEBOOK" = yes; then
7680 echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6
7682 else
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
7685 fi
7686
7687
a848cd7e
SC
7688 enablestring=
7689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7690echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7691 no_cache=0
7692 # Check whether --enable-combobox or --disable-combobox was given.
7693if test "${enable_combobox+set}" = set; then
7694 enableval="$enable_combobox"
7695
7696 if test "$enableval" = yes; then
7697 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7698 else
7699 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7700 fi
7701
7702else
7703
7704 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7705 if test "x$LINE" != x ; then
7706 eval "DEFAULT_$LINE"
7707 else
7708 no_cache=1
7709 fi
7710
7711 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7712
7713fi;
7714
7715 eval "$ac_cv_use_combobox"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_COMBOBOX" = yes; then
7721 echo "$as_me:$LINENO: result: yes" >&5
7722echo "${ECHO_T}yes" >&6
7723 else
7724 echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6
7726 fi
7727
7728
da98e9be
VZ
7729 enablestring=
7730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7731echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7732 no_cache=0
7733 # Check whether --enable-datepick or --disable-datepick was given.
7734if test "${enable_datepick+set}" = set; then
7735 enableval="$enable_datepick"
7736
7737 if test "$enableval" = yes; then
7738 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7739 else
7740 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7741 fi
7742
7743else
7744
7745 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7746 if test "x$LINE" != x ; then
7747 eval "DEFAULT_$LINE"
7748 else
7749 no_cache=1
7750 fi
7751
7752 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7753
7754fi;
7755
7756 eval "$ac_cv_use_datepick"
7757 if test "$no_cache" != 1; then
7758 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7759 fi
7760
7761 if test "$wxUSE_DATEPICKCTRL" = yes; then
7762 echo "$as_me:$LINENO: result: yes" >&5
7763echo "${ECHO_T}yes" >&6
7764 else
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
7767 fi
7768
7769
a848cd7e
SC
7770 enablestring=
7771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7772echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7773 no_cache=0
7774 # Check whether --enable-display or --disable-display was given.
7775if test "${enable_display+set}" = set; then
7776 enableval="$enable_display"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_display='wxUSE_DISPLAY=yes'
7780 else
7781 ac_cv_use_display='wxUSE_DISPLAY=no'
7782 fi
7783
7784else
7785
7786 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7794
7795fi;
7796
7797 eval "$ac_cv_use_display"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_DISPLAY" = yes; then
7803 echo "$as_me:$LINENO: result: yes" >&5
7804echo "${ECHO_T}yes" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
7808 fi
7809
7810
7811 enablestring=
7812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7813echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7814 no_cache=0
7815 # Check whether --enable-gauge or --disable-gauge was given.
7816if test "${enable_gauge+set}" = set; then
7817 enableval="$enable_gauge"
7818
7819 if test "$enableval" = yes; then
7820 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7821 else
7822 ac_cv_use_gauge='wxUSE_GAUGE=no'
7823 fi
7824
7825else
7826
7827 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7835
7836fi;
7837
7838 eval "$ac_cv_use_gauge"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_GAUGE" = yes; then
7844 echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6
7846 else
7847 echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6
7849 fi
7850
7851
7852 enablestring=
7853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7854echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7855 no_cache=0
7856 # Check whether --enable-grid or --disable-grid was given.
7857if test "${enable_grid+set}" = set; then
7858 enableval="$enable_grid"
7859
7860 if test "$enableval" = yes; then
7861 ac_cv_use_grid='wxUSE_GRID=yes'
7862 else
7863 ac_cv_use_grid='wxUSE_GRID=no'
7864 fi
7865
7866else
7867
7868 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7876
7877fi;
7878
7879 eval "$ac_cv_use_grid"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_GRID" = yes; then
7885 echo "$as_me:$LINENO: result: yes" >&5
7886echo "${ECHO_T}yes" >&6
7887 else
7888 echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
7890 fi
7891
7892
7893 enablestring=
7894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7895echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7896 no_cache=0
7897 # Check whether --enable-imaglist or --disable-imaglist was given.
7898if test "${enable_imaglist+set}" = set; then
7899 enableval="$enable_imaglist"
7900
7901 if test "$enableval" = yes; then
7902 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7903 else
7904 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7905 fi
7906
7907else
7908
7909 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7910 if test "x$LINE" != x ; then
7911 eval "DEFAULT_$LINE"
7912 else
7913 no_cache=1
7914 fi
7915
7916 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7917
7918fi;
7919
7920 eval "$ac_cv_use_imaglist"
7921 if test "$no_cache" != 1; then
7922 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7923 fi
7924
7925 if test "$wxUSE_IMAGLIST" = yes; then
7926 echo "$as_me:$LINENO: result: yes" >&5
7927echo "${ECHO_T}yes" >&6
7928 else
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
7931 fi
7932
7933
7934 enablestring=
7935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7936echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7937 no_cache=0
7938 # Check whether --enable-listbook or --disable-listbook was given.
7939if test "${enable_listbook+set}" = set; then
7940 enableval="$enable_listbook"
7941
7942 if test "$enableval" = yes; then
7943 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7944 else
7945 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7946 fi
7947
7948else
7949
7950 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7958
7959fi;
7960
7961 eval "$ac_cv_use_listbook"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_LISTBOOK" = yes; then
7967 echo "$as_me:$LINENO: result: yes" >&5
7968echo "${ECHO_T}yes" >&6
7969 else
7970 echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6
7972 fi
7973
7974
7975 enablestring=
7976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7977echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7978 no_cache=0
7979 # Check whether --enable-listbox or --disable-listbox was given.
7980if test "${enable_listbox+set}" = set; then
7981 enableval="$enable_listbox"
7982
7983 if test "$enableval" = yes; then
7984 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7985 else
7986 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7987 fi
7988
7989else
7990
7991 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7999
8000fi;
8001
8002 eval "$ac_cv_use_listbox"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_LISTBOX" = yes; then
8008 echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6
8010 else
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
8013 fi
8014
8015
8016 enablestring=
8017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8018echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8019 no_cache=0
8020 # Check whether --enable-listctrl or --disable-listctrl was given.
8021if test "${enable_listctrl+set}" = set; then
8022 enableval="$enable_listctrl"
8023
8024 if test "$enableval" = yes; then
8025 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8026 else
8027 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8028 fi
8029
8030else
8031
8032 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8040
8041fi;
8042
8043 eval "$ac_cv_use_listctrl"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_LISTCTRL" = yes; then
8049 echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6
8051 else
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054 fi
8055
8056
8057 enablestring=
8058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8059echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8060 no_cache=0
8061 # Check whether --enable-notebook or --disable-notebook was given.
8062if test "${enable_notebook+set}" = set; then
8063 enableval="$enable_notebook"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8067 else
8068 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8081
8082fi;
8083
8084 eval "$ac_cv_use_notebook"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_NOTEBOOK" = yes; then
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
8092 else
8093 echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
8095 fi
8096
8097
8098 enablestring=
8099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8100echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8101 no_cache=0
8102 # Check whether --enable-radiobox or --disable-radiobox was given.
8103if test "${enable_radiobox+set}" = set; then
8104 enableval="$enable_radiobox"
8105
8106 if test "$enableval" = yes; then
8107 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8108 else
8109 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8110 fi
8111
8112else
8113
8114 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8122
8123fi;
8124
8125 eval "$ac_cv_use_radiobox"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_RADIOBOX" = yes; then
8131 echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6
8133 else
8134 echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
8136 fi
8137
8138
8139 enablestring=
8140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8141echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8142 no_cache=0
8143 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8144if test "${enable_radiobtn+set}" = set; then
8145 enableval="$enable_radiobtn"
8146
8147 if test "$enableval" = yes; then
8148 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8149 else
8150 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8151 fi
8152
8153else
8154
8155 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8163
8164fi;
8165
8166 eval "$ac_cv_use_radiobtn"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_RADIOBTN" = yes; then
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
8174 else
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
8177 fi
8178
8179
8180 enablestring=
8181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8182echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8183 no_cache=0
8184 # Check whether --enable-sash or --disable-sash was given.
8185if test "${enable_sash+set}" = set; then
8186 enableval="$enable_sash"
8187
8188 if test "$enableval" = yes; then
8189 ac_cv_use_sash='wxUSE_SASH=yes'
8190 else
8191 ac_cv_use_sash='wxUSE_SASH=no'
8192 fi
8193
8194else
8195
8196 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8204
8205fi;
8206
8207 eval "$ac_cv_use_sash"
8208 if test "$no_cache" != 1; then
8209 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8210 fi
8211
8212 if test "$wxUSE_SASH" = yes; then
8213 echo "$as_me:$LINENO: result: yes" >&5
8214echo "${ECHO_T}yes" >&6
8215 else
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
8218 fi
8219
8220
8221 enablestring=
8222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8223echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8224 no_cache=0
8225 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8226if test "${enable_scrollbar+set}" = set; then
8227 enableval="$enable_scrollbar"
8228
8229 if test "$enableval" = yes; then
8230 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8231 else
8232 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8233 fi
8234
8235else
8236
8237 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8238 if test "x$LINE" != x ; then
8239 eval "DEFAULT_$LINE"
8240 else
8241 no_cache=1
8242 fi
8243
8244 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8245
8246fi;
8247
8248 eval "$ac_cv_use_scrollbar"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_SCROLLBAR" = yes; then
8254 echo "$as_me:$LINENO: result: yes" >&5
8255echo "${ECHO_T}yes" >&6
8256 else
8257 echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
8259 fi
8260
8261
8262 enablestring=
8263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8265 no_cache=0
8266 # Check whether --enable-slider or --disable-slider was given.
8267if test "${enable_slider+set}" = set; then
8268 enableval="$enable_slider"
8269
8270 if test "$enableval" = yes; then
8271 ac_cv_use_slider='wxUSE_SLIDER=yes'
8272 else
8273 ac_cv_use_slider='wxUSE_SLIDER=no'
8274 fi
8275
8276else
8277
8278 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8279 if test "x$LINE" != x ; then
8280 eval "DEFAULT_$LINE"
8281 else
8282 no_cache=1
8283 fi
8284
8285 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8286
8287fi;
8288
8289 eval "$ac_cv_use_slider"
8290 if test "$no_cache" != 1; then
8291 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8292 fi
8293
8294 if test "$wxUSE_SLIDER" = yes; then
8295 echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
8297 else
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
8300 fi
8301
8302
8303 enablestring=
8304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8305echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8306 no_cache=0
8307 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8308if test "${enable_spinbtn+set}" = set; then
8309 enableval="$enable_spinbtn"
8310
8311 if test "$enableval" = yes; then
8312 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8313 else
8314 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8315 fi
8316
8317else
8318
8319 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8327
8328fi;
8329
8330 eval "$ac_cv_use_spinbtn"
8331 if test "$no_cache" != 1; then
8332 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8333 fi
8334
8335 if test "$wxUSE_SPINBTN" = yes; then
8336 echo "$as_me:$LINENO: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
8338 else
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8341 fi
8342
8343
8344 enablestring=
8345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8346echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8347 no_cache=0
8348 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8349if test "${enable_spinctrl+set}" = set; then
8350 enableval="$enable_spinctrl"
8351
8352 if test "$enableval" = yes; then
8353 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8354 else
8355 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8356 fi
8357
8358else
8359
8360 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8361 if test "x$LINE" != x ; then
8362 eval "DEFAULT_$LINE"
8363 else
8364 no_cache=1
8365 fi
8366
8367 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8368
8369fi;
8370
8371 eval "$ac_cv_use_spinctrl"
8372 if test "$no_cache" != 1; then
8373 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8374 fi
8375
8376 if test "$wxUSE_SPINCTRL" = yes; then
8377 echo "$as_me:$LINENO: result: yes" >&5
8378echo "${ECHO_T}yes" >&6
8379 else
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
8382 fi
8383
8384
8385 enablestring=
8386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8387echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8388 no_cache=0
8389 # Check whether --enable-splitter or --disable-splitter was given.
8390if test "${enable_splitter+set}" = set; then
8391 enableval="$enable_splitter"
8392
8393 if test "$enableval" = yes; then
8394 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8395 else
8396 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8397 fi
8398
8399else
8400
8401 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8402 if test "x$LINE" != x ; then
8403 eval "DEFAULT_$LINE"
8404 else
8405 no_cache=1
8406 fi
8407
8408 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8409
8410fi;
8411
8412 eval "$ac_cv_use_splitter"
8413 if test "$no_cache" != 1; then
8414 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8415 fi
8416
8417 if test "$wxUSE_SPLITTER" = yes; then
8418 echo "$as_me:$LINENO: result: yes" >&5
8419echo "${ECHO_T}yes" >&6
8420 else
8421 echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6
8423 fi
8424
8425
8426 enablestring=
8427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8428echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8429 no_cache=0
8430 # Check whether --enable-statbmp or --disable-statbmp was given.
8431if test "${enable_statbmp+set}" = set; then
8432 enableval="$enable_statbmp"
8433
8434 if test "$enableval" = yes; then
8435 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8436 else
8437 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8438 fi
8439
8440else
8441
8442 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8443 if test "x$LINE" != x ; then
8444 eval "DEFAULT_$LINE"
8445 else
8446 no_cache=1
8447 fi
8448
8449 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8450
8451fi;
8452
8453 eval "$ac_cv_use_statbmp"
8454 if test "$no_cache" != 1; then
8455 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8456 fi
8457
8458 if test "$wxUSE_STATBMP" = yes; then
8459 echo "$as_me:$LINENO: result: yes" >&5
8460echo "${ECHO_T}yes" >&6
8461 else
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
8464 fi
8465
8466
8467 enablestring=
8468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8469echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8470 no_cache=0
8471 # Check whether --enable-statbox or --disable-statbox was given.
8472if test "${enable_statbox+set}" = set; then
8473 enableval="$enable_statbox"
8474
8475 if test "$enableval" = yes; then
8476 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8477 else
8478 ac_cv_use_statbox='wxUSE_STATBOX=no'
8479 fi
8480
8481else
8482
8483 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8484 if test "x$LINE" != x ; then
8485 eval "DEFAULT_$LINE"
8486 else
8487 no_cache=1
8488 fi
8489
8490 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8491
8492fi;
8493
8494 eval "$ac_cv_use_statbox"
8495 if test "$no_cache" != 1; then
8496 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8497 fi
8498
8499 if test "$wxUSE_STATBOX" = yes; then
8500 echo "$as_me:$LINENO: result: yes" >&5
8501echo "${ECHO_T}yes" >&6
8502 else
8503 echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6
8505 fi
8506
8507
8508 enablestring=
8509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8510echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8511 no_cache=0
8512 # Check whether --enable-statline or --disable-statline was given.
8513if test "${enable_statline+set}" = set; then
8514 enableval="$enable_statline"
8515
8516 if test "$enableval" = yes; then
8517 ac_cv_use_statline='wxUSE_STATLINE=yes'
8518 else
8519 ac_cv_use_statline='wxUSE_STATLINE=no'
8520 fi
8521
8522else
8523
8524 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8525 if test "x$LINE" != x ; then
8526 eval "DEFAULT_$LINE"
8527 else
8528 no_cache=1
8529 fi
8530
8531 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8532
8533fi;
8534
8535 eval "$ac_cv_use_statline"
8536 if test "$no_cache" != 1; then
8537 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8538 fi
8539
8540 if test "$wxUSE_STATLINE" = yes; then
8541 echo "$as_me:$LINENO: result: yes" >&5
8542echo "${ECHO_T}yes" >&6
8543 else
8544 echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6
8546 fi
8547
8548
8549 enablestring=
8550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8551echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8552 no_cache=0
8553 # Check whether --enable-stattext or --disable-stattext was given.
8554if test "${enable_stattext+set}" = set; then
8555 enableval="$enable_stattext"
8556
8557 if test "$enableval" = yes; then
8558 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8559 else
8560 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8561 fi
8562
8563else
8564
8565 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8566 if test "x$LINE" != x ; then
8567 eval "DEFAULT_$LINE"
8568 else
8569 no_cache=1
8570 fi
8571
8572 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8573
8574fi;
8575
8576 eval "$ac_cv_use_stattext"
8577 if test "$no_cache" != 1; then
8578 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8579 fi
8580
8581 if test "$wxUSE_STATTEXT" = yes; then
8582 echo "$as_me:$LINENO: result: yes" >&5
8583echo "${ECHO_T}yes" >&6
8584 else
8585 echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6
8587 fi
8588
8589
8590 enablestring=
8591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8592echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8593 no_cache=0
8594 # Check whether --enable-statusbar or --disable-statusbar was given.
8595if test "${enable_statusbar+set}" = set; then
8596 enableval="$enable_statusbar"
8597
8598 if test "$enableval" = yes; then
8599 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8600 else
8601 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8602 fi
8603
8604else
8605
8606 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8607 if test "x$LINE" != x ; then
8608 eval "DEFAULT_$LINE"
8609 else
8610 no_cache=1
8611 fi
8612
8613 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8614
8615fi;
8616
8617 eval "$ac_cv_use_statusbar"
8618 if test "$no_cache" != 1; then
8619 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8620 fi
8621
8622 if test "$wxUSE_STATUSBAR" = yes; then
8623 echo "$as_me:$LINENO: result: yes" >&5
8624echo "${ECHO_T}yes" >&6
8625 else
8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
8628 fi
8629
8630
8631 enablestring=
8632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8633echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8634 no_cache=0
8635 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8636if test "${enable_tabdialog+set}" = set; then
8637 enableval="$enable_tabdialog"
8638
8639 if test "$enableval" = yes; then
8640 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8641 else
8642 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8643 fi
8644
8645else
8646
8647 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8648 if test "x$LINE" != x ; then
8649 eval "DEFAULT_$LINE"
8650 else
8651 no_cache=1
8652 fi
8653
8654 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8655
8656fi;
8657
8658 eval "$ac_cv_use_tabdialog"
8659 if test "$no_cache" != 1; then
8660 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8661 fi
8662
8663 if test "$wxUSE_TABDIALOG" = yes; then
8664 echo "$as_me:$LINENO: result: yes" >&5
8665echo "${ECHO_T}yes" >&6
8666 else
8667 echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
8669 fi
8670
8671
8672 enablestring=
8673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8674echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8675 no_cache=0
8676 # Check whether --enable-textctrl or --disable-textctrl was given.
8677if test "${enable_textctrl+set}" = set; then
8678 enableval="$enable_textctrl"
8679
8680 if test "$enableval" = yes; then
8681 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8682 else
8683 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8684 fi
8685
8686else
8687
8688 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8689 if test "x$LINE" != x ; then
8690 eval "DEFAULT_$LINE"
8691 else
8692 no_cache=1
8693 fi
8694
8695 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8696
8697fi;
8698
8699 eval "$ac_cv_use_textctrl"
8700 if test "$no_cache" != 1; then
8701 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8702 fi
8703
8704 if test "$wxUSE_TEXTCTRL" = yes; then
8705 echo "$as_me:$LINENO: result: yes" >&5
8706echo "${ECHO_T}yes" >&6
8707 else
8708 echo "$as_me:$LINENO: result: no" >&5
8709echo "${ECHO_T}no" >&6
8710 fi
8711
8712
8713 enablestring=
8714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8715echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8716 no_cache=0
8717 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8718if test "${enable_togglebtn+set}" = set; then
8719 enableval="$enable_togglebtn"
8720
8721 if test "$enableval" = yes; then
8722 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8723 else
8724 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8725 fi
8726
8727else
8728
8729 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8730 if test "x$LINE" != x ; then
8731 eval "DEFAULT_$LINE"
8732 else
8733 no_cache=1
8734 fi
8735
8736 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8737
8738fi;
8739
8740 eval "$ac_cv_use_togglebtn"
8741 if test "$no_cache" != 1; then
8742 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8743 fi
8744
8745 if test "$wxUSE_TOGGLEBTN" = yes; then
8746 echo "$as_me:$LINENO: result: yes" >&5
8747echo "${ECHO_T}yes" >&6
8748 else
8749 echo "$as_me:$LINENO: result: no" >&5
8750echo "${ECHO_T}no" >&6
8751 fi
8752
8753
8754 enablestring=
8755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8756echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8757 no_cache=0
8758 # Check whether --enable-toolbar or --disable-toolbar was given.
8759if test "${enable_toolbar+set}" = set; then
8760 enableval="$enable_toolbar"
8761
8762 if test "$enableval" = yes; then
8763 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8764 else
8765 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8766 fi
8767
8768else
8769
8770 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8771 if test "x$LINE" != x ; then
8772 eval "DEFAULT_$LINE"
8773 else
8774 no_cache=1
8775 fi
8776
8777 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8778
8779fi;
8780
8781 eval "$ac_cv_use_toolbar"
8782 if test "$no_cache" != 1; then
8783 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8784 fi
8785
8786 if test "$wxUSE_TOOLBAR" = yes; then
8787 echo "$as_me:$LINENO: result: yes" >&5
8788echo "${ECHO_T}yes" >&6
8789 else
8790 echo "$as_me:$LINENO: result: no" >&5
8791echo "${ECHO_T}no" >&6
8792 fi
8793
8794
8795 enablestring=
8796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8797echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8798 no_cache=0
8799 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8800if test "${enable_tbarnative+set}" = set; then
8801 enableval="$enable_tbarnative"
8802
8803 if test "$enableval" = yes; then
8804 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8805 else
8806 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8807 fi
8808
8809else
8810
8811 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8812 if test "x$LINE" != x ; then
8813 eval "DEFAULT_$LINE"
8814 else
8815 no_cache=1
8816 fi
8817
8818 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8819
8820fi;
8821
8822 eval "$ac_cv_use_tbarnative"
8823 if test "$no_cache" != 1; then
8824 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8825 fi
8826
8827 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8828 echo "$as_me:$LINENO: result: yes" >&5
8829echo "${ECHO_T}yes" >&6
8830 else
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
8833 fi
8834
8835
8836 enablestring=
8837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8838echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8839 no_cache=0
8840 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8841if test "${enable_tbarsmpl+set}" = set; then
8842 enableval="$enable_tbarsmpl"
8843
8844 if test "$enableval" = yes; then
8845 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8846 else
8847 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8848 fi
8849
8850else
8851
8852 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8853 if test "x$LINE" != x ; then
8854 eval "DEFAULT_$LINE"
8855 else
8856 no_cache=1
8857 fi
8858
8859 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8860
8861fi;
8862
8863 eval "$ac_cv_use_tbarsmpl"
8864 if test "$no_cache" != 1; then
8865 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8866 fi
8867
8868 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8869 echo "$as_me:$LINENO: result: yes" >&5
8870echo "${ECHO_T}yes" >&6
8871 else
8872 echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
8874 fi
8875
8876
8877 enablestring=
8878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8879echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8880 no_cache=0
8881 # Check whether --enable-treectrl or --disable-treectrl was given.
8882if test "${enable_treectrl+set}" = set; then
8883 enableval="$enable_treectrl"
8884
8885 if test "$enableval" = yes; then
8886 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8887 else
8888 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8889 fi
8890
8891else
8892
8893 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8894 if test "x$LINE" != x ; then
8895 eval "DEFAULT_$LINE"
8896 else
8897 no_cache=1
8898 fi
8899
8900 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8901
8902fi;
8903
8904 eval "$ac_cv_use_treectrl"
8905 if test "$no_cache" != 1; then
8906 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8907 fi
8908
8909 if test "$wxUSE_TREECTRL" = yes; then
8910 echo "$as_me:$LINENO: result: yes" >&5
8911echo "${ECHO_T}yes" >&6
8912 else
8913 echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
8915 fi
8916
8917
8918 enablestring=
8919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8920echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8921 no_cache=0
8922 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8923if test "${enable_tipwindow+set}" = set; then
8924 enableval="$enable_tipwindow"
8925
8926 if test "$enableval" = yes; then
8927 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8928 else
8929 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8930 fi
8931
8932else
8933
8934 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8935 if test "x$LINE" != x ; then
8936 eval "DEFAULT_$LINE"
8937 else
8938 no_cache=1
8939 fi
8940
8941 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8942
8943fi;
8944
8945 eval "$ac_cv_use_tipwindow"
8946 if test "$no_cache" != 1; then
8947 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8948 fi
8949
8950 if test "$wxUSE_TIPWINDOW" = yes; then
8951 echo "$as_me:$LINENO: result: yes" >&5
8952echo "${ECHO_T}yes" >&6
8953 else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956 fi
8957
8958
8959 enablestring=
8960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8961echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8962 no_cache=0
8963 # Check whether --enable-popupwin or --disable-popupwin was given.
8964if test "${enable_popupwin+set}" = set; then
8965 enableval="$enable_popupwin"
8966
8967 if test "$enableval" = yes; then
8968 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8969 else
8970 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8971 fi
8972
8973else
8974
8975 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8976 if test "x$LINE" != x ; then
8977 eval "DEFAULT_$LINE"
8978 else
8979 no_cache=1
8980 fi
8981
8982 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8983
8984fi;
8985
8986 eval "$ac_cv_use_popupwin"
8987 if test "$no_cache" != 1; then
8988 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8989 fi
8990
8991 if test "$wxUSE_POPUPWIN" = yes; then
8992 echo "$as_me:$LINENO: result: yes" >&5
8993echo "${ECHO_T}yes" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997 fi
8998
8999
9000
9001
9002 enablestring=
9003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9004echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9005 no_cache=0
9006 # Check whether --enable-commondlg or --disable-commondlg was given.
9007if test "${enable_commondlg+set}" = set; then
9008 enableval="$enable_commondlg"
9009
9010 if test "$enableval" = yes; then
9011 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9012 else
9013 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9014 fi
9015
9016else
9017
9018 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9019 if test "x$LINE" != x ; then
9020 eval "DEFAULT_$LINE"
9021 else
9022 no_cache=1
9023 fi
9024
9025 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9026
9027fi;
9028
9029 eval "$ac_cv_use_commondlg"
9030 if test "$no_cache" != 1; then
9031 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9032 fi
9033
9034 if test "$wxUSE_COMMONDLGS" = yes; then
9035 echo "$as_me:$LINENO: result: yes" >&5
9036echo "${ECHO_T}yes" >&6
9037 else
9038 echo "$as_me:$LINENO: result: no" >&5
9039echo "${ECHO_T}no" >&6
9040 fi
9041
9042
9043 enablestring=
9044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9045echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9046 no_cache=0
9047 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9048if test "${enable_choicedlg+set}" = set; then
9049 enableval="$enable_choicedlg"
9050
9051 if test "$enableval" = yes; then
9052 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9053 else
9054 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9055 fi
9056
9057else
9058
9059 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9060 if test "x$LINE" != x ; then
9061 eval "DEFAULT_$LINE"
9062 else
9063 no_cache=1
9064 fi
9065
9066 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9067
9068fi;
9069
9070 eval "$ac_cv_use_choicedlg"
9071 if test "$no_cache" != 1; then
9072 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9073 fi
9074
9075 if test "$wxUSE_CHOICEDLG" = yes; then
9076 echo "$as_me:$LINENO: result: yes" >&5
9077echo "${ECHO_T}yes" >&6
9078 else
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
9081 fi
9082
9083
9084 enablestring=
9085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9086echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9087 no_cache=0
9088 # Check whether --enable-coldlg or --disable-coldlg was given.
9089if test "${enable_coldlg+set}" = set; then
9090 enableval="$enable_coldlg"
9091
9092 if test "$enableval" = yes; then
9093 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9094 else
9095 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9096 fi
9097
9098else
9099
9100 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9101 if test "x$LINE" != x ; then
9102 eval "DEFAULT_$LINE"
9103 else
9104 no_cache=1
9105 fi
9106
9107 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9108
9109fi;
9110
9111 eval "$ac_cv_use_coldlg"
9112 if test "$no_cache" != 1; then
9113 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9114 fi
9115
9116 if test "$wxUSE_COLOURDLG" = yes; then
9117 echo "$as_me:$LINENO: result: yes" >&5
9118echo "${ECHO_T}yes" >&6
9119 else
9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
9122 fi
9123
9124
9125 enablestring=
9126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9127echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9128 no_cache=0
9129 # Check whether --enable-filedlg or --disable-filedlg was given.
9130if test "${enable_filedlg+set}" = set; then
9131 enableval="$enable_filedlg"
9132
9133 if test "$enableval" = yes; then
9134 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9135 else
9136 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9137 fi
9138
9139else
9140
9141 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9142 if test "x$LINE" != x ; then
9143 eval "DEFAULT_$LINE"
9144 else
9145 no_cache=1
9146 fi
9147
9148 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9149
9150fi;
9151
9152 eval "$ac_cv_use_filedlg"
9153 if test "$no_cache" != 1; then
9154 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9155 fi
9156
9157 if test "$wxUSE_FILEDLG" = yes; then
9158 echo "$as_me:$LINENO: result: yes" >&5
9159echo "${ECHO_T}yes" >&6
9160 else
9161 echo "$as_me:$LINENO: result: no" >&5
9162echo "${ECHO_T}no" >&6
9163 fi
9164
9165
9166 enablestring=
9167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9168echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9169 no_cache=0
9170 # Check whether --enable-finddlg or --disable-finddlg was given.
9171if test "${enable_finddlg+set}" = set; then
9172 enableval="$enable_finddlg"
9173
9174 if test "$enableval" = yes; then
9175 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9176 else
9177 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9178 fi
9179
9180else
9181
9182 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9183 if test "x$LINE" != x ; then
9184 eval "DEFAULT_$LINE"
9185 else
9186 no_cache=1
9187 fi
9188
9189 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9190
9191fi;
9192
9193 eval "$ac_cv_use_finddlg"
9194 if test "$no_cache" != 1; then
9195 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9196 fi
9197
9198 if test "$wxUSE_FINDREPLDLG" = yes; then
9199 echo "$as_me:$LINENO: result: yes" >&5
9200echo "${ECHO_T}yes" >&6
9201 else
9202 echo "$as_me:$LINENO: result: no" >&5
9203echo "${ECHO_T}no" >&6
9204 fi
9205
9206
9207 enablestring=
9208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9209echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9210 no_cache=0
9211 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9212if test "${enable_fontdlg+set}" = set; then
9213 enableval="$enable_fontdlg"
9214
9215 if test "$enableval" = yes; then
9216 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9217 else
9218 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9219 fi
9220
9221else
9222
9223 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9224 if test "x$LINE" != x ; then
9225 eval "DEFAULT_$LINE"
9226 else
9227 no_cache=1
9228 fi
9229
9230 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9231
9232fi;
9233
9234 eval "$ac_cv_use_fontdlg"
9235 if test "$no_cache" != 1; then
9236 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9237 fi
9238
9239 if test "$wxUSE_FONTDLG" = yes; then
9240 echo "$as_me:$LINENO: result: yes" >&5
9241echo "${ECHO_T}yes" >&6
9242 else
9243 echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245 fi
9246
9247
9248 enablestring=
9249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9250echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9251 no_cache=0
9252 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9253if test "${enable_dirdlg+set}" = set; then
9254 enableval="$enable_dirdlg"
9255
9256 if test "$enableval" = yes; then
9257 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9258 else
9259 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9260 fi
9261
9262else
9263
9264 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9265 if test "x$LINE" != x ; then
9266 eval "DEFAULT_$LINE"
9267 else
9268 no_cache=1
9269 fi
9270
9271 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9272
9273fi;
9274
9275 eval "$ac_cv_use_dirdlg"
9276 if test "$no_cache" != 1; then
9277 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9278 fi
9279
9280 if test "$wxUSE_DIRDLG" = yes; then
9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
9283 else
9284 echo "$as_me:$LINENO: result: no" >&5
9285echo "${ECHO_T}no" >&6
9286 fi
9287
9288
9289 enablestring=
9290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9291echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9292 no_cache=0
9293 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9294if test "${enable_msgdlg+set}" = set; then
9295 enableval="$enable_msgdlg"
9296
9297 if test "$enableval" = yes; then
9298 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9299 else
9300 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9301 fi
9302
9303else
9304
9305 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9306 if test "x$LINE" != x ; then
9307 eval "DEFAULT_$LINE"
9308 else
9309 no_cache=1
9310 fi
9311
9312 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9313
9314fi;
9315
9316 eval "$ac_cv_use_msgdlg"
9317 if test "$no_cache" != 1; then
9318 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9319 fi
9320
9321 if test "$wxUSE_MSGDLG" = yes; then
9322 echo "$as_me:$LINENO: result: yes" >&5
9323echo "${ECHO_T}yes" >&6
9324 else
9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
9327 fi
9328
9329
9330 enablestring=
9331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9332echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9333 no_cache=0
9334 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9335if test "${enable_numberdlg+set}" = set; then
9336 enableval="$enable_numberdlg"
9337
9338 if test "$enableval" = yes; then
9339 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9340 else
9341 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9342 fi
9343
9344else
9345
9346 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9347 if test "x$LINE" != x ; then
9348 eval "DEFAULT_$LINE"
9349 else
9350 no_cache=1
9351 fi
9352
9353 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9354
9355fi;
9356
9357 eval "$ac_cv_use_numberdlg"
9358 if test "$no_cache" != 1; then
9359 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9360 fi
9361
9362 if test "$wxUSE_NUMBERDLG" = yes; then
9363 echo "$as_me:$LINENO: result: yes" >&5
9364echo "${ECHO_T}yes" >&6
9365 else
9366 echo "$as_me:$LINENO: result: no" >&5
9367echo "${ECHO_T}no" >&6
9368 fi
9369
9370
9371 enablestring=
9372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9373echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9374 no_cache=0
9375 # Check whether --enable-splash or --disable-splash was given.
9376if test "${enable_splash+set}" = set; then
9377 enableval="$enable_splash"
9378
9379 if test "$enableval" = yes; then
9380 ac_cv_use_splash='wxUSE_SPLASH=yes'
9381 else
9382 ac_cv_use_splash='wxUSE_SPLASH=no'
9383 fi
9384
9385else
9386
9387 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9388 if test "x$LINE" != x ; then
9389 eval "DEFAULT_$LINE"
9390 else
9391 no_cache=1
9392 fi
9393
9394 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9395
9396fi;
9397
9398 eval "$ac_cv_use_splash"
9399 if test "$no_cache" != 1; then
9400 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9401 fi
9402
9403 if test "$wxUSE_SPLASH" = yes; then
9404 echo "$as_me:$LINENO: result: yes" >&5
9405echo "${ECHO_T}yes" >&6
9406 else
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
9409 fi
9410
9411
9412 enablestring=
9413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9414echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9415 no_cache=0
9416 # Check whether --enable-textdlg or --disable-textdlg was given.
9417if test "${enable_textdlg+set}" = set; then
9418 enableval="$enable_textdlg"
9419
9420 if test "$enableval" = yes; then
9421 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9422 else
9423 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9424 fi
9425
9426else
9427
9428 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9429 if test "x$LINE" != x ; then
9430 eval "DEFAULT_$LINE"
9431 else
9432 no_cache=1
9433 fi
9434
9435 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9436
9437fi;
9438
9439 eval "$ac_cv_use_textdlg"
9440 if test "$no_cache" != 1; then
9441 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9442 fi
9443
9444 if test "$wxUSE_TEXTDLG" = yes; then
9445 echo "$as_me:$LINENO: result: yes" >&5
9446echo "${ECHO_T}yes" >&6
9447 else
9448 echo "$as_me:$LINENO: result: no" >&5
9449echo "${ECHO_T}no" >&6
9450 fi
9451
9452
9453 enablestring=
9454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9455echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9456 no_cache=0
9457 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9458if test "${enable_tipdlg+set}" = set; then
9459 enableval="$enable_tipdlg"
9460
9461 if test "$enableval" = yes; then
9462 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9463 else
9464 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9465 fi
9466
9467else
9468
9469 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9470 if test "x$LINE" != x ; then
9471 eval "DEFAULT_$LINE"
9472 else
9473 no_cache=1
9474 fi
9475
9476 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9477
9478fi;
9479
9480 eval "$ac_cv_use_tipdlg"
9481 if test "$no_cache" != 1; then
9482 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9483 fi
9484
9485 if test "$wxUSE_STARTUP_TIPS" = yes; then
9486 echo "$as_me:$LINENO: result: yes" >&5
9487echo "${ECHO_T}yes" >&6
9488 else
9489 echo "$as_me:$LINENO: result: no" >&5
9490echo "${ECHO_T}no" >&6
9491 fi
9492
9493
9494 enablestring=
9495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9496echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9497 no_cache=0
9498 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9499if test "${enable_progressdlg+set}" = set; then
9500 enableval="$enable_progressdlg"
9501
9502 if test "$enableval" = yes; then
9503 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9504 else
9505 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9506 fi
9507
9508else
9509
9510 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9511 if test "x$LINE" != x ; then
9512 eval "DEFAULT_$LINE"
9513 else
9514 no_cache=1
9515 fi
9516
9517 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9518
9519fi;
9520
9521 eval "$ac_cv_use_progressdlg"
9522 if test "$no_cache" != 1; then
9523 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9524 fi
9525
9526 if test "$wxUSE_PROGRESSDLG" = yes; then
9527 echo "$as_me:$LINENO: result: yes" >&5
9528echo "${ECHO_T}yes" >&6
9529 else
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532 fi
9533
9534
9535 enablestring=
9536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9537echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9538 no_cache=0
9539 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9540if test "${enable_wizarddlg+set}" = set; then
9541 enableval="$enable_wizarddlg"
9542
9543 if test "$enableval" = yes; then
9544 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9545 else
9546 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9547 fi
9548
9549else
9550
9551 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9552 if test "x$LINE" != x ; then
9553 eval "DEFAULT_$LINE"
9554 else
9555 no_cache=1
9556 fi
9557
9558 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9559
9560fi;
9561
9562 eval "$ac_cv_use_wizarddlg"
9563 if test "$no_cache" != 1; then
9564 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9565 fi
9566
9567 if test "$wxUSE_WIZARDDLG" = yes; then
9568 echo "$as_me:$LINENO: result: yes" >&5
9569echo "${ECHO_T}yes" >&6
9570 else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573 fi
9574
9575
9576
9577
9578 enablestring=
9579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9580echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9581 no_cache=0
9582 # Check whether --enable-menus or --disable-menus was given.
9583if test "${enable_menus+set}" = set; then
9584 enableval="$enable_menus"
9585
9586 if test "$enableval" = yes; then
9587 ac_cv_use_menus='wxUSE_MENUS=yes'
9588 else
9589 ac_cv_use_menus='wxUSE_MENUS=no'
9590 fi
9591
9592else
9593
9594 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9595 if test "x$LINE" != x ; then
9596 eval "DEFAULT_$LINE"
9597 else
9598 no_cache=1
9599 fi
9600
9601 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9602
9603fi;
9604
9605 eval "$ac_cv_use_menus"
9606 if test "$no_cache" != 1; then
9607 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9608 fi
9609
9610 if test "$wxUSE_MENUS" = yes; then
9611 echo "$as_me:$LINENO: result: yes" >&5
9612echo "${ECHO_T}yes" >&6
9613 else
9614 echo "$as_me:$LINENO: result: no" >&5
9615echo "${ECHO_T}no" >&6
9616 fi
9617
9618
9619 enablestring=
9620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9621echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9622 no_cache=0
9623 # Check whether --enable-miniframe or --disable-miniframe was given.
9624if test "${enable_miniframe+set}" = set; then
9625 enableval="$enable_miniframe"
9626
9627 if test "$enableval" = yes; then
9628 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9629 else
9630 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9631 fi
9632
9633else
9634
9635 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9636 if test "x$LINE" != x ; then
9637 eval "DEFAULT_$LINE"
9638 else
9639 no_cache=1
9640 fi
9641
9642 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9643
9644fi;
9645
9646 eval "$ac_cv_use_miniframe"
9647 if test "$no_cache" != 1; then
9648 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9649 fi
9650
9651 if test "$wxUSE_MINIFRAME" = yes; then
9652 echo "$as_me:$LINENO: result: yes" >&5
9653echo "${ECHO_T}yes" >&6
9654 else
9655 echo "$as_me:$LINENO: result: no" >&5
9656echo "${ECHO_T}no" >&6
9657 fi
9658
9659
9660 enablestring=
9661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9662echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9663 no_cache=0
9664 # Check whether --enable-tooltips or --disable-tooltips was given.
9665if test "${enable_tooltips+set}" = set; then
9666 enableval="$enable_tooltips"
9667
9668 if test "$enableval" = yes; then
9669 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9670 else
9671 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9672 fi
9673
9674else
9675
9676 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9677 if test "x$LINE" != x ; then
9678 eval "DEFAULT_$LINE"
9679 else
9680 no_cache=1
9681 fi
9682
9683 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9684
9685fi;
9686
9687 eval "$ac_cv_use_tooltips"
9688 if test "$no_cache" != 1; then
9689 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9690 fi
9691
9692 if test "$wxUSE_TOOLTIPS" = yes; then
9693 echo "$as_me:$LINENO: result: yes" >&5
9694echo "${ECHO_T}yes" >&6
9695 else
9696 echo "$as_me:$LINENO: result: no" >&5
9697echo "${ECHO_T}no" >&6
9698 fi
9699
9700
9701 enablestring=
9702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9703echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9704 no_cache=0
9705 # Check whether --enable-splines or --disable-splines was given.
9706if test "${enable_splines+set}" = set; then
9707 enableval="$enable_splines"
9708
9709 if test "$enableval" = yes; then
9710 ac_cv_use_splines='wxUSE_SPLINES=yes'
9711 else
9712 ac_cv_use_splines='wxUSE_SPLINES=no'
9713 fi
9714
9715else
9716
9717 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9718 if test "x$LINE" != x ; then
9719 eval "DEFAULT_$LINE"
9720 else
9721 no_cache=1
9722 fi
9723
9724 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9725
9726fi;
9727
9728 eval "$ac_cv_use_splines"
9729 if test "$no_cache" != 1; then
9730 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9731 fi
9732
9733 if test "$wxUSE_SPLINES" = yes; then
9734 echo "$as_me:$LINENO: result: yes" >&5
9735echo "${ECHO_T}yes" >&6
9736 else
9737 echo "$as_me:$LINENO: result: no" >&5
9738echo "${ECHO_T}no" >&6
9739 fi
9740
9741
9742 enablestring=
9743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9744echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9745 no_cache=0
9746 # Check whether --enable-validators or --disable-validators was given.
9747if test "${enable_validators+set}" = set; then
9748 enableval="$enable_validators"
9749
9750 if test "$enableval" = yes; then
9751 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9752 else
9753 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9754 fi
9755
9756else
9757
9758 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9759 if test "x$LINE" != x ; then
9760 eval "DEFAULT_$LINE"
9761 else
9762 no_cache=1
9763 fi
9764
9765 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9766
9767fi;
9768
9769 eval "$ac_cv_use_validators"
9770 if test "$no_cache" != 1; then
9771 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9772 fi
9773
9774 if test "$wxUSE_VALIDATORS" = yes; then
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
9777 else
9778 echo "$as_me:$LINENO: result: no" >&5
9779echo "${ECHO_T}no" >&6
9780 fi
9781
9782
9783 enablestring=
9784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9785echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9786 no_cache=0
9787 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9788if test "${enable_busyinfo+set}" = set; then
9789 enableval="$enable_busyinfo"
9790
9791 if test "$enableval" = yes; then
9792 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9793 else
9794 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9795 fi
9796
9797else
9798
9799 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9800 if test "x$LINE" != x ; then
9801 eval "DEFAULT_$LINE"
9802 else
9803 no_cache=1
9804 fi
9805
9806 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9807
9808fi;
9809
9810 eval "$ac_cv_use_busyinfo"
9811 if test "$no_cache" != 1; then
9812 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9813 fi
9814
9815 if test "$wxUSE_BUSYINFO" = yes; then
9816 echo "$as_me:$LINENO: result: yes" >&5
9817echo "${ECHO_T}yes" >&6
9818 else
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
9821 fi
9822
9823
9824 enablestring=
9825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9826echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9827 no_cache=0
9828 # Check whether --enable-joystick or --disable-joystick was given.
9829if test "${enable_joystick+set}" = set; then
9830 enableval="$enable_joystick"
9831
9832 if test "$enableval" = yes; then
9833 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9834 else
9835 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9836 fi
9837
9838else
9839
9840 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9841 if test "x$LINE" != x ; then
9842 eval "DEFAULT_$LINE"
9843 else
9844 no_cache=1
9845 fi
9846
9847 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9848
9849fi;
9850
9851 eval "$ac_cv_use_joystick"
9852 if test "$no_cache" != 1; then
9853 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9854 fi
9855
9856 if test "$wxUSE_JOYSTICK" = yes; then
9857 echo "$as_me:$LINENO: result: yes" >&5
9858echo "${ECHO_T}yes" >&6
9859 else
9860 echo "$as_me:$LINENO: result: no" >&5
9861echo "${ECHO_T}no" >&6
9862 fi
9863
9864
9865 enablestring=
9866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9867echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9868 no_cache=0
9869 # Check whether --enable-metafile or --disable-metafile was given.
9870if test "${enable_metafile+set}" = set; then
9871 enableval="$enable_metafile"
9872
9873 if test "$enableval" = yes; then
9874 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9875 else
9876 ac_cv_use_metafile='wxUSE_METAFILE=no'
9877 fi
9878
9879else
9880
9881 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9882 if test "x$LINE" != x ; then
9883 eval "DEFAULT_$LINE"
9884 else
9885 no_cache=1
9886 fi
9887
9888 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9889
9890fi;
9891
9892 eval "$ac_cv_use_metafile"
9893 if test "$no_cache" != 1; then
9894 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9895 fi
9896
9897 if test "$wxUSE_METAFILE" = yes; then
9898 echo "$as_me:$LINENO: result: yes" >&5
9899echo "${ECHO_T}yes" >&6
9900 else
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
9903 fi
9904
9905
9906 enablestring=
9907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9908echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9909 no_cache=0
9910 # Check whether --enable-dragimage or --disable-dragimage was given.
9911if test "${enable_dragimage+set}" = set; then
9912 enableval="$enable_dragimage"
9913
9914 if test "$enableval" = yes; then
9915 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9916 else
9917 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9918 fi
9919
9920else
9921
9922 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9923 if test "x$LINE" != x ; then
9924 eval "DEFAULT_$LINE"
9925 else
9926 no_cache=1
9927 fi
9928
9929 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9930
9931fi;
9932
9933 eval "$ac_cv_use_dragimage"
9934 if test "$no_cache" != 1; then
9935 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9936 fi
9937
9938 if test "$wxUSE_DRAGIMAGE" = yes; then
9939 echo "$as_me:$LINENO: result: yes" >&5
9940echo "${ECHO_T}yes" >&6
9941 else
9942 echo "$as_me:$LINENO: result: no" >&5
9943echo "${ECHO_T}no" >&6
9944 fi
9945
9946
9947 enablestring=
9948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9949echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9950 no_cache=0
9951 # Check whether --enable-accessibility or --disable-accessibility was given.
9952if test "${enable_accessibility+set}" = set; then
9953 enableval="$enable_accessibility"
9954
9955 if test "$enableval" = yes; then
9956 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9957 else
9958 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9959 fi
9960
9961else
9962
9963 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9964 if test "x$LINE" != x ; then
9965 eval "DEFAULT_$LINE"
9966 else
9967 no_cache=1
9968 fi
9969
9970 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9971
9972fi;
9973
9974 eval "$ac_cv_use_accessibility"
9975 if test "$no_cache" != 1; then
9976 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9977 fi
9978
9979 if test "$wxUSE_ACCESSIBILITY" = yes; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6
9982 else
9983 echo "$as_me:$LINENO: result: no" >&5
9984echo "${ECHO_T}no" >&6
9985 fi
9986
9987
9988
9989
9990 enablestring=
9991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9992echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9993 no_cache=0
9994 # Check whether --enable-palette or --disable-palette was given.
9995if test "${enable_palette+set}" = set; then
9996 enableval="$enable_palette"
9997
9998 if test "$enableval" = yes; then
9999 ac_cv_use_palette='wxUSE_PALETTE=yes'
10000 else
10001 ac_cv_use_palette='wxUSE_PALETTE=no'
10002 fi
10003
10004else
10005
10006 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10007 if test "x$LINE" != x ; then
10008 eval "DEFAULT_$LINE"
10009 else
10010 no_cache=1
10011 fi
10012
10013 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10014
10015fi;
10016
10017 eval "$ac_cv_use_palette"
10018 if test "$no_cache" != 1; then
10019 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10020 fi
10021
10022 if test "$wxUSE_PALETTE" = yes; then
10023 echo "$as_me:$LINENO: result: yes" >&5
10024echo "${ECHO_T}yes" >&6
10025 else
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
10028 fi
10029
10030
10031 enablestring=
10032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10033echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10034 no_cache=0
10035 # Check whether --enable-image or --disable-image was given.
10036if test "${enable_image+set}" = set; then
10037 enableval="$enable_image"
10038
10039 if test "$enableval" = yes; then
10040 ac_cv_use_image='wxUSE_IMAGE=yes'
10041 else
10042 ac_cv_use_image='wxUSE_IMAGE=no'
10043 fi
10044
10045else
10046
10047 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10048 if test "x$LINE" != x ; then
10049 eval "DEFAULT_$LINE"
10050 else
10051 no_cache=1
10052 fi
10053
10054 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10055
10056fi;
10057
10058 eval "$ac_cv_use_image"
10059 if test "$no_cache" != 1; then
10060 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10061 fi
10062
10063 if test "$wxUSE_IMAGE" = yes; then
10064 echo "$as_me:$LINENO: result: yes" >&5
10065echo "${ECHO_T}yes" >&6
10066 else
10067 echo "$as_me:$LINENO: result: no" >&5
10068echo "${ECHO_T}no" >&6
10069 fi
10070
10071
10072 enablestring=
10073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10074echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10075 no_cache=0
10076 # Check whether --enable-gif or --disable-gif was given.
10077if test "${enable_gif+set}" = set; then
10078 enableval="$enable_gif"
10079
10080 if test "$enableval" = yes; then
10081 ac_cv_use_gif='wxUSE_GIF=yes'
10082 else
10083 ac_cv_use_gif='wxUSE_GIF=no'
10084 fi
10085
10086else
10087
10088 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10089 if test "x$LINE" != x ; then
10090 eval "DEFAULT_$LINE"
10091 else
10092 no_cache=1
10093 fi
10094
10095 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10096
10097fi;
10098
10099 eval "$ac_cv_use_gif"
10100 if test "$no_cache" != 1; then
10101 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10102 fi
10103
10104 if test "$wxUSE_GIF" = yes; then
10105 echo "$as_me:$LINENO: result: yes" >&5
10106echo "${ECHO_T}yes" >&6
10107 else
10108 echo "$as_me:$LINENO: result: no" >&5
10109echo "${ECHO_T}no" >&6
10110 fi
10111
10112
10113 enablestring=
10114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10115echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10116 no_cache=0
10117 # Check whether --enable-pcx or --disable-pcx was given.
10118if test "${enable_pcx+set}" = set; then
10119 enableval="$enable_pcx"
10120
10121 if test "$enableval" = yes; then
10122 ac_cv_use_pcx='wxUSE_PCX=yes'
10123 else
10124 ac_cv_use_pcx='wxUSE_PCX=no'
10125 fi
10126
10127else
10128
10129 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10130 if test "x$LINE" != x ; then
10131 eval "DEFAULT_$LINE"
10132 else
10133 no_cache=1
10134 fi
10135
10136 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10137
10138fi;
10139
10140 eval "$ac_cv_use_pcx"
10141 if test "$no_cache" != 1; then
10142 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10143 fi
10144
10145 if test "$wxUSE_PCX" = yes; then
10146 echo "$as_me:$LINENO: result: yes" >&5
10147echo "${ECHO_T}yes" >&6
10148 else
10149 echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
10151 fi
10152
10153
10154 enablestring=
10155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10156echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10157 no_cache=0
10158 # Check whether --enable-iff or --disable-iff was given.
10159if test "${enable_iff+set}" = set; then
10160 enableval="$enable_iff"
10161
10162 if test "$enableval" = yes; then
10163 ac_cv_use_iff='wxUSE_IFF=yes'
10164 else
10165 ac_cv_use_iff='wxUSE_IFF=no'
10166 fi
10167
10168else
10169
10170 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10171 if test "x$LINE" != x ; then
10172 eval "DEFAULT_$LINE"
10173 else
10174 no_cache=1
10175 fi
10176
10177 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10178
10179fi;
10180
10181 eval "$ac_cv_use_iff"
10182 if test "$no_cache" != 1; then
10183 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10184 fi
10185
10186 if test "$wxUSE_IFF" = yes; then
10187 echo "$as_me:$LINENO: result: yes" >&5
10188echo "${ECHO_T}yes" >&6
10189 else
10190 echo "$as_me:$LINENO: result: no" >&5
10191echo "${ECHO_T}no" >&6
10192 fi
10193
10194
10195 enablestring=
10196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10197echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10198 no_cache=0
10199 # Check whether --enable-pnm or --disable-pnm was given.
10200if test "${enable_pnm+set}" = set; then
10201 enableval="$enable_pnm"
10202
10203 if test "$enableval" = yes; then
10204 ac_cv_use_pnm='wxUSE_PNM=yes'
10205 else
10206 ac_cv_use_pnm='wxUSE_PNM=no'
10207 fi
10208
10209else
10210
10211 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10212 if test "x$LINE" != x ; then
10213 eval "DEFAULT_$LINE"
10214 else
10215 no_cache=1
10216 fi
10217
10218 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10219
10220fi;
10221
10222 eval "$ac_cv_use_pnm"
10223 if test "$no_cache" != 1; then
10224 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10225 fi
10226
10227 if test "$wxUSE_PNM" = yes; then
10228 echo "$as_me:$LINENO: result: yes" >&5
10229echo "${ECHO_T}yes" >&6
10230 else
10231 echo "$as_me:$LINENO: result: no" >&5
10232echo "${ECHO_T}no" >&6
10233 fi
10234
10235
10236 enablestring=
10237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10238echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10239 no_cache=0
10240 # Check whether --enable-xpm or --disable-xpm was given.
10241if test "${enable_xpm+set}" = set; then
10242 enableval="$enable_xpm"
10243
10244 if test "$enableval" = yes; then
10245 ac_cv_use_xpm='wxUSE_XPM=yes'
10246 else
10247 ac_cv_use_xpm='wxUSE_XPM=no'
10248 fi
10249
10250else
10251
10252 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10253 if test "x$LINE" != x ; then
10254 eval "DEFAULT_$LINE"
10255 else
10256 no_cache=1
10257 fi
10258
10259 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10260
10261fi;
10262
10263 eval "$ac_cv_use_xpm"
10264 if test "$no_cache" != 1; then
10265 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10266 fi
10267
10268 if test "$wxUSE_XPM" = yes; then
10269 echo "$as_me:$LINENO: result: yes" >&5
10270echo "${ECHO_T}yes" >&6
10271 else
10272 echo "$as_me:$LINENO: result: no" >&5
10273echo "${ECHO_T}no" >&6
10274 fi
10275
10276
10277 enablestring=
10278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10279echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10280 no_cache=0
10281 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10282if test "${enable_ico_cur+set}" = set; then
10283 enableval="$enable_ico_cur"
10284
10285 if test "$enableval" = yes; then
10286 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10287 else
10288 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10289 fi
10290
10291else
10292
10293 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10294 if test "x$LINE" != x ; then
10295 eval "DEFAULT_$LINE"
10296 else
10297 no_cache=1
10298 fi
10299
10300 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10301
10302fi;
10303
10304 eval "$ac_cv_use_ico_cur"
10305 if test "$no_cache" != 1; then
10306 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10307 fi
10308
10309 if test "$wxUSE_ICO_CUR" = yes; then
10310 echo "$as_me:$LINENO: result: yes" >&5
10311echo "${ECHO_T}yes" >&6
10312 else
10313 echo "$as_me:$LINENO: result: no" >&5
10314echo "${ECHO_T}no" >&6
10315 fi
10316
10317
10318fi
10319
10320
10321
ceec2216
RL
10322# Check whether --with-flavour or --without-flavour was given.
10323if test "${with_flavour+set}" = set; then
10324 withval="$with_flavour"
10325 WX_FLAVOUR="$withval"
10326fi;
10327
10328
10329
a848cd7e
SC
10330 enablestring=
10331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10332echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10333 no_cache=0
10334 # Check whether --enable-official_build or --disable-official_build was given.
10335if test "${enable_official_build+set}" = set; then
10336 enableval="$enable_official_build"
10337
10338 if test "$enableval" = yes; then
10339 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10340 else
10341 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10342 fi
10343
10344else
10345
10346 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10347 if test "x$LINE" != x ; then
10348 eval "DEFAULT_$LINE"
10349 else
10350 no_cache=1
10351 fi
10352
10353 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10354
10355fi;
10356
10357 eval "$ac_cv_use_official_build"
10358 if test "$no_cache" != 1; then
10359 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10360 fi
10361
10362 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369
10370# Check whether --enable-vendor or --disable-vendor was given.
10371if test "${enable_vendor+set}" = set; then
10372 enableval="$enable_vendor"
10373 VENDOR="$enableval"
10374fi;
10375if test "x$VENDOR" = "x"; then
10376 VENDOR="custom"
10377fi
10378
a848cd7e
SC
10379
10380
10381
10382 echo "saving argument cache $wx_arg_cache_file"
10383 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10384
10385
10386
10387echo "$as_me:$LINENO: checking for toolkit" >&5
10388echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10389
10390# In Wine, we need to default to MSW, not GTK or MOTIF
10391if test "$wxUSE_WINE" = "yes"; then
10392 DEFAULT_DEFAULT_wxUSE_GTK=0
10393 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10394 DEFAULT_DEFAULT_wxUSE_MSW=1
10395 wxUSE_SHARED=no
10396fi
10397
10398if test "$wxUSE_GUI" = "yes"; then
10399
10400 if test "$USE_BEOS" = 1; then
10401 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10402echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10403 { (exit 1); exit 1; }; }
10404 fi
10405
10406 if test "$TOOLKIT_GIVEN" = 1; then
10407 for toolkit in `echo $ALL_TOOLKITS`; do
10408 var=wxUSE_$toolkit
10409 eval "value=\$${var}"
10410 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10411 done
10412 else
10413 for toolkit in `echo $ALL_TOOLKITS`; do
10414 if test "$has_toolkit_in_cache" != 1; then
10415 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10416 else
10417 var=DEFAULT_wxUSE_$toolkit
10418 fi
10419 eval "wxUSE_$toolkit=\$${var}"
10420 done
10421 fi
10422
10423 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10424 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10425 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10426
10427 case "${host}" in
10428 *-pc-os2_emx | *-pc-os2-emx )
10429 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10430 esac
10431
10432 case "$NUM_TOOLKITS" in
10433 1)
10434 ;;
10435 0)
10436 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10437echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10438 { (exit 1); exit 1; }; }
10439 ;;
10440 *)
10441 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10442echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10443 { (exit 1); exit 1; }; }
10444 esac
10445
10446 for toolkit in `echo $ALL_TOOLKITS`; do
10447 var=wxUSE_$toolkit
10448 eval "value=\$${var}"
10449 if test "x$value" != x; then
10450 cache_var=CACHE_$toolkit
10451 eval "cache=\$${cache_var}"
10452 if test "$cache" = 1; then
10453 echo "$var=$value" >> ${wx_arg_cache_file}
10454 fi
10455 if test "$value" = 1; then
10456 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10457 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10458echo "${ECHO_T}$toolkit_echo" >&6
10459 fi
10460 fi
10461 done
10462else
10463 if test "x$host_alias" != "x"; then
10464 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10465echo "${ECHO_T}base ($host_alias hosted) only" >&6
10466 else
10467 echo "$as_me:$LINENO: result: base only" >&5
10468echo "${ECHO_T}base only" >&6
10469 fi
10470fi
10471
10472wants_win32=0
10473doesnt_want_win32=0
10474case "${host}" in
10475 *-*-cygwin*)
10476 if test "$wxUSE_MSW" = 1 ; then
10477 wants_win32=1
10478 else
10479 doesnt_want_win32=1
10480 fi
10481 ;;
10482 *-*-mingw*)
10483 wants_win32=1
10484 ;;
10485esac
10486
10487if test "$wxUSE_WINE" = "yes"; then
10488 wants_win32=1
10489 CC=winegcc
10490 CXX=wineg++
10491 RESCOMP=wrc
10492 LDFLAGS_GUI="-mwindows"
10493fi
10494
10495if test "$wants_win32" = 1 ; then
10496 USE_UNIX=0
10497 USE_WIN32=1
10498 cat >>confdefs.h <<\_ACEOF
10499#define __WIN32__ 1
10500_ACEOF
10501
10502 cat >>confdefs.h <<\_ACEOF
10503#define __WIN95__ 1
10504_ACEOF
10505
10506 cat >>confdefs.h <<\_ACEOF
10507#define __WINDOWS__ 1
10508_ACEOF
10509
10510 cat >>confdefs.h <<\_ACEOF
10511#define __GNUWIN32__ 1
10512_ACEOF
10513
10514 cat >>confdefs.h <<\_ACEOF
10515#define STRICT 1
10516_ACEOF
10517
10518 cat >>confdefs.h <<\_ACEOF
10519#define WINVER 0x0400
10520_ACEOF
10521
10522fi
10523if test "$doesnt_want_win32" = 1 ; then
10524 USE_UNIX=1
10525 USE_WIN32=0
10526fi
10527
10528if test "$USE_UNIX" = 1 ; then
10529 wxUSE_UNIX=yes
10530 cat >>confdefs.h <<\_ACEOF
10531#define __UNIX__ 1
10532_ACEOF
10533
10534fi
10535
10536
10537cat >confcache <<\_ACEOF
10538# This file is a shell script that caches the results of configure
10539# tests run on this system so they can be shared between configure
10540# scripts and configure runs, see configure's option --config-cache.
10541# It is not useful on other systems. If it contains results you don't
10542# want to keep, you may remove or edit it.
10543#
10544# config.status only pays attention to the cache file if you give it
10545# the --recheck option to rerun configure.
10546#
10547# `ac_cv_env_foo' variables (set or unset) will be overridden when
10548# loading this file, other *unset* `ac_cv_foo' will be assigned the
10549# following values.
10550
10551_ACEOF
10552
10553# The following way of writing the cache mishandles newlines in values,
10554# but we know of no workaround that is simple, portable, and efficient.
10555# So, don't put newlines in cache variables' values.
10556# Ultrix sh set writes to stderr and can't be redirected directly,
10557# and sets the high bit in the cache file unless we assign to the vars.
10558{
10559 (set) 2>&1 |
10560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10561 *ac_space=\ *)
10562 # `set' does not quote correctly, so add quotes (double-quote
10563 # substitution turns \\\\ into \\, and sed turns \\ into \).
10564 sed -n \
ac1cb8d3
VS
10565 "s/'/'\\\\''/g;
10566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10567 ;;
10568 *)
10569 # `set' quotes correctly as required by POSIX, so do not add quotes.
10570 sed -n \
ac1cb8d3 10571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10572 ;;
10573 esac;
10574} |
10575 sed '
10576 t clear
10577 : clear
10578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10579 t end
10580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10581 : end' >>confcache
10582if diff $cache_file confcache >/dev/null 2>&1; then :; else
10583 if test -w $cache_file; then
10584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10585 cat confcache >$cache_file
10586 else
10587 echo "not updating unwritable cache $cache_file"
10588 fi
10589fi
10590rm -f confcache
10591
10592if test "$build" != "$host" ; then
1e9e8aba 10593 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10594 CC=$host_alias-gcc
10595 CXX=$host_alias-c++
10596 AR=$host_alias-ar
10597 RANLIB=$host_alias-ranlib
10598 DLLTOOL=$host_alias-dlltool
10599 RESCOMP=$host_alias-windres
a848cd7e 10600 STRIP=$host_alias-strip
1e9e8aba
DE
10601 elif test "x$CC" '!=' "x"; then
10602 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10603 else
10604 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10605echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10606 { (exit 1); exit 1; }; }
10607 fi
10608fi
10609
10610CFLAGS=${CFLAGS:=}
10611ac_ext=c
10612ac_cpp='$CPP $CPPFLAGS'
10613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615ac_compiler_gnu=$ac_cv_c_compiler_gnu
10616if test -n "$ac_tool_prefix"; then
10617 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10618set dummy ${ac_tool_prefix}gcc; ac_word=$2
10619echo "$as_me:$LINENO: checking for $ac_word" >&5
10620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10621if test "${ac_cv_prog_CC+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623else
10624 if test -n "$CC"; then
10625 ac_cv_prog_CC="$CC" # Let the user override the test.
10626else
10627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in $PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10634 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10637 fi
10638done
10639done
10640
10641fi
10642fi
10643CC=$ac_cv_prog_CC
10644if test -n "$CC"; then
10645 echo "$as_me:$LINENO: result: $CC" >&5
10646echo "${ECHO_T}$CC" >&6
10647else
10648 echo "$as_me:$LINENO: result: no" >&5
10649echo "${ECHO_T}no" >&6
10650fi
10651
10652fi
10653if test -z "$ac_cv_prog_CC"; then
10654 ac_ct_CC=$CC
10655 # Extract the first word of "gcc", so it can be a program name with args.
10656set dummy gcc; ac_word=$2
10657echo "$as_me:$LINENO: checking for $ac_word" >&5
10658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10659if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661else
10662 if test -n "$ac_ct_CC"; then
10663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10664else
10665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666for as_dir in $PATH
10667do
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10672 ac_cv_prog_ac_ct_CC="gcc"
10673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10675 fi
10676done
10677done
10678
10679fi
10680fi
10681ac_ct_CC=$ac_cv_prog_ac_ct_CC
10682if test -n "$ac_ct_CC"; then
10683 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10684echo "${ECHO_T}$ac_ct_CC" >&6
10685else
10686 echo "$as_me:$LINENO: result: no" >&5
10687echo "${ECHO_T}no" >&6
10688fi
10689
10690 CC=$ac_ct_CC
10691else
10692 CC="$ac_cv_prog_CC"
10693fi
10694
10695if test -z "$CC"; then
10696 if test -n "$ac_tool_prefix"; then
10697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10698set dummy ${ac_tool_prefix}cc; ac_word=$2
10699echo "$as_me:$LINENO: checking for $ac_word" >&5
10700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10701if test "${ac_cv_prog_CC+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703else
10704 if test -n "$CC"; then
10705 ac_cv_prog_CC="$CC" # Let the user override the test.
10706else
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10714 ac_cv_prog_CC="${ac_tool_prefix}cc"
10715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718done
10719done
10720
10721fi
10722fi
10723CC=$ac_cv_prog_CC
10724if test -n "$CC"; then
10725 echo "$as_me:$LINENO: result: $CC" >&5
10726echo "${ECHO_T}$CC" >&6
10727else
10728 echo "$as_me:$LINENO: result: no" >&5
10729echo "${ECHO_T}no" >&6
10730fi
10731
10732fi
10733if test -z "$ac_cv_prog_CC"; then
10734 ac_ct_CC=$CC
10735 # Extract the first word of "cc", so it can be a program name with args.
10736set dummy cc; ac_word=$2
10737echo "$as_me:$LINENO: checking for $ac_word" >&5
10738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 if test -n "$ac_ct_CC"; then
10743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10744else
10745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746for as_dir in $PATH
10747do
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10752 ac_cv_prog_ac_ct_CC="cc"
10753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10755 fi
10756done
10757done
10758
10759fi
10760fi
10761ac_ct_CC=$ac_cv_prog_ac_ct_CC
10762if test -n "$ac_ct_CC"; then
10763 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10764echo "${ECHO_T}$ac_ct_CC" >&6
10765else
10766 echo "$as_me:$LINENO: result: no" >&5
10767echo "${ECHO_T}no" >&6
10768fi
10769
10770 CC=$ac_ct_CC
10771else
10772 CC="$ac_cv_prog_CC"
10773fi
10774
10775fi
10776if test -z "$CC"; then
10777 # Extract the first word of "cc", so it can be a program name with args.
10778set dummy cc; ac_word=$2
10779echo "$as_me:$LINENO: checking for $ac_word" >&5
10780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10781if test "${ac_cv_prog_CC+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783else
10784 if test -n "$CC"; then
10785 ac_cv_prog_CC="$CC" # Let the user override the test.
10786else
10787 ac_prog_rejected=no
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10796 ac_prog_rejected=yes
10797 continue
10798 fi
10799 ac_cv_prog_CC="cc"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10802 fi
10803done
10804done
10805
10806if test $ac_prog_rejected = yes; then
10807 # We found a bogon in the path, so make sure we never use it.
10808 set dummy $ac_cv_prog_CC
10809 shift
10810 if test $# != 0; then
10811 # We chose a different compiler from the bogus one.
10812 # However, it has the same basename, so the bogon will be chosen
10813 # first if we set CC to just the basename; use the full file name.
10814 shift
10815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10816 fi
10817fi
10818fi
10819fi
10820CC=$ac_cv_prog_CC
10821if test -n "$CC"; then
10822 echo "$as_me:$LINENO: result: $CC" >&5
10823echo "${ECHO_T}$CC" >&6
10824else
10825 echo "$as_me:$LINENO: result: no" >&5
10826echo "${ECHO_T}no" >&6
10827fi
10828
10829fi
10830if test -z "$CC"; then
10831 if test -n "$ac_tool_prefix"; then
10832 for ac_prog in cl
10833 do
10834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10836echo "$as_me:$LINENO: checking for $ac_word" >&5
10837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10838if test "${ac_cv_prog_CC+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 if test -n "$CC"; then
10842 ac_cv_prog_CC="$CC" # Let the user override the test.
10843else
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855done
10856done
10857
10858fi
10859fi
10860CC=$ac_cv_prog_CC
10861if test -n "$CC"; then
10862 echo "$as_me:$LINENO: result: $CC" >&5
10863echo "${ECHO_T}$CC" >&6
10864else
10865 echo "$as_me:$LINENO: result: no" >&5
10866echo "${ECHO_T}no" >&6
10867fi
10868
10869 test -n "$CC" && break
10870 done
10871fi
10872if test -z "$CC"; then
10873 ac_ct_CC=$CC
10874 for ac_prog in cl
10875do
10876 # Extract the first word of "$ac_prog", so it can be a program name with args.
10877set dummy $ac_prog; ac_word=$2
10878echo "$as_me:$LINENO: checking for $ac_word" >&5
10879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10880if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882else
10883 if test -n "$ac_ct_CC"; then
10884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10885else
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_ac_ct_CC="$ac_prog"
10894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897done
10898done
10899
10900fi
10901fi
10902ac_ct_CC=$ac_cv_prog_ac_ct_CC
10903if test -n "$ac_ct_CC"; then
10904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10905echo "${ECHO_T}$ac_ct_CC" >&6
10906else
10907 echo "$as_me:$LINENO: result: no" >&5
10908echo "${ECHO_T}no" >&6
10909fi
10910
10911 test -n "$ac_ct_CC" && break
10912done
10913
10914 CC=$ac_ct_CC
10915fi
10916
10917fi
10918
10919
10920test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10921See \`config.log' for more details." >&5
10922echo "$as_me: error: no acceptable C compiler found in \$PATH
10923See \`config.log' for more details." >&2;}
10924 { (exit 1); exit 1; }; }
10925
10926# Provide some information about the compiler.
10927echo "$as_me:$LINENO:" \
10928 "checking for C compiler version" >&5
10929ac_compiler=`set X $ac_compile; echo $2`
10930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10931 (eval $ac_compiler --version </dev/null >&5) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }
10935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10936 (eval $ac_compiler -v </dev/null >&5) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }
10940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10941 (eval $ac_compiler -V </dev/null >&5) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }
10945
10946cat >conftest.$ac_ext <<_ACEOF
10947/* confdefs.h. */
10948_ACEOF
10949cat confdefs.h >>conftest.$ac_ext
10950cat >>conftest.$ac_ext <<_ACEOF
10951/* end confdefs.h. */
10952
10953int
10954main ()
10955{
10956
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961ac_clean_files_save=$ac_clean_files
10962ac_clean_files="$ac_clean_files a.out a.exe b.out"
10963# Try to create an executable without -o first, disregard a.out.
10964# It will help us diagnose broken compilers, and finding out an intuition
10965# of exeext.
ac1cb8d3
VS
10966echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10967echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10968ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10969if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10970 (eval $ac_link_default) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; then
10974 # Find the output, starting from the most likely. This scheme is
10975# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10976# resort.
10977
10978# Be careful to initialize this variable, since it used to be cached.
10979# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10980ac_cv_exeext=
10981# b.out is created by i960 compilers.
10982for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10983do
10984 test -f "$ac_file" || continue
10985 case $ac_file in
10986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10987 ;;
a848cd7e 10988 conftest.$ac_ext )
ac1cb8d3
VS
10989 # This is the source file.
10990 ;;
a848cd7e 10991 [ab].out )
ac1cb8d3
VS
10992 # We found the default executable, but exeext='' is most
10993 # certainly right.
10994 break;;
a848cd7e 10995 *.* )
ac1cb8d3
VS
10996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10997 # FIXME: I believe we export ac_cv_exeext for Libtool,
10998 # but it would be cool to find out if it's true. Does anybody
10999 # maintain Libtool? --akim.
11000 export ac_cv_exeext
11001 break;;
a848cd7e 11002 * )
ac1cb8d3 11003 break;;
a848cd7e
SC
11004 esac
11005done
11006else
11007 echo "$as_me: failed program was:" >&5
11008sed 's/^/| /' conftest.$ac_ext >&5
11009
11010{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11011See \`config.log' for more details." >&5
11012echo "$as_me: error: C compiler cannot create executables
11013See \`config.log' for more details." >&2;}
11014 { (exit 77); exit 77; }; }
11015fi
11016
11017ac_exeext=$ac_cv_exeext
11018echo "$as_me:$LINENO: result: $ac_file" >&5
11019echo "${ECHO_T}$ac_file" >&6
11020
11021# Check the compiler produces executables we can run. If not, either
11022# the compiler is broken, or we cross compile.
11023echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11024echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11025# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11026# If not cross compiling, check that we can run a simple program.
11027if test "$cross_compiling" != yes; then
11028 if { ac_try='./$ac_file'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 cross_compiling=no
11035 else
11036 if test "$cross_compiling" = maybe; then
11037 cross_compiling=yes
11038 else
11039 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11040If you meant to cross compile, use \`--host'.
11041See \`config.log' for more details." >&5
11042echo "$as_me: error: cannot run C compiled programs.
11043If you meant to cross compile, use \`--host'.
11044See \`config.log' for more details." >&2;}
11045 { (exit 1); exit 1; }; }
11046 fi
11047 fi
11048fi
11049echo "$as_me:$LINENO: result: yes" >&5
11050echo "${ECHO_T}yes" >&6
11051
11052rm -f a.out a.exe conftest$ac_cv_exeext b.out
11053ac_clean_files=$ac_clean_files_save
11054# Check the compiler produces executables we can run. If not, either
11055# the compiler is broken, or we cross compile.
11056echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11057echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11058echo "$as_me:$LINENO: result: $cross_compiling" >&5
11059echo "${ECHO_T}$cross_compiling" >&6
11060
11061echo "$as_me:$LINENO: checking for suffix of executables" >&5
11062echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; then
11068 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11069# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11070# work properly (i.e., refer to `conftest.exe'), while it won't with
11071# `rm'.
11072for ac_file in conftest.exe conftest conftest.*; do
11073 test -f "$ac_file" || continue
11074 case $ac_file in
11075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11076 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11077 export ac_cv_exeext
11078 break;;
a848cd7e
SC
11079 * ) break;;
11080 esac
11081done
11082else
11083 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11084See \`config.log' for more details." >&5
11085echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11086See \`config.log' for more details." >&2;}
11087 { (exit 1); exit 1; }; }
11088fi
11089
11090rm -f conftest$ac_cv_exeext
11091echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11092echo "${ECHO_T}$ac_cv_exeext" >&6
11093
11094rm -f conftest.$ac_ext
11095EXEEXT=$ac_cv_exeext
11096ac_exeext=$EXEEXT
11097echo "$as_me:$LINENO: checking for suffix of object files" >&5
11098echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11099if test "${ac_cv_objext+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101else
11102 cat >conftest.$ac_ext <<_ACEOF
11103/* confdefs.h. */
11104_ACEOF
11105cat confdefs.h >>conftest.$ac_ext
11106cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h. */
11108
11109int
11110main ()
11111{
11112
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.o conftest.obj
11118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; then
11123 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11124 case $ac_file in
11125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11127 break;;
11128 esac
11129done
11130else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11135See \`config.log' for more details." >&5
11136echo "$as_me: error: cannot compute suffix of object files: cannot compile
11137See \`config.log' for more details." >&2;}
11138 { (exit 1); exit 1; }; }
11139fi
11140
11141rm -f conftest.$ac_cv_objext conftest.$ac_ext
11142fi
11143echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11144echo "${ECHO_T}$ac_cv_objext" >&6
11145OBJEXT=$ac_cv_objext
11146ac_objext=$OBJEXT
11147echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11148echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11149if test "${ac_cv_c_compiler_gnu+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152 cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h. */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h. */
11158
11159int
11160main ()
11161{
11162#ifndef __GNUC__
11163 choke me
11164#endif
11165
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170rm -f conftest.$ac_objext
11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11172 (eval $ac_compile) 2>conftest.er1
a848cd7e 11173 ac_status=$?
ac1cb8d3
VS
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
a848cd7e
SC
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
07158944 11179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_compiler_gnu=yes
11192else
11193 echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196ac_compiler_gnu=no
11197fi
ac1cb8d3 11198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11199ac_cv_c_compiler_gnu=$ac_compiler_gnu
11200
11201fi
11202echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11203echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11204GCC=`test $ac_compiler_gnu = yes && echo yes`
11205ac_test_CFLAGS=${CFLAGS+set}
11206ac_save_CFLAGS=$CFLAGS
11207CFLAGS="-g"
11208echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11209echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11210if test "${ac_cv_prog_cc_g+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219
11220int
11221main ()
11222{
11223
11224 ;
11225 return 0;
11226}
11227_ACEOF
11228rm -f conftest.$ac_objext
11229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11230 (eval $ac_compile) 2>conftest.er1
a848cd7e 11231 ac_status=$?
ac1cb8d3
VS
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
a848cd7e
SC
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
07158944 11237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_cv_prog_cc_g=yes
11250else
11251 echo "$as_me: failed program was:" >&5
11252sed 's/^/| /' conftest.$ac_ext >&5
11253
11254ac_cv_prog_cc_g=no
11255fi
ac1cb8d3 11256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11257fi
11258echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11260if test "$ac_test_CFLAGS" = set; then
11261 CFLAGS=$ac_save_CFLAGS
11262elif test $ac_cv_prog_cc_g = yes; then
11263 if test "$GCC" = yes; then
11264 CFLAGS="-g -O2"
11265 else
11266 CFLAGS="-g"
11267 fi
11268else
11269 if test "$GCC" = yes; then
11270 CFLAGS="-O2"
11271 else
11272 CFLAGS=
11273 fi
11274fi
11275echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11276echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11277if test "${ac_cv_prog_cc_stdc+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 ac_cv_prog_cc_stdc=no
11281ac_save_CC=$CC
11282cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288#include <stdarg.h>
11289#include <stdio.h>
11290#include <sys/types.h>
11291#include <sys/stat.h>
11292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11293struct buf { int x; };
11294FILE * (*rcsopen) (struct buf *, struct stat *, int);
11295static char *e (p, i)
11296 char **p;
11297 int i;
11298{
11299 return p[i];
11300}
11301static char *f (char * (*g) (char **, int), char **p, ...)
11302{
11303 char *s;
11304 va_list v;
11305 va_start (v,p);
11306 s = g (p, va_arg (v,int));
11307 va_end (v);
11308 return s;
11309}
ac1cb8d3
VS
11310
11311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11312 function prototypes and stuff, but not '\xHH' hex character constants.
11313 These don't provoke an error unfortunately, instead are silently treated
11314 as 'x'. The following induces an error, until -std1 is added to get
11315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11316 array size at least. It's necessary to write '\x00'==0 to get something
11317 that's true only with -std1. */
11318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11319
a848cd7e
SC
11320int test (int i, double x);
11321struct s1 {int (*f) (int a);};
11322struct s2 {int (*f) (double a);};
11323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11324int argc;
11325char **argv;
11326int
11327main ()
11328{
11329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11330 ;
11331 return 0;
11332}
11333_ACEOF
11334# Don't try gcc -ansi; that turns off useful extensions and
11335# breaks some systems' header files.
11336# AIX -qlanglvl=ansi
11337# Ultrix and OSF/1 -std1
11338# HP-UX 10.20 and later -Ae
11339# HP-UX older versions -Aa -D_HPUX_SOURCE
11340# SVR4 -Xc -D__EXTENSIONS__
11341for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11342do
11343 CC="$ac_save_CC $ac_arg"
11344 rm -f conftest.$ac_objext
11345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11346 (eval $ac_compile) 2>conftest.er1
a848cd7e 11347 ac_status=$?
ac1cb8d3
VS
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
a848cd7e
SC
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
07158944 11353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_cv_prog_cc_stdc=$ac_arg
11366break
11367else
11368 echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
11371fi
ac1cb8d3 11372rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11373done
11374rm -f conftest.$ac_ext conftest.$ac_objext
11375CC=$ac_save_CC
11376
11377fi
11378
11379case "x$ac_cv_prog_cc_stdc" in
11380 x|xno)
11381 echo "$as_me:$LINENO: result: none needed" >&5
11382echo "${ECHO_T}none needed" >&6 ;;
11383 *)
11384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11385echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11386 CC="$CC $ac_cv_prog_cc_stdc" ;;
11387esac
11388
11389# Some people use a C++ compiler to compile C. Since we use `exit',
11390# in C++ we need to declare it. In case someone uses the same compiler
11391# for both compiling C and C++ we need to have the C++ compiler decide
11392# the declaration of exit, since it's the most demanding environment.
11393cat >conftest.$ac_ext <<_ACEOF
11394#ifndef __cplusplus
11395 choke me
11396#endif
11397_ACEOF
11398rm -f conftest.$ac_objext
11399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11400 (eval $ac_compile) 2>conftest.er1
a848cd7e 11401 ac_status=$?
ac1cb8d3
VS
11402 grep -v '^ *+' conftest.er1 >conftest.err
11403 rm -f conftest.er1
11404 cat conftest.err >&5
a848cd7e
SC
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
07158944 11407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 for ac_declaration in \
ac1cb8d3 11420 '' \
a848cd7e
SC
11421 'extern "C" void std::exit (int) throw (); using std::exit;' \
11422 'extern "C" void std::exit (int); using std::exit;' \
11423 'extern "C" void exit (int) throw ();' \
11424 'extern "C" void exit (int);' \
11425 'void exit (int);'
11426do
11427 cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
de59c161 11433$ac_declaration
ac1cb8d3 11434#include <stdlib.h>
a848cd7e
SC
11435int
11436main ()
11437{
11438exit (42);
11439 ;
11440 return 0;
11441}
11442_ACEOF
11443rm -f conftest.$ac_objext
11444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11445 (eval $ac_compile) 2>conftest.er1
a848cd7e 11446 ac_status=$?
ac1cb8d3
VS
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
a848cd7e
SC
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
07158944 11452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 :
11465else
11466 echo "$as_me: failed program was:" >&5
11467sed 's/^/| /' conftest.$ac_ext >&5
11468
11469continue
11470fi
ac1cb8d3 11471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11472 cat >conftest.$ac_ext <<_ACEOF
11473/* confdefs.h. */
11474_ACEOF
11475cat confdefs.h >>conftest.$ac_ext
11476cat >>conftest.$ac_ext <<_ACEOF
11477/* end confdefs.h. */
11478$ac_declaration
11479int
11480main ()
11481{
11482exit (42);
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487rm -f conftest.$ac_objext
11488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11489 (eval $ac_compile) 2>conftest.er1
a848cd7e 11490 ac_status=$?
ac1cb8d3
VS
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
a848cd7e
SC
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
07158944 11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 break
11509else
11510 echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513fi
ac1cb8d3 11514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11515done
11516rm -f conftest*
11517if test -n "$ac_declaration"; then
11518 echo '#ifdef __cplusplus' >>confdefs.h
11519 echo $ac_declaration >>confdefs.h
11520 echo '#endif' >>confdefs.h
11521fi
11522
11523else
11524 echo "$as_me: failed program was:" >&5
11525sed 's/^/| /' conftest.$ac_ext >&5
11526
11527fi
ac1cb8d3 11528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11529ac_ext=c
11530ac_cpp='$CPP $CPPFLAGS'
11531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11533ac_compiler_gnu=$ac_cv_c_compiler_gnu
11534
480ccd21
DE
11535echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11536echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11537if test "${wx_cv_c_exto+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
11540 cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
11546
11547int
11548main ()
11549{
11550
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext conftest.$ac_ext.o
11556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; then
11561 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11562 case $ac_file in
11563 conftest.$ac_ext.o)
11564 wx_cv_c_exto="-ext o"
11565 ;;
11566 *)
11567 ;;
11568 esac
11569done
11570else
11571 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11572See \`config.log' for more details." >&5
11573echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11574See \`config.log' for more details." >&2;}
11575 { (exit 1); exit 1; }; }
11576
11577fi
11578
11579rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11580
11581fi
11582echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11583echo "${ECHO_T}$wx_cv_c_exto" >&6
11584if test "x$wx_cv_c_exto" '!=' "x"; then
11585 if test "c" = "c"; then
11586 CFLAGS="$wx_cv_c_exto $CFLAGS"
11587 fi
11588 if test "c" = "cxx"; then
11589 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11590 fi
11591fi
11592
11593if test "x$wx_cv_c_exto" '!=' "x"; then
11594 unset ac_cv_prog_cc_g
11595 ac_test_CFLAGS=${CFLAGS+set}
11596ac_save_CFLAGS=$CFLAGS
11597CFLAGS="-g"
11598echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11599echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11600if test "${ac_cv_prog_cc_g+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11602else
11603 cat >conftest.$ac_ext <<_ACEOF
11604/* confdefs.h. */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h. */
11609
11610int
11611main ()
11612{
11613
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618rm -f conftest.$ac_objext
11619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
07158944 11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try='test -s conftest.$ac_objext'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 ac_cv_prog_cc_g=yes
11640else
11641 echo "$as_me: failed program was:" >&5
11642sed 's/^/| /' conftest.$ac_ext >&5
11643
11644ac_cv_prog_cc_g=no
11645fi
11646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11647fi
11648echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11649echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11650if test "$ac_test_CFLAGS" = set; then
11651 CFLAGS=$ac_save_CFLAGS
11652elif test $ac_cv_prog_cc_g = yes; then
11653 if test "$GCC" = yes; then
11654 CFLAGS="-g -O2"
11655 else
11656 CFLAGS="-g"
11657 fi
11658else
11659 if test "$GCC" = yes; then
11660 CFLAGS="-O2"
11661 else
11662 CFLAGS=
11663 fi
11664fi
11665fi
a848cd7e 11666
95986553
DE
11667ac_ext=c
11668ac_cpp='$CPP $CPPFLAGS'
11669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11671ac_compiler_gnu=$ac_cv_c_compiler_gnu
11672
11673echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11674echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11675if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677else
11678 cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
11684
11685int
11686main ()
11687{
11688#ifndef __MWERKS__
11689 choke me
11690#endif
11691
11692 ;
11693 return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext
11697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
07158944 11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 bakefile_compiler_mwerks=yes
11718else
11719 echo "$as_me: failed program was:" >&5
11720sed 's/^/| /' conftest.$ac_ext >&5
11721
11722bakefile_compiler_mwerks=no
11723fi
11724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11725 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11726
11727fi
11728echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11729echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11730
11731MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11732ac_ext=c
11733ac_cpp='$CPP $CPPFLAGS'
11734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11736ac_compiler_gnu=$ac_cv_c_compiler_gnu
11737
11738
9273ffba
DE
11739ac_ext=c
11740ac_cpp='$CPP $CPPFLAGS'
11741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11743ac_compiler_gnu=$ac_cv_c_compiler_gnu
11744
11745echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11746echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11747if test "${wx_cv_c_compiler_xlc+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749else
11750 cat >conftest.$ac_ext <<_ACEOF
11751/* confdefs.h. */
11752_ACEOF
11753cat confdefs.h >>conftest.$ac_ext
11754cat >>conftest.$ac_ext <<_ACEOF
11755/* end confdefs.h. */
11756
11757int
11758main ()
11759{
11760#ifndef __xlC__
11761 choke me
11762#endif
11763
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext
11769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11770 (eval $ac_compile) 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
07158944 11777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try='test -s conftest.$ac_objext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 wx_compiler_xlc=yes
11790else
11791 echo "$as_me: failed program was:" >&5
11792sed 's/^/| /' conftest.$ac_ext >&5
11793
11794wx_compiler_xlc=no
11795fi
11796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11797 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11798
11799fi
11800echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11801echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11802
11803XLCC=`test $wx_compiler_xlc = yes && echo yes`
11804ac_ext=c
11805ac_cpp='$CPP $CPPFLAGS'
11806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11808ac_compiler_gnu=$ac_cv_c_compiler_gnu
11809
11810
a848cd7e
SC
11811
11812ac_ext=c
11813ac_cpp='$CPP $CPPFLAGS'
11814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816ac_compiler_gnu=$ac_cv_c_compiler_gnu
11817echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11818echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11819# On Suns, sometimes $CPP names a directory.
11820if test -n "$CPP" && test -d "$CPP"; then
11821 CPP=
11822fi
11823if test -z "$CPP"; then
11824 if test "${ac_cv_prog_CPP+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826else
11827 # Double quotes because CPP needs to be expanded
11828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11829 do
11830 ac_preproc_ok=false
11831for ac_c_preproc_warn_flag in '' yes
11832do
11833 # Use a header file that comes with gcc, so configuring glibc
11834 # with a fresh cross-compiler works.
11835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11836 # <limits.h> exists even on freestanding compilers.
11837 # On the NeXT, cc -E runs the code through the compiler's parser,
11838 # not just through cpp. "Syntax error" is here to catch this case.
11839 cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845#ifdef __STDC__
11846# include <limits.h>
11847#else
11848# include <assert.h>
11849#endif
ac1cb8d3 11850 Syntax error
a848cd7e
SC
11851_ACEOF
11852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } >/dev/null; then
11860 if test -s conftest.err; then
11861 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11863 else
11864 ac_cpp_err=
11865 fi
11866else
11867 ac_cpp_err=yes
11868fi
11869if test -z "$ac_cpp_err"; then
11870 :
11871else
11872 echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 # Broken: fails on valid input.
11876continue
11877fi
11878rm -f conftest.err conftest.$ac_ext
11879
11880 # OK, works on sane cases. Now check whether non-existent headers
11881 # can be detected and how.
11882 cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888#include <ac_nonexistent.h>
11889_ACEOF
11890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } >/dev/null; then
11898 if test -s conftest.err; then
11899 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11901 else
11902 ac_cpp_err=
11903 fi
11904else
11905 ac_cpp_err=yes
11906fi
11907if test -z "$ac_cpp_err"; then
11908 # Broken: success on invalid input.
11909continue
11910else
11911 echo "$as_me: failed program was:" >&5
11912sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 # Passes both tests.
11915ac_preproc_ok=:
11916break
11917fi
11918rm -f conftest.err conftest.$ac_ext
11919
11920done
11921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11922rm -f conftest.err conftest.$ac_ext
11923if $ac_preproc_ok; then
11924 break
11925fi
11926
11927 done
11928 ac_cv_prog_CPP=$CPP
11929
11930fi
11931 CPP=$ac_cv_prog_CPP
11932else
11933 ac_cv_prog_CPP=$CPP
11934fi
11935echo "$as_me:$LINENO: result: $CPP" >&5
11936echo "${ECHO_T}$CPP" >&6
11937ac_preproc_ok=false
11938for ac_c_preproc_warn_flag in '' yes
11939do
11940 # Use a header file that comes with gcc, so configuring glibc
11941 # with a fresh cross-compiler works.
11942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11943 # <limits.h> exists even on freestanding compilers.
11944 # On the NeXT, cc -E runs the code through the compiler's parser,
11945 # not just through cpp. "Syntax error" is here to catch this case.
11946 cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952#ifdef __STDC__
11953# include <limits.h>
11954#else
11955# include <assert.h>
11956#endif
ac1cb8d3 11957 Syntax error
a848cd7e
SC
11958_ACEOF
11959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } >/dev/null; then
11967 if test -s conftest.err; then
11968 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11970 else
11971 ac_cpp_err=
11972 fi
11973else
11974 ac_cpp_err=yes
11975fi
11976if test -z "$ac_cpp_err"; then
11977 :
11978else
11979 echo "$as_me: failed program was:" >&5
11980sed 's/^/| /' conftest.$ac_ext >&5
11981
11982 # Broken: fails on valid input.
11983continue
11984fi
11985rm -f conftest.err conftest.$ac_ext
11986
11987 # OK, works on sane cases. Now check whether non-existent headers
11988 # can be detected and how.
11989 cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
11995#include <ac_nonexistent.h>
11996_ACEOF
11997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } >/dev/null; then
12005 if test -s conftest.err; then
12006 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12008 else
12009 ac_cpp_err=
12010 fi
12011else
12012 ac_cpp_err=yes
12013fi
12014if test -z "$ac_cpp_err"; then
12015 # Broken: success on invalid input.
12016continue
12017else
12018 echo "$as_me: failed program was:" >&5
12019sed 's/^/| /' conftest.$ac_ext >&5
12020
12021 # Passes both tests.
12022ac_preproc_ok=:
12023break
12024fi
12025rm -f conftest.err conftest.$ac_ext
12026
12027done
12028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12029rm -f conftest.err conftest.$ac_ext
12030if $ac_preproc_ok; then
12031 :
12032else
12033 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12034See \`config.log' for more details." >&5
12035echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12036See \`config.log' for more details." >&2;}
12037 { (exit 1); exit 1; }; }
12038fi
12039
12040ac_ext=c
12041ac_cpp='$CPP $CPPFLAGS'
12042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044ac_compiler_gnu=$ac_cv_c_compiler_gnu
12045
12046
12047echo "$as_me:$LINENO: checking for egrep" >&5
12048echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12049if test "${ac_cv_prog_egrep+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051else
12052 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12053 then ac_cv_prog_egrep='grep -E'
12054 else ac_cv_prog_egrep='egrep'
12055 fi
12056fi
12057echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12058echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12059 EGREP=$ac_cv_prog_egrep
12060
12061
12062if test $ac_cv_c_compiler_gnu = yes; then
12063 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12064echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12065if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
12068 ac_pattern="Autoconf.*'x'"
12069 cat >conftest.$ac_ext <<_ACEOF
12070/* confdefs.h. */
12071_ACEOF
12072cat confdefs.h >>conftest.$ac_ext
12073cat >>conftest.$ac_ext <<_ACEOF
12074/* end confdefs.h. */
12075#include <sgtty.h>
12076Autoconf TIOCGETP
12077_ACEOF
12078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12080 ac_cv_prog_gcc_traditional=yes
12081else
12082 ac_cv_prog_gcc_traditional=no
12083fi
12084rm -f conftest*
12085
12086
12087 if test $ac_cv_prog_gcc_traditional = no; then
12088 cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094#include <termio.h>
12095Autoconf TCGETA
12096_ACEOF
12097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12098 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12099 ac_cv_prog_gcc_traditional=yes
12100fi
12101rm -f conftest*
12102
12103 fi
12104fi
12105echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12106echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12107 if test $ac_cv_prog_gcc_traditional = yes; then
12108 CC="$CC -traditional"
12109 fi
12110fi
12111
12112
12113
12114
12115ac_ext=cc
12116ac_cpp='$CXXCPP $CPPFLAGS'
12117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12120
12121
12122CXXFLAGS=${CXXFLAGS:=}
12123ac_ext=cc
12124ac_cpp='$CXXCPP $CPPFLAGS'
12125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12128if test -n "$ac_tool_prefix"; then
12129 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12130 do
12131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12133echo "$as_me:$LINENO: checking for $ac_word" >&5
12134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12135if test "${ac_cv_prog_CXX+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138 if test -n "$CXX"; then
12139 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12140else
12141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142for as_dir in $PATH
12143do
12144 IFS=$as_save_IFS
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12148 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 break 2
12151 fi
12152done
12153done
12154
12155fi
12156fi
12157CXX=$ac_cv_prog_CXX
12158if test -n "$CXX"; then
12159 echo "$as_me:$LINENO: result: $CXX" >&5
12160echo "${ECHO_T}$CXX" >&6
12161else
12162 echo "$as_me:$LINENO: result: no" >&5
12163echo "${ECHO_T}no" >&6
12164fi
12165
12166 test -n "$CXX" && break
12167 done
12168fi
12169if test -z "$CXX"; then
12170 ac_ct_CXX=$CXX
12171 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12172do
12173 # Extract the first word of "$ac_prog", so it can be a program name with args.
12174set dummy $ac_prog; ac_word=$2
12175echo "$as_me:$LINENO: checking for $ac_word" >&5
12176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12177if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179else
12180 if test -n "$ac_ct_CXX"; then
12181 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12182else
12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_ac_ct_CXX="$ac_prog"
12191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 break 2
12193 fi
12194done
12195done
12196
12197fi
12198fi
12199ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12200if test -n "$ac_ct_CXX"; then
12201 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12202echo "${ECHO_T}$ac_ct_CXX" >&6
12203else
12204 echo "$as_me:$LINENO: result: no" >&5
12205echo "${ECHO_T}no" >&6
12206fi
12207
12208 test -n "$ac_ct_CXX" && break
12209done
12210test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12211
12212 CXX=$ac_ct_CXX
12213fi
12214
12215
12216# Provide some information about the compiler.
12217echo "$as_me:$LINENO:" \
12218 "checking for C++ compiler version" >&5
12219ac_compiler=`set X $ac_compile; echo $2`
12220{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12221 (eval $ac_compiler --version </dev/null >&5) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }
12225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12226 (eval $ac_compiler -v </dev/null >&5) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }
12230{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12231 (eval $ac_compiler -V </dev/null >&5) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }
12235
12236echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12237echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12238if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240else
12241 cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247
12248int
12249main ()
12250{
12251#ifndef __GNUC__
12252 choke me
12253#endif
12254
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext
12260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12261 (eval $ac_compile) 2>conftest.er1
a848cd7e 12262 ac_status=$?
ac1cb8d3
VS
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
a848cd7e
SC
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
07158944 12268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_compiler_gnu=yes
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285ac_compiler_gnu=no
12286fi
ac1cb8d3 12287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12288ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12289
12290fi
12291echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12292echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12293GXX=`test $ac_compiler_gnu = yes && echo yes`
12294ac_test_CXXFLAGS=${CXXFLAGS+set}
12295ac_save_CXXFLAGS=$CXXFLAGS
12296CXXFLAGS="-g"
12297echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12298echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12299if test "${ac_cv_prog_cxx_g+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302 cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308
12309int
12310main ()
12311{
12312
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317rm -f conftest.$ac_objext
12318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12319 (eval $ac_compile) 2>conftest.er1
a848cd7e 12320 ac_status=$?
ac1cb8d3
VS
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
a848cd7e
SC
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
07158944 12326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_cv_prog_cxx_g=yes
12339else
12340 echo "$as_me: failed program was:" >&5
12341sed 's/^/| /' conftest.$ac_ext >&5
12342
12343ac_cv_prog_cxx_g=no
12344fi
ac1cb8d3 12345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12346fi
12347echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12348echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12349if test "$ac_test_CXXFLAGS" = set; then
12350 CXXFLAGS=$ac_save_CXXFLAGS
12351elif test $ac_cv_prog_cxx_g = yes; then
12352 if test "$GXX" = yes; then
12353 CXXFLAGS="-g -O2"
12354 else
12355 CXXFLAGS="-g"
12356 fi
12357else
12358 if test "$GXX" = yes; then
12359 CXXFLAGS="-O2"
12360 else
12361 CXXFLAGS=
12362 fi
12363fi
12364for ac_declaration in \
ac1cb8d3 12365 '' \
a848cd7e
SC
12366 'extern "C" void std::exit (int) throw (); using std::exit;' \
12367 'extern "C" void std::exit (int); using std::exit;' \
12368 'extern "C" void exit (int) throw ();' \
12369 'extern "C" void exit (int);' \
12370 'void exit (int);'
12371do
12372 cat >conftest.$ac_ext <<_ACEOF
12373/* confdefs.h. */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h. */
de59c161 12378$ac_declaration
ac1cb8d3 12379#include <stdlib.h>
a848cd7e
SC
12380int
12381main ()
12382{
12383exit (42);
12384 ;
12385 return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext
12389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12390 (eval $ac_compile) 2>conftest.er1
a848cd7e 12391 ac_status=$?
ac1cb8d3
VS
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
a848cd7e
SC
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
07158944 12397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 :
12410else
12411 echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
12414continue
12415fi
ac1cb8d3 12416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12417 cat >conftest.$ac_ext <<_ACEOF
12418/* confdefs.h. */
12419_ACEOF
12420cat confdefs.h >>conftest.$ac_ext
12421cat >>conftest.$ac_ext <<_ACEOF
12422/* end confdefs.h. */
12423$ac_declaration
12424int
12425main ()
12426{
12427exit (42);
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); } &&
07158944 12441 { ac_try='test -z "$ac_cxx_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 break
12454else
12455 echo "$as_me: failed program was:" >&5
12456sed 's/^/| /' conftest.$ac_ext >&5
12457
12458fi
ac1cb8d3 12459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12460done
12461rm -f conftest*
12462if test -n "$ac_declaration"; then
12463 echo '#ifdef __cplusplus' >>confdefs.h
12464 echo $ac_declaration >>confdefs.h
12465 echo '#endif' >>confdefs.h
12466fi
12467
12468ac_ext=cc
12469ac_cpp='$CXXCPP $CPPFLAGS'
12470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12473
480ccd21
DE
12474echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
12475echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12476if test "${wx_cv_cxx_exto+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 cat >conftest.$ac_ext <<_ACEOF
12480/* confdefs.h. */
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
12484/* end confdefs.h. */
12485
12486int
12487main ()
12488{
12489
12490 ;
12491 return 0;
12492}
12493_ACEOF
12494rm -f conftest.$ac_objext conftest.$ac_ext.o
12495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; then
12500 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12501 case $ac_file in
12502 conftest.$ac_ext.o)
12503 wx_cv_cxx_exto="-ext o"
12504 ;;
12505 *)
12506 ;;
12507 esac
12508done
12509else
12510 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12511See \`config.log' for more details." >&5
12512echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12513See \`config.log' for more details." >&2;}
12514 { (exit 1); exit 1; }; }
12515
12516fi
12517
12518rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12519
12520fi
12521echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12522echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12523if test "x$wx_cv_cxx_exto" '!=' "x"; then
12524 if test "cxx" = "c"; then
12525 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12526 fi
12527 if test "cxx" = "cxx"; then
12528 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12529 fi
12530fi
12531
12532if test "x$wx_cv_cxx_exto" '!=' "x"; then
12533 unset ac_cv_prog_cxx_g
12534 ac_test_CXXFLAGS=${CXXFLAGS+set}
12535ac_save_CXXFLAGS=$CXXFLAGS
12536CXXFLAGS="-g"
12537echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12538echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12539if test "${ac_cv_prog_cxx_g+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541else
12542 cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548
12549int
12550main ()
12551{
12552
12553 ;
12554 return 0;
12555}
12556_ACEOF
12557rm -f conftest.$ac_objext
12558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
07158944 12566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest.$ac_objext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_cv_prog_cxx_g=yes
12579else
12580 echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583ac_cv_prog_cxx_g=no
12584fi
12585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12586fi
12587echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12588echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12589if test "$ac_test_CXXFLAGS" = set; then
12590 CXXFLAGS=$ac_save_CXXFLAGS
12591elif test $ac_cv_prog_cxx_g = yes; then
12592 if test "$GXX" = yes; then
12593 CXXFLAGS="-g -O2"
12594 else
12595 CXXFLAGS="-g"
12596 fi
12597else
12598 if test "$GXX" = yes; then
12599 CXXFLAGS="-O2"
12600 else
12601 CXXFLAGS=
12602 fi
12603fi
12604fi
a848cd7e 12605
95986553
DE
12606ac_ext=cc
12607ac_cpp='$CXXCPP $CPPFLAGS'
12608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12611
12612echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12613echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12614if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616else
12617 cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h. */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h. */
12623
12624int
12625main ()
12626{
12627#ifndef __MWERKS__
12628 choke me
12629#endif
12630
12631 ;
12632 return 0;
12633}
12634_ACEOF
12635rm -f conftest.$ac_objext
12636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
07158944 12644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12656 bakefile_compiler_mwerks=yes
12657else
12658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661bakefile_compiler_mwerks=no
12662fi
12663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12664 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12665
12666fi
12667echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12668echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12669
12670MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12671ac_ext=cc
12672ac_cpp='$CXXCPP $CPPFLAGS'
12673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12676
12677
9273ffba
DE
12678ac_ext=cc
12679ac_cpp='$CXXCPP $CPPFLAGS'
12680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12683
12684echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12685echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12686if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688else
12689 cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695
12696int
12697main ()
12698{
12699#ifndef __xlC__
12700 choke me
12701#endif
12702
12703 ;
12704 return 0;
12705}
12706_ACEOF
12707rm -f conftest.$ac_objext
12708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
07158944 12716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 wx_compiler_xlc=yes
12729else
12730 echo "$as_me: failed program was:" >&5
12731sed 's/^/| /' conftest.$ac_ext >&5
12732
12733wx_compiler_xlc=no
12734fi
12735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12736 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12737
12738fi
12739echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12740echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12741
12742XLCXX=`test $wx_compiler_xlc = yes && echo yes`
12743ac_ext=cc
12744ac_cpp='$CXXCPP $CPPFLAGS'
12745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12748
12749
95986553 12750
a848cd7e
SC
12751ac_ext=c
12752ac_cpp='$CPP $CPPFLAGS'
12753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12755ac_compiler_gnu=$ac_cv_c_compiler_gnu
12756
12757
a848cd7e
SC
12758if test -n "$ac_tool_prefix"; then
12759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12760set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12761echo "$as_me:$LINENO: checking for $ac_word" >&5
12762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12763if test "${ac_cv_prog_RANLIB+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765else
12766 if test -n "$RANLIB"; then
12767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12768else
12769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770for as_dir in $PATH
12771do
12772 IFS=$as_save_IFS
12773 test -z "$as_dir" && as_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12778 break 2
12779 fi
12780done
12781done
12782
12783fi
12784fi
12785RANLIB=$ac_cv_prog_RANLIB
12786if test -n "$RANLIB"; then
12787 echo "$as_me:$LINENO: result: $RANLIB" >&5
12788echo "${ECHO_T}$RANLIB" >&6
12789else
12790 echo "$as_me:$LINENO: result: no" >&5
12791echo "${ECHO_T}no" >&6
12792fi
12793
12794fi
12795if test -z "$ac_cv_prog_RANLIB"; then
12796 ac_ct_RANLIB=$RANLIB
12797 # Extract the first word of "ranlib", so it can be a program name with args.
12798set dummy ranlib; ac_word=$2
12799echo "$as_me:$LINENO: checking for $ac_word" >&5
12800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12801if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12803else
12804 if test -n "$ac_ct_RANLIB"; then
12805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12806else
12807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808for as_dir in $PATH
12809do
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814 ac_cv_prog_ac_ct_RANLIB="ranlib"
12815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 break 2
12817 fi
12818done
12819done
12820
12821 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12822fi
12823fi
12824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12825if test -n "$ac_ct_RANLIB"; then
12826 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12827echo "${ECHO_T}$ac_ct_RANLIB" >&6
12828else
12829 echo "$as_me:$LINENO: result: no" >&5
12830echo "${ECHO_T}no" >&6
12831fi
12832
12833 RANLIB=$ac_ct_RANLIB
12834else
12835 RANLIB="$ac_cv_prog_RANLIB"
12836fi
12837
12838
12839# Extract the first word of "ar", so it can be a program name with args.
12840set dummy ar; ac_word=$2
12841echo "$as_me:$LINENO: checking for $ac_word" >&5
12842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12843if test "${ac_cv_prog_AR+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845else
12846 if test -n "$AR"; then
12847 ac_cv_prog_AR="$AR" # Let the user override the test.
12848else
12849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850for as_dir in $PATH
12851do
12852 IFS=$as_save_IFS
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12856 ac_cv_prog_AR="ar"
12857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 break 2
12859 fi
12860done
12861done
12862
12863fi
12864fi
12865AR=$ac_cv_prog_AR
12866if test -n "$AR"; then
12867 echo "$as_me:$LINENO: result: $AR" >&5
12868echo "${ECHO_T}$AR" >&6
12869else
12870 echo "$as_me:$LINENO: result: no" >&5
12871echo "${ECHO_T}no" >&6
12872fi
12873
12874if test "x$AR" = "x" ; then
77ffb593
JS
12875 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12876echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12877 { (exit 1); exit 1; }; }
12878fi
12879
12880# Find a good install program. We prefer a C program (faster),
12881# so one script is as good as another. But avoid the broken or
12882# incompatible versions:
12883# SysV /etc/install, /usr/sbin/install
12884# SunOS /usr/etc/install
12885# IRIX /sbin/install
12886# AIX /bin/install
12887# AmigaOS /C/install, which installs bootblocks on floppy discs
12888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12889# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12891# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12892# ./install, which can be erroneously created by make from ./install.sh.
12893echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12894echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12895if test -z "$INSTALL"; then
12896if test "${ac_cv_path_install+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900for as_dir in $PATH
12901do
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 # Account for people who put trailing slashes in PATH elements.
12905case $as_dir/ in
12906 ./ | .// | /cC/* | \
12907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12908 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12909 /usr/ucb/* ) ;;
12910 *)
12911 # OSF1 and SCO ODT 3.0 have their own names for install.
12912 # Don't use installbsd from OSF since it installs stuff as root
12913 # by default.
12914 for ac_prog in ginstall scoinst install; do
12915 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12916 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12917 if test $ac_prog = install &&
12918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12919 # AIX install. It has an incompatible calling convention.
12920 :
12921 elif test $ac_prog = install &&
12922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12923 # program-specific install script used by HP pwplus--don't use.
12924 :
12925 else
12926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12927 break 3
12928 fi
12929 fi
a848cd7e
SC
12930 done
12931 done
12932 ;;
12933esac
12934done
12935
12936
12937fi
12938 if test "${ac_cv_path_install+set}" = set; then
12939 INSTALL=$ac_cv_path_install
12940 else
12941 # As a last resort, use the slow shell script. We don't cache a
12942 # path for INSTALL within a source directory, because that will
12943 # break other packages using the cache if that directory is
12944 # removed, or if the path is relative.
12945 INSTALL=$ac_install_sh
12946 fi
12947fi
12948echo "$as_me:$LINENO: result: $INSTALL" >&5
12949echo "${ECHO_T}$INSTALL" >&6
12950
12951# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12952# It thinks the first close brace ends the variable substitution.
12953test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12954
12955test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12956
12957test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12958
12959
12960case ${INSTALL} in
12961 /* ) # Absolute
12962 ;;
12963 ?:* ) # Drive letter, considered as absolute.
12964 ;;
12965 *)
12966 INSTALL=`pwd`/${INSTALL} ;;
12967esac
12968
a848cd7e
SC
12969
12970case "${host}" in
12971
12972 powerpc-*-darwin* )
12973 INSTALL_PROGRAM="cp -fp"
12974 INSTALL_DATA="cp -fp"
12975 ;;
12976 *)
12977 ;;
12978esac
12979
12980# Extract the first word of "strip", so it can be a program name with args.
12981set dummy strip; ac_word=$2
12982echo "$as_me:$LINENO: checking for $ac_word" >&5
12983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12984if test "${ac_cv_prog_STRIP+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 if test -n "$STRIP"; then
12988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_prog_STRIP="strip"
12998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001done
13002done
13003
13004 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13005fi
13006fi
13007STRIP=$ac_cv_prog_STRIP
13008if test -n "$STRIP"; then
13009 echo "$as_me:$LINENO: result: $STRIP" >&5
13010echo "${ECHO_T}$STRIP" >&6
13011else
13012 echo "$as_me:$LINENO: result: no" >&5
13013echo "${ECHO_T}no" >&6
13014fi
13015
13016
13017echo "$as_me:$LINENO: checking if make is GNU make" >&5
13018echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13019if test "${wx_cv_prog_makeisgnu+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022
13023 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13024 egrep -s GNU > /dev/null); then
13025 wx_cv_prog_makeisgnu="yes"
13026 else
13027 wx_cv_prog_makeisgnu="no"
13028 fi
13029
13030fi
13031echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13032echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13033
13034if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13035 IF_GNU_MAKE=""
13036else
13037 IF_GNU_MAKE="#"
13038fi
13039
13040
13041
13042if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13043echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13044echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13045if test "${wx_cv_prog_makevpath+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
13048
13049cat - << EOF > confMake
13050check : file
13051 cp \$? \$@
13052 cp \$? final_file
13053EOF
13054
13055if test ! -d sub ; then
13056 mkdir sub
13057fi
13058echo dummy > sub/file
13059${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13060RESULT=$?
13061rm -f sub/file check final_file confMake
13062rmdir sub
13063if test "$RESULT" = 0; then
13064 wx_cv_prog_makevpath="yes"
13065else
13066 wx_cv_prog_makevpath="no"
13067fi
13068
13069fi
13070echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13071echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13072
13073if test "x$wx_cv_prog_makevpath" != "xyes"; then
13074{ { echo "$as_me:$LINENO: error:
13075You need a make-utility that is able to use the variable
13076VPATH correctly.
13077If your version of make does not support VPATH correctly,
13078please install GNU-make (possibly as gmake), and start
13079configure with the following command:
13080export MAKE=gmake; ./configure for sh-type shells
13081setenv MAKE gmake; ./configure for csh-type shells
13082Also please do remember to use gmake in this case every time
13083you are trying to compile.
13084" >&5
13085echo "$as_me: error:
13086You need a make-utility that is able to use the variable
13087VPATH correctly.
13088If your version of make does not support VPATH correctly,
13089please install GNU-make (possibly as gmake), and start
13090configure with the following command:
13091export MAKE=gmake; ./configure for sh-type shells
13092setenv MAKE gmake; ./configure for csh-type shells
13093Also please do remember to use gmake in this case every time
13094you are trying to compile.
13095" >&2;}
13096 { (exit 1); exit 1; }; }
13097fi fi
13098echo "$as_me:$LINENO: checking whether ln -s works" >&5
13099echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13100LN_S=$as_ln_s
13101if test "$LN_S" = "ln -s"; then
13102 echo "$as_me:$LINENO: result: yes" >&5
13103echo "${ECHO_T}yes" >&6
13104else
13105 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13106echo "${ECHO_T}no, using $LN_S" >&6
13107fi
13108
13109
13110
9273ffba
DE
13111if test "x$XLCXX" = "xyes"; then
13112 CXXFLAGS="$CXXFLAGS -qunique"
13113fi
13114
13115
4d7ec9f1
DE
13116case "${host}" in
13117 powerpc-*-darwin* )
13118 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13119echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13120 cat >conftest.$ac_ext <<_ACEOF
13121/* confdefs.h. */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h. */
13126
13127int
13128main ()
13129{
13130#ifndef __POWERPC__
13131 choke me for lack of PowerPC
13132#endif
13133
13134 ;
13135 return 0;
13136}
13137_ACEOF
13138rm -f conftest.$ac_objext
13139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
07158944 13147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest.$ac_objext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13159 echo "$as_me:$LINENO: result: yes" >&5
13160echo "${ECHO_T}yes" >&6
13161else
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
13165echo "$as_me:$LINENO: result: no" >&5
13166echo "${ECHO_T}no" >&6
13167 cat >>confdefs.h <<\_ACEOF
13168#define __POWERPC__ 1
13169_ACEOF
13170
13171
13172fi
13173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13174 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13175echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13176 cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182#include <CoreFoundation/CFBase.h>
13183
13184int
13185main ()
13186{
13187
13188 ;
13189 return 0;
13190}
13191_ACEOF
13192rm -f conftest.$ac_objext
13193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13194 (eval $ac_compile) 2>conftest.er1
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
07158944 13201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; } &&
13207 { ac_try='test -s conftest.$ac_objext'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 echo "$as_me:$LINENO: result: yes" >&5
13214echo "${ECHO_T}yes" >&6
13215else
13216 echo "$as_me: failed program was:" >&5
13217sed 's/^/| /' conftest.$ac_ext >&5
13218
13219echo "$as_me:$LINENO: result: no" >&5
13220echo "${ECHO_T}no" >&6
13221 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13222echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
13229#define __CF_USE_FRAMEWORK_INCLUDES__
13230#include <CoreFoundation/CFBase.h>
13231
13232int
13233main ()
13234{
13235
13236 ;
13237 return 0;
13238}
13239_ACEOF
13240rm -f conftest.$ac_objext
13241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 (eval $ac_compile) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
07158944 13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest.$ac_objext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 echo "$as_me:$LINENO: result: yes" >&5
13262echo "${ECHO_T}yes" >&6
13263 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13264else
13265 echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13269See \`config.log' for more details." >&5
13270echo "$as_me: error: no. CoreFoundation not available.
13271See \`config.log' for more details." >&2;}
13272 { (exit 1); exit 1; }; }
13273
13274fi
13275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13276
13277
13278fi
13279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13280 ;;
13281esac
13282
a848cd7e
SC
13283case "${host}" in
13284 *-pc-os2_emx | *-pc-os2-emx )
13285 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13286 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13287echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13288if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290else
13291 ac_check_lib_save_LIBS=$LIBS
13292LIBS="-lcExt $LIBS"
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
13300/* Override any gcc2 internal prototype to avoid an error. */
13301#ifdef __cplusplus
13302extern "C"
13303#endif
13304/* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13306char drand48 ();
13307int
13308main ()
13309{
13310drand48 ();
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315rm -f conftest.$ac_objext conftest$ac_exeext
13316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13317 (eval $ac_link) 2>conftest.er1
a848cd7e 13318 ac_status=$?
ac1cb8d3
VS
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
a848cd7e
SC
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
07158944 13324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_lib_cExt_drand48=yes
13337else
13338 echo "$as_me: failed program was:" >&5
13339sed 's/^/| /' conftest.$ac_ext >&5
13340
13341ac_cv_lib_cExt_drand48=no
13342fi
ac1cb8d3
VS
13343rm -f conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13345LIBS=$ac_check_lib_save_LIBS
13346fi
13347echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13348echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13349if test $ac_cv_lib_cExt_drand48 = yes; then
13350 LIBS="$LIBS -lcExt"
13351fi
13352
13353 else
13354 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13355 fi
391a765e 13356 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
13357echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
13358if test "${wx_cv_gccversion+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13360else
13361
391a765e
VS
13362 if test "$cross_compiling" = yes; then
13363 wx_cv_gccversion="EMX2"
13364
13365else
13366 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13367/* confdefs.h. */
13368_ACEOF
13369cat confdefs.h >>conftest.$ac_ext
13370cat >>conftest.$ac_ext <<_ACEOF
13371/* end confdefs.h. */
13372
391a765e 13373 #include <stdio.h>
a848cd7e 13374
391a765e
VS
13375 int main()
13376 {
13377 FILE *f=fopen("conftestval", "w");
13378 if (!f) exit(1);
13379 fprintf(f,
a848cd7e 13380 #if (__GNUC__ < 3)
391a765e
VS
13381 "EMX2"
13382 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13383 "EMX3"
13384 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13385 "Innotek5"
13386 #else
13387 "Innotek6"
a848cd7e 13388 #endif
391a765e
VS
13389 );
13390 exit(0);
13391 }
a848cd7e 13392
a848cd7e 13393_ACEOF
391a765e
VS
13394rm -f conftest$ac_exeext
13395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396 (eval $ac_link) 2>&5
ac1cb8d3
VS
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
391a765e 13405 wx_cv_gccversion=`cat conftestval`
a848cd7e 13406else
391a765e
VS
13407 echo "$as_me: program exited with status $ac_status" >&5
13408echo "$as_me: failed program was:" >&5
a848cd7e
SC
13409sed 's/^/| /' conftest.$ac_ext >&5
13410
391a765e
VS
13411( exit $ac_status )
13412wx_cv_gccversion="EMX2"
a848cd7e 13413fi
391a765e 13414rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13415fi
a848cd7e
SC
13416
13417fi
13418echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13419echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13420 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13421 LIBS="$LIBS -lstdcpp"
13422 LDFLAGS="$LDFLAGS -Zsysv-signals"
13423 else
391a765e 13424 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13425 LIBS="$LIBS -lstdcxx"
13426 LDFLAGS="$LDFLAGS -Zsysv-signals"
13427 else
13428 LIBS="$LIBS -lstdc++"
13429 fi
13430 fi
94acd38e
DE
13431 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13432 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13433echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13434 wxUSE_OMF=yes
2da0c077 13435 enable_omf=yes
94acd38e 13436 fi
a848cd7e 13437 if test "$wxUSE_OMF" = "yes"; then
2da0c077 13438 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK -Zlinker /PMTYPE:PM"
a848cd7e
SC
13439 fi
13440 ;;
13441 *)
13442
13443
13444
13445 ac_ext=cc
13446ac_cpp='$CXXCPP $CPPFLAGS'
13447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13450
13451
95986553 13452 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13453echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13454if test "${ac_cv_string_strcasecmp+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457
13458 cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464
13465 #include <string.h>
13466
13467int
13468main ()
13469{
13470
13471 strcasecmp("foo", "bar");
13472
13473 ;
13474 return 0;
13475}
13476_ACEOF
13477rm -f conftest.$ac_objext conftest$ac_exeext
13478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13479 (eval $ac_link) 2>conftest.er1
a848cd7e 13480 ac_status=$?
ac1cb8d3
VS
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
a848cd7e
SC
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
07158944 13486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_string_strcasecmp=yes
13499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
13503ac_cv_string_strcasecmp=no
13504
13505fi
ac1cb8d3
VS
13506rm -f conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13508
13509fi
13510echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13511echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13512
13513 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13514 cat >>confdefs.h <<\_ACEOF
13515#define HAVE_STRCASECMP_IN_STRING_H 1
13516_ACEOF
13517
13518 else
13519 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13520echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13521if test "${ac_cv_strings_strcasecmp+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523else
13524
13525 cat >conftest.$ac_ext <<_ACEOF
13526/* confdefs.h. */
13527_ACEOF
13528cat confdefs.h >>conftest.$ac_ext
13529cat >>conftest.$ac_ext <<_ACEOF
13530/* end confdefs.h. */
13531
13532 #include <strings.h>
13533
13534int
13535main ()
13536{
13537
13538 strcasecmp("foo", "bar");
13539
13540 ;
13541 return 0;
13542}
13543_ACEOF
13544rm -f conftest.$ac_objext conftest$ac_exeext
13545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13546 (eval $ac_link) 2>conftest.er1
a848cd7e 13547 ac_status=$?
ac1cb8d3
VS
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
a848cd7e
SC
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
07158944 13553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; } &&
13559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13565 ac_cv_strings_strcasecmp=yes
13566else
13567 echo "$as_me: failed program was:" >&5
13568sed 's/^/| /' conftest.$ac_ext >&5
13569
13570ac_cv_strings_strcasecmp=no
13571
13572fi
ac1cb8d3
VS
13573rm -f conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13575
13576fi
13577echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13578echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13579
0c3c69fc 13580 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13581 cat >>confdefs.h <<\_ACEOF
13582#define HAVE_STRCASECMP_IN_STRINGS_H 1
13583_ACEOF
13584
13585 else
13586 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13587echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13588 { (exit 1); exit 1; }; }
13589 fi
13590 fi
13591
13592 ac_ext=c
13593ac_cpp='$CPP $CPPFLAGS'
13594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13596ac_compiler_gnu=$ac_cv_c_compiler_gnu
13597
13598 ;;
13599esac
13600
13601
13602echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13603echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13604if test "${ac_cv_header_stdc+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606else
13607 cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613#include <stdlib.h>
13614#include <stdarg.h>
13615#include <string.h>
13616#include <float.h>
13617
13618int
13619main ()
13620{
13621
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626rm -f conftest.$ac_objext
13627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13628 (eval $ac_compile) 2>conftest.er1
a848cd7e 13629 ac_status=$?
ac1cb8d3
VS
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
a848cd7e
SC
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
07158944 13635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_header_stdc=yes
13648else
13649 echo "$as_me: failed program was:" >&5
13650sed 's/^/| /' conftest.$ac_ext >&5
13651
13652ac_cv_header_stdc=no
13653fi
ac1cb8d3 13654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13655
13656if test $ac_cv_header_stdc = yes; then
13657 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13658 cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
13664#include <string.h>
13665
13666_ACEOF
13667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13668 $EGREP "memchr" >/dev/null 2>&1; then
13669 :
13670else
13671 ac_cv_header_stdc=no
13672fi
13673rm -f conftest*
13674
13675fi
13676
13677if test $ac_cv_header_stdc = yes; then
13678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13679 cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685#include <stdlib.h>
13686
13687_ACEOF
13688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "free" >/dev/null 2>&1; then
13690 :
13691else
13692 ac_cv_header_stdc=no
13693fi
13694rm -f conftest*
13695
13696fi
13697
13698if test $ac_cv_header_stdc = yes; then
13699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13700 if test "$cross_compiling" = yes; then
13701 :
13702else
13703 cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709#include <ctype.h>
13710#if ((' ' & 0x0FF) == 0x020)
13711# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13712# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13713#else
13714# define ISLOWER(c) \
ac1cb8d3
VS
13715 (('a' <= (c) && (c) <= 'i') \
13716 || ('j' <= (c) && (c) <= 'r') \
13717 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13718# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13719#endif
13720
13721#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13722int
13723main ()
13724{
13725 int i;
13726 for (i = 0; i < 256; i++)
13727 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13728 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13729 exit(2);
13730 exit (0);
13731}
13732_ACEOF
13733rm -f conftest$ac_exeext
13734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735 (eval $ac_link) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 :
13745else
13746 echo "$as_me: program exited with status $ac_status" >&5
13747echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
13749
13750( exit $ac_status )
13751ac_cv_header_stdc=no
13752fi
ac1cb8d3 13753rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13754fi
13755fi
13756fi
13757echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13758echo "${ECHO_T}$ac_cv_header_stdc" >&6
13759if test $ac_cv_header_stdc = yes; then
13760
13761cat >>confdefs.h <<\_ACEOF
13762#define STDC_HEADERS 1
13763_ACEOF
13764
13765fi
13766
13767# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13778 inttypes.h stdint.h unistd.h
a848cd7e
SC
13779do
13780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13781echo "$as_me:$LINENO: checking for $ac_header" >&5
13782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13783if eval "test \"\${$as_ac_Header+set}\" = set"; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785else
13786 cat >conftest.$ac_ext <<_ACEOF
13787/* confdefs.h. */
13788_ACEOF
13789cat confdefs.h >>conftest.$ac_ext
13790cat >>conftest.$ac_ext <<_ACEOF
13791/* end confdefs.h. */
13792$ac_includes_default
13793
13794#include <$ac_header>
13795_ACEOF
13796rm -f conftest.$ac_objext
13797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13798 (eval $ac_compile) 2>conftest.er1
a848cd7e 13799 ac_status=$?
ac1cb8d3
VS
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
a848cd7e
SC
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
07158944 13805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 eval "$as_ac_Header=yes"
13818else
13819 echo "$as_me: failed program was:" >&5
13820sed 's/^/| /' conftest.$ac_ext >&5
13821
13822eval "$as_ac_Header=no"
13823fi
ac1cb8d3 13824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13825fi
13826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13828if test `eval echo '${'$as_ac_Header'}'` = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13831_ACEOF
13832
13833fi
13834
13835done
13836
13837
13838
13839for ac_header in stdlib.h
13840do
13841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13842if eval "test \"\${$as_ac_Header+set}\" = set"; then
13843 echo "$as_me:$LINENO: checking for $ac_header" >&5
13844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13845if eval "test \"\${$as_ac_Header+set}\" = set"; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13847fi
13848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13850else
13851 # Is the header compilable?
13852echo "$as_me:$LINENO: checking $ac_header usability" >&5
13853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13854cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
13860$ac_includes_default
13861#include <$ac_header>
13862_ACEOF
13863rm -f conftest.$ac_objext
13864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13865 (eval $ac_compile) 2>conftest.er1
a848cd7e 13866 ac_status=$?
ac1cb8d3
VS
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
a848cd7e
SC
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
07158944 13872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_header_compiler=yes
13885else
13886 echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889ac_header_compiler=no
13890fi
ac1cb8d3 13891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13893echo "${ECHO_T}$ac_header_compiler" >&6
13894
13895# Is the header present?
13896echo "$as_me:$LINENO: checking $ac_header presence" >&5
13897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13898cat >conftest.$ac_ext <<_ACEOF
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h. */
13904#include <$ac_header>
13905_ACEOF
13906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } >/dev/null; then
13914 if test -s conftest.err; then
13915 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13917 else
13918 ac_cpp_err=
13919 fi
13920else
13921 ac_cpp_err=yes
13922fi
13923if test -z "$ac_cpp_err"; then
13924 ac_header_preproc=yes
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 ac_header_preproc=no
13930fi
13931rm -f conftest.err conftest.$ac_ext
13932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13933echo "${ECHO_T}$ac_header_preproc" >&6
13934
13935# So? What about this header?
ac1cb8d3
VS
13936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13937 yes:no: )
a848cd7e
SC
13938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13942 ac_header_preproc=yes
a848cd7e 13943 ;;
ac1cb8d3 13944 no:yes:* )
a848cd7e
SC
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13948echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13952echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13957 (
13958 cat <<\_ASBOX
ac1cb8d3
VS
13959## ----------------------------------------- ##
13960## Report this to wx-dev@lists.wxwidgets.org ##
13961## ----------------------------------------- ##
a848cd7e
SC
13962_ASBOX
13963 ) |
13964 sed "s/^/$as_me: WARNING: /" >&2
13965 ;;
13966esac
13967echo "$as_me:$LINENO: checking for $ac_header" >&5
13968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13969if eval "test \"\${$as_ac_Header+set}\" = set"; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
ac1cb8d3 13972 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13973fi
13974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13976
13977fi
13978if test `eval echo '${'$as_ac_Header'}'` = yes; then
13979 cat >>confdefs.h <<_ACEOF
13980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13981_ACEOF
13982
13983fi
13984
13985done
13986
13987
13988for ac_header in malloc.h
13989do
13990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13991if eval "test \"\${$as_ac_Header+set}\" = set"; then
13992 echo "$as_me:$LINENO: checking for $ac_header" >&5
13993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13994if eval "test \"\${$as_ac_Header+set}\" = set"; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996fi
13997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13998echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13999else
14000 # Is the header compilable?
14001echo "$as_me:$LINENO: checking $ac_header usability" >&5
14002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14003cat >conftest.$ac_ext <<_ACEOF
14004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h. */
14009$ac_includes_default
14010#include <$ac_header>
14011_ACEOF
14012rm -f conftest.$ac_objext
14013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14014 (eval $ac_compile) 2>conftest.er1
a848cd7e 14015 ac_status=$?
ac1cb8d3
VS
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
a848cd7e
SC
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
07158944 14021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_header_compiler=yes
14034else
14035 echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038ac_header_compiler=no
14039fi
ac1cb8d3 14040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14042echo "${ECHO_T}$ac_header_compiler" >&6
14043
14044# Is the header present?
14045echo "$as_me:$LINENO: checking $ac_header presence" >&5
14046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14047cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h. */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h. */
14053#include <$ac_header>
14054_ACEOF
14055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } >/dev/null; then
14063 if test -s conftest.err; then
14064 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14066 else
14067 ac_cpp_err=
14068 fi
14069else
14070 ac_cpp_err=yes
14071fi
14072if test -z "$ac_cpp_err"; then
14073 ac_header_preproc=yes
14074else
14075 echo "$as_me: failed program was:" >&5
14076sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_header_preproc=no
14079fi
14080rm -f conftest.err conftest.$ac_ext
14081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082echo "${ECHO_T}$ac_header_preproc" >&6
14083
14084# So? What about this header?
ac1cb8d3
VS
14085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 yes:no: )
a848cd7e
SC
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14091 ac_header_preproc=yes
a848cd7e 14092 ;;
ac1cb8d3 14093 no:yes:* )
a848cd7e
SC
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14106 (
14107 cat <<\_ASBOX
ac1cb8d3
VS
14108## ----------------------------------------- ##
14109## Report this to wx-dev@lists.wxwidgets.org ##
14110## ----------------------------------------- ##
a848cd7e
SC
14111_ASBOX
14112 ) |
14113 sed "s/^/$as_me: WARNING: /" >&2
14114 ;;
14115esac
14116echo "$as_me:$LINENO: checking for $ac_header" >&5
14117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14120else
ac1cb8d3 14121 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14122fi
14123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14125
14126fi
14127if test `eval echo '${'$as_ac_Header'}'` = yes; then
14128 cat >>confdefs.h <<_ACEOF
14129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14130_ACEOF
14131
14132fi
14133
14134done
14135
14136
14137for ac_header in unistd.h
14138do
14139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14140if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141 echo "$as_me:$LINENO: checking for $ac_header" >&5
14142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14143if eval "test \"\${$as_ac_Header+set}\" = set"; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145fi
14146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14148else
14149 # Is the header compilable?
14150echo "$as_me:$LINENO: checking $ac_header usability" >&5
14151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14152cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158$ac_includes_default
14159#include <$ac_header>
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14163 (eval $ac_compile) 2>conftest.er1
a848cd7e 14164 ac_status=$?
ac1cb8d3
VS
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
a848cd7e
SC
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
07158944 14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_header_compiler=yes
14183else
14184 echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187ac_header_compiler=no
14188fi
ac1cb8d3 14189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14191echo "${ECHO_T}$ac_header_compiler" >&6
14192
14193# Is the header present?
14194echo "$as_me:$LINENO: checking $ac_header presence" >&5
14195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14196cat >conftest.$ac_ext <<_ACEOF
14197/* confdefs.h. */
14198_ACEOF
14199cat confdefs.h >>conftest.$ac_ext
14200cat >>conftest.$ac_ext <<_ACEOF
14201/* end confdefs.h. */
14202#include <$ac_header>
14203_ACEOF
14204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } >/dev/null; then
14212 if test -s conftest.err; then
14213 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14215 else
14216 ac_cpp_err=
14217 fi
14218else
14219 ac_cpp_err=yes
14220fi
14221if test -z "$ac_cpp_err"; then
14222 ac_header_preproc=yes
14223else
14224 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 ac_header_preproc=no
14228fi
14229rm -f conftest.err conftest.$ac_ext
14230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14231echo "${ECHO_T}$ac_header_preproc" >&6
14232
14233# So? What about this header?
ac1cb8d3
VS
14234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14235 yes:no: )
a848cd7e
SC
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14240 ac_header_preproc=yes
a848cd7e 14241 ;;
ac1cb8d3 14242 no:yes:* )
a848cd7e
SC
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14255 (
14256 cat <<\_ASBOX
ac1cb8d3
VS
14257## ----------------------------------------- ##
14258## Report this to wx-dev@lists.wxwidgets.org ##
14259## ----------------------------------------- ##
a848cd7e
SC
14260_ASBOX
14261 ) |
14262 sed "s/^/$as_me: WARNING: /" >&2
14263 ;;
14264esac
14265echo "$as_me:$LINENO: checking for $ac_header" >&5
14266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14267if eval "test \"\${$as_ac_Header+set}\" = set"; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269else
ac1cb8d3 14270 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14271fi
14272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14274
14275fi
14276if test `eval echo '${'$as_ac_Header'}'` = yes; then
14277 cat >>confdefs.h <<_ACEOF
14278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14279_ACEOF
14280
14281fi
14282
14283done
14284
14285
14286for ac_header in wchar.h
14287do
14288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14289if eval "test \"\${$as_ac_Header+set}\" = set"; then
14290 echo "$as_me:$LINENO: checking for $ac_header" >&5
14291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14292if eval "test \"\${$as_ac_Header+set}\" = set"; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294fi
14295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14297else
14298 # Is the header compilable?
14299echo "$as_me:$LINENO: checking $ac_header usability" >&5
14300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14301cat >conftest.$ac_ext <<_ACEOF
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307$ac_includes_default
14308#include <$ac_header>
14309_ACEOF
14310rm -f conftest.$ac_objext
14311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14312 (eval $ac_compile) 2>conftest.er1
a848cd7e 14313 ac_status=$?
ac1cb8d3
VS
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
a848cd7e
SC
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
07158944 14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_header_compiler=yes
14332else
14333 echo "$as_me: failed program was:" >&5
14334sed 's/^/| /' conftest.$ac_ext >&5
14335
14336ac_header_compiler=no
14337fi
ac1cb8d3 14338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14340echo "${ECHO_T}$ac_header_compiler" >&6
14341
14342# Is the header present?
14343echo "$as_me:$LINENO: checking $ac_header presence" >&5
14344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14345cat >conftest.$ac_ext <<_ACEOF
14346/* confdefs.h. */
14347_ACEOF
14348cat confdefs.h >>conftest.$ac_ext
14349cat >>conftest.$ac_ext <<_ACEOF
14350/* end confdefs.h. */
14351#include <$ac_header>
14352_ACEOF
14353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14355 ac_status=$?
14356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } >/dev/null; then
14361 if test -s conftest.err; then
14362 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14364 else
14365 ac_cpp_err=
14366 fi
14367else
14368 ac_cpp_err=yes
14369fi
14370if test -z "$ac_cpp_err"; then
14371 ac_header_preproc=yes
14372else
14373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 ac_header_preproc=no
14377fi
14378rm -f conftest.err conftest.$ac_ext
14379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14380echo "${ECHO_T}$ac_header_preproc" >&6
14381
14382# So? What about this header?
ac1cb8d3
VS
14383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14384 yes:no: )
a848cd7e
SC
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14389 ac_header_preproc=yes
a848cd7e 14390 ;;
ac1cb8d3 14391 no:yes:* )
a848cd7e
SC
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14404 (
14405 cat <<\_ASBOX
ac1cb8d3
VS
14406## ----------------------------------------- ##
14407## Report this to wx-dev@lists.wxwidgets.org ##
14408## ----------------------------------------- ##
a848cd7e
SC
14409_ASBOX
14410 ) |
14411 sed "s/^/$as_me: WARNING: /" >&2
14412 ;;
14413esac
14414echo "$as_me:$LINENO: checking for $ac_header" >&5
14415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14416if eval "test \"\${$as_ac_Header+set}\" = set"; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
ac1cb8d3 14419 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14420fi
14421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14423
14424fi
14425if test `eval echo '${'$as_ac_Header'}'` = yes; then
14426 cat >>confdefs.h <<_ACEOF
14427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428_ACEOF
14429
14430fi
14431
14432done
14433
14434
14435if test "$ac_cv_header_wchar_h" != "yes"; then
14436
14437for ac_header in wcstr.h
14438do
14439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14440if eval "test \"\${$as_ac_Header+set}\" = set"; then
14441 echo "$as_me:$LINENO: checking for $ac_header" >&5
14442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14443if eval "test \"\${$as_ac_Header+set}\" = set"; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445fi
14446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14448else
14449 # Is the header compilable?
14450echo "$as_me:$LINENO: checking $ac_header usability" >&5
14451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14452cat >conftest.$ac_ext <<_ACEOF
14453/* confdefs.h. */
14454_ACEOF
14455cat confdefs.h >>conftest.$ac_ext
14456cat >>conftest.$ac_ext <<_ACEOF
14457/* end confdefs.h. */
14458$ac_includes_default
14459#include <$ac_header>
14460_ACEOF
14461rm -f conftest.$ac_objext
14462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14463 (eval $ac_compile) 2>conftest.er1
a848cd7e 14464 ac_status=$?
ac1cb8d3
VS
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -f conftest.er1
14467 cat conftest.err >&5
a848cd7e
SC
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
07158944 14470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_header_compiler=yes
14483else
14484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487ac_header_compiler=no
14488fi
ac1cb8d3 14489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14490echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14491echo "${ECHO_T}$ac_header_compiler" >&6
14492
14493# Is the header present?
14494echo "$as_me:$LINENO: checking $ac_header presence" >&5
14495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14496cat >conftest.$ac_ext <<_ACEOF
14497/* confdefs.h. */
14498_ACEOF
14499cat confdefs.h >>conftest.$ac_ext
14500cat >>conftest.$ac_ext <<_ACEOF
14501/* end confdefs.h. */
14502#include <$ac_header>
14503_ACEOF
14504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } >/dev/null; then
14512 if test -s conftest.err; then
14513 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14515 else
14516 ac_cpp_err=
14517 fi
14518else
14519 ac_cpp_err=yes
14520fi
14521if test -z "$ac_cpp_err"; then
14522 ac_header_preproc=yes
14523else
14524 echo "$as_me: failed program was:" >&5
14525sed 's/^/| /' conftest.$ac_ext >&5
14526
14527 ac_header_preproc=no
14528fi
14529rm -f conftest.err conftest.$ac_ext
14530echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14531echo "${ECHO_T}$ac_header_preproc" >&6
14532
14533# So? What about this header?
ac1cb8d3
VS
14534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14535 yes:no: )
a848cd7e
SC
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14540 ac_header_preproc=yes
a848cd7e 14541 ;;
ac1cb8d3 14542 no:yes:* )
a848cd7e
SC
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14555 (
14556 cat <<\_ASBOX
ac1cb8d3
VS
14557## ----------------------------------------- ##
14558## Report this to wx-dev@lists.wxwidgets.org ##
14559## ----------------------------------------- ##
a848cd7e
SC
14560_ASBOX
14561 ) |
14562 sed "s/^/$as_me: WARNING: /" >&2
14563 ;;
14564esac
14565echo "$as_me:$LINENO: checking for $ac_header" >&5
14566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14567if eval "test \"\${$as_ac_Header+set}\" = set"; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
ac1cb8d3 14570 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14571fi
14572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14574
14575fi
14576if test `eval echo '${'$as_ac_Header'}'` = yes; then
14577 cat >>confdefs.h <<_ACEOF
14578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14579_ACEOF
14580
14581fi
14582
14583done
14584
14585fi
14586
14587
14588for ac_header in fnmatch.h
14589do
14590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591if eval "test \"\${$as_ac_Header+set}\" = set"; then
14592 echo "$as_me:$LINENO: checking for $ac_header" >&5
14593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14594if eval "test \"\${$as_ac_Header+set}\" = set"; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596fi
14597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14599else
14600 # Is the header compilable?
14601echo "$as_me:$LINENO: checking $ac_header usability" >&5
14602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14603cat >conftest.$ac_ext <<_ACEOF
14604/* confdefs.h. */
14605_ACEOF
14606cat confdefs.h >>conftest.$ac_ext
14607cat >>conftest.$ac_ext <<_ACEOF
14608/* end confdefs.h. */
14609$ac_includes_default
14610#include <$ac_header>
14611_ACEOF
14612rm -f conftest.$ac_objext
14613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14614 (eval $ac_compile) 2>conftest.er1
a848cd7e 14615 ac_status=$?
ac1cb8d3
VS
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
a848cd7e
SC
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
07158944 14621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_header_compiler=yes
14634else
14635 echo "$as_me: failed program was:" >&5
14636sed 's/^/| /' conftest.$ac_ext >&5
14637
14638ac_header_compiler=no
14639fi
ac1cb8d3 14640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14642echo "${ECHO_T}$ac_header_compiler" >&6
14643
14644# Is the header present?
14645echo "$as_me:$LINENO: checking $ac_header presence" >&5
14646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14647cat >conftest.$ac_ext <<_ACEOF
14648/* confdefs.h. */
14649_ACEOF
14650cat confdefs.h >>conftest.$ac_ext
14651cat >>conftest.$ac_ext <<_ACEOF
14652/* end confdefs.h. */
14653#include <$ac_header>
14654_ACEOF
14655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } >/dev/null; then
14663 if test -s conftest.err; then
14664 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14666 else
14667 ac_cpp_err=
14668 fi
14669else
14670 ac_cpp_err=yes
14671fi
14672if test -z "$ac_cpp_err"; then
14673 ac_header_preproc=yes
14674else
14675 echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
14678 ac_header_preproc=no
14679fi
14680rm -f conftest.err conftest.$ac_ext
14681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14682echo "${ECHO_T}$ac_header_preproc" >&6
14683
14684# So? What about this header?
ac1cb8d3
VS
14685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14686 yes:no: )
a848cd7e
SC
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14691 ac_header_preproc=yes
a848cd7e 14692 ;;
ac1cb8d3 14693 no:yes:* )
a848cd7e
SC
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14701echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14706 (
14707 cat <<\_ASBOX
ac1cb8d3
VS
14708## ----------------------------------------- ##
14709## Report this to wx-dev@lists.wxwidgets.org ##
14710## ----------------------------------------- ##
a848cd7e
SC
14711_ASBOX
14712 ) |
14713 sed "s/^/$as_me: WARNING: /" >&2
14714 ;;
14715esac
14716echo "$as_me:$LINENO: checking for $ac_header" >&5
14717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14718if eval "test \"\${$as_ac_Header+set}\" = set"; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
ac1cb8d3 14721 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14722fi
14723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14725
14726fi
14727if test `eval echo '${'$as_ac_Header'}'` = yes; then
14728 cat >>confdefs.h <<_ACEOF
14729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14730_ACEOF
14731
14732fi
14733
14734done
14735
14736
14737if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14738
14739for ac_func in fnmatch
14740do
14741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14742echo "$as_me:$LINENO: checking for $ac_func" >&5
14743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14744if eval "test \"\${$as_ac_var+set}\" = set"; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746else
14747 cat >conftest.$ac_ext <<_ACEOF
14748/* confdefs.h. */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
ac1cb8d3
VS
14753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14755#define $ac_func innocuous_$ac_func
14756
a848cd7e
SC
14757/* System header to define __stub macros and hopefully few prototypes,
14758 which can conflict with char $ac_func (); below.
14759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14760 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14761
a848cd7e
SC
14762#ifdef __STDC__
14763# include <limits.h>
14764#else
14765# include <assert.h>
14766#endif
ac1cb8d3
VS
14767
14768#undef $ac_func
14769
a848cd7e
SC
14770/* Override any gcc2 internal prototype to avoid an error. */
14771#ifdef __cplusplus
14772extern "C"
14773{
14774#endif
14775/* We use char because int might match the return type of a gcc2
14776 builtin and then its argument prototype would still apply. */
14777char $ac_func ();
14778/* The GNU C library defines this for functions which it implements
14779 to always fail with ENOSYS. Some functions are actually named
14780 something starting with __ and the normal name is an alias. */
14781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14782choke me
14783#else
14784char (*f) () = $ac_func;
14785#endif
14786#ifdef __cplusplus
14787}
14788#endif
14789
14790int
14791main ()
14792{
14793return f != $ac_func;
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798rm -f conftest.$ac_objext conftest$ac_exeext
14799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14800 (eval $ac_link) 2>conftest.er1
a848cd7e 14801 ac_status=$?
ac1cb8d3
VS
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
a848cd7e
SC
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
07158944 14807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 eval "$as_ac_var=yes"
14820else
14821 echo "$as_me: failed program was:" >&5
14822sed 's/^/| /' conftest.$ac_ext >&5
14823
14824eval "$as_ac_var=no"
14825fi
ac1cb8d3
VS
14826rm -f conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14828fi
14829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14830echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14831if test `eval echo '${'$as_ac_var'}'` = yes; then
14832 cat >>confdefs.h <<_ACEOF
14833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14834_ACEOF
14835
14836fi
14837done
14838
14839fi
14840
14841
14842for ac_header in langinfo.h
14843do
14844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14845if eval "test \"\${$as_ac_Header+set}\" = set"; then
14846 echo "$as_me:$LINENO: checking for $ac_header" >&5
14847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14848if eval "test \"\${$as_ac_Header+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850fi
14851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14853else
14854 # Is the header compilable?
14855echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14857cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863$ac_includes_default
14864#include <$ac_header>
14865_ACEOF
14866rm -f conftest.$ac_objext
14867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14868 (eval $ac_compile) 2>conftest.er1
a848cd7e 14869 ac_status=$?
ac1cb8d3
VS
14870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
a848cd7e
SC
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
07158944 14875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_header_compiler=yes
14888else
14889 echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892ac_header_compiler=no
14893fi
ac1cb8d3 14894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14895echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14896echo "${ECHO_T}$ac_header_compiler" >&6
14897
14898# Is the header present?
14899echo "$as_me:$LINENO: checking $ac_header presence" >&5
14900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14901cat >conftest.$ac_ext <<_ACEOF
14902/* confdefs.h. */
14903_ACEOF
14904cat confdefs.h >>conftest.$ac_ext
14905cat >>conftest.$ac_ext <<_ACEOF
14906/* end confdefs.h. */
14907#include <$ac_header>
14908_ACEOF
14909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } >/dev/null; then
14917 if test -s conftest.err; then
14918 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14920 else
14921 ac_cpp_err=
14922 fi
14923else
14924 ac_cpp_err=yes
14925fi
14926if test -z "$ac_cpp_err"; then
14927 ac_header_preproc=yes
14928else
14929 echo "$as_me: failed program was:" >&5
14930sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_header_preproc=no
14933fi
14934rm -f conftest.err conftest.$ac_ext
14935echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14936echo "${ECHO_T}$ac_header_preproc" >&6
14937
14938# So? What about this header?
ac1cb8d3
VS
14939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14940 yes:no: )
a848cd7e
SC
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14942echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14944echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14945 ac_header_preproc=yes
a848cd7e 14946 ;;
ac1cb8d3 14947 no:yes:* )
a848cd7e
SC
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14949echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14951echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14953echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14955echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14957echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14959echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14960 (
14961 cat <<\_ASBOX
ac1cb8d3
VS
14962## ----------------------------------------- ##
14963## Report this to wx-dev@lists.wxwidgets.org ##
14964## ----------------------------------------- ##
a848cd7e
SC
14965_ASBOX
14966 ) |
14967 sed "s/^/$as_me: WARNING: /" >&2
14968 ;;
14969esac
14970echo "$as_me:$LINENO: checking for $ac_header" >&5
14971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14972if eval "test \"\${$as_ac_Header+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974else
ac1cb8d3 14975 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14976fi
14977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14979
14980fi
14981if test `eval echo '${'$as_ac_Header'}'` = yes; then
14982 cat >>confdefs.h <<_ACEOF
14983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14984_ACEOF
14985
14986fi
14987
14988done
14989
14990
14991case "${host}" in
14992 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14993 if test $ac_cv_header_langinfo_h = "yes" \
14994 -a \( "$wx_cv_gccversion" = "EMX2" \
14995 -o "$wx_cv_gccversion" = "EMX3" \
14996 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14997 LIBS="$LIBS -lintl"
14998 fi
14999 ;;
15000esac
15001
15002if test "$wxUSE_GUI" = "yes"; then
15003 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15004
15005for ac_header in X11/Xlib.h
15006do
15007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15008if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009 echo "$as_me:$LINENO: checking for $ac_header" >&5
15010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15011if eval "test \"\${$as_ac_Header+set}\" = set"; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013fi
15014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15016else
15017 # Is the header compilable?
15018echo "$as_me:$LINENO: checking $ac_header usability" >&5
15019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15020cat >conftest.$ac_ext <<_ACEOF
15021/* confdefs.h. */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h. */
15026$ac_includes_default
15027#include <$ac_header>
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15031 (eval $ac_compile) 2>conftest.er1
a848cd7e 15032 ac_status=$?
ac1cb8d3
VS
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
a848cd7e
SC
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
07158944 15038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_header_compiler=yes
15051else
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055ac_header_compiler=no
15056fi
ac1cb8d3 15057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15059echo "${ECHO_T}$ac_header_compiler" >&6
15060
15061# Is the header present?
15062echo "$as_me:$LINENO: checking $ac_header presence" >&5
15063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15064cat >conftest.$ac_ext <<_ACEOF
15065/* confdefs.h. */
15066_ACEOF
15067cat confdefs.h >>conftest.$ac_ext
15068cat >>conftest.$ac_ext <<_ACEOF
15069/* end confdefs.h. */
15070#include <$ac_header>
15071_ACEOF
15072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } >/dev/null; then
15080 if test -s conftest.err; then
15081 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15083 else
15084 ac_cpp_err=
15085 fi
15086else
15087 ac_cpp_err=yes
15088fi
15089if test -z "$ac_cpp_err"; then
15090 ac_header_preproc=yes
15091else
15092 echo "$as_me: failed program was:" >&5
15093sed 's/^/| /' conftest.$ac_ext >&5
15094
15095 ac_header_preproc=no
15096fi
15097rm -f conftest.err conftest.$ac_ext
15098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15099echo "${ECHO_T}$ac_header_preproc" >&6
15100
15101# So? What about this header?
ac1cb8d3
VS
15102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15103 yes:no: )
a848cd7e
SC
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15108 ac_header_preproc=yes
a848cd7e 15109 ;;
ac1cb8d3 15110 no:yes:* )
a848cd7e
SC
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15118echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15123 (
15124 cat <<\_ASBOX
ac1cb8d3
VS
15125## ----------------------------------------- ##
15126## Report this to wx-dev@lists.wxwidgets.org ##
15127## ----------------------------------------- ##
a848cd7e
SC
15128_ASBOX
15129 ) |
15130 sed "s/^/$as_me: WARNING: /" >&2
15131 ;;
15132esac
15133echo "$as_me:$LINENO: checking for $ac_header" >&5
15134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15135if eval "test \"\${$as_ac_Header+set}\" = set"; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137else
ac1cb8d3 15138 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15139fi
15140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15142
15143fi
15144if test `eval echo '${'$as_ac_Header'}'` = yes; then
15145 cat >>confdefs.h <<_ACEOF
15146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15147_ACEOF
15148
15149fi
15150
15151done
15152
15153
15154for ac_header in X11/XKBlib.h
15155do
15156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15157echo "$as_me:$LINENO: checking for $ac_header" >&5
15158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15159if eval "test \"\${$as_ac_Header+set}\" = set"; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161else
15162 cat >conftest.$ac_ext <<_ACEOF
15163/* confdefs.h. */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h. */
15168
15169 #if HAVE_X11_XLIB_H
15170 #include <X11/Xlib.h>
15171 #endif
15172
15173
15174#include <$ac_header>
15175_ACEOF
15176rm -f conftest.$ac_objext
15177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15178 (eval $ac_compile) 2>conftest.er1
a848cd7e 15179 ac_status=$?
ac1cb8d3
VS
15180 grep -v '^ *+' conftest.er1 >conftest.err
15181 rm -f conftest.er1
15182 cat conftest.err >&5
a848cd7e
SC
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
07158944 15185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 eval "$as_ac_Header=yes"
15198else
15199 echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
15201
15202eval "$as_ac_Header=no"
15203fi
ac1cb8d3 15204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15205fi
15206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15208if test `eval echo '${'$as_ac_Header'}'` = yes; then
15209 cat >>confdefs.h <<_ACEOF
15210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15211_ACEOF
15212
15213fi
15214
15215done
15216
15217 fi
15218fi
15219
15220
15221echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15222echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15223if test "${ac_cv_c_const+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225else
15226 cat >conftest.$ac_ext <<_ACEOF
15227/* confdefs.h. */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
15231/* end confdefs.h. */
15232
15233int
15234main ()
15235{
15236/* FIXME: Include the comments suggested by Paul. */
15237#ifndef __cplusplus
15238 /* Ultrix mips cc rejects this. */
15239 typedef int charset[2];
15240 const charset x;
15241 /* SunOS 4.1.1 cc rejects this. */
15242 char const *const *ccp;
15243 char **p;
15244 /* NEC SVR4.0.2 mips cc rejects this. */
15245 struct point {int x, y;};
15246 static struct point const zero = {0,0};
15247 /* AIX XL C 1.02.0.0 rejects this.
15248 It does not let you subtract one const X* pointer from another in
15249 an arm of an if-expression whose if-part is not a constant
15250 expression */
15251 const char *g = "string";
15252 ccp = &g + (g ? g-g : 0);
15253 /* HPUX 7.0 cc rejects these. */
15254 ++ccp;
15255 p = (char**) ccp;
15256 ccp = (char const *const *) p;
15257 { /* SCO 3.2v4 cc rejects this. */
15258 char *t;
15259 char const *s = 0 ? (char *) 0 : (char const *) 0;
15260
15261 *t++ = 0;
15262 }
15263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15264 int x[] = {25, 17};
15265 const int *foo = &x[0];
15266 ++foo;
15267 }
15268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15269 typedef const int *iptr;
15270 iptr p = 0;
15271 ++p;
15272 }
15273 { /* AIX XL C 1.02.0.0 rejects this saying
15274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15275 struct s { int j; const int *ap[3]; };
15276 struct s *b; b->j = 5;
15277 }
15278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15279 const int foo = 10;
15280 }
15281#endif
15282
15283 ;
15284 return 0;
15285}
15286_ACEOF
15287rm -f conftest.$ac_objext
15288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15289 (eval $ac_compile) 2>conftest.er1
a848cd7e 15290 ac_status=$?
ac1cb8d3
VS
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
a848cd7e
SC
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
07158944 15296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_c_const=yes
15309else
15310 echo "$as_me: failed program was:" >&5
15311sed 's/^/| /' conftest.$ac_ext >&5
15312
15313ac_cv_c_const=no
15314fi
ac1cb8d3 15315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15316fi
15317echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15318echo "${ECHO_T}$ac_cv_c_const" >&6
15319if test $ac_cv_c_const = no; then
15320
15321cat >>confdefs.h <<\_ACEOF
15322#define const
15323_ACEOF
15324
15325fi
15326
15327echo "$as_me:$LINENO: checking for inline" >&5
15328echo $ECHO_N "checking for inline... $ECHO_C" >&6
15329if test "${ac_cv_c_inline+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331else
15332 ac_cv_c_inline=no
15333for ac_kw in inline __inline__ __inline; do
15334 cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340#ifndef __cplusplus
15341typedef int foo_t;
15342static $ac_kw foo_t static_foo () {return 0; }
15343$ac_kw foo_t foo () {return 0; }
15344#endif
15345
15346_ACEOF
15347rm -f conftest.$ac_objext
15348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15349 (eval $ac_compile) 2>conftest.er1
a848cd7e 15350 ac_status=$?
ac1cb8d3
VS
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
a848cd7e
SC
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } &&
07158944 15356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; } &&
15362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368 ac_cv_c_inline=$ac_kw; break
15369else
15370 echo "$as_me: failed program was:" >&5
15371sed 's/^/| /' conftest.$ac_ext >&5
15372
15373fi
ac1cb8d3 15374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15375done
15376
15377fi
15378echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15379echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15380
15381
a848cd7e
SC
15382case $ac_cv_c_inline in
15383 inline | yes) ;;
ac1cb8d3
VS
15384 *)
15385 case $ac_cv_c_inline in
15386 no) ac_val=;;
15387 *) ac_val=$ac_cv_c_inline;;
15388 esac
15389 cat >>confdefs.h <<_ACEOF
15390#ifndef __cplusplus
15391#define inline $ac_val
15392#endif
de59c161 15393_ACEOF
ac1cb8d3 15394 ;;
a848cd7e
SC
15395esac
15396
15397
15398echo "$as_me:$LINENO: checking for char" >&5
15399echo $ECHO_N "checking for char... $ECHO_C" >&6
15400if test "${ac_cv_type_char+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15402else
15403 cat >conftest.$ac_ext <<_ACEOF
15404/* confdefs.h. */
15405_ACEOF
15406cat confdefs.h >>conftest.$ac_ext
15407cat >>conftest.$ac_ext <<_ACEOF
15408/* end confdefs.h. */
15409$ac_includes_default
15410int
15411main ()
15412{
15413if ((char *) 0)
15414 return 0;
15415if (sizeof (char))
15416 return 0;
15417 ;
15418 return 0;
15419}
15420_ACEOF
15421rm -f conftest.$ac_objext
15422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15423 (eval $ac_compile) 2>conftest.er1
a848cd7e 15424 ac_status=$?
ac1cb8d3
VS
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
a848cd7e
SC
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
07158944 15430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 ac_cv_type_char=yes
15443else
15444 echo "$as_me: failed program was:" >&5
15445sed 's/^/| /' conftest.$ac_ext >&5
15446
15447ac_cv_type_char=no
15448fi
ac1cb8d3 15449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15450fi
15451echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15452echo "${ECHO_T}$ac_cv_type_char" >&6
15453
15454echo "$as_me:$LINENO: checking size of char" >&5
15455echo $ECHO_N "checking size of char... $ECHO_C" >&6
15456if test "${ac_cv_sizeof_char+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15458else
15459 if test "$ac_cv_type_char" = yes; then
15460 # The cast to unsigned long works around a bug in the HP C Compiler
15461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15463 # This bug is HP SR number 8606223364.
15464 if test "$cross_compiling" = yes; then
15465 # Depending upon the size, compute the lo and hi bounds.
15466cat >conftest.$ac_ext <<_ACEOF
15467/* confdefs.h. */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h. */
15472$ac_includes_default
15473int
15474main ()
15475{
15476static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15477test_array [0] = 0
15478
15479 ;
15480 return 0;
15481}
15482_ACEOF
15483rm -f conftest.$ac_objext
15484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15485 (eval $ac_compile) 2>conftest.er1
a848cd7e 15486 ac_status=$?
ac1cb8d3
VS
15487 grep -v '^ *+' conftest.er1 >conftest.err
15488 rm -f conftest.er1
15489 cat conftest.err >&5
a848cd7e
SC
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
07158944 15492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_lo=0 ac_mid=0
15505 while :; do
15506 cat >conftest.$ac_ext <<_ACEOF
15507/* confdefs.h. */
15508_ACEOF
15509cat confdefs.h >>conftest.$ac_ext
15510cat >>conftest.$ac_ext <<_ACEOF
15511/* end confdefs.h. */
15512$ac_includes_default
15513int
15514main ()
15515{
15516static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15517test_array [0] = 0
15518
15519 ;
15520 return 0;
15521}
15522_ACEOF
15523rm -f conftest.$ac_objext
15524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15525 (eval $ac_compile) 2>conftest.er1
a848cd7e 15526 ac_status=$?
ac1cb8d3
VS
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
a848cd7e
SC
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
07158944 15532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_hi=$ac_mid; break
15545else
15546 echo "$as_me: failed program was:" >&5
15547sed 's/^/| /' conftest.$ac_ext >&5
15548
15549ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15550 if test $ac_lo -le $ac_mid; then
15551 ac_lo= ac_hi=
15552 break
15553 fi
15554 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15555fi
ac1cb8d3 15556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15557 done
15558else
15559 echo "$as_me: failed program was:" >&5
15560sed 's/^/| /' conftest.$ac_ext >&5
15561
15562cat >conftest.$ac_ext <<_ACEOF
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
15568$ac_includes_default
15569int
15570main ()
15571{
15572static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15573test_array [0] = 0
15574
15575 ;
15576 return 0;
15577}
15578_ACEOF
15579rm -f conftest.$ac_objext
15580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15581 (eval $ac_compile) 2>conftest.er1
a848cd7e 15582 ac_status=$?
ac1cb8d3
VS
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
a848cd7e
SC
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
07158944 15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15600 ac_hi=-1 ac_mid=-1
15601 while :; do
15602 cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608$ac_includes_default
15609int
15610main ()
15611{
15612static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15613test_array [0] = 0
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext
15620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15621 (eval $ac_compile) 2>conftest.er1
a848cd7e 15622 ac_status=$?
ac1cb8d3
VS
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
a848cd7e
SC
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
07158944 15628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15640 ac_lo=$ac_mid; break
15641else
15642 echo "$as_me: failed program was:" >&5
15643sed 's/^/| /' conftest.$ac_ext >&5
15644
15645ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15646 if test $ac_mid -le $ac_hi; then
15647 ac_lo= ac_hi=
15648 break
15649 fi
15650 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15651fi
ac1cb8d3 15652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15653 done
15654else
15655 echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658ac_lo= ac_hi=
15659fi
ac1cb8d3 15660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15661fi
ac1cb8d3 15662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15663# Binary search between lo and hi bounds.
15664while test "x$ac_lo" != "x$ac_hi"; do
15665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15666 cat >conftest.$ac_ext <<_ACEOF
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
15672$ac_includes_default
15673int
15674main ()
15675{
15676static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15677test_array [0] = 0
15678
15679 ;
15680 return 0;
15681}
15682_ACEOF
15683rm -f conftest.$ac_objext
15684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15685 (eval $ac_compile) 2>conftest.er1
a848cd7e 15686 ac_status=$?
ac1cb8d3
VS
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
a848cd7e
SC
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
07158944 15692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 ac_hi=$ac_mid
15705else
15706 echo "$as_me: failed program was:" >&5
15707sed 's/^/| /' conftest.$ac_ext >&5
15708
15709ac_lo=`expr '(' $ac_mid ')' + 1`
15710fi
ac1cb8d3 15711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15712done
15713case $ac_lo in
15714?*) ac_cv_sizeof_char=$ac_lo;;
15715'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15716See \`config.log' for more details." >&5
15717echo "$as_me: error: cannot compute sizeof (char), 77
15718See \`config.log' for more details." >&2;}
15719 { (exit 1); exit 1; }; } ;;
15720esac
15721else
15722 if test "$cross_compiling" = yes; then
07158944
VZ
15723 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15724echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15725 { (exit 1); exit 1; }; }
15726else
15727 cat >conftest.$ac_ext <<_ACEOF
15728/* confdefs.h. */
15729_ACEOF
15730cat confdefs.h >>conftest.$ac_ext
15731cat >>conftest.$ac_ext <<_ACEOF
15732/* end confdefs.h. */
15733$ac_includes_default
15734long longval () { return (long) (sizeof (char)); }
15735unsigned long ulongval () { return (long) (sizeof (char)); }
15736#include <stdio.h>
15737#include <stdlib.h>
15738int
15739main ()
15740{
15741
15742 FILE *f = fopen ("conftest.val", "w");
15743 if (! f)
15744 exit (1);
15745 if (((long) (sizeof (char))) < 0)
15746 {
15747 long i = longval ();
15748 if (i != ((long) (sizeof (char))))
15749 exit (1);
15750 fprintf (f, "%ld\n", i);
15751 }
15752 else
15753 {
15754 unsigned long i = ulongval ();
15755 if (i != ((long) (sizeof (char))))
15756 exit (1);
15757 fprintf (f, "%lu\n", i);
15758 }
15759 exit (ferror (f) || fclose (f) != 0);
15760
15761 ;
15762 return 0;
15763}
15764_ACEOF
15765rm -f conftest$ac_exeext
15766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15767 (eval $ac_link) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_sizeof_char=`cat conftest.val`
15777else
15778 echo "$as_me: program exited with status $ac_status" >&5
15779echo "$as_me: failed program was:" >&5
15780sed 's/^/| /' conftest.$ac_ext >&5
15781
15782( exit $ac_status )
15783{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15784See \`config.log' for more details." >&5
15785echo "$as_me: error: cannot compute sizeof (char), 77
15786See \`config.log' for more details." >&2;}
15787 { (exit 1); exit 1; }; }
15788fi
ac1cb8d3 15789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15790fi
15791fi
15792rm -f conftest.val
15793else
15794 ac_cv_sizeof_char=0
15795fi
15796fi
15797echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15798echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15799cat >>confdefs.h <<_ACEOF
15800#define SIZEOF_CHAR $ac_cv_sizeof_char
15801_ACEOF
15802
15803
15804echo "$as_me:$LINENO: checking for short" >&5
15805echo $ECHO_N "checking for short... $ECHO_C" >&6
15806if test "${ac_cv_type_short+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15808else
15809 cat >conftest.$ac_ext <<_ACEOF
15810/* confdefs.h. */
15811_ACEOF
15812cat confdefs.h >>conftest.$ac_ext
15813cat >>conftest.$ac_ext <<_ACEOF
15814/* end confdefs.h. */
15815$ac_includes_default
15816int
15817main ()
15818{
15819if ((short *) 0)
15820 return 0;
15821if (sizeof (short))
15822 return 0;
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15829 (eval $ac_compile) 2>conftest.er1
a848cd7e 15830 ac_status=$?
ac1cb8d3
VS
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
a848cd7e
SC
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
07158944 15836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_cv_type_short=yes
15849else
15850 echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853ac_cv_type_short=no
15854fi
ac1cb8d3 15855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15856fi
15857echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15858echo "${ECHO_T}$ac_cv_type_short" >&6
15859
15860echo "$as_me:$LINENO: checking size of short" >&5
15861echo $ECHO_N "checking size of short... $ECHO_C" >&6
15862if test "${ac_cv_sizeof_short+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864else
15865 if test "$ac_cv_type_short" = yes; then
15866 # The cast to unsigned long works around a bug in the HP C Compiler
15867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15869 # This bug is HP SR number 8606223364.
15870 if test "$cross_compiling" = yes; then
15871 # Depending upon the size, compute the lo and hi bounds.
15872cat >conftest.$ac_ext <<_ACEOF
15873/* confdefs.h. */
15874_ACEOF
15875cat confdefs.h >>conftest.$ac_ext
15876cat >>conftest.$ac_ext <<_ACEOF
15877/* end confdefs.h. */
15878$ac_includes_default
15879int
15880main ()
15881{
15882static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15883test_array [0] = 0
15884
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889rm -f conftest.$ac_objext
15890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15891 (eval $ac_compile) 2>conftest.er1
a848cd7e 15892 ac_status=$?
ac1cb8d3
VS
15893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
a848cd7e
SC
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
07158944 15898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_lo=0 ac_mid=0
15911 while :; do
15912 cat >conftest.$ac_ext <<_ACEOF
15913/* confdefs.h. */
15914_ACEOF
15915cat confdefs.h >>conftest.$ac_ext
15916cat >>conftest.$ac_ext <<_ACEOF
15917/* end confdefs.h. */
15918$ac_includes_default
15919int
15920main ()
15921{
15922static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15923test_array [0] = 0
15924
15925 ;
15926 return 0;
15927}
15928_ACEOF
15929rm -f conftest.$ac_objext
15930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15931 (eval $ac_compile) 2>conftest.er1
a848cd7e 15932 ac_status=$?
ac1cb8d3
VS
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
a848cd7e
SC
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
07158944 15938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_hi=$ac_mid; break
15951else
15952 echo "$as_me: failed program was:" >&5
15953sed 's/^/| /' conftest.$ac_ext >&5
15954
15955ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15956 if test $ac_lo -le $ac_mid; then
15957 ac_lo= ac_hi=
15958 break
15959 fi
15960 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15961fi
ac1cb8d3 15962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15963 done
15964else
15965 echo "$as_me: failed program was:" >&5
15966sed 's/^/| /' conftest.$ac_ext >&5
15967
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974$ac_includes_default
15975int
15976main ()
15977{
15978static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15979test_array [0] = 0
15980
15981 ;
15982 return 0;
15983}
15984_ACEOF
15985rm -f conftest.$ac_objext
15986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15987 (eval $ac_compile) 2>conftest.er1
a848cd7e 15988 ac_status=$?
ac1cb8d3
VS
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
a848cd7e
SC
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
07158944 15994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 ac_hi=-1 ac_mid=-1
16007 while :; do
16008 cat >conftest.$ac_ext <<_ACEOF
16009/* confdefs.h. */
16010_ACEOF
16011cat confdefs.h >>conftest.$ac_ext
16012cat >>conftest.$ac_ext <<_ACEOF
16013/* end confdefs.h. */
16014$ac_includes_default
16015int
16016main ()
16017{
16018static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16019test_array [0] = 0
16020
16021 ;
16022 return 0;
16023}
16024_ACEOF
16025rm -f conftest.$ac_objext
16026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16027 (eval $ac_compile) 2>conftest.er1
a848cd7e 16028 ac_status=$?
ac1cb8d3
VS
16029 grep -v '^ *+' conftest.er1 >conftest.err
16030 rm -f conftest.er1
16031 cat conftest.err >&5
a848cd7e
SC
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
07158944 16034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; } &&
16040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_lo=$ac_mid; break
16047else
16048 echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
16051ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16052 if test $ac_mid -le $ac_hi; then
16053 ac_lo= ac_hi=
16054 break
16055 fi
16056 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16057fi
ac1cb8d3 16058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16059 done
16060else
16061 echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064ac_lo= ac_hi=
16065fi
ac1cb8d3 16066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16067fi
ac1cb8d3 16068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16069# Binary search between lo and hi bounds.
16070while test "x$ac_lo" != "x$ac_hi"; do
16071 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16072 cat >conftest.$ac_ext <<_ACEOF
16073/* confdefs.h. */
16074_ACEOF
16075cat confdefs.h >>conftest.$ac_ext
16076cat >>conftest.$ac_ext <<_ACEOF
16077/* end confdefs.h. */
16078$ac_includes_default
16079int
16080main ()
16081{
16082static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16083test_array [0] = 0
16084
16085 ;
16086 return 0;
16087}
16088_ACEOF
16089rm -f conftest.$ac_objext
16090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16091 (eval $ac_compile) 2>conftest.er1
a848cd7e 16092 ac_status=$?
ac1cb8d3
VS
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
a848cd7e
SC
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
07158944 16098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_hi=$ac_mid
16111else
16112 echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
16115ac_lo=`expr '(' $ac_mid ')' + 1`
16116fi
ac1cb8d3 16117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16118done
16119case $ac_lo in
16120?*) ac_cv_sizeof_short=$ac_lo;;
16121'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16122See \`config.log' for more details." >&5
16123echo "$as_me: error: cannot compute sizeof (short), 77
16124See \`config.log' for more details." >&2;}
16125 { (exit 1); exit 1; }; } ;;
16126esac
16127else
16128 if test "$cross_compiling" = yes; then
07158944
VZ
16129 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16130echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16131 { (exit 1); exit 1; }; }
16132else
16133 cat >conftest.$ac_ext <<_ACEOF
16134/* confdefs.h. */
16135_ACEOF
16136cat confdefs.h >>conftest.$ac_ext
16137cat >>conftest.$ac_ext <<_ACEOF
16138/* end confdefs.h. */
16139$ac_includes_default
16140long longval () { return (long) (sizeof (short)); }
16141unsigned long ulongval () { return (long) (sizeof (short)); }
16142#include <stdio.h>
16143#include <stdlib.h>
16144int
16145main ()
16146{
16147
16148 FILE *f = fopen ("conftest.val", "w");
16149 if (! f)
16150 exit (1);
16151 if (((long) (sizeof (short))) < 0)
16152 {
16153 long i = longval ();
16154 if (i != ((long) (sizeof (short))))
16155 exit (1);
16156 fprintf (f, "%ld\n", i);
16157 }
16158 else
16159 {
16160 unsigned long i = ulongval ();
16161 if (i != ((long) (sizeof (short))))
16162 exit (1);
16163 fprintf (f, "%lu\n", i);
16164 }
16165 exit (ferror (f) || fclose (f) != 0);
16166
16167 ;
16168 return 0;
16169}
16170_ACEOF
16171rm -f conftest$ac_exeext
16172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16179 ac_status=$?
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16182 ac_cv_sizeof_short=`cat conftest.val`
16183else
16184 echo "$as_me: program exited with status $ac_status" >&5
16185echo "$as_me: failed program was:" >&5
16186sed 's/^/| /' conftest.$ac_ext >&5
16187
16188( exit $ac_status )
16189{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16190See \`config.log' for more details." >&5
16191echo "$as_me: error: cannot compute sizeof (short), 77
16192See \`config.log' for more details." >&2;}
16193 { (exit 1); exit 1; }; }
16194fi
ac1cb8d3 16195rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16196fi
16197fi
16198rm -f conftest.val
16199else
16200 ac_cv_sizeof_short=0
16201fi
16202fi
16203echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16204echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16205cat >>confdefs.h <<_ACEOF
16206#define SIZEOF_SHORT $ac_cv_sizeof_short
16207_ACEOF
16208
16209
16210echo "$as_me:$LINENO: checking for void *" >&5
16211echo $ECHO_N "checking for void *... $ECHO_C" >&6
16212if test "${ac_cv_type_void_p+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214else
16215 cat >conftest.$ac_ext <<_ACEOF
16216/* confdefs.h. */
16217_ACEOF
16218cat confdefs.h >>conftest.$ac_ext
16219cat >>conftest.$ac_ext <<_ACEOF
16220/* end confdefs.h. */
16221$ac_includes_default
16222int
16223main ()
16224{
16225if ((void * *) 0)
16226 return 0;
16227if (sizeof (void *))
16228 return 0;
16229 ;
16230 return 0;
16231}
16232_ACEOF
16233rm -f conftest.$ac_objext
16234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16235 (eval $ac_compile) 2>conftest.er1
a848cd7e 16236 ac_status=$?
ac1cb8d3
VS
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
a848cd7e
SC
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
07158944 16242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254 ac_cv_type_void_p=yes
16255else
16256 echo "$as_me: failed program was:" >&5
16257sed 's/^/| /' conftest.$ac_ext >&5
16258
16259ac_cv_type_void_p=no
16260fi
ac1cb8d3 16261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16262fi
16263echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16264echo "${ECHO_T}$ac_cv_type_void_p" >&6
16265
16266echo "$as_me:$LINENO: checking size of void *" >&5
16267echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16268if test "${ac_cv_sizeof_void_p+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
16271 if test "$ac_cv_type_void_p" = yes; then
16272 # The cast to unsigned long works around a bug in the HP C Compiler
16273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16275 # This bug is HP SR number 8606223364.
16276 if test "$cross_compiling" = yes; then
16277 # Depending upon the size, compute the lo and hi bounds.
16278cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h. */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h. */
16284$ac_includes_default
16285int
16286main ()
16287{
16288static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16289test_array [0] = 0
16290
16291 ;
16292 return 0;
16293}
16294_ACEOF
16295rm -f conftest.$ac_objext
16296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16297 (eval $ac_compile) 2>conftest.er1
a848cd7e 16298 ac_status=$?
ac1cb8d3
VS
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
a848cd7e
SC
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
07158944 16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16316 ac_lo=0 ac_mid=0
16317 while :; do
16318 cat >conftest.$ac_ext <<_ACEOF
16319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h. */
16324$ac_includes_default
16325int
16326main ()
16327{
16328static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16329test_array [0] = 0
16330
16331 ;
16332 return 0;
16333}
16334_ACEOF
16335rm -f conftest.$ac_objext
16336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16337 (eval $ac_compile) 2>conftest.er1
a848cd7e 16338 ac_status=$?
ac1cb8d3
VS
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
a848cd7e
SC
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
07158944 16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_hi=$ac_mid; break
16357else
16358 echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
16360
16361ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16362 if test $ac_lo -le $ac_mid; then
16363 ac_lo= ac_hi=
16364 break
16365 fi
16366 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16367fi
ac1cb8d3 16368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16369 done
16370else
16371 echo "$as_me: failed program was:" >&5
16372sed 's/^/| /' conftest.$ac_ext >&5
16373
16374cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h. */
16380$ac_includes_default
16381int
16382main ()
16383{
16384static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16385test_array [0] = 0
16386
16387 ;
16388 return 0;
16389}
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16393 (eval $ac_compile) 2>conftest.er1
a848cd7e 16394 ac_status=$?
ac1cb8d3
VS
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
a848cd7e
SC
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
07158944 16400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_hi=-1 ac_mid=-1
16413 while :; do
16414 cat >conftest.$ac_ext <<_ACEOF
16415/* confdefs.h. */
16416_ACEOF
16417cat confdefs.h >>conftest.$ac_ext
16418cat >>conftest.$ac_ext <<_ACEOF
16419/* end confdefs.h. */
16420$ac_includes_default
16421int
16422main ()
16423{
16424static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16425test_array [0] = 0
16426
16427 ;
16428 return 0;
16429}
16430_ACEOF
16431rm -f conftest.$ac_objext
16432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16433 (eval $ac_compile) 2>conftest.er1
a848cd7e 16434 ac_status=$?
ac1cb8d3
VS
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
a848cd7e
SC
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
07158944 16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_lo=$ac_mid; break
16453else
16454 echo "$as_me: failed program was:" >&5
16455sed 's/^/| /' conftest.$ac_ext >&5
16456
16457ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16458 if test $ac_mid -le $ac_hi; then
16459 ac_lo= ac_hi=
16460 break
16461 fi
16462 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16463fi
ac1cb8d3 16464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16465 done
16466else
16467 echo "$as_me: failed program was:" >&5
16468sed 's/^/| /' conftest.$ac_ext >&5
16469
16470ac_lo= ac_hi=
16471fi
ac1cb8d3 16472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16473fi
ac1cb8d3 16474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16475# Binary search between lo and hi bounds.
16476while test "x$ac_lo" != "x$ac_hi"; do
16477 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16478 cat >conftest.$ac_ext <<_ACEOF
16479/* confdefs.h. */
16480_ACEOF
16481cat confdefs.h >>conftest.$ac_ext
16482cat >>conftest.$ac_ext <<_ACEOF
16483/* end confdefs.h. */
16484$ac_includes_default
16485int
16486main ()
16487{
16488static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16489test_array [0] = 0
16490
16491 ;
16492 return 0;
16493}
16494_ACEOF
16495rm -f conftest.$ac_objext
16496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16497 (eval $ac_compile) 2>conftest.er1
a848cd7e 16498 ac_status=$?
ac1cb8d3
VS
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
a848cd7e
SC
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
07158944 16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; } &&
16510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 ac_hi=$ac_mid
16517else
16518 echo "$as_me: failed program was:" >&5
16519sed 's/^/| /' conftest.$ac_ext >&5
16520
16521ac_lo=`expr '(' $ac_mid ')' + 1`
16522fi
ac1cb8d3 16523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16524done
16525case $ac_lo in
16526?*) ac_cv_sizeof_void_p=$ac_lo;;
16527'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16528See \`config.log' for more details." >&5
16529echo "$as_me: error: cannot compute sizeof (void *), 77
16530See \`config.log' for more details." >&2;}
16531 { (exit 1); exit 1; }; } ;;
16532esac
16533else
16534 if test "$cross_compiling" = yes; then
07158944
VZ
16535 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16536echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16537 { (exit 1); exit 1; }; }
16538else
16539 cat >conftest.$ac_ext <<_ACEOF
16540/* confdefs.h. */
16541_ACEOF
16542cat confdefs.h >>conftest.$ac_ext
16543cat >>conftest.$ac_ext <<_ACEOF
16544/* end confdefs.h. */
16545$ac_includes_default
16546long longval () { return (long) (sizeof (void *)); }
16547unsigned long ulongval () { return (long) (sizeof (void *)); }
16548#include <stdio.h>
16549#include <stdlib.h>
16550int
16551main ()
16552{
16553
16554 FILE *f = fopen ("conftest.val", "w");
16555 if (! f)
16556 exit (1);
16557 if (((long) (sizeof (void *))) < 0)
16558 {
16559 long i = longval ();
16560 if (i != ((long) (sizeof (void *))))
16561 exit (1);
16562 fprintf (f, "%ld\n", i);
16563 }
16564 else
16565 {
16566 unsigned long i = ulongval ();
16567 if (i != ((long) (sizeof (void *))))
16568 exit (1);
16569 fprintf (f, "%lu\n", i);
16570 }
16571 exit (ferror (f) || fclose (f) != 0);
16572
16573 ;
16574 return 0;
16575}
16576_ACEOF
16577rm -f conftest$ac_exeext
16578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579 (eval $ac_link) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_cv_sizeof_void_p=`cat conftest.val`
16589else
16590 echo "$as_me: program exited with status $ac_status" >&5
16591echo "$as_me: failed program was:" >&5
16592sed 's/^/| /' conftest.$ac_ext >&5
16593
16594( exit $ac_status )
16595{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16596See \`config.log' for more details." >&5
16597echo "$as_me: error: cannot compute sizeof (void *), 77
16598See \`config.log' for more details." >&2;}
16599 { (exit 1); exit 1; }; }
16600fi
ac1cb8d3 16601rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16602fi
16603fi
16604rm -f conftest.val
16605else
16606 ac_cv_sizeof_void_p=0
16607fi
16608fi
16609echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16610echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16611cat >>confdefs.h <<_ACEOF
16612#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16613_ACEOF
16614
16615
16616echo "$as_me:$LINENO: checking for int" >&5
16617echo $ECHO_N "checking for int... $ECHO_C" >&6
16618if test "${ac_cv_type_int+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620else
16621 cat >conftest.$ac_ext <<_ACEOF
16622/* confdefs.h. */
16623_ACEOF
16624cat confdefs.h >>conftest.$ac_ext
16625cat >>conftest.$ac_ext <<_ACEOF
16626/* end confdefs.h. */
16627$ac_includes_default
16628int
16629main ()
16630{
16631if ((int *) 0)
16632 return 0;
16633if (sizeof (int))
16634 return 0;
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext
16640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16641 (eval $ac_compile) 2>conftest.er1
a848cd7e 16642 ac_status=$?
ac1cb8d3
VS
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
a848cd7e
SC
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
07158944 16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_type_int=yes
16661else
16662 echo "$as_me: failed program was:" >&5
16663sed 's/^/| /' conftest.$ac_ext >&5
16664
16665ac_cv_type_int=no
16666fi
ac1cb8d3 16667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16668fi
16669echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16670echo "${ECHO_T}$ac_cv_type_int" >&6
16671
16672echo "$as_me:$LINENO: checking size of int" >&5
16673echo $ECHO_N "checking size of int... $ECHO_C" >&6
16674if test "${ac_cv_sizeof_int+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16676else
16677 if test "$ac_cv_type_int" = yes; then
16678 # The cast to unsigned long works around a bug in the HP C Compiler
16679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16681 # This bug is HP SR number 8606223364.
16682 if test "$cross_compiling" = yes; then
16683 # Depending upon the size, compute the lo and hi bounds.
16684cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h. */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h. */
16690$ac_includes_default
16691int
16692main ()
16693{
16694static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16695test_array [0] = 0
16696
16697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext
16702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16703 (eval $ac_compile) 2>conftest.er1
a848cd7e 16704 ac_status=$?
ac1cb8d3
VS
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
a848cd7e
SC
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
07158944 16710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 ac_lo=0 ac_mid=0
16723 while :; do
16724 cat >conftest.$ac_ext <<_ACEOF
16725/* confdefs.h. */
16726_ACEOF
16727cat confdefs.h >>conftest.$ac_ext
16728cat >>conftest.$ac_ext <<_ACEOF
16729/* end confdefs.h. */
16730$ac_includes_default
16731int
16732main ()
16733{
16734static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16735test_array [0] = 0
16736
16737 ;
16738 return 0;
16739}
16740_ACEOF
16741rm -f conftest.$ac_objext
16742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16743 (eval $ac_compile) 2>conftest.er1
a848cd7e 16744 ac_status=$?
ac1cb8d3
VS
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
a848cd7e
SC
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
07158944 16750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_hi=$ac_mid; break
16763else
16764 echo "$as_me: failed program was:" >&5
16765sed 's/^/| /' conftest.$ac_ext >&5
16766
16767ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16768 if test $ac_lo -le $ac_mid; then
16769 ac_lo= ac_hi=
16770 break
16771 fi
16772 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16773fi
ac1cb8d3 16774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16775 done
16776else
16777 echo "$as_me: failed program was:" >&5
16778sed 's/^/| /' conftest.$ac_ext >&5
16779
16780cat >conftest.$ac_ext <<_ACEOF
16781/* confdefs.h. */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h. */
16786$ac_includes_default
16787int
16788main ()
16789{
16790static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16791test_array [0] = 0
16792
16793 ;
16794 return 0;
16795}
16796_ACEOF
16797rm -f conftest.$ac_objext
16798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16799 (eval $ac_compile) 2>conftest.er1
a848cd7e 16800 ac_status=$?
ac1cb8d3
VS
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
a848cd7e
SC
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
07158944 16806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_hi=-1 ac_mid=-1
16819 while :; do
16820 cat >conftest.$ac_ext <<_ACEOF
16821/* confdefs.h. */
16822_ACEOF
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
16826$ac_includes_default
16827int
16828main ()
16829{
16830static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16831test_array [0] = 0
16832
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16839 (eval $ac_compile) 2>conftest.er1
a848cd7e 16840 ac_status=$?
ac1cb8d3
VS
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
a848cd7e
SC
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
07158944 16846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_lo=$ac_mid; break
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16864 if test $ac_mid -le $ac_hi; then
16865 ac_lo= ac_hi=
16866 break
16867 fi
16868 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16869fi
ac1cb8d3 16870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16871 done
16872else
16873 echo "$as_me: failed program was:" >&5
16874sed 's/^/| /' conftest.$ac_ext >&5
16875
16876ac_lo= ac_hi=
16877fi
ac1cb8d3 16878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16879fi
ac1cb8d3 16880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16881# Binary search between lo and hi bounds.
16882while test "x$ac_lo" != "x$ac_hi"; do
16883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16884 cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890$ac_includes_default
16891int
16892main ()
16893{
16894static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16895test_array [0] = 0
16896
16897 ;
16898 return 0;
16899}
16900_ACEOF
16901rm -f conftest.$ac_objext
16902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16903 (eval $ac_compile) 2>conftest.er1
a848cd7e 16904 ac_status=$?
ac1cb8d3
VS
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
a848cd7e
SC
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
07158944 16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_hi=$ac_mid
16923else
16924 echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
16927ac_lo=`expr '(' $ac_mid ')' + 1`
16928fi
ac1cb8d3 16929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16930done
16931case $ac_lo in
16932?*) ac_cv_sizeof_int=$ac_lo;;
16933'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16934See \`config.log' for more details." >&5
16935echo "$as_me: error: cannot compute sizeof (int), 77
16936See \`config.log' for more details." >&2;}
16937 { (exit 1); exit 1; }; } ;;
16938esac
16939else
16940 if test "$cross_compiling" = yes; then
07158944
VZ
16941 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16942echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16943 { (exit 1); exit 1; }; }
16944else
16945 cat >conftest.$ac_ext <<_ACEOF
16946/* confdefs.h. */
16947_ACEOF
16948cat confdefs.h >>conftest.$ac_ext
16949cat >>conftest.$ac_ext <<_ACEOF
16950/* end confdefs.h. */
16951$ac_includes_default
16952long longval () { return (long) (sizeof (int)); }
16953unsigned long ulongval () { return (long) (sizeof (int)); }
16954#include <stdio.h>
16955#include <stdlib.h>
16956int
16957main ()
16958{
16959
16960 FILE *f = fopen ("conftest.val", "w");
16961 if (! f)
16962 exit (1);
16963 if (((long) (sizeof (int))) < 0)
16964 {
16965 long i = longval ();
16966 if (i != ((long) (sizeof (int))))
16967 exit (1);
16968 fprintf (f, "%ld\n", i);
16969 }
16970 else
16971 {
16972 unsigned long i = ulongval ();
16973 if (i != ((long) (sizeof (int))))
16974 exit (1);
16975 fprintf (f, "%lu\n", i);
16976 }
16977 exit (ferror (f) || fclose (f) != 0);
16978
16979 ;
16980 return 0;
16981}
16982_ACEOF
16983rm -f conftest$ac_exeext
16984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985 (eval $ac_link) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_sizeof_int=`cat conftest.val`
16995else
16996 echo "$as_me: program exited with status $ac_status" >&5
16997echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
17000( exit $ac_status )
17001{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17002See \`config.log' for more details." >&5
17003echo "$as_me: error: cannot compute sizeof (int), 77
17004See \`config.log' for more details." >&2;}
17005 { (exit 1); exit 1; }; }
17006fi
ac1cb8d3 17007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17008fi
17009fi
17010rm -f conftest.val
17011else
17012 ac_cv_sizeof_int=0
17013fi
17014fi
17015echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17016echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17017cat >>confdefs.h <<_ACEOF
17018#define SIZEOF_INT $ac_cv_sizeof_int
17019_ACEOF
17020
17021
17022echo "$as_me:$LINENO: checking for long" >&5
17023echo $ECHO_N "checking for long... $ECHO_C" >&6
17024if test "${ac_cv_type_long+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026else
17027 cat >conftest.$ac_ext <<_ACEOF
17028/* confdefs.h. */
17029_ACEOF
17030cat confdefs.h >>conftest.$ac_ext
17031cat >>conftest.$ac_ext <<_ACEOF
17032/* end confdefs.h. */
17033$ac_includes_default
17034int
17035main ()
17036{
17037if ((long *) 0)
17038 return 0;
17039if (sizeof (long))
17040 return 0;
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext
17046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17047 (eval $ac_compile) 2>conftest.er1
a848cd7e 17048 ac_status=$?
ac1cb8d3
VS
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
a848cd7e
SC
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
07158944 17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_type_long=yes
17067else
17068 echo "$as_me: failed program was:" >&5
17069sed 's/^/| /' conftest.$ac_ext >&5
17070
17071ac_cv_type_long=no
17072fi
ac1cb8d3 17073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17074fi
17075echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17076echo "${ECHO_T}$ac_cv_type_long" >&6
17077
17078echo "$as_me:$LINENO: checking size of long" >&5
17079echo $ECHO_N "checking size of long... $ECHO_C" >&6
17080if test "${ac_cv_sizeof_long+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17082else
17083 if test "$ac_cv_type_long" = yes; then
17084 # The cast to unsigned long works around a bug in the HP C Compiler
17085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17087 # This bug is HP SR number 8606223364.
17088 if test "$cross_compiling" = yes; then
17089 # Depending upon the size, compute the lo and hi bounds.
17090cat >conftest.$ac_ext <<_ACEOF
17091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
17096$ac_includes_default
17097int
17098main ()
17099{
17100static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17101test_array [0] = 0
17102
17103 ;
17104 return 0;
17105}
17106_ACEOF
17107rm -f conftest.$ac_objext
17108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17109 (eval $ac_compile) 2>conftest.er1
a848cd7e 17110 ac_status=$?
ac1cb8d3
VS
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
a848cd7e
SC
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
07158944 17116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_lo=0 ac_mid=0
17129 while :; do
17130 cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136$ac_includes_default
17137int
17138main ()
17139{
17140static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17141test_array [0] = 0
17142
17143 ;
17144 return 0;
17145}
17146_ACEOF
17147rm -f conftest.$ac_objext
17148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17149 (eval $ac_compile) 2>conftest.er1
a848cd7e 17150 ac_status=$?
ac1cb8d3
VS
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
a848cd7e
SC
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
07158944 17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_hi=$ac_mid; break
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17174 if test $ac_lo -le $ac_mid; then
17175 ac_lo= ac_hi=
17176 break
17177 fi
17178 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17179fi
ac1cb8d3 17180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17181 done
17182else
17183 echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
17186cat >conftest.$ac_ext <<_ACEOF
17187/* confdefs.h. */
17188_ACEOF
17189cat confdefs.h >>conftest.$ac_ext
17190cat >>conftest.$ac_ext <<_ACEOF
17191/* end confdefs.h. */
17192$ac_includes_default
17193int
17194main ()
17195{
17196static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17197test_array [0] = 0
17198
17199 ;
17200 return 0;
17201}
17202_ACEOF
17203rm -f conftest.$ac_objext
17204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17205 (eval $ac_compile) 2>conftest.er1
a848cd7e 17206 ac_status=$?
ac1cb8d3
VS
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
a848cd7e
SC
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
07158944 17212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; } &&
17218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_hi=-1 ac_mid=-1
17225 while :; do
17226 cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232$ac_includes_default
17233int
17234main ()
17235{
17236static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17237test_array [0] = 0
17238
17239 ;
17240 return 0;
17241}
17242_ACEOF
17243rm -f conftest.$ac_objext
17244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17245 (eval $ac_compile) 2>conftest.er1
a848cd7e 17246 ac_status=$?
ac1cb8d3
VS
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
a848cd7e
SC
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
07158944 17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_lo=$ac_mid; break
17265else
17266 echo "$as_me: failed program was:" >&5
17267sed 's/^/| /' conftest.$ac_ext >&5
17268
17269ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17270 if test $ac_mid -le $ac_hi; then
17271 ac_lo= ac_hi=
17272 break
17273 fi
17274 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17275fi
ac1cb8d3 17276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17277 done
17278else
17279 echo "$as_me: failed program was:" >&5
17280sed 's/^/| /' conftest.$ac_ext >&5
17281
17282ac_lo= ac_hi=
17283fi
ac1cb8d3 17284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17285fi
ac1cb8d3 17286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17287# Binary search between lo and hi bounds.
17288while test "x$ac_lo" != "x$ac_hi"; do
17289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17290 cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
17296$ac_includes_default
17297int
17298main ()
17299{
17300static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17301test_array [0] = 0
17302
17303 ;
17304 return 0;
17305}
17306_ACEOF
17307rm -f conftest.$ac_objext
17308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17309 (eval $ac_compile) 2>conftest.er1
a848cd7e 17310 ac_status=$?
ac1cb8d3
VS
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
a848cd7e
SC
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
07158944 17316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_hi=$ac_mid
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333ac_lo=`expr '(' $ac_mid ')' + 1`
17334fi
ac1cb8d3 17335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17336done
17337case $ac_lo in
17338?*) ac_cv_sizeof_long=$ac_lo;;
17339'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17340See \`config.log' for more details." >&5
17341echo "$as_me: error: cannot compute sizeof (long), 77
17342See \`config.log' for more details." >&2;}
17343 { (exit 1); exit 1; }; } ;;
17344esac
17345else
17346 if test "$cross_compiling" = yes; then
07158944
VZ
17347 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17348echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17349 { (exit 1); exit 1; }; }
17350else
17351 cat >conftest.$ac_ext <<_ACEOF
17352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
17357$ac_includes_default
17358long longval () { return (long) (sizeof (long)); }
17359unsigned long ulongval () { return (long) (sizeof (long)); }
17360#include <stdio.h>
17361#include <stdlib.h>
17362int
17363main ()
17364{
17365
17366 FILE *f = fopen ("conftest.val", "w");
17367 if (! f)
17368 exit (1);
17369 if (((long) (sizeof (long))) < 0)
17370 {
17371 long i = longval ();
17372 if (i != ((long) (sizeof (long))))
17373 exit (1);
17374 fprintf (f, "%ld\n", i);
17375 }
17376 else
17377 {
17378 unsigned long i = ulongval ();
17379 if (i != ((long) (sizeof (long))))
17380 exit (1);
17381 fprintf (f, "%lu\n", i);
17382 }
17383 exit (ferror (f) || fclose (f) != 0);
17384
17385 ;
17386 return 0;
17387}
17388_ACEOF
17389rm -f conftest$ac_exeext
17390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_cv_sizeof_long=`cat conftest.val`
17401else
17402 echo "$as_me: program exited with status $ac_status" >&5
17403echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
17406( exit $ac_status )
17407{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17408See \`config.log' for more details." >&5
17409echo "$as_me: error: cannot compute sizeof (long), 77
17410See \`config.log' for more details." >&2;}
17411 { (exit 1); exit 1; }; }
17412fi
ac1cb8d3 17413rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17414fi
17415fi
17416rm -f conftest.val
17417else
17418 ac_cv_sizeof_long=0
17419fi
17420fi
17421echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17422echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17423cat >>confdefs.h <<_ACEOF
17424#define SIZEOF_LONG $ac_cv_sizeof_long
17425_ACEOF
17426
17427
17428echo "$as_me:$LINENO: checking for size_t" >&5
17429echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17430if test "${ac_cv_type_size_t+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432else
17433 cat >conftest.$ac_ext <<_ACEOF
17434/* confdefs.h. */
17435_ACEOF
17436cat confdefs.h >>conftest.$ac_ext
17437cat >>conftest.$ac_ext <<_ACEOF
17438/* end confdefs.h. */
17439$ac_includes_default
17440int
17441main ()
17442{
17443if ((size_t *) 0)
17444 return 0;
17445if (sizeof (size_t))
17446 return 0;
17447 ;
17448 return 0;
17449}
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17453 (eval $ac_compile) 2>conftest.er1
a848cd7e 17454 ac_status=$?
ac1cb8d3
VS
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
a848cd7e
SC
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
07158944 17460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_cv_type_size_t=yes
17473else
17474 echo "$as_me: failed program was:" >&5
17475sed 's/^/| /' conftest.$ac_ext >&5
17476
17477ac_cv_type_size_t=no
17478fi
ac1cb8d3 17479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17480fi
17481echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17482echo "${ECHO_T}$ac_cv_type_size_t" >&6
17483
17484echo "$as_me:$LINENO: checking size of size_t" >&5
17485echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17486if test "${ac_cv_sizeof_size_t+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489 if test "$ac_cv_type_size_t" = yes; then
17490 # The cast to unsigned long works around a bug in the HP C Compiler
17491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17493 # This bug is HP SR number 8606223364.
17494 if test "$cross_compiling" = yes; then
17495 # Depending upon the size, compute the lo and hi bounds.
17496cat >conftest.$ac_ext <<_ACEOF
17497/* confdefs.h. */
17498_ACEOF
17499cat confdefs.h >>conftest.$ac_ext
17500cat >>conftest.$ac_ext <<_ACEOF
17501/* end confdefs.h. */
17502$ac_includes_default
17503int
17504main ()
17505{
17506static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17507test_array [0] = 0
17508
17509 ;
17510 return 0;
17511}
17512_ACEOF
17513rm -f conftest.$ac_objext
17514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17515 (eval $ac_compile) 2>conftest.er1
a848cd7e 17516 ac_status=$?
ac1cb8d3
VS
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
a848cd7e
SC
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
07158944 17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_lo=0 ac_mid=0
17535 while :; do
17536 cat >conftest.$ac_ext <<_ACEOF
17537/* confdefs.h. */
17538_ACEOF
17539cat confdefs.h >>conftest.$ac_ext
17540cat >>conftest.$ac_ext <<_ACEOF
17541/* end confdefs.h. */
17542$ac_includes_default
17543int
17544main ()
17545{
17546static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17547test_array [0] = 0
17548
17549 ;
17550 return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext
17554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17555 (eval $ac_compile) 2>conftest.er1
a848cd7e 17556 ac_status=$?
ac1cb8d3
VS
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
a848cd7e
SC
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
07158944 17562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_hi=$ac_mid; break
17575else
17576 echo "$as_me: failed program was:" >&5
17577sed 's/^/| /' conftest.$ac_ext >&5
17578
17579ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17580 if test $ac_lo -le $ac_mid; then
17581 ac_lo= ac_hi=
17582 break
17583 fi
17584 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17585fi
ac1cb8d3 17586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17587 done
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
17592cat >conftest.$ac_ext <<_ACEOF
17593/* confdefs.h. */
17594_ACEOF
17595cat confdefs.h >>conftest.$ac_ext
17596cat >>conftest.$ac_ext <<_ACEOF
17597/* end confdefs.h. */
17598$ac_includes_default
17599int
17600main ()
17601{
17602static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17603test_array [0] = 0
17604
17605 ;
17606 return 0;
17607}
17608_ACEOF
17609rm -f conftest.$ac_objext
17610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17611 (eval $ac_compile) 2>conftest.er1
a848cd7e 17612 ac_status=$?
ac1cb8d3
VS
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
a848cd7e
SC
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
07158944 17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_hi=-1 ac_mid=-1
17631 while :; do
17632 cat >conftest.$ac_ext <<_ACEOF
17633/* confdefs.h. */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
17638$ac_includes_default
17639int
17640main ()
17641{
17642static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17643test_array [0] = 0
17644
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext
17650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17651 (eval $ac_compile) 2>conftest.er1
a848cd7e 17652 ac_status=$?
ac1cb8d3
VS
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
a848cd7e
SC
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
07158944 17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_lo=$ac_mid; break
17671else
17672 echo "$as_me: failed program was:" >&5
17673sed 's/^/| /' conftest.$ac_ext >&5
17674
17675ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17676 if test $ac_mid -le $ac_hi; then
17677 ac_lo= ac_hi=
17678 break
17679 fi
17680 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17681fi
ac1cb8d3 17682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17683 done
17684else
17685 echo "$as_me: failed program was:" >&5
17686sed 's/^/| /' conftest.$ac_ext >&5
17687
17688ac_lo= ac_hi=
17689fi
ac1cb8d3 17690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17691fi
ac1cb8d3 17692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17693# Binary search between lo and hi bounds.
17694while test "x$ac_lo" != "x$ac_hi"; do
17695 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17696 cat >conftest.$ac_ext <<_ACEOF
17697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
17701/* end confdefs.h. */
17702$ac_includes_default
17703int
17704main ()
17705{
17706static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17707test_array [0] = 0
17708
17709 ;
17710 return 0;
17711}
17712_ACEOF
17713rm -f conftest.$ac_objext
17714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17715 (eval $ac_compile) 2>conftest.er1
a848cd7e 17716 ac_status=$?
ac1cb8d3
VS
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
a848cd7e
SC
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
07158944 17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_hi=$ac_mid
17735else
17736 echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
17739ac_lo=`expr '(' $ac_mid ')' + 1`
17740fi
ac1cb8d3 17741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17742done
17743case $ac_lo in
17744?*) ac_cv_sizeof_size_t=$ac_lo;;
17745'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17746See \`config.log' for more details." >&5
17747echo "$as_me: error: cannot compute sizeof (size_t), 77
17748See \`config.log' for more details." >&2;}
17749 { (exit 1); exit 1; }; } ;;
17750esac
17751else
17752 if test "$cross_compiling" = yes; then
07158944
VZ
17753 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17754echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17755 { (exit 1); exit 1; }; }
17756else
17757 cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h. */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h. */
17763$ac_includes_default
17764long longval () { return (long) (sizeof (size_t)); }
17765unsigned long ulongval () { return (long) (sizeof (size_t)); }
17766#include <stdio.h>
17767#include <stdlib.h>
17768int
17769main ()
17770{
17771
17772 FILE *f = fopen ("conftest.val", "w");
17773 if (! f)
17774 exit (1);
17775 if (((long) (sizeof (size_t))) < 0)
17776 {
17777 long i = longval ();
17778 if (i != ((long) (sizeof (size_t))))
17779 exit (1);
17780 fprintf (f, "%ld\n", i);
17781 }
17782 else
17783 {
17784 unsigned long i = ulongval ();
17785 if (i != ((long) (sizeof (size_t))))
17786 exit (1);
17787 fprintf (f, "%lu\n", i);
17788 }
17789 exit (ferror (f) || fclose (f) != 0);
17790
17791 ;
17792 return 0;
17793}
17794_ACEOF
17795rm -f conftest$ac_exeext
17796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_sizeof_size_t=`cat conftest.val`
17807else
17808 echo "$as_me: program exited with status $ac_status" >&5
17809echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812( exit $ac_status )
17813{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17814See \`config.log' for more details." >&5
17815echo "$as_me: error: cannot compute sizeof (size_t), 77
17816See \`config.log' for more details." >&2;}
17817 { (exit 1); exit 1; }; }
17818fi
ac1cb8d3 17819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17820fi
17821fi
17822rm -f conftest.val
17823else
17824 ac_cv_sizeof_size_t=0
17825fi
17826fi
17827echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17828echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17829cat >>confdefs.h <<_ACEOF
17830#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17831_ACEOF
17832
17833
17834
17835case "${host}" in
17836 arm-*-linux* )
17837 echo "$as_me:$LINENO: checking for long long" >&5
17838echo $ECHO_N "checking for long long... $ECHO_C" >&6
17839if test "${ac_cv_type_long_long+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841else
17842 cat >conftest.$ac_ext <<_ACEOF
17843/* confdefs.h. */
17844_ACEOF
17845cat confdefs.h >>conftest.$ac_ext
17846cat >>conftest.$ac_ext <<_ACEOF
17847/* end confdefs.h. */
17848$ac_includes_default
17849int
17850main ()
17851{
17852if ((long long *) 0)
17853 return 0;
17854if (sizeof (long long))
17855 return 0;
17856 ;
17857 return 0;
17858}
17859_ACEOF
17860rm -f conftest.$ac_objext
17861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17862 (eval $ac_compile) 2>conftest.er1
a848cd7e 17863 ac_status=$?
ac1cb8d3
VS
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
a848cd7e
SC
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
07158944 17869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_cv_type_long_long=yes
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886ac_cv_type_long_long=no
17887fi
ac1cb8d3 17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17889fi
17890echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17891echo "${ECHO_T}$ac_cv_type_long_long" >&6
17892
17893echo "$as_me:$LINENO: checking size of long long" >&5
17894echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17895if test "${ac_cv_sizeof_long_long+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897else
17898 if test "$ac_cv_type_long_long" = yes; then
17899 # The cast to unsigned long works around a bug in the HP C Compiler
17900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17902 # This bug is HP SR number 8606223364.
17903 if test "$cross_compiling" = yes; then
17904 # Depending upon the size, compute the lo and hi bounds.
17905cat >conftest.$ac_ext <<_ACEOF
17906/* confdefs.h. */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h. */
17911$ac_includes_default
17912int
17913main ()
17914{
17915static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17916test_array [0] = 0
17917
17918 ;
17919 return 0;
17920}
17921_ACEOF
17922rm -f conftest.$ac_objext
17923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17924 (eval $ac_compile) 2>conftest.er1
a848cd7e 17925 ac_status=$?
ac1cb8d3
VS
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
a848cd7e
SC
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
07158944 17931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } &&
17937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; }; then
17943 ac_lo=0 ac_mid=0
17944 while :; do
17945 cat >conftest.$ac_ext <<_ACEOF
17946/* confdefs.h. */
17947_ACEOF
17948cat confdefs.h >>conftest.$ac_ext
17949cat >>conftest.$ac_ext <<_ACEOF
17950/* end confdefs.h. */
17951$ac_includes_default
17952int
17953main ()
17954{
17955static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17956test_array [0] = 0
17957
17958 ;
17959 return 0;
17960}
17961_ACEOF
17962rm -f conftest.$ac_objext
17963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17964 (eval $ac_compile) 2>conftest.er1
a848cd7e 17965 ac_status=$?
ac1cb8d3
VS
17966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
a848cd7e
SC
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } &&
07158944 17971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17983 ac_hi=$ac_mid; break
17984else
17985 echo "$as_me: failed program was:" >&5
17986sed 's/^/| /' conftest.$ac_ext >&5
17987
17988ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17989 if test $ac_lo -le $ac_mid; then
17990 ac_lo= ac_hi=
17991 break
17992 fi
17993 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17994fi
ac1cb8d3 17995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17996 done
17997else
17998 echo "$as_me: failed program was:" >&5
17999sed 's/^/| /' conftest.$ac_ext >&5
18000
18001cat >conftest.$ac_ext <<_ACEOF
18002/* confdefs.h. */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
18006/* end confdefs.h. */
18007$ac_includes_default
18008int
18009main ()
18010{
18011static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18012test_array [0] = 0
18013
18014 ;
18015 return 0;
18016}
18017_ACEOF
18018rm -f conftest.$ac_objext
18019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18020 (eval $ac_compile) 2>conftest.er1
a848cd7e 18021 ac_status=$?
ac1cb8d3
VS
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
a848cd7e
SC
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
07158944 18027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_hi=-1 ac_mid=-1
18040 while :; do
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047$ac_includes_default
18048int
18049main ()
18050{
18051static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18052test_array [0] = 0
18053
18054 ;
18055 return 0;
18056}
18057_ACEOF
18058rm -f conftest.$ac_objext
18059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18060 (eval $ac_compile) 2>conftest.er1
a848cd7e 18061 ac_status=$?
ac1cb8d3
VS
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
a848cd7e
SC
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
07158944 18067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_lo=$ac_mid; break
18080else
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18085 if test $ac_mid -le $ac_hi; then
18086 ac_lo= ac_hi=
18087 break
18088 fi
18089 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18090fi
ac1cb8d3 18091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18092 done
18093else
18094 echo "$as_me: failed program was:" >&5
18095sed 's/^/| /' conftest.$ac_ext >&5
18096
18097ac_lo= ac_hi=
18098fi
ac1cb8d3 18099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18100fi
ac1cb8d3 18101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18102# Binary search between lo and hi bounds.
18103while test "x$ac_lo" != "x$ac_hi"; do
18104 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18105 cat >conftest.$ac_ext <<_ACEOF
18106/* confdefs.h. */
18107_ACEOF
18108cat confdefs.h >>conftest.$ac_ext
18109cat >>conftest.$ac_ext <<_ACEOF
18110/* end confdefs.h. */
18111$ac_includes_default
18112int
18113main ()
18114{
18115static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18116test_array [0] = 0
18117
18118 ;
18119 return 0;
18120}
18121_ACEOF
18122rm -f conftest.$ac_objext
18123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18124 (eval $ac_compile) 2>conftest.er1
a848cd7e 18125 ac_status=$?
ac1cb8d3
VS
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
a848cd7e
SC
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
07158944 18131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_hi=$ac_mid
18144else
18145 echo "$as_me: failed program was:" >&5
18146sed 's/^/| /' conftest.$ac_ext >&5
18147
18148ac_lo=`expr '(' $ac_mid ')' + 1`
18149fi
ac1cb8d3 18150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18151done
18152case $ac_lo in
18153?*) ac_cv_sizeof_long_long=$ac_lo;;
18154'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18155See \`config.log' for more details." >&5
18156echo "$as_me: error: cannot compute sizeof (long long), 77
18157See \`config.log' for more details." >&2;}
18158 { (exit 1); exit 1; }; } ;;
18159esac
18160else
18161 if test "$cross_compiling" = yes; then
07158944
VZ
18162 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18163echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18164 { (exit 1); exit 1; }; }
18165else
18166 cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
18172$ac_includes_default
18173long longval () { return (long) (sizeof (long long)); }
18174unsigned long ulongval () { return (long) (sizeof (long long)); }
18175#include <stdio.h>
18176#include <stdlib.h>
18177int
18178main ()
18179{
18180
18181 FILE *f = fopen ("conftest.val", "w");
18182 if (! f)
18183 exit (1);
18184 if (((long) (sizeof (long long))) < 0)
18185 {
18186 long i = longval ();
18187 if (i != ((long) (sizeof (long long))))
18188 exit (1);
18189 fprintf (f, "%ld\n", i);
18190 }
18191 else
18192 {
18193 unsigned long i = ulongval ();
18194 if (i != ((long) (sizeof (long long))))
18195 exit (1);
18196 fprintf (f, "%lu\n", i);
18197 }
18198 exit (ferror (f) || fclose (f) != 0);
18199
18200 ;
18201 return 0;
18202}
18203_ACEOF
18204rm -f conftest$ac_exeext
18205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18206 (eval $ac_link) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 ac_cv_sizeof_long_long=`cat conftest.val`
18216else
18217 echo "$as_me: program exited with status $ac_status" >&5
18218echo "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
18221( exit $ac_status )
18222{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18223See \`config.log' for more details." >&5
18224echo "$as_me: error: cannot compute sizeof (long long), 77
18225See \`config.log' for more details." >&2;}
18226 { (exit 1); exit 1; }; }
18227fi
ac1cb8d3 18228rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18229fi
18230fi
18231rm -f conftest.val
18232else
18233 ac_cv_sizeof_long_long=0
18234fi
18235fi
18236echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18237echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18238cat >>confdefs.h <<_ACEOF
18239#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18240_ACEOF
18241
18242
18243 ;;
18244 *-hp-hpux* )
18245 echo "$as_me:$LINENO: checking for long long" >&5
18246echo $ECHO_N "checking for long long... $ECHO_C" >&6
18247if test "${ac_cv_type_long_long+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249else
18250 cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256$ac_includes_default
18257int
18258main ()
18259{
18260if ((long long *) 0)
18261 return 0;
18262if (sizeof (long long))
18263 return 0;
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext
18269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18270 (eval $ac_compile) 2>conftest.er1
a848cd7e 18271 ac_status=$?
ac1cb8d3
VS
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
a848cd7e
SC
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
07158944 18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_type_long_long=yes
18290else
18291 echo "$as_me: failed program was:" >&5
18292sed 's/^/| /' conftest.$ac_ext >&5
18293
18294ac_cv_type_long_long=no
18295fi
ac1cb8d3 18296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18297fi
18298echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18299echo "${ECHO_T}$ac_cv_type_long_long" >&6
18300
18301echo "$as_me:$LINENO: checking size of long long" >&5
18302echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18303if test "${ac_cv_sizeof_long_long+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18305else
18306 if test "$ac_cv_type_long_long" = yes; then
18307 # The cast to unsigned long works around a bug in the HP C Compiler
18308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18310 # This bug is HP SR number 8606223364.
18311 if test "$cross_compiling" = yes; then
18312 # Depending upon the size, compute the lo and hi bounds.
18313cat >conftest.$ac_ext <<_ACEOF
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
18319$ac_includes_default
18320int
18321main ()
18322{
18323static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18324test_array [0] = 0
18325
18326 ;
18327 return 0;
18328}
18329_ACEOF
18330rm -f conftest.$ac_objext
18331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18332 (eval $ac_compile) 2>conftest.er1
a848cd7e 18333 ac_status=$?
ac1cb8d3
VS
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
a848cd7e
SC
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
07158944 18339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 ac_lo=0 ac_mid=0
18352 while :; do
18353 cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
18359$ac_includes_default
18360int
18361main ()
18362{
18363static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18364test_array [0] = 0
18365
18366 ;
18367 return 0;
18368}
18369_ACEOF
18370rm -f conftest.$ac_objext
18371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18372 (eval $ac_compile) 2>conftest.er1
a848cd7e 18373 ac_status=$?
ac1cb8d3
VS
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
a848cd7e
SC
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
07158944 18379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_hi=$ac_mid; break
18392else
18393 echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18397 if test $ac_lo -le $ac_mid; then
18398 ac_lo= ac_hi=
18399 break
18400 fi
18401 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18402fi
ac1cb8d3 18403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18404 done
18405else
18406 echo "$as_me: failed program was:" >&5
18407sed 's/^/| /' conftest.$ac_ext >&5
18408
18409cat >conftest.$ac_ext <<_ACEOF
18410/* confdefs.h. */
18411_ACEOF
18412cat confdefs.h >>conftest.$ac_ext
18413cat >>conftest.$ac_ext <<_ACEOF
18414/* end confdefs.h. */
18415$ac_includes_default
18416int
18417main ()
18418{
18419static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18420test_array [0] = 0
18421
18422 ;
18423 return 0;
18424}
18425_ACEOF
18426rm -f conftest.$ac_objext
18427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18428 (eval $ac_compile) 2>conftest.er1
a848cd7e 18429 ac_status=$?
ac1cb8d3
VS
18430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
a848cd7e
SC
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
07158944 18435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_hi=-1 ac_mid=-1
18448 while :; do
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$ac_includes_default
18456int
18457main ()
18458{
18459static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18460test_array [0] = 0
18461
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18468 (eval $ac_compile) 2>conftest.er1
a848cd7e 18469 ac_status=$?
ac1cb8d3
VS
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
a848cd7e
SC
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
07158944 18475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_lo=$ac_mid; break
18488else
18489 echo "$as_me: failed program was:" >&5
18490sed 's/^/| /' conftest.$ac_ext >&5
18491
18492ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18493 if test $ac_mid -le $ac_hi; then
18494 ac_lo= ac_hi=
18495 break
18496 fi
18497 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18498fi
ac1cb8d3 18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18500 done
18501else
18502 echo "$as_me: failed program was:" >&5
18503sed 's/^/| /' conftest.$ac_ext >&5
18504
18505ac_lo= ac_hi=
18506fi
ac1cb8d3 18507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18508fi
ac1cb8d3 18509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18510# Binary search between lo and hi bounds.
18511while test "x$ac_lo" != "x$ac_hi"; do
18512 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18513 cat >conftest.$ac_ext <<_ACEOF
18514/* confdefs.h. */
18515_ACEOF
18516cat confdefs.h >>conftest.$ac_ext
18517cat >>conftest.$ac_ext <<_ACEOF
18518/* end confdefs.h. */
18519$ac_includes_default
18520int
18521main ()
18522{
18523static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18524test_array [0] = 0
18525
18526 ;
18527 return 0;
18528}
18529_ACEOF
18530rm -f conftest.$ac_objext
18531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18532 (eval $ac_compile) 2>conftest.er1
a848cd7e 18533 ac_status=$?
ac1cb8d3
VS
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
a848cd7e
SC
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
07158944 18539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; } &&
18545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547 (eval $ac_try) 2>&5
18548 ac_status=$?
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; }; then
18551 ac_hi=$ac_mid
18552else
18553 echo "$as_me: failed program was:" >&5
18554sed 's/^/| /' conftest.$ac_ext >&5
18555
18556ac_lo=`expr '(' $ac_mid ')' + 1`
18557fi
ac1cb8d3 18558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18559done
18560case $ac_lo in
18561?*) ac_cv_sizeof_long_long=$ac_lo;;
18562'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18563See \`config.log' for more details." >&5
18564echo "$as_me: error: cannot compute sizeof (long long), 77
18565See \`config.log' for more details." >&2;}
18566 { (exit 1); exit 1; }; } ;;
18567esac
18568else
18569 if test "$cross_compiling" = yes; then
07158944
VZ
18570 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18571echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18572 { (exit 1); exit 1; }; }
18573else
18574 cat >conftest.$ac_ext <<_ACEOF
18575/* confdefs.h. */
18576_ACEOF
18577cat confdefs.h >>conftest.$ac_ext
18578cat >>conftest.$ac_ext <<_ACEOF
18579/* end confdefs.h. */
18580$ac_includes_default
18581long longval () { return (long) (sizeof (long long)); }
18582unsigned long ulongval () { return (long) (sizeof (long long)); }
18583#include <stdio.h>
18584#include <stdlib.h>
18585int
18586main ()
18587{
18588
18589 FILE *f = fopen ("conftest.val", "w");
18590 if (! f)
18591 exit (1);
18592 if (((long) (sizeof (long long))) < 0)
18593 {
18594 long i = longval ();
18595 if (i != ((long) (sizeof (long long))))
18596 exit (1);
18597 fprintf (f, "%ld\n", i);
18598 }
18599 else
18600 {
18601 unsigned long i = ulongval ();
18602 if (i != ((long) (sizeof (long long))))
18603 exit (1);
18604 fprintf (f, "%lu\n", i);
18605 }
18606 exit (ferror (f) || fclose (f) != 0);
18607
18608 ;
18609 return 0;
18610}
18611_ACEOF
18612rm -f conftest$ac_exeext
18613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_long=`cat conftest.val`
18624else
18625 echo "$as_me: program exited with status $ac_status" >&5
18626echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629( exit $ac_status )
18630{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18631See \`config.log' for more details." >&5
18632echo "$as_me: error: cannot compute sizeof (long long), 77
18633See \`config.log' for more details." >&2;}
18634 { (exit 1); exit 1; }; }
18635fi
ac1cb8d3 18636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18637fi
18638fi
18639rm -f conftest.val
18640else
18641 ac_cv_sizeof_long_long=0
18642fi
18643fi
18644echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18645echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18646cat >>confdefs.h <<_ACEOF
18647#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18648_ACEOF
18649
18650
18651 if test "$ac_cv_sizeof_long_long" != "0"; then
18652 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18653 fi
18654 ;;
18655 * )
18656 echo "$as_me:$LINENO: checking for long long" >&5
18657echo $ECHO_N "checking for long long... $ECHO_C" >&6
18658if test "${ac_cv_type_long_long+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
18661 cat >conftest.$ac_ext <<_ACEOF
18662/* confdefs.h. */
18663_ACEOF
18664cat confdefs.h >>conftest.$ac_ext
18665cat >>conftest.$ac_ext <<_ACEOF
18666/* end confdefs.h. */
18667$ac_includes_default
18668int
18669main ()
18670{
18671if ((long long *) 0)
18672 return 0;
18673if (sizeof (long long))
18674 return 0;
18675 ;
18676 return 0;
18677}
18678_ACEOF
18679rm -f conftest.$ac_objext
18680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18681 (eval $ac_compile) 2>conftest.er1
a848cd7e 18682 ac_status=$?
ac1cb8d3
VS
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
a848cd7e
SC
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
07158944 18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_cv_type_long_long=yes
18701else
18702 echo "$as_me: failed program was:" >&5
18703sed 's/^/| /' conftest.$ac_ext >&5
18704
18705ac_cv_type_long_long=no
18706fi
ac1cb8d3 18707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18708fi
18709echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18710echo "${ECHO_T}$ac_cv_type_long_long" >&6
18711
18712echo "$as_me:$LINENO: checking size of long long" >&5
18713echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18714if test "${ac_cv_sizeof_long_long+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717 if test "$ac_cv_type_long_long" = yes; then
18718 # The cast to unsigned long works around a bug in the HP C Compiler
18719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18721 # This bug is HP SR number 8606223364.
18722 if test "$cross_compiling" = yes; then
18723 # Depending upon the size, compute the lo and hi bounds.
18724cat >conftest.$ac_ext <<_ACEOF
18725/* confdefs.h. */
18726_ACEOF
18727cat confdefs.h >>conftest.$ac_ext
18728cat >>conftest.$ac_ext <<_ACEOF
18729/* end confdefs.h. */
18730$ac_includes_default
18731int
18732main ()
18733{
18734static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18735test_array [0] = 0
18736
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext
18742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18743 (eval $ac_compile) 2>conftest.er1
a848cd7e 18744 ac_status=$?
ac1cb8d3
VS
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
a848cd7e
SC
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
07158944 18750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762 ac_lo=0 ac_mid=0
18763 while :; do
18764 cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
18770$ac_includes_default
18771int
18772main ()
18773{
18774static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18775test_array [0] = 0
18776
18777 ;
18778 return 0;
18779}
18780_ACEOF
18781rm -f conftest.$ac_objext
18782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18783 (eval $ac_compile) 2>conftest.er1
a848cd7e 18784 ac_status=$?
ac1cb8d3
VS
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
a848cd7e
SC
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
07158944 18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_hi=$ac_mid; break
18803else
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18808 if test $ac_lo -le $ac_mid; then
18809 ac_lo= ac_hi=
18810 break
18811 fi
18812 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18813fi
ac1cb8d3 18814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18815 done
18816else
18817 echo "$as_me: failed program was:" >&5
18818sed 's/^/| /' conftest.$ac_ext >&5
18819
18820cat >conftest.$ac_ext <<_ACEOF
18821/* confdefs.h. */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h. */
18826$ac_includes_default
18827int
18828main ()
18829{
18830static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18831test_array [0] = 0
18832
18833 ;
18834 return 0;
18835}
18836_ACEOF
18837rm -f conftest.$ac_objext
18838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18839 (eval $ac_compile) 2>conftest.er1
a848cd7e 18840 ac_status=$?
ac1cb8d3
VS
18841 grep -v '^ *+' conftest.er1 >conftest.err
18842 rm -f conftest.er1
18843 cat conftest.err >&5
a848cd7e
SC
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
07158944 18846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_hi=-1 ac_mid=-1
18859 while :; do
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866$ac_includes_default
18867int
18868main ()
18869{
18870static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18871test_array [0] = 0
18872
18873 ;
18874 return 0;
18875}
18876_ACEOF
18877rm -f conftest.$ac_objext
18878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18879 (eval $ac_compile) 2>conftest.er1
a848cd7e 18880 ac_status=$?
ac1cb8d3
VS
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
a848cd7e
SC
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
07158944 18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_lo=$ac_mid; break
18899else
18900 echo "$as_me: failed program was:" >&5
18901sed 's/^/| /' conftest.$ac_ext >&5
18902
18903ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18904 if test $ac_mid -le $ac_hi; then
18905 ac_lo= ac_hi=
18906 break
18907 fi
18908 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18909fi
ac1cb8d3 18910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18911 done
18912else
18913 echo "$as_me: failed program was:" >&5
18914sed 's/^/| /' conftest.$ac_ext >&5
18915
18916ac_lo= ac_hi=
18917fi
ac1cb8d3 18918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18919fi
ac1cb8d3 18920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18921# Binary search between lo and hi bounds.
18922while test "x$ac_lo" != "x$ac_hi"; do
18923 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18924 cat >conftest.$ac_ext <<_ACEOF
18925/* confdefs.h. */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h. */
18930$ac_includes_default
18931int
18932main ()
18933{
18934static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18935test_array [0] = 0
18936
18937 ;
18938 return 0;
18939}
18940_ACEOF
18941rm -f conftest.$ac_objext
18942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18943 (eval $ac_compile) 2>conftest.er1
a848cd7e 18944 ac_status=$?
ac1cb8d3
VS
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
a848cd7e
SC
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
07158944 18950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_hi=$ac_mid
18963else
18964 echo "$as_me: failed program was:" >&5
18965sed 's/^/| /' conftest.$ac_ext >&5
18966
18967ac_lo=`expr '(' $ac_mid ')' + 1`
18968fi
ac1cb8d3 18969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18970done
18971case $ac_lo in
18972?*) ac_cv_sizeof_long_long=$ac_lo;;
18973'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18974See \`config.log' for more details." >&5
18975echo "$as_me: error: cannot compute sizeof (long long), 77
18976See \`config.log' for more details." >&2;}
18977 { (exit 1); exit 1; }; } ;;
18978esac
18979else
18980 if test "$cross_compiling" = yes; then
07158944
VZ
18981 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18982echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18983 { (exit 1); exit 1; }; }
18984else
18985 cat >conftest.$ac_ext <<_ACEOF
18986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991$ac_includes_default
18992long longval () { return (long) (sizeof (long long)); }
18993unsigned long ulongval () { return (long) (sizeof (long long)); }
18994#include <stdio.h>
18995#include <stdlib.h>
18996int
18997main ()
18998{
18999
19000 FILE *f = fopen ("conftest.val", "w");
19001 if (! f)
19002 exit (1);
19003 if (((long) (sizeof (long long))) < 0)
19004 {
19005 long i = longval ();
19006 if (i != ((long) (sizeof (long long))))
19007 exit (1);
19008 fprintf (f, "%ld\n", i);
19009 }
19010 else
19011 {
19012 unsigned long i = ulongval ();
19013 if (i != ((long) (sizeof (long long))))
19014 exit (1);
19015 fprintf (f, "%lu\n", i);
19016 }
19017 exit (ferror (f) || fclose (f) != 0);
19018
19019 ;
19020 return 0;
19021}
19022_ACEOF
19023rm -f conftest$ac_exeext
19024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19025 (eval $ac_link) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_sizeof_long_long=`cat conftest.val`
19035else
19036 echo "$as_me: program exited with status $ac_status" >&5
19037echo "$as_me: failed program was:" >&5
19038sed 's/^/| /' conftest.$ac_ext >&5
19039
19040( exit $ac_status )
19041{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19042See \`config.log' for more details." >&5
19043echo "$as_me: error: cannot compute sizeof (long long), 77
19044See \`config.log' for more details." >&2;}
19045 { (exit 1); exit 1; }; }
19046fi
ac1cb8d3 19047rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19048fi
19049fi
19050rm -f conftest.val
19051else
19052 ac_cv_sizeof_long_long=0
19053fi
19054fi
19055echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19056echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19057cat >>confdefs.h <<_ACEOF
19058#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19059_ACEOF
19060
19061
19062esac
19063
238ecede
MW
19064echo "$as_me:$LINENO: checking for wchar_t" >&5
19065echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19066if test "${ac_cv_type_wchar_t+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069 cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h. */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h. */
19075
19076 /* DJGPP only has fake wchar_t: */
19077 #ifdef __DJGPP__
19078 # error "fake wchar_t"
19079 #endif
19080 #ifdef HAVE_WCHAR_H
19081 # ifdef __CYGWIN__
19082 # include <stddef.h>
19083 # endif
19084 # include <wchar.h>
19085 #endif
19086 #ifdef HAVE_STDLIB_H
19087 # include <stdlib.h>
19088 #endif
19089 #include <stdio.h>
19090
19091
19092
19093int
19094main ()
19095{
19096if ((wchar_t *) 0)
19097 return 0;
19098if (sizeof (wchar_t))
19099 return 0;
19100 ;
19101 return 0;
19102}
19103_ACEOF
19104rm -f conftest.$ac_objext
19105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19106 (eval $ac_compile) 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } &&
07158944 19113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_type_wchar_t=yes
19126else
19127 echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130ac_cv_type_wchar_t=no
19131fi
19132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19133fi
19134echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19135echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19136
a848cd7e
SC
19137echo "$as_me:$LINENO: checking size of wchar_t" >&5
19138echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19139if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141else
238ecede
MW
19142 if test "$ac_cv_type_wchar_t" = yes; then
19143 # The cast to unsigned long works around a bug in the HP C Compiler
19144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19146 # This bug is HP SR number 8606223364.
19147 if test "$cross_compiling" = yes; then
19148 # Depending upon the size, compute the lo and hi bounds.
19149cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h. */
19155
19156 /* DJGPP only has fake wchar_t: */
19157 #ifdef __DJGPP__
19158 # error "fake wchar_t"
19159 #endif
19160 #ifdef HAVE_WCHAR_H
19161 # ifdef __CYGWIN__
19162 # include <stddef.h>
19163 # endif
19164 # include <wchar.h>
19165 #endif
19166 #ifdef HAVE_STDLIB_H
19167 # include <stdlib.h>
19168 #endif
19169 #include <stdio.h>
19170
19171
19172
19173int
19174main ()
19175{
19176static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19177test_array [0] = 0
19178
19179 ;
19180 return 0;
19181}
19182_ACEOF
19183rm -f conftest.$ac_objext
19184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19185 (eval $ac_compile) 2>conftest.er1
19186 ac_status=$?
19187 grep -v '^ *+' conftest.er1 >conftest.err
19188 rm -f conftest.er1
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
07158944 19192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_lo=0 ac_mid=0
19205 while :; do
19206 cat >conftest.$ac_ext <<_ACEOF
19207/* confdefs.h. */
19208_ACEOF
19209cat confdefs.h >>conftest.$ac_ext
19210cat >>conftest.$ac_ext <<_ACEOF
19211/* end confdefs.h. */
19212
19213 /* DJGPP only has fake wchar_t: */
19214 #ifdef __DJGPP__
19215 # error "fake wchar_t"
19216 #endif
19217 #ifdef HAVE_WCHAR_H
19218 # ifdef __CYGWIN__
19219 # include <stddef.h>
19220 # endif
19221 # include <wchar.h>
19222 #endif
19223 #ifdef HAVE_STDLIB_H
19224 # include <stdlib.h>
19225 #endif
19226 #include <stdio.h>
19227
19228
19229
19230int
19231main ()
19232{
19233static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19234test_array [0] = 0
19235
19236 ;
19237 return 0;
19238}
19239_ACEOF
19240rm -f conftest.$ac_objext
19241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19242 (eval $ac_compile) 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
07158944 19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_hi=$ac_mid; break
19262else
19263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
19265
19266ac_lo=`expr $ac_mid + 1`
19267 if test $ac_lo -le $ac_mid; then
19268 ac_lo= ac_hi=
19269 break
19270 fi
19271 ac_mid=`expr 2 '*' $ac_mid + 1`
19272fi
19273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19274 done
19275else
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279cat >conftest.$ac_ext <<_ACEOF
19280/* confdefs.h. */
19281_ACEOF
19282cat confdefs.h >>conftest.$ac_ext
19283cat >>conftest.$ac_ext <<_ACEOF
19284/* end confdefs.h. */
19285
19286 /* DJGPP only has fake wchar_t: */
19287 #ifdef __DJGPP__
19288 # error "fake wchar_t"
19289 #endif
19290 #ifdef HAVE_WCHAR_H
19291 # ifdef __CYGWIN__
19292 # include <stddef.h>
19293 # endif
19294 # include <wchar.h>
19295 #endif
19296 #ifdef HAVE_STDLIB_H
19297 # include <stdlib.h>
19298 #endif
19299 #include <stdio.h>
19300
19301
19302
19303int
19304main ()
19305{
19306static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19307test_array [0] = 0
19308
19309 ;
19310 return 0;
19311}
19312_ACEOF
19313rm -f conftest.$ac_objext
19314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19315 (eval $ac_compile) 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
07158944 19322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; } &&
19328 { ac_try='test -s conftest.$ac_objext'
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_hi=-1 ac_mid=-1
19335 while :; do
19336 cat >conftest.$ac_ext <<_ACEOF
19337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
19342
19343 /* DJGPP only has fake wchar_t: */
19344 #ifdef __DJGPP__
19345 # error "fake wchar_t"
19346 #endif
19347 #ifdef HAVE_WCHAR_H
19348 # ifdef __CYGWIN__
19349 # include <stddef.h>
19350 # endif
19351 # include <wchar.h>
19352 #endif
19353 #ifdef HAVE_STDLIB_H
19354 # include <stdlib.h>
19355 #endif
19356 #include <stdio.h>
19357
19358
19359
19360int
19361main ()
19362{
19363static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19364test_array [0] = 0
19365
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370rm -f conftest.$ac_objext
19371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
07158944 19379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 ac_lo=$ac_mid; break
19392else
19393 echo "$as_me: failed program was:" >&5
19394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396ac_hi=`expr '(' $ac_mid ')' - 1`
19397 if test $ac_mid -le $ac_hi; then
19398 ac_lo= ac_hi=
19399 break
19400 fi
19401 ac_mid=`expr 2 '*' $ac_mid`
19402fi
19403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 done
19405else
19406 echo "$as_me: failed program was:" >&5
19407sed 's/^/| /' conftest.$ac_ext >&5
19408
19409ac_lo= ac_hi=
19410fi
19411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19412fi
19413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19414# Binary search between lo and hi bounds.
19415while test "x$ac_lo" != "x$ac_hi"; do
19416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19417 cat >conftest.$ac_ext <<_ACEOF
19418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
19423
19424 /* DJGPP only has fake wchar_t: */
19425 #ifdef __DJGPP__
19426 # error "fake wchar_t"
19427 #endif
19428 #ifdef HAVE_WCHAR_H
19429 # ifdef __CYGWIN__
19430 # include <stddef.h>
19431 # endif
19432 # include <wchar.h>
19433 #endif
19434 #ifdef HAVE_STDLIB_H
19435 # include <stdlib.h>
19436 #endif
19437 #include <stdio.h>
a848cd7e 19438
a848cd7e 19439
a848cd7e 19440
238ecede
MW
19441int
19442main ()
19443{
19444static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19445test_array [0] = 0
a848cd7e 19446
238ecede
MW
19447 ;
19448 return 0;
19449}
19450_ACEOF
19451rm -f conftest.$ac_objext
19452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19453 (eval $ac_compile) 2>conftest.er1
19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
07158944 19460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest.$ac_objext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_hi=$ac_mid
19473else
19474 echo "$as_me: failed program was:" >&5
19475sed 's/^/| /' conftest.$ac_ext >&5
19476
19477ac_lo=`expr '(' $ac_mid ')' + 1`
19478fi
19479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19480done
19481case $ac_lo in
19482?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19483'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19484See \`config.log' for more details." >&5
19485echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19486See \`config.log' for more details." >&2;}
19487 { (exit 1); exit 1; }; } ;;
19488esac
19489else
19490 if test "$cross_compiling" = yes; then
07158944
VZ
19491 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19492echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19493 { (exit 1); exit 1; }; }
a848cd7e
SC
19494else
19495 cat >conftest.$ac_ext <<_ACEOF
19496/* confdefs.h. */
19497_ACEOF
19498cat confdefs.h >>conftest.$ac_ext
19499cat >>conftest.$ac_ext <<_ACEOF
19500/* end confdefs.h. */
19501
238ecede
MW
19502 /* DJGPP only has fake wchar_t: */
19503 #ifdef __DJGPP__
19504 # error "fake wchar_t"
19505 #endif
19506 #ifdef HAVE_WCHAR_H
19507 # ifdef __CYGWIN__
19508 # include <stddef.h>
19509 # endif
19510 # include <wchar.h>
19511 #endif
19512 #ifdef HAVE_STDLIB_H
19513 # include <stdlib.h>
19514 #endif
19515 #include <stdio.h>
19516
19517
19518
19519long longval () { return (long) (sizeof (wchar_t)); }
19520unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19521#include <stdio.h>
19522#include <stdlib.h>
19523int
19524main ()
19525{
a848cd7e 19526
238ecede
MW
19527 FILE *f = fopen ("conftest.val", "w");
19528 if (! f)
19529 exit (1);
19530 if (((long) (sizeof (wchar_t))) < 0)
19531 {
19532 long i = longval ();
19533 if (i != ((long) (sizeof (wchar_t))))
19534 exit (1);
19535 fprintf (f, "%ld\n", i);
19536 }
19537 else
19538 {
19539 unsigned long i = ulongval ();
19540 if (i != ((long) (sizeof (wchar_t))))
19541 exit (1);
19542 fprintf (f, "%lu\n", i);
19543 }
19544 exit (ferror (f) || fclose (f) != 0);
19545
19546 ;
19547 return 0;
19548}
a848cd7e
SC
19549_ACEOF
19550rm -f conftest$ac_exeext
19551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552 (eval $ac_link) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
238ecede 19561 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19562else
19563 echo "$as_me: program exited with status $ac_status" >&5
19564echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567( exit $ac_status )
238ecede
MW
19568{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19569See \`config.log' for more details." >&5
19570echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19571See \`config.log' for more details." >&2;}
19572 { (exit 1); exit 1; }; }
a848cd7e 19573fi
ac1cb8d3 19574rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19575fi
a848cd7e 19576fi
238ecede
MW
19577rm -f conftest.val
19578else
19579 ac_cv_sizeof_wchar_t=0
19580fi
19581fi
19582echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19583echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19584cat >>confdefs.h <<_ACEOF
238ecede 19585#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19586_ACEOF
19587
19588
238ecede 19589
ba3d13e1
VZ
19590echo "$as_me:$LINENO: checking for va_copy" >&5
19591echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19592if test "${wx_cv_func_va_copy+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19594else
19595
19596 cat >conftest.$ac_ext <<_ACEOF
19597
19598 #include <stdarg.h>
19599 void foo(char *f, ...)
19600 {
19601 va_list ap1, ap2;
19602 va_start(ap1, f);
19603 va_copy(ap2, ap1);
19604 va_end(ap2);
19605 va_end(ap1);
19606 }
5886b072
VZ
19607 int main()
19608 {
b902e639
VZ
19609 foo("hi", 17);
19610 return 0;
5886b072 19611 }
ba3d13e1
VZ
19612_ACEOF
19613rm -f conftest.$ac_objext conftest$ac_exeext
19614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19615 (eval $ac_link) 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
07158944 19622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest$ac_exeext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 wx_cv_func_va_copy=yes
19635else
19636 echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
19639wx_cv_func_va_copy=no
19640
19641fi
19642rm -f conftest.err conftest.$ac_objext \
19643 conftest$ac_exeext conftest.$ac_ext
19644
19645
19646fi
19647echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19648echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19649
19650if test $wx_cv_func_va_copy = "yes"; then
19651 cat >>confdefs.h <<\_ACEOF
19652#define HAVE_VA_COPY 1
19653_ACEOF
19654
19655else
19656 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19657echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19658if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660else
19661
19662 if test "$cross_compiling" = yes; then
19663 wx_cv_type_va_list_lvalue=yes
19664
19665else
19666 cat >conftest.$ac_ext <<_ACEOF
19667
19668 #include <stdarg.h>
19669 int foo(char *f, ...)
19670 {
19671 va_list ap1, ap2;
19672 va_start(ap1, f);
19673 ap2 = ap1;
19674 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19675 return 1;
19676 va_end(ap2);
19677 va_end(ap1);
19678 return 0;
19679 }
19680 int main()
19681 {
19682 return foo("hi", 17);
19683 }
19684_ACEOF
19685rm -f conftest$ac_exeext
19686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19687 (eval $ac_link) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 wx_cv_type_va_list_lvalue=yes
19697else
19698 echo "$as_me: program exited with status $ac_status" >&5
19699echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702( exit $ac_status )
19703wx_cv_type_va_list_lvalue=no
19704fi
19705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19706fi
19707
19708
19709fi
19710echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19711echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19712
19713 if test $wx_cv_type_va_list_lvalue != "yes"; then
19714 cat >>confdefs.h <<\_ACEOF
19715#define VA_LIST_IS_ARRAY 1
19716_ACEOF
19717
19718 fi
19719fi
19720
a848cd7e
SC
19721# Check whether --enable-largefile or --disable-largefile was given.
19722if test "${enable_largefile+set}" = set; then
19723 enableval="$enable_largefile"
19724
19725fi;
19726if test "$enable_largefile" != no; then
19727 wx_largefile=no
19728
19729 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19730echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19731if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733else
19734
19735 cat >conftest.$ac_ext <<_ACEOF
19736/* confdefs.h. */
19737_ACEOF
19738cat confdefs.h >>conftest.$ac_ext
19739cat >>conftest.$ac_ext <<_ACEOF
19740/* end confdefs.h. */
19741#define _FILE_OFFSET_BITS 64
19742 #include <sys/types.h>
19743int
19744main ()
19745{
19746typedef struct {
19747 unsigned int field: sizeof(off_t) == 8;
19748} wxlf;
19749
19750 ;
19751 return 0;
19752}
19753_ACEOF
19754rm -f conftest.$ac_objext
19755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19756 (eval $ac_compile) 2>conftest.er1
a848cd7e 19757 ac_status=$?
ac1cb8d3
VS
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
a848cd7e
SC
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
07158944 19763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_sys_file_offset_bits=64
19776else
19777 echo "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780ac_cv_sys_file_offset_bits=no
19781fi
ac1cb8d3 19782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19783
19784
19785fi
19786echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19787echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19788
19789 if test "$ac_cv_sys_file_offset_bits" != no; then
19790 wx_largefile=yes
19791 cat >>confdefs.h <<_ACEOF
19792#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19793_ACEOF
19794
19795 fi
19796
19797 if test "x$wx_largefile" != "xyes"; then
19798
19799 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19800echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19801if test "${ac_cv_sys_large_files+set}" = set; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803else
19804
19805 cat >conftest.$ac_ext <<_ACEOF
19806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
19811#define _LARGE_FILES 1
19812 #include <sys/types.h>
19813int
19814main ()
19815{
19816typedef struct {
19817 unsigned int field: sizeof(off_t) == 8;
19818} wxlf;
19819
19820 ;
19821 return 0;
19822}
19823_ACEOF
19824rm -f conftest.$ac_objext
19825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19826 (eval $ac_compile) 2>conftest.er1
a848cd7e 19827 ac_status=$?
ac1cb8d3
VS
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
a848cd7e
SC
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
07158944 19833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 ac_cv_sys_large_files=1
19846else
19847 echo "$as_me: failed program was:" >&5
19848sed 's/^/| /' conftest.$ac_ext >&5
19849
19850ac_cv_sys_large_files=no
19851fi
ac1cb8d3 19852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19853
19854
19855fi
19856echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19857echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19858
19859 if test "$ac_cv_sys_large_files" != no; then
19860 wx_largefile=yes
19861 cat >>confdefs.h <<_ACEOF
19862#define _LARGE_FILES $ac_cv_sys_large_files
19863_ACEOF
19864
19865 fi
19866
19867 fi
19868
19869 echo "$as_me:$LINENO: checking if large file support is available" >&5
19870echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19871 if test "x$wx_largefile" = "xyes"; then
19872 cat >>confdefs.h <<\_ACEOF
19873#define HAVE_LARGEFILE_SUPPORT 1
19874_ACEOF
19875
19876 fi
19877 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19878echo "${ECHO_T}$wx_largefile" >&6
19879fi
19880
5b674b9d
DE
19881
19882if test "x$wx_largefile" = "xyes"; then
19883 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19884 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19885 else
19886 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19887 fi
19888 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19889echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19890if test "${ac_cv_sys_largefile_source+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
19893 while :; do
19894 ac_cv_sys_largefile_source=no
19895 cat >conftest.$ac_ext <<_ACEOF
19896/* confdefs.h. */
19897_ACEOF
19898cat confdefs.h >>conftest.$ac_ext
19899cat >>conftest.$ac_ext <<_ACEOF
19900/* end confdefs.h. */
19901#include <stdio.h>
19902int
19903main ()
19904{
19905return !fseeko;
19906 ;
19907 return 0;
19908}
19909_ACEOF
19910rm -f conftest.$ac_objext
19911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19912 (eval $ac_compile) 2>conftest.er1
19913 ac_status=$?
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
07158944 19919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 break
19932else
19933 echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936fi
19937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 cat >conftest.$ac_ext <<_ACEOF
19939/* confdefs.h. */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h. */
19944#define _LARGEFILE_SOURCE 1
19945#include <stdio.h>
19946int
19947main ()
19948{
19949return !fseeko;
19950 ;
19951 return 0;
19952}
19953_ACEOF
19954rm -f conftest.$ac_objext
19955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19956 (eval $ac_compile) 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
07158944 19963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_sys_largefile_source=1; break
19976else
19977 echo "$as_me: failed program was:" >&5
19978sed 's/^/| /' conftest.$ac_ext >&5
19979
19980fi
19981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19982 break
19983done
19984fi
19985echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19986echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19987if test "$ac_cv_sys_largefile_source" != no; then
19988
19989cat >>confdefs.h <<_ACEOF
19990#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19991_ACEOF
19992
19993fi
19994rm -f conftest*
19995
19996# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19997# in glibc 2.1.3, but that breaks too many other things.
19998# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19999echo "$as_me:$LINENO: checking for fseeko" >&5
20000echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20001if test "${ac_cv_func_fseeko+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003else
20004 cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010#include <stdio.h>
20011int
20012main ()
20013{
20014return fseeko && fseeko (stdin, 0, 0);
20015 ;
20016 return 0;
20017}
20018_ACEOF
20019rm -f conftest.$ac_objext conftest$ac_exeext
20020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021 (eval $ac_link) 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
07158944 20028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest$ac_exeext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 ac_cv_func_fseeko=yes
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045ac_cv_func_fseeko=no
20046fi
20047rm -f conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20049fi
20050echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20051echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20052if test $ac_cv_func_fseeko = yes; then
20053
20054cat >>confdefs.h <<\_ACEOF
20055#define HAVE_FSEEKO 1
20056_ACEOF
20057
20058fi
20059
5b674b9d
DE
20060 if test "$ac_cv_sys_largefile_source" != no; then
20061 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20062 fi
20063 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20064fi
20065
20066echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20067echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20068if test "${ac_cv_c_bigendian+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20070else
20071 ac_cv_c_bigendian=unknown
20072# See if sys/param.h defines the BYTE_ORDER macro.
20073cat >conftest.$ac_ext <<_ACEOF
20074/* confdefs.h. */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h. */
20079#include <sys/types.h>
20080#include <sys/param.h>
20081int
20082main ()
20083{
20084
20085#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20086 bogus endian macros
20087#endif
20088 ;
20089 return 0;
20090}
20091_ACEOF
20092rm -f conftest.$ac_objext
20093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20094 (eval $ac_compile) 2>conftest.er1
a848cd7e 20095 ac_status=$?
ac1cb8d3
VS
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
a848cd7e
SC
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
07158944 20101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; } &&
20107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 # It does; now see whether it defined to BIG_ENDIAN or not.
20114cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120#include <sys/types.h>
20121#include <sys/param.h>
20122int
20123main ()
20124{
20125
20126#if BYTE_ORDER != BIG_ENDIAN
20127 not big endian
20128#endif
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext
20134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20135 (eval $ac_compile) 2>conftest.er1
a848cd7e 20136 ac_status=$?
ac1cb8d3
VS
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
a848cd7e
SC
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
07158944 20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_c_bigendian=yes
20155else
20156 echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
20159ac_cv_c_bigendian=no
20160fi
ac1cb8d3 20161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20162else
20163 echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166fi
ac1cb8d3 20167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20168if test $ac_cv_c_bigendian = unknown; then
20169if test "$cross_compiling" = yes; then
20170 ac_cv_c_bigendian=unknown
20171else
20172 cat >conftest.$ac_ext <<_ACEOF
20173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h. */
20178main () {
20179 /* Are we little or big endian? From Harbison&Steele. */
20180 union
20181 {
20182 long l;
20183 char c[sizeof (long)];
20184 } u;
20185 u.l = 1;
20186 exit (u.c[sizeof (long) - 1] == 1);
20187}
20188_ACEOF
20189rm -f conftest$ac_exeext
20190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20191 (eval $ac_link) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20200 ac_cv_c_bigendian=no
20201else
20202 echo "$as_me: program exited with status $ac_status" >&5
20203echo "$as_me: failed program was:" >&5
20204sed 's/^/| /' conftest.$ac_ext >&5
20205
20206( exit $ac_status )
20207ac_cv_c_bigendian=yes
20208fi
ac1cb8d3 20209rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20210fi
20211fi
20212fi
20213echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20214echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20215if test $ac_cv_c_bigendian = unknown; then
20216 { 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
20217echo "$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;}
20218fi
20219if test $ac_cv_c_bigendian = yes; then
20220 cat >>confdefs.h <<\_ACEOF
20221#define WORDS_BIGENDIAN 1
20222_ACEOF
20223
20224fi
20225
20226
20227ac_ext=cc
20228ac_cpp='$CXXCPP $CPPFLAGS'
20229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20232echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20233echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20234if test -z "$CXXCPP"; then
20235 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20237else
20238 # Double quotes because CXXCPP needs to be expanded
20239 for CXXCPP in "$CXX -E" "/lib/cpp"
20240 do
20241 ac_preproc_ok=false
20242for ac_cxx_preproc_warn_flag in '' yes
20243do
20244 # Use a header file that comes with gcc, so configuring glibc
20245 # with a fresh cross-compiler works.
20246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20247 # <limits.h> exists even on freestanding compilers.
20248 # On the NeXT, cc -E runs the code through the compiler's parser,
20249 # not just through cpp. "Syntax error" is here to catch this case.
20250 cat >conftest.$ac_ext <<_ACEOF
20251/* confdefs.h. */
20252_ACEOF
20253cat confdefs.h >>conftest.$ac_ext
20254cat >>conftest.$ac_ext <<_ACEOF
20255/* end confdefs.h. */
20256#ifdef __STDC__
20257# include <limits.h>
20258#else
20259# include <assert.h>
20260#endif
ac1cb8d3 20261 Syntax error
a848cd7e
SC
20262_ACEOF
20263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20265 ac_status=$?
20266 grep -v '^ *+' conftest.er1 >conftest.err
20267 rm -f conftest.er1
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } >/dev/null; then
20271 if test -s conftest.err; then
20272 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20273 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20274 else
20275 ac_cpp_err=
20276 fi
20277else
20278 ac_cpp_err=yes
20279fi
20280if test -z "$ac_cpp_err"; then
20281 :
20282else
20283 echo "$as_me: failed program was:" >&5
20284sed 's/^/| /' conftest.$ac_ext >&5
20285
20286 # Broken: fails on valid input.
20287continue
20288fi
20289rm -f conftest.err conftest.$ac_ext
20290
20291 # OK, works on sane cases. Now check whether non-existent headers
20292 # can be detected and how.
20293 cat >conftest.$ac_ext <<_ACEOF
20294/* confdefs.h. */
20295_ACEOF
20296cat confdefs.h >>conftest.$ac_ext
20297cat >>conftest.$ac_ext <<_ACEOF
20298/* end confdefs.h. */
20299#include <ac_nonexistent.h>
20300_ACEOF
20301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } >/dev/null; then
20309 if test -s conftest.err; then
20310 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20312 else
20313 ac_cpp_err=
20314 fi
20315else
20316 ac_cpp_err=yes
20317fi
20318if test -z "$ac_cpp_err"; then
20319 # Broken: success on invalid input.
20320continue
20321else
20322 echo "$as_me: failed program was:" >&5
20323sed 's/^/| /' conftest.$ac_ext >&5
20324
20325 # Passes both tests.
20326ac_preproc_ok=:
20327break
20328fi
20329rm -f conftest.err conftest.$ac_ext
20330
20331done
20332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20333rm -f conftest.err conftest.$ac_ext
20334if $ac_preproc_ok; then
20335 break
20336fi
20337
20338 done
20339 ac_cv_prog_CXXCPP=$CXXCPP
20340
20341fi
20342 CXXCPP=$ac_cv_prog_CXXCPP
20343else
20344 ac_cv_prog_CXXCPP=$CXXCPP
20345fi
20346echo "$as_me:$LINENO: result: $CXXCPP" >&5
20347echo "${ECHO_T}$CXXCPP" >&6
20348ac_preproc_ok=false
20349for ac_cxx_preproc_warn_flag in '' yes
20350do
20351 # Use a header file that comes with gcc, so configuring glibc
20352 # with a fresh cross-compiler works.
20353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20354 # <limits.h> exists even on freestanding compilers.
20355 # On the NeXT, cc -E runs the code through the compiler's parser,
20356 # not just through cpp. "Syntax error" is here to catch this case.
20357 cat >conftest.$ac_ext <<_ACEOF
20358/* confdefs.h. */
20359_ACEOF
20360cat confdefs.h >>conftest.$ac_ext
20361cat >>conftest.$ac_ext <<_ACEOF
20362/* end confdefs.h. */
20363#ifdef __STDC__
20364# include <limits.h>
20365#else
20366# include <assert.h>
20367#endif
ac1cb8d3 20368 Syntax error
a848cd7e
SC
20369_ACEOF
20370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20372 ac_status=$?
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } >/dev/null; then
20378 if test -s conftest.err; then
20379 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20381 else
20382 ac_cpp_err=
20383 fi
20384else
20385 ac_cpp_err=yes
20386fi
20387if test -z "$ac_cpp_err"; then
20388 :
20389else
20390 echo "$as_me: failed program was:" >&5
20391sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 # Broken: fails on valid input.
20394continue
20395fi
20396rm -f conftest.err conftest.$ac_ext
20397
20398 # OK, works on sane cases. Now check whether non-existent headers
20399 # can be detected and how.
20400 cat >conftest.$ac_ext <<_ACEOF
20401/* confdefs.h. */
20402_ACEOF
20403cat confdefs.h >>conftest.$ac_ext
20404cat >>conftest.$ac_ext <<_ACEOF
20405/* end confdefs.h. */
20406#include <ac_nonexistent.h>
20407_ACEOF
20408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } >/dev/null; then
20416 if test -s conftest.err; then
20417 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20419 else
20420 ac_cpp_err=
20421 fi
20422else
20423 ac_cpp_err=yes
20424fi
20425if test -z "$ac_cpp_err"; then
20426 # Broken: success on invalid input.
20427continue
20428else
20429 echo "$as_me: failed program was:" >&5
20430sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 # Passes both tests.
20433ac_preproc_ok=:
20434break
20435fi
20436rm -f conftest.err conftest.$ac_ext
20437
20438done
20439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20440rm -f conftest.err conftest.$ac_ext
20441if $ac_preproc_ok; then
20442 :
20443else
20444 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20445See \`config.log' for more details." >&5
20446echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20447See \`config.log' for more details." >&2;}
20448 { (exit 1); exit 1; }; }
20449fi
20450
20451ac_ext=cc
20452ac_cpp='$CXXCPP $CPPFLAGS'
20453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20456
20457
20458
20459
20460
20461 ac_ext=cc
20462ac_cpp='$CXXCPP $CPPFLAGS'
20463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20466
20467
20468
20469for ac_header in iostream
20470do
20471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20472if eval "test \"\${$as_ac_Header+set}\" = set"; then
20473 echo "$as_me:$LINENO: checking for $ac_header" >&5
20474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20475if eval "test \"\${$as_ac_Header+set}\" = set"; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477fi
20478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20480else
20481 # Is the header compilable?
20482echo "$as_me:$LINENO: checking $ac_header usability" >&5
20483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20484cat >conftest.$ac_ext <<_ACEOF
20485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
20490$ac_includes_default
20491#include <$ac_header>
20492_ACEOF
20493rm -f conftest.$ac_objext
20494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20495 (eval $ac_compile) 2>conftest.er1
a848cd7e 20496 ac_status=$?
ac1cb8d3
VS
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
a848cd7e
SC
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } &&
07158944 20502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 ac_header_compiler=yes
20515else
20516 echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519ac_header_compiler=no
20520fi
ac1cb8d3 20521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20522echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20523echo "${ECHO_T}$ac_header_compiler" >&6
20524
20525# Is the header present?
20526echo "$as_me:$LINENO: checking $ac_header presence" >&5
20527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20528cat >conftest.$ac_ext <<_ACEOF
20529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
20534#include <$ac_header>
20535_ACEOF
20536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } >/dev/null; then
20544 if test -s conftest.err; then
20545 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20546 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20547 else
20548 ac_cpp_err=
20549 fi
20550else
20551 ac_cpp_err=yes
20552fi
20553if test -z "$ac_cpp_err"; then
20554 ac_header_preproc=yes
20555else
20556 echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_header_preproc=no
20560fi
20561rm -f conftest.err conftest.$ac_ext
20562echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20563echo "${ECHO_T}$ac_header_preproc" >&6
20564
20565# So? What about this header?
ac1cb8d3
VS
20566case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20567 yes:no: )
a848cd7e
SC
20568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20572 ac_header_preproc=yes
a848cd7e 20573 ;;
ac1cb8d3 20574 no:yes:* )
a848cd7e
SC
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20587 (
20588 cat <<\_ASBOX
ac1cb8d3
VS
20589## ----------------------------------------- ##
20590## Report this to wx-dev@lists.wxwidgets.org ##
20591## ----------------------------------------- ##
a848cd7e
SC
20592_ASBOX
20593 ) |
20594 sed "s/^/$as_me: WARNING: /" >&2
20595 ;;
20596esac
20597echo "$as_me:$LINENO: checking for $ac_header" >&5
20598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20599if eval "test \"\${$as_ac_Header+set}\" = set"; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601else
ac1cb8d3 20602 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20603fi
20604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20606
20607fi
20608if test `eval echo '${'$as_ac_Header'}'` = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20611_ACEOF
20612
20613fi
20614
20615done
20616
20617
20618 if test "$ac_cv_header_iostream" = "yes" ; then
20619 :
20620 else
20621 cat >>confdefs.h <<\_ACEOF
20622#define wxUSE_IOSTREAMH 1
20623_ACEOF
20624
20625 fi
20626
20627 ac_ext=c
20628ac_cpp='$CPP $CPPFLAGS'
20629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20631ac_compiler_gnu=$ac_cv_c_compiler_gnu
20632
20633
20634
20635
20636 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20637echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20638if test "${wx_cv_cpp_bool+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640else
20641
20642
20643
20644 ac_ext=cc
20645ac_cpp='$CXXCPP $CPPFLAGS'
20646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20649
20650
20651 cat >conftest.$ac_ext <<_ACEOF
20652/* confdefs.h. */
20653_ACEOF
20654cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h. */
20657
20658
20659int
20660main ()
20661{
20662
20663 bool b = true;
20664
20665 return 0;
20666
20667 ;
20668 return 0;
20669}
20670_ACEOF
20671rm -f conftest.$ac_objext
20672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20673 (eval $ac_compile) 2>conftest.er1
a848cd7e 20674 ac_status=$?
ac1cb8d3
VS
20675 grep -v '^ *+' conftest.er1 >conftest.err
20676 rm -f conftest.er1
20677 cat conftest.err >&5
a848cd7e
SC
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } &&
07158944 20680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; } &&
20686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
20692
20693 wx_cv_cpp_bool=yes
20694
20695else
20696 echo "$as_me: failed program was:" >&5
20697sed 's/^/| /' conftest.$ac_ext >&5
20698
20699
20700 wx_cv_cpp_bool=no
20701
20702
20703fi
ac1cb8d3 20704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20705
20706 ac_ext=c
20707ac_cpp='$CPP $CPPFLAGS'
20708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710ac_compiler_gnu=$ac_cv_c_compiler_gnu
20711
20712
20713fi
20714echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20715echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20716
20717 if test "$wx_cv_cpp_bool" = "yes"; then
20718 cat >>confdefs.h <<\_ACEOF
20719#define HAVE_BOOL 1
20720_ACEOF
20721
20722 fi
20723
20724
20725
20726 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20727echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20728if test "${wx_cv_explicit+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20730else
20731
20732
20733
20734 ac_ext=cc
20735ac_cpp='$CXXCPP $CPPFLAGS'
20736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20739
20740
20741 cat >conftest.$ac_ext <<_ACEOF
20742/* confdefs.h. */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h. */
20747
20748 class Foo { public: explicit Foo(int) {} };
20749
20750int
20751main ()
20752{
20753
20754 return 0;
20755
20756 ;
20757 return 0;
20758}
20759_ACEOF
20760rm -f conftest.$ac_objext
20761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20762 (eval $ac_compile) 2>conftest.er1
a848cd7e 20763 ac_status=$?
ac1cb8d3
VS
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
a848cd7e
SC
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
07158944 20769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; } &&
20775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781
20782 cat >conftest.$ac_ext <<_ACEOF
20783/* confdefs.h. */
20784_ACEOF
20785cat confdefs.h >>conftest.$ac_ext
20786cat >>conftest.$ac_ext <<_ACEOF
20787/* end confdefs.h. */
20788
20789 class Foo { public: explicit Foo(int) {} };
20790 static void TakeFoo(const Foo& foo) { }
20791
20792int
20793main ()
20794{
20795
20796 TakeFoo(17);
20797 return 0;
20798
20799 ;
20800 return 0;
20801}
20802_ACEOF
20803rm -f conftest.$ac_objext
20804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20805 (eval $ac_compile) 2>conftest.er1
a848cd7e 20806 ac_status=$?
ac1cb8d3
VS
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
a848cd7e
SC
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
07158944 20812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 wx_cv_explicit=no
20825else
20826 echo "$as_me: failed program was:" >&5
20827sed 's/^/| /' conftest.$ac_ext >&5
20828
20829wx_cv_explicit=yes
20830
20831fi
ac1cb8d3 20832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20833
20834else
20835 echo "$as_me: failed program was:" >&5
20836sed 's/^/| /' conftest.$ac_ext >&5
20837
20838wx_cv_explicit=no
20839
20840fi
ac1cb8d3 20841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20842
20843 ac_ext=c
20844ac_cpp='$CPP $CPPFLAGS'
20845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847ac_compiler_gnu=$ac_cv_c_compiler_gnu
20848
20849
20850fi
20851echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20852echo "${ECHO_T}$wx_cv_explicit" >&6
20853
20854 if test "$wx_cv_explicit" = "yes"; then
20855 cat >>confdefs.h <<\_ACEOF
20856#define HAVE_EXPLICIT 1
20857_ACEOF
20858
20859 fi
20860
20861
20862echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20863echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20864if test "${ac_cv_cxx_const_cast+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866else
20867
20868
20869 ac_ext=cc
20870ac_cpp='$CXXCPP $CPPFLAGS'
20871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20874
20875 cat >conftest.$ac_ext <<_ACEOF
20876/* confdefs.h. */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h. */
20881
20882int
20883main ()
20884{
20885int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20892 (eval $ac_compile) 2>conftest.er1
a848cd7e 20893 ac_status=$?
ac1cb8d3
VS
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
a848cd7e
SC
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
07158944 20899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; } &&
20905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_cv_cxx_const_cast=yes
20912else
20913 echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916ac_cv_cxx_const_cast=no
20917fi
ac1cb8d3 20918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20919 ac_ext=c
20920ac_cpp='$CPP $CPPFLAGS'
20921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925
20926fi
20927echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20928echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20929if test "$ac_cv_cxx_const_cast" = yes; then
20930
20931cat >>confdefs.h <<\_ACEOF
20932#define HAVE_CONST_CAST
20933_ACEOF
20934
20935fi
20936
7714864e
RL
20937echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20938echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20939if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941else
20942
20943
20944 ac_ext=cc
20945ac_cpp='$CXXCPP $CPPFLAGS'
20946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20949
20950 cat >conftest.$ac_ext <<_ACEOF
20951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h. */
20956#include <typeinfo>
20957class Base { public : Base () {} virtual void f () = 0;};
20958class Derived : public Base { public : Derived () {} virtual void f () {} };
20959class Unrelated { public : Unrelated () {} };
20960int g (Unrelated&) { return 0; }
20961int
20962main ()
20963{
20964
20965Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20966 ;
20967 return 0;
20968}
20969_ACEOF
20970rm -f conftest.$ac_objext
20971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20972 (eval $ac_compile) 2>conftest.er1
20973 ac_status=$?
20974 grep -v '^ *+' conftest.er1 >conftest.err
20975 rm -f conftest.er1
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
07158944 20979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest.$ac_objext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_cxx_reinterpret_cast=yes
20992else
20993 echo "$as_me: failed program was:" >&5
20994sed 's/^/| /' conftest.$ac_ext >&5
20995
20996ac_cv_cxx_reinterpret_cast=no
20997fi
20998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20999 ac_ext=c
21000ac_cpp='$CPP $CPPFLAGS'
21001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003ac_compiler_gnu=$ac_cv_c_compiler_gnu
21004
21005
21006fi
21007echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21008echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21009if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21010
21011cat >>confdefs.h <<\_ACEOF
21012#define HAVE_REINTERPRET_CAST
21013_ACEOF
21014
21015fi
21016
a848cd7e
SC
21017echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21018echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21019if test "${ac_cv_cxx_static_cast+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21021else
21022
21023
21024 ac_ext=cc
21025ac_cpp='$CXXCPP $CPPFLAGS'
21026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030 cat >conftest.$ac_ext <<_ACEOF
21031/* confdefs.h. */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
21035/* end confdefs.h. */
21036#include <typeinfo>
21037class Base { public : Base () {} virtual void f () = 0; };
21038class Derived : public Base { public : Derived () {} virtual void f () {} };
21039int g (Derived&) { return 0; }
21040int
21041main ()
21042{
21043
21044Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21045 ;
21046 return 0;
21047}
21048_ACEOF
21049rm -f conftest.$ac_objext
21050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21051 (eval $ac_compile) 2>conftest.er1
a848cd7e 21052 ac_status=$?
ac1cb8d3
VS
21053 grep -v '^ *+' conftest.er1 >conftest.err
21054 rm -f conftest.er1
21055 cat conftest.err >&5
a848cd7e
SC
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); } &&
07158944 21058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 ac_cv_cxx_static_cast=yes
21071else
21072 echo "$as_me: failed program was:" >&5
21073sed 's/^/| /' conftest.$ac_ext >&5
21074
21075ac_cv_cxx_static_cast=no
21076fi
ac1cb8d3 21077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21078 ac_ext=c
21079ac_cpp='$CPP $CPPFLAGS'
21080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083
21084
21085fi
21086echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21087echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21088if test "$ac_cv_cxx_static_cast" = yes; then
21089
21090cat >>confdefs.h <<\_ACEOF
21091#define HAVE_STATIC_CAST
21092_ACEOF
21093
21094fi
21095
21096
21097if test "$wxUSE_STL" = "yes"; then
21098 ac_ext=cc
21099ac_cpp='$CXXCPP $CPPFLAGS'
21100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21103
21104
21105 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21106echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21107 cat >conftest.$ac_ext <<_ACEOF
21108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113#include <string>
21114 #include <functional>
21115 #include <algorithm>
21116 #include <vector>
21117 #include <list>
21118int
21119main ()
21120{
21121std::vector<int> moo;
21122 std::list<int> foo;
21123 std::vector<int>::iterator it =
21124 std::find_if(moo.begin(), moo.end(),
21125 std::bind2nd(std::less<int>(), 3));
21126 ;
21127 return 0;
21128}
21129_ACEOF
21130rm -f conftest.$ac_objext
21131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21132 (eval $ac_compile) 2>conftest.er1
a848cd7e 21133 ac_status=$?
ac1cb8d3
VS
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
a848cd7e
SC
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
07158944 21139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141 (eval $ac_try) 2>&5
21142 ac_status=$?
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; } &&
21145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; }; then
21151 echo "$as_me:$LINENO: result: yes" >&5
21152echo "${ECHO_T}yes" >&6
21153else
21154 echo "$as_me: failed program was:" >&5
21155sed 's/^/| /' conftest.$ac_ext >&5
21156
21157echo "$as_me:$LINENO: result: no" >&5
21158echo "${ECHO_T}no" >&6
21159 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21160echo "$as_me: error: Basic STL functionality missing" >&2;}
21161 { (exit 1); exit 1; }; }
21162fi
ac1cb8d3 21163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21164
21165 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21166echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21167 cat >conftest.$ac_ext <<_ACEOF
21168/* confdefs.h. */
21169_ACEOF
21170cat confdefs.h >>conftest.$ac_ext
21171cat >>conftest.$ac_ext <<_ACEOF
21172/* end confdefs.h. */
21173#include <string>
21174int
21175main ()
21176{
21177std::wstring foo;
21178 ;
21179 return 0;
21180}
21181_ACEOF
21182rm -f conftest.$ac_objext
21183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21184 (eval $ac_compile) 2>conftest.er1
a848cd7e 21185 ac_status=$?
ac1cb8d3
VS
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
a848cd7e
SC
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
07158944 21191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 echo "$as_me:$LINENO: result: yes" >&5
21204echo "${ECHO_T}yes" >&6
21205 cat >>confdefs.h <<\_ACEOF
21206#define HAVE_STD_WSTRING 1
21207_ACEOF
21208
21209else
21210 echo "$as_me: failed program was:" >&5
21211sed 's/^/| /' conftest.$ac_ext >&5
21212
21213echo "$as_me:$LINENO: result: no" >&5
21214echo "${ECHO_T}no" >&6
21215fi
ac1cb8d3 21216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21217
21218 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21219echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21220 cat >conftest.$ac_ext <<_ACEOF
21221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h. */
21226#include <string>
21227int
21228main ()
21229{
21230std::string foo, bar;
21231 foo.compare(bar);
21232 foo.compare(1, 1, bar);
21233 foo.compare(1, 1, bar, 1, 1);
21234 foo.compare("");
21235 foo.compare(1, 1, "");
21236 foo.compare(1, 1, "", 2);
21237 ;
21238 return 0;
21239}
21240_ACEOF
21241rm -f conftest.$ac_objext
21242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21243 (eval $ac_compile) 2>conftest.er1
a848cd7e 21244 ac_status=$?
ac1cb8d3
VS
21245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
a848cd7e
SC
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } &&
07158944 21250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21253 ac_status=$?
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; } &&
21256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; }; then
21262 echo "$as_me:$LINENO: result: yes" >&5
21263echo "${ECHO_T}yes" >&6
21264 cat >>confdefs.h <<\_ACEOF
21265#define HAVE_STD_STRING_COMPARE 1
21266_ACEOF
21267
21268else
21269 echo "$as_me: failed program was:" >&5
21270sed 's/^/| /' conftest.$ac_ext >&5
21271
21272echo "$as_me:$LINENO: result: no" >&5
21273echo "${ECHO_T}no" >&6
21274fi
ac1cb8d3 21275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21276
21277 if test "${ac_cv_header_hash_map+set}" = set; then
21278 echo "$as_me:$LINENO: checking for hash_map" >&5
21279echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21280if test "${ac_cv_header_hash_map+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282fi
21283echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21284echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21285else
21286 # Is the header compilable?
21287echo "$as_me:$LINENO: checking hash_map usability" >&5
21288echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21289cat >conftest.$ac_ext <<_ACEOF
21290/* confdefs.h. */
21291_ACEOF
21292cat confdefs.h >>conftest.$ac_ext
21293cat >>conftest.$ac_ext <<_ACEOF
21294/* end confdefs.h. */
21295$ac_includes_default
21296#include <hash_map>
21297_ACEOF
21298rm -f conftest.$ac_objext
21299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21300 (eval $ac_compile) 2>conftest.er1
bdcade0a 21301 ac_status=$?
ac1cb8d3
VS
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
bdcade0a
MB
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
07158944 21307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_header_compiler=yes
21320else
21321 echo "$as_me: failed program was:" >&5
21322sed 's/^/| /' conftest.$ac_ext >&5
21323
21324ac_header_compiler=no
21325fi
ac1cb8d3 21326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21328echo "${ECHO_T}$ac_header_compiler" >&6
21329
21330# Is the header present?
21331echo "$as_me:$LINENO: checking hash_map presence" >&5
21332echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21333cat >conftest.$ac_ext <<_ACEOF
21334/* confdefs.h. */
21335_ACEOF
21336cat confdefs.h >>conftest.$ac_ext
21337cat >>conftest.$ac_ext <<_ACEOF
21338/* end confdefs.h. */
21339#include <hash_map>
21340_ACEOF
21341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } >/dev/null; then
21349 if test -s conftest.err; then
21350 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21351 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21352 else
21353 ac_cpp_err=
21354 fi
21355else
21356 ac_cpp_err=yes
21357fi
21358if test -z "$ac_cpp_err"; then
21359 ac_header_preproc=yes
21360else
21361 echo "$as_me: failed program was:" >&5
21362sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ac_header_preproc=no
21365fi
21366rm -f conftest.err conftest.$ac_ext
21367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368echo "${ECHO_T}$ac_header_preproc" >&6
21369
21370# So? What about this header?
ac1cb8d3
VS
21371case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21372 yes:no: )
bdcade0a
MB
21373 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21374echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21375 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21376echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21377 ac_header_preproc=yes
bdcade0a 21378 ;;
ac1cb8d3 21379 no:yes:* )
bdcade0a
MB
21380 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21381echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21382 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21383echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21385echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21387echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21388 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21389echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21390 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21391echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21392 (
21393 cat <<\_ASBOX
ac1cb8d3
VS
21394## ----------------------------------------- ##
21395## Report this to wx-dev@lists.wxwidgets.org ##
21396## ----------------------------------------- ##
bdcade0a
MB
21397_ASBOX
21398 ) |
21399 sed "s/^/$as_me: WARNING: /" >&2
21400 ;;
21401esac
21402echo "$as_me:$LINENO: checking for hash_map" >&5
21403echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21404if test "${ac_cv_header_hash_map+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406else
21407 ac_cv_header_hash_map=$ac_header_preproc
21408fi
21409echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21410echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21411
21412fi
21413if test $ac_cv_header_hash_map = yes; then
21414 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21415echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21416 cat >conftest.$ac_ext <<_ACEOF
21417/* confdefs.h. */
21418_ACEOF
21419cat confdefs.h >>conftest.$ac_ext
21420cat >>conftest.$ac_ext <<_ACEOF
21421/* end confdefs.h. */
21422#include <hash_map>
21423 #include <hash_set>
21424int
21425main ()
21426{
21427std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21428 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21429 ;
21430 return 0;
21431}
21432_ACEOF
21433rm -f conftest.$ac_objext
21434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21435 (eval $ac_compile) 2>conftest.er1
bdcade0a 21436 ac_status=$?
ac1cb8d3
VS
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
bdcade0a
MB
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } &&
07158944 21442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 echo "$as_me:$LINENO: result: yes" >&5
21455echo "${ECHO_T}yes" >&6
21456 cat >>confdefs.h <<\_ACEOF
21457#define HAVE_HASH_MAP 1
21458_ACEOF
21459
21460 cat >>confdefs.h <<\_ACEOF
21461#define HAVE_STD_HASH_MAP 1
21462_ACEOF
21463
21464else
21465 echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
21467
21468echo "$as_me:$LINENO: result: no" >&5
21469echo "${ECHO_T}no" >&6
21470fi
ac1cb8d3 21471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21472
21473fi
21474
21475
21476
21477 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21478 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21479echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21480if test "${ac_cv_header_ext_hash_map+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482fi
21483echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21484echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21485else
21486 # Is the header compilable?
21487echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21488echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21489cat >conftest.$ac_ext <<_ACEOF
21490/* confdefs.h. */
21491_ACEOF
21492cat confdefs.h >>conftest.$ac_ext
21493cat >>conftest.$ac_ext <<_ACEOF
21494/* end confdefs.h. */
21495$ac_includes_default
21496#include <ext/hash_map>
21497_ACEOF
21498rm -f conftest.$ac_objext
21499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21500 (eval $ac_compile) 2>conftest.er1
bdcade0a 21501 ac_status=$?
ac1cb8d3
VS
21502 grep -v '^ *+' conftest.er1 >conftest.err
21503 rm -f conftest.er1
21504 cat conftest.err >&5
bdcade0a
MB
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
07158944 21507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; } &&
21513 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 ac_header_compiler=yes
21520else
21521 echo "$as_me: failed program was:" >&5
21522sed 's/^/| /' conftest.$ac_ext >&5
21523
21524ac_header_compiler=no
21525fi
ac1cb8d3 21526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21528echo "${ECHO_T}$ac_header_compiler" >&6
21529
21530# Is the header present?
21531echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21532echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21533cat >conftest.$ac_ext <<_ACEOF
21534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
21539#include <ext/hash_map>
21540_ACEOF
21541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } >/dev/null; then
21549 if test -s conftest.err; then
21550 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21551 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21552 else
21553 ac_cpp_err=
21554 fi
21555else
21556 ac_cpp_err=yes
21557fi
21558if test -z "$ac_cpp_err"; then
21559 ac_header_preproc=yes
21560else
21561 echo "$as_me: failed program was:" >&5
21562sed 's/^/| /' conftest.$ac_ext >&5
21563
21564 ac_header_preproc=no
21565fi
21566rm -f conftest.err conftest.$ac_ext
21567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21568echo "${ECHO_T}$ac_header_preproc" >&6
21569
21570# So? What about this header?
ac1cb8d3
VS
21571case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21572 yes:no: )
bdcade0a
MB
21573 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21574echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21575 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21576echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21577 ac_header_preproc=yes
bdcade0a 21578 ;;
ac1cb8d3 21579 no:yes:* )
bdcade0a
MB
21580 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21581echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21582 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21583echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21584 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21585echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21587echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21588 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21589echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21590 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21591echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21592 (
21593 cat <<\_ASBOX
ac1cb8d3
VS
21594## ----------------------------------------- ##
21595## Report this to wx-dev@lists.wxwidgets.org ##
21596## ----------------------------------------- ##
bdcade0a
MB
21597_ASBOX
21598 ) |
21599 sed "s/^/$as_me: WARNING: /" >&2
21600 ;;
21601esac
21602echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21603echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21604if test "${ac_cv_header_ext_hash_map+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606else
21607 ac_cv_header_ext_hash_map=$ac_header_preproc
21608fi
21609echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21610echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21611
21612fi
21613if test $ac_cv_header_ext_hash_map = yes; then
21614 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21615echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21617/* confdefs.h. */
21618_ACEOF
21619cat confdefs.h >>conftest.$ac_ext
21620cat >>conftest.$ac_ext <<_ACEOF
21621/* end confdefs.h. */
21622#include <ext/hash_map>
21623 #include <ext/hash_set>
21624int
21625main ()
21626{
21627__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21628 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21629 ;
21630 return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext
21634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21635 (eval $ac_compile) 2>conftest.er1
bdcade0a 21636 ac_status=$?
ac1cb8d3
VS
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
bdcade0a
MB
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
07158944 21642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; } &&
21648 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; }; then
21654 echo "$as_me:$LINENO: result: yes" >&5
21655echo "${ECHO_T}yes" >&6
21656 cat >>confdefs.h <<\_ACEOF
21657#define HAVE_EXT_HASH_MAP 1
21658_ACEOF
21659
21660 cat >>confdefs.h <<\_ACEOF
21661#define HAVE_GNU_CXX_HASH_MAP 1
21662_ACEOF
21663
21664else
21665 echo "$as_me: failed program was:" >&5
21666sed 's/^/| /' conftest.$ac_ext >&5
21667
21668echo "$as_me:$LINENO: result: no" >&5
21669echo "${ECHO_T}no" >&6
21670fi
ac1cb8d3 21671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21672
21673fi
21674
21675
a848cd7e
SC
21676
21677 ac_ext=c
21678ac_cpp='$CPP $CPPFLAGS'
21679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21681ac_compiler_gnu=$ac_cv_c_compiler_gnu
21682
21683fi
21684
21685
21686SEARCH_INCLUDE="\
21687 /usr/local/include \
21688 \
21689 /usr/Motif-2.1/include \
21690 /usr/Motif-1.2/include \
21691 /usr/include/Motif1.2 \
21692 /opt/xpm/include/X11 \
21693 /opt/GBxpm/include/ \
21694 /opt/GBxpm/X11/include/ \
21695 \
21696 /usr/dt/include \
21697 /usr/openwin/include \
21698 \
21699 /usr/include/Xm \
21700 \
21701 /usr/X11R6/include \
21702 /usr/X11R6.4/include \
21703 /usr/X11R5/include \
21704 /usr/X11R4/include \
21705 \
21706 /usr/include/X11R6 \
21707 /usr/include/X11R5 \
21708 /usr/include/X11R4 \
21709 \
21710 /usr/local/X11R6/include \
21711 /usr/local/X11R5/include \
21712 /usr/local/X11R4/include \
21713 \
21714 /usr/local/include/X11R6 \
21715 /usr/local/include/X11R5 \
21716 /usr/local/include/X11R4 \
21717 \
21718 /usr/X11/include \
21719 /usr/include/X11 \
21720 /usr/local/X11/include \
21721 /usr/local/include/X11 \
21722 \
21723 /usr/X386/include \
21724 /usr/x386/include \
21725 /usr/XFree86/include/X11 \
21726 \
21727 X:/XFree86/include \
21728 X:/XFree86/include/X11 \
21729 \
21730 /usr/include/gtk \
21731 /usr/local/include/gtk \
21732 /usr/include/glib \
21733 /usr/local/include/glib \
21734 \
21735 /usr/include/qt \
21736 /usr/local/include/qt \
21737 \
21738 /usr/local/arm/3.3.2/include \
21739 \
21740 /usr/include/windows \
21741 /usr/include/wine \
21742 /usr/local/include/wine \
21743 \
21744 /usr/unsupported/include \
21745 /usr/athena/include \
21746 /usr/local/x11r5/include \
21747 /usr/lpp/Xamples/include \
21748 \
21749 /usr/openwin/share/include"
21750
07158944 21751SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21752
21753
21754cat >confcache <<\_ACEOF
21755# This file is a shell script that caches the results of configure
21756# tests run on this system so they can be shared between configure
21757# scripts and configure runs, see configure's option --config-cache.
21758# It is not useful on other systems. If it contains results you don't
21759# want to keep, you may remove or edit it.
21760#
21761# config.status only pays attention to the cache file if you give it
21762# the --recheck option to rerun configure.
21763#
21764# `ac_cv_env_foo' variables (set or unset) will be overridden when
21765# loading this file, other *unset* `ac_cv_foo' will be assigned the
21766# following values.
21767
21768_ACEOF
21769
21770# The following way of writing the cache mishandles newlines in values,
21771# but we know of no workaround that is simple, portable, and efficient.
21772# So, don't put newlines in cache variables' values.
21773# Ultrix sh set writes to stderr and can't be redirected directly,
21774# and sets the high bit in the cache file unless we assign to the vars.
21775{
21776 (set) 2>&1 |
21777 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21778 *ac_space=\ *)
21779 # `set' does not quote correctly, so add quotes (double-quote
21780 # substitution turns \\\\ into \\, and sed turns \\ into \).
21781 sed -n \
ac1cb8d3
VS
21782 "s/'/'\\\\''/g;
21783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21784 ;;
21785 *)
21786 # `set' quotes correctly as required by POSIX, so do not add quotes.
21787 sed -n \
ac1cb8d3 21788 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21789 ;;
21790 esac;
21791} |
21792 sed '
21793 t clear
21794 : clear
21795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21796 t end
21797 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21798 : end' >>confcache
21799if diff $cache_file confcache >/dev/null 2>&1; then :; else
21800 if test -w $cache_file; then
21801 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21802 cat confcache >$cache_file
21803 else
21804 echo "not updating unwritable cache $cache_file"
21805 fi
21806fi
21807rm -f confcache
21808
21809if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21810 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21811echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21812if test "${wx_cv_lib_glibc21+set}" = set; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21814else
21815
21816 cat >conftest.$ac_ext <<_ACEOF
21817/* confdefs.h. */
21818_ACEOF
21819cat confdefs.h >>conftest.$ac_ext
21820cat >>conftest.$ac_ext <<_ACEOF
21821/* end confdefs.h. */
21822#include <features.h>
21823int
21824main ()
21825{
21826
21827 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21828 #error not glibc2.1
21829 #endif
21830
21831 ;
21832 return 0;
21833}
21834_ACEOF
21835rm -f conftest.$ac_objext
21836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21837 (eval $ac_compile) 2>conftest.er1
a848cd7e 21838 ac_status=$?
ac1cb8d3
VS
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
a848cd7e
SC
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } &&
07158944 21844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; } &&
21850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; }; then
21856
21857 wx_cv_lib_glibc21=yes
21858
21859else
21860 echo "$as_me: failed program was:" >&5
21861sed 's/^/| /' conftest.$ac_ext >&5
21862
21863
21864 wx_cv_lib_glibc21=no
21865
21866
21867fi
ac1cb8d3 21868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21869
21870fi
21871echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21872echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21873 if test "$wx_cv_lib_glibc21" = "yes"; then
21874 cat >>confdefs.h <<\_ACEOF
21875#define wxHAVE_GLIBC2 1
21876_ACEOF
21877
21878 fi
21879fi
21880
21881if test "x$wx_cv_lib_glibc21" = "xyes"; then
21882 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21883 cat >>confdefs.h <<\_ACEOF
21884#define _GNU_SOURCE 1
21885_ACEOF
21886
21887 fi
21888fi
21889
21890
21891
21892if test "$wxUSE_REGEX" != "no"; then
21893 cat >>confdefs.h <<\_ACEOF
21894#define wxUSE_REGEX 1
21895_ACEOF
21896
21897
21898 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21899 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21900echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21901 wxUSE_REGEX=builtin
21902 fi
21903
21904 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21905 if test "${ac_cv_header_regex_h+set}" = set; then
21906 echo "$as_me:$LINENO: checking for regex.h" >&5
21907echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21908if test "${ac_cv_header_regex_h+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21910fi
21911echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21912echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21913else
21914 # Is the header compilable?
21915echo "$as_me:$LINENO: checking regex.h usability" >&5
21916echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21917cat >conftest.$ac_ext <<_ACEOF
21918/* confdefs.h. */
21919_ACEOF
21920cat confdefs.h >>conftest.$ac_ext
21921cat >>conftest.$ac_ext <<_ACEOF
21922/* end confdefs.h. */
21923$ac_includes_default
21924#include <regex.h>
21925_ACEOF
21926rm -f conftest.$ac_objext
21927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21928 (eval $ac_compile) 2>conftest.er1
a848cd7e 21929 ac_status=$?
ac1cb8d3
VS
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
a848cd7e
SC
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
07158944 21935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; } &&
21941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 ac_header_compiler=yes
21948else
21949 echo "$as_me: failed program was:" >&5
21950sed 's/^/| /' conftest.$ac_ext >&5
21951
21952ac_header_compiler=no
21953fi
ac1cb8d3 21954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21956echo "${ECHO_T}$ac_header_compiler" >&6
21957
21958# Is the header present?
21959echo "$as_me:$LINENO: checking regex.h presence" >&5
21960echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21961cat >conftest.$ac_ext <<_ACEOF
21962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */
21967#include <regex.h>
21968_ACEOF
21969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } >/dev/null; then
21977 if test -s conftest.err; then
21978 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21980 else
21981 ac_cpp_err=
21982 fi
21983else
21984 ac_cpp_err=yes
21985fi
21986if test -z "$ac_cpp_err"; then
21987 ac_header_preproc=yes
21988else
21989 echo "$as_me: failed program was:" >&5
21990sed 's/^/| /' conftest.$ac_ext >&5
21991
21992 ac_header_preproc=no
21993fi
21994rm -f conftest.err conftest.$ac_ext
21995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21996echo "${ECHO_T}$ac_header_preproc" >&6
21997
21998# So? What about this header?
ac1cb8d3
VS
21999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22000 yes:no: )
a848cd7e
SC
22001 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22002echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22003 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22004echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22005 ac_header_preproc=yes
a848cd7e 22006 ;;
ac1cb8d3 22007 no:yes:* )
a848cd7e
SC
22008 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22009echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22010 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22011echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22012 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22013echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22014 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22015echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22016 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22017echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22018 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22019echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22020 (
22021 cat <<\_ASBOX
ac1cb8d3
VS
22022## ----------------------------------------- ##
22023## Report this to wx-dev@lists.wxwidgets.org ##
22024## ----------------------------------------- ##
a848cd7e
SC
22025_ASBOX
22026 ) |
22027 sed "s/^/$as_me: WARNING: /" >&2
22028 ;;
22029esac
22030echo "$as_me:$LINENO: checking for regex.h" >&5
22031echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22032if test "${ac_cv_header_regex_h+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22034else
22035 ac_cv_header_regex_h=$ac_header_preproc
22036fi
22037echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22038echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22039
22040fi
22041if test $ac_cv_header_regex_h = yes; then
22042
22043for ac_func in regcomp
22044do
22045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22046echo "$as_me:$LINENO: checking for $ac_func" >&5
22047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22048if eval "test \"\${$as_ac_var+set}\" = set"; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050else
22051 cat >conftest.$ac_ext <<_ACEOF
22052/* confdefs.h. */
22053_ACEOF
22054cat confdefs.h >>conftest.$ac_ext
22055cat >>conftest.$ac_ext <<_ACEOF
22056/* end confdefs.h. */
ac1cb8d3
VS
22057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22059#define $ac_func innocuous_$ac_func
22060
a848cd7e
SC
22061/* System header to define __stub macros and hopefully few prototypes,
22062 which can conflict with char $ac_func (); below.
22063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22064 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22065
a848cd7e
SC
22066#ifdef __STDC__
22067# include <limits.h>
22068#else
22069# include <assert.h>
22070#endif
ac1cb8d3
VS
22071
22072#undef $ac_func
22073
a848cd7e
SC
22074/* Override any gcc2 internal prototype to avoid an error. */
22075#ifdef __cplusplus
22076extern "C"
22077{
22078#endif
22079/* We use char because int might match the return type of a gcc2
22080 builtin and then its argument prototype would still apply. */
22081char $ac_func ();
22082/* The GNU C library defines this for functions which it implements
22083 to always fail with ENOSYS. Some functions are actually named
22084 something starting with __ and the normal name is an alias. */
22085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22086choke me
22087#else
22088char (*f) () = $ac_func;
22089#endif
22090#ifdef __cplusplus
22091}
22092#endif
22093
22094int
22095main ()
22096{
22097return f != $ac_func;
22098 ;
22099 return 0;
22100}
22101_ACEOF
22102rm -f conftest.$ac_objext conftest$ac_exeext
22103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22104 (eval $ac_link) 2>conftest.er1
a848cd7e 22105 ac_status=$?
ac1cb8d3
VS
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
a848cd7e
SC
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } &&
07158944 22111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 eval "$as_ac_var=yes"
22124else
22125 echo "$as_me: failed program was:" >&5
22126sed 's/^/| /' conftest.$ac_ext >&5
22127
22128eval "$as_ac_var=no"
22129fi
ac1cb8d3
VS
22130rm -f conftest.err conftest.$ac_objext \
22131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22132fi
22133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22135if test `eval echo '${'$as_ac_var'}'` = yes; then
22136 cat >>confdefs.h <<_ACEOF
22137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22138_ACEOF
22139
22140fi
22141done
22142
22143fi
22144
22145
22146
22147 if test "x$ac_cv_func_regcomp" != "xyes"; then
22148 if test "$wxUSE_REGEX" = "sys" ; then
22149 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22150echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22151 { (exit 1); exit 1; }; }
22152 else
22153 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22154echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22155 wxUSE_REGEX=builtin
22156 fi
22157 else
22158 wxUSE_REGEX=sys
22159 cat >>confdefs.h <<\_ACEOF
22160#define WX_NO_REGEX_ADVANCED 1
22161_ACEOF
22162
22163 fi
22164 fi
22165fi
22166
22167
22168ZLIB_LINK=
22169if test "$wxUSE_ZLIB" != "no" ; then
22170 cat >>confdefs.h <<\_ACEOF
22171#define wxUSE_ZLIB 1
22172_ACEOF
22173
22174
22175 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22176 if test "$USE_DARWIN" = 1; then
22177 system_zlib_h_ok="yes"
22178 else
22179 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22180echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22181if test "${ac_cv_header_zlib_h+set}" = set; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22183else
22184 if test "$cross_compiling" = yes; then
22185 unset ac_cv_header_zlib_h
22186
22187else
22188 cat >conftest.$ac_ext <<_ACEOF
22189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
22194
22195 #include <zlib.h>
22196 #include <stdio.h>
22197
22198 int main()
22199 {
22200 FILE *f=fopen("conftestval", "w");
22201 if (!f) exit(1);
22202 fprintf(f, "%s",
22203 ZLIB_VERSION[0] == '1' &&
22204 (ZLIB_VERSION[2] > '1' ||
22205 (ZLIB_VERSION[2] == '1' &&
22206 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22207 exit(0);
22208 }
22209
22210_ACEOF
22211rm -f conftest$ac_exeext
22212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22213 (eval $ac_link) 2>&5
22214 ac_status=$?
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_header_zlib_h=`cat conftestval`
22223else
22224 echo "$as_me: program exited with status $ac_status" >&5
22225echo "$as_me: failed program was:" >&5
22226sed 's/^/| /' conftest.$ac_ext >&5
22227
22228( exit $ac_status )
22229ac_cv_header_zlib_h=no
22230fi
ac1cb8d3 22231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22232fi
22233
22234fi
22235echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22236echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22237 if test "${ac_cv_header_zlib_h+set}" = set; then
22238 echo "$as_me:$LINENO: checking for zlib.h" >&5
22239echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22240if test "${ac_cv_header_zlib_h+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242fi
22243echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22244echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22245else
22246 # Is the header compilable?
22247echo "$as_me:$LINENO: checking zlib.h usability" >&5
22248echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22249cat >conftest.$ac_ext <<_ACEOF
22250/* confdefs.h. */
22251_ACEOF
22252cat confdefs.h >>conftest.$ac_ext
22253cat >>conftest.$ac_ext <<_ACEOF
22254/* end confdefs.h. */
22255$ac_includes_default
22256#include <zlib.h>
22257_ACEOF
22258rm -f conftest.$ac_objext
22259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22260 (eval $ac_compile) 2>conftest.er1
a848cd7e 22261 ac_status=$?
ac1cb8d3
VS
22262 grep -v '^ *+' conftest.er1 >conftest.err
22263 rm -f conftest.er1
22264 cat conftest.err >&5
a848cd7e
SC
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } &&
07158944 22267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22270 ac_status=$?
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; } &&
22273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_header_compiler=yes
22280else
22281 echo "$as_me: failed program was:" >&5
22282sed 's/^/| /' conftest.$ac_ext >&5
22283
22284ac_header_compiler=no
22285fi
ac1cb8d3 22286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22288echo "${ECHO_T}$ac_header_compiler" >&6
22289
22290# Is the header present?
22291echo "$as_me:$LINENO: checking zlib.h presence" >&5
22292echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22293cat >conftest.$ac_ext <<_ACEOF
22294/* confdefs.h. */
22295_ACEOF
22296cat confdefs.h >>conftest.$ac_ext
22297cat >>conftest.$ac_ext <<_ACEOF
22298/* end confdefs.h. */
22299#include <zlib.h>
22300_ACEOF
22301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } >/dev/null; then
22309 if test -s conftest.err; then
22310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22312 else
22313 ac_cpp_err=
22314 fi
22315else
22316 ac_cpp_err=yes
22317fi
22318if test -z "$ac_cpp_err"; then
22319 ac_header_preproc=yes
22320else
22321 echo "$as_me: failed program was:" >&5
22322sed 's/^/| /' conftest.$ac_ext >&5
22323
22324 ac_header_preproc=no
22325fi
22326rm -f conftest.err conftest.$ac_ext
22327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22328echo "${ECHO_T}$ac_header_preproc" >&6
22329
22330# So? What about this header?
ac1cb8d3
VS
22331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22332 yes:no: )
a848cd7e
SC
22333 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22334echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22335 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22336echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22337 ac_header_preproc=yes
a848cd7e 22338 ;;
ac1cb8d3 22339 no:yes:* )
a848cd7e
SC
22340 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22341echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22342 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22343echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22344 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22345echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22347echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22348 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22349echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22350 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22351echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22352 (
22353 cat <<\_ASBOX
ac1cb8d3
VS
22354## ----------------------------------------- ##
22355## Report this to wx-dev@lists.wxwidgets.org ##
22356## ----------------------------------------- ##
a848cd7e
SC
22357_ASBOX
22358 ) |
22359 sed "s/^/$as_me: WARNING: /" >&2
22360 ;;
22361esac
22362echo "$as_me:$LINENO: checking for zlib.h" >&5
22363echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22364if test "${ac_cv_header_zlib_h+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22366else
22367 ac_cv_header_zlib_h=$ac_header_preproc
22368fi
22369echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22370echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22371
22372fi
22373
22374
22375
22376 system_zlib_h_ok=$ac_cv_header_zlib_h
22377 fi
22378
22379 if test "$system_zlib_h_ok" = "yes"; then
22380 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22381echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22382if test "${ac_cv_lib_z_deflate+set}" = set; then
22383 echo $ECHO_N "(cached) $ECHO_C" >&6
22384else
22385 ac_check_lib_save_LIBS=$LIBS
22386LIBS="-lz $LIBS"
22387cat >conftest.$ac_ext <<_ACEOF
22388/* confdefs.h. */
22389_ACEOF
22390cat confdefs.h >>conftest.$ac_ext
22391cat >>conftest.$ac_ext <<_ACEOF
22392/* end confdefs.h. */
22393
22394/* Override any gcc2 internal prototype to avoid an error. */
22395#ifdef __cplusplus
22396extern "C"
22397#endif
22398/* We use char because int might match the return type of a gcc2
22399 builtin and then its argument prototype would still apply. */
22400char deflate ();
22401int
22402main ()
22403{
22404deflate ();
22405 ;
22406 return 0;
22407}
22408_ACEOF
22409rm -f conftest.$ac_objext conftest$ac_exeext
22410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22411 (eval $ac_link) 2>conftest.er1
a848cd7e 22412 ac_status=$?
ac1cb8d3
VS
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
a848cd7e
SC
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
07158944 22418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22427 ac_status=$?
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22430 ac_cv_lib_z_deflate=yes
22431else
22432 echo "$as_me: failed program was:" >&5
22433sed 's/^/| /' conftest.$ac_ext >&5
22434
22435ac_cv_lib_z_deflate=no
22436fi
ac1cb8d3
VS
22437rm -f conftest.err conftest.$ac_objext \
22438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22439LIBS=$ac_check_lib_save_LIBS
22440fi
22441echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22442echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22443if test $ac_cv_lib_z_deflate = yes; then
22444 ZLIB_LINK=" -lz"
22445fi
22446
22447 fi
22448
22449 if test "x$ZLIB_LINK" = "x" ; then
22450 if test "$wxUSE_ZLIB" = "sys" ; then
22451 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22452echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22453 { (exit 1); exit 1; }; }
22454 else
22455 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22456echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22457 wxUSE_ZLIB=builtin
22458 fi
22459 else
22460 wxUSE_ZLIB=sys
22461 fi
22462 fi
22463fi
22464
22465
22466PNG_LINK=
22467if test "$wxUSE_LIBPNG" != "no" ; then
22468 cat >>confdefs.h <<\_ACEOF
22469#define wxUSE_LIBPNG 1
22470_ACEOF
22471
22472
22473 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22474 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22475echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22476 wxUSE_LIBPNG=sys
22477 fi
22478
22479 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22480 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22481echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22482 wxUSE_LIBPNG=builtin
22483 fi
22484
22485 if test "$wxUSE_MGL" != 1 ; then
22486 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22487 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22488echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22489if test "${ac_cv_header_png_h+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22491else
22492 if test "$cross_compiling" = yes; then
22493 unset ac_cv_header_png_h
22494
22495else
22496 cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502
22503 #include <png.h>
22504 #include <stdio.h>
22505
22506 int main()
22507 {
22508 FILE *f=fopen("conftestval", "w");
22509 if (!f) exit(1);
22510 fprintf(f, "%s",
22511 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22512 exit(0);
22513 }
22514
22515_ACEOF
22516rm -f conftest$ac_exeext
22517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22518 (eval $ac_link) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523 (eval $ac_try) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; }; then
22527 ac_cv_header_png_h=`cat conftestval`
22528else
22529 echo "$as_me: program exited with status $ac_status" >&5
22530echo "$as_me: failed program was:" >&5
22531sed 's/^/| /' conftest.$ac_ext >&5
22532
22533( exit $ac_status )
22534ac_cv_header_png_h=no
22535fi
ac1cb8d3 22536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22537fi
22538
22539fi
22540echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22541echo "${ECHO_T}$ac_cv_header_png_h" >&6
22542 if test "${ac_cv_header_png_h+set}" = set; then
22543 echo "$as_me:$LINENO: checking for png.h" >&5
22544echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22545if test "${ac_cv_header_png_h+set}" = set; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22547fi
22548echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22549echo "${ECHO_T}$ac_cv_header_png_h" >&6
22550else
22551 # Is the header compilable?
22552echo "$as_me:$LINENO: checking png.h usability" >&5
22553echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22554cat >conftest.$ac_ext <<_ACEOF
22555/* confdefs.h. */
22556_ACEOF
22557cat confdefs.h >>conftest.$ac_ext
22558cat >>conftest.$ac_ext <<_ACEOF
22559/* end confdefs.h. */
22560$ac_includes_default
22561#include <png.h>
22562_ACEOF
22563rm -f conftest.$ac_objext
22564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22565 (eval $ac_compile) 2>conftest.er1
a848cd7e 22566 ac_status=$?
ac1cb8d3
VS
22567 grep -v '^ *+' conftest.er1 >conftest.err
22568 rm -f conftest.er1
22569 cat conftest.err >&5
a848cd7e
SC
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } &&
07158944 22572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
22584 ac_header_compiler=yes
22585else
22586 echo "$as_me: failed program was:" >&5
22587sed 's/^/| /' conftest.$ac_ext >&5
22588
22589ac_header_compiler=no
22590fi
ac1cb8d3 22591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22593echo "${ECHO_T}$ac_header_compiler" >&6
22594
22595# Is the header present?
22596echo "$as_me:$LINENO: checking png.h presence" >&5
22597echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22598cat >conftest.$ac_ext <<_ACEOF
22599/* confdefs.h. */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h. */
22604#include <png.h>
22605_ACEOF
22606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22608 ac_status=$?
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } >/dev/null; then
22614 if test -s conftest.err; then
22615 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22617 else
22618 ac_cpp_err=
22619 fi
22620else
22621 ac_cpp_err=yes
22622fi
22623if test -z "$ac_cpp_err"; then
22624 ac_header_preproc=yes
22625else
22626 echo "$as_me: failed program was:" >&5
22627sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ac_header_preproc=no
22630fi
22631rm -f conftest.err conftest.$ac_ext
22632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22633echo "${ECHO_T}$ac_header_preproc" >&6
22634
22635# So? What about this header?
ac1cb8d3
VS
22636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22637 yes:no: )
a848cd7e
SC
22638 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22639echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22640 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22641echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22642 ac_header_preproc=yes
a848cd7e 22643 ;;
ac1cb8d3 22644 no:yes:* )
a848cd7e
SC
22645 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22646echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22647 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22648echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22649 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22650echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22651 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22652echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22653 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22654echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22655 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22656echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22657 (
22658 cat <<\_ASBOX
ac1cb8d3
VS
22659## ----------------------------------------- ##
22660## Report this to wx-dev@lists.wxwidgets.org ##
22661## ----------------------------------------- ##
a848cd7e
SC
22662_ASBOX
22663 ) |
22664 sed "s/^/$as_me: WARNING: /" >&2
22665 ;;
22666esac
22667echo "$as_me:$LINENO: checking for png.h" >&5
22668echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22669if test "${ac_cv_header_png_h+set}" = set; then
22670 echo $ECHO_N "(cached) $ECHO_C" >&6
22671else
22672 ac_cv_header_png_h=$ac_header_preproc
22673fi
22674echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22675echo "${ECHO_T}$ac_cv_header_png_h" >&6
22676
22677fi
22678
22679
22680
22681 if test "$ac_cv_header_png_h" = "yes"; then
22682 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22683echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22684if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22685 echo $ECHO_N "(cached) $ECHO_C" >&6
22686else
22687 ac_check_lib_save_LIBS=$LIBS
22688LIBS="-lpng -lz -lm $LIBS"
22689cat >conftest.$ac_ext <<_ACEOF
22690/* confdefs.h. */
22691_ACEOF
22692cat confdefs.h >>conftest.$ac_ext
22693cat >>conftest.$ac_ext <<_ACEOF
22694/* end confdefs.h. */
22695
22696/* Override any gcc2 internal prototype to avoid an error. */
22697#ifdef __cplusplus
22698extern "C"
22699#endif
22700/* We use char because int might match the return type of a gcc2
22701 builtin and then its argument prototype would still apply. */
22702char png_check_sig ();
22703int
22704main ()
22705{
22706png_check_sig ();
22707 ;
22708 return 0;
22709}
22710_ACEOF
22711rm -f conftest.$ac_objext conftest$ac_exeext
22712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22713 (eval $ac_link) 2>conftest.er1
a848cd7e 22714 ac_status=$?
ac1cb8d3
VS
22715 grep -v '^ *+' conftest.er1 >conftest.err
22716 rm -f conftest.er1
22717 cat conftest.err >&5
a848cd7e
SC
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } &&
07158944 22720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722 (eval $ac_try) 2>&5
22723 ac_status=$?
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); }; } &&
22726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; }; then
22732 ac_cv_lib_png_png_check_sig=yes
22733else
22734 echo "$as_me: failed program was:" >&5
22735sed 's/^/| /' conftest.$ac_ext >&5
22736
22737ac_cv_lib_png_png_check_sig=no
22738fi
ac1cb8d3
VS
22739rm -f conftest.err conftest.$ac_objext \
22740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22741LIBS=$ac_check_lib_save_LIBS
22742fi
22743echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22744echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22745if test $ac_cv_lib_png_png_check_sig = yes; then
22746 PNG_LINK=" -lpng -lz"
22747fi
22748
22749 fi
22750
22751 if test "x$PNG_LINK" = "x" ; then
22752 if test "$wxUSE_LIBPNG" = "sys" ; then
22753 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22754echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22755 { (exit 1); exit 1; }; }
22756 else
22757 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22758echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22759 wxUSE_LIBPNG=builtin
22760 fi
22761 else
22762 wxUSE_LIBPNG=sys
22763 fi
22764 fi
22765 fi
22766
22767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22768fi
22769
22770
22771JPEG_LINK=
22772if test "$wxUSE_LIBJPEG" != "no" ; then
22773 cat >>confdefs.h <<\_ACEOF
22774#define wxUSE_LIBJPEG 1
22775_ACEOF
22776
22777
22778 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22779 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22780echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22781 wxUSE_LIBJPEG=sys
22782 fi
22783
22784 if test "$wxUSE_MGL" != 1 ; then
22785 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22786 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22787echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22788 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22790else
22791 cat >conftest.$ac_ext <<_ACEOF
22792/* confdefs.h. */
22793_ACEOF
22794cat confdefs.h >>conftest.$ac_ext
22795cat >>conftest.$ac_ext <<_ACEOF
22796/* end confdefs.h. */
22797
22798 #undef HAVE_STDLIB_H
22799 #include <stdio.h>
22800 #include <jpeglib.h>
22801
22802int
22803main ()
22804{
22805
22806
22807 ;
22808 return 0;
22809}
22810_ACEOF
22811rm -f conftest.$ac_objext
22812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22813 (eval $ac_compile) 2>conftest.er1
a848cd7e 22814 ac_status=$?
ac1cb8d3
VS
22815 grep -v '^ *+' conftest.er1 >conftest.err
22816 rm -f conftest.er1
22817 cat conftest.err >&5
a848cd7e
SC
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
07158944 22820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; } &&
22826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 ac_cv_header_jpeglib_h=yes
22833else
22834 echo "$as_me: failed program was:" >&5
22835sed 's/^/| /' conftest.$ac_ext >&5
22836
22837ac_cv_header_jpeglib_h=no
22838
22839fi
ac1cb8d3 22840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22841
22842fi
22843
22844 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22845echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22846
22847 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22848 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22849echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22850if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22852else
22853 ac_check_lib_save_LIBS=$LIBS
22854LIBS="-ljpeg $LIBS"
22855cat >conftest.$ac_ext <<_ACEOF
22856/* confdefs.h. */
22857_ACEOF
22858cat confdefs.h >>conftest.$ac_ext
22859cat >>conftest.$ac_ext <<_ACEOF
22860/* end confdefs.h. */
22861
22862/* Override any gcc2 internal prototype to avoid an error. */
22863#ifdef __cplusplus
22864extern "C"
22865#endif
22866/* We use char because int might match the return type of a gcc2
22867 builtin and then its argument prototype would still apply. */
22868char jpeg_read_header ();
22869int
22870main ()
22871{
22872jpeg_read_header ();
22873 ;
22874 return 0;
22875}
22876_ACEOF
22877rm -f conftest.$ac_objext conftest$ac_exeext
22878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22879 (eval $ac_link) 2>conftest.er1
a848cd7e 22880 ac_status=$?
ac1cb8d3
VS
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
a848cd7e
SC
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
07158944 22886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; } &&
22892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 ac_cv_lib_jpeg_jpeg_read_header=yes
22899else
22900 echo "$as_me: failed program was:" >&5
22901sed 's/^/| /' conftest.$ac_ext >&5
22902
22903ac_cv_lib_jpeg_jpeg_read_header=no
22904fi
ac1cb8d3
VS
22905rm -f conftest.err conftest.$ac_objext \
22906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22907LIBS=$ac_check_lib_save_LIBS
22908fi
22909echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22910echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22911if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22912 JPEG_LINK=" -ljpeg"
22913fi
22914
22915 fi
22916
22917 if test "x$JPEG_LINK" = "x" ; then
22918 if test "$wxUSE_LIBJPEG" = "sys" ; then
22919 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22920echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22921 { (exit 1); exit 1; }; }
22922 else
22923 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22924echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22925 wxUSE_LIBJPEG=builtin
22926 fi
22927 else
22928 wxUSE_LIBJPEG=sys
22929 fi
22930 fi
22931 fi
22932fi
22933
22934
22935TIFF_LINK=
22936TIFF_PREREQ_LINKS=-lm
22937if test "$wxUSE_LIBTIFF" != "no" ; then
22938 cat >>confdefs.h <<\_ACEOF
22939#define wxUSE_LIBTIFF 1
22940_ACEOF
22941
22942
22943 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22944 if test "$wxUSE_LIBJPEG" = "sys"; then
22945 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22946 fi
22947 if test "$wxUSE_ZLIB" = "sys"; then
22948 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22949 fi
22950 if test "${ac_cv_header_tiffio_h+set}" = set; then
22951 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22952echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22953if test "${ac_cv_header_tiffio_h+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955fi
22956echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22957echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22958else
22959 # Is the header compilable?
22960echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22961echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22962cat >conftest.$ac_ext <<_ACEOF
22963/* confdefs.h. */
22964_ACEOF
22965cat confdefs.h >>conftest.$ac_ext
22966cat >>conftest.$ac_ext <<_ACEOF
22967/* end confdefs.h. */
22968$ac_includes_default
22969#include <tiffio.h>
22970_ACEOF
22971rm -f conftest.$ac_objext
22972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22973 (eval $ac_compile) 2>conftest.er1
a848cd7e 22974 ac_status=$?
ac1cb8d3
VS
22975 grep -v '^ *+' conftest.er1 >conftest.err
22976 rm -f conftest.er1
22977 cat conftest.err >&5
a848cd7e
SC
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
07158944 22980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; } &&
22986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 ac_header_compiler=yes
22993else
22994 echo "$as_me: failed program was:" >&5
22995sed 's/^/| /' conftest.$ac_ext >&5
22996
22997ac_header_compiler=no
22998fi
ac1cb8d3 22999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23000echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23001echo "${ECHO_T}$ac_header_compiler" >&6
23002
23003# Is the header present?
23004echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23005echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23006cat >conftest.$ac_ext <<_ACEOF
23007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
23012#include <tiffio.h>
23013_ACEOF
23014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } >/dev/null; then
23022 if test -s conftest.err; then
23023 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23025 else
23026 ac_cpp_err=
23027 fi
23028else
23029 ac_cpp_err=yes
23030fi
23031if test -z "$ac_cpp_err"; then
23032 ac_header_preproc=yes
23033else
23034 echo "$as_me: failed program was:" >&5
23035sed 's/^/| /' conftest.$ac_ext >&5
23036
23037 ac_header_preproc=no
23038fi
23039rm -f conftest.err conftest.$ac_ext
23040echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23041echo "${ECHO_T}$ac_header_preproc" >&6
23042
23043# So? What about this header?
ac1cb8d3
VS
23044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23045 yes:no: )
a848cd7e
SC
23046 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23047echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23048 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23049echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23050 ac_header_preproc=yes
a848cd7e 23051 ;;
ac1cb8d3 23052 no:yes:* )
a848cd7e
SC
23053 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23054echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23055 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23056echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23057 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23058echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23060echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23061 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23062echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23063 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23064echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23065 (
23066 cat <<\_ASBOX
ac1cb8d3
VS
23067## ----------------------------------------- ##
23068## Report this to wx-dev@lists.wxwidgets.org ##
23069## ----------------------------------------- ##
a848cd7e
SC
23070_ASBOX
23071 ) |
23072 sed "s/^/$as_me: WARNING: /" >&2
23073 ;;
23074esac
23075echo "$as_me:$LINENO: checking for tiffio.h" >&5
23076echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23077if test "${ac_cv_header_tiffio_h+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23079else
23080 ac_cv_header_tiffio_h=$ac_header_preproc
23081fi
23082echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23083echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23084
23085fi
23086if test $ac_cv_header_tiffio_h = yes; then
23087
23088 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23089echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23090if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23092else
23093 ac_check_lib_save_LIBS=$LIBS
23094LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23095cat >conftest.$ac_ext <<_ACEOF
23096/* confdefs.h. */
23097_ACEOF
23098cat confdefs.h >>conftest.$ac_ext
23099cat >>conftest.$ac_ext <<_ACEOF
23100/* end confdefs.h. */
23101
23102/* Override any gcc2 internal prototype to avoid an error. */
23103#ifdef __cplusplus
23104extern "C"
23105#endif
23106/* We use char because int might match the return type of a gcc2
23107 builtin and then its argument prototype would still apply. */
23108char TIFFError ();
23109int
23110main ()
23111{
23112TIFFError ();
23113 ;
23114 return 0;
23115}
23116_ACEOF
23117rm -f conftest.$ac_objext conftest$ac_exeext
23118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23119 (eval $ac_link) 2>conftest.er1
a848cd7e 23120 ac_status=$?
ac1cb8d3
VS
23121 grep -v '^ *+' conftest.er1 >conftest.err
23122 rm -f conftest.er1
23123 cat conftest.err >&5
a848cd7e
SC
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } &&
07158944 23126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; } &&
23132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 ac_cv_lib_tiff_TIFFError=yes
23139else
23140 echo "$as_me: failed program was:" >&5
23141sed 's/^/| /' conftest.$ac_ext >&5
23142
23143ac_cv_lib_tiff_TIFFError=no
23144fi
ac1cb8d3
VS
23145rm -f conftest.err conftest.$ac_objext \
23146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23147LIBS=$ac_check_lib_save_LIBS
23148fi
23149echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23150echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23151if test $ac_cv_lib_tiff_TIFFError = yes; then
23152 TIFF_LINK=" -ltiff"
23153fi
23154
23155
23156
23157fi
23158
23159
23160
23161 if test "x$TIFF_LINK" = "x" ; then
23162 if test "$wxUSE_LIBTIFF" = "sys" ; then
23163 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23164echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23165 { (exit 1); exit 1; }; }
23166 else
23167 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23168echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23169 wxUSE_LIBTIFF=builtin
23170 fi
23171 else
23172 wxUSE_LIBTIFF=sys
23173 fi
23174 fi
23175fi
23176
23177
23178if test "$wxUSE_EXPAT" != "no"; then
23179 wxUSE_XML=yes
23180 cat >>confdefs.h <<\_ACEOF
23181#define wxUSE_EXPAT 1
23182_ACEOF
23183
23184 cat >>confdefs.h <<\_ACEOF
23185#define wxUSE_XML 1
23186_ACEOF
23187
23188
23189 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23190 if test "${ac_cv_header_expat_h+set}" = set; then
23191 echo "$as_me:$LINENO: checking for expat.h" >&5
23192echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23193if test "${ac_cv_header_expat_h+set}" = set; then
23194 echo $ECHO_N "(cached) $ECHO_C" >&6
23195fi
23196echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23197echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23198else
23199 # Is the header compilable?
23200echo "$as_me:$LINENO: checking expat.h usability" >&5
23201echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23202cat >conftest.$ac_ext <<_ACEOF
23203/* confdefs.h. */
23204_ACEOF
23205cat confdefs.h >>conftest.$ac_ext
23206cat >>conftest.$ac_ext <<_ACEOF
23207/* end confdefs.h. */
23208$ac_includes_default
23209#include <expat.h>
23210_ACEOF
23211rm -f conftest.$ac_objext
23212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23213 (eval $ac_compile) 2>conftest.er1
a848cd7e 23214 ac_status=$?
ac1cb8d3
VS
23215 grep -v '^ *+' conftest.er1 >conftest.err
23216 rm -f conftest.er1
23217 cat conftest.err >&5
a848cd7e
SC
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } &&
07158944 23220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23223 ac_status=$?
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; } &&
23226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_header_compiler=yes
23233else
23234 echo "$as_me: failed program was:" >&5
23235sed 's/^/| /' conftest.$ac_ext >&5
23236
23237ac_header_compiler=no
23238fi
ac1cb8d3 23239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23240echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23241echo "${ECHO_T}$ac_header_compiler" >&6
23242
23243# Is the header present?
23244echo "$as_me:$LINENO: checking expat.h presence" >&5
23245echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23246cat >conftest.$ac_ext <<_ACEOF
23247/* confdefs.h. */
23248_ACEOF
23249cat confdefs.h >>conftest.$ac_ext
23250cat >>conftest.$ac_ext <<_ACEOF
23251/* end confdefs.h. */
23252#include <expat.h>
23253_ACEOF
23254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23256 ac_status=$?
23257 grep -v '^ *+' conftest.er1 >conftest.err
23258 rm -f conftest.er1
23259 cat conftest.err >&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } >/dev/null; then
23262 if test -s conftest.err; then
23263 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23265 else
23266 ac_cpp_err=
23267 fi
23268else
23269 ac_cpp_err=yes
23270fi
23271if test -z "$ac_cpp_err"; then
23272 ac_header_preproc=yes
23273else
23274 echo "$as_me: failed program was:" >&5
23275sed 's/^/| /' conftest.$ac_ext >&5
23276
23277 ac_header_preproc=no
23278fi
23279rm -f conftest.err conftest.$ac_ext
23280echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23281echo "${ECHO_T}$ac_header_preproc" >&6
23282
23283# So? What about this header?
ac1cb8d3
VS
23284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23285 yes:no: )
a848cd7e
SC
23286 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23287echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23288 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23289echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23290 ac_header_preproc=yes
a848cd7e 23291 ;;
ac1cb8d3 23292 no:yes:* )
a848cd7e
SC
23293 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23294echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23295 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23296echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23297 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23298echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23300echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23301 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23302echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23303 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23304echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23305 (
23306 cat <<\_ASBOX
ac1cb8d3
VS
23307## ----------------------------------------- ##
23308## Report this to wx-dev@lists.wxwidgets.org ##
23309## ----------------------------------------- ##
a848cd7e
SC
23310_ASBOX
23311 ) |
23312 sed "s/^/$as_me: WARNING: /" >&2
23313 ;;
23314esac
23315echo "$as_me:$LINENO: checking for expat.h" >&5
23316echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23317if test "${ac_cv_header_expat_h+set}" = set; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23319else
23320 ac_cv_header_expat_h=$ac_header_preproc
23321fi
23322echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23323echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23324
23325fi
23326if test $ac_cv_header_expat_h = yes; then
23327 found_expat_h=1
23328fi
23329
23330
23331 if test "x$found_expat_h" = "x1"; then
23332 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23333echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23334if test "${wx_cv_expat_is_not_broken+set}" = set; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
23336else
23337
23338
23339
23340 ac_ext=cc
23341ac_cpp='$CXXCPP $CPPFLAGS'
23342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23345
23346 cat >conftest.$ac_ext <<_ACEOF
23347/* confdefs.h. */
23348_ACEOF
23349cat confdefs.h >>conftest.$ac_ext
23350cat >>conftest.$ac_ext <<_ACEOF
23351/* end confdefs.h. */
23352#include <expat.h>
23353int
23354main ()
23355{
23356
23357 ;
23358 return 0;
23359}
23360_ACEOF
23361rm -f conftest.$ac_objext
23362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23363 (eval $ac_compile) 2>conftest.er1
a848cd7e 23364 ac_status=$?
ac1cb8d3
VS
23365 grep -v '^ *+' conftest.er1 >conftest.err
23366 rm -f conftest.er1
23367 cat conftest.err >&5
a848cd7e
SC
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); } &&
07158944 23370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23372 (eval $ac_try) 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); }; } &&
23376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23379 ac_status=$?
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; }; then
23382 wx_cv_expat_is_not_broken=yes
23383else
23384 echo "$as_me: failed program was:" >&5
23385sed 's/^/| /' conftest.$ac_ext >&5
23386
23387wx_cv_expat_is_not_broken=no
23388
23389fi
ac1cb8d3 23390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23391 ac_ext=c
23392ac_cpp='$CPP $CPPFLAGS'
23393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23395ac_compiler_gnu=$ac_cv_c_compiler_gnu
23396
23397
23398
23399fi
23400echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23401echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23402 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23403 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23404echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23405if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23406 echo $ECHO_N "(cached) $ECHO_C" >&6
23407else
23408 ac_check_lib_save_LIBS=$LIBS
23409LIBS="-lexpat $LIBS"
23410cat >conftest.$ac_ext <<_ACEOF
23411/* confdefs.h. */
23412_ACEOF
23413cat confdefs.h >>conftest.$ac_ext
23414cat >>conftest.$ac_ext <<_ACEOF
23415/* end confdefs.h. */
23416
23417/* Override any gcc2 internal prototype to avoid an error. */
23418#ifdef __cplusplus
23419extern "C"
23420#endif
23421/* We use char because int might match the return type of a gcc2
23422 builtin and then its argument prototype would still apply. */
23423char XML_ParserCreate ();
23424int
23425main ()
23426{
23427XML_ParserCreate ();
23428 ;
23429 return 0;
23430}
23431_ACEOF
23432rm -f conftest.$ac_objext conftest$ac_exeext
23433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23434 (eval $ac_link) 2>conftest.er1
a848cd7e 23435 ac_status=$?
ac1cb8d3
VS
23436 grep -v '^ *+' conftest.er1 >conftest.err
23437 rm -f conftest.er1
23438 cat conftest.err >&5
a848cd7e
SC
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } &&
07158944 23441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443 (eval $ac_try) 2>&5
23444 ac_status=$?
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); }; } &&
23447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; }; then
23453 ac_cv_lib_expat_XML_ParserCreate=yes
23454else
23455 echo "$as_me: failed program was:" >&5
23456sed 's/^/| /' conftest.$ac_ext >&5
23457
23458ac_cv_lib_expat_XML_ParserCreate=no
23459fi
ac1cb8d3
VS
23460rm -f conftest.err conftest.$ac_objext \
23461 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23462LIBS=$ac_check_lib_save_LIBS
23463fi
23464echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23465echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23466if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23467 EXPAT_LINK=" -lexpat"
23468fi
23469
23470 fi
23471 fi
23472 if test "x$EXPAT_LINK" = "x" ; then
23473 if test "$wxUSE_EXPAT" = "sys" ; then
23474 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23475echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23476 { (exit 1); exit 1; }; }
23477 else
23478 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23479echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23480 wxUSE_EXPAT=builtin
23481 fi
23482 else
23483 wxUSE_EXPAT=sys
23484 fi
23485 fi
23486 if test "$wxUSE_EXPAT" = "builtin" ; then
23487
23488
23489subdirs="$subdirs src/expat"
23490
23491 fi
23492fi
23493
23494
23495
23496if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23497 if test "${ac_cv_header_mspack_h+set}" = set; then
23498 echo "$as_me:$LINENO: checking for mspack.h" >&5
23499echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23500if test "${ac_cv_header_mspack_h+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23502fi
23503echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23504echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23505else
23506 # Is the header compilable?
23507echo "$as_me:$LINENO: checking mspack.h usability" >&5
23508echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23509cat >conftest.$ac_ext <<_ACEOF
23510/* confdefs.h. */
23511_ACEOF
23512cat confdefs.h >>conftest.$ac_ext
23513cat >>conftest.$ac_ext <<_ACEOF
23514/* end confdefs.h. */
23515$ac_includes_default
23516#include <mspack.h>
23517_ACEOF
23518rm -f conftest.$ac_objext
23519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23520 (eval $ac_compile) 2>conftest.er1
a848cd7e 23521 ac_status=$?
ac1cb8d3
VS
23522 grep -v '^ *+' conftest.er1 >conftest.err
23523 rm -f conftest.er1
23524 cat conftest.err >&5
a848cd7e
SC
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); } &&
07158944 23527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23529 (eval $ac_try) 2>&5
23530 ac_status=$?
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); }; } &&
23533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; }; then
23539 ac_header_compiler=yes
23540else
23541 echo "$as_me: failed program was:" >&5
23542sed 's/^/| /' conftest.$ac_ext >&5
23543
23544ac_header_compiler=no
23545fi
ac1cb8d3 23546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23548echo "${ECHO_T}$ac_header_compiler" >&6
23549
23550# Is the header present?
23551echo "$as_me:$LINENO: checking mspack.h presence" >&5
23552echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23553cat >conftest.$ac_ext <<_ACEOF
23554/* confdefs.h. */
23555_ACEOF
23556cat confdefs.h >>conftest.$ac_ext
23557cat >>conftest.$ac_ext <<_ACEOF
23558/* end confdefs.h. */
23559#include <mspack.h>
23560_ACEOF
23561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23563 ac_status=$?
23564 grep -v '^ *+' conftest.er1 >conftest.err
23565 rm -f conftest.er1
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } >/dev/null; then
23569 if test -s conftest.err; then
23570 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23572 else
23573 ac_cpp_err=
23574 fi
23575else
23576 ac_cpp_err=yes
23577fi
23578if test -z "$ac_cpp_err"; then
23579 ac_header_preproc=yes
23580else
23581 echo "$as_me: failed program was:" >&5
23582sed 's/^/| /' conftest.$ac_ext >&5
23583
23584 ac_header_preproc=no
23585fi
23586rm -f conftest.err conftest.$ac_ext
23587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23588echo "${ECHO_T}$ac_header_preproc" >&6
23589
23590# So? What about this header?
ac1cb8d3
VS
23591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23592 yes:no: )
a848cd7e
SC
23593 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23594echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23595 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23596echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23597 ac_header_preproc=yes
a848cd7e 23598 ;;
ac1cb8d3 23599 no:yes:* )
a848cd7e
SC
23600 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23601echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23602 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23603echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23604 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23605echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23606 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23607echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23608 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23609echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23610 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23611echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23612 (
23613 cat <<\_ASBOX
ac1cb8d3
VS
23614## ----------------------------------------- ##
23615## Report this to wx-dev@lists.wxwidgets.org ##
23616## ----------------------------------------- ##
a848cd7e
SC
23617_ASBOX
23618 ) |
23619 sed "s/^/$as_me: WARNING: /" >&2
23620 ;;
23621esac
23622echo "$as_me:$LINENO: checking for mspack.h" >&5
23623echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23624if test "${ac_cv_header_mspack_h+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626else
23627 ac_cv_header_mspack_h=$ac_header_preproc
23628fi
23629echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23630echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23631
23632fi
23633if test $ac_cv_header_mspack_h = yes; then
23634 found_mspack_h=1
23635fi
23636
23637
23638 if test "x$found_mspack_h" = "x1"; then
23639 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23640echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23641if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
23643else
23644 ac_check_lib_save_LIBS=$LIBS
23645LIBS="-lmspack $LIBS"
23646cat >conftest.$ac_ext <<_ACEOF
23647/* confdefs.h. */
23648_ACEOF
23649cat confdefs.h >>conftest.$ac_ext
23650cat >>conftest.$ac_ext <<_ACEOF
23651/* end confdefs.h. */
23652
23653/* Override any gcc2 internal prototype to avoid an error. */
23654#ifdef __cplusplus
23655extern "C"
23656#endif
23657/* We use char because int might match the return type of a gcc2
23658 builtin and then its argument prototype would still apply. */
23659char mspack_create_chm_decompressor ();
23660int
23661main ()
23662{
23663mspack_create_chm_decompressor ();
23664 ;
23665 return 0;
23666}
23667_ACEOF
23668rm -f conftest.$ac_objext conftest$ac_exeext
23669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23670 (eval $ac_link) 2>conftest.er1
a848cd7e 23671 ac_status=$?
ac1cb8d3
VS
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
a848cd7e
SC
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } &&
07158944 23677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23690else
23691 echo "$as_me: failed program was:" >&5
23692sed 's/^/| /' conftest.$ac_ext >&5
23693
23694ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23695fi
ac1cb8d3
VS
23696rm -f conftest.err conftest.$ac_objext \
23697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23698LIBS=$ac_check_lib_save_LIBS
23699fi
23700echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23701echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23702if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23703 MSPACK_LINK=" -lmspack"
23704fi
23705
23706 fi
23707 if test "x$MSPACK_LINK" = "x" ; then
23708 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23709 fi
23710fi
23711
23712if test "$wxUSE_LIBMSPACK" != "no"; then
23713 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23714#define wxUSE_LIBMSPACK 1
23715_ACEOF
23716
a848cd7e
SC
23717fi
23718
23719
23720
23721AFMINSTALL=
23722WIN32INSTALL=
23723
23724TOOLKIT=
23725TOOLKIT_INCLUDE=
23726WIDGET_SET=
23727
23728if test "$USE_WIN32" = 1 ; then
23729
23730for ac_header in w32api.h
23731do
23732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23733if eval "test \"\${$as_ac_Header+set}\" = set"; then
23734 echo "$as_me:$LINENO: checking for $ac_header" >&5
23735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23736if eval "test \"\${$as_ac_Header+set}\" = set"; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23738fi
23739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23741else
23742 # Is the header compilable?
23743echo "$as_me:$LINENO: checking $ac_header usability" >&5
23744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23745cat >conftest.$ac_ext <<_ACEOF
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
23751$ac_includes_default
23752#include <$ac_header>
23753_ACEOF
23754rm -f conftest.$ac_objext
23755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23756 (eval $ac_compile) 2>conftest.er1
a848cd7e 23757 ac_status=$?
ac1cb8d3
VS
23758 grep -v '^ *+' conftest.er1 >conftest.err
23759 rm -f conftest.er1
23760 cat conftest.err >&5
a848cd7e
SC
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } &&
07158944 23763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23766 ac_status=$?
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_header_compiler=yes
23776else
23777 echo "$as_me: failed program was:" >&5
23778sed 's/^/| /' conftest.$ac_ext >&5
23779
23780ac_header_compiler=no
23781fi
ac1cb8d3 23782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23784echo "${ECHO_T}$ac_header_compiler" >&6
23785
23786# Is the header present?
23787echo "$as_me:$LINENO: checking $ac_header presence" >&5
23788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23789cat >conftest.$ac_ext <<_ACEOF
23790/* confdefs.h. */
23791_ACEOF
23792cat confdefs.h >>conftest.$ac_ext
23793cat >>conftest.$ac_ext <<_ACEOF
23794/* end confdefs.h. */
23795#include <$ac_header>
23796_ACEOF
23797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } >/dev/null; then
23805 if test -s conftest.err; then
23806 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23808 else
23809 ac_cpp_err=
23810 fi
23811else
23812 ac_cpp_err=yes
23813fi
23814if test -z "$ac_cpp_err"; then
23815 ac_header_preproc=yes
23816else
23817 echo "$as_me: failed program was:" >&5
23818sed 's/^/| /' conftest.$ac_ext >&5
23819
23820 ac_header_preproc=no
23821fi
23822rm -f conftest.err conftest.$ac_ext
23823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23824echo "${ECHO_T}$ac_header_preproc" >&6
23825
23826# So? What about this header?
ac1cb8d3
VS
23827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23828 yes:no: )
a848cd7e
SC
23829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23833 ac_header_preproc=yes
a848cd7e 23834 ;;
ac1cb8d3 23835 no:yes:* )
a848cd7e
SC
23836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23848 (
23849 cat <<\_ASBOX
ac1cb8d3
VS
23850## ----------------------------------------- ##
23851## Report this to wx-dev@lists.wxwidgets.org ##
23852## ----------------------------------------- ##
a848cd7e
SC
23853_ASBOX
23854 ) |
23855 sed "s/^/$as_me: WARNING: /" >&2
23856 ;;
23857esac
23858echo "$as_me:$LINENO: checking for $ac_header" >&5
23859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23860if eval "test \"\${$as_ac_Header+set}\" = set"; then
23861 echo $ECHO_N "(cached) $ECHO_C" >&6
23862else
ac1cb8d3 23863 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23864fi
23865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23867
23868fi
23869if test `eval echo '${'$as_ac_Header'}'` = yes; then
23870 cat >>confdefs.h <<_ACEOF
23871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23872_ACEOF
23873
23874fi
23875
23876done
23877
23878 if test "${ac_cv_header_windows_h+set}" = set; then
23879 echo "$as_me:$LINENO: checking for windows.h" >&5
23880echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23881if test "${ac_cv_header_windows_h+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23883fi
23884echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23885echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23886else
23887 # Is the header compilable?
23888echo "$as_me:$LINENO: checking windows.h usability" >&5
23889echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23890cat >conftest.$ac_ext <<_ACEOF
23891/* confdefs.h. */
23892_ACEOF
23893cat confdefs.h >>conftest.$ac_ext
23894cat >>conftest.$ac_ext <<_ACEOF
23895/* end confdefs.h. */
23896$ac_includes_default
23897#include <windows.h>
23898_ACEOF
23899rm -f conftest.$ac_objext
23900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23901 (eval $ac_compile) 2>conftest.er1
a848cd7e 23902 ac_status=$?
ac1cb8d3
VS
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
a848cd7e
SC
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } &&
07158944 23908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910 (eval $ac_try) 2>&5
23911 ac_status=$?
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); }; } &&
23914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; }; then
23920 ac_header_compiler=yes
23921else
23922 echo "$as_me: failed program was:" >&5
23923sed 's/^/| /' conftest.$ac_ext >&5
23924
23925ac_header_compiler=no
23926fi
ac1cb8d3 23927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23929echo "${ECHO_T}$ac_header_compiler" >&6
23930
23931# Is the header present?
23932echo "$as_me:$LINENO: checking windows.h presence" >&5
23933echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23934cat >conftest.$ac_ext <<_ACEOF
23935/* confdefs.h. */
23936_ACEOF
23937cat confdefs.h >>conftest.$ac_ext
23938cat >>conftest.$ac_ext <<_ACEOF
23939/* end confdefs.h. */
23940#include <windows.h>
23941_ACEOF
23942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } >/dev/null; then
23950 if test -s conftest.err; then
23951 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23953 else
23954 ac_cpp_err=
23955 fi
23956else
23957 ac_cpp_err=yes
23958fi
23959if test -z "$ac_cpp_err"; then
23960 ac_header_preproc=yes
23961else
23962 echo "$as_me: failed program was:" >&5
23963sed 's/^/| /' conftest.$ac_ext >&5
23964
23965 ac_header_preproc=no
23966fi
23967rm -f conftest.err conftest.$ac_ext
23968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23969echo "${ECHO_T}$ac_header_preproc" >&6
23970
23971# So? What about this header?
ac1cb8d3
VS
23972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23973 yes:no: )
a848cd7e
SC
23974 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23975echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23976 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23977echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23978 ac_header_preproc=yes
a848cd7e 23979 ;;
ac1cb8d3 23980 no:yes:* )
a848cd7e
SC
23981 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23982echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23983 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23984echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23985 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23986echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23987 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23988echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23989 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23990echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23991 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23992echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23993 (
23994 cat <<\_ASBOX
ac1cb8d3
VS
23995## ----------------------------------------- ##
23996## Report this to wx-dev@lists.wxwidgets.org ##
23997## ----------------------------------------- ##
a848cd7e
SC
23998_ASBOX
23999 ) |
24000 sed "s/^/$as_me: WARNING: /" >&2
24001 ;;
24002esac
24003echo "$as_me:$LINENO: checking for windows.h" >&5
24004echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24005if test "${ac_cv_header_windows_h+set}" = set; then
24006 echo $ECHO_N "(cached) $ECHO_C" >&6
24007else
24008 ac_cv_header_windows_h=$ac_header_preproc
24009fi
24010echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24011echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24012
24013fi
24014if test $ac_cv_header_windows_h = yes; then
24015 :
24016else
24017
24018 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24019echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24020 { (exit 1); exit 1; }; }
24021
24022fi
24023
24024
24025
24026 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24027
24028 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24029 LIBS="$LIBS -loleacc"
24030 fi
24031
24032 case "${host}" in
24033 *-*-cygwin* )
24034 LIBS="$LIBS -lkernel32 -luser32"
24035 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24036 esac
24037
24038 if test "$wxUSE_ODBC" = "sys" ; then
24039 wxUSE_ODBC = "yes"
24040 fi
24041 if test "$wxUSE_ODBC" = "yes" ; then
24042 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24043 cat >>confdefs.h <<\_ACEOF
24044#define wxUSE_ODBC 1
24045_ACEOF
24046
24047 fi
24048
24049 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24050 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24051
24052 WIN32INSTALL=win32install
24053fi
24054
24055if test "$wxUSE_GUI" = "yes"; then
24056 USE_GUI=1
24057
24058 GUI_TK_LIBRARY=
24059
24060 WXGTK12=
24061 WXGTK127=
24062 WXGTK20=
24063 WXGPE=
24064
207bc66c
RN
24065 if test "$wxUSE_COCOA" = 1 ; then
24066 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24067 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24068echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24069 wxUSE_PRINTING_ARCHITECTURE=no
24070 fi
24071 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24072 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24073echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24074 wxUSE_DRAG_AND_DROP=no
24075 fi
24076 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24077 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24078echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24079 wxUSE_DRAGIMAGE=no
24080 fi
24081 fi
24082
a848cd7e
SC
24083 if test "$wxUSE_MSW" = 1 ; then
24084 TOOLKIT=MSW
24085 GUIDIST=MSW_DIST
24086
ceec2216 24087 case "${host}" in
a848cd7e
SC
24088 *-*-mingw32* )
24089 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24090 esac
24091 fi
24092
24093 if test "$wxUSE_GTK" = 1; then
24094 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24095echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24096
24097 gtk_version_cached=1
24098 if test "${wx_cv_lib_gtk+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100else
24101
24102 gtk_version_cached=0
24103 echo "$as_me:$LINENO: result: " >&5
24104echo "${ECHO_T}" >&6
24105
24106 GTK_MODULES=
24107 if test "$wxUSE_THREADS" = "yes"; then
24108 GTK_MODULES=gthread
24109 fi
24110
24111 wx_cv_lib_gtk=
24112 if test "x$wxUSE_GTK2" = "xyes"; then
24113 # Check whether --enable-gtktest or --disable-gtktest was given.
24114if test "${enable_gtktest+set}" = set; then
24115 enableval="$enable_gtktest"
24116
24117else
24118 enable_gtktest=yes
24119fi;
24120
24121 pkg_config_args=gtk+-2.0
24122 for module in . $GTK_MODULES
24123 do
24124 case "$module" in
24125 gthread)
24126 pkg_config_args="$pkg_config_args gthread-2.0"
24127 ;;
24128 esac
24129 done
24130
24131 no_gtk=""
24132
24133 # Extract the first word of "pkg-config", so it can be a program name with args.
24134set dummy pkg-config; ac_word=$2
24135echo "$as_me:$LINENO: checking for $ac_word" >&5
24136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24137if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24138 echo $ECHO_N "(cached) $ECHO_C" >&6
24139else
24140 case $PKG_CONFIG in
24141 [\\/]* | ?:[\\/]*)
24142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24143 ;;
24144 *)
24145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24146for as_dir in $PATH
24147do
24148 IFS=$as_save_IFS
24149 test -z "$as_dir" && as_dir=.
24150 for ac_exec_ext in '' $ac_executable_extensions; do
24151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24152 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24154 break 2
24155 fi
24156done
24157done
24158
24159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24160 ;;
24161esac
24162fi
24163PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24164
24165if test -n "$PKG_CONFIG"; then
24166 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24167echo "${ECHO_T}$PKG_CONFIG" >&6
24168else
24169 echo "$as_me:$LINENO: result: no" >&5
24170echo "${ECHO_T}no" >&6
24171fi
24172
24173
24174 if test x$PKG_CONFIG != xno ; then
24175 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24176 :
24177 else
c2218763 24178 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24179 no_gtk=yes
24180 PKG_CONFIG=no
24181 fi
24182 else
24183 no_gtk=yes
24184 fi
24185
24186 min_gtk_version=2.0.0
24187 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24188echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24189
24190 if test x$PKG_CONFIG != xno ; then
24191 ## don't try to run the test against uninstalled libtool libs
24192 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24193 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24194 enable_gtktest=no
24195 fi
24196
24197 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24198 :
24199 else
24200 no_gtk=yes
24201 fi
24202 fi
24203
24204 if test x"$no_gtk" = x ; then
24205 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24206 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24207 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24208 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24209 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24211 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24213 if test "x$enable_gtktest" = "xyes" ; then
24214 ac_save_CFLAGS="$CFLAGS"
24215 ac_save_LIBS="$LIBS"
24216 CFLAGS="$CFLAGS $GTK_CFLAGS"
24217 LIBS="$GTK_LIBS $LIBS"
24218 rm -f conf.gtktest
24219 if test "$cross_compiling" = yes; then
24220 echo $ac_n "cross compiling; assumed OK... $ac_c"
24221else
24222 cat >conftest.$ac_ext <<_ACEOF
24223/* confdefs.h. */
24224_ACEOF
24225cat confdefs.h >>conftest.$ac_ext
24226cat >>conftest.$ac_ext <<_ACEOF
24227/* end confdefs.h. */
24228
24229#include <gtk/gtk.h>
24230#include <stdio.h>
24231#include <stdlib.h>
24232
24233int
24234main ()
24235{
24236 int major, minor, micro;
24237 char *tmp_version;
24238
24239 system ("touch conf.gtktest");
24240
24241 /* HP/UX 9 (%@#!) writes to sscanf strings */
24242 tmp_version = g_strdup("$min_gtk_version");
24243 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24244 printf("%s, bad version string\n", "$min_gtk_version");
24245 exit(1);
24246 }
24247
24248 if ((gtk_major_version != $gtk_config_major_version) ||
24249 (gtk_minor_version != $gtk_config_minor_version) ||
24250 (gtk_micro_version != $gtk_config_micro_version))
24251 {
24252 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24253 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24254 gtk_major_version, gtk_minor_version, gtk_micro_version);
24255 printf ("*** was found! If pkg-config was correct, then it is best\n");
24256 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24257 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24258 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24259 printf("*** required on your system.\n");
24260 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24261 printf("*** to point to the correct configuration files\n");
24262 }
24263 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24264 (gtk_minor_version != GTK_MINOR_VERSION) ||
24265 (gtk_micro_version != GTK_MICRO_VERSION))
24266 {
24267 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24268 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24269 printf("*** library (version %d.%d.%d)\n",
24270 gtk_major_version, gtk_minor_version, gtk_micro_version);
24271 }
24272 else
24273 {
24274 if ((gtk_major_version > major) ||
24275 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24276 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24277 {
24278 return 0;
24279 }
24280 else
24281 {
24282 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24283 gtk_major_version, gtk_minor_version, gtk_micro_version);
24284 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24285 major, minor, micro);
24286 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24287 printf("***\n");
24288 printf("*** If you have already installed a sufficiently new version, this error\n");
24289 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24290 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24291 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24292 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24293 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24294 printf("*** so that the correct libraries are found at run-time))\n");
24295 }
24296 }
24297 return 1;
24298}
24299
24300_ACEOF
24301rm -f conftest$ac_exeext
24302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24303 (eval $ac_link) 2>&5
24304 ac_status=$?
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24312 :
24313else
24314 echo "$as_me: program exited with status $ac_status" >&5
24315echo "$as_me: failed program was:" >&5
24316sed 's/^/| /' conftest.$ac_ext >&5
24317
24318( exit $ac_status )
24319no_gtk=yes
24320fi
ac1cb8d3 24321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24322fi
24323 CFLAGS="$ac_save_CFLAGS"
24324 LIBS="$ac_save_LIBS"
24325 fi
24326 fi
24327 if test "x$no_gtk" = x ; then
24328 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24329echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24330 wx_cv_lib_gtk=2.0
24331 else
24332 echo "$as_me:$LINENO: result: no" >&5
24333echo "${ECHO_T}no" >&6
24334 if test "$PKG_CONFIG" = "no" ; then
24335 echo "*** A new enough version of pkg-config was not found."
24336 echo "*** See http://pkgconfig.sourceforge.net"
24337 else
24338 if test -f conf.gtktest ; then
24339 :
24340 else
24341 echo "*** Could not run GTK+ test program, checking why..."
24342 ac_save_CFLAGS="$CFLAGS"
24343 ac_save_LIBS="$LIBS"
24344 CFLAGS="$CFLAGS $GTK_CFLAGS"
24345 LIBS="$LIBS $GTK_LIBS"
24346 cat >conftest.$ac_ext <<_ACEOF
24347/* confdefs.h. */
24348_ACEOF
24349cat confdefs.h >>conftest.$ac_ext
24350cat >>conftest.$ac_ext <<_ACEOF
24351/* end confdefs.h. */
24352
24353#include <gtk/gtk.h>
24354#include <stdio.h>
24355
24356int
24357main ()
24358{
24359 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24360 ;
24361 return 0;
24362}
24363_ACEOF
24364rm -f conftest.$ac_objext conftest$ac_exeext
24365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24366 (eval $ac_link) 2>conftest.er1
a848cd7e 24367 ac_status=$?
ac1cb8d3
VS
24368 grep -v '^ *+' conftest.er1 >conftest.err
24369 rm -f conftest.er1
24370 cat conftest.err >&5
a848cd7e
SC
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); } &&
07158944 24373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24376 ac_status=$?
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); }; } &&
24379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24382 ac_status=$?
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; }; then
24385 echo "*** The test program compiled, but did not run. This usually means"
24386 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24387 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24388 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24389 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24390 echo "*** is required on your system"
24391 echo "***"
24392 echo "*** If you have an old version installed, it is best to remove it, although"
24393 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24394else
24395 echo "$as_me: failed program was:" >&5
24396sed 's/^/| /' conftest.$ac_ext >&5
24397
24398 echo "*** The test program failed to compile or link. See the file config.log for the"
24399 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24400fi
ac1cb8d3
VS
24401rm -f conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24403 CFLAGS="$ac_save_CFLAGS"
24404 LIBS="$ac_save_LIBS"
24405 fi
24406 fi
24407 GTK_CFLAGS=""
24408 GTK_LIBS=""
24409 :
24410 fi
24411
24412
24413 rm -f conf.gtktest
24414
24415 else
24416
24417# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24418if test "${with_gtk_prefix+set}" = set; then
24419 withval="$with_gtk_prefix"
24420 gtk_config_prefix="$withval"
24421else
24422 gtk_config_prefix=""
24423fi;
24424
24425# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24426if test "${with_gtk_exec_prefix+set}" = set; then
24427 withval="$with_gtk_exec_prefix"
24428 gtk_config_exec_prefix="$withval"
24429else
24430 gtk_config_exec_prefix=""
24431fi;
24432# Check whether --enable-gtktest or --disable-gtktest was given.
24433if test "${enable_gtktest+set}" = set; then
24434 enableval="$enable_gtktest"
24435
24436else
24437 enable_gtktest=yes
24438fi;
24439
24440 for module in . $GTK_MODULES
24441 do
24442 case "$module" in
24443 gthread)
24444 gtk_config_args="$gtk_config_args gthread"
24445 ;;
24446 esac
24447 done
24448
24449 if test x$gtk_config_exec_prefix != x ; then
24450 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24451 if test x${GTK_CONFIG+set} != xset ; then
24452 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24453 fi
24454 fi
24455 if test x$gtk_config_prefix != x ; then
24456 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24457 if test x${GTK_CONFIG+set} != xset ; then
24458 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24459 fi
24460 fi
24461
24462 # Extract the first word of "gtk-config", so it can be a program name with args.
24463set dummy gtk-config; ac_word=$2
24464echo "$as_me:$LINENO: checking for $ac_word" >&5
24465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24466if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24468else
24469 case $GTK_CONFIG in
24470 [\\/]* | ?:[\\/]*)
24471 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24472 ;;
24473 *)
24474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24475for as_dir in $PATH
24476do
24477 IFS=$as_save_IFS
24478 test -z "$as_dir" && as_dir=.
24479 for ac_exec_ext in '' $ac_executable_extensions; do
24480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24481 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24483 break 2
24484 fi
24485done
24486done
24487
24488 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24489 ;;
24490esac
24491fi
24492GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24493
24494if test -n "$GTK_CONFIG"; then
24495 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24496echo "${ECHO_T}$GTK_CONFIG" >&6
24497else
24498 echo "$as_me:$LINENO: result: no" >&5
24499echo "${ECHO_T}no" >&6
24500fi
24501
24502 min_gtk_version=1.2.7
24503 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24504echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24505 no_gtk=""
24506 if test "$GTK_CONFIG" = "no" ; then
24507 no_gtk=yes
24508 else
24509 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24510 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24511 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24512 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24513 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24515 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24517 if test "x$enable_gtktest" = "xyes" ; then
24518 ac_save_CFLAGS="$CFLAGS"
24519 ac_save_LIBS="$LIBS"
24520 CFLAGS="$CFLAGS $GTK_CFLAGS"
24521 LIBS="$GTK_LIBS $LIBS"
24522 rm -f conf.gtktest
24523 if test "$cross_compiling" = yes; then
24524 echo $ac_n "cross compiling; assumed OK... $ac_c"
24525else
24526 cat >conftest.$ac_ext <<_ACEOF
24527/* confdefs.h. */
24528_ACEOF
24529cat confdefs.h >>conftest.$ac_ext
24530cat >>conftest.$ac_ext <<_ACEOF
24531/* end confdefs.h. */
24532
24533#include <gtk/gtk.h>
24534#include <stdio.h>
24535#include <stdlib.h>
24536
24537int
24538main ()
24539{
24540 int major, minor, micro;
24541 char *tmp_version;
24542
24543 system ("touch conf.gtktest");
24544
24545 /* HP/UX 9 (%@#!) writes to sscanf strings */
24546 tmp_version = g_strdup("$min_gtk_version");
24547 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24548 printf("%s, bad version string\n", "$min_gtk_version");
24549 exit(1);
24550 }
24551
24552 if ((gtk_major_version != $gtk_config_major_version) ||
24553 (gtk_minor_version != $gtk_config_minor_version) ||
24554 (gtk_micro_version != $gtk_config_micro_version))
24555 {
24556 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24557 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24558 gtk_major_version, gtk_minor_version, gtk_micro_version);
24559 printf ("*** was found! If gtk-config was correct, then it is best\n");
24560 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24561 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24562 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24563 printf("*** required on your system.\n");
24564 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24565 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24566 printf("*** before re-running configure\n");
24567 }
24568#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24569 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24570 (gtk_minor_version != GTK_MINOR_VERSION) ||
24571 (gtk_micro_version != GTK_MICRO_VERSION))
24572 {
24573 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24574 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24575 printf("*** library (version %d.%d.%d)\n",
24576 gtk_major_version, gtk_minor_version, gtk_micro_version);
24577 }
24578#endif /* defined (GTK_MAJOR_VERSION) ... */
24579 else
24580 {
24581 if ((gtk_major_version > major) ||
24582 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24583 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24584 {
24585 return 0;
24586 }
24587 else
24588 {
24589 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24590 gtk_major_version, gtk_minor_version, gtk_micro_version);
24591 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24592 major, minor, micro);
24593 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24594 printf("***\n");
24595 printf("*** If you have already installed a sufficiently new version, this error\n");
24596 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24597 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24598 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24599 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24600 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24601 printf("*** so that the correct libraries are found at run-time))\n");
24602 }
24603 }
24604 return 1;
24605}
24606
24607_ACEOF
24608rm -f conftest$ac_exeext
24609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24610 (eval $ac_link) 2>&5
24611 ac_status=$?
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 :
24620else
24621 echo "$as_me: program exited with status $ac_status" >&5
24622echo "$as_me: failed program was:" >&5
24623sed 's/^/| /' conftest.$ac_ext >&5
24624
24625( exit $ac_status )
24626no_gtk=yes
24627fi
ac1cb8d3 24628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24629fi
24630 CFLAGS="$ac_save_CFLAGS"
24631 LIBS="$ac_save_LIBS"
24632 fi
24633 fi
24634 if test "x$no_gtk" = x ; then
24635 echo "$as_me:$LINENO: result: yes" >&5
24636echo "${ECHO_T}yes" >&6
24637 wx_cv_lib_gtk=1.2.7
24638 else
24639 echo "$as_me:$LINENO: result: no" >&5
24640echo "${ECHO_T}no" >&6
24641 if test "$GTK_CONFIG" = "no" ; then
24642 echo "*** The gtk-config script installed by GTK could not be found"
24643 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24644 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24645 echo "*** full path to gtk-config."
24646 else
24647 if test -f conf.gtktest ; then
24648 :
24649 else
24650 echo "*** Could not run GTK test program, checking why..."
24651 CFLAGS="$CFLAGS $GTK_CFLAGS"
24652 LIBS="$LIBS $GTK_LIBS"
24653 cat >conftest.$ac_ext <<_ACEOF
24654/* confdefs.h. */
24655_ACEOF
24656cat confdefs.h >>conftest.$ac_ext
24657cat >>conftest.$ac_ext <<_ACEOF
24658/* end confdefs.h. */
24659
24660#include <gtk/gtk.h>
24661#include <stdio.h>
24662
24663int
24664main ()
24665{
24666 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24667 ;
24668 return 0;
24669}
24670_ACEOF
24671rm -f conftest.$ac_objext conftest$ac_exeext
24672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24673 (eval $ac_link) 2>conftest.er1
a848cd7e 24674 ac_status=$?
ac1cb8d3
VS
24675 grep -v '^ *+' conftest.er1 >conftest.err
24676 rm -f conftest.er1
24677 cat conftest.err >&5
a848cd7e
SC
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } &&
07158944 24680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682 (eval $ac_try) 2>&5
24683 ac_status=$?
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; } &&
24686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24689 ac_status=$?
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; }; then
24692 echo "*** The test program compiled, but did not run. This usually means"
24693 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24694 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24695 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24696 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24697 echo "*** is required on your system"
24698 echo "***"
24699 echo "*** If you have an old version installed, it is best to remove it, although"
24700 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24701 echo "***"
24702 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24703 echo "*** came with the system with the command"
24704 echo "***"
24705 echo "*** rpm --erase --nodeps gtk gtk-devel"
24706else
24707 echo "$as_me: failed program was:" >&5
24708sed 's/^/| /' conftest.$ac_ext >&5
24709
24710 echo "*** The test program failed to compile or link. See the file config.log for the"
24711 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24712 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24713 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24714fi
ac1cb8d3
VS
24715rm -f conftest.err conftest.$ac_objext \
24716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24717 CFLAGS="$ac_save_CFLAGS"
24718 LIBS="$ac_save_LIBS"
24719 fi
24720 fi
24721 GTK_CFLAGS=""
24722 GTK_LIBS=""
24723 :
24724 fi
24725
24726
24727 rm -f conf.gtktest
24728
24729
24730 if test -z "$wx_cv_lib_gtk"; then
24731
24732# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24733if test "${with_gtk_prefix+set}" = set; then
24734 withval="$with_gtk_prefix"
24735 gtk_config_prefix="$withval"
24736else
24737 gtk_config_prefix=""
24738fi;
24739
24740# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24741if test "${with_gtk_exec_prefix+set}" = set; then
24742 withval="$with_gtk_exec_prefix"
24743 gtk_config_exec_prefix="$withval"
24744else
24745 gtk_config_exec_prefix=""
24746fi;
24747# Check whether --enable-gtktest or --disable-gtktest was given.
24748if test "${enable_gtktest+set}" = set; then
24749 enableval="$enable_gtktest"
24750
24751else
24752 enable_gtktest=yes
24753fi;
24754
24755 for module in . $GTK_MODULES
24756 do
24757 case "$module" in
24758 gthread)
24759 gtk_config_args="$gtk_config_args gthread"
24760 ;;
24761 esac
24762 done
24763
24764 if test x$gtk_config_exec_prefix != x ; then
24765 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24766 if test x${GTK_CONFIG+set} != xset ; then
24767 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24768 fi
24769 fi
24770 if test x$gtk_config_prefix != x ; then
24771 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24772 if test x${GTK_CONFIG+set} != xset ; then
24773 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24774 fi
24775 fi
24776
24777 # Extract the first word of "gtk-config", so it can be a program name with args.
24778set dummy gtk-config; ac_word=$2
24779echo "$as_me:$LINENO: checking for $ac_word" >&5
24780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24781if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24782 echo $ECHO_N "(cached) $ECHO_C" >&6
24783else
24784 case $GTK_CONFIG in
24785 [\\/]* | ?:[\\/]*)
24786 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24787 ;;
24788 *)
24789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24790for as_dir in $PATH
24791do
24792 IFS=$as_save_IFS
24793 test -z "$as_dir" && as_dir=.
24794 for ac_exec_ext in '' $ac_executable_extensions; do
24795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24796 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24798 break 2
24799 fi
24800done
24801done
24802
24803 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24804 ;;
24805esac
24806fi
24807GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24808
24809if test -n "$GTK_CONFIG"; then
24810 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24811echo "${ECHO_T}$GTK_CONFIG" >&6
24812else
24813 echo "$as_me:$LINENO: result: no" >&5
24814echo "${ECHO_T}no" >&6
24815fi
24816
24817 min_gtk_version=1.2.3
24818 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24819echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24820 no_gtk=""
24821 if test "$GTK_CONFIG" = "no" ; then
24822 no_gtk=yes
24823 else
24824 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24825 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24826 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24827 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24828 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24829 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24830 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24832 if test "x$enable_gtktest" = "xyes" ; then
24833 ac_save_CFLAGS="$CFLAGS"
24834 ac_save_LIBS="$LIBS"
24835 CFLAGS="$CFLAGS $GTK_CFLAGS"
24836 LIBS="$GTK_LIBS $LIBS"
24837 rm -f conf.gtktest
24838 if test "$cross_compiling" = yes; then
24839 echo $ac_n "cross compiling; assumed OK... $ac_c"
24840else
24841 cat >conftest.$ac_ext <<_ACEOF
24842/* confdefs.h. */
24843_ACEOF
24844cat confdefs.h >>conftest.$ac_ext
24845cat >>conftest.$ac_ext <<_ACEOF
24846/* end confdefs.h. */
24847
24848#include <gtk/gtk.h>
24849#include <stdio.h>
24850#include <stdlib.h>
24851
24852int
24853main ()
24854{
24855 int major, minor, micro;
24856 char *tmp_version;
24857
24858 system ("touch conf.gtktest");
24859
24860 /* HP/UX 9 (%@#!) writes to sscanf strings */
24861 tmp_version = g_strdup("$min_gtk_version");
24862 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24863 printf("%s, bad version string\n", "$min_gtk_version");
24864 exit(1);
24865 }
24866
24867 if ((gtk_major_version != $gtk_config_major_version) ||
24868 (gtk_minor_version != $gtk_config_minor_version) ||
24869 (gtk_micro_version != $gtk_config_micro_version))
24870 {
24871 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24872 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24873 gtk_major_version, gtk_minor_version, gtk_micro_version);
24874 printf ("*** was found! If gtk-config was correct, then it is best\n");
24875 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24876 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24877 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24878 printf("*** required on your system.\n");
24879 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24880 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24881 printf("*** before re-running configure\n");
24882 }
24883#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24884 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24885 (gtk_minor_version != GTK_MINOR_VERSION) ||
24886 (gtk_micro_version != GTK_MICRO_VERSION))
24887 {
24888 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24889 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24890 printf("*** library (version %d.%d.%d)\n",
24891 gtk_major_version, gtk_minor_version, gtk_micro_version);
24892 }
24893#endif /* defined (GTK_MAJOR_VERSION) ... */
24894 else
24895 {
24896 if ((gtk_major_version > major) ||
24897 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24898 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24899 {
24900 return 0;
24901 }
24902 else
24903 {
24904 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24905 gtk_major_version, gtk_minor_version, gtk_micro_version);
24906 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24907 major, minor, micro);
24908 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24909 printf("***\n");
24910 printf("*** If you have already installed a sufficiently new version, this error\n");
24911 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24912 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24913 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24914 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24915 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24916 printf("*** so that the correct libraries are found at run-time))\n");
24917 }
24918 }
24919 return 1;
24920}
24921
24922_ACEOF
24923rm -f conftest$ac_exeext
24924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24925 (eval $ac_link) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; }; then
24934 :
24935else
24936 echo "$as_me: program exited with status $ac_status" >&5
24937echo "$as_me: failed program was:" >&5
24938sed 's/^/| /' conftest.$ac_ext >&5
24939
24940( exit $ac_status )
24941no_gtk=yes
24942fi
ac1cb8d3 24943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24944fi
24945 CFLAGS="$ac_save_CFLAGS"
24946 LIBS="$ac_save_LIBS"
24947 fi
24948 fi
24949 if test "x$no_gtk" = x ; then
24950 echo "$as_me:$LINENO: result: yes" >&5
24951echo "${ECHO_T}yes" >&6
24952 wx_cv_lib_gtk=1.2.3
24953 else
24954 echo "$as_me:$LINENO: result: no" >&5
24955echo "${ECHO_T}no" >&6
24956 if test "$GTK_CONFIG" = "no" ; then
24957 echo "*** The gtk-config script installed by GTK could not be found"
24958 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24959 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24960 echo "*** full path to gtk-config."
24961 else
24962 if test -f conf.gtktest ; then
24963 :
24964 else
24965 echo "*** Could not run GTK test program, checking why..."
24966 CFLAGS="$CFLAGS $GTK_CFLAGS"
24967 LIBS="$LIBS $GTK_LIBS"
24968 cat >conftest.$ac_ext <<_ACEOF
24969/* confdefs.h. */
24970_ACEOF
24971cat confdefs.h >>conftest.$ac_ext
24972cat >>conftest.$ac_ext <<_ACEOF
24973/* end confdefs.h. */
24974
24975#include <gtk/gtk.h>
24976#include <stdio.h>
24977
24978int
24979main ()
24980{
24981 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24982 ;
24983 return 0;
24984}
24985_ACEOF
24986rm -f conftest.$ac_objext conftest$ac_exeext
24987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24988 (eval $ac_link) 2>conftest.er1
a848cd7e 24989 ac_status=$?
ac1cb8d3
VS
24990 grep -v '^ *+' conftest.er1 >conftest.err
24991 rm -f conftest.er1
24992 cat conftest.err >&5
a848cd7e
SC
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } &&
07158944 24995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); }; } &&
25001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003 (eval $ac_try) 2>&5
25004 ac_status=$?
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; }; then
25007 echo "*** The test program compiled, but did not run. This usually means"
25008 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25009 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25010 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25011 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25012 echo "*** is required on your system"
25013 echo "***"
25014 echo "*** If you have an old version installed, it is best to remove it, although"
25015 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25016 echo "***"
25017 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25018 echo "*** came with the system with the command"
25019 echo "***"
25020 echo "*** rpm --erase --nodeps gtk gtk-devel"
25021else
25022 echo "$as_me: failed program was:" >&5
25023sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 echo "*** The test program failed to compile or link. See the file config.log for the"
25026 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25027 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25028 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25029fi
ac1cb8d3
VS
25030rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25032 CFLAGS="$ac_save_CFLAGS"
25033 LIBS="$ac_save_LIBS"
25034 fi
25035 fi
25036 GTK_CFLAGS=""
25037 GTK_LIBS=""
25038 :
25039 fi
25040
25041
25042 rm -f conf.gtktest
25043
25044 fi
25045 fi
25046
25047 if test -z "$wx_cv_lib_gtk"; then
25048 wx_cv_lib_gtk=none
25049 else
25050 wx_cv_cflags_gtk=$GTK_CFLAGS
25051 wx_cv_libs_gtk=$GTK_LIBS
25052 fi
25053
25054
25055fi
25056
25057
25058 if test "$gtk_version_cached" = 1; then
25059 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25060echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25061 fi
25062
25063 case "$wx_cv_lib_gtk" in
25064 2.0) WXGTK20=1
25065 TOOLKIT_VERSION=2
25066 ;;
25067 1.2.7) WXGTK127=1
25068 WXGTK12=1
25069 ;;
25070 1.2.3) WXGTK12=1
25071 ;;
25072 *) { { echo "$as_me:$LINENO: error:
25073Please check that gtk-config is in path, the directory
25074where GTK+ libraries are installed (returned by
25075'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25076equivalent variable and GTK+ is version 1.2.3 or above.
25077 " >&5
25078echo "$as_me: error:
25079Please check that gtk-config is in path, the directory
25080where GTK+ libraries are installed (returned by
25081'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25082equivalent variable and GTK+ is version 1.2.3 or above.
25083 " >&2;}
25084 { (exit 1); exit 1; }; }
25085 ;;
25086 esac
25087
25088 if test "$WXGTK20" = 1; then
304205f1
VS
25089 save_CFLAGS="$CFLAGS"
25090 save_LIBS="$LIBS"
25091 CFLAGS="$CFLAGS $GTK_CFLAGS"
25092 LIBS="$LIBS $GTK_LIBS"
25093
9755e73b 25094
304205f1
VS
25095for ac_func in pango_font_family_is_monospace
25096do
25097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25098echo "$as_me:$LINENO: checking for $ac_func" >&5
25099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25100if eval "test \"\${$as_ac_var+set}\" = set"; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25102else
25103 cat >conftest.$ac_ext <<_ACEOF
25104/* confdefs.h. */
25105_ACEOF
25106cat confdefs.h >>conftest.$ac_ext
25107cat >>conftest.$ac_ext <<_ACEOF
25108/* end confdefs.h. */
25109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25111#define $ac_func innocuous_$ac_func
25112
25113/* System header to define __stub macros and hopefully few prototypes,
25114 which can conflict with char $ac_func (); below.
25115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25116 <limits.h> exists even on freestanding compilers. */
25117
25118#ifdef __STDC__
25119# include <limits.h>
25120#else
25121# include <assert.h>
25122#endif
25123
25124#undef $ac_func
25125
25126/* Override any gcc2 internal prototype to avoid an error. */
25127#ifdef __cplusplus
25128extern "C"
25129{
25130#endif
25131/* We use char because int might match the return type of a gcc2
25132 builtin and then its argument prototype would still apply. */
25133char $ac_func ();
25134/* The GNU C library defines this for functions which it implements
25135 to always fail with ENOSYS. Some functions are actually named
25136 something starting with __ and the normal name is an alias. */
25137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25138choke me
25139#else
25140char (*f) () = $ac_func;
25141#endif
25142#ifdef __cplusplus
25143}
25144#endif
25145
25146int
25147main ()
25148{
25149return f != $ac_func;
25150 ;
25151 return 0;
25152}
25153_ACEOF
25154rm -f conftest.$ac_objext conftest$ac_exeext
25155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25156 (eval $ac_link) 2>conftest.er1
25157 ac_status=$?
25158 grep -v '^ *+' conftest.er1 >conftest.err
25159 rm -f conftest.er1
25160 cat conftest.err >&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); } &&
07158944 25163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; } &&
25169 { ac_try='test -s conftest$ac_exeext'
25170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25171 (eval $ac_try) 2>&5
25172 ac_status=$?
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); }; }; then
25175 eval "$as_ac_var=yes"
25176else
25177 echo "$as_me: failed program was:" >&5
25178sed 's/^/| /' conftest.$ac_ext >&5
25179
25180eval "$as_ac_var=no"
25181fi
25182rm -f conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
25184fi
25185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25187if test `eval echo '${'$as_ac_var'}'` = yes; then
25188 cat >>confdefs.h <<_ACEOF
25189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25190_ACEOF
25191
25192fi
25193done
25194
9755e73b
VS
25195
25196 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25197echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25198 cat >conftest.$ac_ext <<_ACEOF
25199/* confdefs.h. */
25200_ACEOF
25201cat confdefs.h >>conftest.$ac_ext
25202cat >>conftest.$ac_ext <<_ACEOF
25203/* end confdefs.h. */
25204
25205 #include <gtk/gtk.h>
25206
25207int
25208main ()
25209{
25210
25211 #if !GTK_CHECK_VERSION(2,4,0)
25212 #error "Not GTK+ 2.4"
25213 #endif
25214
25215 ;
25216 return 0;
25217}
25218_ACEOF
25219rm -f conftest.$ac_objext
25220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25221 (eval $ac_compile) 2>conftest.er1
25222 ac_status=$?
25223 grep -v '^ *+' conftest.er1 >conftest.err
25224 rm -f conftest.er1
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } &&
07158944 25228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest.$ac_objext'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240
25241 cat >>confdefs.h <<\_ACEOF
25242#define __WXGTK24__ 1
25243_ACEOF
25244
25245 echo "$as_me:$LINENO: result: yes" >&5
25246echo "${ECHO_T}yes" >&6
25247
25248else
25249 echo "$as_me: failed program was:" >&5
25250sed 's/^/| /' conftest.$ac_ext >&5
25251
25252
25253 echo "$as_me:$LINENO: result: no" >&5
25254echo "${ECHO_T}no" >&6
25255
25256fi
25257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25258
304205f1
VS
25259 CFLAGS="$save_CFLAGS"
25260 LIBS="$save_LIBS"
a848cd7e
SC
25261 else
25262 if test "$wxUSE_UNICODE" = "yes"; then
25263 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25264echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25265 wxUSE_UNICODE=no
25266 fi
25267 fi
25268
25269 if test "$USE_DARWIN" != 1; then
25270
25271for ac_func in poll
25272do
25273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25274echo "$as_me:$LINENO: checking for $ac_func" >&5
25275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25276if eval "test \"\${$as_ac_var+set}\" = set"; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25278else
25279 cat >conftest.$ac_ext <<_ACEOF
25280/* confdefs.h. */
25281_ACEOF
25282cat confdefs.h >>conftest.$ac_ext
25283cat >>conftest.$ac_ext <<_ACEOF
25284/* end confdefs.h. */
ac1cb8d3
VS
25285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25287#define $ac_func innocuous_$ac_func
25288
a848cd7e
SC
25289/* System header to define __stub macros and hopefully few prototypes,
25290 which can conflict with char $ac_func (); below.
25291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25293
a848cd7e
SC
25294#ifdef __STDC__
25295# include <limits.h>
25296#else
25297# include <assert.h>
25298#endif
ac1cb8d3
VS
25299
25300#undef $ac_func
25301
a848cd7e
SC
25302/* Override any gcc2 internal prototype to avoid an error. */
25303#ifdef __cplusplus
25304extern "C"
25305{
25306#endif
25307/* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25309char $ac_func ();
25310/* The GNU C library defines this for functions which it implements
25311 to always fail with ENOSYS. Some functions are actually named
25312 something starting with __ and the normal name is an alias. */
25313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25314choke me
25315#else
25316char (*f) () = $ac_func;
25317#endif
25318#ifdef __cplusplus
25319}
25320#endif
25321
25322int
25323main ()
25324{
25325return f != $ac_func;
25326 ;
25327 return 0;
25328}
25329_ACEOF
25330rm -f conftest.$ac_objext conftest$ac_exeext
25331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25332 (eval $ac_link) 2>conftest.er1
a848cd7e 25333 ac_status=$?
ac1cb8d3
VS
25334 grep -v '^ *+' conftest.er1 >conftest.err
25335 rm -f conftest.er1
25336 cat conftest.err >&5
a848cd7e
SC
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } &&
07158944 25339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; } &&
25345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; }; then
25351 eval "$as_ac_var=yes"
25352else
25353 echo "$as_me: failed program was:" >&5
25354sed 's/^/| /' conftest.$ac_ext >&5
25355
25356eval "$as_ac_var=no"
25357fi
ac1cb8d3
VS
25358rm -f conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25360fi
25361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25363if test `eval echo '${'$as_ac_var'}'` = yes; then
25364 cat >>confdefs.h <<_ACEOF
25365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25366_ACEOF
25367
25368fi
25369done
25370
25371 fi
25372
25373 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25374 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25375
25376 AFMINSTALL=afminstall
25377 TOOLKIT=GTK
25378 GUIDIST=GTK_DIST
25379
25380 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25381echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25382if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25383 echo $ECHO_N "(cached) $ECHO_C" >&6
25384else
25385 ac_check_lib_save_LIBS=$LIBS
25386LIBS="-lgdk $LIBS"
25387cat >conftest.$ac_ext <<_ACEOF
25388/* confdefs.h. */
25389_ACEOF
25390cat confdefs.h >>conftest.$ac_ext
25391cat >>conftest.$ac_ext <<_ACEOF
25392/* end confdefs.h. */
25393
25394/* Override any gcc2 internal prototype to avoid an error. */
25395#ifdef __cplusplus
25396extern "C"
25397#endif
25398/* We use char because int might match the return type of a gcc2
25399 builtin and then its argument prototype would still apply. */
25400char gdk_im_open ();
25401int
25402main ()
25403{
25404gdk_im_open ();
25405 ;
25406 return 0;
25407}
25408_ACEOF
25409rm -f conftest.$ac_objext conftest$ac_exeext
25410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25411 (eval $ac_link) 2>conftest.er1
a848cd7e 25412 ac_status=$?
ac1cb8d3
VS
25413 grep -v '^ *+' conftest.er1 >conftest.err
25414 rm -f conftest.er1
25415 cat conftest.err >&5
a848cd7e
SC
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); } &&
07158944 25418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420 (eval $ac_try) 2>&5
25421 ac_status=$?
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; } &&
25424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
25427 ac_status=$?
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
25430 ac_cv_lib_gdk_gdk_im_open=yes
25431else
25432 echo "$as_me: failed program was:" >&5
25433sed 's/^/| /' conftest.$ac_ext >&5
25434
25435ac_cv_lib_gdk_gdk_im_open=no
25436fi
ac1cb8d3
VS
25437rm -f conftest.err conftest.$ac_objext \
25438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25439LIBS=$ac_check_lib_save_LIBS
25440fi
25441echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25442echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25443if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25444 cat >>confdefs.h <<\_ACEOF
25445#define HAVE_XIM 1
25446_ACEOF
25447
25448fi
25449
25450
25451
25452 if test "$wxUSE_GPE" = "yes"; then
25453 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25454echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25455
25456ac_find_libraries=
25457for ac_dir in $SEARCH_LIB /usr/lib;
25458 do
25459 for ac_extension in a so sl dylib; do
25460 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25461 ac_find_libraries=$ac_dir
25462 break 2
25463 fi
25464 done
25465 done
25466
25467 if test "$ac_find_libraries" != "" ; then
25468
25469 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25470 result=$?
25471 if test $result = 0; then
25472 ac_path_to_link=""
25473 else
25474 ac_path_to_link=" -L$ac_find_libraries"
25475 fi
25476
25477 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25478 WXGPE=1
25479 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25480echo "${ECHO_T}found at $ac_find_libraries" >&6
25481 else
25482 echo "$as_me:$LINENO: result: not found" >&5
25483echo "${ECHO_T}not found" >&6
25484 fi
25485
25486 fi
25487 fi
25488
25489 if test "$wxUSE_MGL" = 1; then
25490 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25491echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25492 if test "x$MGL_ROOT" = x ; then
25493 echo "$as_me:$LINENO: result: not found" >&5
25494echo "${ECHO_T}not found" >&6
25495 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25496echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25497 { (exit 1); exit 1; }; }
25498 else
25499 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25500echo "${ECHO_T}$MGL_ROOT" >&6
25501 fi
25502
25503 echo "$as_me:$LINENO: checking for libmgl location" >&5
25504echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25505 case "${host}" in
25506 *-*-linux* )
25507 if test "x$wxUSE_SHARED" = xyes ; then
25508 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25509 else
25510 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25511 fi
25512 ;;
25513 *-pc-msdosdjgpp )
25514 mgl_os_candidates="dos32/dj2"
25515 ;;
25516 *)
25517 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25518echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25519 { (exit 1); exit 1; }; }
25520 esac
25521
25522 mgl_lib_type=""
25523 mgl_os=""
25524
25525 for mgl_os_i in $mgl_os_candidates ; do
25526 if test "x$mgl_os" = x ; then
25527 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25528 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25529 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25530 mgl_lib_type=debug
25531 mgl_os=$mgl_os_i
25532 fi
25533 fi
25534 if test "x$mgl_lib_type" = x ; then
25535 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25536 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25537 mgl_lib_type=release
25538 mgl_os=$mgl_os_i
25539 fi
25540 fi
25541 fi
25542 done
25543
25544 if test "x$mgl_os" = x ; then
25545 echo "$as_me:$LINENO: result: not found" >&5
25546echo "${ECHO_T}not found" >&6
25547 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25548echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25549 { (exit 1); exit 1; }; }
25550 fi
25551 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25552echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25553
25554 wxUSE_UNIVERSAL="yes"
25555
25556 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25557 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25558
25559 AFMINSTALL=afminstall
25560 TOOLKIT=MGL
25561 GUIDIST=MGL_DIST
25562 fi
25563
25564 if test "$wxUSE_MICROWIN" = 1; then
25565 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25566echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25567 if test "x$MICROWINDOWS" = x ; then
25568 echo "$as_me:$LINENO: result: not found" >&5
25569echo "${ECHO_T}not found" >&6
25570 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25571echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25572 { (exit 1); exit 1; }; }
25573 else
25574 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25575echo "${ECHO_T}$MICROWINDOWS" >&6
25576 fi
25577
25578 if test -f $MICROWINDOWS/lib/libmwin.a; then
25579 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25580echo "${ECHO_T}MicroWindows' libraries found." >&6
25581 else
25582 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25583echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25584 { (exit 1); exit 1; }; }
25585 fi
25586
25587 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25588 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25589
25590 wxUSE_UNIVERSAL="yes"
25591
25592 AFMINSTALL=afminstall
25593 TOOLKIT=MICROWIN
25594 GUIDIST=MICROWIN_DIST
25595
25596 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25597 fi
25598
74b84332 25599 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
07158944
VZ
25600
25601if test "x$ac_path_x_has_been_run" != xyes; then
25602 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25603echo $ECHO_N "checking for X... $ECHO_C" >&6
25604
07158944 25605ac_path_x_has_been_run=yes
a848cd7e
SC
25606
25607# Check whether --with-x or --without-x was given.
25608if test "${with_x+set}" = set; then
25609 withval="$with_x"
25610
25611fi;
25612# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25613if test "x$with_x" = xno; then
25614 # The user explicitly disabled X.
25615 have_x=disabled
25616else
25617 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25618 # Both variables are already set.
25619 have_x=yes
25620 else
25621 if test "${ac_cv_have_x+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25623else
25624 # One or both of the vars are not set, and there is no cached value.
25625ac_x_includes=no ac_x_libraries=no
25626rm -fr conftest.dir
25627if mkdir conftest.dir; then
25628 cd conftest.dir
25629 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25630 cat >Imakefile <<'_ACEOF'
25631acfindx:
25632 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25633_ACEOF
25634 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25636 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25637 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25638 for ac_extension in a so sl; do
25639 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25640 test -f $ac_im_libdir/libX11.$ac_extension; then
25641 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25642 fi
25643 done
25644 # Screen out bogus values from the imake configuration. They are
25645 # bogus both because they are the default anyway, and because
25646 # using them would break gcc on systems where it needs fixed includes.
25647 case $ac_im_incroot in
25648 /usr/include) ;;
25649 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25650 esac
25651 case $ac_im_usrlibdir in
25652 /usr/lib | /lib) ;;
25653 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25654 esac
25655 fi
25656 cd ..
25657 rm -fr conftest.dir
25658fi
25659
25660# Standard set of common directories for X headers.
25661# Check X11 before X11Rn because it is often a symlink to the current release.
25662ac_x_header_dirs='
25663/usr/X11/include
25664/usr/X11R6/include
25665/usr/X11R5/include
25666/usr/X11R4/include
25667
25668/usr/include/X11
25669/usr/include/X11R6
25670/usr/include/X11R5
25671/usr/include/X11R4
25672
25673/usr/local/X11/include
25674/usr/local/X11R6/include
25675/usr/local/X11R5/include
25676/usr/local/X11R4/include
25677
25678/usr/local/include/X11
25679/usr/local/include/X11R6
25680/usr/local/include/X11R5
25681/usr/local/include/X11R4
25682
25683/usr/X386/include
25684/usr/x386/include
25685/usr/XFree86/include/X11
25686
25687/usr/include
25688/usr/local/include
25689/usr/unsupported/include
25690/usr/athena/include
25691/usr/local/x11r5/include
25692/usr/lpp/Xamples/include
25693
25694/usr/openwin/include
25695/usr/openwin/share/include'
25696
25697if test "$ac_x_includes" = no; then
07158944 25698 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25699 # First, try using that file with no special directory specified.
25700 cat >conftest.$ac_ext <<_ACEOF
25701/* confdefs.h. */
25702_ACEOF
25703cat confdefs.h >>conftest.$ac_ext
25704cat >>conftest.$ac_ext <<_ACEOF
25705/* end confdefs.h. */
25706#include <X11/Intrinsic.h>
25707_ACEOF
25708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25710 ac_status=$?
25711 grep -v '^ *+' conftest.er1 >conftest.err
25712 rm -f conftest.er1
25713 cat conftest.err >&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } >/dev/null; then
25716 if test -s conftest.err; then
25717 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25719 else
25720 ac_cpp_err=
25721 fi
25722else
25723 ac_cpp_err=yes
25724fi
25725if test -z "$ac_cpp_err"; then
25726 # We can compile using X headers with no special include directory.
25727ac_x_includes=
25728else
25729 echo "$as_me: failed program was:" >&5
25730sed 's/^/| /' conftest.$ac_ext >&5
25731
25732 for ac_dir in $ac_x_header_dirs; do
25733 if test -r "$ac_dir/X11/Intrinsic.h"; then
25734 ac_x_includes=$ac_dir
25735 break
25736 fi
25737done
25738fi
25739rm -f conftest.err conftest.$ac_ext
25740fi # $ac_x_includes = no
25741
25742if test "$ac_x_libraries" = no; then
25743 # Check for the libraries.
25744 # See if we find them without any special options.
25745 # Don't add to $LIBS permanently.
25746 ac_save_LIBS=$LIBS
25747 LIBS="-lXt $LIBS"
25748 cat >conftest.$ac_ext <<_ACEOF
25749/* confdefs.h. */
25750_ACEOF
25751cat confdefs.h >>conftest.$ac_ext
25752cat >>conftest.$ac_ext <<_ACEOF
25753/* end confdefs.h. */
25754#include <X11/Intrinsic.h>
25755int
25756main ()
25757{
25758XtMalloc (0)
25759 ;
25760 return 0;
25761}
25762_ACEOF
25763rm -f conftest.$ac_objext conftest$ac_exeext
25764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25765 (eval $ac_link) 2>conftest.er1
a848cd7e 25766 ac_status=$?
ac1cb8d3
VS
25767 grep -v '^ *+' conftest.er1 >conftest.err
25768 rm -f conftest.er1
25769 cat conftest.err >&5
a848cd7e
SC
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); } &&
07158944 25772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774 (eval $ac_try) 2>&5
25775 ac_status=$?
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); }; } &&
25778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; }; then
25784 LIBS=$ac_save_LIBS
25785# We can link X programs with no special library path.
25786ac_x_libraries=
25787else
25788 echo "$as_me: failed program was:" >&5
25789sed 's/^/| /' conftest.$ac_ext >&5
25790
25791LIBS=$ac_save_LIBS
25792for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25793do
25794 # Don't even attempt the hair of trying to link an X program!
25795 for ac_extension in a so sl; do
25796 if test -r $ac_dir/libXt.$ac_extension; then
25797 ac_x_libraries=$ac_dir
25798 break 2
25799 fi
25800 done
25801done
25802fi
ac1cb8d3
VS
25803rm -f conftest.err conftest.$ac_objext \
25804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25805fi # $ac_x_libraries = no
25806
25807if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25808 # Didn't find X anywhere. Cache the known absence of X.
25809 ac_cv_have_x="have_x=no"
25810else
25811 # Record where we found X for the cache.
25812 ac_cv_have_x="have_x=yes \
ac1cb8d3 25813 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25814fi
25815fi
25816
25817 fi
25818 eval "$ac_cv_have_x"
25819fi # $with_x != no
25820
25821if test "$have_x" != yes; then
25822 echo "$as_me:$LINENO: result: $have_x" >&5
25823echo "${ECHO_T}$have_x" >&6
25824 no_x=yes
25825else
25826 # If each of the values was on the command line, it overrides each guess.
25827 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25828 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25829 # Update the cache value to reflect the command line values.
25830 ac_cv_have_x="have_x=yes \
25831 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
07158944
VZ
25832 # It might be that x_includes is empty (headers are found in the
25833 # standard search path. Then output the corresponding message
25834 ac_out_x_includes=$x_includes
25835 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25836 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25837echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
25838fi
25839
07158944 25840fi
a848cd7e
SC
25841if test "$no_x" = yes; then
25842 # Not all programs may use this symbol, but it does not hurt to define it.
25843
25844cat >>confdefs.h <<\_ACEOF
25845#define X_DISPLAY_MISSING 1
25846_ACEOF
25847
25848 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25849else
25850 if test -n "$x_includes"; then
25851 X_CFLAGS="$X_CFLAGS -I$x_includes"
25852 fi
25853
25854 # It would also be nice to do this for all -L options, not just this one.
25855 if test -n "$x_libraries"; then
25856 X_LIBS="$X_LIBS -L$x_libraries"
25857 # For Solaris; some versions of Sun CC require a space after -R and
25858 # others require no space. Words are not sufficient . . . .
25859 case `(uname -sr) 2>/dev/null` in
25860 "SunOS 5"*)
25861 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25862echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25863 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25864 cat >conftest.$ac_ext <<_ACEOF
25865/* confdefs.h. */
25866_ACEOF
25867cat confdefs.h >>conftest.$ac_ext
25868cat >>conftest.$ac_ext <<_ACEOF
25869/* end confdefs.h. */
25870
25871int
25872main ()
25873{
25874
25875 ;
25876 return 0;
25877}
25878_ACEOF
25879rm -f conftest.$ac_objext conftest$ac_exeext
25880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25881 (eval $ac_link) 2>conftest.er1
a848cd7e 25882 ac_status=$?
ac1cb8d3
VS
25883 grep -v '^ *+' conftest.er1 >conftest.err
25884 rm -f conftest.er1
25885 cat conftest.err >&5
a848cd7e
SC
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } &&
07158944 25888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; } &&
25894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25897 ac_status=$?
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; }; then
25900 ac_R_nospace=yes
25901else
25902 echo "$as_me: failed program was:" >&5
25903sed 's/^/| /' conftest.$ac_ext >&5
25904
25905ac_R_nospace=no
25906fi
ac1cb8d3
VS
25907rm -f conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25909 if test $ac_R_nospace = yes; then
25910 echo "$as_me:$LINENO: result: no" >&5
25911echo "${ECHO_T}no" >&6
25912 X_LIBS="$X_LIBS -R$x_libraries"
25913 else
25914 LIBS="$ac_xsave_LIBS -R $x_libraries"
25915 cat >conftest.$ac_ext <<_ACEOF
25916/* confdefs.h. */
25917_ACEOF
25918cat confdefs.h >>conftest.$ac_ext
25919cat >>conftest.$ac_ext <<_ACEOF
25920/* end confdefs.h. */
25921
25922int
25923main ()
25924{
25925
25926 ;
25927 return 0;
25928}
25929_ACEOF
25930rm -f conftest.$ac_objext conftest$ac_exeext
25931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25932 (eval $ac_link) 2>conftest.er1
a848cd7e 25933 ac_status=$?
ac1cb8d3
VS
25934 grep -v '^ *+' conftest.er1 >conftest.err
25935 rm -f conftest.er1
25936 cat conftest.err >&5
a848cd7e
SC
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } &&
07158944 25939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; } &&
25945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951 ac_R_space=yes
25952else
25953 echo "$as_me: failed program was:" >&5
25954sed 's/^/| /' conftest.$ac_ext >&5
25955
25956ac_R_space=no
25957fi
ac1cb8d3
VS
25958rm -f conftest.err conftest.$ac_objext \
25959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25960 if test $ac_R_space = yes; then
25961 echo "$as_me:$LINENO: result: yes" >&5
25962echo "${ECHO_T}yes" >&6
25963 X_LIBS="$X_LIBS -R $x_libraries"
25964 else
25965 echo "$as_me:$LINENO: result: neither works" >&5
25966echo "${ECHO_T}neither works" >&6
25967 fi
25968 fi
25969 LIBS=$ac_xsave_LIBS
25970 esac
25971 fi
25972
25973 # Check for system-dependent libraries X programs must link with.
25974 # Do this before checking for the system-independent R6 libraries
25975 # (-lICE), since we may need -lsocket or whatever for X linking.
25976
25977 if test "$ISC" = yes; then
25978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25979 else
25980 # Martyn Johnson says this is needed for Ultrix, if the X
25981 # libraries were built with DECnet support. And Karl Berry says
25982 # the Alpha needs dnet_stub (dnet does not exist).
25983 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25984 cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h. */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h. */
25990
25991/* Override any gcc2 internal prototype to avoid an error. */
25992#ifdef __cplusplus
25993extern "C"
25994#endif
25995/* We use char because int might match the return type of a gcc2
25996 builtin and then its argument prototype would still apply. */
25997char XOpenDisplay ();
25998int
25999main ()
26000{
26001XOpenDisplay ();
26002 ;
26003 return 0;
26004}
26005_ACEOF
26006rm -f conftest.$ac_objext conftest$ac_exeext
26007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26008 (eval $ac_link) 2>conftest.er1
a848cd7e 26009 ac_status=$?
ac1cb8d3
VS
26010 grep -v '^ *+' conftest.er1 >conftest.err
26011 rm -f conftest.er1
26012 cat conftest.err >&5
a848cd7e
SC
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } &&
07158944 26015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; } &&
26021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; }; then
26027 :
26028else
26029 echo "$as_me: failed program was:" >&5
26030sed 's/^/| /' conftest.$ac_ext >&5
26031
26032echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26033echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26034if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26035 echo $ECHO_N "(cached) $ECHO_C" >&6
26036else
26037 ac_check_lib_save_LIBS=$LIBS
26038LIBS="-ldnet $LIBS"
26039cat >conftest.$ac_ext <<_ACEOF
26040/* confdefs.h. */
26041_ACEOF
26042cat confdefs.h >>conftest.$ac_ext
26043cat >>conftest.$ac_ext <<_ACEOF
26044/* end confdefs.h. */
26045
26046/* Override any gcc2 internal prototype to avoid an error. */
26047#ifdef __cplusplus
26048extern "C"
26049#endif
26050/* We use char because int might match the return type of a gcc2
26051 builtin and then its argument prototype would still apply. */
26052char dnet_ntoa ();
26053int
26054main ()
26055{
26056dnet_ntoa ();
26057 ;
26058 return 0;
26059}
26060_ACEOF
26061rm -f conftest.$ac_objext conftest$ac_exeext
26062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26063 (eval $ac_link) 2>conftest.er1
a848cd7e 26064 ac_status=$?
ac1cb8d3
VS
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
a848cd7e
SC
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } &&
07158944 26070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26072 (eval $ac_try) 2>&5
26073 ac_status=$?
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); }; } &&
26076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; }; then
26082 ac_cv_lib_dnet_dnet_ntoa=yes
26083else
26084 echo "$as_me: failed program was:" >&5
26085sed 's/^/| /' conftest.$ac_ext >&5
26086
26087ac_cv_lib_dnet_dnet_ntoa=no
26088fi
ac1cb8d3
VS
26089rm -f conftest.err conftest.$ac_objext \
26090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26091LIBS=$ac_check_lib_save_LIBS
26092fi
26093echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26094echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26095if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26096 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26097fi
26098
26099 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26100 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26101echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26102if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26103 echo $ECHO_N "(cached) $ECHO_C" >&6
26104else
26105 ac_check_lib_save_LIBS=$LIBS
26106LIBS="-ldnet_stub $LIBS"
26107cat >conftest.$ac_ext <<_ACEOF
26108/* confdefs.h. */
26109_ACEOF
26110cat confdefs.h >>conftest.$ac_ext
26111cat >>conftest.$ac_ext <<_ACEOF
26112/* end confdefs.h. */
26113
26114/* Override any gcc2 internal prototype to avoid an error. */
26115#ifdef __cplusplus
26116extern "C"
26117#endif
26118/* We use char because int might match the return type of a gcc2
26119 builtin and then its argument prototype would still apply. */
26120char dnet_ntoa ();
26121int
26122main ()
26123{
26124dnet_ntoa ();
26125 ;
26126 return 0;
26127}
26128_ACEOF
26129rm -f conftest.$ac_objext conftest$ac_exeext
26130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26131 (eval $ac_link) 2>conftest.er1
a848cd7e 26132 ac_status=$?
ac1cb8d3
VS
26133 grep -v '^ *+' conftest.er1 >conftest.err
26134 rm -f conftest.er1
26135 cat conftest.err >&5
a848cd7e
SC
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } &&
07158944 26138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140 (eval $ac_try) 2>&5
26141 ac_status=$?
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); }; } &&
26144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146 (eval $ac_try) 2>&5
26147 ac_status=$?
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); }; }; then
26150 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26151else
26152 echo "$as_me: failed program was:" >&5
26153sed 's/^/| /' conftest.$ac_ext >&5
26154
26155ac_cv_lib_dnet_stub_dnet_ntoa=no
26156fi
ac1cb8d3
VS
26157rm -f conftest.err conftest.$ac_objext \
26158 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26159LIBS=$ac_check_lib_save_LIBS
26160fi
26161echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26162echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26163if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26164 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26165fi
26166
26167 fi
26168fi
ac1cb8d3
VS
26169rm -f conftest.err conftest.$ac_objext \
26170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26171 LIBS="$ac_xsave_LIBS"
26172
26173 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26174 # to get the SysV transport functions.
26175 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26176 # needs -lnsl.
26177 # The nsl library prevents programs from opening the X display
26178 # on Irix 5.2, according to T.E. Dickey.
26179 # The functions gethostbyname, getservbyname, and inet_addr are
26180 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26181 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26182echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26183if test "${ac_cv_func_gethostbyname+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26185else
26186 cat >conftest.$ac_ext <<_ACEOF
26187/* confdefs.h. */
26188_ACEOF
26189cat confdefs.h >>conftest.$ac_ext
26190cat >>conftest.$ac_ext <<_ACEOF
26191/* end confdefs.h. */
ac1cb8d3
VS
26192/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26194#define gethostbyname innocuous_gethostbyname
26195
a848cd7e
SC
26196/* System header to define __stub macros and hopefully few prototypes,
26197 which can conflict with char gethostbyname (); below.
26198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26199 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26200
a848cd7e
SC
26201#ifdef __STDC__
26202# include <limits.h>
26203#else
26204# include <assert.h>
26205#endif
ac1cb8d3
VS
26206
26207#undef gethostbyname
26208
a848cd7e
SC
26209/* Override any gcc2 internal prototype to avoid an error. */
26210#ifdef __cplusplus
26211extern "C"
26212{
26213#endif
26214/* We use char because int might match the return type of a gcc2
26215 builtin and then its argument prototype would still apply. */
26216char gethostbyname ();
26217/* The GNU C library defines this for functions which it implements
26218 to always fail with ENOSYS. Some functions are actually named
26219 something starting with __ and the normal name is an alias. */
26220#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26221choke me
26222#else
26223char (*f) () = gethostbyname;
26224#endif
26225#ifdef __cplusplus
26226}
26227#endif
26228
26229int
26230main ()
26231{
26232return f != gethostbyname;
26233 ;
26234 return 0;
26235}
26236_ACEOF
26237rm -f conftest.$ac_objext conftest$ac_exeext
26238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26239 (eval $ac_link) 2>conftest.er1
a848cd7e 26240 ac_status=$?
ac1cb8d3
VS
26241 grep -v '^ *+' conftest.er1 >conftest.err
26242 rm -f conftest.er1
26243 cat conftest.err >&5
a848cd7e
SC
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } &&
07158944 26246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; } &&
26252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26258 ac_cv_func_gethostbyname=yes
26259else
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263ac_cv_func_gethostbyname=no
26264fi
ac1cb8d3
VS
26265rm -f conftest.err conftest.$ac_objext \
26266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26267fi
26268echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26269echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26270
26271 if test $ac_cv_func_gethostbyname = no; then
26272 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26273echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26274if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26276else
26277 ac_check_lib_save_LIBS=$LIBS
26278LIBS="-lnsl $LIBS"
26279cat >conftest.$ac_ext <<_ACEOF
26280/* confdefs.h. */
26281_ACEOF
26282cat confdefs.h >>conftest.$ac_ext
26283cat >>conftest.$ac_ext <<_ACEOF
26284/* end confdefs.h. */
26285
26286/* Override any gcc2 internal prototype to avoid an error. */
26287#ifdef __cplusplus
26288extern "C"
26289#endif
26290/* We use char because int might match the return type of a gcc2
26291 builtin and then its argument prototype would still apply. */
26292char gethostbyname ();
26293int
26294main ()
26295{
26296gethostbyname ();
26297 ;
26298 return 0;
26299}
26300_ACEOF
26301rm -f conftest.$ac_objext conftest$ac_exeext
26302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26303 (eval $ac_link) 2>conftest.er1
26304 ac_status=$?
26305 grep -v '^ *+' conftest.er1 >conftest.err
26306 rm -f conftest.er1
26307 cat conftest.err >&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); } &&
07158944 26310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312 (eval $ac_try) 2>&5
26313 ac_status=$?
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); }; } &&
26316 { ac_try='test -s conftest$ac_exeext'
26317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318 (eval $ac_try) 2>&5
26319 ac_status=$?
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); }; }; then
26322 ac_cv_lib_nsl_gethostbyname=yes
26323else
26324 echo "$as_me: failed program was:" >&5
26325sed 's/^/| /' conftest.$ac_ext >&5
26326
26327ac_cv_lib_nsl_gethostbyname=no
26328fi
26329rm -f conftest.err conftest.$ac_objext \
26330 conftest$ac_exeext conftest.$ac_ext
26331LIBS=$ac_check_lib_save_LIBS
26332fi
26333echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26334echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26335if test $ac_cv_lib_nsl_gethostbyname = yes; then
26336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26337fi
26338
26339 if test $ac_cv_lib_nsl_gethostbyname = no; then
26340 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26341echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26342if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26343 echo $ECHO_N "(cached) $ECHO_C" >&6
26344else
26345 ac_check_lib_save_LIBS=$LIBS
26346LIBS="-lbsd $LIBS"
26347cat >conftest.$ac_ext <<_ACEOF
26348/* confdefs.h. */
26349_ACEOF
26350cat confdefs.h >>conftest.$ac_ext
26351cat >>conftest.$ac_ext <<_ACEOF
26352/* end confdefs.h. */
26353
26354/* Override any gcc2 internal prototype to avoid an error. */
26355#ifdef __cplusplus
26356extern "C"
26357#endif
26358/* We use char because int might match the return type of a gcc2
26359 builtin and then its argument prototype would still apply. */
26360char gethostbyname ();
26361int
26362main ()
26363{
26364gethostbyname ();
26365 ;
26366 return 0;
26367}
26368_ACEOF
26369rm -f conftest.$ac_objext conftest$ac_exeext
26370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26371 (eval $ac_link) 2>conftest.er1
a848cd7e 26372 ac_status=$?
ac1cb8d3
VS
26373 grep -v '^ *+' conftest.er1 >conftest.err
26374 rm -f conftest.er1
26375 cat conftest.err >&5
a848cd7e
SC
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); } &&
07158944 26378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26383 (exit $ac_status); }; } &&
26384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390 ac_cv_lib_bsd_gethostbyname=yes
26391else
26392 echo "$as_me: failed program was:" >&5
26393sed 's/^/| /' conftest.$ac_ext >&5
26394
26395ac_cv_lib_bsd_gethostbyname=no
26396fi
ac1cb8d3
VS
26397rm -f conftest.err conftest.$ac_objext \
26398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26399LIBS=$ac_check_lib_save_LIBS
26400fi
26401echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26402echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26403if test $ac_cv_lib_bsd_gethostbyname = yes; then
26404 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26405fi
26406
26407 fi
26408 fi
26409
26410 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26411 # socket/setsockopt and other routines are undefined under SCO ODT
26412 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26413 # on later versions), says Simon Leinen: it contains gethostby*
26414 # variants that don't use the name server (or something). -lsocket
26415 # must be given before -lnsl if both are needed. We assume that
26416 # if connect needs -lnsl, so does gethostbyname.
26417 echo "$as_me:$LINENO: checking for connect" >&5
26418echo $ECHO_N "checking for connect... $ECHO_C" >&6
26419if test "${ac_cv_func_connect+set}" = set; then
26420 echo $ECHO_N "(cached) $ECHO_C" >&6
26421else
26422 cat >conftest.$ac_ext <<_ACEOF
26423/* confdefs.h. */
26424_ACEOF
26425cat confdefs.h >>conftest.$ac_ext
26426cat >>conftest.$ac_ext <<_ACEOF
26427/* end confdefs.h. */
ac1cb8d3
VS
26428/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26430#define connect innocuous_connect
26431
a848cd7e
SC
26432/* System header to define __stub macros and hopefully few prototypes,
26433 which can conflict with char connect (); below.
26434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26435 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26436
a848cd7e
SC
26437#ifdef __STDC__
26438# include <limits.h>
26439#else
26440# include <assert.h>
26441#endif
ac1cb8d3
VS
26442
26443#undef connect
26444
a848cd7e
SC
26445/* Override any gcc2 internal prototype to avoid an error. */
26446#ifdef __cplusplus
26447extern "C"
26448{
26449#endif
26450/* We use char because int might match the return type of a gcc2
26451 builtin and then its argument prototype would still apply. */
26452char connect ();
26453/* The GNU C library defines this for functions which it implements
26454 to always fail with ENOSYS. Some functions are actually named
26455 something starting with __ and the normal name is an alias. */
26456#if defined (__stub_connect) || defined (__stub___connect)
26457choke me
26458#else
26459char (*f) () = connect;
26460#endif
26461#ifdef __cplusplus
26462}
26463#endif
26464
26465int
26466main ()
26467{
26468return f != connect;
26469 ;
26470 return 0;
26471}
26472_ACEOF
26473rm -f conftest.$ac_objext conftest$ac_exeext
26474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26475 (eval $ac_link) 2>conftest.er1
a848cd7e 26476 ac_status=$?
ac1cb8d3
VS
26477 grep -v '^ *+' conftest.er1 >conftest.err
26478 rm -f conftest.er1
26479 cat conftest.err >&5
a848cd7e
SC
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); } &&
07158944 26482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; } &&
26488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26491 ac_status=$?
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; }; then
26494 ac_cv_func_connect=yes
26495else
26496 echo "$as_me: failed program was:" >&5
26497sed 's/^/| /' conftest.$ac_ext >&5
26498
26499ac_cv_func_connect=no
26500fi
ac1cb8d3
VS
26501rm -f conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26503fi
26504echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26505echo "${ECHO_T}$ac_cv_func_connect" >&6
26506
26507 if test $ac_cv_func_connect = no; then
26508 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26509echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26510if test "${ac_cv_lib_socket_connect+set}" = set; then
26511 echo $ECHO_N "(cached) $ECHO_C" >&6
26512else
26513 ac_check_lib_save_LIBS=$LIBS
26514LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26515cat >conftest.$ac_ext <<_ACEOF
26516/* confdefs.h. */
26517_ACEOF
26518cat confdefs.h >>conftest.$ac_ext
26519cat >>conftest.$ac_ext <<_ACEOF
26520/* end confdefs.h. */
26521
26522/* Override any gcc2 internal prototype to avoid an error. */
26523#ifdef __cplusplus
26524extern "C"
26525#endif
26526/* We use char because int might match the return type of a gcc2
26527 builtin and then its argument prototype would still apply. */
26528char connect ();
26529int
26530main ()
26531{
26532connect ();
26533 ;
26534 return 0;
26535}
26536_ACEOF
26537rm -f conftest.$ac_objext conftest$ac_exeext
26538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26539 (eval $ac_link) 2>conftest.er1
a848cd7e 26540 ac_status=$?
ac1cb8d3
VS
26541 grep -v '^ *+' conftest.er1 >conftest.err
26542 rm -f conftest.er1
26543 cat conftest.err >&5
a848cd7e
SC
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); } &&
07158944 26546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548 (eval $ac_try) 2>&5
26549 ac_status=$?
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); }; } &&
26552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554 (eval $ac_try) 2>&5
26555 ac_status=$?
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; }; then
26558 ac_cv_lib_socket_connect=yes
26559else
26560 echo "$as_me: failed program was:" >&5
26561sed 's/^/| /' conftest.$ac_ext >&5
26562
26563ac_cv_lib_socket_connect=no
26564fi
ac1cb8d3
VS
26565rm -f conftest.err conftest.$ac_objext \
26566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26567LIBS=$ac_check_lib_save_LIBS
26568fi
26569echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26570echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26571if test $ac_cv_lib_socket_connect = yes; then
26572 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26573fi
26574
26575 fi
26576
26577 # Guillermo Gomez says -lposix is necessary on A/UX.
26578 echo "$as_me:$LINENO: checking for remove" >&5
26579echo $ECHO_N "checking for remove... $ECHO_C" >&6
26580if test "${ac_cv_func_remove+set}" = set; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26582else
26583 cat >conftest.$ac_ext <<_ACEOF
26584/* confdefs.h. */
26585_ACEOF
26586cat confdefs.h >>conftest.$ac_ext
26587cat >>conftest.$ac_ext <<_ACEOF
26588/* end confdefs.h. */
ac1cb8d3
VS
26589/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26591#define remove innocuous_remove
26592
a848cd7e
SC
26593/* System header to define __stub macros and hopefully few prototypes,
26594 which can conflict with char remove (); below.
26595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26596 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26597
a848cd7e
SC
26598#ifdef __STDC__
26599# include <limits.h>
26600#else
26601# include <assert.h>
26602#endif
ac1cb8d3
VS
26603
26604#undef remove
26605
a848cd7e
SC
26606/* Override any gcc2 internal prototype to avoid an error. */
26607#ifdef __cplusplus
26608extern "C"
26609{
26610#endif
26611/* We use char because int might match the return type of a gcc2
26612 builtin and then its argument prototype would still apply. */
26613char remove ();
26614/* The GNU C library defines this for functions which it implements
26615 to always fail with ENOSYS. Some functions are actually named
26616 something starting with __ and the normal name is an alias. */
26617#if defined (__stub_remove) || defined (__stub___remove)
26618choke me
26619#else
26620char (*f) () = remove;
26621#endif
26622#ifdef __cplusplus
26623}
26624#endif
26625
26626int
26627main ()
26628{
26629return f != remove;
26630 ;
26631 return 0;
26632}
26633_ACEOF
26634rm -f conftest.$ac_objext conftest$ac_exeext
26635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26636 (eval $ac_link) 2>conftest.er1
a848cd7e 26637 ac_status=$?
ac1cb8d3
VS
26638 grep -v '^ *+' conftest.er1 >conftest.err
26639 rm -f conftest.er1
26640 cat conftest.err >&5
a848cd7e
SC
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } &&
07158944 26643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645 (eval $ac_try) 2>&5
26646 ac_status=$?
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); }; } &&
26649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651 (eval $ac_try) 2>&5
26652 ac_status=$?
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); }; }; then
26655 ac_cv_func_remove=yes
26656else
26657 echo "$as_me: failed program was:" >&5
26658sed 's/^/| /' conftest.$ac_ext >&5
26659
26660ac_cv_func_remove=no
26661fi
ac1cb8d3
VS
26662rm -f conftest.err conftest.$ac_objext \
26663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26664fi
26665echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26666echo "${ECHO_T}$ac_cv_func_remove" >&6
26667
26668 if test $ac_cv_func_remove = no; then
26669 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26670echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26671if test "${ac_cv_lib_posix_remove+set}" = set; then
26672 echo $ECHO_N "(cached) $ECHO_C" >&6
26673else
26674 ac_check_lib_save_LIBS=$LIBS
26675LIBS="-lposix $LIBS"
26676cat >conftest.$ac_ext <<_ACEOF
26677/* confdefs.h. */
26678_ACEOF
26679cat confdefs.h >>conftest.$ac_ext
26680cat >>conftest.$ac_ext <<_ACEOF
26681/* end confdefs.h. */
26682
26683/* Override any gcc2 internal prototype to avoid an error. */
26684#ifdef __cplusplus
26685extern "C"
26686#endif
26687/* We use char because int might match the return type of a gcc2
26688 builtin and then its argument prototype would still apply. */
26689char remove ();
26690int
26691main ()
26692{
26693remove ();
26694 ;
26695 return 0;
26696}
26697_ACEOF
26698rm -f conftest.$ac_objext conftest$ac_exeext
26699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26700 (eval $ac_link) 2>conftest.er1
a848cd7e 26701 ac_status=$?
ac1cb8d3
VS
26702 grep -v '^ *+' conftest.er1 >conftest.err
26703 rm -f conftest.er1
26704 cat conftest.err >&5
a848cd7e
SC
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); } &&
07158944 26707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26710 ac_status=$?
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; } &&
26713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715 (eval $ac_try) 2>&5
26716 ac_status=$?
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); }; }; then
26719 ac_cv_lib_posix_remove=yes
26720else
26721 echo "$as_me: failed program was:" >&5
26722sed 's/^/| /' conftest.$ac_ext >&5
26723
26724ac_cv_lib_posix_remove=no
26725fi
ac1cb8d3
VS
26726rm -f conftest.err conftest.$ac_objext \
26727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26728LIBS=$ac_check_lib_save_LIBS
26729fi
26730echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26731echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26732if test $ac_cv_lib_posix_remove = yes; then
26733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26734fi
26735
26736 fi
26737
26738 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26739 echo "$as_me:$LINENO: checking for shmat" >&5
26740echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26741if test "${ac_cv_func_shmat+set}" = set; then
26742 echo $ECHO_N "(cached) $ECHO_C" >&6
26743else
26744 cat >conftest.$ac_ext <<_ACEOF
26745/* confdefs.h. */
26746_ACEOF
26747cat confdefs.h >>conftest.$ac_ext
26748cat >>conftest.$ac_ext <<_ACEOF
26749/* end confdefs.h. */
ac1cb8d3
VS
26750/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26752#define shmat innocuous_shmat
26753
a848cd7e
SC
26754/* System header to define __stub macros and hopefully few prototypes,
26755 which can conflict with char shmat (); below.
26756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26757 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26758
a848cd7e
SC
26759#ifdef __STDC__
26760# include <limits.h>
26761#else
26762# include <assert.h>
26763#endif
ac1cb8d3
VS
26764
26765#undef shmat
26766
a848cd7e
SC
26767/* Override any gcc2 internal prototype to avoid an error. */
26768#ifdef __cplusplus
26769extern "C"
26770{
26771#endif
26772/* We use char because int might match the return type of a gcc2
26773 builtin and then its argument prototype would still apply. */
26774char shmat ();
26775/* The GNU C library defines this for functions which it implements
26776 to always fail with ENOSYS. Some functions are actually named
26777 something starting with __ and the normal name is an alias. */
26778#if defined (__stub_shmat) || defined (__stub___shmat)
26779choke me
26780#else
26781char (*f) () = shmat;
26782#endif
26783#ifdef __cplusplus
26784}
26785#endif
26786
26787int
26788main ()
26789{
26790return f != shmat;
26791 ;
26792 return 0;
26793}
26794_ACEOF
26795rm -f conftest.$ac_objext conftest$ac_exeext
26796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26797 (eval $ac_link) 2>conftest.er1
a848cd7e 26798 ac_status=$?
ac1cb8d3
VS
26799 grep -v '^ *+' conftest.er1 >conftest.err
26800 rm -f conftest.er1
26801 cat conftest.err >&5
a848cd7e
SC
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } &&
07158944 26804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26806 (eval $ac_try) 2>&5
26807 ac_status=$?
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); }; } &&
26810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26812 (eval $ac_try) 2>&5
26813 ac_status=$?
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); }; }; then
26816 ac_cv_func_shmat=yes
26817else
26818 echo "$as_me: failed program was:" >&5
26819sed 's/^/| /' conftest.$ac_ext >&5
26820
26821ac_cv_func_shmat=no
26822fi
ac1cb8d3
VS
26823rm -f conftest.err conftest.$ac_objext \
26824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26825fi
26826echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26827echo "${ECHO_T}$ac_cv_func_shmat" >&6
26828
26829 if test $ac_cv_func_shmat = no; then
26830 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26831echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26832if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26833 echo $ECHO_N "(cached) $ECHO_C" >&6
26834else
26835 ac_check_lib_save_LIBS=$LIBS
26836LIBS="-lipc $LIBS"
26837cat >conftest.$ac_ext <<_ACEOF
26838/* confdefs.h. */
26839_ACEOF
26840cat confdefs.h >>conftest.$ac_ext
26841cat >>conftest.$ac_ext <<_ACEOF
26842/* end confdefs.h. */
26843
26844/* Override any gcc2 internal prototype to avoid an error. */
26845#ifdef __cplusplus
26846extern "C"
26847#endif
26848/* We use char because int might match the return type of a gcc2
26849 builtin and then its argument prototype would still apply. */
26850char shmat ();
26851int
26852main ()
26853{
26854shmat ();
26855 ;
26856 return 0;
26857}
26858_ACEOF
26859rm -f conftest.$ac_objext conftest$ac_exeext
26860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26861 (eval $ac_link) 2>conftest.er1
a848cd7e 26862 ac_status=$?
ac1cb8d3
VS
26863 grep -v '^ *+' conftest.er1 >conftest.err
26864 rm -f conftest.er1
26865 cat conftest.err >&5
a848cd7e
SC
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); } &&
07158944 26868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26871 ac_status=$?
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; } &&
26874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26877 ac_status=$?
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; }; then
26880 ac_cv_lib_ipc_shmat=yes
26881else
26882 echo "$as_me: failed program was:" >&5
26883sed 's/^/| /' conftest.$ac_ext >&5
26884
26885ac_cv_lib_ipc_shmat=no
26886fi
ac1cb8d3
VS
26887rm -f conftest.err conftest.$ac_objext \
26888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26889LIBS=$ac_check_lib_save_LIBS
26890fi
26891echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26892echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26893if test $ac_cv_lib_ipc_shmat = yes; then
26894 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26895fi
26896
26897 fi
26898 fi
26899
26900 # Check for libraries that X11R6 Xt/Xaw programs need.
26901 ac_save_LDFLAGS=$LDFLAGS
26902 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26903 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26904 # check for ICE first), but we must link in the order -lSM -lICE or
26905 # we get undefined symbols. So assume we have SM if we have ICE.
26906 # These have to be linked with before -lX11, unlike the other
26907 # libraries we check for below, so use a different variable.
26908 # John Interrante, Karl Berry
26909 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26910echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26911if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26913else
26914 ac_check_lib_save_LIBS=$LIBS
26915LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26916cat >conftest.$ac_ext <<_ACEOF
26917/* confdefs.h. */
26918_ACEOF
26919cat confdefs.h >>conftest.$ac_ext
26920cat >>conftest.$ac_ext <<_ACEOF
26921/* end confdefs.h. */
26922
26923/* Override any gcc2 internal prototype to avoid an error. */
26924#ifdef __cplusplus
26925extern "C"
26926#endif
26927/* We use char because int might match the return type of a gcc2
26928 builtin and then its argument prototype would still apply. */
26929char IceConnectionNumber ();
26930int
26931main ()
26932{
26933IceConnectionNumber ();
26934 ;
26935 return 0;
26936}
26937_ACEOF
26938rm -f conftest.$ac_objext conftest$ac_exeext
26939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26940 (eval $ac_link) 2>conftest.er1
a848cd7e 26941 ac_status=$?
ac1cb8d3
VS
26942 grep -v '^ *+' conftest.er1 >conftest.err
26943 rm -f conftest.er1
26944 cat conftest.err >&5
a848cd7e
SC
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } &&
07158944 26947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955 (eval $ac_try) 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
26959 ac_cv_lib_ICE_IceConnectionNumber=yes
26960else
26961 echo "$as_me: failed program was:" >&5
26962sed 's/^/| /' conftest.$ac_ext >&5
26963
26964ac_cv_lib_ICE_IceConnectionNumber=no
26965fi
ac1cb8d3
VS
26966rm -f conftest.err conftest.$ac_objext \
26967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26968LIBS=$ac_check_lib_save_LIBS
26969fi
26970echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26971echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26972if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26973 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26974fi
26975
26976 LDFLAGS=$ac_save_LDFLAGS
26977
26978fi
26979
26980
26981 if test "$no_x" = "yes"; then
26982 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26983echo "$as_me: error: X11 not found" >&2;}
26984 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26985 fi
26986
74b84332
VS
26987 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26988 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26989 AFMINSTALL=afminstall
26990 COMPILED_X_PROGRAM=0
26991
74b84332
VS
26992 fi
26993
26994 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26995 if test "$wxUSE_NANOX" = "yes"; then
26996 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26997echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26998 if test "x$MICROWIN" = x ; then
26999 echo "$as_me:$LINENO: result: not found" >&5
27000echo "${ECHO_T}not found" >&6
27001 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27002echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27003 { (exit 1); exit 1; }; }
27004 else
27005 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27006echo "${ECHO_T}$MICROWIN" >&6
27007 cat >>confdefs.h <<\_ACEOF
27008#define wxUSE_NANOX 1
27009_ACEOF
27010
27011 fi
27012 fi
27013
27014 if test "$wxUSE_UNICODE" = "yes"; then
27015
27016 succeeded=no
27017
27018 if test -z "$PKG_CONFIG"; then
27019 # Extract the first word of "pkg-config", so it can be a program name with args.
27020set dummy pkg-config; ac_word=$2
27021echo "$as_me:$LINENO: checking for $ac_word" >&5
27022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27023if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27024 echo $ECHO_N "(cached) $ECHO_C" >&6
27025else
27026 case $PKG_CONFIG in
27027 [\\/]* | ?:[\\/]*)
27028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27029 ;;
27030 *)
27031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27032for as_dir in $PATH
27033do
27034 IFS=$as_save_IFS
27035 test -z "$as_dir" && as_dir=.
27036 for ac_exec_ext in '' $ac_executable_extensions; do
27037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27040 break 2
27041 fi
27042done
27043done
27044
27045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27046 ;;
27047esac
27048fi
27049PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27050
27051if test -n "$PKG_CONFIG"; then
27052 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27053echo "${ECHO_T}$PKG_CONFIG" >&6
27054else
27055 echo "$as_me:$LINENO: result: no" >&5
27056echo "${ECHO_T}no" >&6
27057fi
27058
27059 fi
27060
27061 if test "$PKG_CONFIG" = "no" ; then
27062 echo "*** The pkg-config script could not be found. Make sure it is"
27063 echo "*** in your path, or set the PKG_CONFIG environment variable"
27064 echo "*** to the full path to pkg-config."
27065 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27066 else
27067 PKG_CONFIG_MIN_VERSION=0.9.0
27068 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27069 echo "$as_me:$LINENO: checking for pangox" >&5
27070echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27071
27072 if $PKG_CONFIG --exists "pangox" ; then
27073 echo "$as_me:$LINENO: result: yes" >&5
27074echo "${ECHO_T}yes" >&6
27075 succeeded=yes
27076
27077 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27078echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27079 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27080 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27081echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27082
27083 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27084echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27085 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27086 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27087echo "${ECHO_T}$PANGOX_LIBS" >&6
27088 else
27089 PANGOX_CFLAGS=""
27090 PANGOX_LIBS=""
27091 ## If we have a custom action on failure, don't print errors, but
27092 ## do set a variable so people can do so.
27093 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27094
27095 fi
27096
27097
27098
27099 else
27100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27102 fi
27103 fi
27104
27105 if test $succeeded = yes; then
27106
27107 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27108 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27109
27110 else
27111
27112 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27113echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27114 { (exit 1); exit 1; }; }
27115
27116
27117 fi
27118
27119
27120 succeeded=no
27121
27122 if test -z "$PKG_CONFIG"; then
27123 # Extract the first word of "pkg-config", so it can be a program name with args.
27124set dummy pkg-config; ac_word=$2
27125echo "$as_me:$LINENO: checking for $ac_word" >&5
27126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27127if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27128 echo $ECHO_N "(cached) $ECHO_C" >&6
27129else
27130 case $PKG_CONFIG in
27131 [\\/]* | ?:[\\/]*)
27132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27133 ;;
27134 *)
27135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27136for as_dir in $PATH
27137do
27138 IFS=$as_save_IFS
27139 test -z "$as_dir" && as_dir=.
27140 for ac_exec_ext in '' $ac_executable_extensions; do
27141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27144 break 2
27145 fi
27146done
27147done
27148
27149 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27150 ;;
27151esac
27152fi
27153PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27154
27155if test -n "$PKG_CONFIG"; then
27156 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27157echo "${ECHO_T}$PKG_CONFIG" >&6
27158else
27159 echo "$as_me:$LINENO: result: no" >&5
27160echo "${ECHO_T}no" >&6
27161fi
27162
27163 fi
27164
27165 if test "$PKG_CONFIG" = "no" ; then
27166 echo "*** The pkg-config script could not be found. Make sure it is"
27167 echo "*** in your path, or set the PKG_CONFIG environment variable"
27168 echo "*** to the full path to pkg-config."
27169 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27170 else
27171 PKG_CONFIG_MIN_VERSION=0.9.0
27172 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27173 echo "$as_me:$LINENO: checking for pangoft2" >&5
27174echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27175
27176 if $PKG_CONFIG --exists "pangoft2" ; then
27177 echo "$as_me:$LINENO: result: yes" >&5
27178echo "${ECHO_T}yes" >&6
27179 succeeded=yes
27180
27181 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27182echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27183 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27184 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27185echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27186
27187 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27188echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27189 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27190 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27191echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27192 else
27193 PANGOFT2_CFLAGS=""
27194 PANGOFT2_LIBS=""
27195 ## If we have a custom action on failure, don't print errors, but
27196 ## do set a variable so people can do so.
27197 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27198
27199 fi
27200
27201
27202
27203 else
27204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27206 fi
27207 fi
27208
27209 if test $succeeded = yes; then
27210
27211 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27212 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27213
27214 else
27215
27216 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27217echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27218 wxUSE_PRINTING_ARCHITECTURE="no"
27219
27220
27221 fi
27222
27223
27224 succeeded=no
27225
27226 if test -z "$PKG_CONFIG"; then
27227 # Extract the first word of "pkg-config", so it can be a program name with args.
27228set dummy pkg-config; ac_word=$2
27229echo "$as_me:$LINENO: checking for $ac_word" >&5
27230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27231if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27232 echo $ECHO_N "(cached) $ECHO_C" >&6
27233else
27234 case $PKG_CONFIG in
27235 [\\/]* | ?:[\\/]*)
27236 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27237 ;;
27238 *)
27239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27240for as_dir in $PATH
27241do
27242 IFS=$as_save_IFS
27243 test -z "$as_dir" && as_dir=.
27244 for ac_exec_ext in '' $ac_executable_extensions; do
27245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27246 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27248 break 2
27249 fi
27250done
27251done
27252
27253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27254 ;;
27255esac
27256fi
27257PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27258
27259if test -n "$PKG_CONFIG"; then
27260 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27261echo "${ECHO_T}$PKG_CONFIG" >&6
27262else
27263 echo "$as_me:$LINENO: result: no" >&5
27264echo "${ECHO_T}no" >&6
27265fi
27266
27267 fi
27268
27269 if test "$PKG_CONFIG" = "no" ; then
27270 echo "*** The pkg-config script could not be found. Make sure it is"
27271 echo "*** in your path, or set the PKG_CONFIG environment variable"
27272 echo "*** to the full path to pkg-config."
27273 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27274 else
27275 PKG_CONFIG_MIN_VERSION=0.9.0
27276 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27277 echo "$as_me:$LINENO: checking for pangoxft" >&5
27278echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27279
27280 if $PKG_CONFIG --exists "pangoxft" ; then
27281 echo "$as_me:$LINENO: result: yes" >&5
27282echo "${ECHO_T}yes" >&6
27283 succeeded=yes
27284
27285 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27286echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27287 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27288 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27289echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27290
27291 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27292echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27293 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27294 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27295echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27296 else
27297 PANGOXFT_CFLAGS=""
27298 PANGOXFT_LIBS=""
27299 ## If we have a custom action on failure, don't print errors, but
27300 ## do set a variable so people can do so.
27301 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27302
27303 fi
27304
27305
27306
27307 else
27308 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27309 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27310 fi
27311 fi
27312
27313 if test $succeeded = yes; then
27314
4ae1af05
MB
27315 cat >>confdefs.h <<\_ACEOF
27316#define HAVE_PANGO_XFT 1
27317_ACEOF
27318
a848cd7e
SC
27319 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27320 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27321
27322 else
27323
27324 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27325echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27326
27327
27328 fi
27329
304205f1
VS
27330 save_CFLAGS="$CFLAGS"
27331 save_LIBS="$LIBS"
27332 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27333 LIBS="$LIBS $PANGOX_LIBS"
27334
27335for ac_func in pango_font_family_is_monospace
27336do
27337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27338echo "$as_me:$LINENO: checking for $ac_func" >&5
27339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27340if eval "test \"\${$as_ac_var+set}\" = set"; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27342else
27343 cat >conftest.$ac_ext <<_ACEOF
27344/* confdefs.h. */
27345_ACEOF
27346cat confdefs.h >>conftest.$ac_ext
27347cat >>conftest.$ac_ext <<_ACEOF
27348/* end confdefs.h. */
27349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27351#define $ac_func innocuous_$ac_func
27352
27353/* System header to define __stub macros and hopefully few prototypes,
27354 which can conflict with char $ac_func (); below.
27355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27356 <limits.h> exists even on freestanding compilers. */
27357
27358#ifdef __STDC__
27359# include <limits.h>
27360#else
27361# include <assert.h>
27362#endif
27363
27364#undef $ac_func
27365
27366/* Override any gcc2 internal prototype to avoid an error. */
27367#ifdef __cplusplus
27368extern "C"
27369{
27370#endif
27371/* We use char because int might match the return type of a gcc2
27372 builtin and then its argument prototype would still apply. */
27373char $ac_func ();
27374/* The GNU C library defines this for functions which it implements
27375 to always fail with ENOSYS. Some functions are actually named
27376 something starting with __ and the normal name is an alias. */
27377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27378choke me
27379#else
27380char (*f) () = $ac_func;
27381#endif
27382#ifdef __cplusplus
27383}
27384#endif
27385
27386int
27387main ()
27388{
27389return f != $ac_func;
27390 ;
27391 return 0;
27392}
27393_ACEOF
27394rm -f conftest.$ac_objext conftest$ac_exeext
27395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27396 (eval $ac_link) 2>conftest.er1
27397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
07158944 27403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 eval "$as_ac_var=yes"
27416else
27417 echo "$as_me: failed program was:" >&5
27418sed 's/^/| /' conftest.$ac_ext >&5
27419
27420eval "$as_ac_var=no"
27421fi
27422rm -f conftest.err conftest.$ac_objext \
27423 conftest$ac_exeext conftest.$ac_ext
27424fi
27425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27427if test `eval echo '${'$as_ac_var'}'` = yes; then
27428 cat >>confdefs.h <<_ACEOF
27429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27430_ACEOF
27431
27432fi
27433done
27434
27435 CFLAGS="$save_CFLAGS"
27436 LIBS="$save_LIBS"
a848cd7e
SC
27437 fi
27438
27439 wxUSE_UNIVERSAL="yes"
27440
27441 if test "$wxUSE_NANOX" = "yes"; then
27442 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27443 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"
27444 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27445 else
27446 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27447 fi
27448
a848cd7e
SC
27449 TOOLKIT=X11
27450 GUIDIST=X11_DIST
27451 fi
27452
27453 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27454 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27455echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27456
74b84332
VS
27457ac_find_includes=
27458for ac_dir in $SEARCH_INCLUDE /usr/include;
27459 do
27460 if test -f "$ac_dir/Xm/Xm.h"; then
27461 ac_find_includes=$ac_dir
27462 break
27463 fi
27464 done
a848cd7e 27465
74b84332
VS
27466 if test "$ac_find_includes" != "" ; then
27467 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27468echo "${ECHO_T}found in $ac_find_includes" >&6
27469
27470 if test "x$ac_find_includes" = "x/usr/include"; then
27471 ac_path_to_include=""
27472 else
27473 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27474 result=$?
27475 if test $result = 0; then
27476 ac_path_to_include=""
27477 else
27478 ac_path_to_include=" -I$ac_find_includes"
27479 fi
a848cd7e
SC
27480 fi
27481
74b84332
VS
27482 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27483 else
27484 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490
74b84332
VS
27491 #include <Xm/Xm.h>
27492
a848cd7e
SC
27493int
27494main ()
27495{
27496
74b84332
VS
27497 int version;
27498 version = xmUseVersion;
27499
a848cd7e
SC
27500 ;
27501 return 0;
27502}
27503_ACEOF
74b84332
VS
27504rm -f conftest.$ac_objext
27505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
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); } &&
07158944 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); }; } &&
74b84332 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
74b84332
VS
27525
27526 echo "$as_me:$LINENO: result: found in default search path" >&5
27527echo "${ECHO_T}found in default search path" >&6
27528 COMPILED_X_PROGRAM=1
27529
a848cd7e
SC
27530else
27531 echo "$as_me: failed program was:" >&5
27532sed 's/^/| /' conftest.$ac_ext >&5
27533
a848cd7e 27534
74b84332
VS
27535 echo "$as_me:$LINENO: result: no" >&5
27536echo "${ECHO_T}no" >&6
27537 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27538echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27539 { (exit 1); exit 1; }; }
a848cd7e 27540
a848cd7e 27541
a848cd7e 27542fi
74b84332
VS
27543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27544 fi
27545
27546 if test "$COMPILED_X_PROGRAM" = 0; then
27547 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27548echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27549
27550ac_find_libraries=
27551for ac_dir in $SEARCH_LIB /usr/lib;
27552 do
27553 for ac_extension in a so sl dylib; do
27554 if test -f "$ac_dir/libXm.$ac_extension"; then
27555 ac_find_libraries=$ac_dir
27556 break 2
a848cd7e 27557 fi
74b84332
VS
27558 done
27559 done
a848cd7e 27560
74b84332
VS
27561 if test "$ac_find_libraries" != "" ; then
27562 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27563echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27564
74b84332
VS
27565
27566 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27567 result=$?
27568 if test $result = 0; then
27569 ac_path_to_link=""
a848cd7e 27570 else
74b84332
VS
27571 ac_path_to_link=" -L$ac_find_libraries"
27572 fi
27573
27574 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27575 else
27576 save_CFLAGS=$CFLAGS
27577 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27578
27579 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27580/* confdefs.h. */
27581_ACEOF
27582cat confdefs.h >>conftest.$ac_ext
27583cat >>conftest.$ac_ext <<_ACEOF
27584/* end confdefs.h. */
27585
74b84332
VS
27586 #include <Xm/Xm.h>
27587
a848cd7e
SC
27588int
27589main ()
27590{
74b84332
VS
27591
27592 int version;
27593 version = xmUseVersion;
27594
a848cd7e
SC
27595 ;
27596 return 0;
27597}
27598_ACEOF
74b84332
VS
27599rm -f conftest.$ac_objext
27600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27601 (eval $ac_compile) 2>conftest.er1
a848cd7e 27602 ac_status=$?
ac1cb8d3
VS
27603 grep -v '^ *+' conftest.er1 >conftest.err
27604 rm -f conftest.er1
27605 cat conftest.err >&5
a848cd7e
SC
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); } &&
07158944 27608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27611 ac_status=$?
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; } &&
74b84332 27614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616 (eval $ac_try) 2>&5
27617 ac_status=$?
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; }; then
74b84332
VS
27620
27621 echo "$as_me:$LINENO: result: found in default search path" >&5
27622echo "${ECHO_T}found in default search path" >&6
27623 COMPILED_X_PROGRAM=1
27624
a848cd7e
SC
27625else
27626 echo "$as_me: failed program was:" >&5
27627sed 's/^/| /' conftest.$ac_ext >&5
27628
74b84332
VS
27629
27630 echo "$as_me:$LINENO: result: no" >&5
27631echo "${ECHO_T}no" >&6
27632 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27633echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27634 { (exit 1); exit 1; }; }
27635
27636
27637fi
27638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27639
27640 CFLAGS=$save_CFLAGS
27641 fi
27642 fi
27643
27644 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27645echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27646 libp_link=""
27647 libsm_ice_link=""
27648 libs_found=0
27649 for libp in "" " -lXp"; do
27650 if test "$libs_found" = "0"; then
27651 for libsm_ice in "" " -lSM -lICE"; do
27652 if test "$libs_found" = "0"; then
27653 save_LIBS="$LIBS"
27654 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27655 save_CFLAGS=$CFLAGS
27656 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27657
27658 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27659/* confdefs.h. */
27660_ACEOF
27661cat confdefs.h >>conftest.$ac_ext
27662cat >>conftest.$ac_ext <<_ACEOF
27663/* end confdefs.h. */
27664
74b84332
VS
27665 #include <Xm/Xm.h>
27666 #include <Xm/List.h>
27667
a848cd7e
SC
27668int
27669main ()
27670{
74b84332
VS
27671
27672 XmString string = NULL;
27673 Widget w = NULL;
27674 int position = 0;
27675 XmListAddItem(w, string, position);
27676
a848cd7e
SC
27677 ;
27678 return 0;
27679}
27680_ACEOF
27681rm -f conftest.$ac_objext conftest$ac_exeext
27682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27683 (eval $ac_link) 2>conftest.er1
a848cd7e 27684 ac_status=$?
ac1cb8d3
VS
27685 grep -v '^ *+' conftest.er1 >conftest.err
27686 rm -f conftest.er1
27687 cat conftest.err >&5
a848cd7e
SC
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
07158944 27690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692 (eval $ac_try) 2>&5
27693 ac_status=$?
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; } &&
27696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698 (eval $ac_try) 2>&5
27699 ac_status=$?
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
27702
27703 libp_link="$libp"
27704 libsm_ice_link="$libsm_ice"
27705 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27706echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27707 libs_found=1
27708
27709else
27710 echo "$as_me: failed program was:" >&5
27711sed 's/^/| /' conftest.$ac_ext >&5
27712
27713
27714
27715fi
ac1cb8d3
VS
27716rm -f conftest.err conftest.$ac_objext \
27717 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27718
27719 LIBS="$save_LIBS"
27720 CFLAGS=$save_CFLAGS
27721 fi
27722 done
27723 fi
27724 done
27725
27726 if test "$libs_found" = "0"; then
27727 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27728echo "${ECHO_T}can't find the right libraries" >&6
27729 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27730echo "$as_me: error: can't link a simple motif program" >&2;}
27731 { (exit 1); exit 1; }; }
27732 fi
27733
27734 save_CFLAGS=$CFLAGS
27735 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27736 echo "$as_me:$LINENO: checking for Motif 2" >&5
27737echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27738 cat >conftest.$ac_ext <<_ACEOF
27739/* confdefs.h. */
27740_ACEOF
27741cat confdefs.h >>conftest.$ac_ext
27742cat >>conftest.$ac_ext <<_ACEOF
27743/* end confdefs.h. */
27744
27745 #include <Xm/Xm.h>
27746
27747int
27748main ()
27749{
27750
27751 #if XmVersion < 2000
27752 #error "Not Motif 2"
27753 #endif
27754
27755 ;
27756 return 0;
27757}
27758_ACEOF
27759rm -f conftest.$ac_objext
27760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27761 (eval $ac_compile) 2>conftest.er1
a848cd7e 27762 ac_status=$?
ac1cb8d3
VS
27763 grep -v '^ *+' conftest.er1 >conftest.err
27764 rm -f conftest.er1
27765 cat conftest.err >&5
a848cd7e
SC
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } &&
07158944 27768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770 (eval $ac_try) 2>&5
27771 ac_status=$?
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776 (eval $ac_try) 2>&5
27777 ac_status=$?
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); }; }; then
27780
27781 cat >>confdefs.h <<\_ACEOF
27782#define __WXMOTIF20__ 1
27783_ACEOF
27784
27785 echo "$as_me:$LINENO: result: found" >&5
27786echo "${ECHO_T}found" >&6
27787
27788else
27789 echo "$as_me: failed program was:" >&5
27790sed 's/^/| /' conftest.$ac_ext >&5
27791
27792
27793 cat >>confdefs.h <<\_ACEOF
27794#define __WXMOTIF20__ 0
27795_ACEOF
27796
27797 echo "$as_me:$LINENO: result: not found" >&5
27798echo "${ECHO_T}not found" >&6
27799
27800fi
ac1cb8d3 27801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27802 CFLAGS=$save_CFLAGS
27803
27804 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27805 TOOLKIT=MOTIF
27806 GUIDIST=MOTIF_DIST
27807 fi
27808
74b84332 27809 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27810 if test "$wxUSE_LIBXPM" = "sys"; then
27811 echo "$as_me:$LINENO: checking for Xpm library" >&5
27812echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27813
27814ac_find_libraries=
27815for ac_dir in $SEARCH_LIB /usr/lib;
27816 do
27817 for ac_extension in a so sl dylib; do
27818 if test -f "$ac_dir/libXpm.$ac_extension"; then
27819 ac_find_libraries=$ac_dir
27820 break 2
27821 fi
27822 done
27823 done
27824
27825 if test "$ac_find_libraries" != "" ; then
27826
27827 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27828 result=$?
27829 if test $result = 0; then
27830 ac_path_to_link=""
27831 else
27832 ac_path_to_link=" -L$ac_find_libraries"
27833 fi
27834
27835 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27836 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27837echo "${ECHO_T}found at $ac_find_libraries" >&6
27838
27839 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27840echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27841if test "${wx_cv_x11_xpm_h+set}" = set; then
27842 echo $ECHO_N "(cached) $ECHO_C" >&6
27843else
27844
27845 save_CFLAGS=$CFLAGS
27846 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27847
27848 cat >conftest.$ac_ext <<_ACEOF
27849/* confdefs.h. */
27850_ACEOF
27851cat confdefs.h >>conftest.$ac_ext
27852cat >>conftest.$ac_ext <<_ACEOF
27853/* end confdefs.h. */
27854
27855 #include <X11/xpm.h>
27856
27857int
27858main ()
27859{
27860
27861 int version;
27862 version = XpmLibraryVersion();
27863
27864 ;
27865 return 0;
27866}
27867_ACEOF
27868rm -f conftest.$ac_objext
27869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27870 (eval $ac_compile) 2>conftest.er1
a848cd7e 27871 ac_status=$?
ac1cb8d3
VS
27872 grep -v '^ *+' conftest.er1 >conftest.err
27873 rm -f conftest.er1
27874 cat conftest.err >&5
a848cd7e
SC
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } &&
07158944 27877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27880 ac_status=$?
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; } &&
27883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; }; then
27889 wx_cv_x11_xpm_h=yes
27890else
27891 echo "$as_me: failed program was:" >&5
27892sed 's/^/| /' conftest.$ac_ext >&5
27893
27894wx_cv_x11_xpm_h=no
27895
27896fi
ac1cb8d3 27897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27898
27899 CFLAGS=$save_CFLAGS
27900
27901
27902fi
27903echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27904echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27905
27906 if test $wx_cv_x11_xpm_h = "yes"; then
27907 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27908 cat >>confdefs.h <<\_ACEOF
27909#define wxHAVE_LIB_XPM 1
27910_ACEOF
27911
27912 else
27913 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27914echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27915 fi
27916 fi
27917
27918 fi
27919
27920 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27921echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27922if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27923 echo $ECHO_N "(cached) $ECHO_C" >&6
27924else
27925 ac_check_lib_save_LIBS=$LIBS
27926LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27927cat >conftest.$ac_ext <<_ACEOF
27928/* confdefs.h. */
27929_ACEOF
27930cat confdefs.h >>conftest.$ac_ext
27931cat >>conftest.$ac_ext <<_ACEOF
27932/* end confdefs.h. */
27933
27934/* Override any gcc2 internal prototype to avoid an error. */
27935#ifdef __cplusplus
27936extern "C"
27937#endif
27938/* We use char because int might match the return type of a gcc2
27939 builtin and then its argument prototype would still apply. */
27940char XShapeQueryExtension ();
27941int
27942main ()
27943{
27944XShapeQueryExtension ();
27945 ;
27946 return 0;
27947}
27948_ACEOF
27949rm -f conftest.$ac_objext conftest$ac_exeext
27950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27951 (eval $ac_link) 2>conftest.er1
a848cd7e 27952 ac_status=$?
ac1cb8d3
VS
27953 grep -v '^ *+' conftest.er1 >conftest.err
27954 rm -f conftest.er1
27955 cat conftest.err >&5
a848cd7e
SC
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); } &&
07158944 27958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27961 ac_status=$?
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; } &&
27964 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27967 ac_status=$?
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; }; then
27970 ac_cv_lib_Xext_XShapeQueryExtension=yes
27971else
27972 echo "$as_me: failed program was:" >&5
27973sed 's/^/| /' conftest.$ac_ext >&5
27974
27975ac_cv_lib_Xext_XShapeQueryExtension=no
27976fi
ac1cb8d3
VS
27977rm -f conftest.err conftest.$ac_objext \
27978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27979LIBS=$ac_check_lib_save_LIBS
27980fi
27981echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27982echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27983if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27984
27985 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27986 wxHAVE_XEXT_LIB=1
27987
27988fi
27989
27990
27991 if test "$wxHAVE_XEXT_LIB" = 1; then
27992 save_CFLAGS="$CFLAGS"
27993 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27994
27995 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27996echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27997 cat >conftest.$ac_ext <<_ACEOF
27998/* confdefs.h. */
27999_ACEOF
28000cat confdefs.h >>conftest.$ac_ext
28001cat >>conftest.$ac_ext <<_ACEOF
28002/* end confdefs.h. */
28003
28004 #include <X11/Xlib.h>
28005 #include <X11/extensions/shape.h>
28006
28007int
28008main ()
28009{
28010
28011 int dummy1, dummy2;
28012 XShapeQueryExtension((Display*)NULL,
28013 (int*)NULL, (int*)NULL);
28014
28015 ;
28016 return 0;
28017}
28018_ACEOF
28019rm -f conftest.$ac_objext
28020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28021 (eval $ac_compile) 2>conftest.er1
a848cd7e 28022 ac_status=$?
ac1cb8d3
VS
28023 grep -v '^ *+' conftest.er1 >conftest.err
28024 rm -f conftest.er1
28025 cat conftest.err >&5
a848cd7e
SC
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); } &&
07158944 28028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28030 (eval $ac_try) 2>&5
28031 ac_status=$?
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); }; } &&
28034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28036 (eval $ac_try) 2>&5
28037 ac_status=$?
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; }; then
28040
28041 cat >>confdefs.h <<\_ACEOF
28042#define HAVE_XSHAPE 1
28043_ACEOF
28044
28045 echo "$as_me:$LINENO: result: found" >&5
28046echo "${ECHO_T}found" >&6
28047
28048else
28049 echo "$as_me: failed program was:" >&5
28050sed 's/^/| /' conftest.$ac_ext >&5
28051
28052
28053 echo "$as_me:$LINENO: result: not found" >&5
28054echo "${ECHO_T}not found" >&6
28055
28056fi
ac1cb8d3 28057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28058 CFLAGS="$save_CFLAGS"
28059
28060 fi
28061 fi
28062
28063 if test "$wxUSE_MAC" = 1; then
28064 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28065echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28066 if test "$GCC" = yes; then
28067 echo "$as_me:$LINENO: result: gcc" >&5
28068echo "${ECHO_T}gcc" >&6
28069 CPPFLAGS_PASCAL="-fpascal-strings"
28070 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28071 echo "$as_me:$LINENO: result: xlc" >&5
28072echo "${ECHO_T}xlc" >&6
28073 CPPFLAGS_PASCAL="-qmacpstr"
28074 else
28075 echo "$as_me:$LINENO: result: none" >&5
28076echo "${ECHO_T}none" >&6
28077 fi
28078
1e9e8aba
DE
28079 if test "x$wxUSE_UNIX" = "xyes"; then
28080 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28081 else
28082 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28083 fi
a848cd7e 28084
a848cd7e
SC
28085 TOOLKIT=MAC
28086 GUIDIST=MACX_DIST
dd21ced8 28087 WXBASEPORT="_carbon"
a848cd7e
SC
28088 fi
28089
28090 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28091 TOOLKIT=COCOA
28092 GUIDIST=COCOA_DIST
28093 fi
28094
28095 if test "$wxUSE_PM" = 1; then
28096 TOOLKIT=PM
de59c161
RD
28097 GUIDIST=PM_DIST
28098 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28099echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28100if test "${wx_cv_spbcdata+set}" = set; then
28101 echo $ECHO_N "(cached) $ECHO_C" >&6
28102else
28103
28104 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28105/* confdefs.h. */
28106_ACEOF
28107cat confdefs.h >>conftest.$ac_ext
28108cat >>conftest.$ac_ext <<_ACEOF
28109/* end confdefs.h. */
28110
28111 #define INCL_PM
28112 #include <os2.h>
28113
28114int
28115main ()
28116{
28117
28118 SPBCDATA test;
28119
28120 ;
28121 return 0;
28122}
28123_ACEOF
28124rm -f conftest.$ac_objext
28125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28126 (eval $ac_compile) 2>conftest.er1
de59c161 28127 ac_status=$?
ac1cb8d3
VS
28128 grep -v '^ *+' conftest.er1 >conftest.err
28129 rm -f conftest.er1
28130 cat conftest.err >&5
de59c161
RD
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); } &&
07158944 28133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28135 (eval $ac_try) 2>&5
28136 ac_status=$?
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); }; } &&
28139 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28141 (eval $ac_try) 2>&5
28142 ac_status=$?
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); }; }; then
28145 wx_cv_spbcdata=yes
28146else
28147 echo "$as_me: failed program was:" >&5
28148sed 's/^/| /' conftest.$ac_ext >&5
28149
28150wx_cv_spbcdata=no
28151
28152fi
ac1cb8d3 28153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28154
28155
28156fi
28157echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28158echo "${ECHO_T}$wx_cv_spbcdata" >&6
28159
28160 if test $wx_cv_spbcdata = "yes"; then
28161 cat >>confdefs.h <<\_ACEOF
28162#define HAVE_SPBCDATA 1
28163_ACEOF
28164
28165 fi
a848cd7e
SC
28166 fi
28167
28168 if test "$TOOLKIT" = "PM" ; then
28169 TOOLKIT_DIR="os2"
28170 else
28171 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28172 fi
28173
a848cd7e 28174 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28175 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28176 WIDGET_SET=univ
a848cd7e
SC
28177 fi
28178
28179 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28180 DISTDIR="wx\$(TOOLKIT)"
28181else
28182 USE_GUI=0
28183
28184 TOOLKIT_DIR="base"
28185
28186 if test "$USE_WIN32" = 1 ; then
a848cd7e 28187 TOOLKIT="MSW"
a848cd7e
SC
28188 fi
28189
a848cd7e
SC
28190 GUIDIST="BASE_DIST"
28191 DISTDIR="wxBase"
28192fi
28193
28194
28195
28196
28197IODBC_C_SRC=""
28198
28199
28200if test "$TOOLKIT" != "MSW" ; then
28201
28202 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28203
28204 if test "${ac_cv_header_sql_h+set}" = set; then
28205 echo "$as_me:$LINENO: checking for sql.h" >&5
28206echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28207if test "${ac_cv_header_sql_h+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28209fi
28210echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28211echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28212else
28213 # Is the header compilable?
28214echo "$as_me:$LINENO: checking sql.h usability" >&5
28215echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28216cat >conftest.$ac_ext <<_ACEOF
28217/* confdefs.h. */
28218_ACEOF
28219cat confdefs.h >>conftest.$ac_ext
28220cat >>conftest.$ac_ext <<_ACEOF
28221/* end confdefs.h. */
28222$ac_includes_default
28223#include <sql.h>
28224_ACEOF
28225rm -f conftest.$ac_objext
28226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28227 (eval $ac_compile) 2>conftest.er1
a848cd7e 28228 ac_status=$?
ac1cb8d3
VS
28229 grep -v '^ *+' conftest.er1 >conftest.err
28230 rm -f conftest.er1
28231 cat conftest.err >&5
a848cd7e
SC
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } &&
07158944 28234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 ac_header_compiler=yes
28247else
28248 echo "$as_me: failed program was:" >&5
28249sed 's/^/| /' conftest.$ac_ext >&5
28250
28251ac_header_compiler=no
28252fi
ac1cb8d3 28253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28254echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28255echo "${ECHO_T}$ac_header_compiler" >&6
28256
28257# Is the header present?
28258echo "$as_me:$LINENO: checking sql.h presence" >&5
28259echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28260cat >conftest.$ac_ext <<_ACEOF
28261/* confdefs.h. */
28262_ACEOF
28263cat confdefs.h >>conftest.$ac_ext
28264cat >>conftest.$ac_ext <<_ACEOF
28265/* end confdefs.h. */
28266#include <sql.h>
28267_ACEOF
28268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28270 ac_status=$?
28271 grep -v '^ *+' conftest.er1 >conftest.err
28272 rm -f conftest.er1
28273 cat conftest.err >&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } >/dev/null; then
28276 if test -s conftest.err; then
28277 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28279 else
28280 ac_cpp_err=
28281 fi
28282else
28283 ac_cpp_err=yes
28284fi
28285if test -z "$ac_cpp_err"; then
28286 ac_header_preproc=yes
28287else
28288 echo "$as_me: failed program was:" >&5
28289sed 's/^/| /' conftest.$ac_ext >&5
28290
28291 ac_header_preproc=no
28292fi
28293rm -f conftest.err conftest.$ac_ext
28294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28295echo "${ECHO_T}$ac_header_preproc" >&6
28296
28297# So? What about this header?
ac1cb8d3
VS
28298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28299 yes:no: )
a848cd7e
SC
28300 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28301echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28302 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28303echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28304 ac_header_preproc=yes
a848cd7e 28305 ;;
ac1cb8d3 28306 no:yes:* )
a848cd7e
SC
28307 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28308echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28309 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28310echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28311 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28312echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28313 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28314echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28315 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28316echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28317 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28318echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28319 (
28320 cat <<\_ASBOX
ac1cb8d3
VS
28321## ----------------------------------------- ##
28322## Report this to wx-dev@lists.wxwidgets.org ##
28323## ----------------------------------------- ##
a848cd7e
SC
28324_ASBOX
28325 ) |
28326 sed "s/^/$as_me: WARNING: /" >&2
28327 ;;
28328esac
28329echo "$as_me:$LINENO: checking for sql.h" >&5
28330echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28331if test "${ac_cv_header_sql_h+set}" = set; then
28332 echo $ECHO_N "(cached) $ECHO_C" >&6
28333else
28334 ac_cv_header_sql_h=$ac_header_preproc
28335fi
28336echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28337echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28338
28339fi
28340if test $ac_cv_header_sql_h = yes; then
28341 found_sql_h=1
28342fi
28343
28344
28345 if test "x$found_sql_h" = "x1" ; then
28346 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28347echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28348if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28349 echo $ECHO_N "(cached) $ECHO_C" >&6
28350else
28351 ac_check_lib_save_LIBS=$LIBS
28352LIBS="-liodbc $LIBS"
28353cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
28359
28360/* Override any gcc2 internal prototype to avoid an error. */
28361#ifdef __cplusplus
28362extern "C"
28363#endif
28364/* We use char because int might match the return type of a gcc2
28365 builtin and then its argument prototype would still apply. */
28366char SQLAllocEnv ();
28367int
28368main ()
28369{
28370SQLAllocEnv ();
28371 ;
28372 return 0;
28373}
28374_ACEOF
28375rm -f conftest.$ac_objext conftest$ac_exeext
28376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28377 (eval $ac_link) 2>conftest.er1
a848cd7e 28378 ac_status=$?
ac1cb8d3
VS
28379 grep -v '^ *+' conftest.er1 >conftest.err
28380 rm -f conftest.er1
28381 cat conftest.err >&5
a848cd7e
SC
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } &&
07158944 28384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28386 (eval $ac_try) 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; }; then
28396 ac_cv_lib_iodbc_SQLAllocEnv=yes
28397else
28398 echo "$as_me: failed program was:" >&5
28399sed 's/^/| /' conftest.$ac_ext >&5
28400
28401ac_cv_lib_iodbc_SQLAllocEnv=no
28402fi
ac1cb8d3
VS
28403rm -f conftest.err conftest.$ac_objext \
28404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28405LIBS=$ac_check_lib_save_LIBS
28406fi
28407echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28408echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28409if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28410 ODBC_LINK=" -liodbc"
28411else
28412
28413 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28414echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28415if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28416 echo $ECHO_N "(cached) $ECHO_C" >&6
28417else
28418 ac_check_lib_save_LIBS=$LIBS
28419LIBS="-lunixodbc $LIBS"
28420cat >conftest.$ac_ext <<_ACEOF
28421/* confdefs.h. */
28422_ACEOF
28423cat confdefs.h >>conftest.$ac_ext
28424cat >>conftest.$ac_ext <<_ACEOF
28425/* end confdefs.h. */
28426
28427/* Override any gcc2 internal prototype to avoid an error. */
28428#ifdef __cplusplus
28429extern "C"
28430#endif
28431/* We use char because int might match the return type of a gcc2
28432 builtin and then its argument prototype would still apply. */
28433char SQLAllocEnv ();
28434int
28435main ()
28436{
28437SQLAllocEnv ();
28438 ;
28439 return 0;
28440}
28441_ACEOF
28442rm -f conftest.$ac_objext conftest$ac_exeext
28443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28444 (eval $ac_link) 2>conftest.er1
a848cd7e 28445 ac_status=$?
ac1cb8d3
VS
28446 grep -v '^ *+' conftest.er1 >conftest.err
28447 rm -f conftest.er1
28448 cat conftest.err >&5
a848cd7e
SC
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); } &&
07158944 28451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459 (eval $ac_try) 2>&5
28460 ac_status=$?
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; }; then
28463 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28464else
28465 echo "$as_me: failed program was:" >&5
28466sed 's/^/| /' conftest.$ac_ext >&5
28467
28468ac_cv_lib_unixodbc_SQLAllocEnv=no
28469fi
ac1cb8d3
VS
28470rm -f conftest.err conftest.$ac_objext \
28471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28472LIBS=$ac_check_lib_save_LIBS
28473fi
28474echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28475echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28476if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28477 ODBC_LINK=" -lunixodbc"
28478else
28479
28480 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28481echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28482if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28483 echo $ECHO_N "(cached) $ECHO_C" >&6
28484else
28485 ac_check_lib_save_LIBS=$LIBS
28486LIBS="-lodbc $LIBS"
28487cat >conftest.$ac_ext <<_ACEOF
28488/* confdefs.h. */
28489_ACEOF
28490cat confdefs.h >>conftest.$ac_ext
28491cat >>conftest.$ac_ext <<_ACEOF
28492/* end confdefs.h. */
28493
28494/* Override any gcc2 internal prototype to avoid an error. */
28495#ifdef __cplusplus
28496extern "C"
28497#endif
28498/* We use char because int might match the return type of a gcc2
28499 builtin and then its argument prototype would still apply. */
28500char SQLAllocEnv ();
28501int
28502main ()
28503{
28504SQLAllocEnv ();
28505 ;
28506 return 0;
28507}
28508_ACEOF
28509rm -f conftest.$ac_objext conftest$ac_exeext
28510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28511 (eval $ac_link) 2>conftest.er1
a848cd7e 28512 ac_status=$?
ac1cb8d3
VS
28513 grep -v '^ *+' conftest.er1 >conftest.err
28514 rm -f conftest.er1
28515 cat conftest.err >&5
a848cd7e
SC
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); } &&
07158944 28518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28521 ac_status=$?
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; } &&
28524 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28530 ac_cv_lib_odbc_SQLAllocEnv=yes
28531else
28532 echo "$as_me: failed program was:" >&5
28533sed 's/^/| /' conftest.$ac_ext >&5
28534
28535ac_cv_lib_odbc_SQLAllocEnv=no
28536fi
ac1cb8d3
VS
28537rm -f conftest.err conftest.$ac_objext \
28538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28539LIBS=$ac_check_lib_save_LIBS
28540fi
28541echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28542echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28543if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28544 ODBC_LINK=" -lodbc"
28545fi
28546
28547
28548fi
28549
28550
28551fi
28552
28553 fi
28554 if test "x$ODBC_LINK" = "x" ; then
28555 if test "$wxUSE_ODBC" = "sys" ; then
28556 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28557echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28558 { (exit 1); exit 1; }; }
28559 else
28560 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28561echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28562 wxUSE_ODBC=builtin
28563 fi
28564 else
28565 wxUSE_ODBC=sys
28566 fi
28567 fi
a848cd7e 28568
2da0c077
RD
28569 if test "$wxUSE_ODBC" = "builtin" ; then
28570 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28571#define wxUSE_BUILTIN_IODBC 1
28572_ACEOF
28573
a848cd7e
SC
28574 fi
28575fi
28576
2da0c077
RD
28577if test "$wxUSE_ODBC" != "no" ; then
28578 cat >>confdefs.h <<\_ACEOF
28579#define wxUSE_ODBC 1
28580_ACEOF
28581
28582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28583
28584 WXODBCFLAG="-D_IODBC_"
28585fi
a848cd7e 28586
01cb68df 28587
a848cd7e 28588if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28589 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28590 echo "$as_me:$LINENO: checking for Xinerama" >&5
28591echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28592
28593ac_find_libraries=
28594for ac_dir in $SEARCH_LIB /usr/lib;
28595 do
28596 for ac_extension in a so sl dylib; do
28597 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28598 ac_find_libraries=$ac_dir
28599 break 2
28600 fi
28601 done
28602 done
28603
28604 if test "$ac_find_libraries" != "" ; then
28605
28606 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28607 result=$?
28608 if test $result = 0; then
28609 ac_path_to_link=""
28610 else
28611 ac_path_to_link=" -L$ac_find_libraries"
28612 fi
28613
28614 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28615 LDFLAGS="$LDFLAGS $ac_path_to_link"
28616 fi
28617 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28618 echo "$as_me:$LINENO: result: yes" >&5
28619echo "${ECHO_T}yes" >&6
28620
28621 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28622echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28623
28624ac_find_libraries=
28625for ac_dir in $SEARCH_LIB /usr/lib;
28626 do
28627 for ac_extension in a so sl dylib; do
28628 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28629 ac_find_libraries=$ac_dir
28630 break 2
28631 fi
28632 done
28633 done
28634
28635 if test "$ac_find_libraries" != "" ; then
28636 echo "$as_me:$LINENO: result: yes" >&5
28637echo "${ECHO_T}yes" >&6
28638
28639for ac_header in X11/extensions/xf86vmode.h
28640do
28641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28642echo "$as_me:$LINENO: checking for $ac_header" >&5
28643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28644if eval "test \"\${$as_ac_Header+set}\" = set"; then
28645 echo $ECHO_N "(cached) $ECHO_C" >&6
28646else
28647 cat >conftest.$ac_ext <<_ACEOF
28648/* confdefs.h. */
28649_ACEOF
28650cat confdefs.h >>conftest.$ac_ext
28651cat >>conftest.$ac_ext <<_ACEOF
28652/* end confdefs.h. */
28653
28654 #if HAVE_X11_XLIB_H
28655 #include <X11/Xlib.h>
28656 #endif
28657
28658
28659#include <$ac_header>
28660_ACEOF
28661rm -f conftest.$ac_objext
28662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28663 (eval $ac_compile) 2>conftest.er1
a848cd7e 28664 ac_status=$?
ac1cb8d3
VS
28665 grep -v '^ *+' conftest.er1 >conftest.err
28666 rm -f conftest.er1
28667 cat conftest.err >&5
a848cd7e
SC
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); } &&
07158944 28670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28673 ac_status=$?
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28679 ac_status=$?
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 eval "$as_ac_Header=yes"
28683else
28684 echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
28687eval "$as_ac_Header=no"
28688fi
ac1cb8d3 28689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28690fi
28691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28693if test `eval echo '${'$as_ac_Header'}'` = yes; then
28694 cat >>confdefs.h <<_ACEOF
28695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28696_ACEOF
28697
28698 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28699
28700fi
28701
28702done
28703
28704 else
28705 echo "$as_me:$LINENO: result: no" >&5
28706echo "${ECHO_T}no" >&6
28707 fi
28708
28709 else
28710 echo "$as_me:$LINENO: result: no" >&5
28711echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28712 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28713echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28714 wxUSE_DISPLAY="no"
28715 fi
01cb68df
RG
28716 elif test "$wxUSE_MSW" = 1; then
28717
28718
28719for ac_header in multimon.h ddraw.h
28720do
28721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28722echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28724if eval "test \"\${$as_ac_Header+set}\" = set"; then
28725 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28726else
5294a27e 28727 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28728/* confdefs.h. */
28729_ACEOF
28730cat confdefs.h >>conftest.$ac_ext
28731cat >>conftest.$ac_ext <<_ACEOF
28732/* end confdefs.h. */
5294a27e
VZ
28733#include <windows.h>
28734
01cb68df
RG
28735#include <$ac_header>
28736_ACEOF
28737rm -f conftest.$ac_objext
28738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28739 (eval $ac_compile) 2>conftest.er1
01cb68df 28740 ac_status=$?
ac1cb8d3
VS
28741 grep -v '^ *+' conftest.er1 >conftest.err
28742 rm -f conftest.er1
28743 cat conftest.err >&5
01cb68df
RG
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); } &&
07158944 28746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; } &&
28752 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754 (eval $ac_try) 2>&5
28755 ac_status=$?
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); }; }; then
5294a27e 28758 eval "$as_ac_Header=yes"
01cb68df
RG
28759else
28760 echo "$as_me: failed program was:" >&5
28761sed 's/^/| /' conftest.$ac_ext >&5
28762
5294a27e 28763eval "$as_ac_Header=no"
01cb68df 28764fi
ac1cb8d3 28765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28766fi
28767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28769if test `eval echo '${'$as_ac_Header'}'` = yes; then
28770 cat >>confdefs.h <<_ACEOF
28771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28772_ACEOF
28773
28774else
28775
5294a27e
VZ
28776 wxUSE_DISPLAY="no"
28777 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28778echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28779
28780fi
28781
28782done
28783
a848cd7e
SC
28784 fi
28785fi
28786
28787
28788USE_OPENGL=0
28789if test "$wxUSE_OPENGL" = "yes"; then
28790 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28791 OPENGL_LIBS="-framework OpenGL -framework AGL"
28792 elif test "$wxUSE_MSW" = 1; then
28793 OPENGL_LIBS="-lopengl32 -lglu32"
28794 else
28795
28796
28797ac_find_includes=
28798for ac_dir in $SEARCH_INCLUDE /usr/include;
28799 do
28800 if test -f "$ac_dir/GL/gl.h"; then
28801 ac_find_includes=$ac_dir
28802 break
28803 fi
28804 done
28805
28806 if test "$ac_find_includes" != "" ; then
28807 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28808echo "${ECHO_T}found in $ac_find_includes" >&6
28809
28810 if test "x$ac_find_includes" = "x/usr/include"; then
28811 ac_path_to_include=""
28812 else
28813 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28814 result=$?
28815 if test $result = 0; then
28816 ac_path_to_include=""
28817 else
28818 ac_path_to_include=" -I$ac_find_includes"
28819 fi
28820 fi
28821
28822 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28823 fi
28824
28825 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28826 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28827echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28828if test "${ac_cv_header_GL_gl_h+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830fi
28831echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28832echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28833else
28834 # Is the header compilable?
28835echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28836echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28837cat >conftest.$ac_ext <<_ACEOF
28838/* confdefs.h. */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h. */
28843$ac_includes_default
28844#include <GL/gl.h>
28845_ACEOF
28846rm -f conftest.$ac_objext
28847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28848 (eval $ac_compile) 2>conftest.er1
a848cd7e 28849 ac_status=$?
ac1cb8d3
VS
28850 grep -v '^ *+' conftest.er1 >conftest.err
28851 rm -f conftest.er1
28852 cat conftest.err >&5
a848cd7e
SC
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
07158944 28855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
28858 ac_status=$?
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; } &&
28861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28864 ac_status=$?
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; }; then
28867 ac_header_compiler=yes
28868else
28869 echo "$as_me: failed program was:" >&5
28870sed 's/^/| /' conftest.$ac_ext >&5
28871
28872ac_header_compiler=no
28873fi
ac1cb8d3 28874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28876echo "${ECHO_T}$ac_header_compiler" >&6
28877
28878# Is the header present?
28879echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28880echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28881cat >conftest.$ac_ext <<_ACEOF
28882/* confdefs.h. */
28883_ACEOF
28884cat confdefs.h >>conftest.$ac_ext
28885cat >>conftest.$ac_ext <<_ACEOF
28886/* end confdefs.h. */
28887#include <GL/gl.h>
28888_ACEOF
28889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28891 ac_status=$?
28892 grep -v '^ *+' conftest.er1 >conftest.err
28893 rm -f conftest.er1
28894 cat conftest.err >&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } >/dev/null; then
28897 if test -s conftest.err; then
28898 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28900 else
28901 ac_cpp_err=
28902 fi
28903else
28904 ac_cpp_err=yes
28905fi
28906if test -z "$ac_cpp_err"; then
28907 ac_header_preproc=yes
28908else
28909 echo "$as_me: failed program was:" >&5
28910sed 's/^/| /' conftest.$ac_ext >&5
28911
28912 ac_header_preproc=no
28913fi
28914rm -f conftest.err conftest.$ac_ext
28915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28916echo "${ECHO_T}$ac_header_preproc" >&6
28917
28918# So? What about this header?
ac1cb8d3
VS
28919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28920 yes:no: )
a848cd7e
SC
28921 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28922echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28923 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28924echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28925 ac_header_preproc=yes
a848cd7e 28926 ;;
ac1cb8d3 28927 no:yes:* )
a848cd7e
SC
28928 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28929echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28930 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28931echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28932 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28933echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28934 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28935echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28936 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28937echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28938 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28939echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28940 (
28941 cat <<\_ASBOX
ac1cb8d3
VS
28942## ----------------------------------------- ##
28943## Report this to wx-dev@lists.wxwidgets.org ##
28944## ----------------------------------------- ##
a848cd7e
SC
28945_ASBOX
28946 ) |
28947 sed "s/^/$as_me: WARNING: /" >&2
28948 ;;
28949esac
28950echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28951echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28952if test "${ac_cv_header_GL_gl_h+set}" = set; then
28953 echo $ECHO_N "(cached) $ECHO_C" >&6
28954else
28955 ac_cv_header_GL_gl_h=$ac_header_preproc
28956fi
28957echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28958echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28959
28960fi
28961if test $ac_cv_header_GL_gl_h = yes; then
28962
28963 found_gl=0
28964
28965 echo "$as_me:$LINENO: checking for -lGL" >&5
28966echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28967
28968ac_find_libraries=
28969for ac_dir in $SEARCH_LIB /usr/lib;
28970 do
28971 for ac_extension in a so sl dylib; do
28972 if test -f "$ac_dir/libGL.$ac_extension"; then
28973 ac_find_libraries=$ac_dir
28974 break 2
28975 fi
28976 done
28977 done
28978
28979 if test "$ac_find_libraries" != "" ; then
28980
28981 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28982 result=$?
28983 if test $result = 0; then
28984 ac_path_to_link=""
28985 else
28986 ac_path_to_link=" -L$ac_find_libraries"
28987 fi
28988
28989 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28990 LDFLAGS_GL="$ac_path_to_link"
28991 fi
28992
28993
28994ac_find_libraries=
28995for ac_dir in $SEARCH_LIB /usr/lib;
28996 do
28997 for ac_extension in a so sl dylib; do
28998 if test -f "$ac_dir/libGLU.$ac_extension"; then
28999 ac_find_libraries=$ac_dir
29000 break 2
29001 fi
29002 done
29003 done
29004
29005 if test "$ac_find_libraries" != "" ; then
29006
29007 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29008 result=$?
29009 if test $result = 0; then
29010 ac_path_to_link=""
29011 else
29012 ac_path_to_link=" -L$ac_find_libraries"
29013 fi
29014
29015 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29016 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29017 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29018 fi
29019
29020 found_gl=1
29021 OPENGL_LIBS="-lGL -lGLU"
29022 echo "$as_me:$LINENO: result: yes" >&5
29023echo "${ECHO_T}yes" >&6
29024 fi
29025 fi
29026
29027 if test "$found_gl" != 1; then
29028 echo "$as_me:$LINENO: result: no" >&5
29029echo "${ECHO_T}no" >&6
29030 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29031echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29032
29033ac_find_libraries=
29034for ac_dir in $SEARCH_LIB /usr/lib;
29035 do
29036 for ac_extension in a so sl dylib; do
29037 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29038 ac_find_libraries=$ac_dir
29039 break 2
29040 fi
29041 done
29042 done
29043
29044 if test "$ac_find_libraries" != "" ; then
29045
29046 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29047 result=$?
29048 if test $result = 0; then
29049 ac_path_to_link=""
29050 else
29051 ac_path_to_link=" -L$ac_find_libraries"
29052 fi
29053
29054 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29055 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29056 echo "$as_me:$LINENO: result: yes" >&5
29057echo "${ECHO_T}yes" >&6
29058 else
29059 echo "$as_me:$LINENO: result: no" >&5
29060echo "${ECHO_T}no" >&6
29061 fi
29062 fi
29063
29064fi
29065
29066
29067
29068 if test "x$OPENGL_LIBS" = "x"; then
29069 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29070echo "$as_me: error: OpenGL libraries not available" >&2;}
29071 { (exit 1); exit 1; }; }
29072 fi
29073 fi
29074
29075 if test "$wxUSE_OPENGL" = "yes"; then
29076 USE_OPENGL=1
29077 cat >>confdefs.h <<\_ACEOF
29078#define wxUSE_OPENGL 1
29079_ACEOF
29080
29081 cat >>confdefs.h <<\_ACEOF
29082#define wxUSE_GLCANVAS 1
29083_ACEOF
29084
29085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29086 fi
29087fi
29088
a848cd7e
SC
29089
29090if test -n "$TOOLKIT" ; then
29091 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29092fi
29093
a848cd7e
SC
29094
29095
29096if test "$wxUSE_SHARED" = "yes"; then
29097 case "${host}" in
29098 *-pc-msdosdjgpp )
29099 wxUSE_SHARED=no
29100 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29101echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29102 ;;
29103 esac
29104fi
29105
a848cd7e 29106if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29107
29108
29109 found_versioning=no
29110
29111
29112 if test $found_versioning = no ; then
29113 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29114echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29115if test "${wx_cv_version_script+set}" = set; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29117else
29118
29119 echo "VER_1 { *; };" >conftest.sym
29120 echo "int main() { return 0; }" >conftest.cpp
29121
29122 if { ac_try='
29123 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29124 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126 (eval $ac_try) 2>&5
29127 ac_status=$?
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; } ; then
29130 if test -s conftest.stderr ; then
29131 wx_cv_version_script=no
29132 else
29133 wx_cv_version_script=yes
29134 fi
29135 else
29136 wx_cv_version_script=no
29137 fi
29138 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29139
29140fi
29141echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29142echo "${ECHO_T}$wx_cv_version_script" >&6
29143 if test $wx_cv_version_script = yes ; then
29144 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29145 fi
29146 fi
29147
29148
29149 case "${host}" in
29150 *-*-linux* | *-*-gnu* )
29151 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29152 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29153 ;;
29154
29155 *-*-solaris2* )
29156 if test "$GCC" = yes ; then
29157 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29158
29159 saveLdflags="$LDFLAGS"
29160 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29161 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29162echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29163 cat >conftest.$ac_ext <<_ACEOF
29164/* confdefs.h. */
29165_ACEOF
29166cat confdefs.h >>conftest.$ac_ext
29167cat >>conftest.$ac_ext <<_ACEOF
29168/* end confdefs.h. */
29169
29170int
29171main ()
29172{
29173
29174 ;
29175 return 0;
29176}
29177_ACEOF
29178rm -f conftest.$ac_objext conftest$ac_exeext
29179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29180 (eval $ac_link) 2>conftest.er1
a848cd7e 29181 ac_status=$?
ac1cb8d3
VS
29182 grep -v '^ *+' conftest.er1 >conftest.err
29183 rm -f conftest.er1
29184 cat conftest.err >&5
a848cd7e
SC
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); } &&
07158944 29187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29189 (eval $ac_try) 2>&5
29190 ac_status=$?
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); }; } &&
29193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
29199
29200 echo "$as_me:$LINENO: result: yes" >&5
29201echo "${ECHO_T}yes" >&6
29202 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29203 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29204
29205else
29206 echo "$as_me: failed program was:" >&5
29207sed 's/^/| /' conftest.$ac_ext >&5
29208
29209
29210 echo "$as_me:$LINENO: result: no" >&5
29211echo "${ECHO_T}no" >&6
29212 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29213echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29214 LDFLAGS="$saveLdflags -Wl,-R,/"
29215 cat >conftest.$ac_ext <<_ACEOF
29216/* confdefs.h. */
29217_ACEOF
29218cat confdefs.h >>conftest.$ac_ext
29219cat >>conftest.$ac_ext <<_ACEOF
29220/* end confdefs.h. */
29221
29222int
29223main ()
29224{
29225
29226 ;
29227 return 0;
29228}
29229_ACEOF
29230rm -f conftest.$ac_objext conftest$ac_exeext
29231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29232 (eval $ac_link) 2>conftest.er1
a848cd7e 29233 ac_status=$?
ac1cb8d3
VS
29234 grep -v '^ *+' conftest.er1 >conftest.err
29235 rm -f conftest.er1
29236 cat conftest.err >&5
a848cd7e
SC
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
07158944 29239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29241 (eval $ac_try) 2>&5
29242 ac_status=$?
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); }; } &&
29245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29247 (eval $ac_try) 2>&5
29248 ac_status=$?
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); }; }; then
29251
ffa0583f 29252 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29253echo "${ECHO_T}yes" >&6
ffa0583f
RL
29254 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29255 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29256
a848cd7e
SC
29257else
29258 echo "$as_me: failed program was:" >&5
29259sed 's/^/| /' conftest.$ac_ext >&5
29260
29261
29262 echo "$as_me:$LINENO: result: no" >&5
29263echo "${ECHO_T}no" >&6
29264
29265fi
ac1cb8d3
VS
29266rm -f conftest.err conftest.$ac_objext \
29267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29268
29269fi
ac1cb8d3
VS
29270rm -f conftest.err conftest.$ac_objext \
29271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29272 LDFLAGS="$saveLdflags"
29273 else
a848cd7e 29274 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29275 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29276 fi
29277 ;;
29278
29279 powerpc-*-darwin* )
29280 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29281 cat <<EOF >change-install-names
29282#!/bin/sh
29283libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29284inst_cmd="install_name_tool "
29285for i in \${libnames} ; do
29286 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29287done
29288\${inst_cmd} \${3}
29289EOF
29290 chmod +x change-install-names
29291 ;;
29292
29293 *-*-cygwin* | *-*-mingw32* )
29294 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29295 ;;
29296
81f90336
MW
29297 *-*-hpux* )
29298 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29299 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29300 ;;
29301
a848cd7e 29302 esac
ceec2216 29303
ffa0583f
RL
29304 if test $wxUSE_RPATH = "no"; then
29305 SAMPLES_RPATH_FLAG=''
29306 SAMPLES_RPATH_POSTLINK=''
29307 WXCONFIG_RPATH=''
29308 fi
29309
29310 SHARED=1
29311
29312else
29313
ceec2216
RL
29314 config_linkage_component="-static"
29315 SHARED=0
ffa0583f 29316
ceec2216 29317fi
a848cd7e 29318
a848cd7e 29319
ceec2216
RL
29320UNICODE=0
29321lib_unicode_suffix=
29322WX_CHARTYPE="ansi"
29323if test "$wxUSE_UNICODE" = "yes"; then
29324 lib_unicode_suffix=u
29325 WX_CHARTYPE="unicode"
29326 UNICODE=1
a848cd7e
SC
29327fi
29328
ceec2216
RL
29329lib_debug_suffix=
29330WX_DEBUGTYPE="release"
29331DEBUG_FLAG=0
29332if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29333 lib_debug_suffix=d
29334 WX_DEBUGTYPE="debug"
29335 DEBUG_FLAG=1
29336fi
a848cd7e 29337
ceec2216
RL
29338WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29339WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29340
ceec2216
RL
29341DEBUG_INFO=0
29342if test "$wxUSE_DEBUG_INFO" = "yes"; then
29343 DEBUG_INFO=1
29344fi
a848cd7e 29345
ceec2216 29346WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29347
ceec2216 29348TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29349
ceec2216 29350TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29351
ceec2216
RL
29352if test "$cross_compiling" = "yes"; then
29353 HOST_SUFFIX="-$host_alias"
29354 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29355 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29356fi
29357
dd21ced8 29358WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29359WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29360
29361
29362
a848cd7e 29363if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29364 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29365 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29366
a848cd7e 29367 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29368
29369 # Extract the first word of "Rez", so it can be a program name with args.
29370set dummy Rez; ac_word=$2
29371echo "$as_me:$LINENO: checking for $ac_word" >&5
29372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29373if test "${ac_cv_prog_RESCOMP+set}" = set; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29375else
29376 if test -n "$RESCOMP"; then
29377 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29378else
29379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29380for as_dir in $PATH
29381do
29382 IFS=$as_save_IFS
29383 test -z "$as_dir" && as_dir=.
29384 for ac_exec_ext in '' $ac_executable_extensions; do
29385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29386 ac_cv_prog_RESCOMP="Rez"
29387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29388 break 2
29389 fi
29390done
29391done
29392
29393 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29394fi
29395fi
29396RESCOMP=$ac_cv_prog_RESCOMP
29397if test -n "$RESCOMP"; then
29398 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29399echo "${ECHO_T}$RESCOMP" >&6
29400else
29401 echo "$as_me:$LINENO: result: no" >&5
29402echo "${ECHO_T}no" >&6
29403fi
29404
29405 # Extract the first word of "DeRez", so it can be a program name with args.
29406set dummy DeRez; ac_word=$2
29407echo "$as_me:$LINENO: checking for $ac_word" >&5
29408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29409if test "${ac_cv_prog_DEREZ+set}" = set; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411else
29412 if test -n "$DEREZ"; then
29413 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29414else
29415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29416for as_dir in $PATH
29417do
29418 IFS=$as_save_IFS
29419 test -z "$as_dir" && as_dir=.
29420 for ac_exec_ext in '' $ac_executable_extensions; do
29421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29422 ac_cv_prog_DEREZ="DeRez"
29423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29424 break 2
29425 fi
29426done
29427done
29428
29429 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29430fi
29431fi
29432DEREZ=$ac_cv_prog_DEREZ
29433if test -n "$DEREZ"; then
29434 echo "$as_me:$LINENO: result: $DEREZ" >&5
29435echo "${ECHO_T}$DEREZ" >&6
29436else
29437 echo "$as_me:$LINENO: result: no" >&5
29438echo "${ECHO_T}no" >&6
29439fi
29440
29441 # Extract the first word of "SetFile", so it can be a program name with args.
29442set dummy SetFile; ac_word=$2
29443echo "$as_me:$LINENO: checking for $ac_word" >&5
29444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29445if test "${ac_cv_prog_SETFILE+set}" = set; then
29446 echo $ECHO_N "(cached) $ECHO_C" >&6
29447else
29448 if test -n "$SETFILE"; then
29449 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29450else
29451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29452for as_dir in $PATH
29453do
29454 IFS=$as_save_IFS
29455 test -z "$as_dir" && as_dir=.
29456 for ac_exec_ext in '' $ac_executable_extensions; do
29457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29458 ac_cv_prog_SETFILE="SetFile"
29459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29460 break 2
29461 fi
29462done
29463done
29464
29465 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29466fi
29467fi
29468SETFILE=$ac_cv_prog_SETFILE
29469if test -n "$SETFILE"; then
29470 echo "$as_me:$LINENO: result: $SETFILE" >&5
29471echo "${ECHO_T}$SETFILE" >&6
29472else
29473 echo "$as_me:$LINENO: result: no" >&5
29474echo "${ECHO_T}no" >&6
29475fi
29476
29477
29478 MACSETFILE="\$(SETFILE)"
29479
29480 if test "$wxUSE_MAC" = 1; then
29481 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29482
29483 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29484 else
29485 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29486 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29487 fi
29488else
ffa0583f
RL
29489 MACSETFILE="@true"
29490 MACRESWXCONFIG="@true"
a848cd7e
SC
29491
29492 if test "$wxUSE_PM" = 1; then
29493 MACRESCOMP="emxbind -ep"
29494 else
ffa0583f 29495 MACRESCOMP="@true"
a848cd7e
SC
29496 fi
29497fi
29498
29499
29500
29501echo "$as_me:$LINENO: checking for mode_t" >&5
29502echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29503if test "${ac_cv_type_mode_t+set}" = set; then
29504 echo $ECHO_N "(cached) $ECHO_C" >&6
29505else
29506 cat >conftest.$ac_ext <<_ACEOF
29507/* confdefs.h. */
29508_ACEOF
29509cat confdefs.h >>conftest.$ac_ext
29510cat >>conftest.$ac_ext <<_ACEOF
29511/* end confdefs.h. */
29512$ac_includes_default
29513int
29514main ()
29515{
29516if ((mode_t *) 0)
29517 return 0;
29518if (sizeof (mode_t))
29519 return 0;
29520 ;
29521 return 0;
29522}
29523_ACEOF
29524rm -f conftest.$ac_objext
29525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29526 (eval $ac_compile) 2>conftest.er1
a848cd7e 29527 ac_status=$?
ac1cb8d3
VS
29528 grep -v '^ *+' conftest.er1 >conftest.err
29529 rm -f conftest.er1
29530 cat conftest.err >&5
a848cd7e
SC
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); } &&
07158944 29533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29536 ac_status=$?
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; } &&
29539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541 (eval $ac_try) 2>&5
29542 ac_status=$?
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; }; then
29545 ac_cv_type_mode_t=yes
29546else
29547 echo "$as_me: failed program was:" >&5
29548sed 's/^/| /' conftest.$ac_ext >&5
29549
29550ac_cv_type_mode_t=no
29551fi
ac1cb8d3 29552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29553fi
29554echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29555echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29556if test $ac_cv_type_mode_t = yes; then
29557 :
29558else
29559
29560cat >>confdefs.h <<_ACEOF
29561#define mode_t int
29562_ACEOF
29563
29564fi
29565
29566echo "$as_me:$LINENO: checking for off_t" >&5
29567echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29568if test "${ac_cv_type_off_t+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29570else
29571 cat >conftest.$ac_ext <<_ACEOF
29572/* confdefs.h. */
29573_ACEOF
29574cat confdefs.h >>conftest.$ac_ext
29575cat >>conftest.$ac_ext <<_ACEOF
29576/* end confdefs.h. */
29577$ac_includes_default
29578int
29579main ()
29580{
29581if ((off_t *) 0)
29582 return 0;
29583if (sizeof (off_t))
29584 return 0;
29585 ;
29586 return 0;
29587}
29588_ACEOF
29589rm -f conftest.$ac_objext
29590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29591 (eval $ac_compile) 2>conftest.er1
a848cd7e 29592 ac_status=$?
ac1cb8d3
VS
29593 grep -v '^ *+' conftest.er1 >conftest.err
29594 rm -f conftest.er1
29595 cat conftest.err >&5
a848cd7e
SC
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); } &&
07158944 29598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600 (eval $ac_try) 2>&5
29601 ac_status=$?
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); }; } &&
29604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29606 (eval $ac_try) 2>&5
29607 ac_status=$?
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); }; }; then
29610 ac_cv_type_off_t=yes
29611else
29612 echo "$as_me: failed program was:" >&5
29613sed 's/^/| /' conftest.$ac_ext >&5
29614
29615ac_cv_type_off_t=no
29616fi
ac1cb8d3 29617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29618fi
29619echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29620echo "${ECHO_T}$ac_cv_type_off_t" >&6
29621if test $ac_cv_type_off_t = yes; then
29622 :
29623else
29624
29625cat >>confdefs.h <<_ACEOF
29626#define off_t long
29627_ACEOF
29628
29629fi
29630
29631echo "$as_me:$LINENO: checking for pid_t" >&5
29632echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29633if test "${ac_cv_type_pid_t+set}" = set; then
29634 echo $ECHO_N "(cached) $ECHO_C" >&6
29635else
29636 cat >conftest.$ac_ext <<_ACEOF
29637/* confdefs.h. */
29638_ACEOF
29639cat confdefs.h >>conftest.$ac_ext
29640cat >>conftest.$ac_ext <<_ACEOF
29641/* end confdefs.h. */
29642$ac_includes_default
29643int
29644main ()
29645{
29646if ((pid_t *) 0)
29647 return 0;
29648if (sizeof (pid_t))
29649 return 0;
29650 ;
29651 return 0;
29652}
29653_ACEOF
29654rm -f conftest.$ac_objext
29655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29656 (eval $ac_compile) 2>conftest.er1
a848cd7e 29657 ac_status=$?
ac1cb8d3
VS
29658 grep -v '^ *+' conftest.er1 >conftest.err
29659 rm -f conftest.er1
29660 cat conftest.err >&5
a848cd7e
SC
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } &&
07158944 29663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29665 (eval $ac_try) 2>&5
29666 ac_status=$?
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); }; } &&
29669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29671 (eval $ac_try) 2>&5
29672 ac_status=$?
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); }; }; then
29675 ac_cv_type_pid_t=yes
29676else
29677 echo "$as_me: failed program was:" >&5
29678sed 's/^/| /' conftest.$ac_ext >&5
29679
29680ac_cv_type_pid_t=no
29681fi
ac1cb8d3 29682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29683fi
29684echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29685echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29686if test $ac_cv_type_pid_t = yes; then
29687 :
29688else
29689
29690cat >>confdefs.h <<_ACEOF
29691#define pid_t int
29692_ACEOF
29693
29694fi
29695
29696echo "$as_me:$LINENO: checking for size_t" >&5
29697echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29698if test "${ac_cv_type_size_t+set}" = set; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29700else
29701 cat >conftest.$ac_ext <<_ACEOF
29702/* confdefs.h. */
29703_ACEOF
29704cat confdefs.h >>conftest.$ac_ext
29705cat >>conftest.$ac_ext <<_ACEOF
29706/* end confdefs.h. */
29707$ac_includes_default
29708int
29709main ()
29710{
29711if ((size_t *) 0)
29712 return 0;
29713if (sizeof (size_t))
29714 return 0;
29715 ;
29716 return 0;
29717}
29718_ACEOF
29719rm -f conftest.$ac_objext
29720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29721 (eval $ac_compile) 2>conftest.er1
a848cd7e 29722 ac_status=$?
ac1cb8d3
VS
29723 grep -v '^ *+' conftest.er1 >conftest.err
29724 rm -f conftest.er1
29725 cat conftest.err >&5
a848cd7e
SC
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } &&
07158944 29728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29731 ac_status=$?
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; } &&
29734 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; }; then
29740 ac_cv_type_size_t=yes
29741else
29742 echo "$as_me: failed program was:" >&5
29743sed 's/^/| /' conftest.$ac_ext >&5
29744
29745ac_cv_type_size_t=no
29746fi
ac1cb8d3 29747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29748fi
29749echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29750echo "${ECHO_T}$ac_cv_type_size_t" >&6
29751if test $ac_cv_type_size_t = yes; then
29752 :
29753else
29754
29755cat >>confdefs.h <<_ACEOF
29756#define size_t unsigned
29757_ACEOF
29758
29759fi
29760
29761echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29762echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29763if test "${ac_cv_type_uid_t+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29765else
29766 cat >conftest.$ac_ext <<_ACEOF
29767/* confdefs.h. */
29768_ACEOF
29769cat confdefs.h >>conftest.$ac_ext
29770cat >>conftest.$ac_ext <<_ACEOF
29771/* end confdefs.h. */
29772#include <sys/types.h>
29773
29774_ACEOF
29775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29776 $EGREP "uid_t" >/dev/null 2>&1; then
29777 ac_cv_type_uid_t=yes
29778else
29779 ac_cv_type_uid_t=no
29780fi
29781rm -f conftest*
29782
29783fi
29784echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29785echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29786if test $ac_cv_type_uid_t = no; then
29787
29788cat >>confdefs.h <<\_ACEOF
29789#define uid_t int
29790_ACEOF
29791
29792
29793cat >>confdefs.h <<\_ACEOF
29794#define gid_t int
29795_ACEOF
29796
29797fi
29798
29799
d51253e8
RL
29800echo "$as_me:$LINENO: checking for ssize_t" >&5
29801echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29802if test "${ac_cv_type_ssize_t+set}" = set; then
29803 echo $ECHO_N "(cached) $ECHO_C" >&6
29804else
29805 cat >conftest.$ac_ext <<_ACEOF
29806/* confdefs.h. */
29807_ACEOF
29808cat confdefs.h >>conftest.$ac_ext
29809cat >>conftest.$ac_ext <<_ACEOF
29810/* end confdefs.h. */
29811$ac_includes_default
29812int
29813main ()
29814{
29815if ((ssize_t *) 0)
29816 return 0;
29817if (sizeof (ssize_t))
29818 return 0;
29819 ;
29820 return 0;
29821}
29822_ACEOF
29823rm -f conftest.$ac_objext
29824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29825 (eval $ac_compile) 2>conftest.er1
29826 ac_status=$?
29827 grep -v '^ *+' conftest.er1 >conftest.err
29828 rm -f conftest.er1
29829 cat conftest.err >&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } &&
07158944 29832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
29833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834 (eval $ac_try) 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; } &&
29838 { ac_try='test -s conftest.$ac_objext'
29839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29840 (eval $ac_try) 2>&5
29841 ac_status=$?
29842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); }; }; then
29844 ac_cv_type_ssize_t=yes
29845else
29846 echo "$as_me: failed program was:" >&5
29847sed 's/^/| /' conftest.$ac_ext >&5
29848
29849ac_cv_type_ssize_t=no
29850fi
29851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29852fi
29853echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29854echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29855if test $ac_cv_type_ssize_t = yes; then
29856
29857cat >>confdefs.h <<_ACEOF
29858#define HAVE_SSIZE_T 1
29859_ACEOF
29860
29861
29862fi
29863
29864
a848cd7e
SC
29865
29866
29867ac_ext=cc
29868ac_cpp='$CXXCPP $CPPFLAGS'
29869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29872
29873echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29874echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29875if test "${wx_cv_size_t_is_uint+set}" = set; then
29876 echo $ECHO_N "(cached) $ECHO_C" >&6
29877else
29878
29879 cat >conftest.$ac_ext <<_ACEOF
29880/* confdefs.h. */
29881_ACEOF
29882cat confdefs.h >>conftest.$ac_ext
29883cat >>conftest.$ac_ext <<_ACEOF
29884/* end confdefs.h. */
29885#include <stddef.h>
29886int
29887main ()
29888{
29889
29890 return 0; }
29891
29892 struct Foo { void foo(size_t); void foo(unsigned int); };
29893
29894 int bar() {
29895
29896 ;
29897 return 0;
29898}
29899_ACEOF
29900rm -f conftest.$ac_objext
29901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29902 (eval $ac_compile) 2>conftest.er1
a848cd7e 29903 ac_status=$?
ac1cb8d3
VS
29904 grep -v '^ *+' conftest.er1 >conftest.err
29905 rm -f conftest.er1
29906 cat conftest.err >&5
a848cd7e
SC
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } &&
07158944 29909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911 (eval $ac_try) 2>&5
29912 ac_status=$?
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; } &&
29915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917 (eval $ac_try) 2>&5
29918 ac_status=$?
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; }; then
29921 wx_cv_size_t_is_uint=no
29922else
29923 echo "$as_me: failed program was:" >&5
29924sed 's/^/| /' conftest.$ac_ext >&5
29925
29926wx_cv_size_t_is_uint=yes
29927
29928fi
ac1cb8d3 29929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29930
29931
29932fi
29933echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29934echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29935
29936if test "$wx_cv_size_t_is_uint" = "yes"; then
29937 cat >>confdefs.h <<\_ACEOF
29938#define wxSIZE_T_IS_UINT 1
29939_ACEOF
29940
29941else
29942 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29943echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29944if test "${wx_cv_size_t_is_ulong+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29946else
29947 cat >conftest.$ac_ext <<_ACEOF
29948/* confdefs.h. */
29949_ACEOF
29950cat confdefs.h >>conftest.$ac_ext
29951cat >>conftest.$ac_ext <<_ACEOF
29952/* end confdefs.h. */
29953#include <stddef.h>
29954int
29955main ()
29956{
29957
29958 return 0; }
29959
29960 struct Foo { void foo(size_t); void foo(unsigned long); };
29961
29962 int bar() {
29963
29964 ;
29965 return 0;
29966}
29967_ACEOF
29968rm -f conftest.$ac_objext
29969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29970 (eval $ac_compile) 2>conftest.er1
a848cd7e 29971 ac_status=$?
ac1cb8d3
VS
29972 grep -v '^ *+' conftest.er1 >conftest.err
29973 rm -f conftest.er1
29974 cat conftest.err >&5
a848cd7e
SC
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); } &&
07158944 29977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29980 ac_status=$?
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29986 ac_status=$?
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29989 wx_cv_size_t_is_ulong=no
29990else
29991 echo "$as_me: failed program was:" >&5
29992sed 's/^/| /' conftest.$ac_ext >&5
29993
29994wx_cv_size_t_is_ulong=yes
29995
29996fi
ac1cb8d3 29997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29998
29999fi
30000echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30001echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30002
30003 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30004 cat >>confdefs.h <<\_ACEOF
30005#define wxSIZE_T_IS_ULONG 1
30006_ACEOF
30007
30008 fi
30009fi
30010
30011ac_ext=c
30012ac_cpp='$CPP $CPPFLAGS'
30013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30015ac_compiler_gnu=$ac_cv_c_compiler_gnu
30016
30017
30018
30019echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30020echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30021if test "${wx_cv_struct_pw_gecos+set}" = set; then
30022 echo $ECHO_N "(cached) $ECHO_C" >&6
30023else
30024
30025 cat >conftest.$ac_ext <<_ACEOF
30026/* confdefs.h. */
30027_ACEOF
30028cat confdefs.h >>conftest.$ac_ext
30029cat >>conftest.$ac_ext <<_ACEOF
30030/* end confdefs.h. */
30031#include <pwd.h>
30032int
30033main ()
30034{
30035
30036 char *p;
30037 struct passwd *pw;
30038 p = pw->pw_gecos;
30039
30040 ;
30041 return 0;
30042}
30043_ACEOF
30044rm -f conftest.$ac_objext
30045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30046 (eval $ac_compile) 2>conftest.er1
a848cd7e 30047 ac_status=$?
ac1cb8d3
VS
30048 grep -v '^ *+' conftest.er1 >conftest.err
30049 rm -f conftest.er1
30050 cat conftest.err >&5
a848cd7e
SC
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); } &&
07158944 30053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30055 (eval $ac_try) 2>&5
30056 ac_status=$?
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; } &&
30059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30061 (eval $ac_try) 2>&5
30062 ac_status=$?
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); }; }; then
30065
30066 wx_cv_struct_pw_gecos=yes
30067
30068else
30069 echo "$as_me: failed program was:" >&5
30070sed 's/^/| /' conftest.$ac_ext >&5
30071
30072
30073 wx_cv_struct_pw_gecos=no
30074
30075
30076fi
ac1cb8d3 30077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30078
30079
30080fi
30081echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30082echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30083
30084if test "$wx_cv_struct_pw_gecos" = "yes"; then
30085 cat >>confdefs.h <<\_ACEOF
30086#define HAVE_PW_GECOS 1
30087_ACEOF
30088
30089fi
30090
30091
238ecede 30092if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30093 cat >>confdefs.h <<\_ACEOF
30094#define wxUSE_WCHAR_T 1
30095_ACEOF
30096
30097
30098 WCSLEN_FOUND=0
30099 WCHAR_LINK=
30100
30101for ac_func in wcslen
30102do
30103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30104echo "$as_me:$LINENO: checking for $ac_func" >&5
30105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30106if eval "test \"\${$as_ac_var+set}\" = set"; then
30107 echo $ECHO_N "(cached) $ECHO_C" >&6
30108else
30109 cat >conftest.$ac_ext <<_ACEOF
30110/* confdefs.h. */
30111_ACEOF
30112cat confdefs.h >>conftest.$ac_ext
30113cat >>conftest.$ac_ext <<_ACEOF
30114/* end confdefs.h. */
ac1cb8d3
VS
30115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30117#define $ac_func innocuous_$ac_func
30118
a848cd7e
SC
30119/* System header to define __stub macros and hopefully few prototypes,
30120 which can conflict with char $ac_func (); below.
30121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30122 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30123
a848cd7e
SC
30124#ifdef __STDC__
30125# include <limits.h>
30126#else
30127# include <assert.h>
30128#endif
ac1cb8d3
VS
30129
30130#undef $ac_func
30131
a848cd7e
SC
30132/* Override any gcc2 internal prototype to avoid an error. */
30133#ifdef __cplusplus
30134extern "C"
30135{
30136#endif
30137/* We use char because int might match the return type of a gcc2
30138 builtin and then its argument prototype would still apply. */
30139char $ac_func ();
30140/* The GNU C library defines this for functions which it implements
30141 to always fail with ENOSYS. Some functions are actually named
30142 something starting with __ and the normal name is an alias. */
30143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30144choke me
30145#else
30146char (*f) () = $ac_func;
30147#endif
30148#ifdef __cplusplus
30149}
30150#endif
30151
30152int
30153main ()
30154{
30155return f != $ac_func;
30156 ;
30157 return 0;
30158}
30159_ACEOF
30160rm -f conftest.$ac_objext conftest$ac_exeext
30161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30162 (eval $ac_link) 2>conftest.er1
a848cd7e 30163 ac_status=$?
ac1cb8d3
VS
30164 grep -v '^ *+' conftest.er1 >conftest.err
30165 rm -f conftest.er1
30166 cat conftest.err >&5
a848cd7e
SC
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); } &&
07158944 30169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30171 (eval $ac_try) 2>&5
30172 ac_status=$?
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); }; } &&
30175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177 (eval $ac_try) 2>&5
30178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; }; then
30181 eval "$as_ac_var=yes"
30182else
30183 echo "$as_me: failed program was:" >&5
30184sed 's/^/| /' conftest.$ac_ext >&5
30185
30186eval "$as_ac_var=no"
30187fi
ac1cb8d3
VS
30188rm -f conftest.err conftest.$ac_objext \
30189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30190fi
30191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30192echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30193if test `eval echo '${'$as_ac_var'}'` = yes; then
30194 cat >>confdefs.h <<_ACEOF
30195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30196_ACEOF
30197 WCSLEN_FOUND=1
30198fi
30199done
30200
30201
30202 if test "$WCSLEN_FOUND" = 0; then
30203 if test "$TOOLKIT" = "MSW"; then
30204 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30205echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30206if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30207 echo $ECHO_N "(cached) $ECHO_C" >&6
30208else
30209 ac_check_lib_save_LIBS=$LIBS
30210LIBS="-lmsvcrt $LIBS"
30211cat >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/* Override any gcc2 internal prototype to avoid an error. */
30219#ifdef __cplusplus
30220extern "C"
30221#endif
30222/* We use char because int might match the return type of a gcc2
30223 builtin and then its argument prototype would still apply. */
30224char wcslen ();
30225int
30226main ()
30227{
30228wcslen ();
30229 ;
30230 return 0;
30231}
30232_ACEOF
30233rm -f conftest.$ac_objext conftest$ac_exeext
30234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30235 (eval $ac_link) 2>conftest.er1
a848cd7e 30236 ac_status=$?
ac1cb8d3
VS
30237 grep -v '^ *+' conftest.er1 >conftest.err
30238 rm -f conftest.er1
30239 cat conftest.err >&5
a848cd7e
SC
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); } &&
07158944 30242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30244 (eval $ac_try) 2>&5
30245 ac_status=$?
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); }; } &&
30248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30250 (eval $ac_try) 2>&5
30251 ac_status=$?
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); }; }; then
30254 ac_cv_lib_msvcrt_wcslen=yes
30255else
30256 echo "$as_me: failed program was:" >&5
30257sed 's/^/| /' conftest.$ac_ext >&5
30258
30259ac_cv_lib_msvcrt_wcslen=no
30260fi
ac1cb8d3
VS
30261rm -f conftest.err conftest.$ac_objext \
30262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30263LIBS=$ac_check_lib_save_LIBS
30264fi
30265echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30266echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30267if test $ac_cv_lib_msvcrt_wcslen = yes; then
30268 WCHAR_OK=1
30269fi
30270
30271 else
30272 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30273echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30274if test "${ac_cv_lib_w_wcslen+set}" = set; then
30275 echo $ECHO_N "(cached) $ECHO_C" >&6
30276else
30277 ac_check_lib_save_LIBS=$LIBS
30278LIBS="-lw $LIBS"
30279cat >conftest.$ac_ext <<_ACEOF
30280/* confdefs.h. */
30281_ACEOF
30282cat confdefs.h >>conftest.$ac_ext
30283cat >>conftest.$ac_ext <<_ACEOF
30284/* end confdefs.h. */
30285
30286/* Override any gcc2 internal prototype to avoid an error. */
30287#ifdef __cplusplus
30288extern "C"
30289#endif
30290/* We use char because int might match the return type of a gcc2
30291 builtin and then its argument prototype would still apply. */
30292char wcslen ();
30293int
30294main ()
30295{
30296wcslen ();
30297 ;
30298 return 0;
30299}
30300_ACEOF
30301rm -f conftest.$ac_objext conftest$ac_exeext
30302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30303 (eval $ac_link) 2>conftest.er1
a848cd7e 30304 ac_status=$?
ac1cb8d3
VS
30305 grep -v '^ *+' conftest.er1 >conftest.err
30306 rm -f conftest.er1
30307 cat conftest.err >&5
a848cd7e
SC
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } &&
07158944 30310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; } &&
30316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 ac_cv_lib_w_wcslen=yes
30323else
30324 echo "$as_me: failed program was:" >&5
30325sed 's/^/| /' conftest.$ac_ext >&5
30326
30327ac_cv_lib_w_wcslen=no
30328fi
ac1cb8d3
VS
30329rm -f conftest.err conftest.$ac_objext \
30330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30331LIBS=$ac_check_lib_save_LIBS
30332fi
30333echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30334echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30335if test $ac_cv_lib_w_wcslen = yes; then
30336
30337 WCHAR_LINK=" -lw"
30338 WCSLEN_FOUND=1
30339
30340fi
30341
30342 fi
30343 fi
30344
30345 if test "$WCSLEN_FOUND" = 1; then
30346 cat >>confdefs.h <<\_ACEOF
30347#define HAVE_WCSLEN 1
30348_ACEOF
30349
30350 fi
30351
81f90336 30352 if test "$USE_HPUX" = 1; then
473276a9
VS
30353 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30354 fi
30355
a848cd7e
SC
30356
30357for ac_func in wcsrtombs
30358do
30359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30360echo "$as_me:$LINENO: checking for $ac_func" >&5
30361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30362if eval "test \"\${$as_ac_var+set}\" = set"; then
30363 echo $ECHO_N "(cached) $ECHO_C" >&6
30364else
30365 cat >conftest.$ac_ext <<_ACEOF
30366/* confdefs.h. */
30367_ACEOF
30368cat confdefs.h >>conftest.$ac_ext
30369cat >>conftest.$ac_ext <<_ACEOF
30370/* end confdefs.h. */
ac1cb8d3
VS
30371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30373#define $ac_func innocuous_$ac_func
30374
a848cd7e
SC
30375/* System header to define __stub macros and hopefully few prototypes,
30376 which can conflict with char $ac_func (); below.
30377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30378 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30379
a848cd7e
SC
30380#ifdef __STDC__
30381# include <limits.h>
30382#else
30383# include <assert.h>
30384#endif
ac1cb8d3
VS
30385
30386#undef $ac_func
30387
a848cd7e
SC
30388/* Override any gcc2 internal prototype to avoid an error. */
30389#ifdef __cplusplus
30390extern "C"
30391{
30392#endif
30393/* We use char because int might match the return type of a gcc2
30394 builtin and then its argument prototype would still apply. */
30395char $ac_func ();
30396/* The GNU C library defines this for functions which it implements
30397 to always fail with ENOSYS. Some functions are actually named
30398 something starting with __ and the normal name is an alias. */
30399#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30400choke me
30401#else
30402char (*f) () = $ac_func;
30403#endif
30404#ifdef __cplusplus
30405}
30406#endif
30407
30408int
30409main ()
30410{
30411return f != $ac_func;
30412 ;
30413 return 0;
30414}
30415_ACEOF
30416rm -f conftest.$ac_objext conftest$ac_exeext
30417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30418 (eval $ac_link) 2>conftest.er1
a848cd7e 30419 ac_status=$?
ac1cb8d3
VS
30420 grep -v '^ *+' conftest.er1 >conftest.err
30421 rm -f conftest.er1
30422 cat conftest.err >&5
a848cd7e
SC
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); } &&
07158944 30425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427 (eval $ac_try) 2>&5
30428 ac_status=$?
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; } &&
30431 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30434 ac_status=$?
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; }; then
30437 eval "$as_ac_var=yes"
30438else
30439 echo "$as_me: failed program was:" >&5
30440sed 's/^/| /' conftest.$ac_ext >&5
30441
30442eval "$as_ac_var=no"
30443fi
ac1cb8d3
VS
30444rm -f conftest.err conftest.$ac_objext \
30445 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30446fi
30447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30448echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30449if test `eval echo '${'$as_ac_var'}'` = yes; then
30450 cat >>confdefs.h <<_ACEOF
30451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30452_ACEOF
30453
30454fi
30455done
30456
30457else
30458 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30459echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30460fi
30461
30462
30463
30464ac_ext=cc
30465ac_cpp='$CXXCPP $CPPFLAGS'
30466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30469
30470
30471
30472for ac_func in vsnprintf
30473do
30474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30475echo "$as_me:$LINENO: checking for $ac_func" >&5
30476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30477if eval "test \"\${$as_ac_var+set}\" = set"; then
30478 echo $ECHO_N "(cached) $ECHO_C" >&6
30479else
30480 cat >conftest.$ac_ext <<_ACEOF
30481/* confdefs.h. */
30482_ACEOF
30483cat confdefs.h >>conftest.$ac_ext
30484cat >>conftest.$ac_ext <<_ACEOF
30485/* end confdefs.h. */
ac1cb8d3
VS
30486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30488#define $ac_func innocuous_$ac_func
30489
a848cd7e
SC
30490/* System header to define __stub macros and hopefully few prototypes,
30491 which can conflict with char $ac_func (); below.
30492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30493 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30494
a848cd7e
SC
30495#ifdef __STDC__
30496# include <limits.h>
30497#else
30498# include <assert.h>
30499#endif
ac1cb8d3
VS
30500
30501#undef $ac_func
30502
a848cd7e
SC
30503/* Override any gcc2 internal prototype to avoid an error. */
30504#ifdef __cplusplus
30505extern "C"
30506{
30507#endif
30508/* We use char because int might match the return type of a gcc2
30509 builtin and then its argument prototype would still apply. */
30510char $ac_func ();
30511/* The GNU C library defines this for functions which it implements
30512 to always fail with ENOSYS. Some functions are actually named
30513 something starting with __ and the normal name is an alias. */
30514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30515choke me
30516#else
30517char (*f) () = $ac_func;
30518#endif
30519#ifdef __cplusplus
30520}
30521#endif
30522
30523int
30524main ()
30525{
30526return f != $ac_func;
30527 ;
30528 return 0;
30529}
30530_ACEOF
30531rm -f conftest.$ac_objext conftest$ac_exeext
30532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30533 (eval $ac_link) 2>conftest.er1
a848cd7e 30534 ac_status=$?
ac1cb8d3
VS
30535 grep -v '^ *+' conftest.er1 >conftest.err
30536 rm -f conftest.er1
30537 cat conftest.err >&5
a848cd7e
SC
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); } &&
07158944 30540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30542 (eval $ac_try) 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; } &&
30546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30548 (eval $ac_try) 2>&5
30549 ac_status=$?
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); }; }; then
30552 eval "$as_ac_var=yes"
30553else
30554 echo "$as_me: failed program was:" >&5
30555sed 's/^/| /' conftest.$ac_ext >&5
30556
30557eval "$as_ac_var=no"
30558fi
ac1cb8d3
VS
30559rm -f conftest.err conftest.$ac_objext \
30560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30561fi
30562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30563echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30564if test `eval echo '${'$as_ac_var'}'` = yes; then
30565 cat >>confdefs.h <<_ACEOF
30566#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30567_ACEOF
30568
30569fi
30570done
30571
30572
30573if test "$ac_cv_func_vsnprintf" = "yes"; then
30574 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30575echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30576if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30577 echo $ECHO_N "(cached) $ECHO_C" >&6
30578else
30579
30580 cat >conftest.$ac_ext <<_ACEOF
30581/* confdefs.h. */
30582_ACEOF
30583cat confdefs.h >>conftest.$ac_ext
30584cat >>conftest.$ac_ext <<_ACEOF
30585/* end confdefs.h. */
30586
30587 #include <stdio.h>
30588 #include <stdarg.h>
30589
30590int
30591main ()
30592{
30593
30594 char *buf;
30595 va_list ap;
30596 vsnprintf(buf, 10u, "%s", ap);
30597
30598 ;
30599 return 0;
30600}
30601_ACEOF
30602rm -f conftest.$ac_objext
30603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30604 (eval $ac_compile) 2>conftest.er1
a848cd7e 30605 ac_status=$?
ac1cb8d3
VS
30606 grep -v '^ *+' conftest.er1 >conftest.err
30607 rm -f conftest.er1
30608 cat conftest.err >&5
a848cd7e
SC
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); } &&
07158944 30611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30613 (eval $ac_try) 2>&5
30614 ac_status=$?
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); }; } &&
30617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619 (eval $ac_try) 2>&5
30620 ac_status=$?
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
30623 wx_cv_func_vsnprintf_decl=yes
30624else
30625 echo "$as_me: failed program was:" >&5
30626sed 's/^/| /' conftest.$ac_ext >&5
30627
c122b164
DE
30628
30629 cat >conftest.$ac_ext <<_ACEOF
30630/* confdefs.h. */
30631_ACEOF
30632cat confdefs.h >>conftest.$ac_ext
30633cat >>conftest.$ac_ext <<_ACEOF
30634/* end confdefs.h. */
30635
30636 #include <stdio.h>
30637 #include <stdarg.h>
30638 using namespace std;
30639
30640int
30641main ()
30642{
30643
30644 char *buf;
30645 va_list ap;
30646 vsnprintf(buf, 10u, "%s", ap);
30647
30648 ;
30649 return 0;
30650}
30651_ACEOF
30652rm -f conftest.$ac_objext
30653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30654 (eval $ac_compile) 2>conftest.er1
30655 ac_status=$?
30656 grep -v '^ *+' conftest.er1 >conftest.err
30657 rm -f conftest.er1
30658 cat conftest.err >&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); } &&
07158944 30661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663 (eval $ac_try) 2>&5
30664 ac_status=$?
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; } &&
30667 { ac_try='test -s conftest.$ac_objext'
30668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30669 (eval $ac_try) 2>&5
30670 ac_status=$?
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); }; }; then
30673 wx_cv_func_vsnprintf_decl=yes
30674else
30675 echo "$as_me: failed program was:" >&5
30676sed 's/^/| /' conftest.$ac_ext >&5
30677
a848cd7e
SC
30678wx_cv_func_vsnprintf_decl=no
30679
30680fi
ac1cb8d3 30681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30682
30683
c122b164
DE
30684fi
30685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30686
30687
a848cd7e
SC
30688fi
30689echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30690echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30691
30692 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30693 cat >>confdefs.h <<\_ACEOF
30694#define HAVE_VSNPRINTF_DECL 1
30695_ACEOF
30696
30697 fi
30698fi
30699
30700if test "$wxUSE_UNICODE" = yes; then
30701
30702
30703
fbe47c7b
VS
30704
30705
30706
30707for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30708do
30709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30710echo "$as_me:$LINENO: checking for $ac_func" >&5
30711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30712if eval "test \"\${$as_ac_var+set}\" = set"; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30714else
30715 cat >conftest.$ac_ext <<_ACEOF
30716/* confdefs.h. */
30717_ACEOF
30718cat confdefs.h >>conftest.$ac_ext
30719cat >>conftest.$ac_ext <<_ACEOF
30720/* end confdefs.h. */
ac1cb8d3
VS
30721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30723#define $ac_func innocuous_$ac_func
30724
a848cd7e
SC
30725/* System header to define __stub macros and hopefully few prototypes,
30726 which can conflict with char $ac_func (); below.
30727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30728 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30729
a848cd7e
SC
30730#ifdef __STDC__
30731# include <limits.h>
30732#else
30733# include <assert.h>
30734#endif
ac1cb8d3
VS
30735
30736#undef $ac_func
30737
a848cd7e
SC
30738/* Override any gcc2 internal prototype to avoid an error. */
30739#ifdef __cplusplus
30740extern "C"
30741{
30742#endif
30743/* We use char because int might match the return type of a gcc2
30744 builtin and then its argument prototype would still apply. */
30745char $ac_func ();
30746/* The GNU C library defines this for functions which it implements
30747 to always fail with ENOSYS. Some functions are actually named
30748 something starting with __ and the normal name is an alias. */
30749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30750choke me
30751#else
30752char (*f) () = $ac_func;
30753#endif
30754#ifdef __cplusplus
30755}
30756#endif
30757
30758int
30759main ()
30760{
30761return f != $ac_func;
30762 ;
30763 return 0;
30764}
30765_ACEOF
30766rm -f conftest.$ac_objext conftest$ac_exeext
30767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30768 (eval $ac_link) 2>conftest.er1
a848cd7e 30769 ac_status=$?
ac1cb8d3
VS
30770 grep -v '^ *+' conftest.er1 >conftest.err
30771 rm -f conftest.er1
30772 cat conftest.err >&5
a848cd7e
SC
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); } &&
07158944 30775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 (eval $ac_try) 2>&5
30778 ac_status=$?
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); }; } &&
30781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30783 (eval $ac_try) 2>&5
30784 ac_status=$?
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); }; }; then
30787 eval "$as_ac_var=yes"
30788else
30789 echo "$as_me: failed program was:" >&5
30790sed 's/^/| /' conftest.$ac_ext >&5
30791
30792eval "$as_ac_var=no"
30793fi
ac1cb8d3
VS
30794rm -f conftest.err conftest.$ac_objext \
30795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30796fi
30797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30799if test `eval echo '${'$as_ac_var'}'` = yes; then
30800 cat >>confdefs.h <<_ACEOF
30801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30802_ACEOF
30803
30804fi
30805done
30806
30807
30808 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30809echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30810 cat >conftest.$ac_ext <<_ACEOF
30811/* confdefs.h. */
30812_ACEOF
30813cat confdefs.h >>conftest.$ac_ext
30814cat >>conftest.$ac_ext <<_ACEOF
30815/* end confdefs.h. */
30816#include <wchar.h>
30817int
30818main ()
30819{
30820&_vsnwprintf;
30821 ;
30822 return 0;
30823}
30824_ACEOF
30825rm -f conftest.$ac_objext
30826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30827 (eval $ac_compile) 2>conftest.er1
a848cd7e 30828 ac_status=$?
ac1cb8d3
VS
30829 grep -v '^ *+' conftest.er1 >conftest.err
30830 rm -f conftest.er1
30831 cat conftest.err >&5
a848cd7e
SC
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); } &&
07158944 30834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30836 (eval $ac_try) 2>&5
30837 ac_status=$?
30838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); }; } &&
30840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30842 (eval $ac_try) 2>&5
30843 ac_status=$?
30844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845 (exit $ac_status); }; }; then
30846 echo "$as_me:$LINENO: result: yes" >&5
30847echo "${ECHO_T}yes" >&6
30848 cat >>confdefs.h <<\_ACEOF
30849#define HAVE__VSNWPRINTF 1
30850_ACEOF
30851
30852else
30853 echo "$as_me: failed program was:" >&5
30854sed 's/^/| /' conftest.$ac_ext >&5
30855
30856echo "$as_me:$LINENO: result: no" >&5
30857echo "${ECHO_T}no" >&6
30858fi
ac1cb8d3 30859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30860fi
30861
30862ac_ext=c
30863ac_cpp='$CPP $CPPFLAGS'
30864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30866ac_compiler_gnu=$ac_cv_c_compiler_gnu
30867
30868
30869
30870
30871if test "$TOOLKIT" != "MSW"; then
30872
30873
30874
30875
30876ac_ext=cc
30877ac_cpp='$CXXCPP $CPPFLAGS'
30878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30881
30882
30883
30884
30885# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30886if test "${with_libiconv_prefix+set}" = set; then
30887 withval="$with_libiconv_prefix"
30888
30889 for dir in `echo "$withval" | tr : ' '`; do
30890 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30891 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30892 done
30893
30894fi;
30895
30896 echo "$as_me:$LINENO: checking for iconv" >&5
30897echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30898if test "${am_cv_func_iconv+set}" = set; then
30899 echo $ECHO_N "(cached) $ECHO_C" >&6
30900else
30901
30902 am_cv_func_iconv="no, consider installing GNU libiconv"
30903 am_cv_lib_iconv=no
30904 cat >conftest.$ac_ext <<_ACEOF
30905/* confdefs.h. */
30906_ACEOF
30907cat confdefs.h >>conftest.$ac_ext
30908cat >>conftest.$ac_ext <<_ACEOF
30909/* end confdefs.h. */
30910#include <stdlib.h>
30911#include <iconv.h>
30912int
30913main ()
30914{
30915iconv_t cd = iconv_open("","");
30916 iconv(cd,NULL,NULL,NULL,NULL);
30917 iconv_close(cd);
30918 ;
30919 return 0;
30920}
30921_ACEOF
30922rm -f conftest.$ac_objext conftest$ac_exeext
30923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30924 (eval $ac_link) 2>conftest.er1
a848cd7e 30925 ac_status=$?
ac1cb8d3
VS
30926 grep -v '^ *+' conftest.er1 >conftest.err
30927 rm -f conftest.er1
30928 cat conftest.err >&5
a848cd7e
SC
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); } &&
07158944 30931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30933 (eval $ac_try) 2>&5
30934 ac_status=$?
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); }; } &&
30937 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30939 (eval $ac_try) 2>&5
30940 ac_status=$?
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; }; then
30943 am_cv_func_iconv=yes
30944else
30945 echo "$as_me: failed program was:" >&5
30946sed 's/^/| /' conftest.$ac_ext >&5
30947
30948fi
ac1cb8d3
VS
30949rm -f conftest.err conftest.$ac_objext \
30950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30951 if test "$am_cv_func_iconv" != yes; then
30952 am_save_LIBS="$LIBS"
30953 LIBS="$LIBS -liconv"
30954 cat >conftest.$ac_ext <<_ACEOF
30955/* confdefs.h. */
30956_ACEOF
30957cat confdefs.h >>conftest.$ac_ext
30958cat >>conftest.$ac_ext <<_ACEOF
30959/* end confdefs.h. */
30960#include <stdlib.h>
30961#include <iconv.h>
30962int
30963main ()
30964{
30965iconv_t cd = iconv_open("","");
30966 iconv(cd,NULL,NULL,NULL,NULL);
30967 iconv_close(cd);
30968 ;
30969 return 0;
30970}
30971_ACEOF
30972rm -f conftest.$ac_objext conftest$ac_exeext
30973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30974 (eval $ac_link) 2>conftest.er1
a848cd7e 30975 ac_status=$?
ac1cb8d3
VS
30976 grep -v '^ *+' conftest.er1 >conftest.err
30977 rm -f conftest.er1
30978 cat conftest.err >&5
a848cd7e
SC
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); } &&
07158944 30981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983 (eval $ac_try) 2>&5
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); }; } &&
30987 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989 (eval $ac_try) 2>&5
30990 ac_status=$?
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; }; then
30993 am_cv_lib_iconv=yes
30994 am_cv_func_iconv=yes
30995else
30996 echo "$as_me: failed program was:" >&5
30997sed 's/^/| /' conftest.$ac_ext >&5
30998
30999fi
ac1cb8d3
VS
31000rm -f conftest.err conftest.$ac_objext \
31001 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31002 LIBS="$am_save_LIBS"
31003 fi
31004
31005fi
31006echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31007echo "${ECHO_T}$am_cv_func_iconv" >&6
31008 if test "$am_cv_func_iconv" = yes; then
31009
31010cat >>confdefs.h <<\_ACEOF
31011#define HAVE_ICONV 1
31012_ACEOF
31013
31014 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31015echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31016if test "${wx_cv_func_iconv_const+set}" = set; then
31017 echo $ECHO_N "(cached) $ECHO_C" >&6
31018else
31019 cat >conftest.$ac_ext <<_ACEOF
31020/* confdefs.h. */
31021_ACEOF
31022cat confdefs.h >>conftest.$ac_ext
31023cat >>conftest.$ac_ext <<_ACEOF
31024/* end confdefs.h. */
31025
31026#include <stdlib.h>
31027#include <iconv.h>
31028extern
31029#ifdef __cplusplus
31030"C"
31031#endif
31032#if defined(__STDC__) || defined(__cplusplus)
31033size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31034#else
31035size_t iconv();
31036#endif
31037
31038int
31039main ()
31040{
31041
31042 ;
31043 return 0;
31044}
31045_ACEOF
31046rm -f conftest.$ac_objext
31047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31048 (eval $ac_compile) 2>conftest.er1
a848cd7e 31049 ac_status=$?
ac1cb8d3
VS
31050 grep -v '^ *+' conftest.er1 >conftest.err
31051 rm -f conftest.er1
31052 cat conftest.err >&5
a848cd7e
SC
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); } &&
07158944 31055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31057 (eval $ac_try) 2>&5
31058 ac_status=$?
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); }; } &&
31061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31063 (eval $ac_try) 2>&5
31064 ac_status=$?
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; }; then
31067 wx_cv_func_iconv_const="no"
31068else
31069 echo "$as_me: failed program was:" >&5
31070sed 's/^/| /' conftest.$ac_ext >&5
31071
31072wx_cv_func_iconv_const="yes"
31073
31074fi
ac1cb8d3 31075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31076
31077fi
31078echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31079echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31080
31081 iconv_const=
31082 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31083 iconv_const="const"
31084 fi
31085
31086
31087cat >>confdefs.h <<_ACEOF
31088#define ICONV_CONST $iconv_const
31089_ACEOF
31090
31091 fi
31092 LIBICONV=
31093 if test "$am_cv_lib_iconv" = yes; then
31094 LIBICONV="-liconv"
31095 fi
31096
31097
31098LIBS="$LIBICONV $LIBS"
31099ac_ext=c
31100ac_cpp='$CPP $CPPFLAGS'
31101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31103ac_compiler_gnu=$ac_cv_c_compiler_gnu
31104
31105
31106if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31107
31108for ac_func in sigaction
31109do
31110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31111echo "$as_me:$LINENO: checking for $ac_func" >&5
31112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31113if eval "test \"\${$as_ac_var+set}\" = set"; then
31114 echo $ECHO_N "(cached) $ECHO_C" >&6
31115else
31116 cat >conftest.$ac_ext <<_ACEOF
31117/* confdefs.h. */
31118_ACEOF
31119cat confdefs.h >>conftest.$ac_ext
31120cat >>conftest.$ac_ext <<_ACEOF
31121/* end confdefs.h. */
ac1cb8d3
VS
31122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31124#define $ac_func innocuous_$ac_func
31125
a848cd7e
SC
31126/* System header to define __stub macros and hopefully few prototypes,
31127 which can conflict with char $ac_func (); below.
31128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31129 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31130
a848cd7e
SC
31131#ifdef __STDC__
31132# include <limits.h>
31133#else
31134# include <assert.h>
31135#endif
ac1cb8d3
VS
31136
31137#undef $ac_func
31138
a848cd7e
SC
31139/* Override any gcc2 internal prototype to avoid an error. */
31140#ifdef __cplusplus
31141extern "C"
31142{
31143#endif
31144/* We use char because int might match the return type of a gcc2
31145 builtin and then its argument prototype would still apply. */
31146char $ac_func ();
31147/* The GNU C library defines this for functions which it implements
31148 to always fail with ENOSYS. Some functions are actually named
31149 something starting with __ and the normal name is an alias. */
31150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31151choke me
31152#else
31153char (*f) () = $ac_func;
31154#endif
31155#ifdef __cplusplus
31156}
31157#endif
31158
31159int
31160main ()
31161{
31162return f != $ac_func;
31163 ;
31164 return 0;
31165}
31166_ACEOF
31167rm -f conftest.$ac_objext conftest$ac_exeext
31168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31169 (eval $ac_link) 2>conftest.er1
a848cd7e 31170 ac_status=$?
ac1cb8d3
VS
31171 grep -v '^ *+' conftest.er1 >conftest.err
31172 rm -f conftest.er1
31173 cat conftest.err >&5
a848cd7e
SC
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); } &&
07158944 31176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31178 (eval $ac_try) 2>&5
31179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; } &&
31182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184 (eval $ac_try) 2>&5
31185 ac_status=$?
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; }; then
31188 eval "$as_ac_var=yes"
31189else
31190 echo "$as_me: failed program was:" >&5
31191sed 's/^/| /' conftest.$ac_ext >&5
31192
31193eval "$as_ac_var=no"
31194fi
ac1cb8d3
VS
31195rm -f conftest.err conftest.$ac_objext \
31196 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31197fi
31198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31200if test `eval echo '${'$as_ac_var'}'` = yes; then
31201 cat >>confdefs.h <<_ACEOF
31202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31203_ACEOF
31204
31205fi
31206done
31207
31208
31209 if test "$ac_cv_func_sigaction" = "no"; then
31210 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31211echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31212 wxUSE_ON_FATAL_EXCEPTION=no
31213 fi
31214
31215 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31216
31217
31218 ac_ext=cc
31219ac_cpp='$CXXCPP $CPPFLAGS'
31220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31223
31224
31225 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31226echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31227if test "${wx_cv_type_sa_handler+set}" = set; then
31228 echo $ECHO_N "(cached) $ECHO_C" >&6
31229else
31230
31231 cat >conftest.$ac_ext <<_ACEOF
31232/* confdefs.h. */
31233_ACEOF
31234cat confdefs.h >>conftest.$ac_ext
31235cat >>conftest.$ac_ext <<_ACEOF
31236/* end confdefs.h. */
31237#include <signal.h>
31238int
31239main ()
31240{
31241
31242 extern void testSigHandler(int);
31243
31244 struct sigaction sa;
31245 sa.sa_handler = testSigHandler;
31246
31247 ;
31248 return 0;
31249}
31250_ACEOF
31251rm -f conftest.$ac_objext
31252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31253 (eval $ac_compile) 2>conftest.er1
a848cd7e 31254 ac_status=$?
ac1cb8d3
VS
31255 grep -v '^ *+' conftest.er1 >conftest.err
31256 rm -f conftest.er1
31257 cat conftest.err >&5
a848cd7e
SC
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } &&
07158944 31260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31262 (eval $ac_try) 2>&5
31263 ac_status=$?
31264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265 (exit $ac_status); }; } &&
31266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31268 (eval $ac_try) 2>&5
31269 ac_status=$?
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); }; }; then
31272
31273 wx_cv_type_sa_handler=int
31274
31275else
31276 echo "$as_me: failed program was:" >&5
31277sed 's/^/| /' conftest.$ac_ext >&5
31278
31279
31280 wx_cv_type_sa_handler=void
31281
31282fi
ac1cb8d3 31283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31284
31285fi
31286echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31287echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31288
31289 ac_ext=c
31290ac_cpp='$CPP $CPPFLAGS'
31291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31293ac_compiler_gnu=$ac_cv_c_compiler_gnu
31294
31295
31296 cat >>confdefs.h <<_ACEOF
31297#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31298_ACEOF
31299
31300 fi
31301fi
31302
eaff0f0d
VZ
31303if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31304
31305
31306 ac_ext=cc
31307ac_cpp='$CXXCPP $CPPFLAGS'
31308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31311
31312
31313 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31314echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31315if test "${wx_cv_func_backtrace+set}" = set; then
31316 echo $ECHO_N "(cached) $ECHO_C" >&6
31317else
31318
31319 cat >conftest.$ac_ext <<_ACEOF
31320/* confdefs.h. */
31321_ACEOF
31322cat confdefs.h >>conftest.$ac_ext
31323cat >>conftest.$ac_ext <<_ACEOF
31324/* end confdefs.h. */
31325#include <execinfo.h>
31326int
31327main ()
31328{
31329
31330 void *trace[1];
31331 char **messages;
31332
31333 backtrace(trace, 1);
31334 messages = backtrace_symbols(trace, 1);
31335
31336 ;
31337 return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext
31341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31342 (eval $ac_compile) 2>conftest.er1
31343 ac_status=$?
31344 grep -v '^ *+' conftest.er1 >conftest.err
31345 rm -f conftest.er1
31346 cat conftest.err >&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } &&
07158944 31349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31351 (eval $ac_try) 2>&5
31352 ac_status=$?
31353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); }; } &&
31355 { ac_try='test -s conftest.$ac_objext'
31356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31357 (eval $ac_try) 2>&5
31358 ac_status=$?
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; }; then
31361 wx_cv_func_backtrace=yes
31362else
31363 echo "$as_me: failed program was:" >&5
31364sed 's/^/| /' conftest.$ac_ext >&5
31365
31366wx_cv_func_backtrace=no
31367
31368fi
31369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31370
31371
31372fi
31373echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31374echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31375
31376
31377 if test "$wx_cv_func_backtrace" = "no"; then
31378 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31379echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31380 wxUSE_STACKWALKER=no
31381 else
31382 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31383echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31384if test "${wx_cv_func_cxa_demangle+set}" = set; then
31385 echo $ECHO_N "(cached) $ECHO_C" >&6
31386else
31387
31388 cat >conftest.$ac_ext <<_ACEOF
31389/* confdefs.h. */
31390_ACEOF
31391cat confdefs.h >>conftest.$ac_ext
31392cat >>conftest.$ac_ext <<_ACEOF
31393/* end confdefs.h. */
31394#include <cxxabi.h>
31395int
31396main ()
31397{
31398
31399 int rc;
31400 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31401
31402 ;
31403 return 0;
31404}
31405_ACEOF
31406rm -f conftest.$ac_objext
31407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31408 (eval $ac_compile) 2>conftest.er1
31409 ac_status=$?
31410 grep -v '^ *+' conftest.er1 >conftest.err
31411 rm -f conftest.er1
31412 cat conftest.err >&5
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); } &&
07158944 31415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31417 (eval $ac_try) 2>&5
31418 ac_status=$?
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; } &&
31421 { ac_try='test -s conftest.$ac_objext'
31422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31423 (eval $ac_try) 2>&5
31424 ac_status=$?
31425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31426 (exit $ac_status); }; }; then
31427 wx_cv_func_cxa_demangle=yes
31428else
31429 echo "$as_me: failed program was:" >&5
31430sed 's/^/| /' conftest.$ac_ext >&5
31431
31432wx_cv_func_cxa_demangle=no
31433
31434fi
31435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31436
31437
31438fi
31439echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31440echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31441
31442 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31443 cat >>confdefs.h <<\_ACEOF
31444#define HAVE_CXA_DEMANGLE 1
31445_ACEOF
31446
31447 fi
31448 fi
31449
31450 ac_ext=c
31451ac_cpp='$CPP $CPPFLAGS'
31452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31454ac_compiler_gnu=$ac_cv_c_compiler_gnu
31455
31456fi
31457
a848cd7e
SC
31458
31459
31460for ac_func in mkstemp mktemp
31461do
31462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31463echo "$as_me:$LINENO: checking for $ac_func" >&5
31464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31465if eval "test \"\${$as_ac_var+set}\" = set"; then
31466 echo $ECHO_N "(cached) $ECHO_C" >&6
31467else
31468 cat >conftest.$ac_ext <<_ACEOF
31469/* confdefs.h. */
31470_ACEOF
31471cat confdefs.h >>conftest.$ac_ext
31472cat >>conftest.$ac_ext <<_ACEOF
31473/* end confdefs.h. */
ac1cb8d3
VS
31474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31476#define $ac_func innocuous_$ac_func
31477
a848cd7e
SC
31478/* System header to define __stub macros and hopefully few prototypes,
31479 which can conflict with char $ac_func (); below.
31480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31481 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31482
a848cd7e
SC
31483#ifdef __STDC__
31484# include <limits.h>
31485#else
31486# include <assert.h>
31487#endif
ac1cb8d3
VS
31488
31489#undef $ac_func
31490
a848cd7e
SC
31491/* Override any gcc2 internal prototype to avoid an error. */
31492#ifdef __cplusplus
31493extern "C"
31494{
31495#endif
31496/* We use char because int might match the return type of a gcc2
31497 builtin and then its argument prototype would still apply. */
31498char $ac_func ();
31499/* The GNU C library defines this for functions which it implements
31500 to always fail with ENOSYS. Some functions are actually named
31501 something starting with __ and the normal name is an alias. */
31502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31503choke me
31504#else
31505char (*f) () = $ac_func;
31506#endif
31507#ifdef __cplusplus
31508}
31509#endif
31510
31511int
31512main ()
31513{
31514return f != $ac_func;
31515 ;
31516 return 0;
31517}
31518_ACEOF
31519rm -f conftest.$ac_objext conftest$ac_exeext
31520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31521 (eval $ac_link) 2>conftest.er1
a848cd7e 31522 ac_status=$?
ac1cb8d3
VS
31523 grep -v '^ *+' conftest.er1 >conftest.err
31524 rm -f conftest.er1
31525 cat conftest.err >&5
a848cd7e
SC
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); } &&
07158944 31528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31530 (eval $ac_try) 2>&5
31531 ac_status=$?
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; } &&
31534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536 (eval $ac_try) 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; }; then
31540 eval "$as_ac_var=yes"
31541else
31542 echo "$as_me: failed program was:" >&5
31543sed 's/^/| /' conftest.$ac_ext >&5
31544
31545eval "$as_ac_var=no"
31546fi
ac1cb8d3
VS
31547rm -f conftest.err conftest.$ac_objext \
31548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31549fi
31550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31552if test `eval echo '${'$as_ac_var'}'` = yes; then
31553 cat >>confdefs.h <<_ACEOF
31554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31555_ACEOF
31556 break
31557fi
31558done
31559
31560
31561echo "$as_me:$LINENO: checking for statfs" >&5
31562echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31563if test "${wx_cv_func_statfs+set}" = set; then
31564 echo $ECHO_N "(cached) $ECHO_C" >&6
31565else
31566 cat >conftest.$ac_ext <<_ACEOF
31567/* confdefs.h. */
31568_ACEOF
31569cat confdefs.h >>conftest.$ac_ext
31570cat >>conftest.$ac_ext <<_ACEOF
31571/* end confdefs.h. */
31572
31573 #if defined(__BSD__)
31574 #include <sys/param.h>
31575 #include <sys/mount.h>
31576 #else
31577 #include <sys/vfs.h>
31578 #endif
31579
31580int
31581main ()
31582{
31583
31584 long l;
31585 struct statfs fs;
31586 statfs("/", &fs);
31587 l = fs.f_bsize;
31588 l += fs.f_blocks;
31589 l += fs.f_bavail;
31590
31591 ;
31592 return 0;
31593}
31594_ACEOF
31595rm -f conftest.$ac_objext
31596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31597 (eval $ac_compile) 2>conftest.er1
a848cd7e 31598 ac_status=$?
ac1cb8d3
VS
31599 grep -v '^ *+' conftest.er1 >conftest.err
31600 rm -f conftest.er1
31601 cat conftest.err >&5
a848cd7e
SC
31602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603 (exit $ac_status); } &&
07158944 31604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31606 (eval $ac_try) 2>&5
31607 ac_status=$?
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609 (exit $ac_status); }; } &&
31610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31612 (eval $ac_try) 2>&5
31613 ac_status=$?
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); }; }; then
31616
31617 wx_cv_func_statfs=yes
31618
31619else
31620 echo "$as_me: failed program was:" >&5
31621sed 's/^/| /' conftest.$ac_ext >&5
31622
31623
31624 wx_cv_func_statfs=no
31625
31626
31627fi
ac1cb8d3 31628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31629
31630fi
31631echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31632echo "${ECHO_T}$wx_cv_func_statfs" >&6
31633
31634if test "$wx_cv_func_statfs" = "yes"; then
31635 wx_cv_type_statvfs_t="struct statfs"
31636 cat >>confdefs.h <<\_ACEOF
31637#define HAVE_STATFS 1
31638_ACEOF
31639
31640else
31641 echo "$as_me:$LINENO: checking for statvfs" >&5
31642echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31643if test "${wx_cv_func_statvfs+set}" = set; then
31644 echo $ECHO_N "(cached) $ECHO_C" >&6
31645else
31646 cat >conftest.$ac_ext <<_ACEOF
31647/* confdefs.h. */
31648_ACEOF
31649cat confdefs.h >>conftest.$ac_ext
31650cat >>conftest.$ac_ext <<_ACEOF
31651/* end confdefs.h. */
31652
31653 #include <stddef.h>
31654 #include <sys/statvfs.h>
31655
31656int
31657main ()
31658{
31659
31660 statvfs("/", NULL);
31661
31662 ;
31663 return 0;
31664}
31665_ACEOF
31666rm -f conftest.$ac_objext
31667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31668 (eval $ac_compile) 2>conftest.er1
a848cd7e 31669 ac_status=$?
ac1cb8d3
VS
31670 grep -v '^ *+' conftest.er1 >conftest.err
31671 rm -f conftest.er1
31672 cat conftest.err >&5
a848cd7e
SC
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); } &&
07158944 31675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31677 (eval $ac_try) 2>&5
31678 ac_status=$?
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; } &&
31681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31683 (eval $ac_try) 2>&5
31684 ac_status=$?
31685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686 (exit $ac_status); }; }; then
31687 wx_cv_func_statvfs=yes
31688else
31689 echo "$as_me: failed program was:" >&5
31690sed 's/^/| /' conftest.$ac_ext >&5
31691
31692wx_cv_func_statvfs=no
31693
31694fi
ac1cb8d3 31695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31696
31697fi
31698echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31699echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31700
31701 if test "$wx_cv_func_statvfs" = "yes"; then
31702
31703
31704 ac_ext=cc
31705ac_cpp='$CXXCPP $CPPFLAGS'
31706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31709
31710
31711 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31712echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31713if test "${wx_cv_type_statvfs_t+set}" = set; then
31714 echo $ECHO_N "(cached) $ECHO_C" >&6
31715else
31716 cat >conftest.$ac_ext <<_ACEOF
31717/* confdefs.h. */
31718_ACEOF
31719cat confdefs.h >>conftest.$ac_ext
31720cat >>conftest.$ac_ext <<_ACEOF
31721/* end confdefs.h. */
31722
31723 #include <sys/statvfs.h>
31724
31725int
31726main ()
31727{
31728
31729 long l;
31730 statvfs_t fs;
31731 statvfs("/", &fs);
31732 l = fs.f_bsize;
31733 l += fs.f_blocks;
31734 l += fs.f_bavail;
31735
31736 ;
31737 return 0;
31738}
31739_ACEOF
31740rm -f conftest.$ac_objext
31741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31742 (eval $ac_compile) 2>conftest.er1
a848cd7e 31743 ac_status=$?
ac1cb8d3
VS
31744 grep -v '^ *+' conftest.er1 >conftest.err
31745 rm -f conftest.er1
31746 cat conftest.err >&5
a848cd7e
SC
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); } &&
07158944 31749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31751 (eval $ac_try) 2>&5
31752 ac_status=$?
31753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754 (exit $ac_status); }; } &&
31755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31757 (eval $ac_try) 2>&5
31758 ac_status=$?
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); }; }; then
31761 wx_cv_type_statvfs_t=statvfs_t
31762else
31763 echo "$as_me: failed program was:" >&5
31764sed 's/^/| /' conftest.$ac_ext >&5
31765
31766
31767 cat >conftest.$ac_ext <<_ACEOF
31768/* confdefs.h. */
31769_ACEOF
31770cat confdefs.h >>conftest.$ac_ext
31771cat >>conftest.$ac_ext <<_ACEOF
31772/* end confdefs.h. */
31773
31774 #include <sys/statvfs.h>
31775
31776int
31777main ()
31778{
31779
31780 long l;
31781 struct statvfs fs;
31782 statvfs("/", &fs);
31783 l = fs.f_bsize;
31784 l += fs.f_blocks;
31785 l += fs.f_bavail;
31786
31787 ;
31788 return 0;
31789}
31790_ACEOF
31791rm -f conftest.$ac_objext
31792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31793 (eval $ac_compile) 2>conftest.er1
a848cd7e 31794 ac_status=$?
ac1cb8d3
VS
31795 grep -v '^ *+' conftest.er1 >conftest.err
31796 rm -f conftest.er1
31797 cat conftest.err >&5
a848cd7e
SC
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); } &&
07158944 31800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31802 (eval $ac_try) 2>&5
31803 ac_status=$?
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; } &&
31806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31808 (eval $ac_try) 2>&5
31809 ac_status=$?
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }; then
31812 wx_cv_type_statvfs_t="struct statvfs"
31813else
31814 echo "$as_me: failed program was:" >&5
31815sed 's/^/| /' conftest.$ac_ext >&5
31816
31817wx_cv_type_statvfs_t="unknown"
31818
31819fi
ac1cb8d3 31820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31821
31822
31823fi
ac1cb8d3 31824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31825
31826fi
31827echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31828echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31829
31830 ac_ext=c
31831ac_cpp='$CPP $CPPFLAGS'
31832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31834ac_compiler_gnu=$ac_cv_c_compiler_gnu
31835
31836
31837 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31838 cat >>confdefs.h <<\_ACEOF
31839#define HAVE_STATVFS 1
31840_ACEOF
31841
31842 fi
31843 else
31844 wx_cv_type_statvfs_t="unknown"
31845 fi
31846fi
31847
31848if test "$wx_cv_type_statvfs_t" != "unknown"; then
31849 cat >>confdefs.h <<_ACEOF
31850#define WX_STATFS_T $wx_cv_type_statvfs_t
31851_ACEOF
31852
31853else
31854 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31855echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31856fi
31857
31858if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31859
31860
31861for ac_func in fcntl flock
31862do
31863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31864echo "$as_me:$LINENO: checking for $ac_func" >&5
31865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31866if eval "test \"\${$as_ac_var+set}\" = set"; then
31867 echo $ECHO_N "(cached) $ECHO_C" >&6
31868else
31869 cat >conftest.$ac_ext <<_ACEOF
31870/* confdefs.h. */
31871_ACEOF
31872cat confdefs.h >>conftest.$ac_ext
31873cat >>conftest.$ac_ext <<_ACEOF
31874/* end confdefs.h. */
ac1cb8d3
VS
31875/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31877#define $ac_func innocuous_$ac_func
31878
a848cd7e
SC
31879/* System header to define __stub macros and hopefully few prototypes,
31880 which can conflict with char $ac_func (); below.
31881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31882 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31883
a848cd7e
SC
31884#ifdef __STDC__
31885# include <limits.h>
31886#else
31887# include <assert.h>
31888#endif
ac1cb8d3
VS
31889
31890#undef $ac_func
31891
a848cd7e
SC
31892/* Override any gcc2 internal prototype to avoid an error. */
31893#ifdef __cplusplus
31894extern "C"
31895{
31896#endif
31897/* We use char because int might match the return type of a gcc2
31898 builtin and then its argument prototype would still apply. */
31899char $ac_func ();
31900/* The GNU C library defines this for functions which it implements
31901 to always fail with ENOSYS. Some functions are actually named
31902 something starting with __ and the normal name is an alias. */
31903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31904choke me
31905#else
31906char (*f) () = $ac_func;
31907#endif
31908#ifdef __cplusplus
31909}
31910#endif
31911
31912int
31913main ()
31914{
31915return f != $ac_func;
31916 ;
31917 return 0;
31918}
31919_ACEOF
31920rm -f conftest.$ac_objext conftest$ac_exeext
31921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31922 (eval $ac_link) 2>conftest.er1
a848cd7e 31923 ac_status=$?
ac1cb8d3
VS
31924 grep -v '^ *+' conftest.er1 >conftest.err
31925 rm -f conftest.er1
31926 cat conftest.err >&5
a848cd7e
SC
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } &&
07158944 31929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31931 (eval $ac_try) 2>&5
31932 ac_status=$?
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); }; } &&
31935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31937 (eval $ac_try) 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; }; then
31941 eval "$as_ac_var=yes"
31942else
31943 echo "$as_me: failed program was:" >&5
31944sed 's/^/| /' conftest.$ac_ext >&5
31945
31946eval "$as_ac_var=no"
31947fi
ac1cb8d3
VS
31948rm -f conftest.err conftest.$ac_objext \
31949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31950fi
31951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31952echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31953if test `eval echo '${'$as_ac_var'}'` = yes; then
31954 cat >>confdefs.h <<_ACEOF
31955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31956_ACEOF
31957 break
31958fi
31959done
31960
31961
31962 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31963 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31964echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31965 wxUSE_SNGLINST_CHECKER=no
31966 fi
31967fi
31968
31969
31970for ac_func in timegm
31971do
31972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31973echo "$as_me:$LINENO: checking for $ac_func" >&5
31974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31975if eval "test \"\${$as_ac_var+set}\" = set"; then
31976 echo $ECHO_N "(cached) $ECHO_C" >&6
31977else
31978 cat >conftest.$ac_ext <<_ACEOF
31979/* confdefs.h. */
31980_ACEOF
31981cat confdefs.h >>conftest.$ac_ext
31982cat >>conftest.$ac_ext <<_ACEOF
31983/* end confdefs.h. */
ac1cb8d3
VS
31984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31986#define $ac_func innocuous_$ac_func
31987
a848cd7e
SC
31988/* System header to define __stub macros and hopefully few prototypes,
31989 which can conflict with char $ac_func (); below.
31990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31991 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31992
a848cd7e
SC
31993#ifdef __STDC__
31994# include <limits.h>
31995#else
31996# include <assert.h>
31997#endif
ac1cb8d3
VS
31998
31999#undef $ac_func
32000
a848cd7e
SC
32001/* Override any gcc2 internal prototype to avoid an error. */
32002#ifdef __cplusplus
32003extern "C"
32004{
32005#endif
32006/* We use char because int might match the return type of a gcc2
32007 builtin and then its argument prototype would still apply. */
32008char $ac_func ();
32009/* The GNU C library defines this for functions which it implements
32010 to always fail with ENOSYS. Some functions are actually named
32011 something starting with __ and the normal name is an alias. */
32012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32013choke me
32014#else
32015char (*f) () = $ac_func;
32016#endif
32017#ifdef __cplusplus
32018}
32019#endif
32020
32021int
32022main ()
32023{
32024return f != $ac_func;
32025 ;
32026 return 0;
32027}
32028_ACEOF
32029rm -f conftest.$ac_objext conftest$ac_exeext
32030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32031 (eval $ac_link) 2>conftest.er1
a848cd7e 32032 ac_status=$?
ac1cb8d3
VS
32033 grep -v '^ *+' conftest.er1 >conftest.err
32034 rm -f conftest.er1
32035 cat conftest.err >&5
a848cd7e
SC
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); } &&
07158944 32038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32040 (eval $ac_try) 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; } &&
32044 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32046 (eval $ac_try) 2>&5
32047 ac_status=$?
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
32050 eval "$as_ac_var=yes"
32051else
32052 echo "$as_me: failed program was:" >&5
32053sed 's/^/| /' conftest.$ac_ext >&5
32054
32055eval "$as_ac_var=no"
32056fi
ac1cb8d3
VS
32057rm -f conftest.err conftest.$ac_objext \
32058 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32059fi
32060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32061echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32062if test `eval echo '${'$as_ac_var'}'` = yes; then
32063 cat >>confdefs.h <<_ACEOF
32064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32065_ACEOF
32066
32067fi
32068done
32069
32070
32071
32072
32073for ac_func in putenv setenv
32074do
32075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32076echo "$as_me:$LINENO: checking for $ac_func" >&5
32077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32078if eval "test \"\${$as_ac_var+set}\" = set"; then
32079 echo $ECHO_N "(cached) $ECHO_C" >&6
32080else
32081 cat >conftest.$ac_ext <<_ACEOF
32082/* confdefs.h. */
32083_ACEOF
32084cat confdefs.h >>conftest.$ac_ext
32085cat >>conftest.$ac_ext <<_ACEOF
32086/* end confdefs.h. */
ac1cb8d3
VS
32087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32089#define $ac_func innocuous_$ac_func
32090
a848cd7e
SC
32091/* System header to define __stub macros and hopefully few prototypes,
32092 which can conflict with char $ac_func (); below.
32093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32094 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32095
a848cd7e
SC
32096#ifdef __STDC__
32097# include <limits.h>
32098#else
32099# include <assert.h>
32100#endif
ac1cb8d3
VS
32101
32102#undef $ac_func
32103
a848cd7e
SC
32104/* Override any gcc2 internal prototype to avoid an error. */
32105#ifdef __cplusplus
32106extern "C"
32107{
32108#endif
32109/* We use char because int might match the return type of a gcc2
32110 builtin and then its argument prototype would still apply. */
32111char $ac_func ();
32112/* The GNU C library defines this for functions which it implements
32113 to always fail with ENOSYS. Some functions are actually named
32114 something starting with __ and the normal name is an alias. */
32115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32116choke me
32117#else
32118char (*f) () = $ac_func;
32119#endif
32120#ifdef __cplusplus
32121}
32122#endif
32123
32124int
32125main ()
32126{
32127return f != $ac_func;
32128 ;
32129 return 0;
32130}
32131_ACEOF
32132rm -f conftest.$ac_objext conftest$ac_exeext
32133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32134 (eval $ac_link) 2>conftest.er1
a848cd7e 32135 ac_status=$?
ac1cb8d3
VS
32136 grep -v '^ *+' conftest.er1 >conftest.err
32137 rm -f conftest.er1
32138 cat conftest.err >&5
a848cd7e
SC
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); } &&
07158944 32141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32143 (eval $ac_try) 2>&5
32144 ac_status=$?
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); }; } &&
32147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32149 (eval $ac_try) 2>&5
32150 ac_status=$?
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 (exit $ac_status); }; }; then
32153 eval "$as_ac_var=yes"
32154else
32155 echo "$as_me: failed program was:" >&5
32156sed 's/^/| /' conftest.$ac_ext >&5
32157
32158eval "$as_ac_var=no"
32159fi
ac1cb8d3
VS
32160rm -f conftest.err conftest.$ac_objext \
32161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32162fi
32163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32165if test `eval echo '${'$as_ac_var'}'` = yes; then
32166 cat >>confdefs.h <<_ACEOF
32167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32168_ACEOF
32169 break
32170fi
32171done
32172
32173
32174HAVE_SOME_SLEEP_FUNC=0
32175if test "$USE_BEOS" = 1; then
32176 cat >>confdefs.h <<\_ACEOF
32177#define HAVE_SLEEP 1
32178_ACEOF
32179
32180 HAVE_SOME_SLEEP_FUNC=1
32181fi
32182
32183if test "$USE_DARWIN" = 1; then
32184 cat >>confdefs.h <<\_ACEOF
32185#define HAVE_USLEEP 1
32186_ACEOF
32187
32188 HAVE_SOME_SLEEP_FUNC=1
32189fi
32190
32191if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32192 POSIX4_LINK=
32193
32194for ac_func in nanosleep
32195do
32196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32197echo "$as_me:$LINENO: checking for $ac_func" >&5
32198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32199if eval "test \"\${$as_ac_var+set}\" = set"; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32201else
32202 cat >conftest.$ac_ext <<_ACEOF
32203/* confdefs.h. */
32204_ACEOF
32205cat confdefs.h >>conftest.$ac_ext
32206cat >>conftest.$ac_ext <<_ACEOF
32207/* end confdefs.h. */
ac1cb8d3
VS
32208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32210#define $ac_func innocuous_$ac_func
32211
a848cd7e
SC
32212/* System header to define __stub macros and hopefully few prototypes,
32213 which can conflict with char $ac_func (); below.
32214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32215 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32216
a848cd7e
SC
32217#ifdef __STDC__
32218# include <limits.h>
32219#else
32220# include <assert.h>
32221#endif
ac1cb8d3
VS
32222
32223#undef $ac_func
32224
a848cd7e
SC
32225/* Override any gcc2 internal prototype to avoid an error. */
32226#ifdef __cplusplus
32227extern "C"
32228{
32229#endif
32230/* We use char because int might match the return type of a gcc2
32231 builtin and then its argument prototype would still apply. */
32232char $ac_func ();
32233/* The GNU C library defines this for functions which it implements
32234 to always fail with ENOSYS. Some functions are actually named
32235 something starting with __ and the normal name is an alias. */
32236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32237choke me
32238#else
32239char (*f) () = $ac_func;
32240#endif
32241#ifdef __cplusplus
32242}
32243#endif
32244
32245int
32246main ()
32247{
32248return f != $ac_func;
32249 ;
32250 return 0;
32251}
32252_ACEOF
32253rm -f conftest.$ac_objext conftest$ac_exeext
32254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32255 (eval $ac_link) 2>conftest.er1
a848cd7e 32256 ac_status=$?
ac1cb8d3
VS
32257 grep -v '^ *+' conftest.er1 >conftest.err
32258 rm -f conftest.er1
32259 cat conftest.err >&5
a848cd7e
SC
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); } &&
07158944 32262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32264 (eval $ac_try) 2>&5
32265 ac_status=$?
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); }; } &&
32268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32270 (eval $ac_try) 2>&5
32271 ac_status=$?
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); }; }; then
32274 eval "$as_ac_var=yes"
32275else
32276 echo "$as_me: failed program was:" >&5
32277sed 's/^/| /' conftest.$ac_ext >&5
32278
32279eval "$as_ac_var=no"
32280fi
ac1cb8d3
VS
32281rm -f conftest.err conftest.$ac_objext \
32282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32283fi
32284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32286if test `eval echo '${'$as_ac_var'}'` = yes; then
32287 cat >>confdefs.h <<_ACEOF
32288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32289_ACEOF
32290 cat >>confdefs.h <<\_ACEOF
32291#define HAVE_NANOSLEEP 1
32292_ACEOF
32293
32294else
32295
32296 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32297echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32298if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32299 echo $ECHO_N "(cached) $ECHO_C" >&6
32300else
32301 ac_check_lib_save_LIBS=$LIBS
32302LIBS="-lposix4 $LIBS"
32303cat >conftest.$ac_ext <<_ACEOF
32304/* confdefs.h. */
32305_ACEOF
32306cat confdefs.h >>conftest.$ac_ext
32307cat >>conftest.$ac_ext <<_ACEOF
32308/* end confdefs.h. */
32309
32310/* Override any gcc2 internal prototype to avoid an error. */
32311#ifdef __cplusplus
32312extern "C"
32313#endif
32314/* We use char because int might match the return type of a gcc2
32315 builtin and then its argument prototype would still apply. */
32316char nanosleep ();
32317int
32318main ()
32319{
32320nanosleep ();
32321 ;
32322 return 0;
32323}
32324_ACEOF
32325rm -f conftest.$ac_objext conftest$ac_exeext
32326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32327 (eval $ac_link) 2>conftest.er1
a848cd7e 32328 ac_status=$?
ac1cb8d3
VS
32329 grep -v '^ *+' conftest.er1 >conftest.err
32330 rm -f conftest.er1
32331 cat conftest.err >&5
a848cd7e
SC
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); } &&
07158944 32334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32336 (eval $ac_try) 2>&5
32337 ac_status=$?
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); }; } &&
32340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32342 (eval $ac_try) 2>&5
32343 ac_status=$?
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); }; }; then
32346 ac_cv_lib_posix4_nanosleep=yes
32347else
32348 echo "$as_me: failed program was:" >&5
32349sed 's/^/| /' conftest.$ac_ext >&5
32350
32351ac_cv_lib_posix4_nanosleep=no
32352fi
ac1cb8d3
VS
32353rm -f conftest.err conftest.$ac_objext \
32354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32355LIBS=$ac_check_lib_save_LIBS
32356fi
32357echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32358echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32359if test $ac_cv_lib_posix4_nanosleep = yes; then
32360
32361 cat >>confdefs.h <<\_ACEOF
32362#define HAVE_NANOSLEEP 1
32363_ACEOF
32364
32365 POSIX4_LINK=" -lposix4"
32366
32367else
32368
32369
32370for ac_func in usleep
32371do
32372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32373echo "$as_me:$LINENO: checking for $ac_func" >&5
32374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32375if eval "test \"\${$as_ac_var+set}\" = set"; then
32376 echo $ECHO_N "(cached) $ECHO_C" >&6
32377else
32378 cat >conftest.$ac_ext <<_ACEOF
32379/* confdefs.h. */
32380_ACEOF
32381cat confdefs.h >>conftest.$ac_ext
32382cat >>conftest.$ac_ext <<_ACEOF
32383/* end confdefs.h. */
ac1cb8d3
VS
32384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32386#define $ac_func innocuous_$ac_func
32387
a848cd7e
SC
32388/* System header to define __stub macros and hopefully few prototypes,
32389 which can conflict with char $ac_func (); below.
32390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32391 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32392
a848cd7e
SC
32393#ifdef __STDC__
32394# include <limits.h>
32395#else
32396# include <assert.h>
32397#endif
ac1cb8d3
VS
32398
32399#undef $ac_func
32400
a848cd7e
SC
32401/* Override any gcc2 internal prototype to avoid an error. */
32402#ifdef __cplusplus
32403extern "C"
32404{
32405#endif
32406/* We use char because int might match the return type of a gcc2
32407 builtin and then its argument prototype would still apply. */
32408char $ac_func ();
32409/* The GNU C library defines this for functions which it implements
32410 to always fail with ENOSYS. Some functions are actually named
32411 something starting with __ and the normal name is an alias. */
32412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32413choke me
32414#else
32415char (*f) () = $ac_func;
32416#endif
32417#ifdef __cplusplus
32418}
32419#endif
32420
32421int
32422main ()
32423{
32424return f != $ac_func;
32425 ;
32426 return 0;
32427}
32428_ACEOF
32429rm -f conftest.$ac_objext conftest$ac_exeext
32430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32431 (eval $ac_link) 2>conftest.er1
a848cd7e 32432 ac_status=$?
ac1cb8d3
VS
32433 grep -v '^ *+' conftest.er1 >conftest.err
32434 rm -f conftest.er1
32435 cat conftest.err >&5
a848cd7e
SC
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); } &&
07158944 32438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32440 (eval $ac_try) 2>&5
32441 ac_status=$?
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); }; } &&
32444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32446 (eval $ac_try) 2>&5
32447 ac_status=$?
32448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449 (exit $ac_status); }; }; then
32450 eval "$as_ac_var=yes"
32451else
32452 echo "$as_me: failed program was:" >&5
32453sed 's/^/| /' conftest.$ac_ext >&5
32454
32455eval "$as_ac_var=no"
32456fi
ac1cb8d3
VS
32457rm -f conftest.err conftest.$ac_objext \
32458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32459fi
32460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32461echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32462if test `eval echo '${'$as_ac_var'}'` = yes; then
32463 cat >>confdefs.h <<_ACEOF
32464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32465_ACEOF
32466 cat >>confdefs.h <<\_ACEOF
32467#define HAVE_USLEEP 1
32468_ACEOF
32469
32470else
32471 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32472echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32473
32474fi
32475done
32476
32477
32478
32479fi
32480
32481
32482
32483fi
32484done
32485
32486fi
32487
32488
32489
32490for ac_func in uname gethostname
32491do
32492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32493echo "$as_me:$LINENO: checking for $ac_func" >&5
32494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32495if eval "test \"\${$as_ac_var+set}\" = set"; then
32496 echo $ECHO_N "(cached) $ECHO_C" >&6
32497else
32498 cat >conftest.$ac_ext <<_ACEOF
32499/* confdefs.h. */
32500_ACEOF
32501cat confdefs.h >>conftest.$ac_ext
32502cat >>conftest.$ac_ext <<_ACEOF
32503/* end confdefs.h. */
ac1cb8d3
VS
32504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32506#define $ac_func innocuous_$ac_func
32507
a848cd7e
SC
32508/* System header to define __stub macros and hopefully few prototypes,
32509 which can conflict with char $ac_func (); below.
32510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32511 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32512
a848cd7e
SC
32513#ifdef __STDC__
32514# include <limits.h>
32515#else
32516# include <assert.h>
32517#endif
ac1cb8d3
VS
32518
32519#undef $ac_func
32520
a848cd7e
SC
32521/* Override any gcc2 internal prototype to avoid an error. */
32522#ifdef __cplusplus
32523extern "C"
32524{
32525#endif
32526/* We use char because int might match the return type of a gcc2
32527 builtin and then its argument prototype would still apply. */
32528char $ac_func ();
32529/* The GNU C library defines this for functions which it implements
32530 to always fail with ENOSYS. Some functions are actually named
32531 something starting with __ and the normal name is an alias. */
32532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32533choke me
32534#else
32535char (*f) () = $ac_func;
32536#endif
32537#ifdef __cplusplus
32538}
32539#endif
32540
32541int
32542main ()
32543{
32544return f != $ac_func;
32545 ;
32546 return 0;
32547}
32548_ACEOF
32549rm -f conftest.$ac_objext conftest$ac_exeext
32550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32551 (eval $ac_link) 2>conftest.er1
a848cd7e 32552 ac_status=$?
ac1cb8d3
VS
32553 grep -v '^ *+' conftest.er1 >conftest.err
32554 rm -f conftest.er1
32555 cat conftest.err >&5
a848cd7e
SC
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); } &&
07158944 32558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32560 (eval $ac_try) 2>&5
32561 ac_status=$?
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; } &&
32564 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32566 (eval $ac_try) 2>&5
32567 ac_status=$?
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); }; }; then
32570 eval "$as_ac_var=yes"
32571else
32572 echo "$as_me: failed program was:" >&5
32573sed 's/^/| /' conftest.$ac_ext >&5
32574
32575eval "$as_ac_var=no"
32576fi
ac1cb8d3
VS
32577rm -f conftest.err conftest.$ac_objext \
32578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32579fi
32580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32582if test `eval echo '${'$as_ac_var'}'` = yes; then
32583 cat >>confdefs.h <<_ACEOF
32584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32585_ACEOF
32586 break
32587fi
32588done
32589
32590
32591
32592
32593ac_ext=cc
32594ac_cpp='$CXXCPP $CPPFLAGS'
32595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32598
32599
32600
32601for ac_func in strtok_r
32602do
32603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32604echo "$as_me:$LINENO: checking for $ac_func" >&5
32605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32606if eval "test \"\${$as_ac_var+set}\" = set"; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
32608else
32609 cat >conftest.$ac_ext <<_ACEOF
32610/* confdefs.h. */
32611_ACEOF
32612cat confdefs.h >>conftest.$ac_ext
32613cat >>conftest.$ac_ext <<_ACEOF
32614/* end confdefs.h. */
ac1cb8d3
VS
32615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32617#define $ac_func innocuous_$ac_func
32618
a848cd7e
SC
32619/* System header to define __stub macros and hopefully few prototypes,
32620 which can conflict with char $ac_func (); below.
32621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32622 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32623
a848cd7e
SC
32624#ifdef __STDC__
32625# include <limits.h>
32626#else
32627# include <assert.h>
32628#endif
ac1cb8d3
VS
32629
32630#undef $ac_func
32631
a848cd7e
SC
32632/* Override any gcc2 internal prototype to avoid an error. */
32633#ifdef __cplusplus
32634extern "C"
32635{
32636#endif
32637/* We use char because int might match the return type of a gcc2
32638 builtin and then its argument prototype would still apply. */
32639char $ac_func ();
32640/* The GNU C library defines this for functions which it implements
32641 to always fail with ENOSYS. Some functions are actually named
32642 something starting with __ and the normal name is an alias. */
32643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32644choke me
32645#else
32646char (*f) () = $ac_func;
32647#endif
32648#ifdef __cplusplus
32649}
32650#endif
32651
32652int
32653main ()
32654{
32655return f != $ac_func;
32656 ;
32657 return 0;
32658}
32659_ACEOF
32660rm -f conftest.$ac_objext conftest$ac_exeext
32661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32662 (eval $ac_link) 2>conftest.er1
a848cd7e 32663 ac_status=$?
ac1cb8d3
VS
32664 grep -v '^ *+' conftest.er1 >conftest.err
32665 rm -f conftest.er1
32666 cat conftest.err >&5
a848cd7e
SC
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); } &&
07158944 32669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32671 (eval $ac_try) 2>&5
32672 ac_status=$?
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); }; } &&
32675 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32677 (eval $ac_try) 2>&5
32678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; }; then
32681 eval "$as_ac_var=yes"
32682else
32683 echo "$as_me: failed program was:" >&5
32684sed 's/^/| /' conftest.$ac_ext >&5
32685
32686eval "$as_ac_var=no"
32687fi
ac1cb8d3
VS
32688rm -f conftest.err conftest.$ac_objext \
32689 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32690fi
32691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32692echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32693if test `eval echo '${'$as_ac_var'}'` = yes; then
32694 cat >>confdefs.h <<_ACEOF
32695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32696_ACEOF
32697
32698fi
32699done
32700
32701
32702ac_ext=c
32703ac_cpp='$CPP $CPPFLAGS'
32704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706ac_compiler_gnu=$ac_cv_c_compiler_gnu
32707
32708
32709INET_LINK=
32710
32711for ac_func in inet_addr
32712do
32713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32714echo "$as_me:$LINENO: checking for $ac_func" >&5
32715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32716if eval "test \"\${$as_ac_var+set}\" = set"; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32718else
32719 cat >conftest.$ac_ext <<_ACEOF
32720/* confdefs.h. */
32721_ACEOF
32722cat confdefs.h >>conftest.$ac_ext
32723cat >>conftest.$ac_ext <<_ACEOF
32724/* end confdefs.h. */
ac1cb8d3
VS
32725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32727#define $ac_func innocuous_$ac_func
32728
a848cd7e
SC
32729/* System header to define __stub macros and hopefully few prototypes,
32730 which can conflict with char $ac_func (); below.
32731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32732 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32733
a848cd7e
SC
32734#ifdef __STDC__
32735# include <limits.h>
32736#else
32737# include <assert.h>
32738#endif
ac1cb8d3
VS
32739
32740#undef $ac_func
32741
a848cd7e
SC
32742/* Override any gcc2 internal prototype to avoid an error. */
32743#ifdef __cplusplus
32744extern "C"
32745{
32746#endif
32747/* We use char because int might match the return type of a gcc2
32748 builtin and then its argument prototype would still apply. */
32749char $ac_func ();
32750/* The GNU C library defines this for functions which it implements
32751 to always fail with ENOSYS. Some functions are actually named
32752 something starting with __ and the normal name is an alias. */
32753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32754choke me
32755#else
32756char (*f) () = $ac_func;
32757#endif
32758#ifdef __cplusplus
32759}
32760#endif
32761
32762int
32763main ()
32764{
32765return f != $ac_func;
32766 ;
32767 return 0;
32768}
32769_ACEOF
32770rm -f conftest.$ac_objext conftest$ac_exeext
32771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32772 (eval $ac_link) 2>conftest.er1
a848cd7e 32773 ac_status=$?
ac1cb8d3
VS
32774 grep -v '^ *+' conftest.er1 >conftest.err
32775 rm -f conftest.er1
32776 cat conftest.err >&5
a848cd7e
SC
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); } &&
07158944 32779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32781 (eval $ac_try) 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; } &&
32785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32787 (eval $ac_try) 2>&5
32788 ac_status=$?
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); }; }; then
32791 eval "$as_ac_var=yes"
32792else
32793 echo "$as_me: failed program was:" >&5
32794sed 's/^/| /' conftest.$ac_ext >&5
32795
32796eval "$as_ac_var=no"
32797fi
ac1cb8d3
VS
32798rm -f conftest.err conftest.$ac_objext \
32799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32800fi
32801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32802echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32803if test `eval echo '${'$as_ac_var'}'` = yes; then
32804 cat >>confdefs.h <<_ACEOF
32805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32806_ACEOF
32807 cat >>confdefs.h <<\_ACEOF
32808#define HAVE_INET_ADDR 1
32809_ACEOF
32810
32811else
32812
32813 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32814echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32815if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32816 echo $ECHO_N "(cached) $ECHO_C" >&6
32817else
32818 ac_check_lib_save_LIBS=$LIBS
32819LIBS="-lnsl $LIBS"
32820cat >conftest.$ac_ext <<_ACEOF
32821/* confdefs.h. */
32822_ACEOF
32823cat confdefs.h >>conftest.$ac_ext
32824cat >>conftest.$ac_ext <<_ACEOF
32825/* end confdefs.h. */
32826
32827/* Override any gcc2 internal prototype to avoid an error. */
32828#ifdef __cplusplus
32829extern "C"
32830#endif
32831/* We use char because int might match the return type of a gcc2
32832 builtin and then its argument prototype would still apply. */
32833char inet_addr ();
32834int
32835main ()
32836{
32837inet_addr ();
32838 ;
32839 return 0;
32840}
32841_ACEOF
32842rm -f conftest.$ac_objext conftest$ac_exeext
32843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32844 (eval $ac_link) 2>conftest.er1
a848cd7e 32845 ac_status=$?
ac1cb8d3
VS
32846 grep -v '^ *+' conftest.er1 >conftest.err
32847 rm -f conftest.er1
32848 cat conftest.err >&5
a848cd7e
SC
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); } &&
07158944 32851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32853 (eval $ac_try) 2>&5
32854 ac_status=$?
32855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856 (exit $ac_status); }; } &&
32857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32859 (eval $ac_try) 2>&5
32860 ac_status=$?
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); }; }; then
32863 ac_cv_lib_nsl_inet_addr=yes
32864else
32865 echo "$as_me: failed program was:" >&5
32866sed 's/^/| /' conftest.$ac_ext >&5
32867
32868ac_cv_lib_nsl_inet_addr=no
32869fi
ac1cb8d3
VS
32870rm -f conftest.err conftest.$ac_objext \
32871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32872LIBS=$ac_check_lib_save_LIBS
32873fi
32874echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32875echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32876if test $ac_cv_lib_nsl_inet_addr = yes; then
32877 INET_LINK="nsl"
32878else
32879
32880 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32881echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32882if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32883 echo $ECHO_N "(cached) $ECHO_C" >&6
32884else
32885 ac_check_lib_save_LIBS=$LIBS
32886LIBS="-lresolv $LIBS"
32887cat >conftest.$ac_ext <<_ACEOF
32888/* confdefs.h. */
32889_ACEOF
32890cat confdefs.h >>conftest.$ac_ext
32891cat >>conftest.$ac_ext <<_ACEOF
32892/* end confdefs.h. */
32893
32894/* Override any gcc2 internal prototype to avoid an error. */
32895#ifdef __cplusplus
32896extern "C"
32897#endif
32898/* We use char because int might match the return type of a gcc2
32899 builtin and then its argument prototype would still apply. */
32900char inet_addr ();
32901int
32902main ()
32903{
32904inet_addr ();
32905 ;
32906 return 0;
32907}
32908_ACEOF
32909rm -f conftest.$ac_objext conftest$ac_exeext
32910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32911 (eval $ac_link) 2>conftest.er1
a848cd7e 32912 ac_status=$?
ac1cb8d3
VS
32913 grep -v '^ *+' conftest.er1 >conftest.err
32914 rm -f conftest.er1
32915 cat conftest.err >&5
a848cd7e
SC
32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); } &&
07158944 32918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32920 (eval $ac_try) 2>&5
32921 ac_status=$?
32922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32923 (exit $ac_status); }; } &&
32924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926 (eval $ac_try) 2>&5
32927 ac_status=$?
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; }; then
32930 ac_cv_lib_resolv_inet_addr=yes
32931else
32932 echo "$as_me: failed program was:" >&5
32933sed 's/^/| /' conftest.$ac_ext >&5
32934
32935ac_cv_lib_resolv_inet_addr=no
32936fi
ac1cb8d3
VS
32937rm -f conftest.err conftest.$ac_objext \
32938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32939LIBS=$ac_check_lib_save_LIBS
32940fi
32941echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32942echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32943if test $ac_cv_lib_resolv_inet_addr = yes; then
32944 INET_LINK="resolv"
32945else
32946
32947 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32948echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32949if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32950 echo $ECHO_N "(cached) $ECHO_C" >&6
32951else
32952 ac_check_lib_save_LIBS=$LIBS
32953LIBS="-lsocket $LIBS"
32954cat >conftest.$ac_ext <<_ACEOF
32955/* confdefs.h. */
32956_ACEOF
32957cat confdefs.h >>conftest.$ac_ext
32958cat >>conftest.$ac_ext <<_ACEOF
32959/* end confdefs.h. */
32960
32961/* Override any gcc2 internal prototype to avoid an error. */
32962#ifdef __cplusplus
32963extern "C"
32964#endif
32965/* We use char because int might match the return type of a gcc2
32966 builtin and then its argument prototype would still apply. */
32967char inet_addr ();
32968int
32969main ()
32970{
32971inet_addr ();
32972 ;
32973 return 0;
32974}
32975_ACEOF
32976rm -f conftest.$ac_objext conftest$ac_exeext
32977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32978 (eval $ac_link) 2>conftest.er1
a848cd7e 32979 ac_status=$?
ac1cb8d3
VS
32980 grep -v '^ *+' conftest.er1 >conftest.err
32981 rm -f conftest.er1
32982 cat conftest.err >&5
a848cd7e
SC
32983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984 (exit $ac_status); } &&
07158944 32985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32987 (eval $ac_try) 2>&5
32988 ac_status=$?
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); }; } &&
32991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32993 (eval $ac_try) 2>&5
32994 ac_status=$?
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; }; then
32997 ac_cv_lib_socket_inet_addr=yes
32998else
32999 echo "$as_me: failed program was:" >&5
33000sed 's/^/| /' conftest.$ac_ext >&5
33001
33002ac_cv_lib_socket_inet_addr=no
33003fi
ac1cb8d3
VS
33004rm -f conftest.err conftest.$ac_objext \
33005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33006LIBS=$ac_check_lib_save_LIBS
33007fi
33008echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33009echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33010if test $ac_cv_lib_socket_inet_addr = yes; then
33011 INET_LINK="socket"
33012
33013fi
33014
33015
33016
33017fi
33018
33019
33020
33021fi
33022
33023
33024
33025fi
33026done
33027
33028
33029
33030for ac_func in inet_aton
33031do
33032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33033echo "$as_me:$LINENO: checking for $ac_func" >&5
33034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33035if eval "test \"\${$as_ac_var+set}\" = set"; then
33036 echo $ECHO_N "(cached) $ECHO_C" >&6
33037else
33038 cat >conftest.$ac_ext <<_ACEOF
33039/* confdefs.h. */
33040_ACEOF
33041cat confdefs.h >>conftest.$ac_ext
33042cat >>conftest.$ac_ext <<_ACEOF
33043/* end confdefs.h. */
ac1cb8d3
VS
33044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33046#define $ac_func innocuous_$ac_func
33047
a848cd7e
SC
33048/* System header to define __stub macros and hopefully few prototypes,
33049 which can conflict with char $ac_func (); below.
33050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33051 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33052
a848cd7e
SC
33053#ifdef __STDC__
33054# include <limits.h>
33055#else
33056# include <assert.h>
33057#endif
ac1cb8d3
VS
33058
33059#undef $ac_func
33060
a848cd7e
SC
33061/* Override any gcc2 internal prototype to avoid an error. */
33062#ifdef __cplusplus
33063extern "C"
33064{
33065#endif
33066/* We use char because int might match the return type of a gcc2
33067 builtin and then its argument prototype would still apply. */
33068char $ac_func ();
33069/* The GNU C library defines this for functions which it implements
33070 to always fail with ENOSYS. Some functions are actually named
33071 something starting with __ and the normal name is an alias. */
33072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33073choke me
33074#else
33075char (*f) () = $ac_func;
33076#endif
33077#ifdef __cplusplus
33078}
33079#endif
33080
33081int
33082main ()
33083{
33084return f != $ac_func;
33085 ;
33086 return 0;
33087}
33088_ACEOF
33089rm -f conftest.$ac_objext conftest$ac_exeext
33090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33091 (eval $ac_link) 2>conftest.er1
a848cd7e 33092 ac_status=$?
ac1cb8d3
VS
33093 grep -v '^ *+' conftest.er1 >conftest.err
33094 rm -f conftest.er1
33095 cat conftest.err >&5
a848cd7e
SC
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); } &&
07158944 33098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33100 (eval $ac_try) 2>&5
33101 ac_status=$?
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; } &&
33104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33106 (eval $ac_try) 2>&5
33107 ac_status=$?
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); }; }; then
33110 eval "$as_ac_var=yes"
33111else
33112 echo "$as_me: failed program was:" >&5
33113sed 's/^/| /' conftest.$ac_ext >&5
33114
33115eval "$as_ac_var=no"
33116fi
ac1cb8d3
VS
33117rm -f conftest.err conftest.$ac_objext \
33118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33119fi
33120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33122if test `eval echo '${'$as_ac_var'}'` = yes; then
33123 cat >>confdefs.h <<_ACEOF
33124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33125_ACEOF
33126 cat >>confdefs.h <<\_ACEOF
33127#define HAVE_INET_ATON 1
33128_ACEOF
33129
33130else
33131
33132 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33133echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33134echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33135if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33136 echo $ECHO_N "(cached) $ECHO_C" >&6
33137else
33138 ac_check_lib_save_LIBS=$LIBS
33139LIBS="-l$INET_LINK $LIBS"
33140cat >conftest.$ac_ext <<_ACEOF
33141/* confdefs.h. */
33142_ACEOF
33143cat confdefs.h >>conftest.$ac_ext
33144cat >>conftest.$ac_ext <<_ACEOF
33145/* end confdefs.h. */
33146
33147/* Override any gcc2 internal prototype to avoid an error. */
33148#ifdef __cplusplus
33149extern "C"
33150#endif
33151/* We use char because int might match the return type of a gcc2
33152 builtin and then its argument prototype would still apply. */
33153char inet_aton ();
33154int
33155main ()
33156{
33157inet_aton ();
33158 ;
33159 return 0;
33160}
33161_ACEOF
33162rm -f conftest.$ac_objext conftest$ac_exeext
33163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33164 (eval $ac_link) 2>conftest.er1
a848cd7e 33165 ac_status=$?
ac1cb8d3
VS
33166 grep -v '^ *+' conftest.er1 >conftest.err
33167 rm -f conftest.er1
33168 cat conftest.err >&5
a848cd7e
SC
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); } &&
07158944 33171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33173 (eval $ac_try) 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; } &&
33177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33179 (eval $ac_try) 2>&5
33180 ac_status=$?
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); }; }; then
33183 eval "$as_ac_Lib=yes"
33184else
33185 echo "$as_me: failed program was:" >&5
33186sed 's/^/| /' conftest.$ac_ext >&5
33187
33188eval "$as_ac_Lib=no"
33189fi
ac1cb8d3
VS
33190rm -f conftest.err conftest.$ac_objext \
33191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33192LIBS=$ac_check_lib_save_LIBS
33193fi
33194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33195echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33196if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33197 cat >>confdefs.h <<\_ACEOF
33198#define HAVE_INET_ATON 1
33199_ACEOF
33200
33201fi
33202
33203
33204fi
33205done
33206
33207
33208if test "x$INET_LINK" != "x"; then
33209 cat >>confdefs.h <<\_ACEOF
33210#define HAVE_INET_ADDR 1
33211_ACEOF
33212
33213 INET_LINK=" -l$INET_LINK"
33214fi
33215
33216fi
33217
33218
33219
33220EXTRALIBS_ESD=
33221echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33222echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33223if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33224 echo $ECHO_N "(cached) $ECHO_C" >&6
33225else
33226 ac_check_lib_save_LIBS=$LIBS
33227LIBS="-lesd $LIBS"
33228cat >conftest.$ac_ext <<_ACEOF
33229/* confdefs.h. */
33230_ACEOF
33231cat confdefs.h >>conftest.$ac_ext
33232cat >>conftest.$ac_ext <<_ACEOF
33233/* end confdefs.h. */
33234
33235/* Override any gcc2 internal prototype to avoid an error. */
33236#ifdef __cplusplus
33237extern "C"
33238#endif
33239/* We use char because int might match the return type of a gcc2
33240 builtin and then its argument prototype would still apply. */
33241char esd_close ();
33242int
33243main ()
33244{
33245esd_close ();
33246 ;
33247 return 0;
33248}
33249_ACEOF
33250rm -f conftest.$ac_objext conftest$ac_exeext
33251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33252 (eval $ac_link) 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); } &&
07158944 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_exeext'
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 ac_cv_lib_esd_esd_close=yes
33272else
33273 echo "$as_me: failed program was:" >&5
33274sed 's/^/| /' conftest.$ac_ext >&5
33275
33276ac_cv_lib_esd_esd_close=no
33277fi
ac1cb8d3
VS
33278rm -f conftest.err conftest.$ac_objext \
33279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33280LIBS=$ac_check_lib_save_LIBS
33281fi
33282echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33283echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33284if test $ac_cv_lib_esd_esd_close = yes; then
33285
33286
33287for ac_header in esd.h
33288do
33289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33290if eval "test \"\${$as_ac_Header+set}\" = set"; then
33291 echo "$as_me:$LINENO: checking for $ac_header" >&5
33292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33293if eval "test \"\${$as_ac_Header+set}\" = set"; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33295fi
33296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33298else
33299 # Is the header compilable?
33300echo "$as_me:$LINENO: checking $ac_header usability" >&5
33301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33302cat >conftest.$ac_ext <<_ACEOF
33303/* confdefs.h. */
33304_ACEOF
33305cat confdefs.h >>conftest.$ac_ext
33306cat >>conftest.$ac_ext <<_ACEOF
33307/* end confdefs.h. */
33308$ac_includes_default
33309#include <$ac_header>
33310_ACEOF
33311rm -f conftest.$ac_objext
33312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33313 (eval $ac_compile) 2>conftest.er1
a848cd7e 33314 ac_status=$?
ac1cb8d3
VS
33315 grep -v '^ *+' conftest.er1 >conftest.err
33316 rm -f conftest.er1
33317 cat conftest.err >&5
a848cd7e
SC
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } &&
07158944 33320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322 (eval $ac_try) 2>&5
33323 ac_status=$?
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; } &&
33326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33329 ac_status=$?
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; }; then
33332 ac_header_compiler=yes
33333else
33334 echo "$as_me: failed program was:" >&5
33335sed 's/^/| /' conftest.$ac_ext >&5
33336
33337ac_header_compiler=no
33338fi
ac1cb8d3 33339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33341echo "${ECHO_T}$ac_header_compiler" >&6
33342
33343# Is the header present?
33344echo "$as_me:$LINENO: checking $ac_header presence" >&5
33345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33346cat >conftest.$ac_ext <<_ACEOF
33347/* confdefs.h. */
33348_ACEOF
33349cat confdefs.h >>conftest.$ac_ext
33350cat >>conftest.$ac_ext <<_ACEOF
33351/* end confdefs.h. */
33352#include <$ac_header>
33353_ACEOF
33354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33356 ac_status=$?
33357 grep -v '^ *+' conftest.er1 >conftest.err
33358 rm -f conftest.er1
33359 cat conftest.err >&5
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } >/dev/null; then
33362 if test -s conftest.err; then
33363 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33365 else
33366 ac_cpp_err=
33367 fi
33368else
33369 ac_cpp_err=yes
33370fi
33371if test -z "$ac_cpp_err"; then
33372 ac_header_preproc=yes
33373else
33374 echo "$as_me: failed program was:" >&5
33375sed 's/^/| /' conftest.$ac_ext >&5
33376
33377 ac_header_preproc=no
33378fi
33379rm -f conftest.err conftest.$ac_ext
33380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33381echo "${ECHO_T}$ac_header_preproc" >&6
33382
33383# So? What about this header?
ac1cb8d3
VS
33384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33385 yes:no: )
a848cd7e
SC
33386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33390 ac_header_preproc=yes
a848cd7e 33391 ;;
ac1cb8d3 33392 no:yes:* )
a848cd7e
SC
33393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33405 (
33406 cat <<\_ASBOX
ac1cb8d3
VS
33407## ----------------------------------------- ##
33408## Report this to wx-dev@lists.wxwidgets.org ##
33409## ----------------------------------------- ##
a848cd7e
SC
33410_ASBOX
33411 ) |
33412 sed "s/^/$as_me: WARNING: /" >&2
33413 ;;
33414esac
33415echo "$as_me:$LINENO: checking for $ac_header" >&5
33416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33417if eval "test \"\${$as_ac_Header+set}\" = set"; then
33418 echo $ECHO_N "(cached) $ECHO_C" >&6
33419else
ac1cb8d3 33420 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33421fi
33422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33424
33425fi
33426if test `eval echo '${'$as_ac_Header'}'` = yes; then
33427 cat >>confdefs.h <<_ACEOF
33428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33429_ACEOF
33430
33431 EXTRALIBS_ESD="-lesd"
33432
33433fi
33434
33435done
33436
33437
33438fi
33439
33440
33441
33442echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33443echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33444cat >conftest.$ac_ext <<_ACEOF
33445/* confdefs.h. */
33446_ACEOF
33447cat confdefs.h >>conftest.$ac_ext
33448cat >>conftest.$ac_ext <<_ACEOF
33449/* end confdefs.h. */
33450#ifdef __linux__
33451 #include <linux/cdrom.h>
33452 #else
33453 /* For Solaris */
33454 #include <sys/cdio.h>
33455 #endif
33456
33457int
33458main ()
33459{
33460struct cdrom_tocentry entry, old_entry;
33461 ;
33462 return 0;
33463}
33464_ACEOF
33465rm -f conftest.$ac_objext
33466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33467 (eval $ac_compile) 2>conftest.er1
a848cd7e 33468 ac_status=$?
ac1cb8d3
VS
33469 grep -v '^ *+' conftest.er1 >conftest.err
33470 rm -f conftest.er1
33471 cat conftest.err >&5
a848cd7e
SC
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); } &&
07158944 33474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33476 (eval $ac_try) 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; } &&
33480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33482 (eval $ac_try) 2>&5
33483 ac_status=$?
33484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33485 (exit $ac_status); }; }; then
33486 echo "$as_me:$LINENO: result: yes" >&5
33487echo "${ECHO_T}yes" >&6
33488 cat >>confdefs.h <<\_ACEOF
33489#define HAVE_KNOWN_CDROM_INTERFACE 1
33490_ACEOF
33491
33492else
33493 echo "$as_me: failed program was:" >&5
33494sed 's/^/| /' conftest.$ac_ext >&5
33495
33496echo "$as_me:$LINENO: result: no" >&5
33497echo "${ECHO_T}no" >&6
33498fi
ac1cb8d3 33499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33500
33501
33502cat >confcache <<\_ACEOF
33503# This file is a shell script that caches the results of configure
33504# tests run on this system so they can be shared between configure
33505# scripts and configure runs, see configure's option --config-cache.
33506# It is not useful on other systems. If it contains results you don't
33507# want to keep, you may remove or edit it.
33508#
33509# config.status only pays attention to the cache file if you give it
33510# the --recheck option to rerun configure.
33511#
33512# `ac_cv_env_foo' variables (set or unset) will be overridden when
33513# loading this file, other *unset* `ac_cv_foo' will be assigned the
33514# following values.
33515
33516_ACEOF
33517
33518# The following way of writing the cache mishandles newlines in values,
33519# but we know of no workaround that is simple, portable, and efficient.
33520# So, don't put newlines in cache variables' values.
33521# Ultrix sh set writes to stderr and can't be redirected directly,
33522# and sets the high bit in the cache file unless we assign to the vars.
33523{
33524 (set) 2>&1 |
33525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33526 *ac_space=\ *)
33527 # `set' does not quote correctly, so add quotes (double-quote
33528 # substitution turns \\\\ into \\, and sed turns \\ into \).
33529 sed -n \
ac1cb8d3
VS
33530 "s/'/'\\\\''/g;
33531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33532 ;;
33533 *)
33534 # `set' quotes correctly as required by POSIX, so do not add quotes.
33535 sed -n \
ac1cb8d3 33536 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33537 ;;
33538 esac;
33539} |
33540 sed '
33541 t clear
33542 : clear
33543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33544 t end
33545 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33546 : end' >>confcache
33547if diff $cache_file confcache >/dev/null 2>&1; then :; else
33548 if test -w $cache_file; then
33549 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33550 cat confcache >$cache_file
33551 else
33552 echo "not updating unwritable cache $cache_file"
33553 fi
33554fi
33555rm -f confcache
33556
33557
33558CPP_MT_FLAG=
33559if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33560
33561
33562 THREADS_LINK=
33563 THREADS_CFLAGS=
33564
33565 if test "$wxUSE_THREADS" = "yes" ; then
33566 if test "$USE_BEOS" = 1; then
33567 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33568echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33569 wxUSE_THREADS="no"
33570 fi
33571 fi
33572
33573 if test "$wxUSE_THREADS" = "yes" ; then
33574
33575
33576 THREAD_OPTS="-pthread"
33577 case "${host}" in
33578 *-*-solaris2* | *-*-sunos4* )
33579 if test "x$GCC" = "xyes"; then
33580 THREAD_OPTS="-pthreads $THREAD_OPTS"
33581 else
33582 THREAD_OPTS="-mt $THREAD_OPTS"
33583 fi
33584 ;;
33585 *-*-freebsd*)
33586 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33587 ;;
33588 *-*-darwin* | *-*-cygwin* )
33589 THREAD_OPTS=""
33590 ;;
33591 *-*-aix*)
33592 THREAD_OPTS="pthreads"
33593 ;;
33594 *-hp-hpux* )
33595 if test "x$GCC" != "xyes"; then
33596 THREAD_OPTS=""
33597 fi
33598 ;;
33599
33600 *-*-irix* )
33601 if test "x$GCC" = "xyes"; then
33602 THREAD_OPTS=""
33603 fi
33604 ;;
33605
33606 *-*-*UnixWare*)
33607 if test "x$GCC" != "xyes"; then
33608 THREAD_OPTS="-Ethread"
33609 fi
33610 ;;
33611 esac
33612
33613 THREAD_OPTS="$THREAD_OPTS pthread none"
33614
33615 THREADS_OK=no
33616 for flag in $THREAD_OPTS; do
33617 case $flag in
33618 none)
33619 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33620echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33621 ;;
33622
33623 -*)
33624 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33625echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33626 THREADS_CFLAGS="$flag"
33627 ;;
33628
33629 *)
33630 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33631echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33632 THREADS_LINK="-l$flag"
33633 ;;
33634 esac
33635
33636 save_LIBS="$LIBS"
33637 save_CFLAGS="$CFLAGS"
33638 LIBS="$THREADS_LINK $LIBS"
33639 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33640
33641 cat >conftest.$ac_ext <<_ACEOF
33642/* confdefs.h. */
33643_ACEOF
33644cat confdefs.h >>conftest.$ac_ext
33645cat >>conftest.$ac_ext <<_ACEOF
33646/* end confdefs.h. */
33647#include <pthread.h>
33648int
33649main ()
33650{
33651pthread_create(0,0,0,0);
33652 ;
33653 return 0;
33654}
33655_ACEOF
33656rm -f conftest.$ac_objext conftest$ac_exeext
33657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33658 (eval $ac_link) 2>conftest.er1
a848cd7e 33659 ac_status=$?
ac1cb8d3
VS
33660 grep -v '^ *+' conftest.er1 >conftest.err
33661 rm -f conftest.er1
33662 cat conftest.err >&5
a848cd7e
SC
33663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664 (exit $ac_status); } &&
07158944 33665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33667 (eval $ac_try) 2>&5
33668 ac_status=$?
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); }; } &&
33671 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33673 (eval $ac_try) 2>&5
33674 ac_status=$?
33675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); }; }; then
33677 THREADS_OK=yes
33678else
33679 echo "$as_me: failed program was:" >&5
33680sed 's/^/| /' conftest.$ac_ext >&5
33681
33682fi
ac1cb8d3
VS
33683rm -f conftest.err conftest.$ac_objext \
33684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33685
33686 LIBS="$save_LIBS"
33687 CFLAGS="$save_CFLAGS"
33688
33689 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33690echo "${ECHO_T}$THREADS_OK" >&6
33691 if test "x$THREADS_OK" = "xyes"; then
33692 break;
33693 fi
33694
33695 THREADS_LINK=""
33696 THREADS_CFLAGS=""
33697 done
33698
33699 if test "x$THREADS_OK" != "xyes"; then
33700 wxUSE_THREADS=no
33701 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33702echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33703 else
33704 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33705 LIBS="$THREADS_LINK $LIBS"
33706
33707 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33708echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33709 flag=no
33710 case "${host}" in
33711 *-aix*)
33712 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33713 flag="-D_THREAD_SAFE"
33714 ;;
33715 *-freebsd*)
33716 flag="-D_THREAD_SAFE"
33717 ;;
33718 *-hp-hpux* )
33719 flag="-D_REENTRANT"
33720 if test "x$GCC" != "xyes"; then
33721 flag="$flag -D_RWSTD_MULTI_THREAD"
33722 fi
33723 ;;
33724 *solaris* | alpha*-osf*)
33725 flag="-D_REENTRANT"
33726 ;;
33727 esac
33728 echo "$as_me:$LINENO: result: ${flag}" >&5
33729echo "${ECHO_T}${flag}" >&6
33730 if test "x$flag" != xno; then
33731 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33732 fi
33733
33734 if test "x$THREADS_CFLAGS" != "x"; then
33735 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33736 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33737 fi
33738 fi
33739 fi
33740
33741 if test "$wxUSE_THREADS" = "yes" ; then
33742
33743for ac_func in thr_setconcurrency
33744do
33745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33746echo "$as_me:$LINENO: checking for $ac_func" >&5
33747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33748if eval "test \"\${$as_ac_var+set}\" = set"; then
33749 echo $ECHO_N "(cached) $ECHO_C" >&6
33750else
33751 cat >conftest.$ac_ext <<_ACEOF
33752/* confdefs.h. */
33753_ACEOF
33754cat confdefs.h >>conftest.$ac_ext
33755cat >>conftest.$ac_ext <<_ACEOF
33756/* end confdefs.h. */
ac1cb8d3
VS
33757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33759#define $ac_func innocuous_$ac_func
33760
a848cd7e
SC
33761/* System header to define __stub macros and hopefully few prototypes,
33762 which can conflict with char $ac_func (); below.
33763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33765
a848cd7e
SC
33766#ifdef __STDC__
33767# include <limits.h>
33768#else
33769# include <assert.h>
33770#endif
ac1cb8d3
VS
33771
33772#undef $ac_func
33773
a848cd7e
SC
33774/* Override any gcc2 internal prototype to avoid an error. */
33775#ifdef __cplusplus
33776extern "C"
33777{
33778#endif
33779/* We use char because int might match the return type of a gcc2
33780 builtin and then its argument prototype would still apply. */
33781char $ac_func ();
33782/* The GNU C library defines this for functions which it implements
33783 to always fail with ENOSYS. Some functions are actually named
33784 something starting with __ and the normal name is an alias. */
33785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33786choke me
33787#else
33788char (*f) () = $ac_func;
33789#endif
33790#ifdef __cplusplus
33791}
33792#endif
33793
33794int
33795main ()
33796{
33797return f != $ac_func;
33798 ;
33799 return 0;
33800}
33801_ACEOF
33802rm -f conftest.$ac_objext conftest$ac_exeext
33803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33804 (eval $ac_link) 2>conftest.er1
a848cd7e 33805 ac_status=$?
ac1cb8d3
VS
33806 grep -v '^ *+' conftest.er1 >conftest.err
33807 rm -f conftest.er1
33808 cat conftest.err >&5
a848cd7e
SC
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } &&
07158944 33811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813 (eval $ac_try) 2>&5
33814 ac_status=$?
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); }; } &&
33817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33823 eval "$as_ac_var=yes"
33824else
33825 echo "$as_me: failed program was:" >&5
33826sed 's/^/| /' conftest.$ac_ext >&5
33827
33828eval "$as_ac_var=no"
33829fi
ac1cb8d3
VS
33830rm -f conftest.err conftest.$ac_objext \
33831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33832fi
33833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33835if test `eval echo '${'$as_ac_var'}'` = yes; then
33836 cat >>confdefs.h <<_ACEOF
33837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33838_ACEOF
33839
33840fi
33841done
33842
33843
33844
33845for ac_header in sched.h
33846do
33847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33848if eval "test \"\${$as_ac_Header+set}\" = set"; then
33849 echo "$as_me:$LINENO: checking for $ac_header" >&5
33850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33851if eval "test \"\${$as_ac_Header+set}\" = set"; then
33852 echo $ECHO_N "(cached) $ECHO_C" >&6
33853fi
33854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33856else
33857 # Is the header compilable?
33858echo "$as_me:$LINENO: checking $ac_header usability" >&5
33859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33860cat >conftest.$ac_ext <<_ACEOF
33861/* confdefs.h. */
33862_ACEOF
33863cat confdefs.h >>conftest.$ac_ext
33864cat >>conftest.$ac_ext <<_ACEOF
33865/* end confdefs.h. */
33866$ac_includes_default
33867#include <$ac_header>
33868_ACEOF
33869rm -f conftest.$ac_objext
33870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33871 (eval $ac_compile) 2>conftest.er1
a848cd7e 33872 ac_status=$?
ac1cb8d3
VS
33873 grep -v '^ *+' conftest.er1 >conftest.err
33874 rm -f conftest.er1
33875 cat conftest.err >&5
a848cd7e
SC
33876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877 (exit $ac_status); } &&
07158944 33878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880 (eval $ac_try) 2>&5
33881 ac_status=$?
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); }; } &&
33884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33886 (eval $ac_try) 2>&5
33887 ac_status=$?
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
33890 ac_header_compiler=yes
33891else
33892 echo "$as_me: failed program was:" >&5
33893sed 's/^/| /' conftest.$ac_ext >&5
33894
33895ac_header_compiler=no
33896fi
ac1cb8d3 33897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33899echo "${ECHO_T}$ac_header_compiler" >&6
33900
33901# Is the header present?
33902echo "$as_me:$LINENO: checking $ac_header presence" >&5
33903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33904cat >conftest.$ac_ext <<_ACEOF
33905/* confdefs.h. */
33906_ACEOF
33907cat confdefs.h >>conftest.$ac_ext
33908cat >>conftest.$ac_ext <<_ACEOF
33909/* end confdefs.h. */
33910#include <$ac_header>
33911_ACEOF
33912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33914 ac_status=$?
33915 grep -v '^ *+' conftest.er1 >conftest.err
33916 rm -f conftest.er1
33917 cat conftest.err >&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); } >/dev/null; then
33920 if test -s conftest.err; then
33921 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33923 else
33924 ac_cpp_err=
33925 fi
33926else
33927 ac_cpp_err=yes
33928fi
33929if test -z "$ac_cpp_err"; then
33930 ac_header_preproc=yes
33931else
33932 echo "$as_me: failed program was:" >&5
33933sed 's/^/| /' conftest.$ac_ext >&5
33934
33935 ac_header_preproc=no
33936fi
33937rm -f conftest.err conftest.$ac_ext
33938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33939echo "${ECHO_T}$ac_header_preproc" >&6
33940
33941# So? What about this header?
ac1cb8d3
VS
33942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33943 yes:no: )
a848cd7e
SC
33944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33948 ac_header_preproc=yes
a848cd7e 33949 ;;
ac1cb8d3 33950 no:yes:* )
a848cd7e
SC
33951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33954echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33958echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33963 (
33964 cat <<\_ASBOX
ac1cb8d3
VS
33965## ----------------------------------------- ##
33966## Report this to wx-dev@lists.wxwidgets.org ##
33967## ----------------------------------------- ##
a848cd7e
SC
33968_ASBOX
33969 ) |
33970 sed "s/^/$as_me: WARNING: /" >&2
33971 ;;
33972esac
33973echo "$as_me:$LINENO: checking for $ac_header" >&5
33974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33975if eval "test \"\${$as_ac_Header+set}\" = set"; then
33976 echo $ECHO_N "(cached) $ECHO_C" >&6
33977else
ac1cb8d3 33978 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33979fi
33980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33982
33983fi
33984if test `eval echo '${'$as_ac_Header'}'` = yes; then
33985 cat >>confdefs.h <<_ACEOF
33986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33987_ACEOF
33988
33989fi
33990
33991done
33992
33993 if test "$ac_cv_header_sched_h" = "yes"; then
33994 echo "$as_me:$LINENO: checking for sched_yield" >&5
33995echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33996if test "${ac_cv_func_sched_yield+set}" = set; then
33997 echo $ECHO_N "(cached) $ECHO_C" >&6
33998else
33999 cat >conftest.$ac_ext <<_ACEOF
34000/* confdefs.h. */
34001_ACEOF
34002cat confdefs.h >>conftest.$ac_ext
34003cat >>conftest.$ac_ext <<_ACEOF
34004/* end confdefs.h. */
ac1cb8d3
VS
34005/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34007#define sched_yield innocuous_sched_yield
34008
a848cd7e
SC
34009/* System header to define __stub macros and hopefully few prototypes,
34010 which can conflict with char sched_yield (); below.
34011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34012 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34013
a848cd7e
SC
34014#ifdef __STDC__
34015# include <limits.h>
34016#else
34017# include <assert.h>
34018#endif
ac1cb8d3
VS
34019
34020#undef sched_yield
34021
a848cd7e
SC
34022/* Override any gcc2 internal prototype to avoid an error. */
34023#ifdef __cplusplus
34024extern "C"
34025{
34026#endif
34027/* We use char because int might match the return type of a gcc2
34028 builtin and then its argument prototype would still apply. */
34029char sched_yield ();
34030/* The GNU C library defines this for functions which it implements
34031 to always fail with ENOSYS. Some functions are actually named
34032 something starting with __ and the normal name is an alias. */
34033#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34034choke me
34035#else
34036char (*f) () = sched_yield;
34037#endif
34038#ifdef __cplusplus
34039}
34040#endif
34041
34042int
34043main ()
34044{
34045return f != sched_yield;
34046 ;
34047 return 0;
34048}
34049_ACEOF
34050rm -f conftest.$ac_objext conftest$ac_exeext
34051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34052 (eval $ac_link) 2>conftest.er1
a848cd7e 34053 ac_status=$?
ac1cb8d3
VS
34054 grep -v '^ *+' conftest.er1 >conftest.err
34055 rm -f conftest.er1
34056 cat conftest.err >&5
a848cd7e
SC
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); } &&
07158944 34059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061 (eval $ac_try) 2>&5
34062 ac_status=$?
34063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064 (exit $ac_status); }; } &&
34065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34067 (eval $ac_try) 2>&5
34068 ac_status=$?
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); }; }; then
34071 ac_cv_func_sched_yield=yes
34072else
34073 echo "$as_me: failed program was:" >&5
34074sed 's/^/| /' conftest.$ac_ext >&5
34075
34076ac_cv_func_sched_yield=no
34077fi
ac1cb8d3
VS
34078rm -f conftest.err conftest.$ac_objext \
34079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34080fi
34081echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34082echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34083if test $ac_cv_func_sched_yield = yes; then
34084 cat >>confdefs.h <<\_ACEOF
34085#define HAVE_SCHED_YIELD 1
34086_ACEOF
34087
34088else
34089
34090 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34091echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34092if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34093 echo $ECHO_N "(cached) $ECHO_C" >&6
34094else
34095 ac_check_lib_save_LIBS=$LIBS
34096LIBS="-lposix4 $LIBS"
34097cat >conftest.$ac_ext <<_ACEOF
34098/* confdefs.h. */
34099_ACEOF
34100cat confdefs.h >>conftest.$ac_ext
34101cat >>conftest.$ac_ext <<_ACEOF
34102/* end confdefs.h. */
34103
34104/* Override any gcc2 internal prototype to avoid an error. */
34105#ifdef __cplusplus
34106extern "C"
34107#endif
34108/* We use char because int might match the return type of a gcc2
34109 builtin and then its argument prototype would still apply. */
34110char sched_yield ();
34111int
34112main ()
34113{
34114sched_yield ();
34115 ;
34116 return 0;
34117}
34118_ACEOF
34119rm -f conftest.$ac_objext conftest$ac_exeext
34120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34121 (eval $ac_link) 2>conftest.er1
a848cd7e 34122 ac_status=$?
ac1cb8d3
VS
34123 grep -v '^ *+' conftest.er1 >conftest.err
34124 rm -f conftest.er1
34125 cat conftest.err >&5
a848cd7e
SC
34126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127 (exit $ac_status); } &&
07158944 34128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34130 (eval $ac_try) 2>&5
34131 ac_status=$?
34132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133 (exit $ac_status); }; } &&
34134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34136 (eval $ac_try) 2>&5
34137 ac_status=$?
34138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139 (exit $ac_status); }; }; then
34140 ac_cv_lib_posix4_sched_yield=yes
34141else
34142 echo "$as_me: failed program was:" >&5
34143sed 's/^/| /' conftest.$ac_ext >&5
34144
34145ac_cv_lib_posix4_sched_yield=no
34146fi
ac1cb8d3
VS
34147rm -f conftest.err conftest.$ac_objext \
34148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34149LIBS=$ac_check_lib_save_LIBS
34150fi
34151echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34152echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34153if test $ac_cv_lib_posix4_sched_yield = yes; then
34154 cat >>confdefs.h <<\_ACEOF
34155#define HAVE_SCHED_YIELD 1
34156_ACEOF
34157 POSIX4_LINK=" -lposix4"
34158else
34159 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34160echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34161
34162fi
34163
34164
34165
34166fi
34167
34168 fi
34169
34170 HAVE_PRIOR_FUNCS=0
34171 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34172echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34173if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
34175else
34176 cat >conftest.$ac_ext <<_ACEOF
34177/* confdefs.h. */
34178_ACEOF
34179cat confdefs.h >>conftest.$ac_ext
34180cat >>conftest.$ac_ext <<_ACEOF
34181/* end confdefs.h. */
ac1cb8d3
VS
34182/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34184#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34185
a848cd7e
SC
34186/* System header to define __stub macros and hopefully few prototypes,
34187 which can conflict with char pthread_attr_getschedpolicy (); below.
34188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34189 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34190
a848cd7e
SC
34191#ifdef __STDC__
34192# include <limits.h>
34193#else
34194# include <assert.h>
34195#endif
ac1cb8d3
VS
34196
34197#undef pthread_attr_getschedpolicy
34198
a848cd7e
SC
34199/* Override any gcc2 internal prototype to avoid an error. */
34200#ifdef __cplusplus
34201extern "C"
34202{
34203#endif
34204/* We use char because int might match the return type of a gcc2
34205 builtin and then its argument prototype would still apply. */
34206char pthread_attr_getschedpolicy ();
34207/* The GNU C library defines this for functions which it implements
34208 to always fail with ENOSYS. Some functions are actually named
34209 something starting with __ and the normal name is an alias. */
34210#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34211choke me
34212#else
34213char (*f) () = pthread_attr_getschedpolicy;
34214#endif
34215#ifdef __cplusplus
34216}
34217#endif
34218
34219int
34220main ()
34221{
34222return f != pthread_attr_getschedpolicy;
34223 ;
34224 return 0;
34225}
34226_ACEOF
34227rm -f conftest.$ac_objext conftest$ac_exeext
34228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34229 (eval $ac_link) 2>conftest.er1
a848cd7e 34230 ac_status=$?
ac1cb8d3
VS
34231 grep -v '^ *+' conftest.er1 >conftest.err
34232 rm -f conftest.er1
34233 cat conftest.err >&5
a848cd7e
SC
34234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235 (exit $ac_status); } &&
07158944 34236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34238 (eval $ac_try) 2>&5
34239 ac_status=$?
34240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 (exit $ac_status); }; } &&
34242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34244 (eval $ac_try) 2>&5
34245 ac_status=$?
34246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34247 (exit $ac_status); }; }; then
34248 ac_cv_func_pthread_attr_getschedpolicy=yes
34249else
34250 echo "$as_me: failed program was:" >&5
34251sed 's/^/| /' conftest.$ac_ext >&5
34252
34253ac_cv_func_pthread_attr_getschedpolicy=no
34254fi
ac1cb8d3
VS
34255rm -f conftest.err conftest.$ac_objext \
34256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34257fi
34258echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34259echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34260if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34261 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34262echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34263if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34264 echo $ECHO_N "(cached) $ECHO_C" >&6
34265else
34266 cat >conftest.$ac_ext <<_ACEOF
34267/* confdefs.h. */
34268_ACEOF
34269cat confdefs.h >>conftest.$ac_ext
34270cat >>conftest.$ac_ext <<_ACEOF
34271/* end confdefs.h. */
ac1cb8d3
VS
34272/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34274#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34275
a848cd7e
SC
34276/* System header to define __stub macros and hopefully few prototypes,
34277 which can conflict with char pthread_attr_setschedparam (); below.
34278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34279 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34280
a848cd7e
SC
34281#ifdef __STDC__
34282# include <limits.h>
34283#else
34284# include <assert.h>
34285#endif
ac1cb8d3
VS
34286
34287#undef pthread_attr_setschedparam
34288
a848cd7e
SC
34289/* Override any gcc2 internal prototype to avoid an error. */
34290#ifdef __cplusplus
34291extern "C"
34292{
34293#endif
34294/* We use char because int might match the return type of a gcc2
34295 builtin and then its argument prototype would still apply. */
34296char pthread_attr_setschedparam ();
34297/* The GNU C library defines this for functions which it implements
34298 to always fail with ENOSYS. Some functions are actually named
34299 something starting with __ and the normal name is an alias. */
34300#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34301choke me
34302#else
34303char (*f) () = pthread_attr_setschedparam;
34304#endif
34305#ifdef __cplusplus
34306}
34307#endif
34308
34309int
34310main ()
34311{
34312return f != pthread_attr_setschedparam;
34313 ;
34314 return 0;
34315}
34316_ACEOF
34317rm -f conftest.$ac_objext conftest$ac_exeext
34318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34319 (eval $ac_link) 2>conftest.er1
a848cd7e 34320 ac_status=$?
ac1cb8d3
VS
34321 grep -v '^ *+' conftest.er1 >conftest.err
34322 rm -f conftest.er1
34323 cat conftest.err >&5
a848cd7e
SC
34324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325 (exit $ac_status); } &&
07158944 34326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34329 ac_status=$?
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; } &&
34332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334 (eval $ac_try) 2>&5
34335 ac_status=$?
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); }; }; then
34338 ac_cv_func_pthread_attr_setschedparam=yes
34339else
34340 echo "$as_me: failed program was:" >&5
34341sed 's/^/| /' conftest.$ac_ext >&5
34342
34343ac_cv_func_pthread_attr_setschedparam=no
34344fi
ac1cb8d3
VS
34345rm -f conftest.err conftest.$ac_objext \
34346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34347fi
34348echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34349echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34350if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34351 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34352echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34353if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34354 echo $ECHO_N "(cached) $ECHO_C" >&6
34355else
34356 cat >conftest.$ac_ext <<_ACEOF
34357/* confdefs.h. */
34358_ACEOF
34359cat confdefs.h >>conftest.$ac_ext
34360cat >>conftest.$ac_ext <<_ACEOF
34361/* end confdefs.h. */
ac1cb8d3
VS
34362/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34364#define sched_get_priority_max innocuous_sched_get_priority_max
34365
a848cd7e
SC
34366/* System header to define __stub macros and hopefully few prototypes,
34367 which can conflict with char sched_get_priority_max (); below.
34368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34369 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34370
a848cd7e
SC
34371#ifdef __STDC__
34372# include <limits.h>
34373#else
34374# include <assert.h>
34375#endif
ac1cb8d3
VS
34376
34377#undef sched_get_priority_max
34378
a848cd7e
SC
34379/* Override any gcc2 internal prototype to avoid an error. */
34380#ifdef __cplusplus
34381extern "C"
34382{
34383#endif
34384/* We use char because int might match the return type of a gcc2
34385 builtin and then its argument prototype would still apply. */
34386char sched_get_priority_max ();
34387/* The GNU C library defines this for functions which it implements
34388 to always fail with ENOSYS. Some functions are actually named
34389 something starting with __ and the normal name is an alias. */
34390#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34391choke me
34392#else
34393char (*f) () = sched_get_priority_max;
34394#endif
34395#ifdef __cplusplus
34396}
34397#endif
34398
34399int
34400main ()
34401{
34402return f != sched_get_priority_max;
34403 ;
34404 return 0;
34405}
34406_ACEOF
34407rm -f conftest.$ac_objext conftest$ac_exeext
34408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34409 (eval $ac_link) 2>conftest.er1
a848cd7e 34410 ac_status=$?
ac1cb8d3
VS
34411 grep -v '^ *+' conftest.er1 >conftest.err
34412 rm -f conftest.er1
34413 cat conftest.err >&5
a848cd7e
SC
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); } &&
07158944 34416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34418 (eval $ac_try) 2>&5
34419 ac_status=$?
34420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421 (exit $ac_status); }; } &&
34422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34424 (eval $ac_try) 2>&5
34425 ac_status=$?
34426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427 (exit $ac_status); }; }; then
34428 ac_cv_func_sched_get_priority_max=yes
34429else
34430 echo "$as_me: failed program was:" >&5
34431sed 's/^/| /' conftest.$ac_ext >&5
34432
34433ac_cv_func_sched_get_priority_max=no
34434fi
ac1cb8d3
VS
34435rm -f conftest.err conftest.$ac_objext \
34436 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34437fi
34438echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34439echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34440if test $ac_cv_func_sched_get_priority_max = yes; then
34441 HAVE_PRIOR_FUNCS=1
34442else
34443 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34444echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34445if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34446 echo $ECHO_N "(cached) $ECHO_C" >&6
34447else
34448 ac_check_lib_save_LIBS=$LIBS
34449LIBS="-lposix4 $LIBS"
34450cat >conftest.$ac_ext <<_ACEOF
34451/* confdefs.h. */
34452_ACEOF
34453cat confdefs.h >>conftest.$ac_ext
34454cat >>conftest.$ac_ext <<_ACEOF
34455/* end confdefs.h. */
34456
34457/* Override any gcc2 internal prototype to avoid an error. */
34458#ifdef __cplusplus
34459extern "C"
34460#endif
34461/* We use char because int might match the return type of a gcc2
34462 builtin and then its argument prototype would still apply. */
34463char sched_get_priority_max ();
34464int
34465main ()
34466{
34467sched_get_priority_max ();
34468 ;
34469 return 0;
34470}
34471_ACEOF
34472rm -f conftest.$ac_objext conftest$ac_exeext
34473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34474 (eval $ac_link) 2>conftest.er1
a848cd7e 34475 ac_status=$?
ac1cb8d3
VS
34476 grep -v '^ *+' conftest.er1 >conftest.err
34477 rm -f conftest.er1
34478 cat conftest.err >&5
a848cd7e
SC
34479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480 (exit $ac_status); } &&
07158944 34481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34483 (eval $ac_try) 2>&5
34484 ac_status=$?
34485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486 (exit $ac_status); }; } &&
34487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34489 (eval $ac_try) 2>&5
34490 ac_status=$?
34491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492 (exit $ac_status); }; }; then
34493 ac_cv_lib_posix4_sched_get_priority_max=yes
34494else
34495 echo "$as_me: failed program was:" >&5
34496sed 's/^/| /' conftest.$ac_ext >&5
34497
34498ac_cv_lib_posix4_sched_get_priority_max=no
34499fi
ac1cb8d3
VS
34500rm -f conftest.err conftest.$ac_objext \
34501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34502LIBS=$ac_check_lib_save_LIBS
34503fi
34504echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34505echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34506if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34507
34508 HAVE_PRIOR_FUNCS=1
34509 POSIX4_LINK=" -lposix4"
34510
34511fi
34512
34513
34514fi
34515
34516
34517fi
34518
34519
34520fi
34521
34522
34523 if test "$HAVE_PRIOR_FUNCS" = 1; then
34524 cat >>confdefs.h <<\_ACEOF
34525#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34526_ACEOF
34527
34528 else
34529 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34530echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34531 fi
34532
34533 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34534echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34535if test "${ac_cv_func_pthread_cancel+set}" = set; then
34536 echo $ECHO_N "(cached) $ECHO_C" >&6
34537else
34538 cat >conftest.$ac_ext <<_ACEOF
34539/* confdefs.h. */
34540_ACEOF
34541cat confdefs.h >>conftest.$ac_ext
34542cat >>conftest.$ac_ext <<_ACEOF
34543/* end confdefs.h. */
ac1cb8d3
VS
34544/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34546#define pthread_cancel innocuous_pthread_cancel
34547
a848cd7e
SC
34548/* System header to define __stub macros and hopefully few prototypes,
34549 which can conflict with char pthread_cancel (); below.
34550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34551 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34552
a848cd7e
SC
34553#ifdef __STDC__
34554# include <limits.h>
34555#else
34556# include <assert.h>
34557#endif
ac1cb8d3
VS
34558
34559#undef pthread_cancel
34560
a848cd7e
SC
34561/* Override any gcc2 internal prototype to avoid an error. */
34562#ifdef __cplusplus
34563extern "C"
34564{
34565#endif
34566/* We use char because int might match the return type of a gcc2
34567 builtin and then its argument prototype would still apply. */
34568char pthread_cancel ();
34569/* The GNU C library defines this for functions which it implements
34570 to always fail with ENOSYS. Some functions are actually named
34571 something starting with __ and the normal name is an alias. */
34572#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34573choke me
34574#else
34575char (*f) () = pthread_cancel;
34576#endif
34577#ifdef __cplusplus
34578}
34579#endif
34580
34581int
34582main ()
34583{
34584return f != pthread_cancel;
34585 ;
34586 return 0;
34587}
34588_ACEOF
34589rm -f conftest.$ac_objext conftest$ac_exeext
34590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34591 (eval $ac_link) 2>conftest.er1
a848cd7e 34592 ac_status=$?
ac1cb8d3
VS
34593 grep -v '^ *+' conftest.er1 >conftest.err
34594 rm -f conftest.er1
34595 cat conftest.err >&5
a848cd7e
SC
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); } &&
07158944 34598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34600 (eval $ac_try) 2>&5
34601 ac_status=$?
34602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603 (exit $ac_status); }; } &&
34604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34606 (eval $ac_try) 2>&5
34607 ac_status=$?
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); }; }; then
34610 ac_cv_func_pthread_cancel=yes
34611else
34612 echo "$as_me: failed program was:" >&5
34613sed 's/^/| /' conftest.$ac_ext >&5
34614
34615ac_cv_func_pthread_cancel=no
34616fi
ac1cb8d3
VS
34617rm -f conftest.err conftest.$ac_objext \
34618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34619fi
34620echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34621echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34622if test $ac_cv_func_pthread_cancel = yes; then
34623 cat >>confdefs.h <<\_ACEOF
34624#define HAVE_PTHREAD_CANCEL 1
34625_ACEOF
34626
34627else
34628 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34629echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34630fi
34631
34632
34633
34634
34635 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34636echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34637if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34638 echo $ECHO_N "(cached) $ECHO_C" >&6
34639else
34640
34641 cat >conftest.$ac_ext <<_ACEOF
34642/* confdefs.h. */
34643_ACEOF
34644cat confdefs.h >>conftest.$ac_ext
34645cat >>conftest.$ac_ext <<_ACEOF
34646/* end confdefs.h. */
34647#include <pthread.h>
34648int
34649main ()
34650{
34651
34652 pthread_mutexattr_t attr;
34653 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34654
34655 ;
34656 return 0;
34657}
34658_ACEOF
34659rm -f conftest.$ac_objext
34660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34661 (eval $ac_compile) 2>conftest.er1
a848cd7e 34662 ac_status=$?
ac1cb8d3
VS
34663 grep -v '^ *+' conftest.er1 >conftest.err
34664 rm -f conftest.er1
34665 cat conftest.err >&5
a848cd7e
SC
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); } &&
07158944 34668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34670 (eval $ac_try) 2>&5
34671 ac_status=$?
34672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673 (exit $ac_status); }; } &&
34674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34676 (eval $ac_try) 2>&5
34677 ac_status=$?
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); }; }; then
34680
34681 wx_cv_type_pthread_mutexattr_t=yes
34682
34683else
34684 echo "$as_me: failed program was:" >&5
34685sed 's/^/| /' conftest.$ac_ext >&5
34686
34687
34688 wx_cv_type_pthread_mutexattr_t=no
34689
34690
34691fi
ac1cb8d3 34692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34693
34694fi
34695echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34696echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34697
34698 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34699 cat >>confdefs.h <<\_ACEOF
34700#define HAVE_PTHREAD_MUTEXATTR_T 1
34701_ACEOF
34702
34703 else
34704 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34705echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34706if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34707 echo $ECHO_N "(cached) $ECHO_C" >&6
34708else
34709
34710 cat >conftest.$ac_ext <<_ACEOF
34711/* confdefs.h. */
34712_ACEOF
34713cat confdefs.h >>conftest.$ac_ext
34714cat >>conftest.$ac_ext <<_ACEOF
34715/* end confdefs.h. */
34716#include <pthread.h>
34717int
34718main ()
34719{
34720
34721 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34722
34723 ;
34724 return 0;
34725}
34726_ACEOF
34727rm -f conftest.$ac_objext
34728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34729 (eval $ac_compile) 2>conftest.er1
a848cd7e 34730 ac_status=$?
ac1cb8d3
VS
34731 grep -v '^ *+' conftest.er1 >conftest.err
34732 rm -f conftest.er1
34733 cat conftest.err >&5
a848cd7e
SC
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); } &&
07158944 34736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34738 (eval $ac_try) 2>&5
34739 ac_status=$?
34740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741 (exit $ac_status); }; } &&
34742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34744 (eval $ac_try) 2>&5
34745 ac_status=$?
34746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); }; }; then
34748
34749 wx_cv_type_pthread_rec_mutex_init=yes
34750
34751else
34752 echo "$as_me: failed program was:" >&5
34753sed 's/^/| /' conftest.$ac_ext >&5
34754
34755
34756 wx_cv_type_pthread_rec_mutex_init=no
34757
34758
34759fi
ac1cb8d3 34760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34761
34762fi
34763echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34764echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34765 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34766 cat >>confdefs.h <<\_ACEOF
34767#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34768_ACEOF
34769
34770 else
34771 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34772echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34773 fi
34774 fi
34775 fi
34776
34777else
34778 if test "$wxUSE_THREADS" = "yes" ; then
34779 case "${host}" in
34780 *-*-mingw32* )
34781 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34782echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34783if test "${wx_cv_cflags_mthread+set}" = set; then
34784 echo $ECHO_N "(cached) $ECHO_C" >&6
34785else
34786
34787 CFLAGS_OLD="$CFLAGS"
34788 CFLAGS="$CFLAGS -mthreads"
34789 cat >conftest.$ac_ext <<_ACEOF
34790/* confdefs.h. */
34791_ACEOF
34792cat confdefs.h >>conftest.$ac_ext
34793cat >>conftest.$ac_ext <<_ACEOF
34794/* end confdefs.h. */
34795
34796int
34797main ()
34798{
34799
34800 ;
34801 return 0;
34802}
34803_ACEOF
34804rm -f conftest.$ac_objext
34805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34806 (eval $ac_compile) 2>conftest.er1
a848cd7e 34807 ac_status=$?
ac1cb8d3
VS
34808 grep -v '^ *+' conftest.er1 >conftest.err
34809 rm -f conftest.er1
34810 cat conftest.err >&5
a848cd7e
SC
34811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812 (exit $ac_status); } &&
07158944 34813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34815 (eval $ac_try) 2>&5
34816 ac_status=$?
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; } &&
34819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34821 (eval $ac_try) 2>&5
34822 ac_status=$?
34823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); }; }; then
34825 wx_cv_cflags_mthread=yes
34826else
34827 echo "$as_me: failed program was:" >&5
34828sed 's/^/| /' conftest.$ac_ext >&5
34829
34830wx_cv_cflags_mthread=no
34831
34832fi
ac1cb8d3 34833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34834
34835
34836fi
34837echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34838echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34839
34840 if test "$wx_cv_cflags_mthread" = "yes"; then
34841 CXXFLAGS="$CXXFLAGS -mthreads"
34842 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34843 LDFLAGS="$LDFLAGS -mthreads"
34844 else
34845 CFLAGS="$CFLAGS_OLD"
34846 fi
34847 ;;
34848 *-pc-os2*emx )
34849 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34850 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34851 LDFLAGS="$LDFLAGS -Zmt"
34852 ;;
34853 esac
34854 fi
34855fi
34856
34857if test "$wxUSE_THREADS" = "yes"; then
34858 cat >>confdefs.h <<\_ACEOF
34859#define wxUSE_THREADS 1
34860_ACEOF
34861
34862
34863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34864else
34865 if test "$ac_cv_func_strtok_r" = "yes"; then
34866 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34867echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34868 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34869 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34870 echo "$as_me:$LINENO: result: yes" >&5
34871echo "${ECHO_T}yes" >&6
34872 else
34873 echo "$as_me:$LINENO: result: no" >&5
34874echo "${ECHO_T}no" >&6
34875 fi
34876 fi
34877fi
34878
34879if test "$WXGTK20" = 1 ; then
34880 cat >>confdefs.h <<_ACEOF
34881#define __WXGTK20__ $WXGTK20
34882_ACEOF
34883
34884 WXGTK12=1
34885fi
34886
34887if test "$WXGTK12" = 1 ; then
34888 cat >>confdefs.h <<_ACEOF
34889#define __WXGTK12__ $WXGTK12
34890_ACEOF
34891
34892fi
34893
34894if test "$WXGTK127" = 1 ; then
34895 cat >>confdefs.h <<_ACEOF
34896#define __WXGTK127__ $WXGTK127
34897_ACEOF
34898
34899fi
34900
34901if test "$WXGPE" = 1 ; then
34902 cat >>confdefs.h <<_ACEOF
34903#define __WXGPE__ $WXGPE
34904_ACEOF
34905
34906fi
34907
34908WXDEBUG=
34909
34910if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34911 WXDEBUG="-g"
34912 wxUSE_OPTIMISE=no
34913fi
34914
34915if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34916 wxUSE_DEBUG_INFO=yes
34917 WXDEBUG="-ggdb"
34918fi
34919
34920if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34921 cat >>confdefs.h <<\_ACEOF
34922#define WXDEBUG 1
34923_ACEOF
34924
34925 WXDEBUG_DEFINE="-D__WXDEBUG__"
34926else
34927 if test "$wxUSE_GTK" = 1 ; then
34928 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34929 fi
34930fi
34931
34932if test "$wxUSE_MEM_TRACING" = "yes" ; then
34933 cat >>confdefs.h <<\_ACEOF
34934#define wxUSE_MEMORY_TRACING 1
34935_ACEOF
34936
34937 cat >>confdefs.h <<\_ACEOF
34938#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34939_ACEOF
34940
34941 cat >>confdefs.h <<\_ACEOF
34942#define wxUSE_DEBUG_NEW_ALWAYS 1
34943_ACEOF
34944
34945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34946fi
34947
34948if test "$wxUSE_DMALLOC" = "yes" ; then
34949 DMALLOC_LIBS="-ldmalloc"
34950fi
34951
34952PROFILE=
34953if test "$wxUSE_PROFILE" = "yes" ; then
34954 PROFILE=" -pg"
34955fi
34956
34957CODE_GEN_FLAGS=
34958CODE_GEN_FLAGS_CXX=
34959if test "$GCC" = "yes" ; then
34960 if test "$wxUSE_NO_RTTI" = "yes" ; then
34961 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34962 fi
34963 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34964 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34965 fi
34966 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34967 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34968 fi
34969
34970 case "${host}" in
34971 powerpc*-*-aix* )
34972 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34973 ;;
34974 *-hppa* )
34975 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34976 ;;
34977 esac
34978fi
34979
34980OPTIMISE=
34981if test "$wxUSE_OPTIMISE" = "no" ; then
34982 if test "$GCC" = yes ; then
34983 OPTIMISE="-O0"
34984 fi
34985else
34986 if test "$GCC" = yes ; then
34987 OPTIMISE="-O2"
34988
34989 case "${host}" in
34990 i586-*-*|i686-*-* )
34991 OPTIMISE="${OPTIMISE} "
34992 ;;
34993 esac
34994 else
34995 OPTIMISE="-O"
34996 fi
34997fi
34998
34999
35000if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35001 cat >>confdefs.h <<\_ACEOF
35002#define WXWIN_COMPATIBILITY_2_2 1
35003_ACEOF
35004
35005
35006 WXWIN_COMPATIBILITY_2_4="yes"
35007fi
35008
35009if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35010 cat >>confdefs.h <<\_ACEOF
35011#define WXWIN_COMPATIBILITY_2_4 1
35012_ACEOF
35013
35014fi
35015
35016
35017if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35018 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35019#define wxUSE_GUI 1
35020_ACEOF
35021
35022
370fd4c2 35023 fi
a848cd7e
SC
35024
35025
35026if test "$wxUSE_UNIX" = "yes"; then
35027 cat >>confdefs.h <<\_ACEOF
35028#define wxUSE_UNIX 1
35029_ACEOF
35030
35031fi
35032
35033
35034if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35035
35036 HAVE_DL_FUNCS=0
35037 HAVE_SHL_FUNCS=0
35038 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35039 if test "$USE_DARWIN" = 1; then
35040 HAVE_DL_FUNCS=1
35041 else
35042
35043for ac_func in dlopen
35044do
35045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35046echo "$as_me:$LINENO: checking for $ac_func" >&5
35047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35048if eval "test \"\${$as_ac_var+set}\" = set"; then
35049 echo $ECHO_N "(cached) $ECHO_C" >&6
35050else
35051 cat >conftest.$ac_ext <<_ACEOF
35052/* confdefs.h. */
35053_ACEOF
35054cat confdefs.h >>conftest.$ac_ext
35055cat >>conftest.$ac_ext <<_ACEOF
35056/* end confdefs.h. */
ac1cb8d3
VS
35057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35059#define $ac_func innocuous_$ac_func
35060
a848cd7e
SC
35061/* System header to define __stub macros and hopefully few prototypes,
35062 which can conflict with char $ac_func (); below.
35063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35064 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35065
a848cd7e
SC
35066#ifdef __STDC__
35067# include <limits.h>
35068#else
35069# include <assert.h>
35070#endif
ac1cb8d3
VS
35071
35072#undef $ac_func
35073
a848cd7e
SC
35074/* Override any gcc2 internal prototype to avoid an error. */
35075#ifdef __cplusplus
35076extern "C"
35077{
35078#endif
35079/* We use char because int might match the return type of a gcc2
35080 builtin and then its argument prototype would still apply. */
35081char $ac_func ();
35082/* The GNU C library defines this for functions which it implements
35083 to always fail with ENOSYS. Some functions are actually named
35084 something starting with __ and the normal name is an alias. */
35085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35086choke me
35087#else
35088char (*f) () = $ac_func;
35089#endif
35090#ifdef __cplusplus
35091}
35092#endif
35093
35094int
35095main ()
35096{
35097return f != $ac_func;
35098 ;
35099 return 0;
35100}
35101_ACEOF
35102rm -f conftest.$ac_objext conftest$ac_exeext
35103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35104 (eval $ac_link) 2>conftest.er1
a848cd7e 35105 ac_status=$?
ac1cb8d3
VS
35106 grep -v '^ *+' conftest.er1 >conftest.err
35107 rm -f conftest.er1
35108 cat conftest.err >&5
a848cd7e
SC
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } &&
07158944 35111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; } &&
35117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; }; then
35123 eval "$as_ac_var=yes"
35124else
35125 echo "$as_me: failed program was:" >&5
35126sed 's/^/| /' conftest.$ac_ext >&5
35127
35128eval "$as_ac_var=no"
35129fi
ac1cb8d3
VS
35130rm -f conftest.err conftest.$ac_objext \
35131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35132fi
35133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35135if test `eval echo '${'$as_ac_var'}'` = yes; then
35136 cat >>confdefs.h <<_ACEOF
35137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35138_ACEOF
35139
35140 cat >>confdefs.h <<\_ACEOF
35141#define HAVE_DLOPEN 1
35142_ACEOF
35143
35144 HAVE_DL_FUNCS=1
35145
35146else
35147
35148 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35149echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35150if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35151 echo $ECHO_N "(cached) $ECHO_C" >&6
35152else
35153 ac_check_lib_save_LIBS=$LIBS
35154LIBS="-ldl $LIBS"
35155cat >conftest.$ac_ext <<_ACEOF
35156/* confdefs.h. */
35157_ACEOF
35158cat confdefs.h >>conftest.$ac_ext
35159cat >>conftest.$ac_ext <<_ACEOF
35160/* end confdefs.h. */
35161
35162/* Override any gcc2 internal prototype to avoid an error. */
35163#ifdef __cplusplus
35164extern "C"
35165#endif
35166/* We use char because int might match the return type of a gcc2
35167 builtin and then its argument prototype would still apply. */
35168char dlopen ();
35169int
35170main ()
35171{
35172dlopen ();
35173 ;
35174 return 0;
35175}
35176_ACEOF
35177rm -f conftest.$ac_objext conftest$ac_exeext
35178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35179 (eval $ac_link) 2>conftest.er1
a848cd7e 35180 ac_status=$?
ac1cb8d3
VS
35181 grep -v '^ *+' conftest.er1 >conftest.err
35182 rm -f conftest.er1
35183 cat conftest.err >&5
a848cd7e
SC
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); } &&
07158944 35186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35188 (eval $ac_try) 2>&5
35189 ac_status=$?
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); }; } &&
35192 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194 (eval $ac_try) 2>&5
35195 ac_status=$?
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; }; then
35198 ac_cv_lib_dl_dlopen=yes
35199else
35200 echo "$as_me: failed program was:" >&5
35201sed 's/^/| /' conftest.$ac_ext >&5
35202
35203ac_cv_lib_dl_dlopen=no
35204fi
ac1cb8d3
VS
35205rm -f conftest.err conftest.$ac_objext \
35206 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35207LIBS=$ac_check_lib_save_LIBS
35208fi
35209echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35210echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35211if test $ac_cv_lib_dl_dlopen = yes; then
35212
35213 cat >>confdefs.h <<\_ACEOF
35214#define HAVE_DLOPEN 1
35215_ACEOF
35216
35217 HAVE_DL_FUNCS=1
35218 DL_LINK=" -ldl$DL_LINK"
35219
35220else
35221
35222
35223for ac_func in shl_load
35224do
35225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35226echo "$as_me:$LINENO: checking for $ac_func" >&5
35227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35228if eval "test \"\${$as_ac_var+set}\" = set"; then
35229 echo $ECHO_N "(cached) $ECHO_C" >&6
35230else
35231 cat >conftest.$ac_ext <<_ACEOF
35232/* confdefs.h. */
35233_ACEOF
35234cat confdefs.h >>conftest.$ac_ext
35235cat >>conftest.$ac_ext <<_ACEOF
35236/* end confdefs.h. */
ac1cb8d3
VS
35237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35239#define $ac_func innocuous_$ac_func
35240
a848cd7e
SC
35241/* System header to define __stub macros and hopefully few prototypes,
35242 which can conflict with char $ac_func (); below.
35243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35244 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35245
a848cd7e
SC
35246#ifdef __STDC__
35247# include <limits.h>
35248#else
35249# include <assert.h>
35250#endif
ac1cb8d3
VS
35251
35252#undef $ac_func
35253
a848cd7e
SC
35254/* Override any gcc2 internal prototype to avoid an error. */
35255#ifdef __cplusplus
35256extern "C"
35257{
35258#endif
35259/* We use char because int might match the return type of a gcc2
35260 builtin and then its argument prototype would still apply. */
35261char $ac_func ();
35262/* The GNU C library defines this for functions which it implements
35263 to always fail with ENOSYS. Some functions are actually named
35264 something starting with __ and the normal name is an alias. */
35265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35266choke me
35267#else
35268char (*f) () = $ac_func;
35269#endif
35270#ifdef __cplusplus
35271}
35272#endif
35273
35274int
35275main ()
35276{
35277return f != $ac_func;
35278 ;
35279 return 0;
35280}
35281_ACEOF
35282rm -f conftest.$ac_objext conftest$ac_exeext
35283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35284 (eval $ac_link) 2>conftest.er1
a848cd7e 35285 ac_status=$?
ac1cb8d3
VS
35286 grep -v '^ *+' conftest.er1 >conftest.err
35287 rm -f conftest.er1
35288 cat conftest.err >&5
a848cd7e
SC
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); } &&
07158944 35291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35293 (eval $ac_try) 2>&5
35294 ac_status=$?
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); }; } &&
35297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35300 ac_status=$?
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; }; then
35303 eval "$as_ac_var=yes"
35304else
35305 echo "$as_me: failed program was:" >&5
35306sed 's/^/| /' conftest.$ac_ext >&5
35307
35308eval "$as_ac_var=no"
35309fi
ac1cb8d3
VS
35310rm -f conftest.err conftest.$ac_objext \
35311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35312fi
35313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35314echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35315if test `eval echo '${'$as_ac_var'}'` = yes; then
35316 cat >>confdefs.h <<_ACEOF
35317#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35318_ACEOF
35319
35320 cat >>confdefs.h <<\_ACEOF
35321#define HAVE_SHL_LOAD 1
35322_ACEOF
35323
35324 HAVE_SHL_FUNCS=1
35325
35326else
35327
35328 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35329echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35330if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35331 echo $ECHO_N "(cached) $ECHO_C" >&6
35332else
35333 ac_check_lib_save_LIBS=$LIBS
35334LIBS="-lshl_load $LIBS"
35335cat >conftest.$ac_ext <<_ACEOF
35336/* confdefs.h. */
35337_ACEOF
35338cat confdefs.h >>conftest.$ac_ext
35339cat >>conftest.$ac_ext <<_ACEOF
35340/* end confdefs.h. */
35341
35342/* Override any gcc2 internal prototype to avoid an error. */
35343#ifdef __cplusplus
35344extern "C"
35345#endif
35346/* We use char because int might match the return type of a gcc2
35347 builtin and then its argument prototype would still apply. */
35348char dld ();
35349int
35350main ()
35351{
35352dld ();
35353 ;
35354 return 0;
35355}
35356_ACEOF
35357rm -f conftest.$ac_objext conftest$ac_exeext
35358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35359 (eval $ac_link) 2>conftest.er1
a848cd7e 35360 ac_status=$?
ac1cb8d3
VS
35361 grep -v '^ *+' conftest.er1 >conftest.err
35362 rm -f conftest.er1
35363 cat conftest.err >&5
a848cd7e
SC
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); } &&
07158944 35366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35369 ac_status=$?
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; } &&
35372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35374 (eval $ac_try) 2>&5
35375 ac_status=$?
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); }; }; then
35378 ac_cv_lib_shl_load_dld=yes
35379else
35380 echo "$as_me: failed program was:" >&5
35381sed 's/^/| /' conftest.$ac_ext >&5
35382
35383ac_cv_lib_shl_load_dld=no
35384fi
ac1cb8d3
VS
35385rm -f conftest.err conftest.$ac_objext \
35386 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35387LIBS=$ac_check_lib_save_LIBS
35388fi
35389echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35390echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35391if test $ac_cv_lib_shl_load_dld = yes; then
35392
35393 HAVE_SHL_FUNCS=1
35394 DL_LINK=" -ldld$DL_LINK"
35395
35396fi
35397
35398
35399fi
35400done
35401
35402
35403fi
35404
35405
35406fi
35407done
35408
35409
35410 if test "$HAVE_DL_FUNCS" = 1; then
35411
35412for ac_func in dlerror
35413do
35414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35415echo "$as_me:$LINENO: checking for $ac_func" >&5
35416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35417if eval "test \"\${$as_ac_var+set}\" = set"; then
35418 echo $ECHO_N "(cached) $ECHO_C" >&6
35419else
35420 cat >conftest.$ac_ext <<_ACEOF
35421/* confdefs.h. */
35422_ACEOF
35423cat confdefs.h >>conftest.$ac_ext
35424cat >>conftest.$ac_ext <<_ACEOF
35425/* end confdefs.h. */
ac1cb8d3
VS
35426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35428#define $ac_func innocuous_$ac_func
35429
a848cd7e
SC
35430/* System header to define __stub macros and hopefully few prototypes,
35431 which can conflict with char $ac_func (); below.
35432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35433 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35434
a848cd7e
SC
35435#ifdef __STDC__
35436# include <limits.h>
35437#else
35438# include <assert.h>
35439#endif
ac1cb8d3
VS
35440
35441#undef $ac_func
35442
a848cd7e
SC
35443/* Override any gcc2 internal prototype to avoid an error. */
35444#ifdef __cplusplus
35445extern "C"
35446{
35447#endif
35448/* We use char because int might match the return type of a gcc2
35449 builtin and then its argument prototype would still apply. */
35450char $ac_func ();
35451/* The GNU C library defines this for functions which it implements
35452 to always fail with ENOSYS. Some functions are actually named
35453 something starting with __ and the normal name is an alias. */
35454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35455choke me
35456#else
35457char (*f) () = $ac_func;
35458#endif
35459#ifdef __cplusplus
35460}
35461#endif
35462
35463int
35464main ()
35465{
35466return f != $ac_func;
35467 ;
35468 return 0;
35469}
35470_ACEOF
35471rm -f conftest.$ac_objext conftest$ac_exeext
35472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35473 (eval $ac_link) 2>conftest.er1
a848cd7e 35474 ac_status=$?
ac1cb8d3
VS
35475 grep -v '^ *+' conftest.er1 >conftest.err
35476 rm -f conftest.er1
35477 cat conftest.err >&5
a848cd7e
SC
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); } &&
07158944 35480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482 (eval $ac_try) 2>&5
35483 ac_status=$?
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; } &&
35486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35489 ac_status=$?
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; }; then
35492 eval "$as_ac_var=yes"
35493else
35494 echo "$as_me: failed program was:" >&5
35495sed 's/^/| /' conftest.$ac_ext >&5
35496
35497eval "$as_ac_var=no"
35498fi
ac1cb8d3
VS
35499rm -f conftest.err conftest.$ac_objext \
35500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35501fi
35502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35504if test `eval echo '${'$as_ac_var'}'` = yes; then
35505 cat >>confdefs.h <<_ACEOF
35506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35507_ACEOF
35508 cat >>confdefs.h <<\_ACEOF
35509#define HAVE_DLERROR 1
35510_ACEOF
35511
35512else
35513
35514 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35515echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35516if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35517 echo $ECHO_N "(cached) $ECHO_C" >&6
35518else
35519 ac_check_lib_save_LIBS=$LIBS
35520LIBS="-ldl $LIBS"
35521cat >conftest.$ac_ext <<_ACEOF
35522/* confdefs.h. */
35523_ACEOF
35524cat confdefs.h >>conftest.$ac_ext
35525cat >>conftest.$ac_ext <<_ACEOF
35526/* end confdefs.h. */
35527
35528/* Override any gcc2 internal prototype to avoid an error. */
35529#ifdef __cplusplus
35530extern "C"
35531#endif
35532/* We use char because int might match the return type of a gcc2
35533 builtin and then its argument prototype would still apply. */
35534char dlerror ();
35535int
35536main ()
35537{
35538dlerror ();
35539 ;
35540 return 0;
35541}
35542_ACEOF
35543rm -f conftest.$ac_objext conftest$ac_exeext
35544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35545 (eval $ac_link) 2>conftest.er1
a848cd7e 35546 ac_status=$?
ac1cb8d3
VS
35547 grep -v '^ *+' conftest.er1 >conftest.err
35548 rm -f conftest.er1
35549 cat conftest.err >&5
a848cd7e
SC
35550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551 (exit $ac_status); } &&
07158944 35552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35554 (eval $ac_try) 2>&5
35555 ac_status=$?
35556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557 (exit $ac_status); }; } &&
35558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35560 (eval $ac_try) 2>&5
35561 ac_status=$?
35562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); }; }; then
35564 ac_cv_lib_dl_dlerror=yes
35565else
35566 echo "$as_me: failed program was:" >&5
35567sed 's/^/| /' conftest.$ac_ext >&5
35568
35569ac_cv_lib_dl_dlerror=no
35570fi
ac1cb8d3
VS
35571rm -f conftest.err conftest.$ac_objext \
35572 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35573LIBS=$ac_check_lib_save_LIBS
35574fi
35575echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35576echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35577if test $ac_cv_lib_dl_dlerror = yes; then
35578 cat >>confdefs.h <<\_ACEOF
35579#define HAVE_DLERROR 1
35580_ACEOF
35581
35582fi
35583
35584
35585
35586fi
35587done
35588
35589 fi
35590 fi
35591
35592 if test "$HAVE_DL_FUNCS" = 0; then
35593 if test "$HAVE_SHL_FUNCS" = 0; then
35594 if test "$USE_UNIX" = 1; then
35595 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35596echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35597 wxUSE_DYNAMIC_LOADER=no
35598 wxUSE_DYNLIB_CLASS=no
35599 else
35600 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35601echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35602 fi
35603 fi
35604 fi
35605 fi
35606fi
35607
35608if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35609 cat >>confdefs.h <<\_ACEOF
35610#define wxUSE_DYNAMIC_LOADER 1
35611_ACEOF
35612
35613fi
35614if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35615 cat >>confdefs.h <<\_ACEOF
35616#define wxUSE_DYNLIB_CLASS 1
35617_ACEOF
35618
35619fi
35620
35621
35622
35623if test "$wxUSE_PLUGINS" = "yes" ; then
35624 if test "$wxUSE_SHARED" = "no" ; then
35625 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35626echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35627 wxUSE_PLUGINS=no
35628 fi
35629 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35630 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35631echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35632 wxUSE_PLUGINS=no
35633 fi
35634 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35635 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35636echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35637 wxUSE_PLUGINS=no
35638 fi
35639 if test "$wxUSE_PLUGINS" = "yes" ; then
35640 cat >>confdefs.h <<\_ACEOF
35641#define wxUSE_PLUGINS 1
35642_ACEOF
35643
35644 fi
35645fi
35646
35647
35648if test "$wxUSE_STL" = "yes"; then
35649 cat >>confdefs.h <<\_ACEOF
35650#define wxUSE_STL 1
35651_ACEOF
35652
35653fi
35654
35655if test "$wxUSE_APPLE_IEEE" = "yes"; then
35656 cat >>confdefs.h <<\_ACEOF
35657#define wxUSE_APPLE_IEEE 1
35658_ACEOF
35659
35660fi
35661
35662if test "$wxUSE_TIMER" = "yes"; then
35663 cat >>confdefs.h <<\_ACEOF
35664#define wxUSE_TIMER 1
35665_ACEOF
35666
35667fi
35668
35669WITH_PLUGIN_SDL=0
35670if test "$wxUSE_SOUND" = "yes"; then
35671 if test "$USE_UNIX" = "1" ; then
35672
35673for ac_header in sys/soundcard.h
35674do
35675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35676if eval "test \"\${$as_ac_Header+set}\" = set"; then
35677 echo "$as_me:$LINENO: checking for $ac_header" >&5
35678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35679if eval "test \"\${$as_ac_Header+set}\" = set"; then
35680 echo $ECHO_N "(cached) $ECHO_C" >&6
35681fi
35682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35684else
35685 # Is the header compilable?
35686echo "$as_me:$LINENO: checking $ac_header usability" >&5
35687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35688cat >conftest.$ac_ext <<_ACEOF
35689/* confdefs.h. */
35690_ACEOF
35691cat confdefs.h >>conftest.$ac_ext
35692cat >>conftest.$ac_ext <<_ACEOF
35693/* end confdefs.h. */
35694$ac_includes_default
35695#include <$ac_header>
35696_ACEOF
35697rm -f conftest.$ac_objext
35698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35699 (eval $ac_compile) 2>conftest.er1
a848cd7e 35700 ac_status=$?
ac1cb8d3
VS
35701 grep -v '^ *+' conftest.er1 >conftest.err
35702 rm -f conftest.er1
35703 cat conftest.err >&5
a848cd7e
SC
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); } &&
07158944 35706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35708 (eval $ac_try) 2>&5
35709 ac_status=$?
35710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711 (exit $ac_status); }; } &&
35712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35714 (eval $ac_try) 2>&5
35715 ac_status=$?
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); }; }; then
35718 ac_header_compiler=yes
35719else
35720 echo "$as_me: failed program was:" >&5
35721sed 's/^/| /' conftest.$ac_ext >&5
35722
35723ac_header_compiler=no
35724fi
ac1cb8d3 35725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35727echo "${ECHO_T}$ac_header_compiler" >&6
35728
35729# Is the header present?
35730echo "$as_me:$LINENO: checking $ac_header presence" >&5
35731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35732cat >conftest.$ac_ext <<_ACEOF
35733/* confdefs.h. */
35734_ACEOF
35735cat confdefs.h >>conftest.$ac_ext
35736cat >>conftest.$ac_ext <<_ACEOF
35737/* end confdefs.h. */
35738#include <$ac_header>
35739_ACEOF
35740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35742 ac_status=$?
35743 grep -v '^ *+' conftest.er1 >conftest.err
35744 rm -f conftest.er1
35745 cat conftest.err >&5
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); } >/dev/null; then
35748 if test -s conftest.err; then
35749 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35751 else
35752 ac_cpp_err=
35753 fi
35754else
35755 ac_cpp_err=yes
35756fi
35757if test -z "$ac_cpp_err"; then
35758 ac_header_preproc=yes
35759else
35760 echo "$as_me: failed program was:" >&5
35761sed 's/^/| /' conftest.$ac_ext >&5
35762
35763 ac_header_preproc=no
35764fi
35765rm -f conftest.err conftest.$ac_ext
35766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35767echo "${ECHO_T}$ac_header_preproc" >&6
35768
35769# So? What about this header?
ac1cb8d3
VS
35770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35771 yes:no: )
a848cd7e
SC
35772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35776 ac_header_preproc=yes
a848cd7e 35777 ;;
ac1cb8d3 35778 no:yes:* )
a848cd7e
SC
35779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35791 (
35792 cat <<\_ASBOX
ac1cb8d3
VS
35793## ----------------------------------------- ##
35794## Report this to wx-dev@lists.wxwidgets.org ##
35795## ----------------------------------------- ##
a848cd7e
SC
35796_ASBOX
35797 ) |
35798 sed "s/^/$as_me: WARNING: /" >&2
35799 ;;
35800esac
35801echo "$as_me:$LINENO: checking for $ac_header" >&5
35802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35803if eval "test \"\${$as_ac_Header+set}\" = set"; then
35804 echo $ECHO_N "(cached) $ECHO_C" >&6
35805else
ac1cb8d3 35806 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35807fi
35808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35810
35811fi
35812if test `eval echo '${'$as_ac_Header'}'` = yes; then
35813 cat >>confdefs.h <<_ACEOF
35814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35815_ACEOF
35816
35817fi
35818
35819done
35820
35821
35822 if test "$wxUSE_LIBSDL" != "no"; then
35823
35824# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35825if test "${with_sdl_prefix+set}" = set; then
35826 withval="$with_sdl_prefix"
35827 sdl_prefix="$withval"
35828else
35829 sdl_prefix=""
35830fi;
35831
35832# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35833if test "${with_sdl_exec_prefix+set}" = set; then
35834 withval="$with_sdl_exec_prefix"
35835 sdl_exec_prefix="$withval"
35836else
35837 sdl_exec_prefix=""
35838fi;
35839# Check whether --enable-sdltest or --disable-sdltest was given.
35840if test "${enable_sdltest+set}" = set; then
35841 enableval="$enable_sdltest"
35842
35843else
35844 enable_sdltest=yes
35845fi;
35846
35847 if test x$sdl_exec_prefix != x ; then
35848 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35849 if test x${SDL_CONFIG+set} != xset ; then
35850 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35851 fi
35852 fi
35853 if test x$sdl_prefix != x ; then
35854 sdl_args="$sdl_args --prefix=$sdl_prefix"
35855 if test x${SDL_CONFIG+set} != xset ; then
35856 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35857 fi
35858 fi
35859
35860
35861 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35862 # Extract the first word of "sdl-config", so it can be a program name with args.
35863set dummy sdl-config; ac_word=$2
35864echo "$as_me:$LINENO: checking for $ac_word" >&5
35865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35866if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35867 echo $ECHO_N "(cached) $ECHO_C" >&6
35868else
35869 case $SDL_CONFIG in
35870 [\\/]* | ?:[\\/]*)
35871 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35872 ;;
35873 *)
35874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35875for as_dir in $PATH
35876do
35877 IFS=$as_save_IFS
35878 test -z "$as_dir" && as_dir=.
35879 for ac_exec_ext in '' $ac_executable_extensions; do
35880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35881 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35883 break 2
35884 fi
35885done
35886done
35887
35888 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35889 ;;
35890esac
35891fi
35892SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35893
35894if test -n "$SDL_CONFIG"; then
35895 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35896echo "${ECHO_T}$SDL_CONFIG" >&6
35897else
35898 echo "$as_me:$LINENO: result: no" >&5
35899echo "${ECHO_T}no" >&6
35900fi
35901
35902 min_sdl_version=1.2.0
35903 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35904echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35905 no_sdl=""
35906 if test "$SDL_CONFIG" = "no" ; then
35907 no_sdl=yes
35908 else
35909 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35910 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35911
35912 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35913 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35914 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35916 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35918 if test "x$enable_sdltest" = "xyes" ; then
35919 ac_save_CFLAGS="$CFLAGS"
94acd38e 35920 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
35921 ac_save_LIBS="$LIBS"
35922 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35923 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35924 LIBS="$LIBS $SDL_LIBS"
35925 rm -f conf.sdltest
35926 if test "$cross_compiling" = yes; then
35927 echo $ac_n "cross compiling; assumed OK... $ac_c"
35928else
35929 cat >conftest.$ac_ext <<_ACEOF
35930/* confdefs.h. */
35931_ACEOF
35932cat confdefs.h >>conftest.$ac_ext
35933cat >>conftest.$ac_ext <<_ACEOF
35934/* end confdefs.h. */
35935
35936#include <stdio.h>
35937#include <stdlib.h>
35938#include <string.h>
35939#include "SDL.h"
35940
35941char*
35942my_strdup (char *str)
35943{
35944 char *new_str;
35945
35946 if (str)
35947 {
35948 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35949 strcpy (new_str, str);
35950 }
35951 else
35952 new_str = NULL;
35953
35954 return new_str;
35955}
35956
35957int main (int argc, char *argv[])
35958{
35959 int major, minor, micro;
35960 char *tmp_version;
35961
35962 /* This hangs on some systems (?)
35963 system ("touch conf.sdltest");
35964 */
35965 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35966
35967 /* HP/UX 9 (%@#!) writes to sscanf strings */
35968 tmp_version = my_strdup("$min_sdl_version");
35969 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35970 printf("%s, bad version string\n", "$min_sdl_version");
35971 exit(1);
35972 }
35973
35974 if (($sdl_major_version > major) ||
35975 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35976 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35977 {
35978 return 0;
35979 }
35980 else
35981 {
35982 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35983 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35984 printf("*** best to upgrade to the required version.\n");
35985 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35986 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35987 printf("*** config.cache before re-running configure\n");
35988 return 1;
35989 }
35990}
35991
35992
35993_ACEOF
35994rm -f conftest$ac_exeext
35995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996 (eval $ac_link) 2>&5
35997 ac_status=$?
35998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36001 (eval $ac_try) 2>&5
36002 ac_status=$?
36003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004 (exit $ac_status); }; }; then
36005 :
36006else
36007 echo "$as_me: program exited with status $ac_status" >&5
36008echo "$as_me: failed program was:" >&5
36009sed 's/^/| /' conftest.$ac_ext >&5
36010
36011( exit $ac_status )
36012no_sdl=yes
36013fi
ac1cb8d3 36014rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36015fi
36016 CFLAGS="$ac_save_CFLAGS"
94acd38e 36017 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36018 LIBS="$ac_save_LIBS"
36019 fi
36020 fi
36021 if test "x$no_sdl" = x ; then
36022 echo "$as_me:$LINENO: result: yes" >&5
36023echo "${ECHO_T}yes" >&6
36024
36025 EXTRALIBS_SDL="$SDL_LIBS"
36026 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36027 cat >>confdefs.h <<\_ACEOF
36028#define wxUSE_LIBSDL 1
36029_ACEOF
36030
36031
36032 else
36033 echo "$as_me:$LINENO: result: no" >&5
36034echo "${ECHO_T}no" >&6
36035 if test "$SDL_CONFIG" = "no" ; then
36036 echo "*** The sdl-config script installed by SDL could not be found"
36037 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36038 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36039 echo "*** full path to sdl-config."
36040 else
36041 if test -f conf.sdltest ; then
36042 :
36043 else
36044 echo "*** Could not run SDL test program, checking why..."
36045 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36046 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36047 LIBS="$LIBS $SDL_LIBS"
36048 cat >conftest.$ac_ext <<_ACEOF
36049/* confdefs.h. */
36050_ACEOF
36051cat confdefs.h >>conftest.$ac_ext
36052cat >>conftest.$ac_ext <<_ACEOF
36053/* end confdefs.h. */
36054
36055#include <stdio.h>
36056#include "SDL.h"
36057
36058int main(int argc, char *argv[])
36059{ return 0; }
36060#undef main
36061#define main K_and_R_C_main
36062
36063int
36064main ()
36065{
36066 return 0;
36067 ;
36068 return 0;
36069}
36070_ACEOF
36071rm -f conftest.$ac_objext conftest$ac_exeext
36072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36073 (eval $ac_link) 2>conftest.er1
a848cd7e 36074 ac_status=$?
ac1cb8d3
VS
36075 grep -v '^ *+' conftest.er1 >conftest.err
36076 rm -f conftest.er1
36077 cat conftest.err >&5
a848cd7e
SC
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); } &&
07158944 36080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36082 (eval $ac_try) 2>&5
36083 ac_status=$?
36084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085 (exit $ac_status); }; } &&
36086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36088 (eval $ac_try) 2>&5
36089 ac_status=$?
36090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36091 (exit $ac_status); }; }; then
36092 echo "*** The test program compiled, but did not run. This usually means"
36093 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36094 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36095 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36096 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36097 echo "*** is required on your system"
36098 echo "***"
36099 echo "*** If you have an old version installed, it is best to remove it, although"
36100 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36101else
36102 echo "$as_me: failed program was:" >&5
36103sed 's/^/| /' conftest.$ac_ext >&5
36104
36105 echo "*** The test program failed to compile or link. See the file config.log for the"
36106 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36107 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36108 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36109fi
ac1cb8d3
VS
36110rm -f conftest.err conftest.$ac_objext \
36111 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36112 CFLAGS="$ac_save_CFLAGS"
94acd38e 36113 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36114 LIBS="$ac_save_LIBS"
36115 fi
36116 fi
36117 SDL_CFLAGS=""
36118 SDL_LIBS=""
36119 wxUSE_LIBSDL="no"
36120 fi
36121
36122
36123 rm -f conf.sdltest
36124
36125 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36126 WITH_PLUGIN_SDL=1
36127 fi
36128 fi
36129 fi
36130
36131 cat >>confdefs.h <<\_ACEOF
36132#define wxUSE_SOUND 1
36133_ACEOF
36134
36135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36136fi
36137
d1c38808
VZ
36138if test "$WXGTK20" = 1; then
36139 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36140 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36141
36142
36143 succeeded=no
36144
36145 if test -z "$PKG_CONFIG"; then
36146 # Extract the first word of "pkg-config", so it can be a program name with args.
36147set dummy pkg-config; ac_word=$2
36148echo "$as_me:$LINENO: checking for $ac_word" >&5
36149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36150if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36151 echo $ECHO_N "(cached) $ECHO_C" >&6
36152else
36153 case $PKG_CONFIG in
36154 [\\/]* | ?:[\\/]*)
36155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36156 ;;
36157 *)
36158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36159for as_dir in $PATH
36160do
36161 IFS=$as_save_IFS
36162 test -z "$as_dir" && as_dir=.
36163 for ac_exec_ext in '' $ac_executable_extensions; do
36164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36165 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36167 break 2
36168 fi
36169done
36170done
36171
36172 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36173 ;;
36174esac
36175fi
36176PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36177
36178if test -n "$PKG_CONFIG"; then
36179 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36180echo "${ECHO_T}$PKG_CONFIG" >&6
36181else
36182 echo "$as_me:$LINENO: result: no" >&5
36183echo "${ECHO_T}no" >&6
36184fi
36185
36186 fi
36187
36188 if test "$PKG_CONFIG" = "no" ; then
36189 echo "*** The pkg-config script could not be found. Make sure it is"
36190 echo "*** in your path, or set the PKG_CONFIG environment variable"
36191 echo "*** to the full path to pkg-config."
36192 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36193 else
36194 PKG_CONFIG_MIN_VERSION=0.9.0
36195 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36196 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36197echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36198
ffa762ff 36199 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36200 echo "$as_me:$LINENO: result: yes" >&5
36201echo "${ECHO_T}yes" >&6
36202 succeeded=yes
36203
36204 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36205echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36206 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36207 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36208echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36209
36210 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36211echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36212 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36213 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36214echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36215 else
36216 LIBGNOMEPRINTUI_CFLAGS=""
36217 LIBGNOMEPRINTUI_LIBS=""
36218 ## If we have a custom action on failure, don't print errors, but
36219 ## do set a variable so people can do so.
ffa762ff 36220 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36221
36222 fi
36223
36224
36225
36226 else
36227 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36228 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36229 fi
36230 fi
36231
36232 if test $succeeded = yes; then
36233
d1c38808
VZ
36234 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36235 cat >>confdefs.h <<\_ACEOF
36236#define wxUSE_LIBGNOMEPRINT 1
36237_ACEOF
36238
36239
36240 else
36241
36242 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36243echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36244 wxUSE_LIBGNOMEPRINT="no"
36245
36246
36247 fi
36248
36249 fi
36250 fi
36251fi
36252
36253
a848cd7e
SC
36254if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36255 cat >>confdefs.h <<\_ACEOF
36256#define wxUSE_CMDLINE_PARSER 1
36257_ACEOF
36258
36259fi
36260
36261if test "$wxUSE_STOPWATCH" = "yes"; then
36262 cat >>confdefs.h <<\_ACEOF
36263#define wxUSE_STOPWATCH 1
36264_ACEOF
36265
36266fi
36267
36268if test "$wxUSE_DATETIME" = "yes"; then
36269 cat >>confdefs.h <<\_ACEOF
36270#define wxUSE_DATETIME 1
36271_ACEOF
36272
36273fi
36274
36275if test "$wxUSE_FILE" = "yes"; then
36276 cat >>confdefs.h <<\_ACEOF
36277#define wxUSE_FILE 1
36278_ACEOF
36279
36280fi
36281
36282if test "$wxUSE_FFILE" = "yes"; then
36283 cat >>confdefs.h <<\_ACEOF
36284#define wxUSE_FFILE 1
36285_ACEOF
36286
36287fi
36288
36289if test "$wxUSE_FILESYSTEM" = "yes"; then
36290 cat >>confdefs.h <<\_ACEOF
36291#define wxUSE_FILESYSTEM 1
36292_ACEOF
36293
36294fi
36295
36296if test "$wxUSE_FS_ZIP" = "yes"; then
36297 cat >>confdefs.h <<\_ACEOF
36298#define wxUSE_FS_ZIP 1
36299_ACEOF
36300
36301fi
36302
9e8e867f 36303if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36304 cat >>confdefs.h <<\_ACEOF
9e8e867f 36305#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36306_ACEOF
36307
36308fi
36309
36310if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36311 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36312 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36313echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36314 elif test "$wxUSE_ZLIB" = "no"; then
36315 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36316echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36317 else
36318 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36319#define wxUSE_ZIPSTREAM 1
36320_ACEOF
36321
81f90336 36322 fi
a848cd7e
SC
36323fi
36324
a848cd7e
SC
36325if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36326 cat >>confdefs.h <<\_ACEOF
36327#define wxUSE_ON_FATAL_EXCEPTION 1
36328_ACEOF
36329
36330fi
36331
eaff0f0d
VZ
36332if test "$wxUSE_STACKWALKER" = "yes"; then
36333 cat >>confdefs.h <<\_ACEOF
36334#define wxUSE_STACKWALKER 1
36335_ACEOF
36336
36337fi
36338
36b6448c
VZ
36339if test "$wxUSE_DEBUGREPORT" = "yes"; then
36340 cat >>confdefs.h <<\_ACEOF
36341#define wxUSE_DEBUGREPORT 1
36342_ACEOF
36343
36344fi
36345
a848cd7e
SC
36346if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36347 cat >>confdefs.h <<\_ACEOF
36348#define wxUSE_SNGLINST_CHECKER 1
36349_ACEOF
36350
36351fi
36352
36353if test "$wxUSE_BUSYINFO" = "yes"; then
36354 cat >>confdefs.h <<\_ACEOF
36355#define wxUSE_BUSYINFO 1
36356_ACEOF
36357
36358fi
36359
36360if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36361 cat >>confdefs.h <<\_ACEOF
36362#define wxUSE_STD_IOSTREAM 1
36363_ACEOF
36364
36365fi
36366
07158944
VZ
36367if test "$wxUSE_STDPATHS" = "yes"; then
36368 cat >>confdefs.h <<\_ACEOF
36369#define wxUSE_STDPATHS 1
36370_ACEOF
36371
36372fi
36373
a848cd7e
SC
36374if test "$wxUSE_TEXTBUFFER" = "yes"; then
36375 cat >>confdefs.h <<\_ACEOF
36376#define wxUSE_TEXTBUFFER 1
36377_ACEOF
36378
36379fi
36380
36381if test "$wxUSE_TEXTFILE" = "yes"; then
36382 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36383 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36384echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36385 else
36386 cat >>confdefs.h <<\_ACEOF
36387#define wxUSE_TEXTFILE 1
36388_ACEOF
36389
36390 fi
36391fi
36392
36393if test "$wxUSE_CONFIG" = "yes" ; then
36394 if test "$wxUSE_TEXTFILE" != "yes"; then
36395 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36396echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36397 else
36398 cat >>confdefs.h <<\_ACEOF
36399#define wxUSE_CONFIG 1
89be85c2
VS
36400_ACEOF
36401
36402 cat >>confdefs.h <<\_ACEOF
36403#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36404_ACEOF
36405
36406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36407 fi
36408fi
36409
36410if test "$wxUSE_INTL" = "yes" ; then
36411 if test "$wxUSE_FILE" != "yes"; then
36412 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36413echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36414 else
36415 cat >>confdefs.h <<\_ACEOF
36416#define wxUSE_INTL 1
36417_ACEOF
36418
36419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36420 GUIDIST="$GUIDIST INTL_DIST"
36421 fi
36422fi
36423
36424if test "$wxUSE_LOG" = "yes"; then
36425 cat >>confdefs.h <<\_ACEOF
36426#define wxUSE_LOG 1
36427_ACEOF
36428
36429
36430 if test "$wxUSE_LOGGUI" = "yes"; then
36431 cat >>confdefs.h <<\_ACEOF
36432#define wxUSE_LOGGUI 1
36433_ACEOF
36434
36435 fi
36436
36437 if test "$wxUSE_LOGWINDOW" = "yes"; then
36438 cat >>confdefs.h <<\_ACEOF
36439#define wxUSE_LOGWINDOW 1
36440_ACEOF
36441
36442 fi
36443
36444 if test "$wxUSE_LOGDIALOG" = "yes"; then
36445 cat >>confdefs.h <<\_ACEOF
36446#define wxUSE_LOG_DIALOG 1
36447_ACEOF
36448
36449 fi
0b78747f
MW
36450
36451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36452fi
36453
36454if test "$wxUSE_LONGLONG" = "yes"; then
36455 cat >>confdefs.h <<\_ACEOF
36456#define wxUSE_LONGLONG 1
36457_ACEOF
36458
36459fi
36460
36461if test "$wxUSE_GEOMETRY" = "yes"; then
36462 cat >>confdefs.h <<\_ACEOF
36463#define wxUSE_GEOMETRY 1
36464_ACEOF
36465
36466fi
36467
a848cd7e
SC
36468if test "$wxUSE_STREAMS" = "yes" ; then
36469 cat >>confdefs.h <<\_ACEOF
36470#define wxUSE_STREAMS 1
36471_ACEOF
36472
36473fi
36474
36475
36476if test "$wxUSE_DATETIME" = "yes"; then
36477
36478for ac_func in strptime
36479do
36480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36481echo "$as_me:$LINENO: checking for $ac_func" >&5
36482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36483if eval "test \"\${$as_ac_var+set}\" = set"; then
36484 echo $ECHO_N "(cached) $ECHO_C" >&6
36485else
36486 cat >conftest.$ac_ext <<_ACEOF
36487/* confdefs.h. */
36488_ACEOF
36489cat confdefs.h >>conftest.$ac_ext
36490cat >>conftest.$ac_ext <<_ACEOF
36491/* end confdefs.h. */
ac1cb8d3
VS
36492/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36494#define $ac_func innocuous_$ac_func
36495
a848cd7e
SC
36496/* System header to define __stub macros and hopefully few prototypes,
36497 which can conflict with char $ac_func (); below.
36498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36499 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36500
a848cd7e
SC
36501#ifdef __STDC__
36502# include <limits.h>
36503#else
36504# include <assert.h>
36505#endif
ac1cb8d3
VS
36506
36507#undef $ac_func
36508
a848cd7e
SC
36509/* Override any gcc2 internal prototype to avoid an error. */
36510#ifdef __cplusplus
36511extern "C"
36512{
36513#endif
36514/* We use char because int might match the return type of a gcc2
36515 builtin and then its argument prototype would still apply. */
36516char $ac_func ();
36517/* The GNU C library defines this for functions which it implements
36518 to always fail with ENOSYS. Some functions are actually named
36519 something starting with __ and the normal name is an alias. */
36520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36521choke me
36522#else
36523char (*f) () = $ac_func;
36524#endif
36525#ifdef __cplusplus
36526}
36527#endif
36528
36529int
36530main ()
36531{
36532return f != $ac_func;
36533 ;
36534 return 0;
36535}
36536_ACEOF
36537rm -f conftest.$ac_objext conftest$ac_exeext
36538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36539 (eval $ac_link) 2>conftest.er1
a848cd7e 36540 ac_status=$?
ac1cb8d3
VS
36541 grep -v '^ *+' conftest.er1 >conftest.err
36542 rm -f conftest.er1
36543 cat conftest.err >&5
a848cd7e
SC
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); } &&
07158944 36546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548 (eval $ac_try) 2>&5
36549 ac_status=$?
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; } &&
36552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554 (eval $ac_try) 2>&5
36555 ac_status=$?
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); }; }; then
36558 eval "$as_ac_var=yes"
36559else
36560 echo "$as_me: failed program was:" >&5
36561sed 's/^/| /' conftest.$ac_ext >&5
36562
36563eval "$as_ac_var=no"
36564fi
ac1cb8d3
VS
36565rm -f conftest.err conftest.$ac_objext \
36566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36567fi
36568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36570if test `eval echo '${'$as_ac_var'}'` = yes; then
36571 cat >>confdefs.h <<_ACEOF
36572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36573_ACEOF
36574
36575fi
36576done
36577
36578
36579 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36580echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36581if test "${wx_cv_var_timezone+set}" = set; then
36582 echo $ECHO_N "(cached) $ECHO_C" >&6
36583else
36584
36585 cat >conftest.$ac_ext <<_ACEOF
36586/* confdefs.h. */
36587_ACEOF
36588cat confdefs.h >>conftest.$ac_ext
36589cat >>conftest.$ac_ext <<_ACEOF
36590/* end confdefs.h. */
36591
36592 #include <time.h>
36593
36594int
36595main ()
36596{
36597
36598 int tz;
36599 tz = timezone;
36600
36601 ;
36602 return 0;
36603}
36604_ACEOF
36605rm -f conftest.$ac_objext
36606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36607 (eval $ac_compile) 2>conftest.er1
a848cd7e 36608 ac_status=$?
ac1cb8d3
VS
36609 grep -v '^ *+' conftest.er1 >conftest.err
36610 rm -f conftest.er1
36611 cat conftest.err >&5
a848cd7e
SC
36612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613 (exit $ac_status); } &&
07158944 36614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36616 (eval $ac_try) 2>&5
36617 ac_status=$?
36618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619 (exit $ac_status); }; } &&
36620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36622 (eval $ac_try) 2>&5
36623 ac_status=$?
36624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36625 (exit $ac_status); }; }; then
36626
36627 wx_cv_var_timezone=timezone
36628
36629else
36630 echo "$as_me: failed program was:" >&5
36631sed 's/^/| /' conftest.$ac_ext >&5
36632
36633
36634 cat >conftest.$ac_ext <<_ACEOF
36635/* confdefs.h. */
36636_ACEOF
36637cat confdefs.h >>conftest.$ac_ext
36638cat >>conftest.$ac_ext <<_ACEOF
36639/* end confdefs.h. */
36640
36641 #include <time.h>
36642
36643int
36644main ()
36645{
36646
36647 int tz;
36648 tz = _timezone;
36649
36650 ;
36651 return 0;
36652}
36653_ACEOF
36654rm -f conftest.$ac_objext
36655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36656 (eval $ac_compile) 2>conftest.er1
a848cd7e 36657 ac_status=$?
ac1cb8d3
VS
36658 grep -v '^ *+' conftest.er1 >conftest.err
36659 rm -f conftest.er1
36660 cat conftest.err >&5
a848cd7e
SC
36661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); } &&
07158944 36663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36665 (eval $ac_try) 2>&5
36666 ac_status=$?
36667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668 (exit $ac_status); }; } &&
36669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36671 (eval $ac_try) 2>&5
36672 ac_status=$?
36673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674 (exit $ac_status); }; }; then
36675
36676 wx_cv_var_timezone=_timezone
36677
36678else
36679 echo "$as_me: failed program was:" >&5
36680sed 's/^/| /' conftest.$ac_ext >&5
36681
36682
36683 cat >conftest.$ac_ext <<_ACEOF
36684/* confdefs.h. */
36685_ACEOF
36686cat confdefs.h >>conftest.$ac_ext
36687cat >>conftest.$ac_ext <<_ACEOF
36688/* end confdefs.h. */
36689
36690 #include <time.h>
36691
36692int
36693main ()
36694{
36695
36696 int tz;
36697 tz = __timezone;
36698
36699 ;
36700 return 0;
36701}
36702_ACEOF
36703rm -f conftest.$ac_objext
36704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36705 (eval $ac_compile) 2>conftest.er1
a848cd7e 36706 ac_status=$?
ac1cb8d3
VS
36707 grep -v '^ *+' conftest.er1 >conftest.err
36708 rm -f conftest.er1
36709 cat conftest.err >&5
a848cd7e
SC
36710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711 (exit $ac_status); } &&
07158944 36712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36714 (eval $ac_try) 2>&5
36715 ac_status=$?
36716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); }; } &&
36718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36720 (eval $ac_try) 2>&5
36721 ac_status=$?
36722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723 (exit $ac_status); }; }; then
36724
36725 wx_cv_var_timezone=__timezone
36726
36727else
36728 echo "$as_me: failed program was:" >&5
36729sed 's/^/| /' conftest.$ac_ext >&5
36730
36731
36732 if test "$USE_DOS" = 0 ; then
36733 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36734echo "$as_me: WARNING: no timezone variable" >&2;}
36735 fi
36736
36737
36738fi
ac1cb8d3 36739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36740
36741
36742fi
ac1cb8d3 36743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36744
36745
36746fi
ac1cb8d3 36747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36748
36749
36750fi
36751echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36752echo "${ECHO_T}$wx_cv_var_timezone" >&6
36753
36754 if test "x$wx_cv_var_timezone" != x ; then
36755 cat >>confdefs.h <<_ACEOF
36756#define WX_TIMEZONE $wx_cv_var_timezone
36757_ACEOF
36758
36759 fi
36760
36761
36762for ac_func in localtime
36763do
36764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36765echo "$as_me:$LINENO: checking for $ac_func" >&5
36766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36767if eval "test \"\${$as_ac_var+set}\" = set"; then
36768 echo $ECHO_N "(cached) $ECHO_C" >&6
36769else
36770 cat >conftest.$ac_ext <<_ACEOF
36771/* confdefs.h. */
36772_ACEOF
36773cat confdefs.h >>conftest.$ac_ext
36774cat >>conftest.$ac_ext <<_ACEOF
36775/* end confdefs.h. */
ac1cb8d3
VS
36776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36778#define $ac_func innocuous_$ac_func
36779
a848cd7e
SC
36780/* System header to define __stub macros and hopefully few prototypes,
36781 which can conflict with char $ac_func (); below.
36782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36784
a848cd7e
SC
36785#ifdef __STDC__
36786# include <limits.h>
36787#else
36788# include <assert.h>
36789#endif
ac1cb8d3
VS
36790
36791#undef $ac_func
36792
a848cd7e
SC
36793/* Override any gcc2 internal prototype to avoid an error. */
36794#ifdef __cplusplus
36795extern "C"
36796{
36797#endif
36798/* We use char because int might match the return type of a gcc2
36799 builtin and then its argument prototype would still apply. */
36800char $ac_func ();
36801/* The GNU C library defines this for functions which it implements
36802 to always fail with ENOSYS. Some functions are actually named
36803 something starting with __ and the normal name is an alias. */
36804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36805choke me
36806#else
36807char (*f) () = $ac_func;
36808#endif
36809#ifdef __cplusplus
36810}
36811#endif
36812
36813int
36814main ()
36815{
36816return f != $ac_func;
36817 ;
36818 return 0;
36819}
36820_ACEOF
36821rm -f conftest.$ac_objext conftest$ac_exeext
36822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36823 (eval $ac_link) 2>conftest.er1
a848cd7e 36824 ac_status=$?
ac1cb8d3
VS
36825 grep -v '^ *+' conftest.er1 >conftest.err
36826 rm -f conftest.er1
36827 cat conftest.err >&5
a848cd7e
SC
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); } &&
07158944 36830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36832 (eval $ac_try) 2>&5
36833 ac_status=$?
36834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835 (exit $ac_status); }; } &&
36836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36838 (eval $ac_try) 2>&5
36839 ac_status=$?
36840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841 (exit $ac_status); }; }; then
36842 eval "$as_ac_var=yes"
36843else
36844 echo "$as_me: failed program was:" >&5
36845sed 's/^/| /' conftest.$ac_ext >&5
36846
36847eval "$as_ac_var=no"
36848fi
ac1cb8d3
VS
36849rm -f conftest.err conftest.$ac_objext \
36850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36851fi
36852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36853echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36854if test `eval echo '${'$as_ac_var'}'` = yes; then
36855 cat >>confdefs.h <<_ACEOF
36856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36857_ACEOF
36858
36859fi
36860done
36861
36862
36863 if test "$ac_cv_func_localtime" = "yes"; then
36864 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36865echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36866if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36867 echo $ECHO_N "(cached) $ECHO_C" >&6
36868else
36869
36870 cat >conftest.$ac_ext <<_ACEOF
36871/* confdefs.h. */
36872_ACEOF
36873cat confdefs.h >>conftest.$ac_ext
36874cat >>conftest.$ac_ext <<_ACEOF
36875/* end confdefs.h. */
36876
36877 #include <time.h>
36878
36879int
36880main ()
36881{
36882
36883 struct tm tm;
36884 tm.tm_gmtoff++;
36885
36886 ;
36887 return 0;
36888}
36889_ACEOF
36890rm -f conftest.$ac_objext
36891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36892 (eval $ac_compile) 2>conftest.er1
a848cd7e 36893 ac_status=$?
ac1cb8d3
VS
36894 grep -v '^ *+' conftest.er1 >conftest.err
36895 rm -f conftest.er1
36896 cat conftest.err >&5
a848cd7e
SC
36897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898 (exit $ac_status); } &&
07158944 36899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36901 (eval $ac_try) 2>&5
36902 ac_status=$?
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); }; } &&
36905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36907 (eval $ac_try) 2>&5
36908 ac_status=$?
36909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910 (exit $ac_status); }; }; then
36911
36912 wx_cv_struct_tm_has_gmtoff=yes
36913
36914else
36915 echo "$as_me: failed program was:" >&5
36916sed 's/^/| /' conftest.$ac_ext >&5
36917
36918wx_cv_struct_tm_has_gmtoff=no
36919
36920fi
ac1cb8d3 36921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36922
36923fi
36924echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36925echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36926 fi
36927
36928 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36929 cat >>confdefs.h <<\_ACEOF
36930#define WX_GMTOFF_IN_TM 1
36931_ACEOF
36932
36933 fi
36934
36935
36936
36937for ac_func in gettimeofday ftime
36938do
36939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36940echo "$as_me:$LINENO: checking for $ac_func" >&5
36941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36942if eval "test \"\${$as_ac_var+set}\" = set"; then
36943 echo $ECHO_N "(cached) $ECHO_C" >&6
36944else
36945 cat >conftest.$ac_ext <<_ACEOF
36946/* confdefs.h. */
36947_ACEOF
36948cat confdefs.h >>conftest.$ac_ext
36949cat >>conftest.$ac_ext <<_ACEOF
36950/* end confdefs.h. */
ac1cb8d3
VS
36951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36953#define $ac_func innocuous_$ac_func
36954
a848cd7e
SC
36955/* System header to define __stub macros and hopefully few prototypes,
36956 which can conflict with char $ac_func (); below.
36957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36958 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36959
a848cd7e
SC
36960#ifdef __STDC__
36961# include <limits.h>
36962#else
36963# include <assert.h>
36964#endif
ac1cb8d3
VS
36965
36966#undef $ac_func
36967
a848cd7e
SC
36968/* Override any gcc2 internal prototype to avoid an error. */
36969#ifdef __cplusplus
36970extern "C"
36971{
36972#endif
36973/* We use char because int might match the return type of a gcc2
36974 builtin and then its argument prototype would still apply. */
36975char $ac_func ();
36976/* The GNU C library defines this for functions which it implements
36977 to always fail with ENOSYS. Some functions are actually named
36978 something starting with __ and the normal name is an alias. */
36979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36980choke me
36981#else
36982char (*f) () = $ac_func;
36983#endif
36984#ifdef __cplusplus
36985}
36986#endif
36987
36988int
36989main ()
36990{
36991return f != $ac_func;
36992 ;
36993 return 0;
36994}
36995_ACEOF
36996rm -f conftest.$ac_objext conftest$ac_exeext
36997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36998 (eval $ac_link) 2>conftest.er1
a848cd7e 36999 ac_status=$?
ac1cb8d3
VS
37000 grep -v '^ *+' conftest.er1 >conftest.err
37001 rm -f conftest.er1
37002 cat conftest.err >&5
a848cd7e
SC
37003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004 (exit $ac_status); } &&
07158944 37005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37007 (eval $ac_try) 2>&5
37008 ac_status=$?
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); }; } &&
37011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37013 (eval $ac_try) 2>&5
37014 ac_status=$?
37015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016 (exit $ac_status); }; }; then
37017 eval "$as_ac_var=yes"
37018else
37019 echo "$as_me: failed program was:" >&5
37020sed 's/^/| /' conftest.$ac_ext >&5
37021
37022eval "$as_ac_var=no"
37023fi
ac1cb8d3
VS
37024rm -f conftest.err conftest.$ac_objext \
37025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37026fi
37027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37028echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37029if test `eval echo '${'$as_ac_var'}'` = yes; then
37030 cat >>confdefs.h <<_ACEOF
37031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37032_ACEOF
37033 break
37034fi
37035done
37036
37037
37038 if test "$ac_cv_func_gettimeofday" = "yes"; then
37039 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37040echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37041if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37042 echo $ECHO_N "(cached) $ECHO_C" >&6
37043else
37044
37045
37046
37047 ac_ext=cc
37048ac_cpp='$CXXCPP $CPPFLAGS'
37049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37052
37053
37054 cat >conftest.$ac_ext <<_ACEOF
37055/* confdefs.h. */
37056_ACEOF
37057cat confdefs.h >>conftest.$ac_ext
37058cat >>conftest.$ac_ext <<_ACEOF
37059/* end confdefs.h. */
37060
37061 #include <sys/time.h>
37062 #include <unistd.h>
37063
37064int
37065main ()
37066{
37067
37068 struct timeval tv;
37069 gettimeofday(&tv, NULL);
37070
37071 ;
37072 return 0;
37073}
37074_ACEOF
37075rm -f conftest.$ac_objext
37076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37077 (eval $ac_compile) 2>conftest.er1
a848cd7e 37078 ac_status=$?
ac1cb8d3
VS
37079 grep -v '^ *+' conftest.er1 >conftest.err
37080 rm -f conftest.er1
37081 cat conftest.err >&5
a848cd7e
SC
37082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083 (exit $ac_status); } &&
07158944 37084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37086 (eval $ac_try) 2>&5
37087 ac_status=$?
37088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089 (exit $ac_status); }; } &&
37090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37092 (eval $ac_try) 2>&5
37093 ac_status=$?
37094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37095 (exit $ac_status); }; }; then
37096 wx_cv_func_gettimeofday_has_2_args=yes
37097else
37098 echo "$as_me: failed program was:" >&5
37099sed 's/^/| /' conftest.$ac_ext >&5
37100
37101cat >conftest.$ac_ext <<_ACEOF
37102/* confdefs.h. */
37103_ACEOF
37104cat confdefs.h >>conftest.$ac_ext
37105cat >>conftest.$ac_ext <<_ACEOF
37106/* end confdefs.h. */
37107
37108 #include <sys/time.h>
37109 #include <unistd.h>
37110
37111int
37112main ()
37113{
37114
37115 struct timeval tv;
37116 gettimeofday(&tv);
37117
37118 ;
37119 return 0;
37120}
37121_ACEOF
37122rm -f conftest.$ac_objext
37123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37124 (eval $ac_compile) 2>conftest.er1
a848cd7e 37125 ac_status=$?
ac1cb8d3
VS
37126 grep -v '^ *+' conftest.er1 >conftest.err
37127 rm -f conftest.er1
37128 cat conftest.err >&5
a848cd7e
SC
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } &&
07158944 37131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37133 (eval $ac_try) 2>&5
37134 ac_status=$?
37135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136 (exit $ac_status); }; } &&
37137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37139 (eval $ac_try) 2>&5
37140 ac_status=$?
37141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142 (exit $ac_status); }; }; then
37143 wx_cv_func_gettimeofday_has_2_args=no
37144else
37145 echo "$as_me: failed program was:" >&5
37146sed 's/^/| /' conftest.$ac_ext >&5
37147
37148
37149 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37150echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37151 wx_cv_func_gettimeofday_has_2_args=unknown
37152
37153
37154fi
ac1cb8d3 37155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37156
37157fi
ac1cb8d3 37158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37159 ac_ext=c
37160ac_cpp='$CPP $CPPFLAGS'
37161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37163ac_compiler_gnu=$ac_cv_c_compiler_gnu
37164
37165
37166fi
37167echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37168echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37169
37170 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37171 cat >>confdefs.h <<\_ACEOF
37172#define WX_GETTIMEOFDAY_NO_TZ 1
37173_ACEOF
37174
37175 fi
37176 fi
37177
37178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37179fi
37180
37181
37182if test "$wxUSE_SOCKETS" = "yes"; then
37183 if test "$wxUSE_MGL" = "1"; then
37184 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37185echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37186 wxUSE_SOCKETS="no"
37187 fi
37188fi
37189
37190if test "$wxUSE_SOCKETS" = "yes"; then
37191 if test "$TOOLKIT" != "MSW"; then
37192 echo "$as_me:$LINENO: checking for socket" >&5
37193echo $ECHO_N "checking for socket... $ECHO_C" >&6
37194if test "${ac_cv_func_socket+set}" = set; then
37195 echo $ECHO_N "(cached) $ECHO_C" >&6
37196else
37197 cat >conftest.$ac_ext <<_ACEOF
37198/* confdefs.h. */
37199_ACEOF
37200cat confdefs.h >>conftest.$ac_ext
37201cat >>conftest.$ac_ext <<_ACEOF
37202/* end confdefs.h. */
ac1cb8d3
VS
37203/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37205#define socket innocuous_socket
37206
a848cd7e
SC
37207/* System header to define __stub macros and hopefully few prototypes,
37208 which can conflict with char socket (); below.
37209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37210 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37211
a848cd7e
SC
37212#ifdef __STDC__
37213# include <limits.h>
37214#else
37215# include <assert.h>
37216#endif
ac1cb8d3
VS
37217
37218#undef socket
37219
a848cd7e
SC
37220/* Override any gcc2 internal prototype to avoid an error. */
37221#ifdef __cplusplus
37222extern "C"
37223{
37224#endif
37225/* We use char because int might match the return type of a gcc2
37226 builtin and then its argument prototype would still apply. */
37227char socket ();
37228/* The GNU C library defines this for functions which it implements
37229 to always fail with ENOSYS. Some functions are actually named
37230 something starting with __ and the normal name is an alias. */
37231#if defined (__stub_socket) || defined (__stub___socket)
37232choke me
37233#else
37234char (*f) () = socket;
37235#endif
37236#ifdef __cplusplus
37237}
37238#endif
37239
37240int
37241main ()
37242{
37243return f != socket;
37244 ;
37245 return 0;
37246}
37247_ACEOF
37248rm -f conftest.$ac_objext conftest$ac_exeext
37249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37250 (eval $ac_link) 2>conftest.er1
a848cd7e 37251 ac_status=$?
ac1cb8d3
VS
37252 grep -v '^ *+' conftest.er1 >conftest.err
37253 rm -f conftest.er1
37254 cat conftest.err >&5
a848cd7e
SC
37255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256 (exit $ac_status); } &&
07158944 37257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37259 (eval $ac_try) 2>&5
37260 ac_status=$?
37261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37262 (exit $ac_status); }; } &&
37263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37265 (eval $ac_try) 2>&5
37266 ac_status=$?
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); }; }; then
37269 ac_cv_func_socket=yes
37270else
37271 echo "$as_me: failed program was:" >&5
37272sed 's/^/| /' conftest.$ac_ext >&5
37273
37274ac_cv_func_socket=no
37275fi
ac1cb8d3
VS
37276rm -f conftest.err conftest.$ac_objext \
37277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37278fi
37279echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37280echo "${ECHO_T}$ac_cv_func_socket" >&6
37281if test $ac_cv_func_socket = yes; then
37282 :
37283else
37284
37285 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37286echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37287if test "${ac_cv_lib_socket_socket+set}" = set; then
37288 echo $ECHO_N "(cached) $ECHO_C" >&6
37289else
37290 ac_check_lib_save_LIBS=$LIBS
37291LIBS="-lsocket $LIBS"
37292cat >conftest.$ac_ext <<_ACEOF
37293/* confdefs.h. */
37294_ACEOF
37295cat confdefs.h >>conftest.$ac_ext
37296cat >>conftest.$ac_ext <<_ACEOF
37297/* end confdefs.h. */
37298
37299/* Override any gcc2 internal prototype to avoid an error. */
37300#ifdef __cplusplus
37301extern "C"
37302#endif
37303/* We use char because int might match the return type of a gcc2
37304 builtin and then its argument prototype would still apply. */
37305char socket ();
37306int
37307main ()
37308{
37309socket ();
37310 ;
37311 return 0;
37312}
37313_ACEOF
37314rm -f conftest.$ac_objext conftest$ac_exeext
37315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37316 (eval $ac_link) 2>conftest.er1
a848cd7e 37317 ac_status=$?
ac1cb8d3
VS
37318 grep -v '^ *+' conftest.er1 >conftest.err
37319 rm -f conftest.er1
37320 cat conftest.err >&5
a848cd7e
SC
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); } &&
07158944 37323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325 (eval $ac_try) 2>&5
37326 ac_status=$?
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); }; } &&
37329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37331 (eval $ac_try) 2>&5
37332 ac_status=$?
37333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334 (exit $ac_status); }; }; then
37335 ac_cv_lib_socket_socket=yes
37336else
37337 echo "$as_me: failed program was:" >&5
37338sed 's/^/| /' conftest.$ac_ext >&5
37339
37340ac_cv_lib_socket_socket=no
37341fi
ac1cb8d3
VS
37342rm -f conftest.err conftest.$ac_objext \
37343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37344LIBS=$ac_check_lib_save_LIBS
37345fi
37346echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37347echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37348if test $ac_cv_lib_socket_socket = yes; then
37349 if test "$INET_LINK" != " -lsocket"; then
37350 INET_LINK="$INET_LINK -lsocket"
37351 fi
37352else
37353
37354 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37355echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37356 wxUSE_SOCKETS=no
37357
37358
37359fi
37360
37361
37362
37363fi
37364
37365 fi
37366fi
37367
37368if test "$wxUSE_SOCKETS" = "yes" ; then
37369 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37370 ac_ext=cc
37371ac_cpp='$CXXCPP $CPPFLAGS'
37372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37375
37376 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37377echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37378if test "${wx_cv_type_getsockname3+set}" = set; then
37379 echo $ECHO_N "(cached) $ECHO_C" >&6
37380else
37381
37382 cat >conftest.$ac_ext <<_ACEOF
37383/* confdefs.h. */
37384_ACEOF
37385cat confdefs.h >>conftest.$ac_ext
37386cat >>conftest.$ac_ext <<_ACEOF
37387/* end confdefs.h. */
37388
37389 #include <sys/types.h>
37390 #include <sys/socket.h>
37391
37392int
37393main ()
37394{
37395
37396 socklen_t len;
37397 getsockname(0, 0, &len);
37398
37399 ;
37400 return 0;
37401}
37402_ACEOF
37403rm -f conftest.$ac_objext
37404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37405 (eval $ac_compile) 2>conftest.er1
a848cd7e 37406 ac_status=$?
ac1cb8d3
VS
37407 grep -v '^ *+' conftest.er1 >conftest.err
37408 rm -f conftest.er1
37409 cat conftest.err >&5
a848cd7e
SC
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); } &&
07158944 37412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414 (eval $ac_try) 2>&5
37415 ac_status=$?
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); }; } &&
37418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37420 (eval $ac_try) 2>&5
37421 ac_status=$?
37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); }; }; then
37424 wx_cv_type_getsockname3=socklen_t
37425else
37426 echo "$as_me: failed program was:" >&5
37427sed 's/^/| /' conftest.$ac_ext >&5
37428
37429
37430 CFLAGS_OLD="$CFLAGS"
37431 if test "$GCC" = yes ; then
37432 CFLAGS="$CFLAGS -Werror"
37433 fi
37434
37435 cat >conftest.$ac_ext <<_ACEOF
37436/* confdefs.h. */
37437_ACEOF
37438cat confdefs.h >>conftest.$ac_ext
37439cat >>conftest.$ac_ext <<_ACEOF
37440/* end confdefs.h. */
37441
37442 #include <sys/types.h>
37443 #include <sys/socket.h>
37444
37445int
37446main ()
37447{
37448
37449 size_t len;
37450 getsockname(0, 0, &len);
37451
37452 ;
37453 return 0;
37454}
37455_ACEOF
37456rm -f conftest.$ac_objext
37457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37458 (eval $ac_compile) 2>conftest.er1
a848cd7e 37459 ac_status=$?
ac1cb8d3
VS
37460 grep -v '^ *+' conftest.er1 >conftest.err
37461 rm -f conftest.er1
37462 cat conftest.err >&5
a848cd7e
SC
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); } &&
07158944 37465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37467 (eval $ac_try) 2>&5
37468 ac_status=$?
37469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470 (exit $ac_status); }; } &&
37471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37473 (eval $ac_try) 2>&5
37474 ac_status=$?
37475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); }; }; then
37477 wx_cv_type_getsockname3=size_t
37478else
37479 echo "$as_me: failed program was:" >&5
37480sed 's/^/| /' conftest.$ac_ext >&5
37481
37482cat >conftest.$ac_ext <<_ACEOF
37483/* confdefs.h. */
37484_ACEOF
37485cat confdefs.h >>conftest.$ac_ext
37486cat >>conftest.$ac_ext <<_ACEOF
37487/* end confdefs.h. */
37488
37489 #include <sys/types.h>
37490 #include <sys/socket.h>
37491
37492int
37493main ()
37494{
37495
37496 int len;
37497 getsockname(0, 0, &len);
37498
37499 ;
37500 return 0;
37501}
37502_ACEOF
37503rm -f conftest.$ac_objext
37504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37505 (eval $ac_compile) 2>conftest.er1
a848cd7e 37506 ac_status=$?
ac1cb8d3
VS
37507 grep -v '^ *+' conftest.er1 >conftest.err
37508 rm -f conftest.er1
37509 cat conftest.err >&5
a848cd7e
SC
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); } &&
07158944 37512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37514 (eval $ac_try) 2>&5
37515 ac_status=$?
37516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); }; } &&
37518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37520 (eval $ac_try) 2>&5
37521 ac_status=$?
37522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37523 (exit $ac_status); }; }; then
37524 wx_cv_type_getsockname3=int
37525else
37526 echo "$as_me: failed program was:" >&5
37527sed 's/^/| /' conftest.$ac_ext >&5
37528
37529wx_cv_type_getsockname3=unknown
37530
37531fi
ac1cb8d3 37532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37533
37534fi
ac1cb8d3 37535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37536
37537 CFLAGS="$CFLAGS_OLD"
37538
37539
37540fi
ac1cb8d3 37541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37542
37543fi
37544echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37545echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37546
37547 if test "$wx_cv_type_getsockname3" = "unknown"; then
37548 wxUSE_SOCKETS=no
37549 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37550echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37551 else
37552 cat >>confdefs.h <<_ACEOF
37553#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37554_ACEOF
37555
37556 fi
37557 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37558echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37559if test "${wx_cv_type_getsockopt5+set}" = set; then
37560 echo $ECHO_N "(cached) $ECHO_C" >&6
37561else
37562
37563 cat >conftest.$ac_ext <<_ACEOF
37564/* confdefs.h. */
37565_ACEOF
37566cat confdefs.h >>conftest.$ac_ext
37567cat >>conftest.$ac_ext <<_ACEOF
37568/* end confdefs.h. */
37569
37570 #include <sys/types.h>
37571 #include <sys/socket.h>
37572
37573int
37574main ()
37575{
37576
37577 socklen_t len;
37578 getsockopt(0, 0, 0, 0, &len);
37579
37580 ;
37581 return 0;
37582}
37583_ACEOF
37584rm -f conftest.$ac_objext
37585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37586 (eval $ac_compile) 2>conftest.er1
37587 ac_status=$?
37588 grep -v '^ *+' conftest.er1 >conftest.err
37589 rm -f conftest.er1
37590 cat conftest.err >&5
37591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); } &&
07158944 37593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37596 ac_status=$?
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; } &&
37599 { ac_try='test -s conftest.$ac_objext'
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37602 ac_status=$?
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; }; then
37605 wx_cv_type_getsockopt5=socklen_t
37606else
37607 echo "$as_me: failed program was:" >&5
37608sed 's/^/| /' conftest.$ac_ext >&5
37609
37610
37611 CFLAGS_OLD="$CFLAGS"
37612 if test "$GCC" = yes ; then
37613 CFLAGS="$CFLAGS -Werror"
37614 fi
37615
37616 cat >conftest.$ac_ext <<_ACEOF
37617/* confdefs.h. */
37618_ACEOF
37619cat confdefs.h >>conftest.$ac_ext
37620cat >>conftest.$ac_ext <<_ACEOF
37621/* end confdefs.h. */
37622
37623 #include <sys/types.h>
37624 #include <sys/socket.h>
37625
37626int
37627main ()
37628{
37629
37630 size_t len;
37631 getsockopt(0, 0, 0, 0, &len);
37632
37633 ;
37634 return 0;
37635}
37636_ACEOF
37637rm -f conftest.$ac_objext
37638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37639 (eval $ac_compile) 2>conftest.er1
37640 ac_status=$?
37641 grep -v '^ *+' conftest.er1 >conftest.err
37642 rm -f conftest.er1
37643 cat conftest.err >&5
37644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); } &&
07158944 37646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37648 (eval $ac_try) 2>&5
37649 ac_status=$?
37650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651 (exit $ac_status); }; } &&
37652 { ac_try='test -s conftest.$ac_objext'
37653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654 (eval $ac_try) 2>&5
37655 ac_status=$?
37656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657 (exit $ac_status); }; }; then
37658 wx_cv_type_getsockopt5=size_t
37659else
37660 echo "$as_me: failed program was:" >&5
37661sed 's/^/| /' conftest.$ac_ext >&5
37662
37663cat >conftest.$ac_ext <<_ACEOF
37664/* confdefs.h. */
37665_ACEOF
37666cat confdefs.h >>conftest.$ac_ext
37667cat >>conftest.$ac_ext <<_ACEOF
37668/* end confdefs.h. */
37669
37670 #include <sys/types.h>
37671 #include <sys/socket.h>
37672
37673int
37674main ()
37675{
37676
37677 int len;
37678 getsockopt(0, 0, 0, 0, &len);
37679
37680 ;
37681 return 0;
37682}
37683_ACEOF
37684rm -f conftest.$ac_objext
37685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37686 (eval $ac_compile) 2>conftest.er1
37687 ac_status=$?
37688 grep -v '^ *+' conftest.er1 >conftest.err
37689 rm -f conftest.er1
37690 cat conftest.err >&5
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37692 (exit $ac_status); } &&
07158944 37693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37695 (eval $ac_try) 2>&5
37696 ac_status=$?
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); }; } &&
37699 { ac_try='test -s conftest.$ac_objext'
37700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37701 (eval $ac_try) 2>&5
37702 ac_status=$?
37703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); }; }; then
37705 wx_cv_type_getsockopt5=int
37706else
37707 echo "$as_me: failed program was:" >&5
37708sed 's/^/| /' conftest.$ac_ext >&5
37709
37710wx_cv_type_getsockopt5=unknown
37711
37712fi
37713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37714
37715fi
37716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37717
37718 CFLAGS="$CFLAGS_OLD"
37719
37720
37721fi
37722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37723
37724fi
37725echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37726echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37727
37728 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37729 wxUSE_SOCKETS=no
37730 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37731echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37732 else
37733 cat >>confdefs.h <<_ACEOF
37734#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37735_ACEOF
37736
37737 fi
4d4ff94c
VZ
37738 ac_ext=c
37739ac_cpp='$CPP $CPPFLAGS'
37740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37742ac_compiler_gnu=$ac_cv_c_compiler_gnu
37743
a848cd7e
SC
37744 fi
37745fi
37746
37747if test "$wxUSE_SOCKETS" = "yes" ; then
37748 cat >>confdefs.h <<\_ACEOF
37749#define wxUSE_SOCKETS 1
37750_ACEOF
37751
37752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37753fi
37754
37755if test "$wxUSE_PROTOCOL" = "yes"; then
37756 if test "$wxUSE_SOCKETS" != "yes"; then
37757 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37758echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37759 wxUSE_PROTOCOL=no
37760 fi
37761fi
37762
37763if test "$wxUSE_PROTOCOL" = "yes"; then
37764 cat >>confdefs.h <<\_ACEOF
37765#define wxUSE_PROTOCOL 1
37766_ACEOF
37767
37768
37769 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37770 cat >>confdefs.h <<\_ACEOF
37771#define wxUSE_PROTOCOL_HTTP 1
37772_ACEOF
37773
37774 fi
37775 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37776 cat >>confdefs.h <<\_ACEOF
37777#define wxUSE_PROTOCOL_FTP 1
37778_ACEOF
37779
37780 fi
37781 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37782 cat >>confdefs.h <<\_ACEOF
37783#define wxUSE_PROTOCOL_FILE 1
37784_ACEOF
37785
37786 fi
37787else
37788 if test "$wxUSE_FS_INET" = "yes"; then
37789 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37790echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37791 wxUSE_FS_INET="no"
37792 fi
37793fi
37794
37795if test "$wxUSE_URL" = "yes"; then
37796 if test "$wxUSE_PROTOCOL" != "yes"; then
37797 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37798echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37799 wxUSE_URL=no
37800 fi
37801 if test "$wxUSE_URL" = "yes"; then
37802 cat >>confdefs.h <<\_ACEOF
37803#define wxUSE_URL 1
37804_ACEOF
37805
37806 fi
37807fi
37808
37809if test "$wxUSE_FS_INET" = "yes"; then
37810 cat >>confdefs.h <<\_ACEOF
37811#define wxUSE_FS_INET 1
37812_ACEOF
37813
37814fi
37815
37816
37817if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37818 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37819
4cb1d3da 37820 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37821
37822for ac_header in linux/joystick.h
37823do
37824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37825if eval "test \"\${$as_ac_Header+set}\" = set"; then
37826 echo "$as_me:$LINENO: checking for $ac_header" >&5
37827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37828if eval "test \"\${$as_ac_Header+set}\" = set"; then
37829 echo $ECHO_N "(cached) $ECHO_C" >&6
37830fi
37831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37833else
37834 # Is the header compilable?
37835echo "$as_me:$LINENO: checking $ac_header usability" >&5
37836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37837cat >conftest.$ac_ext <<_ACEOF
37838/* confdefs.h. */
37839_ACEOF
37840cat confdefs.h >>conftest.$ac_ext
37841cat >>conftest.$ac_ext <<_ACEOF
37842/* end confdefs.h. */
37843$ac_includes_default
37844#include <$ac_header>
37845_ACEOF
37846rm -f conftest.$ac_objext
37847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37848 (eval $ac_compile) 2>conftest.er1
a848cd7e 37849 ac_status=$?
ac1cb8d3
VS
37850 grep -v '^ *+' conftest.er1 >conftest.err
37851 rm -f conftest.er1
37852 cat conftest.err >&5
a848cd7e
SC
37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854 (exit $ac_status); } &&
07158944 37855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857 (eval $ac_try) 2>&5
37858 ac_status=$?
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); }; } &&
37861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37863 (eval $ac_try) 2>&5
37864 ac_status=$?
37865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37866 (exit $ac_status); }; }; then
37867 ac_header_compiler=yes
37868else
37869 echo "$as_me: failed program was:" >&5
37870sed 's/^/| /' conftest.$ac_ext >&5
37871
37872ac_header_compiler=no
37873fi
ac1cb8d3 37874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37876echo "${ECHO_T}$ac_header_compiler" >&6
37877
37878# Is the header present?
37879echo "$as_me:$LINENO: checking $ac_header presence" >&5
37880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37881cat >conftest.$ac_ext <<_ACEOF
37882/* confdefs.h. */
37883_ACEOF
37884cat confdefs.h >>conftest.$ac_ext
37885cat >>conftest.$ac_ext <<_ACEOF
37886/* end confdefs.h. */
37887#include <$ac_header>
37888_ACEOF
37889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37891 ac_status=$?
37892 grep -v '^ *+' conftest.er1 >conftest.err
37893 rm -f conftest.er1
37894 cat conftest.err >&5
37895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896 (exit $ac_status); } >/dev/null; then
37897 if test -s conftest.err; then
37898 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37900 else
37901 ac_cpp_err=
37902 fi
37903else
37904 ac_cpp_err=yes
37905fi
37906if test -z "$ac_cpp_err"; then
37907 ac_header_preproc=yes
37908else
37909 echo "$as_me: failed program was:" >&5
37910sed 's/^/| /' conftest.$ac_ext >&5
37911
37912 ac_header_preproc=no
37913fi
37914rm -f conftest.err conftest.$ac_ext
37915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37916echo "${ECHO_T}$ac_header_preproc" >&6
37917
37918# So? What about this header?
ac1cb8d3
VS
37919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37920 yes:no: )
a848cd7e
SC
37921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37925 ac_header_preproc=yes
a848cd7e 37926 ;;
ac1cb8d3 37927 no:yes:* )
a848cd7e
SC
37928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37940 (
37941 cat <<\_ASBOX
ac1cb8d3
VS
37942## ----------------------------------------- ##
37943## Report this to wx-dev@lists.wxwidgets.org ##
37944## ----------------------------------------- ##
a848cd7e
SC
37945_ASBOX
37946 ) |
37947 sed "s/^/$as_me: WARNING: /" >&2
37948 ;;
37949esac
37950echo "$as_me:$LINENO: checking for $ac_header" >&5
37951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37952if eval "test \"\${$as_ac_Header+set}\" = set"; then
37953 echo $ECHO_N "(cached) $ECHO_C" >&6
37954else
ac1cb8d3 37955 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37956fi
37957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37959
37960fi
37961if test `eval echo '${'$as_ac_Header'}'` = yes; then
37962 cat >>confdefs.h <<_ACEOF
37963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37964_ACEOF
37965
37966fi
37967
37968done
37969
37970 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37971 wxUSE_JOYSTICK=no
37972 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37973echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37974 fi
4cb1d3da
RN
37975 else
37976 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
37977 wxUSE_JOYSTICK=no
37978 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37979echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37980 fi
a848cd7e 37981 fi
a848cd7e 37982
4cb1d3da
RN
37983
37984 if test "$wxUSE_JOYSTICK" = "yes"; then
37985 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37986#define wxUSE_JOYSTICK 1
37987_ACEOF
37988
4cb1d3da
RN
37989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37990 fi
a848cd7e
SC
37991 fi
37992fi
37993
37994
37995
37996if test "$wxUSE_FONTMAP" = "yes" ; then
37997 cat >>confdefs.h <<\_ACEOF
37998#define wxUSE_FONTMAP 1
37999_ACEOF
38000
38001fi
38002
38003if test "$wxUSE_UNICODE" = "yes" ; then
38004 cat >>confdefs.h <<\_ACEOF
38005#define wxUSE_UNICODE 1
38006_ACEOF
38007
38008
38009 if test "$USE_WIN32" != 1; then
38010 wxUSE_UNICODE_MSLU=no
38011 fi
38012
38013 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38014 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38015echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38016if test "${ac_cv_lib_unicows_main+set}" = set; then
38017 echo $ECHO_N "(cached) $ECHO_C" >&6
38018else
38019 ac_check_lib_save_LIBS=$LIBS
38020LIBS="-lunicows $LIBS"
38021cat >conftest.$ac_ext <<_ACEOF
38022/* confdefs.h. */
38023_ACEOF
38024cat confdefs.h >>conftest.$ac_ext
38025cat >>conftest.$ac_ext <<_ACEOF
38026/* end confdefs.h. */
38027
38028
38029int
38030main ()
38031{
38032main ();
38033 ;
38034 return 0;
38035}
38036_ACEOF
38037rm -f conftest.$ac_objext conftest$ac_exeext
38038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38039 (eval $ac_link) 2>conftest.er1
a848cd7e 38040 ac_status=$?
ac1cb8d3
VS
38041 grep -v '^ *+' conftest.er1 >conftest.err
38042 rm -f conftest.er1
38043 cat conftest.err >&5
a848cd7e
SC
38044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38045 (exit $ac_status); } &&
07158944 38046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38048 (eval $ac_try) 2>&5
38049 ac_status=$?
38050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051 (exit $ac_status); }; } &&
38052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38054 (eval $ac_try) 2>&5
38055 ac_status=$?
38056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38057 (exit $ac_status); }; }; then
38058 ac_cv_lib_unicows_main=yes
38059else
38060 echo "$as_me: failed program was:" >&5
38061sed 's/^/| /' conftest.$ac_ext >&5
38062
38063ac_cv_lib_unicows_main=no
38064fi
ac1cb8d3
VS
38065rm -f conftest.err conftest.$ac_objext \
38066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38067LIBS=$ac_check_lib_save_LIBS
38068fi
38069echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38070echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38071if test $ac_cv_lib_unicows_main = yes; then
38072
38073 cat >>confdefs.h <<\_ACEOF
38074#define wxUSE_UNICODE_MSLU 1
38075_ACEOF
38076
38077
38078else
38079
38080 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38081 Applications will only run on Windows NT/2000/XP!" >&5
38082echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38083 Applications will only run on Windows NT/2000/XP!" >&2;}
38084 wxUSE_UNICODE_MSLU=no
38085
38086fi
38087
38088 fi
38089fi
38090
38091if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38092 cat >>confdefs.h <<\_ACEOF
38093#define wxUSE_EXPERIMENTAL_PRINTF 1
38094_ACEOF
38095
38096fi
38097
38098
38099if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38100 cat >>confdefs.h <<\_ACEOF
38101#define wxUSE_POSTSCRIPT 1
38102_ACEOF
38103
38104fi
38105
38106cat >>confdefs.h <<\_ACEOF
38107#define wxUSE_AFM_FOR_POSTSCRIPT 1
38108_ACEOF
38109
38110
38111cat >>confdefs.h <<\_ACEOF
38112#define wxUSE_NORMALIZED_PS_FONTS 1
38113_ACEOF
38114
38115
38116
38117if test "$wxUSE_CONSTRAINTS" = "yes"; then
38118 cat >>confdefs.h <<\_ACEOF
38119#define wxUSE_CONSTRAINTS 1
38120_ACEOF
38121
38122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38123fi
38124
8a7b1113
VZ
38125if test "$wxUSE_MDI" = "yes"; then
38126 cat >>confdefs.h <<\_ACEOF
38127#define wxUSE_MDI 1
38128_ACEOF
38129
38130
38131 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38132 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38133#define wxUSE_MDI_ARCHITECTURE 1
38134_ACEOF
38135
8a7b1113
VZ
38136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38137 fi
a848cd7e
SC
38138fi
38139
38140if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38141 cat >>confdefs.h <<\_ACEOF
38142#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38143_ACEOF
38144
38145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38146 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38148 fi
38149fi
38150
38151if test "$wxUSE_HELP" = "yes"; then
38152 cat >>confdefs.h <<\_ACEOF
38153#define wxUSE_HELP 1
38154_ACEOF
38155
38156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38157
38158 if test "$wxUSE_MSW" = 1; then
38159 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38160 cat >>confdefs.h <<\_ACEOF
38161#define wxUSE_MS_HTML_HELP 1
38162_ACEOF
38163
38164 fi
38165 fi
38166
38167 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38168 if test "$wxUSE_HTML" = "yes"; then
38169 cat >>confdefs.h <<\_ACEOF
38170#define wxUSE_WXHTML_HELP 1
38171_ACEOF
38172
38173 else
38174 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38175echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38176 wxUSE_WXHTML_HELP=no
38177 fi
38178 fi
38179fi
38180
38181if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38182 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38183 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38184echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38185 else
38186 cat >>confdefs.h <<\_ACEOF
38187#define wxUSE_PRINTING_ARCHITECTURE 1
38188_ACEOF
38189
38190 fi
38191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38192fi
38193
38194if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38195 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38196echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38197 { (exit 1); exit 1; }; }
38198fi
38199
38200
38201if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38202 -o "$wxUSE_CLIPBOARD" = "yes" \
38203 -o "$wxUSE_OLE" = "yes" \
38204 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38205
38206for ac_header in ole2.h
38207do
38208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38209if eval "test \"\${$as_ac_Header+set}\" = set"; then
38210 echo "$as_me:$LINENO: checking for $ac_header" >&5
38211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38212if eval "test \"\${$as_ac_Header+set}\" = set"; then
38213 echo $ECHO_N "(cached) $ECHO_C" >&6
38214fi
38215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38217else
38218 # Is the header compilable?
38219echo "$as_me:$LINENO: checking $ac_header usability" >&5
38220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38221cat >conftest.$ac_ext <<_ACEOF
38222/* confdefs.h. */
38223_ACEOF
38224cat confdefs.h >>conftest.$ac_ext
38225cat >>conftest.$ac_ext <<_ACEOF
38226/* end confdefs.h. */
38227$ac_includes_default
38228#include <$ac_header>
38229_ACEOF
38230rm -f conftest.$ac_objext
38231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38232 (eval $ac_compile) 2>conftest.er1
a848cd7e 38233 ac_status=$?
ac1cb8d3
VS
38234 grep -v '^ *+' conftest.er1 >conftest.err
38235 rm -f conftest.er1
38236 cat conftest.err >&5
a848cd7e
SC
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); } &&
07158944 38239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38241 (eval $ac_try) 2>&5
38242 ac_status=$?
38243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244 (exit $ac_status); }; } &&
38245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38247 (eval $ac_try) 2>&5
38248 ac_status=$?
38249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250 (exit $ac_status); }; }; then
38251 ac_header_compiler=yes
38252else
38253 echo "$as_me: failed program was:" >&5
38254sed 's/^/| /' conftest.$ac_ext >&5
38255
38256ac_header_compiler=no
38257fi
ac1cb8d3 38258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38260echo "${ECHO_T}$ac_header_compiler" >&6
38261
38262# Is the header present?
38263echo "$as_me:$LINENO: checking $ac_header presence" >&5
38264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38265cat >conftest.$ac_ext <<_ACEOF
38266/* confdefs.h. */
38267_ACEOF
38268cat confdefs.h >>conftest.$ac_ext
38269cat >>conftest.$ac_ext <<_ACEOF
38270/* end confdefs.h. */
38271#include <$ac_header>
38272_ACEOF
38273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38275 ac_status=$?
38276 grep -v '^ *+' conftest.er1 >conftest.err
38277 rm -f conftest.er1
38278 cat conftest.err >&5
38279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38280 (exit $ac_status); } >/dev/null; then
38281 if test -s conftest.err; then
38282 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38284 else
38285 ac_cpp_err=
38286 fi
38287else
38288 ac_cpp_err=yes
38289fi
38290if test -z "$ac_cpp_err"; then
38291 ac_header_preproc=yes
38292else
38293 echo "$as_me: failed program was:" >&5
38294sed 's/^/| /' conftest.$ac_ext >&5
38295
38296 ac_header_preproc=no
38297fi
38298rm -f conftest.err conftest.$ac_ext
38299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38300echo "${ECHO_T}$ac_header_preproc" >&6
38301
38302# So? What about this header?
ac1cb8d3
VS
38303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38304 yes:no: )
a848cd7e
SC
38305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38309 ac_header_preproc=yes
a848cd7e 38310 ;;
ac1cb8d3 38311 no:yes:* )
a848cd7e
SC
38312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38315echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38319echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38324 (
38325 cat <<\_ASBOX
ac1cb8d3
VS
38326## ----------------------------------------- ##
38327## Report this to wx-dev@lists.wxwidgets.org ##
38328## ----------------------------------------- ##
a848cd7e
SC
38329_ASBOX
38330 ) |
38331 sed "s/^/$as_me: WARNING: /" >&2
38332 ;;
38333esac
38334echo "$as_me:$LINENO: checking for $ac_header" >&5
38335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38336if eval "test \"\${$as_ac_Header+set}\" = set"; then
38337 echo $ECHO_N "(cached) $ECHO_C" >&6
38338else
ac1cb8d3 38339 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38340fi
38341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38343
38344fi
38345if test `eval echo '${'$as_ac_Header'}'` = yes; then
38346 cat >>confdefs.h <<_ACEOF
38347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38348_ACEOF
38349
38350fi
38351
38352done
38353
38354
38355 if test "$ac_cv_header_ole2_h" = "yes" ; then
38356 if test "$GCC" = yes ; then
38357
38358
38359 ac_ext=cc
38360ac_cpp='$CXXCPP $CPPFLAGS'
38361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38364
38365
38366 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38367echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38368 cat >conftest.$ac_ext <<_ACEOF
38369/* confdefs.h. */
38370_ACEOF
38371cat confdefs.h >>conftest.$ac_ext
38372cat >>conftest.$ac_ext <<_ACEOF
38373/* end confdefs.h. */
38374#include <windows.h>
38375 #include <ole2.h>
38376int
38377main ()
38378{
38379
38380 ;
38381 return 0;
38382}
38383_ACEOF
38384rm -f conftest.$ac_objext
38385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38386 (eval $ac_compile) 2>conftest.er1
a848cd7e 38387 ac_status=$?
ac1cb8d3
VS
38388 grep -v '^ *+' conftest.er1 >conftest.err
38389 rm -f conftest.er1
38390 cat conftest.err >&5
a848cd7e
SC
38391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392 (exit $ac_status); } &&
07158944 38393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38395 (eval $ac_try) 2>&5
38396 ac_status=$?
38397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398 (exit $ac_status); }; } &&
38399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38401 (eval $ac_try) 2>&5
38402 ac_status=$?
38403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404 (exit $ac_status); }; }; then
38405 echo "$as_me:$LINENO: result: no" >&5
38406echo "${ECHO_T}no" >&6
38407else
38408 echo "$as_me: failed program was:" >&5
38409sed 's/^/| /' conftest.$ac_ext >&5
38410
38411echo "$as_me:$LINENO: result: yes" >&5
38412echo "${ECHO_T}yes" >&6
38413 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38414fi
ac1cb8d3 38415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38416 ac_ext=c
38417ac_cpp='$CPP $CPPFLAGS'
38418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38420ac_compiler_gnu=$ac_cv_c_compiler_gnu
38421
a848cd7e
SC
38422 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38423 if test "$wxUSE_OLE" = "yes" ; then
38424 cat >>confdefs.h <<\_ACEOF
38425#define wxUSE_OLE 1
38426_ACEOF
38427
0b78747f 38428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38429 fi
38430 fi
38431
38432 if test "$wxUSE_DATAOBJ" = "yes" ; then
38433 cat >>confdefs.h <<\_ACEOF
38434#define wxUSE_DATAOBJ 1
38435_ACEOF
38436
38437 fi
38438 else
38439 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38440echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38441
38442 wxUSE_CLIPBOARD=no
38443 wxUSE_DRAG_AND_DROP=no
38444 wxUSE_DATAOBJ=no
38445 wxUSE_OLE=no
38446 fi
38447
38448 if test "$wxUSE_METAFILE" = "yes"; then
38449 cat >>confdefs.h <<\_ACEOF
38450#define wxUSE_METAFILE 1
38451_ACEOF
38452
38453
38454 cat >>confdefs.h <<\_ACEOF
38455#define wxUSE_ENH_METAFILE 1
38456_ACEOF
38457
38458 fi
38459fi
38460
38461if test "$wxUSE_IPC" = "yes"; then
0b78747f 38462 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38463 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38464echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38465 wxUSE_IPC=no
a848cd7e
SC
38466 fi
38467
0b78747f
MW
38468 if test "$wxUSE_IPC" = "yes"; then
38469 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38470#define wxUSE_IPC 1
38471_ACEOF
38472
0b78747f
MW
38473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38474 fi
a848cd7e
SC
38475fi
38476
38477if test "$wxUSE_CLIPBOARD" = "yes"; then
38478 if test "$wxUSE_MGL" = 1; then
38479 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38480echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38481 wxUSE_CLIPBOARD=no
38482 fi
38483
38484 if test "$wxUSE_CLIPBOARD" = "yes"; then
38485 cat >>confdefs.h <<\_ACEOF
38486#define wxUSE_CLIPBOARD 1
38487_ACEOF
38488
38489
38490 cat >>confdefs.h <<\_ACEOF
38491#define wxUSE_DATAOBJ 1
38492_ACEOF
38493
38494 fi
38495fi
38496
38497if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38498 if test "$wxUSE_GTK" = 1; then
38499 if test "$WXGTK12" != 1; then
38500 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38501echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38502 wxUSE_DRAG_AND_DROP=no
38503 fi
38504 fi
38505
38506 if test "$wxUSE_MOTIF" = 1; then
38507 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38508echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38509 wxUSE_DRAG_AND_DROP=no
38510 fi
38511
38512 if test "$wxUSE_X11" = 1; then
38513 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38514echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38515 wxUSE_DRAG_AND_DROP=no
38516 fi
38517
38518 if test "$wxUSE_MGL" = 1; then
38519 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38520echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38521 wxUSE_DRAG_AND_DROP=no
38522 fi
38523
38524 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38525 cat >>confdefs.h <<\_ACEOF
38526#define wxUSE_DRAG_AND_DROP 1
38527_ACEOF
38528
38529 fi
38530
38531fi
38532
38533if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38535fi
38536
38537if test "$wxUSE_SPLINES" = "yes" ; then
38538 cat >>confdefs.h <<\_ACEOF
38539#define wxUSE_SPLINES 1
38540_ACEOF
38541
38542fi
38543
38544
38545USES_CONTROLS=0
38546if test "$wxUSE_CONTROLS" = "yes"; then
38547 USES_CONTROLS=1
38548fi
38549
38550if test "$wxUSE_ACCEL" = "yes"; then
38551 cat >>confdefs.h <<\_ACEOF
38552#define wxUSE_ACCEL 1
38553_ACEOF
38554
38555 USES_CONTROLS=1
38556fi
38557
38558if test "$wxUSE_BUTTON" = "yes"; then
38559 cat >>confdefs.h <<\_ACEOF
38560#define wxUSE_BUTTON 1
38561_ACEOF
38562
38563 USES_CONTROLS=1
38564fi
38565
38566if test "$wxUSE_BMPBUTTON" = "yes"; then
38567 cat >>confdefs.h <<\_ACEOF
38568#define wxUSE_BMPBUTTON 1
38569_ACEOF
38570
38571 USES_CONTROLS=1
38572fi
38573
38574if test "$wxUSE_CALCTRL" = "yes"; then
38575 cat >>confdefs.h <<\_ACEOF
38576#define wxUSE_CALENDARCTRL 1
38577_ACEOF
38578
38579 USES_CONTROLS=1
38580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38581fi
38582
38583if test "$wxUSE_CARET" = "yes"; then
38584 cat >>confdefs.h <<\_ACEOF
38585#define wxUSE_CARET 1
38586_ACEOF
38587
38588 USES_CONTROLS=1
38589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38590fi
38591
38592if test "$wxUSE_COMBOBOX" = "yes"; then
38593 cat >>confdefs.h <<\_ACEOF
38594#define wxUSE_COMBOBOX 1
38595_ACEOF
38596
38597 USES_CONTROLS=1
38598fi
38599
38600if test "$wxUSE_CHOICE" = "yes"; then
38601 cat >>confdefs.h <<\_ACEOF
38602#define wxUSE_CHOICE 1
38603_ACEOF
38604
38605 USES_CONTROLS=1
38606fi
38607
92bbdbcd
WS
38608if test "$wxUSE_CHOICEBOOK" = "yes"; then
38609 cat >>confdefs.h <<\_ACEOF
38610#define wxUSE_CHOICEBOOK 1
38611_ACEOF
38612
38613 USES_CONTROLS=1
38614fi
38615
a848cd7e
SC
38616if test "$wxUSE_CHECKBOX" = "yes"; then
38617 cat >>confdefs.h <<\_ACEOF
38618#define wxUSE_CHECKBOX 1
38619_ACEOF
38620
38621 USES_CONTROLS=1
38622fi
38623
38624if test "$wxUSE_CHECKLST" = "yes"; then
38625 cat >>confdefs.h <<\_ACEOF
38626#define wxUSE_CHECKLISTBOX 1
38627_ACEOF
38628
38629 USES_CONTROLS=1
38630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38631fi
38632
da98e9be
VZ
38633if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38634 cat >>confdefs.h <<\_ACEOF
38635#define wxUSE_DATEPICKCTRL 1
38636_ACEOF
38637
38638 USES_CONTROLS=1
38639fi
38640
a848cd7e
SC
38641if test "$wxUSE_DISPLAY" = "yes"; then
38642 cat >>confdefs.h <<\_ACEOF
38643#define wxUSE_DISPLAY 1
38644_ACEOF
38645
0b78747f 38646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38647fi
38648
38649if test "$wxUSE_GAUGE" = "yes"; then
38650 cat >>confdefs.h <<\_ACEOF
38651#define wxUSE_GAUGE 1
38652_ACEOF
38653
38654 USES_CONTROLS=1
38655fi
38656
38657if test "$wxUSE_GRID" = "yes"; then
38658 cat >>confdefs.h <<\_ACEOF
38659#define wxUSE_GRID 1
38660_ACEOF
38661
38662 USES_CONTROLS=1
38663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38664fi
38665
38666if test "$wxUSE_IMAGLIST" = "yes"; then
38667 cat >>confdefs.h <<\_ACEOF
38668#define wxUSE_IMAGLIST 1
38669_ACEOF
38670
38671fi
38672
38673if test "$wxUSE_LISTBOOK" = "yes"; then
38674 cat >>confdefs.h <<\_ACEOF
38675#define wxUSE_LISTBOOK 1
38676_ACEOF
38677
38678 USES_CONTROLS=1
38679fi
38680
38681if test "$wxUSE_LISTBOX" = "yes"; then
38682 cat >>confdefs.h <<\_ACEOF
38683#define wxUSE_LISTBOX 1
38684_ACEOF
38685
38686 USES_CONTROLS=1
0b78747f 38687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
38688fi
38689
38690if test "$wxUSE_LISTCTRL" = "yes"; then
38691 if test "$wxUSE_IMAGLIST" = "yes"; then
38692 cat >>confdefs.h <<\_ACEOF
38693#define wxUSE_LISTCTRL 1
38694_ACEOF
38695
38696 USES_CONTROLS=1
38697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38698 else
38699 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38700echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38701 fi
38702fi
38703
38704if test "$wxUSE_NOTEBOOK" = "yes"; then
38705 cat >>confdefs.h <<\_ACEOF
38706#define wxUSE_NOTEBOOK 1
38707_ACEOF
38708
38709 USES_CONTROLS=1
38710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38711fi
38712
38713
38714if test "$wxUSE_RADIOBOX" = "yes"; then
38715 cat >>confdefs.h <<\_ACEOF
38716#define wxUSE_RADIOBOX 1
38717_ACEOF
38718
38719 USES_CONTROLS=1
38720fi
38721
38722if test "$wxUSE_RADIOBTN" = "yes"; then
38723 cat >>confdefs.h <<\_ACEOF
38724#define wxUSE_RADIOBTN 1
38725_ACEOF
38726
38727 USES_CONTROLS=1
38728fi
38729
38730if test "$wxUSE_SASH" = "yes"; then
38731 cat >>confdefs.h <<\_ACEOF
38732#define wxUSE_SASH 1
38733_ACEOF
38734
38735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38736fi
38737
38738if test "$wxUSE_SCROLLBAR" = "yes"; then
38739 cat >>confdefs.h <<\_ACEOF
38740#define wxUSE_SCROLLBAR 1
38741_ACEOF
38742
38743 USES_CONTROLS=1
38744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38745fi
38746
38747if test "$wxUSE_SLIDER" = "yes"; then
38748 cat >>confdefs.h <<\_ACEOF
38749#define wxUSE_SLIDER 1
38750_ACEOF
38751
38752 USES_CONTROLS=1
38753fi
38754
38755if test "$wxUSE_SPINBTN" = "yes"; then
38756 cat >>confdefs.h <<\_ACEOF
38757#define wxUSE_SPINBTN 1
38758_ACEOF
38759
38760 USES_CONTROLS=1
38761fi
38762
38763if test "$wxUSE_SPINCTRL" = "yes"; then
38764 cat >>confdefs.h <<\_ACEOF
38765#define wxUSE_SPINCTRL 1
38766_ACEOF
38767
38768 USES_CONTROLS=1
38769fi
38770
38771if test "$wxUSE_SPLITTER" = "yes"; then
38772 cat >>confdefs.h <<\_ACEOF
38773#define wxUSE_SPLITTER 1
38774_ACEOF
38775
38776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38777fi
38778
38779if test "$wxUSE_STATBMP" = "yes"; then
38780 cat >>confdefs.h <<\_ACEOF
38781#define wxUSE_STATBMP 1
38782_ACEOF
38783
38784 USES_CONTROLS=1
38785fi
38786
38787if test "$wxUSE_STATBOX" = "yes"; then
38788 cat >>confdefs.h <<\_ACEOF
38789#define wxUSE_STATBOX 1
38790_ACEOF
38791
38792 USES_CONTROLS=1
38793fi
38794
38795if test "$wxUSE_STATTEXT" = "yes"; then
38796 cat >>confdefs.h <<\_ACEOF
38797#define wxUSE_STATTEXT 1
38798_ACEOF
38799
38800 USES_CONTROLS=1
38801fi
38802
38803if test "$wxUSE_STATLINE" = "yes"; then
38804 cat >>confdefs.h <<\_ACEOF
38805#define wxUSE_STATLINE 1
38806_ACEOF
38807
38808 USES_CONTROLS=1
38809fi
38810
38811if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38812 cat >>confdefs.h <<\_ACEOF
38813#define wxUSE_NATIVE_STATUSBAR 1
38814_ACEOF
38815
a848cd7e
SC
38816 cat >>confdefs.h <<\_ACEOF
38817#define wxUSE_STATUSBAR 1
38818_ACEOF
38819
38820 USES_CONTROLS=1
38821
38822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38823fi
38824
38825if test "$wxUSE_TABDIALOG" = "yes"; then
38826 cat >>confdefs.h <<\_ACEOF
38827#define wxUSE_TAB_DIALOG 1
38828_ACEOF
38829
a848cd7e
SC
38830fi
38831
38832if test "$wxUSE_TEXTCTRL" = "yes"; then
38833 cat >>confdefs.h <<\_ACEOF
38834#define wxUSE_TEXTCTRL 1
38835_ACEOF
38836
38837 USES_CONTROLS=1
38838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38839fi
38840
38841if test "$wxUSE_TOGGLEBTN" = "yes"; then
38842 if test "$wxUSE_COCOA" = 1 ; then
38843 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38844echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38845 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38846 else
38847 if test "$wxUSE_PM" = 1; then
38848 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38849echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38850 wxUSE_TOGGLEBTN=no
38851 fi
a848cd7e
SC
38852 fi
38853 if test "$wxUSE_UNIVERSAL" = "yes"; then
38854 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38855echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38856 wxUSE_TOGGLEBTN=no
38857 fi
38858
38859 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38860 cat >>confdefs.h <<\_ACEOF
38861#define wxUSE_TOGGLEBTN 1
38862_ACEOF
38863
38864 USES_CONTROLS=1
38865 fi
38866fi
38867
38868if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38869 cat >>confdefs.h <<\_ACEOF
38870#define wxUSE_TOOLBAR_SIMPLE 1
38871_ACEOF
38872
38873 wxUSE_TOOLBAR="yes"
38874 USES_CONTROLS=1
38875fi
38876
38877if test "$wxUSE_TOOLBAR" = "yes"; then
38878 cat >>confdefs.h <<\_ACEOF
38879#define wxUSE_TOOLBAR 1
38880_ACEOF
38881
38882 USES_CONTROLS=1
38883
38884 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38885 wxUSE_TOOLBAR_NATIVE="yes"
38886 fi
38887
38888 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38889 cat >>confdefs.h <<\_ACEOF
38890#define wxUSE_TOOLBAR_NATIVE 1
38891_ACEOF
38892
38893 USES_CONTROLS=1
38894 fi
38895
38896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38897fi
38898
38899if test "$wxUSE_TOOLTIPS" = "yes"; then
38900 if test "$wxUSE_MOTIF" = 1; then
38901 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38902echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38903 else
38904 if test "$wxUSE_UNIVERSAL" = "yes"; then
38905 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38906echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38907 else
38908 cat >>confdefs.h <<\_ACEOF
38909#define wxUSE_TOOLTIPS 1
38910_ACEOF
38911
38912 fi
38913 fi
38914fi
38915
38916if test "$wxUSE_TREECTRL" = "yes"; then
38917 if test "$wxUSE_IMAGLIST" = "yes"; then
38918 cat >>confdefs.h <<\_ACEOF
38919#define wxUSE_TREECTRL 1
38920_ACEOF
38921
38922 USES_CONTROLS=1
38923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38924 else
38925 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38926echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38927 fi
38928fi
38929
38930if test "$wxUSE_POPUPWIN" = "yes"; then
38931 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38932 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38933echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38934 else
38935 if test "$wxUSE_PM" = 1; then
38936 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38937echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38938 else
38939 cat >>confdefs.h <<\_ACEOF
38940#define wxUSE_POPUPWIN 1
38941_ACEOF
38942
0b78747f 38943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
38944
38945 USES_CONTROLS=1
38946 fi
38947 fi
38948fi
38949
0dcd06dd 38950if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38951 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38952 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38953echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38954 else
38955 cat >>confdefs.h <<\_ACEOF
38956#define wxUSE_DIALUP_MANAGER 1
38957_ACEOF
38958
38959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38960 fi
38961fi
38962
a848cd7e
SC
38963if test "$wxUSE_TIPWINDOW" = "yes"; then
38964 if test "$wxUSE_PM" = 1; then
38965 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38966echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38967 else
38968 cat >>confdefs.h <<\_ACEOF
38969#define wxUSE_TIPWINDOW 1
38970_ACEOF
38971
38972 fi
38973fi
38974
38975if test "$USES_CONTROLS" = 1; then
38976 cat >>confdefs.h <<\_ACEOF
38977#define wxUSE_CONTROLS 1
38978_ACEOF
38979
38980fi
38981
38982
38983if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38984 cat >>confdefs.h <<\_ACEOF
38985#define wxUSE_ACCESSIBILITY 1
38986_ACEOF
38987
38988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38989fi
38990
38991if test "$wxUSE_DRAGIMAGE" = "yes"; then
38992 cat >>confdefs.h <<\_ACEOF
38993#define wxUSE_DRAGIMAGE 1
38994_ACEOF
38995
38996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38997fi
38998
38999if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39000 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39001 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39002echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39003 else
39004 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39005#define wxUSE_EXCEPTIONS 1
39006_ACEOF
39007
07bea8f0
VS
39008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39009 fi
a848cd7e
SC
39010fi
39011
39012USE_HTML=0
39013if test "$wxUSE_HTML" = "yes"; then
39014 cat >>confdefs.h <<\_ACEOF
39015#define wxUSE_HTML 1
39016_ACEOF
39017
39018 USE_HTML=1
39019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39020 if test "$wxUSE_MAC" = 1; then
39021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39022 fi
a848cd7e 39023fi
646b6ec1 39024if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39025 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39026 old_CPPFLAGS="$CPPFLAGS"
39027 CPPFLAGS="$CPPFLAGS -x objective-c++"
39028 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39029echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39030if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39031 echo $ECHO_N "(cached) $ECHO_C" >&6
39032else
39033 cat >conftest.$ac_ext <<_ACEOF
39034/* confdefs.h. */
39035_ACEOF
39036cat confdefs.h >>conftest.$ac_ext
39037cat >>conftest.$ac_ext <<_ACEOF
39038/* end confdefs.h. */
39039#include <Carbon/Carbon.h>
39040
39041#include <WebKit/HIWebView.h>
39042_ACEOF
39043rm -f conftest.$ac_objext
39044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39045 (eval $ac_compile) 2>conftest.er1
39046 ac_status=$?
39047 grep -v '^ *+' conftest.er1 >conftest.err
39048 rm -f conftest.er1
39049 cat conftest.err >&5
39050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051 (exit $ac_status); } &&
07158944 39052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39054 (eval $ac_try) 2>&5
39055 ac_status=$?
39056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057 (exit $ac_status); }; } &&
39058 { ac_try='test -s conftest.$ac_objext'
39059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39060 (eval $ac_try) 2>&5
39061 ac_status=$?
39062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39063 (exit $ac_status); }; }; then
39064 ac_cv_header_WebKit_HIWebView_h=yes
39065else
39066 echo "$as_me: failed program was:" >&5
39067sed 's/^/| /' conftest.$ac_ext >&5
39068
39069ac_cv_header_WebKit_HIWebView_h=no
39070fi
39071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39072fi
39073echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39074echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39075if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39076
39077 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39078#define wxUSE_WEBKIT 1
39079_ACEOF
39080
07bea8f0
VS
39081 WEBKIT_LINK="-framework WebKit"
39082
39083else
39084
39085 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39086echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39087 wxUSE_WEBKIT=no
39088
646b6ec1
VS
39089fi
39090
07bea8f0
VS
39091
39092 CPPFLAGS="$old_CPPFLAGS"
39093 elif test "$wxUSE_COCOA" = 1; then
39094 cat >>confdefs.h <<\_ACEOF
39095#define wxUSE_WEBKIT 1
39096_ACEOF
39097
39098 else
39099 wxUSE_WEBKIT=no
39100 fi
39101fi
39102
9a8f0513
VS
39103USE_XRC=0
39104if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39105 if test "$wxUSE_XML" != "yes"; then
39106 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39107echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39108 wxUSE_XRC=no
39109 else
39110 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39111#define wxUSE_XRC 1
39112_ACEOF
39113
d2ebf0b7
VS
39114 USE_XRC=1
39115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39116 fi
9a8f0513 39117fi
07bea8f0 39118
a848cd7e
SC
39119if test "$wxUSE_MENUS" = "yes"; then
39120 cat >>confdefs.h <<\_ACEOF
39121#define wxUSE_MENUS 1
39122_ACEOF
39123
39124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39125fi
39126
39127if test "$wxUSE_METAFILE" = "yes"; then
39128 cat >>confdefs.h <<\_ACEOF
39129#define wxUSE_METAFILE 1
39130_ACEOF
39131
39132fi
39133
39134if test "$wxUSE_MIMETYPE" = "yes"; then
39135 cat >>confdefs.h <<\_ACEOF
39136#define wxUSE_MIMETYPE 1
39137_ACEOF
39138
39139fi
39140
39141if test "$wxUSE_MINIFRAME" = "yes"; then
39142 cat >>confdefs.h <<\_ACEOF
39143#define wxUSE_MINIFRAME 1
39144_ACEOF
39145
39146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39147fi
39148
39149if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39150 cat >>confdefs.h <<\_ACEOF
39151#define wxUSE_SYSTEM_OPTIONS 1
39152_ACEOF
39153
39154 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39155 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39157 fi
39158fi
39159
39160
39161if test "$wxUSE_VALIDATORS" = "yes"; then
39162 cat >>confdefs.h <<\_ACEOF
39163#define wxUSE_VALIDATORS 1
39164_ACEOF
39165
39166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39167fi
39168
39169if test "$wxUSE_PALETTE" = "yes" ; then
39170 cat >>confdefs.h <<\_ACEOF
39171#define wxUSE_PALETTE 1
39172_ACEOF
39173
39174fi
39175
39176if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39177 LIBS=" -lunicows $LIBS"
39178fi
39179
39180
39181if test "$wxUSE_IMAGE" = "yes" ; then
39182 cat >>confdefs.h <<\_ACEOF
39183#define wxUSE_IMAGE 1
39184_ACEOF
39185
39186
39187 if test "$wxUSE_GIF" = "yes" ; then
39188 cat >>confdefs.h <<\_ACEOF
39189#define wxUSE_GIF 1
39190_ACEOF
39191
39192 fi
39193
39194 if test "$wxUSE_PCX" = "yes" ; then
39195 cat >>confdefs.h <<\_ACEOF
39196#define wxUSE_PCX 1
39197_ACEOF
39198
39199 fi
39200
39201 if test "$wxUSE_IFF" = "yes" ; then
39202 cat >>confdefs.h <<\_ACEOF
39203#define wxUSE_IFF 1
39204_ACEOF
39205
39206 fi
39207
39208 if test "$wxUSE_PNM" = "yes" ; then
39209 cat >>confdefs.h <<\_ACEOF
39210#define wxUSE_PNM 1
39211_ACEOF
39212
39213 fi
39214
39215 if test "$wxUSE_XPM" = "yes" ; then
39216 cat >>confdefs.h <<\_ACEOF
39217#define wxUSE_XPM 1
39218_ACEOF
39219
39220 fi
39221
39222 if test "$wxUSE_ICO_CUR" = "yes" ; then
39223 cat >>confdefs.h <<\_ACEOF
39224#define wxUSE_ICO_CUR 1
39225_ACEOF
39226
39227 fi
39228fi
39229
39230
39231if test "$wxUSE_CHOICEDLG" = "yes"; then
39232 cat >>confdefs.h <<\_ACEOF
39233#define wxUSE_CHOICEDLG 1
39234_ACEOF
39235
39236fi
39237
39238if test "$wxUSE_COLOURDLG" = "yes"; then
39239 cat >>confdefs.h <<\_ACEOF
39240#define wxUSE_COLOURDLG 1
39241_ACEOF
39242
39243fi
39244
39245if test "$wxUSE_FILEDLG" = "yes"; then
39246 cat >>confdefs.h <<\_ACEOF
39247#define wxUSE_FILEDLG 1
39248_ACEOF
39249
39250fi
39251
39252if test "$wxUSE_FINDREPLDLG" = "yes"; then
39253 cat >>confdefs.h <<\_ACEOF
39254#define wxUSE_FINDREPLDLG 1
39255_ACEOF
39256
39257fi
39258
39259if test "$wxUSE_FONTDLG" = "yes"; then
39260 cat >>confdefs.h <<\_ACEOF
39261#define wxUSE_FONTDLG 1
39262_ACEOF
39263
39264fi
39265
39266if test "$wxUSE_DIRDLG" = "yes"; then
39267 if test "$wxUSE_TREECTRL" != "yes"; then
39268 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39269echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39270 else
39271 cat >>confdefs.h <<\_ACEOF
39272#define wxUSE_DIRDLG 1
39273_ACEOF
39274
39275 fi
39276fi
39277
39278if test "$wxUSE_MSGDLG" = "yes"; then
39279 cat >>confdefs.h <<\_ACEOF
39280#define wxUSE_MSGDLG 1
39281_ACEOF
39282
39283fi
39284
39285if test "$wxUSE_NUMBERDLG" = "yes"; then
39286 cat >>confdefs.h <<\_ACEOF
39287#define wxUSE_NUMBERDLG 1
39288_ACEOF
39289
39290fi
39291
39292if test "$wxUSE_PROGRESSDLG" = "yes"; then
39293 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39294 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39295echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39296 else
39297 cat >>confdefs.h <<\_ACEOF
39298#define wxUSE_PROGRESSDLG 1
39299_ACEOF
39300
39301 fi
39302fi
39303
39304if test "$wxUSE_SPLASH" = "yes"; then
39305 cat >>confdefs.h <<\_ACEOF
39306#define wxUSE_SPLASH 1
39307_ACEOF
39308
2057db16 39309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39310fi
39311
39312if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39313 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39314 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39315echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39316 else
39317 cat >>confdefs.h <<\_ACEOF
39318#define wxUSE_STARTUP_TIPS 1
39319_ACEOF
39320
39321 fi
39322fi
39323
39324if test "$wxUSE_TEXTDLG" = "yes"; then
39325 cat >>confdefs.h <<\_ACEOF
39326#define wxUSE_TEXTDLG 1
39327_ACEOF
39328
39329fi
39330
39331if test "$wxUSE_WIZARDDLG" = "yes"; then
39332 cat >>confdefs.h <<\_ACEOF
39333#define wxUSE_WIZARDDLG 1
39334_ACEOF
39335
39336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39337fi
39338
39339
ce756cb0
RN
39340if test "$wxUSE_MEDIACTRL" = "yes"; then
39341 if test "$wxUSE_MSW" = 1; then
39342 wxUSE_DIRECTSHOW="yes"
39343
39344for ac_header in dshow.h
39345do
39346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39347echo "$as_me:$LINENO: checking for $ac_header" >&5
39348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39349if eval "test \"\${$as_ac_Header+set}\" = set"; then
39350 echo $ECHO_N "(cached) $ECHO_C" >&6
39351else
39352 cat >conftest.$ac_ext <<_ACEOF
39353/* confdefs.h. */
39354_ACEOF
39355cat confdefs.h >>conftest.$ac_ext
39356cat >>conftest.$ac_ext <<_ACEOF
39357/* end confdefs.h. */
39358#include <windows.h>
39359
39360#include <$ac_header>
39361_ACEOF
39362rm -f conftest.$ac_objext
39363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39364 (eval $ac_compile) 2>conftest.er1
39365 ac_status=$?
39366 grep -v '^ *+' conftest.er1 >conftest.err
39367 rm -f conftest.er1
39368 cat conftest.err >&5
39369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39370 (exit $ac_status); } &&
07158944 39371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39373 (eval $ac_try) 2>&5
39374 ac_status=$?
39375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376 (exit $ac_status); }; } &&
39377 { ac_try='test -s conftest.$ac_objext'
39378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39379 (eval $ac_try) 2>&5
39380 ac_status=$?
39381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382 (exit $ac_status); }; }; then
39383 eval "$as_ac_Header=yes"
39384else
39385 echo "$as_me: failed program was:" >&5
39386sed 's/^/| /' conftest.$ac_ext >&5
39387
39388eval "$as_ac_Header=no"
39389fi
39390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39391fi
39392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39394if test `eval echo '${'$as_ac_Header'}'` = yes; then
39395 cat >>confdefs.h <<_ACEOF
39396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39397_ACEOF
39398
39399else
39400
39401 wxUSE_DIRECTSHOW="no"
39402 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39403echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39404
39405fi
39406
39407done
39408
39409
39410 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39411 cat >>confdefs.h <<\_ACEOF
39412#define wxUSE_DIRECTSHOW 1
39413_ACEOF
39414
39415 LIBS="$LIBS -lstrmiids"
39416 fi
39417 fi
39418
39419 if test "$wxUSE_GTK" = 1; then
39420 wxUSE_GSTREAMER="yes"
39421
ce756cb0 39422
dae87f93 39423 succeeded=no
ce756cb0 39424
dae87f93
RN
39425 if test -z "$PKG_CONFIG"; then
39426 # Extract the first word of "pkg-config", so it can be a program name with args.
39427set dummy pkg-config; ac_word=$2
39428echo "$as_me:$LINENO: checking for $ac_word" >&5
39429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39430if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39431 echo $ECHO_N "(cached) $ECHO_C" >&6
39432else
39433 case $PKG_CONFIG in
39434 [\\/]* | ?:[\\/]*)
39435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39436 ;;
39437 *)
39438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39439for as_dir in $PATH
39440do
39441 IFS=$as_save_IFS
39442 test -z "$as_dir" && as_dir=.
39443 for ac_exec_ext in '' $ac_executable_extensions; do
39444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39447 break 2
39448 fi
39449done
39450done
39451
39452 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39453 ;;
39454esac
39455fi
39456PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39457
39458if test -n "$PKG_CONFIG"; then
39459 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39460echo "${ECHO_T}$PKG_CONFIG" >&6
39461else
39462 echo "$as_me:$LINENO: result: no" >&5
39463echo "${ECHO_T}no" >&6
39464fi
39465
39466 fi
39467
39468 if test "$PKG_CONFIG" = "no" ; then
39469 echo "*** The pkg-config script could not be found. Make sure it is"
39470 echo "*** in your path, or set the PKG_CONFIG environment variable"
39471 echo "*** to the full path to pkg-config."
39472 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39473 else
39474 PKG_CONFIG_MIN_VERSION=0.9.0
39475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39476 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39477echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39478
39479 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39480 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39481echo "${ECHO_T}yes" >&6
dae87f93 39482 succeeded=yes
ce756cb0 39483
dae87f93
RN
39484 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39485echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39486 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39487 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39488echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39489
39490 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39491echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39492 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39493 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39494echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39495 else
39496 GSTREAMER_CFLAGS=""
39497 GSTREAMER_LIBS=""
39498 ## If we have a custom action on failure, don't print errors, but
39499 ## do set a variable so people can do so.
39500 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39501
dae87f93
RN
39502 fi
39503
39504
39505
39506 else
39507 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39508 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39509 fi
39510 fi
39511
39512 if test $succeeded = yes; then
39513
39514 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39515 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39516
ce756cb0 39517 else
dae87f93
RN
39518
39519 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39520echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39521 wxUSE_GSTREAMER="no"
39522
39523 fi
39524
39525
39526
39527
39528
39529 if test "x$GST_INSPECT" == "x"; then
39530 # Extract the first word of "gst-inspect", so it can be a program name with args.
39531set dummy gst-inspect; ac_word=$2
39532echo "$as_me:$LINENO: checking for $ac_word" >&5
39533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39534if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39535 echo $ECHO_N "(cached) $ECHO_C" >&6
39536else
39537 if test -n "$GST_INSPECT"; then
39538 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39539else
39540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39541for as_dir in $PATH
39542do
39543 IFS=$as_save_IFS
39544 test -z "$as_dir" && as_dir=.
39545 for ac_exec_ext in '' $ac_executable_extensions; do
39546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39547 ac_cv_prog_GST_INSPECT="gst-inspect"
39548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39549 break 2
ce756cb0 39550 fi
dae87f93
RN
39551done
39552done
39553
39554fi
39555fi
39556GST_INSPECT=$ac_cv_prog_GST_INSPECT
39557if test -n "$GST_INSPECT"; then
39558 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39559echo "${ECHO_T}$GST_INSPECT" >&6
39560else
39561 echo "$as_me:$LINENO: result: no" >&5
39562echo "${ECHO_T}no" >&6
39563fi
39564
39565 fi
39566
39567 if test "x$GST_INSPECT" != "x"; then
39568 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39569echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39570 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39571 echo "$as_me:$LINENO: result: found." >&5
39572echo "${ECHO_T}found." >&6
ce756cb0 39573
ce756cb0 39574 else
dae87f93
RN
39575 echo "$as_me:$LINENO: result: not found." >&5
39576echo "${ECHO_T}not found." >&6
39577
39578 wxUSE_GSTREAMER="no"
39579 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39580echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39581
39582 fi
39583 fi
39584
39585
39586 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39587echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39588if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39589 echo $ECHO_N "(cached) $ECHO_C" >&6
39590else
39591 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39592/* confdefs.h. */
39593_ACEOF
39594cat confdefs.h >>conftest.$ac_ext
39595cat >>conftest.$ac_ext <<_ACEOF
39596/* end confdefs.h. */
dae87f93 39597#include <gst/gst.h>
ce756cb0 39598
dae87f93 39599#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39600_ACEOF
39601rm -f conftest.$ac_objext
39602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39603 (eval $ac_compile) 2>conftest.er1
39604 ac_status=$?
39605 grep -v '^ *+' conftest.er1 >conftest.err
39606 rm -f conftest.er1
39607 cat conftest.err >&5
39608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 (exit $ac_status); } &&
07158944 39610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39612 (eval $ac_try) 2>&5
39613 ac_status=$?
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); }; } &&
39616 { ac_try='test -s conftest.$ac_objext'
39617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39618 (eval $ac_try) 2>&5
39619 ac_status=$?
39620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39621 (exit $ac_status); }; }; then
dae87f93 39622 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39623else
39624 echo "$as_me: failed program was:" >&5
39625sed 's/^/| /' conftest.$ac_ext >&5
39626
dae87f93 39627ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39628fi
39629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39630fi
39631echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39632echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39633if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39634 :
39635else
ce756cb0 39636
dae87f93
RN
39637 wxUSE_GSTREAMER="no"
39638 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39639echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39640
dae87f93 39641fi
ce756cb0 39642
dae87f93
RN
39643
39644
39645 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39646echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39647
39648ac_find_libraries=
39649for ac_dir in $SEARCH_LIB /usr/lib;
39650 do
39651 for ac_extension in a so sl dylib; do
39652 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39653 ac_find_libraries=$ac_dir
39654 break 2
39655 fi
39656 done
39657 done
39658
ce756cb0 39659
dae87f93
RN
39660 if test "$ac_find_libraries" = "" ; then
39661 echo "$as_me:$LINENO: result: no" >&5
39662echo "${ECHO_T}no" >&6
39663 wxUSE_GSTREAMER="no"
39664 else
39665 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39666echo "${ECHO_T}yes" >&6
dae87f93 39667 fi
ce756cb0 39668
dae87f93
RN
39669 if test "$wxUSE_GSTREAMER" = "yes"; then
39670 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39671#define wxUSE_GSTREAMER 1
39672_ACEOF
39673
dae87f93
RN
39674 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39675echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39676 fi
39677 fi
39678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39679 cat >>confdefs.h <<\_ACEOF
39680#define wxUSE_MEDIACTRL 1
39681_ACEOF
39682
39683fi
39684
39685
a848cd7e
SC
39686if test "$cross_compiling" = "yes"; then
39687 OSINFO="\"$host\""
39688else
39689 OSINFO=`uname -s -r -m`
39690 OSINFO="\"$OSINFO\""
39691fi
39692
39693cat >>confdefs.h <<_ACEOF
39694#define WXWIN_OS_DESCRIPTION $OSINFO
39695_ACEOF
39696
39697
39698
39699if test "x$prefix" != "xNONE"; then
39700 wxPREFIX=$prefix
39701else
39702 wxPREFIX=$ac_default_prefix
39703fi
39704
39705cat >>confdefs.h <<_ACEOF
39706#define wxINSTALL_PREFIX "$wxPREFIX"
39707_ACEOF
39708
39709
a848cd7e
SC
39710
39711
39712CORE_BASE_LIBS="net base"
39713CORE_GUI_LIBS="adv core"
39714
39715if test "$wxUSE_XML" = "yes" ; then
39716 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39717fi
39718if test "$wxUSE_ODBC" != "no" ; then
39719 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39720 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39721fi
39722if test "$wxUSE_HTML" = "yes" ; then
39723 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39724fi
9a8f0513
VS
39725if test "$wxUSE_XRC" = "yes" ; then
39726 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39727fi
a848cd7e
SC
39728
39729if test "$wxUSE_GUI" != "yes"; then
39730 CORE_GUI_LIBS=""
39731fi
39732
39733
39734
39735
39736
39737
39738
39739
39740if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39741 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39742 if test "$USE_DARWIN" = 1; then
39743 LDFLAGS="$LDFLAGS -framework QuickTime"
39744 else
39745 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39746 fi
07bea8f0 39747 fi
5dcf30a0 39748 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39749 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39750 else
39751 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39752 fi
a848cd7e
SC
39753fi
39754if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39755 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39756 if test "$wxUSE_MEDIACTRL" = "yes"; then
39757 LDFLAGS="$LDFLAGS -framework QuickTime"
39758 fi
a848cd7e
SC
39759fi
39760
39761
39762LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39763
39764have_cos=0
39765have_floor=0
39766
39767for ac_func in cos
39768do
39769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39770echo "$as_me:$LINENO: checking for $ac_func" >&5
39771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39772if eval "test \"\${$as_ac_var+set}\" = set"; then
39773 echo $ECHO_N "(cached) $ECHO_C" >&6
39774else
39775 cat >conftest.$ac_ext <<_ACEOF
39776/* confdefs.h. */
39777_ACEOF
39778cat confdefs.h >>conftest.$ac_ext
39779cat >>conftest.$ac_ext <<_ACEOF
39780/* end confdefs.h. */
ac1cb8d3
VS
39781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39783#define $ac_func innocuous_$ac_func
39784
a848cd7e
SC
39785/* System header to define __stub macros and hopefully few prototypes,
39786 which can conflict with char $ac_func (); below.
39787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39788 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39789
a848cd7e
SC
39790#ifdef __STDC__
39791# include <limits.h>
39792#else
39793# include <assert.h>
39794#endif
ac1cb8d3
VS
39795
39796#undef $ac_func
39797
a848cd7e
SC
39798/* Override any gcc2 internal prototype to avoid an error. */
39799#ifdef __cplusplus
39800extern "C"
39801{
39802#endif
39803/* We use char because int might match the return type of a gcc2
39804 builtin and then its argument prototype would still apply. */
39805char $ac_func ();
39806/* The GNU C library defines this for functions which it implements
39807 to always fail with ENOSYS. Some functions are actually named
39808 something starting with __ and the normal name is an alias. */
39809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39810choke me
39811#else
39812char (*f) () = $ac_func;
39813#endif
39814#ifdef __cplusplus
39815}
39816#endif
39817
39818int
39819main ()
39820{
39821return f != $ac_func;
39822 ;
39823 return 0;
39824}
39825_ACEOF
39826rm -f conftest.$ac_objext conftest$ac_exeext
39827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39828 (eval $ac_link) 2>conftest.er1
a848cd7e 39829 ac_status=$?
ac1cb8d3
VS
39830 grep -v '^ *+' conftest.er1 >conftest.err
39831 rm -f conftest.er1
39832 cat conftest.err >&5
a848cd7e
SC
39833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834 (exit $ac_status); } &&
07158944 39835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39837 (eval $ac_try) 2>&5
39838 ac_status=$?
39839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840 (exit $ac_status); }; } &&
39841 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39843 (eval $ac_try) 2>&5
39844 ac_status=$?
39845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846 (exit $ac_status); }; }; then
39847 eval "$as_ac_var=yes"
39848else
39849 echo "$as_me: failed program was:" >&5
39850sed 's/^/| /' conftest.$ac_ext >&5
39851
39852eval "$as_ac_var=no"
39853fi
ac1cb8d3
VS
39854rm -f conftest.err conftest.$ac_objext \
39855 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39856fi
39857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39859if test `eval echo '${'$as_ac_var'}'` = yes; then
39860 cat >>confdefs.h <<_ACEOF
39861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39862_ACEOF
39863 have_cos=1
39864fi
39865done
39866
39867
39868for ac_func in floor
39869do
39870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39871echo "$as_me:$LINENO: checking for $ac_func" >&5
39872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39873if eval "test \"\${$as_ac_var+set}\" = set"; then
39874 echo $ECHO_N "(cached) $ECHO_C" >&6
39875else
39876 cat >conftest.$ac_ext <<_ACEOF
39877/* confdefs.h. */
39878_ACEOF
39879cat confdefs.h >>conftest.$ac_ext
39880cat >>conftest.$ac_ext <<_ACEOF
39881/* end confdefs.h. */
ac1cb8d3
VS
39882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39884#define $ac_func innocuous_$ac_func
39885
a848cd7e
SC
39886/* System header to define __stub macros and hopefully few prototypes,
39887 which can conflict with char $ac_func (); below.
39888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39889 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39890
a848cd7e
SC
39891#ifdef __STDC__
39892# include <limits.h>
39893#else
39894# include <assert.h>
39895#endif
ac1cb8d3
VS
39896
39897#undef $ac_func
39898
a848cd7e
SC
39899/* Override any gcc2 internal prototype to avoid an error. */
39900#ifdef __cplusplus
39901extern "C"
39902{
39903#endif
39904/* We use char because int might match the return type of a gcc2
39905 builtin and then its argument prototype would still apply. */
39906char $ac_func ();
39907/* The GNU C library defines this for functions which it implements
39908 to always fail with ENOSYS. Some functions are actually named
39909 something starting with __ and the normal name is an alias. */
39910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39911choke me
39912#else
39913char (*f) () = $ac_func;
39914#endif
39915#ifdef __cplusplus
39916}
39917#endif
39918
39919int
39920main ()
39921{
39922return f != $ac_func;
39923 ;
39924 return 0;
39925}
39926_ACEOF
39927rm -f conftest.$ac_objext conftest$ac_exeext
39928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39929 (eval $ac_link) 2>conftest.er1
a848cd7e 39930 ac_status=$?
ac1cb8d3
VS
39931 grep -v '^ *+' conftest.er1 >conftest.err
39932 rm -f conftest.er1
39933 cat conftest.err >&5
a848cd7e
SC
39934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935 (exit $ac_status); } &&
07158944 39936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39938 (eval $ac_try) 2>&5
39939 ac_status=$?
39940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); }; } &&
39942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39944 (eval $ac_try) 2>&5
39945 ac_status=$?
39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); }; }; then
39948 eval "$as_ac_var=yes"
39949else
39950 echo "$as_me: failed program was:" >&5
39951sed 's/^/| /' conftest.$ac_ext >&5
39952
39953eval "$as_ac_var=no"
39954fi
ac1cb8d3
VS
39955rm -f conftest.err conftest.$ac_objext \
39956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39957fi
39958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39960if test `eval echo '${'$as_ac_var'}'` = yes; then
39961 cat >>confdefs.h <<_ACEOF
39962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39963_ACEOF
39964 have_floor=1
39965fi
39966done
39967
39968echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
39969echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
39970if test "$have_cos" = 1 -a "$have_floor" = 1; then
39971 echo "$as_me:$LINENO: result: yes" >&5
39972echo "${ECHO_T}yes" >&6
39973else
39974 echo "$as_me:$LINENO: result: no" >&5
39975echo "${ECHO_T}no" >&6
39976 LIBS="$LIBS -lm"
39977 # use different functions to avoid configure caching
39978 have_sin=0
39979 have_ceil=0
39980
39981for ac_func in sin
39982do
39983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39984echo "$as_me:$LINENO: checking for $ac_func" >&5
39985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39986if eval "test \"\${$as_ac_var+set}\" = set"; then
39987 echo $ECHO_N "(cached) $ECHO_C" >&6
39988else
39989 cat >conftest.$ac_ext <<_ACEOF
39990/* confdefs.h. */
39991_ACEOF
39992cat confdefs.h >>conftest.$ac_ext
39993cat >>conftest.$ac_ext <<_ACEOF
39994/* end confdefs.h. */
ac1cb8d3
VS
39995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39997#define $ac_func innocuous_$ac_func
39998
a848cd7e
SC
39999/* System header to define __stub macros and hopefully few prototypes,
40000 which can conflict with char $ac_func (); below.
40001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40002 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40003
a848cd7e
SC
40004#ifdef __STDC__
40005# include <limits.h>
40006#else
40007# include <assert.h>
40008#endif
ac1cb8d3
VS
40009
40010#undef $ac_func
40011
a848cd7e
SC
40012/* Override any gcc2 internal prototype to avoid an error. */
40013#ifdef __cplusplus
40014extern "C"
40015{
40016#endif
40017/* We use char because int might match the return type of a gcc2
40018 builtin and then its argument prototype would still apply. */
40019char $ac_func ();
40020/* The GNU C library defines this for functions which it implements
40021 to always fail with ENOSYS. Some functions are actually named
40022 something starting with __ and the normal name is an alias. */
40023#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40024choke me
40025#else
40026char (*f) () = $ac_func;
40027#endif
40028#ifdef __cplusplus
40029}
40030#endif
40031
40032int
40033main ()
40034{
40035return f != $ac_func;
40036 ;
40037 return 0;
40038}
40039_ACEOF
40040rm -f conftest.$ac_objext conftest$ac_exeext
40041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40042 (eval $ac_link) 2>conftest.er1
a848cd7e 40043 ac_status=$?
ac1cb8d3
VS
40044 grep -v '^ *+' conftest.er1 >conftest.err
40045 rm -f conftest.er1
40046 cat conftest.err >&5
a848cd7e
SC
40047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048 (exit $ac_status); } &&
07158944 40049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051 (eval $ac_try) 2>&5
40052 ac_status=$?
40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 (exit $ac_status); }; } &&
40055 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057 (eval $ac_try) 2>&5
40058 ac_status=$?
40059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 (exit $ac_status); }; }; then
40061 eval "$as_ac_var=yes"
40062else
40063 echo "$as_me: failed program was:" >&5
40064sed 's/^/| /' conftest.$ac_ext >&5
40065
40066eval "$as_ac_var=no"
40067fi
ac1cb8d3
VS
40068rm -f conftest.err conftest.$ac_objext \
40069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40070fi
40071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40073if test `eval echo '${'$as_ac_var'}'` = yes; then
40074 cat >>confdefs.h <<_ACEOF
40075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40076_ACEOF
40077 have_sin=1
40078fi
40079done
40080
40081
40082for ac_func in ceil
40083do
40084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40085echo "$as_me:$LINENO: checking for $ac_func" >&5
40086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40087if eval "test \"\${$as_ac_var+set}\" = set"; then
40088 echo $ECHO_N "(cached) $ECHO_C" >&6
40089else
40090 cat >conftest.$ac_ext <<_ACEOF
40091/* confdefs.h. */
40092_ACEOF
40093cat confdefs.h >>conftest.$ac_ext
40094cat >>conftest.$ac_ext <<_ACEOF
40095/* end confdefs.h. */
ac1cb8d3
VS
40096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40098#define $ac_func innocuous_$ac_func
40099
a848cd7e
SC
40100/* System header to define __stub macros and hopefully few prototypes,
40101 which can conflict with char $ac_func (); below.
40102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40103 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40104
a848cd7e
SC
40105#ifdef __STDC__
40106# include <limits.h>
40107#else
40108# include <assert.h>
40109#endif
ac1cb8d3
VS
40110
40111#undef $ac_func
40112
a848cd7e
SC
40113/* Override any gcc2 internal prototype to avoid an error. */
40114#ifdef __cplusplus
40115extern "C"
40116{
40117#endif
40118/* We use char because int might match the return type of a gcc2
40119 builtin and then its argument prototype would still apply. */
40120char $ac_func ();
40121/* The GNU C library defines this for functions which it implements
40122 to always fail with ENOSYS. Some functions are actually named
40123 something starting with __ and the normal name is an alias. */
40124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40125choke me
40126#else
40127char (*f) () = $ac_func;
40128#endif
40129#ifdef __cplusplus
40130}
40131#endif
40132
40133int
40134main ()
40135{
40136return f != $ac_func;
40137 ;
40138 return 0;
40139}
40140_ACEOF
40141rm -f conftest.$ac_objext conftest$ac_exeext
40142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40143 (eval $ac_link) 2>conftest.er1
a848cd7e 40144 ac_status=$?
ac1cb8d3
VS
40145 grep -v '^ *+' conftest.er1 >conftest.err
40146 rm -f conftest.er1
40147 cat conftest.err >&5
a848cd7e
SC
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149 (exit $ac_status); } &&
07158944 40150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40152 (eval $ac_try) 2>&5
40153 ac_status=$?
40154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155 (exit $ac_status); }; } &&
40156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40158 (eval $ac_try) 2>&5
40159 ac_status=$?
40160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40161 (exit $ac_status); }; }; then
40162 eval "$as_ac_var=yes"
40163else
40164 echo "$as_me: failed program was:" >&5
40165sed 's/^/| /' conftest.$ac_ext >&5
40166
40167eval "$as_ac_var=no"
40168fi
ac1cb8d3
VS
40169rm -f conftest.err conftest.$ac_objext \
40170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40171fi
40172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40173echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40174if test `eval echo '${'$as_ac_var'}'` = yes; then
40175 cat >>confdefs.h <<_ACEOF
40176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40177_ACEOF
40178 have_ceil=1
40179fi
40180done
40181
40182 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40183echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40184 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40185 echo "$as_me:$LINENO: result: yes" >&5
40186echo "${ECHO_T}yes" >&6
40187 else
40188 echo "$as_me:$LINENO: result: no" >&5
40189echo "${ECHO_T}no" >&6
40190 # not sure we should warn the user, crash, etc.
40191 fi
40192fi
40193
40194if test "$wxUSE_GUI" = "yes"; then
40195
40196
8bce5cda
MW
40197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40198 dynamic erase event exec font image minimal mobile \
40199 mobile/wxedit mobile/styles propsize render \
40200 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40201
40202 if test "$wxUSE_MONOLITHIC" != "yes"; then
40203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40204 fi
0b78747f 40205 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40207 if test "$wxUSE_UNIVERSAL" != "yes"; then
40208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40209 fi
40210 fi
40211 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40212 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40213 fi
a848cd7e
SC
40214else
40215 SAMPLES_SUBDIRS="console"
40216fi
40217
40218
ceec2216 40219INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40220-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40221
40222if test "$GXX" = yes ; then
5294a27e
VZ
40223 CWARNINGS="-Wall"
40224 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40225 fi
40226
40227EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40228
0c3c69fc 40229CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40230CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40231CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40232
95986553
DE
40233if test "x$MWCC" = "xyes"; then
40234
40235 CC="$CC -cwd source -I-"
40236 CXX="$CXX -cwd source -I-"
40237fi
40238
a848cd7e 40239
0c3c69fc 40240LIBS=`echo $LIBS`
a848cd7e
SC
40241EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40242EXTRALIBS_XML="$EXPAT_LINK"
40243EXTRALIBS_HTML="$MSPACK_LINK"
40244EXTRALIBS_ODBC="$ODBC_LINK"
40245if test "$wxUSE_GUI" = "yes"; then
2e350179 40246 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40247fi
40248if test "$wxUSE_OPENGL" = "yes"; then
40249 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40250fi
40251
40252LDFLAGS="$LDFLAGS $PROFILE"
40253
40254if test "$wxUSE_GTK" = 1; then
40255 WXCONFIG_INCLUDE=
40256else
40257 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40258fi
40259
40260WXCONFIG_EXTRALIBS="$LIBS"
40261
40262if test "$wxUSE_REGEX" = "builtin" ; then
40263 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
40264fi
40265if test "$wxUSE_EXPAT" = "builtin" ; then
40266 wxconfig_3rdparty="$wxconfig_3rdparty expat"
40267fi
40268if test "$wxUSE_ODBC" = "builtin" ; then
40269 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40270fi
40271if test "$wxUSE_LIBTIFF" = "builtin" ; then
40272 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
40273fi
40274if test "$wxUSE_LIBJPEG" = "builtin" ; then
40275 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
40276fi
40277if test "$wxUSE_LIBPNG" = "builtin" ; then
40278 wxconfig_3rdparty="$wxconfig_3rdparty png"
40279fi
40280if test "$wxUSE_ZLIB" = "builtin" ; then
40281 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
40282fi
40283if test "$wxUSE_ODBC" = "builtin" ; then
40284 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40285fi
40286
40287for i in $wxconfig_3rdparty ; do
ceec2216 40288 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
40289done
40290
40291
40292if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40293 WXUNIV=1
40294else
40295 WXUNIV=0
40296fi
40297
40298
40299
40300
40301
40302
40303
40304
40305
40306if test $wxUSE_MONOLITHIC = "yes" ; then
40307 MONOLITHIC=1
40308else
40309 MONOLITHIC=0
40310fi
40311
40312if test $wxUSE_PLUGINS = "yes" ; then
40313 USE_PLUGINS=1
40314else
40315 USE_PLUGINS=0
40316fi
40317
40318if test $wxUSE_ODBC != "no" ; then
40319 USE_ODBC=1
40320else
40321 USE_ODBC=0
40322fi
40323
40324if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40325 OFFICIAL_BUILD=1
40326else
40327 OFFICIAL_BUILD=0
40328fi
40329
40330
40331
40332
40333
40334
40335
40336
40337
40338
40339
40340
40341
40342
40343
40344
40345
40346
40347
ceec2216 40348
d1c38808 40349
a848cd7e
SC
40350
40351
40352TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40353
40354
40355
40356
40357
40358
40359
40360
4d4ff94c
VZ
40361case "$TOOLKIT" in
40362 GTK)
40363 TOOLKIT_USER="GTK+"
40364 if test "$WXGTK20" = 1; then
40365 TOOLKIT_USER="$TOOLKIT_USER 2"
40366 fi
9a8f0513 40367 ;;
4d4ff94c
VZ
40368
40369 *)
40370 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40371 ;;
4d4ff94c 40372esac
a848cd7e 40373
9a8f0513 40374
1e9e8aba
DE
40375
40376
a848cd7e
SC
40377 if test "x$BAKEFILE_HOST" = "x"; then
40378 BAKEFILE_HOST="${host}"
40379 fi
40380
40381 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40382
40383 if test -n "$ac_tool_prefix"; then
40384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40385set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40386echo "$as_me:$LINENO: checking for $ac_word" >&5
40387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40388if test "${ac_cv_prog_RANLIB+set}" = set; then
40389 echo $ECHO_N "(cached) $ECHO_C" >&6
40390else
40391 if test -n "$RANLIB"; then
40392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40393else
40394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40395for as_dir in $PATH
40396do
40397 IFS=$as_save_IFS
40398 test -z "$as_dir" && as_dir=.
40399 for ac_exec_ext in '' $ac_executable_extensions; do
40400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40403 break 2
40404 fi
40405done
40406done
40407
40408fi
40409fi
40410RANLIB=$ac_cv_prog_RANLIB
40411if test -n "$RANLIB"; then
40412 echo "$as_me:$LINENO: result: $RANLIB" >&5
40413echo "${ECHO_T}$RANLIB" >&6
40414else
40415 echo "$as_me:$LINENO: result: no" >&5
40416echo "${ECHO_T}no" >&6
40417fi
40418
40419fi
40420if test -z "$ac_cv_prog_RANLIB"; then
40421 ac_ct_RANLIB=$RANLIB
40422 # Extract the first word of "ranlib", so it can be a program name with args.
40423set dummy ranlib; ac_word=$2
40424echo "$as_me:$LINENO: checking for $ac_word" >&5
40425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40426if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40427 echo $ECHO_N "(cached) $ECHO_C" >&6
40428else
40429 if test -n "$ac_ct_RANLIB"; then
40430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40431else
40432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40433for as_dir in $PATH
40434do
40435 IFS=$as_save_IFS
40436 test -z "$as_dir" && as_dir=.
40437 for ac_exec_ext in '' $ac_executable_extensions; do
40438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40439 ac_cv_prog_ac_ct_RANLIB="ranlib"
40440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40441 break 2
40442 fi
40443done
40444done
40445
40446 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40447fi
40448fi
40449ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40450if test -n "$ac_ct_RANLIB"; then
40451 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40452echo "${ECHO_T}$ac_ct_RANLIB" >&6
40453else
40454 echo "$as_me:$LINENO: result: no" >&5
40455echo "${ECHO_T}no" >&6
40456fi
40457
40458 RANLIB=$ac_ct_RANLIB
40459else
40460 RANLIB="$ac_cv_prog_RANLIB"
40461fi
40462
40463 # Find a good install program. We prefer a C program (faster),
40464# so one script is as good as another. But avoid the broken or
40465# incompatible versions:
40466# SysV /etc/install, /usr/sbin/install
40467# SunOS /usr/etc/install
40468# IRIX /sbin/install
40469# AIX /bin/install
40470# AmigaOS /C/install, which installs bootblocks on floppy discs
40471# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40472# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40473# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40474# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40475# ./install, which can be erroneously created by make from ./install.sh.
40476echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40477echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40478if test -z "$INSTALL"; then
40479if test "${ac_cv_path_install+set}" = set; then
40480 echo $ECHO_N "(cached) $ECHO_C" >&6
40481else
40482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40483for as_dir in $PATH
40484do
40485 IFS=$as_save_IFS
40486 test -z "$as_dir" && as_dir=.
40487 # Account for people who put trailing slashes in PATH elements.
40488case $as_dir/ in
40489 ./ | .// | /cC/* | \
40490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40491 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40492 /usr/ucb/* ) ;;
40493 *)
40494 # OSF1 and SCO ODT 3.0 have their own names for install.
40495 # Don't use installbsd from OSF since it installs stuff as root
40496 # by default.
40497 for ac_prog in ginstall scoinst install; do
40498 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40500 if test $ac_prog = install &&
40501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40502 # AIX install. It has an incompatible calling convention.
40503 :
40504 elif test $ac_prog = install &&
40505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40506 # program-specific install script used by HP pwplus--don't use.
40507 :
40508 else
40509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40510 break 3
40511 fi
40512 fi
a848cd7e
SC
40513 done
40514 done
40515 ;;
40516esac
40517done
40518
40519
40520fi
40521 if test "${ac_cv_path_install+set}" = set; then
40522 INSTALL=$ac_cv_path_install
40523 else
40524 # As a last resort, use the slow shell script. We don't cache a
40525 # path for INSTALL within a source directory, because that will
40526 # break other packages using the cache if that directory is
40527 # removed, or if the path is relative.
40528 INSTALL=$ac_install_sh
40529 fi
40530fi
40531echo "$as_me:$LINENO: result: $INSTALL" >&5
40532echo "${ECHO_T}$INSTALL" >&6
40533
40534# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40535# It thinks the first close brace ends the variable substitution.
40536test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40537
40538test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40539
40540test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40541
40542 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40543echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40544LN_S=$as_ln_s
40545if test "$LN_S" = "ln -s"; then
40546 echo "$as_me:$LINENO: result: yes" >&5
40547echo "${ECHO_T}yes" >&6
40548else
40549 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40550echo "${ECHO_T}no, using $LN_S" >&6
40551fi
40552
40553
40554 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40555echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40556set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40557if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40558 echo $ECHO_N "(cached) $ECHO_C" >&6
40559else
40560 cat >conftest.make <<\_ACEOF
40561all:
40562 @echo 'ac_maketemp="$(MAKE)"'
40563_ACEOF
40564# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40565eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40566if test -n "$ac_maketemp"; then
40567 eval ac_cv_prog_make_${ac_make}_set=yes
40568else
40569 eval ac_cv_prog_make_${ac_make}_set=no
40570fi
40571rm -f conftest.make
40572fi
40573if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40574 echo "$as_me:$LINENO: result: yes" >&5
40575echo "${ECHO_T}yes" >&6
40576 SET_MAKE=
40577else
40578 echo "$as_me:$LINENO: result: no" >&5
40579echo "${ECHO_T}no" >&6
40580 SET_MAKE="MAKE=${MAKE-make}"
40581fi
40582
40583
40584
40585 if test -n "$ac_tool_prefix"; then
40586 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40587set dummy ${ac_tool_prefix}ar; ac_word=$2
40588echo "$as_me:$LINENO: checking for $ac_word" >&5
40589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40590if test "${ac_cv_prog_AR+set}" = set; then
40591 echo $ECHO_N "(cached) $ECHO_C" >&6
40592else
40593 if test -n "$AR"; then
40594 ac_cv_prog_AR="$AR" # Let the user override the test.
40595else
40596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40597for as_dir in $PATH
40598do
40599 IFS=$as_save_IFS
40600 test -z "$as_dir" && as_dir=.
40601 for ac_exec_ext in '' $ac_executable_extensions; do
40602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40603 ac_cv_prog_AR="${ac_tool_prefix}ar"
40604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40605 break 2
40606 fi
40607done
40608done
40609
40610fi
40611fi
40612AR=$ac_cv_prog_AR
40613if test -n "$AR"; then
40614 echo "$as_me:$LINENO: result: $AR" >&5
40615echo "${ECHO_T}$AR" >&6
40616else
40617 echo "$as_me:$LINENO: result: no" >&5
40618echo "${ECHO_T}no" >&6
40619fi
40620
40621fi
40622if test -z "$ac_cv_prog_AR"; then
40623 ac_ct_AR=$AR
40624 # Extract the first word of "ar", so it can be a program name with args.
40625set dummy ar; ac_word=$2
40626echo "$as_me:$LINENO: checking for $ac_word" >&5
40627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40628if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40629 echo $ECHO_N "(cached) $ECHO_C" >&6
40630else
40631 if test -n "$ac_ct_AR"; then
40632 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40633else
40634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40635for as_dir in $PATH
40636do
40637 IFS=$as_save_IFS
40638 test -z "$as_dir" && as_dir=.
40639 for ac_exec_ext in '' $ac_executable_extensions; do
40640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40641 ac_cv_prog_ac_ct_AR="ar"
40642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40643 break 2
40644 fi
40645done
40646done
40647
40648 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40649fi
40650fi
40651ac_ct_AR=$ac_cv_prog_ac_ct_AR
40652if test -n "$ac_ct_AR"; then
40653 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40654echo "${ECHO_T}$ac_ct_AR" >&6
40655else
40656 echo "$as_me:$LINENO: result: no" >&5
40657echo "${ECHO_T}no" >&6
40658fi
40659
40660 AR=$ac_ct_AR
40661else
40662 AR="$ac_cv_prog_AR"
40663fi
40664
40665 if test -n "$ac_tool_prefix"; then
40666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40667set dummy ${ac_tool_prefix}strip; ac_word=$2
40668echo "$as_me:$LINENO: checking for $ac_word" >&5
40669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40670if test "${ac_cv_prog_STRIP+set}" = set; then
40671 echo $ECHO_N "(cached) $ECHO_C" >&6
40672else
40673 if test -n "$STRIP"; then
40674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40675else
40676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40677for as_dir in $PATH
40678do
40679 IFS=$as_save_IFS
40680 test -z "$as_dir" && as_dir=.
40681 for ac_exec_ext in '' $ac_executable_extensions; do
40682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40685 break 2
40686 fi
40687done
40688done
40689
40690fi
40691fi
40692STRIP=$ac_cv_prog_STRIP
40693if test -n "$STRIP"; then
40694 echo "$as_me:$LINENO: result: $STRIP" >&5
40695echo "${ECHO_T}$STRIP" >&6
40696else
40697 echo "$as_me:$LINENO: result: no" >&5
40698echo "${ECHO_T}no" >&6
40699fi
40700
40701fi
40702if test -z "$ac_cv_prog_STRIP"; then
40703 ac_ct_STRIP=$STRIP
40704 # Extract the first word of "strip", so it can be a program name with args.
40705set dummy strip; ac_word=$2
40706echo "$as_me:$LINENO: checking for $ac_word" >&5
40707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40708if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40709 echo $ECHO_N "(cached) $ECHO_C" >&6
40710else
40711 if test -n "$ac_ct_STRIP"; then
40712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40713else
40714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40715for as_dir in $PATH
40716do
40717 IFS=$as_save_IFS
40718 test -z "$as_dir" && as_dir=.
40719 for ac_exec_ext in '' $ac_executable_extensions; do
40720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40721 ac_cv_prog_ac_ct_STRIP="strip"
40722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40723 break 2
40724 fi
40725done
40726done
40727
40728 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40729fi
40730fi
40731ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40732if test -n "$ac_ct_STRIP"; then
40733 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40734echo "${ECHO_T}$ac_ct_STRIP" >&6
40735else
40736 echo "$as_me:$LINENO: result: no" >&5
40737echo "${ECHO_T}no" >&6
40738fi
40739
40740 STRIP=$ac_ct_STRIP
40741else
40742 STRIP="$ac_cv_prog_STRIP"
40743fi
40744
40745 if test -n "$ac_tool_prefix"; then
40746 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40747set dummy ${ac_tool_prefix}nm; ac_word=$2
40748echo "$as_me:$LINENO: checking for $ac_word" >&5
40749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40750if test "${ac_cv_prog_NM+set}" = set; then
40751 echo $ECHO_N "(cached) $ECHO_C" >&6
40752else
40753 if test -n "$NM"; then
40754 ac_cv_prog_NM="$NM" # Let the user override the test.
40755else
40756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40757for as_dir in $PATH
40758do
40759 IFS=$as_save_IFS
40760 test -z "$as_dir" && as_dir=.
40761 for ac_exec_ext in '' $ac_executable_extensions; do
40762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40763 ac_cv_prog_NM="${ac_tool_prefix}nm"
40764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40765 break 2
40766 fi
40767done
40768done
40769
40770fi
40771fi
40772NM=$ac_cv_prog_NM
40773if test -n "$NM"; then
40774 echo "$as_me:$LINENO: result: $NM" >&5
40775echo "${ECHO_T}$NM" >&6
40776else
40777 echo "$as_me:$LINENO: result: no" >&5
40778echo "${ECHO_T}no" >&6
40779fi
40780
40781fi
40782if test -z "$ac_cv_prog_NM"; then
40783 ac_ct_NM=$NM
40784 # Extract the first word of "nm", so it can be a program name with args.
40785set dummy nm; ac_word=$2
40786echo "$as_me:$LINENO: checking for $ac_word" >&5
40787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40788if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40789 echo $ECHO_N "(cached) $ECHO_C" >&6
40790else
40791 if test -n "$ac_ct_NM"; then
40792 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40793else
40794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40795for as_dir in $PATH
40796do
40797 IFS=$as_save_IFS
40798 test -z "$as_dir" && as_dir=.
40799 for ac_exec_ext in '' $ac_executable_extensions; do
40800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40801 ac_cv_prog_ac_ct_NM="nm"
40802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40803 break 2
40804 fi
40805done
40806done
40807
40808 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40809fi
40810fi
40811ac_ct_NM=$ac_cv_prog_ac_ct_NM
40812if test -n "$ac_ct_NM"; then
40813 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40814echo "${ECHO_T}$ac_ct_NM" >&6
40815else
40816 echo "$as_me:$LINENO: result: no" >&5
40817echo "${ECHO_T}no" >&6
40818fi
40819
40820 NM=$ac_ct_NM
40821else
40822 NM="$ac_cv_prog_NM"
40823fi
40824
40825
40826 case ${BAKEFILE_HOST} in
40827 *-hp-hpux* )
1e9e8aba 40828 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40829 ;;
40830 *) INSTALL_DIR="$INSTALL -d"
40831 ;;
40832 esac
40833
40834
40835 LDFLAGS_GUI=
40836 case ${BAKEFILE_HOST} in
40837 *-*-cygwin* | *-*-mingw32* )
40838 LDFLAGS_GUI="-mwindows"
40839 esac
40840
40841
40842 fi
40843
40844 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40845echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40846if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40847 echo $ECHO_N "(cached) $ECHO_C" >&6
40848else
40849
40850 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
40851 egrep -s GNU > /dev/null); then
40852 bakefile_cv_prog_makeisgnu="yes"
40853 else
40854 bakefile_cv_prog_makeisgnu="no"
40855 fi
40856
40857fi
40858echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
40859echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
40860
40861 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
40862 IF_GNU_MAKE=""
40863 else
40864 IF_GNU_MAKE="#"
40865 fi
40866
40867
40868
40869 PLATFORM_UNIX=0
40870 PLATFORM_WIN32=0
40871 PLATFORM_MSDOS=0
40872 PLATFORM_MAC=0
1e9e8aba 40873 PLATFORM_MACOS=0
a848cd7e
SC
40874 PLATFORM_MACOSX=0
40875 PLATFORM_OS2=0
1e9e8aba 40876 PLATFORM_BEOS=0
a848cd7e
SC
40877
40878 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
40879 case "${BAKEFILE_HOST}" in
40880 *-*-cygwin* | *-*-mingw32* )
40881 PLATFORM_WIN32=1
40882 ;;
40883 *-pc-msdosdjgpp )
40884 PLATFORM_MSDOS=1
40885 ;;
40886 *-pc-os2_emx | *-pc-os2-emx )
40887 PLATFORM_OS2=1
40888 ;;
40889 powerpc-*-darwin* )
40890 PLATFORM_MAC=1
40891 PLATFORM_MACOSX=1
40892 ;;
1e9e8aba
DE
40893 *-*-beos* )
40894 PLATFORM_BEOS=1
40895 ;;
40896 powerpc-apple-macos* )
40897 PLATFORM_MAC=1
40898 PLATFORM_MACOS=1
40899 ;;
a848cd7e
SC
40900 * )
40901 PLATFORM_UNIX=1
40902 ;;
40903 esac
40904 else
40905 case "$BAKEFILE_FORCE_PLATFORM" in
40906 win32 )
40907 PLATFORM_WIN32=1
40908 ;;
40909 msdos )
40910 PLATFORM_MSDOS=1
40911 ;;
40912 os2 )
40913 PLATFORM_OS2=1
40914 ;;
40915 darwin )
40916 PLATFORM_MAC=1
40917 PLATFORM_MACOSX=1
40918 ;;
40919 unix )
40920 PLATFORM_UNIX=1
40921 ;;
1e9e8aba
DE
40922 beos )
40923 PLATFORM_BEOS=1
40924 ;;
a848cd7e
SC
40925 * )
40926 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
40927echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
40928 { (exit 1); exit 1; }; }
40929 ;;
40930 esac
40931 fi
40932
40933
40934
40935
40936
40937
40938
40939
40940
1e9e8aba
DE
40941
40942
a848cd7e
SC
40943 # Check whether --enable-omf or --disable-omf was given.
40944if test "${enable_omf+set}" = set; then
40945 enableval="$enable_omf"
40946 bk_os2_use_omf="$enableval"
40947fi;
40948
40949 case "${BAKEFILE_HOST}" in
40950 *-*-darwin* )
40951 CFLAGS="$CFLAGS -fno-common"
40952 CXXFLAGS="$CXXFLAGS -fno-common"
40953 ;;
40954
40955 *-pc-os2_emx | *-pc-os2-emx )
40956 if test "x$bk_os2_use_omf" = "xyes" ; then
40957 AR=emxomfar
40958 RANLIB=:
40959 LDFLAGS="-Zomf $LDFLAGS"
40960 CFLAGS="-Zomf $CFLAGS"
40961 CXXFLAGS="-Zomf $CXXFLAGS"
40962 OS2_LIBEXT="lib"
40963 else
40964 OS2_LIBEXT="a"
40965 fi
40966 ;;
1e9e8aba
DE
40967
40968 i*86-*-beos* )
40969 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
40970 ;;
a848cd7e
SC
40971 esac
40972
40973
40974 SO_SUFFIX="so"
40975 SO_SUFFIX_MODULE="so"
40976 EXEEXT=""
40977 LIBPREFIX="lib"
40978 LIBEXT=".a"
40979 DLLPREFIX="lib"
40980 DLLPREFIX_MODULE=""
40981 DLLIMP_SUFFIX=""
40982
40983 case "${BAKEFILE_HOST}" in
40984 *-hp-hpux* )
40985 SO_SUFFIX="sl"
40986 SO_SUFFIX_MODULE="sl"
40987 ;;
40988 *-*-aix* )
40989 SO_SUFFIX="a"
40990 SO_SUFFIX_MODULE="a"
40991 ;;
40992 *-*-cygwin* | *-*-mingw32* )
40993 SO_SUFFIX="dll"
40994 SO_SUFFIX_MODULE="dll"
40995 DLLIMP_SUFFIX="dll.a"
40996 EXEEXT=".exe"
40997 DLLPREFIX=""
40998 ;;
40999 *-pc-msdosdjgpp )
41000 EXEEXT=".exe"
41001 DLLPREFIX=""
41002 ;;
41003 *-pc-os2_emx | *-pc-os2-emx )
41004 SO_SUFFIX="dll"
41005 SO_SUFFIX_MODULE="dll"
41006 DLLIMP_SUFFIX=$OS2_LIBEXT
41007 EXEEXT=".exe"
41008 DLLPREFIX=""
41009 LIBPREFIX=""
41010 LIBEXT=".$OS2_LIBEXT"
41011 ;;
41012 powerpc-*-darwin* )
41013 SO_SUFFIX="dylib"
41014 SO_SUFFIX_MODULE="bundle"
41015 ;;
41016 esac
41017
41018 if test "x$DLLIMP_SUFFIX" = "x" ; then
41019 DLLIMP_SUFFIX="$SO_SUFFIX"
41020 fi
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
1e9e8aba
DE
41032 PIC_FLAG=""
41033 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41034 PIC_FLAG="-fPIC"
41035 fi
41036
1e9e8aba
DE
41037 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41038 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41039
a848cd7e
SC
41040 case "${BAKEFILE_HOST}" in
41041 *-hp-hpux* )
1e9e8aba 41042 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41043 LDFLAGS="$LDFLAGS -L/usr/lib"
41044
41045 SHARED_LD_CC="${CC} -b -o"
41046 SHARED_LD_CXX="${CXX} -b -o"
41047 PIC_FLAG="+Z"
41048 fi
41049 ;;
41050
41051 *-*-linux* )
41052 if test "x$GCC" != "xyes"; then
41053 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41054echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41055if test "${bakefile_cv_prog_icc+set}" = set; then
41056 echo $ECHO_N "(cached) $ECHO_C" >&6
41057else
41058
41059 cat >conftest.$ac_ext <<_ACEOF
41060/* confdefs.h. */
41061_ACEOF
41062cat confdefs.h >>conftest.$ac_ext
41063cat >>conftest.$ac_ext <<_ACEOF
41064/* end confdefs.h. */
41065
41066int
41067main ()
41068{
41069
41070 #ifndef __INTEL_COMPILER
41071 #error Not icc
41072 #endif
41073
41074 ;
41075 return 0;
41076}
41077_ACEOF
41078rm -f conftest.$ac_objext
41079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41080 (eval $ac_compile) 2>conftest.er1
a848cd7e 41081 ac_status=$?
ac1cb8d3
VS
41082 grep -v '^ *+' conftest.er1 >conftest.err
41083 rm -f conftest.er1
41084 cat conftest.err >&5
a848cd7e
SC
41085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41086 (exit $ac_status); } &&
07158944 41087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41089 (eval $ac_try) 2>&5
41090 ac_status=$?
41091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41092 (exit $ac_status); }; } &&
41093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41095 (eval $ac_try) 2>&5
41096 ac_status=$?
41097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41098 (exit $ac_status); }; }; then
41099 bakefile_cv_prog_icc=yes
41100else
41101 echo "$as_me: failed program was:" >&5
41102sed 's/^/| /' conftest.$ac_ext >&5
41103
41104bakefile_cv_prog_icc=no
41105
41106fi
ac1cb8d3 41107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41108
41109fi
41110echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41111echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41112 if test "$bakefile_cv_prog_icc" = "yes"; then
41113 PIC_FLAG="-KPIC"
41114 fi
41115 fi
41116 ;;
41117
41118 *-*-solaris2* )
41119 if test "x$GCC" != xyes ; then
41120 SHARED_LD_CC="${CC} -G -o"
41121 SHARED_LD_CXX="${CXX} -G -o"
41122 PIC_FLAG="-KPIC"
41123 fi
41124 ;;
41125
41126 *-*-darwin* )
41127
41128 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41129echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41130if test "${wx_cv_gcc31+set}" = set; then
41131 echo $ECHO_N "(cached) $ECHO_C" >&6
41132else
41133
41134 cat >conftest.$ac_ext <<_ACEOF
41135/* confdefs.h. */
41136_ACEOF
41137cat confdefs.h >>conftest.$ac_ext
41138cat >>conftest.$ac_ext <<_ACEOF
41139/* end confdefs.h. */
41140
41141int
41142main ()
41143{
41144
41145 #if (__GNUC__ < 3) || \
41146 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41147 #error old gcc
41148 #endif
41149
41150 ;
41151 return 0;
41152}
41153_ACEOF
41154rm -f conftest.$ac_objext
41155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41156 (eval $ac_compile) 2>conftest.er1
a848cd7e 41157 ac_status=$?
ac1cb8d3
VS
41158 grep -v '^ *+' conftest.er1 >conftest.err
41159 rm -f conftest.er1
41160 cat conftest.err >&5
a848cd7e
SC
41161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162 (exit $ac_status); } &&
07158944 41163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41165 (eval $ac_try) 2>&5
41166 ac_status=$?
41167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168 (exit $ac_status); }; } &&
41169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41171 (eval $ac_try) 2>&5
41172 ac_status=$?
41173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41174 (exit $ac_status); }; }; then
41175
41176 wx_cv_gcc31=yes
41177
41178else
41179 echo "$as_me: failed program was:" >&5
41180sed 's/^/| /' conftest.$ac_ext >&5
41181
41182
41183 wx_cv_gcc31=no
41184
41185
41186fi
ac1cb8d3 41187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41188
41189fi
41190echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41191echo "${ECHO_T}$wx_cv_gcc31" >&6
41192 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41193
41194D='$'
41195cat <<EOF >shared-ld-sh
a848cd7e
SC
41196#!/bin/sh
41197#-----------------------------------------------------------------------------
41198#-- Name: distrib/mac/shared-ld-sh
41199#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41200#-- Author: Gilles Depeyrot
41201#-- Copyright: (c) 2002 Gilles Depeyrot
41202#-- Licence: any use permitted
41203#-----------------------------------------------------------------------------
41204
41205verbose=0
41206args=""
41207objects=""
41208linking_flag="-dynamiclib"
41209
473276a9
VS
41210while test ${D}# -gt 0; do
41211 case ${D}1 in
a848cd7e
SC
41212
41213 -v)
41214 verbose=1
41215 ;;
41216
41217 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41218 # collect these options and values
473276a9 41219 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41220 shift
41221 ;;
41222
41223 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41224 # collect these options
473276a9 41225 args="${D}{args} ${D}1"
a848cd7e
SC
41226 ;;
41227
41228 -dynamiclib|-bundle)
473276a9 41229 linking_flag="${D}1"
a848cd7e
SC
41230 ;;
41231
41232 -*)
473276a9 41233 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41234 exit 1
41235 ;;
41236
41237 *.o | *.a | *.dylib)
41238 # collect object files
473276a9 41239 objects="${D}{objects} ${D}1"
a848cd7e
SC
41240 ;;
41241
41242 *)
473276a9 41243 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41244 exit 1
41245 ;;
41246
41247 esac
41248 shift
41249done
41250
41251#
41252# Link one module containing all the others
41253#
473276a9
VS
41254if test ${D}{verbose} = 1; then
41255 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41256fi
473276a9
VS
41257c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41258status=${D}?
41259if test ${D}{status} != 0; then
41260 exit ${D}{status}
a848cd7e
SC
41261fi
41262
41263#
41264# Link the shared library from the single module created
41265#
473276a9
VS
41266if test ${D}{verbose} = 1; then
41267 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41268fi
473276a9
VS
41269c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41270status=${D}?
41271if test ${D}{status} != 0; then
41272 exit ${D}{status}
a848cd7e
SC
41273fi
41274
41275#
41276# Remove intermediate module
41277#
473276a9 41278rm -f master.${D}${D}.o
a848cd7e
SC
41279
41280exit 0
41281EOF
473276a9 41282
a848cd7e
SC
41283 chmod +x shared-ld-sh
41284
41285 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41286 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41287 SHARED_LD_CXX="$SHARED_LD_CC"
41288 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41289 else
41290 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41291 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41292 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41293 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41294 fi
41295
41296 PIC_FLAG="-dynamic -fPIC"
41297 ;;
41298
41299 *-*-aix* )
41300 if test "x$GCC" != "xyes"; then
41301 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41302set dummy makeC++SharedLib; ac_word=$2
41303echo "$as_me:$LINENO: checking for $ac_word" >&5
41304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41305if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41306 echo $ECHO_N "(cached) $ECHO_C" >&6
41307else
41308 if test -n "$AIX_CXX_LD"; then
41309 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41310else
41311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41312for as_dir in $PATH
41313do
41314 IFS=$as_save_IFS
41315 test -z "$as_dir" && as_dir=.
41316 for ac_exec_ext in '' $ac_executable_extensions; do
41317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41318 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41320 break 2
41321 fi
41322done
41323done
41324
41325 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41326fi
41327fi
41328AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41329if test -n "$AIX_CXX_LD"; then
41330 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41331echo "${ECHO_T}$AIX_CXX_LD" >&6
41332else
41333 echo "$as_me:$LINENO: result: no" >&5
41334echo "${ECHO_T}no" >&6
41335fi
41336
41337 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41338 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41339 fi
41340 ;;
41341
41342 *-*-beos* )
1e9e8aba
DE
41343 SHARED_LD_CC="${LD} -nostart -o"
41344 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41345 ;;
41346
41347 *-*-irix* )
41348 if test "x$GCC" != "xyes"; then
41349 PIC_FLAG="-KPIC"
41350 fi
41351 ;;
41352
41353 *-*-cygwin* | *-*-mingw32* )
41354 PIC_FLAG=""
1e9e8aba
DE
41355 SHARED_LD_CC="\$(CC) -shared -o"
41356 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41357 ;;
41358
41359 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41360 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41361 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41362 PIC_FLAG=""
473276a9
VS
41363
41364D='$'
41365cat <<EOF >dllar.sh
41366#!/bin/sh
41367#
41368# dllar - a tool to build both a .dll and an .a file
41369# from a set of object (.o) files for EMX/OS2.
41370#
41371# Written by Andrew Zabolotny, bit@freya.etu.ru
41372# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41373#
41374# This script will accept a set of files on the command line.
41375# All the public symbols from the .o files will be exported into
41376# a .DEF file, then linker will be run (through gcc) against them to
41377# build a shared library consisting of all given .o files. All libraries
41378# (.a) will be first decompressed into component .o files then act as
41379# described above. You can optionally give a description (-d "description")
41380# which will be put into .DLL. To see the list of accepted options (as well
41381# as command-line format) simply run this program without options. The .DLL
41382# is built to be imported by name (there is no guarantee that new versions
41383# of the library you build will have same ordinals for same symbols).
41384#
41385# dllar is free software; you can redistribute it and/or modify
41386# it under the terms of the GNU General Public License as published by
41387# the Free Software Foundation; either version 2, or (at your option)
41388# any later version.
41389#
41390# dllar is distributed in the hope that it will be useful,
41391# but WITHOUT ANY WARRANTY; without even the implied warranty of
41392# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41393# GNU General Public License for more details.
41394#
41395# You should have received a copy of the GNU General Public License
41396# along with dllar; see the file COPYING. If not, write to the Free
41397# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41398# 02111-1307, USA.
41399
41400# To successfuly run this program you will need:
41401# - Current drive should have LFN support (HPFS, ext2, network, etc)
41402# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41403# - gcc
41404# (used to build the .dll)
41405# - emxexp
41406# (used to create .def file from .o files)
41407# - emximp
41408# (used to create .a file from .def file)
41409# - GNU text utilites (cat, sort, uniq)
41410# used to process emxexp output
41411# - GNU file utilities (mv, rm)
41412# - GNU sed
41413# - lxlite (optional, see flag below)
41414# (used for general .dll cleanup)
41415#
41416
41417flag_USE_LXLITE=1;
41418
41419#
41420# helper functions
41421# basnam, variant of basename, which does _not_ remove the path, _iff_
41422# second argument (suffix to remove) is given
41423basnam(){
41424 case ${D}# in
41425 1)
1e9e8aba 41426 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41427 ;;
41428 2)
41429 echo ${D}1 | sed 's/'${D}2'${D}//'
41430 ;;
41431 *)
41432 echo "error in basnam ${D}*"
41433 exit 8
41434 ;;
41435 esac
41436}
41437
41438# Cleanup temporary files and output
41439CleanUp() {
41440 cd ${D}curDir
41441 for i in ${D}inputFiles ; do
41442 case ${D}i in
41443 *!)
41444 rm -rf \`basnam ${D}i !\`
41445 ;;
41446 *)
41447 ;;
41448 esac
41449 done
41450
41451 # Kill result in case of failure as there is just to many stupid make/nmake
41452 # things out there which doesn't do this.
1e9e8aba 41453 if [ ${D}# -eq 0 ]; then
473276a9
VS
41454 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41455 fi
41456}
41457
41458# Print usage and exit script with rc=1.
41459PrintHelp() {
b1d22ded
DE
41460 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41461 echo ' [-name-mangler-script script.sh]'
41462 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41463 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41464 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41465 echo ' [*.o] [*.a]'
473276a9
VS
41466 echo '*> "output_file" should have no extension.'
41467 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41468 echo ' The import library name is derived from this and is set to "name".a,'
41469 echo ' unless overridden by -import'
41470 echo '*> "importlib_name" should have no extension.'
41471 echo ' If it has the .o, or .a extension, it is automatically removed.'
41472 echo ' This name is used as the import library name and may be longer and'
41473 echo ' more descriptive than the DLL name which has to follow the old '
41474 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41475 echo '*> "script.sh may be given to override the output_file name by a'
41476 echo ' different name. It is mainly useful if the regular make process'
41477 echo ' of some package does not take into account OS/2 restriction of'
41478 echo ' DLL name lengths. It takes the importlib name as input and is'
41479 echo ' supposed to procude a shorter name as output. The script should'
41480 echo ' expect to get importlib_name without extension and should produce'
41481 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41482 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41483 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41484 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41485 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41486 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41487 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41488 echo ' If the last character of a symbol is "*", all symbols beginning'
41489 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41490 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41491 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41492 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41493 echo ' C runtime DLLs.'
b1d22ded 41494 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41495 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41496 echo ' unchanged to GCC at the end of command line.'
41497 echo '*> If you create a DLL from a library and you do not specify -o,'
41498 echo ' the basename for DLL and import library will be set to library name,'
41499 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41500 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41501 echo ' library will be renamed into gcc_s.a.'
41502 echo '--------'
41503 echo 'Example:'
41504 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41505 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41506 CleanUp
41507 exit 1
41508}
41509
41510# Execute a command.
41511# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41512# @Uses Whatever CleanUp() uses.
41513doCommand() {
41514 echo "${D}*"
41515 eval ${D}*
41516 rcCmd=${D}?
41517
1e9e8aba 41518 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41519 echo "command failed, exit code="${D}rcCmd
41520 CleanUp
41521 exit ${D}rcCmd
41522 fi
41523}
41524
41525# main routine
41526# setup globals
41527cmdLine=${D}*
41528outFile=""
41529outimpFile=""
41530inputFiles=""
b1d22ded 41531renameScript=""
473276a9
VS
41532description=""
41533CC=gcc.exe
41534CFLAGS="-s -Zcrtdll"
41535EXTRA_CFLAGS=""
41536EXPORT_BY_ORDINALS=0
41537exclude_symbols=""
41538library_flags=""
41539curDir=\`pwd\`
41540curDirS=curDir
41541case ${D}curDirS in
41542*/)
41543 ;;
41544*)
41545 curDirS=${D}{curDirS}"/"
41546 ;;
41547esac
41548# Parse commandline
41549libsToLink=0
b1d22ded 41550omfLinking=0
1e9e8aba 41551while [ ${D}1 ]; do
473276a9
VS
41552 case ${D}1 in
41553 -ord*)
41554 EXPORT_BY_ORDINALS=1;
41555 ;;
41556 -o*)
41557 shift
41558 outFile=${D}1
41559 ;;
41560 -i*)
41561 shift
41562 outimpFile=${D}1
41563 ;;
b1d22ded
DE
41564 -name-mangler-script)
41565 shift
41566 renameScript=${D}1
41567 ;;
473276a9
VS
41568 -d*)
41569 shift
41570 description=${D}1
41571 ;;
41572 -f*)
41573 shift
41574 CFLAGS=${D}1
41575 ;;
41576 -c*)
41577 shift
41578 CC=${D}1
41579 ;;
41580 -h*)
41581 PrintHelp
41582 ;;
41583 -ex*)
41584 shift
41585 exclude_symbols=${D}{exclude_symbols}${D}1" "
41586 ;;
41587 -libf*)
41588 shift
41589 library_flags=${D}{library_flags}${D}1" "
41590 ;;
41591 -nocrt*)
41592 CFLAGS="-s"
41593 ;;
41594 -nolxl*)
41595 flag_USE_LXLITE=0
41596 ;;
41597 -* | /*)
41598 case ${D}1 in
41599 -L* | -l*)
41600 libsToLink=1
41601 ;;
b1d22ded
DE
41602 -Zomf)
41603 omfLinking=1
41604 ;;
473276a9
VS
41605 *)
41606 ;;
41607 esac
41608 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41609 ;;
b1d22ded
DE
41610 *.dll)
41611 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41612 if [ ${D}omfLinking -eq 1 ]; then
41613 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41614 else
41615 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41616 fi
41617 ;;
473276a9
VS
41618 *)
41619 found=0;
1e9e8aba 41620 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41621 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41622 else
41623 for file in ${D}1 ; do
1e9e8aba 41624 if [ -f ${D}file ]; then
473276a9
VS
41625 inputFiles="${D}{inputFiles} ${D}file"
41626 found=1
41627 fi
41628 done
1e9e8aba 41629 if [ ${D}found -eq 0 ]; then
473276a9
VS
41630 echo "ERROR: No file(s) found: "${D}1
41631 exit 8
41632 fi
41633 fi
41634 ;;
41635 esac
41636 shift
41637done # iterate cmdline words
41638
41639#
1e9e8aba 41640if [ -z "${D}inputFiles" ]; then
473276a9
VS
41641 echo "dllar: no input files"
41642 PrintHelp
41643fi
41644
41645# Now extract all .o files from .a files
41646newInputFiles=""
41647for file in ${D}inputFiles ; do
41648 case ${D}file in
41649 *.a | *.lib)
41650 case ${D}file in
41651 *.a)
41652 suffix=".a"
41653 AR="ar"
41654 ;;
41655 *.lib)
41656 suffix=".lib"
41657 AR="emxomfar"
41658 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41659 ;;
41660 *)
41661 ;;
41662 esac
41663 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41664 mkdir ${D}dirname
1e9e8aba 41665 if [ ${D}? -ne 0 ]; then
473276a9
VS
41666 echo "Failed to create subdirectory ./${D}dirname"
41667 CleanUp
41668 exit 8;
41669 fi
41670 # Append '!' to indicate archive
41671 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41672 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41673 cd ${D}curDir
41674 found=0;
41675 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41676 if [ -f ${D}subfile ]; then
473276a9 41677 found=1
1e9e8aba 41678 if [ -s ${D}subfile ]; then
473276a9
VS
41679 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41680 newInputFiles="${D}newInputFiles ${D}subfile"
41681 fi
41682 fi
41683 done
1e9e8aba
DE
41684 if [ ${D}found -eq 0 ]; then
41685 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41686 fi
41687 ;;
41688 *)
41689 newInputFiles="${D}{newInputFiles} ${D}file"
41690 ;;
41691 esac
41692done
41693inputFiles="${D}newInputFiles"
41694
41695# Output filename(s).
41696do_backup=0;
1e9e8aba 41697if [ -z ${D}outFile ]; then
473276a9
VS
41698 do_backup=1;
41699 set outFile ${D}inputFiles; outFile=${D}2
41700fi
41701
41702# If it is an archive, remove the '!' and the '_%' suffixes
41703case ${D}outFile in
41704*_%!)
41705 outFile=\`basnam ${D}outFile _%!\`
41706 ;;
41707*)
41708 ;;
41709esac
41710case ${D}outFile in
41711*.dll)
41712 outFile=\`basnam ${D}outFile .dll\`
41713 ;;
41714*.DLL)
41715 outFile=\`basnam ${D}outFile .DLL\`
41716 ;;
41717*.o)
41718 outFile=\`basnam ${D}outFile .o\`
41719 ;;
41720*.obj)
41721 outFile=\`basnam ${D}outFile .obj\`
41722 ;;
41723*.a)
41724 outFile=\`basnam ${D}outFile .a\`
41725 ;;
41726*.lib)
41727 outFile=\`basnam ${D}outFile .lib\`
41728 ;;
41729*)
41730 ;;
41731esac
41732case ${D}outimpFile in
41733*.a)
41734 outimpFile=\`basnam ${D}outimpFile .a\`
41735 ;;
41736*.lib)
41737 outimpFile=\`basnam ${D}outimpFile .lib\`
41738 ;;
41739*)
41740 ;;
41741esac
1e9e8aba 41742if [ -z ${D}outimpFile ]; then
473276a9
VS
41743 outimpFile=${D}outFile
41744fi
41745defFile="${D}{outFile}.def"
41746arcFile="${D}{outimpFile}.a"
41747arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41748
41749#create ${D}dllFile as something matching 8.3 restrictions,
41750if [ -z ${D}renameScript ] ; then
41751 dllFile="${D}outFile"
41752else
41753 dllFile=\`${D}renameScript ${D}outimpFile\`
41754fi
473276a9 41755
1e9e8aba
DE
41756if [ ${D}do_backup -ne 0 ] ; then
41757 if [ -f ${D}arcFile ] ; then
473276a9
VS
41758 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41759 fi
1e9e8aba 41760 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41761 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41762 fi
41763fi
41764
41765# Extract public symbols from all the object files.
41766tmpdefFile=${D}{defFile}_%
41767rm -f ${D}tmpdefFile
41768for file in ${D}inputFiles ; do
41769 case ${D}file in
41770 *!)
41771 ;;
41772 *)
41773 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41774 ;;
41775 esac
41776done
41777
41778# Create the def file.
41779rm -f ${D}defFile
41780echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41781dllFile="${D}{dllFile}.dll"
41782if [ ! -z ${D}description ]; then
1e9e8aba 41783 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41784fi
41785echo "EXPORTS" >> ${D}defFile
41786
41787doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41788grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41789
41790# Checks if the export is ok or not.
41791for word in ${D}exclude_symbols; do
41792 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41793 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41794done
41795
41796
1e9e8aba
DE
41797if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41798 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41799 sed '
41800 N
41801 : loop
1e9e8aba 41802 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41803 t loop
41804 ' > ${D}{tmpdefFile}%
41805 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41806else
41807 rm -f ${D}{tmpdefFile}%
41808fi
41809cat ${D}tmpdefFile >> ${D}defFile
41810rm -f ${D}tmpdefFile
41811
41812# Do linking, create implib, and apply lxlite.
41813gccCmdl="";
41814for file in ${D}inputFiles ; do
41815 case ${D}file in
41816 *!)
41817 ;;
41818 *)
41819 gccCmdl="${D}gccCmdl ${D}file"
41820 ;;
41821 esac
41822done
41823doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41824touch "${D}{outFile}.dll"
41825
41826doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41827if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41828 add_flags="";
1e9e8aba 41829 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41830 add_flags="-ynd"
41831 fi
41832 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41833fi
41834doCommand "emxomf -s -l ${D}arcFile"
41835
41836# Successful exit.
41837CleanUp 1
41838exit 0
41839EOF
41840
41841 chmod +x dllar.sh
a848cd7e
SC
41842 ;;
41843
1e9e8aba 41844 powerpc-apple-macos* | \
a848cd7e
SC
41845 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41846 *-*-sunos4* | \
41847 *-*-osf* | \
41848 *-*-dgux5* | \
41849 *-*-sysv5* )
41850 ;;
41851
41852 *)
41853 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
41854echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
41855 { (exit 1); exit 1; }; }
41856 esac
41857
2057db16
VS
41858 if test "x$PIC_FLAG" != "x" ; then
41859 PIC_FLAG="$PIC_FLAG -DPIC"
41860 fi
41861
a848cd7e
SC
41862 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
41863 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
41864 fi
41865 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
41866 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
41867 fi
41868
41869
41870
41871
41872
41873
41874
41875
41876 USE_SOVERSION=0
41877 USE_SOVERLINUX=0
41878 USE_SOVERSOLARIS=0
41879 USE_SOSYMLINKS=0
41880 USE_MACVERSION=0
41881 SONAME_FLAG=
41882
41883 case "${BAKEFILE_HOST}" in
b1d22ded 41884 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
41885 SONAME_FLAG="-Wl,-soname,"
41886 USE_SOVERSION=1
41887 USE_SOVERLINUX=1
41888 USE_SOSYMLINKS=1
41889 ;;
41890
a848cd7e
SC
41891 *-*-solaris2* )
41892 SONAME_FLAG="-h "
41893 USE_SOVERSION=1
41894 USE_SOVERSOLARIS=1
41895 USE_SOSYMLINKS=1
41896 ;;
41897
41898 *-*-darwin* )
41899 USE_MACVERSION=1
41900 USE_SOVERSION=1
41901 USE_SOSYMLINKS=1
41902 ;;
41903 esac
41904
41905
41906
41907
41908
41909
41910
41911
41912
41913 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
41914echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
41915 DEPS_TRACKING=0
41916
41917 if test "x$GCC" = "xyes"; then
41918 DEPSMODE=gcc
41919 DEPS_TRACKING=1
41920 case "${BAKEFILE_HOST}" in
41921 powerpc-*-darwin* )
41922 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
41923 ;;
41924 * )
41925 DEPSFLAG_GCC="-MMD"
41926 ;;
41927 esac
41928 echo "$as_me:$LINENO: result: gcc" >&5
41929echo "${ECHO_T}gcc" >&6
b1d22ded 41930 elif test "x$MWCC" = "xyes"; then
81f90336 41931 DEPSMODE=mwcc
b1d22ded 41932 DEPS_TRACKING=1
81f90336 41933 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
41934 echo "$as_me:$LINENO: result: mwcc" >&5
41935echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
41936 else
41937 echo "$as_me:$LINENO: result: none" >&5
41938echo "${ECHO_T}none" >&6
41939 fi
41940
41941 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
41942
41943D='$'
41944cat <<EOF >bk-deps
a848cd7e
SC
41945#!/bin/sh
41946
41947# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41948# script. It is used to track C/C++ files dependencies in portable way.
41949#
41950# Permission is given to use this file in any way.
41951
473276a9 41952DEPSMODE=${DEPSMODE}
a848cd7e 41953DEPSDIR=.deps
473276a9 41954DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 41955DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 41956
473276a9 41957mkdir -p ${D}DEPSDIR
a848cd7e 41958
473276a9
VS
41959if test ${D}DEPSMODE = gcc ; then
41960 ${D}* ${D}{DEPSFLAG_GCC}
41961 status=${D}?
41962 if test ${D}{status} != 0 ; then
41963 exit ${D}{status}
a848cd7e
SC
41964 fi
41965 # move created file to the location we want it in:
473276a9
VS
41966 while test ${D}# -gt 0; do
41967 case "${D}1" in
a848cd7e
SC
41968 -o )
41969 shift
473276a9 41970 objfile=${D}1
a848cd7e
SC
41971 ;;
41972 -* )
41973 ;;
41974 * )
473276a9 41975 srcfile=${D}1
a848cd7e
SC
41976 ;;
41977 esac
41978 shift
41979 done
1e9e8aba
DE
41980 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
41981 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
41982 if test -f ${D}depfile ; then
41983 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41984 rm -f ${D}depfile
a848cd7e 41985 else
1e9e8aba 41986 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
41987 if test -f ${D}depfile ; then
41988 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41989 rm -f ${D}depfile
a848cd7e
SC
41990 fi
41991 fi
41992 exit 0
81f90336
MW
41993elif test ${D}DEPSMODE = mwcc ; then
41994 ${D}*
41995 status=${D}?
41996 if test ${D}{status} != 0 ; then
41997 exit ${D}{status}
41998 fi
41999 # Run mwcc again with -MM and redirect into the dep file we want
42000 # NOTE: We can't use shift here because we need ${D}* to be valid
42001 prevarg=
42002 for arg in ${D}* ; do
42003 if test "${D}prevarg" = "-o"; then
42004 objfile=${D}arg
42005 else
42006 case "${D}arg" in
42007 -* )
42008 ;;
42009 * )
42010 srcfile=${D}arg
42011 ;;
42012 esac
42013 fi
42014 prevarg="${D}arg"
42015 done
42016 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42017 exit 0
a848cd7e 42018else
473276a9
VS
42019 ${D}*
42020 exit ${D}?
a848cd7e
SC
42021fi
42022EOF
473276a9 42023
a848cd7e
SC
42024 chmod +x bk-deps
42025 fi
42026
42027
42028
42029
42030 RESCOMP=
42031 SETFILE=
42032
42033 case ${BAKEFILE_HOST} in
42034 *-*-cygwin* | *-*-mingw32* )
42035 if test "$build" != "$host" ; then
42036 RESCOMP=$host_alias-windres
42037 else
42038 # Extract the first word of "windres", so it can be a program name with args.
42039set dummy windres; ac_word=$2
42040echo "$as_me:$LINENO: checking for $ac_word" >&5
42041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42042if test "${ac_cv_prog_RESCOMP+set}" = set; then
42043 echo $ECHO_N "(cached) $ECHO_C" >&6
42044else
42045 if test -n "$RESCOMP"; then
42046 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42047else
42048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42049for as_dir in $PATH
42050do
42051 IFS=$as_save_IFS
42052 test -z "$as_dir" && as_dir=.
42053 for ac_exec_ext in '' $ac_executable_extensions; do
42054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42055 ac_cv_prog_RESCOMP="windres"
42056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42057 break 2
42058 fi
42059done
42060done
42061
42062 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42063fi
42064fi
42065RESCOMP=$ac_cv_prog_RESCOMP
42066if test -n "$RESCOMP"; then
42067 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42068echo "${ECHO_T}$RESCOMP" >&6
42069else
42070 echo "$as_me:$LINENO: result: no" >&5
42071echo "${ECHO_T}no" >&6
42072fi
42073
42074 fi
42075 ;;
42076
1e9e8aba 42077 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42078 # Extract the first word of "Rez", so it can be a program name with args.
42079set dummy Rez; ac_word=$2
42080echo "$as_me:$LINENO: checking for $ac_word" >&5
42081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42082if test "${ac_cv_prog_RESCOMP+set}" = set; then
42083 echo $ECHO_N "(cached) $ECHO_C" >&6
42084else
42085 if test -n "$RESCOMP"; then
42086 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42087else
42088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42089for as_dir in $PATH
42090do
42091 IFS=$as_save_IFS
42092 test -z "$as_dir" && as_dir=.
42093 for ac_exec_ext in '' $ac_executable_extensions; do
42094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42095 ac_cv_prog_RESCOMP="Rez"
42096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42097 break 2
42098 fi
42099done
42100done
42101
42102 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42103fi
42104fi
42105RESCOMP=$ac_cv_prog_RESCOMP
42106if test -n "$RESCOMP"; then
42107 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42108echo "${ECHO_T}$RESCOMP" >&6
42109else
42110 echo "$as_me:$LINENO: result: no" >&5
42111echo "${ECHO_T}no" >&6
42112fi
42113
42114 # Extract the first word of "SetFile", so it can be a program name with args.
42115set dummy SetFile; ac_word=$2
42116echo "$as_me:$LINENO: checking for $ac_word" >&5
42117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42118if test "${ac_cv_prog_SETFILE+set}" = set; then
42119 echo $ECHO_N "(cached) $ECHO_C" >&6
42120else
42121 if test -n "$SETFILE"; then
42122 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42123else
42124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42125for as_dir in $PATH
42126do
42127 IFS=$as_save_IFS
42128 test -z "$as_dir" && as_dir=.
42129 for ac_exec_ext in '' $ac_executable_extensions; do
42130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42131 ac_cv_prog_SETFILE="SetFile"
42132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42133 break 2
42134 fi
42135done
42136done
42137
42138 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42139fi
42140fi
42141SETFILE=$ac_cv_prog_SETFILE
42142if test -n "$SETFILE"; then
42143 echo "$as_me:$LINENO: result: $SETFILE" >&5
42144echo "${ECHO_T}$SETFILE" >&6
42145else
42146 echo "$as_me:$LINENO: result: no" >&5
42147echo "${ECHO_T}no" >&6
42148fi
42149
42150 ;;
42151 esac
42152
42153
42154
42155
42156
94acd38e 42157 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 42158
dcc1b6ad 42159
94acd38e 42160BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 42161
646b6ec1 42162
74b84332 42163
a848cd7e
SC
42164 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42165if test "${enable_precomp_headers+set}" = set; then
42166 enableval="$enable_precomp_headers"
42167 bk_use_pch="$enableval"
42168fi;
42169
42170 GCC_PCH=0
42171
42172 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42173 if test "x$GCC" = "xyes"; then
42174 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42175echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42176 cat >conftest.$ac_ext <<_ACEOF
42177/* confdefs.h. */
42178_ACEOF
42179cat confdefs.h >>conftest.$ac_ext
42180cat >>conftest.$ac_ext <<_ACEOF
42181/* end confdefs.h. */
42182
42183int
42184main ()
42185{
42186
42187 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42188 #error "no pch support"
42189 #endif
42190 #if (__GNUC__ < 3)
42191 #error "no pch support"
42192 #endif
42193 #if (__GNUC__ == 3) && \
42194 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42195 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42196 #error "no pch support"
42197 #endif
42198
42199 ;
42200 return 0;
42201}
42202_ACEOF
42203rm -f conftest.$ac_objext
42204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42205 (eval $ac_compile) 2>conftest.er1
a848cd7e 42206 ac_status=$?
ac1cb8d3
VS
42207 grep -v '^ *+' conftest.er1 >conftest.err
42208 rm -f conftest.er1
42209 cat conftest.err >&5
a848cd7e
SC
42210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211 (exit $ac_status); } &&
07158944 42212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42214 (eval $ac_try) 2>&5
42215 ac_status=$?
42216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217 (exit $ac_status); }; } &&
42218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42220 (eval $ac_try) 2>&5
42221 ac_status=$?
42222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42223 (exit $ac_status); }; }; then
42224
42225 echo "$as_me:$LINENO: result: yes" >&5
42226echo "${ECHO_T}yes" >&6
a848cd7e
SC
42227 GCC_PCH=1
42228
42229else
42230 echo "$as_me: failed program was:" >&5
42231sed 's/^/| /' conftest.$ac_ext >&5
42232
42233
42234 echo "$as_me:$LINENO: result: no" >&5
42235echo "${ECHO_T}no" >&6
42236
42237fi
ac1cb8d3 42238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42239 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42240
42241D='$'
42242cat <<EOF >bk-make-pch
a848cd7e
SC
42243#!/bin/sh
42244
42245# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42246# script. It is used to generated precompiled headers.
42247#
42248# Permission is given to use this file in any way.
42249
1e9e8aba
DE
42250outfile="${D}{1}"
42251header="${D}{2}"
a848cd7e
SC
42252shift
42253shift
42254
42255compiler=
42256headerfile=
1e9e8aba
DE
42257while test ${D}{#} -gt 0; do
42258 case "${D}{1}" in
a848cd7e 42259 -I* )
1e9e8aba
DE
42260 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42261 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42262 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42263 fi
42264 ;;
42265 esac
1e9e8aba 42266 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42267 shift
42268done
42269
1e9e8aba
DE
42270if test "x${D}{headerfile}" = "x" ; then
42271 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42272else
1e9e8aba
DE
42273 if test -f ${D}{outfile} ; then
42274 rm -f ${D}{outfile}
a848cd7e 42275 else
1e9e8aba 42276 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42277 fi
1e9e8aba 42278 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42279 mkdir -p .deps
42280 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42281 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42282 exit ${D}{?}
a848cd7e
SC
42283fi
42284EOF
1e9e8aba 42285
a848cd7e
SC
42286 chmod +x bk-make-pch
42287 fi
42288 fi
42289 fi
42290
42291
42292
a848cd7e
SC
42293 COND_BUILD_DEBUG="#"
42294 if test "x$BUILD" = "xdebug" ; then
42295 COND_BUILD_DEBUG=""
42296 fi
42297
42298 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42299 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42300 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42301 fi
42302
42303 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42304 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42305 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42306 fi
42307
42308 COND_BUILD_DEBUG_UNICODE_0="#"
42309 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42310 COND_BUILD_DEBUG_UNICODE_0=""
42311 fi
42312
42313 COND_BUILD_DEBUG_UNICODE_1="#"
42314 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42315 COND_BUILD_DEBUG_UNICODE_1=""
42316 fi
42317
42318 COND_BUILD_RELEASE="#"
42319 if test "x$BUILD" = "xrelease" ; then
42320 COND_BUILD_RELEASE=""
42321 fi
42322
42323 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42324 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42325 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42326 fi
42327
42328 COND_BUILD_RELEASE_UNICODE_0="#"
42329 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42330 COND_BUILD_RELEASE_UNICODE_0=""
42331 fi
42332
42333 COND_BUILD_RELEASE_UNICODE_1="#"
42334 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42335 COND_BUILD_RELEASE_UNICODE_1=""
42336 fi
42337
42338 COND_DEBUG_FLAG_1="#"
42339 if test "x$DEBUG_FLAG" = "x1" ; then
42340 COND_DEBUG_FLAG_1=""
42341 fi
42342
42343 COND_DEBUG_INFO_0="#"
42344 if test "x$DEBUG_INFO" = "x0" ; then
42345 COND_DEBUG_INFO_0=""
42346 fi
42347
42348 COND_DEBUG_INFO_1="#"
42349 if test "x$DEBUG_INFO" = "x1" ; then
42350 COND_DEBUG_INFO_1=""
42351 fi
42352
42353 COND_DEPS_TRACKING_0="#"
42354 if test "x$DEPS_TRACKING" = "x0" ; then
42355 COND_DEPS_TRACKING_0=""
42356 fi
42357
42358 COND_DEPS_TRACKING_1="#"
42359 if test "x$DEPS_TRACKING" = "x1" ; then
42360 COND_DEPS_TRACKING_1=""
42361 fi
42362
42363 COND_GCC_PCH_1="#"
42364 if test "x$GCC_PCH" = "x1" ; then
42365 COND_GCC_PCH_1=""
42366 fi
42367
42368 COND_MONOLITHIC_0="#"
42369 if test "x$MONOLITHIC" = "x0" ; then
42370 COND_MONOLITHIC_0=""
42371 fi
42372
42373 COND_MONOLITHIC_0_SHARED_0="#"
42374 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42375 COND_MONOLITHIC_0_SHARED_0=""
42376 fi
42377
42378 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42379 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42380 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42381 fi
42382
90970d69
DE
42383 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42384 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42385 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42386 fi
42387
a848cd7e
SC
42388 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42389 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42390 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42391 fi
42392
a848cd7e
SC
42393 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42394 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42395 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42396 fi
42397
ceec2216
RL
42398 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42399 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42400 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42401 fi
42402
a848cd7e
SC
42403 COND_MONOLITHIC_0_SHARED_1="#"
42404 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42405 COND_MONOLITHIC_0_SHARED_1=""
42406 fi
42407
42408 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42409 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42410 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42411 fi
42412
90970d69
DE
42413 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42414 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42415 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42416 fi
42417
a848cd7e
SC
42418 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42419 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42420 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42421 fi
42422
a848cd7e
SC
42423 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42424 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42425 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42426 fi
42427
ceec2216
RL
42428 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42429 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42430 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42431 fi
42432
a848cd7e
SC
42433 COND_MONOLITHIC_0_USE_ODBC_1="#"
42434 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42435 COND_MONOLITHIC_0_USE_ODBC_1=""
42436 fi
42437
42438 COND_MONOLITHIC_1="#"
42439 if test "x$MONOLITHIC" = "x1" ; then
42440 COND_MONOLITHIC_1=""
42441 fi
42442
42443 COND_MONOLITHIC_1_SHARED_0="#"
42444 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42445 COND_MONOLITHIC_1_SHARED_0=""
42446 fi
42447
42448 COND_MONOLITHIC_1_SHARED_1="#"
42449 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42450 COND_MONOLITHIC_1_SHARED_1=""
42451 fi
42452
42453 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42454 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42455 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42456 fi
42457
42458 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42459 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42460 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42461 fi
42462
42463 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42464 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42465 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42466 fi
42467
42468 COND_PLATFORM_MACOSX_1="#"
42469 if test "x$PLATFORM_MACOSX" = "x1" ; then
42470 COND_PLATFORM_MACOSX_1=""
42471 fi
42472
a30f955f
VS
42473 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42474 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42475 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42476 fi
42477
a848cd7e
SC
42478 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42479 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42480 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42481 fi
42482
42483 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42484 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42485 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42486 fi
42487
42488 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42489 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42490 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42491 fi
42492
fc480dc1
DE
42493 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42494 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42495 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42496 fi
42497
1e9e8aba
DE
42498 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42499 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42500 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42501 fi
42502
ebee3cd0
VS
42503 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42504 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42505 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42506 fi
42507
42508 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42509 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42510 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42511 fi
42512
a848cd7e
SC
42513 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42514 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42515 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42516 fi
42517
42518 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42519 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42520 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42521 fi
42522
b48a2016
DE
42523 COND_PLATFORM_MACOS_1="#"
42524 if test "x$PLATFORM_MACOS" = "x1" ; then
42525 COND_PLATFORM_MACOS_1=""
42526 fi
42527
a848cd7e
SC
42528 COND_PLATFORM_MAC_1="#"
42529 if test "x$PLATFORM_MAC" = "x1" ; then
42530 COND_PLATFORM_MAC_1=""
42531 fi
42532
42533 COND_PLATFORM_OS2_1="#"
42534 if test "x$PLATFORM_OS2" = "x1" ; then
42535 COND_PLATFORM_OS2_1=""
42536 fi
42537
42538 COND_PLATFORM_UNIX_0="#"
42539 if test "x$PLATFORM_UNIX" = "x0" ; then
42540 COND_PLATFORM_UNIX_0=""
42541 fi
42542
42543 COND_PLATFORM_UNIX_1="#"
42544 if test "x$PLATFORM_UNIX" = "x1" ; then
42545 COND_PLATFORM_UNIX_1=""
42546 fi
42547
42548 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42549 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42550 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42551 fi
42552
42553 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42554 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42555 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42556 fi
42557
42558 COND_PLATFORM_WIN32_0="#"
42559 if test "x$PLATFORM_WIN32" = "x0" ; then
42560 COND_PLATFORM_WIN32_0=""
42561 fi
42562
42563 COND_PLATFORM_WIN32_1="#"
42564 if test "x$PLATFORM_WIN32" = "x1" ; then
42565 COND_PLATFORM_WIN32_1=""
42566 fi
42567
42568 COND_SHARED_0="#"
42569 if test "x$SHARED" = "x0" ; then
42570 COND_SHARED_0=""
42571 fi
42572
ceec2216
RL
42573 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42574 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42575 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42576 fi
42577
42578 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42579 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42580 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42581 fi
42582
42583 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42584 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42585 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42586 fi
42587
a848cd7e
SC
42588 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42589 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42590 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42591 fi
42592
42593 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42594 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42595 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42596 fi
42597
42598 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42599 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42600 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42601 fi
42602
42603 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42604 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42605 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42606 fi
42607
42608 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42609 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42610 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42611 fi
42612
42613 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42614 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42615 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42616 fi
42617
42618 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42619 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42620 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42621 fi
42622
42623 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42624 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42625 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42626 fi
42627
42628 COND_SHARED_1="#"
42629 if test "x$SHARED" = "x1" ; then
42630 COND_SHARED_1=""
42631 fi
42632
42633 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42634 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42635 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42636 fi
42637
a30f955f
VS
42638 COND_TOOLKIT_="#"
42639 if test "x$TOOLKIT" = "x" ; then
42640 COND_TOOLKIT_=""
42641 fi
42642
a848cd7e
SC
42643 COND_TOOLKIT_COCOA="#"
42644 if test "x$TOOLKIT" = "xCOCOA" ; then
42645 COND_TOOLKIT_COCOA=""
42646 fi
42647
a49baeab
DE
42648 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42649 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42650 COND_TOOLKIT_COCOA_USE_GUI_1=""
42651 fi
42652
a848cd7e
SC
42653 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42654 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42655 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42656 fi
42657
42658 COND_TOOLKIT_GTK="#"
42659 if test "x$TOOLKIT" = "xGTK" ; then
42660 COND_TOOLKIT_GTK=""
42661 fi
42662
42663 COND_TOOLKIT_GTK_USE_GUI_1="#"
42664 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42665 COND_TOOLKIT_GTK_USE_GUI_1=""
42666 fi
42667
42668 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42669 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42670 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42671 fi
42672
42673 COND_TOOLKIT_MAC="#"
42674 if test "x$TOOLKIT" = "xMAC" ; then
42675 COND_TOOLKIT_MAC=""
42676 fi
42677
42678 COND_TOOLKIT_MAC_USE_GUI_1="#"
42679 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42680 COND_TOOLKIT_MAC_USE_GUI_1=""
42681 fi
42682
42683 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42684 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42685 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42686 fi
42687
42688 COND_TOOLKIT_MGL="#"
42689 if test "x$TOOLKIT" = "xMGL" ; then
42690 COND_TOOLKIT_MGL=""
42691 fi
42692
42693 COND_TOOLKIT_MGL_USE_GUI_1="#"
42694 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42695 COND_TOOLKIT_MGL_USE_GUI_1=""
42696 fi
42697
42698 COND_TOOLKIT_MOTIF="#"
42699 if test "x$TOOLKIT" = "xMOTIF" ; then
42700 COND_TOOLKIT_MOTIF=""
42701 fi
42702
42703 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42704 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42705 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42706 fi
42707
42708 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42709 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42710 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42711 fi
42712
42713 COND_TOOLKIT_MSW="#"
42714 if test "x$TOOLKIT" = "xMSW" ; then
42715 COND_TOOLKIT_MSW=""
42716 fi
42717
42718 COND_TOOLKIT_MSW_USE_GUI_1="#"
42719 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42720 COND_TOOLKIT_MSW_USE_GUI_1=""
42721 fi
42722
42723 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42724 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42725 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42726 fi
42727
42728 COND_TOOLKIT_PM="#"
42729 if test "x$TOOLKIT" = "xPM" ; then
42730 COND_TOOLKIT_PM=""
42731 fi
42732
42733 COND_TOOLKIT_PM_USE_GUI_1="#"
42734 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42735 COND_TOOLKIT_PM_USE_GUI_1=""
42736 fi
42737
42738 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42739 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42740 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42741 fi
42742
3fd9c298
DE
42743 COND_TOOLKIT_WINCE="#"
42744 if test "x$TOOLKIT" = "xWINCE" ; then
42745 COND_TOOLKIT_WINCE=""
42746 fi
42747
42748 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42749 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42750 COND_TOOLKIT_WINCE_USE_GUI_1=""
42751 fi
42752
42753 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42754 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42755 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42756 fi
42757
a848cd7e
SC
42758 COND_TOOLKIT_X11="#"
42759 if test "x$TOOLKIT" = "xX11" ; then
42760 COND_TOOLKIT_X11=""
42761 fi
42762
42763 COND_TOOLKIT_X11_USE_GUI_1="#"
42764 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42765 COND_TOOLKIT_X11_USE_GUI_1=""
42766 fi
42767
42768 COND_UNICODE_1="#"
42769 if test "x$UNICODE" = "x1" ; then
42770 COND_UNICODE_1=""
42771 fi
42772
42773 COND_USE_EXCEPTIONS_0="#"
42774 if test "x$USE_EXCEPTIONS" = "x0" ; then
42775 COND_USE_EXCEPTIONS_0=""
42776 fi
42777
42778 COND_USE_EXCEPTIONS_1="#"
42779 if test "x$USE_EXCEPTIONS" = "x1" ; then
42780 COND_USE_EXCEPTIONS_1=""
42781 fi
42782
42783 COND_USE_GUI_0="#"
42784 if test "x$USE_GUI" = "x0" ; then
42785 COND_USE_GUI_0=""
42786 fi
42787
42788 COND_USE_GUI_1="#"
42789 if test "x$USE_GUI" = "x1" ; then
42790 COND_USE_GUI_1=""
42791 fi
42792
42793 COND_USE_GUI_1_WXUNIV_0="#"
42794 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42795 COND_USE_GUI_1_WXUNIV_0=""
42796 fi
42797
42798 COND_USE_GUI_1_WXUNIV_1="#"
42799 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42800 COND_USE_GUI_1_WXUNIV_1=""
42801 fi
42802
42803 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42804 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42805 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42806 fi
42807
42808 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42809 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42810 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42811 fi
42812
42813 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42814 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42815 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42816 fi
42817
ceec2216
RL
42818 COND_USE_ODBC_1="#"
42819 if test "x$USE_ODBC" = "x1" ; then
42820 COND_USE_ODBC_1=""
42821 fi
42822
ffa0583f
RL
42823 COND_USE_OPENGL_1="#"
42824 if test "x$USE_OPENGL" = "x1" ; then
42825 COND_USE_OPENGL_1=""
42826 fi
42827
a848cd7e
SC
42828 COND_USE_PLUGINS_0="#"
42829 if test "x$USE_PLUGINS" = "x0" ; then
42830 COND_USE_PLUGINS_0=""
42831 fi
42832
0b78747f
MW
42833 COND_USE_RTTI_0="#"
42834 if test "x$USE_RTTI" = "x0" ; then
42835 COND_USE_RTTI_0=""
42836 fi
42837
42838 COND_USE_RTTI_1="#"
42839 if test "x$USE_RTTI" = "x1" ; then
42840 COND_USE_RTTI_1=""
42841 fi
42842
a848cd7e
SC
42843 COND_USE_SOSYMLINKS_1="#"
42844 if test "x$USE_SOSYMLINKS" = "x1" ; then
42845 COND_USE_SOSYMLINKS_1=""
42846 fi
42847
42848 COND_USE_SOVERLINUX_1="#"
42849 if test "x$USE_SOVERLINUX" = "x1" ; then
42850 COND_USE_SOVERLINUX_1=""
42851 fi
42852
42853 COND_USE_SOVERSION_0="#"
42854 if test "x$USE_SOVERSION" = "x0" ; then
42855 COND_USE_SOVERSION_0=""
42856 fi
42857
42858 COND_USE_SOVERSOLARIS_1="#"
42859 if test "x$USE_SOVERSOLARIS" = "x1" ; then
42860 COND_USE_SOVERSOLARIS_1=""
42861 fi
42862
0b78747f
MW
42863 COND_USE_THREADS_0="#"
42864 if test "x$USE_THREADS" = "x0" ; then
42865 COND_USE_THREADS_0=""
42866 fi
42867
42868 COND_USE_THREADS_1="#"
42869 if test "x$USE_THREADS" = "x1" ; then
42870 COND_USE_THREADS_1=""
42871 fi
42872
a13a7f89
RL
42873 COND_USE_XRC_1="#"
42874 if test "x$USE_XRC" = "x1" ; then
42875 COND_USE_XRC_1=""
42876 fi
42877
a848cd7e
SC
42878 COND_WITH_PLUGIN_SDL_1="#"
42879 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
42880 COND_WITH_PLUGIN_SDL_1=""
42881 fi
42882
1e6eb025
VZ
42883 COND_WXUNIV_0="#"
42884 if test "x$WXUNIV" = "x0" ; then
42885 COND_WXUNIV_0=""
42886 fi
42887
a848cd7e
SC
42888 COND_WXUNIV_1="#"
42889 if test "x$WXUNIV" = "x1" ; then
42890 COND_WXUNIV_1=""
42891 fi
42892
42893 COND_WXUSE_EXPAT_BUILTIN="#"
42894 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
42895 COND_WXUSE_EXPAT_BUILTIN=""
42896 fi
42897
42898 COND_WXUSE_LIBJPEG_BUILTIN="#"
42899 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42900 COND_WXUSE_LIBJPEG_BUILTIN=""
42901 fi
42902
42903 COND_WXUSE_LIBPNG_BUILTIN="#"
42904 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42905 COND_WXUSE_LIBPNG_BUILTIN=""
42906 fi
42907
42908 COND_WXUSE_LIBTIFF_BUILTIN="#"
42909 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42910 COND_WXUSE_LIBTIFF_BUILTIN=""
42911 fi
42912
42913 COND_WXUSE_ODBC_BUILTIN="#"
42914 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
42915 COND_WXUSE_ODBC_BUILTIN=""
42916 fi
42917
42918 COND_WXUSE_REGEX_BUILTIN="#"
42919 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
42920 COND_WXUSE_REGEX_BUILTIN=""
42921 fi
42922
42923 COND_WXUSE_ZLIB_BUILTIN="#"
42924 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
42925 COND_WXUSE_ZLIB_BUILTIN=""
42926 fi
42927
42928
42929
2057db16
VS
42930 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
42931 { { 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
42932echo "$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;}
42933 { (exit 1); exit 1; }; }
42934 fi
42935
a848cd7e 42936
ceec2216
RL
42937if test "$wxUSE_SHARED" = "yes"; then
42938
42939 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
42940 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
42941
5b674b9d
DE
42942 case "${host}" in
42943 *-pc-os2_emx | *-pc-os2-emx )
42944 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42945 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42946 cp -p ${srcdir}/src/os2/dllnames.sh .
42947 cp -p ${srcdir}/src/os2/dllar.sh .
42948 ;;
42949 esac
ceec2216
RL
42950else
42951
42952 EXE_LINKER="$CXX -o"
42953
42954fi
a848cd7e 42955
74b84332 42956GCC_PRAGMA_FLAGS=""
c08ebc62
DE
42957PCH_FLAGS=""
42958if test $GCC_PCH = 1 ; then
42959 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42960 PCH_FLAGS="-DWX_PRECOMP"
42961else
a848cd7e
SC
42962 case "${host}" in
42963 powerpc-*-darwin* )
74b84332 42964 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 42965 ;;
bea8e651 42966 *-*-mingw32* )
1f344abf
VS
42967 if test "$wxUSE_STL" = "yes" -o \
42968 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42969 "$wxUSE_NO_RTTI" != "yes"; then
42970 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42971echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42972 cat >conftest.$ac_ext <<_ACEOF
42973/* confdefs.h. */
42974_ACEOF
42975cat confdefs.h >>conftest.$ac_ext
42976cat >>conftest.$ac_ext <<_ACEOF
42977/* end confdefs.h. */
42978
3314e67b
RR
42979int
42980main ()
42981{
42982#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
42983 #error "Not GCC 3.2 or greater"
42984 #endif
42985
42986 ;
42987 return 0;
42988}
42989_ACEOF
42990rm -f conftest.$ac_objext
42991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42992 (eval $ac_compile) 2>conftest.er1
42993 ac_status=$?
42994 grep -v '^ *+' conftest.er1 >conftest.err
42995 rm -f conftest.er1
42996 cat conftest.err >&5
42997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42998 (exit $ac_status); } &&
07158944 42999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43001 (eval $ac_try) 2>&5
43002 ac_status=$?
43003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004 (exit $ac_status); }; } &&
43005 { ac_try='test -s conftest.$ac_objext'
43006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43007 (eval $ac_try) 2>&5
43008 ac_status=$?
43009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010 (exit $ac_status); }; }; then
43011 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43012 echo "$as_me:$LINENO: result: yes" >&5
43013echo "${ECHO_T}yes" >&6
43014else
43015 echo "$as_me: failed program was:" >&5
43016sed 's/^/| /' conftest.$ac_ext >&5
43017
43018echo "$as_me:$LINENO: result: no" >&5
43019echo "${ECHO_T}no" >&6
43020fi
43021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43022 fi
43023 ;;
43024 *-pc-os2_emx | *-pc-os2-emx )
43025 if test "$wxUSE_STL" = "yes"; then
43026 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43027echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43028 cat >conftest.$ac_ext <<_ACEOF
43029/* confdefs.h. */
43030_ACEOF
43031cat confdefs.h >>conftest.$ac_ext
43032cat >>conftest.$ac_ext <<_ACEOF
43033/* end confdefs.h. */
43034
bea8e651
MB
43035int
43036main ()
43037{
1f344abf 43038#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43039 #error "Not GCC 3.2 or greater"
43040 #endif
43041
43042 ;
43043 return 0;
43044}
43045_ACEOF
43046rm -f conftest.$ac_objext
43047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43048 (eval $ac_compile) 2>conftest.er1
bea8e651 43049 ac_status=$?
ac1cb8d3
VS
43050 grep -v '^ *+' conftest.er1 >conftest.err
43051 rm -f conftest.er1
43052 cat conftest.err >&5
bea8e651
MB
43053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43054 (exit $ac_status); } &&
07158944 43055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43057 (eval $ac_try) 2>&5
43058 ac_status=$?
43059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43060 (exit $ac_status); }; } &&
43061 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43063 (eval $ac_try) 2>&5
43064 ac_status=$?
43065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43066 (exit $ac_status); }; }; then
74b84332 43067 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43068 echo "$as_me:$LINENO: result: yes" >&5
43069echo "${ECHO_T}yes" >&6
43070else
43071 echo "$as_me: failed program was:" >&5
43072sed 's/^/| /' conftest.$ac_ext >&5
43073
43074echo "$as_me:$LINENO: result: no" >&5
43075echo "${ECHO_T}no" >&6
43076fi
ac1cb8d3 43077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43078 fi
43079 ;;
a848cd7e
SC
43080 esac
43081fi
d2083416 43082CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43083
43084
43085SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43086
43087
43088
43089
43090
43091
43092
43093
43094
43095
43096
43097
43098
43099
43100
43101
43102
43103
43104
43105
43106
43107
43108
43109
43110
43111
43112
43113
43114
43115
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127
a848cd7e
SC
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
74b84332 43146
a848cd7e
SC
43147
43148
43149echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43150echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43151set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43152if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43153 echo $ECHO_N "(cached) $ECHO_C" >&6
43154else
43155 cat >conftest.make <<\_ACEOF
43156all:
43157 @echo 'ac_maketemp="$(MAKE)"'
43158_ACEOF
43159# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43160eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43161if test -n "$ac_maketemp"; then
43162 eval ac_cv_prog_make_${ac_make}_set=yes
43163else
43164 eval ac_cv_prog_make_${ac_make}_set=no
43165fi
43166rm -f conftest.make
43167fi
43168if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43169 echo "$as_me:$LINENO: result: yes" >&5
43170echo "${ECHO_T}yes" >&6
43171 SET_MAKE=
43172else
43173 echo "$as_me:$LINENO: result: no" >&5
43174echo "${ECHO_T}no" >&6
43175 SET_MAKE="MAKE=${MAKE-make}"
43176fi
43177
43178
a848cd7e 43179
ceec2216
RL
43180 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43181
a848cd7e 43182
ceec2216 43183 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43184
a848cd7e 43185
ceec2216 43186 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43187
ceec2216
RL
43188
43189 ac_config_files="$ac_config_files version-script Makefile"
43190
43191
43192 ac_config_commands="$ac_config_commands wx-config
43193 "
a848cd7e
SC
43194
43195
9103d280
RL
43196
43197
a848cd7e
SC
43198if test "$wxUSE_GUI" = "yes"; then
43199 SUBDIRS="samples demos utils contrib"
43200else SUBDIRS="samples utils"
43201fi
43202
43203
43204
43205# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43206if test "${with_cppunit_prefix+set}" = set; then
43207 withval="$with_cppunit_prefix"
43208 cppunit_config_prefix="$withval"
43209else
43210 cppunit_config_prefix=""
43211fi;
43212
43213# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43214if test "${with_cppunit_exec_prefix+set}" = set; then
43215 withval="$with_cppunit_exec_prefix"
43216 cppunit_config_exec_prefix="$withval"
43217else
43218 cppunit_config_exec_prefix=""
43219fi;
43220
43221 if test x$cppunit_config_exec_prefix != x ; then
43222 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43223 if test x${CPPUNIT_CONFIG+set} != xset ; then
43224 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43225 fi
43226 fi
43227 if test x$cppunit_config_prefix != x ; then
43228 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43229 if test x${CPPUNIT_CONFIG+set} != xset ; then
43230 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43231 fi
43232 fi
43233
43234 # Extract the first word of "cppunit-config", so it can be a program name with args.
43235set dummy cppunit-config; ac_word=$2
43236echo "$as_me:$LINENO: checking for $ac_word" >&5
43237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43238if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43239 echo $ECHO_N "(cached) $ECHO_C" >&6
43240else
43241 case $CPPUNIT_CONFIG in
43242 [\\/]* | ?:[\\/]*)
43243 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43244 ;;
43245 *)
43246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43247for as_dir in $PATH
43248do
43249 IFS=$as_save_IFS
43250 test -z "$as_dir" && as_dir=.
43251 for ac_exec_ext in '' $ac_executable_extensions; do
43252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43253 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43255 break 2
43256 fi
43257done
43258done
43259
43260 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43261 ;;
43262esac
43263fi
43264CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43265
43266if test -n "$CPPUNIT_CONFIG"; then
43267 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43268echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43269else
43270 echo "$as_me:$LINENO: result: no" >&5
43271echo "${ECHO_T}no" >&6
43272fi
43273
43274 cppunit_version_min=1.8.0
43275
43276 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43277echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43278 no_cppunit=""
43279 if test "$CPPUNIT_CONFIG" = "no" ; then
43280 no_cppunit=yes
43281 else
43282 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43283 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43284 cppunit_version=`$CPPUNIT_CONFIG --version`
43285
43286 cppunit_major_version=`echo $cppunit_version | \
43287 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43288 cppunit_minor_version=`echo $cppunit_version | \
43289 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43290 cppunit_micro_version=`echo $cppunit_version | \
43291 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43292
43293 cppunit_major_min=`echo $cppunit_version_min | \
43294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43295 cppunit_minor_min=`echo $cppunit_version_min | \
43296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43297 cppunit_micro_min=`echo $cppunit_version_min | \
43298 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43299
43300 cppunit_version_proper=`expr \
43301 $cppunit_major_version \> $cppunit_major_min \| \
43302 $cppunit_major_version \= $cppunit_major_min \& \
43303 $cppunit_minor_version \> $cppunit_minor_min \| \
43304 $cppunit_major_version \= $cppunit_major_min \& \
43305 $cppunit_minor_version \= $cppunit_minor_min \& \
43306 $cppunit_micro_version \>= $cppunit_micro_min `
43307
43308 if test "$cppunit_version_proper" = "1" ; then
43309 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43310echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43311 else
43312 echo "$as_me:$LINENO: result: no" >&5
43313echo "${ECHO_T}no" >&6
43314 no_cppunit=yes
43315 fi
43316 fi
43317
43318 if test "x$no_cppunit" = x ; then
c2218763 43319 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43320 else
43321 CPPUNIT_CFLAGS=""
43322 CPPUNIT_LIBS=""
c2218763 43323 :
a848cd7e
SC
43324 fi
43325
43326
43327
43328
43329
43330for subdir in `echo $SUBDIRS`; do
43331 if test -d ${srcdir}/${subdir} ; then
43332 if test "$wxUSE_GUI" = "yes"; then
43333 if test ${subdir} = "samples"; then
43334 makefiles="samples/Makefile.in $makefiles"
43335 for sample in `echo $SAMPLES_SUBDIRS`; do
43336 if test -d $srcdir/samples/$sample; then
43337 makefiles="samples/$sample/Makefile.in $makefiles"
43338 fi
43339 done
43340 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43341 fi
43342 else if test ${subdir} = "samples"; then
43343 makefiles="samples/Makefile.in samples/console/Makefile.in"
43344 elif test ${subdir} = "utils"; then
6537ccf8
VS
43345 makefiles=""
43346 for util in HelpGen tex2rtf ; do
43347 if test -d $srcdir/utils/$util ; then
43348 makefiles="utils/$util/Makefile.in \
43349 utils/$util/src/Makefile.in \
43350 $makefiles"
43351 fi
43352 done
a848cd7e
SC
43353 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43354 fi
43355 fi
43356
43357 for mkin in $makefiles ; do
43358 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43359 ac_config_files="$ac_config_files $mk"
43360
43361 done
43362 fi
43363done
43364
43365
43366cat >confcache <<\_ACEOF
43367# This file is a shell script that caches the results of configure
43368# tests run on this system so they can be shared between configure
43369# scripts and configure runs, see configure's option --config-cache.
43370# It is not useful on other systems. If it contains results you don't
43371# want to keep, you may remove or edit it.
43372#
43373# config.status only pays attention to the cache file if you give it
43374# the --recheck option to rerun configure.
43375#
43376# `ac_cv_env_foo' variables (set or unset) will be overridden when
43377# loading this file, other *unset* `ac_cv_foo' will be assigned the
43378# following values.
43379
43380_ACEOF
43381
43382# The following way of writing the cache mishandles newlines in values,
43383# but we know of no workaround that is simple, portable, and efficient.
43384# So, don't put newlines in cache variables' values.
43385# Ultrix sh set writes to stderr and can't be redirected directly,
43386# and sets the high bit in the cache file unless we assign to the vars.
43387{
43388 (set) 2>&1 |
43389 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43390 *ac_space=\ *)
43391 # `set' does not quote correctly, so add quotes (double-quote
43392 # substitution turns \\\\ into \\, and sed turns \\ into \).
43393 sed -n \
ac1cb8d3
VS
43394 "s/'/'\\\\''/g;
43395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43396 ;;
43397 *)
43398 # `set' quotes correctly as required by POSIX, so do not add quotes.
43399 sed -n \
ac1cb8d3 43400 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43401 ;;
43402 esac;
43403} |
43404 sed '
43405 t clear
43406 : clear
43407 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43408 t end
43409 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43410 : end' >>confcache
43411if diff $cache_file confcache >/dev/null 2>&1; then :; else
43412 if test -w $cache_file; then
43413 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43414 cat confcache >$cache_file
43415 else
43416 echo "not updating unwritable cache $cache_file"
43417 fi
43418fi
43419rm -f confcache
43420
43421test "x$prefix" = xNONE && prefix=$ac_default_prefix
43422# Let make expand exec_prefix.
43423test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43424
43425# VPATH may cause trouble with some makes, so we remove $(srcdir),
43426# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43427# trailing colons and then remove the whole line if VPATH becomes empty
43428# (actually we leave an empty line to preserve line numbers).
43429if test "x$srcdir" = x.; then
ac1cb8d3 43430 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43431s/:*\$(srcdir):*/:/;
43432s/:*\${srcdir}:*/:/;
43433s/:*@srcdir@:*/:/;
ac1cb8d3 43434s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43435s/:*$//;
ac1cb8d3 43436s/^[^=]*=[ ]*$//;
a848cd7e
SC
43437}'
43438fi
43439
43440DEFS=-DHAVE_CONFIG_H
43441
43442ac_libobjs=
43443ac_ltlibobjs=
43444for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43445 # 1. Remove the extension, and $U if already installed.
43446 ac_i=`echo "$ac_i" |
ac1cb8d3 43447 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43448 # 2. Add them.
43449 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43450 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43451done
43452LIBOBJS=$ac_libobjs
43453
43454LTLIBOBJS=$ac_ltlibobjs
43455
43456
43457
43458: ${CONFIG_STATUS=./config.status}
43459ac_clean_files_save=$ac_clean_files
43460ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43461{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43462echo "$as_me: creating $CONFIG_STATUS" >&6;}
43463cat >$CONFIG_STATUS <<_ACEOF
43464#! $SHELL
43465# Generated by $as_me.
43466# Run this file to recreate the current configuration.
43467# Compiler output produced by configure, useful for debugging
43468# configure, is in config.log if it exists.
43469
43470debug=false
43471ac_cs_recheck=false
43472ac_cs_silent=false
43473SHELL=\${CONFIG_SHELL-$SHELL}
43474_ACEOF
43475
43476cat >>$CONFIG_STATUS <<\_ACEOF
43477## --------------------- ##
43478## M4sh Initialization. ##
43479## --------------------- ##
43480
43481# Be Bourne compatible
43482if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43483 emulate sh
43484 NULLCMD=:
43485 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43486 # is contrary to our usage. Disable this feature.
43487 alias -g '${1+"$@"}'='"$@"'
43488elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43489 set -o posix
43490fi
ac1cb8d3 43491DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43492
43493# Support unset when possible.
ac1cb8d3 43494if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43495 as_unset=unset
43496else
43497 as_unset=false
43498fi
43499
43500
43501# Work around bugs in pre-3.0 UWIN ksh.
43502$as_unset ENV MAIL MAILPATH
43503PS1='$ '
43504PS2='> '
43505PS4='+ '
43506
43507# NLS nuisances.
43508for as_var in \
43509 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43510 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43511 LC_TELEPHONE LC_TIME
43512do
ac1cb8d3 43513 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43514 eval $as_var=C; export $as_var
43515 else
43516 $as_unset $as_var
43517 fi
43518done
43519
43520# Required to use basename.
43521if expr a : '\(a\)' >/dev/null 2>&1; then
43522 as_expr=expr
43523else
43524 as_expr=false
43525fi
43526
43527if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43528 as_basename=basename
43529else
43530 as_basename=false
43531fi
43532
43533
43534# Name of the executable.
43535as_me=`$as_basename "$0" ||
43536$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43537 X"$0" : 'X\(//\)$' \| \
43538 X"$0" : 'X\(/\)$' \| \
43539 . : '\(.\)' 2>/dev/null ||
43540echo X/"$0" |
43541 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43542 /^X\/\(\/\/\)$/{ s//\1/; q; }
43543 /^X\/\(\/\).*/{ s//\1/; q; }
43544 s/.*/./; q'`
43545
43546
43547# PATH needs CR, and LINENO needs CR and PATH.
43548# Avoid depending upon Character Ranges.
43549as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43550as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43551as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43552as_cr_digits='0123456789'
43553as_cr_alnum=$as_cr_Letters$as_cr_digits
43554
43555# The user is always right.
43556if test "${PATH_SEPARATOR+set}" != set; then
43557 echo "#! /bin/sh" >conf$$.sh
43558 echo "exit 0" >>conf$$.sh
43559 chmod +x conf$$.sh
43560 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43561 PATH_SEPARATOR=';'
43562 else
43563 PATH_SEPARATOR=:
43564 fi
43565 rm -f conf$$.sh
43566fi
43567
43568
43569 as_lineno_1=$LINENO
43570 as_lineno_2=$LINENO
43571 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43572 test "x$as_lineno_1" != "x$as_lineno_2" &&
43573 test "x$as_lineno_3" = "x$as_lineno_2" || {
43574 # Find who we are. Look in the path if we contain no path at all
43575 # relative or not.
43576 case $0 in
43577 *[\\/]* ) as_myself=$0 ;;
43578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43579for as_dir in $PATH
43580do
43581 IFS=$as_save_IFS
43582 test -z "$as_dir" && as_dir=.
43583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43584done
43585
43586 ;;
43587 esac
43588 # We did not find ourselves, most probably we were run as `sh COMMAND'
43589 # in which case we are not to be found in the path.
43590 if test "x$as_myself" = x; then
43591 as_myself=$0
43592 fi
43593 if test ! -f "$as_myself"; then
43594 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43595echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43596 { (exit 1); exit 1; }; }
43597 fi
43598 case $CONFIG_SHELL in
43599 '')
43600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43601for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43602do
43603 IFS=$as_save_IFS
43604 test -z "$as_dir" && as_dir=.
43605 for as_base in sh bash ksh sh5; do
43606 case $as_dir in
43607 /*)
43608 if ("$as_dir/$as_base" -c '
43609 as_lineno_1=$LINENO
43610 as_lineno_2=$LINENO
43611 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43612 test "x$as_lineno_1" != "x$as_lineno_2" &&
43613 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43614 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43615 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43616 CONFIG_SHELL=$as_dir/$as_base
43617 export CONFIG_SHELL
43618 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43619 fi;;
43620 esac
43621 done
43622done
43623;;
43624 esac
43625
43626 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43627 # uniformly replaced by the line number. The first 'sed' inserts a
43628 # line-number line before each line; the second 'sed' does the real
43629 # work. The second script uses 'N' to pair each line-number line
43630 # with the numbered line, and appends trailing '-' during
43631 # substitution so that $LINENO is not a special case at line end.
43632 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43633 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43634 sed '=' <$as_myself |
43635 sed '
43636 N
43637 s,$,-,
43638 : loop
43639 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43640 t loop
43641 s,-$,,
43642 s,^['$as_cr_digits']*\n,,
43643 ' >$as_me.lineno &&
43644 chmod +x $as_me.lineno ||
43645 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43646echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43647 { (exit 1); exit 1; }; }
43648
43649 # Don't try to exec as it changes $[0], causing all sort of problems
43650 # (the dirname of $[0] is not the place where we might find the
43651 # original and so on. Autoconf is especially sensible to this).
43652 . ./$as_me.lineno
43653 # Exit status is that of the last command.
43654 exit
43655}
43656
43657
43658case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43659 *c*,-n*) ECHO_N= ECHO_C='
43660' ECHO_T=' ' ;;
43661 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43662 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43663esac
43664
43665if expr a : '\(a\)' >/dev/null 2>&1; then
43666 as_expr=expr
43667else
43668 as_expr=false
43669fi
43670
43671rm -f conf$$ conf$$.exe conf$$.file
43672echo >conf$$.file
43673if ln -s conf$$.file conf$$ 2>/dev/null; then
43674 # We could just check for DJGPP; but this test a) works b) is more generic
43675 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43676 if test -f conf$$.exe; then
43677 # Don't use ln at all; we don't have any links
43678 as_ln_s='cp -p'
43679 else
43680 as_ln_s='ln -s'
43681 fi
43682elif ln conf$$.file conf$$ 2>/dev/null; then
43683 as_ln_s=ln
43684else
43685 as_ln_s='cp -p'
43686fi
43687rm -f conf$$ conf$$.exe conf$$.file
43688
43689if mkdir -p . 2>/dev/null; then
43690 as_mkdir_p=:
43691else
ac1cb8d3 43692 test -d ./-p && rmdir ./-p
a848cd7e
SC
43693 as_mkdir_p=false
43694fi
43695
43696as_executable_p="test -f"
43697
43698# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43699as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43700
43701# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43702as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43703
43704
43705# IFS
43706# We need space, tab and new line, in precisely that order.
43707as_nl='
43708'
43709IFS=" $as_nl"
43710
43711# CDPATH.
43712$as_unset CDPATH
43713
43714exec 6>&1
43715
43716# Open the log real soon, to keep \$[0] and so on meaningful, and to
43717# report actual input values of CONFIG_FILES etc. instead of their
43718# values after options handling. Logging --version etc. is OK.
43719exec 5>>config.log
43720{
43721 echo
43722 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43723## Running $as_me. ##
43724_ASBOX
43725} >&5
43726cat >&5 <<_CSEOF
43727
81f90336 43728This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 43729generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43730
43731 CONFIG_FILES = $CONFIG_FILES
43732 CONFIG_HEADERS = $CONFIG_HEADERS
43733 CONFIG_LINKS = $CONFIG_LINKS
43734 CONFIG_COMMANDS = $CONFIG_COMMANDS
43735 $ $0 $@
43736
43737_CSEOF
43738echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43739echo >&5
43740_ACEOF
43741
43742# Files that config.status was made for.
43743if test -n "$ac_config_files"; then
43744 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43745fi
43746
43747if test -n "$ac_config_headers"; then
43748 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43749fi
43750
43751if test -n "$ac_config_links"; then
43752 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43753fi
43754
43755if test -n "$ac_config_commands"; then
43756 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43757fi
43758
43759cat >>$CONFIG_STATUS <<\_ACEOF
43760
43761ac_cs_usage="\
43762\`$as_me' instantiates files from templates according to the
43763current configuration.
43764
43765Usage: $0 [OPTIONS] [FILE]...
43766
43767 -h, --help print this help, then exit
43768 -V, --version print version number, then exit
43769 -q, --quiet do not print progress messages
43770 -d, --debug don't remove temporary files
43771 --recheck update $as_me by reconfiguring in the same conditions
43772 --file=FILE[:TEMPLATE]
ac1cb8d3 43773 instantiate the configuration file FILE
a848cd7e 43774 --header=FILE[:TEMPLATE]
ac1cb8d3 43775 instantiate the configuration header FILE
a848cd7e
SC
43776
43777Configuration files:
43778$config_files
43779
43780Configuration headers:
43781$config_headers
43782
43783Configuration commands:
43784$config_commands
43785
43786Report bugs to <bug-autoconf@gnu.org>."
43787_ACEOF
43788
43789cat >>$CONFIG_STATUS <<_ACEOF
43790ac_cs_version="\\
81f90336 43791wxWidgets config.status 2.5.4
ac1cb8d3 43792configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43793 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43794
ac1cb8d3 43795Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43796This config.status script is free software; the Free Software Foundation
43797gives unlimited permission to copy, distribute and modify it."
43798srcdir=$srcdir
43799INSTALL="$INSTALL"
43800_ACEOF
43801
43802cat >>$CONFIG_STATUS <<\_ACEOF
43803# If no file are specified by the user, then we need to provide default
43804# value. By we need to know if files were specified by the user.
43805ac_need_defaults=:
43806while test $# != 0
43807do
43808 case $1 in
43809 --*=*)
43810 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43811 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43812 ac_shift=:
43813 ;;
43814 -*)
43815 ac_option=$1
43816 ac_optarg=$2
43817 ac_shift=shift
43818 ;;
43819 *) # This is not an option, so the user has probably given explicit
43820 # arguments.
43821 ac_option=$1
43822 ac_need_defaults=false;;
43823 esac
43824
43825 case $ac_option in
43826 # Handling of the options.
43827_ACEOF
43828cat >>$CONFIG_STATUS <<\_ACEOF
43829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43830 ac_cs_recheck=: ;;
43831 --version | --vers* | -V )
43832 echo "$ac_cs_version"; exit 0 ;;
43833 --he | --h)
43834 # Conflict between --help and --header
43835 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43836Try \`$0 --help' for more information." >&5
43837echo "$as_me: error: ambiguous option: $1
43838Try \`$0 --help' for more information." >&2;}
43839 { (exit 1); exit 1; }; };;
43840 --help | --hel | -h )
43841 echo "$ac_cs_usage"; exit 0 ;;
43842 --debug | --d* | -d )
43843 debug=: ;;
43844 --file | --fil | --fi | --f )
43845 $ac_shift
43846 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43847 ac_need_defaults=false;;
43848 --header | --heade | --head | --hea )
43849 $ac_shift
43850 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43851 ac_need_defaults=false;;
43852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43854 ac_cs_silent=: ;;
43855
43856 # This is an error.
43857 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43858Try \`$0 --help' for more information." >&5
43859echo "$as_me: error: unrecognized option: $1
43860Try \`$0 --help' for more information." >&2;}
43861 { (exit 1); exit 1; }; } ;;
43862
43863 *) ac_config_targets="$ac_config_targets $1" ;;
43864
43865 esac
43866 shift
43867done
43868
43869ac_configure_extra_args=
43870
43871if $ac_cs_silent; then
43872 exec 6>/dev/null
43873 ac_configure_extra_args="$ac_configure_extra_args --silent"
43874fi
43875
43876_ACEOF
43877cat >>$CONFIG_STATUS <<_ACEOF
43878if \$ac_cs_recheck; then
43879 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43880 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43881fi
43882
43883_ACEOF
43884
43885cat >>$CONFIG_STATUS <<_ACEOF
43886#
43887# INIT-COMMANDS section.
43888#
43889
ceec2216
RL
43890 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43891 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43892 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43893 LN_S="${LN_S}"
a848cd7e
SC
43894
43895
43896_ACEOF
43897
43898
43899
43900cat >>$CONFIG_STATUS <<\_ACEOF
43901for ac_config_target in $ac_config_targets
43902do
43903 case "$ac_config_target" in
43904 # Handling of arguments.
ceec2216
RL
43905 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
43906 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
43907 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
43908 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43909 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
43910 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
43911 "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
43912 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43913echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43914 { (exit 1); exit 1; }; };;
43915 esac
43916done
43917
43918# If the user did not use the arguments to specify the items to instantiate,
43919# then the envvar interface is used. Set only those that are not.
43920# We use the long form for the default assignment because of an extremely
43921# bizarre bug on SunOS 4.1.3.
43922if $ac_need_defaults; then
43923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43925 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43926fi
43927
43928# Have a temporary directory for convenience. Make it in the build tree
43929# simply because there is no reason to put it here, and in addition,
43930# creating and moving files from /tmp can sometimes cause problems.
43931# Create a temporary directory, and hook for its removal unless debugging.
43932$debug ||
43933{
43934 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43935 trap '{ (exit 1); exit 1; }' 1 2 13 15
43936}
43937
43938# Create a (secure) tmp directory for tmp files.
43939
43940{
43941 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43942 test -n "$tmp" && test -d "$tmp"
43943} ||
43944{
43945 tmp=./confstat$$-$RANDOM
43946 (umask 077 && mkdir $tmp)
43947} ||
43948{
43949 echo "$me: cannot create a temporary directory in ." >&2
43950 { (exit 1); exit 1; }
43951}
43952
43953_ACEOF
43954
43955cat >>$CONFIG_STATUS <<_ACEOF
43956
43957#
43958# CONFIG_FILES section.
43959#
43960
43961# No need to generate the scripts if there are no CONFIG_FILES.
43962# This happens for instance when ./config.status config.h
43963if test -n "\$CONFIG_FILES"; then
43964 # Protect against being on the right side of a sed subst in config.status.
43965 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43966 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43967s,@SHELL@,$SHELL,;t t
43968s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43969s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43970s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43971s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43972s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43973s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43974s,@exec_prefix@,$exec_prefix,;t t
43975s,@prefix@,$prefix,;t t
43976s,@program_transform_name@,$program_transform_name,;t t
43977s,@bindir@,$bindir,;t t
43978s,@sbindir@,$sbindir,;t t
43979s,@libexecdir@,$libexecdir,;t t
43980s,@datadir@,$datadir,;t t
43981s,@sysconfdir@,$sysconfdir,;t t
43982s,@sharedstatedir@,$sharedstatedir,;t t
43983s,@localstatedir@,$localstatedir,;t t
43984s,@libdir@,$libdir,;t t
43985s,@includedir@,$includedir,;t t
43986s,@oldincludedir@,$oldincludedir,;t t
43987s,@infodir@,$infodir,;t t
43988s,@mandir@,$mandir,;t t
43989s,@build_alias@,$build_alias,;t t
43990s,@host_alias@,$host_alias,;t t
43991s,@target_alias@,$target_alias,;t t
43992s,@DEFS@,$DEFS,;t t
43993s,@ECHO_C@,$ECHO_C,;t t
43994s,@ECHO_N@,$ECHO_N,;t t
43995s,@ECHO_T@,$ECHO_T,;t t
43996s,@LIBS@,$LIBS,;t t
43997s,@build@,$build,;t t
43998s,@build_cpu@,$build_cpu,;t t
43999s,@build_vendor@,$build_vendor,;t t
44000s,@build_os@,$build_os,;t t
44001s,@host@,$host,;t t
44002s,@host_cpu@,$host_cpu,;t t
44003s,@host_vendor@,$host_vendor,;t t
44004s,@host_os@,$host_os,;t t
44005s,@target@,$target,;t t
44006s,@target_cpu@,$target_cpu,;t t
44007s,@target_vendor@,$target_vendor,;t t
44008s,@target_os@,$target_os,;t t
44009s,@CC@,$CC,;t t
44010s,@CFLAGS@,$CFLAGS,;t t
44011s,@LDFLAGS@,$LDFLAGS,;t t
44012s,@CPPFLAGS@,$CPPFLAGS,;t t
44013s,@ac_ct_CC@,$ac_ct_CC,;t t
44014s,@EXEEXT@,$EXEEXT,;t t
44015s,@OBJEXT@,$OBJEXT,;t t
44016s,@CPP@,$CPP,;t t
44017s,@EGREP@,$EGREP,;t t
44018s,@CXX@,$CXX,;t t
44019s,@CXXFLAGS@,$CXXFLAGS,;t t
44020s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44021s,@RANLIB@,$RANLIB,;t t
44022s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44023s,@AR@,$AR,;t t
44024s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44025s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44026s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44027s,@STRIP@,$STRIP,;t t
44028s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44029s,@LN_S@,$LN_S,;t t
44030s,@CXXCPP@,$CXXCPP,;t t
44031s,@subdirs@,$subdirs,;t t
44032s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44033s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44034s,@GTK_LIBS@,$GTK_LIBS,;t t
44035s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44036s,@X_CFLAGS@,$X_CFLAGS,;t t
44037s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44038s,@X_LIBS@,$X_LIBS,;t t
44039s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44040s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44041s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44042s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44043s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44044s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44045s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44046s,@RESCOMP@,$RESCOMP,;t t
44047s,@DEREZ@,$DEREZ,;t t
44048s,@SETFILE@,$SETFILE,;t t
44049s,@LIBICONV@,$LIBICONV,;t t
44050s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44051s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44052s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44053s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44054s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44055s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44056s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44057s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44058s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44059s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44060s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44061s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44062s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44063s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44064s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44065s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44066s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44067s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44068s,@VENDOR@,$VENDOR,;t t
44069s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44070s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44071s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44072s,@WXUNIV@,$WXUNIV,;t t
44073s,@MONOLITHIC@,$MONOLITHIC,;t t
44074s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44075s,@EXTRALIBS@,$EXTRALIBS,;t t
44076s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44077s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44078s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44079s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44080s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44081s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44082s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44083s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44084s,@UNICODE@,$UNICODE,;t t
44085s,@BUILD@,$BUILD,;t t
44086s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44087s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44088s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44089s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44090s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44091s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44092s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44093s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44094s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44095s,@SET_MAKE@,$SET_MAKE,;t t
44096s,@MAKE_SET@,$MAKE_SET,;t t
44097s,@ac_ct_AR@,$ac_ct_AR,;t t
44098s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44099s,@NM@,$NM,;t t
44100s,@ac_ct_NM@,$ac_ct_NM,;t t
44101s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44102s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44103s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44104s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44105s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44106s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44107s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44108s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44109s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44110s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44111s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44112s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44113s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44114s,@LIBPREFIX@,$LIBPREFIX,;t t
44115s,@LIBEXT@,$LIBEXT,;t t
44116s,@DLLPREFIX@,$DLLPREFIX,;t t
44117s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44118s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44119s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44120s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44121s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44122s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44123s,@PIC_FLAG@,$PIC_FLAG,;t t
44124s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44125s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44126s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44127s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44128s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44129s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44130s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44131s,@GCC_PCH@,$GCC_PCH,;t t
44132s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44133s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44134s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44135s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44136s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44137s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44138s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44139s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44140s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44141s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44142s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44143s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44144s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44145s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44146s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44147s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44148s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44149s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44150s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44151s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 44152s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44153s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44154s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44155s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44156s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44157s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 44158s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44159s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44160s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44161s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44162s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44163s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44164s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44165s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44166s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44167s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44168s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44169s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44170s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44171s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44172s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44173s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
44174s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44175s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44176s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44177s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44178s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44179s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44180s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44181s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44182s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44183s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44184s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44185s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44186s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44187s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44188s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44189s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44190s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44191s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44192s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44193s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44194s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44195s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44196s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44197s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44198s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44199s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44200s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44201s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44202s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44203s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44204s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44205s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44206s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44207s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44208s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44209s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44210s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44211s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44212s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44213s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44214s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44215s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44216s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44217s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44218s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44219s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44220s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44221s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44222s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44223s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44224s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44225s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44226s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44227s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44228s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44229s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44230s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44231s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44232s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44233s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44234s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44235s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44236s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44237s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44238s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44239s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44240s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44241s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44242s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44243s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44244s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44245s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44246s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44247s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44248s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44249s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44250s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44251s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44252s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44253s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44254s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44255s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44256s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44257s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44258s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44259s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44260s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44261s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44262s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44263s,@USE_GUI@,$USE_GUI,;t t
44264s,@AFMINSTALL@,$AFMINSTALL,;t t
44265s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44266s,@TOOLKIT@,$TOOLKIT,;t t
44267s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44268s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44269s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44270s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44271s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44272s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44273s,@WIDGET_SET@,$WIDGET_SET,;t t
44274s,@WX_RELEASE@,$WX_RELEASE,;t t
44275s,@WX_VERSION@,$WX_VERSION,;t t
44276s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44277s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44278s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44279s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44280s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44281s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44282s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44283s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44284s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44285s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44286s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44287s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44288s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44289s,@DISTDIR@,$DISTDIR,;t t
44290s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44291s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44292s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44293s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44294s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44295s,@RESFLAGS@,$RESFLAGS,;t t
44296s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44297s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44298s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44299s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44300s,@MACRESCOMP@,$MACRESCOMP,;t t
44301s,@MACSETFILE@,$MACSETFILE,;t t
44302s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44303s,@GCC@,$GCC,;t t
a848cd7e 44304s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44305s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44306s,@LIBOBJS@,$LIBOBJS,;t t
44307s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44308CEOF
44309
44310_ACEOF
44311
44312 cat >>$CONFIG_STATUS <<\_ACEOF
44313 # Split the substitutions into bite-sized pieces for seds with
44314 # small command number limits, like on Digital OSF/1 and HP-UX.
44315 ac_max_sed_lines=48
44316 ac_sed_frag=1 # Number of current file.
44317 ac_beg=1 # First line for current file.
44318 ac_end=$ac_max_sed_lines # Line after last line for current file.
44319 ac_more_lines=:
44320 ac_sed_cmds=
44321 while $ac_more_lines; do
44322 if test $ac_beg -gt 1; then
44323 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44324 else
44325 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44326 fi
44327 if test ! -s $tmp/subs.frag; then
44328 ac_more_lines=false
44329 else
44330 # The purpose of the label and of the branching condition is to
44331 # speed up the sed processing (if there are no `@' at all, there
44332 # is no need to browse any of the substitutions).
44333 # These are the two extra sed commands mentioned above.
44334 (echo ':t
44335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44336 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44337 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44338 else
ac1cb8d3 44339 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44340 fi
44341 ac_sed_frag=`expr $ac_sed_frag + 1`
44342 ac_beg=$ac_end
44343 ac_end=`expr $ac_end + $ac_max_sed_lines`
44344 fi
44345 done
44346 if test -z "$ac_sed_cmds"; then
44347 ac_sed_cmds=cat
44348 fi
44349fi # test -n "$CONFIG_FILES"
44350
44351_ACEOF
44352cat >>$CONFIG_STATUS <<\_ACEOF
44353for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44355 case $ac_file in
44356 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44357 cat >$tmp/stdin
44358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44362 * ) ac_file_in=$ac_file.in ;;
44363 esac
44364
44365 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44366 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44367$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44368 X"$ac_file" : 'X\(//\)[^/]' \| \
44369 X"$ac_file" : 'X\(//\)$' \| \
44370 X"$ac_file" : 'X\(/\)' \| \
44371 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44372echo X"$ac_file" |
44373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44375 /^X\(\/\/\)$/{ s//\1/; q; }
44376 /^X\(\/\).*/{ s//\1/; q; }
44377 s/.*/./; q'`
44378 { if $as_mkdir_p; then
44379 mkdir -p "$ac_dir"
44380 else
44381 as_dir="$ac_dir"
44382 as_dirs=
44383 while test ! -d "$as_dir"; do
44384 as_dirs="$as_dir $as_dirs"
44385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44387 X"$as_dir" : 'X\(//\)[^/]' \| \
44388 X"$as_dir" : 'X\(//\)$' \| \
44389 X"$as_dir" : 'X\(/\)' \| \
44390 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44391echo X"$as_dir" |
44392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44394 /^X\(\/\/\)$/{ s//\1/; q; }
44395 /^X\(\/\).*/{ s//\1/; q; }
44396 s/.*/./; q'`
44397 done
44398 test ! -n "$as_dirs" || mkdir $as_dirs
44399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44400echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44401 { (exit 1); exit 1; }; }; }
44402
44403 ac_builddir=.
44404
44405if test "$ac_dir" != .; then
44406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44407 # A "../" for each directory in $ac_dir_suffix.
44408 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44409else
44410 ac_dir_suffix= ac_top_builddir=
44411fi
44412
44413case $srcdir in
44414 .) # No --srcdir option. We are building in place.
44415 ac_srcdir=.
44416 if test -z "$ac_top_builddir"; then
44417 ac_top_srcdir=.
44418 else
44419 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44420 fi ;;
44421 [\\/]* | ?:[\\/]* ) # Absolute path.
44422 ac_srcdir=$srcdir$ac_dir_suffix;
44423 ac_top_srcdir=$srcdir ;;
44424 *) # Relative path.
44425 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44426 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44427esac
ac1cb8d3
VS
44428
44429# Do not use `cd foo && pwd` to compute absolute paths, because
44430# the directories may not exist.
44431case `pwd` in
44432.) ac_abs_builddir="$ac_dir";;
44433*)
44434 case "$ac_dir" in
44435 .) ac_abs_builddir=`pwd`;;
44436 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44437 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44438 esac;;
44439esac
44440case $ac_abs_builddir in
44441.) ac_abs_top_builddir=${ac_top_builddir}.;;
44442*)
44443 case ${ac_top_builddir}. in
44444 .) ac_abs_top_builddir=$ac_abs_builddir;;
44445 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44446 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44447 esac;;
44448esac
44449case $ac_abs_builddir in
44450.) ac_abs_srcdir=$ac_srcdir;;
44451*)
44452 case $ac_srcdir in
44453 .) ac_abs_srcdir=$ac_abs_builddir;;
44454 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44455 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44456 esac;;
44457esac
44458case $ac_abs_builddir in
44459.) ac_abs_top_srcdir=$ac_top_srcdir;;
44460*)
44461 case $ac_top_srcdir in
44462 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44463 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44464 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44465 esac;;
44466esac
a848cd7e
SC
44467
44468
44469 case $INSTALL in
44470 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44471 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44472 esac
44473
a848cd7e
SC
44474 # Let's still pretend it is `configure' which instantiates (i.e., don't
44475 # use $as_me), people would be surprised to read:
44476 # /* config.h. Generated by config.status. */
44477 if test x"$ac_file" = x-; then
44478 configure_input=
44479 else
44480 configure_input="$ac_file. "
44481 fi
44482 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44483 sed 's,.*/,,'` by configure."
a848cd7e
SC
44484
44485 # First look for the input files in the build tree, otherwise in the
44486 # src tree.
44487 ac_file_inputs=`IFS=:
44488 for f in $ac_file_in; do
44489 case $f in
44490 -) echo $tmp/stdin ;;
44491 [\\/$]*)
ac1cb8d3
VS
44492 # Absolute (can't be DOS-style, as IFS=:)
44493 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44494echo "$as_me: error: cannot find input file: $f" >&2;}
44495 { (exit 1); exit 1; }; }
ac1cb8d3 44496 echo "$f";;
a848cd7e 44497 *) # Relative
ac1cb8d3
VS
44498 if test -f "$f"; then
44499 # Build tree
44500 echo "$f"
44501 elif test -f "$srcdir/$f"; then
44502 # Source tree
44503 echo "$srcdir/$f"
44504 else
44505 # /dev/null tree
44506 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44507echo "$as_me: error: cannot find input file: $f" >&2;}
44508 { (exit 1); exit 1; }; }
ac1cb8d3 44509 fi;;
a848cd7e
SC
44510 esac
44511 done` || { (exit 1); exit 1; }
07158944
VZ
44512
44513 if test x"$ac_file" != x-; then
44514 { echo "$as_me:$LINENO: creating $ac_file" >&5
44515echo "$as_me: creating $ac_file" >&6;}
44516 rm -f "$ac_file"
44517 fi
a848cd7e
SC
44518_ACEOF
44519cat >>$CONFIG_STATUS <<_ACEOF
44520 sed "$ac_vpsub
44521$extrasub
44522_ACEOF
44523cat >>$CONFIG_STATUS <<\_ACEOF
44524:t
44525/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44526s,@configure_input@,$configure_input,;t t
44527s,@srcdir@,$ac_srcdir,;t t
44528s,@abs_srcdir@,$ac_abs_srcdir,;t t
44529s,@top_srcdir@,$ac_top_srcdir,;t t
44530s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44531s,@builddir@,$ac_builddir,;t t
44532s,@abs_builddir@,$ac_abs_builddir,;t t
44533s,@top_builddir@,$ac_top_builddir,;t t
44534s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44535s,@INSTALL@,$ac_INSTALL,;t t
44536" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44537 rm -f $tmp/stdin
44538 if test x"$ac_file" != x-; then
44539 mv $tmp/out $ac_file
44540 else
44541 cat $tmp/out
44542 rm -f $tmp/out
44543 fi
44544
ceec2216
RL
44545 # Run the commands associated with the file.
44546 case $ac_file in
44547 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44548 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44549 esac
a848cd7e
SC
44550done
44551_ACEOF
44552cat >>$CONFIG_STATUS <<\_ACEOF
44553
44554#
44555# CONFIG_HEADER section.
44556#
44557
44558# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44559# NAME is the cpp macro being defined and VALUE is the value it is being given.
44560#
44561# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44562ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44563ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44564ac_dC=' '
44565ac_dD=',;t'
44566# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44567ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44568ac_uB='$,\1#\2define\3'
44569ac_uC=' '
44570ac_uD=',;t'
44571
44572for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44573 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44574 case $ac_file in
44575 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44576 cat >$tmp/stdin
44577 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44579 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44581 * ) ac_file_in=$ac_file.in ;;
44582 esac
44583
44584 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44585echo "$as_me: creating $ac_file" >&6;}
44586
44587 # First look for the input files in the build tree, otherwise in the
44588 # src tree.
44589 ac_file_inputs=`IFS=:
44590 for f in $ac_file_in; do
44591 case $f in
44592 -) echo $tmp/stdin ;;
44593 [\\/$]*)
ac1cb8d3
VS
44594 # Absolute (can't be DOS-style, as IFS=:)
44595 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44596echo "$as_me: error: cannot find input file: $f" >&2;}
44597 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44598 # Do quote $f, to prevent DOS paths from being IFS'd.
44599 echo "$f";;
a848cd7e 44600 *) # Relative
ac1cb8d3
VS
44601 if test -f "$f"; then
44602 # Build tree
44603 echo "$f"
44604 elif test -f "$srcdir/$f"; then
44605 # Source tree
44606 echo "$srcdir/$f"
44607 else
44608 # /dev/null tree
44609 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44610echo "$as_me: error: cannot find input file: $f" >&2;}
44611 { (exit 1); exit 1; }; }
ac1cb8d3 44612 fi;;
a848cd7e
SC
44613 esac
44614 done` || { (exit 1); exit 1; }
44615 # Remove the trailing spaces.
ac1cb8d3 44616 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44617
44618_ACEOF
44619
44620# Transform confdefs.h into two sed scripts, `conftest.defines' and
44621# `conftest.undefs', that substitutes the proper values into
44622# config.h.in to produce config.h. The first handles `#define'
44623# templates, and the second `#undef' templates.
44624# And first: Protect against being on the right side of a sed subst in
44625# config.status. Protect against being in an unquoted here document
44626# in config.status.
44627rm -f conftest.defines conftest.undefs
44628# Using a here document instead of a string reduces the quoting nightmare.
44629# Putting comments in sed scripts is not portable.
44630#
44631# `end' is used to avoid that the second main sed command (meant for
44632# 0-ary CPP macros) applies to n-ary macro definitions.
44633# See the Autoconf documentation for `clear'.
44634cat >confdef2sed.sed <<\_ACEOF
44635s/[\\&,]/\\&/g
44636s,[\\$`],\\&,g
44637t clear
44638: clear
ac1cb8d3 44639s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44640t end
ac1cb8d3 44641s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44642: end
44643_ACEOF
44644# If some macros were called several times there might be several times
44645# the same #defines, which is useless. Nevertheless, we may not want to
44646# sort them, since we want the *last* AC-DEFINE to be honored.
44647uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44648sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44649rm -f confdef2sed.sed
44650
44651# This sed command replaces #undef with comments. This is necessary, for
44652# example, in the case of _POSIX_SOURCE, which is predefined and required
44653# on some systems where configure will not decide to define it.
44654cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44655s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44656_ACEOF
44657
44658# Break up conftest.defines because some shells have a limit on the size
44659# of here documents, and old seds have small limits too (100 cmds).
44660echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44661echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44662echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44663echo ' :' >>$CONFIG_STATUS
44664rm -f conftest.tail
44665while grep . conftest.defines >/dev/null
44666do
44667 # Write a limited-size here document to $tmp/defines.sed.
44668 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44669 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44670 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44671 # Work around the forget-to-reset-the-flag bug.
44672 echo 't clr' >>$CONFIG_STATUS
44673 echo ': clr' >>$CONFIG_STATUS
44674 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44675 echo 'CEOF
44676 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44677 rm -f $tmp/in
44678 mv $tmp/out $tmp/in
44679' >>$CONFIG_STATUS
44680 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44681 rm -f conftest.defines
44682 mv conftest.tail conftest.defines
44683done
44684rm -f conftest.defines
44685echo ' fi # grep' >>$CONFIG_STATUS
44686echo >>$CONFIG_STATUS
44687
44688# Break up conftest.undefs because some shells have a limit on the size
44689# of here documents, and old seds have small limits too (100 cmds).
44690echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44691rm -f conftest.tail
44692while grep . conftest.undefs >/dev/null
44693do
44694 # Write a limited-size here document to $tmp/undefs.sed.
44695 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44696 # Speed up: don't consider the non `#undef'
ac1cb8d3 44697 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44698 # Work around the forget-to-reset-the-flag bug.
44699 echo 't clr' >>$CONFIG_STATUS
44700 echo ': clr' >>$CONFIG_STATUS
44701 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44702 echo 'CEOF
44703 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44704 rm -f $tmp/in
44705 mv $tmp/out $tmp/in
44706' >>$CONFIG_STATUS
44707 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44708 rm -f conftest.undefs
44709 mv conftest.tail conftest.undefs
44710done
44711rm -f conftest.undefs
44712
44713cat >>$CONFIG_STATUS <<\_ACEOF
44714 # Let's still pretend it is `configure' which instantiates (i.e., don't
44715 # use $as_me), people would be surprised to read:
44716 # /* config.h. Generated by config.status. */
44717 if test x"$ac_file" = x-; then
44718 echo "/* Generated by configure. */" >$tmp/config.h
44719 else
44720 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44721 fi
44722 cat $tmp/in >>$tmp/config.h
44723 rm -f $tmp/in
44724 if test x"$ac_file" != x-; then
44725 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44726 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44727echo "$as_me: $ac_file is unchanged" >&6;}
44728 else
44729 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44730$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44731 X"$ac_file" : 'X\(//\)[^/]' \| \
44732 X"$ac_file" : 'X\(//\)$' \| \
44733 X"$ac_file" : 'X\(/\)' \| \
44734 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44735echo X"$ac_file" |
44736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44738 /^X\(\/\/\)$/{ s//\1/; q; }
44739 /^X\(\/\).*/{ s//\1/; q; }
44740 s/.*/./; q'`
44741 { if $as_mkdir_p; then
44742 mkdir -p "$ac_dir"
44743 else
44744 as_dir="$ac_dir"
44745 as_dirs=
44746 while test ! -d "$as_dir"; do
44747 as_dirs="$as_dir $as_dirs"
44748 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44750 X"$as_dir" : 'X\(//\)[^/]' \| \
44751 X"$as_dir" : 'X\(//\)$' \| \
44752 X"$as_dir" : 'X\(/\)' \| \
44753 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44754echo X"$as_dir" |
44755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44757 /^X\(\/\/\)$/{ s//\1/; q; }
44758 /^X\(\/\).*/{ s//\1/; q; }
44759 s/.*/./; q'`
44760 done
44761 test ! -n "$as_dirs" || mkdir $as_dirs
44762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44763echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44764 { (exit 1); exit 1; }; }; }
44765
44766 rm -f $ac_file
44767 mv $tmp/config.h $ac_file
44768 fi
44769 else
44770 cat $tmp/config.h
44771 rm -f $tmp/config.h
44772 fi
44773done
44774_ACEOF
44775cat >>$CONFIG_STATUS <<\_ACEOF
44776
44777#
44778# CONFIG_COMMANDS section.
44779#
44780for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44781 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44782 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44783 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44784$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44785 X"$ac_dest" : 'X\(//\)[^/]' \| \
44786 X"$ac_dest" : 'X\(//\)$' \| \
44787 X"$ac_dest" : 'X\(/\)' \| \
44788 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44789echo X"$ac_dest" |
44790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44792 /^X\(\/\/\)$/{ s//\1/; q; }
44793 /^X\(\/\).*/{ s//\1/; q; }
44794 s/.*/./; q'`
ac1cb8d3
VS
44795 { if $as_mkdir_p; then
44796 mkdir -p "$ac_dir"
44797 else
44798 as_dir="$ac_dir"
44799 as_dirs=
44800 while test ! -d "$as_dir"; do
44801 as_dirs="$as_dir $as_dirs"
44802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44803$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44804 X"$as_dir" : 'X\(//\)[^/]' \| \
44805 X"$as_dir" : 'X\(//\)$' \| \
44806 X"$as_dir" : 'X\(/\)' \| \
44807 . : '\(.\)' 2>/dev/null ||
44808echo X"$as_dir" |
44809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44811 /^X\(\/\/\)$/{ s//\1/; q; }
44812 /^X\(\/\).*/{ s//\1/; q; }
44813 s/.*/./; q'`
44814 done
44815 test ! -n "$as_dirs" || mkdir $as_dirs
44816 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44817echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44818 { (exit 1); exit 1; }; }; }
44819
a848cd7e
SC
44820 ac_builddir=.
44821
44822if test "$ac_dir" != .; then
44823 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44824 # A "../" for each directory in $ac_dir_suffix.
44825 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44826else
44827 ac_dir_suffix= ac_top_builddir=
44828fi
44829
44830case $srcdir in
44831 .) # No --srcdir option. We are building in place.
44832 ac_srcdir=.
44833 if test -z "$ac_top_builddir"; then
44834 ac_top_srcdir=.
44835 else
44836 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44837 fi ;;
44838 [\\/]* | ?:[\\/]* ) # Absolute path.
44839 ac_srcdir=$srcdir$ac_dir_suffix;
44840 ac_top_srcdir=$srcdir ;;
44841 *) # Relative path.
44842 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44843 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44844esac
ac1cb8d3
VS
44845
44846# Do not use `cd foo && pwd` to compute absolute paths, because
44847# the directories may not exist.
44848case `pwd` in
44849.) ac_abs_builddir="$ac_dir";;
44850*)
44851 case "$ac_dir" in
44852 .) ac_abs_builddir=`pwd`;;
44853 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44854 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44855 esac;;
44856esac
44857case $ac_abs_builddir in
44858.) ac_abs_top_builddir=${ac_top_builddir}.;;
44859*)
44860 case ${ac_top_builddir}. in
44861 .) ac_abs_top_builddir=$ac_abs_builddir;;
44862 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44863 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44864 esac;;
44865esac
44866case $ac_abs_builddir in
44867.) ac_abs_srcdir=$ac_srcdir;;
44868*)
44869 case $ac_srcdir in
44870 .) ac_abs_srcdir=$ac_abs_builddir;;
44871 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44872 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44873 esac;;
44874esac
44875case $ac_abs_builddir in
44876.) ac_abs_top_srcdir=$ac_top_srcdir;;
44877*)
44878 case $ac_top_srcdir in
44879 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44880 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44881 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44882 esac;;
44883esac
a848cd7e
SC
44884
44885
44886 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44887echo "$as_me: executing $ac_dest commands" >&6;}
44888 case $ac_dest in
ceec2216
RL
44889 wx-config ) rm -f wx-config
44890 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
44891 ;;
a848cd7e
SC
44892 esac
44893done
44894_ACEOF
44895
44896cat >>$CONFIG_STATUS <<\_ACEOF
44897
44898{ (exit 0); exit 0; }
44899_ACEOF
44900chmod +x $CONFIG_STATUS
44901ac_clean_files=$ac_clean_files_save
44902
44903
44904# configure is writing to config.log, and then calls config.status.
44905# config.status does its own redirection, appending to config.log.
44906# Unfortunately, on DOS this fails, as config.log is still kept open
44907# by configure, so config.status won't be able to write to it; its
44908# output is simply discarded. So we exec the FD to /dev/null,
44909# effectively closing config.log, so it can be properly (re)opened and
44910# appended to by config.status. When coming back to configure, we
44911# need to make the FD available again.
44912if test "$no_create" != yes; then
44913 ac_cs_success=:
44914 ac_config_status_args=
44915 test "$silent" = yes &&
44916 ac_config_status_args="$ac_config_status_args --quiet"
44917 exec 5>/dev/null
44918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44919 exec 5>>config.log
44920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44921 # would make configure fail if this is the last instruction.
44922 $ac_cs_success || { (exit 1); exit 1; }
44923fi
44924
44925#
44926# CONFIG_SUBDIRS section.
44927#
44928if test "$no_recursion" != yes; then
44929
44930 # Remove --cache-file and --srcdir arguments so they do not pile up.
44931 ac_sub_configure_args=
44932 ac_prev=
44933 for ac_arg in $ac_configure_args; do
44934 if test -n "$ac_prev"; then
44935 ac_prev=
44936 continue
44937 fi
44938 case $ac_arg in
44939 -cache-file | --cache-file | --cache-fil | --cache-fi \
44940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44941 ac_prev=cache_file ;;
44942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44944 | --c=*)
44945 ;;
44946 --config-cache | -C)
44947 ;;
44948 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44949 ac_prev=srcdir ;;
44950 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44951 ;;
44952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44953 ac_prev=prefix ;;
44954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44955 ;;
44956 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
44957 esac
44958 done
44959
44960 # Always prepend --prefix to ensure using the same prefix
44961 # in subdir configurations.
44962 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
44963
44964 ac_popdir=`pwd`
44965 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44966
44967 # Do not complain, so a configure script can configure whichever
44968 # parts of a large source tree are present.
44969 test -d $srcdir/$ac_dir || continue
44970
44971 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44972echo "$as_me: configuring in $ac_dir" >&6;}
44973 { if $as_mkdir_p; then
44974 mkdir -p "$ac_dir"
44975 else
44976 as_dir="$ac_dir"
44977 as_dirs=
44978 while test ! -d "$as_dir"; do
44979 as_dirs="$as_dir $as_dirs"
44980 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44981$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44982 X"$as_dir" : 'X\(//\)[^/]' \| \
44983 X"$as_dir" : 'X\(//\)$' \| \
44984 X"$as_dir" : 'X\(/\)' \| \
44985 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44986echo X"$as_dir" |
44987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44989 /^X\(\/\/\)$/{ s//\1/; q; }
44990 /^X\(\/\).*/{ s//\1/; q; }
44991 s/.*/./; q'`
44992 done
44993 test ! -n "$as_dirs" || mkdir $as_dirs
44994 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44995echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44996 { (exit 1); exit 1; }; }; }
44997
44998 ac_builddir=.
44999
45000if test "$ac_dir" != .; then
45001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45002 # A "../" for each directory in $ac_dir_suffix.
45003 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45004else
45005 ac_dir_suffix= ac_top_builddir=
45006fi
45007
45008case $srcdir in
45009 .) # No --srcdir option. We are building in place.
45010 ac_srcdir=.
45011 if test -z "$ac_top_builddir"; then
45012 ac_top_srcdir=.
45013 else
45014 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45015 fi ;;
45016 [\\/]* | ?:[\\/]* ) # Absolute path.
45017 ac_srcdir=$srcdir$ac_dir_suffix;
45018 ac_top_srcdir=$srcdir ;;
45019 *) # Relative path.
45020 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45021 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45022esac
ac1cb8d3
VS
45023
45024# Do not use `cd foo && pwd` to compute absolute paths, because
45025# the directories may not exist.
45026case `pwd` in
45027.) ac_abs_builddir="$ac_dir";;
45028*)
45029 case "$ac_dir" in
45030 .) ac_abs_builddir=`pwd`;;
45031 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45032 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45033 esac;;
45034esac
45035case $ac_abs_builddir in
45036.) ac_abs_top_builddir=${ac_top_builddir}.;;
45037*)
45038 case ${ac_top_builddir}. in
45039 .) ac_abs_top_builddir=$ac_abs_builddir;;
45040 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45041 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45042 esac;;
45043esac
45044case $ac_abs_builddir in
45045.) ac_abs_srcdir=$ac_srcdir;;
45046*)
45047 case $ac_srcdir in
45048 .) ac_abs_srcdir=$ac_abs_builddir;;
45049 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45050 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45051 esac;;
45052esac
45053case $ac_abs_builddir in
45054.) ac_abs_top_srcdir=$ac_top_srcdir;;
45055*)
45056 case $ac_top_srcdir in
45057 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45058 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45059 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45060 esac;;
45061esac
a848cd7e
SC
45062
45063
45064 cd $ac_dir
45065
45066 # Check for guested configure; otherwise get Cygnus style configure.
45067 if test -f $ac_srcdir/configure.gnu; then
45068 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45069 elif test -f $ac_srcdir/configure; then
45070 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45071 elif test -f $ac_srcdir/configure.in; then
45072 ac_sub_configure=$ac_configure
45073 else
45074 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45075echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45076 ac_sub_configure=
45077 fi
45078
45079 # The recursion is here.
45080 if test -n "$ac_sub_configure"; then
45081 # Make the cache file name correct relative to the subdirectory.
45082 case $cache_file in
45083 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45084 *) # Relative path.
ac1cb8d3 45085 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45086 esac
45087
45088 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45089echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45090 # The eval makes quoting arguments work.
45091 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45092 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45093 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45094echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45095 { (exit 1); exit 1; }; }
45096 fi
45097
07158944 45098 cd "$ac_popdir"
a848cd7e
SC
45099 done
45100fi
45101
45102
45103echo
77ffb593 45104echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45105echo ""
4d4ff94c 45106echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45107echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45108
77ffb593
JS
45109echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45110echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45111echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45112
77ffb593
JS
45113echo " What level of wxWidgets compatibility should be enabled?"
45114echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45115echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45116
77ffb593 45117echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45118echo " jpeg ${wxUSE_LIBJPEG-none}"
45119echo " png ${wxUSE_LIBPNG-none}"
45120echo " regex ${wxUSE_REGEX}"
45121echo " tiff ${wxUSE_LIBTIFF-none}"
45122if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45123echo " xpm ${wxUSE_LIBXPM-none}"
45124fi
45125echo " zlib ${wxUSE_ZLIB}"
45126echo " odbc ${wxUSE_ODBC}"
45127echo " expat ${wxUSE_EXPAT}"
45128echo " libmspack ${wxUSE_LIBMSPACK}"
45129echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45130echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45131
45132echo ""
45133