]> git.saurik.com Git - wxWidgets.git/blame - configure
When host is OS X (PowerPC Darwin) check if compiler defines __POWERPC__
[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"
dae87f93 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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
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
a848cd7e 907 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
911 --enable-dialupman use dialup network classes
912 --enable-dynlib use wxLibrary class for DLL loading
913 --enable-dynamicloader use (new) wxDynamicLibrary class
914 --enable-exceptions build exception-safe library
915 --enable-ffile use wxFFile class
916 --enable-file use wxFile class
917 --enable-filesystem use virtual file systems classes
918 --enable-fontmap use font encodings conversion classes
919 --enable-fs_inet use virtual HTTP/FTP filesystems
920 --enable-fs_zip use virtual ZIP filesystems
921 --enable-geometry use geometry class
922 --enable-log use logging system
923 --enable-longlong use wxLongLong class
924 --enable-mimetype use wxMimeTypesManager
925 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
926 --enable-snglinst use wxSingleInstanceChecker class
927 --enable-streams use wxStream etc classes
928 --enable-std_iostreams use standard C++ stream classes
929 --enable-stopwatch use wxStopWatch class
930 --enable-sysoptions use wxSystemOptions
931 --enable-textbuf use wxTextBuffer class
932 --enable-textfile use wxTextFile class
933 --enable-timer use wxTimer class
934 --enable-unicode compile wxString with Unicode support
935 --enable-sound use wxSound class
3b57de8b 936 --enable-mediactrl use wxMediaCtrl class
77ffb593 937 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 938 --enable-zipstream use wxZip streams
a848cd7e
SC
939 --enable-url use wxURL class
940 --enable-protocol use wxProtocol class
941 --enable-protocol-http HTTP support in wxProtocol
942 --enable-protocol-ftp FTP support in wxProtocol
943 --enable-protocol-file FILE support in wxProtocol
944 --enable-threads use threads
945 --enable-docview use document view architecture
946 --enable-help use help subsystem
947 --enable-mshtmlhelp use MS HTML Help (win32)
948 --enable-html use wxHTML sub-library
949 --enable-htmlhelp use wxHTML-based help
9a8f0513 950 --enable-xrc use XRC resources sub-library
a848cd7e
SC
951 --enable-constraints use layout-constraints system
952 --enable-printarch use printing architecture
953 --enable-mdi use multiple document interface architecture
8a7b1113 954 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
955 --enable-loggui use standard GUI logger
956 --enable-logwin use wxLogWindow
957 --enable-logdialog use wxLogDialog
646b6ec1 958 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
959 --enable-postscript use wxPostscriptDC device context (default for gtk+)
960 --enable-prologio not available; see contrib
961 --enable-resources not available; see contrib
962 --enable-clipboard use wxClipboard class
963 --enable-dnd use Drag'n'Drop classes
964 --enable-metafile use win32 metafiles
965 --enable-controls use all usual controls
966 --enable-accel use accelerators
967 --enable-button use wxButton class
968 --enable-bmpbutton use wxBitmapButton class
969 --enable-calendar use wxCalendarCtrl class
970 --enable-caret use wxCaret class
971 --enable-checkbox use wxCheckBox class
972 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
973 --enable-choice use wxChoice class
92bbdbcd 974 --enable-choicebook use wxChoicebook class
a848cd7e 975 --enable-combobox use wxComboBox class
da98e9be 976 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
977 --enable-display use wxDisplay class
978 --enable-gauge use wxGauge class
979 --enable-grid use wxGrid class
980 --enable-imaglist use wxImageList class
981 --enable-listbook use wxListbook class
982 --enable-listbox use wxListBox class
983 --enable-listctrl use wxListCtrl class
984 --enable-notebook use wxNotebook class
985 --enable-radiobox use wxRadioBox class
986 --enable-radiobtn use wxRadioButton class
987 --enable-sash use wxSashWindow class
988 --enable-scrollbar use wxScrollBar class and scrollable windows
989 --enable-slider use wxSlider class
990 --enable-spinbtn use wxSpinButton class
991 --enable-spinctrl use wxSpinCtrl class
992 --enable-splitter use wxSplitterWindow class
993 --enable-statbmp use wxStaticBitmap class
994 --enable-statbox use wxStaticBox class
995 --enable-statline use wxStaticLine class
996 --enable-stattext use wxStaticText class
997 --enable-statusbar use wxStatusBar class
998 --enable-tabdialog use wxTabControl class
999 --enable-textctrl use wxTextCtrl class
1000 --enable-togglebtn use wxToggleButton class
1001 --enable-toolbar use wxToolBar class
1002 --enable-tbarnative use native wxToolBar class
1003 --enable-tbarsmpl use wxToolBarSimple class
1004 --enable-treectrl use wxTreeCtrl class
1005 --enable-tipwindow use wxTipWindow class
1006 --enable-popupwin use wxPopUpWindow class
1007 --enable-commondlg use all common dialogs
1008 --enable-choicedlg use wxChoiceDialog
1009 --enable-coldlg use wxColourDialog
1010 --enable-filedlg use wxFileDialog
1011 --enable-finddlg use wxFindReplaceDialog
1012 --enable-fontdlg use wxFontDialog
1013 --enable-dirdlg use wxDirDialog
1014 --enable-msgdlg use wxMessageDialog
1015 --enable-numberdlg use wxNumberEntryDialog
1016 --enable-splash use wxSplashScreen
1017 --enable-textdlg use wxTextDialog
1018 --enable-tipdlg use startup tips
1019 --enable-progressdlg use wxProgressDialog
1020 --enable-wizarddlg use wxWizard
1021 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1022 --enable-miniframe use wxMiniFrame class
1023 --enable-tooltips use wxToolTip class
1024 --enable-splines use spline drawing code
1025 --enable-validators use wxValidator and derived classes
1026 --enable-busyinfo use wxBusyInfo
4cb1d3da 1027 --enable-joystick use wxJoystick
a848cd7e
SC
1028 --enable-metafiles use wxMetaFile (Windows only)
1029 --enable-dragimage use wxDragImage
1030 --enable-accessibility enable accessibility support
1031 --enable-palette use wxPalette class
1032 --enable-image use wxImage class
1033 --enable-gif use gif images (GIF file format)
1034 --enable-pcx use pcx images (PCX file format)
1035 --enable-iff use iff images (IFF file format)
1036 --enable-pnm use pnm images (PNM file format)
1037 --enable-xpm use xpm images (XPM file format)
1038 --enable-icocur use Windows ICO and CUR formats
77ffb593 1039 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1040 --enable-vendor=VENDOR vendor name (win32 DLL only)
1041 --disable-largefile omit support for large files
1042 --disable-gtktest do not try to compile and run a test GTK+ program
1043 --disable-gtktest Do not try to compile and run a test GTK program
1044 --disable-sdltest Do not try to compile and run a test SDL program
1045 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1046 --disable-precomp-headers
1047 don't use precompiled headers even if compiler can
a848cd7e
SC
1048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-gtk use GTK+
1053 --with-motif use Motif/Lesstif
1054 --with-mac use Mac OS X
1055 --with-cocoa use Cocoa
1056 --with-wine use Wine
1057 --with-msw use MS-Windows
1058 --with-pm use OS/2 Presentation Manager
1059 --with-mgl use SciTech MGL
1060 --with-microwin use MicroWindows
1061 --with-x11 use X11
1062 --with-libpng use libpng (PNG image format)
1063 --with-libjpeg use libjpeg (JPEG file format)
1064 --with-libtiff use libtiff (TIFF file format)
1065 --with-libxpm use libxpm (XPM file format)
1066 --with-libmspack use libmspack (CHM help files loading)
1067 --with-sdl use SDL for audio on Unix
d51253e8 1068 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1069 --with-opengl use OpenGL (or Mesa)
1070 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1071 --with-regex enable support for wxRegEx class
1072 --with-zlib use zlib for LZW compression
1073 --with-odbc use the IODBC and wxODBC classes
1074 --with-expat enable XML support using expat parser
ceec2216 1075 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1076 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1077 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1078 --with-x use the X Window System
1079 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1080 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1081 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1082 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1083 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1084
1085Some influential environment variables:
dcc1b6ad
VS
1086 CC C compiler command
1087 CFLAGS C compiler flags
1088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1089 nonstandard directory <lib dir>
1090 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1091 headers in a nonstandard directory <include dir>
1092 CPP C preprocessor
1093 CXX C++ compiler command
1094 CXXFLAGS C++ compiler flags
1095 CXXCPP C++ preprocessor
a848cd7e
SC
1096
1097Use these variables to override the choices made by `configure' or to help
1098it to find libraries and programs with nonstandard names/locations.
1099
77ffb593 1100Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1101_ACEOF
1102fi
1103
1104if test "$ac_init_help" = "recursive"; then
1105 # If there are subdirs, report their specific --help.
1106 ac_popdir=`pwd`
1107 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1108 test -d $ac_dir || continue
1109 ac_builddir=.
1110
1111if test "$ac_dir" != .; then
1112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1113 # A "../" for each directory in $ac_dir_suffix.
1114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1115else
1116 ac_dir_suffix= ac_top_builddir=
1117fi
1118
1119case $srcdir in
1120 .) # No --srcdir option. We are building in place.
1121 ac_srcdir=.
1122 if test -z "$ac_top_builddir"; then
1123 ac_top_srcdir=.
1124 else
1125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1126 fi ;;
1127 [\\/]* | ?:[\\/]* ) # Absolute path.
1128 ac_srcdir=$srcdir$ac_dir_suffix;
1129 ac_top_srcdir=$srcdir ;;
1130 *) # Relative path.
1131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1133esac
ac1cb8d3
VS
1134
1135# Do not use `cd foo && pwd` to compute absolute paths, because
1136# the directories may not exist.
1137case `pwd` in
1138.) ac_abs_builddir="$ac_dir";;
1139*)
1140 case "$ac_dir" in
1141 .) ac_abs_builddir=`pwd`;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1143 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_builddir=${ac_top_builddir}.;;
1148*)
1149 case ${ac_top_builddir}. in
1150 .) ac_abs_top_builddir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_srcdir=$ac_srcdir;;
1157*)
1158 case $ac_srcdir in
1159 .) ac_abs_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1161 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1162 esac;;
1163esac
1164case $ac_abs_builddir in
1165.) ac_abs_top_srcdir=$ac_top_srcdir;;
1166*)
1167 case $ac_top_srcdir in
1168 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171 esac;;
1172esac
a848cd7e
SC
1173
1174 cd $ac_dir
1175 # Check for guested configure; otherwise get Cygnus style configure.
1176 if test -f $ac_srcdir/configure.gnu; then
1177 echo
1178 $SHELL $ac_srcdir/configure.gnu --help=recursive
1179 elif test -f $ac_srcdir/configure; then
1180 echo
1181 $SHELL $ac_srcdir/configure --help=recursive
1182 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1183 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1184 echo
1185 $ac_configure --help
1186 else
1187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1188 fi
89be85c2 1189 cd $ac_popdir
a848cd7e
SC
1190 done
1191fi
1192
1193test -n "$ac_init_help" && exit 0
1194if $ac_init_version; then
1195 cat <<\_ACEOF
81f90336 1196wxWidgets configure 2.5.4
ac1cb8d3 1197generated by GNU Autoconf 2.59
a848cd7e 1198
ac1cb8d3 1199Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1200This configure script is free software; the Free Software Foundation
1201gives unlimited permission to copy, distribute and modify it.
1202_ACEOF
1203 exit 0
1204fi
1205exec 5>config.log
1206cat >&5 <<_ACEOF
1207This file contains any messages produced by compilers while
1208running configure, to aid debugging if configure makes a mistake.
1209
81f90336 1210It was created by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 1211generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1212
1213 $ $0 $@
1214
1215_ACEOF
1216{
1217cat <<_ASUNAME
1218## --------- ##
1219## Platform. ##
1220## --------- ##
1221
1222hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1223uname -m = `(uname -m) 2>/dev/null || echo unknown`
1224uname -r = `(uname -r) 2>/dev/null || echo unknown`
1225uname -s = `(uname -s) 2>/dev/null || echo unknown`
1226uname -v = `(uname -v) 2>/dev/null || echo unknown`
1227
1228/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1229/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1230
1231/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1232/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1233/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1234hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1235/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1236/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1237/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1238
1239_ASUNAME
1240
1241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1242for as_dir in $PATH
1243do
1244 IFS=$as_save_IFS
1245 test -z "$as_dir" && as_dir=.
1246 echo "PATH: $as_dir"
1247done
1248
1249} >&5
1250
1251cat >&5 <<_ACEOF
1252
1253
1254## ----------- ##
1255## Core tests. ##
1256## ----------- ##
1257
1258_ACEOF
1259
1260
1261# Keep a trace of the command line.
1262# Strip out --no-create and --no-recursion so they do not pile up.
1263# Strip out --silent because we don't want to record it for future runs.
1264# Also quote any args containing shell meta-characters.
1265# Make two passes to allow for proper duplicate-argument suppression.
1266ac_configure_args=
1267ac_configure_args0=
1268ac_configure_args1=
1269ac_sep=
1270ac_must_keep_next=false
1271for ac_pass in 1 2
1272do
1273 for ac_arg
1274 do
1275 case $ac_arg in
1276 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 continue ;;
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 esac
1283 case $ac_pass in
1284 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1285 2)
1286 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1287 if test $ac_must_keep_next = true; then
ac1cb8d3 1288 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1289 else
ac1cb8d3
VS
1290 case $ac_arg in
1291 *=* | --config-cache | -C | -disable-* | --disable-* \
1292 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1293 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1294 | -with-* | --with-* | -without-* | --without-* | --x)
1295 case "$ac_configure_args0 " in
1296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1297 esac
1298 ;;
1299 -* ) ac_must_keep_next=true ;;
1300 esac
a848cd7e
SC
1301 fi
1302 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1303 # Get rid of the leading space.
1304 ac_sep=" "
1305 ;;
1306 esac
1307 done
1308done
1309$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1310$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1311
1312# When interrupted or exit'd, cleanup temporary files, and complete
1313# config.log. We remove comments because anyway the quotes in there
1314# would cause problems or look ugly.
1315# WARNING: Be sure not to use single quotes in there, as some shells,
1316# such as our DU 5.0 friend, will then `close' the trap.
1317trap 'exit_status=$?
1318 # Save into config.log some information that might help in debugging.
1319 {
1320 echo
1321
1322 cat <<\_ASBOX
1323## ---------------- ##
1324## Cache variables. ##
1325## ---------------- ##
1326_ASBOX
1327 echo
1328 # The following way of writing the cache mishandles newlines in values,
1329{
1330 (set) 2>&1 |
1331 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1332 *ac_space=\ *)
1333 sed -n \
ac1cb8d3
VS
1334 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1336 ;;
1337 *)
1338 sed -n \
ac1cb8d3 1339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1340 ;;
1341 esac;
1342}
1343 echo
1344
1345 cat <<\_ASBOX
1346## ----------------- ##
1347## Output variables. ##
1348## ----------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_vars
1352 do
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1355 done | sort
1356 echo
1357
1358 if test -n "$ac_subst_files"; then
1359 cat <<\_ASBOX
1360## ------------- ##
1361## Output files. ##
1362## ------------- ##
1363_ASBOX
1364 echo
1365 for ac_var in $ac_subst_files
1366 do
1367 eval ac_val=$`echo $ac_var`
ac1cb8d3 1368 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1369 done | sort
1370 echo
1371 fi
1372
1373 if test -s confdefs.h; then
1374 cat <<\_ASBOX
1375## ----------- ##
1376## confdefs.h. ##
1377## ----------- ##
1378_ASBOX
1379 echo
1380 sed "/^$/d" confdefs.h | sort
1381 echo
1382 fi
1383 test "$ac_signal" != 0 &&
1384 echo "$as_me: caught signal $ac_signal"
1385 echo "$as_me: exit $exit_status"
1386 } >&5
ac1cb8d3 1387 rm -f core *.core &&
a848cd7e
SC
1388 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1389 exit $exit_status
1390 ' 0
1391for ac_signal in 1 2 13 15; do
1392 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1393done
1394ac_signal=0
1395
1396# confdefs.h avoids OS command line length limits that DEFS can exceed.
1397rm -rf conftest* confdefs.h
1398# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1399echo >confdefs.h
1400
1401# Predefined preprocessor variables.
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_NAME "$PACKAGE_NAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_VERSION "$PACKAGE_VERSION"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_STRING "$PACKAGE_STRING"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1425_ACEOF
1426
1427
1428# Let the site file select an alternate cache file if it wants to.
1429# Prefer explicitly selected file to automatically selected ones.
1430if test -z "$CONFIG_SITE"; then
1431 if test "x$prefix" != xNONE; then
1432 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1433 else
1434 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1435 fi
1436fi
1437for ac_site_file in $CONFIG_SITE; do
1438 if test -r "$ac_site_file"; then
1439 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1440echo "$as_me: loading site script $ac_site_file" >&6;}
1441 sed 's/^/| /' "$ac_site_file" >&5
1442 . "$ac_site_file"
1443 fi
1444done
1445
1446if test -r "$cache_file"; then
1447 # Some versions of bash will fail to source /dev/null (special
1448 # files actually), so we avoid doing that.
1449 if test -f "$cache_file"; then
1450 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1451echo "$as_me: loading cache $cache_file" >&6;}
1452 case $cache_file in
1453 [\\/]* | ?:[\\/]* ) . $cache_file;;
1454 *) . ./$cache_file;;
1455 esac
1456 fi
1457else
1458 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1459echo "$as_me: creating cache $cache_file" >&6;}
1460 >$cache_file
1461fi
1462
1463# Check that the precious variables saved in the cache have kept the same
1464# value.
1465ac_cache_corrupted=false
1466for ac_var in `(set) 2>&1 |
ac1cb8d3 1467 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1469 eval ac_new_set=\$ac_env_${ac_var}_set
1470 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1471 eval ac_new_val="\$ac_env_${ac_var}_value"
1472 case $ac_old_set,$ac_new_set in
1473 set,)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1475echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,set)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,);;
1482 *)
1483 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1484 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1485echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1486 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1487echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1489echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1490 ac_cache_corrupted=:
a848cd7e
SC
1491 fi;;
1492 esac
1493 # Pass precious variables to config.status.
1494 if test "$ac_new_set" = set; then
1495 case $ac_new_val in
1496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1497 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 *) ac_arg=$ac_var=$ac_new_val ;;
1499 esac
1500 case " $ac_configure_args " in
1501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1502 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 esac
1504 fi
1505done
1506if $ac_cache_corrupted; then
1507 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1508echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1509 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1510echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513
1514ac_ext=c
1515ac_cpp='$CPP $CPPFLAGS'
1516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1518ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549ac_aux_dir=
1550for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551 if test -f $ac_dir/install-sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install-sh -c"
1554 break
1555 elif test -f $ac_dir/install.sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1558 break
1559 elif test -f $ac_dir/shtool; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1562 break
1563 fi
1564done
1565if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1567echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1568 { (exit 1); exit 1; }; }
1569fi
1570ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1573
1574# Make sure we can run config.sub.
1575$ac_config_sub sun4 >/dev/null 2>&1 ||
1576 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1577echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580echo "$as_me:$LINENO: checking build system type" >&5
1581echo $ECHO_N "checking build system type... $ECHO_C" >&6
1582if test "${ac_cv_build+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_build_alias=$build_alias
1586test -z "$ac_cv_build_alias" &&
1587 ac_cv_build_alias=`$ac_config_guess`
1588test -z "$ac_cv_build_alias" &&
1589 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1590echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1591 { (exit 1); exit 1; }; }
1592ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1593 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1594echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597fi
1598echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1599echo "${ECHO_T}$ac_cv_build" >&6
1600build=$ac_cv_build
1601build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606echo "$as_me:$LINENO: checking host system type" >&5
1607echo $ECHO_N "checking host system type... $ECHO_C" >&6
1608if test "${ac_cv_host+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 ac_cv_host_alias=$host_alias
1612test -z "$ac_cv_host_alias" &&
1613 ac_cv_host_alias=$ac_cv_build_alias
1614ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1616echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1618
1619fi
1620echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1621echo "${ECHO_T}$ac_cv_host" >&6
1622host=$ac_cv_host
1623host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628echo "$as_me:$LINENO: checking target system type" >&5
1629echo $ECHO_N "checking target system type... $ECHO_C" >&6
1630if test "${ac_cv_target+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633 ac_cv_target_alias=$target_alias
1634test "x$ac_cv_target_alias" = "x" &&
1635 ac_cv_target_alias=$ac_cv_host_alias
1636ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1643echo "${ECHO_T}$ac_cv_target" >&6
1644target=$ac_cv_target
1645target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650# The aliases save the names the user supplied, while $host etc.
1651# will get canonicalized.
1652test -n "$target_alias" &&
1653 test "$program_prefix$program_suffix$program_transform_name" = \
1654 NONENONEs,x,x, &&
1655 program_prefix=${target_alias}-
1656
1657
1658
ceec2216
RL
1659wx_major_version_number=2
1660wx_minor_version_number=5
e41c39d6
RD
1661wx_release_number=4
1662wx_subrelease_number=0
a848cd7e 1663
ceec2216
RL
1664WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1665WX_VERSION=$WX_RELEASE.$wx_release_number
1666WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1667
ceec2216 1668WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1669
e41c39d6 1670WX_CURRENT=4
a848cd7e 1671WX_REVISION=0
e41c39d6 1672WX_AGE=4
a848cd7e
SC
1673
1674
1675
1676USE_UNIX=1
1677USE_OS2=0
1678USE_WIN32=0
1679USE_DOS=0
1680USE_BEOS=0
1681USE_MAC=0
1682
1683USE_AIX=
1684USE_BSD= USE_DARWIN= USE_FREEBSD=
1685USE_GNU= USE_HPUX=
1686USE_LINUX=
1687USE_NETBSD=
1688USE_OPENBSD=
1689USE_OSF= USE_SGI=
1690USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1691USE_ULTRIX=
1692USE_UNIXWARE=
1693
1694USE_ALPHA=
1695
1696NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1697
1698ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1699
1700DEFAULT_wxUSE_COCOA=0
1701DEFAULT_wxUSE_GTK=0
1702DEFAULT_wxUSE_MAC=0
1703DEFAULT_wxUSE_MGL=0
1704DEFAULT_wxUSE_MICROWIN=0
1705DEFAULT_wxUSE_MOTIF=0
1706DEFAULT_wxUSE_MSW=0
1707DEFAULT_wxUSE_PM=0
1708DEFAULT_wxUSE_X11=0
1709
1710DEFAULT_DEFAULT_wxUSE_COCOA=0
1711DEFAULT_DEFAULT_wxUSE_GTK=0
1712DEFAULT_DEFAULT_wxUSE_MAC=0
1713DEFAULT_DEFAULT_wxUSE_MGL=0
1714DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1715DEFAULT_DEFAULT_wxUSE_MOTIF=0
1716DEFAULT_DEFAULT_wxUSE_MSW=0
1717DEFAULT_DEFAULT_wxUSE_PM=0
1718DEFAULT_DEFAULT_wxUSE_X11=0
1719
1720PROGRAM_EXT=
1721SO_SUFFIX=so
1722SAMPLES_RPATH_FLAG=
1723SAMPLES_RPATH_POSTLINK=
1724
1725case "${host}" in
1726 *-hp-hpux* )
1727 USE_HPUX=1
1728 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1729 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1730 SO_SUFFIX=sl
1731 cat >>confdefs.h <<\_ACEOF
1732#define __HPUX__ 1
1733_ACEOF
1734
1735 ;;
1736 *-*-linux* )
1737 USE_LINUX=1
1738 cat >>confdefs.h <<\_ACEOF
1739#define __LINUX__ 1
1740_ACEOF
1741
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __ALPHA__ 1
1747_ACEOF
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-gnu* | *-*-k*bsd*-gnu )
1753 USE_GNU=1
1754 TMP=`uname -m`
1755 if test "x$TMP" = "xalpha"; then
1756 USE_ALPHA=1
1757 cat >>confdefs.h <<\_ACEOF
1758#define __ALPHA__ 1
1759_ACEOF
1760
1761 fi
1762 DEFAULT_DEFAULT_wxUSE_GTK=1
1763 ;;
1764 *-*-irix5* | *-*-irix6* )
1765 USE_SGI=1
1766 USE_SVR4=1
1767 cat >>confdefs.h <<\_ACEOF
1768#define __SGI__ 1
1769_ACEOF
1770
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SVR4__ 1
1773_ACEOF
1774
1775 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1776 ;;
1777 *-*-solaris2* )
1778 USE_SUN=1
1779 USE_SOLARIS=1
1780 USE_SVR4=1
1781 cat >>confdefs.h <<\_ACEOF
1782#define __SUN__ 1
1783_ACEOF
1784
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SOLARIS__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SVR4__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1794 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1795 ;;
1796 *-*-sunos4* )
1797 USE_SUN=1
1798 USE_SUNOS=1
1799 USE_BSD=1
1800 cat >>confdefs.h <<\_ACEOF
1801#define __SUN__ 1
1802_ACEOF
1803
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUNOS__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __BSD__ 1
1810_ACEOF
1811
1812 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1813 ;;
1814 *-*-freebsd*)
1815 USE_BSD=1
1816 USE_FREEBSD=1
1817 cat >>confdefs.h <<\_ACEOF
1818#define __FREEBSD__ 1
1819_ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822#define __BSD__ 1
1823_ACEOF
1824
1825 DEFAULT_DEFAULT_wxUSE_GTK=1
1826 ;;
1827 *-*-openbsd*)
1828 USE_BSD=1
1829 USE_OPENBSD=1
1830 cat >>confdefs.h <<\_ACEOF
1831#define __OPENBSD__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-netbsd*)
1841 USE_BSD=1
1842 USE_NETBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __NETBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
1853 *-*-osf* )
1854 USE_ALPHA=1
1855 USE_OSF=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __ALPHA__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __OSF__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1866 ;;
1867 *-*-dgux5* )
1868 USE_ALPHA=1
1869 USE_SVR4=1
1870 cat >>confdefs.h <<\_ACEOF
1871#define __ALPHA__ 1
1872_ACEOF
1873
1874 cat >>confdefs.h <<\_ACEOF
1875#define __SVR4__ 1
1876_ACEOF
1877
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 ;;
1880 *-*-sysv5* )
1881 USE_SYSV=1
1882 USE_SVR4=1
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SYSV__ 1
1885_ACEOF
1886
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SVR4__ 1
1889_ACEOF
1890
1891 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1892 ;;
1893 *-*-aix* )
1894 USE_AIX=1
1895 USE_SYSV=1
1896 USE_SVR4=1
1897 SO_SUFFIX=a
1898 cat >>confdefs.h <<\_ACEOF
1899#define __AIX__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SYSV__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SVR4__ 1
1908_ACEOF
1909
1910 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1911 ;;
1912
1913 *-*-*UnixWare*)
1914 USE_SYSV=1
1915 USE_SVR4=1
1916 USE_UNIXWARE=1
1917 cat >>confdefs.h <<\_ACEOF
1918#define __UNIXWARE__ 1
1919_ACEOF
1920
1921 ;;
1922
1923 *-*-cygwin* | *-*-mingw32* )
1924 SO_SUFFIX=dll
1925 PROGRAM_EXT=".exe"
1926 RESCOMP=windres
1927 DEFAULT_DEFAULT_wxUSE_MSW=1
1928 ;;
1929
1930 *-pc-msdosdjgpp )
1931 USE_UNIX=0
1932 USE_DOS=1
1933 cat >>confdefs.h <<\_ACEOF
1934#define __DOS__ 1
1935_ACEOF
1936
1937 PROGRAM_EXT=".exe"
1938 DEFAULT_DEFAULT_wxUSE_MGL=1
1939 LIBS="$LIBS -lstdc++"
1940 ;;
1941
1942 *-pc-os2_emx | *-pc-os2-emx )
1943 cat >>confdefs.h <<\_ACEOF
1944#define __EMX__ 1
1945_ACEOF
1946
1947 USE_OS2=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __OS2__ 1
1950_ACEOF
1951
1952 PROGRAM_EXT=".exe"
1953 DEFAULT_DEFAULT_wxUSE_PM=1
1954 CXX=gcc
1955 LDFLAGS="$LDFLAGS -Zcrtdll"
1956 ac_executable_extensions=".exe"
1957 export ac_executable_extensions
1958 ac_save_IFS="$IFS"
1959 IFS='\\'
1960 ac_TEMP_PATH=
1961 for ac_dir in $PATH; do
1962 IFS=$ac_save_IFS
1963 if test -z "$ac_TEMP_PATH"; then
1964 ac_TEMP_PATH="$ac_dir"
1965 else
1966 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1967 fi
1968 done
1969 export PATH="$ac_TEMP_PATH"
1970 unset ac_TEMP_PATH
1971 ;;
1972
1973 powerpc-*-darwin* )
1974 USE_BSD=1
1975 USE_DARWIN=1
1976 SO_SUFFIX=dylib
1977 cat >>confdefs.h <<\_ACEOF
1978#define __BSD__ 1
1979_ACEOF
1980
1981 cat >>confdefs.h <<\_ACEOF
1982#define __DARWIN__ 1
a848cd7e
SC
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define TARGET_CARBON 1
1987_ACEOF
1988
1989 DEFAULT_DEFAULT_wxUSE_MAC=1
1990 ;;
1e9e8aba
DE
1991 powerpc-apple-macos* )
1992 USE_UNIX=0
1993 ac_cv_c_bigendian=yes
1994 SO_SUFFIX=shlib
1995 DEFAULT_DEFAULT_wxUSE_MAC=1
1996 ;;
a848cd7e
SC
1997
1998 *-*-beos* )
1999 USE_BEOS=1
2000 cat >>confdefs.h <<\_ACEOF
2001#define __BEOS__ 1
2002_ACEOF
2003
2004 ;;
2005
2006 *)
2007 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2008echo "$as_me: error: unknown system type ${host}." >&2;}
2009 { (exit 1); exit 1; }; }
2010esac
2011
2012
2013
2014
2015 wx_arg_cache_file="configarg.cache"
2016 echo "loading argument cache $wx_arg_cache_file"
2017 rm -f ${wx_arg_cache_file}.tmp
2018 touch ${wx_arg_cache_file}.tmp
2019 touch ${wx_arg_cache_file}
2020
2021
2022DEBUG_CONFIGURE=0
2023if test $DEBUG_CONFIGURE = 1; then
2024 DEFAULT_wxUSE_UNIVERSAL=no
2025 DEFAULT_wxUSE_STL=no
2026
2027 DEFAULT_wxUSE_NANOX=no
2028
2029 DEFAULT_wxUSE_THREADS=yes
2030
2031 DEFAULT_wxUSE_SHARED=yes
2032 DEFAULT_wxUSE_OPTIMISE=no
2033 DEFAULT_wxUSE_PROFILE=no
2034 DEFAULT_wxUSE_NO_DEPS=no
2035 DEFAULT_wxUSE_NO_RTTI=no
2036 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2037 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2038 DEFAULT_wxUSE_PERMISSIVE=no
2039 DEFAULT_wxUSE_DEBUG_FLAG=yes
2040 DEFAULT_wxUSE_DEBUG_INFO=yes
2041 DEFAULT_wxUSE_DEBUG_GDB=yes
2042 DEFAULT_wxUSE_MEM_TRACING=no
2043 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2044 DEFAULT_wxUSE_DMALLOC=no
2045 DEFAULT_wxUSE_APPLE_IEEE=no
2046
2047 DEFAULT_wxUSE_EXCEPTIONS=no
2048 DEFAULT_wxUSE_LOG=yes
2049 DEFAULT_wxUSE_LOGWINDOW=no
2050 DEFAULT_wxUSE_LOGGUI=no
2051 DEFAULT_wxUSE_LOGDIALOG=no
2052
2053 DEFAULT_wxUSE_GUI=yes
2054 DEFAULT_wxUSE_CONTROLS=no
2055
2056 DEFAULT_wxUSE_REGEX=no
2057 DEFAULT_wxUSE_XML=no
2058 DEFAULT_wxUSE_EXPAT=no
2059 DEFAULT_wxUSE_ZLIB=no
2060 DEFAULT_wxUSE_LIBPNG=no
2061 DEFAULT_wxUSE_LIBJPEG=no
2062 DEFAULT_wxUSE_LIBTIFF=no
2063 DEFAULT_wxUSE_LIBXPM=no
2064 DEFAULT_wxUSE_LIBMSPACK=no
2065 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2066 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2067 DEFAULT_wxUSE_ODBC=no
2068 DEFAULT_wxUSE_OPENGL=no
2069
2070 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2071 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2072 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2073 DEFAULT_wxUSE_STD_IOSTREAM=no
2074 DEFAULT_wxUSE_CMDLINE_PARSER=no
2075 DEFAULT_wxUSE_DATETIME=no
2076 DEFAULT_wxUSE_TIMER=no
2077 DEFAULT_wxUSE_STOPWATCH=no
2078 DEFAULT_wxUSE_FILE=no
2079 DEFAULT_wxUSE_FFILE=no
2080 DEFAULT_wxUSE_TEXTBUFFER=no
2081 DEFAULT_wxUSE_TEXTFILE=no
2082 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2083 DEFAULT_wxUSE_MEDIACTRL=no
2084 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2085 DEFAULT_wxUSE_INTL=no
2086 DEFAULT_wxUSE_CONFIG=no
2087 DEFAULT_wxUSE_FONTMAP=no
2088 DEFAULT_wxUSE_STREAMS=no
2089 DEFAULT_wxUSE_SOCKETS=no
2090 DEFAULT_wxUSE_OLE=no
2091 DEFAULT_wxUSE_DATAOBJ=no
2092 DEFAULT_wxUSE_DIALUP_MANAGER=no
2093 DEFAULT_wxUSE_JOYSTICK=no
2094 DEFAULT_wxUSE_DYNLIB_CLASS=no
2095 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2096 DEFAULT_wxUSE_LONGLONG=no
2097 DEFAULT_wxUSE_GEOMETRY=no
2098
2099 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2100 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2101 DEFAULT_wxUSE_POSTSCRIPT=no
2102
2103 DEFAULT_wxUSE_CLIPBOARD=no
2104 DEFAULT_wxUSE_TOOLTIPS=no
2105 DEFAULT_wxUSE_DRAG_AND_DROP=no
2106 DEFAULT_wxUSE_DRAGIMAGE=no
2107 DEFAULT_wxUSE_SPLINES=no
2108
8a7b1113 2109 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2110 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2111 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2112 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2113
2114 DEFAULT_wxUSE_RESOURCES=no
2115 DEFAULT_wxUSE_CONSTRAINTS=no
2116 DEFAULT_wxUSE_IPC=no
2117 DEFAULT_wxUSE_HELP=no
2118 DEFAULT_wxUSE_MS_HTML_HELP=no
2119 DEFAULT_wxUSE_WXHTML_HELP=no
2120 DEFAULT_wxUSE_TREELAYOUT=no
2121 DEFAULT_wxUSE_METAFILE=no
2122 DEFAULT_wxUSE_MIMETYPE=no
2123 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2124 DEFAULT_wxUSE_PROTOCOL=no
2125 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2126 DEFAULT_wxUSE_PROTOCOL_FTP=no
2127 DEFAULT_wxUSE_PROTOCOL_FILE=no
2128 DEFAULT_wxUSE_URL=no
2129
2130 DEFAULT_wxUSE_COMMONDLGS=no
2131 DEFAULT_wxUSE_CHOICEDLG=no
2132 DEFAULT_wxUSE_COLOURDLG=no
2133 DEFAULT_wxUSE_DIRDLG=no
2134 DEFAULT_wxUSE_FILEDLG=no
2135 DEFAULT_wxUSE_FINDREPLDLG=no
2136 DEFAULT_wxUSE_FONTDLG=no
2137 DEFAULT_wxUSE_MSGDLG=no
2138 DEFAULT_wxUSE_NUMBERDLG=no
2139 DEFAULT_wxUSE_TEXTDLG=no
2140 DEFAULT_wxUSE_SPLASH=no
2141 DEFAULT_wxUSE_STARTUP_TIPS=no
2142 DEFAULT_wxUSE_PROGRESSDLG=no
2143 DEFAULT_wxUSE_WIZARDDLG=no
2144
2145 DEFAULT_wxUSE_MENUS=no
2146 DEFAULT_wxUSE_MINIFRAME=no
2147 DEFAULT_wxUSE_HTML=no
9a8f0513 2148 DEFAULT_wxUSE_XRC=no
646b6ec1 2149 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2150 DEFAULT_wxUSE_FILESYSTEM=no
2151 DEFAULT_wxUSE_FS_INET=no
2152 DEFAULT_wxUSE_FS_ZIP=no
2153 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2154 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2155 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2156 DEFAULT_wxUSE_VALIDATORS=no
2157
2158 DEFAULT_wxUSE_ACCEL=no
2159 DEFAULT_wxUSE_BUTTON=no
2160 DEFAULT_wxUSE_BMPBUTTON=no
2161 DEFAULT_wxUSE_CALCTRL=no
2162 DEFAULT_wxUSE_CARET=no
2163 DEFAULT_wxUSE_CHECKBOX=no
2164 DEFAULT_wxUSE_CHECKLST=no
2165 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2166 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2167 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2168 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2169 DEFAULT_wxUSE_DISPLAY=no
2170 DEFAULT_wxUSE_GAUGE=no
2171 DEFAULT_wxUSE_GRID=no
2172 DEFAULT_wxUSE_IMAGLIST=no
2173 DEFAULT_wxUSE_LISTBOOK=no
2174 DEFAULT_wxUSE_LISTBOX=no
2175 DEFAULT_wxUSE_LISTCTRL=no
2176 DEFAULT_wxUSE_NOTEBOOK=no
2177 DEFAULT_wxUSE_RADIOBOX=no
2178 DEFAULT_wxUSE_RADIOBTN=no
2179 DEFAULT_wxUSE_SASH=no
2180 DEFAULT_wxUSE_SCROLLBAR=no
2181 DEFAULT_wxUSE_SLIDER=no
2182 DEFAULT_wxUSE_SPINBTN=no
2183 DEFAULT_wxUSE_SPINCTRL=no
2184 DEFAULT_wxUSE_SPLITTER=no
2185 DEFAULT_wxUSE_STATBMP=no
2186 DEFAULT_wxUSE_STATBOX=no
2187 DEFAULT_wxUSE_STATLINE=no
2188 DEFAULT_wxUSE_STATTEXT=no
2189 DEFAULT_wxUSE_STATUSBAR=yes
2190 DEFAULT_wxUSE_TABDIALOG=no
2191 DEFAULT_wxUSE_TEXTCTRL=no
2192 DEFAULT_wxUSE_TOGGLEBTN=no
2193 DEFAULT_wxUSE_TOOLBAR=no
2194 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2195 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2196 DEFAULT_wxUSE_TREECTRL=no
2197 DEFAULT_wxUSE_POPUPWIN=no
2198 DEFAULT_wxUSE_TIPWINDOW=no
2199
2200 DEFAULT_wxUSE_UNICODE=no
2201 DEFAULT_wxUSE_UNICODE_MSLU=no
2202 DEFAULT_wxUSE_WCSRTOMBS=no
2203
2204 DEFAULT_wxUSE_PALETTE=no
2205 DEFAULT_wxUSE_IMAGE=no
2206 DEFAULT_wxUSE_GIF=no
2207 DEFAULT_wxUSE_PCX=no
2208 DEFAULT_wxUSE_PNM=no
2209 DEFAULT_wxUSE_IFF=no
2210 DEFAULT_wxUSE_XPM=no
2211 DEFAULT_wxUSE_ICO_CUR=no
2212 DEFAULT_wxUSE_ACCESSIBILITY=no
2213
2214 DEFAULT_wxUSE_MONOLITHIC=no
2215 DEFAULT_wxUSE_PLUGINS=no
2216 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2217else
2218 DEFAULT_wxUSE_UNIVERSAL=no
2219 DEFAULT_wxUSE_STL=no
2220
2221 DEFAULT_wxUSE_NANOX=no
2222
2223 DEFAULT_wxUSE_THREADS=yes
2224
2225 DEFAULT_wxUSE_SHARED=yes
2226 DEFAULT_wxUSE_OPTIMISE=yes
2227 DEFAULT_wxUSE_PROFILE=no
2228 DEFAULT_wxUSE_NO_DEPS=no
2229 DEFAULT_wxUSE_NO_RTTI=no
2230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2231 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2232 DEFAULT_wxUSE_PERMISSIVE=no
2233 DEFAULT_wxUSE_DEBUG_FLAG=no
2234 DEFAULT_wxUSE_DEBUG_INFO=no
2235 DEFAULT_wxUSE_DEBUG_GDB=no
2236 DEFAULT_wxUSE_MEM_TRACING=no
2237 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2238 DEFAULT_wxUSE_DMALLOC=no
2239 DEFAULT_wxUSE_APPLE_IEEE=yes
2240
2241 DEFAULT_wxUSE_EXCEPTIONS=yes
2242 DEFAULT_wxUSE_LOG=yes
2243 DEFAULT_wxUSE_LOGWINDOW=yes
2244 DEFAULT_wxUSE_LOGGUI=yes
2245 DEFAULT_wxUSE_LOGDIALOG=yes
2246
2247 DEFAULT_wxUSE_GUI=yes
2248
2249 DEFAULT_wxUSE_REGEX=yes
2250 DEFAULT_wxUSE_XML=yes
2251 DEFAULT_wxUSE_EXPAT=yes
2252 DEFAULT_wxUSE_ZLIB=yes
2253 DEFAULT_wxUSE_LIBPNG=yes
2254 DEFAULT_wxUSE_LIBJPEG=yes
2255 DEFAULT_wxUSE_LIBTIFF=yes
2256 DEFAULT_wxUSE_LIBXPM=yes
2257 DEFAULT_wxUSE_LIBMSPACK=yes
2258 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2259 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2260 DEFAULT_wxUSE_ODBC=no
2261 DEFAULT_wxUSE_OPENGL=no
2262
2263 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2264 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2265 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2266 DEFAULT_wxUSE_STD_IOSTREAM=no
2267 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2268 DEFAULT_wxUSE_DATETIME=yes
2269 DEFAULT_wxUSE_TIMER=yes
2270 DEFAULT_wxUSE_STOPWATCH=yes
2271 DEFAULT_wxUSE_FILE=yes
2272 DEFAULT_wxUSE_FFILE=yes
2273 DEFAULT_wxUSE_TEXTBUFFER=yes
2274 DEFAULT_wxUSE_TEXTFILE=yes
2275 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2276 DEFAULT_wxUSE_MEDIACTRL=no
2277 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2278 DEFAULT_wxUSE_INTL=yes
2279 DEFAULT_wxUSE_CONFIG=yes
2280 DEFAULT_wxUSE_FONTMAP=yes
2281 DEFAULT_wxUSE_STREAMS=yes
2282 DEFAULT_wxUSE_SOCKETS=yes
2283 DEFAULT_wxUSE_OLE=yes
2284 DEFAULT_wxUSE_DATAOBJ=yes
2285 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2286 DEFAULT_wxUSE_JOYSTICK=yes
2287 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2288 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2289 DEFAULT_wxUSE_LONGLONG=yes
2290 DEFAULT_wxUSE_GEOMETRY=yes
2291
2292 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2293 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2294 DEFAULT_wxUSE_POSTSCRIPT=yes
2295
2296 DEFAULT_wxUSE_CLIPBOARD=yes
2297 DEFAULT_wxUSE_TOOLTIPS=yes
2298 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2299 DEFAULT_wxUSE_DRAGIMAGE=yes
2300 DEFAULT_wxUSE_SPLINES=yes
2301
8a7b1113 2302 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2303 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2304 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2305 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2306
2307 DEFAULT_wxUSE_RESOURCES=no
2308 DEFAULT_wxUSE_CONSTRAINTS=yes
2309 DEFAULT_wxUSE_IPC=yes
2310 DEFAULT_wxUSE_HELP=yes
2311 DEFAULT_wxUSE_MS_HTML_HELP=yes
2312 DEFAULT_wxUSE_WXHTML_HELP=yes
2313 DEFAULT_wxUSE_TREELAYOUT=yes
2314 DEFAULT_wxUSE_METAFILE=yes
2315 DEFAULT_wxUSE_MIMETYPE=yes
2316 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2317 DEFAULT_wxUSE_PROTOCOL=yes
2318 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2319 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2320 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2321 DEFAULT_wxUSE_URL=yes
2322
2323 DEFAULT_wxUSE_COMMONDLGS=yes
2324 DEFAULT_wxUSE_CHOICEDLG=yes
2325 DEFAULT_wxUSE_COLOURDLG=yes
2326 DEFAULT_wxUSE_DIRDLG=yes
2327 DEFAULT_wxUSE_FILEDLG=yes
2328 DEFAULT_wxUSE_FINDREPLDLG=yes
2329 DEFAULT_wxUSE_FONTDLG=yes
2330 DEFAULT_wxUSE_MSGDLG=yes
2331 DEFAULT_wxUSE_NUMBERDLG=yes
2332 DEFAULT_wxUSE_TEXTDLG=yes
2333 DEFAULT_wxUSE_SPLASH=yes
2334 DEFAULT_wxUSE_STARTUP_TIPS=yes
2335 DEFAULT_wxUSE_PROGRESSDLG=yes
2336 DEFAULT_wxUSE_WIZARDDLG=yes
2337
2338 DEFAULT_wxUSE_MENUS=yes
2339 DEFAULT_wxUSE_MINIFRAME=yes
2340 DEFAULT_wxUSE_HTML=yes
9a8f0513 2341 DEFAULT_wxUSE_XRC=yes
646b6ec1 2342 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2343 DEFAULT_wxUSE_FILESYSTEM=yes
2344 DEFAULT_wxUSE_FS_INET=yes
2345 DEFAULT_wxUSE_FS_ZIP=yes
2346 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2347 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2348 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_VALIDATORS=yes
2350
2351 DEFAULT_wxUSE_ACCEL=yes
2352 DEFAULT_wxUSE_BUTTON=yes
2353 DEFAULT_wxUSE_BMPBUTTON=yes
2354 DEFAULT_wxUSE_CALCTRL=yes
2355 DEFAULT_wxUSE_CARET=yes
2356 DEFAULT_wxUSE_CHECKBOX=yes
2357 DEFAULT_wxUSE_CHECKLST=yes
2358 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2359 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2360 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2361 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_DISPLAY=yes
2363 DEFAULT_wxUSE_GAUGE=yes
2364 DEFAULT_wxUSE_GRID=yes
2365 DEFAULT_wxUSE_IMAGLIST=yes
2366 DEFAULT_wxUSE_LISTBOOK=yes
2367 DEFAULT_wxUSE_LISTBOX=yes
2368 DEFAULT_wxUSE_LISTCTRL=yes
2369 DEFAULT_wxUSE_NOTEBOOK=yes
2370 DEFAULT_wxUSE_RADIOBOX=yes
2371 DEFAULT_wxUSE_RADIOBTN=yes
2372 DEFAULT_wxUSE_SASH=yes
2373 DEFAULT_wxUSE_SCROLLBAR=yes
2374 DEFAULT_wxUSE_SLIDER=yes
2375 DEFAULT_wxUSE_SPINBTN=yes
2376 DEFAULT_wxUSE_SPINCTRL=yes
2377 DEFAULT_wxUSE_SPLITTER=yes
2378 DEFAULT_wxUSE_STATBMP=yes
2379 DEFAULT_wxUSE_STATBOX=yes
2380 DEFAULT_wxUSE_STATLINE=yes
2381 DEFAULT_wxUSE_STATTEXT=yes
2382 DEFAULT_wxUSE_STATUSBAR=yes
2383 DEFAULT_wxUSE_TABDIALOG=no
2384 DEFAULT_wxUSE_TEXTCTRL=yes
2385 DEFAULT_wxUSE_TOGGLEBTN=yes
2386 DEFAULT_wxUSE_TOOLBAR=yes
2387 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2388 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2389 DEFAULT_wxUSE_TREECTRL=yes
2390 DEFAULT_wxUSE_POPUPWIN=yes
2391 DEFAULT_wxUSE_TIPWINDOW=yes
2392
2393 DEFAULT_wxUSE_UNICODE=no
2394 DEFAULT_wxUSE_UNICODE_MSLU=yes
2395 DEFAULT_wxUSE_WCSRTOMBS=no
2396
2397 DEFAULT_wxUSE_PALETTE=yes
2398 DEFAULT_wxUSE_IMAGE=yes
2399 DEFAULT_wxUSE_GIF=yes
2400 DEFAULT_wxUSE_PCX=yes
2401 DEFAULT_wxUSE_IFF=no
2402 DEFAULT_wxUSE_PNM=yes
2403 DEFAULT_wxUSE_XPM=yes
2404 DEFAULT_wxUSE_ICO_CUR=yes
2405 DEFAULT_wxUSE_ACCESSIBILITY=no
2406
2407 DEFAULT_wxUSE_MONOLITHIC=no
2408 DEFAULT_wxUSE_PLUGINS=no
2409 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2410
2411 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2412fi
2413
2414
2415
2416for toolkit in `echo $ALL_TOOLKITS`; do
2417 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2418 if test "x$LINE" != "x" ; then
2419 has_toolkit_in_cache=1
2420 eval "DEFAULT_$LINE"
2421 eval "CACHE_$toolkit=1"
2422 fi
2423done
2424
2425
2426
2427 enablestring=
2428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2429echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2430 no_cache=0
2431 # Check whether --enable-gui or --disable-gui was given.
2432if test "${enable_gui+set}" = set; then
2433 enableval="$enable_gui"
2434
2435 if test "$enableval" = yes; then
2436 ac_cv_use_gui='wxUSE_GUI=yes'
2437 else
2438 ac_cv_use_gui='wxUSE_GUI=no'
2439 fi
2440
2441else
2442
2443 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2451
2452fi;
2453
2454 eval "$ac_cv_use_gui"
2455 if test "$no_cache" != 1; then
2456 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2457 fi
2458
2459 if test "$wxUSE_GUI" = yes; then
2460 echo "$as_me:$LINENO: result: yes" >&5
2461echo "${ECHO_T}yes" >&6
2462 else
2463 echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6
2465 fi
2466
2467
2468 enablestring=
2469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2470echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2471 no_cache=0
2472 # Check whether --enable-monolithic or --disable-monolithic was given.
2473if test "${enable_monolithic+set}" = set; then
2474 enableval="$enable_monolithic"
2475
2476 if test "$enableval" = yes; then
2477 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2478 else
2479 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2480 fi
2481
2482else
2483
2484 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2485 if test "x$LINE" != x ; then
2486 eval "DEFAULT_$LINE"
2487 else
2488 no_cache=1
2489 fi
2490
2491 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2492
2493fi;
2494
2495 eval "$ac_cv_use_monolithic"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_MONOLITHIC" = yes; then
2501 echo "$as_me:$LINENO: result: yes" >&5
2502echo "${ECHO_T}yes" >&6
2503 else
2504 echo "$as_me:$LINENO: result: no" >&5
2505echo "${ECHO_T}no" >&6
2506 fi
2507
2508
2509 enablestring=
2510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2511echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2512 no_cache=0
2513 # Check whether --enable-plugins or --disable-plugins was given.
2514if test "${enable_plugins+set}" = set; then
2515 enableval="$enable_plugins"
2516
2517 if test "$enableval" = yes; then
2518 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2519 else
2520 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2521 fi
2522
2523else
2524
2525 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2526 if test "x$LINE" != x ; then
2527 eval "DEFAULT_$LINE"
2528 else
2529 no_cache=1
2530 fi
2531
2532 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2533
2534fi;
2535
2536 eval "$ac_cv_use_plugins"
2537 if test "$no_cache" != 1; then
2538 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2539 fi
2540
2541 if test "$wxUSE_PLUGINS" = yes; then
2542 echo "$as_me:$LINENO: result: yes" >&5
2543echo "${ECHO_T}yes" >&6
2544 else
2545 echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6
2547 fi
2548
2549
2550if test "$wxUSE_GUI" = "yes"; then
2551
2552
2553 enablestring=
2554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2555echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2556 no_cache=0
2557 # Check whether --enable-universal or --disable-universal was given.
2558if test "${enable_universal+set}" = set; then
2559 enableval="$enable_universal"
2560
2561 if test "$enableval" = yes; then
2562 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2563 else
2564 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2565 fi
2566
2567else
2568
2569 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2570 if test "x$LINE" != x ; then
2571 eval "DEFAULT_$LINE"
2572 else
2573 no_cache=1
2574 fi
2575
2576 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2577
2578fi;
2579
2580 eval "$ac_cv_use_universal"
2581 if test "$no_cache" != 1; then
2582 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2583 fi
2584
2585 if test "$wxUSE_UNIVERSAL" = yes; then
2586 echo "$as_me:$LINENO: result: yes" >&5
2587echo "${ECHO_T}yes" >&6
2588 else
2589 echo "$as_me:$LINENO: result: no" >&5
2590echo "${ECHO_T}no" >&6
2591 fi
2592
2593
2594# Check whether --with-gtk or --without-gtk was given.
2595if test "${with_gtk+set}" = set; then
2596 withval="$with_gtk"
2597 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2598fi;
2599
2600# Check whether --with-motif or --without-motif was given.
2601if test "${with_motif+set}" = set; then
2602 withval="$with_motif"
2603 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-mac or --without-mac was given.
2607if test "${with_mac+set}" = set; then
2608 withval="$with_mac"
c228d3a4 2609 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2610fi;
2611
2612# Check whether --with-cocoa or --without-cocoa was given.
2613if test "${with_cocoa+set}" = set; then
2614 withval="$with_cocoa"
c228d3a4 2615 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-wine or --without-wine was given.
2619if test "${with_wine+set}" = set; then
2620 withval="$with_wine"
2621 wxUSE_WINE="$withval" CACHE_WINE=1
2622fi;
2623
2624# Check whether --with-msw or --without-msw was given.
2625if test "${with_msw+set}" = set; then
2626 withval="$with_msw"
2627 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2628fi;
2629
2630# Check whether --with-pm or --without-pm was given.
2631if test "${with_pm+set}" = set; then
2632 withval="$with_pm"
2633 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-mgl or --without-mgl was given.
2637if test "${with_mgl+set}" = set; then
2638 withval="$with_mgl"
2639 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-microwin or --without-microwin was given.
2643if test "${with_microwin+set}" = set; then
2644 withval="$with_microwin"
2645 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-x11 or --without-x11 was given.
2649if test "${with_x11+set}" = set; then
2650 withval="$with_x11"
2651 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654 enablestring=
2655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2656echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2657 no_cache=0
2658 # Check whether --enable-nanox or --disable-nanox was given.
2659if test "${enable_nanox+set}" = set; then
2660 enableval="$enable_nanox"
2661
2662 if test "$enableval" = yes; then
2663 ac_cv_use_nanox='wxUSE_NANOX=yes'
2664 else
2665 ac_cv_use_nanox='wxUSE_NANOX=no'
2666 fi
2667
2668else
2669
2670 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2671 if test "x$LINE" != x ; then
2672 eval "DEFAULT_$LINE"
2673 else
2674 no_cache=1
2675 fi
2676
2677 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2678
2679fi;
2680
2681 eval "$ac_cv_use_nanox"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_NANOX" = yes; then
2687 echo "$as_me:$LINENO: result: yes" >&5
2688echo "${ECHO_T}yes" >&6
2689 else
2690 echo "$as_me:$LINENO: result: no" >&5
2691echo "${ECHO_T}no" >&6
2692 fi
2693
2694
2695
2696 enablestring=
2697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2698echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2699 no_cache=0
2700 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2701if test "${enable_gtk2+set}" = set; then
2702 enableval="$enable_gtk2"
2703
2704 if test "$enableval" = yes; then
2705 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2706 else
2707 ac_cv_use_gtk2='wxUSE_GTK2=no'
2708 fi
2709
2710else
2711
2712 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2720
2721fi;
2722
2723 eval "$ac_cv_use_gtk2"
2724 if test "$no_cache" != 1; then
2725 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2726 fi
2727
2728 if test "$wxUSE_GTK2" = yes; then
2729 echo "$as_me:$LINENO: result: yes" >&5
2730echo "${ECHO_T}yes" >&6
2731 else
2732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
2734 fi
2735
2736
2737 enablestring=
2738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2739echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2740 no_cache=0
2741 # Check whether --enable-gpe or --disable-gpe was given.
2742if test "${enable_gpe+set}" = set; then
2743 enableval="$enable_gpe"
2744
2745 if test "$enableval" = yes; then
2746 ac_cv_use_gpe='wxUSE_GPE=yes'
2747 else
2748 ac_cv_use_gpe='wxUSE_GPE=no'
2749 fi
2750
2751else
2752
2753 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2754 if test "x$LINE" != x ; then
2755 eval "DEFAULT_$LINE"
2756 else
2757 no_cache=1
2758 fi
2759
2760 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2761
2762fi;
2763
2764 eval "$ac_cv_use_gpe"
2765 if test "$no_cache" != 1; then
2766 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2767 fi
2768
2769 if test "$wxUSE_GPE" = yes; then
2770 echo "$as_me:$LINENO: result: yes" >&5
2771echo "${ECHO_T}yes" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775 fi
2776
2777
2778
2779 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2780echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2781 no_cache=0
2782
2783# Check whether --with-libpng or --without-libpng was given.
2784if test "${with_libpng+set}" = set; then
2785 withval="$with_libpng"
2786
2787 if test "$withval" = yes; then
2788 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2789 elif test "$withval" = no; then
2790 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2791 elif test "$withval" = sys; then
2792 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2793 elif test "$withval" = builtin; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2795 else
2796 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2797echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2798 { (exit 1); exit 1; }; }
2799 fi
2800
2801else
2802
2803 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2804 if test "x$LINE" != x ; then
2805 eval "DEFAULT_$LINE"
2806 else
2807 no_cache=1
2808 fi
2809
2810 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2811
2812fi;
2813
2814 eval "$ac_cv_use_libpng"
2815 if test "$no_cache" != 1; then
2816 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2817 fi
2818
2819 if test "$wxUSE_LIBPNG" = yes; then
2820 echo "$as_me:$LINENO: result: yes" >&5
2821echo "${ECHO_T}yes" >&6
2822 elif test "$wxUSE_LIBPNG" = no; then
2823 echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6
2825 elif test "$wxUSE_LIBPNG" = sys; then
2826 echo "$as_me:$LINENO: result: system version" >&5
2827echo "${ECHO_T}system version" >&6
2828 elif test "$wxUSE_LIBPNG" = builtin; then
2829 echo "$as_me:$LINENO: result: builtin version" >&5
2830echo "${ECHO_T}builtin version" >&6
2831 else
2832 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2833echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2834 { (exit 1); exit 1; }; }
2835 fi
2836
2837
2838 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2839echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2840 no_cache=0
2841
2842# Check whether --with-libjpeg or --without-libjpeg was given.
2843if test "${with_libjpeg+set}" = set; then
2844 withval="$with_libjpeg"
2845
2846 if test "$withval" = yes; then
2847 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2848 elif test "$withval" = no; then
2849 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2850 elif test "$withval" = sys; then
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2852 elif test "$withval" = builtin; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2854 else
2855 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2856echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2857 { (exit 1); exit 1; }; }
2858 fi
2859
2860else
2861
2862 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
2869 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2870
2871fi;
2872
2873 eval "$ac_cv_use_libjpeg"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$wxUSE_LIBJPEG" = yes; then
2879 echo "$as_me:$LINENO: result: yes" >&5
2880echo "${ECHO_T}yes" >&6
2881 elif test "$wxUSE_LIBJPEG" = no; then
2882 echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6
2884 elif test "$wxUSE_LIBJPEG" = sys; then
2885 echo "$as_me:$LINENO: result: system version" >&5
2886echo "${ECHO_T}system version" >&6
2887 elif test "$wxUSE_LIBJPEG" = builtin; then
2888 echo "$as_me:$LINENO: result: builtin version" >&5
2889echo "${ECHO_T}builtin version" >&6
2890 else
2891 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2892echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895
2896
2897 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2898echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2899 no_cache=0
2900
2901# Check whether --with-libtiff or --without-libtiff was given.
2902if test "${with_libtiff+set}" = set; then
2903 withval="$with_libtiff"
2904
2905 if test "$withval" = yes; then
2906 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2907 elif test "$withval" = no; then
2908 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2909 elif test "$withval" = sys; then
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2911 elif test "$withval" = builtin; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2913 else
2914 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2915echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2916 { (exit 1); exit 1; }; }
2917 fi
2918
2919else
2920
2921 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
2928 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2929
2930fi;
2931
2932 eval "$ac_cv_use_libtiff"
2933 if test "$no_cache" != 1; then
2934 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2935 fi
2936
2937 if test "$wxUSE_LIBTIFF" = yes; then
2938 echo "$as_me:$LINENO: result: yes" >&5
2939echo "${ECHO_T}yes" >&6
2940 elif test "$wxUSE_LIBTIFF" = no; then
2941 echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
2943 elif test "$wxUSE_LIBTIFF" = sys; then
2944 echo "$as_me:$LINENO: result: system version" >&5
2945echo "${ECHO_T}system version" >&6
2946 elif test "$wxUSE_LIBTIFF" = builtin; then
2947 echo "$as_me:$LINENO: result: builtin version" >&5
2948echo "${ECHO_T}builtin version" >&6
2949 else
2950 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2951echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2952 { (exit 1); exit 1; }; }
2953 fi
2954
2955
2956 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2957echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2958 no_cache=0
2959
2960# Check whether --with-libxpm or --without-libxpm was given.
2961if test "${with_libxpm+set}" = set; then
2962 withval="$with_libxpm"
2963
2964 if test "$withval" = yes; then
2965 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2966 elif test "$withval" = no; then
2967 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2968 elif test "$withval" = sys; then
2969 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2970 elif test "$withval" = builtin; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2972 else
2973 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2974echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978else
2979
2980 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2988
2989fi;
2990
2991 eval "$ac_cv_use_libxpm"
2992 if test "$no_cache" != 1; then
2993 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2994 fi
2995
2996 if test "$wxUSE_LIBXPM" = yes; then
2997 echo "$as_me:$LINENO: result: yes" >&5
2998echo "${ECHO_T}yes" >&6
2999 elif test "$wxUSE_LIBXPM" = no; then
3000 echo "$as_me:$LINENO: result: no" >&5
3001echo "${ECHO_T}no" >&6
3002 elif test "$wxUSE_LIBXPM" = sys; then
3003 echo "$as_me:$LINENO: result: system version" >&5
3004echo "${ECHO_T}system version" >&6
3005 elif test "$wxUSE_LIBXPM" = builtin; then
3006 echo "$as_me:$LINENO: result: builtin version" >&5
3007echo "${ECHO_T}builtin version" >&6
3008 else
3009 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3010echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3011 { (exit 1); exit 1; }; }
3012 fi
3013
3014
3015 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3016echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3017 no_cache=0
3018
3019# Check whether --with-libmspack or --without-libmspack was given.
3020if test "${with_libmspack+set}" = set; then
3021 withval="$with_libmspack"
3022
3023 if test "$withval" = yes; then
3024 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3025 else
3026 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3027 fi
3028
3029else
3030
3031 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3039
3040fi;
3041
3042 eval "$ac_cv_use_libmspack"
3043 if test "$no_cache" != 1; then
3044 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3045 fi
3046
3047 if test "$wxUSE_LIBMSPACK" = yes; then
3048 echo "$as_me:$LINENO: result: yes" >&5
3049echo "${ECHO_T}yes" >&6
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
3053 fi
3054
3055
3056 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3057echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3058 no_cache=0
3059
3060# Check whether --with-sdl or --without-sdl was given.
3061if test "${with_sdl+set}" = set; then
3062 withval="$with_sdl"
3063
3064 if test "$withval" = yes; then
3065 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3066 else
3067 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3068 fi
3069
3070else
3071
3072 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3073 if test "x$LINE" != x ; then
3074 eval "DEFAULT_$LINE"
3075 else
3076 no_cache=1
3077 fi
3078
3079 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3080
3081fi;
3082
3083 eval "$ac_cv_use_sdl"
3084 if test "$no_cache" != 1; then
3085 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3086 fi
3087
3088 if test "$wxUSE_LIBSDL" = yes; then
3089 echo "$as_me:$LINENO: result: yes" >&5
3090echo "${ECHO_T}yes" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093echo "${ECHO_T}no" >&6
3094 fi
3095
3096
d1c38808
VZ
3097 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3098echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3099 no_cache=0
3100
3101# Check whether --with-gnomeprint or --without-gnomeprint was given.
3102if test "${with_gnomeprint+set}" = set; then
3103 withval="$with_gnomeprint"
3104
3105 if test "$withval" = yes; then
3106 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3107 else
3108 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3109 fi
3110
3111else
3112
3113 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3121
3122fi;
3123
3124 eval "$ac_cv_use_gnomeprint"
3125 if test "$no_cache" != 1; then
3126 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3127 fi
3128
3129 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3130 echo "$as_me:$LINENO: result: yes" >&5
3131echo "${ECHO_T}yes" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134echo "${ECHO_T}no" >&6
3135 fi
3136
3137
a848cd7e
SC
3138 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3139echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3140 no_cache=0
3141
3142# Check whether --with-opengl or --without-opengl was given.
3143if test "${with_opengl+set}" = set; then
3144 withval="$with_opengl"
3145
3146 if test "$withval" = yes; then
3147 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3148 else
3149 ac_cv_use_opengl='wxUSE_OPENGL=no'
3150 fi
3151
3152else
3153
3154 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3162
3163fi;
3164
3165 eval "$ac_cv_use_opengl"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_OPENGL" = yes; then
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
3173 else
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
3176 fi
3177
3178
3179fi
3180
3181
3182 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3183echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3184 no_cache=0
3185
3186# Check whether --with-dmalloc or --without-dmalloc was given.
3187if test "${with_dmalloc+set}" = set; then
3188 withval="$with_dmalloc"
3189
3190 if test "$withval" = yes; then
3191 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3192 else
3193 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3194 fi
3195
3196else
3197
3198 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3206
3207fi;
3208
3209 eval "$ac_cv_use_dmalloc"
3210 if test "$no_cache" != 1; then
3211 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3212 fi
3213
3214 if test "$wxUSE_DMALLOC" = yes; then
3215 echo "$as_me:$LINENO: result: yes" >&5
3216echo "${ECHO_T}yes" >&6
3217 else
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220 fi
3221
3222
3223 echo "$as_me:$LINENO: checking for --with-regex" >&5
3224echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3225 no_cache=0
3226
3227# Check whether --with-regex or --without-regex was given.
3228if test "${with_regex+set}" = set; then
3229 withval="$with_regex"
3230
3231 if test "$withval" = yes; then
3232 ac_cv_use_regex='wxUSE_REGEX=yes'
3233 elif test "$withval" = no; then
3234 ac_cv_use_regex='wxUSE_REGEX=no'
3235 elif test "$withval" = sys; then
3236 ac_cv_use_regex='wxUSE_REGEX=sys'
3237 elif test "$withval" = builtin; then
3238 ac_cv_use_regex='wxUSE_REGEX=builtin'
3239 else
3240 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3241echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3242 { (exit 1); exit 1; }; }
3243 fi
3244
3245else
3246
3247 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3255
3256fi;
3257
3258 eval "$ac_cv_use_regex"
3259 if test "$no_cache" != 1; then
3260 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3261 fi
3262
3263 if test "$wxUSE_REGEX" = yes; then
3264 echo "$as_me:$LINENO: result: yes" >&5
3265echo "${ECHO_T}yes" >&6
3266 elif test "$wxUSE_REGEX" = no; then
3267 echo "$as_me:$LINENO: result: no" >&5
3268echo "${ECHO_T}no" >&6
3269 elif test "$wxUSE_REGEX" = sys; then
3270 echo "$as_me:$LINENO: result: system version" >&5
3271echo "${ECHO_T}system version" >&6
3272 elif test "$wxUSE_REGEX" = builtin; then
3273 echo "$as_me:$LINENO: result: builtin version" >&5
3274echo "${ECHO_T}builtin version" >&6
3275 else
3276 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3277echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3278 { (exit 1); exit 1; }; }
3279 fi
3280
3281
3282 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3283echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3284 no_cache=0
3285
3286# Check whether --with-zlib or --without-zlib was given.
3287if test "${with_zlib+set}" = set; then
3288 withval="$with_zlib"
3289
3290 if test "$withval" = yes; then
3291 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3292 elif test "$withval" = no; then
3293 ac_cv_use_zlib='wxUSE_ZLIB=no'
3294 elif test "$withval" = sys; then
3295 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3296 elif test "$withval" = builtin; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3298 else
3299 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3300echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3301 { (exit 1); exit 1; }; }
3302 fi
3303
3304else
3305
3306 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3307 if test "x$LINE" != x ; then
3308 eval "DEFAULT_$LINE"
3309 else
3310 no_cache=1
3311 fi
3312
3313 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3314
3315fi;
3316
3317 eval "$ac_cv_use_zlib"
3318 if test "$no_cache" != 1; then
3319 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3320 fi
3321
3322 if test "$wxUSE_ZLIB" = yes; then
3323 echo "$as_me:$LINENO: result: yes" >&5
3324echo "${ECHO_T}yes" >&6
3325 elif test "$wxUSE_ZLIB" = no; then
3326 echo "$as_me:$LINENO: result: no" >&5
3327echo "${ECHO_T}no" >&6
3328 elif test "$wxUSE_ZLIB" = sys; then
3329 echo "$as_me:$LINENO: result: system version" >&5
3330echo "${ECHO_T}system version" >&6
3331 elif test "$wxUSE_ZLIB" = builtin; then
3332 echo "$as_me:$LINENO: result: builtin version" >&5
3333echo "${ECHO_T}builtin version" >&6
3334 else
3335 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3336echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3337 { (exit 1); exit 1; }; }
3338 fi
3339
3340
3341 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3342echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3343 no_cache=0
3344
3345# Check whether --with-odbc or --without-odbc was given.
3346if test "${with_odbc+set}" = set; then
3347 withval="$with_odbc"
3348
3349 if test "$withval" = yes; then
3350 ac_cv_use_odbc='wxUSE_ODBC=yes'
3351 elif test "$withval" = no; then
3352 ac_cv_use_odbc='wxUSE_ODBC=no'
3353 elif test "$withval" = sys; then
3354 ac_cv_use_odbc='wxUSE_ODBC=sys'
3355 elif test "$withval" = builtin; then
3356 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3357 else
3358 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3359echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3360 { (exit 1); exit 1; }; }
3361 fi
3362
3363else
3364
3365 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3373
3374fi;
3375
3376 eval "$ac_cv_use_odbc"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_ODBC" = yes; then
3382 echo "$as_me:$LINENO: result: yes" >&5
3383echo "${ECHO_T}yes" >&6
3384 elif test "$wxUSE_ODBC" = no; then
3385 echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
3387 elif test "$wxUSE_ODBC" = sys; then
3388 echo "$as_me:$LINENO: result: system version" >&5
3389echo "${ECHO_T}system version" >&6
3390 elif test "$wxUSE_ODBC" = builtin; then
3391 echo "$as_me:$LINENO: result: builtin version" >&5
3392echo "${ECHO_T}builtin version" >&6
3393 else
3394 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3395echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3396 { (exit 1); exit 1; }; }
3397 fi
3398
3399
3400 echo "$as_me:$LINENO: checking for --with-expat" >&5
3401echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3402 no_cache=0
3403
3404# Check whether --with-expat or --without-expat was given.
3405if test "${with_expat+set}" = set; then
3406 withval="$with_expat"
3407
3408 if test "$withval" = yes; then
3409 ac_cv_use_expat='wxUSE_EXPAT=yes'
3410 elif test "$withval" = no; then
3411 ac_cv_use_expat='wxUSE_EXPAT=no'
3412 elif test "$withval" = sys; then
3413 ac_cv_use_expat='wxUSE_EXPAT=sys'
3414 elif test "$withval" = builtin; then
3415 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3416 else
3417 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3418echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3419 { (exit 1); exit 1; }; }
3420 fi
3421
3422else
3423
3424 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3425 if test "x$LINE" != x ; then
3426 eval "DEFAULT_$LINE"
3427 else
3428 no_cache=1
3429 fi
3430
3431 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3432
3433fi;
3434
3435 eval "$ac_cv_use_expat"
3436 if test "$no_cache" != 1; then
3437 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3438 fi
3439
3440 if test "$wxUSE_EXPAT" = yes; then
3441 echo "$as_me:$LINENO: result: yes" >&5
3442echo "${ECHO_T}yes" >&6
3443 elif test "$wxUSE_EXPAT" = no; then
3444 echo "$as_me:$LINENO: result: no" >&5
3445echo "${ECHO_T}no" >&6
3446 elif test "$wxUSE_EXPAT" = sys; then
3447 echo "$as_me:$LINENO: result: system version" >&5
3448echo "${ECHO_T}system version" >&6
3449 elif test "$wxUSE_EXPAT" = builtin; then
3450 echo "$as_me:$LINENO: result: builtin version" >&5
3451echo "${ECHO_T}builtin version" >&6
3452 else
3453 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3454echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3455 { (exit 1); exit 1; }; }
3456 fi
3457
3458
3459
3460
3461 enablestring=
3462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3463echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3464 no_cache=0
3465 # Check whether --enable-shared or --disable-shared was given.
3466if test "${enable_shared+set}" = set; then
3467 enableval="$enable_shared"
3468
3469 if test "$enableval" = yes; then
3470 ac_cv_use_shared='wxUSE_SHARED=yes'
3471 else
3472 ac_cv_use_shared='wxUSE_SHARED=no'
3473 fi
3474
3475else
3476
3477 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3478 if test "x$LINE" != x ; then
3479 eval "DEFAULT_$LINE"
3480 else
3481 no_cache=1
3482 fi
3483
3484 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3485
3486fi;
3487
3488 eval "$ac_cv_use_shared"
3489 if test "$no_cache" != 1; then
3490 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3491 fi
3492
3493 if test "$wxUSE_SHARED" = yes; then
3494 echo "$as_me:$LINENO: result: yes" >&5
3495echo "${ECHO_T}yes" >&6
3496 else
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
3499 fi
3500
3501
3502 enablestring=
3503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3504echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3505 no_cache=0
3506 # Check whether --enable-optimise or --disable-optimise was given.
3507if test "${enable_optimise+set}" = set; then
3508 enableval="$enable_optimise"
3509
3510 if test "$enableval" = yes; then
3511 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3512 else
3513 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3514 fi
3515
3516else
3517
3518 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
3525 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3526
3527fi;
3528
3529 eval "$ac_cv_use_optimise"
3530 if test "$no_cache" != 1; then
3531 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3532 fi
3533
3534 if test "$wxUSE_OPTIMISE" = yes; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536echo "${ECHO_T}yes" >&6
3537 else
3538 echo "$as_me:$LINENO: result: no" >&5
3539echo "${ECHO_T}no" >&6
3540 fi
3541
3542
3543 enablestring=
3544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3545echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3546 no_cache=0
3547 # Check whether --enable-debug or --disable-debug was given.
3548if test "${enable_debug+set}" = set; then
3549 enableval="$enable_debug"
3550
3551 if test "$enableval" = yes; then
3552 ac_cv_use_debug='wxUSE_DEBUG=yes'
3553 else
3554 ac_cv_use_debug='wxUSE_DEBUG=no'
3555 fi
3556
3557else
3558
3559 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3560 if test "x$LINE" != x ; then
3561 eval "DEFAULT_$LINE"
3562 else
3563 no_cache=1
3564 fi
3565
3566 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3567
3568fi;
3569
3570 eval "$ac_cv_use_debug"
3571 if test "$no_cache" != 1; then
3572 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3573 fi
3574
3575 if test "$wxUSE_DEBUG" = yes; then
3576 echo "$as_me:$LINENO: result: yes" >&5
3577echo "${ECHO_T}yes" >&6
3578 else
3579 echo "$as_me:$LINENO: result: no" >&5
3580echo "${ECHO_T}no" >&6
3581 fi
3582
3583
3584 enablestring=
3585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3586echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3587 no_cache=0
3588 # Check whether --enable-stl or --disable-stl was given.
3589if test "${enable_stl+set}" = set; then
3590 enableval="$enable_stl"
3591
3592 if test "$enableval" = yes; then
3593 ac_cv_use_stl='wxUSE_STL=yes'
3594 else
3595 ac_cv_use_stl='wxUSE_STL=no'
3596 fi
3597
3598else
3599
3600 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3608
3609fi;
3610
3611 eval "$ac_cv_use_stl"
3612 if test "$no_cache" != 1; then
3613 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3614 fi
3615
3616 if test "$wxUSE_STL" = yes; then
3617 echo "$as_me:$LINENO: result: yes" >&5
3618echo "${ECHO_T}yes" >&6
3619 else
3620 echo "$as_me:$LINENO: result: no" >&5
3621echo "${ECHO_T}no" >&6
3622 fi
3623
3624if test "$USE_OS2" = "1"; then
3625
3626 enablestring=
3627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3628echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3629 no_cache=0
3630 # Check whether --enable-omf or --disable-omf was given.
3631if test "${enable_omf+set}" = set; then
3632 enableval="$enable_omf"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_omf='wxUSE_OMF=yes'
3636 else
3637 ac_cv_use_omf='wxUSE_OMF=no'
3638 fi
3639
3640else
3641
3642 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3650
3651fi;
3652
3653 eval "$ac_cv_use_omf"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_OMF" = yes; then
3659 echo "$as_me:$LINENO: result: yes" >&5
3660echo "${ECHO_T}yes" >&6
3661 else
3662 echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
3664 fi
3665
3666fi
3667
3668if test "$wxUSE_DEBUG" = "yes"; then
3669 DEFAULT_wxUSE_DEBUG_FLAG=yes
3670 DEFAULT_wxUSE_DEBUG_INFO=yes
3671 BUILD=debug
3672elif test "$wxUSE_DEBUG" = "no"; then
3673 DEFAULT_wxUSE_DEBUG_FLAG=no
3674 DEFAULT_wxUSE_DEBUG_INFO=no
3675 BUILD=release
3676fi
3677
3678
3679 enablestring=
3680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3681echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3682 no_cache=0
3683 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3684if test "${enable_debug_flag+set}" = set; then
3685 enableval="$enable_debug_flag"
3686
3687 if test "$enableval" = yes; then
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3689 else
3690 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3691 fi
3692
3693else
3694
3695 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3696 if test "x$LINE" != x ; then
3697 eval "DEFAULT_$LINE"
3698 else
3699 no_cache=1
3700 fi
3701
3702 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3703
3704fi;
3705
3706 eval "$ac_cv_use_debug_flag"
3707 if test "$no_cache" != 1; then
3708 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3709 fi
3710
3711 if test "$wxUSE_DEBUG_FLAG" = yes; then
3712 echo "$as_me:$LINENO: result: yes" >&5
3713echo "${ECHO_T}yes" >&6
3714 else
3715 echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6
3717 fi
3718
3719
3720 enablestring=
3721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3722echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3723 no_cache=0
3724 # Check whether --enable-debug_info or --disable-debug_info was given.
3725if test "${enable_debug_info+set}" = set; then
3726 enableval="$enable_debug_info"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3730 else
3731 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3732 fi
3733
3734else
3735
3736 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3744
3745fi;
3746
3747 eval "$ac_cv_use_debug_info"
3748 if test "$no_cache" != 1; then
3749 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3750 fi
3751
3752 if test "$wxUSE_DEBUG_INFO" = yes; then
3753 echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6
3755 else
3756 echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6
3758 fi
3759
3760
3761 enablestring=
3762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3763echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3764 no_cache=0
3765 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3766if test "${enable_debug_gdb+set}" = set; then
3767 enableval="$enable_debug_gdb"
3768
3769 if test "$enableval" = yes; then
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3771 else
3772 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3773 fi
3774
3775else
3776
3777 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3785
3786fi;
3787
3788 eval "$ac_cv_use_debug_gdb"
3789 if test "$no_cache" != 1; then
3790 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3791 fi
3792
3793 if test "$wxUSE_DEBUG_GDB" = yes; then
3794 echo "$as_me:$LINENO: result: yes" >&5
3795echo "${ECHO_T}yes" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798echo "${ECHO_T}no" >&6
3799 fi
3800
3801
3802 enablestring=
3803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3804echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3805 no_cache=0
3806 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3807if test "${enable_debug_cntxt+set}" = set; then
3808 enableval="$enable_debug_cntxt"
3809
3810 if test "$enableval" = yes; then
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3812 else
3813 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3814 fi
3815
3816else
3817
3818 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3819 if test "x$LINE" != x ; then
3820 eval "DEFAULT_$LINE"
3821 else
3822 no_cache=1
3823 fi
3824
3825 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3826
3827fi;
3828
3829 eval "$ac_cv_use_debug_cntxt"
3830 if test "$no_cache" != 1; then
3831 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3832 fi
3833
3834 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3835 echo "$as_me:$LINENO: result: yes" >&5
3836echo "${ECHO_T}yes" >&6
3837 else
3838 echo "$as_me:$LINENO: result: no" >&5
3839echo "${ECHO_T}no" >&6
3840 fi
3841
3842
3843 enablestring=
3844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3845echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3846 no_cache=0
3847 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3848if test "${enable_mem_tracing+set}" = set; then
3849 enableval="$enable_mem_tracing"
3850
3851 if test "$enableval" = yes; then
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3853 else
3854 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3855 fi
3856
3857else
3858
3859 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3860 if test "x$LINE" != x ; then
3861 eval "DEFAULT_$LINE"
3862 else
3863 no_cache=1
3864 fi
3865
3866 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3867
3868fi;
3869
3870 eval "$ac_cv_use_mem_tracing"
3871 if test "$no_cache" != 1; then
3872 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3873 fi
3874
3875 if test "$wxUSE_MEM_TRACING" = yes; then
3876 echo "$as_me:$LINENO: result: yes" >&5
3877echo "${ECHO_T}yes" >&6
3878 else
3879 echo "$as_me:$LINENO: result: no" >&5
3880echo "${ECHO_T}no" >&6
3881 fi
3882
3883
3884 enablestring=
3885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3886echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3887 no_cache=0
3888 # Check whether --enable-profile or --disable-profile was given.
3889if test "${enable_profile+set}" = set; then
3890 enableval="$enable_profile"
3891
3892 if test "$enableval" = yes; then
3893 ac_cv_use_profile='wxUSE_PROFILE=yes'
3894 else
3895 ac_cv_use_profile='wxUSE_PROFILE=no'
3896 fi
3897
3898else
3899
3900 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3901 if test "x$LINE" != x ; then
3902 eval "DEFAULT_$LINE"
3903 else
3904 no_cache=1
3905 fi
3906
3907 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3908
3909fi;
3910
3911 eval "$ac_cv_use_profile"
3912 if test "$no_cache" != 1; then
3913 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3914 fi
3915
3916 if test "$wxUSE_PROFILE" = yes; then
3917 echo "$as_me:$LINENO: result: yes" >&5
3918echo "${ECHO_T}yes" >&6
3919 else
3920 echo "$as_me:$LINENO: result: no" >&5
3921echo "${ECHO_T}no" >&6
3922 fi
3923
3924
3925 enablestring=
3926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3927echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3928 no_cache=0
3929 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3930if test "${enable_no_rtti+set}" = set; then
3931 enableval="$enable_no_rtti"
3932
3933 if test "$enableval" = yes; then
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3935 else
3936 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3937 fi
3938
3939else
3940
3941 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3942 if test "x$LINE" != x ; then
3943 eval "DEFAULT_$LINE"
3944 else
3945 no_cache=1
3946 fi
3947
3948 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3949
3950fi;
3951
3952 eval "$ac_cv_use_no_rtti"
3953 if test "$no_cache" != 1; then
3954 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3955 fi
3956
3957 if test "$wxUSE_NO_RTTI" = yes; then
3958 echo "$as_me:$LINENO: result: yes" >&5
3959echo "${ECHO_T}yes" >&6
3960 else
3961 echo "$as_me:$LINENO: result: no" >&5
3962echo "${ECHO_T}no" >&6
3963 fi
3964
3965
3966 enablestring=
3967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3968echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3969 no_cache=0
3970 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3971if test "${enable_no_exceptions+set}" = set; then
3972 enableval="$enable_no_exceptions"
3973
3974 if test "$enableval" = yes; then
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3976 else
3977 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3978 fi
3979
3980else
3981
3982 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3990
3991fi;
3992
3993 eval "$ac_cv_use_no_exceptions"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3999 echo "$as_me:$LINENO: result: yes" >&5
4000echo "${ECHO_T}yes" >&6
4001 else
4002 echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6
4004 fi
4005
4006
4007 enablestring=
4008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4009echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4010 no_cache=0
4011 # Check whether --enable-permissive or --disable-permissive was given.
4012if test "${enable_permissive+set}" = set; then
4013 enableval="$enable_permissive"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4017 else
4018 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4019 fi
4020
4021else
4022
4023 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4031
4032fi;
4033
4034 eval "$ac_cv_use_permissive"
4035 if test "$no_cache" != 1; then
4036 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4037 fi
4038
4039 if test "$wxUSE_PERMISSIVE" = yes; then
4040 echo "$as_me:$LINENO: result: yes" >&5
4041echo "${ECHO_T}yes" >&6
4042 else
4043 echo "$as_me:$LINENO: result: no" >&5
4044echo "${ECHO_T}no" >&6
4045 fi
4046
4047
4048 enablestring=
4049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4050echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4051 no_cache=0
4052 # Check whether --enable-no_deps or --disable-no_deps was given.
4053if test "${enable_no_deps+set}" = set; then
4054 enableval="$enable_no_deps"
4055
4056 if test "$enableval" = yes; then
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4058 else
4059 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4060 fi
4061
4062else
4063
4064 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4065 if test "x$LINE" != x ; then
4066 eval "DEFAULT_$LINE"
4067 else
4068 no_cache=1
4069 fi
4070
4071 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4072
4073fi;
4074
4075 eval "$ac_cv_use_no_deps"
4076 if test "$no_cache" != 1; then
4077 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4078 fi
4079
4080 if test "$wxUSE_NO_DEPS" = yes; then
4081 echo "$as_me:$LINENO: result: yes" >&5
4082echo "${ECHO_T}yes" >&6
4083 else
4084 echo "$as_me:$LINENO: result: no" >&5
4085echo "${ECHO_T}no" >&6
4086 fi
4087
4088
4089
4090 enablestring=
4091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4092echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4093 no_cache=0
4094 # Check whether --enable-compat22 or --disable-compat22 was given.
4095if test "${enable_compat22+set}" = set; then
4096 enableval="$enable_compat22"
4097
4098 if test "$enableval" = yes; then
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4100 else
4101 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4102 fi
4103
4104else
4105
4106 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4107 if test "x$LINE" != x ; then
4108 eval "DEFAULT_$LINE"
4109 else
4110 no_cache=1
4111 fi
4112
4113 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4114
4115fi;
4116
4117 eval "$ac_cv_use_compat22"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4123 echo "$as_me:$LINENO: result: yes" >&5
4124echo "${ECHO_T}yes" >&6
4125 else
4126 echo "$as_me:$LINENO: result: no" >&5
4127echo "${ECHO_T}no" >&6
4128 fi
4129
4130
4131 enablestring=disable
4132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4133echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4134 no_cache=0
4135 # Check whether --enable-compat24 or --disable-compat24 was given.
4136if test "${enable_compat24+set}" = set; then
4137 enableval="$enable_compat24"
4138
4139 if test "$enableval" = yes; then
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4141 else
4142 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4143 fi
4144
4145else
4146
4147 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4148 if test "x$LINE" != x ; then
4149 eval "DEFAULT_$LINE"
4150 else
4151 no_cache=1
4152 fi
4153
4154 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4155
4156fi;
4157
4158 eval "$ac_cv_use_compat24"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4164 echo "$as_me:$LINENO: result: yes" >&5
4165echo "${ECHO_T}yes" >&6
4166 else
4167 echo "$as_me:$LINENO: result: no" >&5
4168echo "${ECHO_T}no" >&6
4169 fi
4170
4171
ffa0583f
RL
4172
4173 enablestring=
4174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4175echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4176 no_cache=0
4177 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4178if test "${enable_rpath+set}" = set; then
4179 enableval="$enable_rpath"
ffa0583f
RL
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_rpath='wxUSE_RPATH=yes'
4183 else
4184 ac_cv_use_rpath='wxUSE_RPATH=no'
4185 fi
4186
4187else
4188
4189 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4197
a848cd7e
SC
4198fi;
4199
ffa0583f
RL
4200 eval "$ac_cv_use_rpath"
4201 if test "$no_cache" != 1; then
4202 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4203 fi
4204
4205 if test "$wxUSE_RPATH" = yes; then
4206 echo "$as_me:$LINENO: result: yes" >&5
4207echo "${ECHO_T}yes" >&6
4208 else
4209 echo "$as_me:$LINENO: result: no" >&5
4210echo "${ECHO_T}no" >&6
4211 fi
4212
a848cd7e
SC
4213
4214
4215
4216
4217 enablestring=
4218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4219echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4220 no_cache=0
4221 # Check whether --enable-intl or --disable-intl was given.
4222if test "${enable_intl+set}" = set; then
4223 enableval="$enable_intl"
4224
4225 if test "$enableval" = yes; then
4226 ac_cv_use_intl='wxUSE_INTL=yes'
4227 else
4228 ac_cv_use_intl='wxUSE_INTL=no'
4229 fi
4230
4231else
4232
4233 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4234 if test "x$LINE" != x ; then
4235 eval "DEFAULT_$LINE"
4236 else
4237 no_cache=1
4238 fi
4239
4240 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4241
4242fi;
4243
4244 eval "$ac_cv_use_intl"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_INTL" = yes; then
4250 echo "$as_me:$LINENO: result: yes" >&5
4251echo "${ECHO_T}yes" >&6
4252 else
4253 echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
4255 fi
4256
4257
4258 enablestring=
4259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4260echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4261 no_cache=0
4262 # Check whether --enable-config or --disable-config was given.
4263if test "${enable_config+set}" = set; then
4264 enableval="$enable_config"
4265
4266 if test "$enableval" = yes; then
4267 ac_cv_use_config='wxUSE_CONFIG=yes'
4268 else
4269 ac_cv_use_config='wxUSE_CONFIG=no'
4270 fi
4271
4272else
4273
4274 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4282
4283fi;
4284
4285 eval "$ac_cv_use_config"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_CONFIG" = yes; then
4291 echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6
4293 else
4294 echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
4296 fi
4297
4298
4299
4300 enablestring=
4301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4302echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4303 no_cache=0
4304 # Check whether --enable-protocols or --disable-protocols was given.
4305if test "${enable_protocols+set}" = set; then
4306 enableval="$enable_protocols"
4307
4308 if test "$enableval" = yes; then
4309 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4310 else
4311 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4312 fi
4313
4314else
4315
4316 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4324
4325fi;
4326
4327 eval "$ac_cv_use_protocols"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_PROTOCOL" = yes; then
4333 echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6
4335 else
4336 echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
4338 fi
4339
4340
4341 enablestring=
4342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4343echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4344 no_cache=0
4345 # Check whether --enable-ftp or --disable-ftp was given.
4346if test "${enable_ftp+set}" = set; then
4347 enableval="$enable_ftp"
4348
4349 if test "$enableval" = yes; then
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4351 else
4352 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4353 fi
4354
4355else
4356
4357 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
4364 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4365
4366fi;
4367
4368 eval "$ac_cv_use_ftp"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4374 echo "$as_me:$LINENO: result: yes" >&5
4375echo "${ECHO_T}yes" >&6
4376 else
4377 echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
4379 fi
4380
4381
4382 enablestring=
4383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4384echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4385 no_cache=0
4386 # Check whether --enable-http or --disable-http was given.
4387if test "${enable_http+set}" = set; then
4388 enableval="$enable_http"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4392 else
4393 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4394 fi
4395
4396else
4397
4398 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4406
4407fi;
4408
4409 eval "$ac_cv_use_http"
4410 if test "$no_cache" != 1; then
4411 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4412 fi
4413
4414 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4415 echo "$as_me:$LINENO: result: yes" >&5
4416echo "${ECHO_T}yes" >&6
4417 else
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
4420 fi
4421
4422
4423 enablestring=
4424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4425echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4426 no_cache=0
4427 # Check whether --enable-fileproto or --disable-fileproto was given.
4428if test "${enable_fileproto+set}" = set; then
4429 enableval="$enable_fileproto"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4433 else
4434 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4435 fi
4436
4437else
4438
4439 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4447
4448fi;
4449
4450 eval "$ac_cv_use_fileproto"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4456 echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6
4458 else
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
4461 fi
4462
4463
4464 enablestring=
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4467 no_cache=0
4468 # Check whether --enable-sockets or --disable-sockets was given.
4469if test "${enable_sockets+set}" = set; then
4470 enableval="$enable_sockets"
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4474 else
4475 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4476 fi
4477
4478else
4479
4480 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4488
4489fi;
4490
4491 eval "$ac_cv_use_sockets"
4492 if test "$no_cache" != 1; then
4493 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4494 fi
4495
4496 if test "$wxUSE_SOCKETS" = yes; then
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499 else
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502 fi
4503
4504
4505 enablestring=
4506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4507echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4508 no_cache=0
4509 # Check whether --enable-ole or --disable-ole was given.
4510if test "${enable_ole+set}" = set; then
4511 enableval="$enable_ole"
4512
4513 if test "$enableval" = yes; then
4514 ac_cv_use_ole='wxUSE_OLE=yes'
4515 else
4516 ac_cv_use_ole='wxUSE_OLE=no'
4517 fi
4518
4519else
4520
4521 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
4528 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4529
4530fi;
4531
4532 eval "$ac_cv_use_ole"
4533 if test "$no_cache" != 1; then
4534 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4535 fi
4536
4537 if test "$wxUSE_OLE" = yes; then
4538 echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
4540 else
4541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
4543 fi
4544
4545
4546 enablestring=
4547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4548echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4549 no_cache=0
4550 # Check whether --enable-dataobj or --disable-dataobj was given.
4551if test "${enable_dataobj+set}" = set; then
4552 enableval="$enable_dataobj"
4553
4554 if test "$enableval" = yes; then
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4556 else
4557 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4558 fi
4559
4560else
4561
4562 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4563 if test "x$LINE" != x ; then
4564 eval "DEFAULT_$LINE"
4565 else
4566 no_cache=1
4567 fi
4568
4569 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4570
4571fi;
4572
4573 eval "$ac_cv_use_dataobj"
4574 if test "$no_cache" != 1; then
4575 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4576 fi
4577
4578 if test "$wxUSE_DATAOBJ" = yes; then
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
4581 else
4582 echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
4584 fi
4585
4586
4587
4588 enablestring=
4589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4590echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4591 no_cache=0
4592 # Check whether --enable-ipc or --disable-ipc was given.
4593if test "${enable_ipc+set}" = set; then
4594 enableval="$enable_ipc"
4595
4596 if test "$enableval" = yes; then
4597 ac_cv_use_ipc='wxUSE_IPC=yes'
4598 else
4599 ac_cv_use_ipc='wxUSE_IPC=no'
4600 fi
4601
4602else
4603
4604 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4612
4613fi;
4614
4615 eval "$ac_cv_use_ipc"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_IPC" = yes; then
4621 echo "$as_me:$LINENO: result: yes" >&5
4622echo "${ECHO_T}yes" >&6
4623 else
4624 echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
4626 fi
4627
4628
4629
4630 enablestring=
4631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4632echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4633 no_cache=0
4634 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4635if test "${enable_apple_ieee+set}" = set; then
4636 enableval="$enable_apple_ieee"
4637
4638 if test "$enableval" = yes; then
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4640 else
4641 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4642 fi
4643
4644else
4645
4646 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4647 if test "x$LINE" != x ; then
4648 eval "DEFAULT_$LINE"
4649 else
4650 no_cache=1
4651 fi
4652
4653 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4654
4655fi;
4656
4657 eval "$ac_cv_use_apple_ieee"
4658 if test "$no_cache" != 1; then
4659 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4660 fi
4661
4662 if test "$wxUSE_APPLE_IEEE" = yes; then
4663 echo "$as_me:$LINENO: result: yes" >&5
4664echo "${ECHO_T}yes" >&6
4665 else
4666 echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6
4668 fi
4669
4670
81f90336
MW
4671 enablestring=
4672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4673echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4674 no_cache=0
4675 # Check whether --enable-arcstream or --disable-arcstream was given.
4676if test "${enable_arcstream+set}" = set; then
4677 enableval="$enable_arcstream"
4678
4679 if test "$enableval" = yes; then
9e8e867f 4680 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4681 else
9e8e867f 4682 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4683 fi
4684
4685else
4686
9e8e867f 4687 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4688 if test "x$LINE" != x ; then
4689 eval "DEFAULT_$LINE"
4690 else
4691 no_cache=1
4692 fi
4693
9e8e867f 4694 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4695
4696fi;
4697
4698 eval "$ac_cv_use_arcstream"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4701 fi
4702
9e8e867f 4703 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4704 echo "$as_me:$LINENO: result: yes" >&5
4705echo "${ECHO_T}yes" >&6
4706 else
4707 echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6
4709 fi
4710
4711
a848cd7e
SC
4712 enablestring=
4713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4714echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4715 no_cache=0
4716 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4717if test "${enable_catch_segvs+set}" = set; then
4718 enableval="$enable_catch_segvs"
4719
4720 if test "$enableval" = yes; then
4721 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4722 else
4723 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4724 fi
4725
4726else
4727
4728 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4729 if test "x$LINE" != x ; then
4730 eval "DEFAULT_$LINE"
4731 else
4732 no_cache=1
4733 fi
4734
4735 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4736
4737fi;
4738
4739 eval "$ac_cv_use_catch_segvs"
4740 if test "$no_cache" != 1; then
4741 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4742 fi
4743
4744 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4745 echo "$as_me:$LINENO: result: yes" >&5
4746echo "${ECHO_T}yes" >&6
4747 else
4748 echo "$as_me:$LINENO: result: no" >&5
4749echo "${ECHO_T}no" >&6
4750 fi
4751
4752
eaff0f0d
VZ
4753 enablestring=
4754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4755echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4756 no_cache=0
4757 # Check whether --enable-backtrace or --disable-backtrace was given.
4758if test "${enable_backtrace+set}" = set; then
4759 enableval="$enable_backtrace"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4763 else
4764 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4765 fi
4766
4767else
4768
4769 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4777
4778fi;
4779
4780 eval "$ac_cv_use_backtrace"
4781 if test "$no_cache" != 1; then
4782 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4783 fi
4784
4785 if test "$wxUSE_STACKWALKER" = yes; then
4786 echo "$as_me:$LINENO: result: yes" >&5
4787echo "${ECHO_T}yes" >&6
4788 else
4789 echo "$as_me:$LINENO: result: no" >&5
4790echo "${ECHO_T}no" >&6
4791 fi
4792
4793
a848cd7e
SC
4794 enablestring=
4795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4796echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4797 no_cache=0
4798 # Check whether --enable-cmdline or --disable-cmdline was given.
4799if test "${enable_cmdline+set}" = set; then
4800 enableval="$enable_cmdline"
4801
4802 if test "$enableval" = yes; then
4803 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4804 else
4805 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4806 fi
4807
4808else
4809
4810 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4811 if test "x$LINE" != x ; then
4812 eval "DEFAULT_$LINE"
4813 else
4814 no_cache=1
4815 fi
4816
4817 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4818
4819fi;
4820
4821 eval "$ac_cv_use_cmdline"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4827 echo "$as_me:$LINENO: result: yes" >&5
4828echo "${ECHO_T}yes" >&6
4829 else
4830 echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6
4832 fi
4833
4834
4835 enablestring=
4836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4837echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4838 no_cache=0
4839 # Check whether --enable-datetime or --disable-datetime was given.
4840if test "${enable_datetime+set}" = set; then
4841 enableval="$enable_datetime"
4842
4843 if test "$enableval" = yes; then
4844 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4845 else
4846 ac_cv_use_datetime='wxUSE_DATETIME=no'
4847 fi
4848
4849else
4850
4851 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4852 if test "x$LINE" != x ; then
4853 eval "DEFAULT_$LINE"
4854 else
4855 no_cache=1
4856 fi
4857
4858 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4859
4860fi;
4861
4862 eval "$ac_cv_use_datetime"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_DATETIME" = yes; then
4868 echo "$as_me:$LINENO: result: yes" >&5
4869echo "${ECHO_T}yes" >&6
4870 else
4871 echo "$as_me:$LINENO: result: no" >&5
4872echo "${ECHO_T}no" >&6
4873 fi
4874
4875
4876 enablestring=
4877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4878echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4879 no_cache=0
4880 # Check whether --enable-dialupman or --disable-dialupman was given.
4881if test "${enable_dialupman+set}" = set; then
4882 enableval="$enable_dialupman"
4883
4884 if test "$enableval" = yes; then
4885 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4886 else
4887 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4888 fi
4889
4890else
4891
4892 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4893 if test "x$LINE" != x ; then
4894 eval "DEFAULT_$LINE"
4895 else
4896 no_cache=1
4897 fi
4898
4899 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4900
4901fi;
4902
4903 eval "$ac_cv_use_dialupman"
4904 if test "$no_cache" != 1; then
4905 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4906 fi
4907
4908 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4909 echo "$as_me:$LINENO: result: yes" >&5
4910echo "${ECHO_T}yes" >&6
4911 else
4912 echo "$as_me:$LINENO: result: no" >&5
4913echo "${ECHO_T}no" >&6
4914 fi
4915
4916
4917 enablestring=
4918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4919echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4920 no_cache=0
4921 # Check whether --enable-dynlib or --disable-dynlib was given.
4922if test "${enable_dynlib+set}" = set; then
4923 enableval="$enable_dynlib"
4924
4925 if test "$enableval" = yes; then
4926 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4927 else
4928 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4929 fi
4930
4931else
4932
4933 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4934 if test "x$LINE" != x ; then
4935 eval "DEFAULT_$LINE"
4936 else
4937 no_cache=1
4938 fi
4939
4940 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4941
4942fi;
4943
4944 eval "$ac_cv_use_dynlib"
4945 if test "$no_cache" != 1; then
4946 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4947 fi
4948
4949 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4950 echo "$as_me:$LINENO: result: yes" >&5
4951echo "${ECHO_T}yes" >&6
4952 else
4953 echo "$as_me:$LINENO: result: no" >&5
4954echo "${ECHO_T}no" >&6
4955 fi
4956
4957
4958 enablestring=
4959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4960echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4961 no_cache=0
4962 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4963if test "${enable_dynamicloader+set}" = set; then
4964 enableval="$enable_dynamicloader"
4965
4966 if test "$enableval" = yes; then
4967 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4968 else
4969 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4970 fi
4971
4972else
4973
4974 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4975 if test "x$LINE" != x ; then
4976 eval "DEFAULT_$LINE"
4977 else
4978 no_cache=1
4979 fi
4980
4981 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4982
4983fi;
4984
4985 eval "$ac_cv_use_dynamicloader"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4991 echo "$as_me:$LINENO: result: yes" >&5
4992echo "${ECHO_T}yes" >&6
4993 else
4994 echo "$as_me:$LINENO: result: no" >&5
4995echo "${ECHO_T}no" >&6
4996 fi
4997
4998
4999 enablestring=
5000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5001echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5002 no_cache=0
5003 # Check whether --enable-exceptions or --disable-exceptions was given.
5004if test "${enable_exceptions+set}" = set; then
5005 enableval="$enable_exceptions"
5006
5007 if test "$enableval" = yes; then
5008 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5009 else
5010 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5011 fi
5012
5013else
5014
5015 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5016 if test "x$LINE" != x ; then
5017 eval "DEFAULT_$LINE"
5018 else
5019 no_cache=1
5020 fi
5021
5022 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5023
5024fi;
5025
5026 eval "$ac_cv_use_exceptions"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_EXCEPTIONS" = yes; then
5032 echo "$as_me:$LINENO: result: yes" >&5
5033echo "${ECHO_T}yes" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037 fi
5038
5039
5040 enablestring=
5041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5042echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5043 no_cache=0
5044 # Check whether --enable-ffile or --disable-ffile was given.
5045if test "${enable_ffile+set}" = set; then
5046 enableval="$enable_ffile"
5047
5048 if test "$enableval" = yes; then
5049 ac_cv_use_ffile='wxUSE_FFILE=yes'
5050 else
5051 ac_cv_use_ffile='wxUSE_FFILE=no'
5052 fi
5053
5054else
5055
5056 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5057 if test "x$LINE" != x ; then
5058 eval "DEFAULT_$LINE"
5059 else
5060 no_cache=1
5061 fi
5062
5063 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5064
5065fi;
5066
5067 eval "$ac_cv_use_ffile"
5068 if test "$no_cache" != 1; then
5069 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5070 fi
5071
5072 if test "$wxUSE_FFILE" = yes; then
5073 echo "$as_me:$LINENO: result: yes" >&5
5074echo "${ECHO_T}yes" >&6
5075 else
5076 echo "$as_me:$LINENO: result: no" >&5
5077echo "${ECHO_T}no" >&6
5078 fi
5079
5080
5081 enablestring=
5082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5083echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5084 no_cache=0
5085 # Check whether --enable-file or --disable-file was given.
5086if test "${enable_file+set}" = set; then
5087 enableval="$enable_file"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_file='wxUSE_FILE=yes'
5091 else
5092 ac_cv_use_file='wxUSE_FILE=no'
5093 fi
5094
5095else
5096
5097 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5105
5106fi;
5107
5108 eval "$ac_cv_use_file"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_FILE" = yes; then
5114 echo "$as_me:$LINENO: result: yes" >&5
5115echo "${ECHO_T}yes" >&6
5116 else
5117 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119 fi
5120
5121
5122 enablestring=
5123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5124echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5125 no_cache=0
5126 # Check whether --enable-filesystem or --disable-filesystem was given.
5127if test "${enable_filesystem+set}" = set; then
5128 enableval="$enable_filesystem"
5129
5130 if test "$enableval" = yes; then
5131 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5132 else
5133 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5134 fi
5135
5136else
5137
5138 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5139 if test "x$LINE" != x ; then
5140 eval "DEFAULT_$LINE"
5141 else
5142 no_cache=1
5143 fi
5144
5145 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5146
5147fi;
5148
5149 eval "$ac_cv_use_filesystem"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_FILESYSTEM" = yes; then
5155 echo "$as_me:$LINENO: result: yes" >&5
5156echo "${ECHO_T}yes" >&6
5157 else
5158 echo "$as_me:$LINENO: result: no" >&5
5159echo "${ECHO_T}no" >&6
5160 fi
5161
5162
5163 enablestring=
5164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5165echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5166 no_cache=0
5167 # Check whether --enable-fontmap or --disable-fontmap was given.
5168if test "${enable_fontmap+set}" = set; then
5169 enableval="$enable_fontmap"
5170
5171 if test "$enableval" = yes; then
5172 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5173 else
5174 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5175 fi
5176
5177else
5178
5179 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5187
5188fi;
5189
5190 eval "$ac_cv_use_fontmap"
5191 if test "$no_cache" != 1; then
5192 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5193 fi
5194
5195 if test "$wxUSE_FONTMAP" = yes; then
5196 echo "$as_me:$LINENO: result: yes" >&5
5197echo "${ECHO_T}yes" >&6
5198 else
5199 echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201 fi
5202
5203
5204 enablestring=
5205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5206echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5207 no_cache=0
5208 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5209if test "${enable_fs_inet+set}" = set; then
5210 enableval="$enable_fs_inet"
5211
5212 if test "$enableval" = yes; then
5213 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5214 else
5215 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5216 fi
5217
5218else
5219
5220 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5221 if test "x$LINE" != x ; then
5222 eval "DEFAULT_$LINE"
5223 else
5224 no_cache=1
5225 fi
5226
5227 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5228
5229fi;
5230
5231 eval "$ac_cv_use_fs_inet"
5232 if test "$no_cache" != 1; then
5233 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5234 fi
5235
5236 if test "$wxUSE_FS_INET" = yes; then
5237 echo "$as_me:$LINENO: result: yes" >&5
5238echo "${ECHO_T}yes" >&6
5239 else
5240 echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6
5242 fi
5243
5244
5245 enablestring=
5246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5247echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5248 no_cache=0
5249 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5250if test "${enable_fs_zip+set}" = set; then
5251 enableval="$enable_fs_zip"
5252
5253 if test "$enableval" = yes; then
5254 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5255 else
5256 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5257 fi
5258
5259else
5260
5261 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5262 if test "x$LINE" != x ; then
5263 eval "DEFAULT_$LINE"
5264 else
5265 no_cache=1
5266 fi
5267
5268 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5269
5270fi;
5271
5272 eval "$ac_cv_use_fs_zip"
5273 if test "$no_cache" != 1; then
5274 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5275 fi
5276
5277 if test "$wxUSE_FS_ZIP" = yes; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279echo "${ECHO_T}yes" >&6
5280 else
5281 echo "$as_me:$LINENO: result: no" >&5
5282echo "${ECHO_T}no" >&6
5283 fi
5284
5285
5286 enablestring=
5287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5288echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5289 no_cache=0
5290 # Check whether --enable-geometry or --disable-geometry was given.
5291if test "${enable_geometry+set}" = set; then
5292 enableval="$enable_geometry"
5293
5294 if test "$enableval" = yes; then
5295 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5296 else
5297 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5298 fi
5299
5300else
5301
5302 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5303 if test "x$LINE" != x ; then
5304 eval "DEFAULT_$LINE"
5305 else
5306 no_cache=1
5307 fi
5308
5309 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5310
5311fi;
5312
5313 eval "$ac_cv_use_geometry"
5314 if test "$no_cache" != 1; then
5315 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5316 fi
5317
5318 if test "$wxUSE_GEOMETRY" = yes; then
5319 echo "$as_me:$LINENO: result: yes" >&5
5320echo "${ECHO_T}yes" >&6
5321 else
5322 echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324 fi
5325
5326
5327 enablestring=
5328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5329echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5330 no_cache=0
5331 # Check whether --enable-log or --disable-log was given.
5332if test "${enable_log+set}" = set; then
5333 enableval="$enable_log"
5334
5335 if test "$enableval" = yes; then
5336 ac_cv_use_log='wxUSE_LOG=yes'
5337 else
5338 ac_cv_use_log='wxUSE_LOG=no'
5339 fi
5340
5341else
5342
5343 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5351
5352fi;
5353
5354 eval "$ac_cv_use_log"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_LOG" = yes; then
5360 echo "$as_me:$LINENO: result: yes" >&5
5361echo "${ECHO_T}yes" >&6
5362 else
5363 echo "$as_me:$LINENO: result: no" >&5
5364echo "${ECHO_T}no" >&6
5365 fi
5366
5367
5368 enablestring=
5369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5370echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5371 no_cache=0
5372 # Check whether --enable-longlong or --disable-longlong was given.
5373if test "${enable_longlong+set}" = set; then
5374 enableval="$enable_longlong"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5378 else
5379 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5380 fi
5381
5382else
5383
5384 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5392
5393fi;
5394
5395 eval "$ac_cv_use_longlong"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_LONGLONG" = yes; then
5401 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
5403 else
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
5406 fi
5407
5408
5409 enablestring=
5410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5411echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5412 no_cache=0
5413 # Check whether --enable-mimetype or --disable-mimetype was given.
5414if test "${enable_mimetype+set}" = set; then
5415 enableval="$enable_mimetype"
5416
5417 if test "$enableval" = yes; then
5418 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5419 else
5420 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5421 fi
5422
5423else
5424
5425 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5426 if test "x$LINE" != x ; then
5427 eval "DEFAULT_$LINE"
5428 else
5429 no_cache=1
5430 fi
5431
5432 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5433
5434fi;
5435
5436 eval "$ac_cv_use_mimetype"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_MIMETYPE" = yes; then
5442 echo "$as_me:$LINENO: result: yes" >&5
5443echo "${ECHO_T}yes" >&6
5444 else
5445 echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
5447 fi
5448
5449
5450 enablestring=
5451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5452echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5453 no_cache=0
5454 # Check whether --enable-mslu or --disable-mslu was given.
5455if test "${enable_mslu+set}" = set; then
5456 enableval="$enable_mslu"
5457
5458 if test "$enableval" = yes; then
5459 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5460 else
5461 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5462 fi
5463
5464else
5465
5466 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5474
5475fi;
5476
5477 eval "$ac_cv_use_mslu"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_UNICODE_MSLU" = yes; then
5483 echo "$as_me:$LINENO: result: yes" >&5
5484echo "${ECHO_T}yes" >&6
5485 else
5486 echo "$as_me:$LINENO: result: no" >&5
5487echo "${ECHO_T}no" >&6
5488 fi
5489
5490
5491 enablestring=
5492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5493echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5494 no_cache=0
5495 # Check whether --enable-snglinst or --disable-snglinst was given.
5496if test "${enable_snglinst+set}" = set; then
5497 enableval="$enable_snglinst"
5498
5499 if test "$enableval" = yes; then
5500 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5501 else
5502 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5503 fi
5504
5505else
5506
5507 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5515
5516fi;
5517
5518 eval "$ac_cv_use_snglinst"
5519 if test "$no_cache" != 1; then
5520 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5521 fi
5522
5523 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5524 echo "$as_me:$LINENO: result: yes" >&5
5525echo "${ECHO_T}yes" >&6
5526 else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529 fi
5530
5531
5532 enablestring=
5533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5534echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5535 no_cache=0
5536 # Check whether --enable-streams or --disable-streams was given.
5537if test "${enable_streams+set}" = set; then
5538 enableval="$enable_streams"
5539
5540 if test "$enableval" = yes; then
5541 ac_cv_use_streams='wxUSE_STREAMS=yes'
5542 else
5543 ac_cv_use_streams='wxUSE_STREAMS=no'
5544 fi
5545
5546else
5547
5548 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5556
5557fi;
5558
5559 eval "$ac_cv_use_streams"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_STREAMS" = yes; then
5565 echo "$as_me:$LINENO: result: yes" >&5
5566echo "${ECHO_T}yes" >&6
5567 else
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
5570 fi
5571
5572
5573 enablestring=
5574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5575echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5576 no_cache=0
5577 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5578if test "${enable_std_iostreams+set}" = set; then
5579 enableval="$enable_std_iostreams"
5580
5581 if test "$enableval" = yes; then
5582 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5583 else
5584 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5585 fi
5586
5587else
5588
5589 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5597
5598fi;
5599
5600 eval "$ac_cv_use_std_iostreams"
5601 if test "$no_cache" != 1; then
5602 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5603 fi
5604
5605 if test "$wxUSE_STD_IOSTREAM" = yes; then
5606 echo "$as_me:$LINENO: result: yes" >&5
5607echo "${ECHO_T}yes" >&6
5608 else
5609 echo "$as_me:$LINENO: result: no" >&5
5610echo "${ECHO_T}no" >&6
5611 fi
5612
5613
5614 enablestring=
5615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5616echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5617 no_cache=0
5618 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5619if test "${enable_stopwatch+set}" = set; then
5620 enableval="$enable_stopwatch"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5624 else
5625 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5626 fi
5627
5628else
5629
5630 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5638
5639fi;
5640
5641 eval "$ac_cv_use_stopwatch"
5642 if test "$no_cache" != 1; then
5643 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5644 fi
5645
5646 if test "$wxUSE_STOPWATCH" = yes; then
5647 echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6
5649 else
5650 echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
5652 fi
5653
5654
5655 enablestring=
5656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5657echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5658 no_cache=0
5659 # Check whether --enable-system_options or --disable-system_options was given.
5660if test "${enable_system_options+set}" = set; then
5661 enableval="$enable_system_options"
5662
5663 if test "$enableval" = yes; then
5664 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5665 else
5666 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5667 fi
5668
5669else
5670
5671 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5679
5680fi;
5681
5682 eval "$ac_cv_use_system_options"
5683 if test "$no_cache" != 1; then
5684 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5685 fi
5686
5687 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5688 echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
5690 else
5691 echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693 fi
5694
5695
5696 enablestring=
5697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5698echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5699 no_cache=0
5700 # Check whether --enable-textbuf or --disable-textbuf was given.
5701if test "${enable_textbuf+set}" = set; then
5702 enableval="$enable_textbuf"
5703
5704 if test "$enableval" = yes; then
5705 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5706 else
5707 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5708 fi
5709
5710else
5711
5712 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5713 if test "x$LINE" != x ; then
5714 eval "DEFAULT_$LINE"
5715 else
5716 no_cache=1
5717 fi
5718
5719 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5720
5721fi;
5722
5723 eval "$ac_cv_use_textbuf"
5724 if test "$no_cache" != 1; then
5725 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5726 fi
5727
5728 if test "$wxUSE_TEXTBUFFER" = yes; then
5729 echo "$as_me:$LINENO: result: yes" >&5
5730echo "${ECHO_T}yes" >&6
5731 else
5732 echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6
5734 fi
5735
5736
5737 enablestring=
5738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5739echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5740 no_cache=0
5741 # Check whether --enable-textfile or --disable-textfile was given.
5742if test "${enable_textfile+set}" = set; then
5743 enableval="$enable_textfile"
5744
5745 if test "$enableval" = yes; then
5746 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5747 else
5748 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5749 fi
5750
5751else
5752
5753 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5754 if test "x$LINE" != x ; then
5755 eval "DEFAULT_$LINE"
5756 else
5757 no_cache=1
5758 fi
5759
5760 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5761
5762fi;
5763
5764 eval "$ac_cv_use_textfile"
5765 if test "$no_cache" != 1; then
5766 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5767 fi
5768
5769 if test "$wxUSE_TEXTFILE" = yes; then
5770 echo "$as_me:$LINENO: result: yes" >&5
5771echo "${ECHO_T}yes" >&6
5772 else
5773 echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6
5775 fi
5776
5777
5778 enablestring=
5779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5780echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5781 no_cache=0
5782 # Check whether --enable-timer or --disable-timer was given.
5783if test "${enable_timer+set}" = set; then
5784 enableval="$enable_timer"
5785
5786 if test "$enableval" = yes; then
5787 ac_cv_use_timer='wxUSE_TIMER=yes'
5788 else
5789 ac_cv_use_timer='wxUSE_TIMER=no'
5790 fi
5791
5792else
5793
5794 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5795 if test "x$LINE" != x ; then
5796 eval "DEFAULT_$LINE"
5797 else
5798 no_cache=1
5799 fi
5800
5801 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5802
5803fi;
5804
5805 eval "$ac_cv_use_timer"
5806 if test "$no_cache" != 1; then
5807 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5808 fi
5809
5810 if test "$wxUSE_TIMER" = yes; then
5811 echo "$as_me:$LINENO: result: yes" >&5
5812echo "${ECHO_T}yes" >&6
5813 else
5814 echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816 fi
5817
5818
5819 enablestring=
5820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5821echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5822 no_cache=0
5823 # Check whether --enable-unicode or --disable-unicode was given.
5824if test "${enable_unicode+set}" = set; then
5825 enableval="$enable_unicode"
5826
5827 if test "$enableval" = yes; then
5828 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5829 else
5830 ac_cv_use_unicode='wxUSE_UNICODE=no'
5831 fi
5832
5833else
5834
5835 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5836 if test "x$LINE" != x ; then
5837 eval "DEFAULT_$LINE"
5838 else
5839 no_cache=1
5840 fi
5841
5842 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5843
5844fi;
5845
5846 eval "$ac_cv_use_unicode"
5847 if test "$no_cache" != 1; then
5848 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5849 fi
5850
5851 if test "$wxUSE_UNICODE" = yes; then
5852 echo "$as_me:$LINENO: result: yes" >&5
5853echo "${ECHO_T}yes" >&6
5854 else
5855 echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6
5857 fi
5858
5859
5860 enablestring=
5861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5862echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5863 no_cache=0
5864 # Check whether --enable-sound or --disable-sound was given.
5865if test "${enable_sound+set}" = set; then
5866 enableval="$enable_sound"
5867
5868 if test "$enableval" = yes; then
5869 ac_cv_use_sound='wxUSE_SOUND=yes'
5870 else
5871 ac_cv_use_sound='wxUSE_SOUND=no'
5872 fi
5873
5874else
5875
5876 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5877 if test "x$LINE" != x ; then
5878 eval "DEFAULT_$LINE"
5879 else
5880 no_cache=1
5881 fi
5882
5883 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5884
5885fi;
5886
5887 eval "$ac_cv_use_sound"
5888 if test "$no_cache" != 1; then
5889 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5890 fi
5891
5892 if test "$wxUSE_SOUND" = yes; then
5893 echo "$as_me:$LINENO: result: yes" >&5
5894echo "${ECHO_T}yes" >&6
5895 else
5896 echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6
5898 fi
5899
5900
3b57de8b
RL
5901 enablestring=
5902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5903echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5904 no_cache=0
5905 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5906if test "${enable_mediactrl+set}" = set; then
5907 enableval="$enable_mediactrl"
5908
5909 if test "$enableval" = yes; then
5910 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5911 else
5912 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5913 fi
5914
5915else
5916
5917 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
5924 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5925
5926fi;
5927
5928 eval "$ac_cv_use_mediactrl"
5929 if test "$no_cache" != 1; then
5930 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5931 fi
5932
5933 if test "$wxUSE_MEDIACTRL" = yes; then
5934 echo "$as_me:$LINENO: result: yes" >&5
5935echo "${ECHO_T}yes" >&6
5936 else
5937 echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6
5939 fi
5940
5941
a848cd7e
SC
5942 enablestring=
5943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5944echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5945 no_cache=0
5946 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5947if test "${enable_wxprintfv+set}" = set; then
5948 enableval="$enable_wxprintfv"
5949
5950 if test "$enableval" = yes; then
5951 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5952 else
5953 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5954 fi
5955
5956else
5957
5958 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5959 if test "x$LINE" != x ; then
5960 eval "DEFAULT_$LINE"
5961 else
5962 no_cache=1
5963 fi
5964
5965 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5966
5967fi;
5968
5969 eval "$ac_cv_use_wxprintfv"
5970 if test "$no_cache" != 1; then
5971 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5972 fi
5973
5974 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5975 echo "$as_me:$LINENO: result: yes" >&5
5976echo "${ECHO_T}yes" >&6
5977 else
5978 echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6
5980 fi
5981
5982
5983 enablestring=
5984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5985echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5986 no_cache=0
5987 # Check whether --enable-zipstream or --disable-zipstream was given.
5988if test "${enable_zipstream+set}" = set; then
5989 enableval="$enable_zipstream"
5990
5991 if test "$enableval" = yes; then
5992 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5993 else
5994 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5995 fi
5996
5997else
5998
5999 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6007
6008fi;
6009
6010 eval "$ac_cv_use_zipstream"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_ZIPSTREAM" = yes; then
6016 echo "$as_me:$LINENO: result: yes" >&5
6017echo "${ECHO_T}yes" >&6
6018 else
6019 echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6
6021 fi
6022
6023
a848cd7e
SC
6024
6025 enablestring=
6026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6027echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6028 no_cache=0
6029 # Check whether --enable-url or --disable-url was given.
6030if test "${enable_url+set}" = set; then
6031 enableval="$enable_url"
6032
6033 if test "$enableval" = yes; then
6034 ac_cv_use_url='wxUSE_URL=yes'
6035 else
6036 ac_cv_use_url='wxUSE_URL=no'
6037 fi
6038
6039else
6040
6041 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6049
6050fi;
6051
6052 eval "$ac_cv_use_url"
6053 if test "$no_cache" != 1; then
6054 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6055 fi
6056
6057 if test "$wxUSE_URL" = yes; then
6058 echo "$as_me:$LINENO: result: yes" >&5
6059echo "${ECHO_T}yes" >&6
6060 else
6061 echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
6063 fi
6064
6065
6066 enablestring=
6067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6068echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6069 no_cache=0
6070 # Check whether --enable-protocol or --disable-protocol was given.
6071if test "${enable_protocol+set}" = set; then
6072 enableval="$enable_protocol"
6073
6074 if test "$enableval" = yes; then
6075 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6076 else
6077 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6078 fi
6079
6080else
6081
6082 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6090
6091fi;
6092
6093 eval "$ac_cv_use_protocol"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_PROTOCOL" = yes; then
6099 echo "$as_me:$LINENO: result: yes" >&5
6100echo "${ECHO_T}yes" >&6
6101 else
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
6104 fi
6105
6106
6107 enablestring=
6108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6109echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6110 no_cache=0
6111 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6112if test "${enable_protocol_http+set}" = set; then
6113 enableval="$enable_protocol_http"
6114
6115 if test "$enableval" = yes; then
6116 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6117 else
6118 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6119 fi
6120
6121else
6122
6123 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6131
6132fi;
6133
6134 eval "$ac_cv_use_protocol_http"
6135 if test "$no_cache" != 1; then
6136 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6137 fi
6138
6139 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6140 echo "$as_me:$LINENO: result: yes" >&5
6141echo "${ECHO_T}yes" >&6
6142 else
6143 echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145 fi
6146
6147
6148 enablestring=
6149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6150echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6151 no_cache=0
6152 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6153if test "${enable_protocol_ftp+set}" = set; then
6154 enableval="$enable_protocol_ftp"
6155
6156 if test "$enableval" = yes; then
6157 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6158 else
6159 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6160 fi
6161
6162else
6163
6164 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6165 if test "x$LINE" != x ; then
6166 eval "DEFAULT_$LINE"
6167 else
6168 no_cache=1
6169 fi
6170
6171 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6172
6173fi;
6174
6175 eval "$ac_cv_use_protocol_ftp"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6181 echo "$as_me:$LINENO: result: yes" >&5
6182echo "${ECHO_T}yes" >&6
6183 else
6184 echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6
6186 fi
6187
6188
6189 enablestring=
6190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6191echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6192 no_cache=0
6193 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6194if test "${enable_protocol_file+set}" = set; then
6195 enableval="$enable_protocol_file"
6196
6197 if test "$enableval" = yes; then
6198 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6199 else
6200 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6201 fi
6202
6203else
6204
6205 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6213
6214fi;
6215
6216 eval "$ac_cv_use_protocol_file"
6217 if test "$no_cache" != 1; then
6218 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6219 fi
6220
6221 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6222 echo "$as_me:$LINENO: result: yes" >&5
6223echo "${ECHO_T}yes" >&6
6224 else
6225 echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6
6227 fi
6228
6229
6230
6231
6232
6233 enablestring=
6234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6235echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6236 no_cache=0
6237 # Check whether --enable-threads or --disable-threads was given.
6238if test "${enable_threads+set}" = set; then
6239 enableval="$enable_threads"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_threads='wxUSE_THREADS=yes'
6243 else
6244 ac_cv_use_threads='wxUSE_THREADS=no'
6245 fi
6246
6247else
6248
6249 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6257
6258fi;
6259
6260 eval "$ac_cv_use_threads"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_THREADS" = yes; then
6266 echo "$as_me:$LINENO: result: yes" >&5
6267echo "${ECHO_T}yes" >&6
6268 else
6269 echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271 fi
6272
6273
6274if test "$wxUSE_GUI" = "yes"; then
6275
6276
6277
6278 enablestring=
6279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6280echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6281 no_cache=0
6282 # Check whether --enable-docview or --disable-docview was given.
6283if test "${enable_docview+set}" = set; then
6284 enableval="$enable_docview"
6285
6286 if test "$enableval" = yes; then
6287 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6288 else
6289 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6290 fi
6291
6292else
6293
6294 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6302
6303fi;
6304
6305 eval "$ac_cv_use_docview"
6306 if test "$no_cache" != 1; then
6307 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6308 fi
6309
6310 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6311 echo "$as_me:$LINENO: result: yes" >&5
6312echo "${ECHO_T}yes" >&6
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
6316 fi
6317
6318
6319 enablestring=
6320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6321echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6322 no_cache=0
6323 # Check whether --enable-help or --disable-help was given.
6324if test "${enable_help+set}" = set; then
6325 enableval="$enable_help"
6326
6327 if test "$enableval" = yes; then
6328 ac_cv_use_help='wxUSE_HELP=yes'
6329 else
6330 ac_cv_use_help='wxUSE_HELP=no'
6331 fi
6332
6333else
6334
6335 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6336 if test "x$LINE" != x ; then
6337 eval "DEFAULT_$LINE"
6338 else
6339 no_cache=1
6340 fi
6341
6342 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6343
6344fi;
6345
6346 eval "$ac_cv_use_help"
6347 if test "$no_cache" != 1; then
6348 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6349 fi
6350
6351 if test "$wxUSE_HELP" = yes; then
6352 echo "$as_me:$LINENO: result: yes" >&5
6353echo "${ECHO_T}yes" >&6
6354 else
6355 echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6
6357 fi
6358
6359
6360 enablestring=
6361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6362echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6363 no_cache=0
6364 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6365if test "${enable_mshtmlhelp+set}" = set; then
6366 enableval="$enable_mshtmlhelp"
6367
6368 if test "$enableval" = yes; then
6369 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6370 else
6371 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6372 fi
6373
6374else
6375
6376 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6377 if test "x$LINE" != x ; then
6378 eval "DEFAULT_$LINE"
6379 else
6380 no_cache=1
6381 fi
6382
6383 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6384
6385fi;
6386
6387 eval "$ac_cv_use_mshtmlhelp"
6388 if test "$no_cache" != 1; then
6389 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6390 fi
6391
6392 if test "$wxUSE_MS_HTML_HELP" = yes; then
6393 echo "$as_me:$LINENO: result: yes" >&5
6394echo "${ECHO_T}yes" >&6
6395 else
6396 echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6
6398 fi
6399
6400
6401 enablestring=
6402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6403echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6404 no_cache=0
6405 # Check whether --enable-html or --disable-html was given.
6406if test "${enable_html+set}" = set; then
6407 enableval="$enable_html"
6408
6409 if test "$enableval" = yes; then
6410 ac_cv_use_html='wxUSE_HTML=yes'
6411 else
6412 ac_cv_use_html='wxUSE_HTML=no'
6413 fi
6414
6415else
6416
6417 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6418 if test "x$LINE" != x ; then
6419 eval "DEFAULT_$LINE"
6420 else
6421 no_cache=1
6422 fi
6423
6424 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6425
6426fi;
6427
6428 eval "$ac_cv_use_html"
6429 if test "$no_cache" != 1; then
6430 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6431 fi
6432
6433 if test "$wxUSE_HTML" = yes; then
6434 echo "$as_me:$LINENO: result: yes" >&5
6435echo "${ECHO_T}yes" >&6
6436 else
6437 echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6
6439 fi
6440
6441
6442 enablestring=
6443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6444echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6445 no_cache=0
6446 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6447if test "${enable_htmlhelp+set}" = set; then
6448 enableval="$enable_htmlhelp"
6449
6450 if test "$enableval" = yes; then
6451 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6452 else
6453 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6454 fi
6455
6456else
6457
6458 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6459 if test "x$LINE" != x ; then
6460 eval "DEFAULT_$LINE"
6461 else
6462 no_cache=1
6463 fi
6464
6465 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6466
6467fi;
6468
6469 eval "$ac_cv_use_htmlhelp"
6470 if test "$no_cache" != 1; then
6471 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6472 fi
6473
6474 if test "$wxUSE_WXHTML_HELP" = yes; then
6475 echo "$as_me:$LINENO: result: yes" >&5
6476echo "${ECHO_T}yes" >&6
6477 else
6478 echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
6480 fi
6481
6482
9a8f0513
VS
6483 enablestring=
6484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6485echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6486 no_cache=0
6487 # Check whether --enable-xrc or --disable-xrc was given.
6488if test "${enable_xrc+set}" = set; then
6489 enableval="$enable_xrc"
6490
6491 if test "$enableval" = yes; then
6492 ac_cv_use_xrc='wxUSE_XRC=yes'
6493 else
6494 ac_cv_use_xrc='wxUSE_XRC=no'
6495 fi
6496
6497else
6498
6499 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6500 if test "x$LINE" != x ; then
6501 eval "DEFAULT_$LINE"
6502 else
6503 no_cache=1
6504 fi
6505
6506 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6507
6508fi;
6509
6510 eval "$ac_cv_use_xrc"
6511 if test "$no_cache" != 1; then
6512 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6513 fi
6514
6515 if test "$wxUSE_XRC" = yes; then
6516 echo "$as_me:$LINENO: result: yes" >&5
6517echo "${ECHO_T}yes" >&6
6518 else
6519 echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6
6521 fi
6522
6523
a848cd7e
SC
6524 enablestring=
6525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6526echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6527 no_cache=0
6528 # Check whether --enable-constraints or --disable-constraints was given.
6529if test "${enable_constraints+set}" = set; then
6530 enableval="$enable_constraints"
6531
6532 if test "$enableval" = yes; then
6533 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6534 else
6535 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6536 fi
6537
6538else
6539
6540 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6541 if test "x$LINE" != x ; then
6542 eval "DEFAULT_$LINE"
6543 else
6544 no_cache=1
6545 fi
6546
6547 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6548
6549fi;
6550
6551 eval "$ac_cv_use_constraints"
6552 if test "$no_cache" != 1; then
6553 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6554 fi
6555
6556 if test "$wxUSE_CONSTRAINTS" = yes; then
6557 echo "$as_me:$LINENO: result: yes" >&5
6558echo "${ECHO_T}yes" >&6
6559 else
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562 fi
6563
6564
6565 enablestring=
6566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6567echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6568 no_cache=0
6569 # Check whether --enable-printarch or --disable-printarch was given.
6570if test "${enable_printarch+set}" = set; then
6571 enableval="$enable_printarch"
6572
6573 if test "$enableval" = yes; then
6574 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6575 else
6576 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6577 fi
6578
6579else
6580
6581 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6582 if test "x$LINE" != x ; then
6583 eval "DEFAULT_$LINE"
6584 else
6585 no_cache=1
6586 fi
6587
6588 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6589
6590fi;
6591
6592 eval "$ac_cv_use_printarch"
6593 if test "$no_cache" != 1; then
6594 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6595 fi
6596
6597 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6598 echo "$as_me:$LINENO: result: yes" >&5
6599echo "${ECHO_T}yes" >&6
6600 else
6601 echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
6603 fi
6604
6605
6606 enablestring=
6607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6608echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6609 no_cache=0
6610 # Check whether --enable-mdi or --disable-mdi was given.
6611if test "${enable_mdi+set}" = set; then
6612 enableval="$enable_mdi"
6613
6614 if test "$enableval" = yes; then
8a7b1113 6615 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6616 else
8a7b1113 6617 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6618 fi
6619
6620else
6621
8a7b1113 6622 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
8a7b1113 6629 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6630
6631fi;
6632
6633 eval "$ac_cv_use_mdi"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6636 fi
6637
8a7b1113
VZ
6638 if test "$wxUSE_MDI" = yes; then
6639 echo "$as_me:$LINENO: result: yes" >&5
6640echo "${ECHO_T}yes" >&6
6641 else
6642 echo "$as_me:$LINENO: result: no" >&5
6643echo "${ECHO_T}no" >&6
6644 fi
6645
6646
6647 enablestring=
6648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6649echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6650 no_cache=0
6651 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6652if test "${enable_mdidoc+set}" = set; then
6653 enableval="$enable_mdidoc"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6657 else
6658 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6659 fi
6660
6661else
6662
6663 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6671
6672fi;
6673
6674 eval "$ac_cv_use_mdidoc"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6677 fi
6678
a848cd7e
SC
6679 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6680 echo "$as_me:$LINENO: result: yes" >&5
6681echo "${ECHO_T}yes" >&6
6682 else
6683 echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6
6685 fi
6686
6687
6688 enablestring=
6689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6690echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6691 no_cache=0
6692 # Check whether --enable-loggui or --disable-loggui was given.
6693if test "${enable_loggui+set}" = set; then
6694 enableval="$enable_loggui"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6698 else
6699 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6712
6713fi;
6714
6715 eval "$ac_cv_use_loggui"
6716 if test "$no_cache" != 1; then
6717 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6718 fi
6719
6720 if test "$wxUSE_LOGGUI" = yes; then
6721 echo "$as_me:$LINENO: result: yes" >&5
6722echo "${ECHO_T}yes" >&6
6723 else
6724 echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6
6726 fi
6727
6728
6729 enablestring=
6730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6731echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6732 no_cache=0
6733 # Check whether --enable-logwin or --disable-logwin was given.
6734if test "${enable_logwin+set}" = set; then
6735 enableval="$enable_logwin"
6736
6737 if test "$enableval" = yes; then
6738 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6739 else
6740 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6741 fi
6742
6743else
6744
6745 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6746 if test "x$LINE" != x ; then
6747 eval "DEFAULT_$LINE"
6748 else
6749 no_cache=1
6750 fi
6751
6752 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6753
6754fi;
6755
6756 eval "$ac_cv_use_logwin"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_LOGWINDOW" = yes; then
6762 echo "$as_me:$LINENO: result: yes" >&5
6763echo "${ECHO_T}yes" >&6
6764 else
6765 echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6
6767 fi
6768
6769
6770 enablestring=
6771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6772echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6773 no_cache=0
6774 # Check whether --enable-logdialog or --disable-logdialog was given.
6775if test "${enable_logdialog+set}" = set; then
6776 enableval="$enable_logdialog"
6777
6778 if test "$enableval" = yes; then
6779 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6780 else
6781 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6782 fi
6783
6784else
6785
6786 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6794
6795fi;
6796
6797 eval "$ac_cv_use_logdialog"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_LOGDIALOG" = yes; then
6803 echo "$as_me:$LINENO: result: yes" >&5
6804echo "${ECHO_T}yes" >&6
6805 else
6806 echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6
6808 fi
6809
6810
646b6ec1
VS
6811 enablestring=
6812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6813echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6814 no_cache=0
6815 # Check whether --enable-webkit or --disable-webkit was given.
6816if test "${enable_webkit+set}" = set; then
6817 enableval="$enable_webkit"
6818
6819 if test "$enableval" = yes; then
6820 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6821 else
6822 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6823 fi
6824
6825else
6826
6827 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6828 if test "x$LINE" != x ; then
6829 eval "DEFAULT_$LINE"
6830 else
6831 no_cache=1
6832 fi
6833
6834 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6835
6836fi;
6837
6838 eval "$ac_cv_use_webkit"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_WEBKIT" = yes; then
6844 echo "$as_me:$LINENO: result: yes" >&5
6845echo "${ECHO_T}yes" >&6
6846 else
6847 echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6
6849 fi
6850
6851
a848cd7e
SC
6852
6853 enablestring=
6854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6855echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6856 no_cache=0
6857 # Check whether --enable-postscript or --disable-postscript was given.
6858if test "${enable_postscript+set}" = set; then
6859 enableval="$enable_postscript"
6860
6861 if test "$enableval" = yes; then
6862 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6863 else
6864 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6865 fi
6866
6867else
6868
6869 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6870 if test "x$LINE" != x ; then
6871 eval "DEFAULT_$LINE"
6872 else
6873 no_cache=1
6874 fi
6875
6876 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6877
6878fi;
6879
6880 eval "$ac_cv_use_postscript"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_POSTSCRIPT" = yes; then
6886 echo "$as_me:$LINENO: result: yes" >&5
6887echo "${ECHO_T}yes" >&6
6888 else
6889 echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6
6891 fi
6892
6893
6894
6895
6896
6897 enablestring=
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6900 no_cache=0
6901 # Check whether --enable-prologio or --disable-prologio was given.
6902if test "${enable_prologio+set}" = set; then
6903 enableval="$enable_prologio"
6904
6905 if test "$enableval" = yes; then
6906 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6907 else
6908 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6909 fi
6910
6911else
6912
6913 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6921
6922fi;
6923
6924 eval "$ac_cv_use_prologio"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_PROLOGIO" = yes; then
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
6932 else
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
6935 fi
6936
6937
6938 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-resources or --disable-resources was given.
6943if test "${enable_resources+set}" = set; then
6944 enableval="$enable_resources"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6948 else
6949 ac_cv_use_resources='wxUSE_RESOURCES=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6962
6963fi;
6964
6965 eval "$ac_cv_use_resources"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_RESOURCES" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
6979
6980
6981 enablestring=
6982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6983echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6984 no_cache=0
6985 # Check whether --enable-clipboard or --disable-clipboard was given.
6986if test "${enable_clipboard+set}" = set; then
6987 enableval="$enable_clipboard"
6988
6989 if test "$enableval" = yes; then
6990 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6991 else
6992 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6993 fi
6994
6995else
6996
6997 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6998 if test "x$LINE" != x ; then
6999 eval "DEFAULT_$LINE"
7000 else
7001 no_cache=1
7002 fi
7003
7004 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7005
7006fi;
7007
7008 eval "$ac_cv_use_clipboard"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_CLIPBOARD" = yes; then
7014 echo "$as_me:$LINENO: result: yes" >&5
7015echo "${ECHO_T}yes" >&6
7016 else
7017 echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6
7019 fi
7020
7021
7022 enablestring=
7023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7024echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7025 no_cache=0
7026 # Check whether --enable-dnd or --disable-dnd was given.
7027if test "${enable_dnd+set}" = set; then
7028 enableval="$enable_dnd"
7029
7030 if test "$enableval" = yes; then
7031 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7032 else
7033 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7034 fi
7035
7036else
7037
7038 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7039 if test "x$LINE" != x ; then
7040 eval "DEFAULT_$LINE"
7041 else
7042 no_cache=1
7043 fi
7044
7045 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7046
7047fi;
7048
7049 eval "$ac_cv_use_dnd"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7055 echo "$as_me:$LINENO: result: yes" >&5
7056echo "${ECHO_T}yes" >&6
7057 else
7058 echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6
7060 fi
7061
7062
7063 enablestring=
7064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7065echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7066 no_cache=0
7067 # Check whether --enable-metafile or --disable-metafile was given.
7068if test "${enable_metafile+set}" = set; then
7069 enableval="$enable_metafile"
7070
7071 if test "$enableval" = yes; then
7072 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7073 else
7074 ac_cv_use_metafile='wxUSE_METAFILE=no'
7075 fi
7076
7077else
7078
7079 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7087
7088fi;
7089
7090 eval "$ac_cv_use_metafile"
7091 if test "$no_cache" != 1; then
7092 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7093 fi
7094
7095 if test "$wxUSE_METAFILE" = yes; then
7096 echo "$as_me:$LINENO: result: yes" >&5
7097echo "${ECHO_T}yes" >&6
7098 else
7099 echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6
7101 fi
7102
7103
7104
7105
7106
7107 enablestring=
7108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7109echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7110 no_cache=0
7111 # Check whether --enable-controls or --disable-controls was given.
7112if test "${enable_controls+set}" = set; then
7113 enableval="$enable_controls"
7114
7115 if test "$enableval" = yes; then
7116 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7117 else
7118 ac_cv_use_controls='wxUSE_CONTROLS=no'
7119 fi
7120
7121else
7122
7123 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7131
7132fi;
7133
7134 eval "$ac_cv_use_controls"
7135 if test "$no_cache" != 1; then
7136 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7137 fi
7138
7139 if test "$wxUSE_CONTROLS" = yes; then
7140 echo "$as_me:$LINENO: result: yes" >&5
7141echo "${ECHO_T}yes" >&6
7142 else
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
7145 fi
7146
7147
7148if test "$wxUSE_CONTROLS" = "yes"; then
7149 DEFAULT_wxUSE_ACCEL=yes
7150 DEFAULT_wxUSE_BMPBUTTON=yes
7151 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7152 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7153 DEFAULT_wxUSE_CARET=yes
7154 DEFAULT_wxUSE_COMBOBOX=yes
7155 DEFAULT_wxUSE_CHECKBOX=yes
7156 DEFAULT_wxUSE_CHECKLISTBOX=yes
7157 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7158 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7159 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7160 DEFAULT_wxUSE_GAUGE=yes
7161 DEFAULT_wxUSE_GRID=yes
7162 DEFAULT_wxUSE_IMAGLIST=yes
7163 DEFAULT_wxUSE_LISTBOOK=yes
7164 DEFAULT_wxUSE_LISTBOX=yes
7165 DEFAULT_wxUSE_LISTCTRL=yes
7166 DEFAULT_wxUSE_NOTEBOOK=yes
7167 DEFAULT_wxUSE_RADIOBOX=yes
7168 DEFAULT_wxUSE_RADIOBTN=yes
7169 DEFAULT_wxUSE_SASH=yes
7170 DEFAULT_wxUSE_SCROLLBAR=yes
7171 DEFAULT_wxUSE_SLIDER=yes
7172 DEFAULT_wxUSE_SPINBTN=yes
7173 DEFAULT_wxUSE_SPINCTRL=yes
7174 DEFAULT_wxUSE_SPLITTER=yes
7175 DEFAULT_wxUSE_STATBMP=yes
7176 DEFAULT_wxUSE_STATBOX=yes
7177 DEFAULT_wxUSE_STATLINE=yes
7178 DEFAULT_wxUSE_STATUSBAR=yes
7179 DEFAULT_wxUSE_TAB_DIALOG=yes
7180 DEFAULT_wxUSE_TOGGLEBTN=yes
7181 DEFAULT_wxUSE_TOOLBAR=yes
7182 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7183 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7184 DEFAULT_wxUSE_TOOLTIPS=yes
7185 DEFAULT_wxUSE_TREECTRL=yes
7186 DEFAULT_wxUSE_POPUPWIN=yes
7187 DEFAULT_wxUSE_TIPWINDOW=yes
7188elif test "$wxUSE_CONTROLS" = "no"; then
7189 DEFAULT_wxUSE_ACCEL=no
7190 DEFAULT_wxUSE_BMPBUTTON=no
7191 DEFAULT_wxUSE_BUTTON=no
7192 DEFAULT_wxUSE_CALCTRL=no
7193 DEFAULT_wxUSE_CARET=no
7194 DEFAULT_wxUSE_COMBOBOX=no
7195 DEFAULT_wxUSE_CHECKBOX=no
7196 DEFAULT_wxUSE_CHECKLISTBOX=no
7197 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7198 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7199 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7200 DEFAULT_wxUSE_GAUGE=no
7201 DEFAULT_wxUSE_GRID=no
7202 DEFAULT_wxUSE_IMAGLIST=no
7203 DEFAULT_wxUSE_LISTBOOK=no
7204 DEFAULT_wxUSE_LISTBOX=no
7205 DEFAULT_wxUSE_LISTCTRL=no
7206 DEFAULT_wxUSE_NOTEBOOK=no
7207 DEFAULT_wxUSE_RADIOBOX=no
7208 DEFAULT_wxUSE_RADIOBTN=no
7209 DEFAULT_wxUSE_SASH=no
7210 DEFAULT_wxUSE_SCROLLBAR=no
7211 DEFAULT_wxUSE_SLIDER=no
7212 DEFAULT_wxUSE_SPINBTN=no
7213 DEFAULT_wxUSE_SPINCTRL=no
7214 DEFAULT_wxUSE_SPLITTER=no
7215 DEFAULT_wxUSE_STATBMP=no
7216 DEFAULT_wxUSE_STATBOX=no
7217 DEFAULT_wxUSE_STATLINE=no
7218 DEFAULT_wxUSE_STATUSBAR=no
7219 DEFAULT_wxUSE_TAB_DIALOG=no
7220 DEFAULT_wxUSE_TOGGLEBTN=no
7221 DEFAULT_wxUSE_TOOLBAR=no
7222 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7223 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7224 DEFAULT_wxUSE_TOOLTIPS=no
7225 DEFAULT_wxUSE_TREECTRL=no
7226 DEFAULT_wxUSE_POPUPWIN=no
7227 DEFAULT_wxUSE_TIPWINDOW=no
7228fi
7229
a848cd7e
SC
7230
7231 enablestring=
7232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7233echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7234 no_cache=0
7235 # Check whether --enable-accel or --disable-accel was given.
7236if test "${enable_accel+set}" = set; then
7237 enableval="$enable_accel"
7238
7239 if test "$enableval" = yes; then
7240 ac_cv_use_accel='wxUSE_ACCEL=yes'
7241 else
7242 ac_cv_use_accel='wxUSE_ACCEL=no'
7243 fi
7244
7245else
7246
7247 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7248 if test "x$LINE" != x ; then
7249 eval "DEFAULT_$LINE"
7250 else
7251 no_cache=1
7252 fi
7253
7254 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7255
7256fi;
7257
7258 eval "$ac_cv_use_accel"
7259 if test "$no_cache" != 1; then
7260 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7261 fi
7262
7263 if test "$wxUSE_ACCEL" = yes; then
7264 echo "$as_me:$LINENO: result: yes" >&5
7265echo "${ECHO_T}yes" >&6
7266 else
7267 echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6
7269 fi
7270
7271
7272 enablestring=
7273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7274echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7275 no_cache=0
7276 # Check whether --enable-button or --disable-button was given.
7277if test "${enable_button+set}" = set; then
7278 enableval="$enable_button"
7279
7280 if test "$enableval" = yes; then
7281 ac_cv_use_button='wxUSE_BUTTON=yes'
7282 else
7283 ac_cv_use_button='wxUSE_BUTTON=no'
7284 fi
7285
7286else
7287
7288 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7289 if test "x$LINE" != x ; then
7290 eval "DEFAULT_$LINE"
7291 else
7292 no_cache=1
7293 fi
7294
7295 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7296
7297fi;
7298
7299 eval "$ac_cv_use_button"
7300 if test "$no_cache" != 1; then
7301 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7302 fi
7303
7304 if test "$wxUSE_BUTTON" = yes; then
7305 echo "$as_me:$LINENO: result: yes" >&5
7306echo "${ECHO_T}yes" >&6
7307 else
7308 echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6
7310 fi
7311
7312
7313 enablestring=
7314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7315echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7316 no_cache=0
7317 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7318if test "${enable_bmpbutton+set}" = set; then
7319 enableval="$enable_bmpbutton"
7320
7321 if test "$enableval" = yes; then
7322 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7323 else
7324 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7325 fi
7326
7327else
7328
7329 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7337
7338fi;
7339
7340 eval "$ac_cv_use_bmpbutton"
7341 if test "$no_cache" != 1; then
7342 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7343 fi
7344
7345 if test "$wxUSE_BMPBUTTON" = yes; then
7346 echo "$as_me:$LINENO: result: yes" >&5
7347echo "${ECHO_T}yes" >&6
7348 else
7349 echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6
7351 fi
7352
7353
7354 enablestring=
7355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7356echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7357 no_cache=0
7358 # Check whether --enable-calendar or --disable-calendar was given.
7359if test "${enable_calendar+set}" = set; then
7360 enableval="$enable_calendar"
7361
7362 if test "$enableval" = yes; then
7363 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7364 else
7365 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7366 fi
7367
7368else
7369
7370 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7371 if test "x$LINE" != x ; then
7372 eval "DEFAULT_$LINE"
7373 else
7374 no_cache=1
7375 fi
7376
7377 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7378
7379fi;
7380
7381 eval "$ac_cv_use_calendar"
7382 if test "$no_cache" != 1; then
7383 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7384 fi
7385
7386 if test "$wxUSE_CALCTRL" = yes; then
7387 echo "$as_me:$LINENO: result: yes" >&5
7388echo "${ECHO_T}yes" >&6
7389 else
7390 echo "$as_me:$LINENO: result: no" >&5
7391echo "${ECHO_T}no" >&6
7392 fi
7393
7394
7395 enablestring=
7396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7397echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7398 no_cache=0
7399 # Check whether --enable-caret or --disable-caret was given.
7400if test "${enable_caret+set}" = set; then
7401 enableval="$enable_caret"
7402
7403 if test "$enableval" = yes; then
7404 ac_cv_use_caret='wxUSE_CARET=yes'
7405 else
7406 ac_cv_use_caret='wxUSE_CARET=no'
7407 fi
7408
7409else
7410
7411 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7412 if test "x$LINE" != x ; then
7413 eval "DEFAULT_$LINE"
7414 else
7415 no_cache=1
7416 fi
7417
7418 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7419
7420fi;
7421
7422 eval "$ac_cv_use_caret"
7423 if test "$no_cache" != 1; then
7424 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7425 fi
7426
7427 if test "$wxUSE_CARET" = yes; then
7428 echo "$as_me:$LINENO: result: yes" >&5
7429echo "${ECHO_T}yes" >&6
7430 else
7431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
7433 fi
7434
7435
7436 enablestring=
7437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7438echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7439 no_cache=0
7440 # Check whether --enable-checkbox or --disable-checkbox was given.
7441if test "${enable_checkbox+set}" = set; then
7442 enableval="$enable_checkbox"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7446 else
7447 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7448 fi
7449
7450else
7451
7452 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7460
7461fi;
7462
7463 eval "$ac_cv_use_checkbox"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_CHECKBOX" = yes; then
7469 echo "$as_me:$LINENO: result: yes" >&5
7470echo "${ECHO_T}yes" >&6
7471 else
7472 echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6
7474 fi
7475
7476
7477 enablestring=
7478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7479echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7480 no_cache=0
7481 # Check whether --enable-checklst or --disable-checklst was given.
7482if test "${enable_checklst+set}" = set; then
7483 enableval="$enable_checklst"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7487 else
7488 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7489 fi
7490
7491else
7492
7493 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7501
7502fi;
7503
7504 eval "$ac_cv_use_checklst"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_CHECKLST" = yes; then
7510 echo "$as_me:$LINENO: result: yes" >&5
7511echo "${ECHO_T}yes" >&6
7512 else
7513 echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515 fi
7516
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-choice or --disable-choice was given.
7523if test "${enable_choice+set}" = set; then
7524 enableval="$enable_choice"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_choice='wxUSE_CHOICE=yes'
7528 else
7529 ac_cv_use_choice='wxUSE_CHOICE=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7542
7543fi;
7544
7545 eval "$ac_cv_use_choice"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_CHOICE" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
92bbdbcd
WS
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-choicebook or --disable-choicebook was given.
7564if test "${enable_choicebook+set}" = set; then
7565 enableval="$enable_choicebook"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7569 else
7570 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7583
7584fi;
7585
7586 eval "$ac_cv_use_choicebook"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_CHOICEBOOK" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
a848cd7e
SC
7600 enablestring=
7601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7602echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7603 no_cache=0
7604 # Check whether --enable-combobox or --disable-combobox was given.
7605if test "${enable_combobox+set}" = set; then
7606 enableval="$enable_combobox"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7610 else
7611 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7624
7625fi;
7626
7627 eval "$ac_cv_use_combobox"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_COMBOBOX" = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634echo "${ECHO_T}yes" >&6
7635 else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 fi
7639
7640
da98e9be
VZ
7641 enablestring=
7642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7643echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7644 no_cache=0
7645 # Check whether --enable-datepick or --disable-datepick was given.
7646if test "${enable_datepick+set}" = set; then
7647 enableval="$enable_datepick"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7651 else
7652 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7653 fi
7654
7655else
7656
7657 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7665
7666fi;
7667
7668 eval "$ac_cv_use_datepick"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_DATEPICKCTRL" = yes; then
7674 echo "$as_me:$LINENO: result: yes" >&5
7675echo "${ECHO_T}yes" >&6
7676 else
7677 echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679 fi
7680
7681
a848cd7e
SC
7682 enablestring=
7683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7684echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7685 no_cache=0
7686 # Check whether --enable-display or --disable-display was given.
7687if test "${enable_display+set}" = set; then
7688 enableval="$enable_display"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_display='wxUSE_DISPLAY=yes'
7692 else
7693 ac_cv_use_display='wxUSE_DISPLAY=no'
7694 fi
7695
7696else
7697
7698 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7706
7707fi;
7708
7709 eval "$ac_cv_use_display"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_DISPLAY" = yes; then
7715 echo "$as_me:$LINENO: result: yes" >&5
7716echo "${ECHO_T}yes" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720 fi
7721
7722
7723 enablestring=
7724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7725echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7726 no_cache=0
7727 # Check whether --enable-gauge or --disable-gauge was given.
7728if test "${enable_gauge+set}" = set; then
7729 enableval="$enable_gauge"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7733 else
7734 ac_cv_use_gauge='wxUSE_GAUGE=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7747
7748fi;
7749
7750 eval "$ac_cv_use_gauge"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_GAUGE" = yes; then
7756 echo "$as_me:$LINENO: result: yes" >&5
7757echo "${ECHO_T}yes" >&6
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761 fi
7762
7763
7764 enablestring=
7765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7766echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7767 no_cache=0
7768 # Check whether --enable-grid or --disable-grid was given.
7769if test "${enable_grid+set}" = set; then
7770 enableval="$enable_grid"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_grid='wxUSE_GRID=yes'
7774 else
7775 ac_cv_use_grid='wxUSE_GRID=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7788
7789fi;
7790
7791 eval "$ac_cv_use_grid"
7792 if test "$no_cache" != 1; then
7793 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7794 fi
7795
7796 if test "$wxUSE_GRID" = yes; then
7797 echo "$as_me:$LINENO: result: yes" >&5
7798echo "${ECHO_T}yes" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6
7802 fi
7803
7804
7805 enablestring=
7806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7807echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7808 no_cache=0
7809 # Check whether --enable-imaglist or --disable-imaglist was given.
7810if test "${enable_imaglist+set}" = set; then
7811 enableval="$enable_imaglist"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7815 else
7816 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7817 fi
7818
7819else
7820
7821 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7829
7830fi;
7831
7832 eval "$ac_cv_use_imaglist"
7833 if test "$no_cache" != 1; then
7834 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7835 fi
7836
7837 if test "$wxUSE_IMAGLIST" = yes; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839echo "${ECHO_T}yes" >&6
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
7843 fi
7844
7845
7846 enablestring=
7847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7848echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7849 no_cache=0
7850 # Check whether --enable-listbook or --disable-listbook was given.
7851if test "${enable_listbook+set}" = set; then
7852 enableval="$enable_listbook"
7853
7854 if test "$enableval" = yes; then
7855 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7856 else
7857 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7858 fi
7859
7860else
7861
7862 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7863 if test "x$LINE" != x ; then
7864 eval "DEFAULT_$LINE"
7865 else
7866 no_cache=1
7867 fi
7868
7869 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7870
7871fi;
7872
7873 eval "$ac_cv_use_listbook"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_LISTBOOK" = yes; then
7879 echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6
7881 else
7882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
7884 fi
7885
7886
7887 enablestring=
7888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7889echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7890 no_cache=0
7891 # Check whether --enable-listbox or --disable-listbox was given.
7892if test "${enable_listbox+set}" = set; then
7893 enableval="$enable_listbox"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7897 else
7898 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7899 fi
7900
7901else
7902
7903 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7911
7912fi;
7913
7914 eval "$ac_cv_use_listbox"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_LISTBOX" = yes; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921echo "${ECHO_T}yes" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925 fi
7926
7927
7928 enablestring=
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7930echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7931 no_cache=0
7932 # Check whether --enable-listctrl or --disable-listctrl was given.
7933if test "${enable_listctrl+set}" = set; then
7934 enableval="$enable_listctrl"
7935
7936 if test "$enableval" = yes; then
7937 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7938 else
7939 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7940 fi
7941
7942else
7943
7944 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7952
7953fi;
7954
7955 eval "$ac_cv_use_listctrl"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_LISTCTRL" = yes; then
7961 echo "$as_me:$LINENO: result: yes" >&5
7962echo "${ECHO_T}yes" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
7966 fi
7967
7968
7969 enablestring=
7970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7971echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7972 no_cache=0
7973 # Check whether --enable-notebook or --disable-notebook was given.
7974if test "${enable_notebook+set}" = set; then
7975 enableval="$enable_notebook"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7979 else
7980 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7981 fi
7982
7983else
7984
7985 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7993
7994fi;
7995
7996 eval "$ac_cv_use_notebook"
7997 if test "$no_cache" != 1; then
7998 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7999 fi
8000
8001 if test "$wxUSE_NOTEBOOK" = yes; then
8002 echo "$as_me:$LINENO: result: yes" >&5
8003echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
8007 fi
8008
8009
8010 enablestring=
8011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8012echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8013 no_cache=0
8014 # Check whether --enable-radiobox or --disable-radiobox was given.
8015if test "${enable_radiobox+set}" = set; then
8016 enableval="$enable_radiobox"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8020 else
8021 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8022 fi
8023
8024else
8025
8026 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8034
8035fi;
8036
8037 eval "$ac_cv_use_radiobox"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_RADIOBOX" = yes; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044echo "${ECHO_T}yes" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047echo "${ECHO_T}no" >&6
8048 fi
8049
8050
8051 enablestring=
8052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8053echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8054 no_cache=0
8055 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8056if test "${enable_radiobtn+set}" = set; then
8057 enableval="$enable_radiobtn"
8058
8059 if test "$enableval" = yes; then
8060 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8061 else
8062 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8063 fi
8064
8065else
8066
8067 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8068 if test "x$LINE" != x ; then
8069 eval "DEFAULT_$LINE"
8070 else
8071 no_cache=1
8072 fi
8073
8074 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8075
8076fi;
8077
8078 eval "$ac_cv_use_radiobtn"
8079 if test "$no_cache" != 1; then
8080 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8081 fi
8082
8083 if test "$wxUSE_RADIOBTN" = yes; then
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
8086 else
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089 fi
8090
8091
8092 enablestring=
8093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8094echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8095 no_cache=0
8096 # Check whether --enable-sash or --disable-sash was given.
8097if test "${enable_sash+set}" = set; then
8098 enableval="$enable_sash"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_sash='wxUSE_SASH=yes'
8102 else
8103 ac_cv_use_sash='wxUSE_SASH=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8116
8117fi;
8118
8119 eval "$ac_cv_use_sash"
8120 if test "$no_cache" != 1; then
8121 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8122 fi
8123
8124 if test "$wxUSE_SASH" = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126echo "${ECHO_T}yes" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130 fi
8131
8132
8133 enablestring=
8134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8135echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8136 no_cache=0
8137 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8138if test "${enable_scrollbar+set}" = set; then
8139 enableval="$enable_scrollbar"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8143 else
8144 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8145 fi
8146
8147else
8148
8149 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8157
8158fi;
8159
8160 eval "$ac_cv_use_scrollbar"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_SCROLLBAR" = yes; then
8166 echo "$as_me:$LINENO: result: yes" >&5
8167echo "${ECHO_T}yes" >&6
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
8171 fi
8172
8173
8174 enablestring=
8175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8176echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8177 no_cache=0
8178 # Check whether --enable-slider or --disable-slider was given.
8179if test "${enable_slider+set}" = set; then
8180 enableval="$enable_slider"
8181
8182 if test "$enableval" = yes; then
8183 ac_cv_use_slider='wxUSE_SLIDER=yes'
8184 else
8185 ac_cv_use_slider='wxUSE_SLIDER=no'
8186 fi
8187
8188else
8189
8190 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8191 if test "x$LINE" != x ; then
8192 eval "DEFAULT_$LINE"
8193 else
8194 no_cache=1
8195 fi
8196
8197 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8198
8199fi;
8200
8201 eval "$ac_cv_use_slider"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_SLIDER" = yes; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208echo "${ECHO_T}yes" >&6
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6
8212 fi
8213
8214
8215 enablestring=
8216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8217echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8218 no_cache=0
8219 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8220if test "${enable_spinbtn+set}" = set; then
8221 enableval="$enable_spinbtn"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8225 else
8226 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8227 fi
8228
8229else
8230
8231 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8239
8240fi;
8241
8242 eval "$ac_cv_use_spinbtn"
8243 if test "$no_cache" != 1; then
8244 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8245 fi
8246
8247 if test "$wxUSE_SPINBTN" = yes; then
8248 echo "$as_me:$LINENO: result: yes" >&5
8249echo "${ECHO_T}yes" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253 fi
8254
8255
8256 enablestring=
8257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8258echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8259 no_cache=0
8260 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8261if test "${enable_spinctrl+set}" = set; then
8262 enableval="$enable_spinctrl"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8266 else
8267 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8280
8281fi;
8282
8283 eval "$ac_cv_use_spinctrl"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_SPINCTRL" = yes; then
8289 echo "$as_me:$LINENO: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294 fi
8295
8296
8297 enablestring=
8298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8299echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8300 no_cache=0
8301 # Check whether --enable-splitter or --disable-splitter was given.
8302if test "${enable_splitter+set}" = set; then
8303 enableval="$enable_splitter"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8307 else
8308 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8309 fi
8310
8311else
8312
8313 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8321
8322fi;
8323
8324 eval "$ac_cv_use_splitter"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_SPLITTER" = yes; then
8330 echo "$as_me:$LINENO: result: yes" >&5
8331echo "${ECHO_T}yes" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335 fi
8336
8337
8338 enablestring=
8339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8340echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8341 no_cache=0
8342 # Check whether --enable-statbmp or --disable-statbmp was given.
8343if test "${enable_statbmp+set}" = set; then
8344 enableval="$enable_statbmp"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8348 else
8349 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8350 fi
8351
8352else
8353
8354 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8362
8363fi;
8364
8365 eval "$ac_cv_use_statbmp"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_STATBMP" = yes; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376 fi
8377
8378
8379 enablestring=
8380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8381echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8382 no_cache=0
8383 # Check whether --enable-statbox or --disable-statbox was given.
8384if test "${enable_statbox+set}" = set; then
8385 enableval="$enable_statbox"
8386
8387 if test "$enableval" = yes; then
8388 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8389 else
8390 ac_cv_use_statbox='wxUSE_STATBOX=no'
8391 fi
8392
8393else
8394
8395 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8396 if test "x$LINE" != x ; then
8397 eval "DEFAULT_$LINE"
8398 else
8399 no_cache=1
8400 fi
8401
8402 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8403
8404fi;
8405
8406 eval "$ac_cv_use_statbox"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_STATBOX" = yes; then
8412 echo "$as_me:$LINENO: result: yes" >&5
8413echo "${ECHO_T}yes" >&6
8414 else
8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420 enablestring=
8421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8422echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8423 no_cache=0
8424 # Check whether --enable-statline or --disable-statline was given.
8425if test "${enable_statline+set}" = set; then
8426 enableval="$enable_statline"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_statline='wxUSE_STATLINE=yes'
8430 else
8431 ac_cv_use_statline='wxUSE_STATLINE=no'
8432 fi
8433
8434else
8435
8436 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8444
8445fi;
8446
8447 eval "$ac_cv_use_statline"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_STATLINE" = yes; then
8453 echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458 fi
8459
8460
8461 enablestring=
8462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8463echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8464 no_cache=0
8465 # Check whether --enable-stattext or --disable-stattext was given.
8466if test "${enable_stattext+set}" = set; then
8467 enableval="$enable_stattext"
8468
8469 if test "$enableval" = yes; then
8470 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8471 else
8472 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8473 fi
8474
8475else
8476
8477 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8478 if test "x$LINE" != x ; then
8479 eval "DEFAULT_$LINE"
8480 else
8481 no_cache=1
8482 fi
8483
8484 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8485
8486fi;
8487
8488 eval "$ac_cv_use_stattext"
8489 if test "$no_cache" != 1; then
8490 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8491 fi
8492
8493 if test "$wxUSE_STATTEXT" = yes; then
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
8496 else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 enablestring=
8503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8504echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8505 no_cache=0
8506 # Check whether --enable-statusbar or --disable-statusbar was given.
8507if test "${enable_statusbar+set}" = set; then
8508 enableval="$enable_statusbar"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8512 else
8513 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8514 fi
8515
8516else
8517
8518 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8526
8527fi;
8528
8529 eval "$ac_cv_use_statusbar"
8530 if test "$no_cache" != 1; then
8531 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8532 fi
8533
8534 if test "$wxUSE_STATUSBAR" = yes; then
8535 echo "$as_me:$LINENO: result: yes" >&5
8536echo "${ECHO_T}yes" >&6
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540 fi
8541
8542
8543 enablestring=
8544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8545echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8546 no_cache=0
8547 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8548if test "${enable_tabdialog+set}" = set; then
8549 enableval="$enable_tabdialog"
8550
8551 if test "$enableval" = yes; then
8552 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8553 else
8554 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8555 fi
8556
8557else
8558
8559 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8560 if test "x$LINE" != x ; then
8561 eval "DEFAULT_$LINE"
8562 else
8563 no_cache=1
8564 fi
8565
8566 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8567
8568fi;
8569
8570 eval "$ac_cv_use_tabdialog"
8571 if test "$no_cache" != 1; then
8572 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8573 fi
8574
8575 if test "$wxUSE_TABDIALOG" = yes; then
8576 echo "$as_me:$LINENO: result: yes" >&5
8577echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6
8581 fi
8582
8583
8584 enablestring=
8585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8586echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8587 no_cache=0
8588 # Check whether --enable-textctrl or --disable-textctrl was given.
8589if test "${enable_textctrl+set}" = set; then
8590 enableval="$enable_textctrl"
8591
8592 if test "$enableval" = yes; then
8593 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8594 else
8595 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8596 fi
8597
8598else
8599
8600 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8601 if test "x$LINE" != x ; then
8602 eval "DEFAULT_$LINE"
8603 else
8604 no_cache=1
8605 fi
8606
8607 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8608
8609fi;
8610
8611 eval "$ac_cv_use_textctrl"
8612 if test "$no_cache" != 1; then
8613 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8614 fi
8615
8616 if test "$wxUSE_TEXTCTRL" = yes; then
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
8619 else
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
8622 fi
8623
8624
8625 enablestring=
8626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8627echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8628 no_cache=0
8629 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8630if test "${enable_togglebtn+set}" = set; then
8631 enableval="$enable_togglebtn"
8632
8633 if test "$enableval" = yes; then
8634 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8635 else
8636 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8637 fi
8638
8639else
8640
8641 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8649
8650fi;
8651
8652 eval "$ac_cv_use_togglebtn"
8653 if test "$no_cache" != 1; then
8654 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8655 fi
8656
8657 if test "$wxUSE_TOGGLEBTN" = yes; then
8658 echo "$as_me:$LINENO: result: yes" >&5
8659echo "${ECHO_T}yes" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
8663 fi
8664
8665
8666 enablestring=
8667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8668echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8669 no_cache=0
8670 # Check whether --enable-toolbar or --disable-toolbar was given.
8671if test "${enable_toolbar+set}" = set; then
8672 enableval="$enable_toolbar"
8673
8674 if test "$enableval" = yes; then
8675 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8676 else
8677 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8678 fi
8679
8680else
8681
8682 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8683 if test "x$LINE" != x ; then
8684 eval "DEFAULT_$LINE"
8685 else
8686 no_cache=1
8687 fi
8688
8689 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8690
8691fi;
8692
8693 eval "$ac_cv_use_toolbar"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_TOOLBAR" = yes; then
8699 echo "$as_me:$LINENO: result: yes" >&5
8700echo "${ECHO_T}yes" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
8704 fi
8705
8706
8707 enablestring=
8708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8709echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8710 no_cache=0
8711 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8712if test "${enable_tbarnative+set}" = set; then
8713 enableval="$enable_tbarnative"
8714
8715 if test "$enableval" = yes; then
8716 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8717 else
8718 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8719 fi
8720
8721else
8722
8723 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8724 if test "x$LINE" != x ; then
8725 eval "DEFAULT_$LINE"
8726 else
8727 no_cache=1
8728 fi
8729
8730 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8731
8732fi;
8733
8734 eval "$ac_cv_use_tbarnative"
8735 if test "$no_cache" != 1; then
8736 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8737 fi
8738
8739 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8740 echo "$as_me:$LINENO: result: yes" >&5
8741echo "${ECHO_T}yes" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
8745 fi
8746
8747
8748 enablestring=
8749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8750echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8751 no_cache=0
8752 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8753if test "${enable_tbarsmpl+set}" = set; then
8754 enableval="$enable_tbarsmpl"
8755
8756 if test "$enableval" = yes; then
8757 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8758 else
8759 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8760 fi
8761
8762else
8763
8764 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8765 if test "x$LINE" != x ; then
8766 eval "DEFAULT_$LINE"
8767 else
8768 no_cache=1
8769 fi
8770
8771 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8772
8773fi;
8774
8775 eval "$ac_cv_use_tbarsmpl"
8776 if test "$no_cache" != 1; then
8777 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8778 fi
8779
8780 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8781 echo "$as_me:$LINENO: result: yes" >&5
8782echo "${ECHO_T}yes" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
8786 fi
8787
8788
8789 enablestring=
8790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8791echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8792 no_cache=0
8793 # Check whether --enable-treectrl or --disable-treectrl was given.
8794if test "${enable_treectrl+set}" = set; then
8795 enableval="$enable_treectrl"
8796
8797 if test "$enableval" = yes; then
8798 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8799 else
8800 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8801 fi
8802
8803else
8804
8805 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8806 if test "x$LINE" != x ; then
8807 eval "DEFAULT_$LINE"
8808 else
8809 no_cache=1
8810 fi
8811
8812 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8813
8814fi;
8815
8816 eval "$ac_cv_use_treectrl"
8817 if test "$no_cache" != 1; then
8818 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8819 fi
8820
8821 if test "$wxUSE_TREECTRL" = yes; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823echo "${ECHO_T}yes" >&6
8824 else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827 fi
8828
8829
8830 enablestring=
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8832echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8833 no_cache=0
8834 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8835if test "${enable_tipwindow+set}" = set; then
8836 enableval="$enable_tipwindow"
8837
8838 if test "$enableval" = yes; then
8839 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8840 else
8841 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8842 fi
8843
8844else
8845
8846 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8854
8855fi;
8856
8857 eval "$ac_cv_use_tipwindow"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_TIPWINDOW" = yes; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868 fi
8869
8870
8871 enablestring=
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8873echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8874 no_cache=0
8875 # Check whether --enable-popupwin or --disable-popupwin was given.
8876if test "${enable_popupwin+set}" = set; then
8877 enableval="$enable_popupwin"
8878
8879 if test "$enableval" = yes; then
8880 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8881 else
8882 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8883 fi
8884
8885else
8886
8887 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8895
8896fi;
8897
8898 eval "$ac_cv_use_popupwin"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_POPUPWIN" = yes; then
8904 echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
8909 fi
8910
8911
8912
8913
8914 enablestring=
8915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8916echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8917 no_cache=0
8918 # Check whether --enable-commondlg or --disable-commondlg was given.
8919if test "${enable_commondlg+set}" = set; then
8920 enableval="$enable_commondlg"
8921
8922 if test "$enableval" = yes; then
8923 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8924 else
8925 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8926 fi
8927
8928else
8929
8930 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8931 if test "x$LINE" != x ; then
8932 eval "DEFAULT_$LINE"
8933 else
8934 no_cache=1
8935 fi
8936
8937 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8938
8939fi;
8940
8941 eval "$ac_cv_use_commondlg"
8942 if test "$no_cache" != 1; then
8943 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8944 fi
8945
8946 if test "$wxUSE_COMMONDLGS" = yes; then
8947 echo "$as_me:$LINENO: result: yes" >&5
8948echo "${ECHO_T}yes" >&6
8949 else
8950 echo "$as_me:$LINENO: result: no" >&5
8951echo "${ECHO_T}no" >&6
8952 fi
8953
8954
8955 enablestring=
8956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8957echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8958 no_cache=0
8959 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8960if test "${enable_choicedlg+set}" = set; then
8961 enableval="$enable_choicedlg"
8962
8963 if test "$enableval" = yes; then
8964 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8965 else
8966 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8967 fi
8968
8969else
8970
8971 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8972 if test "x$LINE" != x ; then
8973 eval "DEFAULT_$LINE"
8974 else
8975 no_cache=1
8976 fi
8977
8978 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8979
8980fi;
8981
8982 eval "$ac_cv_use_choicedlg"
8983 if test "$no_cache" != 1; then
8984 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8985 fi
8986
8987 if test "$wxUSE_CHOICEDLG" = yes; then
8988 echo "$as_me:$LINENO: result: yes" >&5
8989echo "${ECHO_T}yes" >&6
8990 else
8991 echo "$as_me:$LINENO: result: no" >&5
8992echo "${ECHO_T}no" >&6
8993 fi
8994
8995
8996 enablestring=
8997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8998echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8999 no_cache=0
9000 # Check whether --enable-coldlg or --disable-coldlg was given.
9001if test "${enable_coldlg+set}" = set; then
9002 enableval="$enable_coldlg"
9003
9004 if test "$enableval" = yes; then
9005 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9006 else
9007 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9008 fi
9009
9010else
9011
9012 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9013 if test "x$LINE" != x ; then
9014 eval "DEFAULT_$LINE"
9015 else
9016 no_cache=1
9017 fi
9018
9019 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9020
9021fi;
9022
9023 eval "$ac_cv_use_coldlg"
9024 if test "$no_cache" != 1; then
9025 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9026 fi
9027
9028 if test "$wxUSE_COLOURDLG" = yes; then
9029 echo "$as_me:$LINENO: result: yes" >&5
9030echo "${ECHO_T}yes" >&6
9031 else
9032 echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6
9034 fi
9035
9036
9037 enablestring=
9038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9039echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9040 no_cache=0
9041 # Check whether --enable-filedlg or --disable-filedlg was given.
9042if test "${enable_filedlg+set}" = set; then
9043 enableval="$enable_filedlg"
9044
9045 if test "$enableval" = yes; then
9046 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9047 else
9048 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9049 fi
9050
9051else
9052
9053 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9054 if test "x$LINE" != x ; then
9055 eval "DEFAULT_$LINE"
9056 else
9057 no_cache=1
9058 fi
9059
9060 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9061
9062fi;
9063
9064 eval "$ac_cv_use_filedlg"
9065 if test "$no_cache" != 1; then
9066 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9067 fi
9068
9069 if test "$wxUSE_FILEDLG" = yes; then
9070 echo "$as_me:$LINENO: result: yes" >&5
9071echo "${ECHO_T}yes" >&6
9072 else
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
9075 fi
9076
9077
9078 enablestring=
9079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9080echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9081 no_cache=0
9082 # Check whether --enable-finddlg or --disable-finddlg was given.
9083if test "${enable_finddlg+set}" = set; then
9084 enableval="$enable_finddlg"
9085
9086 if test "$enableval" = yes; then
9087 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9088 else
9089 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9090 fi
9091
9092else
9093
9094 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9095 if test "x$LINE" != x ; then
9096 eval "DEFAULT_$LINE"
9097 else
9098 no_cache=1
9099 fi
9100
9101 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9102
9103fi;
9104
9105 eval "$ac_cv_use_finddlg"
9106 if test "$no_cache" != 1; then
9107 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9108 fi
9109
9110 if test "$wxUSE_FINDREPLDLG" = yes; then
9111 echo "$as_me:$LINENO: result: yes" >&5
9112echo "${ECHO_T}yes" >&6
9113 else
9114 echo "$as_me:$LINENO: result: no" >&5
9115echo "${ECHO_T}no" >&6
9116 fi
9117
9118
9119 enablestring=
9120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9121echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9122 no_cache=0
9123 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9124if test "${enable_fontdlg+set}" = set; then
9125 enableval="$enable_fontdlg"
9126
9127 if test "$enableval" = yes; then
9128 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9129 else
9130 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9131 fi
9132
9133else
9134
9135 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9136 if test "x$LINE" != x ; then
9137 eval "DEFAULT_$LINE"
9138 else
9139 no_cache=1
9140 fi
9141
9142 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9143
9144fi;
9145
9146 eval "$ac_cv_use_fontdlg"
9147 if test "$no_cache" != 1; then
9148 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9149 fi
9150
9151 if test "$wxUSE_FONTDLG" = yes; then
9152 echo "$as_me:$LINENO: result: yes" >&5
9153echo "${ECHO_T}yes" >&6
9154 else
9155 echo "$as_me:$LINENO: result: no" >&5
9156echo "${ECHO_T}no" >&6
9157 fi
9158
9159
9160 enablestring=
9161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9162echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9163 no_cache=0
9164 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9165if test "${enable_dirdlg+set}" = set; then
9166 enableval="$enable_dirdlg"
9167
9168 if test "$enableval" = yes; then
9169 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9170 else
9171 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9172 fi
9173
9174else
9175
9176 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9177 if test "x$LINE" != x ; then
9178 eval "DEFAULT_$LINE"
9179 else
9180 no_cache=1
9181 fi
9182
9183 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9184
9185fi;
9186
9187 eval "$ac_cv_use_dirdlg"
9188 if test "$no_cache" != 1; then
9189 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9190 fi
9191
9192 if test "$wxUSE_DIRDLG" = yes; then
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
9198 fi
9199
9200
9201 enablestring=
9202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9203echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9204 no_cache=0
9205 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9206if test "${enable_msgdlg+set}" = set; then
9207 enableval="$enable_msgdlg"
9208
9209 if test "$enableval" = yes; then
9210 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9211 else
9212 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9213 fi
9214
9215else
9216
9217 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9218 if test "x$LINE" != x ; then
9219 eval "DEFAULT_$LINE"
9220 else
9221 no_cache=1
9222 fi
9223
9224 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9225
9226fi;
9227
9228 eval "$ac_cv_use_msgdlg"
9229 if test "$no_cache" != 1; then
9230 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9231 fi
9232
9233 if test "$wxUSE_MSGDLG" = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
9236 else
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
9239 fi
9240
9241
9242 enablestring=
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9245 no_cache=0
9246 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9247if test "${enable_numberdlg+set}" = set; then
9248 enableval="$enable_numberdlg"
9249
9250 if test "$enableval" = yes; then
9251 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9252 else
9253 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9254 fi
9255
9256else
9257
9258 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9266
9267fi;
9268
9269 eval "$ac_cv_use_numberdlg"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_NUMBERDLG" = yes; then
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
9277 else
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280 fi
9281
9282
9283 enablestring=
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9286 no_cache=0
9287 # Check whether --enable-splash or --disable-splash was given.
9288if test "${enable_splash+set}" = set; then
9289 enableval="$enable_splash"
9290
9291 if test "$enableval" = yes; then
9292 ac_cv_use_splash='wxUSE_SPLASH=yes'
9293 else
9294 ac_cv_use_splash='wxUSE_SPLASH=no'
9295 fi
9296
9297else
9298
9299 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9307
9308fi;
9309
9310 eval "$ac_cv_use_splash"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_SPLASH" = yes; then
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
9318 else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321 fi
9322
9323
9324 enablestring=
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9327 no_cache=0
9328 # Check whether --enable-textdlg or --disable-textdlg was given.
9329if test "${enable_textdlg+set}" = set; then
9330 enableval="$enable_textdlg"
9331
9332 if test "$enableval" = yes; then
9333 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9334 else
9335 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9336 fi
9337
9338else
9339
9340 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9348
9349fi;
9350
9351 eval "$ac_cv_use_textdlg"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_TEXTDLG" = yes; then
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 else
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
9362 fi
9363
9364
9365 enablestring=
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9368 no_cache=0
9369 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9370if test "${enable_tipdlg+set}" = set; then
9371 enableval="$enable_tipdlg"
9372
9373 if test "$enableval" = yes; then
9374 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9375 else
9376 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9377 fi
9378
9379else
9380
9381 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9389
9390fi;
9391
9392 eval "$ac_cv_use_tipdlg"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_STARTUP_TIPS" = yes; then
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
9400 else
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
9403 fi
9404
9405
9406 enablestring=
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9409 no_cache=0
9410 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9411if test "${enable_progressdlg+set}" = set; then
9412 enableval="$enable_progressdlg"
9413
9414 if test "$enableval" = yes; then
9415 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9416 else
9417 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9418 fi
9419
9420else
9421
9422 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9430
9431fi;
9432
9433 eval "$ac_cv_use_progressdlg"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_PROGRESSDLG" = yes; then
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447 enablestring=
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9450 no_cache=0
9451 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9452if test "${enable_wizarddlg+set}" = set; then
9453 enableval="$enable_wizarddlg"
9454
9455 if test "$enableval" = yes; then
9456 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9457 else
9458 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9459 fi
9460
9461else
9462
9463 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
9470 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9471
9472fi;
9473
9474 eval "$ac_cv_use_wizarddlg"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9477 fi
9478
9479 if test "$wxUSE_WIZARDDLG" = yes; then
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
9482 else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 fi
9486
9487
9488
9489
9490 enablestring=
9491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9492echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9493 no_cache=0
9494 # Check whether --enable-menus or --disable-menus was given.
9495if test "${enable_menus+set}" = set; then
9496 enableval="$enable_menus"
9497
9498 if test "$enableval" = yes; then
9499 ac_cv_use_menus='wxUSE_MENUS=yes'
9500 else
9501 ac_cv_use_menus='wxUSE_MENUS=no'
9502 fi
9503
9504else
9505
9506 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9507 if test "x$LINE" != x ; then
9508 eval "DEFAULT_$LINE"
9509 else
9510 no_cache=1
9511 fi
9512
9513 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9514
9515fi;
9516
9517 eval "$ac_cv_use_menus"
9518 if test "$no_cache" != 1; then
9519 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9520 fi
9521
9522 if test "$wxUSE_MENUS" = yes; then
9523 echo "$as_me:$LINENO: result: yes" >&5
9524echo "${ECHO_T}yes" >&6
9525 else
9526 echo "$as_me:$LINENO: result: no" >&5
9527echo "${ECHO_T}no" >&6
9528 fi
9529
9530
9531 enablestring=
9532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9533echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9534 no_cache=0
9535 # Check whether --enable-miniframe or --disable-miniframe was given.
9536if test "${enable_miniframe+set}" = set; then
9537 enableval="$enable_miniframe"
9538
9539 if test "$enableval" = yes; then
9540 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9541 else
9542 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9543 fi
9544
9545else
9546
9547 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9548 if test "x$LINE" != x ; then
9549 eval "DEFAULT_$LINE"
9550 else
9551 no_cache=1
9552 fi
9553
9554 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9555
9556fi;
9557
9558 eval "$ac_cv_use_miniframe"
9559 if test "$no_cache" != 1; then
9560 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9561 fi
9562
9563 if test "$wxUSE_MINIFRAME" = yes; then
9564 echo "$as_me:$LINENO: result: yes" >&5
9565echo "${ECHO_T}yes" >&6
9566 else
9567 echo "$as_me:$LINENO: result: no" >&5
9568echo "${ECHO_T}no" >&6
9569 fi
9570
9571
9572 enablestring=
9573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9574echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9575 no_cache=0
9576 # Check whether --enable-tooltips or --disable-tooltips was given.
9577if test "${enable_tooltips+set}" = set; then
9578 enableval="$enable_tooltips"
9579
9580 if test "$enableval" = yes; then
9581 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9582 else
9583 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9584 fi
9585
9586else
9587
9588 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9589 if test "x$LINE" != x ; then
9590 eval "DEFAULT_$LINE"
9591 else
9592 no_cache=1
9593 fi
9594
9595 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9596
9597fi;
9598
9599 eval "$ac_cv_use_tooltips"
9600 if test "$no_cache" != 1; then
9601 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9602 fi
9603
9604 if test "$wxUSE_TOOLTIPS" = yes; then
9605 echo "$as_me:$LINENO: result: yes" >&5
9606echo "${ECHO_T}yes" >&6
9607 else
9608 echo "$as_me:$LINENO: result: no" >&5
9609echo "${ECHO_T}no" >&6
9610 fi
9611
9612
9613 enablestring=
9614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9615echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9616 no_cache=0
9617 # Check whether --enable-splines or --disable-splines was given.
9618if test "${enable_splines+set}" = set; then
9619 enableval="$enable_splines"
9620
9621 if test "$enableval" = yes; then
9622 ac_cv_use_splines='wxUSE_SPLINES=yes'
9623 else
9624 ac_cv_use_splines='wxUSE_SPLINES=no'
9625 fi
9626
9627else
9628
9629 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9630 if test "x$LINE" != x ; then
9631 eval "DEFAULT_$LINE"
9632 else
9633 no_cache=1
9634 fi
9635
9636 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9637
9638fi;
9639
9640 eval "$ac_cv_use_splines"
9641 if test "$no_cache" != 1; then
9642 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9643 fi
9644
9645 if test "$wxUSE_SPLINES" = yes; then
9646 echo "$as_me:$LINENO: result: yes" >&5
9647echo "${ECHO_T}yes" >&6
9648 else
9649 echo "$as_me:$LINENO: result: no" >&5
9650echo "${ECHO_T}no" >&6
9651 fi
9652
9653
9654 enablestring=
9655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9656echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9657 no_cache=0
9658 # Check whether --enable-validators or --disable-validators was given.
9659if test "${enable_validators+set}" = set; then
9660 enableval="$enable_validators"
9661
9662 if test "$enableval" = yes; then
9663 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9664 else
9665 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9666 fi
9667
9668else
9669
9670 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9671 if test "x$LINE" != x ; then
9672 eval "DEFAULT_$LINE"
9673 else
9674 no_cache=1
9675 fi
9676
9677 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9678
9679fi;
9680
9681 eval "$ac_cv_use_validators"
9682 if test "$no_cache" != 1; then
9683 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9684 fi
9685
9686 if test "$wxUSE_VALIDATORS" = yes; then
9687 echo "$as_me:$LINENO: result: yes" >&5
9688echo "${ECHO_T}yes" >&6
9689 else
9690 echo "$as_me:$LINENO: result: no" >&5
9691echo "${ECHO_T}no" >&6
9692 fi
9693
9694
9695 enablestring=
9696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9697echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9698 no_cache=0
9699 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9700if test "${enable_busyinfo+set}" = set; then
9701 enableval="$enable_busyinfo"
9702
9703 if test "$enableval" = yes; then
9704 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9705 else
9706 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9707 fi
9708
9709else
9710
9711 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9712 if test "x$LINE" != x ; then
9713 eval "DEFAULT_$LINE"
9714 else
9715 no_cache=1
9716 fi
9717
9718 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9719
9720fi;
9721
9722 eval "$ac_cv_use_busyinfo"
9723 if test "$no_cache" != 1; then
9724 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9725 fi
9726
9727 if test "$wxUSE_BUSYINFO" = yes; then
9728 echo "$as_me:$LINENO: result: yes" >&5
9729echo "${ECHO_T}yes" >&6
9730 else
9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
9733 fi
9734
9735
9736 enablestring=
9737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9738echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9739 no_cache=0
9740 # Check whether --enable-joystick or --disable-joystick was given.
9741if test "${enable_joystick+set}" = set; then
9742 enableval="$enable_joystick"
9743
9744 if test "$enableval" = yes; then
9745 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9746 else
9747 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9748 fi
9749
9750else
9751
9752 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9753 if test "x$LINE" != x ; then
9754 eval "DEFAULT_$LINE"
9755 else
9756 no_cache=1
9757 fi
9758
9759 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9760
9761fi;
9762
9763 eval "$ac_cv_use_joystick"
9764 if test "$no_cache" != 1; then
9765 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9766 fi
9767
9768 if test "$wxUSE_JOYSTICK" = yes; then
9769 echo "$as_me:$LINENO: result: yes" >&5
9770echo "${ECHO_T}yes" >&6
9771 else
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
9774 fi
9775
9776
9777 enablestring=
9778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9779echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9780 no_cache=0
9781 # Check whether --enable-metafile or --disable-metafile was given.
9782if test "${enable_metafile+set}" = set; then
9783 enableval="$enable_metafile"
9784
9785 if test "$enableval" = yes; then
9786 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9787 else
9788 ac_cv_use_metafile='wxUSE_METAFILE=no'
9789 fi
9790
9791else
9792
9793 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9794 if test "x$LINE" != x ; then
9795 eval "DEFAULT_$LINE"
9796 else
9797 no_cache=1
9798 fi
9799
9800 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9801
9802fi;
9803
9804 eval "$ac_cv_use_metafile"
9805 if test "$no_cache" != 1; then
9806 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9807 fi
9808
9809 if test "$wxUSE_METAFILE" = yes; then
9810 echo "$as_me:$LINENO: result: yes" >&5
9811echo "${ECHO_T}yes" >&6
9812 else
9813 echo "$as_me:$LINENO: result: no" >&5
9814echo "${ECHO_T}no" >&6
9815 fi
9816
9817
9818 enablestring=
9819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9820echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9821 no_cache=0
9822 # Check whether --enable-dragimage or --disable-dragimage was given.
9823if test "${enable_dragimage+set}" = set; then
9824 enableval="$enable_dragimage"
9825
9826 if test "$enableval" = yes; then
9827 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9828 else
9829 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9830 fi
9831
9832else
9833
9834 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9835 if test "x$LINE" != x ; then
9836 eval "DEFAULT_$LINE"
9837 else
9838 no_cache=1
9839 fi
9840
9841 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9842
9843fi;
9844
9845 eval "$ac_cv_use_dragimage"
9846 if test "$no_cache" != 1; then
9847 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9848 fi
9849
9850 if test "$wxUSE_DRAGIMAGE" = yes; then
9851 echo "$as_me:$LINENO: result: yes" >&5
9852echo "${ECHO_T}yes" >&6
9853 else
9854 echo "$as_me:$LINENO: result: no" >&5
9855echo "${ECHO_T}no" >&6
9856 fi
9857
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-accessibility or --disable-accessibility was given.
9864if test "${enable_accessibility+set}" = set; then
9865 enableval="$enable_accessibility"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9869 else
9870 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9883
9884fi;
9885
9886 eval "$ac_cv_use_accessibility"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_ACCESSIBILITY" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
9900
9901
9902 enablestring=
9903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9904echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9905 no_cache=0
9906 # Check whether --enable-palette or --disable-palette was given.
9907if test "${enable_palette+set}" = set; then
9908 enableval="$enable_palette"
9909
9910 if test "$enableval" = yes; then
9911 ac_cv_use_palette='wxUSE_PALETTE=yes'
9912 else
9913 ac_cv_use_palette='wxUSE_PALETTE=no'
9914 fi
9915
9916else
9917
9918 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9919 if test "x$LINE" != x ; then
9920 eval "DEFAULT_$LINE"
9921 else
9922 no_cache=1
9923 fi
9924
9925 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9926
9927fi;
9928
9929 eval "$ac_cv_use_palette"
9930 if test "$no_cache" != 1; then
9931 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9932 fi
9933
9934 if test "$wxUSE_PALETTE" = yes; then
9935 echo "$as_me:$LINENO: result: yes" >&5
9936echo "${ECHO_T}yes" >&6
9937 else
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
9940 fi
9941
9942
9943 enablestring=
9944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9945echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9946 no_cache=0
9947 # Check whether --enable-image or --disable-image was given.
9948if test "${enable_image+set}" = set; then
9949 enableval="$enable_image"
9950
9951 if test "$enableval" = yes; then
9952 ac_cv_use_image='wxUSE_IMAGE=yes'
9953 else
9954 ac_cv_use_image='wxUSE_IMAGE=no'
9955 fi
9956
9957else
9958
9959 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9960 if test "x$LINE" != x ; then
9961 eval "DEFAULT_$LINE"
9962 else
9963 no_cache=1
9964 fi
9965
9966 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9967
9968fi;
9969
9970 eval "$ac_cv_use_image"
9971 if test "$no_cache" != 1; then
9972 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9973 fi
9974
9975 if test "$wxUSE_IMAGE" = yes; then
9976 echo "$as_me:$LINENO: result: yes" >&5
9977echo "${ECHO_T}yes" >&6
9978 else
9979 echo "$as_me:$LINENO: result: no" >&5
9980echo "${ECHO_T}no" >&6
9981 fi
9982
9983
9984 enablestring=
9985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9986echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9987 no_cache=0
9988 # Check whether --enable-gif or --disable-gif was given.
9989if test "${enable_gif+set}" = set; then
9990 enableval="$enable_gif"
9991
9992 if test "$enableval" = yes; then
9993 ac_cv_use_gif='wxUSE_GIF=yes'
9994 else
9995 ac_cv_use_gif='wxUSE_GIF=no'
9996 fi
9997
9998else
9999
10000 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10001 if test "x$LINE" != x ; then
10002 eval "DEFAULT_$LINE"
10003 else
10004 no_cache=1
10005 fi
10006
10007 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10008
10009fi;
10010
10011 eval "$ac_cv_use_gif"
10012 if test "$no_cache" != 1; then
10013 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10014 fi
10015
10016 if test "$wxUSE_GIF" = yes; then
10017 echo "$as_me:$LINENO: result: yes" >&5
10018echo "${ECHO_T}yes" >&6
10019 else
10020 echo "$as_me:$LINENO: result: no" >&5
10021echo "${ECHO_T}no" >&6
10022 fi
10023
10024
10025 enablestring=
10026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10027echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10028 no_cache=0
10029 # Check whether --enable-pcx or --disable-pcx was given.
10030if test "${enable_pcx+set}" = set; then
10031 enableval="$enable_pcx"
10032
10033 if test "$enableval" = yes; then
10034 ac_cv_use_pcx='wxUSE_PCX=yes'
10035 else
10036 ac_cv_use_pcx='wxUSE_PCX=no'
10037 fi
10038
10039else
10040
10041 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10042 if test "x$LINE" != x ; then
10043 eval "DEFAULT_$LINE"
10044 else
10045 no_cache=1
10046 fi
10047
10048 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10049
10050fi;
10051
10052 eval "$ac_cv_use_pcx"
10053 if test "$no_cache" != 1; then
10054 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10055 fi
10056
10057 if test "$wxUSE_PCX" = yes; then
10058 echo "$as_me:$LINENO: result: yes" >&5
10059echo "${ECHO_T}yes" >&6
10060 else
10061 echo "$as_me:$LINENO: result: no" >&5
10062echo "${ECHO_T}no" >&6
10063 fi
10064
10065
10066 enablestring=
10067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10068echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10069 no_cache=0
10070 # Check whether --enable-iff or --disable-iff was given.
10071if test "${enable_iff+set}" = set; then
10072 enableval="$enable_iff"
10073
10074 if test "$enableval" = yes; then
10075 ac_cv_use_iff='wxUSE_IFF=yes'
10076 else
10077 ac_cv_use_iff='wxUSE_IFF=no'
10078 fi
10079
10080else
10081
10082 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10083 if test "x$LINE" != x ; then
10084 eval "DEFAULT_$LINE"
10085 else
10086 no_cache=1
10087 fi
10088
10089 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10090
10091fi;
10092
10093 eval "$ac_cv_use_iff"
10094 if test "$no_cache" != 1; then
10095 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10096 fi
10097
10098 if test "$wxUSE_IFF" = yes; then
10099 echo "$as_me:$LINENO: result: yes" >&5
10100echo "${ECHO_T}yes" >&6
10101 else
10102 echo "$as_me:$LINENO: result: no" >&5
10103echo "${ECHO_T}no" >&6
10104 fi
10105
10106
10107 enablestring=
10108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10109echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10110 no_cache=0
10111 # Check whether --enable-pnm or --disable-pnm was given.
10112if test "${enable_pnm+set}" = set; then
10113 enableval="$enable_pnm"
10114
10115 if test "$enableval" = yes; then
10116 ac_cv_use_pnm='wxUSE_PNM=yes'
10117 else
10118 ac_cv_use_pnm='wxUSE_PNM=no'
10119 fi
10120
10121else
10122
10123 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10124 if test "x$LINE" != x ; then
10125 eval "DEFAULT_$LINE"
10126 else
10127 no_cache=1
10128 fi
10129
10130 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10131
10132fi;
10133
10134 eval "$ac_cv_use_pnm"
10135 if test "$no_cache" != 1; then
10136 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10137 fi
10138
10139 if test "$wxUSE_PNM" = yes; then
10140 echo "$as_me:$LINENO: result: yes" >&5
10141echo "${ECHO_T}yes" >&6
10142 else
10143 echo "$as_me:$LINENO: result: no" >&5
10144echo "${ECHO_T}no" >&6
10145 fi
10146
10147
10148 enablestring=
10149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10150echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10151 no_cache=0
10152 # Check whether --enable-xpm or --disable-xpm was given.
10153if test "${enable_xpm+set}" = set; then
10154 enableval="$enable_xpm"
10155
10156 if test "$enableval" = yes; then
10157 ac_cv_use_xpm='wxUSE_XPM=yes'
10158 else
10159 ac_cv_use_xpm='wxUSE_XPM=no'
10160 fi
10161
10162else
10163
10164 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10165 if test "x$LINE" != x ; then
10166 eval "DEFAULT_$LINE"
10167 else
10168 no_cache=1
10169 fi
10170
10171 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10172
10173fi;
10174
10175 eval "$ac_cv_use_xpm"
10176 if test "$no_cache" != 1; then
10177 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10178 fi
10179
10180 if test "$wxUSE_XPM" = yes; then
10181 echo "$as_me:$LINENO: result: yes" >&5
10182echo "${ECHO_T}yes" >&6
10183 else
10184 echo "$as_me:$LINENO: result: no" >&5
10185echo "${ECHO_T}no" >&6
10186 fi
10187
10188
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10191echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10194if test "${enable_ico_cur+set}" = set; then
10195 enableval="$enable_ico_cur"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10199 else
10200 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10201 fi
10202
10203else
10204
10205 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10213
10214fi;
10215
10216 eval "$ac_cv_use_ico_cur"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_ICO_CUR" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228
10229
10230fi
10231
10232
10233
ceec2216
RL
10234# Check whether --with-flavour or --without-flavour was given.
10235if test "${with_flavour+set}" = set; then
10236 withval="$with_flavour"
10237 WX_FLAVOUR="$withval"
10238fi;
10239
10240
10241
a848cd7e
SC
10242 enablestring=
10243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10244echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10245 no_cache=0
10246 # Check whether --enable-official_build or --disable-official_build was given.
10247if test "${enable_official_build+set}" = set; then
10248 enableval="$enable_official_build"
10249
10250 if test "$enableval" = yes; then
10251 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10252 else
10253 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10254 fi
10255
10256else
10257
10258 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10259 if test "x$LINE" != x ; then
10260 eval "DEFAULT_$LINE"
10261 else
10262 no_cache=1
10263 fi
10264
10265 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10266
10267fi;
10268
10269 eval "$ac_cv_use_official_build"
10270 if test "$no_cache" != 1; then
10271 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10272 fi
10273
10274 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10275 echo "$as_me:$LINENO: result: yes" >&5
10276echo "${ECHO_T}yes" >&6
10277 else
10278 echo "$as_me:$LINENO: result: no" >&5
10279echo "${ECHO_T}no" >&6
10280 fi
10281
10282# Check whether --enable-vendor or --disable-vendor was given.
10283if test "${enable_vendor+set}" = set; then
10284 enableval="$enable_vendor"
10285 VENDOR="$enableval"
10286fi;
10287if test "x$VENDOR" = "x"; then
10288 VENDOR="custom"
10289fi
10290
a848cd7e
SC
10291
10292
10293
10294 echo "saving argument cache $wx_arg_cache_file"
10295 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10296
10297
10298
10299echo "$as_me:$LINENO: checking for toolkit" >&5
10300echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10301
10302# In Wine, we need to default to MSW, not GTK or MOTIF
10303if test "$wxUSE_WINE" = "yes"; then
10304 DEFAULT_DEFAULT_wxUSE_GTK=0
10305 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10306 DEFAULT_DEFAULT_wxUSE_MSW=1
10307 wxUSE_SHARED=no
10308fi
10309
10310if test "$wxUSE_GUI" = "yes"; then
10311
10312 if test "$USE_BEOS" = 1; then
10313 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10314echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10315 { (exit 1); exit 1; }; }
10316 fi
10317
10318 if test "$TOOLKIT_GIVEN" = 1; then
10319 for toolkit in `echo $ALL_TOOLKITS`; do
10320 var=wxUSE_$toolkit
10321 eval "value=\$${var}"
10322 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10323 done
10324 else
10325 for toolkit in `echo $ALL_TOOLKITS`; do
10326 if test "$has_toolkit_in_cache" != 1; then
10327 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10328 else
10329 var=DEFAULT_wxUSE_$toolkit
10330 fi
10331 eval "wxUSE_$toolkit=\$${var}"
10332 done
10333 fi
10334
10335 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10336 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10337 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10338
10339 case "${host}" in
10340 *-pc-os2_emx | *-pc-os2-emx )
10341 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10342 esac
10343
10344 case "$NUM_TOOLKITS" in
10345 1)
10346 ;;
10347 0)
10348 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10349echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10350 { (exit 1); exit 1; }; }
10351 ;;
10352 *)
10353 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10354echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10355 { (exit 1); exit 1; }; }
10356 esac
10357
10358 for toolkit in `echo $ALL_TOOLKITS`; do
10359 var=wxUSE_$toolkit
10360 eval "value=\$${var}"
10361 if test "x$value" != x; then
10362 cache_var=CACHE_$toolkit
10363 eval "cache=\$${cache_var}"
10364 if test "$cache" = 1; then
10365 echo "$var=$value" >> ${wx_arg_cache_file}
10366 fi
10367 if test "$value" = 1; then
10368 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10369 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10370echo "${ECHO_T}$toolkit_echo" >&6
10371 fi
10372 fi
10373 done
10374else
10375 if test "x$host_alias" != "x"; then
10376 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10377echo "${ECHO_T}base ($host_alias hosted) only" >&6
10378 else
10379 echo "$as_me:$LINENO: result: base only" >&5
10380echo "${ECHO_T}base only" >&6
10381 fi
10382fi
10383
10384wants_win32=0
10385doesnt_want_win32=0
10386case "${host}" in
10387 *-*-cygwin*)
10388 if test "$wxUSE_MSW" = 1 ; then
10389 wants_win32=1
10390 else
10391 doesnt_want_win32=1
10392 fi
10393 ;;
10394 *-*-mingw*)
10395 wants_win32=1
10396 ;;
10397esac
10398
10399if test "$wxUSE_WINE" = "yes"; then
10400 wants_win32=1
10401 CC=winegcc
10402 CXX=wineg++
10403 RESCOMP=wrc
10404 LDFLAGS_GUI="-mwindows"
10405fi
10406
10407if test "$wants_win32" = 1 ; then
10408 USE_UNIX=0
10409 USE_WIN32=1
10410 cat >>confdefs.h <<\_ACEOF
10411#define __WIN32__ 1
10412_ACEOF
10413
10414 cat >>confdefs.h <<\_ACEOF
10415#define __WIN95__ 1
10416_ACEOF
10417
10418 cat >>confdefs.h <<\_ACEOF
10419#define __WINDOWS__ 1
10420_ACEOF
10421
10422 cat >>confdefs.h <<\_ACEOF
10423#define __GNUWIN32__ 1
10424_ACEOF
10425
10426 cat >>confdefs.h <<\_ACEOF
10427#define STRICT 1
10428_ACEOF
10429
10430 cat >>confdefs.h <<\_ACEOF
10431#define WINVER 0x0400
10432_ACEOF
10433
10434fi
10435if test "$doesnt_want_win32" = 1 ; then
10436 USE_UNIX=1
10437 USE_WIN32=0
10438fi
10439
10440if test "$USE_UNIX" = 1 ; then
10441 wxUSE_UNIX=yes
10442 cat >>confdefs.h <<\_ACEOF
10443#define __UNIX__ 1
10444_ACEOF
10445
10446fi
10447
10448
10449cat >confcache <<\_ACEOF
10450# This file is a shell script that caches the results of configure
10451# tests run on this system so they can be shared between configure
10452# scripts and configure runs, see configure's option --config-cache.
10453# It is not useful on other systems. If it contains results you don't
10454# want to keep, you may remove or edit it.
10455#
10456# config.status only pays attention to the cache file if you give it
10457# the --recheck option to rerun configure.
10458#
10459# `ac_cv_env_foo' variables (set or unset) will be overridden when
10460# loading this file, other *unset* `ac_cv_foo' will be assigned the
10461# following values.
10462
10463_ACEOF
10464
10465# The following way of writing the cache mishandles newlines in values,
10466# but we know of no workaround that is simple, portable, and efficient.
10467# So, don't put newlines in cache variables' values.
10468# Ultrix sh set writes to stderr and can't be redirected directly,
10469# and sets the high bit in the cache file unless we assign to the vars.
10470{
10471 (set) 2>&1 |
10472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10473 *ac_space=\ *)
10474 # `set' does not quote correctly, so add quotes (double-quote
10475 # substitution turns \\\\ into \\, and sed turns \\ into \).
10476 sed -n \
ac1cb8d3
VS
10477 "s/'/'\\\\''/g;
10478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10479 ;;
10480 *)
10481 # `set' quotes correctly as required by POSIX, so do not add quotes.
10482 sed -n \
ac1cb8d3 10483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10484 ;;
10485 esac;
10486} |
10487 sed '
10488 t clear
10489 : clear
10490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10491 t end
10492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10493 : end' >>confcache
10494if diff $cache_file confcache >/dev/null 2>&1; then :; else
10495 if test -w $cache_file; then
10496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10497 cat confcache >$cache_file
10498 else
10499 echo "not updating unwritable cache $cache_file"
10500 fi
10501fi
10502rm -f confcache
10503
10504if test "$build" != "$host" ; then
1e9e8aba 10505 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10506 CC=$host_alias-gcc
10507 CXX=$host_alias-c++
10508 AR=$host_alias-ar
10509 RANLIB=$host_alias-ranlib
10510 DLLTOOL=$host_alias-dlltool
10511 RESCOMP=$host_alias-windres
a848cd7e 10512 STRIP=$host_alias-strip
1e9e8aba
DE
10513 elif test "x$CC" '!=' "x"; then
10514 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10515 else
10516 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10517echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10518 { (exit 1); exit 1; }; }
10519 fi
10520fi
10521
10522CFLAGS=${CFLAGS:=}
10523ac_ext=c
10524ac_cpp='$CPP $CPPFLAGS'
10525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527ac_compiler_gnu=$ac_cv_c_compiler_gnu
10528if test -n "$ac_tool_prefix"; then
10529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10530set dummy ${ac_tool_prefix}gcc; ac_word=$2
10531echo "$as_me:$LINENO: checking for $ac_word" >&5
10532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10533if test "${ac_cv_prog_CC+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536 if test -n "$CC"; then
10537 ac_cv_prog_CC="$CC" # Let the user override the test.
10538else
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10549 fi
10550done
10551done
10552
10553fi
10554fi
10555CC=$ac_cv_prog_CC
10556if test -n "$CC"; then
10557 echo "$as_me:$LINENO: result: $CC" >&5
10558echo "${ECHO_T}$CC" >&6
10559else
10560 echo "$as_me:$LINENO: result: no" >&5
10561echo "${ECHO_T}no" >&6
10562fi
10563
10564fi
10565if test -z "$ac_cv_prog_CC"; then
10566 ac_ct_CC=$CC
10567 # Extract the first word of "gcc", so it can be a program name with args.
10568set dummy gcc; ac_word=$2
10569echo "$as_me:$LINENO: checking for $ac_word" >&5
10570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10571if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573else
10574 if test -n "$ac_ct_CC"; then
10575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10576else
10577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10578for as_dir in $PATH
10579do
10580 IFS=$as_save_IFS
10581 test -z "$as_dir" && as_dir=.
10582 for ac_exec_ext in '' $ac_executable_extensions; do
10583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10584 ac_cv_prog_ac_ct_CC="gcc"
10585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 break 2
10587 fi
10588done
10589done
10590
10591fi
10592fi
10593ac_ct_CC=$ac_cv_prog_ac_ct_CC
10594if test -n "$ac_ct_CC"; then
10595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10596echo "${ECHO_T}$ac_ct_CC" >&6
10597else
10598 echo "$as_me:$LINENO: result: no" >&5
10599echo "${ECHO_T}no" >&6
10600fi
10601
10602 CC=$ac_ct_CC
10603else
10604 CC="$ac_cv_prog_CC"
10605fi
10606
10607if test -z "$CC"; then
10608 if test -n "$ac_tool_prefix"; then
10609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10610set dummy ${ac_tool_prefix}cc; ac_word=$2
10611echo "$as_me:$LINENO: checking for $ac_word" >&5
10612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10613if test "${ac_cv_prog_CC+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616 if test -n "$CC"; then
10617 ac_cv_prog_CC="$CC" # Let the user override the test.
10618else
10619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620for as_dir in $PATH
10621do
10622 IFS=$as_save_IFS
10623 test -z "$as_dir" && as_dir=.
10624 for ac_exec_ext in '' $ac_executable_extensions; do
10625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10626 ac_cv_prog_CC="${ac_tool_prefix}cc"
10627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10628 break 2
10629 fi
10630done
10631done
10632
10633fi
10634fi
10635CC=$ac_cv_prog_CC
10636if test -n "$CC"; then
10637 echo "$as_me:$LINENO: result: $CC" >&5
10638echo "${ECHO_T}$CC" >&6
10639else
10640 echo "$as_me:$LINENO: result: no" >&5
10641echo "${ECHO_T}no" >&6
10642fi
10643
10644fi
10645if test -z "$ac_cv_prog_CC"; then
10646 ac_ct_CC=$CC
10647 # Extract the first word of "cc", so it can be a program name with args.
10648set dummy cc; ac_word=$2
10649echo "$as_me:$LINENO: checking for $ac_word" >&5
10650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654 if test -n "$ac_ct_CC"; then
10655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10656else
10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658for as_dir in $PATH
10659do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_prog_ac_ct_CC="cc"
10665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10667 fi
10668done
10669done
10670
10671fi
10672fi
10673ac_ct_CC=$ac_cv_prog_ac_ct_CC
10674if test -n "$ac_ct_CC"; then
10675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10676echo "${ECHO_T}$ac_ct_CC" >&6
10677else
10678 echo "$as_me:$LINENO: result: no" >&5
10679echo "${ECHO_T}no" >&6
10680fi
10681
10682 CC=$ac_ct_CC
10683else
10684 CC="$ac_cv_prog_CC"
10685fi
10686
10687fi
10688if test -z "$CC"; then
10689 # Extract the first word of "cc", so it can be a program name with args.
10690set dummy cc; ac_word=$2
10691echo "$as_me:$LINENO: checking for $ac_word" >&5
10692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10693if test "${ac_cv_prog_CC+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696 if test -n "$CC"; then
10697 ac_cv_prog_CC="$CC" # Let the user override the test.
10698else
10699 ac_prog_rejected=no
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10708 ac_prog_rejected=yes
10709 continue
10710 fi
10711 ac_cv_prog_CC="cc"
10712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10714 fi
10715done
10716done
10717
10718if test $ac_prog_rejected = yes; then
10719 # We found a bogon in the path, so make sure we never use it.
10720 set dummy $ac_cv_prog_CC
10721 shift
10722 if test $# != 0; then
10723 # We chose a different compiler from the bogus one.
10724 # However, it has the same basename, so the bogon will be chosen
10725 # first if we set CC to just the basename; use the full file name.
10726 shift
10727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10728 fi
10729fi
10730fi
10731fi
10732CC=$ac_cv_prog_CC
10733if test -n "$CC"; then
10734 echo "$as_me:$LINENO: result: $CC" >&5
10735echo "${ECHO_T}$CC" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741fi
10742if test -z "$CC"; then
10743 if test -n "$ac_tool_prefix"; then
10744 for ac_prog in cl
10745 do
10746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10748echo "$as_me:$LINENO: checking for $ac_word" >&5
10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750if test "${ac_cv_prog_CC+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 if test -n "$CC"; then
10754 ac_cv_prog_CC="$CC" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
10769
10770fi
10771fi
10772CC=$ac_cv_prog_CC
10773if test -n "$CC"; then
10774 echo "$as_me:$LINENO: result: $CC" >&5
10775echo "${ECHO_T}$CC" >&6
10776else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779fi
10780
10781 test -n "$CC" && break
10782 done
10783fi
10784if test -z "$CC"; then
10785 ac_ct_CC=$CC
10786 for ac_prog in cl
10787do
10788 # Extract the first word of "$ac_prog", so it can be a program name with args.
10789set dummy $ac_prog; ac_word=$2
10790echo "$as_me:$LINENO: checking for $ac_word" >&5
10791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 if test -n "$ac_ct_CC"; then
10796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_ac_ct_CC="$ac_prog"
10806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810done
10811
10812fi
10813fi
10814ac_ct_CC=$ac_cv_prog_ac_ct_CC
10815if test -n "$ac_ct_CC"; then
10816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10817echo "${ECHO_T}$ac_ct_CC" >&6
10818else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821fi
10822
10823 test -n "$ac_ct_CC" && break
10824done
10825
10826 CC=$ac_ct_CC
10827fi
10828
10829fi
10830
10831
10832test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10833See \`config.log' for more details." >&5
10834echo "$as_me: error: no acceptable C compiler found in \$PATH
10835See \`config.log' for more details." >&2;}
10836 { (exit 1); exit 1; }; }
10837
10838# Provide some information about the compiler.
10839echo "$as_me:$LINENO:" \
10840 "checking for C compiler version" >&5
10841ac_compiler=`set X $ac_compile; echo $2`
10842{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10843 (eval $ac_compiler --version </dev/null >&5) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }
10847{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10848 (eval $ac_compiler -v </dev/null >&5) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }
10852{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10853 (eval $ac_compiler -V </dev/null >&5) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }
10857
10858cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864
10865int
10866main ()
10867{
10868
10869 ;
10870 return 0;
10871}
10872_ACEOF
10873ac_clean_files_save=$ac_clean_files
10874ac_clean_files="$ac_clean_files a.out a.exe b.out"
10875# Try to create an executable without -o first, disregard a.out.
10876# It will help us diagnose broken compilers, and finding out an intuition
10877# of exeext.
ac1cb8d3
VS
10878echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10879echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10880ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10881if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10882 (eval $ac_link_default) 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; then
10886 # Find the output, starting from the most likely. This scheme is
10887# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10888# resort.
10889
10890# Be careful to initialize this variable, since it used to be cached.
10891# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10892ac_cv_exeext=
10893# b.out is created by i960 compilers.
10894for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10895do
10896 test -f "$ac_file" || continue
10897 case $ac_file in
10898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10899 ;;
a848cd7e 10900 conftest.$ac_ext )
ac1cb8d3
VS
10901 # This is the source file.
10902 ;;
a848cd7e 10903 [ab].out )
ac1cb8d3
VS
10904 # We found the default executable, but exeext='' is most
10905 # certainly right.
10906 break;;
a848cd7e 10907 *.* )
ac1cb8d3
VS
10908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10909 # FIXME: I believe we export ac_cv_exeext for Libtool,
10910 # but it would be cool to find out if it's true. Does anybody
10911 # maintain Libtool? --akim.
10912 export ac_cv_exeext
10913 break;;
a848cd7e 10914 * )
ac1cb8d3 10915 break;;
a848cd7e
SC
10916 esac
10917done
10918else
10919 echo "$as_me: failed program was:" >&5
10920sed 's/^/| /' conftest.$ac_ext >&5
10921
10922{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10923See \`config.log' for more details." >&5
10924echo "$as_me: error: C compiler cannot create executables
10925See \`config.log' for more details." >&2;}
10926 { (exit 77); exit 77; }; }
10927fi
10928
10929ac_exeext=$ac_cv_exeext
10930echo "$as_me:$LINENO: result: $ac_file" >&5
10931echo "${ECHO_T}$ac_file" >&6
10932
10933# Check the compiler produces executables we can run. If not, either
10934# the compiler is broken, or we cross compile.
10935echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10936echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10937# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10938# If not cross compiling, check that we can run a simple program.
10939if test "$cross_compiling" != yes; then
10940 if { ac_try='./$ac_file'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 cross_compiling=no
10947 else
10948 if test "$cross_compiling" = maybe; then
10949 cross_compiling=yes
10950 else
10951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10952If you meant to cross compile, use \`--host'.
10953See \`config.log' for more details." >&5
10954echo "$as_me: error: cannot run C compiled programs.
10955If you meant to cross compile, use \`--host'.
10956See \`config.log' for more details." >&2;}
10957 { (exit 1); exit 1; }; }
10958 fi
10959 fi
10960fi
10961echo "$as_me:$LINENO: result: yes" >&5
10962echo "${ECHO_T}yes" >&6
10963
10964rm -f a.out a.exe conftest$ac_cv_exeext b.out
10965ac_clean_files=$ac_clean_files_save
10966# Check the compiler produces executables we can run. If not, either
10967# the compiler is broken, or we cross compile.
10968echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10969echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10970echo "$as_me:$LINENO: result: $cross_compiling" >&5
10971echo "${ECHO_T}$cross_compiling" >&6
10972
10973echo "$as_me:$LINENO: checking for suffix of executables" >&5
10974echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; then
10980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10981# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10982# work properly (i.e., refer to `conftest.exe'), while it won't with
10983# `rm'.
10984for ac_file in conftest.exe conftest conftest.*; do
10985 test -f "$ac_file" || continue
10986 case $ac_file in
10987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10989 export ac_cv_exeext
10990 break;;
a848cd7e
SC
10991 * ) break;;
10992 esac
10993done
10994else
10995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10996See \`config.log' for more details." >&5
10997echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10998See \`config.log' for more details." >&2;}
10999 { (exit 1); exit 1; }; }
11000fi
11001
11002rm -f conftest$ac_cv_exeext
11003echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11004echo "${ECHO_T}$ac_cv_exeext" >&6
11005
11006rm -f conftest.$ac_ext
11007EXEEXT=$ac_cv_exeext
11008ac_exeext=$EXEEXT
11009echo "$as_me:$LINENO: checking for suffix of object files" >&5
11010echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11011if test "${ac_cv_objext+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 cat >conftest.$ac_ext <<_ACEOF
11015/* confdefs.h. */
11016_ACEOF
11017cat confdefs.h >>conftest.$ac_ext
11018cat >>conftest.$ac_ext <<_ACEOF
11019/* end confdefs.h. */
11020
11021int
11022main ()
11023{
11024
11025 ;
11026 return 0;
11027}
11028_ACEOF
11029rm -f conftest.o conftest.obj
11030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11031 (eval $ac_compile) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; then
11035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11036 case $ac_file in
11037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11039 break;;
11040 esac
11041done
11042else
11043 echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11047See \`config.log' for more details." >&5
11048echo "$as_me: error: cannot compute suffix of object files: cannot compile
11049See \`config.log' for more details." >&2;}
11050 { (exit 1); exit 1; }; }
11051fi
11052
11053rm -f conftest.$ac_cv_objext conftest.$ac_ext
11054fi
11055echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11056echo "${ECHO_T}$ac_cv_objext" >&6
11057OBJEXT=$ac_cv_objext
11058ac_objext=$OBJEXT
11059echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11060echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11061if test "${ac_cv_c_compiler_gnu+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063else
11064 cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070
11071int
11072main ()
11073{
11074#ifndef __GNUC__
11075 choke me
11076#endif
11077
11078 ;
11079 return 0;
11080}
11081_ACEOF
11082rm -f conftest.$ac_objext
11083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11084 (eval $ac_compile) 2>conftest.er1
a848cd7e 11085 ac_status=$?
ac1cb8d3
VS
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
a848cd7e
SC
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
89be85c2
VS
11091 { ac_try='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
ac1cb8d3
VS
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 ac_compiler_gnu=yes
11105else
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
11109ac_compiler_gnu=no
11110fi
ac1cb8d3 11111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11112ac_cv_c_compiler_gnu=$ac_compiler_gnu
11113
11114fi
11115echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11116echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11117GCC=`test $ac_compiler_gnu = yes && echo yes`
11118ac_test_CFLAGS=${CFLAGS+set}
11119ac_save_CFLAGS=$CFLAGS
11120CFLAGS="-g"
11121echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11122echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11123if test "${ac_cv_prog_cc_g+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125else
11126 cat >conftest.$ac_ext <<_ACEOF
11127/* confdefs.h. */
11128_ACEOF
11129cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF
11131/* end confdefs.h. */
11132
11133int
11134main ()
11135{
11136
11137 ;
11138 return 0;
11139}
11140_ACEOF
11141rm -f conftest.$ac_objext
11142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11143 (eval $ac_compile) 2>conftest.er1
a848cd7e 11144 ac_status=$?
ac1cb8d3
VS
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
a848cd7e
SC
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
89be85c2
VS
11150 { ac_try='test -z "$ac_c_werror_flag"
11151 || test ! -s conftest.err'
ac1cb8d3
VS
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; } &&
11157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_prog_cc_g=yes
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168ac_cv_prog_cc_g=no
11169fi
ac1cb8d3 11170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11171fi
11172echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11173echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11174if test "$ac_test_CFLAGS" = set; then
11175 CFLAGS=$ac_save_CFLAGS
11176elif test $ac_cv_prog_cc_g = yes; then
11177 if test "$GCC" = yes; then
11178 CFLAGS="-g -O2"
11179 else
11180 CFLAGS="-g"
11181 fi
11182else
11183 if test "$GCC" = yes; then
11184 CFLAGS="-O2"
11185 else
11186 CFLAGS=
11187 fi
11188fi
11189echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11190echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11191if test "${ac_cv_prog_cc_stdc+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 ac_cv_prog_cc_stdc=no
11195ac_save_CC=$CC
11196cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202#include <stdarg.h>
11203#include <stdio.h>
11204#include <sys/types.h>
11205#include <sys/stat.h>
11206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11207struct buf { int x; };
11208FILE * (*rcsopen) (struct buf *, struct stat *, int);
11209static char *e (p, i)
11210 char **p;
11211 int i;
11212{
11213 return p[i];
11214}
11215static char *f (char * (*g) (char **, int), char **p, ...)
11216{
11217 char *s;
11218 va_list v;
11219 va_start (v,p);
11220 s = g (p, va_arg (v,int));
11221 va_end (v);
11222 return s;
11223}
ac1cb8d3
VS
11224
11225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11226 function prototypes and stuff, but not '\xHH' hex character constants.
11227 These don't provoke an error unfortunately, instead are silently treated
11228 as 'x'. The following induces an error, until -std1 is added to get
11229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11230 array size at least. It's necessary to write '\x00'==0 to get something
11231 that's true only with -std1. */
11232int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11233
a848cd7e
SC
11234int test (int i, double x);
11235struct s1 {int (*f) (int a);};
11236struct s2 {int (*f) (double a);};
11237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11238int argc;
11239char **argv;
11240int
11241main ()
11242{
11243return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11244 ;
11245 return 0;
11246}
11247_ACEOF
11248# Don't try gcc -ansi; that turns off useful extensions and
11249# breaks some systems' header files.
11250# AIX -qlanglvl=ansi
11251# Ultrix and OSF/1 -std1
11252# HP-UX 10.20 and later -Ae
11253# HP-UX older versions -Aa -D_HPUX_SOURCE
11254# SVR4 -Xc -D__EXTENSIONS__
11255for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11256do
11257 CC="$ac_save_CC $ac_arg"
11258 rm -f conftest.$ac_objext
11259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11260 (eval $ac_compile) 2>conftest.er1
a848cd7e 11261 ac_status=$?
ac1cb8d3
VS
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
a848cd7e
SC
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
89be85c2
VS
11267 { ac_try='test -z "$ac_c_werror_flag"
11268 || test ! -s conftest.err'
ac1cb8d3
VS
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_prog_cc_stdc=$ac_arg
11281break
11282else
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286fi
ac1cb8d3 11287rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11288done
11289rm -f conftest.$ac_ext conftest.$ac_objext
11290CC=$ac_save_CC
11291
11292fi
11293
11294case "x$ac_cv_prog_cc_stdc" in
11295 x|xno)
11296 echo "$as_me:$LINENO: result: none needed" >&5
11297echo "${ECHO_T}none needed" >&6 ;;
11298 *)
11299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11300echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11301 CC="$CC $ac_cv_prog_cc_stdc" ;;
11302esac
11303
11304# Some people use a C++ compiler to compile C. Since we use `exit',
11305# in C++ we need to declare it. In case someone uses the same compiler
11306# for both compiling C and C++ we need to have the C++ compiler decide
11307# the declaration of exit, since it's the most demanding environment.
11308cat >conftest.$ac_ext <<_ACEOF
11309#ifndef __cplusplus
11310 choke me
11311#endif
11312_ACEOF
11313rm -f conftest.$ac_objext
11314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11315 (eval $ac_compile) 2>conftest.er1
a848cd7e 11316 ac_status=$?
ac1cb8d3
VS
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
a848cd7e
SC
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
89be85c2
VS
11322 { ac_try='test -z "$ac_c_werror_flag"
11323 || test ! -s conftest.err'
ac1cb8d3
VS
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 for ac_declaration in \
ac1cb8d3 11336 '' \
a848cd7e
SC
11337 'extern "C" void std::exit (int) throw (); using std::exit;' \
11338 'extern "C" void std::exit (int); using std::exit;' \
11339 'extern "C" void exit (int) throw ();' \
11340 'extern "C" void exit (int);' \
11341 'void exit (int);'
11342do
11343 cat >conftest.$ac_ext <<_ACEOF
11344/* confdefs.h. */
11345_ACEOF
11346cat confdefs.h >>conftest.$ac_ext
11347cat >>conftest.$ac_ext <<_ACEOF
11348/* end confdefs.h. */
de59c161 11349$ac_declaration
ac1cb8d3 11350#include <stdlib.h>
a848cd7e
SC
11351int
11352main ()
11353{
11354exit (42);
11355 ;
11356 return 0;
11357}
11358_ACEOF
11359rm -f conftest.$ac_objext
11360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11361 (eval $ac_compile) 2>conftest.er1
a848cd7e 11362 ac_status=$?
ac1cb8d3
VS
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
a848cd7e
SC
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
89be85c2
VS
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
ac1cb8d3
VS
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 :
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386continue
11387fi
ac1cb8d3 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11389 cat >conftest.$ac_ext <<_ACEOF
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
11395$ac_declaration
11396int
11397main ()
11398{
11399exit (42);
11400 ;
11401 return 0;
11402}
11403_ACEOF
11404rm -f conftest.$ac_objext
11405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11406 (eval $ac_compile) 2>conftest.er1
a848cd7e 11407 ac_status=$?
ac1cb8d3
VS
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
a848cd7e
SC
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
89be85c2
VS
11413 { ac_try='test -z "$ac_c_werror_flag"
11414 || test ! -s conftest.err'
ac1cb8d3
VS
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 break
11427else
11428 echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
11431fi
ac1cb8d3 11432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11433done
11434rm -f conftest*
11435if test -n "$ac_declaration"; then
11436 echo '#ifdef __cplusplus' >>confdefs.h
11437 echo $ac_declaration >>confdefs.h
11438 echo '#endif' >>confdefs.h
11439fi
11440
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445fi
ac1cb8d3 11446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11447ac_ext=c
11448ac_cpp='$CPP $CPPFLAGS'
11449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451ac_compiler_gnu=$ac_cv_c_compiler_gnu
11452
11453
95986553
DE
11454ac_ext=c
11455ac_cpp='$CPP $CPPFLAGS'
11456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459
11460echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11461echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11462if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464else
11465 cat >conftest.$ac_ext <<_ACEOF
11466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
11471
11472int
11473main ()
11474{
11475#ifndef __MWERKS__
11476 choke me
11477#endif
11478
11479 ;
11480 return 0;
11481}
11482_ACEOF
11483rm -f conftest.$ac_objext
11484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
89be85c2
VS
11492 { ac_try='test -z "$ac_c_werror_flag"
11493 || test ! -s conftest.err'
95986553
DE
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest.$ac_objext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 bakefile_compiler_mwerks=yes
11506else
11507 echo "$as_me: failed program was:" >&5
11508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510bakefile_compiler_mwerks=no
11511fi
11512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11513 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11514
11515fi
11516echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11517echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11518
11519MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11520ac_ext=c
11521ac_cpp='$CPP $CPPFLAGS'
11522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11524ac_compiler_gnu=$ac_cv_c_compiler_gnu
11525
11526
a848cd7e
SC
11527
11528ac_ext=c
11529ac_cpp='$CPP $CPPFLAGS'
11530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11532ac_compiler_gnu=$ac_cv_c_compiler_gnu
11533echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11534echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11535# On Suns, sometimes $CPP names a directory.
11536if test -n "$CPP" && test -d "$CPP"; then
11537 CPP=
11538fi
11539if test -z "$CPP"; then
11540 if test "${ac_cv_prog_CPP+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
11543 # Double quotes because CPP needs to be expanded
11544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11545 do
11546 ac_preproc_ok=false
11547for ac_c_preproc_warn_flag in '' yes
11548do
11549 # Use a header file that comes with gcc, so configuring glibc
11550 # with a fresh cross-compiler works.
11551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11552 # <limits.h> exists even on freestanding compilers.
11553 # On the NeXT, cc -E runs the code through the compiler's parser,
11554 # not just through cpp. "Syntax error" is here to catch this case.
11555 cat >conftest.$ac_ext <<_ACEOF
11556/* confdefs.h. */
11557_ACEOF
11558cat confdefs.h >>conftest.$ac_ext
11559cat >>conftest.$ac_ext <<_ACEOF
11560/* end confdefs.h. */
11561#ifdef __STDC__
11562# include <limits.h>
11563#else
11564# include <assert.h>
11565#endif
ac1cb8d3 11566 Syntax error
a848cd7e
SC
11567_ACEOF
11568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } >/dev/null; then
11576 if test -s conftest.err; then
11577 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11579 else
11580 ac_cpp_err=
11581 fi
11582else
11583 ac_cpp_err=yes
11584fi
11585if test -z "$ac_cpp_err"; then
11586 :
11587else
11588 echo "$as_me: failed program was:" >&5
11589sed 's/^/| /' conftest.$ac_ext >&5
11590
11591 # Broken: fails on valid input.
11592continue
11593fi
11594rm -f conftest.err conftest.$ac_ext
11595
11596 # OK, works on sane cases. Now check whether non-existent headers
11597 # can be detected and how.
11598 cat >conftest.$ac_ext <<_ACEOF
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604#include <ac_nonexistent.h>
11605_ACEOF
11606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } >/dev/null; then
11614 if test -s conftest.err; then
11615 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11617 else
11618 ac_cpp_err=
11619 fi
11620else
11621 ac_cpp_err=yes
11622fi
11623if test -z "$ac_cpp_err"; then
11624 # Broken: success on invalid input.
11625continue
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 # Passes both tests.
11631ac_preproc_ok=:
11632break
11633fi
11634rm -f conftest.err conftest.$ac_ext
11635
11636done
11637# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11638rm -f conftest.err conftest.$ac_ext
11639if $ac_preproc_ok; then
11640 break
11641fi
11642
11643 done
11644 ac_cv_prog_CPP=$CPP
11645
11646fi
11647 CPP=$ac_cv_prog_CPP
11648else
11649 ac_cv_prog_CPP=$CPP
11650fi
11651echo "$as_me:$LINENO: result: $CPP" >&5
11652echo "${ECHO_T}$CPP" >&6
11653ac_preproc_ok=false
11654for ac_c_preproc_warn_flag in '' yes
11655do
11656 # Use a header file that comes with gcc, so configuring glibc
11657 # with a fresh cross-compiler works.
11658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11659 # <limits.h> exists even on freestanding compilers.
11660 # On the NeXT, cc -E runs the code through the compiler's parser,
11661 # not just through cpp. "Syntax error" is here to catch this case.
11662 cat >conftest.$ac_ext <<_ACEOF
11663/* confdefs.h. */
11664_ACEOF
11665cat confdefs.h >>conftest.$ac_ext
11666cat >>conftest.$ac_ext <<_ACEOF
11667/* end confdefs.h. */
11668#ifdef __STDC__
11669# include <limits.h>
11670#else
11671# include <assert.h>
11672#endif
ac1cb8d3 11673 Syntax error
a848cd7e
SC
11674_ACEOF
11675if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11686 else
11687 ac_cpp_err=
11688 fi
11689else
11690 ac_cpp_err=yes
11691fi
11692if test -z "$ac_cpp_err"; then
11693 :
11694else
11695 echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 # Broken: fails on valid input.
11699continue
11700fi
11701rm -f conftest.err conftest.$ac_ext
11702
11703 # OK, works on sane cases. Now check whether non-existent headers
11704 # can be detected and how.
11705 cat >conftest.$ac_ext <<_ACEOF
11706/* confdefs.h. */
11707_ACEOF
11708cat confdefs.h >>conftest.$ac_ext
11709cat >>conftest.$ac_ext <<_ACEOF
11710/* end confdefs.h. */
11711#include <ac_nonexistent.h>
11712_ACEOF
11713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11715 ac_status=$?
11716 grep -v '^ *+' conftest.er1 >conftest.err
11717 rm -f conftest.er1
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } >/dev/null; then
11721 if test -s conftest.err; then
11722 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11724 else
11725 ac_cpp_err=
11726 fi
11727else
11728 ac_cpp_err=yes
11729fi
11730if test -z "$ac_cpp_err"; then
11731 # Broken: success on invalid input.
11732continue
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 # Passes both tests.
11738ac_preproc_ok=:
11739break
11740fi
11741rm -f conftest.err conftest.$ac_ext
11742
11743done
11744# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11745rm -f conftest.err conftest.$ac_ext
11746if $ac_preproc_ok; then
11747 :
11748else
11749 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11750See \`config.log' for more details." >&5
11751echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11752See \`config.log' for more details." >&2;}
11753 { (exit 1); exit 1; }; }
11754fi
11755
11756ac_ext=c
11757ac_cpp='$CPP $CPPFLAGS'
11758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760ac_compiler_gnu=$ac_cv_c_compiler_gnu
11761
11762
11763echo "$as_me:$LINENO: checking for egrep" >&5
11764echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11765if test "${ac_cv_prog_egrep+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767else
11768 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11769 then ac_cv_prog_egrep='grep -E'
11770 else ac_cv_prog_egrep='egrep'
11771 fi
11772fi
11773echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11774echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11775 EGREP=$ac_cv_prog_egrep
11776
11777
11778if test $ac_cv_c_compiler_gnu = yes; then
11779 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11780echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11781if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11783else
11784 ac_pattern="Autoconf.*'x'"
11785 cat >conftest.$ac_ext <<_ACEOF
11786/* confdefs.h. */
11787_ACEOF
11788cat confdefs.h >>conftest.$ac_ext
11789cat >>conftest.$ac_ext <<_ACEOF
11790/* end confdefs.h. */
11791#include <sgtty.h>
11792Autoconf TIOCGETP
11793_ACEOF
11794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11795 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11796 ac_cv_prog_gcc_traditional=yes
11797else
11798 ac_cv_prog_gcc_traditional=no
11799fi
11800rm -f conftest*
11801
11802
11803 if test $ac_cv_prog_gcc_traditional = no; then
11804 cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h. */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h. */
11810#include <termio.h>
11811Autoconf TCGETA
11812_ACEOF
11813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11814 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11815 ac_cv_prog_gcc_traditional=yes
11816fi
11817rm -f conftest*
11818
11819 fi
11820fi
11821echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11822echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11823 if test $ac_cv_prog_gcc_traditional = yes; then
11824 CC="$CC -traditional"
11825 fi
11826fi
11827
11828
11829
11830
11831ac_ext=cc
11832ac_cpp='$CXXCPP $CPPFLAGS'
11833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11836
11837
11838CXXFLAGS=${CXXFLAGS:=}
11839ac_ext=cc
11840ac_cpp='$CXXCPP $CPPFLAGS'
11841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11844if test -n "$ac_tool_prefix"; then
11845 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11846 do
11847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11848set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11849echo "$as_me:$LINENO: checking for $ac_word" >&5
11850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11851if test "${ac_cv_prog_CXX+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853else
11854 if test -n "$CXX"; then
11855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11856else
11857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858for as_dir in $PATH
11859do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11867 fi
11868done
11869done
11870
11871fi
11872fi
11873CXX=$ac_cv_prog_CXX
11874if test -n "$CXX"; then
11875 echo "$as_me:$LINENO: result: $CXX" >&5
11876echo "${ECHO_T}$CXX" >&6
11877else
11878 echo "$as_me:$LINENO: result: no" >&5
11879echo "${ECHO_T}no" >&6
11880fi
11881
11882 test -n "$CXX" && break
11883 done
11884fi
11885if test -z "$CXX"; then
11886 ac_ct_CXX=$CXX
11887 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11888do
11889 # Extract the first word of "$ac_prog", so it can be a program name with args.
11890set dummy $ac_prog; ac_word=$2
11891echo "$as_me:$LINENO: checking for $ac_word" >&5
11892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11893if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895else
11896 if test -n "$ac_ct_CXX"; then
11897 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11898else
11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11906 ac_cv_prog_ac_ct_CXX="$ac_prog"
11907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11909 fi
11910done
11911done
11912
11913fi
11914fi
11915ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11916if test -n "$ac_ct_CXX"; then
11917 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11918echo "${ECHO_T}$ac_ct_CXX" >&6
11919else
11920 echo "$as_me:$LINENO: result: no" >&5
11921echo "${ECHO_T}no" >&6
11922fi
11923
11924 test -n "$ac_ct_CXX" && break
11925done
11926test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11927
11928 CXX=$ac_ct_CXX
11929fi
11930
11931
11932# Provide some information about the compiler.
11933echo "$as_me:$LINENO:" \
11934 "checking for C++ compiler version" >&5
11935ac_compiler=`set X $ac_compile; echo $2`
11936{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11937 (eval $ac_compiler --version </dev/null >&5) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }
11941{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11942 (eval $ac_compiler -v </dev/null >&5) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }
11946{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11947 (eval $ac_compiler -V </dev/null >&5) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }
11951
11952echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11953echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11954if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956else
11957 cat >conftest.$ac_ext <<_ACEOF
11958/* confdefs.h. */
11959_ACEOF
11960cat confdefs.h >>conftest.$ac_ext
11961cat >>conftest.$ac_ext <<_ACEOF
11962/* end confdefs.h. */
11963
11964int
11965main ()
11966{
11967#ifndef __GNUC__
11968 choke me
11969#endif
11970
11971 ;
11972 return 0;
11973}
11974_ACEOF
11975rm -f conftest.$ac_objext
11976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11977 (eval $ac_compile) 2>conftest.er1
a848cd7e 11978 ac_status=$?
ac1cb8d3
VS
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
a848cd7e
SC
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
89be85c2
VS
11984 { ac_try='test -z "$ac_cxx_werror_flag"
11985 || test ! -s conftest.err'
ac1cb8d3
VS
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; } &&
11991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997 ac_compiler_gnu=yes
11998else
11999 echo "$as_me: failed program was:" >&5
12000sed 's/^/| /' conftest.$ac_ext >&5
12001
12002ac_compiler_gnu=no
12003fi
ac1cb8d3 12004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12005ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12006
12007fi
12008echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12009echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12010GXX=`test $ac_compiler_gnu = yes && echo yes`
12011ac_test_CXXFLAGS=${CXXFLAGS+set}
12012ac_save_CXXFLAGS=$CXXFLAGS
12013CXXFLAGS="-g"
12014echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12015echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12016if test "${ac_cv_prog_cxx_g+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018else
12019 cat >conftest.$ac_ext <<_ACEOF
12020/* confdefs.h. */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h. */
12025
12026int
12027main ()
12028{
12029
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034rm -f conftest.$ac_objext
12035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12036 (eval $ac_compile) 2>conftest.er1
a848cd7e 12037 ac_status=$?
ac1cb8d3
VS
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
a848cd7e
SC
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
89be85c2
VS
12043 { ac_try='test -z "$ac_cxx_werror_flag"
12044 || test ! -s conftest.err'
ac1cb8d3
VS
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_cv_prog_cxx_g=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061ac_cv_prog_cxx_g=no
12062fi
ac1cb8d3 12063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12064fi
12065echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12066echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12067if test "$ac_test_CXXFLAGS" = set; then
12068 CXXFLAGS=$ac_save_CXXFLAGS
12069elif test $ac_cv_prog_cxx_g = yes; then
12070 if test "$GXX" = yes; then
12071 CXXFLAGS="-g -O2"
12072 else
12073 CXXFLAGS="-g"
12074 fi
12075else
12076 if test "$GXX" = yes; then
12077 CXXFLAGS="-O2"
12078 else
12079 CXXFLAGS=
12080 fi
12081fi
12082for ac_declaration in \
ac1cb8d3 12083 '' \
a848cd7e
SC
12084 'extern "C" void std::exit (int) throw (); using std::exit;' \
12085 'extern "C" void std::exit (int); using std::exit;' \
12086 'extern "C" void exit (int) throw ();' \
12087 'extern "C" void exit (int);' \
12088 'void exit (int);'
12089do
12090 cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
de59c161 12096$ac_declaration
ac1cb8d3 12097#include <stdlib.h>
a848cd7e
SC
12098int
12099main ()
12100{
12101exit (42);
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext
12107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12108 (eval $ac_compile) 2>conftest.er1
a848cd7e 12109 ac_status=$?
ac1cb8d3
VS
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
a848cd7e
SC
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
89be85c2
VS
12115 { ac_try='test -z "$ac_cxx_werror_flag"
12116 || test ! -s conftest.err'
ac1cb8d3
VS
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 :
12129else
12130 echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133continue
12134fi
ac1cb8d3 12135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12136 cat >conftest.$ac_ext <<_ACEOF
12137/* confdefs.h. */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
12141/* end confdefs.h. */
12142$ac_declaration
12143int
12144main ()
12145{
12146exit (42);
12147 ;
12148 return 0;
12149}
12150_ACEOF
12151rm -f conftest.$ac_objext
12152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12153 (eval $ac_compile) 2>conftest.er1
a848cd7e 12154 ac_status=$?
ac1cb8d3
VS
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
a848cd7e
SC
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
89be85c2
VS
12160 { ac_try='test -z "$ac_cxx_werror_flag"
12161 || test ! -s conftest.err'
ac1cb8d3
VS
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 break
12174else
12175 echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
12178fi
ac1cb8d3 12179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12180done
12181rm -f conftest*
12182if test -n "$ac_declaration"; then
12183 echo '#ifdef __cplusplus' >>confdefs.h
12184 echo $ac_declaration >>confdefs.h
12185 echo '#endif' >>confdefs.h
12186fi
12187
12188ac_ext=cc
12189ac_cpp='$CXXCPP $CPPFLAGS'
12190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12193
12194
95986553
DE
12195ac_ext=cc
12196ac_cpp='$CXXCPP $CPPFLAGS'
12197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12200
12201echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12202echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12203if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12205else
12206 cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212
12213int
12214main ()
12215{
12216#ifndef __MWERKS__
12217 choke me
12218#endif
12219
12220 ;
12221 return 0;
12222}
12223_ACEOF
12224rm -f conftest.$ac_objext
12225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12226 (eval $ac_compile) 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
89be85c2
VS
12233 { ac_try='test -z "$ac_cxx_werror_flag"
12234 || test ! -s conftest.err'
95986553
DE
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest.$ac_objext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 bakefile_compiler_mwerks=yes
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251bakefile_compiler_mwerks=no
12252fi
12253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12254 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12255
12256fi
12257echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12258echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12259
12260MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12261ac_ext=cc
12262ac_cpp='$CXXCPP $CPPFLAGS'
12263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12266
12267
12268
a848cd7e
SC
12269ac_ext=c
12270ac_cpp='$CPP $CPPFLAGS'
12271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12273ac_compiler_gnu=$ac_cv_c_compiler_gnu
12274
12275
a848cd7e
SC
12276if test -n "$ac_tool_prefix"; then
12277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12278set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12279echo "$as_me:$LINENO: checking for $ac_word" >&5
12280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12281if test "${ac_cv_prog_RANLIB+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283else
12284 if test -n "$RANLIB"; then
12285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12286else
12287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288for as_dir in $PATH
12289do
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12294 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 break 2
12297 fi
12298done
12299done
12300
12301fi
12302fi
12303RANLIB=$ac_cv_prog_RANLIB
12304if test -n "$RANLIB"; then
12305 echo "$as_me:$LINENO: result: $RANLIB" >&5
12306echo "${ECHO_T}$RANLIB" >&6
12307else
12308 echo "$as_me:$LINENO: result: no" >&5
12309echo "${ECHO_T}no" >&6
12310fi
12311
12312fi
12313if test -z "$ac_cv_prog_RANLIB"; then
12314 ac_ct_RANLIB=$RANLIB
12315 # Extract the first word of "ranlib", so it can be a program name with args.
12316set dummy ranlib; ac_word=$2
12317echo "$as_me:$LINENO: checking for $ac_word" >&5
12318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12319if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321else
12322 if test -n "$ac_ct_RANLIB"; then
12323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12324else
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_prog_ac_ct_RANLIB="ranlib"
12333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336done
12337done
12338
12339 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12340fi
12341fi
12342ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12343if test -n "$ac_ct_RANLIB"; then
12344 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12345echo "${ECHO_T}$ac_ct_RANLIB" >&6
12346else
12347 echo "$as_me:$LINENO: result: no" >&5
12348echo "${ECHO_T}no" >&6
12349fi
12350
12351 RANLIB=$ac_ct_RANLIB
12352else
12353 RANLIB="$ac_cv_prog_RANLIB"
12354fi
12355
12356
12357# Extract the first word of "ar", so it can be a program name with args.
12358set dummy ar; ac_word=$2
12359echo "$as_me:$LINENO: checking for $ac_word" >&5
12360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12361if test "${ac_cv_prog_AR+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363else
12364 if test -n "$AR"; then
12365 ac_cv_prog_AR="$AR" # Let the user override the test.
12366else
12367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in $PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12374 ac_cv_prog_AR="ar"
12375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12377 fi
12378done
12379done
12380
12381fi
12382fi
12383AR=$ac_cv_prog_AR
12384if test -n "$AR"; then
12385 echo "$as_me:$LINENO: result: $AR" >&5
12386echo "${ECHO_T}$AR" >&6
12387else
12388 echo "$as_me:$LINENO: result: no" >&5
12389echo "${ECHO_T}no" >&6
12390fi
12391
12392if test "x$AR" = "x" ; then
77ffb593
JS
12393 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12394echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12395 { (exit 1); exit 1; }; }
12396fi
12397
12398# Find a good install program. We prefer a C program (faster),
12399# so one script is as good as another. But avoid the broken or
12400# incompatible versions:
12401# SysV /etc/install, /usr/sbin/install
12402# SunOS /usr/etc/install
12403# IRIX /sbin/install
12404# AIX /bin/install
12405# AmigaOS /C/install, which installs bootblocks on floppy discs
12406# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12407# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12408# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12409# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12410# ./install, which can be erroneously created by make from ./install.sh.
12411echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12412echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12413if test -z "$INSTALL"; then
12414if test "${ac_cv_path_install+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
12422 # Account for people who put trailing slashes in PATH elements.
12423case $as_dir/ in
12424 ./ | .// | /cC/* | \
12425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12426 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12427 /usr/ucb/* ) ;;
12428 *)
12429 # OSF1 and SCO ODT 3.0 have their own names for install.
12430 # Don't use installbsd from OSF since it installs stuff as root
12431 # by default.
12432 for ac_prog in ginstall scoinst install; do
12433 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12434 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12435 if test $ac_prog = install &&
12436 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12437 # AIX install. It has an incompatible calling convention.
12438 :
12439 elif test $ac_prog = install &&
12440 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12441 # program-specific install script used by HP pwplus--don't use.
12442 :
12443 else
12444 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12445 break 3
12446 fi
12447 fi
a848cd7e
SC
12448 done
12449 done
12450 ;;
12451esac
12452done
12453
12454
12455fi
12456 if test "${ac_cv_path_install+set}" = set; then
12457 INSTALL=$ac_cv_path_install
12458 else
12459 # As a last resort, use the slow shell script. We don't cache a
12460 # path for INSTALL within a source directory, because that will
12461 # break other packages using the cache if that directory is
12462 # removed, or if the path is relative.
12463 INSTALL=$ac_install_sh
12464 fi
12465fi
12466echo "$as_me:$LINENO: result: $INSTALL" >&5
12467echo "${ECHO_T}$INSTALL" >&6
12468
12469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12470# It thinks the first close brace ends the variable substitution.
12471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12472
12473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12474
12475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12476
12477
12478case ${INSTALL} in
12479 /* ) # Absolute
12480 ;;
12481 ?:* ) # Drive letter, considered as absolute.
12482 ;;
12483 *)
12484 INSTALL=`pwd`/${INSTALL} ;;
12485esac
12486
a848cd7e
SC
12487
12488case "${host}" in
12489
12490 powerpc-*-darwin* )
12491 INSTALL_PROGRAM="cp -fp"
12492 INSTALL_DATA="cp -fp"
12493 ;;
12494 *)
12495 ;;
12496esac
12497
12498# Extract the first word of "strip", so it can be a program name with args.
12499set dummy strip; ac_word=$2
12500echo "$as_me:$LINENO: checking for $ac_word" >&5
12501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12502if test "${ac_cv_prog_STRIP+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504else
12505 if test -n "$STRIP"; then
12506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12507else
12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12515 ac_cv_prog_STRIP="strip"
12516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12518 fi
12519done
12520done
12521
12522 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12523fi
12524fi
12525STRIP=$ac_cv_prog_STRIP
12526if test -n "$STRIP"; then
12527 echo "$as_me:$LINENO: result: $STRIP" >&5
12528echo "${ECHO_T}$STRIP" >&6
12529else
12530 echo "$as_me:$LINENO: result: no" >&5
12531echo "${ECHO_T}no" >&6
12532fi
12533
12534
12535echo "$as_me:$LINENO: checking if make is GNU make" >&5
12536echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12537if test "${wx_cv_prog_makeisgnu+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539else
12540
12541 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12542 egrep -s GNU > /dev/null); then
12543 wx_cv_prog_makeisgnu="yes"
12544 else
12545 wx_cv_prog_makeisgnu="no"
12546 fi
12547
12548fi
12549echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12550echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12551
12552if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12553 IF_GNU_MAKE=""
12554else
12555 IF_GNU_MAKE="#"
12556fi
12557
12558
12559
12560if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12561echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12562echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12563if test "${wx_cv_prog_makevpath+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565else
12566
12567cat - << EOF > confMake
12568check : file
12569 cp \$? \$@
12570 cp \$? final_file
12571EOF
12572
12573if test ! -d sub ; then
12574 mkdir sub
12575fi
12576echo dummy > sub/file
12577${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12578RESULT=$?
12579rm -f sub/file check final_file confMake
12580rmdir sub
12581if test "$RESULT" = 0; then
12582 wx_cv_prog_makevpath="yes"
12583else
12584 wx_cv_prog_makevpath="no"
12585fi
12586
12587fi
12588echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12589echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12590
12591if test "x$wx_cv_prog_makevpath" != "xyes"; then
12592{ { echo "$as_me:$LINENO: error:
12593You need a make-utility that is able to use the variable
12594VPATH correctly.
12595If your version of make does not support VPATH correctly,
12596please install GNU-make (possibly as gmake), and start
12597configure with the following command:
12598export MAKE=gmake; ./configure for sh-type shells
12599setenv MAKE gmake; ./configure for csh-type shells
12600Also please do remember to use gmake in this case every time
12601you are trying to compile.
12602" >&5
12603echo "$as_me: error:
12604You need a make-utility that is able to use the variable
12605VPATH correctly.
12606If your version of make does not support VPATH correctly,
12607please install GNU-make (possibly as gmake), and start
12608configure with the following command:
12609export MAKE=gmake; ./configure for sh-type shells
12610setenv MAKE gmake; ./configure for csh-type shells
12611Also please do remember to use gmake in this case every time
12612you are trying to compile.
12613" >&2;}
12614 { (exit 1); exit 1; }; }
12615fi fi
12616echo "$as_me:$LINENO: checking whether ln -s works" >&5
12617echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12618LN_S=$as_ln_s
12619if test "$LN_S" = "ln -s"; then
12620 echo "$as_me:$LINENO: result: yes" >&5
12621echo "${ECHO_T}yes" >&6
12622else
12623 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12624echo "${ECHO_T}no, using $LN_S" >&6
12625fi
12626
12627
12628
4d7ec9f1
DE
12629case "${host}" in
12630 powerpc-*-darwin* )
12631 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
12632echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12634/* confdefs.h. */
12635_ACEOF
12636cat confdefs.h >>conftest.$ac_ext
12637cat >>conftest.$ac_ext <<_ACEOF
12638/* end confdefs.h. */
12639
12640int
12641main ()
12642{
12643#ifndef __POWERPC__
12644 choke me for lack of PowerPC
12645#endif
12646
12647 ;
12648 return 0;
12649}
12650_ACEOF
12651rm -f conftest.$ac_objext
12652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 echo "$as_me:$LINENO: result: yes" >&5
12674echo "${ECHO_T}yes" >&6
12675else
12676 echo "$as_me: failed program was:" >&5
12677sed 's/^/| /' conftest.$ac_ext >&5
12678
12679echo "$as_me:$LINENO: result: no" >&5
12680echo "${ECHO_T}no" >&6
12681 cat >>confdefs.h <<\_ACEOF
12682#define __POWERPC__ 1
12683_ACEOF
12684
12685
12686fi
12687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12688 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
12689echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
12690 cat >conftest.$ac_ext <<_ACEOF
12691/* confdefs.h. */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
12695/* end confdefs.h. */
12696#include <CoreFoundation/CFBase.h>
12697
12698int
12699main ()
12700{
12701
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706rm -f conftest.$ac_objext
12707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
12715 { ac_try='test -z "$ac_c_werror_flag"
12716 || test ! -s conftest.err'
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 echo "$as_me:$LINENO: result: yes" >&5
12729echo "${ECHO_T}yes" >&6
12730else
12731 echo "$as_me: failed program was:" >&5
12732sed 's/^/| /' conftest.$ac_ext >&5
12733
12734echo "$as_me:$LINENO: result: no" >&5
12735echo "${ECHO_T}no" >&6
12736 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
12737echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
12738 cat >conftest.$ac_ext <<_ACEOF
12739/* confdefs.h. */
12740_ACEOF
12741cat confdefs.h >>conftest.$ac_ext
12742cat >>conftest.$ac_ext <<_ACEOF
12743/* end confdefs.h. */
12744#define __CF_USE_FRAMEWORK_INCLUDES__
12745#include <CoreFoundation/CFBase.h>
12746
12747int
12748main ()
12749{
12750
12751 ;
12752 return 0;
12753}
12754_ACEOF
12755rm -f conftest.$ac_objext
12756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_c_werror_flag"
12765 || test ! -s conftest.err'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; } &&
12771 { ac_try='test -s conftest.$ac_objext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 echo "$as_me:$LINENO: result: yes" >&5
12778echo "${ECHO_T}yes" >&6
12779 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
12780else
12781 echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
12784{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
12785See \`config.log' for more details." >&5
12786echo "$as_me: error: no. CoreFoundation not available.
12787See \`config.log' for more details." >&2;}
12788 { (exit 1); exit 1; }; }
12789
12790fi
12791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12792
12793
12794fi
12795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12796 ;;
12797esac
12798
a848cd7e
SC
12799case "${host}" in
12800 *-pc-os2_emx | *-pc-os2-emx )
12801 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12802 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12803echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12804if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12806else
12807 ac_check_lib_save_LIBS=$LIBS
12808LIBS="-lcExt $LIBS"
12809cat >conftest.$ac_ext <<_ACEOF
12810/* confdefs.h. */
12811_ACEOF
12812cat confdefs.h >>conftest.$ac_ext
12813cat >>conftest.$ac_ext <<_ACEOF
12814/* end confdefs.h. */
12815
12816/* Override any gcc2 internal prototype to avoid an error. */
12817#ifdef __cplusplus
12818extern "C"
12819#endif
12820/* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12822char drand48 ();
12823int
12824main ()
12825{
12826drand48 ();
12827 ;
12828 return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext conftest$ac_exeext
12832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12833 (eval $ac_link) 2>conftest.er1
a848cd7e 12834 ac_status=$?
ac1cb8d3
VS
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
a848cd7e
SC
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
89be85c2
VS
12840 { ac_try='test -z "$ac_c_werror_flag"
12841 || test ! -s conftest.err'
ac1cb8d3
VS
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 ac_cv_lib_cExt_drand48=yes
12854else
12855 echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
12858ac_cv_lib_cExt_drand48=no
12859fi
ac1cb8d3
VS
12860rm -f conftest.err conftest.$ac_objext \
12861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12862LIBS=$ac_check_lib_save_LIBS
12863fi
12864echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12865echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12866if test $ac_cv_lib_cExt_drand48 = yes; then
12867 LIBS="$LIBS -lcExt"
12868fi
12869
12870 else
12871 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12872 fi
391a765e 12873 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
12874echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12875if test "${wx_cv_gccversion+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878
391a765e
VS
12879 if test "$cross_compiling" = yes; then
12880 wx_cv_gccversion="EMX2"
12881
12882else
12883 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889
391a765e 12890 #include <stdio.h>
a848cd7e 12891
391a765e
VS
12892 int main()
12893 {
12894 FILE *f=fopen("conftestval", "w");
12895 if (!f) exit(1);
12896 fprintf(f,
a848cd7e 12897 #if (__GNUC__ < 3)
391a765e
VS
12898 "EMX2"
12899 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12900 "EMX3"
12901 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
12902 "Innotek5"
12903 #else
12904 "Innotek6"
a848cd7e 12905 #endif
391a765e
VS
12906 );
12907 exit(0);
12908 }
a848cd7e 12909
a848cd7e 12910_ACEOF
391a765e
VS
12911rm -f conftest$ac_exeext
12912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12913 (eval $ac_link) 2>&5
ac1cb8d3
VS
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 12916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
391a765e 12922 wx_cv_gccversion=`cat conftestval`
a848cd7e 12923else
391a765e
VS
12924 echo "$as_me: program exited with status $ac_status" >&5
12925echo "$as_me: failed program was:" >&5
a848cd7e
SC
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
391a765e
VS
12928( exit $ac_status )
12929wx_cv_gccversion="EMX2"
a848cd7e 12930fi
391a765e 12931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 12932fi
a848cd7e
SC
12933
12934fi
12935echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12936echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 12937 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
12938 LIBS="$LIBS -lstdcpp"
12939 LDFLAGS="$LDFLAGS -Zsysv-signals"
12940 else
391a765e 12941 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
12942 LIBS="$LIBS -lstdcxx"
12943 LDFLAGS="$LDFLAGS -Zsysv-signals"
12944 else
12945 LIBS="$LIBS -lstdc++"
12946 fi
12947 fi
94acd38e
DE
12948 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
12949 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
12950echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
12951 wxUSE_OMF=yes
12952 fi
a848cd7e 12953 if test "$wxUSE_OMF" = "yes"; then
de59c161 12954 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12955 fi
12956 ;;
12957 *)
12958
12959
12960
12961 ac_ext=cc
12962ac_cpp='$CXXCPP $CPPFLAGS'
12963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12966
12967
95986553 12968 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
12969echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12970if test "${ac_cv_string_strcasecmp+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12972else
12973
12974 cat >conftest.$ac_ext <<_ACEOF
12975/* confdefs.h. */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h. */
12980
12981 #include <string.h>
12982
12983int
12984main ()
12985{
12986
12987 strcasecmp("foo", "bar");
12988
12989 ;
12990 return 0;
12991}
12992_ACEOF
12993rm -f conftest.$ac_objext conftest$ac_exeext
12994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12995 (eval $ac_link) 2>conftest.er1
a848cd7e 12996 ac_status=$?
ac1cb8d3
VS
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
a848cd7e
SC
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
89be85c2
VS
13002 { ac_try='test -z "$ac_cxx_werror_flag"
13003 || test ! -s conftest.err'
ac1cb8d3
VS
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_cv_string_strcasecmp=yes
13016else
13017 echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
13020ac_cv_string_strcasecmp=no
13021
13022fi
ac1cb8d3
VS
13023rm -f conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13025
13026fi
13027echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13028echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13029
13030 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13031 cat >>confdefs.h <<\_ACEOF
13032#define HAVE_STRCASECMP_IN_STRING_H 1
13033_ACEOF
13034
13035 else
13036 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13037echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13038if test "${ac_cv_strings_strcasecmp+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040else
13041
13042 cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
13048
13049 #include <strings.h>
13050
13051int
13052main ()
13053{
13054
13055 strcasecmp("foo", "bar");
13056
13057 ;
13058 return 0;
13059}
13060_ACEOF
13061rm -f conftest.$ac_objext conftest$ac_exeext
13062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13063 (eval $ac_link) 2>conftest.er1
a848cd7e 13064 ac_status=$?
ac1cb8d3
VS
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
a848cd7e
SC
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
89be85c2
VS
13070 { ac_try='test -z "$ac_cxx_werror_flag"
13071 || test ! -s conftest.err'
ac1cb8d3
VS
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_strings_strcasecmp=yes
13084else
13085 echo "$as_me: failed program was:" >&5
13086sed 's/^/| /' conftest.$ac_ext >&5
13087
13088ac_cv_strings_strcasecmp=no
13089
13090fi
ac1cb8d3
VS
13091rm -f conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13093
13094fi
13095echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13096echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13097
0c3c69fc 13098 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13099 cat >>confdefs.h <<\_ACEOF
13100#define HAVE_STRCASECMP_IN_STRINGS_H 1
13101_ACEOF
13102
13103 else
13104 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13105echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13106 { (exit 1); exit 1; }; }
13107 fi
13108 fi
13109
13110 ac_ext=c
13111ac_cpp='$CPP $CPPFLAGS'
13112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13114ac_compiler_gnu=$ac_cv_c_compiler_gnu
13115
13116 ;;
13117esac
13118
13119
13120echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13121echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13122if test "${ac_cv_header_stdc+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124else
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131#include <stdlib.h>
13132#include <stdarg.h>
13133#include <string.h>
13134#include <float.h>
13135
13136int
13137main ()
13138{
13139
13140 ;
13141 return 0;
13142}
13143_ACEOF
13144rm -f conftest.$ac_objext
13145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13146 (eval $ac_compile) 2>conftest.er1
a848cd7e 13147 ac_status=$?
ac1cb8d3
VS
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
a848cd7e
SC
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
89be85c2
VS
13153 { ac_try='test -z "$ac_c_werror_flag"
13154 || test ! -s conftest.err'
ac1cb8d3
VS
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; } &&
13160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_header_stdc=yes
13167else
13168 echo "$as_me: failed program was:" >&5
13169sed 's/^/| /' conftest.$ac_ext >&5
13170
13171ac_cv_header_stdc=no
13172fi
ac1cb8d3 13173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13174
13175if test $ac_cv_header_stdc = yes; then
13176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13177 cat >conftest.$ac_ext <<_ACEOF
13178/* confdefs.h. */
13179_ACEOF
13180cat confdefs.h >>conftest.$ac_ext
13181cat >>conftest.$ac_ext <<_ACEOF
13182/* end confdefs.h. */
13183#include <string.h>
13184
13185_ACEOF
13186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13187 $EGREP "memchr" >/dev/null 2>&1; then
13188 :
13189else
13190 ac_cv_header_stdc=no
13191fi
13192rm -f conftest*
13193
13194fi
13195
13196if test $ac_cv_header_stdc = yes; then
13197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13198 cat >conftest.$ac_ext <<_ACEOF
13199/* confdefs.h. */
13200_ACEOF
13201cat confdefs.h >>conftest.$ac_ext
13202cat >>conftest.$ac_ext <<_ACEOF
13203/* end confdefs.h. */
13204#include <stdlib.h>
13205
13206_ACEOF
13207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13208 $EGREP "free" >/dev/null 2>&1; then
13209 :
13210else
13211 ac_cv_header_stdc=no
13212fi
13213rm -f conftest*
13214
13215fi
13216
13217if test $ac_cv_header_stdc = yes; then
13218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13219 if test "$cross_compiling" = yes; then
13220 :
13221else
13222 cat >conftest.$ac_ext <<_ACEOF
13223/* confdefs.h. */
13224_ACEOF
13225cat confdefs.h >>conftest.$ac_ext
13226cat >>conftest.$ac_ext <<_ACEOF
13227/* end confdefs.h. */
13228#include <ctype.h>
13229#if ((' ' & 0x0FF) == 0x020)
13230# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13231# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13232#else
13233# define ISLOWER(c) \
ac1cb8d3
VS
13234 (('a' <= (c) && (c) <= 'i') \
13235 || ('j' <= (c) && (c) <= 'r') \
13236 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13237# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13238#endif
13239
13240#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13241int
13242main ()
13243{
13244 int i;
13245 for (i = 0; i < 256; i++)
13246 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13247 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13248 exit(2);
13249 exit (0);
13250}
13251_ACEOF
13252rm -f conftest$ac_exeext
13253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13254 (eval $ac_link) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 :
13264else
13265 echo "$as_me: program exited with status $ac_status" >&5
13266echo "$as_me: failed program was:" >&5
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
13269( exit $ac_status )
13270ac_cv_header_stdc=no
13271fi
ac1cb8d3 13272rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13273fi
13274fi
13275fi
13276echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13277echo "${ECHO_T}$ac_cv_header_stdc" >&6
13278if test $ac_cv_header_stdc = yes; then
13279
13280cat >>confdefs.h <<\_ACEOF
13281#define STDC_HEADERS 1
13282_ACEOF
13283
13284fi
13285
13286# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13297 inttypes.h stdint.h unistd.h
a848cd7e
SC
13298do
13299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13300echo "$as_me:$LINENO: checking for $ac_header" >&5
13301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13302if eval "test \"\${$as_ac_Header+set}\" = set"; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13304else
13305 cat >conftest.$ac_ext <<_ACEOF
13306/* confdefs.h. */
13307_ACEOF
13308cat confdefs.h >>conftest.$ac_ext
13309cat >>conftest.$ac_ext <<_ACEOF
13310/* end confdefs.h. */
13311$ac_includes_default
13312
13313#include <$ac_header>
13314_ACEOF
13315rm -f conftest.$ac_objext
13316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13317 (eval $ac_compile) 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); } &&
89be85c2
VS
13324 { ac_try='test -z "$ac_c_werror_flag"
13325 || test ! -s conftest.err'
ac1cb8d3
VS
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 eval "$as_ac_Header=yes"
13338else
13339 echo "$as_me: failed program was:" >&5
13340sed 's/^/| /' conftest.$ac_ext >&5
13341
13342eval "$as_ac_Header=no"
13343fi
ac1cb8d3 13344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13345fi
13346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13348if test `eval echo '${'$as_ac_Header'}'` = yes; then
13349 cat >>confdefs.h <<_ACEOF
13350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13351_ACEOF
13352
13353fi
13354
13355done
13356
13357
13358
13359for ac_header in stdlib.h
13360do
13361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13362if eval "test \"\${$as_ac_Header+set}\" = set"; then
13363 echo "$as_me:$LINENO: checking for $ac_header" >&5
13364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13365if eval "test \"\${$as_ac_Header+set}\" = set"; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367fi
13368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13370else
13371 # Is the header compilable?
13372echo "$as_me:$LINENO: checking $ac_header usability" >&5
13373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13374cat >conftest.$ac_ext <<_ACEOF
13375/* confdefs.h. */
13376_ACEOF
13377cat confdefs.h >>conftest.$ac_ext
13378cat >>conftest.$ac_ext <<_ACEOF
13379/* end confdefs.h. */
13380$ac_includes_default
13381#include <$ac_header>
13382_ACEOF
13383rm -f conftest.$ac_objext
13384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13385 (eval $ac_compile) 2>conftest.er1
a848cd7e 13386 ac_status=$?
ac1cb8d3
VS
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
a848cd7e
SC
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
89be85c2
VS
13392 { ac_try='test -z "$ac_c_werror_flag"
13393 || test ! -s conftest.err'
ac1cb8d3
VS
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest.$ac_objext'
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
13405 ac_header_compiler=yes
13406else
13407 echo "$as_me: failed program was:" >&5
13408sed 's/^/| /' conftest.$ac_ext >&5
13409
13410ac_header_compiler=no
13411fi
ac1cb8d3 13412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13414echo "${ECHO_T}$ac_header_compiler" >&6
13415
13416# Is the header present?
13417echo "$as_me:$LINENO: checking $ac_header presence" >&5
13418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13419cat >conftest.$ac_ext <<_ACEOF
13420/* confdefs.h. */
13421_ACEOF
13422cat confdefs.h >>conftest.$ac_ext
13423cat >>conftest.$ac_ext <<_ACEOF
13424/* end confdefs.h. */
13425#include <$ac_header>
13426_ACEOF
13427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } >/dev/null; then
13435 if test -s conftest.err; then
13436 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13438 else
13439 ac_cpp_err=
13440 fi
13441else
13442 ac_cpp_err=yes
13443fi
13444if test -z "$ac_cpp_err"; then
13445 ac_header_preproc=yes
13446else
13447 echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 ac_header_preproc=no
13451fi
13452rm -f conftest.err conftest.$ac_ext
13453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13454echo "${ECHO_T}$ac_header_preproc" >&6
13455
13456# So? What about this header?
ac1cb8d3
VS
13457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13458 yes:no: )
a848cd7e
SC
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13463 ac_header_preproc=yes
a848cd7e 13464 ;;
ac1cb8d3 13465 no:yes:* )
a848cd7e
SC
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13478 (
13479 cat <<\_ASBOX
ac1cb8d3
VS
13480## ----------------------------------------- ##
13481## Report this to wx-dev@lists.wxwidgets.org ##
13482## ----------------------------------------- ##
a848cd7e
SC
13483_ASBOX
13484 ) |
13485 sed "s/^/$as_me: WARNING: /" >&2
13486 ;;
13487esac
13488echo "$as_me:$LINENO: checking for $ac_header" >&5
13489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13490if eval "test \"\${$as_ac_Header+set}\" = set"; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13492else
ac1cb8d3 13493 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13494fi
13495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13497
13498fi
13499if test `eval echo '${'$as_ac_Header'}'` = yes; then
13500 cat >>confdefs.h <<_ACEOF
13501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13502_ACEOF
13503
13504fi
13505
13506done
13507
13508
13509for ac_header in malloc.h
13510do
13511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13512if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo "$as_me:$LINENO: checking for $ac_header" >&5
13514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517fi
13518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520else
13521 # Is the header compilable?
13522echo "$as_me:$LINENO: checking $ac_header usability" >&5
13523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13524cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530$ac_includes_default
13531#include <$ac_header>
13532_ACEOF
13533rm -f conftest.$ac_objext
13534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13535 (eval $ac_compile) 2>conftest.er1
a848cd7e 13536 ac_status=$?
ac1cb8d3
VS
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
a848cd7e
SC
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
89be85c2
VS
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
ac1cb8d3
VS
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_header_compiler=yes
13556else
13557 echo "$as_me: failed program was:" >&5
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
13560ac_header_compiler=no
13561fi
ac1cb8d3 13562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13564echo "${ECHO_T}$ac_header_compiler" >&6
13565
13566# Is the header present?
13567echo "$as_me:$LINENO: checking $ac_header presence" >&5
13568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13569cat >conftest.$ac_ext <<_ACEOF
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
13574/* end confdefs.h. */
13575#include <$ac_header>
13576_ACEOF
13577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } >/dev/null; then
13585 if test -s conftest.err; then
13586 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13588 else
13589 ac_cpp_err=
13590 fi
13591else
13592 ac_cpp_err=yes
13593fi
13594if test -z "$ac_cpp_err"; then
13595 ac_header_preproc=yes
13596else
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 ac_header_preproc=no
13601fi
13602rm -f conftest.err conftest.$ac_ext
13603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13604echo "${ECHO_T}$ac_header_preproc" >&6
13605
13606# So? What about this header?
ac1cb8d3
VS
13607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13608 yes:no: )
a848cd7e
SC
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13613 ac_header_preproc=yes
a848cd7e 13614 ;;
ac1cb8d3 13615 no:yes:* )
a848cd7e
SC
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13628 (
13629 cat <<\_ASBOX
ac1cb8d3
VS
13630## ----------------------------------------- ##
13631## Report this to wx-dev@lists.wxwidgets.org ##
13632## ----------------------------------------- ##
a848cd7e
SC
13633_ASBOX
13634 ) |
13635 sed "s/^/$as_me: WARNING: /" >&2
13636 ;;
13637esac
13638echo "$as_me:$LINENO: checking for $ac_header" >&5
13639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13640if eval "test \"\${$as_ac_Header+set}\" = set"; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
ac1cb8d3 13643 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13644fi
13645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13647
13648fi
13649if test `eval echo '${'$as_ac_Header'}'` = yes; then
13650 cat >>confdefs.h <<_ACEOF
13651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13652_ACEOF
13653
13654fi
13655
13656done
13657
13658
13659for ac_header in unistd.h
13660do
13661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13662if eval "test \"\${$as_ac_Header+set}\" = set"; then
13663 echo "$as_me:$LINENO: checking for $ac_header" >&5
13664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665if eval "test \"\${$as_ac_Header+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667fi
13668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13670else
13671 # Is the header compilable?
13672echo "$as_me:$LINENO: checking $ac_header usability" >&5
13673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13674cat >conftest.$ac_ext <<_ACEOF
13675/* confdefs.h. */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h. */
13680$ac_includes_default
13681#include <$ac_header>
13682_ACEOF
13683rm -f conftest.$ac_objext
13684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13685 (eval $ac_compile) 2>conftest.er1
a848cd7e 13686 ac_status=$?
ac1cb8d3
VS
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
a848cd7e
SC
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
89be85c2
VS
13692 { ac_try='test -z "$ac_c_werror_flag"
13693 || test ! -s conftest.err'
ac1cb8d3
VS
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; } &&
13699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_header_compiler=yes
13706else
13707 echo "$as_me: failed program was:" >&5
13708sed 's/^/| /' conftest.$ac_ext >&5
13709
13710ac_header_compiler=no
13711fi
ac1cb8d3 13712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13714echo "${ECHO_T}$ac_header_compiler" >&6
13715
13716# Is the header present?
13717echo "$as_me:$LINENO: checking $ac_header presence" >&5
13718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13719cat >conftest.$ac_ext <<_ACEOF
13720/* confdefs.h. */
13721_ACEOF
13722cat confdefs.h >>conftest.$ac_ext
13723cat >>conftest.$ac_ext <<_ACEOF
13724/* end confdefs.h. */
13725#include <$ac_header>
13726_ACEOF
13727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } >/dev/null; then
13735 if test -s conftest.err; then
13736 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13738 else
13739 ac_cpp_err=
13740 fi
13741else
13742 ac_cpp_err=yes
13743fi
13744if test -z "$ac_cpp_err"; then
13745 ac_header_preproc=yes
13746else
13747 echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 ac_header_preproc=no
13751fi
13752rm -f conftest.err conftest.$ac_ext
13753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13754echo "${ECHO_T}$ac_header_preproc" >&6
13755
13756# So? What about this header?
ac1cb8d3
VS
13757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13758 yes:no: )
a848cd7e
SC
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13763 ac_header_preproc=yes
a848cd7e 13764 ;;
ac1cb8d3 13765 no:yes:* )
a848cd7e
SC
13766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13778 (
13779 cat <<\_ASBOX
ac1cb8d3
VS
13780## ----------------------------------------- ##
13781## Report this to wx-dev@lists.wxwidgets.org ##
13782## ----------------------------------------- ##
a848cd7e
SC
13783_ASBOX
13784 ) |
13785 sed "s/^/$as_me: WARNING: /" >&2
13786 ;;
13787esac
13788echo "$as_me:$LINENO: checking for $ac_header" >&5
13789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13790if eval "test \"\${$as_ac_Header+set}\" = set"; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792else
ac1cb8d3 13793 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13794fi
13795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13797
13798fi
13799if test `eval echo '${'$as_ac_Header'}'` = yes; then
13800 cat >>confdefs.h <<_ACEOF
13801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13802_ACEOF
13803
13804fi
13805
13806done
13807
13808
13809for ac_header in wchar.h
13810do
13811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13812if eval "test \"\${$as_ac_Header+set}\" = set"; then
13813 echo "$as_me:$LINENO: checking for $ac_header" >&5
13814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13815if eval "test \"\${$as_ac_Header+set}\" = set"; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817fi
13818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13820else
13821 # Is the header compilable?
13822echo "$as_me:$LINENO: checking $ac_header usability" >&5
13823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13824cat >conftest.$ac_ext <<_ACEOF
13825/* confdefs.h. */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
13830$ac_includes_default
13831#include <$ac_header>
13832_ACEOF
13833rm -f conftest.$ac_objext
13834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13835 (eval $ac_compile) 2>conftest.er1
a848cd7e 13836 ac_status=$?
ac1cb8d3
VS
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
a848cd7e
SC
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
89be85c2
VS
13842 { ac_try='test -z "$ac_c_werror_flag"
13843 || test ! -s conftest.err'
ac1cb8d3
VS
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; } &&
13849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_header_compiler=yes
13856else
13857 echo "$as_me: failed program was:" >&5
13858sed 's/^/| /' conftest.$ac_ext >&5
13859
13860ac_header_compiler=no
13861fi
ac1cb8d3 13862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13864echo "${ECHO_T}$ac_header_compiler" >&6
13865
13866# Is the header present?
13867echo "$as_me:$LINENO: checking $ac_header presence" >&5
13868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13869cat >conftest.$ac_ext <<_ACEOF
13870/* confdefs.h. */
13871_ACEOF
13872cat confdefs.h >>conftest.$ac_ext
13873cat >>conftest.$ac_ext <<_ACEOF
13874/* end confdefs.h. */
13875#include <$ac_header>
13876_ACEOF
13877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13879 ac_status=$?
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } >/dev/null; then
13885 if test -s conftest.err; then
13886 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13888 else
13889 ac_cpp_err=
13890 fi
13891else
13892 ac_cpp_err=yes
13893fi
13894if test -z "$ac_cpp_err"; then
13895 ac_header_preproc=yes
13896else
13897 echo "$as_me: failed program was:" >&5
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 ac_header_preproc=no
13901fi
13902rm -f conftest.err conftest.$ac_ext
13903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13904echo "${ECHO_T}$ac_header_preproc" >&6
13905
13906# So? What about this header?
ac1cb8d3
VS
13907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13908 yes:no: )
a848cd7e
SC
13909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13913 ac_header_preproc=yes
a848cd7e 13914 ;;
ac1cb8d3 13915 no:yes:* )
a848cd7e
SC
13916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13928 (
13929 cat <<\_ASBOX
ac1cb8d3
VS
13930## ----------------------------------------- ##
13931## Report this to wx-dev@lists.wxwidgets.org ##
13932## ----------------------------------------- ##
a848cd7e
SC
13933_ASBOX
13934 ) |
13935 sed "s/^/$as_me: WARNING: /" >&2
13936 ;;
13937esac
13938echo "$as_me:$LINENO: checking for $ac_header" >&5
13939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13942else
ac1cb8d3 13943 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13944fi
13945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13947
13948fi
13949if test `eval echo '${'$as_ac_Header'}'` = yes; then
13950 cat >>confdefs.h <<_ACEOF
13951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13952_ACEOF
13953
13954fi
13955
13956done
13957
13958
13959if test "$ac_cv_header_wchar_h" != "yes"; then
13960
13961for ac_header in wcstr.h
13962do
13963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13964if eval "test \"\${$as_ac_Header+set}\" = set"; then
13965 echo "$as_me:$LINENO: checking for $ac_header" >&5
13966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13967if eval "test \"\${$as_ac_Header+set}\" = set"; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969fi
13970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13972else
13973 # Is the header compilable?
13974echo "$as_me:$LINENO: checking $ac_header usability" >&5
13975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13976cat >conftest.$ac_ext <<_ACEOF
13977/* confdefs.h. */
13978_ACEOF
13979cat confdefs.h >>conftest.$ac_ext
13980cat >>conftest.$ac_ext <<_ACEOF
13981/* end confdefs.h. */
13982$ac_includes_default
13983#include <$ac_header>
13984_ACEOF
13985rm -f conftest.$ac_objext
13986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13987 (eval $ac_compile) 2>conftest.er1
a848cd7e 13988 ac_status=$?
ac1cb8d3
VS
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
a848cd7e
SC
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
89be85c2
VS
13994 { ac_try='test -z "$ac_c_werror_flag"
13995 || test ! -s conftest.err'
ac1cb8d3
VS
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; }; then
14007 ac_header_compiler=yes
14008else
14009 echo "$as_me: failed program was:" >&5
14010sed 's/^/| /' conftest.$ac_ext >&5
14011
14012ac_header_compiler=no
14013fi
ac1cb8d3 14014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14016echo "${ECHO_T}$ac_header_compiler" >&6
14017
14018# Is the header present?
14019echo "$as_me:$LINENO: checking $ac_header presence" >&5
14020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14021cat >conftest.$ac_ext <<_ACEOF
14022/* confdefs.h. */
14023_ACEOF
14024cat confdefs.h >>conftest.$ac_ext
14025cat >>conftest.$ac_ext <<_ACEOF
14026/* end confdefs.h. */
14027#include <$ac_header>
14028_ACEOF
14029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } >/dev/null; then
14037 if test -s conftest.err; then
14038 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14040 else
14041 ac_cpp_err=
14042 fi
14043else
14044 ac_cpp_err=yes
14045fi
14046if test -z "$ac_cpp_err"; then
14047 ac_header_preproc=yes
14048else
14049 echo "$as_me: failed program was:" >&5
14050sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_header_preproc=no
14053fi
14054rm -f conftest.err conftest.$ac_ext
14055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14056echo "${ECHO_T}$ac_header_preproc" >&6
14057
14058# So? What about this header?
ac1cb8d3
VS
14059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14060 yes:no: )
a848cd7e
SC
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14065 ac_header_preproc=yes
a848cd7e 14066 ;;
ac1cb8d3 14067 no:yes:* )
a848cd7e
SC
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14080 (
14081 cat <<\_ASBOX
ac1cb8d3
VS
14082## ----------------------------------------- ##
14083## Report this to wx-dev@lists.wxwidgets.org ##
14084## ----------------------------------------- ##
a848cd7e
SC
14085_ASBOX
14086 ) |
14087 sed "s/^/$as_me: WARNING: /" >&2
14088 ;;
14089esac
14090echo "$as_me:$LINENO: checking for $ac_header" >&5
14091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14092if eval "test \"\${$as_ac_Header+set}\" = set"; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094else
ac1cb8d3 14095 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14096fi
14097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14099
14100fi
14101if test `eval echo '${'$as_ac_Header'}'` = yes; then
14102 cat >>confdefs.h <<_ACEOF
14103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14104_ACEOF
14105
14106fi
14107
14108done
14109
14110fi
14111
14112
14113for ac_header in fnmatch.h
14114do
14115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14116if eval "test \"\${$as_ac_Header+set}\" = set"; then
14117 echo "$as_me:$LINENO: checking for $ac_header" >&5
14118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14119if eval "test \"\${$as_ac_Header+set}\" = set"; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14121fi
14122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124else
14125 # Is the header compilable?
14126echo "$as_me:$LINENO: checking $ac_header usability" >&5
14127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14128cat >conftest.$ac_ext <<_ACEOF
14129/* confdefs.h. */
14130_ACEOF
14131cat confdefs.h >>conftest.$ac_ext
14132cat >>conftest.$ac_ext <<_ACEOF
14133/* end confdefs.h. */
14134$ac_includes_default
14135#include <$ac_header>
14136_ACEOF
14137rm -f conftest.$ac_objext
14138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14139 (eval $ac_compile) 2>conftest.er1
a848cd7e 14140 ac_status=$?
ac1cb8d3
VS
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
a848cd7e
SC
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
89be85c2
VS
14146 { ac_try='test -z "$ac_c_werror_flag"
14147 || test ! -s conftest.err'
ac1cb8d3
VS
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_header_compiler=yes
14160else
14161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
14164ac_header_compiler=no
14165fi
ac1cb8d3 14166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14168echo "${ECHO_T}$ac_header_compiler" >&6
14169
14170# Is the header present?
14171echo "$as_me:$LINENO: checking $ac_header presence" >&5
14172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14173cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179#include <$ac_header>
14180_ACEOF
14181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14183 ac_status=$?
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } >/dev/null; then
14189 if test -s conftest.err; then
14190 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14192 else
14193 ac_cpp_err=
14194 fi
14195else
14196 ac_cpp_err=yes
14197fi
14198if test -z "$ac_cpp_err"; then
14199 ac_header_preproc=yes
14200else
14201 echo "$as_me: failed program was:" >&5
14202sed 's/^/| /' conftest.$ac_ext >&5
14203
14204 ac_header_preproc=no
14205fi
14206rm -f conftest.err conftest.$ac_ext
14207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14208echo "${ECHO_T}$ac_header_preproc" >&6
14209
14210# So? What about this header?
ac1cb8d3
VS
14211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14212 yes:no: )
a848cd7e
SC
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14217 ac_header_preproc=yes
a848cd7e 14218 ;;
ac1cb8d3 14219 no:yes:* )
a848cd7e
SC
14220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14232 (
14233 cat <<\_ASBOX
ac1cb8d3
VS
14234## ----------------------------------------- ##
14235## Report this to wx-dev@lists.wxwidgets.org ##
14236## ----------------------------------------- ##
a848cd7e
SC
14237_ASBOX
14238 ) |
14239 sed "s/^/$as_me: WARNING: /" >&2
14240 ;;
14241esac
14242echo "$as_me:$LINENO: checking for $ac_header" >&5
14243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14244if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14246else
ac1cb8d3 14247 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14248fi
14249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14251
14252fi
14253if test `eval echo '${'$as_ac_Header'}'` = yes; then
14254 cat >>confdefs.h <<_ACEOF
14255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14256_ACEOF
14257
14258fi
14259
14260done
14261
14262
14263if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14264
14265for ac_func in fnmatch
14266do
14267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14268echo "$as_me:$LINENO: checking for $ac_func" >&5
14269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14270if eval "test \"\${$as_ac_var+set}\" = set"; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272else
14273 cat >conftest.$ac_ext <<_ACEOF
14274/* confdefs.h. */
14275_ACEOF
14276cat confdefs.h >>conftest.$ac_ext
14277cat >>conftest.$ac_ext <<_ACEOF
14278/* end confdefs.h. */
ac1cb8d3
VS
14279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14281#define $ac_func innocuous_$ac_func
14282
a848cd7e
SC
14283/* System header to define __stub macros and hopefully few prototypes,
14284 which can conflict with char $ac_func (); below.
14285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14286 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14287
a848cd7e
SC
14288#ifdef __STDC__
14289# include <limits.h>
14290#else
14291# include <assert.h>
14292#endif
ac1cb8d3
VS
14293
14294#undef $ac_func
14295
a848cd7e
SC
14296/* Override any gcc2 internal prototype to avoid an error. */
14297#ifdef __cplusplus
14298extern "C"
14299{
14300#endif
14301/* We use char because int might match the return type of a gcc2
14302 builtin and then its argument prototype would still apply. */
14303char $ac_func ();
14304/* The GNU C library defines this for functions which it implements
14305 to always fail with ENOSYS. Some functions are actually named
14306 something starting with __ and the normal name is an alias. */
14307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14308choke me
14309#else
14310char (*f) () = $ac_func;
14311#endif
14312#ifdef __cplusplus
14313}
14314#endif
14315
14316int
14317main ()
14318{
14319return f != $ac_func;
14320 ;
14321 return 0;
14322}
14323_ACEOF
14324rm -f conftest.$ac_objext conftest$ac_exeext
14325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14326 (eval $ac_link) 2>conftest.er1
a848cd7e 14327 ac_status=$?
ac1cb8d3
VS
14328 grep -v '^ *+' conftest.er1 >conftest.err
14329 rm -f conftest.er1
14330 cat conftest.err >&5
a848cd7e
SC
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
89be85c2
VS
14333 { ac_try='test -z "$ac_c_werror_flag"
14334 || test ! -s conftest.err'
ac1cb8d3
VS
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; } &&
14340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 eval "$as_ac_var=yes"
14347else
14348 echo "$as_me: failed program was:" >&5
14349sed 's/^/| /' conftest.$ac_ext >&5
14350
14351eval "$as_ac_var=no"
14352fi
ac1cb8d3
VS
14353rm -f conftest.err conftest.$ac_objext \
14354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14355fi
14356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14358if test `eval echo '${'$as_ac_var'}'` = yes; then
14359 cat >>confdefs.h <<_ACEOF
14360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14361_ACEOF
14362
14363fi
14364done
14365
14366fi
14367
14368
14369for ac_header in langinfo.h
14370do
14371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14372if eval "test \"\${$as_ac_Header+set}\" = set"; then
14373 echo "$as_me:$LINENO: checking for $ac_header" >&5
14374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14375if eval "test \"\${$as_ac_Header+set}\" = set"; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14377fi
14378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14380else
14381 # Is the header compilable?
14382echo "$as_me:$LINENO: checking $ac_header usability" >&5
14383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14384cat >conftest.$ac_ext <<_ACEOF
14385/* confdefs.h. */
14386_ACEOF
14387cat confdefs.h >>conftest.$ac_ext
14388cat >>conftest.$ac_ext <<_ACEOF
14389/* end confdefs.h. */
14390$ac_includes_default
14391#include <$ac_header>
14392_ACEOF
14393rm -f conftest.$ac_objext
14394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14395 (eval $ac_compile) 2>conftest.er1
a848cd7e 14396 ac_status=$?
ac1cb8d3
VS
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
a848cd7e
SC
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
89be85c2
VS
14402 { ac_try='test -z "$ac_c_werror_flag"
14403 || test ! -s conftest.err'
ac1cb8d3
VS
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 ac_header_compiler=yes
14416else
14417 echo "$as_me: failed program was:" >&5
14418sed 's/^/| /' conftest.$ac_ext >&5
14419
14420ac_header_compiler=no
14421fi
ac1cb8d3 14422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14424echo "${ECHO_T}$ac_header_compiler" >&6
14425
14426# Is the header present?
14427echo "$as_me:$LINENO: checking $ac_header presence" >&5
14428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14429cat >conftest.$ac_ext <<_ACEOF
14430/* confdefs.h. */
14431_ACEOF
14432cat confdefs.h >>conftest.$ac_ext
14433cat >>conftest.$ac_ext <<_ACEOF
14434/* end confdefs.h. */
14435#include <$ac_header>
14436_ACEOF
14437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14439 ac_status=$?
14440 grep -v '^ *+' conftest.er1 >conftest.err
14441 rm -f conftest.er1
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } >/dev/null; then
14445 if test -s conftest.err; then
14446 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14448 else
14449 ac_cpp_err=
14450 fi
14451else
14452 ac_cpp_err=yes
14453fi
14454if test -z "$ac_cpp_err"; then
14455 ac_header_preproc=yes
14456else
14457 echo "$as_me: failed program was:" >&5
14458sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 ac_header_preproc=no
14461fi
14462rm -f conftest.err conftest.$ac_ext
14463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14464echo "${ECHO_T}$ac_header_preproc" >&6
14465
14466# So? What about this header?
ac1cb8d3
VS
14467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14468 yes:no: )
a848cd7e
SC
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14473 ac_header_preproc=yes
a848cd7e 14474 ;;
ac1cb8d3 14475 no:yes:* )
a848cd7e
SC
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14488 (
14489 cat <<\_ASBOX
ac1cb8d3
VS
14490## ----------------------------------------- ##
14491## Report this to wx-dev@lists.wxwidgets.org ##
14492## ----------------------------------------- ##
a848cd7e
SC
14493_ASBOX
14494 ) |
14495 sed "s/^/$as_me: WARNING: /" >&2
14496 ;;
14497esac
14498echo "$as_me:$LINENO: checking for $ac_header" >&5
14499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14500if eval "test \"\${$as_ac_Header+set}\" = set"; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14502else
ac1cb8d3 14503 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14504fi
14505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14507
14508fi
14509if test `eval echo '${'$as_ac_Header'}'` = yes; then
14510 cat >>confdefs.h <<_ACEOF
14511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14512_ACEOF
14513
14514fi
14515
14516done
14517
14518
14519case "${host}" in
14520 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14521 if test $ac_cv_header_langinfo_h = "yes" \
14522 -a \( "$wx_cv_gccversion" = "EMX2" \
14523 -o "$wx_cv_gccversion" = "EMX3" \
14524 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14525 LIBS="$LIBS -lintl"
14526 fi
14527 ;;
14528esac
14529
14530if test "$wxUSE_GUI" = "yes"; then
14531 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14532
14533for ac_header in X11/Xlib.h
14534do
14535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14536if eval "test \"\${$as_ac_Header+set}\" = set"; then
14537 echo "$as_me:$LINENO: checking for $ac_header" >&5
14538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14539if eval "test \"\${$as_ac_Header+set}\" = set"; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541fi
14542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14544else
14545 # Is the header compilable?
14546echo "$as_me:$LINENO: checking $ac_header usability" >&5
14547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14548cat >conftest.$ac_ext <<_ACEOF
14549/* confdefs.h. */
14550_ACEOF
14551cat confdefs.h >>conftest.$ac_ext
14552cat >>conftest.$ac_ext <<_ACEOF
14553/* end confdefs.h. */
14554$ac_includes_default
14555#include <$ac_header>
14556_ACEOF
14557rm -f conftest.$ac_objext
14558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14559 (eval $ac_compile) 2>conftest.er1
a848cd7e 14560 ac_status=$?
ac1cb8d3
VS
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
a848cd7e
SC
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
89be85c2
VS
14566 { ac_try='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
ac1cb8d3
VS
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_header_compiler=yes
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584ac_header_compiler=no
14585fi
ac1cb8d3 14586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14587echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14588echo "${ECHO_T}$ac_header_compiler" >&6
14589
14590# Is the header present?
14591echo "$as_me:$LINENO: checking $ac_header presence" >&5
14592echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14593cat >conftest.$ac_ext <<_ACEOF
14594/* confdefs.h. */
14595_ACEOF
14596cat confdefs.h >>conftest.$ac_ext
14597cat >>conftest.$ac_ext <<_ACEOF
14598/* end confdefs.h. */
14599#include <$ac_header>
14600_ACEOF
14601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } >/dev/null; then
14609 if test -s conftest.err; then
14610 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14612 else
14613 ac_cpp_err=
14614 fi
14615else
14616 ac_cpp_err=yes
14617fi
14618if test -z "$ac_cpp_err"; then
14619 ac_header_preproc=yes
14620else
14621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 ac_header_preproc=no
14625fi
14626rm -f conftest.err conftest.$ac_ext
14627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14628echo "${ECHO_T}$ac_header_preproc" >&6
14629
14630# So? What about this header?
ac1cb8d3
VS
14631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14632 yes:no: )
a848cd7e
SC
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14636echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14637 ac_header_preproc=yes
a848cd7e 14638 ;;
ac1cb8d3 14639 no:yes:* )
a848cd7e
SC
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14641echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14643echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14645echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14647echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14651echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14652 (
14653 cat <<\_ASBOX
ac1cb8d3
VS
14654## ----------------------------------------- ##
14655## Report this to wx-dev@lists.wxwidgets.org ##
14656## ----------------------------------------- ##
a848cd7e
SC
14657_ASBOX
14658 ) |
14659 sed "s/^/$as_me: WARNING: /" >&2
14660 ;;
14661esac
14662echo "$as_me:$LINENO: checking for $ac_header" >&5
14663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14664if eval "test \"\${$as_ac_Header+set}\" = set"; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666else
ac1cb8d3 14667 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14668fi
14669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14671
14672fi
14673if test `eval echo '${'$as_ac_Header'}'` = yes; then
14674 cat >>confdefs.h <<_ACEOF
14675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14676_ACEOF
14677
14678fi
14679
14680done
14681
14682
14683for ac_header in X11/XKBlib.h
14684do
14685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14686echo "$as_me:$LINENO: checking for $ac_header" >&5
14687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14688if eval "test \"\${$as_ac_Header+set}\" = set"; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14690else
14691 cat >conftest.$ac_ext <<_ACEOF
14692/* confdefs.h. */
14693_ACEOF
14694cat confdefs.h >>conftest.$ac_ext
14695cat >>conftest.$ac_ext <<_ACEOF
14696/* end confdefs.h. */
14697
14698 #if HAVE_X11_XLIB_H
14699 #include <X11/Xlib.h>
14700 #endif
14701
14702
14703#include <$ac_header>
14704_ACEOF
14705rm -f conftest.$ac_objext
14706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14707 (eval $ac_compile) 2>conftest.er1
a848cd7e 14708 ac_status=$?
ac1cb8d3
VS
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
a848cd7e
SC
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
89be85c2
VS
14714 { ac_try='test -z "$ac_c_werror_flag"
14715 || test ! -s conftest.err'
ac1cb8d3
VS
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 eval "$as_ac_Header=yes"
14728else
14729 echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732eval "$as_ac_Header=no"
14733fi
ac1cb8d3 14734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14735fi
14736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14738if test `eval echo '${'$as_ac_Header'}'` = yes; then
14739 cat >>confdefs.h <<_ACEOF
14740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14741_ACEOF
14742
14743fi
14744
14745done
14746
14747 fi
14748fi
14749
14750
14751echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14752echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14753if test "${ac_cv_c_const+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755else
14756 cat >conftest.$ac_ext <<_ACEOF
14757/* confdefs.h. */
14758_ACEOF
14759cat confdefs.h >>conftest.$ac_ext
14760cat >>conftest.$ac_ext <<_ACEOF
14761/* end confdefs.h. */
14762
14763int
14764main ()
14765{
14766/* FIXME: Include the comments suggested by Paul. */
14767#ifndef __cplusplus
14768 /* Ultrix mips cc rejects this. */
14769 typedef int charset[2];
14770 const charset x;
14771 /* SunOS 4.1.1 cc rejects this. */
14772 char const *const *ccp;
14773 char **p;
14774 /* NEC SVR4.0.2 mips cc rejects this. */
14775 struct point {int x, y;};
14776 static struct point const zero = {0,0};
14777 /* AIX XL C 1.02.0.0 rejects this.
14778 It does not let you subtract one const X* pointer from another in
14779 an arm of an if-expression whose if-part is not a constant
14780 expression */
14781 const char *g = "string";
14782 ccp = &g + (g ? g-g : 0);
14783 /* HPUX 7.0 cc rejects these. */
14784 ++ccp;
14785 p = (char**) ccp;
14786 ccp = (char const *const *) p;
14787 { /* SCO 3.2v4 cc rejects this. */
14788 char *t;
14789 char const *s = 0 ? (char *) 0 : (char const *) 0;
14790
14791 *t++ = 0;
14792 }
14793 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14794 int x[] = {25, 17};
14795 const int *foo = &x[0];
14796 ++foo;
14797 }
14798 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14799 typedef const int *iptr;
14800 iptr p = 0;
14801 ++p;
14802 }
14803 { /* AIX XL C 1.02.0.0 rejects this saying
14804 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14805 struct s { int j; const int *ap[3]; };
14806 struct s *b; b->j = 5;
14807 }
14808 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14809 const int foo = 10;
14810 }
14811#endif
14812
14813 ;
14814 return 0;
14815}
14816_ACEOF
14817rm -f conftest.$ac_objext
14818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14819 (eval $ac_compile) 2>conftest.er1
a848cd7e 14820 ac_status=$?
ac1cb8d3
VS
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
a848cd7e
SC
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
89be85c2
VS
14826 { ac_try='test -z "$ac_c_werror_flag"
14827 || test ! -s conftest.err'
ac1cb8d3
VS
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_cv_c_const=yes
14840else
14841 echo "$as_me: failed program was:" >&5
14842sed 's/^/| /' conftest.$ac_ext >&5
14843
14844ac_cv_c_const=no
14845fi
ac1cb8d3 14846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14847fi
14848echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14849echo "${ECHO_T}$ac_cv_c_const" >&6
14850if test $ac_cv_c_const = no; then
14851
14852cat >>confdefs.h <<\_ACEOF
14853#define const
14854_ACEOF
14855
14856fi
14857
14858echo "$as_me:$LINENO: checking for inline" >&5
14859echo $ECHO_N "checking for inline... $ECHO_C" >&6
14860if test "${ac_cv_c_inline+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14862else
14863 ac_cv_c_inline=no
14864for ac_kw in inline __inline__ __inline; do
14865 cat >conftest.$ac_ext <<_ACEOF
14866/* confdefs.h. */
14867_ACEOF
14868cat confdefs.h >>conftest.$ac_ext
14869cat >>conftest.$ac_ext <<_ACEOF
14870/* end confdefs.h. */
14871#ifndef __cplusplus
14872typedef int foo_t;
14873static $ac_kw foo_t static_foo () {return 0; }
14874$ac_kw foo_t foo () {return 0; }
14875#endif
14876
14877_ACEOF
14878rm -f conftest.$ac_objext
14879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14880 (eval $ac_compile) 2>conftest.er1
a848cd7e 14881 ac_status=$?
ac1cb8d3
VS
14882 grep -v '^ *+' conftest.er1 >conftest.err
14883 rm -f conftest.er1
14884 cat conftest.err >&5
a848cd7e
SC
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
89be85c2
VS
14887 { ac_try='test -z "$ac_c_werror_flag"
14888 || test ! -s conftest.err'
ac1cb8d3
VS
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 ac_cv_c_inline=$ac_kw; break
14901else
14902 echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905fi
ac1cb8d3 14906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14907done
14908
14909fi
14910echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14911echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14912
14913
a848cd7e
SC
14914case $ac_cv_c_inline in
14915 inline | yes) ;;
ac1cb8d3
VS
14916 *)
14917 case $ac_cv_c_inline in
14918 no) ac_val=;;
14919 *) ac_val=$ac_cv_c_inline;;
14920 esac
14921 cat >>confdefs.h <<_ACEOF
14922#ifndef __cplusplus
14923#define inline $ac_val
14924#endif
de59c161 14925_ACEOF
ac1cb8d3 14926 ;;
a848cd7e
SC
14927esac
14928
14929
14930echo "$as_me:$LINENO: checking for char" >&5
14931echo $ECHO_N "checking for char... $ECHO_C" >&6
14932if test "${ac_cv_type_char+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934else
14935 cat >conftest.$ac_ext <<_ACEOF
14936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
14941$ac_includes_default
14942int
14943main ()
14944{
14945if ((char *) 0)
14946 return 0;
14947if (sizeof (char))
14948 return 0;
14949 ;
14950 return 0;
14951}
14952_ACEOF
14953rm -f conftest.$ac_objext
14954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14955 (eval $ac_compile) 2>conftest.er1
a848cd7e 14956 ac_status=$?
ac1cb8d3
VS
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
a848cd7e
SC
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
89be85c2
VS
14962 { ac_try='test -z "$ac_c_werror_flag"
14963 || test ! -s conftest.err'
ac1cb8d3
VS
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 ac_cv_type_char=yes
14976else
14977 echo "$as_me: failed program was:" >&5
14978sed 's/^/| /' conftest.$ac_ext >&5
14979
14980ac_cv_type_char=no
14981fi
ac1cb8d3 14982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14983fi
14984echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14985echo "${ECHO_T}$ac_cv_type_char" >&6
14986
14987echo "$as_me:$LINENO: checking size of char" >&5
14988echo $ECHO_N "checking size of char... $ECHO_C" >&6
14989if test "${ac_cv_sizeof_char+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14991else
14992 if test "$ac_cv_type_char" = yes; then
14993 # The cast to unsigned long works around a bug in the HP C Compiler
14994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14996 # This bug is HP SR number 8606223364.
14997 if test "$cross_compiling" = yes; then
14998 # Depending upon the size, compute the lo and hi bounds.
14999cat >conftest.$ac_ext <<_ACEOF
15000/* confdefs.h. */
15001_ACEOF
15002cat confdefs.h >>conftest.$ac_ext
15003cat >>conftest.$ac_ext <<_ACEOF
15004/* end confdefs.h. */
15005$ac_includes_default
15006int
15007main ()
15008{
15009static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15010test_array [0] = 0
15011
15012 ;
15013 return 0;
15014}
15015_ACEOF
15016rm -f conftest.$ac_objext
15017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15018 (eval $ac_compile) 2>conftest.er1
a848cd7e 15019 ac_status=$?
ac1cb8d3
VS
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
a848cd7e
SC
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
89be85c2
VS
15025 { ac_try='test -z "$ac_c_werror_flag"
15026 || test ! -s conftest.err'
ac1cb8d3
VS
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_lo=0 ac_mid=0
15039 while :; do
15040 cat >conftest.$ac_ext <<_ACEOF
15041/* confdefs.h. */
15042_ACEOF
15043cat confdefs.h >>conftest.$ac_ext
15044cat >>conftest.$ac_ext <<_ACEOF
15045/* end confdefs.h. */
15046$ac_includes_default
15047int
15048main ()
15049{
15050static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15051test_array [0] = 0
15052
15053 ;
15054 return 0;
15055}
15056_ACEOF
15057rm -f conftest.$ac_objext
15058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15059 (eval $ac_compile) 2>conftest.er1
a848cd7e 15060 ac_status=$?
ac1cb8d3
VS
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
a848cd7e
SC
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
89be85c2
VS
15066 { ac_try='test -z "$ac_c_werror_flag"
15067 || test ! -s conftest.err'
ac1cb8d3
VS
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 ac_hi=$ac_mid; break
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15085 if test $ac_lo -le $ac_mid; then
15086 ac_lo= ac_hi=
15087 break
15088 fi
15089 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15090fi
ac1cb8d3 15091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15092 done
15093else
15094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097cat >conftest.$ac_ext <<_ACEOF
15098/* confdefs.h. */
15099_ACEOF
15100cat confdefs.h >>conftest.$ac_ext
15101cat >>conftest.$ac_ext <<_ACEOF
15102/* end confdefs.h. */
15103$ac_includes_default
15104int
15105main ()
15106{
15107static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15108test_array [0] = 0
15109
15110 ;
15111 return 0;
15112}
15113_ACEOF
15114rm -f conftest.$ac_objext
15115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15116 (eval $ac_compile) 2>conftest.er1
a848cd7e 15117 ac_status=$?
ac1cb8d3
VS
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
a848cd7e
SC
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
89be85c2
VS
15123 { ac_try='test -z "$ac_c_werror_flag"
15124 || test ! -s conftest.err'
ac1cb8d3
VS
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_hi=-1 ac_mid=-1
15137 while :; do
15138 cat >conftest.$ac_ext <<_ACEOF
15139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
15144$ac_includes_default
15145int
15146main ()
15147{
15148static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15149test_array [0] = 0
15150
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155rm -f conftest.$ac_objext
15156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15157 (eval $ac_compile) 2>conftest.er1
a848cd7e 15158 ac_status=$?
ac1cb8d3
VS
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
a848cd7e
SC
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
89be85c2
VS
15164 { ac_try='test -z "$ac_c_werror_flag"
15165 || test ! -s conftest.err'
ac1cb8d3
VS
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } &&
15171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_lo=$ac_mid; break
15178else
15179 echo "$as_me: failed program was:" >&5
15180sed 's/^/| /' conftest.$ac_ext >&5
15181
15182ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15183 if test $ac_mid -le $ac_hi; then
15184 ac_lo= ac_hi=
15185 break
15186 fi
15187 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15188fi
ac1cb8d3 15189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15190 done
15191else
15192 echo "$as_me: failed program was:" >&5
15193sed 's/^/| /' conftest.$ac_ext >&5
15194
15195ac_lo= ac_hi=
15196fi
ac1cb8d3 15197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15198fi
ac1cb8d3 15199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15200# Binary search between lo and hi bounds.
15201while test "x$ac_lo" != "x$ac_hi"; do
15202 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15203 cat >conftest.$ac_ext <<_ACEOF
15204/* confdefs.h. */
15205_ACEOF
15206cat confdefs.h >>conftest.$ac_ext
15207cat >>conftest.$ac_ext <<_ACEOF
15208/* end confdefs.h. */
15209$ac_includes_default
15210int
15211main ()
15212{
15213static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15214test_array [0] = 0
15215
15216 ;
15217 return 0;
15218}
15219_ACEOF
15220rm -f conftest.$ac_objext
15221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15222 (eval $ac_compile) 2>conftest.er1
a848cd7e 15223 ac_status=$?
ac1cb8d3
VS
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
a848cd7e
SC
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
89be85c2
VS
15229 { ac_try='test -z "$ac_c_werror_flag"
15230 || test ! -s conftest.err'
ac1cb8d3
VS
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_hi=$ac_mid
15243else
15244 echo "$as_me: failed program was:" >&5
15245sed 's/^/| /' conftest.$ac_ext >&5
15246
15247ac_lo=`expr '(' $ac_mid ')' + 1`
15248fi
ac1cb8d3 15249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15250done
15251case $ac_lo in
15252?*) ac_cv_sizeof_char=$ac_lo;;
15253'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15254See \`config.log' for more details." >&5
15255echo "$as_me: error: cannot compute sizeof (char), 77
15256See \`config.log' for more details." >&2;}
15257 { (exit 1); exit 1; }; } ;;
15258esac
15259else
15260 if test "$cross_compiling" = yes; then
89be85c2
VS
15261 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15262See \`config.log' for more details." >&5
15263echo "$as_me: error: cannot run test program while cross compiling
15264See \`config.log' for more details." >&2;}
a848cd7e
SC
15265 { (exit 1); exit 1; }; }
15266else
15267 cat >conftest.$ac_ext <<_ACEOF
15268/* confdefs.h. */
15269_ACEOF
15270cat confdefs.h >>conftest.$ac_ext
15271cat >>conftest.$ac_ext <<_ACEOF
15272/* end confdefs.h. */
15273$ac_includes_default
15274long longval () { return (long) (sizeof (char)); }
15275unsigned long ulongval () { return (long) (sizeof (char)); }
15276#include <stdio.h>
15277#include <stdlib.h>
15278int
15279main ()
15280{
15281
15282 FILE *f = fopen ("conftest.val", "w");
15283 if (! f)
15284 exit (1);
15285 if (((long) (sizeof (char))) < 0)
15286 {
15287 long i = longval ();
15288 if (i != ((long) (sizeof (char))))
15289 exit (1);
15290 fprintf (f, "%ld\n", i);
15291 }
15292 else
15293 {
15294 unsigned long i = ulongval ();
15295 if (i != ((long) (sizeof (char))))
15296 exit (1);
15297 fprintf (f, "%lu\n", i);
15298 }
15299 exit (ferror (f) || fclose (f) != 0);
15300
15301 ;
15302 return 0;
15303}
15304_ACEOF
15305rm -f conftest$ac_exeext
15306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15307 (eval $ac_link) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_sizeof_char=`cat conftest.val`
15317else
15318 echo "$as_me: program exited with status $ac_status" >&5
15319echo "$as_me: failed program was:" >&5
15320sed 's/^/| /' conftest.$ac_ext >&5
15321
15322( exit $ac_status )
15323{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15324See \`config.log' for more details." >&5
15325echo "$as_me: error: cannot compute sizeof (char), 77
15326See \`config.log' for more details." >&2;}
15327 { (exit 1); exit 1; }; }
15328fi
ac1cb8d3 15329rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15330fi
15331fi
15332rm -f conftest.val
15333else
15334 ac_cv_sizeof_char=0
15335fi
15336fi
15337echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15338echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15339cat >>confdefs.h <<_ACEOF
15340#define SIZEOF_CHAR $ac_cv_sizeof_char
15341_ACEOF
15342
15343
15344echo "$as_me:$LINENO: checking for short" >&5
15345echo $ECHO_N "checking for short... $ECHO_C" >&6
15346if test "${ac_cv_type_short+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348else
15349 cat >conftest.$ac_ext <<_ACEOF
15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
15354/* end confdefs.h. */
15355$ac_includes_default
15356int
15357main ()
15358{
15359if ((short *) 0)
15360 return 0;
15361if (sizeof (short))
15362 return 0;
15363 ;
15364 return 0;
15365}
15366_ACEOF
15367rm -f conftest.$ac_objext
15368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15369 (eval $ac_compile) 2>conftest.er1
a848cd7e 15370 ac_status=$?
ac1cb8d3
VS
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
a848cd7e
SC
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
89be85c2
VS
15376 { ac_try='test -z "$ac_c_werror_flag"
15377 || test ! -s conftest.err'
ac1cb8d3
VS
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_cv_type_short=yes
15390else
15391 echo "$as_me: failed program was:" >&5
15392sed 's/^/| /' conftest.$ac_ext >&5
15393
15394ac_cv_type_short=no
15395fi
ac1cb8d3 15396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15397fi
15398echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15399echo "${ECHO_T}$ac_cv_type_short" >&6
15400
15401echo "$as_me:$LINENO: checking size of short" >&5
15402echo $ECHO_N "checking size of short... $ECHO_C" >&6
15403if test "${ac_cv_sizeof_short+set}" = set; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15405else
15406 if test "$ac_cv_type_short" = yes; then
15407 # The cast to unsigned long works around a bug in the HP C Compiler
15408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15410 # This bug is HP SR number 8606223364.
15411 if test "$cross_compiling" = yes; then
15412 # Depending upon the size, compute the lo and hi bounds.
15413cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419$ac_includes_default
15420int
15421main ()
15422{
15423static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15424test_array [0] = 0
15425
15426 ;
15427 return 0;
15428}
15429_ACEOF
15430rm -f conftest.$ac_objext
15431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15432 (eval $ac_compile) 2>conftest.er1
a848cd7e 15433 ac_status=$?
ac1cb8d3
VS
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
a848cd7e
SC
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
89be85c2
VS
15439 { ac_try='test -z "$ac_c_werror_flag"
15440 || test ! -s conftest.err'
ac1cb8d3
VS
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; } &&
15446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 ac_lo=0 ac_mid=0
15453 while :; do
15454 cat >conftest.$ac_ext <<_ACEOF
15455/* confdefs.h. */
15456_ACEOF
15457cat confdefs.h >>conftest.$ac_ext
15458cat >>conftest.$ac_ext <<_ACEOF
15459/* end confdefs.h. */
15460$ac_includes_default
15461int
15462main ()
15463{
15464static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15465test_array [0] = 0
15466
15467 ;
15468 return 0;
15469}
15470_ACEOF
15471rm -f conftest.$ac_objext
15472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15473 (eval $ac_compile) 2>conftest.er1
a848cd7e 15474 ac_status=$?
ac1cb8d3
VS
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
a848cd7e
SC
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
89be85c2
VS
15480 { ac_try='test -z "$ac_c_werror_flag"
15481 || test ! -s conftest.err'
ac1cb8d3
VS
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 ac_hi=$ac_mid; break
15494else
15495 echo "$as_me: failed program was:" >&5
15496sed 's/^/| /' conftest.$ac_ext >&5
15497
15498ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15499 if test $ac_lo -le $ac_mid; then
15500 ac_lo= ac_hi=
15501 break
15502 fi
15503 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15504fi
ac1cb8d3 15505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15506 done
15507else
15508 echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511cat >conftest.$ac_ext <<_ACEOF
15512/* confdefs.h. */
15513_ACEOF
15514cat confdefs.h >>conftest.$ac_ext
15515cat >>conftest.$ac_ext <<_ACEOF
15516/* end confdefs.h. */
15517$ac_includes_default
15518int
15519main ()
15520{
15521static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15522test_array [0] = 0
15523
15524 ;
15525 return 0;
15526}
15527_ACEOF
15528rm -f conftest.$ac_objext
15529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15530 (eval $ac_compile) 2>conftest.er1
a848cd7e 15531 ac_status=$?
ac1cb8d3
VS
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
a848cd7e
SC
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
89be85c2
VS
15537 { ac_try='test -z "$ac_c_werror_flag"
15538 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_hi=-1 ac_mid=-1
15551 while :; do
15552 cat >conftest.$ac_ext <<_ACEOF
15553/* confdefs.h. */
15554_ACEOF
15555cat confdefs.h >>conftest.$ac_ext
15556cat >>conftest.$ac_ext <<_ACEOF
15557/* end confdefs.h. */
15558$ac_includes_default
15559int
15560main ()
15561{
15562static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15563test_array [0] = 0
15564
15565 ;
15566 return 0;
15567}
15568_ACEOF
15569rm -f conftest.$ac_objext
15570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15571 (eval $ac_compile) 2>conftest.er1
a848cd7e 15572 ac_status=$?
ac1cb8d3
VS
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
a848cd7e
SC
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
89be85c2
VS
15578 { ac_try='test -z "$ac_c_werror_flag"
15579 || test ! -s conftest.err'
ac1cb8d3
VS
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_lo=$ac_mid; break
15592else
15593 echo "$as_me: failed program was:" >&5
15594sed 's/^/| /' conftest.$ac_ext >&5
15595
15596ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15597 if test $ac_mid -le $ac_hi; then
15598 ac_lo= ac_hi=
15599 break
15600 fi
15601 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15602fi
ac1cb8d3 15603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15604 done
15605else
15606 echo "$as_me: failed program was:" >&5
15607sed 's/^/| /' conftest.$ac_ext >&5
15608
15609ac_lo= ac_hi=
15610fi
ac1cb8d3 15611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15612fi
ac1cb8d3 15613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15614# Binary search between lo and hi bounds.
15615while test "x$ac_lo" != "x$ac_hi"; do
15616 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15617 cat >conftest.$ac_ext <<_ACEOF
15618/* confdefs.h. */
15619_ACEOF
15620cat confdefs.h >>conftest.$ac_ext
15621cat >>conftest.$ac_ext <<_ACEOF
15622/* end confdefs.h. */
15623$ac_includes_default
15624int
15625main ()
15626{
15627static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15628test_array [0] = 0
15629
15630 ;
15631 return 0;
15632}
15633_ACEOF
15634rm -f conftest.$ac_objext
15635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15636 (eval $ac_compile) 2>conftest.er1
a848cd7e 15637 ac_status=$?
ac1cb8d3
VS
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
a848cd7e
SC
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
89be85c2
VS
15643 { ac_try='test -z "$ac_c_werror_flag"
15644 || test ! -s conftest.err'
ac1cb8d3
VS
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; } &&
15650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15656 ac_hi=$ac_mid
15657else
15658 echo "$as_me: failed program was:" >&5
15659sed 's/^/| /' conftest.$ac_ext >&5
15660
15661ac_lo=`expr '(' $ac_mid ')' + 1`
15662fi
ac1cb8d3 15663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15664done
15665case $ac_lo in
15666?*) ac_cv_sizeof_short=$ac_lo;;
15667'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15668See \`config.log' for more details." >&5
15669echo "$as_me: error: cannot compute sizeof (short), 77
15670See \`config.log' for more details." >&2;}
15671 { (exit 1); exit 1; }; } ;;
15672esac
15673else
15674 if test "$cross_compiling" = yes; then
89be85c2
VS
15675 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15676See \`config.log' for more details." >&5
15677echo "$as_me: error: cannot run test program while cross compiling
15678See \`config.log' for more details." >&2;}
a848cd7e
SC
15679 { (exit 1); exit 1; }; }
15680else
15681 cat >conftest.$ac_ext <<_ACEOF
15682/* confdefs.h. */
15683_ACEOF
15684cat confdefs.h >>conftest.$ac_ext
15685cat >>conftest.$ac_ext <<_ACEOF
15686/* end confdefs.h. */
15687$ac_includes_default
15688long longval () { return (long) (sizeof (short)); }
15689unsigned long ulongval () { return (long) (sizeof (short)); }
15690#include <stdio.h>
15691#include <stdlib.h>
15692int
15693main ()
15694{
15695
15696 FILE *f = fopen ("conftest.val", "w");
15697 if (! f)
15698 exit (1);
15699 if (((long) (sizeof (short))) < 0)
15700 {
15701 long i = longval ();
15702 if (i != ((long) (sizeof (short))))
15703 exit (1);
15704 fprintf (f, "%ld\n", i);
15705 }
15706 else
15707 {
15708 unsigned long i = ulongval ();
15709 if (i != ((long) (sizeof (short))))
15710 exit (1);
15711 fprintf (f, "%lu\n", i);
15712 }
15713 exit (ferror (f) || fclose (f) != 0);
15714
15715 ;
15716 return 0;
15717}
15718_ACEOF
15719rm -f conftest$ac_exeext
15720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15721 (eval $ac_link) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_cv_sizeof_short=`cat conftest.val`
15731else
15732 echo "$as_me: program exited with status $ac_status" >&5
15733echo "$as_me: failed program was:" >&5
15734sed 's/^/| /' conftest.$ac_ext >&5
15735
15736( exit $ac_status )
15737{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15738See \`config.log' for more details." >&5
15739echo "$as_me: error: cannot compute sizeof (short), 77
15740See \`config.log' for more details." >&2;}
15741 { (exit 1); exit 1; }; }
15742fi
ac1cb8d3 15743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15744fi
15745fi
15746rm -f conftest.val
15747else
15748 ac_cv_sizeof_short=0
15749fi
15750fi
15751echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15752echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15753cat >>confdefs.h <<_ACEOF
15754#define SIZEOF_SHORT $ac_cv_sizeof_short
15755_ACEOF
15756
15757
15758echo "$as_me:$LINENO: checking for void *" >&5
15759echo $ECHO_N "checking for void *... $ECHO_C" >&6
15760if test "${ac_cv_type_void_p+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15762else
15763 cat >conftest.$ac_ext <<_ACEOF
15764/* confdefs.h. */
15765_ACEOF
15766cat confdefs.h >>conftest.$ac_ext
15767cat >>conftest.$ac_ext <<_ACEOF
15768/* end confdefs.h. */
15769$ac_includes_default
15770int
15771main ()
15772{
15773if ((void * *) 0)
15774 return 0;
15775if (sizeof (void *))
15776 return 0;
15777 ;
15778 return 0;
15779}
15780_ACEOF
15781rm -f conftest.$ac_objext
15782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15783 (eval $ac_compile) 2>conftest.er1
a848cd7e 15784 ac_status=$?
ac1cb8d3
VS
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
a848cd7e
SC
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
89be85c2
VS
15790 { ac_try='test -z "$ac_c_werror_flag"
15791 || test ! -s conftest.err'
ac1cb8d3
VS
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15803 ac_cv_type_void_p=yes
15804else
15805 echo "$as_me: failed program was:" >&5
15806sed 's/^/| /' conftest.$ac_ext >&5
15807
15808ac_cv_type_void_p=no
15809fi
ac1cb8d3 15810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15811fi
15812echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15813echo "${ECHO_T}$ac_cv_type_void_p" >&6
15814
15815echo "$as_me:$LINENO: checking size of void *" >&5
15816echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15817if test "${ac_cv_sizeof_void_p+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820 if test "$ac_cv_type_void_p" = yes; then
15821 # The cast to unsigned long works around a bug in the HP C Compiler
15822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15824 # This bug is HP SR number 8606223364.
15825 if test "$cross_compiling" = yes; then
15826 # Depending upon the size, compute the lo and hi bounds.
15827cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833$ac_includes_default
15834int
15835main ()
15836{
15837static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15838test_array [0] = 0
15839
15840 ;
15841 return 0;
15842}
15843_ACEOF
15844rm -f conftest.$ac_objext
15845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15846 (eval $ac_compile) 2>conftest.er1
a848cd7e 15847 ac_status=$?
ac1cb8d3
VS
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
a848cd7e
SC
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
89be85c2
VS
15853 { ac_try='test -z "$ac_c_werror_flag"
15854 || test ! -s conftest.err'
ac1cb8d3
VS
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_lo=0 ac_mid=0
15867 while :; do
15868 cat >conftest.$ac_ext <<_ACEOF
15869/* confdefs.h. */
15870_ACEOF
15871cat confdefs.h >>conftest.$ac_ext
15872cat >>conftest.$ac_ext <<_ACEOF
15873/* end confdefs.h. */
15874$ac_includes_default
15875int
15876main ()
15877{
15878static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15879test_array [0] = 0
15880
15881 ;
15882 return 0;
15883}
15884_ACEOF
15885rm -f conftest.$ac_objext
15886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15887 (eval $ac_compile) 2>conftest.er1
a848cd7e 15888 ac_status=$?
ac1cb8d3
VS
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
a848cd7e
SC
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
89be85c2
VS
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
ac1cb8d3
VS
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_hi=$ac_mid; break
15908else
15909 echo "$as_me: failed program was:" >&5
15910sed 's/^/| /' conftest.$ac_ext >&5
15911
15912ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15913 if test $ac_lo -le $ac_mid; then
15914 ac_lo= ac_hi=
15915 break
15916 fi
15917 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15918fi
ac1cb8d3 15919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15920 done
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925cat >conftest.$ac_ext <<_ACEOF
15926/* confdefs.h. */
15927_ACEOF
15928cat confdefs.h >>conftest.$ac_ext
15929cat >>conftest.$ac_ext <<_ACEOF
15930/* end confdefs.h. */
15931$ac_includes_default
15932int
15933main ()
15934{
15935static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15936test_array [0] = 0
15937
15938 ;
15939 return 0;
15940}
15941_ACEOF
15942rm -f conftest.$ac_objext
15943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15944 (eval $ac_compile) 2>conftest.er1
a848cd7e 15945 ac_status=$?
ac1cb8d3
VS
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
a848cd7e
SC
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
89be85c2
VS
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
ac1cb8d3
VS
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_hi=-1 ac_mid=-1
15965 while :; do
15966 cat >conftest.$ac_ext <<_ACEOF
15967/* confdefs.h. */
15968_ACEOF
15969cat confdefs.h >>conftest.$ac_ext
15970cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h. */
15972$ac_includes_default
15973int
15974main ()
15975{
15976static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15977test_array [0] = 0
15978
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983rm -f conftest.$ac_objext
15984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15985 (eval $ac_compile) 2>conftest.er1
a848cd7e 15986 ac_status=$?
ac1cb8d3
VS
15987 grep -v '^ *+' conftest.er1 >conftest.err
15988 rm -f conftest.er1
15989 cat conftest.err >&5
a848cd7e
SC
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
89be85c2
VS
15992 { ac_try='test -z "$ac_c_werror_flag"
15993 || test ! -s conftest.err'
ac1cb8d3
VS
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } &&
15999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_lo=$ac_mid; break
16006else
16007 echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16011 if test $ac_mid -le $ac_hi; then
16012 ac_lo= ac_hi=
16013 break
16014 fi
16015 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16016fi
ac1cb8d3 16017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16018 done
16019else
16020 echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023ac_lo= ac_hi=
16024fi
ac1cb8d3 16025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16026fi
ac1cb8d3 16027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16028# Binary search between lo and hi bounds.
16029while test "x$ac_lo" != "x$ac_hi"; do
16030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16031 cat >conftest.$ac_ext <<_ACEOF
16032/* confdefs.h. */
16033_ACEOF
16034cat confdefs.h >>conftest.$ac_ext
16035cat >>conftest.$ac_ext <<_ACEOF
16036/* end confdefs.h. */
16037$ac_includes_default
16038int
16039main ()
16040{
16041static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16042test_array [0] = 0
16043
16044 ;
16045 return 0;
16046}
16047_ACEOF
16048rm -f conftest.$ac_objext
16049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16050 (eval $ac_compile) 2>conftest.er1
a848cd7e 16051 ac_status=$?
ac1cb8d3
VS
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
a848cd7e
SC
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
89be85c2
VS
16057 { ac_try='test -z "$ac_c_werror_flag"
16058 || test ! -s conftest.err'
ac1cb8d3
VS
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_hi=$ac_mid
16071else
16072 echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075ac_lo=`expr '(' $ac_mid ')' + 1`
16076fi
ac1cb8d3 16077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16078done
16079case $ac_lo in
16080?*) ac_cv_sizeof_void_p=$ac_lo;;
16081'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16082See \`config.log' for more details." >&5
16083echo "$as_me: error: cannot compute sizeof (void *), 77
16084See \`config.log' for more details." >&2;}
16085 { (exit 1); exit 1; }; } ;;
16086esac
16087else
16088 if test "$cross_compiling" = yes; then
89be85c2
VS
16089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16090See \`config.log' for more details." >&5
16091echo "$as_me: error: cannot run test program while cross compiling
16092See \`config.log' for more details." >&2;}
a848cd7e
SC
16093 { (exit 1); exit 1; }; }
16094else
16095 cat >conftest.$ac_ext <<_ACEOF
16096/* confdefs.h. */
16097_ACEOF
16098cat confdefs.h >>conftest.$ac_ext
16099cat >>conftest.$ac_ext <<_ACEOF
16100/* end confdefs.h. */
16101$ac_includes_default
16102long longval () { return (long) (sizeof (void *)); }
16103unsigned long ulongval () { return (long) (sizeof (void *)); }
16104#include <stdio.h>
16105#include <stdlib.h>
16106int
16107main ()
16108{
16109
16110 FILE *f = fopen ("conftest.val", "w");
16111 if (! f)
16112 exit (1);
16113 if (((long) (sizeof (void *))) < 0)
16114 {
16115 long i = longval ();
16116 if (i != ((long) (sizeof (void *))))
16117 exit (1);
16118 fprintf (f, "%ld\n", i);
16119 }
16120 else
16121 {
16122 unsigned long i = ulongval ();
16123 if (i != ((long) (sizeof (void *))))
16124 exit (1);
16125 fprintf (f, "%lu\n", i);
16126 }
16127 exit (ferror (f) || fclose (f) != 0);
16128
16129 ;
16130 return 0;
16131}
16132_ACEOF
16133rm -f conftest$ac_exeext
16134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16135 (eval $ac_link) 2>&5
16136 ac_status=$?
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_cv_sizeof_void_p=`cat conftest.val`
16145else
16146 echo "$as_me: program exited with status $ac_status" >&5
16147echo "$as_me: failed program was:" >&5
16148sed 's/^/| /' conftest.$ac_ext >&5
16149
16150( exit $ac_status )
16151{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16152See \`config.log' for more details." >&5
16153echo "$as_me: error: cannot compute sizeof (void *), 77
16154See \`config.log' for more details." >&2;}
16155 { (exit 1); exit 1; }; }
16156fi
ac1cb8d3 16157rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16158fi
16159fi
16160rm -f conftest.val
16161else
16162 ac_cv_sizeof_void_p=0
16163fi
16164fi
16165echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16166echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16167cat >>confdefs.h <<_ACEOF
16168#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16169_ACEOF
16170
16171
16172echo "$as_me:$LINENO: checking for int" >&5
16173echo $ECHO_N "checking for int... $ECHO_C" >&6
16174if test "${ac_cv_type_int+set}" = set; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16176else
16177 cat >conftest.$ac_ext <<_ACEOF
16178/* confdefs.h. */
16179_ACEOF
16180cat confdefs.h >>conftest.$ac_ext
16181cat >>conftest.$ac_ext <<_ACEOF
16182/* end confdefs.h. */
16183$ac_includes_default
16184int
16185main ()
16186{
16187if ((int *) 0)
16188 return 0;
16189if (sizeof (int))
16190 return 0;
16191 ;
16192 return 0;
16193}
16194_ACEOF
16195rm -f conftest.$ac_objext
16196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16197 (eval $ac_compile) 2>conftest.er1
a848cd7e 16198 ac_status=$?
ac1cb8d3
VS
16199 grep -v '^ *+' conftest.er1 >conftest.err
16200 rm -f conftest.er1
16201 cat conftest.err >&5
a848cd7e
SC
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
89be85c2
VS
16204 { ac_try='test -z "$ac_c_werror_flag"
16205 || test ! -s conftest.err'
ac1cb8d3
VS
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; } &&
16211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16217 ac_cv_type_int=yes
16218else
16219 echo "$as_me: failed program was:" >&5
16220sed 's/^/| /' conftest.$ac_ext >&5
16221
16222ac_cv_type_int=no
16223fi
ac1cb8d3 16224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16225fi
16226echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16227echo "${ECHO_T}$ac_cv_type_int" >&6
16228
16229echo "$as_me:$LINENO: checking size of int" >&5
16230echo $ECHO_N "checking size of int... $ECHO_C" >&6
16231if test "${ac_cv_sizeof_int+set}" = set; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234 if test "$ac_cv_type_int" = yes; then
16235 # The cast to unsigned long works around a bug in the HP C Compiler
16236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16238 # This bug is HP SR number 8606223364.
16239 if test "$cross_compiling" = yes; then
16240 # Depending upon the size, compute the lo and hi bounds.
16241cat >conftest.$ac_ext <<_ACEOF
16242/* confdefs.h. */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h. */
16247$ac_includes_default
16248int
16249main ()
16250{
16251static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16252test_array [0] = 0
16253
16254 ;
16255 return 0;
16256}
16257_ACEOF
16258rm -f conftest.$ac_objext
16259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16260 (eval $ac_compile) 2>conftest.er1
a848cd7e 16261 ac_status=$?
ac1cb8d3
VS
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
a848cd7e
SC
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
89be85c2
VS
16267 { ac_try='test -z "$ac_c_werror_flag"
16268 || test ! -s conftest.err'
ac1cb8d3
VS
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; } &&
16274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; }; then
16280 ac_lo=0 ac_mid=0
16281 while :; do
16282 cat >conftest.$ac_ext <<_ACEOF
16283/* confdefs.h. */
16284_ACEOF
16285cat confdefs.h >>conftest.$ac_ext
16286cat >>conftest.$ac_ext <<_ACEOF
16287/* end confdefs.h. */
16288$ac_includes_default
16289int
16290main ()
16291{
16292static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16293test_array [0] = 0
16294
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299rm -f conftest.$ac_objext
16300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16301 (eval $ac_compile) 2>conftest.er1
a848cd7e 16302 ac_status=$?
ac1cb8d3
VS
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
a848cd7e
SC
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } &&
89be85c2
VS
16308 { ac_try='test -z "$ac_c_werror_flag"
16309 || test ! -s conftest.err'
ac1cb8d3
VS
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16321 ac_hi=$ac_mid; break
16322else
16323 echo "$as_me: failed program was:" >&5
16324sed 's/^/| /' conftest.$ac_ext >&5
16325
16326ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16327 if test $ac_lo -le $ac_mid; then
16328 ac_lo= ac_hi=
16329 break
16330 fi
16331 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16332fi
ac1cb8d3 16333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16334 done
16335else
16336 echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
16345$ac_includes_default
16346int
16347main ()
16348{
16349static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16350test_array [0] = 0
16351
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356rm -f conftest.$ac_objext
16357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16358 (eval $ac_compile) 2>conftest.er1
a848cd7e 16359 ac_status=$?
ac1cb8d3
VS
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
a848cd7e
SC
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
89be85c2
VS
16365 { ac_try='test -z "$ac_c_werror_flag"
16366 || test ! -s conftest.err'
ac1cb8d3
VS
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_hi=-1 ac_mid=-1
16379 while :; do
16380 cat >conftest.$ac_ext <<_ACEOF
16381/* confdefs.h. */
16382_ACEOF
16383cat confdefs.h >>conftest.$ac_ext
16384cat >>conftest.$ac_ext <<_ACEOF
16385/* end confdefs.h. */
16386$ac_includes_default
16387int
16388main ()
16389{
16390static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16391test_array [0] = 0
16392
16393 ;
16394 return 0;
16395}
16396_ACEOF
16397rm -f conftest.$ac_objext
16398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16399 (eval $ac_compile) 2>conftest.er1
a848cd7e 16400 ac_status=$?
ac1cb8d3
VS
16401 grep -v '^ *+' conftest.er1 >conftest.err
16402 rm -f conftest.er1
16403 cat conftest.err >&5
a848cd7e
SC
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
89be85c2
VS
16406 { ac_try='test -z "$ac_c_werror_flag"
16407 || test ! -s conftest.err'
ac1cb8d3
VS
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; } &&
16413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_lo=$ac_mid; break
16420else
16421 echo "$as_me: failed program was:" >&5
16422sed 's/^/| /' conftest.$ac_ext >&5
16423
16424ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16425 if test $ac_mid -le $ac_hi; then
16426 ac_lo= ac_hi=
16427 break
16428 fi
16429 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16430fi
ac1cb8d3 16431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16432 done
16433else
16434 echo "$as_me: failed program was:" >&5
16435sed 's/^/| /' conftest.$ac_ext >&5
16436
16437ac_lo= ac_hi=
16438fi
ac1cb8d3 16439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16440fi
ac1cb8d3 16441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16442# Binary search between lo and hi bounds.
16443while test "x$ac_lo" != "x$ac_hi"; do
16444 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16445 cat >conftest.$ac_ext <<_ACEOF
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451$ac_includes_default
16452int
16453main ()
16454{
16455static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16456test_array [0] = 0
16457
16458 ;
16459 return 0;
16460}
16461_ACEOF
16462rm -f conftest.$ac_objext
16463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16464 (eval $ac_compile) 2>conftest.er1
a848cd7e 16465 ac_status=$?
ac1cb8d3
VS
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
a848cd7e
SC
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
89be85c2
VS
16471 { ac_try='test -z "$ac_c_werror_flag"
16472 || test ! -s conftest.err'
ac1cb8d3
VS
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_hi=$ac_mid
16485else
16486 echo "$as_me: failed program was:" >&5
16487sed 's/^/| /' conftest.$ac_ext >&5
16488
16489ac_lo=`expr '(' $ac_mid ')' + 1`
16490fi
ac1cb8d3 16491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16492done
16493case $ac_lo in
16494?*) ac_cv_sizeof_int=$ac_lo;;
16495'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16496See \`config.log' for more details." >&5
16497echo "$as_me: error: cannot compute sizeof (int), 77
16498See \`config.log' for more details." >&2;}
16499 { (exit 1); exit 1; }; } ;;
16500esac
16501else
16502 if test "$cross_compiling" = yes; then
89be85c2
VS
16503 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16504See \`config.log' for more details." >&5
16505echo "$as_me: error: cannot run test program while cross compiling
16506See \`config.log' for more details." >&2;}
a848cd7e
SC
16507 { (exit 1); exit 1; }; }
16508else
16509 cat >conftest.$ac_ext <<_ACEOF
16510/* confdefs.h. */
16511_ACEOF
16512cat confdefs.h >>conftest.$ac_ext
16513cat >>conftest.$ac_ext <<_ACEOF
16514/* end confdefs.h. */
16515$ac_includes_default
16516long longval () { return (long) (sizeof (int)); }
16517unsigned long ulongval () { return (long) (sizeof (int)); }
16518#include <stdio.h>
16519#include <stdlib.h>
16520int
16521main ()
16522{
16523
16524 FILE *f = fopen ("conftest.val", "w");
16525 if (! f)
16526 exit (1);
16527 if (((long) (sizeof (int))) < 0)
16528 {
16529 long i = longval ();
16530 if (i != ((long) (sizeof (int))))
16531 exit (1);
16532 fprintf (f, "%ld\n", i);
16533 }
16534 else
16535 {
16536 unsigned long i = ulongval ();
16537 if (i != ((long) (sizeof (int))))
16538 exit (1);
16539 fprintf (f, "%lu\n", i);
16540 }
16541 exit (ferror (f) || fclose (f) != 0);
16542
16543 ;
16544 return 0;
16545}
16546_ACEOF
16547rm -f conftest$ac_exeext
16548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549 (eval $ac_link) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_cv_sizeof_int=`cat conftest.val`
16559else
16560 echo "$as_me: program exited with status $ac_status" >&5
16561echo "$as_me: failed program was:" >&5
16562sed 's/^/| /' conftest.$ac_ext >&5
16563
16564( exit $ac_status )
16565{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16566See \`config.log' for more details." >&5
16567echo "$as_me: error: cannot compute sizeof (int), 77
16568See \`config.log' for more details." >&2;}
16569 { (exit 1); exit 1; }; }
16570fi
ac1cb8d3 16571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16572fi
16573fi
16574rm -f conftest.val
16575else
16576 ac_cv_sizeof_int=0
16577fi
16578fi
16579echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16580echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16581cat >>confdefs.h <<_ACEOF
16582#define SIZEOF_INT $ac_cv_sizeof_int
16583_ACEOF
16584
16585
16586echo "$as_me:$LINENO: checking for long" >&5
16587echo $ECHO_N "checking for long... $ECHO_C" >&6
16588if test "${ac_cv_type_long+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590else
16591 cat >conftest.$ac_ext <<_ACEOF
16592/* confdefs.h. */
16593_ACEOF
16594cat confdefs.h >>conftest.$ac_ext
16595cat >>conftest.$ac_ext <<_ACEOF
16596/* end confdefs.h. */
16597$ac_includes_default
16598int
16599main ()
16600{
16601if ((long *) 0)
16602 return 0;
16603if (sizeof (long))
16604 return 0;
16605 ;
16606 return 0;
16607}
16608_ACEOF
16609rm -f conftest.$ac_objext
16610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16611 (eval $ac_compile) 2>conftest.er1
a848cd7e 16612 ac_status=$?
ac1cb8d3
VS
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
a848cd7e
SC
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
89be85c2
VS
16618 { ac_try='test -z "$ac_c_werror_flag"
16619 || test ! -s conftest.err'
ac1cb8d3
VS
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_type_long=yes
16632else
16633 echo "$as_me: failed program was:" >&5
16634sed 's/^/| /' conftest.$ac_ext >&5
16635
16636ac_cv_type_long=no
16637fi
ac1cb8d3 16638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16639fi
16640echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16641echo "${ECHO_T}$ac_cv_type_long" >&6
16642
16643echo "$as_me:$LINENO: checking size of long" >&5
16644echo $ECHO_N "checking size of long... $ECHO_C" >&6
16645if test "${ac_cv_sizeof_long+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647else
16648 if test "$ac_cv_type_long" = yes; then
16649 # The cast to unsigned long works around a bug in the HP C Compiler
16650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16652 # This bug is HP SR number 8606223364.
16653 if test "$cross_compiling" = yes; then
16654 # Depending upon the size, compute the lo and hi bounds.
16655cat >conftest.$ac_ext <<_ACEOF
16656/* confdefs.h. */
16657_ACEOF
16658cat confdefs.h >>conftest.$ac_ext
16659cat >>conftest.$ac_ext <<_ACEOF
16660/* end confdefs.h. */
16661$ac_includes_default
16662int
16663main ()
16664{
16665static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16666test_array [0] = 0
16667
16668 ;
16669 return 0;
16670}
16671_ACEOF
16672rm -f conftest.$ac_objext
16673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16674 (eval $ac_compile) 2>conftest.er1
a848cd7e 16675 ac_status=$?
ac1cb8d3
VS
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
a848cd7e
SC
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
89be85c2
VS
16681 { ac_try='test -z "$ac_c_werror_flag"
16682 || test ! -s conftest.err'
ac1cb8d3
VS
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_lo=0 ac_mid=0
16695 while :; do
16696 cat >conftest.$ac_ext <<_ACEOF
16697/* confdefs.h. */
16698_ACEOF
16699cat confdefs.h >>conftest.$ac_ext
16700cat >>conftest.$ac_ext <<_ACEOF
16701/* end confdefs.h. */
16702$ac_includes_default
16703int
16704main ()
16705{
16706static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16707test_array [0] = 0
16708
16709 ;
16710 return 0;
16711}
16712_ACEOF
16713rm -f conftest.$ac_objext
16714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16715 (eval $ac_compile) 2>conftest.er1
a848cd7e 16716 ac_status=$?
ac1cb8d3
VS
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
a848cd7e
SC
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
89be85c2
VS
16722 { ac_try='test -z "$ac_c_werror_flag"
16723 || test ! -s conftest.err'
ac1cb8d3
VS
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_hi=$ac_mid; break
16736else
16737 echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
16740ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16741 if test $ac_lo -le $ac_mid; then
16742 ac_lo= ac_hi=
16743 break
16744 fi
16745 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16746fi
ac1cb8d3 16747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16748 done
16749else
16750 echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
16753cat >conftest.$ac_ext <<_ACEOF
16754/* confdefs.h. */
16755_ACEOF
16756cat confdefs.h >>conftest.$ac_ext
16757cat >>conftest.$ac_ext <<_ACEOF
16758/* end confdefs.h. */
16759$ac_includes_default
16760int
16761main ()
16762{
16763static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16764test_array [0] = 0
16765
16766 ;
16767 return 0;
16768}
16769_ACEOF
16770rm -f conftest.$ac_objext
16771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16772 (eval $ac_compile) 2>conftest.er1
a848cd7e 16773 ac_status=$?
ac1cb8d3
VS
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
a848cd7e
SC
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
89be85c2
VS
16779 { ac_try='test -z "$ac_c_werror_flag"
16780 || test ! -s conftest.err'
ac1cb8d3
VS
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_hi=-1 ac_mid=-1
16793 while :; do
16794 cat >conftest.$ac_ext <<_ACEOF
16795/* confdefs.h. */
16796_ACEOF
16797cat confdefs.h >>conftest.$ac_ext
16798cat >>conftest.$ac_ext <<_ACEOF
16799/* end confdefs.h. */
16800$ac_includes_default
16801int
16802main ()
16803{
16804static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16805test_array [0] = 0
16806
16807 ;
16808 return 0;
16809}
16810_ACEOF
16811rm -f conftest.$ac_objext
16812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16813 (eval $ac_compile) 2>conftest.er1
a848cd7e 16814 ac_status=$?
ac1cb8d3
VS
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
a848cd7e
SC
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
89be85c2
VS
16820 { ac_try='test -z "$ac_c_werror_flag"
16821 || test ! -s conftest.err'
ac1cb8d3
VS
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 ac_lo=$ac_mid; break
16834else
16835 echo "$as_me: failed program was:" >&5
16836sed 's/^/| /' conftest.$ac_ext >&5
16837
16838ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16839 if test $ac_mid -le $ac_hi; then
16840 ac_lo= ac_hi=
16841 break
16842 fi
16843 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16844fi
ac1cb8d3 16845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16846 done
16847else
16848 echo "$as_me: failed program was:" >&5
16849sed 's/^/| /' conftest.$ac_ext >&5
16850
16851ac_lo= ac_hi=
16852fi
ac1cb8d3 16853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16854fi
ac1cb8d3 16855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16856# Binary search between lo and hi bounds.
16857while test "x$ac_lo" != "x$ac_hi"; do
16858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16859 cat >conftest.$ac_ext <<_ACEOF
16860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
16865$ac_includes_default
16866int
16867main ()
16868{
16869static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16870test_array [0] = 0
16871
16872 ;
16873 return 0;
16874}
16875_ACEOF
16876rm -f conftest.$ac_objext
16877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16878 (eval $ac_compile) 2>conftest.er1
a848cd7e 16879 ac_status=$?
ac1cb8d3
VS
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
a848cd7e
SC
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
89be85c2
VS
16885 { ac_try='test -z "$ac_c_werror_flag"
16886 || test ! -s conftest.err'
ac1cb8d3
VS
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_hi=$ac_mid
16899else
16900 echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
16903ac_lo=`expr '(' $ac_mid ')' + 1`
16904fi
ac1cb8d3 16905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16906done
16907case $ac_lo in
16908?*) ac_cv_sizeof_long=$ac_lo;;
16909'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16910See \`config.log' for more details." >&5
16911echo "$as_me: error: cannot compute sizeof (long), 77
16912See \`config.log' for more details." >&2;}
16913 { (exit 1); exit 1; }; } ;;
16914esac
16915else
16916 if test "$cross_compiling" = yes; then
89be85c2
VS
16917 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16918See \`config.log' for more details." >&5
16919echo "$as_me: error: cannot run test program while cross compiling
16920See \`config.log' for more details." >&2;}
a848cd7e
SC
16921 { (exit 1); exit 1; }; }
16922else
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929$ac_includes_default
16930long longval () { return (long) (sizeof (long)); }
16931unsigned long ulongval () { return (long) (sizeof (long)); }
16932#include <stdio.h>
16933#include <stdlib.h>
16934int
16935main ()
16936{
16937
16938 FILE *f = fopen ("conftest.val", "w");
16939 if (! f)
16940 exit (1);
16941 if (((long) (sizeof (long))) < 0)
16942 {
16943 long i = longval ();
16944 if (i != ((long) (sizeof (long))))
16945 exit (1);
16946 fprintf (f, "%ld\n", i);
16947 }
16948 else
16949 {
16950 unsigned long i = ulongval ();
16951 if (i != ((long) (sizeof (long))))
16952 exit (1);
16953 fprintf (f, "%lu\n", i);
16954 }
16955 exit (ferror (f) || fclose (f) != 0);
16956
16957 ;
16958 return 0;
16959}
16960_ACEOF
16961rm -f conftest$ac_exeext
16962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16963 (eval $ac_link) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
16972 ac_cv_sizeof_long=`cat conftest.val`
16973else
16974 echo "$as_me: program exited with status $ac_status" >&5
16975echo "$as_me: failed program was:" >&5
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
16978( exit $ac_status )
16979{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16980See \`config.log' for more details." >&5
16981echo "$as_me: error: cannot compute sizeof (long), 77
16982See \`config.log' for more details." >&2;}
16983 { (exit 1); exit 1; }; }
16984fi
ac1cb8d3 16985rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16986fi
16987fi
16988rm -f conftest.val
16989else
16990 ac_cv_sizeof_long=0
16991fi
16992fi
16993echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16994echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16995cat >>confdefs.h <<_ACEOF
16996#define SIZEOF_LONG $ac_cv_sizeof_long
16997_ACEOF
16998
16999
17000echo "$as_me:$LINENO: checking for size_t" >&5
17001echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17002if test "${ac_cv_type_size_t+set}" = set; then
17003 echo $ECHO_N "(cached) $ECHO_C" >&6
17004else
17005 cat >conftest.$ac_ext <<_ACEOF
17006/* confdefs.h. */
17007_ACEOF
17008cat confdefs.h >>conftest.$ac_ext
17009cat >>conftest.$ac_ext <<_ACEOF
17010/* end confdefs.h. */
17011$ac_includes_default
17012int
17013main ()
17014{
17015if ((size_t *) 0)
17016 return 0;
17017if (sizeof (size_t))
17018 return 0;
17019 ;
17020 return 0;
17021}
17022_ACEOF
17023rm -f conftest.$ac_objext
17024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17025 (eval $ac_compile) 2>conftest.er1
a848cd7e 17026 ac_status=$?
ac1cb8d3
VS
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
a848cd7e
SC
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
89be85c2
VS
17032 { ac_try='test -z "$ac_c_werror_flag"
17033 || test ! -s conftest.err'
ac1cb8d3
VS
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_type_size_t=yes
17046else
17047 echo "$as_me: failed program was:" >&5
17048sed 's/^/| /' conftest.$ac_ext >&5
17049
17050ac_cv_type_size_t=no
17051fi
ac1cb8d3 17052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17053fi
17054echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17055echo "${ECHO_T}$ac_cv_type_size_t" >&6
17056
17057echo "$as_me:$LINENO: checking size of size_t" >&5
17058echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17059if test "${ac_cv_sizeof_size_t+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061else
17062 if test "$ac_cv_type_size_t" = yes; then
17063 # The cast to unsigned long works around a bug in the HP C Compiler
17064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17066 # This bug is HP SR number 8606223364.
17067 if test "$cross_compiling" = yes; then
17068 # Depending upon the size, compute the lo and hi bounds.
17069cat >conftest.$ac_ext <<_ACEOF
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075$ac_includes_default
17076int
17077main ()
17078{
17079static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17080test_array [0] = 0
17081
17082 ;
17083 return 0;
17084}
17085_ACEOF
17086rm -f conftest.$ac_objext
17087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17088 (eval $ac_compile) 2>conftest.er1
a848cd7e 17089 ac_status=$?
ac1cb8d3
VS
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
a848cd7e
SC
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
89be85c2
VS
17095 { ac_try='test -z "$ac_c_werror_flag"
17096 || test ! -s conftest.err'
ac1cb8d3
VS
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
17108 ac_lo=0 ac_mid=0
17109 while :; do
17110 cat >conftest.$ac_ext <<_ACEOF
17111/* confdefs.h. */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h. */
17116$ac_includes_default
17117int
17118main ()
17119{
17120static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17121test_array [0] = 0
17122
17123 ;
17124 return 0;
17125}
17126_ACEOF
17127rm -f conftest.$ac_objext
17128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17129 (eval $ac_compile) 2>conftest.er1
a848cd7e 17130 ac_status=$?
ac1cb8d3
VS
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
a848cd7e
SC
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
89be85c2
VS
17136 { ac_try='test -z "$ac_c_werror_flag"
17137 || test ! -s conftest.err'
ac1cb8d3
VS
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; } &&
17143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 ac_hi=$ac_mid; break
17150else
17151 echo "$as_me: failed program was:" >&5
17152sed 's/^/| /' conftest.$ac_ext >&5
17153
17154ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17155 if test $ac_lo -le $ac_mid; then
17156 ac_lo= ac_hi=
17157 break
17158 fi
17159 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17160fi
ac1cb8d3 17161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17162 done
17163else
17164 echo "$as_me: failed program was:" >&5
17165sed 's/^/| /' conftest.$ac_ext >&5
17166
17167cat >conftest.$ac_ext <<_ACEOF
17168/* confdefs.h. */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h. */
17173$ac_includes_default
17174int
17175main ()
17176{
17177static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17178test_array [0] = 0
17179
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184rm -f conftest.$ac_objext
17185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17186 (eval $ac_compile) 2>conftest.er1
a848cd7e 17187 ac_status=$?
ac1cb8d3
VS
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
a848cd7e
SC
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
89be85c2
VS
17193 { ac_try='test -z "$ac_c_werror_flag"
17194 || test ! -s conftest.err'
ac1cb8d3
VS
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206 ac_hi=-1 ac_mid=-1
17207 while :; do
17208 cat >conftest.$ac_ext <<_ACEOF
17209/* confdefs.h. */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h. */
17214$ac_includes_default
17215int
17216main ()
17217{
17218static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17219test_array [0] = 0
17220
17221 ;
17222 return 0;
17223}
17224_ACEOF
17225rm -f conftest.$ac_objext
17226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17227 (eval $ac_compile) 2>conftest.er1
a848cd7e 17228 ac_status=$?
ac1cb8d3
VS
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
a848cd7e
SC
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } &&
89be85c2
VS
17234 { ac_try='test -z "$ac_c_werror_flag"
17235 || test ! -s conftest.err'
ac1cb8d3
VS
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; } &&
17241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; }; then
17247 ac_lo=$ac_mid; break
17248else
17249 echo "$as_me: failed program was:" >&5
17250sed 's/^/| /' conftest.$ac_ext >&5
17251
17252ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17253 if test $ac_mid -le $ac_hi; then
17254 ac_lo= ac_hi=
17255 break
17256 fi
17257 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17258fi
ac1cb8d3 17259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17260 done
17261else
17262 echo "$as_me: failed program was:" >&5
17263sed 's/^/| /' conftest.$ac_ext >&5
17264
17265ac_lo= ac_hi=
17266fi
ac1cb8d3 17267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17268fi
ac1cb8d3 17269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17270# Binary search between lo and hi bounds.
17271while test "x$ac_lo" != "x$ac_hi"; do
17272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17273 cat >conftest.$ac_ext <<_ACEOF
17274/* confdefs.h. */
17275_ACEOF
17276cat confdefs.h >>conftest.$ac_ext
17277cat >>conftest.$ac_ext <<_ACEOF
17278/* end confdefs.h. */
17279$ac_includes_default
17280int
17281main ()
17282{
17283static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17284test_array [0] = 0
17285
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext
17291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17292 (eval $ac_compile) 2>conftest.er1
a848cd7e 17293 ac_status=$?
ac1cb8d3
VS
17294 grep -v '^ *+' conftest.er1 >conftest.err
17295 rm -f conftest.er1
17296 cat conftest.err >&5
a848cd7e
SC
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
89be85c2
VS
17299 { ac_try='test -z "$ac_c_werror_flag"
17300 || test ! -s conftest.err'
ac1cb8d3
VS
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_hi=$ac_mid
17313else
17314 echo "$as_me: failed program was:" >&5
17315sed 's/^/| /' conftest.$ac_ext >&5
17316
17317ac_lo=`expr '(' $ac_mid ')' + 1`
17318fi
ac1cb8d3 17319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17320done
17321case $ac_lo in
17322?*) ac_cv_sizeof_size_t=$ac_lo;;
17323'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17324See \`config.log' for more details." >&5
17325echo "$as_me: error: cannot compute sizeof (size_t), 77
17326See \`config.log' for more details." >&2;}
17327 { (exit 1); exit 1; }; } ;;
17328esac
17329else
17330 if test "$cross_compiling" = yes; then
89be85c2
VS
17331 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17332See \`config.log' for more details." >&5
17333echo "$as_me: error: cannot run test program while cross compiling
17334See \`config.log' for more details." >&2;}
a848cd7e
SC
17335 { (exit 1); exit 1; }; }
17336else
17337 cat >conftest.$ac_ext <<_ACEOF
17338/* confdefs.h. */
17339_ACEOF
17340cat confdefs.h >>conftest.$ac_ext
17341cat >>conftest.$ac_ext <<_ACEOF
17342/* end confdefs.h. */
17343$ac_includes_default
17344long longval () { return (long) (sizeof (size_t)); }
17345unsigned long ulongval () { return (long) (sizeof (size_t)); }
17346#include <stdio.h>
17347#include <stdlib.h>
17348int
17349main ()
17350{
17351
17352 FILE *f = fopen ("conftest.val", "w");
17353 if (! f)
17354 exit (1);
17355 if (((long) (sizeof (size_t))) < 0)
17356 {
17357 long i = longval ();
17358 if (i != ((long) (sizeof (size_t))))
17359 exit (1);
17360 fprintf (f, "%ld\n", i);
17361 }
17362 else
17363 {
17364 unsigned long i = ulongval ();
17365 if (i != ((long) (sizeof (size_t))))
17366 exit (1);
17367 fprintf (f, "%lu\n", i);
17368 }
17369 exit (ferror (f) || fclose (f) != 0);
17370
17371 ;
17372 return 0;
17373}
17374_ACEOF
17375rm -f conftest$ac_exeext
17376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17377 (eval $ac_link) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 ac_cv_sizeof_size_t=`cat conftest.val`
17387else
17388 echo "$as_me: program exited with status $ac_status" >&5
17389echo "$as_me: failed program was:" >&5
17390sed 's/^/| /' conftest.$ac_ext >&5
17391
17392( exit $ac_status )
17393{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17394See \`config.log' for more details." >&5
17395echo "$as_me: error: cannot compute sizeof (size_t), 77
17396See \`config.log' for more details." >&2;}
17397 { (exit 1); exit 1; }; }
17398fi
ac1cb8d3 17399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17400fi
17401fi
17402rm -f conftest.val
17403else
17404 ac_cv_sizeof_size_t=0
17405fi
17406fi
17407echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17408echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17409cat >>confdefs.h <<_ACEOF
17410#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17411_ACEOF
17412
17413
17414
17415case "${host}" in
17416 arm-*-linux* )
17417 echo "$as_me:$LINENO: checking for long long" >&5
17418echo $ECHO_N "checking for long long... $ECHO_C" >&6
17419if test "${ac_cv_type_long_long+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17421else
17422 cat >conftest.$ac_ext <<_ACEOF
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
17428$ac_includes_default
17429int
17430main ()
17431{
17432if ((long long *) 0)
17433 return 0;
17434if (sizeof (long long))
17435 return 0;
17436 ;
17437 return 0;
17438}
17439_ACEOF
17440rm -f conftest.$ac_objext
17441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17442 (eval $ac_compile) 2>conftest.er1
a848cd7e 17443 ac_status=$?
ac1cb8d3
VS
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
a848cd7e
SC
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
89be85c2
VS
17449 { ac_try='test -z "$ac_c_werror_flag"
17450 || test ! -s conftest.err'
ac1cb8d3
VS
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; }; then
17462 ac_cv_type_long_long=yes
17463else
17464 echo "$as_me: failed program was:" >&5
17465sed 's/^/| /' conftest.$ac_ext >&5
17466
17467ac_cv_type_long_long=no
17468fi
ac1cb8d3 17469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17470fi
17471echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17472echo "${ECHO_T}$ac_cv_type_long_long" >&6
17473
17474echo "$as_me:$LINENO: checking size of long long" >&5
17475echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17476if test "${ac_cv_sizeof_long_long+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478else
17479 if test "$ac_cv_type_long_long" = yes; then
17480 # The cast to unsigned long works around a bug in the HP C Compiler
17481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17483 # This bug is HP SR number 8606223364.
17484 if test "$cross_compiling" = yes; then
17485 # Depending upon the size, compute the lo and hi bounds.
17486cat >conftest.$ac_ext <<_ACEOF
17487/* confdefs.h. */
17488_ACEOF
17489cat confdefs.h >>conftest.$ac_ext
17490cat >>conftest.$ac_ext <<_ACEOF
17491/* end confdefs.h. */
17492$ac_includes_default
17493int
17494main ()
17495{
17496static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17497test_array [0] = 0
17498
17499 ;
17500 return 0;
17501}
17502_ACEOF
17503rm -f conftest.$ac_objext
17504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17505 (eval $ac_compile) 2>conftest.er1
a848cd7e 17506 ac_status=$?
ac1cb8d3
VS
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
a848cd7e
SC
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
89be85c2
VS
17512 { ac_try='test -z "$ac_c_werror_flag"
17513 || test ! -s conftest.err'
ac1cb8d3
VS
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; } &&
17519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 ac_lo=0 ac_mid=0
17526 while :; do
17527 cat >conftest.$ac_ext <<_ACEOF
17528/* confdefs.h. */
17529_ACEOF
17530cat confdefs.h >>conftest.$ac_ext
17531cat >>conftest.$ac_ext <<_ACEOF
17532/* end confdefs.h. */
17533$ac_includes_default
17534int
17535main ()
17536{
17537static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17538test_array [0] = 0
17539
17540 ;
17541 return 0;
17542}
17543_ACEOF
17544rm -f conftest.$ac_objext
17545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17546 (eval $ac_compile) 2>conftest.er1
a848cd7e 17547 ac_status=$?
ac1cb8d3
VS
17548 grep -v '^ *+' conftest.er1 >conftest.err
17549 rm -f conftest.er1
17550 cat conftest.err >&5
a848cd7e
SC
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
89be85c2
VS
17553 { ac_try='test -z "$ac_c_werror_flag"
17554 || test ! -s conftest.err'
ac1cb8d3
VS
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_hi=$ac_mid; break
17567else
17568 echo "$as_me: failed program was:" >&5
17569sed 's/^/| /' conftest.$ac_ext >&5
17570
17571ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17572 if test $ac_lo -le $ac_mid; then
17573 ac_lo= ac_hi=
17574 break
17575 fi
17576 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17577fi
ac1cb8d3 17578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17579 done
17580else
17581 echo "$as_me: failed program was:" >&5
17582sed 's/^/| /' conftest.$ac_ext >&5
17583
17584cat >conftest.$ac_ext <<_ACEOF
17585/* confdefs.h. */
17586_ACEOF
17587cat confdefs.h >>conftest.$ac_ext
17588cat >>conftest.$ac_ext <<_ACEOF
17589/* end confdefs.h. */
17590$ac_includes_default
17591int
17592main ()
17593{
17594static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17595test_array [0] = 0
17596
17597 ;
17598 return 0;
17599}
17600_ACEOF
17601rm -f conftest.$ac_objext
17602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17603 (eval $ac_compile) 2>conftest.er1
a848cd7e 17604 ac_status=$?
ac1cb8d3
VS
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
a848cd7e
SC
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
89be85c2
VS
17610 { ac_try='test -z "$ac_c_werror_flag"
17611 || test ! -s conftest.err'
ac1cb8d3
VS
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; } &&
17617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 ac_hi=-1 ac_mid=-1
17624 while :; do
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631$ac_includes_default
17632int
17633main ()
17634{
17635static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17636test_array [0] = 0
17637
17638 ;
17639 return 0;
17640}
17641_ACEOF
17642rm -f conftest.$ac_objext
17643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17644 (eval $ac_compile) 2>conftest.er1
a848cd7e 17645 ac_status=$?
ac1cb8d3
VS
17646 grep -v '^ *+' conftest.er1 >conftest.err
17647 rm -f conftest.er1
17648 cat conftest.err >&5
a848cd7e
SC
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
89be85c2
VS
17651 { ac_try='test -z "$ac_c_werror_flag"
17652 || test ! -s conftest.err'
ac1cb8d3
VS
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17664 ac_lo=$ac_mid; break
17665else
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17670 if test $ac_mid -le $ac_hi; then
17671 ac_lo= ac_hi=
17672 break
17673 fi
17674 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17675fi
ac1cb8d3 17676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17677 done
17678else
17679 echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682ac_lo= ac_hi=
17683fi
ac1cb8d3 17684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17685fi
ac1cb8d3 17686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17687# Binary search between lo and hi bounds.
17688while test "x$ac_lo" != "x$ac_hi"; do
17689 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17690 cat >conftest.$ac_ext <<_ACEOF
17691/* confdefs.h. */
17692_ACEOF
17693cat confdefs.h >>conftest.$ac_ext
17694cat >>conftest.$ac_ext <<_ACEOF
17695/* end confdefs.h. */
17696$ac_includes_default
17697int
17698main ()
17699{
17700static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17701test_array [0] = 0
17702
17703 ;
17704 return 0;
17705}
17706_ACEOF
17707rm -f conftest.$ac_objext
17708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17709 (eval $ac_compile) 2>conftest.er1
a848cd7e 17710 ac_status=$?
ac1cb8d3
VS
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
a848cd7e
SC
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
89be85c2
VS
17716 { ac_try='test -z "$ac_c_werror_flag"
17717 || test ! -s conftest.err'
ac1cb8d3
VS
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_hi=$ac_mid
17730else
17731 echo "$as_me: failed program was:" >&5
17732sed 's/^/| /' conftest.$ac_ext >&5
17733
17734ac_lo=`expr '(' $ac_mid ')' + 1`
17735fi
ac1cb8d3 17736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17737done
17738case $ac_lo in
17739?*) ac_cv_sizeof_long_long=$ac_lo;;
17740'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17741See \`config.log' for more details." >&5
17742echo "$as_me: error: cannot compute sizeof (long long), 77
17743See \`config.log' for more details." >&2;}
17744 { (exit 1); exit 1; }; } ;;
17745esac
17746else
17747 if test "$cross_compiling" = yes; then
89be85c2
VS
17748 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17749See \`config.log' for more details." >&5
17750echo "$as_me: error: cannot run test program while cross compiling
17751See \`config.log' for more details." >&2;}
a848cd7e
SC
17752 { (exit 1); exit 1; }; }
17753else
17754 cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h. */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h. */
17760$ac_includes_default
17761long longval () { return (long) (sizeof (long long)); }
17762unsigned long ulongval () { return (long) (sizeof (long long)); }
17763#include <stdio.h>
17764#include <stdlib.h>
17765int
17766main ()
17767{
17768
17769 FILE *f = fopen ("conftest.val", "w");
17770 if (! f)
17771 exit (1);
17772 if (((long) (sizeof (long long))) < 0)
17773 {
17774 long i = longval ();
17775 if (i != ((long) (sizeof (long long))))
17776 exit (1);
17777 fprintf (f, "%ld\n", i);
17778 }
17779 else
17780 {
17781 unsigned long i = ulongval ();
17782 if (i != ((long) (sizeof (long long))))
17783 exit (1);
17784 fprintf (f, "%lu\n", i);
17785 }
17786 exit (ferror (f) || fclose (f) != 0);
17787
17788 ;
17789 return 0;
17790}
17791_ACEOF
17792rm -f conftest$ac_exeext
17793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794 (eval $ac_link) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 ac_cv_sizeof_long_long=`cat conftest.val`
17804else
17805 echo "$as_me: program exited with status $ac_status" >&5
17806echo "$as_me: failed program was:" >&5
17807sed 's/^/| /' conftest.$ac_ext >&5
17808
17809( exit $ac_status )
17810{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17811See \`config.log' for more details." >&5
17812echo "$as_me: error: cannot compute sizeof (long long), 77
17813See \`config.log' for more details." >&2;}
17814 { (exit 1); exit 1; }; }
17815fi
ac1cb8d3 17816rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17817fi
17818fi
17819rm -f conftest.val
17820else
17821 ac_cv_sizeof_long_long=0
17822fi
17823fi
17824echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17825echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17826cat >>confdefs.h <<_ACEOF
17827#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17828_ACEOF
17829
17830
17831 ;;
17832 *-hp-hpux* )
17833 echo "$as_me:$LINENO: checking for long long" >&5
17834echo $ECHO_N "checking for long long... $ECHO_C" >&6
17835if test "${ac_cv_type_long_long+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837else
17838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
17844$ac_includes_default
17845int
17846main ()
17847{
17848if ((long long *) 0)
17849 return 0;
17850if (sizeof (long long))
17851 return 0;
17852 ;
17853 return 0;
17854}
17855_ACEOF
17856rm -f conftest.$ac_objext
17857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17858 (eval $ac_compile) 2>conftest.er1
a848cd7e 17859 ac_status=$?
ac1cb8d3
VS
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
a848cd7e
SC
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
89be85c2
VS
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
ac1cb8d3
VS
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_type_long_long=yes
17879else
17880 echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883ac_cv_type_long_long=no
17884fi
ac1cb8d3 17885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17886fi
17887echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17888echo "${ECHO_T}$ac_cv_type_long_long" >&6
17889
17890echo "$as_me:$LINENO: checking size of long long" >&5
17891echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17892if test "${ac_cv_sizeof_long_long+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894else
17895 if test "$ac_cv_type_long_long" = yes; then
17896 # The cast to unsigned long works around a bug in the HP C Compiler
17897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17899 # This bug is HP SR number 8606223364.
17900 if test "$cross_compiling" = yes; then
17901 # Depending upon the size, compute the lo and hi bounds.
17902cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
17908$ac_includes_default
17909int
17910main ()
17911{
17912static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17913test_array [0] = 0
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest.$ac_objext
17920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17921 (eval $ac_compile) 2>conftest.er1
a848cd7e 17922 ac_status=$?
ac1cb8d3
VS
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
a848cd7e
SC
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
89be85c2
VS
17928 { ac_try='test -z "$ac_c_werror_flag"
17929 || test ! -s conftest.err'
ac1cb8d3
VS
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_lo=0 ac_mid=0
17942 while :; do
17943 cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
17949$ac_includes_default
17950int
17951main ()
17952{
17953static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17954test_array [0] = 0
17955
17956 ;
17957 return 0;
17958}
17959_ACEOF
17960rm -f conftest.$ac_objext
17961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17962 (eval $ac_compile) 2>conftest.er1
a848cd7e 17963 ac_status=$?
ac1cb8d3
VS
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
a848cd7e
SC
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
89be85c2
VS
17969 { ac_try='test -z "$ac_c_werror_flag"
17970 || test ! -s conftest.err'
ac1cb8d3
VS
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_hi=$ac_mid; break
17983else
17984 echo "$as_me: failed program was:" >&5
17985sed 's/^/| /' conftest.$ac_ext >&5
17986
17987ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17988 if test $ac_lo -le $ac_mid; then
17989 ac_lo= ac_hi=
17990 break
17991 fi
17992 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17993fi
ac1cb8d3 17994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17995 done
17996else
17997 echo "$as_me: failed program was:" >&5
17998sed 's/^/| /' conftest.$ac_ext >&5
17999
18000cat >conftest.$ac_ext <<_ACEOF
18001/* confdefs.h. */
18002_ACEOF
18003cat confdefs.h >>conftest.$ac_ext
18004cat >>conftest.$ac_ext <<_ACEOF
18005/* end confdefs.h. */
18006$ac_includes_default
18007int
18008main ()
18009{
18010static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18011test_array [0] = 0
18012
18013 ;
18014 return 0;
18015}
18016_ACEOF
18017rm -f conftest.$ac_objext
18018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18019 (eval $ac_compile) 2>conftest.er1
a848cd7e 18020 ac_status=$?
ac1cb8d3
VS
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
a848cd7e
SC
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
89be85c2
VS
18026 { ac_try='test -z "$ac_c_werror_flag"
18027 || 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); } &&
89be85c2
VS
18067 { ac_try='test -z "$ac_c_werror_flag"
18068 || test ! -s conftest.err'
ac1cb8d3
VS
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_lo=$ac_mid; break
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18086 if test $ac_mid -le $ac_hi; then
18087 ac_lo= ac_hi=
18088 break
18089 fi
18090 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18091fi
ac1cb8d3 18092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18093 done
18094else
18095 echo "$as_me: failed program was:" >&5
18096sed 's/^/| /' conftest.$ac_ext >&5
18097
18098ac_lo= ac_hi=
18099fi
ac1cb8d3 18100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18101fi
ac1cb8d3 18102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18103# Binary search between lo and hi bounds.
18104while test "x$ac_lo" != "x$ac_hi"; do
18105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18106 cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
18111/* end confdefs.h. */
18112$ac_includes_default
18113int
18114main ()
18115{
18116static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18117test_array [0] = 0
18118
18119 ;
18120 return 0;
18121}
18122_ACEOF
18123rm -f conftest.$ac_objext
18124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18125 (eval $ac_compile) 2>conftest.er1
a848cd7e 18126 ac_status=$?
ac1cb8d3
VS
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
a848cd7e
SC
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } &&
89be85c2
VS
18132 { ac_try='test -z "$ac_c_werror_flag"
18133 || test ! -s conftest.err'
ac1cb8d3
VS
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_hi=$ac_mid
18146else
18147 echo "$as_me: failed program was:" >&5
18148sed 's/^/| /' conftest.$ac_ext >&5
18149
18150ac_lo=`expr '(' $ac_mid ')' + 1`
18151fi
ac1cb8d3 18152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18153done
18154case $ac_lo in
18155?*) ac_cv_sizeof_long_long=$ac_lo;;
18156'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18157See \`config.log' for more details." >&5
18158echo "$as_me: error: cannot compute sizeof (long long), 77
18159See \`config.log' for more details." >&2;}
18160 { (exit 1); exit 1; }; } ;;
18161esac
18162else
18163 if test "$cross_compiling" = yes; then
89be85c2
VS
18164 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18165See \`config.log' for more details." >&5
18166echo "$as_me: error: cannot run test program while cross compiling
18167See \`config.log' for more details." >&2;}
a848cd7e
SC
18168 { (exit 1); exit 1; }; }
18169else
18170 cat >conftest.$ac_ext <<_ACEOF
18171/* confdefs.h. */
18172_ACEOF
18173cat confdefs.h >>conftest.$ac_ext
18174cat >>conftest.$ac_ext <<_ACEOF
18175/* end confdefs.h. */
18176$ac_includes_default
18177long longval () { return (long) (sizeof (long long)); }
18178unsigned long ulongval () { return (long) (sizeof (long long)); }
18179#include <stdio.h>
18180#include <stdlib.h>
18181int
18182main ()
18183{
18184
18185 FILE *f = fopen ("conftest.val", "w");
18186 if (! f)
18187 exit (1);
18188 if (((long) (sizeof (long long))) < 0)
18189 {
18190 long i = longval ();
18191 if (i != ((long) (sizeof (long long))))
18192 exit (1);
18193 fprintf (f, "%ld\n", i);
18194 }
18195 else
18196 {
18197 unsigned long i = ulongval ();
18198 if (i != ((long) (sizeof (long long))))
18199 exit (1);
18200 fprintf (f, "%lu\n", i);
18201 }
18202 exit (ferror (f) || fclose (f) != 0);
18203
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest$ac_exeext
18209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18210 (eval $ac_link) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_sizeof_long_long=`cat conftest.val`
18220else
18221 echo "$as_me: program exited with status $ac_status" >&5
18222echo "$as_me: failed program was:" >&5
18223sed 's/^/| /' conftest.$ac_ext >&5
18224
18225( exit $ac_status )
18226{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18227See \`config.log' for more details." >&5
18228echo "$as_me: error: cannot compute sizeof (long long), 77
18229See \`config.log' for more details." >&2;}
18230 { (exit 1); exit 1; }; }
18231fi
ac1cb8d3 18232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18233fi
18234fi
18235rm -f conftest.val
18236else
18237 ac_cv_sizeof_long_long=0
18238fi
18239fi
18240echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18241echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18242cat >>confdefs.h <<_ACEOF
18243#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18244_ACEOF
18245
18246
18247 if test "$ac_cv_sizeof_long_long" != "0"; then
18248 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18249 fi
18250 ;;
18251 * )
18252 echo "$as_me:$LINENO: checking for long long" >&5
18253echo $ECHO_N "checking for long long... $ECHO_C" >&6
18254if test "${ac_cv_type_long_long+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256else
18257 cat >conftest.$ac_ext <<_ACEOF
18258/* confdefs.h. */
18259_ACEOF
18260cat confdefs.h >>conftest.$ac_ext
18261cat >>conftest.$ac_ext <<_ACEOF
18262/* end confdefs.h. */
18263$ac_includes_default
18264int
18265main ()
18266{
18267if ((long long *) 0)
18268 return 0;
18269if (sizeof (long long))
18270 return 0;
18271 ;
18272 return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext
18276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18277 (eval $ac_compile) 2>conftest.er1
a848cd7e 18278 ac_status=$?
ac1cb8d3
VS
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
a848cd7e
SC
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
89be85c2
VS
18284 { ac_try='test -z "$ac_c_werror_flag"
18285 || test ! -s conftest.err'
ac1cb8d3
VS
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_type_long_long=yes
18298else
18299 echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302ac_cv_type_long_long=no
18303fi
ac1cb8d3 18304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18305fi
18306echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18307echo "${ECHO_T}$ac_cv_type_long_long" >&6
18308
18309echo "$as_me:$LINENO: checking size of long long" >&5
18310echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18311if test "${ac_cv_sizeof_long_long+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
18313else
18314 if test "$ac_cv_type_long_long" = yes; then
18315 # The cast to unsigned long works around a bug in the HP C Compiler
18316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18318 # This bug is HP SR number 8606223364.
18319 if test "$cross_compiling" = yes; then
18320 # Depending upon the size, compute the lo and hi bounds.
18321cat >conftest.$ac_ext <<_ACEOF
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
18327$ac_includes_default
18328int
18329main ()
18330{
18331static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18332test_array [0] = 0
18333
18334 ;
18335 return 0;
18336}
18337_ACEOF
18338rm -f conftest.$ac_objext
18339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18340 (eval $ac_compile) 2>conftest.er1
a848cd7e 18341 ac_status=$?
ac1cb8d3
VS
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
a848cd7e
SC
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
89be85c2
VS
18347 { ac_try='test -z "$ac_c_werror_flag"
18348 || test ! -s conftest.err'
ac1cb8d3
VS
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 ac_lo=0 ac_mid=0
18361 while :; do
18362 cat >conftest.$ac_ext <<_ACEOF
18363/* confdefs.h. */
18364_ACEOF
18365cat confdefs.h >>conftest.$ac_ext
18366cat >>conftest.$ac_ext <<_ACEOF
18367/* end confdefs.h. */
18368$ac_includes_default
18369int
18370main ()
18371{
18372static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18373test_array [0] = 0
18374
18375 ;
18376 return 0;
18377}
18378_ACEOF
18379rm -f conftest.$ac_objext
18380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18381 (eval $ac_compile) 2>conftest.er1
a848cd7e 18382 ac_status=$?
ac1cb8d3
VS
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
a848cd7e
SC
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
89be85c2
VS
18388 { ac_try='test -z "$ac_c_werror_flag"
18389 || test ! -s conftest.err'
ac1cb8d3
VS
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; } &&
18395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 ac_hi=$ac_mid; break
18402else
18403 echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18407 if test $ac_lo -le $ac_mid; then
18408 ac_lo= ac_hi=
18409 break
18410 fi
18411 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18412fi
ac1cb8d3 18413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18414 done
18415else
18416 echo "$as_me: failed program was:" >&5
18417sed 's/^/| /' conftest.$ac_ext >&5
18418
18419cat >conftest.$ac_ext <<_ACEOF
18420/* confdefs.h. */
18421_ACEOF
18422cat confdefs.h >>conftest.$ac_ext
18423cat >>conftest.$ac_ext <<_ACEOF
18424/* end confdefs.h. */
18425$ac_includes_default
18426int
18427main ()
18428{
18429static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18430test_array [0] = 0
18431
18432 ;
18433 return 0;
18434}
18435_ACEOF
18436rm -f conftest.$ac_objext
18437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18438 (eval $ac_compile) 2>conftest.er1
a848cd7e 18439 ac_status=$?
ac1cb8d3
VS
18440 grep -v '^ *+' conftest.er1 >conftest.err
18441 rm -f conftest.er1
18442 cat conftest.err >&5
a848cd7e
SC
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } &&
89be85c2
VS
18445 { ac_try='test -z "$ac_c_werror_flag"
18446 || test ! -s conftest.err'
ac1cb8d3
VS
18447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448 (eval $ac_try) 2>&5
18449 ac_status=$?
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; } &&
18452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; }; then
18458 ac_hi=-1 ac_mid=-1
18459 while :; do
18460 cat >conftest.$ac_ext <<_ACEOF
18461/* confdefs.h. */
18462_ACEOF
18463cat confdefs.h >>conftest.$ac_ext
18464cat >>conftest.$ac_ext <<_ACEOF
18465/* end confdefs.h. */
18466$ac_includes_default
18467int
18468main ()
18469{
18470static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18471test_array [0] = 0
18472
18473 ;
18474 return 0;
18475}
18476_ACEOF
18477rm -f conftest.$ac_objext
18478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18479 (eval $ac_compile) 2>conftest.er1
a848cd7e 18480 ac_status=$?
ac1cb8d3
VS
18481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
a848cd7e
SC
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
89be85c2
VS
18486 { ac_try='test -z "$ac_c_werror_flag"
18487 || test ! -s conftest.err'
ac1cb8d3
VS
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; } &&
18493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495 (eval $ac_try) 2>&5
18496 ac_status=$?
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; }; then
18499 ac_lo=$ac_mid; break
18500else
18501 echo "$as_me: failed program was:" >&5
18502sed 's/^/| /' conftest.$ac_ext >&5
18503
18504ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18505 if test $ac_mid -le $ac_hi; then
18506 ac_lo= ac_hi=
18507 break
18508 fi
18509 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18510fi
ac1cb8d3 18511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18512 done
18513else
18514 echo "$as_me: failed program was:" >&5
18515sed 's/^/| /' conftest.$ac_ext >&5
18516
18517ac_lo= ac_hi=
18518fi
ac1cb8d3 18519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18520fi
ac1cb8d3 18521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18522# Binary search between lo and hi bounds.
18523while test "x$ac_lo" != "x$ac_hi"; do
18524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18525 cat >conftest.$ac_ext <<_ACEOF
18526/* confdefs.h. */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
18530/* end confdefs.h. */
18531$ac_includes_default
18532int
18533main ()
18534{
18535static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18536test_array [0] = 0
18537
18538 ;
18539 return 0;
18540}
18541_ACEOF
18542rm -f conftest.$ac_objext
18543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18544 (eval $ac_compile) 2>conftest.er1
a848cd7e 18545 ac_status=$?
ac1cb8d3
VS
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
a848cd7e
SC
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
89be85c2
VS
18551 { ac_try='test -z "$ac_c_werror_flag"
18552 || test ! -s conftest.err'
ac1cb8d3
VS
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_hi=$ac_mid
18565else
18566 echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
18568
18569ac_lo=`expr '(' $ac_mid ')' + 1`
18570fi
ac1cb8d3 18571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18572done
18573case $ac_lo in
18574?*) ac_cv_sizeof_long_long=$ac_lo;;
18575'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18576See \`config.log' for more details." >&5
18577echo "$as_me: error: cannot compute sizeof (long long), 77
18578See \`config.log' for more details." >&2;}
18579 { (exit 1); exit 1; }; } ;;
18580esac
18581else
18582 if test "$cross_compiling" = yes; then
89be85c2
VS
18583 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18584See \`config.log' for more details." >&5
18585echo "$as_me: error: cannot run test program while cross compiling
18586See \`config.log' for more details." >&2;}
a848cd7e
SC
18587 { (exit 1); exit 1; }; }
18588else
18589 cat >conftest.$ac_ext <<_ACEOF
18590/* confdefs.h. */
18591_ACEOF
18592cat confdefs.h >>conftest.$ac_ext
18593cat >>conftest.$ac_ext <<_ACEOF
18594/* end confdefs.h. */
18595$ac_includes_default
18596long longval () { return (long) (sizeof (long long)); }
18597unsigned long ulongval () { return (long) (sizeof (long long)); }
18598#include <stdio.h>
18599#include <stdlib.h>
18600int
18601main ()
18602{
18603
18604 FILE *f = fopen ("conftest.val", "w");
18605 if (! f)
18606 exit (1);
18607 if (((long) (sizeof (long long))) < 0)
18608 {
18609 long i = longval ();
18610 if (i != ((long) (sizeof (long long))))
18611 exit (1);
18612 fprintf (f, "%ld\n", i);
18613 }
18614 else
18615 {
18616 unsigned long i = ulongval ();
18617 if (i != ((long) (sizeof (long long))))
18618 exit (1);
18619 fprintf (f, "%lu\n", i);
18620 }
18621 exit (ferror (f) || fclose (f) != 0);
18622
18623 ;
18624 return 0;
18625}
18626_ACEOF
18627rm -f conftest$ac_exeext
18628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18629 (eval $ac_link) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; }; then
18638 ac_cv_sizeof_long_long=`cat conftest.val`
18639else
18640 echo "$as_me: program exited with status $ac_status" >&5
18641echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
18644( exit $ac_status )
18645{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18646See \`config.log' for more details." >&5
18647echo "$as_me: error: cannot compute sizeof (long long), 77
18648See \`config.log' for more details." >&2;}
18649 { (exit 1); exit 1; }; }
18650fi
ac1cb8d3 18651rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18652fi
18653fi
18654rm -f conftest.val
18655else
18656 ac_cv_sizeof_long_long=0
18657fi
18658fi
18659echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18660echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18661cat >>confdefs.h <<_ACEOF
18662#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18663_ACEOF
18664
18665
18666esac
18667
18668echo "$as_me:$LINENO: checking size of wchar_t" >&5
18669echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18670if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673
18674 if test "$cross_compiling" = yes; then
18675
18676 case "${host}" in
18677 *-pc-msdosdjgpp )
18678 wx_cv_sizeof_wchar_t=0
18679 ;;
18680 * )
18681 wx_cv_sizeof_wchar_t=4
18682 ;;
18683 esac
18684
18685
18686else
18687 cat >conftest.$ac_ext <<_ACEOF
18688/* confdefs.h. */
18689_ACEOF
18690cat confdefs.h >>conftest.$ac_ext
18691cat >>conftest.$ac_ext <<_ACEOF
18692/* end confdefs.h. */
18693
18694 /* DJGPP only has fake wchar_t: */
18695 #ifdef __DJGPP__
18696 # error "fake wchar_t"
18697 #endif
18698 #ifdef HAVE_WCHAR_H
18699 # ifdef __CYGWIN__
18700 # include <stddef.h>
18701 # endif
18702 # include <wchar.h>
18703 #endif
18704 #ifdef HAVE_STDLIB_H
18705 # include <stdlib.h>
18706 #endif
18707 #include <stdio.h>
18708 int main()
18709 {
18710 FILE *f=fopen("conftestval", "w");
18711 if (!f) exit(1);
18712 fprintf(f, "%i", sizeof(wchar_t));
18713 exit(0);
18714 }
18715
18716_ACEOF
18717rm -f conftest$ac_exeext
18718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18719 (eval $ac_link) 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 wx_cv_sizeof_wchar_t=`cat conftestval`
18729else
18730 echo "$as_me: program exited with status $ac_status" >&5
18731echo "$as_me: failed program was:" >&5
18732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734( exit $ac_status )
18735wx_cv_sizeof_wchar_t=0
18736fi
ac1cb8d3 18737rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18738fi
18739
18740fi
18741echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18742echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18743
18744cat >>confdefs.h <<_ACEOF
18745#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18746_ACEOF
18747
18748
ba3d13e1
VZ
18749echo "$as_me:$LINENO: checking for va_copy" >&5
18750echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18751if test "${wx_cv_func_va_copy+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753else
18754
18755 cat >conftest.$ac_ext <<_ACEOF
18756
18757 #include <stdarg.h>
18758 void foo(char *f, ...)
18759 {
18760 va_list ap1, ap2;
18761 va_start(ap1, f);
18762 va_copy(ap2, ap1);
18763 va_end(ap2);
18764 va_end(ap1);
18765 }
5886b072
VZ
18766 int main()
18767 {
b902e639
VZ
18768 foo("hi", 17);
18769 return 0;
5886b072 18770 }
ba3d13e1
VZ
18771_ACEOF
18772rm -f conftest.$ac_objext conftest$ac_exeext
18773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
89be85c2
VS
18781 { ac_try='test -z "$ac_c_werror_flag"
18782 || test ! -s conftest.err'
ba3d13e1
VZ
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest$ac_exeext'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 wx_cv_func_va_copy=yes
18795else
18796 echo "$as_me: failed program was:" >&5
18797sed 's/^/| /' conftest.$ac_ext >&5
18798
18799wx_cv_func_va_copy=no
18800
18801fi
18802rm -f conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804
18805
18806fi
18807echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18808echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18809
18810if test $wx_cv_func_va_copy = "yes"; then
18811 cat >>confdefs.h <<\_ACEOF
18812#define HAVE_VA_COPY 1
18813_ACEOF
18814
18815else
18816 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18817echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18818if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820else
18821
18822 if test "$cross_compiling" = yes; then
18823 wx_cv_type_va_list_lvalue=yes
18824
18825else
18826 cat >conftest.$ac_ext <<_ACEOF
18827
18828 #include <stdarg.h>
18829 int foo(char *f, ...)
18830 {
18831 va_list ap1, ap2;
18832 va_start(ap1, f);
18833 ap2 = ap1;
18834 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18835 return 1;
18836 va_end(ap2);
18837 va_end(ap1);
18838 return 0;
18839 }
18840 int main()
18841 {
18842 return foo("hi", 17);
18843 }
18844_ACEOF
18845rm -f conftest$ac_exeext
18846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18847 (eval $ac_link) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 wx_cv_type_va_list_lvalue=yes
18857else
18858 echo "$as_me: program exited with status $ac_status" >&5
18859echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
18862( exit $ac_status )
18863wx_cv_type_va_list_lvalue=no
18864fi
18865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18866fi
18867
18868
18869fi
18870echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18871echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18872
18873 if test $wx_cv_type_va_list_lvalue != "yes"; then
18874 cat >>confdefs.h <<\_ACEOF
18875#define VA_LIST_IS_ARRAY 1
18876_ACEOF
18877
18878 fi
18879fi
18880
a848cd7e
SC
18881# Check whether --enable-largefile or --disable-largefile was given.
18882if test "${enable_largefile+set}" = set; then
18883 enableval="$enable_largefile"
18884
18885fi;
18886if test "$enable_largefile" != no; then
18887 wx_largefile=no
18888
18889 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18890echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18891if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893else
18894
18895 cat >conftest.$ac_ext <<_ACEOF
18896/* confdefs.h. */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h. */
18901#define _FILE_OFFSET_BITS 64
18902 #include <sys/types.h>
18903int
18904main ()
18905{
18906typedef struct {
18907 unsigned int field: sizeof(off_t) == 8;
18908} wxlf;
18909
18910 ;
18911 return 0;
18912}
18913_ACEOF
18914rm -f conftest.$ac_objext
18915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18916 (eval $ac_compile) 2>conftest.er1
a848cd7e 18917 ac_status=$?
ac1cb8d3
VS
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
a848cd7e
SC
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
89be85c2
VS
18923 { ac_try='test -z "$ac_c_werror_flag"
18924 || test ! -s conftest.err'
ac1cb8d3
VS
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_sys_file_offset_bits=64
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
18941ac_cv_sys_file_offset_bits=no
18942fi
ac1cb8d3 18943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18944
18945
18946fi
18947echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18948echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18949
18950 if test "$ac_cv_sys_file_offset_bits" != no; then
18951 wx_largefile=yes
18952 cat >>confdefs.h <<_ACEOF
18953#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18954_ACEOF
18955
18956 fi
18957
18958 if test "x$wx_largefile" != "xyes"; then
18959
18960 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18961echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18962if test "${ac_cv_sys_large_files+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964else
18965
18966 cat >conftest.$ac_ext <<_ACEOF
18967/* confdefs.h. */
18968_ACEOF
18969cat confdefs.h >>conftest.$ac_ext
18970cat >>conftest.$ac_ext <<_ACEOF
18971/* end confdefs.h. */
18972#define _LARGE_FILES 1
18973 #include <sys/types.h>
18974int
18975main ()
18976{
18977typedef struct {
18978 unsigned int field: sizeof(off_t) == 8;
18979} wxlf;
18980
18981 ;
18982 return 0;
18983}
18984_ACEOF
18985rm -f conftest.$ac_objext
18986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18987 (eval $ac_compile) 2>conftest.er1
a848cd7e 18988 ac_status=$?
ac1cb8d3
VS
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
a848cd7e
SC
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
89be85c2
VS
18994 { ac_try='test -z "$ac_c_werror_flag"
18995 || test ! -s conftest.err'
ac1cb8d3
VS
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_cv_sys_large_files=1
19008else
19009 echo "$as_me: failed program was:" >&5
19010sed 's/^/| /' conftest.$ac_ext >&5
19011
19012ac_cv_sys_large_files=no
19013fi
ac1cb8d3 19014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19015
19016
19017fi
19018echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19019echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19020
19021 if test "$ac_cv_sys_large_files" != no; then
19022 wx_largefile=yes
19023 cat >>confdefs.h <<_ACEOF
19024#define _LARGE_FILES $ac_cv_sys_large_files
19025_ACEOF
19026
19027 fi
19028
19029 fi
19030
19031 echo "$as_me:$LINENO: checking if large file support is available" >&5
19032echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19033 if test "x$wx_largefile" = "xyes"; then
19034 cat >>confdefs.h <<\_ACEOF
19035#define HAVE_LARGEFILE_SUPPORT 1
19036_ACEOF
19037
19038 fi
19039 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19040echo "${ECHO_T}$wx_largefile" >&6
19041fi
19042
5b674b9d
DE
19043
19044if test "x$wx_largefile" = "xyes"; then
19045 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19046 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19047 else
19048 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19049 fi
19050 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19051echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19052if test "${ac_cv_sys_largefile_source+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054else
19055 while :; do
19056 ac_cv_sys_largefile_source=no
19057 cat >conftest.$ac_ext <<_ACEOF
19058/* confdefs.h. */
19059_ACEOF
19060cat confdefs.h >>conftest.$ac_ext
19061cat >>conftest.$ac_ext <<_ACEOF
19062/* end confdefs.h. */
19063#include <stdio.h>
19064int
19065main ()
19066{
19067return !fseeko;
19068 ;
19069 return 0;
19070}
19071_ACEOF
19072rm -f conftest.$ac_objext
19073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19074 (eval $ac_compile) 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
89be85c2
VS
19081 { ac_try='test -z "$ac_c_werror_flag"
19082 || test ! -s conftest.err'
5294a27e
VZ
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 break
19095else
19096 echo "$as_me: failed program was:" >&5
19097sed 's/^/| /' conftest.$ac_ext >&5
19098
19099fi
19100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19101 cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h. */
19107#define _LARGEFILE_SOURCE 1
19108#include <stdio.h>
19109int
19110main ()
19111{
19112return !fseeko;
19113 ;
19114 return 0;
19115}
19116_ACEOF
19117rm -f conftest.$ac_objext
19118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19119 (eval $ac_compile) 2>conftest.er1
19120 ac_status=$?
19121 grep -v '^ *+' conftest.er1 >conftest.err
19122 rm -f conftest.er1
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } &&
89be85c2
VS
19126 { ac_try='test -z "$ac_c_werror_flag"
19127 || test ! -s conftest.err'
5294a27e
VZ
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; } &&
19133 { ac_try='test -s conftest.$ac_objext'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 ac_cv_sys_largefile_source=1; break
19140else
19141 echo "$as_me: failed program was:" >&5
19142sed 's/^/| /' conftest.$ac_ext >&5
19143
19144fi
19145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19146 break
19147done
19148fi
19149echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19150echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19151if test "$ac_cv_sys_largefile_source" != no; then
19152
19153cat >>confdefs.h <<_ACEOF
19154#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19155_ACEOF
19156
19157fi
19158rm -f conftest*
19159
19160# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19161# in glibc 2.1.3, but that breaks too many other things.
19162# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19163echo "$as_me:$LINENO: checking for fseeko" >&5
19164echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
19165if test "${ac_cv_func_fseeko+set}" = set; then
19166 echo $ECHO_N "(cached) $ECHO_C" >&6
19167else
19168 cat >conftest.$ac_ext <<_ACEOF
19169/* confdefs.h. */
19170_ACEOF
19171cat confdefs.h >>conftest.$ac_ext
19172cat >>conftest.$ac_ext <<_ACEOF
19173/* end confdefs.h. */
19174#include <stdio.h>
19175int
19176main ()
19177{
19178return fseeko && fseeko (stdin, 0, 0);
19179 ;
19180 return 0;
19181}
19182_ACEOF
19183rm -f conftest.$ac_objext conftest$ac_exeext
19184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185 (eval $ac_link) 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); } &&
89be85c2
VS
19192 { ac_try='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
5294a27e
VZ
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest$ac_exeext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_cv_func_fseeko=yes
19206else
19207 echo "$as_me: failed program was:" >&5
19208sed 's/^/| /' conftest.$ac_ext >&5
19209
19210ac_cv_func_fseeko=no
19211fi
19212rm -f conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214fi
19215echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
19216echo "${ECHO_T}$ac_cv_func_fseeko" >&6
19217if test $ac_cv_func_fseeko = yes; then
19218
19219cat >>confdefs.h <<\_ACEOF
19220#define HAVE_FSEEKO 1
19221_ACEOF
19222
19223fi
19224
5b674b9d
DE
19225 if test "$ac_cv_sys_largefile_source" != no; then
19226 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
19227 fi
19228 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
19229fi
19230
19231echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19232echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19233if test "${ac_cv_c_bigendian+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235else
19236 ac_cv_c_bigendian=unknown
19237# See if sys/param.h defines the BYTE_ORDER macro.
19238cat >conftest.$ac_ext <<_ACEOF
19239/* confdefs.h. */
19240_ACEOF
19241cat confdefs.h >>conftest.$ac_ext
19242cat >>conftest.$ac_ext <<_ACEOF
19243/* end confdefs.h. */
19244#include <sys/types.h>
19245#include <sys/param.h>
19246int
19247main ()
19248{
19249
19250#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19251 bogus endian macros
19252#endif
19253 ;
19254 return 0;
19255}
19256_ACEOF
19257rm -f conftest.$ac_objext
19258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19259 (eval $ac_compile) 2>conftest.er1
a848cd7e 19260 ac_status=$?
ac1cb8d3
VS
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
a848cd7e
SC
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
89be85c2
VS
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
ac1cb8d3
VS
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 # It does; now see whether it defined to BIG_ENDIAN or not.
19280cat >conftest.$ac_ext <<_ACEOF
19281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
19286#include <sys/types.h>
19287#include <sys/param.h>
19288int
19289main ()
19290{
19291
19292#if BYTE_ORDER != BIG_ENDIAN
19293 not big endian
19294#endif
19295 ;
19296 return 0;
19297}
19298_ACEOF
19299rm -f conftest.$ac_objext
19300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19301 (eval $ac_compile) 2>conftest.er1
a848cd7e 19302 ac_status=$?
ac1cb8d3
VS
19303 grep -v '^ *+' conftest.er1 >conftest.err
19304 rm -f conftest.er1
19305 cat conftest.err >&5
a848cd7e
SC
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
89be85c2
VS
19308 { ac_try='test -z "$ac_c_werror_flag"
19309 || test ! -s conftest.err'
ac1cb8d3
VS
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19318 ac_status=$?
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19321 ac_cv_c_bigendian=yes
19322else
19323 echo "$as_me: failed program was:" >&5
19324sed 's/^/| /' conftest.$ac_ext >&5
19325
19326ac_cv_c_bigendian=no
19327fi
ac1cb8d3 19328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19329else
19330 echo "$as_me: failed program was:" >&5
19331sed 's/^/| /' conftest.$ac_ext >&5
19332
19333fi
ac1cb8d3 19334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19335if test $ac_cv_c_bigendian = unknown; then
19336if test "$cross_compiling" = yes; then
19337 ac_cv_c_bigendian=unknown
19338else
19339 cat >conftest.$ac_ext <<_ACEOF
19340/* confdefs.h. */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h. */
19345main () {
19346 /* Are we little or big endian? From Harbison&Steele. */
19347 union
19348 {
19349 long l;
19350 char c[sizeof (long)];
19351 } u;
19352 u.l = 1;
19353 exit (u.c[sizeof (long) - 1] == 1);
19354}
19355_ACEOF
19356rm -f conftest$ac_exeext
19357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358 (eval $ac_link) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_c_bigendian=no
19368else
19369 echo "$as_me: program exited with status $ac_status" >&5
19370echo "$as_me: failed program was:" >&5
19371sed 's/^/| /' conftest.$ac_ext >&5
19372
19373( exit $ac_status )
19374ac_cv_c_bigendian=yes
19375fi
ac1cb8d3 19376rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19377fi
19378fi
19379fi
19380echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19381echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19382if test $ac_cv_c_bigendian = unknown; then
19383 { 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
19384echo "$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;}
19385fi
19386if test $ac_cv_c_bigendian = yes; then
19387 cat >>confdefs.h <<\_ACEOF
19388#define WORDS_BIGENDIAN 1
19389_ACEOF
19390
19391fi
19392
19393
19394ac_ext=cc
19395ac_cpp='$CXXCPP $CPPFLAGS'
19396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19399echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19400echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19401if test -z "$CXXCPP"; then
19402 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404else
19405 # Double quotes because CXXCPP needs to be expanded
19406 for CXXCPP in "$CXX -E" "/lib/cpp"
19407 do
19408 ac_preproc_ok=false
19409for ac_cxx_preproc_warn_flag in '' yes
19410do
19411 # Use a header file that comes with gcc, so configuring glibc
19412 # with a fresh cross-compiler works.
19413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19414 # <limits.h> exists even on freestanding compilers.
19415 # On the NeXT, cc -E runs the code through the compiler's parser,
19416 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
19424# include <limits.h>
19425#else
19426# include <assert.h>
19427#endif
ac1cb8d3 19428 Syntax error
a848cd7e
SC
19429_ACEOF
19430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } >/dev/null; then
19438 if test -s conftest.err; then
19439 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19440 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19441 else
19442 ac_cpp_err=
19443 fi
19444else
19445 ac_cpp_err=yes
19446fi
19447if test -z "$ac_cpp_err"; then
19448 :
19449else
19450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453 # Broken: fails on valid input.
19454continue
19455fi
19456rm -f conftest.err conftest.$ac_ext
19457
19458 # OK, works on sane cases. Now check whether non-existent headers
19459 # can be detected and how.
19460 cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466#include <ac_nonexistent.h>
19467_ACEOF
19468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19470 ac_status=$?
19471 grep -v '^ *+' conftest.er1 >conftest.err
19472 rm -f conftest.er1
19473 cat conftest.err >&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } >/dev/null; then
19476 if test -s conftest.err; then
19477 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19478 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19479 else
19480 ac_cpp_err=
19481 fi
19482else
19483 ac_cpp_err=yes
19484fi
19485if test -z "$ac_cpp_err"; then
19486 # Broken: success on invalid input.
19487continue
19488else
19489 echo "$as_me: failed program was:" >&5
19490sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 # Passes both tests.
19493ac_preproc_ok=:
19494break
19495fi
19496rm -f conftest.err conftest.$ac_ext
19497
19498done
19499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19500rm -f conftest.err conftest.$ac_ext
19501if $ac_preproc_ok; then
19502 break
19503fi
19504
19505 done
19506 ac_cv_prog_CXXCPP=$CXXCPP
19507
19508fi
19509 CXXCPP=$ac_cv_prog_CXXCPP
19510else
19511 ac_cv_prog_CXXCPP=$CXXCPP
19512fi
19513echo "$as_me:$LINENO: result: $CXXCPP" >&5
19514echo "${ECHO_T}$CXXCPP" >&6
19515ac_preproc_ok=false
19516for ac_cxx_preproc_warn_flag in '' yes
19517do
19518 # Use a header file that comes with gcc, so configuring glibc
19519 # with a fresh cross-compiler works.
19520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19521 # <limits.h> exists even on freestanding compilers.
19522 # On the NeXT, cc -E runs the code through the compiler's parser,
19523 # not just through cpp. "Syntax error" is here to catch this case.
19524 cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h. */
19530#ifdef __STDC__
19531# include <limits.h>
19532#else
19533# include <assert.h>
19534#endif
ac1cb8d3 19535 Syntax error
a848cd7e
SC
19536_ACEOF
19537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } >/dev/null; then
19545 if test -s conftest.err; then
19546 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19547 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19548 else
19549 ac_cpp_err=
19550 fi
19551else
19552 ac_cpp_err=yes
19553fi
19554if test -z "$ac_cpp_err"; then
19555 :
19556else
19557 echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
19560 # Broken: fails on valid input.
19561continue
19562fi
19563rm -f conftest.err conftest.$ac_ext
19564
19565 # OK, works on sane cases. Now check whether non-existent headers
19566 # can be detected and how.
19567 cat >conftest.$ac_ext <<_ACEOF
19568/* confdefs.h. */
19569_ACEOF
19570cat confdefs.h >>conftest.$ac_ext
19571cat >>conftest.$ac_ext <<_ACEOF
19572/* end confdefs.h. */
19573#include <ac_nonexistent.h>
19574_ACEOF
19575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } >/dev/null; then
19583 if test -s conftest.err; then
19584 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19586 else
19587 ac_cpp_err=
19588 fi
19589else
19590 ac_cpp_err=yes
19591fi
19592if test -z "$ac_cpp_err"; then
19593 # Broken: success on invalid input.
19594continue
19595else
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
19599 # Passes both tests.
19600ac_preproc_ok=:
19601break
19602fi
19603rm -f conftest.err conftest.$ac_ext
19604
19605done
19606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19607rm -f conftest.err conftest.$ac_ext
19608if $ac_preproc_ok; then
19609 :
19610else
19611 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19612See \`config.log' for more details." >&5
19613echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19614See \`config.log' for more details." >&2;}
19615 { (exit 1); exit 1; }; }
19616fi
19617
19618ac_ext=cc
19619ac_cpp='$CXXCPP $CPPFLAGS'
19620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19623
19624
19625
19626
19627
19628 ac_ext=cc
19629ac_cpp='$CXXCPP $CPPFLAGS'
19630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19633
19634
19635
19636for ac_header in iostream
19637do
19638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19639if eval "test \"\${$as_ac_Header+set}\" = set"; then
19640 echo "$as_me:$LINENO: checking for $ac_header" >&5
19641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19642if eval "test \"\${$as_ac_Header+set}\" = set"; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644fi
19645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19647else
19648 # Is the header compilable?
19649echo "$as_me:$LINENO: checking $ac_header usability" >&5
19650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19651cat >conftest.$ac_ext <<_ACEOF
19652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
19657$ac_includes_default
19658#include <$ac_header>
19659_ACEOF
19660rm -f conftest.$ac_objext
19661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19662 (eval $ac_compile) 2>conftest.er1
a848cd7e 19663 ac_status=$?
ac1cb8d3
VS
19664 grep -v '^ *+' conftest.er1 >conftest.err
19665 rm -f conftest.er1
19666 cat conftest.err >&5
a848cd7e
SC
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
89be85c2
VS
19669 { ac_try='test -z "$ac_cxx_werror_flag"
19670 || test ! -s conftest.err'
ac1cb8d3
VS
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19673 ac_status=$?
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } &&
19676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_header_compiler=yes
19683else
19684 echo "$as_me: failed program was:" >&5
19685sed 's/^/| /' conftest.$ac_ext >&5
19686
19687ac_header_compiler=no
19688fi
ac1cb8d3 19689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19691echo "${ECHO_T}$ac_header_compiler" >&6
19692
19693# Is the header present?
19694echo "$as_me:$LINENO: checking $ac_header presence" >&5
19695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19696cat >conftest.$ac_ext <<_ACEOF
19697/* confdefs.h. */
19698_ACEOF
19699cat confdefs.h >>conftest.$ac_ext
19700cat >>conftest.$ac_ext <<_ACEOF
19701/* end confdefs.h. */
19702#include <$ac_header>
19703_ACEOF
19704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } >/dev/null; then
19712 if test -s conftest.err; then
19713 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19714 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19715 else
19716 ac_cpp_err=
19717 fi
19718else
19719 ac_cpp_err=yes
19720fi
19721if test -z "$ac_cpp_err"; then
19722 ac_header_preproc=yes
19723else
19724 echo "$as_me: failed program was:" >&5
19725sed 's/^/| /' conftest.$ac_ext >&5
19726
19727 ac_header_preproc=no
19728fi
19729rm -f conftest.err conftest.$ac_ext
19730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19731echo "${ECHO_T}$ac_header_preproc" >&6
19732
19733# So? What about this header?
ac1cb8d3
VS
19734case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19735 yes:no: )
a848cd7e
SC
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19740 ac_header_preproc=yes
a848cd7e 19741 ;;
ac1cb8d3 19742 no:yes:* )
a848cd7e
SC
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19755 (
19756 cat <<\_ASBOX
ac1cb8d3
VS
19757## ----------------------------------------- ##
19758## Report this to wx-dev@lists.wxwidgets.org ##
19759## ----------------------------------------- ##
a848cd7e
SC
19760_ASBOX
19761 ) |
19762 sed "s/^/$as_me: WARNING: /" >&2
19763 ;;
19764esac
19765echo "$as_me:$LINENO: checking for $ac_header" >&5
19766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19767if eval "test \"\${$as_ac_Header+set}\" = set"; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769else
ac1cb8d3 19770 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19771fi
19772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19774
19775fi
19776if test `eval echo '${'$as_ac_Header'}'` = yes; then
19777 cat >>confdefs.h <<_ACEOF
19778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19779_ACEOF
19780
19781fi
19782
19783done
19784
19785
19786 if test "$ac_cv_header_iostream" = "yes" ; then
19787 :
19788 else
19789 cat >>confdefs.h <<\_ACEOF
19790#define wxUSE_IOSTREAMH 1
19791_ACEOF
19792
19793 fi
19794
19795 ac_ext=c
19796ac_cpp='$CPP $CPPFLAGS'
19797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19799ac_compiler_gnu=$ac_cv_c_compiler_gnu
19800
19801
19802
19803
19804 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19805echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19806if test "${wx_cv_cpp_bool+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19808else
19809
19810
19811
19812 ac_ext=cc
19813ac_cpp='$CXXCPP $CPPFLAGS'
19814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19817
19818
19819 cat >conftest.$ac_ext <<_ACEOF
19820/* confdefs.h. */
19821_ACEOF
19822cat confdefs.h >>conftest.$ac_ext
19823cat >>conftest.$ac_ext <<_ACEOF
19824/* end confdefs.h. */
19825
19826
19827int
19828main ()
19829{
19830
19831 bool b = true;
19832
19833 return 0;
19834
19835 ;
19836 return 0;
19837}
19838_ACEOF
19839rm -f conftest.$ac_objext
19840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19841 (eval $ac_compile) 2>conftest.er1
a848cd7e 19842 ac_status=$?
ac1cb8d3
VS
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
a848cd7e
SC
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
89be85c2
VS
19848 { ac_try='test -z "$ac_cxx_werror_flag"
19849 || test ! -s conftest.err'
ac1cb8d3
VS
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; } &&
19855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861
19862 wx_cv_cpp_bool=yes
19863
19864else
19865 echo "$as_me: failed program was:" >&5
19866sed 's/^/| /' conftest.$ac_ext >&5
19867
19868
19869 wx_cv_cpp_bool=no
19870
19871
19872fi
ac1cb8d3 19873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19874
19875 ac_ext=c
19876ac_cpp='$CPP $CPPFLAGS'
19877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879ac_compiler_gnu=$ac_cv_c_compiler_gnu
19880
19881
19882fi
19883echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19884echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19885
19886 if test "$wx_cv_cpp_bool" = "yes"; then
19887 cat >>confdefs.h <<\_ACEOF
19888#define HAVE_BOOL 1
19889_ACEOF
19890
19891 fi
19892
19893
19894
19895 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19896echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19897if test "${wx_cv_explicit+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899else
19900
19901
19902
19903 ac_ext=cc
19904ac_cpp='$CXXCPP $CPPFLAGS'
19905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19908
19909
19910 cat >conftest.$ac_ext <<_ACEOF
19911/* confdefs.h. */
19912_ACEOF
19913cat confdefs.h >>conftest.$ac_ext
19914cat >>conftest.$ac_ext <<_ACEOF
19915/* end confdefs.h. */
19916
19917 class Foo { public: explicit Foo(int) {} };
19918
19919int
19920main ()
19921{
19922
19923 return 0;
19924
19925 ;
19926 return 0;
19927}
19928_ACEOF
19929rm -f conftest.$ac_objext
19930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19931 (eval $ac_compile) 2>conftest.er1
a848cd7e 19932 ac_status=$?
ac1cb8d3
VS
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
a848cd7e
SC
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
89be85c2
VS
19938 { ac_try='test -z "$ac_cxx_werror_flag"
19939 || test ! -s conftest.err'
ac1cb8d3
VS
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951
19952 cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h. */
19958
19959 class Foo { public: explicit Foo(int) {} };
19960 static void TakeFoo(const Foo& foo) { }
19961
19962int
19963main ()
19964{
19965
19966 TakeFoo(17);
19967 return 0;
19968
19969 ;
19970 return 0;
19971}
19972_ACEOF
19973rm -f conftest.$ac_objext
19974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19975 (eval $ac_compile) 2>conftest.er1
a848cd7e 19976 ac_status=$?
ac1cb8d3
VS
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
a848cd7e
SC
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
89be85c2
VS
19982 { ac_try='test -z "$ac_cxx_werror_flag"
19983 || test ! -s conftest.err'
ac1cb8d3
VS
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 wx_cv_explicit=no
19996else
19997 echo "$as_me: failed program was:" >&5
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
20000wx_cv_explicit=yes
20001
20002fi
ac1cb8d3 20003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20004
20005else
20006 echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
20009wx_cv_explicit=no
20010
20011fi
ac1cb8d3 20012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20013
20014 ac_ext=c
20015ac_cpp='$CPP $CPPFLAGS'
20016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20018ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019
20020
20021fi
20022echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20023echo "${ECHO_T}$wx_cv_explicit" >&6
20024
20025 if test "$wx_cv_explicit" = "yes"; then
20026 cat >>confdefs.h <<\_ACEOF
20027#define HAVE_EXPLICIT 1
20028_ACEOF
20029
20030 fi
20031
20032
20033echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20034echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20035if test "${ac_cv_cxx_const_cast+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20037else
20038
20039
20040 ac_ext=cc
20041ac_cpp='$CXXCPP $CPPFLAGS'
20042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20045
20046 cat >conftest.$ac_ext <<_ACEOF
20047/* confdefs.h. */
20048_ACEOF
20049cat confdefs.h >>conftest.$ac_ext
20050cat >>conftest.$ac_ext <<_ACEOF
20051/* end confdefs.h. */
20052
20053int
20054main ()
20055{
20056int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20057 ;
20058 return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20063 (eval $ac_compile) 2>conftest.er1
a848cd7e 20064 ac_status=$?
ac1cb8d3
VS
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
a848cd7e
SC
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
89be85c2
VS
20070 { ac_try='test -z "$ac_cxx_werror_flag"
20071 || test ! -s conftest.err'
ac1cb8d3
VS
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 ac_cv_cxx_const_cast=yes
20084else
20085 echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
20088ac_cv_cxx_const_cast=no
20089fi
ac1cb8d3 20090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20091 ac_ext=c
20092ac_cpp='$CPP $CPPFLAGS'
20093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20095ac_compiler_gnu=$ac_cv_c_compiler_gnu
20096
20097
20098fi
20099echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20100echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20101if test "$ac_cv_cxx_const_cast" = yes; then
20102
20103cat >>confdefs.h <<\_ACEOF
20104#define HAVE_CONST_CAST
20105_ACEOF
20106
20107fi
20108
7714864e
RL
20109echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20110echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20111if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20113else
20114
20115
20116 ac_ext=cc
20117ac_cpp='$CXXCPP $CPPFLAGS'
20118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20121
20122 cat >conftest.$ac_ext <<_ACEOF
20123/* confdefs.h. */
20124_ACEOF
20125cat confdefs.h >>conftest.$ac_ext
20126cat >>conftest.$ac_ext <<_ACEOF
20127/* end confdefs.h. */
20128#include <typeinfo>
20129class Base { public : Base () {} virtual void f () = 0;};
20130class Derived : public Base { public : Derived () {} virtual void f () {} };
20131class Unrelated { public : Unrelated () {} };
20132int g (Unrelated&) { return 0; }
20133int
20134main ()
20135{
20136
20137Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20138 ;
20139 return 0;
20140}
20141_ACEOF
20142rm -f conftest.$ac_objext
20143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144 (eval $ac_compile) 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
89be85c2
VS
20151 { ac_try='test -z "$ac_cxx_werror_flag"
20152 || test ! -s conftest.err'
7714864e
RL
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest.$ac_objext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ac_cv_cxx_reinterpret_cast=yes
20165else
20166 echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169ac_cv_cxx_reinterpret_cast=no
20170fi
20171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20172 ac_ext=c
20173ac_cpp='$CPP $CPPFLAGS'
20174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176ac_compiler_gnu=$ac_cv_c_compiler_gnu
20177
20178
20179fi
20180echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
20181echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
20182if test "$ac_cv_cxx_reinterpret_cast" = yes; then
20183
20184cat >>confdefs.h <<\_ACEOF
20185#define HAVE_REINTERPRET_CAST
20186_ACEOF
20187
20188fi
20189
a848cd7e
SC
20190echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
20191echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
20192if test "${ac_cv_cxx_static_cast+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20194else
20195
20196
20197 ac_ext=cc
20198ac_cpp='$CXXCPP $CPPFLAGS'
20199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20202
20203 cat >conftest.$ac_ext <<_ACEOF
20204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h. */
20209#include <typeinfo>
20210class Base { public : Base () {} virtual void f () = 0; };
20211class Derived : public Base { public : Derived () {} virtual void f () {} };
20212int g (Derived&) { return 0; }
20213int
20214main ()
20215{
20216
20217Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
20218 ;
20219 return 0;
20220}
20221_ACEOF
20222rm -f conftest.$ac_objext
20223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20224 (eval $ac_compile) 2>conftest.er1
a848cd7e 20225 ac_status=$?
ac1cb8d3
VS
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
a848cd7e
SC
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
89be85c2
VS
20231 { ac_try='test -z "$ac_cxx_werror_flag"
20232 || test ! -s conftest.err'
ac1cb8d3
VS
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_cv_cxx_static_cast=yes
20245else
20246 echo "$as_me: failed program was:" >&5
20247sed 's/^/| /' conftest.$ac_ext >&5
20248
20249ac_cv_cxx_static_cast=no
20250fi
ac1cb8d3 20251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20252 ac_ext=c
20253ac_cpp='$CPP $CPPFLAGS'
20254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20256ac_compiler_gnu=$ac_cv_c_compiler_gnu
20257
20258
20259fi
20260echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
20261echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
20262if test "$ac_cv_cxx_static_cast" = yes; then
20263
20264cat >>confdefs.h <<\_ACEOF
20265#define HAVE_STATIC_CAST
20266_ACEOF
20267
20268fi
20269
20270
20271if test "$wxUSE_STL" = "yes"; then
20272 ac_ext=cc
20273ac_cpp='$CXXCPP $CPPFLAGS'
20274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20277
20278
20279 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
20280echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
20281 cat >conftest.$ac_ext <<_ACEOF
20282/* confdefs.h. */
20283_ACEOF
20284cat confdefs.h >>conftest.$ac_ext
20285cat >>conftest.$ac_ext <<_ACEOF
20286/* end confdefs.h. */
20287#include <string>
20288 #include <functional>
20289 #include <algorithm>
20290 #include <vector>
20291 #include <list>
20292int
20293main ()
20294{
20295std::vector<int> moo;
20296 std::list<int> foo;
20297 std::vector<int>::iterator it =
20298 std::find_if(moo.begin(), moo.end(),
20299 std::bind2nd(std::less<int>(), 3));
20300 ;
20301 return 0;
20302}
20303_ACEOF
20304rm -f conftest.$ac_objext
20305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20306 (eval $ac_compile) 2>conftest.er1
a848cd7e 20307 ac_status=$?
ac1cb8d3
VS
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
a848cd7e
SC
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
89be85c2
VS
20313 { ac_try='test -z "$ac_cxx_werror_flag"
20314 || test ! -s conftest.err'
ac1cb8d3
VS
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 echo "$as_me:$LINENO: result: yes" >&5
20327echo "${ECHO_T}yes" >&6
20328else
20329 echo "$as_me: failed program was:" >&5
20330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332echo "$as_me:$LINENO: result: no" >&5
20333echo "${ECHO_T}no" >&6
20334 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20335echo "$as_me: error: Basic STL functionality missing" >&2;}
20336 { (exit 1); exit 1; }; }
20337fi
ac1cb8d3 20338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20339
20340 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20341echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20342 cat >conftest.$ac_ext <<_ACEOF
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
20348#include <string>
20349int
20350main ()
20351{
20352std::wstring foo;
20353 ;
20354 return 0;
20355}
20356_ACEOF
20357rm -f conftest.$ac_objext
20358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20359 (eval $ac_compile) 2>conftest.er1
a848cd7e 20360 ac_status=$?
ac1cb8d3
VS
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
a848cd7e
SC
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
89be85c2
VS
20366 { ac_try='test -z "$ac_cxx_werror_flag"
20367 || test ! -s conftest.err'
ac1cb8d3
VS
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 echo "$as_me:$LINENO: result: yes" >&5
20380echo "${ECHO_T}yes" >&6
20381 cat >>confdefs.h <<\_ACEOF
20382#define HAVE_STD_WSTRING 1
20383_ACEOF
20384
20385else
20386 echo "$as_me: failed program was:" >&5
20387sed 's/^/| /' conftest.$ac_ext >&5
20388
20389echo "$as_me:$LINENO: result: no" >&5
20390echo "${ECHO_T}no" >&6
20391fi
ac1cb8d3 20392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20393
20394 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20395echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20396 cat >conftest.$ac_ext <<_ACEOF
20397/* confdefs.h. */
20398_ACEOF
20399cat confdefs.h >>conftest.$ac_ext
20400cat >>conftest.$ac_ext <<_ACEOF
20401/* end confdefs.h. */
20402#include <string>
20403int
20404main ()
20405{
20406std::string foo, bar;
20407 foo.compare(bar);
20408 foo.compare(1, 1, bar);
20409 foo.compare(1, 1, bar, 1, 1);
20410 foo.compare("");
20411 foo.compare(1, 1, "");
20412 foo.compare(1, 1, "", 2);
20413 ;
20414 return 0;
20415}
20416_ACEOF
20417rm -f conftest.$ac_objext
20418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20419 (eval $ac_compile) 2>conftest.er1
a848cd7e 20420 ac_status=$?
ac1cb8d3
VS
20421 grep -v '^ *+' conftest.er1 >conftest.err
20422 rm -f conftest.er1
20423 cat conftest.err >&5
a848cd7e
SC
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
89be85c2
VS
20426 { ac_try='test -z "$ac_cxx_werror_flag"
20427 || test ! -s conftest.err'
ac1cb8d3
VS
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 echo "$as_me:$LINENO: result: yes" >&5
20440echo "${ECHO_T}yes" >&6
20441 cat >>confdefs.h <<\_ACEOF
20442#define HAVE_STD_STRING_COMPARE 1
20443_ACEOF
20444
20445else
20446 echo "$as_me: failed program was:" >&5
20447sed 's/^/| /' conftest.$ac_ext >&5
20448
20449echo "$as_me:$LINENO: result: no" >&5
20450echo "${ECHO_T}no" >&6
20451fi
ac1cb8d3 20452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20453
20454 if test "${ac_cv_header_hash_map+set}" = set; then
20455 echo "$as_me:$LINENO: checking for hash_map" >&5
20456echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20457if test "${ac_cv_header_hash_map+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20459fi
20460echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20461echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20462else
20463 # Is the header compilable?
20464echo "$as_me:$LINENO: checking hash_map usability" >&5
20465echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20466cat >conftest.$ac_ext <<_ACEOF
20467/* confdefs.h. */
20468_ACEOF
20469cat confdefs.h >>conftest.$ac_ext
20470cat >>conftest.$ac_ext <<_ACEOF
20471/* end confdefs.h. */
20472$ac_includes_default
20473#include <hash_map>
20474_ACEOF
20475rm -f conftest.$ac_objext
20476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20477 (eval $ac_compile) 2>conftest.er1
bdcade0a 20478 ac_status=$?
ac1cb8d3
VS
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
bdcade0a
MB
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
89be85c2
VS
20484 { ac_try='test -z "$ac_cxx_werror_flag"
20485 || test ! -s conftest.err'
ac1cb8d3
VS
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; } &&
20491 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
20497 ac_header_compiler=yes
20498else
20499 echo "$as_me: failed program was:" >&5
20500sed 's/^/| /' conftest.$ac_ext >&5
20501
20502ac_header_compiler=no
20503fi
ac1cb8d3 20504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20505echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20506echo "${ECHO_T}$ac_header_compiler" >&6
20507
20508# Is the header present?
20509echo "$as_me:$LINENO: checking hash_map presence" >&5
20510echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20511cat >conftest.$ac_ext <<_ACEOF
20512/* confdefs.h. */
20513_ACEOF
20514cat confdefs.h >>conftest.$ac_ext
20515cat >>conftest.$ac_ext <<_ACEOF
20516/* end confdefs.h. */
20517#include <hash_map>
20518_ACEOF
20519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20521 ac_status=$?
20522 grep -v '^ *+' conftest.er1 >conftest.err
20523 rm -f conftest.er1
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } >/dev/null; then
20527 if test -s conftest.err; then
20528 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20529 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20530 else
20531 ac_cpp_err=
20532 fi
20533else
20534 ac_cpp_err=yes
20535fi
20536if test -z "$ac_cpp_err"; then
20537 ac_header_preproc=yes
20538else
20539 echo "$as_me: failed program was:" >&5
20540sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 ac_header_preproc=no
20543fi
20544rm -f conftest.err conftest.$ac_ext
20545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20546echo "${ECHO_T}$ac_header_preproc" >&6
20547
20548# So? What about this header?
ac1cb8d3
VS
20549case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20550 yes:no: )
bdcade0a
MB
20551 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20552echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20553 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20554echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20555 ac_header_preproc=yes
bdcade0a 20556 ;;
ac1cb8d3 20557 no:yes:* )
bdcade0a
MB
20558 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20559echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20560 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20561echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20563echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20565echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20566 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20567echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20568 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20569echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20570 (
20571 cat <<\_ASBOX
ac1cb8d3
VS
20572## ----------------------------------------- ##
20573## Report this to wx-dev@lists.wxwidgets.org ##
20574## ----------------------------------------- ##
bdcade0a
MB
20575_ASBOX
20576 ) |
20577 sed "s/^/$as_me: WARNING: /" >&2
20578 ;;
20579esac
20580echo "$as_me:$LINENO: checking for hash_map" >&5
20581echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20582if test "${ac_cv_header_hash_map+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585 ac_cv_header_hash_map=$ac_header_preproc
20586fi
20587echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20588echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20589
20590fi
20591if test $ac_cv_header_hash_map = yes; then
20592 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20593echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20594 cat >conftest.$ac_ext <<_ACEOF
20595/* confdefs.h. */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h. */
20600#include <hash_map>
20601 #include <hash_set>
20602int
20603main ()
20604{
20605std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20606 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20607 ;
20608 return 0;
20609}
20610_ACEOF
20611rm -f conftest.$ac_objext
20612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20613 (eval $ac_compile) 2>conftest.er1
bdcade0a 20614 ac_status=$?
ac1cb8d3
VS
20615 grep -v '^ *+' conftest.er1 >conftest.err
20616 rm -f conftest.er1
20617 cat conftest.err >&5
bdcade0a
MB
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
89be85c2
VS
20620 { ac_try='test -z "$ac_cxx_werror_flag"
20621 || test ! -s conftest.err'
ac1cb8d3
VS
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; } &&
20627 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 echo "$as_me:$LINENO: result: yes" >&5
20634echo "${ECHO_T}yes" >&6
20635 cat >>confdefs.h <<\_ACEOF
20636#define HAVE_HASH_MAP 1
20637_ACEOF
20638
20639 cat >>confdefs.h <<\_ACEOF
20640#define HAVE_STD_HASH_MAP 1
20641_ACEOF
20642
20643else
20644 echo "$as_me: failed program was:" >&5
20645sed 's/^/| /' conftest.$ac_ext >&5
20646
20647echo "$as_me:$LINENO: result: no" >&5
20648echo "${ECHO_T}no" >&6
20649fi
ac1cb8d3 20650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20651
20652fi
20653
20654
20655
20656 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20657 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20658echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20659if test "${ac_cv_header_ext_hash_map+set}" = set; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20661fi
20662echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20663echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20664else
20665 # Is the header compilable?
20666echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20667echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20668cat >conftest.$ac_ext <<_ACEOF
20669/* confdefs.h. */
20670_ACEOF
20671cat confdefs.h >>conftest.$ac_ext
20672cat >>conftest.$ac_ext <<_ACEOF
20673/* end confdefs.h. */
20674$ac_includes_default
20675#include <ext/hash_map>
20676_ACEOF
20677rm -f conftest.$ac_objext
20678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20679 (eval $ac_compile) 2>conftest.er1
bdcade0a 20680 ac_status=$?
ac1cb8d3
VS
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
bdcade0a
MB
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
89be85c2
VS
20686 { ac_try='test -z "$ac_cxx_werror_flag"
20687 || test ! -s conftest.err'
ac1cb8d3
VS
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20690 ac_status=$?
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; } &&
20693 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; }; then
20699 ac_header_compiler=yes
20700else
20701 echo "$as_me: failed program was:" >&5
20702sed 's/^/| /' conftest.$ac_ext >&5
20703
20704ac_header_compiler=no
20705fi
ac1cb8d3 20706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20708echo "${ECHO_T}$ac_header_compiler" >&6
20709
20710# Is the header present?
20711echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20712echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20713cat >conftest.$ac_ext <<_ACEOF
20714/* confdefs.h. */
20715_ACEOF
20716cat confdefs.h >>conftest.$ac_ext
20717cat >>conftest.$ac_ext <<_ACEOF
20718/* end confdefs.h. */
20719#include <ext/hash_map>
20720_ACEOF
20721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } >/dev/null; then
20729 if test -s conftest.err; then
20730 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20731 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20732 else
20733 ac_cpp_err=
20734 fi
20735else
20736 ac_cpp_err=yes
20737fi
20738if test -z "$ac_cpp_err"; then
20739 ac_header_preproc=yes
20740else
20741 echo "$as_me: failed program was:" >&5
20742sed 's/^/| /' conftest.$ac_ext >&5
20743
20744 ac_header_preproc=no
20745fi
20746rm -f conftest.err conftest.$ac_ext
20747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20748echo "${ECHO_T}$ac_header_preproc" >&6
20749
20750# So? What about this header?
ac1cb8d3
VS
20751case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20752 yes:no: )
bdcade0a
MB
20753 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20754echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20755 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20756echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20757 ac_header_preproc=yes
bdcade0a 20758 ;;
ac1cb8d3 20759 no:yes:* )
bdcade0a
MB
20760 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20761echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20762 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20763echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20765echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20766 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20767echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20768 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20769echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20770 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20771echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20772 (
20773 cat <<\_ASBOX
ac1cb8d3
VS
20774## ----------------------------------------- ##
20775## Report this to wx-dev@lists.wxwidgets.org ##
20776## ----------------------------------------- ##
bdcade0a
MB
20777_ASBOX
20778 ) |
20779 sed "s/^/$as_me: WARNING: /" >&2
20780 ;;
20781esac
20782echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20783echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20784if test "${ac_cv_header_ext_hash_map+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20786else
20787 ac_cv_header_ext_hash_map=$ac_header_preproc
20788fi
20789echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20790echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20791
20792fi
20793if test $ac_cv_header_ext_hash_map = yes; then
20794 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20795echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20796 cat >conftest.$ac_ext <<_ACEOF
20797/* confdefs.h. */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h. */
20802#include <ext/hash_map>
20803 #include <ext/hash_set>
20804int
20805main ()
20806{
20807__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20808 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20809 ;
20810 return 0;
20811}
20812_ACEOF
20813rm -f conftest.$ac_objext
20814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20815 (eval $ac_compile) 2>conftest.er1
bdcade0a 20816 ac_status=$?
ac1cb8d3
VS
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
bdcade0a
MB
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } &&
89be85c2
VS
20822 { ac_try='test -z "$ac_cxx_werror_flag"
20823 || test ! -s conftest.err'
ac1cb8d3
VS
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; } &&
20829 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; }; then
20835 echo "$as_me:$LINENO: result: yes" >&5
20836echo "${ECHO_T}yes" >&6
20837 cat >>confdefs.h <<\_ACEOF
20838#define HAVE_EXT_HASH_MAP 1
20839_ACEOF
20840
20841 cat >>confdefs.h <<\_ACEOF
20842#define HAVE_GNU_CXX_HASH_MAP 1
20843_ACEOF
20844
20845else
20846 echo "$as_me: failed program was:" >&5
20847sed 's/^/| /' conftest.$ac_ext >&5
20848
20849echo "$as_me:$LINENO: result: no" >&5
20850echo "${ECHO_T}no" >&6
20851fi
ac1cb8d3 20852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20853
20854fi
20855
20856
a848cd7e
SC
20857
20858 ac_ext=c
20859ac_cpp='$CPP $CPPFLAGS'
20860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
20864fi
20865
20866
20867SEARCH_INCLUDE="\
20868 /usr/local/include \
20869 \
20870 /usr/Motif-2.1/include \
20871 /usr/Motif-1.2/include \
20872 /usr/include/Motif1.2 \
20873 /opt/xpm/include/X11 \
20874 /opt/GBxpm/include/ \
20875 /opt/GBxpm/X11/include/ \
20876 \
20877 /usr/dt/include \
20878 /usr/openwin/include \
20879 \
20880 /usr/include/Xm \
20881 \
20882 /usr/X11R6/include \
20883 /usr/X11R6.4/include \
20884 /usr/X11R5/include \
20885 /usr/X11R4/include \
20886 \
20887 /usr/include/X11R6 \
20888 /usr/include/X11R5 \
20889 /usr/include/X11R4 \
20890 \
20891 /usr/local/X11R6/include \
20892 /usr/local/X11R5/include \
20893 /usr/local/X11R4/include \
20894 \
20895 /usr/local/include/X11R6 \
20896 /usr/local/include/X11R5 \
20897 /usr/local/include/X11R4 \
20898 \
20899 /usr/X11/include \
20900 /usr/include/X11 \
20901 /usr/local/X11/include \
20902 /usr/local/include/X11 \
20903 \
20904 /usr/X386/include \
20905 /usr/x386/include \
20906 /usr/XFree86/include/X11 \
20907 \
20908 X:/XFree86/include \
20909 X:/XFree86/include/X11 \
20910 \
20911 /usr/include/gtk \
20912 /usr/local/include/gtk \
20913 /usr/include/glib \
20914 /usr/local/include/glib \
20915 \
20916 /usr/include/qt \
20917 /usr/local/include/qt \
20918 \
20919 /usr/local/arm/3.3.2/include \
20920 \
20921 /usr/include/windows \
20922 /usr/include/wine \
20923 /usr/local/include/wine \
20924 \
20925 /usr/unsupported/include \
20926 /usr/athena/include \
20927 /usr/local/x11r5/include \
20928 /usr/lpp/Xamples/include \
20929 \
20930 /usr/openwin/share/include"
20931
20932SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20933
20934
20935cat >confcache <<\_ACEOF
20936# This file is a shell script that caches the results of configure
20937# tests run on this system so they can be shared between configure
20938# scripts and configure runs, see configure's option --config-cache.
20939# It is not useful on other systems. If it contains results you don't
20940# want to keep, you may remove or edit it.
20941#
20942# config.status only pays attention to the cache file if you give it
20943# the --recheck option to rerun configure.
20944#
20945# `ac_cv_env_foo' variables (set or unset) will be overridden when
20946# loading this file, other *unset* `ac_cv_foo' will be assigned the
20947# following values.
20948
20949_ACEOF
20950
20951# The following way of writing the cache mishandles newlines in values,
20952# but we know of no workaround that is simple, portable, and efficient.
20953# So, don't put newlines in cache variables' values.
20954# Ultrix sh set writes to stderr and can't be redirected directly,
20955# and sets the high bit in the cache file unless we assign to the vars.
20956{
20957 (set) 2>&1 |
20958 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20959 *ac_space=\ *)
20960 # `set' does not quote correctly, so add quotes (double-quote
20961 # substitution turns \\\\ into \\, and sed turns \\ into \).
20962 sed -n \
ac1cb8d3
VS
20963 "s/'/'\\\\''/g;
20964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20965 ;;
20966 *)
20967 # `set' quotes correctly as required by POSIX, so do not add quotes.
20968 sed -n \
ac1cb8d3 20969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20970 ;;
20971 esac;
20972} |
20973 sed '
20974 t clear
20975 : clear
20976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20977 t end
20978 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20979 : end' >>confcache
20980if diff $cache_file confcache >/dev/null 2>&1; then :; else
20981 if test -w $cache_file; then
20982 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20983 cat confcache >$cache_file
20984 else
20985 echo "not updating unwritable cache $cache_file"
20986 fi
20987fi
20988rm -f confcache
20989
20990if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20991 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20992echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20993if test "${wx_cv_lib_glibc21+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995else
20996
20997 cat >conftest.$ac_ext <<_ACEOF
20998/* confdefs.h. */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
21002/* end confdefs.h. */
21003#include <features.h>
21004int
21005main ()
21006{
21007
21008 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21009 #error not glibc2.1
21010 #endif
21011
21012 ;
21013 return 0;
21014}
21015_ACEOF
21016rm -f conftest.$ac_objext
21017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21018 (eval $ac_compile) 2>conftest.er1
a848cd7e 21019 ac_status=$?
ac1cb8d3
VS
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
a848cd7e
SC
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
89be85c2
VS
21025 { ac_try='test -z "$ac_c_werror_flag"
21026 || test ! -s conftest.err'
ac1cb8d3
VS
21027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028 (eval $ac_try) 2>&5
21029 ac_status=$?
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; } &&
21032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038
21039 wx_cv_lib_glibc21=yes
21040
21041else
21042 echo "$as_me: failed program was:" >&5
21043sed 's/^/| /' conftest.$ac_ext >&5
21044
21045
21046 wx_cv_lib_glibc21=no
21047
21048
21049fi
ac1cb8d3 21050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21051
21052fi
21053echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21054echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21055 if test "$wx_cv_lib_glibc21" = "yes"; then
21056 cat >>confdefs.h <<\_ACEOF
21057#define wxHAVE_GLIBC2 1
21058_ACEOF
21059
21060 fi
21061fi
21062
21063if test "x$wx_cv_lib_glibc21" = "xyes"; then
21064 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21065 cat >>confdefs.h <<\_ACEOF
21066#define _GNU_SOURCE 1
21067_ACEOF
21068
21069 fi
21070fi
21071
21072
21073
21074if test "$wxUSE_REGEX" != "no"; then
21075 cat >>confdefs.h <<\_ACEOF
21076#define wxUSE_REGEX 1
21077_ACEOF
21078
21079
21080 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21081 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21082echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21083 wxUSE_REGEX=builtin
21084 fi
21085
21086 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21087 if test "${ac_cv_header_regex_h+set}" = set; then
21088 echo "$as_me:$LINENO: checking for regex.h" >&5
21089echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21090if test "${ac_cv_header_regex_h+set}" = set; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21092fi
21093echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21094echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21095else
21096 # Is the header compilable?
21097echo "$as_me:$LINENO: checking regex.h usability" >&5
21098echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21099cat >conftest.$ac_ext <<_ACEOF
21100/* confdefs.h. */
21101_ACEOF
21102cat confdefs.h >>conftest.$ac_ext
21103cat >>conftest.$ac_ext <<_ACEOF
21104/* end confdefs.h. */
21105$ac_includes_default
21106#include <regex.h>
21107_ACEOF
21108rm -f conftest.$ac_objext
21109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21110 (eval $ac_compile) 2>conftest.er1
a848cd7e 21111 ac_status=$?
ac1cb8d3
VS
21112 grep -v '^ *+' conftest.er1 >conftest.err
21113 rm -f conftest.er1
21114 cat conftest.err >&5
a848cd7e
SC
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } &&
89be85c2
VS
21117 { ac_try='test -z "$ac_c_werror_flag"
21118 || test ! -s conftest.err'
ac1cb8d3
VS
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; } &&
21124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_header_compiler=yes
21131else
21132 echo "$as_me: failed program was:" >&5
21133sed 's/^/| /' conftest.$ac_ext >&5
21134
21135ac_header_compiler=no
21136fi
ac1cb8d3 21137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21139echo "${ECHO_T}$ac_header_compiler" >&6
21140
21141# Is the header present?
21142echo "$as_me:$LINENO: checking regex.h presence" >&5
21143echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21144cat >conftest.$ac_ext <<_ACEOF
21145/* confdefs.h. */
21146_ACEOF
21147cat confdefs.h >>conftest.$ac_ext
21148cat >>conftest.$ac_ext <<_ACEOF
21149/* end confdefs.h. */
21150#include <regex.h>
21151_ACEOF
21152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } >/dev/null; then
21160 if test -s conftest.err; then
21161 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21163 else
21164 ac_cpp_err=
21165 fi
21166else
21167 ac_cpp_err=yes
21168fi
21169if test -z "$ac_cpp_err"; then
21170 ac_header_preproc=yes
21171else
21172 echo "$as_me: failed program was:" >&5
21173sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_header_preproc=no
21176fi
21177rm -f conftest.err conftest.$ac_ext
21178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21179echo "${ECHO_T}$ac_header_preproc" >&6
21180
21181# So? What about this header?
ac1cb8d3
VS
21182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21183 yes:no: )
a848cd7e
SC
21184 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21185echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21186 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21187echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21188 ac_header_preproc=yes
a848cd7e 21189 ;;
ac1cb8d3 21190 no:yes:* )
a848cd7e
SC
21191 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21192echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21193 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21194echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21195 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21196echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21198echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21199 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21200echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21201 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21202echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21203 (
21204 cat <<\_ASBOX
ac1cb8d3
VS
21205## ----------------------------------------- ##
21206## Report this to wx-dev@lists.wxwidgets.org ##
21207## ----------------------------------------- ##
a848cd7e
SC
21208_ASBOX
21209 ) |
21210 sed "s/^/$as_me: WARNING: /" >&2
21211 ;;
21212esac
21213echo "$as_me:$LINENO: checking for regex.h" >&5
21214echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21215if test "${ac_cv_header_regex_h+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217else
21218 ac_cv_header_regex_h=$ac_header_preproc
21219fi
21220echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21221echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21222
21223fi
21224if test $ac_cv_header_regex_h = yes; then
21225
21226for ac_func in regcomp
21227do
21228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21229echo "$as_me:$LINENO: checking for $ac_func" >&5
21230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21231if eval "test \"\${$as_ac_var+set}\" = set"; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233else
21234 cat >conftest.$ac_ext <<_ACEOF
21235/* confdefs.h. */
21236_ACEOF
21237cat confdefs.h >>conftest.$ac_ext
21238cat >>conftest.$ac_ext <<_ACEOF
21239/* end confdefs.h. */
ac1cb8d3
VS
21240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21242#define $ac_func innocuous_$ac_func
21243
a848cd7e
SC
21244/* System header to define __stub macros and hopefully few prototypes,
21245 which can conflict with char $ac_func (); below.
21246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21247 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 21248
a848cd7e
SC
21249#ifdef __STDC__
21250# include <limits.h>
21251#else
21252# include <assert.h>
21253#endif
ac1cb8d3
VS
21254
21255#undef $ac_func
21256
a848cd7e
SC
21257/* Override any gcc2 internal prototype to avoid an error. */
21258#ifdef __cplusplus
21259extern "C"
21260{
21261#endif
21262/* We use char because int might match the return type of a gcc2
21263 builtin and then its argument prototype would still apply. */
21264char $ac_func ();
21265/* The GNU C library defines this for functions which it implements
21266 to always fail with ENOSYS. Some functions are actually named
21267 something starting with __ and the normal name is an alias. */
21268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21269choke me
21270#else
21271char (*f) () = $ac_func;
21272#endif
21273#ifdef __cplusplus
21274}
21275#endif
21276
21277int
21278main ()
21279{
21280return f != $ac_func;
21281 ;
21282 return 0;
21283}
21284_ACEOF
21285rm -f conftest.$ac_objext conftest$ac_exeext
21286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21287 (eval $ac_link) 2>conftest.er1
a848cd7e 21288 ac_status=$?
ac1cb8d3
VS
21289 grep -v '^ *+' conftest.er1 >conftest.err
21290 rm -f conftest.er1
21291 cat conftest.err >&5
a848cd7e
SC
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
89be85c2
VS
21294 { ac_try='test -z "$ac_c_werror_flag"
21295 || test ! -s conftest.err'
ac1cb8d3
VS
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 eval "$as_ac_var=yes"
21308else
21309 echo "$as_me: failed program was:" >&5
21310sed 's/^/| /' conftest.$ac_ext >&5
21311
21312eval "$as_ac_var=no"
21313fi
ac1cb8d3
VS
21314rm -f conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21316fi
21317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21319if test `eval echo '${'$as_ac_var'}'` = yes; then
21320 cat >>confdefs.h <<_ACEOF
21321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21322_ACEOF
21323
21324fi
21325done
21326
21327fi
21328
21329
21330
21331 if test "x$ac_cv_func_regcomp" != "xyes"; then
21332 if test "$wxUSE_REGEX" = "sys" ; then
21333 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21334echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21335 { (exit 1); exit 1; }; }
21336 else
21337 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21338echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21339 wxUSE_REGEX=builtin
21340 fi
21341 else
21342 wxUSE_REGEX=sys
21343 cat >>confdefs.h <<\_ACEOF
21344#define WX_NO_REGEX_ADVANCED 1
21345_ACEOF
21346
21347 fi
21348 fi
21349fi
21350
21351
21352ZLIB_LINK=
21353if test "$wxUSE_ZLIB" != "no" ; then
21354 cat >>confdefs.h <<\_ACEOF
21355#define wxUSE_ZLIB 1
21356_ACEOF
21357
21358
21359 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21360 if test "$USE_DARWIN" = 1; then
21361 system_zlib_h_ok="yes"
21362 else
21363 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21364echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21365if test "${ac_cv_header_zlib_h+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367else
21368 if test "$cross_compiling" = yes; then
21369 unset ac_cv_header_zlib_h
21370
21371else
21372 cat >conftest.$ac_ext <<_ACEOF
21373/* confdefs.h. */
21374_ACEOF
21375cat confdefs.h >>conftest.$ac_ext
21376cat >>conftest.$ac_ext <<_ACEOF
21377/* end confdefs.h. */
21378
21379 #include <zlib.h>
21380 #include <stdio.h>
21381
21382 int main()
21383 {
21384 FILE *f=fopen("conftestval", "w");
21385 if (!f) exit(1);
21386 fprintf(f, "%s",
21387 ZLIB_VERSION[0] == '1' &&
21388 (ZLIB_VERSION[2] > '1' ||
21389 (ZLIB_VERSION[2] == '1' &&
21390 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21391 exit(0);
21392 }
21393
21394_ACEOF
21395rm -f conftest$ac_exeext
21396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21397 (eval $ac_link) 2>&5
21398 ac_status=$?
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_cv_header_zlib_h=`cat conftestval`
21407else
21408 echo "$as_me: program exited with status $ac_status" >&5
21409echo "$as_me: failed program was:" >&5
21410sed 's/^/| /' conftest.$ac_ext >&5
21411
21412( exit $ac_status )
21413ac_cv_header_zlib_h=no
21414fi
ac1cb8d3 21415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21416fi
21417
21418fi
21419echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21420echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21421 if test "${ac_cv_header_zlib_h+set}" = set; then
21422 echo "$as_me:$LINENO: checking for zlib.h" >&5
21423echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21424if test "${ac_cv_header_zlib_h+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426fi
21427echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21428echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21429else
21430 # Is the header compilable?
21431echo "$as_me:$LINENO: checking zlib.h usability" >&5
21432echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21433cat >conftest.$ac_ext <<_ACEOF
21434/* confdefs.h. */
21435_ACEOF
21436cat confdefs.h >>conftest.$ac_ext
21437cat >>conftest.$ac_ext <<_ACEOF
21438/* end confdefs.h. */
21439$ac_includes_default
21440#include <zlib.h>
21441_ACEOF
21442rm -f conftest.$ac_objext
21443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21444 (eval $ac_compile) 2>conftest.er1
a848cd7e 21445 ac_status=$?
ac1cb8d3
VS
21446 grep -v '^ *+' conftest.er1 >conftest.err
21447 rm -f conftest.er1
21448 cat conftest.err >&5
a848cd7e
SC
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } &&
89be85c2
VS
21451 { ac_try='test -z "$ac_c_werror_flag"
21452 || test ! -s conftest.err'
ac1cb8d3
VS
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21455 ac_status=$?
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; } &&
21458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21460 (eval $ac_try) 2>&5
21461 ac_status=$?
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); }; }; then
21464 ac_header_compiler=yes
21465else
21466 echo "$as_me: failed program was:" >&5
21467sed 's/^/| /' conftest.$ac_ext >&5
21468
21469ac_header_compiler=no
21470fi
ac1cb8d3 21471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21473echo "${ECHO_T}$ac_header_compiler" >&6
21474
21475# Is the header present?
21476echo "$as_me:$LINENO: checking zlib.h presence" >&5
21477echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21478cat >conftest.$ac_ext <<_ACEOF
21479/* confdefs.h. */
21480_ACEOF
21481cat confdefs.h >>conftest.$ac_ext
21482cat >>conftest.$ac_ext <<_ACEOF
21483/* end confdefs.h. */
21484#include <zlib.h>
21485_ACEOF
21486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } >/dev/null; then
21494 if test -s conftest.err; then
21495 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21497 else
21498 ac_cpp_err=
21499 fi
21500else
21501 ac_cpp_err=yes
21502fi
21503if test -z "$ac_cpp_err"; then
21504 ac_header_preproc=yes
21505else
21506 echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509 ac_header_preproc=no
21510fi
21511rm -f conftest.err conftest.$ac_ext
21512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21513echo "${ECHO_T}$ac_header_preproc" >&6
21514
21515# So? What about this header?
ac1cb8d3
VS
21516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21517 yes:no: )
a848cd7e
SC
21518 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21519echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21520 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21521echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21522 ac_header_preproc=yes
a848cd7e 21523 ;;
ac1cb8d3 21524 no:yes:* )
a848cd7e
SC
21525 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21526echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21527 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21528echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21530echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21532echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21533 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21534echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21535 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21536echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21537 (
21538 cat <<\_ASBOX
ac1cb8d3
VS
21539## ----------------------------------------- ##
21540## Report this to wx-dev@lists.wxwidgets.org ##
21541## ----------------------------------------- ##
a848cd7e
SC
21542_ASBOX
21543 ) |
21544 sed "s/^/$as_me: WARNING: /" >&2
21545 ;;
21546esac
21547echo "$as_me:$LINENO: checking for zlib.h" >&5
21548echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21549if test "${ac_cv_header_zlib_h+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21551else
21552 ac_cv_header_zlib_h=$ac_header_preproc
21553fi
21554echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21555echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21556
21557fi
21558
21559
21560
21561 system_zlib_h_ok=$ac_cv_header_zlib_h
21562 fi
21563
21564 if test "$system_zlib_h_ok" = "yes"; then
21565 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21566echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21567if test "${ac_cv_lib_z_deflate+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21569else
21570 ac_check_lib_save_LIBS=$LIBS
21571LIBS="-lz $LIBS"
21572cat >conftest.$ac_ext <<_ACEOF
21573/* confdefs.h. */
21574_ACEOF
21575cat confdefs.h >>conftest.$ac_ext
21576cat >>conftest.$ac_ext <<_ACEOF
21577/* end confdefs.h. */
21578
21579/* Override any gcc2 internal prototype to avoid an error. */
21580#ifdef __cplusplus
21581extern "C"
21582#endif
21583/* We use char because int might match the return type of a gcc2
21584 builtin and then its argument prototype would still apply. */
21585char deflate ();
21586int
21587main ()
21588{
21589deflate ();
21590 ;
21591 return 0;
21592}
21593_ACEOF
21594rm -f conftest.$ac_objext conftest$ac_exeext
21595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21596 (eval $ac_link) 2>conftest.er1
a848cd7e 21597 ac_status=$?
ac1cb8d3
VS
21598 grep -v '^ *+' conftest.er1 >conftest.err
21599 rm -f conftest.er1
21600 cat conftest.err >&5
a848cd7e
SC
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } &&
89be85c2
VS
21603 { ac_try='test -z "$ac_c_werror_flag"
21604 || test ! -s conftest.err'
ac1cb8d3
VS
21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; } &&
21610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21613 ac_status=$?
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21616 ac_cv_lib_z_deflate=yes
21617else
21618 echo "$as_me: failed program was:" >&5
21619sed 's/^/| /' conftest.$ac_ext >&5
21620
21621ac_cv_lib_z_deflate=no
21622fi
ac1cb8d3
VS
21623rm -f conftest.err conftest.$ac_objext \
21624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21625LIBS=$ac_check_lib_save_LIBS
21626fi
21627echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21628echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21629if test $ac_cv_lib_z_deflate = yes; then
21630 ZLIB_LINK=" -lz"
21631fi
21632
21633 fi
21634
21635 if test "x$ZLIB_LINK" = "x" ; then
21636 if test "$wxUSE_ZLIB" = "sys" ; then
21637 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21638echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21639 { (exit 1); exit 1; }; }
21640 else
21641 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21642echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21643 wxUSE_ZLIB=builtin
21644 fi
21645 else
21646 wxUSE_ZLIB=sys
21647 fi
21648 fi
21649fi
21650
21651
21652PNG_LINK=
21653if test "$wxUSE_LIBPNG" != "no" ; then
21654 cat >>confdefs.h <<\_ACEOF
21655#define wxUSE_LIBPNG 1
21656_ACEOF
21657
21658
21659 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21660 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21661echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21662 wxUSE_LIBPNG=sys
21663 fi
21664
21665 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21666 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21667echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21668 wxUSE_LIBPNG=builtin
21669 fi
21670
21671 if test "$wxUSE_MGL" != 1 ; then
21672 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21673 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21674echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21675if test "${ac_cv_header_png_h+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21677else
21678 if test "$cross_compiling" = yes; then
21679 unset ac_cv_header_png_h
21680
21681else
21682 cat >conftest.$ac_ext <<_ACEOF
21683/* confdefs.h. */
21684_ACEOF
21685cat confdefs.h >>conftest.$ac_ext
21686cat >>conftest.$ac_ext <<_ACEOF
21687/* end confdefs.h. */
21688
21689 #include <png.h>
21690 #include <stdio.h>
21691
21692 int main()
21693 {
21694 FILE *f=fopen("conftestval", "w");
21695 if (!f) exit(1);
21696 fprintf(f, "%s",
21697 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21698 exit(0);
21699 }
21700
21701_ACEOF
21702rm -f conftest$ac_exeext
21703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21704 (eval $ac_link) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 ac_cv_header_png_h=`cat conftestval`
21714else
21715 echo "$as_me: program exited with status $ac_status" >&5
21716echo "$as_me: failed program was:" >&5
21717sed 's/^/| /' conftest.$ac_ext >&5
21718
21719( exit $ac_status )
21720ac_cv_header_png_h=no
21721fi
ac1cb8d3 21722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21723fi
21724
21725fi
21726echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21727echo "${ECHO_T}$ac_cv_header_png_h" >&6
21728 if test "${ac_cv_header_png_h+set}" = set; then
21729 echo "$as_me:$LINENO: checking for png.h" >&5
21730echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21731if test "${ac_cv_header_png_h+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733fi
21734echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21735echo "${ECHO_T}$ac_cv_header_png_h" >&6
21736else
21737 # Is the header compilable?
21738echo "$as_me:$LINENO: checking png.h usability" >&5
21739echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21740cat >conftest.$ac_ext <<_ACEOF
21741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
21746$ac_includes_default
21747#include <png.h>
21748_ACEOF
21749rm -f conftest.$ac_objext
21750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21751 (eval $ac_compile) 2>conftest.er1
a848cd7e 21752 ac_status=$?
ac1cb8d3
VS
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
a848cd7e
SC
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
89be85c2
VS
21758 { ac_try='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
ac1cb8d3
VS
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_header_compiler=yes
21772else
21773 echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
21776ac_header_compiler=no
21777fi
ac1cb8d3 21778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21780echo "${ECHO_T}$ac_header_compiler" >&6
21781
21782# Is the header present?
21783echo "$as_me:$LINENO: checking png.h presence" >&5
21784echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21785cat >conftest.$ac_ext <<_ACEOF
21786/* confdefs.h. */
21787_ACEOF
21788cat confdefs.h >>conftest.$ac_ext
21789cat >>conftest.$ac_ext <<_ACEOF
21790/* end confdefs.h. */
21791#include <png.h>
21792_ACEOF
21793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21795 ac_status=$?
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } >/dev/null; then
21801 if test -s conftest.err; then
21802 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21804 else
21805 ac_cpp_err=
21806 fi
21807else
21808 ac_cpp_err=yes
21809fi
21810if test -z "$ac_cpp_err"; then
21811 ac_header_preproc=yes
21812else
21813 echo "$as_me: failed program was:" >&5
21814sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 ac_header_preproc=no
21817fi
21818rm -f conftest.err conftest.$ac_ext
21819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21820echo "${ECHO_T}$ac_header_preproc" >&6
21821
21822# So? What about this header?
ac1cb8d3
VS
21823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21824 yes:no: )
a848cd7e
SC
21825 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21826echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21827 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21828echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21829 ac_header_preproc=yes
a848cd7e 21830 ;;
ac1cb8d3 21831 no:yes:* )
a848cd7e
SC
21832 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21833echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21834 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21835echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21837echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21838 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21839echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21840 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21841echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21842 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21843echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21844 (
21845 cat <<\_ASBOX
ac1cb8d3
VS
21846## ----------------------------------------- ##
21847## Report this to wx-dev@lists.wxwidgets.org ##
21848## ----------------------------------------- ##
a848cd7e
SC
21849_ASBOX
21850 ) |
21851 sed "s/^/$as_me: WARNING: /" >&2
21852 ;;
21853esac
21854echo "$as_me:$LINENO: checking for png.h" >&5
21855echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21856if test "${ac_cv_header_png_h+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858else
21859 ac_cv_header_png_h=$ac_header_preproc
21860fi
21861echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21862echo "${ECHO_T}$ac_cv_header_png_h" >&6
21863
21864fi
21865
21866
21867
21868 if test "$ac_cv_header_png_h" = "yes"; then
21869 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21870echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21871if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21873else
21874 ac_check_lib_save_LIBS=$LIBS
21875LIBS="-lpng -lz -lm $LIBS"
21876cat >conftest.$ac_ext <<_ACEOF
21877/* confdefs.h. */
21878_ACEOF
21879cat confdefs.h >>conftest.$ac_ext
21880cat >>conftest.$ac_ext <<_ACEOF
21881/* end confdefs.h. */
21882
21883/* Override any gcc2 internal prototype to avoid an error. */
21884#ifdef __cplusplus
21885extern "C"
21886#endif
21887/* We use char because int might match the return type of a gcc2
21888 builtin and then its argument prototype would still apply. */
21889char png_check_sig ();
21890int
21891main ()
21892{
21893png_check_sig ();
21894 ;
21895 return 0;
21896}
21897_ACEOF
21898rm -f conftest.$ac_objext conftest$ac_exeext
21899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21900 (eval $ac_link) 2>conftest.er1
a848cd7e 21901 ac_status=$?
ac1cb8d3
VS
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
a848cd7e
SC
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
89be85c2
VS
21907 { ac_try='test -z "$ac_c_werror_flag"
21908 || test ! -s conftest.err'
ac1cb8d3
VS
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; } &&
21914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21917 ac_status=$?
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; }; then
21920 ac_cv_lib_png_png_check_sig=yes
21921else
21922 echo "$as_me: failed program was:" >&5
21923sed 's/^/| /' conftest.$ac_ext >&5
21924
21925ac_cv_lib_png_png_check_sig=no
21926fi
ac1cb8d3
VS
21927rm -f conftest.err conftest.$ac_objext \
21928 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21929LIBS=$ac_check_lib_save_LIBS
21930fi
21931echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21932echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21933if test $ac_cv_lib_png_png_check_sig = yes; then
21934 PNG_LINK=" -lpng -lz"
21935fi
21936
21937 fi
21938
21939 if test "x$PNG_LINK" = "x" ; then
21940 if test "$wxUSE_LIBPNG" = "sys" ; then
21941 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21942echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21943 { (exit 1); exit 1; }; }
21944 else
21945 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21946echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21947 wxUSE_LIBPNG=builtin
21948 fi
21949 else
21950 wxUSE_LIBPNG=sys
21951 fi
21952 fi
21953 fi
21954
21955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21956fi
21957
21958
21959JPEG_LINK=
21960if test "$wxUSE_LIBJPEG" != "no" ; then
21961 cat >>confdefs.h <<\_ACEOF
21962#define wxUSE_LIBJPEG 1
21963_ACEOF
21964
21965
21966 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21967 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21968echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21969 wxUSE_LIBJPEG=sys
21970 fi
21971
21972 if test "$wxUSE_MGL" != 1 ; then
21973 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21974 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21975echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21976 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21978else
21979 cat >conftest.$ac_ext <<_ACEOF
21980/* confdefs.h. */
21981_ACEOF
21982cat confdefs.h >>conftest.$ac_ext
21983cat >>conftest.$ac_ext <<_ACEOF
21984/* end confdefs.h. */
21985
21986 #undef HAVE_STDLIB_H
21987 #include <stdio.h>
21988 #include <jpeglib.h>
21989
21990int
21991main ()
21992{
21993
21994
21995 ;
21996 return 0;
21997}
21998_ACEOF
21999rm -f conftest.$ac_objext
22000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22001 (eval $ac_compile) 2>conftest.er1
a848cd7e 22002 ac_status=$?
ac1cb8d3
VS
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
a848cd7e
SC
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
89be85c2
VS
22008 { ac_try='test -z "$ac_c_werror_flag"
22009 || test ! -s conftest.err'
ac1cb8d3
VS
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_cv_header_jpeglib_h=yes
22022else
22023 echo "$as_me: failed program was:" >&5
22024sed 's/^/| /' conftest.$ac_ext >&5
22025
22026ac_cv_header_jpeglib_h=no
22027
22028fi
ac1cb8d3 22029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22030
22031fi
22032
22033 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22034echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22035
22036 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22037 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22038echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22039if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22041else
22042 ac_check_lib_save_LIBS=$LIBS
22043LIBS="-ljpeg $LIBS"
22044cat >conftest.$ac_ext <<_ACEOF
22045/* confdefs.h. */
22046_ACEOF
22047cat confdefs.h >>conftest.$ac_ext
22048cat >>conftest.$ac_ext <<_ACEOF
22049/* end confdefs.h. */
22050
22051/* Override any gcc2 internal prototype to avoid an error. */
22052#ifdef __cplusplus
22053extern "C"
22054#endif
22055/* We use char because int might match the return type of a gcc2
22056 builtin and then its argument prototype would still apply. */
22057char jpeg_read_header ();
22058int
22059main ()
22060{
22061jpeg_read_header ();
22062 ;
22063 return 0;
22064}
22065_ACEOF
22066rm -f conftest.$ac_objext conftest$ac_exeext
22067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22068 (eval $ac_link) 2>conftest.er1
a848cd7e 22069 ac_status=$?
ac1cb8d3
VS
22070 grep -v '^ *+' conftest.er1 >conftest.err
22071 rm -f conftest.er1
22072 cat conftest.err >&5
a848cd7e
SC
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } &&
89be85c2
VS
22075 { ac_try='test -z "$ac_c_werror_flag"
22076 || test ! -s conftest.err'
ac1cb8d3
VS
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; } &&
22082 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; }; then
22088 ac_cv_lib_jpeg_jpeg_read_header=yes
22089else
22090 echo "$as_me: failed program was:" >&5
22091sed 's/^/| /' conftest.$ac_ext >&5
22092
22093ac_cv_lib_jpeg_jpeg_read_header=no
22094fi
ac1cb8d3
VS
22095rm -f conftest.err conftest.$ac_objext \
22096 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22097LIBS=$ac_check_lib_save_LIBS
22098fi
22099echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22100echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22101if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22102 JPEG_LINK=" -ljpeg"
22103fi
22104
22105 fi
22106
22107 if test "x$JPEG_LINK" = "x" ; then
22108 if test "$wxUSE_LIBJPEG" = "sys" ; then
22109 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22110echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22111 { (exit 1); exit 1; }; }
22112 else
22113 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22114echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22115 wxUSE_LIBJPEG=builtin
22116 fi
22117 else
22118 wxUSE_LIBJPEG=sys
22119 fi
22120 fi
22121 fi
22122fi
22123
22124
22125TIFF_LINK=
22126TIFF_PREREQ_LINKS=-lm
22127if test "$wxUSE_LIBTIFF" != "no" ; then
22128 cat >>confdefs.h <<\_ACEOF
22129#define wxUSE_LIBTIFF 1
22130_ACEOF
22131
22132
22133 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22134 if test "$wxUSE_LIBJPEG" = "sys"; then
22135 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22136 fi
22137 if test "$wxUSE_ZLIB" = "sys"; then
22138 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22139 fi
22140 if test "${ac_cv_header_tiffio_h+set}" = set; then
22141 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22142echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22143if test "${ac_cv_header_tiffio_h+set}" = set; then
22144 echo $ECHO_N "(cached) $ECHO_C" >&6
22145fi
22146echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22147echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22148else
22149 # Is the header compilable?
22150echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22151echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22152cat >conftest.$ac_ext <<_ACEOF
22153/* confdefs.h. */
22154_ACEOF
22155cat confdefs.h >>conftest.$ac_ext
22156cat >>conftest.$ac_ext <<_ACEOF
22157/* end confdefs.h. */
22158$ac_includes_default
22159#include <tiffio.h>
22160_ACEOF
22161rm -f conftest.$ac_objext
22162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22163 (eval $ac_compile) 2>conftest.er1
a848cd7e 22164 ac_status=$?
ac1cb8d3
VS
22165 grep -v '^ *+' conftest.er1 >conftest.err
22166 rm -f conftest.er1
22167 cat conftest.err >&5
a848cd7e
SC
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } &&
89be85c2
VS
22170 { ac_try='test -z "$ac_c_werror_flag"
22171 || test ! -s conftest.err'
ac1cb8d3
VS
22172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173 (eval $ac_try) 2>&5
22174 ac_status=$?
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; } &&
22177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; }; then
22183 ac_header_compiler=yes
22184else
22185 echo "$as_me: failed program was:" >&5
22186sed 's/^/| /' conftest.$ac_ext >&5
22187
22188ac_header_compiler=no
22189fi
ac1cb8d3 22190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22192echo "${ECHO_T}$ac_header_compiler" >&6
22193
22194# Is the header present?
22195echo "$as_me:$LINENO: checking tiffio.h presence" >&5
22196echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
22197cat >conftest.$ac_ext <<_ACEOF
22198/* confdefs.h. */
22199_ACEOF
22200cat confdefs.h >>conftest.$ac_ext
22201cat >>conftest.$ac_ext <<_ACEOF
22202/* end confdefs.h. */
22203#include <tiffio.h>
22204_ACEOF
22205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22207 ac_status=$?
22208 grep -v '^ *+' conftest.er1 >conftest.err
22209 rm -f conftest.er1
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } >/dev/null; then
22213 if test -s conftest.err; then
22214 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22216 else
22217 ac_cpp_err=
22218 fi
22219else
22220 ac_cpp_err=yes
22221fi
22222if test -z "$ac_cpp_err"; then
22223 ac_header_preproc=yes
22224else
22225 echo "$as_me: failed program was:" >&5
22226sed 's/^/| /' conftest.$ac_ext >&5
22227
22228 ac_header_preproc=no
22229fi
22230rm -f conftest.err conftest.$ac_ext
22231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22232echo "${ECHO_T}$ac_header_preproc" >&6
22233
22234# So? What about this header?
ac1cb8d3
VS
22235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22236 yes:no: )
a848cd7e
SC
22237 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
22238echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22239 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
22240echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
22241 ac_header_preproc=yes
a848cd7e 22242 ;;
ac1cb8d3 22243 no:yes:* )
a848cd7e
SC
22244 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
22245echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22246 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
22247echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
22248 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
22249echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
22251echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22252 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
22253echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22254 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
22255echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22256 (
22257 cat <<\_ASBOX
ac1cb8d3
VS
22258## ----------------------------------------- ##
22259## Report this to wx-dev@lists.wxwidgets.org ##
22260## ----------------------------------------- ##
a848cd7e
SC
22261_ASBOX
22262 ) |
22263 sed "s/^/$as_me: WARNING: /" >&2
22264 ;;
22265esac
22266echo "$as_me:$LINENO: checking for tiffio.h" >&5
22267echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22268if test "${ac_cv_header_tiffio_h+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22270else
22271 ac_cv_header_tiffio_h=$ac_header_preproc
22272fi
22273echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22274echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22275
22276fi
22277if test $ac_cv_header_tiffio_h = yes; then
22278
22279 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
22280echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
22281if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22283else
22284 ac_check_lib_save_LIBS=$LIBS
22285LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
22286cat >conftest.$ac_ext <<_ACEOF
22287/* confdefs.h. */
22288_ACEOF
22289cat confdefs.h >>conftest.$ac_ext
22290cat >>conftest.$ac_ext <<_ACEOF
22291/* end confdefs.h. */
22292
22293/* Override any gcc2 internal prototype to avoid an error. */
22294#ifdef __cplusplus
22295extern "C"
22296#endif
22297/* We use char because int might match the return type of a gcc2
22298 builtin and then its argument prototype would still apply. */
22299char TIFFError ();
22300int
22301main ()
22302{
22303TIFFError ();
22304 ;
22305 return 0;
22306}
22307_ACEOF
22308rm -f conftest.$ac_objext conftest$ac_exeext
22309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22310 (eval $ac_link) 2>conftest.er1
a848cd7e 22311 ac_status=$?
ac1cb8d3
VS
22312 grep -v '^ *+' conftest.er1 >conftest.err
22313 rm -f conftest.er1
22314 cat conftest.err >&5
a848cd7e
SC
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } &&
89be85c2
VS
22317 { ac_try='test -z "$ac_c_werror_flag"
22318 || test ! -s conftest.err'
ac1cb8d3
VS
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; } &&
22324 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22327 ac_status=$?
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; }; then
22330 ac_cv_lib_tiff_TIFFError=yes
22331else
22332 echo "$as_me: failed program was:" >&5
22333sed 's/^/| /' conftest.$ac_ext >&5
22334
22335ac_cv_lib_tiff_TIFFError=no
22336fi
ac1cb8d3
VS
22337rm -f conftest.err conftest.$ac_objext \
22338 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22339LIBS=$ac_check_lib_save_LIBS
22340fi
22341echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22342echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22343if test $ac_cv_lib_tiff_TIFFError = yes; then
22344 TIFF_LINK=" -ltiff"
22345fi
22346
22347
22348
22349fi
22350
22351
22352
22353 if test "x$TIFF_LINK" = "x" ; then
22354 if test "$wxUSE_LIBTIFF" = "sys" ; then
22355 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22356echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22357 { (exit 1); exit 1; }; }
22358 else
22359 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22360echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22361 wxUSE_LIBTIFF=builtin
22362 fi
22363 else
22364 wxUSE_LIBTIFF=sys
22365 fi
22366 fi
22367fi
22368
22369
22370if test "$wxUSE_EXPAT" != "no"; then
22371 wxUSE_XML=yes
22372 cat >>confdefs.h <<\_ACEOF
22373#define wxUSE_EXPAT 1
22374_ACEOF
22375
22376 cat >>confdefs.h <<\_ACEOF
22377#define wxUSE_XML 1
22378_ACEOF
22379
22380
22381 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22382 if test "${ac_cv_header_expat_h+set}" = set; then
22383 echo "$as_me:$LINENO: checking for expat.h" >&5
22384echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22385if test "${ac_cv_header_expat_h+set}" = set; then
22386 echo $ECHO_N "(cached) $ECHO_C" >&6
22387fi
22388echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22389echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22390else
22391 # Is the header compilable?
22392echo "$as_me:$LINENO: checking expat.h usability" >&5
22393echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22394cat >conftest.$ac_ext <<_ACEOF
22395/* confdefs.h. */
22396_ACEOF
22397cat confdefs.h >>conftest.$ac_ext
22398cat >>conftest.$ac_ext <<_ACEOF
22399/* end confdefs.h. */
22400$ac_includes_default
22401#include <expat.h>
22402_ACEOF
22403rm -f conftest.$ac_objext
22404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22405 (eval $ac_compile) 2>conftest.er1
a848cd7e 22406 ac_status=$?
ac1cb8d3
VS
22407 grep -v '^ *+' conftest.er1 >conftest.err
22408 rm -f conftest.er1
22409 cat conftest.err >&5
a848cd7e
SC
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } &&
89be85c2
VS
22412 { ac_try='test -z "$ac_c_werror_flag"
22413 || test ! -s conftest.err'
ac1cb8d3
VS
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 ac_header_compiler=yes
22426else
22427 echo "$as_me: failed program was:" >&5
22428sed 's/^/| /' conftest.$ac_ext >&5
22429
22430ac_header_compiler=no
22431fi
ac1cb8d3 22432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22433echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22434echo "${ECHO_T}$ac_header_compiler" >&6
22435
22436# Is the header present?
22437echo "$as_me:$LINENO: checking expat.h presence" >&5
22438echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22439cat >conftest.$ac_ext <<_ACEOF
22440/* confdefs.h. */
22441_ACEOF
22442cat confdefs.h >>conftest.$ac_ext
22443cat >>conftest.$ac_ext <<_ACEOF
22444/* end confdefs.h. */
22445#include <expat.h>
22446_ACEOF
22447if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22449 ac_status=$?
22450 grep -v '^ *+' conftest.er1 >conftest.err
22451 rm -f conftest.er1
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } >/dev/null; then
22455 if test -s conftest.err; then
22456 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22458 else
22459 ac_cpp_err=
22460 fi
22461else
22462 ac_cpp_err=yes
22463fi
22464if test -z "$ac_cpp_err"; then
22465 ac_header_preproc=yes
22466else
22467 echo "$as_me: failed program was:" >&5
22468sed 's/^/| /' conftest.$ac_ext >&5
22469
22470 ac_header_preproc=no
22471fi
22472rm -f conftest.err conftest.$ac_ext
22473echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22474echo "${ECHO_T}$ac_header_preproc" >&6
22475
22476# So? What about this header?
ac1cb8d3
VS
22477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22478 yes:no: )
a848cd7e
SC
22479 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22480echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22481 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22482echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22483 ac_header_preproc=yes
a848cd7e 22484 ;;
ac1cb8d3 22485 no:yes:* )
a848cd7e
SC
22486 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22487echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22488 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22489echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22491echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22492 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22493echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22494 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22495echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22496 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22497echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22498 (
22499 cat <<\_ASBOX
ac1cb8d3
VS
22500## ----------------------------------------- ##
22501## Report this to wx-dev@lists.wxwidgets.org ##
22502## ----------------------------------------- ##
a848cd7e
SC
22503_ASBOX
22504 ) |
22505 sed "s/^/$as_me: WARNING: /" >&2
22506 ;;
22507esac
22508echo "$as_me:$LINENO: checking for expat.h" >&5
22509echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22510if test "${ac_cv_header_expat_h+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22512else
22513 ac_cv_header_expat_h=$ac_header_preproc
22514fi
22515echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22516echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22517
22518fi
22519if test $ac_cv_header_expat_h = yes; then
22520 found_expat_h=1
22521fi
22522
22523
22524 if test "x$found_expat_h" = "x1"; then
22525 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22526echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22527if test "${wx_cv_expat_is_not_broken+set}" = set; then
22528 echo $ECHO_N "(cached) $ECHO_C" >&6
22529else
22530
22531
22532
22533 ac_ext=cc
22534ac_cpp='$CXXCPP $CPPFLAGS'
22535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22538
22539 cat >conftest.$ac_ext <<_ACEOF
22540/* confdefs.h. */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h. */
22545#include <expat.h>
22546int
22547main ()
22548{
22549
22550 ;
22551 return 0;
22552}
22553_ACEOF
22554rm -f conftest.$ac_objext
22555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22556 (eval $ac_compile) 2>conftest.er1
a848cd7e 22557 ac_status=$?
ac1cb8d3
VS
22558 grep -v '^ *+' conftest.er1 >conftest.err
22559 rm -f conftest.er1
22560 cat conftest.err >&5
a848cd7e
SC
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } &&
89be85c2
VS
22563 { ac_try='test -z "$ac_cxx_werror_flag"
22564 || test ! -s conftest.err'
ac1cb8d3
VS
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; } &&
22570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 wx_cv_expat_is_not_broken=yes
22577else
22578 echo "$as_me: failed program was:" >&5
22579sed 's/^/| /' conftest.$ac_ext >&5
22580
22581wx_cv_expat_is_not_broken=no
22582
22583fi
ac1cb8d3 22584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22585 ac_ext=c
22586ac_cpp='$CPP $CPPFLAGS'
22587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22589ac_compiler_gnu=$ac_cv_c_compiler_gnu
22590
22591
22592
22593fi
22594echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22595echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22596 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22597 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22598echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22599if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22601else
22602 ac_check_lib_save_LIBS=$LIBS
22603LIBS="-lexpat $LIBS"
22604cat >conftest.$ac_ext <<_ACEOF
22605/* confdefs.h. */
22606_ACEOF
22607cat confdefs.h >>conftest.$ac_ext
22608cat >>conftest.$ac_ext <<_ACEOF
22609/* end confdefs.h. */
22610
22611/* Override any gcc2 internal prototype to avoid an error. */
22612#ifdef __cplusplus
22613extern "C"
22614#endif
22615/* We use char because int might match the return type of a gcc2
22616 builtin and then its argument prototype would still apply. */
22617char XML_ParserCreate ();
22618int
22619main ()
22620{
22621XML_ParserCreate ();
22622 ;
22623 return 0;
22624}
22625_ACEOF
22626rm -f conftest.$ac_objext conftest$ac_exeext
22627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22628 (eval $ac_link) 2>conftest.er1
a848cd7e 22629 ac_status=$?
ac1cb8d3
VS
22630 grep -v '^ *+' conftest.er1 >conftest.err
22631 rm -f conftest.er1
22632 cat conftest.err >&5
a848cd7e
SC
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } &&
89be85c2
VS
22635 { ac_try='test -z "$ac_c_werror_flag"
22636 || test ! -s conftest.err'
ac1cb8d3
VS
22637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638 (eval $ac_try) 2>&5
22639 ac_status=$?
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); }; } &&
22642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }; }; then
22648 ac_cv_lib_expat_XML_ParserCreate=yes
22649else
22650 echo "$as_me: failed program was:" >&5
22651sed 's/^/| /' conftest.$ac_ext >&5
22652
22653ac_cv_lib_expat_XML_ParserCreate=no
22654fi
ac1cb8d3
VS
22655rm -f conftest.err conftest.$ac_objext \
22656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22657LIBS=$ac_check_lib_save_LIBS
22658fi
22659echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22660echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22661if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22662 EXPAT_LINK=" -lexpat"
22663fi
22664
22665 fi
22666 fi
22667 if test "x$EXPAT_LINK" = "x" ; then
22668 if test "$wxUSE_EXPAT" = "sys" ; then
22669 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22670echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22671 { (exit 1); exit 1; }; }
22672 else
22673 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22674echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22675 wxUSE_EXPAT=builtin
22676 fi
22677 else
22678 wxUSE_EXPAT=sys
22679 fi
22680 fi
22681 if test "$wxUSE_EXPAT" = "builtin" ; then
22682
22683
22684subdirs="$subdirs src/expat"
22685
22686 fi
22687fi
22688
22689
22690
22691if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22692 if test "${ac_cv_header_mspack_h+set}" = set; then
22693 echo "$as_me:$LINENO: checking for mspack.h" >&5
22694echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22695if test "${ac_cv_header_mspack_h+set}" = set; then
22696 echo $ECHO_N "(cached) $ECHO_C" >&6
22697fi
22698echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22699echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22700else
22701 # Is the header compilable?
22702echo "$as_me:$LINENO: checking mspack.h usability" >&5
22703echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22704cat >conftest.$ac_ext <<_ACEOF
22705/* confdefs.h. */
22706_ACEOF
22707cat confdefs.h >>conftest.$ac_ext
22708cat >>conftest.$ac_ext <<_ACEOF
22709/* end confdefs.h. */
22710$ac_includes_default
22711#include <mspack.h>
22712_ACEOF
22713rm -f conftest.$ac_objext
22714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22715 (eval $ac_compile) 2>conftest.er1
a848cd7e 22716 ac_status=$?
ac1cb8d3
VS
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
a848cd7e
SC
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } &&
89be85c2
VS
22722 { ac_try='test -z "$ac_c_werror_flag"
22723 || test ! -s conftest.err'
ac1cb8d3
VS
22724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22725 (eval $ac_try) 2>&5
22726 ac_status=$?
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); }; } &&
22729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22731 (eval $ac_try) 2>&5
22732 ac_status=$?
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); }; }; then
22735 ac_header_compiler=yes
22736else
22737 echo "$as_me: failed program was:" >&5
22738sed 's/^/| /' conftest.$ac_ext >&5
22739
22740ac_header_compiler=no
22741fi
ac1cb8d3 22742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22744echo "${ECHO_T}$ac_header_compiler" >&6
22745
22746# Is the header present?
22747echo "$as_me:$LINENO: checking mspack.h presence" >&5
22748echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22749cat >conftest.$ac_ext <<_ACEOF
22750/* confdefs.h. */
22751_ACEOF
22752cat confdefs.h >>conftest.$ac_ext
22753cat >>conftest.$ac_ext <<_ACEOF
22754/* end confdefs.h. */
22755#include <mspack.h>
22756_ACEOF
22757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } >/dev/null; then
22765 if test -s conftest.err; then
22766 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22768 else
22769 ac_cpp_err=
22770 fi
22771else
22772 ac_cpp_err=yes
22773fi
22774if test -z "$ac_cpp_err"; then
22775 ac_header_preproc=yes
22776else
22777 echo "$as_me: failed program was:" >&5
22778sed 's/^/| /' conftest.$ac_ext >&5
22779
22780 ac_header_preproc=no
22781fi
22782rm -f conftest.err conftest.$ac_ext
22783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22784echo "${ECHO_T}$ac_header_preproc" >&6
22785
22786# So? What about this header?
ac1cb8d3
VS
22787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22788 yes:no: )
a848cd7e
SC
22789 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22790echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22791 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22792echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22793 ac_header_preproc=yes
a848cd7e 22794 ;;
ac1cb8d3 22795 no:yes:* )
a848cd7e
SC
22796 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22797echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22798 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22799echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22800 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22801echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22802 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22803echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22804 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22805echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22806 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22807echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22808 (
22809 cat <<\_ASBOX
ac1cb8d3
VS
22810## ----------------------------------------- ##
22811## Report this to wx-dev@lists.wxwidgets.org ##
22812## ----------------------------------------- ##
a848cd7e
SC
22813_ASBOX
22814 ) |
22815 sed "s/^/$as_me: WARNING: /" >&2
22816 ;;
22817esac
22818echo "$as_me:$LINENO: checking for mspack.h" >&5
22819echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22820if test "${ac_cv_header_mspack_h+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22822else
22823 ac_cv_header_mspack_h=$ac_header_preproc
22824fi
22825echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22826echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22827
22828fi
22829if test $ac_cv_header_mspack_h = yes; then
22830 found_mspack_h=1
22831fi
22832
22833
22834 if test "x$found_mspack_h" = "x1"; then
22835 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22836echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22837if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22839else
22840 ac_check_lib_save_LIBS=$LIBS
22841LIBS="-lmspack $LIBS"
22842cat >conftest.$ac_ext <<_ACEOF
22843/* confdefs.h. */
22844_ACEOF
22845cat confdefs.h >>conftest.$ac_ext
22846cat >>conftest.$ac_ext <<_ACEOF
22847/* end confdefs.h. */
22848
22849/* Override any gcc2 internal prototype to avoid an error. */
22850#ifdef __cplusplus
22851extern "C"
22852#endif
22853/* We use char because int might match the return type of a gcc2
22854 builtin and then its argument prototype would still apply. */
22855char mspack_create_chm_decompressor ();
22856int
22857main ()
22858{
22859mspack_create_chm_decompressor ();
22860 ;
22861 return 0;
22862}
22863_ACEOF
22864rm -f conftest.$ac_objext conftest$ac_exeext
22865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22866 (eval $ac_link) 2>conftest.er1
a848cd7e 22867 ac_status=$?
ac1cb8d3
VS
22868 grep -v '^ *+' conftest.er1 >conftest.err
22869 rm -f conftest.er1
22870 cat conftest.err >&5
a848cd7e
SC
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } &&
89be85c2
VS
22873 { ac_try='test -z "$ac_c_werror_flag"
22874 || test ! -s conftest.err'
ac1cb8d3
VS
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22877 ac_status=$?
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; } &&
22880 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22882 (eval $ac_try) 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); }; }; then
22886 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22887else
22888 echo "$as_me: failed program was:" >&5
22889sed 's/^/| /' conftest.$ac_ext >&5
22890
22891ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22892fi
ac1cb8d3
VS
22893rm -f conftest.err conftest.$ac_objext \
22894 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22895LIBS=$ac_check_lib_save_LIBS
22896fi
22897echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22898echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22899if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22900 MSPACK_LINK=" -lmspack"
22901fi
22902
22903 fi
22904 if test "x$MSPACK_LINK" = "x" ; then
22905 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22906 fi
22907fi
22908
22909if test "$wxUSE_LIBMSPACK" != "no"; then
22910 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22911#define wxUSE_LIBMSPACK 1
22912_ACEOF
22913
a848cd7e
SC
22914fi
22915
22916
22917
22918AFMINSTALL=
22919WIN32INSTALL=
22920
22921TOOLKIT=
22922TOOLKIT_INCLUDE=
22923WIDGET_SET=
22924
22925if test "$USE_WIN32" = 1 ; then
22926
22927for ac_header in w32api.h
22928do
22929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22930if eval "test \"\${$as_ac_Header+set}\" = set"; then
22931 echo "$as_me:$LINENO: checking for $ac_header" >&5
22932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22933if eval "test \"\${$as_ac_Header+set}\" = set"; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22935fi
22936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22938else
22939 # Is the header compilable?
22940echo "$as_me:$LINENO: checking $ac_header usability" >&5
22941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22942cat >conftest.$ac_ext <<_ACEOF
22943/* confdefs.h. */
22944_ACEOF
22945cat confdefs.h >>conftest.$ac_ext
22946cat >>conftest.$ac_ext <<_ACEOF
22947/* end confdefs.h. */
22948$ac_includes_default
22949#include <$ac_header>
22950_ACEOF
22951rm -f conftest.$ac_objext
22952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22953 (eval $ac_compile) 2>conftest.er1
a848cd7e 22954 ac_status=$?
ac1cb8d3
VS
22955 grep -v '^ *+' conftest.er1 >conftest.err
22956 rm -f conftest.er1
22957 cat conftest.err >&5
a848cd7e
SC
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } &&
89be85c2
VS
22960 { ac_try='test -z "$ac_c_werror_flag"
22961 || test ! -s conftest.err'
ac1cb8d3
VS
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22964 ac_status=$?
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; } &&
22967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969 (eval $ac_try) 2>&5
22970 ac_status=$?
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; }; then
22973 ac_header_compiler=yes
22974else
22975 echo "$as_me: failed program was:" >&5
22976sed 's/^/| /' conftest.$ac_ext >&5
22977
22978ac_header_compiler=no
22979fi
ac1cb8d3 22980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22982echo "${ECHO_T}$ac_header_compiler" >&6
22983
22984# Is the header present?
22985echo "$as_me:$LINENO: checking $ac_header presence" >&5
22986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22987cat >conftest.$ac_ext <<_ACEOF
22988/* confdefs.h. */
22989_ACEOF
22990cat confdefs.h >>conftest.$ac_ext
22991cat >>conftest.$ac_ext <<_ACEOF
22992/* end confdefs.h. */
22993#include <$ac_header>
22994_ACEOF
22995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22997 ac_status=$?
22998 grep -v '^ *+' conftest.er1 >conftest.err
22999 rm -f conftest.er1
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } >/dev/null; then
23003 if test -s conftest.err; then
23004 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23006 else
23007 ac_cpp_err=
23008 fi
23009else
23010 ac_cpp_err=yes
23011fi
23012if test -z "$ac_cpp_err"; then
23013 ac_header_preproc=yes
23014else
23015 echo "$as_me: failed program was:" >&5
23016sed 's/^/| /' conftest.$ac_ext >&5
23017
23018 ac_header_preproc=no
23019fi
23020rm -f conftest.err conftest.$ac_ext
23021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23022echo "${ECHO_T}$ac_header_preproc" >&6
23023
23024# So? What about this header?
ac1cb8d3
VS
23025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23026 yes:no: )
a848cd7e
SC
23027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23031 ac_header_preproc=yes
a848cd7e 23032 ;;
ac1cb8d3 23033 no:yes:* )
a848cd7e
SC
23034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23046 (
23047 cat <<\_ASBOX
ac1cb8d3
VS
23048## ----------------------------------------- ##
23049## Report this to wx-dev@lists.wxwidgets.org ##
23050## ----------------------------------------- ##
a848cd7e
SC
23051_ASBOX
23052 ) |
23053 sed "s/^/$as_me: WARNING: /" >&2
23054 ;;
23055esac
23056echo "$as_me:$LINENO: checking for $ac_header" >&5
23057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23058if eval "test \"\${$as_ac_Header+set}\" = set"; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23060else
ac1cb8d3 23061 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23062fi
23063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23065
23066fi
23067if test `eval echo '${'$as_ac_Header'}'` = yes; then
23068 cat >>confdefs.h <<_ACEOF
23069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23070_ACEOF
23071
23072fi
23073
23074done
23075
23076 if test "${ac_cv_header_windows_h+set}" = set; then
23077 echo "$as_me:$LINENO: checking for windows.h" >&5
23078echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23079if test "${ac_cv_header_windows_h+set}" = set; then
23080 echo $ECHO_N "(cached) $ECHO_C" >&6
23081fi
23082echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23083echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23084else
23085 # Is the header compilable?
23086echo "$as_me:$LINENO: checking windows.h usability" >&5
23087echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23088cat >conftest.$ac_ext <<_ACEOF
23089/* confdefs.h. */
23090_ACEOF
23091cat confdefs.h >>conftest.$ac_ext
23092cat >>conftest.$ac_ext <<_ACEOF
23093/* end confdefs.h. */
23094$ac_includes_default
23095#include <windows.h>
23096_ACEOF
23097rm -f conftest.$ac_objext
23098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23099 (eval $ac_compile) 2>conftest.er1
a848cd7e 23100 ac_status=$?
ac1cb8d3
VS
23101 grep -v '^ *+' conftest.er1 >conftest.err
23102 rm -f conftest.er1
23103 cat conftest.err >&5
a848cd7e
SC
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } &&
89be85c2
VS
23106 { ac_try='test -z "$ac_c_werror_flag"
23107 || test ! -s conftest.err'
ac1cb8d3
VS
23108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109 (eval $ac_try) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); }; } &&
23113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115 (eval $ac_try) 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 ac_header_compiler=yes
23120else
23121 echo "$as_me: failed program was:" >&5
23122sed 's/^/| /' conftest.$ac_ext >&5
23123
23124ac_header_compiler=no
23125fi
ac1cb8d3 23126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23128echo "${ECHO_T}$ac_header_compiler" >&6
23129
23130# Is the header present?
23131echo "$as_me:$LINENO: checking windows.h presence" >&5
23132echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23133cat >conftest.$ac_ext <<_ACEOF
23134/* confdefs.h. */
23135_ACEOF
23136cat confdefs.h >>conftest.$ac_ext
23137cat >>conftest.$ac_ext <<_ACEOF
23138/* end confdefs.h. */
23139#include <windows.h>
23140_ACEOF
23141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23143 ac_status=$?
23144 grep -v '^ *+' conftest.er1 >conftest.err
23145 rm -f conftest.er1
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } >/dev/null; then
23149 if test -s conftest.err; then
23150 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23152 else
23153 ac_cpp_err=
23154 fi
23155else
23156 ac_cpp_err=yes
23157fi
23158if test -z "$ac_cpp_err"; then
23159 ac_header_preproc=yes
23160else
23161 echo "$as_me: failed program was:" >&5
23162sed 's/^/| /' conftest.$ac_ext >&5
23163
23164 ac_header_preproc=no
23165fi
23166rm -f conftest.err conftest.$ac_ext
23167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23168echo "${ECHO_T}$ac_header_preproc" >&6
23169
23170# So? What about this header?
ac1cb8d3
VS
23171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23172 yes:no: )
a848cd7e
SC
23173 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23174echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23175 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23176echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23177 ac_header_preproc=yes
a848cd7e 23178 ;;
ac1cb8d3 23179 no:yes:* )
a848cd7e
SC
23180 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23181echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23182 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23183echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23184 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23185echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23186 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23187echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23188 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23189echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23190 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23191echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23192 (
23193 cat <<\_ASBOX
ac1cb8d3
VS
23194## ----------------------------------------- ##
23195## Report this to wx-dev@lists.wxwidgets.org ##
23196## ----------------------------------------- ##
a848cd7e
SC
23197_ASBOX
23198 ) |
23199 sed "s/^/$as_me: WARNING: /" >&2
23200 ;;
23201esac
23202echo "$as_me:$LINENO: checking for windows.h" >&5
23203echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23204if test "${ac_cv_header_windows_h+set}" = set; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23206else
23207 ac_cv_header_windows_h=$ac_header_preproc
23208fi
23209echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23210echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23211
23212fi
23213if test $ac_cv_header_windows_h = yes; then
23214 :
23215else
23216
23217 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
23218echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
23219 { (exit 1); exit 1; }; }
23220
23221fi
23222
23223
23224
23225 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
23226
23227 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
23228 LIBS="$LIBS -loleacc"
23229 fi
23230
23231 case "${host}" in
23232 *-*-cygwin* )
23233 LIBS="$LIBS -lkernel32 -luser32"
23234 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
23235 esac
23236
23237 if test "$wxUSE_ODBC" = "sys" ; then
23238 wxUSE_ODBC = "yes"
23239 fi
23240 if test "$wxUSE_ODBC" = "yes" ; then
23241 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
23242 cat >>confdefs.h <<\_ACEOF
23243#define wxUSE_ODBC 1
23244_ACEOF
23245
23246 fi
23247
23248 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
23249 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
23250
23251 WIN32INSTALL=win32install
23252fi
23253
23254if test "$wxUSE_GUI" = "yes"; then
23255 USE_GUI=1
23256
23257 GUI_TK_LIBRARY=
23258
23259 WXGTK12=
23260 WXGTK127=
23261 WXGTK20=
23262 WXGPE=
23263
207bc66c
RN
23264 if test "$wxUSE_COCOA" = 1 ; then
23265 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
23266 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
23267echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
23268 wxUSE_PRINTING_ARCHITECTURE=no
23269 fi
23270 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
23271 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
23272echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
23273 wxUSE_DRAG_AND_DROP=no
23274 fi
23275 if test "$wxUSE_DRAGIMAGE" = "yes"; then
23276 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
23277echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
23278 wxUSE_DRAGIMAGE=no
23279 fi
23280 fi
23281
a848cd7e
SC
23282 if test "$wxUSE_MSW" = 1 ; then
23283 TOOLKIT=MSW
23284 GUIDIST=MSW_DIST
23285
ceec2216 23286 case "${host}" in
a848cd7e
SC
23287 *-*-mingw32* )
23288 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
23289 esac
23290 fi
23291
23292 if test "$wxUSE_GTK" = 1; then
23293 echo "$as_me:$LINENO: checking for GTK+ version" >&5
23294echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
23295
23296 gtk_version_cached=1
23297 if test "${wx_cv_lib_gtk+set}" = set; then
23298 echo $ECHO_N "(cached) $ECHO_C" >&6
23299else
23300
23301 gtk_version_cached=0
23302 echo "$as_me:$LINENO: result: " >&5
23303echo "${ECHO_T}" >&6
23304
23305 GTK_MODULES=
23306 if test "$wxUSE_THREADS" = "yes"; then
23307 GTK_MODULES=gthread
23308 fi
23309
23310 wx_cv_lib_gtk=
23311 if test "x$wxUSE_GTK2" = "xyes"; then
23312 # Check whether --enable-gtktest or --disable-gtktest was given.
23313if test "${enable_gtktest+set}" = set; then
23314 enableval="$enable_gtktest"
23315
23316else
23317 enable_gtktest=yes
23318fi;
23319
23320 pkg_config_args=gtk+-2.0
23321 for module in . $GTK_MODULES
23322 do
23323 case "$module" in
23324 gthread)
23325 pkg_config_args="$pkg_config_args gthread-2.0"
23326 ;;
23327 esac
23328 done
23329
23330 no_gtk=""
23331
23332 # Extract the first word of "pkg-config", so it can be a program name with args.
23333set dummy pkg-config; ac_word=$2
23334echo "$as_me:$LINENO: checking for $ac_word" >&5
23335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23336if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23337 echo $ECHO_N "(cached) $ECHO_C" >&6
23338else
23339 case $PKG_CONFIG in
23340 [\\/]* | ?:[\\/]*)
23341 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23342 ;;
23343 *)
23344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23345for as_dir in $PATH
23346do
23347 IFS=$as_save_IFS
23348 test -z "$as_dir" && as_dir=.
23349 for ac_exec_ext in '' $ac_executable_extensions; do
23350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23351 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23353 break 2
23354 fi
23355done
23356done
23357
23358 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23359 ;;
23360esac
23361fi
23362PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23363
23364if test -n "$PKG_CONFIG"; then
23365 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23366echo "${ECHO_T}$PKG_CONFIG" >&6
23367else
23368 echo "$as_me:$LINENO: result: no" >&5
23369echo "${ECHO_T}no" >&6
23370fi
23371
23372
23373 if test x$PKG_CONFIG != xno ; then
23374 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23375 :
23376 else
c2218763 23377 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23378 no_gtk=yes
23379 PKG_CONFIG=no
23380 fi
23381 else
23382 no_gtk=yes
23383 fi
23384
23385 min_gtk_version=2.0.0
23386 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23387echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23388
23389 if test x$PKG_CONFIG != xno ; then
23390 ## don't try to run the test against uninstalled libtool libs
23391 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23392 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23393 enable_gtktest=no
23394 fi
23395
23396 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23397 :
23398 else
23399 no_gtk=yes
23400 fi
23401 fi
23402
23403 if test x"$no_gtk" = x ; then
23404 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23405 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23406 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23407 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23408 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23409 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23410 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23411 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23412 if test "x$enable_gtktest" = "xyes" ; then
23413 ac_save_CFLAGS="$CFLAGS"
23414 ac_save_LIBS="$LIBS"
23415 CFLAGS="$CFLAGS $GTK_CFLAGS"
23416 LIBS="$GTK_LIBS $LIBS"
23417 rm -f conf.gtktest
23418 if test "$cross_compiling" = yes; then
23419 echo $ac_n "cross compiling; assumed OK... $ac_c"
23420else
23421 cat >conftest.$ac_ext <<_ACEOF
23422/* confdefs.h. */
23423_ACEOF
23424cat confdefs.h >>conftest.$ac_ext
23425cat >>conftest.$ac_ext <<_ACEOF
23426/* end confdefs.h. */
23427
23428#include <gtk/gtk.h>
23429#include <stdio.h>
23430#include <stdlib.h>
23431
23432int
23433main ()
23434{
23435 int major, minor, micro;
23436 char *tmp_version;
23437
23438 system ("touch conf.gtktest");
23439
23440 /* HP/UX 9 (%@#!) writes to sscanf strings */
23441 tmp_version = g_strdup("$min_gtk_version");
23442 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23443 printf("%s, bad version string\n", "$min_gtk_version");
23444 exit(1);
23445 }
23446
23447 if ((gtk_major_version != $gtk_config_major_version) ||
23448 (gtk_minor_version != $gtk_config_minor_version) ||
23449 (gtk_micro_version != $gtk_config_micro_version))
23450 {
23451 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23452 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23453 gtk_major_version, gtk_minor_version, gtk_micro_version);
23454 printf ("*** was found! If pkg-config was correct, then it is best\n");
23455 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23456 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23457 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23458 printf("*** required on your system.\n");
23459 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23460 printf("*** to point to the correct configuration files\n");
23461 }
23462 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23463 (gtk_minor_version != GTK_MINOR_VERSION) ||
23464 (gtk_micro_version != GTK_MICRO_VERSION))
23465 {
23466 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23467 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23468 printf("*** library (version %d.%d.%d)\n",
23469 gtk_major_version, gtk_minor_version, gtk_micro_version);
23470 }
23471 else
23472 {
23473 if ((gtk_major_version > major) ||
23474 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23475 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23476 {
23477 return 0;
23478 }
23479 else
23480 {
23481 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23482 gtk_major_version, gtk_minor_version, gtk_micro_version);
23483 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23484 major, minor, micro);
23485 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23486 printf("***\n");
23487 printf("*** If you have already installed a sufficiently new version, this error\n");
23488 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23489 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23490 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23491 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23492 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23493 printf("*** so that the correct libraries are found at run-time))\n");
23494 }
23495 }
23496 return 1;
23497}
23498
23499_ACEOF
23500rm -f conftest$ac_exeext
23501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23502 (eval $ac_link) 2>&5
23503 ac_status=$?
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507 (eval $ac_try) 2>&5
23508 ac_status=$?
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); }; }; then
23511 :
23512else
23513 echo "$as_me: program exited with status $ac_status" >&5
23514echo "$as_me: failed program was:" >&5
23515sed 's/^/| /' conftest.$ac_ext >&5
23516
23517( exit $ac_status )
23518no_gtk=yes
23519fi
ac1cb8d3 23520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23521fi
23522 CFLAGS="$ac_save_CFLAGS"
23523 LIBS="$ac_save_LIBS"
23524 fi
23525 fi
23526 if test "x$no_gtk" = x ; then
23527 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23528echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23529 wx_cv_lib_gtk=2.0
23530 else
23531 echo "$as_me:$LINENO: result: no" >&5
23532echo "${ECHO_T}no" >&6
23533 if test "$PKG_CONFIG" = "no" ; then
23534 echo "*** A new enough version of pkg-config was not found."
23535 echo "*** See http://pkgconfig.sourceforge.net"
23536 else
23537 if test -f conf.gtktest ; then
23538 :
23539 else
23540 echo "*** Could not run GTK+ test program, checking why..."
23541 ac_save_CFLAGS="$CFLAGS"
23542 ac_save_LIBS="$LIBS"
23543 CFLAGS="$CFLAGS $GTK_CFLAGS"
23544 LIBS="$LIBS $GTK_LIBS"
23545 cat >conftest.$ac_ext <<_ACEOF
23546/* confdefs.h. */
23547_ACEOF
23548cat confdefs.h >>conftest.$ac_ext
23549cat >>conftest.$ac_ext <<_ACEOF
23550/* end confdefs.h. */
23551
23552#include <gtk/gtk.h>
23553#include <stdio.h>
23554
23555int
23556main ()
23557{
23558 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23559 ;
23560 return 0;
23561}
23562_ACEOF
23563rm -f conftest.$ac_objext conftest$ac_exeext
23564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23565 (eval $ac_link) 2>conftest.er1
a848cd7e 23566 ac_status=$?
ac1cb8d3
VS
23567 grep -v '^ *+' conftest.er1 >conftest.err
23568 rm -f conftest.er1
23569 cat conftest.err >&5
a848cd7e
SC
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); } &&
89be85c2
VS
23572 { ac_try='test -z "$ac_c_werror_flag"
23573 || test ! -s conftest.err'
ac1cb8d3
VS
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; } &&
23579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); }; }; then
23585 echo "*** The test program compiled, but did not run. This usually means"
23586 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23587 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23588 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23589 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23590 echo "*** is required on your system"
23591 echo "***"
23592 echo "*** If you have an old version installed, it is best to remove it, although"
23593 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23594else
23595 echo "$as_me: failed program was:" >&5
23596sed 's/^/| /' conftest.$ac_ext >&5
23597
23598 echo "*** The test program failed to compile or link. See the file config.log for the"
23599 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23600fi
ac1cb8d3
VS
23601rm -f conftest.err conftest.$ac_objext \
23602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23603 CFLAGS="$ac_save_CFLAGS"
23604 LIBS="$ac_save_LIBS"
23605 fi
23606 fi
23607 GTK_CFLAGS=""
23608 GTK_LIBS=""
23609 :
23610 fi
23611
23612
23613 rm -f conf.gtktest
23614
23615 else
23616
23617# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23618if test "${with_gtk_prefix+set}" = set; then
23619 withval="$with_gtk_prefix"
23620 gtk_config_prefix="$withval"
23621else
23622 gtk_config_prefix=""
23623fi;
23624
23625# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23626if test "${with_gtk_exec_prefix+set}" = set; then
23627 withval="$with_gtk_exec_prefix"
23628 gtk_config_exec_prefix="$withval"
23629else
23630 gtk_config_exec_prefix=""
23631fi;
23632# Check whether --enable-gtktest or --disable-gtktest was given.
23633if test "${enable_gtktest+set}" = set; then
23634 enableval="$enable_gtktest"
23635
23636else
23637 enable_gtktest=yes
23638fi;
23639
23640 for module in . $GTK_MODULES
23641 do
23642 case "$module" in
23643 gthread)
23644 gtk_config_args="$gtk_config_args gthread"
23645 ;;
23646 esac
23647 done
23648
23649 if test x$gtk_config_exec_prefix != x ; then
23650 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23651 if test x${GTK_CONFIG+set} != xset ; then
23652 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23653 fi
23654 fi
23655 if test x$gtk_config_prefix != x ; then
23656 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23657 if test x${GTK_CONFIG+set} != xset ; then
23658 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23659 fi
23660 fi
23661
23662 # Extract the first word of "gtk-config", so it can be a program name with args.
23663set dummy gtk-config; ac_word=$2
23664echo "$as_me:$LINENO: checking for $ac_word" >&5
23665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23666if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23668else
23669 case $GTK_CONFIG in
23670 [\\/]* | ?:[\\/]*)
23671 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23672 ;;
23673 *)
23674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23675for as_dir in $PATH
23676do
23677 IFS=$as_save_IFS
23678 test -z "$as_dir" && as_dir=.
23679 for ac_exec_ext in '' $ac_executable_extensions; do
23680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23681 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23683 break 2
23684 fi
23685done
23686done
23687
23688 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23689 ;;
23690esac
23691fi
23692GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23693
23694if test -n "$GTK_CONFIG"; then
23695 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23696echo "${ECHO_T}$GTK_CONFIG" >&6
23697else
23698 echo "$as_me:$LINENO: result: no" >&5
23699echo "${ECHO_T}no" >&6
23700fi
23701
23702 min_gtk_version=1.2.7
23703 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23704echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23705 no_gtk=""
23706 if test "$GTK_CONFIG" = "no" ; then
23707 no_gtk=yes
23708 else
23709 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23710 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23711 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23712 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23713 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23715 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23717 if test "x$enable_gtktest" = "xyes" ; then
23718 ac_save_CFLAGS="$CFLAGS"
23719 ac_save_LIBS="$LIBS"
23720 CFLAGS="$CFLAGS $GTK_CFLAGS"
23721 LIBS="$GTK_LIBS $LIBS"
23722 rm -f conf.gtktest
23723 if test "$cross_compiling" = yes; then
23724 echo $ac_n "cross compiling; assumed OK... $ac_c"
23725else
23726 cat >conftest.$ac_ext <<_ACEOF
23727/* confdefs.h. */
23728_ACEOF
23729cat confdefs.h >>conftest.$ac_ext
23730cat >>conftest.$ac_ext <<_ACEOF
23731/* end confdefs.h. */
23732
23733#include <gtk/gtk.h>
23734#include <stdio.h>
23735#include <stdlib.h>
23736
23737int
23738main ()
23739{
23740 int major, minor, micro;
23741 char *tmp_version;
23742
23743 system ("touch conf.gtktest");
23744
23745 /* HP/UX 9 (%@#!) writes to sscanf strings */
23746 tmp_version = g_strdup("$min_gtk_version");
23747 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23748 printf("%s, bad version string\n", "$min_gtk_version");
23749 exit(1);
23750 }
23751
23752 if ((gtk_major_version != $gtk_config_major_version) ||
23753 (gtk_minor_version != $gtk_config_minor_version) ||
23754 (gtk_micro_version != $gtk_config_micro_version))
23755 {
23756 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23757 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23758 gtk_major_version, gtk_minor_version, gtk_micro_version);
23759 printf ("*** was found! If gtk-config was correct, then it is best\n");
23760 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23761 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23762 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23763 printf("*** required on your system.\n");
23764 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23765 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23766 printf("*** before re-running configure\n");
23767 }
23768#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23769 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23770 (gtk_minor_version != GTK_MINOR_VERSION) ||
23771 (gtk_micro_version != GTK_MICRO_VERSION))
23772 {
23773 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23774 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23775 printf("*** library (version %d.%d.%d)\n",
23776 gtk_major_version, gtk_minor_version, gtk_micro_version);
23777 }
23778#endif /* defined (GTK_MAJOR_VERSION) ... */
23779 else
23780 {
23781 if ((gtk_major_version > major) ||
23782 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23783 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23784 {
23785 return 0;
23786 }
23787 else
23788 {
23789 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23790 gtk_major_version, gtk_minor_version, gtk_micro_version);
23791 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23792 major, minor, micro);
23793 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23794 printf("***\n");
23795 printf("*** If you have already installed a sufficiently new version, this error\n");
23796 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23797 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23798 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23799 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23800 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23801 printf("*** so that the correct libraries are found at run-time))\n");
23802 }
23803 }
23804 return 1;
23805}
23806
23807_ACEOF
23808rm -f conftest$ac_exeext
23809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23810 (eval $ac_link) 2>&5
23811 ac_status=$?
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815 (eval $ac_try) 2>&5
23816 ac_status=$?
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; }; then
23819 :
23820else
23821 echo "$as_me: program exited with status $ac_status" >&5
23822echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825( exit $ac_status )
23826no_gtk=yes
23827fi
ac1cb8d3 23828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23829fi
23830 CFLAGS="$ac_save_CFLAGS"
23831 LIBS="$ac_save_LIBS"
23832 fi
23833 fi
23834 if test "x$no_gtk" = x ; then
23835 echo "$as_me:$LINENO: result: yes" >&5
23836echo "${ECHO_T}yes" >&6
23837 wx_cv_lib_gtk=1.2.7
23838 else
23839 echo "$as_me:$LINENO: result: no" >&5
23840echo "${ECHO_T}no" >&6
23841 if test "$GTK_CONFIG" = "no" ; then
23842 echo "*** The gtk-config script installed by GTK could not be found"
23843 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23844 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23845 echo "*** full path to gtk-config."
23846 else
23847 if test -f conf.gtktest ; then
23848 :
23849 else
23850 echo "*** Could not run GTK test program, checking why..."
23851 CFLAGS="$CFLAGS $GTK_CFLAGS"
23852 LIBS="$LIBS $GTK_LIBS"
23853 cat >conftest.$ac_ext <<_ACEOF
23854/* confdefs.h. */
23855_ACEOF
23856cat confdefs.h >>conftest.$ac_ext
23857cat >>conftest.$ac_ext <<_ACEOF
23858/* end confdefs.h. */
23859
23860#include <gtk/gtk.h>
23861#include <stdio.h>
23862
23863int
23864main ()
23865{
23866 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23867 ;
23868 return 0;
23869}
23870_ACEOF
23871rm -f conftest.$ac_objext conftest$ac_exeext
23872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23873 (eval $ac_link) 2>conftest.er1
a848cd7e 23874 ac_status=$?
ac1cb8d3
VS
23875 grep -v '^ *+' conftest.er1 >conftest.err
23876 rm -f conftest.er1
23877 cat conftest.err >&5
a848cd7e
SC
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } &&
89be85c2
VS
23880 { ac_try='test -z "$ac_c_werror_flag"
23881 || test ! -s conftest.err'
ac1cb8d3
VS
23882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); }; } &&
23887 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23889 (eval $ac_try) 2>&5
23890 ac_status=$?
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); }; }; then
23893 echo "*** The test program compiled, but did not run. This usually means"
23894 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23895 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23896 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23897 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23898 echo "*** is required on your system"
23899 echo "***"
23900 echo "*** If you have an old version installed, it is best to remove it, although"
23901 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23902 echo "***"
23903 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23904 echo "*** came with the system with the command"
23905 echo "***"
23906 echo "*** rpm --erase --nodeps gtk gtk-devel"
23907else
23908 echo "$as_me: failed program was:" >&5
23909sed 's/^/| /' conftest.$ac_ext >&5
23910
23911 echo "*** The test program failed to compile or link. See the file config.log for the"
23912 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23913 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23914 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23915fi
ac1cb8d3
VS
23916rm -f conftest.err conftest.$ac_objext \
23917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23918 CFLAGS="$ac_save_CFLAGS"
23919 LIBS="$ac_save_LIBS"
23920 fi
23921 fi
23922 GTK_CFLAGS=""
23923 GTK_LIBS=""
23924 :
23925 fi
23926
23927
23928 rm -f conf.gtktest
23929
23930
23931 if test -z "$wx_cv_lib_gtk"; then
23932
23933# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23934if test "${with_gtk_prefix+set}" = set; then
23935 withval="$with_gtk_prefix"
23936 gtk_config_prefix="$withval"
23937else
23938 gtk_config_prefix=""
23939fi;
23940
23941# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23942if test "${with_gtk_exec_prefix+set}" = set; then
23943 withval="$with_gtk_exec_prefix"
23944 gtk_config_exec_prefix="$withval"
23945else
23946 gtk_config_exec_prefix=""
23947fi;
23948# Check whether --enable-gtktest or --disable-gtktest was given.
23949if test "${enable_gtktest+set}" = set; then
23950 enableval="$enable_gtktest"
23951
23952else
23953 enable_gtktest=yes
23954fi;
23955
23956 for module in . $GTK_MODULES
23957 do
23958 case "$module" in
23959 gthread)
23960 gtk_config_args="$gtk_config_args gthread"
23961 ;;
23962 esac
23963 done
23964
23965 if test x$gtk_config_exec_prefix != x ; then
23966 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23967 if test x${GTK_CONFIG+set} != xset ; then
23968 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23969 fi
23970 fi
23971 if test x$gtk_config_prefix != x ; then
23972 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23973 if test x${GTK_CONFIG+set} != xset ; then
23974 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23975 fi
23976 fi
23977
23978 # Extract the first word of "gtk-config", so it can be a program name with args.
23979set dummy gtk-config; ac_word=$2
23980echo "$as_me:$LINENO: checking for $ac_word" >&5
23981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23982if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23983 echo $ECHO_N "(cached) $ECHO_C" >&6
23984else
23985 case $GTK_CONFIG in
23986 [\\/]* | ?:[\\/]*)
23987 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23988 ;;
23989 *)
23990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23991for as_dir in $PATH
23992do
23993 IFS=$as_save_IFS
23994 test -z "$as_dir" && as_dir=.
23995 for ac_exec_ext in '' $ac_executable_extensions; do
23996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23997 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23999 break 2
24000 fi
24001done
24002done
24003
24004 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24005 ;;
24006esac
24007fi
24008GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24009
24010if test -n "$GTK_CONFIG"; then
24011 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24012echo "${ECHO_T}$GTK_CONFIG" >&6
24013else
24014 echo "$as_me:$LINENO: result: no" >&5
24015echo "${ECHO_T}no" >&6
24016fi
24017
24018 min_gtk_version=1.2.3
24019 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24020echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24021 no_gtk=""
24022 if test "$GTK_CONFIG" = "no" ; then
24023 no_gtk=yes
24024 else
24025 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24026 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24027 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24028 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24029 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24030 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24031 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24032 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24033 if test "x$enable_gtktest" = "xyes" ; then
24034 ac_save_CFLAGS="$CFLAGS"
24035 ac_save_LIBS="$LIBS"
24036 CFLAGS="$CFLAGS $GTK_CFLAGS"
24037 LIBS="$GTK_LIBS $LIBS"
24038 rm -f conf.gtktest
24039 if test "$cross_compiling" = yes; then
24040 echo $ac_n "cross compiling; assumed OK... $ac_c"
24041else
24042 cat >conftest.$ac_ext <<_ACEOF
24043/* confdefs.h. */
24044_ACEOF
24045cat confdefs.h >>conftest.$ac_ext
24046cat >>conftest.$ac_ext <<_ACEOF
24047/* end confdefs.h. */
24048
24049#include <gtk/gtk.h>
24050#include <stdio.h>
24051#include <stdlib.h>
24052
24053int
24054main ()
24055{
24056 int major, minor, micro;
24057 char *tmp_version;
24058
24059 system ("touch conf.gtktest");
24060
24061 /* HP/UX 9 (%@#!) writes to sscanf strings */
24062 tmp_version = g_strdup("$min_gtk_version");
24063 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24064 printf("%s, bad version string\n", "$min_gtk_version");
24065 exit(1);
24066 }
24067
24068 if ((gtk_major_version != $gtk_config_major_version) ||
24069 (gtk_minor_version != $gtk_config_minor_version) ||
24070 (gtk_micro_version != $gtk_config_micro_version))
24071 {
24072 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24073 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24074 gtk_major_version, gtk_minor_version, gtk_micro_version);
24075 printf ("*** was found! If gtk-config was correct, then it is best\n");
24076 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24077 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24078 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24079 printf("*** required on your system.\n");
24080 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24081 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24082 printf("*** before re-running configure\n");
24083 }
24084#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24085 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24086 (gtk_minor_version != GTK_MINOR_VERSION) ||
24087 (gtk_micro_version != GTK_MICRO_VERSION))
24088 {
24089 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24090 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24091 printf("*** library (version %d.%d.%d)\n",
24092 gtk_major_version, gtk_minor_version, gtk_micro_version);
24093 }
24094#endif /* defined (GTK_MAJOR_VERSION) ... */
24095 else
24096 {
24097 if ((gtk_major_version > major) ||
24098 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24099 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24100 {
24101 return 0;
24102 }
24103 else
24104 {
24105 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24106 gtk_major_version, gtk_minor_version, gtk_micro_version);
24107 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24108 major, minor, micro);
24109 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24110 printf("***\n");
24111 printf("*** If you have already installed a sufficiently new version, this error\n");
24112 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24113 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24114 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24115 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24116 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24117 printf("*** so that the correct libraries are found at run-time))\n");
24118 }
24119 }
24120 return 1;
24121}
24122
24123_ACEOF
24124rm -f conftest$ac_exeext
24125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24126 (eval $ac_link) 2>&5
24127 ac_status=$?
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24131 (eval $ac_try) 2>&5
24132 ac_status=$?
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); }; }; then
24135 :
24136else
24137 echo "$as_me: program exited with status $ac_status" >&5
24138echo "$as_me: failed program was:" >&5
24139sed 's/^/| /' conftest.$ac_ext >&5
24140
24141( exit $ac_status )
24142no_gtk=yes
24143fi
ac1cb8d3 24144rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24145fi
24146 CFLAGS="$ac_save_CFLAGS"
24147 LIBS="$ac_save_LIBS"
24148 fi
24149 fi
24150 if test "x$no_gtk" = x ; then
24151 echo "$as_me:$LINENO: result: yes" >&5
24152echo "${ECHO_T}yes" >&6
24153 wx_cv_lib_gtk=1.2.3
24154 else
24155 echo "$as_me:$LINENO: result: no" >&5
24156echo "${ECHO_T}no" >&6
24157 if test "$GTK_CONFIG" = "no" ; then
24158 echo "*** The gtk-config script installed by GTK could not be found"
24159 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24160 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24161 echo "*** full path to gtk-config."
24162 else
24163 if test -f conf.gtktest ; then
24164 :
24165 else
24166 echo "*** Could not run GTK test program, checking why..."
24167 CFLAGS="$CFLAGS $GTK_CFLAGS"
24168 LIBS="$LIBS $GTK_LIBS"
24169 cat >conftest.$ac_ext <<_ACEOF
24170/* confdefs.h. */
24171_ACEOF
24172cat confdefs.h >>conftest.$ac_ext
24173cat >>conftest.$ac_ext <<_ACEOF
24174/* end confdefs.h. */
24175
24176#include <gtk/gtk.h>
24177#include <stdio.h>
24178
24179int
24180main ()
24181{
24182 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24183 ;
24184 return 0;
24185}
24186_ACEOF
24187rm -f conftest.$ac_objext conftest$ac_exeext
24188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24189 (eval $ac_link) 2>conftest.er1
a848cd7e 24190 ac_status=$?
ac1cb8d3
VS
24191 grep -v '^ *+' conftest.er1 >conftest.err
24192 rm -f conftest.er1
24193 cat conftest.err >&5
a848cd7e
SC
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); } &&
89be85c2
VS
24196 { ac_try='test -z "$ac_c_werror_flag"
24197 || test ! -s conftest.err'
ac1cb8d3
VS
24198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); }; } &&
24203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; }; then
24209 echo "*** The test program compiled, but did not run. This usually means"
24210 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24211 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24212 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24213 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24214 echo "*** is required on your system"
24215 echo "***"
24216 echo "*** If you have an old version installed, it is best to remove it, although"
24217 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24218 echo "***"
24219 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24220 echo "*** came with the system with the command"
24221 echo "***"
24222 echo "*** rpm --erase --nodeps gtk gtk-devel"
24223else
24224 echo "$as_me: failed program was:" >&5
24225sed 's/^/| /' conftest.$ac_ext >&5
24226
24227 echo "*** The test program failed to compile or link. See the file config.log for the"
24228 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24229 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24230 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24231fi
ac1cb8d3
VS
24232rm -f conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24234 CFLAGS="$ac_save_CFLAGS"
24235 LIBS="$ac_save_LIBS"
24236 fi
24237 fi
24238 GTK_CFLAGS=""
24239 GTK_LIBS=""
24240 :
24241 fi
24242
24243
24244 rm -f conf.gtktest
24245
24246 fi
24247 fi
24248
24249 if test -z "$wx_cv_lib_gtk"; then
24250 wx_cv_lib_gtk=none
24251 else
24252 wx_cv_cflags_gtk=$GTK_CFLAGS
24253 wx_cv_libs_gtk=$GTK_LIBS
24254 fi
24255
24256
24257fi
24258
24259
24260 if test "$gtk_version_cached" = 1; then
24261 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
24262echo "${ECHO_T}$wx_cv_lib_gtk" >&6
24263 fi
24264
24265 case "$wx_cv_lib_gtk" in
24266 2.0) WXGTK20=1
24267 TOOLKIT_VERSION=2
24268 ;;
24269 1.2.7) WXGTK127=1
24270 WXGTK12=1
24271 ;;
24272 1.2.3) WXGTK12=1
24273 ;;
24274 *) { { echo "$as_me:$LINENO: error:
24275Please check that gtk-config is in path, the directory
24276where GTK+ libraries are installed (returned by
24277'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24278equivalent variable and GTK+ is version 1.2.3 or above.
24279 " >&5
24280echo "$as_me: error:
24281Please check that gtk-config is in path, the directory
24282where GTK+ libraries are installed (returned by
24283'gtk-config --libs' command) is in LD_LIBRARY_PATH or
24284equivalent variable and GTK+ is version 1.2.3 or above.
24285 " >&2;}
24286 { (exit 1); exit 1; }; }
24287 ;;
24288 esac
24289
24290 if test "$WXGTK20" = 1; then
304205f1
VS
24291 save_CFLAGS="$CFLAGS"
24292 save_LIBS="$LIBS"
24293 CFLAGS="$CFLAGS $GTK_CFLAGS"
24294 LIBS="$LIBS $GTK_LIBS"
24295
9755e73b 24296
304205f1
VS
24297for ac_func in pango_font_family_is_monospace
24298do
24299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24300echo "$as_me:$LINENO: checking for $ac_func" >&5
24301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24302if eval "test \"\${$as_ac_var+set}\" = set"; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24304else
24305 cat >conftest.$ac_ext <<_ACEOF
24306/* confdefs.h. */
24307_ACEOF
24308cat confdefs.h >>conftest.$ac_ext
24309cat >>conftest.$ac_ext <<_ACEOF
24310/* end confdefs.h. */
24311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24313#define $ac_func innocuous_$ac_func
24314
24315/* System header to define __stub macros and hopefully few prototypes,
24316 which can conflict with char $ac_func (); below.
24317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24318 <limits.h> exists even on freestanding compilers. */
24319
24320#ifdef __STDC__
24321# include <limits.h>
24322#else
24323# include <assert.h>
24324#endif
24325
24326#undef $ac_func
24327
24328/* Override any gcc2 internal prototype to avoid an error. */
24329#ifdef __cplusplus
24330extern "C"
24331{
24332#endif
24333/* We use char because int might match the return type of a gcc2
24334 builtin and then its argument prototype would still apply. */
24335char $ac_func ();
24336/* The GNU C library defines this for functions which it implements
24337 to always fail with ENOSYS. Some functions are actually named
24338 something starting with __ and the normal name is an alias. */
24339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24340choke me
24341#else
24342char (*f) () = $ac_func;
24343#endif
24344#ifdef __cplusplus
24345}
24346#endif
24347
24348int
24349main ()
24350{
24351return f != $ac_func;
24352 ;
24353 return 0;
24354}
24355_ACEOF
24356rm -f conftest.$ac_objext conftest$ac_exeext
24357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24358 (eval $ac_link) 2>conftest.er1
24359 ac_status=$?
24360 grep -v '^ *+' conftest.er1 >conftest.err
24361 rm -f conftest.er1
24362 cat conftest.err >&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } &&
89be85c2
VS
24365 { ac_try='test -z "$ac_c_werror_flag"
24366 || test ! -s conftest.err'
304205f1
VS
24367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368 (eval $ac_try) 2>&5
24369 ac_status=$?
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; } &&
24372 { ac_try='test -s conftest$ac_exeext'
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; }; then
24378 eval "$as_ac_var=yes"
24379else
24380 echo "$as_me: failed program was:" >&5
24381sed 's/^/| /' conftest.$ac_ext >&5
24382
24383eval "$as_ac_var=no"
24384fi
24385rm -f conftest.err conftest.$ac_objext \
24386 conftest$ac_exeext conftest.$ac_ext
24387fi
24388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24389echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24390if test `eval echo '${'$as_ac_var'}'` = yes; then
24391 cat >>confdefs.h <<_ACEOF
24392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24393_ACEOF
24394
24395fi
24396done
24397
9755e73b
VS
24398
24399 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24400echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24401 cat >conftest.$ac_ext <<_ACEOF
24402/* confdefs.h. */
24403_ACEOF
24404cat confdefs.h >>conftest.$ac_ext
24405cat >>conftest.$ac_ext <<_ACEOF
24406/* end confdefs.h. */
24407
24408 #include <gtk/gtk.h>
24409
24410int
24411main ()
24412{
24413
24414 #if !GTK_CHECK_VERSION(2,4,0)
24415 #error "Not GTK+ 2.4"
24416 #endif
24417
24418 ;
24419 return 0;
24420}
24421_ACEOF
24422rm -f conftest.$ac_objext
24423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24424 (eval $ac_compile) 2>conftest.er1
24425 ac_status=$?
24426 grep -v '^ *+' conftest.er1 >conftest.err
24427 rm -f conftest.er1
24428 cat conftest.err >&5
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); } &&
89be85c2
VS
24431 { ac_try='test -z "$ac_c_werror_flag"
24432 || test ! -s conftest.err'
9755e73b
VS
24433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434 (eval $ac_try) 2>&5
24435 ac_status=$?
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; } &&
24438 { ac_try='test -s conftest.$ac_objext'
24439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440 (eval $ac_try) 2>&5
24441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444
24445 cat >>confdefs.h <<\_ACEOF
24446#define __WXGTK24__ 1
24447_ACEOF
24448
24449 echo "$as_me:$LINENO: result: yes" >&5
24450echo "${ECHO_T}yes" >&6
24451
24452else
24453 echo "$as_me: failed program was:" >&5
24454sed 's/^/| /' conftest.$ac_ext >&5
24455
24456
24457 echo "$as_me:$LINENO: result: no" >&5
24458echo "${ECHO_T}no" >&6
24459
24460fi
24461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24462
304205f1
VS
24463 CFLAGS="$save_CFLAGS"
24464 LIBS="$save_LIBS"
a848cd7e
SC
24465 else
24466 if test "$wxUSE_UNICODE" = "yes"; then
24467 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24468echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24469 wxUSE_UNICODE=no
24470 fi
24471 fi
24472
24473 if test "$USE_DARWIN" != 1; then
24474
24475for ac_func in poll
24476do
24477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24478echo "$as_me:$LINENO: checking for $ac_func" >&5
24479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24480if eval "test \"\${$as_ac_var+set}\" = set"; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24482else
24483 cat >conftest.$ac_ext <<_ACEOF
24484/* confdefs.h. */
24485_ACEOF
24486cat confdefs.h >>conftest.$ac_ext
24487cat >>conftest.$ac_ext <<_ACEOF
24488/* end confdefs.h. */
ac1cb8d3
VS
24489/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24491#define $ac_func innocuous_$ac_func
24492
a848cd7e
SC
24493/* System header to define __stub macros and hopefully few prototypes,
24494 which can conflict with char $ac_func (); below.
24495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24496 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24497
a848cd7e
SC
24498#ifdef __STDC__
24499# include <limits.h>
24500#else
24501# include <assert.h>
24502#endif
ac1cb8d3
VS
24503
24504#undef $ac_func
24505
a848cd7e
SC
24506/* Override any gcc2 internal prototype to avoid an error. */
24507#ifdef __cplusplus
24508extern "C"
24509{
24510#endif
24511/* We use char because int might match the return type of a gcc2
24512 builtin and then its argument prototype would still apply. */
24513char $ac_func ();
24514/* The GNU C library defines this for functions which it implements
24515 to always fail with ENOSYS. Some functions are actually named
24516 something starting with __ and the normal name is an alias. */
24517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24518choke me
24519#else
24520char (*f) () = $ac_func;
24521#endif
24522#ifdef __cplusplus
24523}
24524#endif
24525
24526int
24527main ()
24528{
24529return f != $ac_func;
24530 ;
24531 return 0;
24532}
24533_ACEOF
24534rm -f conftest.$ac_objext conftest$ac_exeext
24535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24536 (eval $ac_link) 2>conftest.er1
a848cd7e 24537 ac_status=$?
ac1cb8d3
VS
24538 grep -v '^ *+' conftest.er1 >conftest.err
24539 rm -f conftest.er1
24540 cat conftest.err >&5
a848cd7e
SC
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); } &&
89be85c2
VS
24543 { ac_try='test -z "$ac_c_werror_flag"
24544 || test ! -s conftest.err'
ac1cb8d3
VS
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24547 ac_status=$?
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; } &&
24550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552 (eval $ac_try) 2>&5
24553 ac_status=$?
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); }; }; then
24556 eval "$as_ac_var=yes"
24557else
24558 echo "$as_me: failed program was:" >&5
24559sed 's/^/| /' conftest.$ac_ext >&5
24560
24561eval "$as_ac_var=no"
24562fi
ac1cb8d3
VS
24563rm -f conftest.err conftest.$ac_objext \
24564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24565fi
24566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24568if test `eval echo '${'$as_ac_var'}'` = yes; then
24569 cat >>confdefs.h <<_ACEOF
24570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24571_ACEOF
24572
24573fi
24574done
24575
24576 fi
24577
24578 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24579 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24580
24581 AFMINSTALL=afminstall
24582 TOOLKIT=GTK
24583 GUIDIST=GTK_DIST
24584
24585 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24586echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24587if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24588 echo $ECHO_N "(cached) $ECHO_C" >&6
24589else
24590 ac_check_lib_save_LIBS=$LIBS
24591LIBS="-lgdk $LIBS"
24592cat >conftest.$ac_ext <<_ACEOF
24593/* confdefs.h. */
24594_ACEOF
24595cat confdefs.h >>conftest.$ac_ext
24596cat >>conftest.$ac_ext <<_ACEOF
24597/* end confdefs.h. */
24598
24599/* Override any gcc2 internal prototype to avoid an error. */
24600#ifdef __cplusplus
24601extern "C"
24602#endif
24603/* We use char because int might match the return type of a gcc2
24604 builtin and then its argument prototype would still apply. */
24605char gdk_im_open ();
24606int
24607main ()
24608{
24609gdk_im_open ();
24610 ;
24611 return 0;
24612}
24613_ACEOF
24614rm -f conftest.$ac_objext conftest$ac_exeext
24615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24616 (eval $ac_link) 2>conftest.er1
a848cd7e 24617 ac_status=$?
ac1cb8d3
VS
24618 grep -v '^ *+' conftest.er1 >conftest.err
24619 rm -f conftest.er1
24620 cat conftest.err >&5
a848cd7e
SC
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } &&
89be85c2
VS
24623 { ac_try='test -z "$ac_c_werror_flag"
24624 || test ! -s conftest.err'
ac1cb8d3
VS
24625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626 (eval $ac_try) 2>&5
24627 ac_status=$?
24628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629 (exit $ac_status); }; } &&
24630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24632 (eval $ac_try) 2>&5
24633 ac_status=$?
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); }; }; then
24636 ac_cv_lib_gdk_gdk_im_open=yes
24637else
24638 echo "$as_me: failed program was:" >&5
24639sed 's/^/| /' conftest.$ac_ext >&5
24640
24641ac_cv_lib_gdk_gdk_im_open=no
24642fi
ac1cb8d3
VS
24643rm -f conftest.err conftest.$ac_objext \
24644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24645LIBS=$ac_check_lib_save_LIBS
24646fi
24647echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24648echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24649if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24650 cat >>confdefs.h <<\_ACEOF
24651#define HAVE_XIM 1
24652_ACEOF
24653
24654fi
24655
24656
24657
24658 if test "$wxUSE_GPE" = "yes"; then
24659 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24660echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24661
24662ac_find_libraries=
24663for ac_dir in $SEARCH_LIB /usr/lib;
24664 do
24665 for ac_extension in a so sl dylib; do
24666 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24667 ac_find_libraries=$ac_dir
24668 break 2
24669 fi
24670 done
24671 done
24672
24673 if test "$ac_find_libraries" != "" ; then
24674
24675 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24676 result=$?
24677 if test $result = 0; then
24678 ac_path_to_link=""
24679 else
24680 ac_path_to_link=" -L$ac_find_libraries"
24681 fi
24682
24683 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24684 WXGPE=1
24685 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24686echo "${ECHO_T}found at $ac_find_libraries" >&6
24687 else
24688 echo "$as_me:$LINENO: result: not found" >&5
24689echo "${ECHO_T}not found" >&6
24690 fi
24691
24692 fi
24693 fi
24694
24695 if test "$wxUSE_MGL" = 1; then
24696 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24697echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24698 if test "x$MGL_ROOT" = x ; then
24699 echo "$as_me:$LINENO: result: not found" >&5
24700echo "${ECHO_T}not found" >&6
24701 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24702echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24703 { (exit 1); exit 1; }; }
24704 else
24705 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24706echo "${ECHO_T}$MGL_ROOT" >&6
24707 fi
24708
24709 echo "$as_me:$LINENO: checking for libmgl location" >&5
24710echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24711 case "${host}" in
24712 *-*-linux* )
24713 if test "x$wxUSE_SHARED" = xyes ; then
24714 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24715 else
24716 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24717 fi
24718 ;;
24719 *-pc-msdosdjgpp )
24720 mgl_os_candidates="dos32/dj2"
24721 ;;
24722 *)
24723 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24724echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24725 { (exit 1); exit 1; }; }
24726 esac
24727
24728 mgl_lib_type=""
24729 mgl_os=""
24730
24731 for mgl_os_i in $mgl_os_candidates ; do
24732 if test "x$mgl_os" = x ; then
24733 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24734 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24735 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24736 mgl_lib_type=debug
24737 mgl_os=$mgl_os_i
24738 fi
24739 fi
24740 if test "x$mgl_lib_type" = x ; then
24741 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24742 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24743 mgl_lib_type=release
24744 mgl_os=$mgl_os_i
24745 fi
24746 fi
24747 fi
24748 done
24749
24750 if test "x$mgl_os" = x ; then
24751 echo "$as_me:$LINENO: result: not found" >&5
24752echo "${ECHO_T}not found" >&6
24753 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24754echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24755 { (exit 1); exit 1; }; }
24756 fi
24757 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24758echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24759
24760 wxUSE_UNIVERSAL="yes"
24761
24762 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24763 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24764
24765 AFMINSTALL=afminstall
24766 TOOLKIT=MGL
24767 GUIDIST=MGL_DIST
24768 fi
24769
24770 if test "$wxUSE_MICROWIN" = 1; then
24771 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24772echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24773 if test "x$MICROWINDOWS" = x ; then
24774 echo "$as_me:$LINENO: result: not found" >&5
24775echo "${ECHO_T}not found" >&6
24776 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24777echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24778 { (exit 1); exit 1; }; }
24779 else
24780 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24781echo "${ECHO_T}$MICROWINDOWS" >&6
24782 fi
24783
24784 if test -f $MICROWINDOWS/lib/libmwin.a; then
24785 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24786echo "${ECHO_T}MicroWindows' libraries found." >&6
24787 else
24788 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24789echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24790 { (exit 1); exit 1; }; }
24791 fi
24792
24793 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24794 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24795
24796 wxUSE_UNIVERSAL="yes"
24797
24798 AFMINSTALL=afminstall
24799 TOOLKIT=MICROWIN
24800 GUIDIST=MICROWIN_DIST
24801
24802 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24803 fi
24804
74b84332 24805 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
89be85c2 24806 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24807echo $ECHO_N "checking for X... $ECHO_C" >&6
24808
24809
24810# Check whether --with-x or --without-x was given.
24811if test "${with_x+set}" = set; then
24812 withval="$with_x"
24813
24814fi;
24815# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24816if test "x$with_x" = xno; then
24817 # The user explicitly disabled X.
24818 have_x=disabled
24819else
24820 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24821 # Both variables are already set.
24822 have_x=yes
24823 else
24824 if test "${ac_cv_have_x+set}" = set; then
24825 echo $ECHO_N "(cached) $ECHO_C" >&6
24826else
24827 # One or both of the vars are not set, and there is no cached value.
24828ac_x_includes=no ac_x_libraries=no
24829rm -fr conftest.dir
24830if mkdir conftest.dir; then
24831 cd conftest.dir
24832 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24833 cat >Imakefile <<'_ACEOF'
24834acfindx:
24835 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24836_ACEOF
24837 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24839 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24840 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24841 for ac_extension in a so sl; do
24842 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24843 test -f $ac_im_libdir/libX11.$ac_extension; then
24844 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24845 fi
24846 done
24847 # Screen out bogus values from the imake configuration. They are
24848 # bogus both because they are the default anyway, and because
24849 # using them would break gcc on systems where it needs fixed includes.
24850 case $ac_im_incroot in
24851 /usr/include) ;;
24852 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24853 esac
24854 case $ac_im_usrlibdir in
24855 /usr/lib | /lib) ;;
24856 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24857 esac
24858 fi
24859 cd ..
24860 rm -fr conftest.dir
24861fi
24862
24863# Standard set of common directories for X headers.
24864# Check X11 before X11Rn because it is often a symlink to the current release.
24865ac_x_header_dirs='
24866/usr/X11/include
24867/usr/X11R6/include
24868/usr/X11R5/include
24869/usr/X11R4/include
24870
24871/usr/include/X11
24872/usr/include/X11R6
24873/usr/include/X11R5
24874/usr/include/X11R4
24875
24876/usr/local/X11/include
24877/usr/local/X11R6/include
24878/usr/local/X11R5/include
24879/usr/local/X11R4/include
24880
24881/usr/local/include/X11
24882/usr/local/include/X11R6
24883/usr/local/include/X11R5
24884/usr/local/include/X11R4
24885
24886/usr/X386/include
24887/usr/x386/include
24888/usr/XFree86/include/X11
24889
24890/usr/include
24891/usr/local/include
24892/usr/unsupported/include
24893/usr/athena/include
24894/usr/local/x11r5/include
24895/usr/lpp/Xamples/include
24896
24897/usr/openwin/include
24898/usr/openwin/share/include'
24899
24900if test "$ac_x_includes" = no; then
89be85c2 24901 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24902 # First, try using that file with no special directory specified.
24903 cat >conftest.$ac_ext <<_ACEOF
24904/* confdefs.h. */
24905_ACEOF
24906cat confdefs.h >>conftest.$ac_ext
24907cat >>conftest.$ac_ext <<_ACEOF
24908/* end confdefs.h. */
24909#include <X11/Intrinsic.h>
24910_ACEOF
24911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24913 ac_status=$?
24914 grep -v '^ *+' conftest.er1 >conftest.err
24915 rm -f conftest.er1
24916 cat conftest.err >&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } >/dev/null; then
24919 if test -s conftest.err; then
24920 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24922 else
24923 ac_cpp_err=
24924 fi
24925else
24926 ac_cpp_err=yes
24927fi
24928if test -z "$ac_cpp_err"; then
24929 # We can compile using X headers with no special include directory.
24930ac_x_includes=
24931else
24932 echo "$as_me: failed program was:" >&5
24933sed 's/^/| /' conftest.$ac_ext >&5
24934
24935 for ac_dir in $ac_x_header_dirs; do
24936 if test -r "$ac_dir/X11/Intrinsic.h"; then
24937 ac_x_includes=$ac_dir
24938 break
24939 fi
24940done
24941fi
24942rm -f conftest.err conftest.$ac_ext
24943fi # $ac_x_includes = no
24944
24945if test "$ac_x_libraries" = no; then
24946 # Check for the libraries.
24947 # See if we find them without any special options.
24948 # Don't add to $LIBS permanently.
24949 ac_save_LIBS=$LIBS
24950 LIBS="-lXt $LIBS"
24951 cat >conftest.$ac_ext <<_ACEOF
24952/* confdefs.h. */
24953_ACEOF
24954cat confdefs.h >>conftest.$ac_ext
24955cat >>conftest.$ac_ext <<_ACEOF
24956/* end confdefs.h. */
24957#include <X11/Intrinsic.h>
24958int
24959main ()
24960{
24961XtMalloc (0)
24962 ;
24963 return 0;
24964}
24965_ACEOF
24966rm -f conftest.$ac_objext conftest$ac_exeext
24967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24968 (eval $ac_link) 2>conftest.er1
a848cd7e 24969 ac_status=$?
ac1cb8d3
VS
24970 grep -v '^ *+' conftest.er1 >conftest.err
24971 rm -f conftest.er1
24972 cat conftest.err >&5
a848cd7e
SC
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } &&
89be85c2
VS
24975 { ac_try='test -z "$ac_c_werror_flag"
24976 || test ! -s conftest.err'
ac1cb8d3
VS
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24979 ac_status=$?
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; } &&
24982 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984 (eval $ac_try) 2>&5
24985 ac_status=$?
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; }; then
24988 LIBS=$ac_save_LIBS
24989# We can link X programs with no special library path.
24990ac_x_libraries=
24991else
24992 echo "$as_me: failed program was:" >&5
24993sed 's/^/| /' conftest.$ac_ext >&5
24994
24995LIBS=$ac_save_LIBS
24996for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24997do
24998 # Don't even attempt the hair of trying to link an X program!
24999 for ac_extension in a so sl; do
25000 if test -r $ac_dir/libXt.$ac_extension; then
25001 ac_x_libraries=$ac_dir
25002 break 2
25003 fi
25004 done
25005done
25006fi
ac1cb8d3
VS
25007rm -f conftest.err conftest.$ac_objext \
25008 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25009fi # $ac_x_libraries = no
25010
25011if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25012 # Didn't find X anywhere. Cache the known absence of X.
25013 ac_cv_have_x="have_x=no"
25014else
25015 # Record where we found X for the cache.
25016 ac_cv_have_x="have_x=yes \
ac1cb8d3 25017 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25018fi
25019fi
25020
25021 fi
25022 eval "$ac_cv_have_x"
25023fi # $with_x != no
25024
25025if test "$have_x" != yes; then
25026 echo "$as_me:$LINENO: result: $have_x" >&5
25027echo "${ECHO_T}$have_x" >&6
25028 no_x=yes
25029else
25030 # If each of the values was on the command line, it overrides each guess.
25031 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25032 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25033 # Update the cache value to reflect the command line values.
25034 ac_cv_have_x="have_x=yes \
25035 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
89be85c2
VS
25036 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25037echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
25038fi
25039
25040if test "$no_x" = yes; then
25041 # Not all programs may use this symbol, but it does not hurt to define it.
25042
25043cat >>confdefs.h <<\_ACEOF
25044#define X_DISPLAY_MISSING 1
25045_ACEOF
25046
25047 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25048else
25049 if test -n "$x_includes"; then
25050 X_CFLAGS="$X_CFLAGS -I$x_includes"
25051 fi
25052
25053 # It would also be nice to do this for all -L options, not just this one.
25054 if test -n "$x_libraries"; then
25055 X_LIBS="$X_LIBS -L$x_libraries"
25056 # For Solaris; some versions of Sun CC require a space after -R and
25057 # others require no space. Words are not sufficient . . . .
25058 case `(uname -sr) 2>/dev/null` in
25059 "SunOS 5"*)
25060 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25061echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25062 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25063 cat >conftest.$ac_ext <<_ACEOF
25064/* confdefs.h. */
25065_ACEOF
25066cat confdefs.h >>conftest.$ac_ext
25067cat >>conftest.$ac_ext <<_ACEOF
25068/* end confdefs.h. */
25069
25070int
25071main ()
25072{
25073
25074 ;
25075 return 0;
25076}
25077_ACEOF
25078rm -f conftest.$ac_objext conftest$ac_exeext
25079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25080 (eval $ac_link) 2>conftest.er1
a848cd7e 25081 ac_status=$?
ac1cb8d3
VS
25082 grep -v '^ *+' conftest.er1 >conftest.err
25083 rm -f conftest.er1
25084 cat conftest.err >&5
a848cd7e
SC
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); } &&
89be85c2
VS
25087 { ac_try='test -z "$ac_c_werror_flag"
25088 || test ! -s conftest.err'
ac1cb8d3
VS
25089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090 (eval $ac_try) 2>&5
25091 ac_status=$?
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; } &&
25094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25097 ac_status=$?
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; }; then
25100 ac_R_nospace=yes
25101else
25102 echo "$as_me: failed program was:" >&5
25103sed 's/^/| /' conftest.$ac_ext >&5
25104
25105ac_R_nospace=no
25106fi
ac1cb8d3
VS
25107rm -f conftest.err conftest.$ac_objext \
25108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25109 if test $ac_R_nospace = yes; then
25110 echo "$as_me:$LINENO: result: no" >&5
25111echo "${ECHO_T}no" >&6
25112 X_LIBS="$X_LIBS -R$x_libraries"
25113 else
25114 LIBS="$ac_xsave_LIBS -R $x_libraries"
25115 cat >conftest.$ac_ext <<_ACEOF
25116/* confdefs.h. */
25117_ACEOF
25118cat confdefs.h >>conftest.$ac_ext
25119cat >>conftest.$ac_ext <<_ACEOF
25120/* end confdefs.h. */
25121
25122int
25123main ()
25124{
25125
25126 ;
25127 return 0;
25128}
25129_ACEOF
25130rm -f conftest.$ac_objext conftest$ac_exeext
25131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25132 (eval $ac_link) 2>conftest.er1
a848cd7e 25133 ac_status=$?
ac1cb8d3
VS
25134 grep -v '^ *+' conftest.er1 >conftest.err
25135 rm -f conftest.er1
25136 cat conftest.err >&5
a848cd7e
SC
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); } &&
89be85c2
VS
25139 { ac_try='test -z "$ac_c_werror_flag"
25140 || test ! -s conftest.err'
ac1cb8d3
VS
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; } &&
25146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; }; then
25152 ac_R_space=yes
25153else
25154 echo "$as_me: failed program was:" >&5
25155sed 's/^/| /' conftest.$ac_ext >&5
25156
25157ac_R_space=no
25158fi
ac1cb8d3
VS
25159rm -f conftest.err conftest.$ac_objext \
25160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25161 if test $ac_R_space = yes; then
25162 echo "$as_me:$LINENO: result: yes" >&5
25163echo "${ECHO_T}yes" >&6
25164 X_LIBS="$X_LIBS -R $x_libraries"
25165 else
25166 echo "$as_me:$LINENO: result: neither works" >&5
25167echo "${ECHO_T}neither works" >&6
25168 fi
25169 fi
25170 LIBS=$ac_xsave_LIBS
25171 esac
25172 fi
25173
25174 # Check for system-dependent libraries X programs must link with.
25175 # Do this before checking for the system-independent R6 libraries
25176 # (-lICE), since we may need -lsocket or whatever for X linking.
25177
25178 if test "$ISC" = yes; then
25179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25180 else
25181 # Martyn Johnson says this is needed for Ultrix, if the X
25182 # libraries were built with DECnet support. And Karl Berry says
25183 # the Alpha needs dnet_stub (dnet does not exist).
25184 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25185 cat >conftest.$ac_ext <<_ACEOF
25186/* confdefs.h. */
25187_ACEOF
25188cat confdefs.h >>conftest.$ac_ext
25189cat >>conftest.$ac_ext <<_ACEOF
25190/* end confdefs.h. */
25191
25192/* Override any gcc2 internal prototype to avoid an error. */
25193#ifdef __cplusplus
25194extern "C"
25195#endif
25196/* We use char because int might match the return type of a gcc2
25197 builtin and then its argument prototype would still apply. */
25198char XOpenDisplay ();
25199int
25200main ()
25201{
25202XOpenDisplay ();
25203 ;
25204 return 0;
25205}
25206_ACEOF
25207rm -f conftest.$ac_objext conftest$ac_exeext
25208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25209 (eval $ac_link) 2>conftest.er1
a848cd7e 25210 ac_status=$?
ac1cb8d3
VS
25211 grep -v '^ *+' conftest.er1 >conftest.err
25212 rm -f conftest.er1
25213 cat conftest.err >&5
a848cd7e
SC
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } &&
89be85c2
VS
25216 { ac_try='test -z "$ac_c_werror_flag"
25217 || test ! -s conftest.err'
ac1cb8d3
VS
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } &&
25223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225 (eval $ac_try) 2>&5
25226 ac_status=$?
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); }; }; then
25229 :
25230else
25231 echo "$as_me: failed program was:" >&5
25232sed 's/^/| /' conftest.$ac_ext >&5
25233
25234echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25235echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25236if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25238else
25239 ac_check_lib_save_LIBS=$LIBS
25240LIBS="-ldnet $LIBS"
25241cat >conftest.$ac_ext <<_ACEOF
25242/* confdefs.h. */
25243_ACEOF
25244cat confdefs.h >>conftest.$ac_ext
25245cat >>conftest.$ac_ext <<_ACEOF
25246/* end confdefs.h. */
25247
25248/* Override any gcc2 internal prototype to avoid an error. */
25249#ifdef __cplusplus
25250extern "C"
25251#endif
25252/* We use char because int might match the return type of a gcc2
25253 builtin and then its argument prototype would still apply. */
25254char dnet_ntoa ();
25255int
25256main ()
25257{
25258dnet_ntoa ();
25259 ;
25260 return 0;
25261}
25262_ACEOF
25263rm -f conftest.$ac_objext conftest$ac_exeext
25264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25265 (eval $ac_link) 2>conftest.er1
a848cd7e 25266 ac_status=$?
ac1cb8d3
VS
25267 grep -v '^ *+' conftest.er1 >conftest.err
25268 rm -f conftest.er1
25269 cat conftest.err >&5
a848cd7e
SC
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); } &&
89be85c2
VS
25272 { ac_try='test -z "$ac_c_werror_flag"
25273 || test ! -s conftest.err'
ac1cb8d3
VS
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; } &&
25279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281 (eval $ac_try) 2>&5
25282 ac_status=$?
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); }; }; then
25285 ac_cv_lib_dnet_dnet_ntoa=yes
25286else
25287 echo "$as_me: failed program was:" >&5
25288sed 's/^/| /' conftest.$ac_ext >&5
25289
25290ac_cv_lib_dnet_dnet_ntoa=no
25291fi
ac1cb8d3
VS
25292rm -f conftest.err conftest.$ac_objext \
25293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25294LIBS=$ac_check_lib_save_LIBS
25295fi
25296echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25297echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25298if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25299 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25300fi
25301
25302 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25303 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25304echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25305if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25307else
25308 ac_check_lib_save_LIBS=$LIBS
25309LIBS="-ldnet_stub $LIBS"
25310cat >conftest.$ac_ext <<_ACEOF
25311/* confdefs.h. */
25312_ACEOF
25313cat confdefs.h >>conftest.$ac_ext
25314cat >>conftest.$ac_ext <<_ACEOF
25315/* end confdefs.h. */
25316
25317/* Override any gcc2 internal prototype to avoid an error. */
25318#ifdef __cplusplus
25319extern "C"
25320#endif
25321/* We use char because int might match the return type of a gcc2
25322 builtin and then its argument prototype would still apply. */
25323char dnet_ntoa ();
25324int
25325main ()
25326{
25327dnet_ntoa ();
25328 ;
25329 return 0;
25330}
25331_ACEOF
25332rm -f conftest.$ac_objext conftest$ac_exeext
25333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25334 (eval $ac_link) 2>conftest.er1
a848cd7e 25335 ac_status=$?
ac1cb8d3
VS
25336 grep -v '^ *+' conftest.er1 >conftest.err
25337 rm -f conftest.er1
25338 cat conftest.err >&5
a848cd7e
SC
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); } &&
89be85c2
VS
25341 { ac_try='test -z "$ac_c_werror_flag"
25342 || test ! -s conftest.err'
ac1cb8d3
VS
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; } &&
25348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350 (eval $ac_try) 2>&5
25351 ac_status=$?
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); }; }; then
25354 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25355else
25356 echo "$as_me: failed program was:" >&5
25357sed 's/^/| /' conftest.$ac_ext >&5
25358
25359ac_cv_lib_dnet_stub_dnet_ntoa=no
25360fi
ac1cb8d3
VS
25361rm -f conftest.err conftest.$ac_objext \
25362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25363LIBS=$ac_check_lib_save_LIBS
25364fi
25365echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25366echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25367if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25368 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25369fi
25370
25371 fi
25372fi
ac1cb8d3
VS
25373rm -f conftest.err conftest.$ac_objext \
25374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25375 LIBS="$ac_xsave_LIBS"
25376
25377 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25378 # to get the SysV transport functions.
25379 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25380 # needs -lnsl.
25381 # The nsl library prevents programs from opening the X display
25382 # on Irix 5.2, according to T.E. Dickey.
25383 # The functions gethostbyname, getservbyname, and inet_addr are
25384 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25385 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25386echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25387if test "${ac_cv_func_gethostbyname+set}" = set; then
25388 echo $ECHO_N "(cached) $ECHO_C" >&6
25389else
25390 cat >conftest.$ac_ext <<_ACEOF
25391/* confdefs.h. */
25392_ACEOF
25393cat confdefs.h >>conftest.$ac_ext
25394cat >>conftest.$ac_ext <<_ACEOF
25395/* end confdefs.h. */
ac1cb8d3
VS
25396/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25398#define gethostbyname innocuous_gethostbyname
25399
a848cd7e
SC
25400/* System header to define __stub macros and hopefully few prototypes,
25401 which can conflict with char gethostbyname (); below.
25402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25403 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25404
a848cd7e
SC
25405#ifdef __STDC__
25406# include <limits.h>
25407#else
25408# include <assert.h>
25409#endif
ac1cb8d3
VS
25410
25411#undef gethostbyname
25412
a848cd7e
SC
25413/* Override any gcc2 internal prototype to avoid an error. */
25414#ifdef __cplusplus
25415extern "C"
25416{
25417#endif
25418/* We use char because int might match the return type of a gcc2
25419 builtin and then its argument prototype would still apply. */
25420char gethostbyname ();
25421/* The GNU C library defines this for functions which it implements
25422 to always fail with ENOSYS. Some functions are actually named
25423 something starting with __ and the normal name is an alias. */
25424#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25425choke me
25426#else
25427char (*f) () = gethostbyname;
25428#endif
25429#ifdef __cplusplus
25430}
25431#endif
25432
25433int
25434main ()
25435{
25436return f != gethostbyname;
25437 ;
25438 return 0;
25439}
25440_ACEOF
25441rm -f conftest.$ac_objext conftest$ac_exeext
25442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25443 (eval $ac_link) 2>conftest.er1
a848cd7e 25444 ac_status=$?
ac1cb8d3
VS
25445 grep -v '^ *+' conftest.er1 >conftest.err
25446 rm -f conftest.er1
25447 cat conftest.err >&5
a848cd7e
SC
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); } &&
89be85c2
VS
25450 { ac_try='test -z "$ac_c_werror_flag"
25451 || test ! -s conftest.err'
ac1cb8d3
VS
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; } &&
25457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; }; then
25463 ac_cv_func_gethostbyname=yes
25464else
25465 echo "$as_me: failed program was:" >&5
25466sed 's/^/| /' conftest.$ac_ext >&5
25467
25468ac_cv_func_gethostbyname=no
25469fi
ac1cb8d3
VS
25470rm -f conftest.err conftest.$ac_objext \
25471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25472fi
25473echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25474echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25475
25476 if test $ac_cv_func_gethostbyname = no; then
25477 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25478echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25479if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25480 echo $ECHO_N "(cached) $ECHO_C" >&6
25481else
25482 ac_check_lib_save_LIBS=$LIBS
25483LIBS="-lnsl $LIBS"
25484cat >conftest.$ac_ext <<_ACEOF
25485/* confdefs.h. */
25486_ACEOF
25487cat confdefs.h >>conftest.$ac_ext
25488cat >>conftest.$ac_ext <<_ACEOF
25489/* end confdefs.h. */
25490
25491/* Override any gcc2 internal prototype to avoid an error. */
25492#ifdef __cplusplus
25493extern "C"
25494#endif
25495/* We use char because int might match the return type of a gcc2
25496 builtin and then its argument prototype would still apply. */
25497char gethostbyname ();
25498int
25499main ()
25500{
25501gethostbyname ();
25502 ;
25503 return 0;
25504}
25505_ACEOF
25506rm -f conftest.$ac_objext conftest$ac_exeext
25507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25508 (eval $ac_link) 2>conftest.er1
25509 ac_status=$?
25510 grep -v '^ *+' conftest.er1 >conftest.err
25511 rm -f conftest.er1
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } &&
89be85c2
VS
25515 { ac_try='test -z "$ac_c_werror_flag"
25516 || test ! -s conftest.err'
ac1cb8d3
VS
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; } &&
25522 { ac_try='test -s conftest$ac_exeext'
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; }; then
25528 ac_cv_lib_nsl_gethostbyname=yes
25529else
25530 echo "$as_me: failed program was:" >&5
25531sed 's/^/| /' conftest.$ac_ext >&5
25532
25533ac_cv_lib_nsl_gethostbyname=no
25534fi
25535rm -f conftest.err conftest.$ac_objext \
25536 conftest$ac_exeext conftest.$ac_ext
25537LIBS=$ac_check_lib_save_LIBS
25538fi
25539echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25540echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25541if test $ac_cv_lib_nsl_gethostbyname = yes; then
25542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25543fi
25544
25545 if test $ac_cv_lib_nsl_gethostbyname = no; then
25546 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25547echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25548if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25550else
25551 ac_check_lib_save_LIBS=$LIBS
25552LIBS="-lbsd $LIBS"
25553cat >conftest.$ac_ext <<_ACEOF
25554/* confdefs.h. */
25555_ACEOF
25556cat confdefs.h >>conftest.$ac_ext
25557cat >>conftest.$ac_ext <<_ACEOF
25558/* end confdefs.h. */
25559
25560/* Override any gcc2 internal prototype to avoid an error. */
25561#ifdef __cplusplus
25562extern "C"
25563#endif
25564/* We use char because int might match the return type of a gcc2
25565 builtin and then its argument prototype would still apply. */
25566char gethostbyname ();
25567int
25568main ()
25569{
25570gethostbyname ();
25571 ;
25572 return 0;
25573}
25574_ACEOF
25575rm -f conftest.$ac_objext conftest$ac_exeext
25576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25577 (eval $ac_link) 2>conftest.er1
a848cd7e 25578 ac_status=$?
ac1cb8d3
VS
25579 grep -v '^ *+' conftest.er1 >conftest.err
25580 rm -f conftest.er1
25581 cat conftest.err >&5
a848cd7e
SC
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } &&
89be85c2
VS
25584 { ac_try='test -z "$ac_c_werror_flag"
25585 || test ! -s conftest.err'
a848cd7e
SC
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25588 ac_status=$?
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25590 (exit $ac_status); }; } &&
25591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; }; then
25597 ac_cv_lib_bsd_gethostbyname=yes
25598else
25599 echo "$as_me: failed program was:" >&5
25600sed 's/^/| /' conftest.$ac_ext >&5
25601
25602ac_cv_lib_bsd_gethostbyname=no
25603fi
ac1cb8d3
VS
25604rm -f conftest.err conftest.$ac_objext \
25605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25606LIBS=$ac_check_lib_save_LIBS
25607fi
25608echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25609echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25610if test $ac_cv_lib_bsd_gethostbyname = yes; then
25611 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25612fi
25613
25614 fi
25615 fi
25616
25617 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25618 # socket/setsockopt and other routines are undefined under SCO ODT
25619 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25620 # on later versions), says Simon Leinen: it contains gethostby*
25621 # variants that don't use the name server (or something). -lsocket
25622 # must be given before -lnsl if both are needed. We assume that
25623 # if connect needs -lnsl, so does gethostbyname.
25624 echo "$as_me:$LINENO: checking for connect" >&5
25625echo $ECHO_N "checking for connect... $ECHO_C" >&6
25626if test "${ac_cv_func_connect+set}" = set; then
25627 echo $ECHO_N "(cached) $ECHO_C" >&6
25628else
25629 cat >conftest.$ac_ext <<_ACEOF
25630/* confdefs.h. */
25631_ACEOF
25632cat confdefs.h >>conftest.$ac_ext
25633cat >>conftest.$ac_ext <<_ACEOF
25634/* end confdefs.h. */
ac1cb8d3
VS
25635/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25637#define connect innocuous_connect
25638
a848cd7e
SC
25639/* System header to define __stub macros and hopefully few prototypes,
25640 which can conflict with char connect (); below.
25641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25642 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25643
a848cd7e
SC
25644#ifdef __STDC__
25645# include <limits.h>
25646#else
25647# include <assert.h>
25648#endif
ac1cb8d3
VS
25649
25650#undef connect
25651
a848cd7e
SC
25652/* Override any gcc2 internal prototype to avoid an error. */
25653#ifdef __cplusplus
25654extern "C"
25655{
25656#endif
25657/* We use char because int might match the return type of a gcc2
25658 builtin and then its argument prototype would still apply. */
25659char connect ();
25660/* The GNU C library defines this for functions which it implements
25661 to always fail with ENOSYS. Some functions are actually named
25662 something starting with __ and the normal name is an alias. */
25663#if defined (__stub_connect) || defined (__stub___connect)
25664choke me
25665#else
25666char (*f) () = connect;
25667#endif
25668#ifdef __cplusplus
25669}
25670#endif
25671
25672int
25673main ()
25674{
25675return f != connect;
25676 ;
25677 return 0;
25678}
25679_ACEOF
25680rm -f conftest.$ac_objext conftest$ac_exeext
25681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25682 (eval $ac_link) 2>conftest.er1
a848cd7e 25683 ac_status=$?
ac1cb8d3
VS
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
a848cd7e
SC
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } &&
89be85c2
VS
25689 { ac_try='test -z "$ac_c_werror_flag"
25690 || test ! -s conftest.err'
ac1cb8d3
VS
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; } &&
25696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 ac_cv_func_connect=yes
25703else
25704 echo "$as_me: failed program was:" >&5
25705sed 's/^/| /' conftest.$ac_ext >&5
25706
25707ac_cv_func_connect=no
25708fi
ac1cb8d3
VS
25709rm -f conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25711fi
25712echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25713echo "${ECHO_T}$ac_cv_func_connect" >&6
25714
25715 if test $ac_cv_func_connect = no; then
25716 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25717echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25718if test "${ac_cv_lib_socket_connect+set}" = set; then
25719 echo $ECHO_N "(cached) $ECHO_C" >&6
25720else
25721 ac_check_lib_save_LIBS=$LIBS
25722LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25723cat >conftest.$ac_ext <<_ACEOF
25724/* confdefs.h. */
25725_ACEOF
25726cat confdefs.h >>conftest.$ac_ext
25727cat >>conftest.$ac_ext <<_ACEOF
25728/* end confdefs.h. */
25729
25730/* Override any gcc2 internal prototype to avoid an error. */
25731#ifdef __cplusplus
25732extern "C"
25733#endif
25734/* We use char because int might match the return type of a gcc2
25735 builtin and then its argument prototype would still apply. */
25736char connect ();
25737int
25738main ()
25739{
25740connect ();
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext conftest$ac_exeext
25746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25747 (eval $ac_link) 2>conftest.er1
a848cd7e 25748 ac_status=$?
ac1cb8d3
VS
25749 grep -v '^ *+' conftest.er1 >conftest.err
25750 rm -f conftest.er1
25751 cat conftest.err >&5
a848cd7e
SC
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } &&
89be85c2
VS
25754 { ac_try='test -z "$ac_c_werror_flag"
25755 || test ! -s conftest.err'
ac1cb8d3
VS
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; } &&
25761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763 (eval $ac_try) 2>&5
25764 ac_status=$?
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); }; }; then
25767 ac_cv_lib_socket_connect=yes
25768else
25769 echo "$as_me: failed program was:" >&5
25770sed 's/^/| /' conftest.$ac_ext >&5
25771
25772ac_cv_lib_socket_connect=no
25773fi
ac1cb8d3
VS
25774rm -f conftest.err conftest.$ac_objext \
25775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25776LIBS=$ac_check_lib_save_LIBS
25777fi
25778echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25779echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25780if test $ac_cv_lib_socket_connect = yes; then
25781 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25782fi
25783
25784 fi
25785
25786 # Guillermo Gomez says -lposix is necessary on A/UX.
25787 echo "$as_me:$LINENO: checking for remove" >&5
25788echo $ECHO_N "checking for remove... $ECHO_C" >&6
25789if test "${ac_cv_func_remove+set}" = set; then
25790 echo $ECHO_N "(cached) $ECHO_C" >&6
25791else
25792 cat >conftest.$ac_ext <<_ACEOF
25793/* confdefs.h. */
25794_ACEOF
25795cat confdefs.h >>conftest.$ac_ext
25796cat >>conftest.$ac_ext <<_ACEOF
25797/* end confdefs.h. */
ac1cb8d3
VS
25798/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25800#define remove innocuous_remove
25801
a848cd7e
SC
25802/* System header to define __stub macros and hopefully few prototypes,
25803 which can conflict with char remove (); below.
25804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25805 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25806
a848cd7e
SC
25807#ifdef __STDC__
25808# include <limits.h>
25809#else
25810# include <assert.h>
25811#endif
ac1cb8d3
VS
25812
25813#undef remove
25814
a848cd7e
SC
25815/* Override any gcc2 internal prototype to avoid an error. */
25816#ifdef __cplusplus
25817extern "C"
25818{
25819#endif
25820/* We use char because int might match the return type of a gcc2
25821 builtin and then its argument prototype would still apply. */
25822char remove ();
25823/* The GNU C library defines this for functions which it implements
25824 to always fail with ENOSYS. Some functions are actually named
25825 something starting with __ and the normal name is an alias. */
25826#if defined (__stub_remove) || defined (__stub___remove)
25827choke me
25828#else
25829char (*f) () = remove;
25830#endif
25831#ifdef __cplusplus
25832}
25833#endif
25834
25835int
25836main ()
25837{
25838return f != remove;
25839 ;
25840 return 0;
25841}
25842_ACEOF
25843rm -f conftest.$ac_objext conftest$ac_exeext
25844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25845 (eval $ac_link) 2>conftest.er1
a848cd7e 25846 ac_status=$?
ac1cb8d3
VS
25847 grep -v '^ *+' conftest.er1 >conftest.err
25848 rm -f conftest.er1
25849 cat conftest.err >&5
a848cd7e
SC
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
89be85c2
VS
25852 { ac_try='test -z "$ac_c_werror_flag"
25853 || test ! -s conftest.err'
ac1cb8d3
VS
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
25859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865 ac_cv_func_remove=yes
25866else
25867 echo "$as_me: failed program was:" >&5
25868sed 's/^/| /' conftest.$ac_ext >&5
25869
25870ac_cv_func_remove=no
25871fi
ac1cb8d3
VS
25872rm -f conftest.err conftest.$ac_objext \
25873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25874fi
25875echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25876echo "${ECHO_T}$ac_cv_func_remove" >&6
25877
25878 if test $ac_cv_func_remove = no; then
25879 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25880echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25881if test "${ac_cv_lib_posix_remove+set}" = set; then
25882 echo $ECHO_N "(cached) $ECHO_C" >&6
25883else
25884 ac_check_lib_save_LIBS=$LIBS
25885LIBS="-lposix $LIBS"
25886cat >conftest.$ac_ext <<_ACEOF
25887/* confdefs.h. */
25888_ACEOF
25889cat confdefs.h >>conftest.$ac_ext
25890cat >>conftest.$ac_ext <<_ACEOF
25891/* end confdefs.h. */
25892
25893/* Override any gcc2 internal prototype to avoid an error. */
25894#ifdef __cplusplus
25895extern "C"
25896#endif
25897/* We use char because int might match the return type of a gcc2
25898 builtin and then its argument prototype would still apply. */
25899char remove ();
25900int
25901main ()
25902{
25903remove ();
25904 ;
25905 return 0;
25906}
25907_ACEOF
25908rm -f conftest.$ac_objext conftest$ac_exeext
25909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25910 (eval $ac_link) 2>conftest.er1
a848cd7e 25911 ac_status=$?
ac1cb8d3
VS
25912 grep -v '^ *+' conftest.er1 >conftest.err
25913 rm -f conftest.er1
25914 cat conftest.err >&5
a848cd7e
SC
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } &&
89be85c2
VS
25917 { ac_try='test -z "$ac_c_werror_flag"
25918 || test ! -s conftest.err'
ac1cb8d3
VS
25919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920 (eval $ac_try) 2>&5
25921 ac_status=$?
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); }; } &&
25924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926 (eval $ac_try) 2>&5
25927 ac_status=$?
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); }; }; then
25930 ac_cv_lib_posix_remove=yes
25931else
25932 echo "$as_me: failed program was:" >&5
25933sed 's/^/| /' conftest.$ac_ext >&5
25934
25935ac_cv_lib_posix_remove=no
25936fi
ac1cb8d3
VS
25937rm -f conftest.err conftest.$ac_objext \
25938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25939LIBS=$ac_check_lib_save_LIBS
25940fi
25941echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25942echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25943if test $ac_cv_lib_posix_remove = yes; then
25944 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25945fi
25946
25947 fi
25948
25949 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25950 echo "$as_me:$LINENO: checking for shmat" >&5
25951echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25952if test "${ac_cv_func_shmat+set}" = set; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25954else
25955 cat >conftest.$ac_ext <<_ACEOF
25956/* confdefs.h. */
25957_ACEOF
25958cat confdefs.h >>conftest.$ac_ext
25959cat >>conftest.$ac_ext <<_ACEOF
25960/* end confdefs.h. */
ac1cb8d3
VS
25961/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25963#define shmat innocuous_shmat
25964
a848cd7e
SC
25965/* System header to define __stub macros and hopefully few prototypes,
25966 which can conflict with char shmat (); below.
25967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25968 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25969
a848cd7e
SC
25970#ifdef __STDC__
25971# include <limits.h>
25972#else
25973# include <assert.h>
25974#endif
ac1cb8d3
VS
25975
25976#undef shmat
25977
a848cd7e
SC
25978/* Override any gcc2 internal prototype to avoid an error. */
25979#ifdef __cplusplus
25980extern "C"
25981{
25982#endif
25983/* We use char because int might match the return type of a gcc2
25984 builtin and then its argument prototype would still apply. */
25985char shmat ();
25986/* The GNU C library defines this for functions which it implements
25987 to always fail with ENOSYS. Some functions are actually named
25988 something starting with __ and the normal name is an alias. */
25989#if defined (__stub_shmat) || defined (__stub___shmat)
25990choke me
25991#else
25992char (*f) () = shmat;
25993#endif
25994#ifdef __cplusplus
25995}
25996#endif
25997
25998int
25999main ()
26000{
26001return f != shmat;
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); } &&
89be85c2
VS
26015 { ac_try='test -z "$ac_c_werror_flag"
26016 || test ! -s conftest.err'
ac1cb8d3
VS
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; } &&
26022 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; }; then
26028 ac_cv_func_shmat=yes
26029else
26030 echo "$as_me: failed program was:" >&5
26031sed 's/^/| /' conftest.$ac_ext >&5
26032
26033ac_cv_func_shmat=no
26034fi
ac1cb8d3
VS
26035rm -f conftest.err conftest.$ac_objext \
26036 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26037fi
26038echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26039echo "${ECHO_T}$ac_cv_func_shmat" >&6
26040
26041 if test $ac_cv_func_shmat = no; then
26042 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26043echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26044if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26046else
26047 ac_check_lib_save_LIBS=$LIBS
26048LIBS="-lipc $LIBS"
26049cat >conftest.$ac_ext <<_ACEOF
26050/* confdefs.h. */
26051_ACEOF
26052cat confdefs.h >>conftest.$ac_ext
26053cat >>conftest.$ac_ext <<_ACEOF
26054/* end confdefs.h. */
26055
26056/* Override any gcc2 internal prototype to avoid an error. */
26057#ifdef __cplusplus
26058extern "C"
26059#endif
26060/* We use char because int might match the return type of a gcc2
26061 builtin and then its argument prototype would still apply. */
26062char shmat ();
26063int
26064main ()
26065{
26066shmat ();
26067 ;
26068 return 0;
26069}
26070_ACEOF
26071rm -f conftest.$ac_objext conftest$ac_exeext
26072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26073 (eval $ac_link) 2>conftest.er1
a848cd7e 26074 ac_status=$?
ac1cb8d3
VS
26075 grep -v '^ *+' conftest.er1 >conftest.err
26076 rm -f conftest.er1
26077 cat conftest.err >&5
a848cd7e
SC
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
89be85c2
VS
26080 { ac_try='test -z "$ac_c_werror_flag"
26081 || test ! -s conftest.err'
ac1cb8d3
VS
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26084 ac_status=$?
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; } &&
26087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; }; then
26093 ac_cv_lib_ipc_shmat=yes
26094else
26095 echo "$as_me: failed program was:" >&5
26096sed 's/^/| /' conftest.$ac_ext >&5
26097
26098ac_cv_lib_ipc_shmat=no
26099fi
ac1cb8d3
VS
26100rm -f conftest.err conftest.$ac_objext \
26101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26102LIBS=$ac_check_lib_save_LIBS
26103fi
26104echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26105echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26106if test $ac_cv_lib_ipc_shmat = yes; then
26107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26108fi
26109
26110 fi
26111 fi
26112
26113 # Check for libraries that X11R6 Xt/Xaw programs need.
26114 ac_save_LDFLAGS=$LDFLAGS
26115 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26116 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26117 # check for ICE first), but we must link in the order -lSM -lICE or
26118 # we get undefined symbols. So assume we have SM if we have ICE.
26119 # These have to be linked with before -lX11, unlike the other
26120 # libraries we check for below, so use a different variable.
26121 # John Interrante, Karl Berry
26122 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26123echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26124if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26125 echo $ECHO_N "(cached) $ECHO_C" >&6
26126else
26127 ac_check_lib_save_LIBS=$LIBS
26128LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26129cat >conftest.$ac_ext <<_ACEOF
26130/* confdefs.h. */
26131_ACEOF
26132cat confdefs.h >>conftest.$ac_ext
26133cat >>conftest.$ac_ext <<_ACEOF
26134/* end confdefs.h. */
26135
26136/* Override any gcc2 internal prototype to avoid an error. */
26137#ifdef __cplusplus
26138extern "C"
26139#endif
26140/* We use char because int might match the return type of a gcc2
26141 builtin and then its argument prototype would still apply. */
26142char IceConnectionNumber ();
26143int
26144main ()
26145{
26146IceConnectionNumber ();
26147 ;
26148 return 0;
26149}
26150_ACEOF
26151rm -f conftest.$ac_objext conftest$ac_exeext
26152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26153 (eval $ac_link) 2>conftest.er1
a848cd7e 26154 ac_status=$?
ac1cb8d3
VS
26155 grep -v '^ *+' conftest.er1 >conftest.err
26156 rm -f conftest.er1
26157 cat conftest.err >&5
a848cd7e
SC
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); } &&
89be85c2
VS
26160 { ac_try='test -z "$ac_c_werror_flag"
26161 || test ! -s conftest.err'
ac1cb8d3
VS
26162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163 (eval $ac_try) 2>&5
26164 ac_status=$?
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); }; } &&
26167 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26169 (eval $ac_try) 2>&5
26170 ac_status=$?
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); }; }; then
26173 ac_cv_lib_ICE_IceConnectionNumber=yes
26174else
26175 echo "$as_me: failed program was:" >&5
26176sed 's/^/| /' conftest.$ac_ext >&5
26177
26178ac_cv_lib_ICE_IceConnectionNumber=no
26179fi
ac1cb8d3
VS
26180rm -f conftest.err conftest.$ac_objext \
26181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26182LIBS=$ac_check_lib_save_LIBS
26183fi
26184echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26185echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26186if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26187 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26188fi
26189
26190 LDFLAGS=$ac_save_LDFLAGS
26191
26192fi
26193
26194
26195 if test "$no_x" = "yes"; then
26196 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26197echo "$as_me: error: X11 not found" >&2;}
26198 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26199 fi
26200
74b84332
VS
26201 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26202 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26203 AFMINSTALL=afminstall
26204 COMPILED_X_PROGRAM=0
26205
74b84332
VS
26206 fi
26207
26208 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26209 if test "$wxUSE_NANOX" = "yes"; then
26210 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
26211echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
26212 if test "x$MICROWIN" = x ; then
26213 echo "$as_me:$LINENO: result: not found" >&5
26214echo "${ECHO_T}not found" >&6
26215 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
26216echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
26217 { (exit 1); exit 1; }; }
26218 else
26219 echo "$as_me:$LINENO: result: $MICROWIN" >&5
26220echo "${ECHO_T}$MICROWIN" >&6
26221 cat >>confdefs.h <<\_ACEOF
26222#define wxUSE_NANOX 1
26223_ACEOF
26224
26225 fi
26226 fi
26227
26228 if test "$wxUSE_UNICODE" = "yes"; then
26229
26230 succeeded=no
26231
26232 if test -z "$PKG_CONFIG"; then
26233 # Extract the first word of "pkg-config", so it can be a program name with args.
26234set dummy pkg-config; ac_word=$2
26235echo "$as_me:$LINENO: checking for $ac_word" >&5
26236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26237if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26238 echo $ECHO_N "(cached) $ECHO_C" >&6
26239else
26240 case $PKG_CONFIG in
26241 [\\/]* | ?:[\\/]*)
26242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26243 ;;
26244 *)
26245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26246for as_dir in $PATH
26247do
26248 IFS=$as_save_IFS
26249 test -z "$as_dir" && as_dir=.
26250 for ac_exec_ext in '' $ac_executable_extensions; do
26251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26252 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26254 break 2
26255 fi
26256done
26257done
26258
26259 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26260 ;;
26261esac
26262fi
26263PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26264
26265if test -n "$PKG_CONFIG"; then
26266 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26267echo "${ECHO_T}$PKG_CONFIG" >&6
26268else
26269 echo "$as_me:$LINENO: result: no" >&5
26270echo "${ECHO_T}no" >&6
26271fi
26272
26273 fi
26274
26275 if test "$PKG_CONFIG" = "no" ; then
26276 echo "*** The pkg-config script could not be found. Make sure it is"
26277 echo "*** in your path, or set the PKG_CONFIG environment variable"
26278 echo "*** to the full path to pkg-config."
26279 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26280 else
26281 PKG_CONFIG_MIN_VERSION=0.9.0
26282 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26283 echo "$as_me:$LINENO: checking for pangox" >&5
26284echo $ECHO_N "checking for pangox... $ECHO_C" >&6
26285
26286 if $PKG_CONFIG --exists "pangox" ; then
26287 echo "$as_me:$LINENO: result: yes" >&5
26288echo "${ECHO_T}yes" >&6
26289 succeeded=yes
26290
26291 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
26292echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
26293 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
26294 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
26295echo "${ECHO_T}$PANGOX_CFLAGS" >&6
26296
26297 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
26298echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
26299 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
26300 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
26301echo "${ECHO_T}$PANGOX_LIBS" >&6
26302 else
26303 PANGOX_CFLAGS=""
26304 PANGOX_LIBS=""
26305 ## If we have a custom action on failure, don't print errors, but
26306 ## do set a variable so people can do so.
26307 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
26308
26309 fi
26310
26311
26312
26313 else
26314 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26315 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26316 fi
26317 fi
26318
26319 if test $succeeded = yes; then
26320
26321 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
26322 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26323
26324 else
26325
26326 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26327echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26328 { (exit 1); exit 1; }; }
26329
26330
26331 fi
26332
26333
26334 succeeded=no
26335
26336 if test -z "$PKG_CONFIG"; then
26337 # Extract the first word of "pkg-config", so it can be a program name with args.
26338set dummy pkg-config; ac_word=$2
26339echo "$as_me:$LINENO: checking for $ac_word" >&5
26340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26341if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26342 echo $ECHO_N "(cached) $ECHO_C" >&6
26343else
26344 case $PKG_CONFIG in
26345 [\\/]* | ?:[\\/]*)
26346 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26347 ;;
26348 *)
26349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26350for as_dir in $PATH
26351do
26352 IFS=$as_save_IFS
26353 test -z "$as_dir" && as_dir=.
26354 for ac_exec_ext in '' $ac_executable_extensions; do
26355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26356 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26358 break 2
26359 fi
26360done
26361done
26362
26363 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26364 ;;
26365esac
26366fi
26367PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26368
26369if test -n "$PKG_CONFIG"; then
26370 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26371echo "${ECHO_T}$PKG_CONFIG" >&6
26372else
26373 echo "$as_me:$LINENO: result: no" >&5
26374echo "${ECHO_T}no" >&6
26375fi
26376
26377 fi
26378
26379 if test "$PKG_CONFIG" = "no" ; then
26380 echo "*** The pkg-config script could not be found. Make sure it is"
26381 echo "*** in your path, or set the PKG_CONFIG environment variable"
26382 echo "*** to the full path to pkg-config."
26383 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26384 else
26385 PKG_CONFIG_MIN_VERSION=0.9.0
26386 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26387 echo "$as_me:$LINENO: checking for pangoft2" >&5
26388echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26389
26390 if $PKG_CONFIG --exists "pangoft2" ; then
26391 echo "$as_me:$LINENO: result: yes" >&5
26392echo "${ECHO_T}yes" >&6
26393 succeeded=yes
26394
26395 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26396echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26397 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26398 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26399echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26400
26401 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26402echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26403 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26404 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26405echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26406 else
26407 PANGOFT2_CFLAGS=""
26408 PANGOFT2_LIBS=""
26409 ## If we have a custom action on failure, don't print errors, but
26410 ## do set a variable so people can do so.
26411 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26412
26413 fi
26414
26415
26416
26417 else
26418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26420 fi
26421 fi
26422
26423 if test $succeeded = yes; then
26424
26425 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26426 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26427
26428 else
26429
26430 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26431echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26432 wxUSE_PRINTING_ARCHITECTURE="no"
26433
26434
26435 fi
26436
26437
26438 succeeded=no
26439
26440 if test -z "$PKG_CONFIG"; then
26441 # Extract the first word of "pkg-config", so it can be a program name with args.
26442set dummy pkg-config; ac_word=$2
26443echo "$as_me:$LINENO: checking for $ac_word" >&5
26444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26445if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26447else
26448 case $PKG_CONFIG in
26449 [\\/]* | ?:[\\/]*)
26450 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26451 ;;
26452 *)
26453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26454for as_dir in $PATH
26455do
26456 IFS=$as_save_IFS
26457 test -z "$as_dir" && as_dir=.
26458 for ac_exec_ext in '' $ac_executable_extensions; do
26459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26460 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26462 break 2
26463 fi
26464done
26465done
26466
26467 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26468 ;;
26469esac
26470fi
26471PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26472
26473if test -n "$PKG_CONFIG"; then
26474 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26475echo "${ECHO_T}$PKG_CONFIG" >&6
26476else
26477 echo "$as_me:$LINENO: result: no" >&5
26478echo "${ECHO_T}no" >&6
26479fi
26480
26481 fi
26482
26483 if test "$PKG_CONFIG" = "no" ; then
26484 echo "*** The pkg-config script could not be found. Make sure it is"
26485 echo "*** in your path, or set the PKG_CONFIG environment variable"
26486 echo "*** to the full path to pkg-config."
26487 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26488 else
26489 PKG_CONFIG_MIN_VERSION=0.9.0
26490 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26491 echo "$as_me:$LINENO: checking for pangoxft" >&5
26492echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26493
26494 if $PKG_CONFIG --exists "pangoxft" ; then
26495 echo "$as_me:$LINENO: result: yes" >&5
26496echo "${ECHO_T}yes" >&6
26497 succeeded=yes
26498
26499 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26500echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26501 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26502 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26503echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26504
26505 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26506echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26507 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26508 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26509echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26510 else
26511 PANGOXFT_CFLAGS=""
26512 PANGOXFT_LIBS=""
26513 ## If we have a custom action on failure, don't print errors, but
26514 ## do set a variable so people can do so.
26515 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26516
26517 fi
26518
26519
26520
26521 else
26522 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26523 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26524 fi
26525 fi
26526
26527 if test $succeeded = yes; then
26528
4ae1af05
MB
26529 cat >>confdefs.h <<\_ACEOF
26530#define HAVE_PANGO_XFT 1
26531_ACEOF
26532
a848cd7e
SC
26533 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26534 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26535
26536 else
26537
26538 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26539echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26540
26541
26542 fi
26543
304205f1
VS
26544 save_CFLAGS="$CFLAGS"
26545 save_LIBS="$LIBS"
26546 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26547 LIBS="$LIBS $PANGOX_LIBS"
26548
26549for ac_func in pango_font_family_is_monospace
26550do
26551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26552echo "$as_me:$LINENO: checking for $ac_func" >&5
26553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26554if eval "test \"\${$as_ac_var+set}\" = set"; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26556else
26557 cat >conftest.$ac_ext <<_ACEOF
26558/* confdefs.h. */
26559_ACEOF
26560cat confdefs.h >>conftest.$ac_ext
26561cat >>conftest.$ac_ext <<_ACEOF
26562/* end confdefs.h. */
26563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26565#define $ac_func innocuous_$ac_func
26566
26567/* System header to define __stub macros and hopefully few prototypes,
26568 which can conflict with char $ac_func (); below.
26569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26570 <limits.h> exists even on freestanding compilers. */
26571
26572#ifdef __STDC__
26573# include <limits.h>
26574#else
26575# include <assert.h>
26576#endif
26577
26578#undef $ac_func
26579
26580/* Override any gcc2 internal prototype to avoid an error. */
26581#ifdef __cplusplus
26582extern "C"
26583{
26584#endif
26585/* We use char because int might match the return type of a gcc2
26586 builtin and then its argument prototype would still apply. */
26587char $ac_func ();
26588/* The GNU C library defines this for functions which it implements
26589 to always fail with ENOSYS. Some functions are actually named
26590 something starting with __ and the normal name is an alias. */
26591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26592choke me
26593#else
26594char (*f) () = $ac_func;
26595#endif
26596#ifdef __cplusplus
26597}
26598#endif
26599
26600int
26601main ()
26602{
26603return f != $ac_func;
26604 ;
26605 return 0;
26606}
26607_ACEOF
26608rm -f conftest.$ac_objext conftest$ac_exeext
26609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26610 (eval $ac_link) 2>conftest.er1
26611 ac_status=$?
26612 grep -v '^ *+' conftest.er1 >conftest.err
26613 rm -f conftest.er1
26614 cat conftest.err >&5
26615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); } &&
89be85c2
VS
26617 { ac_try='test -z "$ac_c_werror_flag"
26618 || test ! -s conftest.err'
304205f1
VS
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); }; } &&
26624 { ac_try='test -s conftest$ac_exeext'
26625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626 (eval $ac_try) 2>&5
26627 ac_status=$?
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; }; then
26630 eval "$as_ac_var=yes"
26631else
26632 echo "$as_me: failed program was:" >&5
26633sed 's/^/| /' conftest.$ac_ext >&5
26634
26635eval "$as_ac_var=no"
26636fi
26637rm -f conftest.err conftest.$ac_objext \
26638 conftest$ac_exeext conftest.$ac_ext
26639fi
26640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26642if test `eval echo '${'$as_ac_var'}'` = yes; then
26643 cat >>confdefs.h <<_ACEOF
26644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26645_ACEOF
26646
26647fi
26648done
26649
26650 CFLAGS="$save_CFLAGS"
26651 LIBS="$save_LIBS"
a848cd7e
SC
26652 fi
26653
26654 wxUSE_UNIVERSAL="yes"
26655
26656 if test "$wxUSE_NANOX" = "yes"; then
26657 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26658 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"
26659 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26660 else
26661 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26662 fi
26663
a848cd7e
SC
26664 TOOLKIT=X11
26665 GUIDIST=X11_DIST
26666 fi
26667
26668 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26669 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26670echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26671
74b84332
VS
26672ac_find_includes=
26673for ac_dir in $SEARCH_INCLUDE /usr/include;
26674 do
26675 if test -f "$ac_dir/Xm/Xm.h"; then
26676 ac_find_includes=$ac_dir
26677 break
26678 fi
26679 done
a848cd7e 26680
74b84332
VS
26681 if test "$ac_find_includes" != "" ; then
26682 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26683echo "${ECHO_T}found in $ac_find_includes" >&6
26684
26685 if test "x$ac_find_includes" = "x/usr/include"; then
26686 ac_path_to_include=""
26687 else
26688 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26689 result=$?
26690 if test $result = 0; then
26691 ac_path_to_include=""
26692 else
26693 ac_path_to_include=" -I$ac_find_includes"
26694 fi
a848cd7e
SC
26695 fi
26696
74b84332
VS
26697 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26698 else
26699 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26700/* confdefs.h. */
26701_ACEOF
26702cat confdefs.h >>conftest.$ac_ext
26703cat >>conftest.$ac_ext <<_ACEOF
26704/* end confdefs.h. */
26705
74b84332
VS
26706 #include <Xm/Xm.h>
26707
a848cd7e
SC
26708int
26709main ()
26710{
26711
74b84332
VS
26712 int version;
26713 version = xmUseVersion;
26714
a848cd7e
SC
26715 ;
26716 return 0;
26717}
26718_ACEOF
74b84332
VS
26719rm -f conftest.$ac_objext
26720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26721 (eval $ac_compile) 2>conftest.er1
a848cd7e 26722 ac_status=$?
ac1cb8d3
VS
26723 grep -v '^ *+' conftest.er1 >conftest.err
26724 rm -f conftest.er1
26725 cat conftest.err >&5
a848cd7e
SC
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); } &&
89be85c2
VS
26728 { ac_try='test -z "$ac_c_werror_flag"
26729 || test ! -s conftest.err'
ac1cb8d3
VS
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; } &&
74b84332 26735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26738 ac_status=$?
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; }; then
74b84332
VS
26741
26742 echo "$as_me:$LINENO: result: found in default search path" >&5
26743echo "${ECHO_T}found in default search path" >&6
26744 COMPILED_X_PROGRAM=1
26745
a848cd7e
SC
26746else
26747 echo "$as_me: failed program was:" >&5
26748sed 's/^/| /' conftest.$ac_ext >&5
26749
a848cd7e 26750
74b84332
VS
26751 echo "$as_me:$LINENO: result: no" >&5
26752echo "${ECHO_T}no" >&6
26753 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26754echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26755 { (exit 1); exit 1; }; }
a848cd7e 26756
a848cd7e 26757
a848cd7e 26758fi
74b84332
VS
26759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26760 fi
26761
26762 if test "$COMPILED_X_PROGRAM" = 0; then
26763 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26764echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26765
26766ac_find_libraries=
26767for ac_dir in $SEARCH_LIB /usr/lib;
26768 do
26769 for ac_extension in a so sl dylib; do
26770 if test -f "$ac_dir/libXm.$ac_extension"; then
26771 ac_find_libraries=$ac_dir
26772 break 2
a848cd7e 26773 fi
74b84332
VS
26774 done
26775 done
a848cd7e 26776
74b84332
VS
26777 if test "$ac_find_libraries" != "" ; then
26778 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26779echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26780
74b84332
VS
26781
26782 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26783 result=$?
26784 if test $result = 0; then
26785 ac_path_to_link=""
a848cd7e 26786 else
74b84332
VS
26787 ac_path_to_link=" -L$ac_find_libraries"
26788 fi
26789
26790 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26791 else
26792 save_CFLAGS=$CFLAGS
26793 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26794
26795 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26796/* confdefs.h. */
26797_ACEOF
26798cat confdefs.h >>conftest.$ac_ext
26799cat >>conftest.$ac_ext <<_ACEOF
26800/* end confdefs.h. */
26801
74b84332
VS
26802 #include <Xm/Xm.h>
26803
a848cd7e
SC
26804int
26805main ()
26806{
74b84332
VS
26807
26808 int version;
26809 version = xmUseVersion;
26810
a848cd7e
SC
26811 ;
26812 return 0;
26813}
26814_ACEOF
74b84332
VS
26815rm -f conftest.$ac_objext
26816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26817 (eval $ac_compile) 2>conftest.er1
a848cd7e 26818 ac_status=$?
ac1cb8d3
VS
26819 grep -v '^ *+' conftest.er1 >conftest.err
26820 rm -f conftest.er1
26821 cat conftest.err >&5
a848cd7e
SC
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } &&
89be85c2
VS
26824 { ac_try='test -z "$ac_c_werror_flag"
26825 || test ! -s conftest.err'
ac1cb8d3
VS
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; } &&
74b84332 26831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
74b84332
VS
26837
26838 echo "$as_me:$LINENO: result: found in default search path" >&5
26839echo "${ECHO_T}found in default search path" >&6
26840 COMPILED_X_PROGRAM=1
26841
a848cd7e
SC
26842else
26843 echo "$as_me: failed program was:" >&5
26844sed 's/^/| /' conftest.$ac_ext >&5
26845
74b84332
VS
26846
26847 echo "$as_me:$LINENO: result: no" >&5
26848echo "${ECHO_T}no" >&6
26849 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26850echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26851 { (exit 1); exit 1; }; }
26852
26853
26854fi
26855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26856
26857 CFLAGS=$save_CFLAGS
26858 fi
26859 fi
26860
26861 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26862echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26863 libp_link=""
26864 libsm_ice_link=""
26865 libs_found=0
26866 for libp in "" " -lXp"; do
26867 if test "$libs_found" = "0"; then
26868 for libsm_ice in "" " -lSM -lICE"; do
26869 if test "$libs_found" = "0"; then
26870 save_LIBS="$LIBS"
26871 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26872 save_CFLAGS=$CFLAGS
26873 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26874
26875 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26876/* confdefs.h. */
26877_ACEOF
26878cat confdefs.h >>conftest.$ac_ext
26879cat >>conftest.$ac_ext <<_ACEOF
26880/* end confdefs.h. */
26881
74b84332
VS
26882 #include <Xm/Xm.h>
26883 #include <Xm/List.h>
26884
a848cd7e
SC
26885int
26886main ()
26887{
74b84332
VS
26888
26889 XmString string = NULL;
26890 Widget w = NULL;
26891 int position = 0;
26892 XmListAddItem(w, string, position);
26893
a848cd7e
SC
26894 ;
26895 return 0;
26896}
26897_ACEOF
26898rm -f conftest.$ac_objext conftest$ac_exeext
26899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26900 (eval $ac_link) 2>conftest.er1
a848cd7e 26901 ac_status=$?
ac1cb8d3
VS
26902 grep -v '^ *+' conftest.er1 >conftest.err
26903 rm -f conftest.er1
26904 cat conftest.err >&5
a848cd7e
SC
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } &&
89be85c2
VS
26907 { ac_try='test -z "$ac_c_werror_flag"
26908 || test ! -s conftest.err'
ac1cb8d3
VS
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; } &&
26914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; }; then
26920
26921 libp_link="$libp"
26922 libsm_ice_link="$libsm_ice"
26923 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26924echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26925 libs_found=1
26926
26927else
26928 echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931
26932
26933fi
ac1cb8d3
VS
26934rm -f conftest.err conftest.$ac_objext \
26935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26936
26937 LIBS="$save_LIBS"
26938 CFLAGS=$save_CFLAGS
26939 fi
26940 done
26941 fi
26942 done
26943
26944 if test "$libs_found" = "0"; then
26945 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26946echo "${ECHO_T}can't find the right libraries" >&6
26947 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26948echo "$as_me: error: can't link a simple motif program" >&2;}
26949 { (exit 1); exit 1; }; }
26950 fi
26951
26952 save_CFLAGS=$CFLAGS
26953 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26954 echo "$as_me:$LINENO: checking for Motif 2" >&5
26955echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26956 cat >conftest.$ac_ext <<_ACEOF
26957/* confdefs.h. */
26958_ACEOF
26959cat confdefs.h >>conftest.$ac_ext
26960cat >>conftest.$ac_ext <<_ACEOF
26961/* end confdefs.h. */
26962
26963 #include <Xm/Xm.h>
26964
26965int
26966main ()
26967{
26968
26969 #if XmVersion < 2000
26970 #error "Not Motif 2"
26971 #endif
26972
26973 ;
26974 return 0;
26975}
26976_ACEOF
26977rm -f conftest.$ac_objext
26978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26979 (eval $ac_compile) 2>conftest.er1
a848cd7e 26980 ac_status=$?
ac1cb8d3
VS
26981 grep -v '^ *+' conftest.er1 >conftest.err
26982 rm -f conftest.er1
26983 cat conftest.err >&5
a848cd7e
SC
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
89be85c2
VS
26986 { ac_try='test -z "$ac_c_werror_flag"
26987 || test ! -s conftest.err'
ac1cb8d3
VS
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; } &&
26993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; }; then
26999
27000 cat >>confdefs.h <<\_ACEOF
27001#define __WXMOTIF20__ 1
27002_ACEOF
27003
27004 echo "$as_me:$LINENO: result: found" >&5
27005echo "${ECHO_T}found" >&6
27006
27007else
27008 echo "$as_me: failed program was:" >&5
27009sed 's/^/| /' conftest.$ac_ext >&5
27010
27011
27012 cat >>confdefs.h <<\_ACEOF
27013#define __WXMOTIF20__ 0
27014_ACEOF
27015
27016 echo "$as_me:$LINENO: result: not found" >&5
27017echo "${ECHO_T}not found" >&6
27018
27019fi
ac1cb8d3 27020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27021 CFLAGS=$save_CFLAGS
27022
27023 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27024 TOOLKIT=MOTIF
27025 GUIDIST=MOTIF_DIST
27026 fi
27027
74b84332 27028 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27029 if test "$wxUSE_LIBXPM" = "sys"; then
27030 echo "$as_me:$LINENO: checking for Xpm library" >&5
27031echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27032
27033ac_find_libraries=
27034for ac_dir in $SEARCH_LIB /usr/lib;
27035 do
27036 for ac_extension in a so sl dylib; do
27037 if test -f "$ac_dir/libXpm.$ac_extension"; then
27038 ac_find_libraries=$ac_dir
27039 break 2
27040 fi
27041 done
27042 done
27043
27044 if test "$ac_find_libraries" != "" ; then
27045
27046 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27047 result=$?
27048 if test $result = 0; then
27049 ac_path_to_link=""
27050 else
27051 ac_path_to_link=" -L$ac_find_libraries"
27052 fi
27053
27054 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27055 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27056echo "${ECHO_T}found at $ac_find_libraries" >&6
27057
27058 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27059echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27060if test "${wx_cv_x11_xpm_h+set}" = set; then
27061 echo $ECHO_N "(cached) $ECHO_C" >&6
27062else
27063
27064 save_CFLAGS=$CFLAGS
27065 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27066
27067 cat >conftest.$ac_ext <<_ACEOF
27068/* confdefs.h. */
27069_ACEOF
27070cat confdefs.h >>conftest.$ac_ext
27071cat >>conftest.$ac_ext <<_ACEOF
27072/* end confdefs.h. */
27073
27074 #include <X11/xpm.h>
27075
27076int
27077main ()
27078{
27079
27080 int version;
27081 version = XpmLibraryVersion();
27082
27083 ;
27084 return 0;
27085}
27086_ACEOF
27087rm -f conftest.$ac_objext
27088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27089 (eval $ac_compile) 2>conftest.er1
a848cd7e 27090 ac_status=$?
ac1cb8d3
VS
27091 grep -v '^ *+' conftest.er1 >conftest.err
27092 rm -f conftest.er1
27093 cat conftest.err >&5
a848cd7e
SC
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } &&
89be85c2
VS
27096 { ac_try='test -z "$ac_c_werror_flag"
27097 || test ! -s conftest.err'
ac1cb8d3
VS
27098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27099 (eval $ac_try) 2>&5
27100 ac_status=$?
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); }; } &&
27103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 (eval $ac_try) 2>&5
27106 ac_status=$?
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); }; }; then
27109 wx_cv_x11_xpm_h=yes
27110else
27111 echo "$as_me: failed program was:" >&5
27112sed 's/^/| /' conftest.$ac_ext >&5
27113
27114wx_cv_x11_xpm_h=no
27115
27116fi
ac1cb8d3 27117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27118
27119 CFLAGS=$save_CFLAGS
27120
27121
27122fi
27123echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27124echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27125
27126 if test $wx_cv_x11_xpm_h = "yes"; then
27127 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27128 cat >>confdefs.h <<\_ACEOF
27129#define wxHAVE_LIB_XPM 1
27130_ACEOF
27131
27132 else
27133 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27134echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27135 fi
27136 fi
27137
27138 fi
27139
27140 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27141echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27142if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27143 echo $ECHO_N "(cached) $ECHO_C" >&6
27144else
27145 ac_check_lib_save_LIBS=$LIBS
27146LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27147cat >conftest.$ac_ext <<_ACEOF
27148/* confdefs.h. */
27149_ACEOF
27150cat confdefs.h >>conftest.$ac_ext
27151cat >>conftest.$ac_ext <<_ACEOF
27152/* end confdefs.h. */
27153
27154/* Override any gcc2 internal prototype to avoid an error. */
27155#ifdef __cplusplus
27156extern "C"
27157#endif
27158/* We use char because int might match the return type of a gcc2
27159 builtin and then its argument prototype would still apply. */
27160char XShapeQueryExtension ();
27161int
27162main ()
27163{
27164XShapeQueryExtension ();
27165 ;
27166 return 0;
27167}
27168_ACEOF
27169rm -f conftest.$ac_objext conftest$ac_exeext
27170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27171 (eval $ac_link) 2>conftest.er1
a848cd7e 27172 ac_status=$?
ac1cb8d3
VS
27173 grep -v '^ *+' conftest.er1 >conftest.err
27174 rm -f conftest.er1
27175 cat conftest.err >&5
a848cd7e
SC
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } &&
89be85c2
VS
27178 { ac_try='test -z "$ac_c_werror_flag"
27179 || test ! -s conftest.err'
ac1cb8d3
VS
27180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 (eval $ac_try) 2>&5
27182 ac_status=$?
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; } &&
27185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27188 ac_status=$?
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; }; then
27191 ac_cv_lib_Xext_XShapeQueryExtension=yes
27192else
27193 echo "$as_me: failed program was:" >&5
27194sed 's/^/| /' conftest.$ac_ext >&5
27195
27196ac_cv_lib_Xext_XShapeQueryExtension=no
27197fi
ac1cb8d3
VS
27198rm -f conftest.err conftest.$ac_objext \
27199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27200LIBS=$ac_check_lib_save_LIBS
27201fi
27202echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27203echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27204if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27205
27206 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27207 wxHAVE_XEXT_LIB=1
27208
27209fi
27210
27211
27212 if test "$wxHAVE_XEXT_LIB" = 1; then
27213 save_CFLAGS="$CFLAGS"
27214 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27215
27216 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27217echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27218 cat >conftest.$ac_ext <<_ACEOF
27219/* confdefs.h. */
27220_ACEOF
27221cat confdefs.h >>conftest.$ac_ext
27222cat >>conftest.$ac_ext <<_ACEOF
27223/* end confdefs.h. */
27224
27225 #include <X11/Xlib.h>
27226 #include <X11/extensions/shape.h>
27227
27228int
27229main ()
27230{
27231
27232 int dummy1, dummy2;
27233 XShapeQueryExtension((Display*)NULL,
27234 (int*)NULL, (int*)NULL);
27235
27236 ;
27237 return 0;
27238}
27239_ACEOF
27240rm -f conftest.$ac_objext
27241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27242 (eval $ac_compile) 2>conftest.er1
a848cd7e 27243 ac_status=$?
ac1cb8d3
VS
27244 grep -v '^ *+' conftest.er1 >conftest.err
27245 rm -f conftest.er1
27246 cat conftest.err >&5
a848cd7e
SC
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
89be85c2
VS
27249 { ac_try='test -z "$ac_c_werror_flag"
27250 || test ! -s conftest.err'
ac1cb8d3
VS
27251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252 (eval $ac_try) 2>&5
27253 ac_status=$?
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; } &&
27256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262
27263 cat >>confdefs.h <<\_ACEOF
27264#define HAVE_XSHAPE 1
27265_ACEOF
27266
27267 echo "$as_me:$LINENO: result: found" >&5
27268echo "${ECHO_T}found" >&6
27269
27270else
27271 echo "$as_me: failed program was:" >&5
27272sed 's/^/| /' conftest.$ac_ext >&5
27273
27274
27275 echo "$as_me:$LINENO: result: not found" >&5
27276echo "${ECHO_T}not found" >&6
27277
27278fi
ac1cb8d3 27279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27280 CFLAGS="$save_CFLAGS"
27281
27282 fi
27283 fi
27284
27285 if test "$wxUSE_MAC" = 1; then
27286 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27287echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27288 if test "$GCC" = yes; then
27289 echo "$as_me:$LINENO: result: gcc" >&5
27290echo "${ECHO_T}gcc" >&6
27291 CPPFLAGS_PASCAL="-fpascal-strings"
27292 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27293 echo "$as_me:$LINENO: result: xlc" >&5
27294echo "${ECHO_T}xlc" >&6
27295 CPPFLAGS_PASCAL="-qmacpstr"
27296 else
27297 echo "$as_me:$LINENO: result: none" >&5
27298echo "${ECHO_T}none" >&6
27299 fi
27300
1e9e8aba
DE
27301 if test "x$wxUSE_UNIX" = "xyes"; then
27302 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27303 else
27304 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
27305 fi
a848cd7e 27306
a848cd7e
SC
27307 TOOLKIT=MAC
27308 GUIDIST=MACX_DIST
dd21ced8 27309 WXBASEPORT="_carbon"
a848cd7e
SC
27310 fi
27311
27312 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
27313 TOOLKIT=COCOA
27314 GUIDIST=COCOA_DIST
27315 fi
27316
27317 if test "$wxUSE_PM" = 1; then
27318 TOOLKIT=PM
de59c161
RD
27319 GUIDIST=PM_DIST
27320 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27321echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27322if test "${wx_cv_spbcdata+set}" = set; then
27323 echo $ECHO_N "(cached) $ECHO_C" >&6
27324else
27325
27326 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27327/* confdefs.h. */
27328_ACEOF
27329cat confdefs.h >>conftest.$ac_ext
27330cat >>conftest.$ac_ext <<_ACEOF
27331/* end confdefs.h. */
27332
27333 #define INCL_PM
27334 #include <os2.h>
27335
27336int
27337main ()
27338{
27339
27340 SPBCDATA test;
27341
27342 ;
27343 return 0;
27344}
27345_ACEOF
27346rm -f conftest.$ac_objext
27347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27348 (eval $ac_compile) 2>conftest.er1
de59c161 27349 ac_status=$?
ac1cb8d3
VS
27350 grep -v '^ *+' conftest.er1 >conftest.err
27351 rm -f conftest.er1
27352 cat conftest.err >&5
de59c161
RD
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } &&
89be85c2
VS
27355 { ac_try='test -z "$ac_c_werror_flag"
27356 || test ! -s conftest.err'
ac1cb8d3
VS
27357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358 (eval $ac_try) 2>&5
27359 ac_status=$?
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); }; } &&
27362 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27364 (eval $ac_try) 2>&5
27365 ac_status=$?
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; }; then
27368 wx_cv_spbcdata=yes
27369else
27370 echo "$as_me: failed program was:" >&5
27371sed 's/^/| /' conftest.$ac_ext >&5
27372
27373wx_cv_spbcdata=no
27374
27375fi
ac1cb8d3 27376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27377
27378
27379fi
27380echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27381echo "${ECHO_T}$wx_cv_spbcdata" >&6
27382
27383 if test $wx_cv_spbcdata = "yes"; then
27384 cat >>confdefs.h <<\_ACEOF
27385#define HAVE_SPBCDATA 1
27386_ACEOF
27387
27388 fi
a848cd7e
SC
27389 fi
27390
27391 if test "$TOOLKIT" = "PM" ; then
27392 TOOLKIT_DIR="os2"
27393 else
27394 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27395 fi
27396
a848cd7e 27397 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27398 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27399 WIDGET_SET=univ
a848cd7e
SC
27400 fi
27401
27402 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27403 DISTDIR="wx\$(TOOLKIT)"
27404else
27405 USE_GUI=0
27406
27407 TOOLKIT_DIR="base"
27408
27409 if test "$USE_WIN32" = 1 ; then
a848cd7e 27410 TOOLKIT="MSW"
a848cd7e
SC
27411 fi
27412
a848cd7e
SC
27413 GUIDIST="BASE_DIST"
27414 DISTDIR="wxBase"
27415fi
27416
27417
27418
27419
27420IODBC_C_SRC=""
27421
27422
27423if test "$TOOLKIT" != "MSW" ; then
27424
27425 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27426
27427 if test "${ac_cv_header_sql_h+set}" = set; then
27428 echo "$as_me:$LINENO: checking for sql.h" >&5
27429echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27430if test "${ac_cv_header_sql_h+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27432fi
27433echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27434echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27435else
27436 # Is the header compilable?
27437echo "$as_me:$LINENO: checking sql.h usability" >&5
27438echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27439cat >conftest.$ac_ext <<_ACEOF
27440/* confdefs.h. */
27441_ACEOF
27442cat confdefs.h >>conftest.$ac_ext
27443cat >>conftest.$ac_ext <<_ACEOF
27444/* end confdefs.h. */
27445$ac_includes_default
27446#include <sql.h>
27447_ACEOF
27448rm -f conftest.$ac_objext
27449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27450 (eval $ac_compile) 2>conftest.er1
a848cd7e 27451 ac_status=$?
ac1cb8d3
VS
27452 grep -v '^ *+' conftest.er1 >conftest.err
27453 rm -f conftest.er1
27454 cat conftest.err >&5
a848cd7e
SC
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
89be85c2
VS
27457 { ac_try='test -z "$ac_c_werror_flag"
27458 || test ! -s conftest.err'
ac1cb8d3
VS
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27461 ac_status=$?
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; } &&
27464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27467 ac_status=$?
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; }; then
27470 ac_header_compiler=yes
27471else
27472 echo "$as_me: failed program was:" >&5
27473sed 's/^/| /' conftest.$ac_ext >&5
27474
27475ac_header_compiler=no
27476fi
ac1cb8d3 27477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27479echo "${ECHO_T}$ac_header_compiler" >&6
27480
27481# Is the header present?
27482echo "$as_me:$LINENO: checking sql.h presence" >&5
27483echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27484cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490#include <sql.h>
27491_ACEOF
27492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27494 ac_status=$?
27495 grep -v '^ *+' conftest.er1 >conftest.err
27496 rm -f conftest.er1
27497 cat conftest.err >&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); } >/dev/null; then
27500 if test -s conftest.err; then
27501 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27503 else
27504 ac_cpp_err=
27505 fi
27506else
27507 ac_cpp_err=yes
27508fi
27509if test -z "$ac_cpp_err"; then
27510 ac_header_preproc=yes
27511else
27512 echo "$as_me: failed program was:" >&5
27513sed 's/^/| /' conftest.$ac_ext >&5
27514
27515 ac_header_preproc=no
27516fi
27517rm -f conftest.err conftest.$ac_ext
27518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27519echo "${ECHO_T}$ac_header_preproc" >&6
27520
27521# So? What about this header?
ac1cb8d3
VS
27522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27523 yes:no: )
a848cd7e
SC
27524 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27525echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27526 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27527echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27528 ac_header_preproc=yes
a848cd7e 27529 ;;
ac1cb8d3 27530 no:yes:* )
a848cd7e
SC
27531 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27532echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27533 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27534echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27535 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27536echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27537 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27538echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27539 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27540echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27541 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27542echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27543 (
27544 cat <<\_ASBOX
ac1cb8d3
VS
27545## ----------------------------------------- ##
27546## Report this to wx-dev@lists.wxwidgets.org ##
27547## ----------------------------------------- ##
a848cd7e
SC
27548_ASBOX
27549 ) |
27550 sed "s/^/$as_me: WARNING: /" >&2
27551 ;;
27552esac
27553echo "$as_me:$LINENO: checking for sql.h" >&5
27554echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27555if test "${ac_cv_header_sql_h+set}" = set; then
27556 echo $ECHO_N "(cached) $ECHO_C" >&6
27557else
27558 ac_cv_header_sql_h=$ac_header_preproc
27559fi
27560echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27561echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27562
27563fi
27564if test $ac_cv_header_sql_h = yes; then
27565 found_sql_h=1
27566fi
27567
27568
27569 if test "x$found_sql_h" = "x1" ; then
27570 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27571echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27572if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27573 echo $ECHO_N "(cached) $ECHO_C" >&6
27574else
27575 ac_check_lib_save_LIBS=$LIBS
27576LIBS="-liodbc $LIBS"
27577cat >conftest.$ac_ext <<_ACEOF
27578/* confdefs.h. */
27579_ACEOF
27580cat confdefs.h >>conftest.$ac_ext
27581cat >>conftest.$ac_ext <<_ACEOF
27582/* end confdefs.h. */
27583
27584/* Override any gcc2 internal prototype to avoid an error. */
27585#ifdef __cplusplus
27586extern "C"
27587#endif
27588/* We use char because int might match the return type of a gcc2
27589 builtin and then its argument prototype would still apply. */
27590char SQLAllocEnv ();
27591int
27592main ()
27593{
27594SQLAllocEnv ();
27595 ;
27596 return 0;
27597}
27598_ACEOF
27599rm -f conftest.$ac_objext conftest$ac_exeext
27600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27601 (eval $ac_link) 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); } &&
89be85c2
VS
27608 { ac_try='test -z "$ac_c_werror_flag"
27609 || test ! -s conftest.err'
ac1cb8d3
VS
27610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611 (eval $ac_try) 2>&5
27612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; } &&
27615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27617 (eval $ac_try) 2>&5
27618 ac_status=$?
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); }; }; then
27621 ac_cv_lib_iodbc_SQLAllocEnv=yes
27622else
27623 echo "$as_me: failed program was:" >&5
27624sed 's/^/| /' conftest.$ac_ext >&5
27625
27626ac_cv_lib_iodbc_SQLAllocEnv=no
27627fi
ac1cb8d3
VS
27628rm -f conftest.err conftest.$ac_objext \
27629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27630LIBS=$ac_check_lib_save_LIBS
27631fi
27632echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27633echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27634if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27635 ODBC_LINK=" -liodbc"
27636else
27637
27638 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27639echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27640if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642else
27643 ac_check_lib_save_LIBS=$LIBS
27644LIBS="-lunixodbc $LIBS"
27645cat >conftest.$ac_ext <<_ACEOF
27646/* confdefs.h. */
27647_ACEOF
27648cat confdefs.h >>conftest.$ac_ext
27649cat >>conftest.$ac_ext <<_ACEOF
27650/* end confdefs.h. */
27651
27652/* Override any gcc2 internal prototype to avoid an error. */
27653#ifdef __cplusplus
27654extern "C"
27655#endif
27656/* We use char because int might match the return type of a gcc2
27657 builtin and then its argument prototype would still apply. */
27658char SQLAllocEnv ();
27659int
27660main ()
27661{
27662SQLAllocEnv ();
27663 ;
27664 return 0;
27665}
27666_ACEOF
27667rm -f conftest.$ac_objext conftest$ac_exeext
27668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27669 (eval $ac_link) 2>conftest.er1
a848cd7e 27670 ac_status=$?
ac1cb8d3
VS
27671 grep -v '^ *+' conftest.er1 >conftest.err
27672 rm -f conftest.er1
27673 cat conftest.err >&5
a848cd7e
SC
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); } &&
89be85c2
VS
27676 { ac_try='test -z "$ac_c_werror_flag"
27677 || test ! -s conftest.err'
ac1cb8d3
VS
27678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27679 (eval $ac_try) 2>&5
27680 ac_status=$?
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; } &&
27683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685 (eval $ac_try) 2>&5
27686 ac_status=$?
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; }; then
27689 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27690else
27691 echo "$as_me: failed program was:" >&5
27692sed 's/^/| /' conftest.$ac_ext >&5
27693
27694ac_cv_lib_unixodbc_SQLAllocEnv=no
27695fi
ac1cb8d3
VS
27696rm -f conftest.err conftest.$ac_objext \
27697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27698LIBS=$ac_check_lib_save_LIBS
27699fi
27700echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27701echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27702if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27703 ODBC_LINK=" -lunixodbc"
27704else
27705
27706 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27707echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27708if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27709 echo $ECHO_N "(cached) $ECHO_C" >&6
27710else
27711 ac_check_lib_save_LIBS=$LIBS
27712LIBS="-lodbc $LIBS"
27713cat >conftest.$ac_ext <<_ACEOF
27714/* confdefs.h. */
27715_ACEOF
27716cat confdefs.h >>conftest.$ac_ext
27717cat >>conftest.$ac_ext <<_ACEOF
27718/* end confdefs.h. */
27719
27720/* Override any gcc2 internal prototype to avoid an error. */
27721#ifdef __cplusplus
27722extern "C"
27723#endif
27724/* We use char because int might match the return type of a gcc2
27725 builtin and then its argument prototype would still apply. */
27726char SQLAllocEnv ();
27727int
27728main ()
27729{
27730SQLAllocEnv ();
27731 ;
27732 return 0;
27733}
27734_ACEOF
27735rm -f conftest.$ac_objext conftest$ac_exeext
27736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27737 (eval $ac_link) 2>conftest.er1
a848cd7e 27738 ac_status=$?
ac1cb8d3
VS
27739 grep -v '^ *+' conftest.er1 >conftest.err
27740 rm -f conftest.er1
27741 cat conftest.err >&5
a848cd7e
SC
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } &&
89be85c2
VS
27744 { ac_try='test -z "$ac_c_werror_flag"
27745 || test ! -s conftest.err'
ac1cb8d3
VS
27746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27747 (eval $ac_try) 2>&5
27748 ac_status=$?
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); }; } &&
27751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27753 (eval $ac_try) 2>&5
27754 ac_status=$?
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); }; }; then
27757 ac_cv_lib_odbc_SQLAllocEnv=yes
27758else
27759 echo "$as_me: failed program was:" >&5
27760sed 's/^/| /' conftest.$ac_ext >&5
27761
27762ac_cv_lib_odbc_SQLAllocEnv=no
27763fi
ac1cb8d3
VS
27764rm -f conftest.err conftest.$ac_objext \
27765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27766LIBS=$ac_check_lib_save_LIBS
27767fi
27768echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27769echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27770if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27771 ODBC_LINK=" -lodbc"
27772fi
27773
27774
27775fi
27776
27777
27778fi
27779
27780 fi
27781 if test "x$ODBC_LINK" = "x" ; then
27782 if test "$wxUSE_ODBC" = "sys" ; then
27783 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27784echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27785 { (exit 1); exit 1; }; }
27786 else
27787 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27788echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27789 wxUSE_ODBC=builtin
27790 fi
27791 else
27792 wxUSE_ODBC=sys
27793 fi
27794 fi
27795 if test "$wxUSE_ODBC" != "no" ; then
27796 cat >>confdefs.h <<\_ACEOF
27797#define wxUSE_ODBC 1
27798_ACEOF
27799
27800 if test "$wxUSE_ODBC" = "builtin" ; then
27801 cat >>confdefs.h <<\_ACEOF
27802#define wxUSE_BUILTIN_IODBC 1
27803_ACEOF
27804
27805 fi
27806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27807
27808 WXODBCFLAG="-D_IODBC_"
27809 fi
27810fi
27811
a848cd7e 27812
01cb68df 27813
a848cd7e 27814if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27815 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27816 echo "$as_me:$LINENO: checking for Xinerama" >&5
27817echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27818
27819ac_find_libraries=
27820for ac_dir in $SEARCH_LIB /usr/lib;
27821 do
27822 for ac_extension in a so sl dylib; do
27823 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27824 ac_find_libraries=$ac_dir
27825 break 2
27826 fi
27827 done
27828 done
27829
27830 if test "$ac_find_libraries" != "" ; then
27831
27832 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27833 result=$?
27834 if test $result = 0; then
27835 ac_path_to_link=""
27836 else
27837 ac_path_to_link=" -L$ac_find_libraries"
27838 fi
27839
27840 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27841 LDFLAGS="$LDFLAGS $ac_path_to_link"
27842 fi
27843 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27844 echo "$as_me:$LINENO: result: yes" >&5
27845echo "${ECHO_T}yes" >&6
27846
27847 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27848echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27849
27850ac_find_libraries=
27851for ac_dir in $SEARCH_LIB /usr/lib;
27852 do
27853 for ac_extension in a so sl dylib; do
27854 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27855 ac_find_libraries=$ac_dir
27856 break 2
27857 fi
27858 done
27859 done
27860
27861 if test "$ac_find_libraries" != "" ; then
27862 echo "$as_me:$LINENO: result: yes" >&5
27863echo "${ECHO_T}yes" >&6
27864
27865for ac_header in X11/extensions/xf86vmode.h
27866do
27867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27868echo "$as_me:$LINENO: checking for $ac_header" >&5
27869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27870if eval "test \"\${$as_ac_Header+set}\" = set"; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27872else
27873 cat >conftest.$ac_ext <<_ACEOF
27874/* confdefs.h. */
27875_ACEOF
27876cat confdefs.h >>conftest.$ac_ext
27877cat >>conftest.$ac_ext <<_ACEOF
27878/* end confdefs.h. */
27879
27880 #if HAVE_X11_XLIB_H
27881 #include <X11/Xlib.h>
27882 #endif
27883
27884
27885#include <$ac_header>
27886_ACEOF
27887rm -f conftest.$ac_objext
27888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27889 (eval $ac_compile) 2>conftest.er1
a848cd7e 27890 ac_status=$?
ac1cb8d3
VS
27891 grep -v '^ *+' conftest.er1 >conftest.err
27892 rm -f conftest.er1
27893 cat conftest.err >&5
a848cd7e
SC
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } &&
89be85c2
VS
27896 { ac_try='test -z "$ac_c_werror_flag"
27897 || test ! -s conftest.err'
ac1cb8d3
VS
27898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27899 (eval $ac_try) 2>&5
27900 ac_status=$?
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); }; } &&
27903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27905 (eval $ac_try) 2>&5
27906 ac_status=$?
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); }; }; then
27909 eval "$as_ac_Header=yes"
27910else
27911 echo "$as_me: failed program was:" >&5
27912sed 's/^/| /' conftest.$ac_ext >&5
27913
27914eval "$as_ac_Header=no"
27915fi
ac1cb8d3 27916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27917fi
27918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27920if test `eval echo '${'$as_ac_Header'}'` = yes; then
27921 cat >>confdefs.h <<_ACEOF
27922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27923_ACEOF
27924
27925 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27926
27927fi
27928
27929done
27930
27931 else
27932 echo "$as_me:$LINENO: result: no" >&5
27933echo "${ECHO_T}no" >&6
27934 fi
27935
27936 else
27937 echo "$as_me:$LINENO: result: no" >&5
27938echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27939 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27940echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27941 wxUSE_DISPLAY="no"
27942 fi
01cb68df
RG
27943 elif test "$wxUSE_MSW" = 1; then
27944
27945
27946for ac_header in multimon.h ddraw.h
27947do
27948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27949echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27951if eval "test \"\${$as_ac_Header+set}\" = set"; then
27952 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27953else
5294a27e 27954 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27955/* confdefs.h. */
27956_ACEOF
27957cat confdefs.h >>conftest.$ac_ext
27958cat >>conftest.$ac_ext <<_ACEOF
27959/* end confdefs.h. */
5294a27e
VZ
27960#include <windows.h>
27961
01cb68df
RG
27962#include <$ac_header>
27963_ACEOF
27964rm -f conftest.$ac_objext
27965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27966 (eval $ac_compile) 2>conftest.er1
01cb68df 27967 ac_status=$?
ac1cb8d3
VS
27968 grep -v '^ *+' conftest.er1 >conftest.err
27969 rm -f conftest.er1
27970 cat conftest.err >&5
01cb68df
RG
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } &&
89be85c2
VS
27973 { ac_try='test -z "$ac_c_werror_flag"
27974 || test ! -s conftest.err'
ac1cb8d3
VS
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; } &&
27980 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982 (eval $ac_try) 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
5294a27e 27986 eval "$as_ac_Header=yes"
01cb68df
RG
27987else
27988 echo "$as_me: failed program was:" >&5
27989sed 's/^/| /' conftest.$ac_ext >&5
27990
5294a27e 27991eval "$as_ac_Header=no"
01cb68df 27992fi
ac1cb8d3 27993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27994fi
27995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27997if test `eval echo '${'$as_ac_Header'}'` = yes; then
27998 cat >>confdefs.h <<_ACEOF
27999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28000_ACEOF
28001
28002else
28003
5294a27e
VZ
28004 wxUSE_DISPLAY="no"
28005 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28006echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28007
28008fi
28009
28010done
28011
a848cd7e
SC
28012 fi
28013fi
28014
28015
28016USE_OPENGL=0
28017if test "$wxUSE_OPENGL" = "yes"; then
28018 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28019 OPENGL_LIBS="-framework OpenGL -framework AGL"
28020 elif test "$wxUSE_MSW" = 1; then
28021 OPENGL_LIBS="-lopengl32 -lglu32"
28022 else
28023
28024
28025ac_find_includes=
28026for ac_dir in $SEARCH_INCLUDE /usr/include;
28027 do
28028 if test -f "$ac_dir/GL/gl.h"; then
28029 ac_find_includes=$ac_dir
28030 break
28031 fi
28032 done
28033
28034 if test "$ac_find_includes" != "" ; then
28035 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28036echo "${ECHO_T}found in $ac_find_includes" >&6
28037
28038 if test "x$ac_find_includes" = "x/usr/include"; then
28039 ac_path_to_include=""
28040 else
28041 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28042 result=$?
28043 if test $result = 0; then
28044 ac_path_to_include=""
28045 else
28046 ac_path_to_include=" -I$ac_find_includes"
28047 fi
28048 fi
28049
28050 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28051 fi
28052
28053 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28054 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28055echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28056if test "${ac_cv_header_GL_gl_h+set}" = set; then
28057 echo $ECHO_N "(cached) $ECHO_C" >&6
28058fi
28059echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28060echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28061else
28062 # Is the header compilable?
28063echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28064echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28065cat >conftest.$ac_ext <<_ACEOF
28066/* confdefs.h. */
28067_ACEOF
28068cat confdefs.h >>conftest.$ac_ext
28069cat >>conftest.$ac_ext <<_ACEOF
28070/* end confdefs.h. */
28071$ac_includes_default
28072#include <GL/gl.h>
28073_ACEOF
28074rm -f conftest.$ac_objext
28075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28076 (eval $ac_compile) 2>conftest.er1
a848cd7e 28077 ac_status=$?
ac1cb8d3
VS
28078 grep -v '^ *+' conftest.er1 >conftest.err
28079 rm -f conftest.er1
28080 cat conftest.err >&5
a848cd7e
SC
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); } &&
89be85c2
VS
28083 { ac_try='test -z "$ac_c_werror_flag"
28084 || test ! -s conftest.err'
ac1cb8d3
VS
28085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086 (eval $ac_try) 2>&5
28087 ac_status=$?
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); }; } &&
28090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28092 (eval $ac_try) 2>&5
28093 ac_status=$?
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; }; then
28096 ac_header_compiler=yes
28097else
28098 echo "$as_me: failed program was:" >&5
28099sed 's/^/| /' conftest.$ac_ext >&5
28100
28101ac_header_compiler=no
28102fi
ac1cb8d3 28103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28105echo "${ECHO_T}$ac_header_compiler" >&6
28106
28107# Is the header present?
28108echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28109echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28110cat >conftest.$ac_ext <<_ACEOF
28111/* confdefs.h. */
28112_ACEOF
28113cat confdefs.h >>conftest.$ac_ext
28114cat >>conftest.$ac_ext <<_ACEOF
28115/* end confdefs.h. */
28116#include <GL/gl.h>
28117_ACEOF
28118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28120 ac_status=$?
28121 grep -v '^ *+' conftest.er1 >conftest.err
28122 rm -f conftest.er1
28123 cat conftest.err >&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); } >/dev/null; then
28126 if test -s conftest.err; then
28127 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28129 else
28130 ac_cpp_err=
28131 fi
28132else
28133 ac_cpp_err=yes
28134fi
28135if test -z "$ac_cpp_err"; then
28136 ac_header_preproc=yes
28137else
28138 echo "$as_me: failed program was:" >&5
28139sed 's/^/| /' conftest.$ac_ext >&5
28140
28141 ac_header_preproc=no
28142fi
28143rm -f conftest.err conftest.$ac_ext
28144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28145echo "${ECHO_T}$ac_header_preproc" >&6
28146
28147# So? What about this header?
ac1cb8d3
VS
28148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28149 yes:no: )
a848cd7e
SC
28150 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28151echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28152 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28153echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28154 ac_header_preproc=yes
a848cd7e 28155 ;;
ac1cb8d3 28156 no:yes:* )
a848cd7e
SC
28157 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28158echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28159 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28160echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28161 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28162echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28163 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28164echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28165 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28166echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28167 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28168echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28169 (
28170 cat <<\_ASBOX
ac1cb8d3
VS
28171## ----------------------------------------- ##
28172## Report this to wx-dev@lists.wxwidgets.org ##
28173## ----------------------------------------- ##
a848cd7e
SC
28174_ASBOX
28175 ) |
28176 sed "s/^/$as_me: WARNING: /" >&2
28177 ;;
28178esac
28179echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28180echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28181if test "${ac_cv_header_GL_gl_h+set}" = set; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28183else
28184 ac_cv_header_GL_gl_h=$ac_header_preproc
28185fi
28186echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28187echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28188
28189fi
28190if test $ac_cv_header_GL_gl_h = yes; then
28191
28192 found_gl=0
28193
28194 echo "$as_me:$LINENO: checking for -lGL" >&5
28195echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28196
28197ac_find_libraries=
28198for ac_dir in $SEARCH_LIB /usr/lib;
28199 do
28200 for ac_extension in a so sl dylib; do
28201 if test -f "$ac_dir/libGL.$ac_extension"; then
28202 ac_find_libraries=$ac_dir
28203 break 2
28204 fi
28205 done
28206 done
28207
28208 if test "$ac_find_libraries" != "" ; then
28209
28210 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28211 result=$?
28212 if test $result = 0; then
28213 ac_path_to_link=""
28214 else
28215 ac_path_to_link=" -L$ac_find_libraries"
28216 fi
28217
28218 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28219 LDFLAGS_GL="$ac_path_to_link"
28220 fi
28221
28222
28223ac_find_libraries=
28224for ac_dir in $SEARCH_LIB /usr/lib;
28225 do
28226 for ac_extension in a so sl dylib; do
28227 if test -f "$ac_dir/libGLU.$ac_extension"; then
28228 ac_find_libraries=$ac_dir
28229 break 2
28230 fi
28231 done
28232 done
28233
28234 if test "$ac_find_libraries" != "" ; then
28235
28236 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28237 result=$?
28238 if test $result = 0; then
28239 ac_path_to_link=""
28240 else
28241 ac_path_to_link=" -L$ac_find_libraries"
28242 fi
28243
28244 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28245 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28246 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28247 fi
28248
28249 found_gl=1
28250 OPENGL_LIBS="-lGL -lGLU"
28251 echo "$as_me:$LINENO: result: yes" >&5
28252echo "${ECHO_T}yes" >&6
28253 fi
28254 fi
28255
28256 if test "$found_gl" != 1; then
28257 echo "$as_me:$LINENO: result: no" >&5
28258echo "${ECHO_T}no" >&6
28259 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28260echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28261
28262ac_find_libraries=
28263for ac_dir in $SEARCH_LIB /usr/lib;
28264 do
28265 for ac_extension in a so sl dylib; do
28266 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28267 ac_find_libraries=$ac_dir
28268 break 2
28269 fi
28270 done
28271 done
28272
28273 if test "$ac_find_libraries" != "" ; then
28274
28275 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28276 result=$?
28277 if test $result = 0; then
28278 ac_path_to_link=""
28279 else
28280 ac_path_to_link=" -L$ac_find_libraries"
28281 fi
28282
28283 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28284 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28285 echo "$as_me:$LINENO: result: yes" >&5
28286echo "${ECHO_T}yes" >&6
28287 else
28288 echo "$as_me:$LINENO: result: no" >&5
28289echo "${ECHO_T}no" >&6
28290 fi
28291 fi
28292
28293fi
28294
28295
28296
28297 if test "x$OPENGL_LIBS" = "x"; then
28298 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28299echo "$as_me: error: OpenGL libraries not available" >&2;}
28300 { (exit 1); exit 1; }; }
28301 fi
28302 fi
28303
28304 if test "$wxUSE_OPENGL" = "yes"; then
28305 USE_OPENGL=1
28306 cat >>confdefs.h <<\_ACEOF
28307#define wxUSE_OPENGL 1
28308_ACEOF
28309
28310 cat >>confdefs.h <<\_ACEOF
28311#define wxUSE_GLCANVAS 1
28312_ACEOF
28313
28314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28315 fi
28316fi
28317
a848cd7e
SC
28318
28319if test -n "$TOOLKIT" ; then
28320 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28321fi
28322
a848cd7e
SC
28323
28324
28325if test "$wxUSE_SHARED" = "yes"; then
28326 case "${host}" in
28327 *-pc-msdosdjgpp )
28328 wxUSE_SHARED=no
28329 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28330echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28331 ;;
28332 esac
28333fi
28334
a848cd7e 28335if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28336
28337
28338 found_versioning=no
28339
28340
28341 if test $found_versioning = no ; then
28342 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28343echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28344if test "${wx_cv_version_script+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346else
28347
28348 echo "VER_1 { *; };" >conftest.sym
28349 echo "int main() { return 0; }" >conftest.cpp
28350
28351 if { ac_try='
28352 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28353 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 (eval $ac_try) 2>&5
28356 ac_status=$?
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); }; } ; then
28359 if test -s conftest.stderr ; then
28360 wx_cv_version_script=no
28361 else
28362 wx_cv_version_script=yes
28363 fi
28364 else
28365 wx_cv_version_script=no
28366 fi
28367 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28368
28369fi
28370echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28371echo "${ECHO_T}$wx_cv_version_script" >&6
28372 if test $wx_cv_version_script = yes ; then
28373 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28374 fi
28375 fi
28376
28377
28378 case "${host}" in
28379 *-*-linux* | *-*-gnu* )
28380 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28381 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28382 ;;
28383
28384 *-*-solaris2* )
28385 if test "$GCC" = yes ; then
28386 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28387
28388 saveLdflags="$LDFLAGS"
28389 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28390 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28391echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28392 cat >conftest.$ac_ext <<_ACEOF
28393/* confdefs.h. */
28394_ACEOF
28395cat confdefs.h >>conftest.$ac_ext
28396cat >>conftest.$ac_ext <<_ACEOF
28397/* end confdefs.h. */
28398
28399int
28400main ()
28401{
28402
28403 ;
28404 return 0;
28405}
28406_ACEOF
28407rm -f conftest.$ac_objext conftest$ac_exeext
28408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28409 (eval $ac_link) 2>conftest.er1
a848cd7e 28410 ac_status=$?
ac1cb8d3
VS
28411 grep -v '^ *+' conftest.er1 >conftest.err
28412 rm -f conftest.er1
28413 cat conftest.err >&5
a848cd7e
SC
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } &&
89be85c2
VS
28416 { ac_try='test -z "$ac_c_werror_flag"
28417 || test ! -s conftest.err'
ac1cb8d3
VS
28418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; } &&
28423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28425 (eval $ac_try) 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
28429
28430 echo "$as_me:$LINENO: result: yes" >&5
28431echo "${ECHO_T}yes" >&6
28432 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28433 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28434
28435else
28436 echo "$as_me: failed program was:" >&5
28437sed 's/^/| /' conftest.$ac_ext >&5
28438
28439
28440 echo "$as_me:$LINENO: result: no" >&5
28441echo "${ECHO_T}no" >&6
28442 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28443echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28444 LDFLAGS="$saveLdflags -Wl,-R,/"
28445 cat >conftest.$ac_ext <<_ACEOF
28446/* confdefs.h. */
28447_ACEOF
28448cat confdefs.h >>conftest.$ac_ext
28449cat >>conftest.$ac_ext <<_ACEOF
28450/* end confdefs.h. */
28451
28452int
28453main ()
28454{
28455
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext conftest$ac_exeext
28461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28462 (eval $ac_link) 2>conftest.er1
a848cd7e 28463 ac_status=$?
ac1cb8d3
VS
28464 grep -v '^ *+' conftest.er1 >conftest.err
28465 rm -f conftest.er1
28466 cat conftest.err >&5
a848cd7e
SC
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); } &&
89be85c2
VS
28469 { ac_try='test -z "$ac_c_werror_flag"
28470 || test ! -s conftest.err'
ac1cb8d3
VS
28471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28472 (eval $ac_try) 2>&5
28473 ac_status=$?
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); }; } &&
28476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478 (eval $ac_try) 2>&5
28479 ac_status=$?
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; }; then
28482
ffa0583f 28483 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28484echo "${ECHO_T}yes" >&6
ffa0583f
RL
28485 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28486 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28487
a848cd7e
SC
28488else
28489 echo "$as_me: failed program was:" >&5
28490sed 's/^/| /' conftest.$ac_ext >&5
28491
28492
28493 echo "$as_me:$LINENO: result: no" >&5
28494echo "${ECHO_T}no" >&6
28495
28496fi
ac1cb8d3
VS
28497rm -f conftest.err conftest.$ac_objext \
28498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28499
28500fi
ac1cb8d3
VS
28501rm -f conftest.err conftest.$ac_objext \
28502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28503 LDFLAGS="$saveLdflags"
28504 else
a848cd7e 28505 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28506 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28507 fi
28508 ;;
28509
28510 powerpc-*-darwin* )
28511 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28512 cat <<EOF >change-install-names
28513#!/bin/sh
28514libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28515inst_cmd="install_name_tool "
28516for i in \${libnames} ; do
28517 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28518done
28519\${inst_cmd} \${3}
28520EOF
28521 chmod +x change-install-names
28522 ;;
28523
28524 *-*-cygwin* | *-*-mingw32* )
28525 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28526 ;;
28527
81f90336
MW
28528 *-*-hpux* )
28529 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
28530 WXCONFIG_RPATH="-Wl,+b,\$libdir"
28531 ;;
28532
a848cd7e 28533 esac
ceec2216 28534
ffa0583f
RL
28535 if test $wxUSE_RPATH = "no"; then
28536 SAMPLES_RPATH_FLAG=''
28537 SAMPLES_RPATH_POSTLINK=''
28538 WXCONFIG_RPATH=''
28539 fi
28540
28541 SHARED=1
28542
28543else
28544
ceec2216
RL
28545 config_linkage_component="-static"
28546 SHARED=0
ffa0583f 28547
ceec2216 28548fi
a848cd7e 28549
a848cd7e 28550
ceec2216
RL
28551UNICODE=0
28552lib_unicode_suffix=
28553WX_CHARTYPE="ansi"
28554if test "$wxUSE_UNICODE" = "yes"; then
28555 lib_unicode_suffix=u
28556 WX_CHARTYPE="unicode"
28557 UNICODE=1
a848cd7e
SC
28558fi
28559
ceec2216
RL
28560lib_debug_suffix=
28561WX_DEBUGTYPE="release"
28562DEBUG_FLAG=0
28563if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28564 lib_debug_suffix=d
28565 WX_DEBUGTYPE="debug"
28566 DEBUG_FLAG=1
28567fi
a848cd7e 28568
ceec2216
RL
28569WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28570WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28571
ceec2216
RL
28572DEBUG_INFO=0
28573if test "$wxUSE_DEBUG_INFO" = "yes"; then
28574 DEBUG_INFO=1
28575fi
a848cd7e 28576
ceec2216 28577WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28578
ceec2216 28579TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28580
ceec2216 28581TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28582
ceec2216
RL
28583if test "$cross_compiling" = "yes"; then
28584 HOST_SUFFIX="-$host_alias"
28585 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28586 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28587fi
28588
dd21ced8 28589WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28590WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28591
28592
28593
a848cd7e 28594if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28595 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28596 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28597
a848cd7e 28598 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28599
28600 # Extract the first word of "Rez", so it can be a program name with args.
28601set dummy Rez; ac_word=$2
28602echo "$as_me:$LINENO: checking for $ac_word" >&5
28603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28604if test "${ac_cv_prog_RESCOMP+set}" = set; then
28605 echo $ECHO_N "(cached) $ECHO_C" >&6
28606else
28607 if test -n "$RESCOMP"; then
28608 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28609else
28610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28611for as_dir in $PATH
28612do
28613 IFS=$as_save_IFS
28614 test -z "$as_dir" && as_dir=.
28615 for ac_exec_ext in '' $ac_executable_extensions; do
28616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28617 ac_cv_prog_RESCOMP="Rez"
28618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28619 break 2
28620 fi
28621done
28622done
28623
28624 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28625fi
28626fi
28627RESCOMP=$ac_cv_prog_RESCOMP
28628if test -n "$RESCOMP"; then
28629 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28630echo "${ECHO_T}$RESCOMP" >&6
28631else
28632 echo "$as_me:$LINENO: result: no" >&5
28633echo "${ECHO_T}no" >&6
28634fi
28635
28636 # Extract the first word of "DeRez", so it can be a program name with args.
28637set dummy DeRez; ac_word=$2
28638echo "$as_me:$LINENO: checking for $ac_word" >&5
28639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28640if test "${ac_cv_prog_DEREZ+set}" = set; then
28641 echo $ECHO_N "(cached) $ECHO_C" >&6
28642else
28643 if test -n "$DEREZ"; then
28644 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28645else
28646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28647for as_dir in $PATH
28648do
28649 IFS=$as_save_IFS
28650 test -z "$as_dir" && as_dir=.
28651 for ac_exec_ext in '' $ac_executable_extensions; do
28652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28653 ac_cv_prog_DEREZ="DeRez"
28654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28655 break 2
28656 fi
28657done
28658done
28659
28660 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28661fi
28662fi
28663DEREZ=$ac_cv_prog_DEREZ
28664if test -n "$DEREZ"; then
28665 echo "$as_me:$LINENO: result: $DEREZ" >&5
28666echo "${ECHO_T}$DEREZ" >&6
28667else
28668 echo "$as_me:$LINENO: result: no" >&5
28669echo "${ECHO_T}no" >&6
28670fi
28671
28672 # Extract the first word of "SetFile", so it can be a program name with args.
28673set dummy SetFile; ac_word=$2
28674echo "$as_me:$LINENO: checking for $ac_word" >&5
28675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28676if test "${ac_cv_prog_SETFILE+set}" = set; then
28677 echo $ECHO_N "(cached) $ECHO_C" >&6
28678else
28679 if test -n "$SETFILE"; then
28680 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28681else
28682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28683for as_dir in $PATH
28684do
28685 IFS=$as_save_IFS
28686 test -z "$as_dir" && as_dir=.
28687 for ac_exec_ext in '' $ac_executable_extensions; do
28688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28689 ac_cv_prog_SETFILE="SetFile"
28690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28691 break 2
28692 fi
28693done
28694done
28695
28696 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28697fi
28698fi
28699SETFILE=$ac_cv_prog_SETFILE
28700if test -n "$SETFILE"; then
28701 echo "$as_me:$LINENO: result: $SETFILE" >&5
28702echo "${ECHO_T}$SETFILE" >&6
28703else
28704 echo "$as_me:$LINENO: result: no" >&5
28705echo "${ECHO_T}no" >&6
28706fi
28707
28708
28709 MACSETFILE="\$(SETFILE)"
28710
28711 if test "$wxUSE_MAC" = 1; then
28712 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28713
28714 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28715 else
28716 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28717 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28718 fi
28719else
ffa0583f
RL
28720 MACSETFILE="@true"
28721 MACRESWXCONFIG="@true"
a848cd7e
SC
28722
28723 if test "$wxUSE_PM" = 1; then
28724 MACRESCOMP="emxbind -ep"
28725 else
ffa0583f 28726 MACRESCOMP="@true"
a848cd7e
SC
28727 fi
28728fi
28729
28730
28731
28732echo "$as_me:$LINENO: checking for mode_t" >&5
28733echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28734if test "${ac_cv_type_mode_t+set}" = set; then
28735 echo $ECHO_N "(cached) $ECHO_C" >&6
28736else
28737 cat >conftest.$ac_ext <<_ACEOF
28738/* confdefs.h. */
28739_ACEOF
28740cat confdefs.h >>conftest.$ac_ext
28741cat >>conftest.$ac_ext <<_ACEOF
28742/* end confdefs.h. */
28743$ac_includes_default
28744int
28745main ()
28746{
28747if ((mode_t *) 0)
28748 return 0;
28749if (sizeof (mode_t))
28750 return 0;
28751 ;
28752 return 0;
28753}
28754_ACEOF
28755rm -f conftest.$ac_objext
28756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28757 (eval $ac_compile) 2>conftest.er1
a848cd7e 28758 ac_status=$?
ac1cb8d3
VS
28759 grep -v '^ *+' conftest.er1 >conftest.err
28760 rm -f conftest.er1
28761 cat conftest.err >&5
a848cd7e
SC
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } &&
89be85c2
VS
28764 { ac_try='test -z "$ac_c_werror_flag"
28765 || test ! -s conftest.err'
ac1cb8d3
VS
28766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767 (eval $ac_try) 2>&5
28768 ac_status=$?
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; } &&
28771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28774 ac_status=$?
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; }; then
28777 ac_cv_type_mode_t=yes
28778else
28779 echo "$as_me: failed program was:" >&5
28780sed 's/^/| /' conftest.$ac_ext >&5
28781
28782ac_cv_type_mode_t=no
28783fi
ac1cb8d3 28784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28785fi
28786echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28787echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28788if test $ac_cv_type_mode_t = yes; then
28789 :
28790else
28791
28792cat >>confdefs.h <<_ACEOF
28793#define mode_t int
28794_ACEOF
28795
28796fi
28797
28798echo "$as_me:$LINENO: checking for off_t" >&5
28799echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28800if test "${ac_cv_type_off_t+set}" = set; then
28801 echo $ECHO_N "(cached) $ECHO_C" >&6
28802else
28803 cat >conftest.$ac_ext <<_ACEOF
28804/* confdefs.h. */
28805_ACEOF
28806cat confdefs.h >>conftest.$ac_ext
28807cat >>conftest.$ac_ext <<_ACEOF
28808/* end confdefs.h. */
28809$ac_includes_default
28810int
28811main ()
28812{
28813if ((off_t *) 0)
28814 return 0;
28815if (sizeof (off_t))
28816 return 0;
28817 ;
28818 return 0;
28819}
28820_ACEOF
28821rm -f conftest.$ac_objext
28822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28823 (eval $ac_compile) 2>conftest.er1
a848cd7e 28824 ac_status=$?
ac1cb8d3
VS
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
a848cd7e
SC
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
89be85c2
VS
28830 { ac_try='test -z "$ac_c_werror_flag"
28831 || test ! -s conftest.err'
ac1cb8d3
VS
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; } &&
28837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; }; then
28843 ac_cv_type_off_t=yes
28844else
28845 echo "$as_me: failed program was:" >&5
28846sed 's/^/| /' conftest.$ac_ext >&5
28847
28848ac_cv_type_off_t=no
28849fi
ac1cb8d3 28850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28851fi
28852echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28853echo "${ECHO_T}$ac_cv_type_off_t" >&6
28854if test $ac_cv_type_off_t = yes; then
28855 :
28856else
28857
28858cat >>confdefs.h <<_ACEOF
28859#define off_t long
28860_ACEOF
28861
28862fi
28863
28864echo "$as_me:$LINENO: checking for pid_t" >&5
28865echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28866if test "${ac_cv_type_pid_t+set}" = set; then
28867 echo $ECHO_N "(cached) $ECHO_C" >&6
28868else
28869 cat >conftest.$ac_ext <<_ACEOF
28870/* confdefs.h. */
28871_ACEOF
28872cat confdefs.h >>conftest.$ac_ext
28873cat >>conftest.$ac_ext <<_ACEOF
28874/* end confdefs.h. */
28875$ac_includes_default
28876int
28877main ()
28878{
28879if ((pid_t *) 0)
28880 return 0;
28881if (sizeof (pid_t))
28882 return 0;
28883 ;
28884 return 0;
28885}
28886_ACEOF
28887rm -f conftest.$ac_objext
28888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28889 (eval $ac_compile) 2>conftest.er1
a848cd7e 28890 ac_status=$?
ac1cb8d3
VS
28891 grep -v '^ *+' conftest.er1 >conftest.err
28892 rm -f conftest.er1
28893 cat conftest.err >&5
a848cd7e
SC
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } &&
89be85c2
VS
28896 { ac_try='test -z "$ac_c_werror_flag"
28897 || test ! -s conftest.err'
ac1cb8d3
VS
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909 ac_cv_type_pid_t=yes
28910else
28911 echo "$as_me: failed program was:" >&5
28912sed 's/^/| /' conftest.$ac_ext >&5
28913
28914ac_cv_type_pid_t=no
28915fi
ac1cb8d3 28916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28917fi
28918echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28919echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28920if test $ac_cv_type_pid_t = yes; then
28921 :
28922else
28923
28924cat >>confdefs.h <<_ACEOF
28925#define pid_t int
28926_ACEOF
28927
28928fi
28929
28930echo "$as_me:$LINENO: checking for size_t" >&5
28931echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28932if test "${ac_cv_type_size_t+set}" = set; then
28933 echo $ECHO_N "(cached) $ECHO_C" >&6
28934else
28935 cat >conftest.$ac_ext <<_ACEOF
28936/* confdefs.h. */
28937_ACEOF
28938cat confdefs.h >>conftest.$ac_ext
28939cat >>conftest.$ac_ext <<_ACEOF
28940/* end confdefs.h. */
28941$ac_includes_default
28942int
28943main ()
28944{
28945if ((size_t *) 0)
28946 return 0;
28947if (sizeof (size_t))
28948 return 0;
28949 ;
28950 return 0;
28951}
28952_ACEOF
28953rm -f conftest.$ac_objext
28954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28955 (eval $ac_compile) 2>conftest.er1
a848cd7e 28956 ac_status=$?
ac1cb8d3
VS
28957 grep -v '^ *+' conftest.er1 >conftest.err
28958 rm -f conftest.er1
28959 cat conftest.err >&5
a848cd7e
SC
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } &&
89be85c2
VS
28962 { ac_try='test -z "$ac_c_werror_flag"
28963 || test ! -s conftest.err'
ac1cb8d3
VS
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28966 ac_status=$?
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; } &&
28969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
28975 ac_cv_type_size_t=yes
28976else
28977 echo "$as_me: failed program was:" >&5
28978sed 's/^/| /' conftest.$ac_ext >&5
28979
28980ac_cv_type_size_t=no
28981fi
ac1cb8d3 28982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28983fi
28984echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28985echo "${ECHO_T}$ac_cv_type_size_t" >&6
28986if test $ac_cv_type_size_t = yes; then
28987 :
28988else
28989
28990cat >>confdefs.h <<_ACEOF
28991#define size_t unsigned
28992_ACEOF
28993
28994fi
28995
28996echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28997echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28998if test "${ac_cv_type_uid_t+set}" = set; then
28999 echo $ECHO_N "(cached) $ECHO_C" >&6
29000else
29001 cat >conftest.$ac_ext <<_ACEOF
29002/* confdefs.h. */
29003_ACEOF
29004cat confdefs.h >>conftest.$ac_ext
29005cat >>conftest.$ac_ext <<_ACEOF
29006/* end confdefs.h. */
29007#include <sys/types.h>
29008
29009_ACEOF
29010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29011 $EGREP "uid_t" >/dev/null 2>&1; then
29012 ac_cv_type_uid_t=yes
29013else
29014 ac_cv_type_uid_t=no
29015fi
29016rm -f conftest*
29017
29018fi
29019echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29020echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29021if test $ac_cv_type_uid_t = no; then
29022
29023cat >>confdefs.h <<\_ACEOF
29024#define uid_t int
29025_ACEOF
29026
29027
29028cat >>confdefs.h <<\_ACEOF
29029#define gid_t int
29030_ACEOF
29031
29032fi
29033
29034
d51253e8
RL
29035echo "$as_me:$LINENO: checking for ssize_t" >&5
29036echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29037if test "${ac_cv_type_ssize_t+set}" = set; then
29038 echo $ECHO_N "(cached) $ECHO_C" >&6
29039else
29040 cat >conftest.$ac_ext <<_ACEOF
29041/* confdefs.h. */
29042_ACEOF
29043cat confdefs.h >>conftest.$ac_ext
29044cat >>conftest.$ac_ext <<_ACEOF
29045/* end confdefs.h. */
29046$ac_includes_default
29047int
29048main ()
29049{
29050if ((ssize_t *) 0)
29051 return 0;
29052if (sizeof (ssize_t))
29053 return 0;
29054 ;
29055 return 0;
29056}
29057_ACEOF
29058rm -f conftest.$ac_objext
29059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29060 (eval $ac_compile) 2>conftest.er1
29061 ac_status=$?
29062 grep -v '^ *+' conftest.er1 >conftest.err
29063 rm -f conftest.er1
29064 cat conftest.err >&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); } &&
89be85c2
VS
29067 { ac_try='test -z "$ac_c_werror_flag"
29068 || test ! -s conftest.err'
d51253e8
RL
29069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29070 (eval $ac_try) 2>&5
29071 ac_status=$?
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; } &&
29074 { ac_try='test -s conftest.$ac_objext'
29075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29076 (eval $ac_try) 2>&5
29077 ac_status=$?
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); }; }; then
29080 ac_cv_type_ssize_t=yes
29081else
29082 echo "$as_me: failed program was:" >&5
29083sed 's/^/| /' conftest.$ac_ext >&5
29084
29085ac_cv_type_ssize_t=no
29086fi
29087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29088fi
29089echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29090echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29091if test $ac_cv_type_ssize_t = yes; then
29092
29093cat >>confdefs.h <<_ACEOF
29094#define HAVE_SSIZE_T 1
29095_ACEOF
29096
29097
29098fi
29099
29100
a848cd7e
SC
29101
29102
29103ac_ext=cc
29104ac_cpp='$CXXCPP $CPPFLAGS'
29105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29108
29109echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29110echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29111if test "${wx_cv_size_t_is_uint+set}" = set; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29113else
29114
29115 cat >conftest.$ac_ext <<_ACEOF
29116/* confdefs.h. */
29117_ACEOF
29118cat confdefs.h >>conftest.$ac_ext
29119cat >>conftest.$ac_ext <<_ACEOF
29120/* end confdefs.h. */
29121#include <stddef.h>
29122int
29123main ()
29124{
29125
29126 return 0; }
29127
29128 struct Foo { void foo(size_t); void foo(unsigned int); };
29129
29130 int bar() {
29131
29132 ;
29133 return 0;
29134}
29135_ACEOF
29136rm -f conftest.$ac_objext
29137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29138 (eval $ac_compile) 2>conftest.er1
a848cd7e 29139 ac_status=$?
ac1cb8d3
VS
29140 grep -v '^ *+' conftest.er1 >conftest.err
29141 rm -f conftest.er1
29142 cat conftest.err >&5
a848cd7e
SC
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); } &&
89be85c2
VS
29145 { ac_try='test -z "$ac_cxx_werror_flag"
29146 || test ! -s conftest.err'
ac1cb8d3
VS
29147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148 (eval $ac_try) 2>&5
29149 ac_status=$?
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; } &&
29152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
29158 wx_cv_size_t_is_uint=no
29159else
29160 echo "$as_me: failed program was:" >&5
29161sed 's/^/| /' conftest.$ac_ext >&5
29162
29163wx_cv_size_t_is_uint=yes
29164
29165fi
ac1cb8d3 29166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29167
29168
29169fi
29170echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29171echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29172
29173if test "$wx_cv_size_t_is_uint" = "yes"; then
29174 cat >>confdefs.h <<\_ACEOF
29175#define wxSIZE_T_IS_UINT 1
29176_ACEOF
29177
29178else
29179 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29180echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29181if test "${wx_cv_size_t_is_ulong+set}" = set; then
29182 echo $ECHO_N "(cached) $ECHO_C" >&6
29183else
29184 cat >conftest.$ac_ext <<_ACEOF
29185/* confdefs.h. */
29186_ACEOF
29187cat confdefs.h >>conftest.$ac_ext
29188cat >>conftest.$ac_ext <<_ACEOF
29189/* end confdefs.h. */
29190#include <stddef.h>
29191int
29192main ()
29193{
29194
29195 return 0; }
29196
29197 struct Foo { void foo(size_t); void foo(unsigned long); };
29198
29199 int bar() {
29200
29201 ;
29202 return 0;
29203}
29204_ACEOF
29205rm -f conftest.$ac_objext
29206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29207 (eval $ac_compile) 2>conftest.er1
a848cd7e 29208 ac_status=$?
ac1cb8d3
VS
29209 grep -v '^ *+' conftest.er1 >conftest.err
29210 rm -f conftest.er1
29211 cat conftest.err >&5
a848cd7e
SC
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
89be85c2
VS
29214 { ac_try='test -z "$ac_cxx_werror_flag"
29215 || test ! -s conftest.err'
ac1cb8d3
VS
29216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217 (eval $ac_try) 2>&5
29218 ac_status=$?
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; } &&
29221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223 (eval $ac_try) 2>&5
29224 ac_status=$?
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); }; }; then
29227 wx_cv_size_t_is_ulong=no
29228else
29229 echo "$as_me: failed program was:" >&5
29230sed 's/^/| /' conftest.$ac_ext >&5
29231
29232wx_cv_size_t_is_ulong=yes
29233
29234fi
ac1cb8d3 29235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29236
29237fi
29238echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29239echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29240
29241 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29242 cat >>confdefs.h <<\_ACEOF
29243#define wxSIZE_T_IS_ULONG 1
29244_ACEOF
29245
29246 fi
29247fi
29248
29249ac_ext=c
29250ac_cpp='$CPP $CPPFLAGS'
29251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29253ac_compiler_gnu=$ac_cv_c_compiler_gnu
29254
29255
29256
29257echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29258echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29259if test "${wx_cv_struct_pw_gecos+set}" = set; then
29260 echo $ECHO_N "(cached) $ECHO_C" >&6
29261else
29262
29263 cat >conftest.$ac_ext <<_ACEOF
29264/* confdefs.h. */
29265_ACEOF
29266cat confdefs.h >>conftest.$ac_ext
29267cat >>conftest.$ac_ext <<_ACEOF
29268/* end confdefs.h. */
29269#include <pwd.h>
29270int
29271main ()
29272{
29273
29274 char *p;
29275 struct passwd *pw;
29276 p = pw->pw_gecos;
29277
29278 ;
29279 return 0;
29280}
29281_ACEOF
29282rm -f conftest.$ac_objext
29283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29284 (eval $ac_compile) 2>conftest.er1
a848cd7e 29285 ac_status=$?
ac1cb8d3
VS
29286 grep -v '^ *+' conftest.er1 >conftest.err
29287 rm -f conftest.er1
29288 cat conftest.err >&5
a848cd7e
SC
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } &&
89be85c2
VS
29291 { ac_try='test -z "$ac_c_werror_flag"
29292 || test ! -s conftest.err'
ac1cb8d3
VS
29293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294 (eval $ac_try) 2>&5
29295 ac_status=$?
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300 (eval $ac_try) 2>&5
29301 ac_status=$?
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); }; }; then
29304
29305 wx_cv_struct_pw_gecos=yes
29306
29307else
29308 echo "$as_me: failed program was:" >&5
29309sed 's/^/| /' conftest.$ac_ext >&5
29310
29311
29312 wx_cv_struct_pw_gecos=no
29313
29314
29315fi
ac1cb8d3 29316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29317
29318
29319fi
29320echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29321echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29322
29323if test "$wx_cv_struct_pw_gecos" = "yes"; then
29324 cat >>confdefs.h <<\_ACEOF
29325#define HAVE_PW_GECOS 1
29326_ACEOF
29327
29328fi
29329
29330
29331if test "$wx_cv_sizeof_wchar_t" != "0"; then
29332 cat >>confdefs.h <<\_ACEOF
29333#define wxUSE_WCHAR_T 1
29334_ACEOF
29335
29336
29337 WCSLEN_FOUND=0
29338 WCHAR_LINK=
29339
29340for ac_func in wcslen
29341do
29342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29343echo "$as_me:$LINENO: checking for $ac_func" >&5
29344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29345if eval "test \"\${$as_ac_var+set}\" = set"; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29347else
29348 cat >conftest.$ac_ext <<_ACEOF
29349/* confdefs.h. */
29350_ACEOF
29351cat confdefs.h >>conftest.$ac_ext
29352cat >>conftest.$ac_ext <<_ACEOF
29353/* end confdefs.h. */
ac1cb8d3
VS
29354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29356#define $ac_func innocuous_$ac_func
29357
a848cd7e
SC
29358/* System header to define __stub macros and hopefully few prototypes,
29359 which can conflict with char $ac_func (); below.
29360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29361 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29362
a848cd7e
SC
29363#ifdef __STDC__
29364# include <limits.h>
29365#else
29366# include <assert.h>
29367#endif
ac1cb8d3
VS
29368
29369#undef $ac_func
29370
a848cd7e
SC
29371/* Override any gcc2 internal prototype to avoid an error. */
29372#ifdef __cplusplus
29373extern "C"
29374{
29375#endif
29376/* We use char because int might match the return type of a gcc2
29377 builtin and then its argument prototype would still apply. */
29378char $ac_func ();
29379/* The GNU C library defines this for functions which it implements
29380 to always fail with ENOSYS. Some functions are actually named
29381 something starting with __ and the normal name is an alias. */
29382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29383choke me
29384#else
29385char (*f) () = $ac_func;
29386#endif
29387#ifdef __cplusplus
29388}
29389#endif
29390
29391int
29392main ()
29393{
29394return f != $ac_func;
29395 ;
29396 return 0;
29397}
29398_ACEOF
29399rm -f conftest.$ac_objext conftest$ac_exeext
29400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29401 (eval $ac_link) 2>conftest.er1
a848cd7e 29402 ac_status=$?
ac1cb8d3
VS
29403 grep -v '^ *+' conftest.er1 >conftest.err
29404 rm -f conftest.er1
29405 cat conftest.err >&5
a848cd7e
SC
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); } &&
89be85c2
VS
29408 { ac_try='test -z "$ac_c_werror_flag"
29409 || test ! -s conftest.err'
ac1cb8d3
VS
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29412 ac_status=$?
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; } &&
29415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29418 ac_status=$?
29419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; }; then
29421 eval "$as_ac_var=yes"
29422else
29423 echo "$as_me: failed program was:" >&5
29424sed 's/^/| /' conftest.$ac_ext >&5
29425
29426eval "$as_ac_var=no"
29427fi
ac1cb8d3
VS
29428rm -f conftest.err conftest.$ac_objext \
29429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29430fi
29431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29433if test `eval echo '${'$as_ac_var'}'` = yes; then
29434 cat >>confdefs.h <<_ACEOF
29435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29436_ACEOF
29437 WCSLEN_FOUND=1
29438fi
29439done
29440
29441
29442 if test "$WCSLEN_FOUND" = 0; then
29443 if test "$TOOLKIT" = "MSW"; then
29444 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29445echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29446if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29448else
29449 ac_check_lib_save_LIBS=$LIBS
29450LIBS="-lmsvcrt $LIBS"
29451cat >conftest.$ac_ext <<_ACEOF
29452/* confdefs.h. */
29453_ACEOF
29454cat confdefs.h >>conftest.$ac_ext
29455cat >>conftest.$ac_ext <<_ACEOF
29456/* end confdefs.h. */
29457
29458/* Override any gcc2 internal prototype to avoid an error. */
29459#ifdef __cplusplus
29460extern "C"
29461#endif
29462/* We use char because int might match the return type of a gcc2
29463 builtin and then its argument prototype would still apply. */
29464char wcslen ();
29465int
29466main ()
29467{
29468wcslen ();
29469 ;
29470 return 0;
29471}
29472_ACEOF
29473rm -f conftest.$ac_objext conftest$ac_exeext
29474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29475 (eval $ac_link) 2>conftest.er1
a848cd7e 29476 ac_status=$?
ac1cb8d3
VS
29477 grep -v '^ *+' conftest.er1 >conftest.err
29478 rm -f conftest.er1
29479 cat conftest.err >&5
a848cd7e
SC
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } &&
89be85c2
VS
29482 { ac_try='test -z "$ac_c_werror_flag"
29483 || test ! -s conftest.err'
ac1cb8d3
VS
29484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485 (eval $ac_try) 2>&5
29486 ac_status=$?
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; } &&
29489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29491 (eval $ac_try) 2>&5
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); }; }; then
29495 ac_cv_lib_msvcrt_wcslen=yes
29496else
29497 echo "$as_me: failed program was:" >&5
29498sed 's/^/| /' conftest.$ac_ext >&5
29499
29500ac_cv_lib_msvcrt_wcslen=no
29501fi
ac1cb8d3
VS
29502rm -f conftest.err conftest.$ac_objext \
29503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29504LIBS=$ac_check_lib_save_LIBS
29505fi
29506echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29507echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29508if test $ac_cv_lib_msvcrt_wcslen = yes; then
29509 WCHAR_OK=1
29510fi
29511
29512 else
29513 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29514echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29515if test "${ac_cv_lib_w_wcslen+set}" = set; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29517else
29518 ac_check_lib_save_LIBS=$LIBS
29519LIBS="-lw $LIBS"
29520cat >conftest.$ac_ext <<_ACEOF
29521/* confdefs.h. */
29522_ACEOF
29523cat confdefs.h >>conftest.$ac_ext
29524cat >>conftest.$ac_ext <<_ACEOF
29525/* end confdefs.h. */
29526
29527/* Override any gcc2 internal prototype to avoid an error. */
29528#ifdef __cplusplus
29529extern "C"
29530#endif
29531/* We use char because int might match the return type of a gcc2
29532 builtin and then its argument prototype would still apply. */
29533char wcslen ();
29534int
29535main ()
29536{
29537wcslen ();
29538 ;
29539 return 0;
29540}
29541_ACEOF
29542rm -f conftest.$ac_objext conftest$ac_exeext
29543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29544 (eval $ac_link) 2>conftest.er1
a848cd7e 29545 ac_status=$?
ac1cb8d3
VS
29546 grep -v '^ *+' conftest.er1 >conftest.err
29547 rm -f conftest.er1
29548 cat conftest.err >&5
a848cd7e
SC
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } &&
89be85c2
VS
29551 { ac_try='test -z "$ac_c_werror_flag"
29552 || test ! -s conftest.err'
ac1cb8d3
VS
29553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554 (eval $ac_try) 2>&5
29555 ac_status=$?
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); }; } &&
29558 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29560 (eval $ac_try) 2>&5
29561 ac_status=$?
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); }; }; then
29564 ac_cv_lib_w_wcslen=yes
29565else
29566 echo "$as_me: failed program was:" >&5
29567sed 's/^/| /' conftest.$ac_ext >&5
29568
29569ac_cv_lib_w_wcslen=no
29570fi
ac1cb8d3
VS
29571rm -f conftest.err conftest.$ac_objext \
29572 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29573LIBS=$ac_check_lib_save_LIBS
29574fi
29575echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29576echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29577if test $ac_cv_lib_w_wcslen = yes; then
29578
29579 WCHAR_LINK=" -lw"
29580 WCSLEN_FOUND=1
29581
29582fi
29583
29584 fi
29585 fi
29586
29587 if test "$WCSLEN_FOUND" = 1; then
29588 cat >>confdefs.h <<\_ACEOF
29589#define HAVE_WCSLEN 1
29590_ACEOF
29591
29592 fi
29593
81f90336 29594 if test "$USE_HPUX" = 1; then
473276a9
VS
29595 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29596 fi
29597
a848cd7e
SC
29598
29599for ac_func in wcsrtombs
29600do
29601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29602echo "$as_me:$LINENO: checking for $ac_func" >&5
29603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29604if eval "test \"\${$as_ac_var+set}\" = set"; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29606else
29607 cat >conftest.$ac_ext <<_ACEOF
29608/* confdefs.h. */
29609_ACEOF
29610cat confdefs.h >>conftest.$ac_ext
29611cat >>conftest.$ac_ext <<_ACEOF
29612/* end confdefs.h. */
ac1cb8d3
VS
29613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29615#define $ac_func innocuous_$ac_func
29616
a848cd7e
SC
29617/* System header to define __stub macros and hopefully few prototypes,
29618 which can conflict with char $ac_func (); below.
29619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29621
a848cd7e
SC
29622#ifdef __STDC__
29623# include <limits.h>
29624#else
29625# include <assert.h>
29626#endif
ac1cb8d3
VS
29627
29628#undef $ac_func
29629
a848cd7e
SC
29630/* Override any gcc2 internal prototype to avoid an error. */
29631#ifdef __cplusplus
29632extern "C"
29633{
29634#endif
29635/* We use char because int might match the return type of a gcc2
29636 builtin and then its argument prototype would still apply. */
29637char $ac_func ();
29638/* The GNU C library defines this for functions which it implements
29639 to always fail with ENOSYS. Some functions are actually named
29640 something starting with __ and the normal name is an alias. */
29641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29642choke me
29643#else
29644char (*f) () = $ac_func;
29645#endif
29646#ifdef __cplusplus
29647}
29648#endif
29649
29650int
29651main ()
29652{
29653return f != $ac_func;
29654 ;
29655 return 0;
29656}
29657_ACEOF
29658rm -f conftest.$ac_objext conftest$ac_exeext
29659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29660 (eval $ac_link) 2>conftest.er1
a848cd7e 29661 ac_status=$?
ac1cb8d3
VS
29662 grep -v '^ *+' conftest.er1 >conftest.err
29663 rm -f conftest.er1
29664 cat conftest.err >&5
a848cd7e
SC
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); } &&
89be85c2
VS
29667 { ac_try='test -z "$ac_c_werror_flag"
29668 || test ! -s conftest.err'
ac1cb8d3
VS
29669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670 (eval $ac_try) 2>&5
29671 ac_status=$?
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; } &&
29674 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676 (eval $ac_try) 2>&5
29677 ac_status=$?
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; }; then
29680 eval "$as_ac_var=yes"
29681else
29682 echo "$as_me: failed program was:" >&5
29683sed 's/^/| /' conftest.$ac_ext >&5
29684
29685eval "$as_ac_var=no"
29686fi
ac1cb8d3
VS
29687rm -f conftest.err conftest.$ac_objext \
29688 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29689fi
29690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29692if test `eval echo '${'$as_ac_var'}'` = yes; then
29693 cat >>confdefs.h <<_ACEOF
29694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29695_ACEOF
29696
29697fi
29698done
29699
29700else
29701 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29702echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29703fi
29704
29705
29706
29707ac_ext=cc
29708ac_cpp='$CXXCPP $CPPFLAGS'
29709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29712
29713
29714
29715for ac_func in vsnprintf
29716do
29717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29718echo "$as_me:$LINENO: checking for $ac_func" >&5
29719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29720if eval "test \"\${$as_ac_var+set}\" = set"; then
29721 echo $ECHO_N "(cached) $ECHO_C" >&6
29722else
29723 cat >conftest.$ac_ext <<_ACEOF
29724/* confdefs.h. */
29725_ACEOF
29726cat confdefs.h >>conftest.$ac_ext
29727cat >>conftest.$ac_ext <<_ACEOF
29728/* end confdefs.h. */
ac1cb8d3
VS
29729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29731#define $ac_func innocuous_$ac_func
29732
a848cd7e
SC
29733/* System header to define __stub macros and hopefully few prototypes,
29734 which can conflict with char $ac_func (); below.
29735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29736 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29737
a848cd7e
SC
29738#ifdef __STDC__
29739# include <limits.h>
29740#else
29741# include <assert.h>
29742#endif
ac1cb8d3
VS
29743
29744#undef $ac_func
29745
a848cd7e
SC
29746/* Override any gcc2 internal prototype to avoid an error. */
29747#ifdef __cplusplus
29748extern "C"
29749{
29750#endif
29751/* We use char because int might match the return type of a gcc2
29752 builtin and then its argument prototype would still apply. */
29753char $ac_func ();
29754/* The GNU C library defines this for functions which it implements
29755 to always fail with ENOSYS. Some functions are actually named
29756 something starting with __ and the normal name is an alias. */
29757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29758choke me
29759#else
29760char (*f) () = $ac_func;
29761#endif
29762#ifdef __cplusplus
29763}
29764#endif
29765
29766int
29767main ()
29768{
29769return f != $ac_func;
29770 ;
29771 return 0;
29772}
29773_ACEOF
29774rm -f conftest.$ac_objext conftest$ac_exeext
29775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29776 (eval $ac_link) 2>conftest.er1
a848cd7e 29777 ac_status=$?
ac1cb8d3
VS
29778 grep -v '^ *+' conftest.er1 >conftest.err
29779 rm -f conftest.er1
29780 cat conftest.err >&5
a848cd7e
SC
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); } &&
89be85c2
VS
29783 { ac_try='test -z "$ac_cxx_werror_flag"
29784 || test ! -s conftest.err'
ac1cb8d3
VS
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; } &&
29790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; }; then
29796 eval "$as_ac_var=yes"
29797else
29798 echo "$as_me: failed program was:" >&5
29799sed 's/^/| /' conftest.$ac_ext >&5
29800
29801eval "$as_ac_var=no"
29802fi
ac1cb8d3
VS
29803rm -f conftest.err conftest.$ac_objext \
29804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29805fi
29806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29808if test `eval echo '${'$as_ac_var'}'` = yes; then
29809 cat >>confdefs.h <<_ACEOF
29810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29811_ACEOF
29812
29813fi
29814done
29815
29816
29817if test "$ac_cv_func_vsnprintf" = "yes"; then
29818 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29819echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29820if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29821 echo $ECHO_N "(cached) $ECHO_C" >&6
29822else
29823
29824 cat >conftest.$ac_ext <<_ACEOF
29825/* confdefs.h. */
29826_ACEOF
29827cat confdefs.h >>conftest.$ac_ext
29828cat >>conftest.$ac_ext <<_ACEOF
29829/* end confdefs.h. */
29830
29831 #include <stdio.h>
29832 #include <stdarg.h>
29833
29834int
29835main ()
29836{
29837
29838 char *buf;
29839 va_list ap;
29840 vsnprintf(buf, 10u, "%s", ap);
29841
29842 ;
29843 return 0;
29844}
29845_ACEOF
29846rm -f conftest.$ac_objext
29847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29848 (eval $ac_compile) 2>conftest.er1
a848cd7e 29849 ac_status=$?
ac1cb8d3
VS
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
a848cd7e
SC
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } &&
89be85c2
VS
29855 { ac_try='test -z "$ac_cxx_werror_flag"
29856 || test ! -s conftest.err'
ac1cb8d3
VS
29857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858 (eval $ac_try) 2>&5
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; } &&
29862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864 (eval $ac_try) 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; }; then
29868 wx_cv_func_vsnprintf_decl=yes
29869else
29870 echo "$as_me: failed program was:" >&5
29871sed 's/^/| /' conftest.$ac_ext >&5
29872
c122b164
DE
29873
29874 cat >conftest.$ac_ext <<_ACEOF
29875/* confdefs.h. */
29876_ACEOF
29877cat confdefs.h >>conftest.$ac_ext
29878cat >>conftest.$ac_ext <<_ACEOF
29879/* end confdefs.h. */
29880
29881 #include <stdio.h>
29882 #include <stdarg.h>
29883 using namespace std;
29884
29885int
29886main ()
29887{
29888
29889 char *buf;
29890 va_list ap;
29891 vsnprintf(buf, 10u, "%s", ap);
29892
29893 ;
29894 return 0;
29895}
29896_ACEOF
29897rm -f conftest.$ac_objext
29898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29899 (eval $ac_compile) 2>conftest.er1
29900 ac_status=$?
29901 grep -v '^ *+' conftest.er1 >conftest.err
29902 rm -f conftest.er1
29903 cat conftest.err >&5
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); } &&
89be85c2
VS
29906 { ac_try='test -z "$ac_cxx_werror_flag"
29907 || test ! -s conftest.err'
c122b164
DE
29908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29909 (eval $ac_try) 2>&5
29910 ac_status=$?
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); }; } &&
29913 { ac_try='test -s conftest.$ac_objext'
29914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915 (eval $ac_try) 2>&5
29916 ac_status=$?
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; }; then
29919 wx_cv_func_vsnprintf_decl=yes
29920else
29921 echo "$as_me: failed program was:" >&5
29922sed 's/^/| /' conftest.$ac_ext >&5
29923
a848cd7e
SC
29924wx_cv_func_vsnprintf_decl=no
29925
29926fi
ac1cb8d3 29927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29928
29929
c122b164
DE
29930fi
29931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29932
29933
a848cd7e
SC
29934fi
29935echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29936echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29937
29938 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29939 cat >>confdefs.h <<\_ACEOF
29940#define HAVE_VSNPRINTF_DECL 1
29941_ACEOF
29942
29943 fi
29944fi
29945
29946if test "$wxUSE_UNICODE" = yes; then
29947
29948
29949
fbe47c7b
VS
29950
29951
29952
29953for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29954do
29955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29956echo "$as_me:$LINENO: checking for $ac_func" >&5
29957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29958if eval "test \"\${$as_ac_var+set}\" = set"; then
29959 echo $ECHO_N "(cached) $ECHO_C" >&6
29960else
29961 cat >conftest.$ac_ext <<_ACEOF
29962/* confdefs.h. */
29963_ACEOF
29964cat confdefs.h >>conftest.$ac_ext
29965cat >>conftest.$ac_ext <<_ACEOF
29966/* end confdefs.h. */
ac1cb8d3
VS
29967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29969#define $ac_func innocuous_$ac_func
29970
a848cd7e
SC
29971/* System header to define __stub macros and hopefully few prototypes,
29972 which can conflict with char $ac_func (); below.
29973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29974 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29975
a848cd7e
SC
29976#ifdef __STDC__
29977# include <limits.h>
29978#else
29979# include <assert.h>
29980#endif
ac1cb8d3
VS
29981
29982#undef $ac_func
29983
a848cd7e
SC
29984/* Override any gcc2 internal prototype to avoid an error. */
29985#ifdef __cplusplus
29986extern "C"
29987{
29988#endif
29989/* We use char because int might match the return type of a gcc2
29990 builtin and then its argument prototype would still apply. */
29991char $ac_func ();
29992/* The GNU C library defines this for functions which it implements
29993 to always fail with ENOSYS. Some functions are actually named
29994 something starting with __ and the normal name is an alias. */
29995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29996choke me
29997#else
29998char (*f) () = $ac_func;
29999#endif
30000#ifdef __cplusplus
30001}
30002#endif
30003
30004int
30005main ()
30006{
30007return f != $ac_func;
30008 ;
30009 return 0;
30010}
30011_ACEOF
30012rm -f conftest.$ac_objext conftest$ac_exeext
30013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30014 (eval $ac_link) 2>conftest.er1
a848cd7e 30015 ac_status=$?
ac1cb8d3
VS
30016 grep -v '^ *+' conftest.er1 >conftest.err
30017 rm -f conftest.er1
30018 cat conftest.err >&5
a848cd7e
SC
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); } &&
89be85c2
VS
30021 { ac_try='test -z "$ac_cxx_werror_flag"
30022 || test ! -s conftest.err'
ac1cb8d3
VS
30023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024 (eval $ac_try) 2>&5
30025 ac_status=$?
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; } &&
30028 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30030 (eval $ac_try) 2>&5
30031 ac_status=$?
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); }; }; then
30034 eval "$as_ac_var=yes"
30035else
30036 echo "$as_me: failed program was:" >&5
30037sed 's/^/| /' conftest.$ac_ext >&5
30038
30039eval "$as_ac_var=no"
30040fi
ac1cb8d3
VS
30041rm -f conftest.err conftest.$ac_objext \
30042 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30043fi
30044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30046if test `eval echo '${'$as_ac_var'}'` = yes; then
30047 cat >>confdefs.h <<_ACEOF
30048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30049_ACEOF
30050
30051fi
30052done
30053
30054
30055 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30056echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30057 cat >conftest.$ac_ext <<_ACEOF
30058/* confdefs.h. */
30059_ACEOF
30060cat confdefs.h >>conftest.$ac_ext
30061cat >>conftest.$ac_ext <<_ACEOF
30062/* end confdefs.h. */
30063#include <wchar.h>
30064int
30065main ()
30066{
30067&_vsnwprintf;
30068 ;
30069 return 0;
30070}
30071_ACEOF
30072rm -f conftest.$ac_objext
30073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30074 (eval $ac_compile) 2>conftest.er1
a848cd7e 30075 ac_status=$?
ac1cb8d3
VS
30076 grep -v '^ *+' conftest.er1 >conftest.err
30077 rm -f conftest.er1
30078 cat conftest.err >&5
a848cd7e
SC
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); } &&
89be85c2
VS
30081 { ac_try='test -z "$ac_cxx_werror_flag"
30082 || test ! -s conftest.err'
ac1cb8d3
VS
30083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084 (eval $ac_try) 2>&5
30085 ac_status=$?
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); }; } &&
30088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090 (eval $ac_try) 2>&5
30091 ac_status=$?
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); }; }; then
30094 echo "$as_me:$LINENO: result: yes" >&5
30095echo "${ECHO_T}yes" >&6
30096 cat >>confdefs.h <<\_ACEOF
30097#define HAVE__VSNWPRINTF 1
30098_ACEOF
30099
30100else
30101 echo "$as_me: failed program was:" >&5
30102sed 's/^/| /' conftest.$ac_ext >&5
30103
30104echo "$as_me:$LINENO: result: no" >&5
30105echo "${ECHO_T}no" >&6
30106fi
ac1cb8d3 30107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30108fi
30109
30110ac_ext=c
30111ac_cpp='$CPP $CPPFLAGS'
30112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30114ac_compiler_gnu=$ac_cv_c_compiler_gnu
30115
30116
30117
30118
30119if test "$TOOLKIT" != "MSW"; then
30120
30121
30122
30123
30124ac_ext=cc
30125ac_cpp='$CXXCPP $CPPFLAGS'
30126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30129
30130
30131
30132
30133# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30134if test "${with_libiconv_prefix+set}" = set; then
30135 withval="$with_libiconv_prefix"
30136
30137 for dir in `echo "$withval" | tr : ' '`; do
30138 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30139 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30140 done
30141
30142fi;
30143
30144 echo "$as_me:$LINENO: checking for iconv" >&5
30145echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30146if test "${am_cv_func_iconv+set}" = set; then
30147 echo $ECHO_N "(cached) $ECHO_C" >&6
30148else
30149
30150 am_cv_func_iconv="no, consider installing GNU libiconv"
30151 am_cv_lib_iconv=no
30152 cat >conftest.$ac_ext <<_ACEOF
30153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
30158#include <stdlib.h>
30159#include <iconv.h>
30160int
30161main ()
30162{
30163iconv_t cd = iconv_open("","");
30164 iconv(cd,NULL,NULL,NULL,NULL);
30165 iconv_close(cd);
30166 ;
30167 return 0;
30168}
30169_ACEOF
30170rm -f conftest.$ac_objext conftest$ac_exeext
30171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30172 (eval $ac_link) 2>conftest.er1
a848cd7e 30173 ac_status=$?
ac1cb8d3
VS
30174 grep -v '^ *+' conftest.er1 >conftest.err
30175 rm -f conftest.er1
30176 cat conftest.err >&5
a848cd7e
SC
30177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178 (exit $ac_status); } &&
89be85c2
VS
30179 { ac_try='test -z "$ac_cxx_werror_flag"
30180 || test ! -s conftest.err'
ac1cb8d3
VS
30181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30182 (eval $ac_try) 2>&5
30183 ac_status=$?
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); }; } &&
30186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30188 (eval $ac_try) 2>&5
30189 ac_status=$?
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); }; }; then
30192 am_cv_func_iconv=yes
30193else
30194 echo "$as_me: failed program was:" >&5
30195sed 's/^/| /' conftest.$ac_ext >&5
30196
30197fi
ac1cb8d3
VS
30198rm -f conftest.err conftest.$ac_objext \
30199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30200 if test "$am_cv_func_iconv" != yes; then
30201 am_save_LIBS="$LIBS"
30202 LIBS="$LIBS -liconv"
30203 cat >conftest.$ac_ext <<_ACEOF
30204/* confdefs.h. */
30205_ACEOF
30206cat confdefs.h >>conftest.$ac_ext
30207cat >>conftest.$ac_ext <<_ACEOF
30208/* end confdefs.h. */
30209#include <stdlib.h>
30210#include <iconv.h>
30211int
30212main ()
30213{
30214iconv_t cd = iconv_open("","");
30215 iconv(cd,NULL,NULL,NULL,NULL);
30216 iconv_close(cd);
30217 ;
30218 return 0;
30219}
30220_ACEOF
30221rm -f conftest.$ac_objext conftest$ac_exeext
30222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30223 (eval $ac_link) 2>conftest.er1
a848cd7e 30224 ac_status=$?
ac1cb8d3
VS
30225 grep -v '^ *+' conftest.er1 >conftest.err
30226 rm -f conftest.er1
30227 cat conftest.err >&5
a848cd7e
SC
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); } &&
89be85c2
VS
30230 { ac_try='test -z "$ac_cxx_werror_flag"
30231 || test ! -s conftest.err'
ac1cb8d3
VS
30232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30233 (eval $ac_try) 2>&5
30234 ac_status=$?
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); }; } &&
30237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30239 (eval $ac_try) 2>&5
30240 ac_status=$?
30241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242 (exit $ac_status); }; }; then
30243 am_cv_lib_iconv=yes
30244 am_cv_func_iconv=yes
30245else
30246 echo "$as_me: failed program was:" >&5
30247sed 's/^/| /' conftest.$ac_ext >&5
30248
30249fi
ac1cb8d3
VS
30250rm -f conftest.err conftest.$ac_objext \
30251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30252 LIBS="$am_save_LIBS"
30253 fi
30254
30255fi
30256echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30257echo "${ECHO_T}$am_cv_func_iconv" >&6
30258 if test "$am_cv_func_iconv" = yes; then
30259
30260cat >>confdefs.h <<\_ACEOF
30261#define HAVE_ICONV 1
30262_ACEOF
30263
30264 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30265echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30266if test "${wx_cv_func_iconv_const+set}" = set; then
30267 echo $ECHO_N "(cached) $ECHO_C" >&6
30268else
30269 cat >conftest.$ac_ext <<_ACEOF
30270/* confdefs.h. */
30271_ACEOF
30272cat confdefs.h >>conftest.$ac_ext
30273cat >>conftest.$ac_ext <<_ACEOF
30274/* end confdefs.h. */
30275
30276#include <stdlib.h>
30277#include <iconv.h>
30278extern
30279#ifdef __cplusplus
30280"C"
30281#endif
30282#if defined(__STDC__) || defined(__cplusplus)
30283size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30284#else
30285size_t iconv();
30286#endif
30287
30288int
30289main ()
30290{
30291
30292 ;
30293 return 0;
30294}
30295_ACEOF
30296rm -f conftest.$ac_objext
30297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30298 (eval $ac_compile) 2>conftest.er1
a848cd7e 30299 ac_status=$?
ac1cb8d3
VS
30300 grep -v '^ *+' conftest.er1 >conftest.err
30301 rm -f conftest.er1
30302 cat conftest.err >&5
a848cd7e
SC
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } &&
89be85c2
VS
30305 { ac_try='test -z "$ac_cxx_werror_flag"
30306 || test ! -s conftest.err'
ac1cb8d3
VS
30307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30308 (eval $ac_try) 2>&5
30309 ac_status=$?
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); }; } &&
30312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30314 (eval $ac_try) 2>&5
30315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; }; then
30318 wx_cv_func_iconv_const="no"
30319else
30320 echo "$as_me: failed program was:" >&5
30321sed 's/^/| /' conftest.$ac_ext >&5
30322
30323wx_cv_func_iconv_const="yes"
30324
30325fi
ac1cb8d3 30326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30327
30328fi
30329echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30330echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30331
30332 iconv_const=
30333 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30334 iconv_const="const"
30335 fi
30336
30337
30338cat >>confdefs.h <<_ACEOF
30339#define ICONV_CONST $iconv_const
30340_ACEOF
30341
30342 fi
30343 LIBICONV=
30344 if test "$am_cv_lib_iconv" = yes; then
30345 LIBICONV="-liconv"
30346 fi
30347
30348
30349LIBS="$LIBICONV $LIBS"
30350ac_ext=c
30351ac_cpp='$CPP $CPPFLAGS'
30352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30354ac_compiler_gnu=$ac_cv_c_compiler_gnu
30355
30356
30357if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30358
30359for ac_func in sigaction
30360do
30361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30362echo "$as_me:$LINENO: checking for $ac_func" >&5
30363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30364if eval "test \"\${$as_ac_var+set}\" = set"; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30366else
30367 cat >conftest.$ac_ext <<_ACEOF
30368/* confdefs.h. */
30369_ACEOF
30370cat confdefs.h >>conftest.$ac_ext
30371cat >>conftest.$ac_ext <<_ACEOF
30372/* end confdefs.h. */
ac1cb8d3
VS
30373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30375#define $ac_func innocuous_$ac_func
30376
a848cd7e
SC
30377/* System header to define __stub macros and hopefully few prototypes,
30378 which can conflict with char $ac_func (); below.
30379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30380 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30381
a848cd7e
SC
30382#ifdef __STDC__
30383# include <limits.h>
30384#else
30385# include <assert.h>
30386#endif
ac1cb8d3
VS
30387
30388#undef $ac_func
30389
a848cd7e
SC
30390/* Override any gcc2 internal prototype to avoid an error. */
30391#ifdef __cplusplus
30392extern "C"
30393{
30394#endif
30395/* We use char because int might match the return type of a gcc2
30396 builtin and then its argument prototype would still apply. */
30397char $ac_func ();
30398/* The GNU C library defines this for functions which it implements
30399 to always fail with ENOSYS. Some functions are actually named
30400 something starting with __ and the normal name is an alias. */
30401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30402choke me
30403#else
30404char (*f) () = $ac_func;
30405#endif
30406#ifdef __cplusplus
30407}
30408#endif
30409
30410int
30411main ()
30412{
30413return f != $ac_func;
30414 ;
30415 return 0;
30416}
30417_ACEOF
30418rm -f conftest.$ac_objext conftest$ac_exeext
30419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30420 (eval $ac_link) 2>conftest.er1
a848cd7e 30421 ac_status=$?
ac1cb8d3
VS
30422 grep -v '^ *+' conftest.er1 >conftest.err
30423 rm -f conftest.er1
30424 cat conftest.err >&5
a848cd7e
SC
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); } &&
89be85c2
VS
30427 { ac_try='test -z "$ac_c_werror_flag"
30428 || test ! -s conftest.err'
ac1cb8d3
VS
30429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430 (eval $ac_try) 2>&5
30431 ac_status=$?
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; } &&
30434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 eval "$as_ac_var=yes"
30441else
30442 echo "$as_me: failed program was:" >&5
30443sed 's/^/| /' conftest.$ac_ext >&5
30444
30445eval "$as_ac_var=no"
30446fi
ac1cb8d3
VS
30447rm -f conftest.err conftest.$ac_objext \
30448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30449fi
30450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30452if test `eval echo '${'$as_ac_var'}'` = yes; then
30453 cat >>confdefs.h <<_ACEOF
30454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30455_ACEOF
30456
30457fi
30458done
30459
30460
30461 if test "$ac_cv_func_sigaction" = "no"; then
30462 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30463echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30464 wxUSE_ON_FATAL_EXCEPTION=no
30465 fi
30466
30467 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30468
30469
30470 ac_ext=cc
30471ac_cpp='$CXXCPP $CPPFLAGS'
30472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30475
30476
30477 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30478echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30479if test "${wx_cv_type_sa_handler+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30481else
30482
30483 cat >conftest.$ac_ext <<_ACEOF
30484/* confdefs.h. */
30485_ACEOF
30486cat confdefs.h >>conftest.$ac_ext
30487cat >>conftest.$ac_ext <<_ACEOF
30488/* end confdefs.h. */
30489#include <signal.h>
30490int
30491main ()
30492{
30493
30494 extern void testSigHandler(int);
30495
30496 struct sigaction sa;
30497 sa.sa_handler = testSigHandler;
30498
30499 ;
30500 return 0;
30501}
30502_ACEOF
30503rm -f conftest.$ac_objext
30504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30505 (eval $ac_compile) 2>conftest.er1
a848cd7e 30506 ac_status=$?
ac1cb8d3
VS
30507 grep -v '^ *+' conftest.er1 >conftest.err
30508 rm -f conftest.er1
30509 cat conftest.err >&5
a848cd7e
SC
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); } &&
89be85c2
VS
30512 { ac_try='test -z "$ac_cxx_werror_flag"
30513 || test ! -s conftest.err'
ac1cb8d3
VS
30514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30515 (eval $ac_try) 2>&5
30516 ac_status=$?
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); }; } &&
30519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521 (eval $ac_try) 2>&5
30522 ac_status=$?
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; }; then
30525
30526 wx_cv_type_sa_handler=int
30527
30528else
30529 echo "$as_me: failed program was:" >&5
30530sed 's/^/| /' conftest.$ac_ext >&5
30531
30532
30533 wx_cv_type_sa_handler=void
30534
30535fi
ac1cb8d3 30536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30537
30538fi
30539echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30540echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30541
30542 ac_ext=c
30543ac_cpp='$CPP $CPPFLAGS'
30544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30546ac_compiler_gnu=$ac_cv_c_compiler_gnu
30547
30548
30549 cat >>confdefs.h <<_ACEOF
30550#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30551_ACEOF
30552
30553 fi
30554fi
30555
eaff0f0d
VZ
30556if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30557
30558
30559 ac_ext=cc
30560ac_cpp='$CXXCPP $CPPFLAGS'
30561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30564
30565
30566 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30567echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30568if test "${wx_cv_func_backtrace+set}" = set; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30570else
30571
30572 cat >conftest.$ac_ext <<_ACEOF
30573/* confdefs.h. */
30574_ACEOF
30575cat confdefs.h >>conftest.$ac_ext
30576cat >>conftest.$ac_ext <<_ACEOF
30577/* end confdefs.h. */
30578#include <execinfo.h>
30579int
30580main ()
30581{
30582
30583 void *trace[1];
30584 char **messages;
30585
30586 backtrace(trace, 1);
30587 messages = backtrace_symbols(trace, 1);
30588
30589 ;
30590 return 0;
30591}
30592_ACEOF
30593rm -f conftest.$ac_objext
30594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30595 (eval $ac_compile) 2>conftest.er1
30596 ac_status=$?
30597 grep -v '^ *+' conftest.er1 >conftest.err
30598 rm -f conftest.er1
30599 cat conftest.err >&5
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); } &&
89be85c2
VS
30602 { ac_try='test -z "$ac_cxx_werror_flag"
30603 || test ! -s conftest.err'
eaff0f0d
VZ
30604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605 (eval $ac_try) 2>&5
30606 ac_status=$?
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; } &&
30609 { ac_try='test -s conftest.$ac_objext'
30610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30611 (eval $ac_try) 2>&5
30612 ac_status=$?
30613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614 (exit $ac_status); }; }; then
30615 wx_cv_func_backtrace=yes
30616else
30617 echo "$as_me: failed program was:" >&5
30618sed 's/^/| /' conftest.$ac_ext >&5
30619
30620wx_cv_func_backtrace=no
30621
30622fi
30623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30624
30625
30626fi
30627echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30628echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30629
30630
30631 if test "$wx_cv_func_backtrace" = "no"; then
30632 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30633echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30634 wxUSE_STACKWALKER=no
30635 else
30636 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30637echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30638if test "${wx_cv_func_cxa_demangle+set}" = set; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30640else
30641
30642 cat >conftest.$ac_ext <<_ACEOF
30643/* confdefs.h. */
30644_ACEOF
30645cat confdefs.h >>conftest.$ac_ext
30646cat >>conftest.$ac_ext <<_ACEOF
30647/* end confdefs.h. */
30648#include <cxxabi.h>
30649int
30650main ()
30651{
30652
30653 int rc;
30654 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30655
30656 ;
30657 return 0;
30658}
30659_ACEOF
30660rm -f conftest.$ac_objext
30661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30662 (eval $ac_compile) 2>conftest.er1
30663 ac_status=$?
30664 grep -v '^ *+' conftest.er1 >conftest.err
30665 rm -f conftest.er1
30666 cat conftest.err >&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); } &&
89be85c2
VS
30669 { ac_try='test -z "$ac_cxx_werror_flag"
30670 || test ! -s conftest.err'
eaff0f0d
VZ
30671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672 (eval $ac_try) 2>&5
30673 ac_status=$?
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; } &&
30676 { ac_try='test -s conftest.$ac_objext'
30677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678 (eval $ac_try) 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; }; then
30682 wx_cv_func_cxa_demangle=yes
30683else
30684 echo "$as_me: failed program was:" >&5
30685sed 's/^/| /' conftest.$ac_ext >&5
30686
30687wx_cv_func_cxa_demangle=no
30688
30689fi
30690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30691
30692
30693fi
30694echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30695echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30696
30697 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30698 cat >>confdefs.h <<\_ACEOF
30699#define HAVE_CXA_DEMANGLE 1
30700_ACEOF
30701
30702 fi
30703 fi
30704
30705 ac_ext=c
30706ac_cpp='$CPP $CPPFLAGS'
30707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30709ac_compiler_gnu=$ac_cv_c_compiler_gnu
30710
30711fi
30712
a848cd7e
SC
30713
30714
30715for ac_func in mkstemp mktemp
30716do
30717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30718echo "$as_me:$LINENO: checking for $ac_func" >&5
30719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30720if eval "test \"\${$as_ac_var+set}\" = set"; then
30721 echo $ECHO_N "(cached) $ECHO_C" >&6
30722else
30723 cat >conftest.$ac_ext <<_ACEOF
30724/* confdefs.h. */
30725_ACEOF
30726cat confdefs.h >>conftest.$ac_ext
30727cat >>conftest.$ac_ext <<_ACEOF
30728/* end confdefs.h. */
ac1cb8d3
VS
30729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30731#define $ac_func innocuous_$ac_func
30732
a848cd7e
SC
30733/* System header to define __stub macros and hopefully few prototypes,
30734 which can conflict with char $ac_func (); below.
30735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30736 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30737
a848cd7e
SC
30738#ifdef __STDC__
30739# include <limits.h>
30740#else
30741# include <assert.h>
30742#endif
ac1cb8d3
VS
30743
30744#undef $ac_func
30745
a848cd7e
SC
30746/* Override any gcc2 internal prototype to avoid an error. */
30747#ifdef __cplusplus
30748extern "C"
30749{
30750#endif
30751/* We use char because int might match the return type of a gcc2
30752 builtin and then its argument prototype would still apply. */
30753char $ac_func ();
30754/* The GNU C library defines this for functions which it implements
30755 to always fail with ENOSYS. Some functions are actually named
30756 something starting with __ and the normal name is an alias. */
30757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30758choke me
30759#else
30760char (*f) () = $ac_func;
30761#endif
30762#ifdef __cplusplus
30763}
30764#endif
30765
30766int
30767main ()
30768{
30769return f != $ac_func;
30770 ;
30771 return 0;
30772}
30773_ACEOF
30774rm -f conftest.$ac_objext conftest$ac_exeext
30775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30776 (eval $ac_link) 2>conftest.er1
a848cd7e 30777 ac_status=$?
ac1cb8d3
VS
30778 grep -v '^ *+' conftest.er1 >conftest.err
30779 rm -f conftest.er1
30780 cat conftest.err >&5
a848cd7e
SC
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); } &&
89be85c2
VS
30783 { ac_try='test -z "$ac_c_werror_flag"
30784 || test ! -s conftest.err'
ac1cb8d3
VS
30785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30786 (eval $ac_try) 2>&5
30787 ac_status=$?
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; } &&
30790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30792 (eval $ac_try) 2>&5
30793 ac_status=$?
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; }; then
30796 eval "$as_ac_var=yes"
30797else
30798 echo "$as_me: failed program was:" >&5
30799sed 's/^/| /' conftest.$ac_ext >&5
30800
30801eval "$as_ac_var=no"
30802fi
ac1cb8d3
VS
30803rm -f conftest.err conftest.$ac_objext \
30804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30805fi
30806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30808if test `eval echo '${'$as_ac_var'}'` = yes; then
30809 cat >>confdefs.h <<_ACEOF
30810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30811_ACEOF
30812 break
30813fi
30814done
30815
30816
30817echo "$as_me:$LINENO: checking for statfs" >&5
30818echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30819if test "${wx_cv_func_statfs+set}" = set; then
30820 echo $ECHO_N "(cached) $ECHO_C" >&6
30821else
30822 cat >conftest.$ac_ext <<_ACEOF
30823/* confdefs.h. */
30824_ACEOF
30825cat confdefs.h >>conftest.$ac_ext
30826cat >>conftest.$ac_ext <<_ACEOF
30827/* end confdefs.h. */
30828
30829 #if defined(__BSD__)
30830 #include <sys/param.h>
30831 #include <sys/mount.h>
30832 #else
30833 #include <sys/vfs.h>
30834 #endif
30835
30836int
30837main ()
30838{
30839
30840 long l;
30841 struct statfs fs;
30842 statfs("/", &fs);
30843 l = fs.f_bsize;
30844 l += fs.f_blocks;
30845 l += fs.f_bavail;
30846
30847 ;
30848 return 0;
30849}
30850_ACEOF
30851rm -f conftest.$ac_objext
30852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30853 (eval $ac_compile) 2>conftest.er1
a848cd7e 30854 ac_status=$?
ac1cb8d3
VS
30855 grep -v '^ *+' conftest.er1 >conftest.err
30856 rm -f conftest.er1
30857 cat conftest.err >&5
a848cd7e
SC
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); } &&
89be85c2
VS
30860 { ac_try='test -z "$ac_c_werror_flag"
30861 || test ! -s conftest.err'
ac1cb8d3
VS
30862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30863 (eval $ac_try) 2>&5
30864 ac_status=$?
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; } &&
30867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30869 (eval $ac_try) 2>&5
30870 ac_status=$?
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); }; }; then
30873
30874 wx_cv_func_statfs=yes
30875
30876else
30877 echo "$as_me: failed program was:" >&5
30878sed 's/^/| /' conftest.$ac_ext >&5
30879
30880
30881 wx_cv_func_statfs=no
30882
30883
30884fi
ac1cb8d3 30885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30886
30887fi
30888echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30889echo "${ECHO_T}$wx_cv_func_statfs" >&6
30890
30891if test "$wx_cv_func_statfs" = "yes"; then
30892 wx_cv_type_statvfs_t="struct statfs"
30893 cat >>confdefs.h <<\_ACEOF
30894#define HAVE_STATFS 1
30895_ACEOF
30896
30897else
30898 echo "$as_me:$LINENO: checking for statvfs" >&5
30899echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30900if test "${wx_cv_func_statvfs+set}" = set; then
30901 echo $ECHO_N "(cached) $ECHO_C" >&6
30902else
30903 cat >conftest.$ac_ext <<_ACEOF
30904/* confdefs.h. */
30905_ACEOF
30906cat confdefs.h >>conftest.$ac_ext
30907cat >>conftest.$ac_ext <<_ACEOF
30908/* end confdefs.h. */
30909
30910 #include <stddef.h>
30911 #include <sys/statvfs.h>
30912
30913int
30914main ()
30915{
30916
30917 statvfs("/", NULL);
30918
30919 ;
30920 return 0;
30921}
30922_ACEOF
30923rm -f conftest.$ac_objext
30924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30925 (eval $ac_compile) 2>conftest.er1
a848cd7e 30926 ac_status=$?
ac1cb8d3
VS
30927 grep -v '^ *+' conftest.er1 >conftest.err
30928 rm -f conftest.er1
30929 cat conftest.err >&5
a848cd7e
SC
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); } &&
89be85c2
VS
30932 { ac_try='test -z "$ac_c_werror_flag"
30933 || test ! -s conftest.err'
ac1cb8d3
VS
30934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30935 (eval $ac_try) 2>&5
30936 ac_status=$?
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); }; } &&
30939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30941 (eval $ac_try) 2>&5
30942 ac_status=$?
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; }; then
30945 wx_cv_func_statvfs=yes
30946else
30947 echo "$as_me: failed program was:" >&5
30948sed 's/^/| /' conftest.$ac_ext >&5
30949
30950wx_cv_func_statvfs=no
30951
30952fi
ac1cb8d3 30953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30954
30955fi
30956echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30957echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30958
30959 if test "$wx_cv_func_statvfs" = "yes"; then
30960
30961
30962 ac_ext=cc
30963ac_cpp='$CXXCPP $CPPFLAGS'
30964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30967
30968
30969 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30970echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30971if test "${wx_cv_type_statvfs_t+set}" = set; then
30972 echo $ECHO_N "(cached) $ECHO_C" >&6
30973else
30974 cat >conftest.$ac_ext <<_ACEOF
30975/* confdefs.h. */
30976_ACEOF
30977cat confdefs.h >>conftest.$ac_ext
30978cat >>conftest.$ac_ext <<_ACEOF
30979/* end confdefs.h. */
30980
30981 #include <sys/statvfs.h>
30982
30983int
30984main ()
30985{
30986
30987 long l;
30988 statvfs_t fs;
30989 statvfs("/", &fs);
30990 l = fs.f_bsize;
30991 l += fs.f_blocks;
30992 l += fs.f_bavail;
30993
30994 ;
30995 return 0;
30996}
30997_ACEOF
30998rm -f conftest.$ac_objext
30999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31000 (eval $ac_compile) 2>conftest.er1
a848cd7e 31001 ac_status=$?
ac1cb8d3
VS
31002 grep -v '^ *+' conftest.er1 >conftest.err
31003 rm -f conftest.er1
31004 cat conftest.err >&5
a848cd7e
SC
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); } &&
89be85c2
VS
31007 { ac_try='test -z "$ac_cxx_werror_flag"
31008 || test ! -s conftest.err'
ac1cb8d3
VS
31009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31010 (eval $ac_try) 2>&5
31011 ac_status=$?
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); }; } &&
31014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016 (eval $ac_try) 2>&5
31017 ac_status=$?
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; }; then
31020 wx_cv_type_statvfs_t=statvfs_t
31021else
31022 echo "$as_me: failed program was:" >&5
31023sed 's/^/| /' conftest.$ac_ext >&5
31024
31025
31026 cat >conftest.$ac_ext <<_ACEOF
31027/* confdefs.h. */
31028_ACEOF
31029cat confdefs.h >>conftest.$ac_ext
31030cat >>conftest.$ac_ext <<_ACEOF
31031/* end confdefs.h. */
31032
31033 #include <sys/statvfs.h>
31034
31035int
31036main ()
31037{
31038
31039 long l;
31040 struct statvfs fs;
31041 statvfs("/", &fs);
31042 l = fs.f_bsize;
31043 l += fs.f_blocks;
31044 l += fs.f_bavail;
31045
31046 ;
31047 return 0;
31048}
31049_ACEOF
31050rm -f conftest.$ac_objext
31051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31052 (eval $ac_compile) 2>conftest.er1
a848cd7e 31053 ac_status=$?
ac1cb8d3
VS
31054 grep -v '^ *+' conftest.er1 >conftest.err
31055 rm -f conftest.er1
31056 cat conftest.err >&5
a848cd7e
SC
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); } &&
89be85c2
VS
31059 { ac_try='test -z "$ac_cxx_werror_flag"
31060 || test ! -s conftest.err'
ac1cb8d3
VS
31061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31062 (eval $ac_try) 2>&5
31063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; } &&
31066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31068 (eval $ac_try) 2>&5
31069 ac_status=$?
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); }; }; then
31072 wx_cv_type_statvfs_t="struct statvfs"
31073else
31074 echo "$as_me: failed program was:" >&5
31075sed 's/^/| /' conftest.$ac_ext >&5
31076
31077wx_cv_type_statvfs_t="unknown"
31078
31079fi
ac1cb8d3 31080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31081
31082
31083fi
ac1cb8d3 31084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31085
31086fi
31087echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31088echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31089
31090 ac_ext=c
31091ac_cpp='$CPP $CPPFLAGS'
31092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31094ac_compiler_gnu=$ac_cv_c_compiler_gnu
31095
31096
31097 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31098 cat >>confdefs.h <<\_ACEOF
31099#define HAVE_STATVFS 1
31100_ACEOF
31101
31102 fi
31103 else
31104 wx_cv_type_statvfs_t="unknown"
31105 fi
31106fi
31107
31108if test "$wx_cv_type_statvfs_t" != "unknown"; then
31109 cat >>confdefs.h <<_ACEOF
31110#define WX_STATFS_T $wx_cv_type_statvfs_t
31111_ACEOF
31112
31113else
31114 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31115echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31116fi
31117
31118if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31119
31120
31121for ac_func in fcntl flock
31122do
31123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31124echo "$as_me:$LINENO: checking for $ac_func" >&5
31125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31126if eval "test \"\${$as_ac_var+set}\" = set"; then
31127 echo $ECHO_N "(cached) $ECHO_C" >&6
31128else
31129 cat >conftest.$ac_ext <<_ACEOF
31130/* confdefs.h. */
31131_ACEOF
31132cat confdefs.h >>conftest.$ac_ext
31133cat >>conftest.$ac_ext <<_ACEOF
31134/* end confdefs.h. */
ac1cb8d3
VS
31135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31137#define $ac_func innocuous_$ac_func
31138
a848cd7e
SC
31139/* System header to define __stub macros and hopefully few prototypes,
31140 which can conflict with char $ac_func (); below.
31141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31142 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31143
a848cd7e
SC
31144#ifdef __STDC__
31145# include <limits.h>
31146#else
31147# include <assert.h>
31148#endif
ac1cb8d3
VS
31149
31150#undef $ac_func
31151
a848cd7e
SC
31152/* Override any gcc2 internal prototype to avoid an error. */
31153#ifdef __cplusplus
31154extern "C"
31155{
31156#endif
31157/* We use char because int might match the return type of a gcc2
31158 builtin and then its argument prototype would still apply. */
31159char $ac_func ();
31160/* The GNU C library defines this for functions which it implements
31161 to always fail with ENOSYS. Some functions are actually named
31162 something starting with __ and the normal name is an alias. */
31163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31164choke me
31165#else
31166char (*f) () = $ac_func;
31167#endif
31168#ifdef __cplusplus
31169}
31170#endif
31171
31172int
31173main ()
31174{
31175return f != $ac_func;
31176 ;
31177 return 0;
31178}
31179_ACEOF
31180rm -f conftest.$ac_objext conftest$ac_exeext
31181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31182 (eval $ac_link) 2>conftest.er1
a848cd7e 31183 ac_status=$?
ac1cb8d3
VS
31184 grep -v '^ *+' conftest.er1 >conftest.err
31185 rm -f conftest.er1
31186 cat conftest.err >&5
a848cd7e
SC
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
89be85c2
VS
31189 { ac_try='test -z "$ac_c_werror_flag"
31190 || test ! -s conftest.err'
ac1cb8d3
VS
31191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31192 (eval $ac_try) 2>&5
31193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198 (eval $ac_try) 2>&5
31199 ac_status=$?
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); }; }; then
31202 eval "$as_ac_var=yes"
31203else
31204 echo "$as_me: failed program was:" >&5
31205sed 's/^/| /' conftest.$ac_ext >&5
31206
31207eval "$as_ac_var=no"
31208fi
ac1cb8d3
VS
31209rm -f conftest.err conftest.$ac_objext \
31210 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31211fi
31212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31214if test `eval echo '${'$as_ac_var'}'` = yes; then
31215 cat >>confdefs.h <<_ACEOF
31216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31217_ACEOF
31218 break
31219fi
31220done
31221
31222
31223 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31224 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31225echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31226 wxUSE_SNGLINST_CHECKER=no
31227 fi
31228fi
31229
31230
31231for ac_func in timegm
31232do
31233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31234echo "$as_me:$LINENO: checking for $ac_func" >&5
31235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31236if eval "test \"\${$as_ac_var+set}\" = set"; then
31237 echo $ECHO_N "(cached) $ECHO_C" >&6
31238else
31239 cat >conftest.$ac_ext <<_ACEOF
31240/* confdefs.h. */
31241_ACEOF
31242cat confdefs.h >>conftest.$ac_ext
31243cat >>conftest.$ac_ext <<_ACEOF
31244/* end confdefs.h. */
ac1cb8d3
VS
31245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31247#define $ac_func innocuous_$ac_func
31248
a848cd7e
SC
31249/* System header to define __stub macros and hopefully few prototypes,
31250 which can conflict with char $ac_func (); below.
31251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31252 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31253
a848cd7e
SC
31254#ifdef __STDC__
31255# include <limits.h>
31256#else
31257# include <assert.h>
31258#endif
ac1cb8d3
VS
31259
31260#undef $ac_func
31261
a848cd7e
SC
31262/* Override any gcc2 internal prototype to avoid an error. */
31263#ifdef __cplusplus
31264extern "C"
31265{
31266#endif
31267/* We use char because int might match the return type of a gcc2
31268 builtin and then its argument prototype would still apply. */
31269char $ac_func ();
31270/* The GNU C library defines this for functions which it implements
31271 to always fail with ENOSYS. Some functions are actually named
31272 something starting with __ and the normal name is an alias. */
31273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31274choke me
31275#else
31276char (*f) () = $ac_func;
31277#endif
31278#ifdef __cplusplus
31279}
31280#endif
31281
31282int
31283main ()
31284{
31285return f != $ac_func;
31286 ;
31287 return 0;
31288}
31289_ACEOF
31290rm -f conftest.$ac_objext conftest$ac_exeext
31291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31292 (eval $ac_link) 2>conftest.er1
a848cd7e 31293 ac_status=$?
ac1cb8d3
VS
31294 grep -v '^ *+' conftest.er1 >conftest.err
31295 rm -f conftest.er1
31296 cat conftest.err >&5
a848cd7e
SC
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } &&
89be85c2
VS
31299 { ac_try='test -z "$ac_c_werror_flag"
31300 || test ! -s conftest.err'
ac1cb8d3
VS
31301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31302 (eval $ac_try) 2>&5
31303 ac_status=$?
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); }; } &&
31306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308 (eval $ac_try) 2>&5
31309 ac_status=$?
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); }; }; then
31312 eval "$as_ac_var=yes"
31313else
31314 echo "$as_me: failed program was:" >&5
31315sed 's/^/| /' conftest.$ac_ext >&5
31316
31317eval "$as_ac_var=no"
31318fi
ac1cb8d3
VS
31319rm -f conftest.err conftest.$ac_objext \
31320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31321fi
31322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31324if test `eval echo '${'$as_ac_var'}'` = yes; then
31325 cat >>confdefs.h <<_ACEOF
31326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31327_ACEOF
31328
31329fi
31330done
31331
31332
31333
31334
31335for ac_func in putenv setenv
31336do
31337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31338echo "$as_me:$LINENO: checking for $ac_func" >&5
31339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31340if eval "test \"\${$as_ac_var+set}\" = set"; then
31341 echo $ECHO_N "(cached) $ECHO_C" >&6
31342else
31343 cat >conftest.$ac_ext <<_ACEOF
31344/* confdefs.h. */
31345_ACEOF
31346cat confdefs.h >>conftest.$ac_ext
31347cat >>conftest.$ac_ext <<_ACEOF
31348/* end confdefs.h. */
ac1cb8d3
VS
31349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31351#define $ac_func innocuous_$ac_func
31352
a848cd7e
SC
31353/* System header to define __stub macros and hopefully few prototypes,
31354 which can conflict with char $ac_func (); below.
31355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31356 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31357
a848cd7e
SC
31358#ifdef __STDC__
31359# include <limits.h>
31360#else
31361# include <assert.h>
31362#endif
ac1cb8d3
VS
31363
31364#undef $ac_func
31365
a848cd7e
SC
31366/* Override any gcc2 internal prototype to avoid an error. */
31367#ifdef __cplusplus
31368extern "C"
31369{
31370#endif
31371/* We use char because int might match the return type of a gcc2
31372 builtin and then its argument prototype would still apply. */
31373char $ac_func ();
31374/* The GNU C library defines this for functions which it implements
31375 to always fail with ENOSYS. Some functions are actually named
31376 something starting with __ and the normal name is an alias. */
31377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31378choke me
31379#else
31380char (*f) () = $ac_func;
31381#endif
31382#ifdef __cplusplus
31383}
31384#endif
31385
31386int
31387main ()
31388{
31389return f != $ac_func;
31390 ;
31391 return 0;
31392}
31393_ACEOF
31394rm -f conftest.$ac_objext conftest$ac_exeext
31395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31396 (eval $ac_link) 2>conftest.er1
a848cd7e 31397 ac_status=$?
ac1cb8d3
VS
31398 grep -v '^ *+' conftest.er1 >conftest.err
31399 rm -f conftest.er1
31400 cat conftest.err >&5
a848cd7e
SC
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } &&
89be85c2
VS
31403 { ac_try='test -z "$ac_c_werror_flag"
31404 || test ! -s conftest.err'
ac1cb8d3
VS
31405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31406 (eval $ac_try) 2>&5
31407 ac_status=$?
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); }; } &&
31410 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31412 (eval $ac_try) 2>&5
31413 ac_status=$?
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); }; }; then
31416 eval "$as_ac_var=yes"
31417else
31418 echo "$as_me: failed program was:" >&5
31419sed 's/^/| /' conftest.$ac_ext >&5
31420
31421eval "$as_ac_var=no"
31422fi
ac1cb8d3
VS
31423rm -f conftest.err conftest.$ac_objext \
31424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31425fi
31426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31428if test `eval echo '${'$as_ac_var'}'` = yes; then
31429 cat >>confdefs.h <<_ACEOF
31430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31431_ACEOF
31432 break
31433fi
31434done
31435
31436
31437HAVE_SOME_SLEEP_FUNC=0
31438if test "$USE_BEOS" = 1; then
31439 cat >>confdefs.h <<\_ACEOF
31440#define HAVE_SLEEP 1
31441_ACEOF
31442
31443 HAVE_SOME_SLEEP_FUNC=1
31444fi
31445
31446if test "$USE_DARWIN" = 1; then
31447 cat >>confdefs.h <<\_ACEOF
31448#define HAVE_USLEEP 1
31449_ACEOF
31450
31451 HAVE_SOME_SLEEP_FUNC=1
31452fi
31453
31454if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31455 POSIX4_LINK=
31456
31457for ac_func in nanosleep
31458do
31459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31460echo "$as_me:$LINENO: checking for $ac_func" >&5
31461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31462if eval "test \"\${$as_ac_var+set}\" = set"; then
31463 echo $ECHO_N "(cached) $ECHO_C" >&6
31464else
31465 cat >conftest.$ac_ext <<_ACEOF
31466/* confdefs.h. */
31467_ACEOF
31468cat confdefs.h >>conftest.$ac_ext
31469cat >>conftest.$ac_ext <<_ACEOF
31470/* end confdefs.h. */
ac1cb8d3
VS
31471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31473#define $ac_func innocuous_$ac_func
31474
a848cd7e
SC
31475/* System header to define __stub macros and hopefully few prototypes,
31476 which can conflict with char $ac_func (); below.
31477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31478 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31479
a848cd7e
SC
31480#ifdef __STDC__
31481# include <limits.h>
31482#else
31483# include <assert.h>
31484#endif
ac1cb8d3
VS
31485
31486#undef $ac_func
31487
a848cd7e
SC
31488/* Override any gcc2 internal prototype to avoid an error. */
31489#ifdef __cplusplus
31490extern "C"
31491{
31492#endif
31493/* We use char because int might match the return type of a gcc2
31494 builtin and then its argument prototype would still apply. */
31495char $ac_func ();
31496/* The GNU C library defines this for functions which it implements
31497 to always fail with ENOSYS. Some functions are actually named
31498 something starting with __ and the normal name is an alias. */
31499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31500choke me
31501#else
31502char (*f) () = $ac_func;
31503#endif
31504#ifdef __cplusplus
31505}
31506#endif
31507
31508int
31509main ()
31510{
31511return f != $ac_func;
31512 ;
31513 return 0;
31514}
31515_ACEOF
31516rm -f conftest.$ac_objext conftest$ac_exeext
31517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31518 (eval $ac_link) 2>conftest.er1
a848cd7e 31519 ac_status=$?
ac1cb8d3
VS
31520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
a848cd7e
SC
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
89be85c2
VS
31525 { ac_try='test -z "$ac_c_werror_flag"
31526 || test ! -s conftest.err'
ac1cb8d3
VS
31527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31528 (eval $ac_try) 2>&5
31529 ac_status=$?
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); }; } &&
31532 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31534 (eval $ac_try) 2>&5
31535 ac_status=$?
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; }; then
31538 eval "$as_ac_var=yes"
31539else
31540 echo "$as_me: failed program was:" >&5
31541sed 's/^/| /' conftest.$ac_ext >&5
31542
31543eval "$as_ac_var=no"
31544fi
ac1cb8d3
VS
31545rm -f conftest.err conftest.$ac_objext \
31546 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31547fi
31548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31550if test `eval echo '${'$as_ac_var'}'` = yes; then
31551 cat >>confdefs.h <<_ACEOF
31552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31553_ACEOF
31554 cat >>confdefs.h <<\_ACEOF
31555#define HAVE_NANOSLEEP 1
31556_ACEOF
31557
31558else
31559
31560 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31561echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31562if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31563 echo $ECHO_N "(cached) $ECHO_C" >&6
31564else
31565 ac_check_lib_save_LIBS=$LIBS
31566LIBS="-lposix4 $LIBS"
31567cat >conftest.$ac_ext <<_ACEOF
31568/* confdefs.h. */
31569_ACEOF
31570cat confdefs.h >>conftest.$ac_ext
31571cat >>conftest.$ac_ext <<_ACEOF
31572/* end confdefs.h. */
31573
31574/* Override any gcc2 internal prototype to avoid an error. */
31575#ifdef __cplusplus
31576extern "C"
31577#endif
31578/* We use char because int might match the return type of a gcc2
31579 builtin and then its argument prototype would still apply. */
31580char nanosleep ();
31581int
31582main ()
31583{
31584nanosleep ();
31585 ;
31586 return 0;
31587}
31588_ACEOF
31589rm -f conftest.$ac_objext conftest$ac_exeext
31590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31591 (eval $ac_link) 2>conftest.er1
a848cd7e 31592 ac_status=$?
ac1cb8d3
VS
31593 grep -v '^ *+' conftest.er1 >conftest.err
31594 rm -f conftest.er1
31595 cat conftest.err >&5
a848cd7e
SC
31596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31597 (exit $ac_status); } &&
89be85c2
VS
31598 { ac_try='test -z "$ac_c_werror_flag"
31599 || test ! -s conftest.err'
ac1cb8d3
VS
31600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31601 (eval $ac_try) 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; } &&
31605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31607 (eval $ac_try) 2>&5
31608 ac_status=$?
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); }; }; then
31611 ac_cv_lib_posix4_nanosleep=yes
31612else
31613 echo "$as_me: failed program was:" >&5
31614sed 's/^/| /' conftest.$ac_ext >&5
31615
31616ac_cv_lib_posix4_nanosleep=no
31617fi
ac1cb8d3
VS
31618rm -f conftest.err conftest.$ac_objext \
31619 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31620LIBS=$ac_check_lib_save_LIBS
31621fi
31622echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31623echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31624if test $ac_cv_lib_posix4_nanosleep = yes; then
31625
31626 cat >>confdefs.h <<\_ACEOF
31627#define HAVE_NANOSLEEP 1
31628_ACEOF
31629
31630 POSIX4_LINK=" -lposix4"
31631
31632else
31633
31634
31635for ac_func in usleep
31636do
31637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31638echo "$as_me:$LINENO: checking for $ac_func" >&5
31639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31640if eval "test \"\${$as_ac_var+set}\" = set"; then
31641 echo $ECHO_N "(cached) $ECHO_C" >&6
31642else
31643 cat >conftest.$ac_ext <<_ACEOF
31644/* confdefs.h. */
31645_ACEOF
31646cat confdefs.h >>conftest.$ac_ext
31647cat >>conftest.$ac_ext <<_ACEOF
31648/* end confdefs.h. */
ac1cb8d3
VS
31649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31651#define $ac_func innocuous_$ac_func
31652
a848cd7e
SC
31653/* System header to define __stub macros and hopefully few prototypes,
31654 which can conflict with char $ac_func (); below.
31655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31656 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31657
a848cd7e
SC
31658#ifdef __STDC__
31659# include <limits.h>
31660#else
31661# include <assert.h>
31662#endif
ac1cb8d3
VS
31663
31664#undef $ac_func
31665
a848cd7e
SC
31666/* Override any gcc2 internal prototype to avoid an error. */
31667#ifdef __cplusplus
31668extern "C"
31669{
31670#endif
31671/* We use char because int might match the return type of a gcc2
31672 builtin and then its argument prototype would still apply. */
31673char $ac_func ();
31674/* The GNU C library defines this for functions which it implements
31675 to always fail with ENOSYS. Some functions are actually named
31676 something starting with __ and the normal name is an alias. */
31677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31678choke me
31679#else
31680char (*f) () = $ac_func;
31681#endif
31682#ifdef __cplusplus
31683}
31684#endif
31685
31686int
31687main ()
31688{
31689return f != $ac_func;
31690 ;
31691 return 0;
31692}
31693_ACEOF
31694rm -f conftest.$ac_objext conftest$ac_exeext
31695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31696 (eval $ac_link) 2>conftest.er1
a848cd7e 31697 ac_status=$?
ac1cb8d3
VS
31698 grep -v '^ *+' conftest.er1 >conftest.err
31699 rm -f conftest.er1
31700 cat conftest.err >&5
a848cd7e
SC
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); } &&
89be85c2
VS
31703 { ac_try='test -z "$ac_c_werror_flag"
31704 || test ! -s conftest.err'
ac1cb8d3
VS
31705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706 (eval $ac_try) 2>&5
31707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; } &&
31710 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31712 (eval $ac_try) 2>&5
31713 ac_status=$?
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); }; }; then
31716 eval "$as_ac_var=yes"
31717else
31718 echo "$as_me: failed program was:" >&5
31719sed 's/^/| /' conftest.$ac_ext >&5
31720
31721eval "$as_ac_var=no"
31722fi
ac1cb8d3
VS
31723rm -f conftest.err conftest.$ac_objext \
31724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31725fi
31726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31728if test `eval echo '${'$as_ac_var'}'` = yes; then
31729 cat >>confdefs.h <<_ACEOF
31730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31731_ACEOF
31732 cat >>confdefs.h <<\_ACEOF
31733#define HAVE_USLEEP 1
31734_ACEOF
31735
31736else
31737 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31738echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31739
31740fi
31741done
31742
31743
31744
31745fi
31746
31747
31748
31749fi
31750done
31751
31752fi
31753
31754
31755
31756for ac_func in uname gethostname
31757do
31758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31759echo "$as_me:$LINENO: checking for $ac_func" >&5
31760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31761if eval "test \"\${$as_ac_var+set}\" = set"; then
31762 echo $ECHO_N "(cached) $ECHO_C" >&6
31763else
31764 cat >conftest.$ac_ext <<_ACEOF
31765/* confdefs.h. */
31766_ACEOF
31767cat confdefs.h >>conftest.$ac_ext
31768cat >>conftest.$ac_ext <<_ACEOF
31769/* end confdefs.h. */
ac1cb8d3
VS
31770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31772#define $ac_func innocuous_$ac_func
31773
a848cd7e
SC
31774/* System header to define __stub macros and hopefully few prototypes,
31775 which can conflict with char $ac_func (); below.
31776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31777 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31778
a848cd7e
SC
31779#ifdef __STDC__
31780# include <limits.h>
31781#else
31782# include <assert.h>
31783#endif
ac1cb8d3
VS
31784
31785#undef $ac_func
31786
a848cd7e
SC
31787/* Override any gcc2 internal prototype to avoid an error. */
31788#ifdef __cplusplus
31789extern "C"
31790{
31791#endif
31792/* We use char because int might match the return type of a gcc2
31793 builtin and then its argument prototype would still apply. */
31794char $ac_func ();
31795/* The GNU C library defines this for functions which it implements
31796 to always fail with ENOSYS. Some functions are actually named
31797 something starting with __ and the normal name is an alias. */
31798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31799choke me
31800#else
31801char (*f) () = $ac_func;
31802#endif
31803#ifdef __cplusplus
31804}
31805#endif
31806
31807int
31808main ()
31809{
31810return f != $ac_func;
31811 ;
31812 return 0;
31813}
31814_ACEOF
31815rm -f conftest.$ac_objext conftest$ac_exeext
31816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31817 (eval $ac_link) 2>conftest.er1
a848cd7e 31818 ac_status=$?
ac1cb8d3
VS
31819 grep -v '^ *+' conftest.er1 >conftest.err
31820 rm -f conftest.er1
31821 cat conftest.err >&5
a848cd7e
SC
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); } &&
89be85c2
VS
31824 { ac_try='test -z "$ac_c_werror_flag"
31825 || test ! -s conftest.err'
ac1cb8d3
VS
31826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827 (eval $ac_try) 2>&5
31828 ac_status=$?
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); }; } &&
31831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31833 (eval $ac_try) 2>&5
31834 ac_status=$?
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); }; }; then
31837 eval "$as_ac_var=yes"
31838else
31839 echo "$as_me: failed program was:" >&5
31840sed 's/^/| /' conftest.$ac_ext >&5
31841
31842eval "$as_ac_var=no"
31843fi
ac1cb8d3
VS
31844rm -f conftest.err conftest.$ac_objext \
31845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31846fi
31847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31849if test `eval echo '${'$as_ac_var'}'` = yes; then
31850 cat >>confdefs.h <<_ACEOF
31851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31852_ACEOF
31853 break
31854fi
31855done
31856
31857
31858
31859
31860ac_ext=cc
31861ac_cpp='$CXXCPP $CPPFLAGS'
31862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31865
31866
31867
31868for ac_func in strtok_r
31869do
31870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31871echo "$as_me:$LINENO: checking for $ac_func" >&5
31872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31873if eval "test \"\${$as_ac_var+set}\" = set"; then
31874 echo $ECHO_N "(cached) $ECHO_C" >&6
31875else
31876 cat >conftest.$ac_ext <<_ACEOF
31877/* confdefs.h. */
31878_ACEOF
31879cat confdefs.h >>conftest.$ac_ext
31880cat >>conftest.$ac_ext <<_ACEOF
31881/* end confdefs.h. */
ac1cb8d3
VS
31882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31884#define $ac_func innocuous_$ac_func
31885
a848cd7e
SC
31886/* System header to define __stub macros and hopefully few prototypes,
31887 which can conflict with char $ac_func (); below.
31888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31889 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31890
a848cd7e
SC
31891#ifdef __STDC__
31892# include <limits.h>
31893#else
31894# include <assert.h>
31895#endif
ac1cb8d3
VS
31896
31897#undef $ac_func
31898
a848cd7e
SC
31899/* Override any gcc2 internal prototype to avoid an error. */
31900#ifdef __cplusplus
31901extern "C"
31902{
31903#endif
31904/* We use char because int might match the return type of a gcc2
31905 builtin and then its argument prototype would still apply. */
31906char $ac_func ();
31907/* The GNU C library defines this for functions which it implements
31908 to always fail with ENOSYS. Some functions are actually named
31909 something starting with __ and the normal name is an alias. */
31910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31911choke me
31912#else
31913char (*f) () = $ac_func;
31914#endif
31915#ifdef __cplusplus
31916}
31917#endif
31918
31919int
31920main ()
31921{
31922return f != $ac_func;
31923 ;
31924 return 0;
31925}
31926_ACEOF
31927rm -f conftest.$ac_objext conftest$ac_exeext
31928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31929 (eval $ac_link) 2>conftest.er1
a848cd7e 31930 ac_status=$?
ac1cb8d3
VS
31931 grep -v '^ *+' conftest.er1 >conftest.err
31932 rm -f conftest.er1
31933 cat conftest.err >&5
a848cd7e
SC
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); } &&
89be85c2
VS
31936 { ac_try='test -z "$ac_cxx_werror_flag"
31937 || test ! -s conftest.err'
ac1cb8d3
VS
31938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31939 (eval $ac_try) 2>&5
31940 ac_status=$?
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); }; } &&
31943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31945 (eval $ac_try) 2>&5
31946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; }; then
31949 eval "$as_ac_var=yes"
31950else
31951 echo "$as_me: failed program was:" >&5
31952sed 's/^/| /' conftest.$ac_ext >&5
31953
31954eval "$as_ac_var=no"
31955fi
ac1cb8d3
VS
31956rm -f conftest.err conftest.$ac_objext \
31957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31958fi
31959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31961if test `eval echo '${'$as_ac_var'}'` = yes; then
31962 cat >>confdefs.h <<_ACEOF
31963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31964_ACEOF
31965
31966fi
31967done
31968
31969
31970ac_ext=c
31971ac_cpp='$CPP $CPPFLAGS'
31972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31974ac_compiler_gnu=$ac_cv_c_compiler_gnu
31975
31976
31977INET_LINK=
31978
31979for ac_func in inet_addr
31980do
31981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31982echo "$as_me:$LINENO: checking for $ac_func" >&5
31983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31984if eval "test \"\${$as_ac_var+set}\" = set"; then
31985 echo $ECHO_N "(cached) $ECHO_C" >&6
31986else
31987 cat >conftest.$ac_ext <<_ACEOF
31988/* confdefs.h. */
31989_ACEOF
31990cat confdefs.h >>conftest.$ac_ext
31991cat >>conftest.$ac_ext <<_ACEOF
31992/* end confdefs.h. */
ac1cb8d3
VS
31993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31995#define $ac_func innocuous_$ac_func
31996
a848cd7e
SC
31997/* System header to define __stub macros and hopefully few prototypes,
31998 which can conflict with char $ac_func (); below.
31999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32000 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32001
a848cd7e
SC
32002#ifdef __STDC__
32003# include <limits.h>
32004#else
32005# include <assert.h>
32006#endif
ac1cb8d3
VS
32007
32008#undef $ac_func
32009
a848cd7e
SC
32010/* Override any gcc2 internal prototype to avoid an error. */
32011#ifdef __cplusplus
32012extern "C"
32013{
32014#endif
32015/* We use char because int might match the return type of a gcc2
32016 builtin and then its argument prototype would still apply. */
32017char $ac_func ();
32018/* The GNU C library defines this for functions which it implements
32019 to always fail with ENOSYS. Some functions are actually named
32020 something starting with __ and the normal name is an alias. */
32021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32022choke me
32023#else
32024char (*f) () = $ac_func;
32025#endif
32026#ifdef __cplusplus
32027}
32028#endif
32029
32030int
32031main ()
32032{
32033return f != $ac_func;
32034 ;
32035 return 0;
32036}
32037_ACEOF
32038rm -f conftest.$ac_objext conftest$ac_exeext
32039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32040 (eval $ac_link) 2>conftest.er1
a848cd7e 32041 ac_status=$?
ac1cb8d3
VS
32042 grep -v '^ *+' conftest.er1 >conftest.err
32043 rm -f conftest.er1
32044 cat conftest.err >&5
a848cd7e
SC
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); } &&
89be85c2
VS
32047 { ac_try='test -z "$ac_c_werror_flag"
32048 || test ! -s conftest.err'
ac1cb8d3
VS
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; } &&
32054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32056 (eval $ac_try) 2>&5
32057 ac_status=$?
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); }; }; then
32060 eval "$as_ac_var=yes"
32061else
32062 echo "$as_me: failed program was:" >&5
32063sed 's/^/| /' conftest.$ac_ext >&5
32064
32065eval "$as_ac_var=no"
32066fi
ac1cb8d3
VS
32067rm -f conftest.err conftest.$ac_objext \
32068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32069fi
32070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32072if test `eval echo '${'$as_ac_var'}'` = yes; then
32073 cat >>confdefs.h <<_ACEOF
32074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32075_ACEOF
32076 cat >>confdefs.h <<\_ACEOF
32077#define HAVE_INET_ADDR 1
32078_ACEOF
32079
32080else
32081
32082 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32083echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32084if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32085 echo $ECHO_N "(cached) $ECHO_C" >&6
32086else
32087 ac_check_lib_save_LIBS=$LIBS
32088LIBS="-lnsl $LIBS"
32089cat >conftest.$ac_ext <<_ACEOF
32090/* confdefs.h. */
32091_ACEOF
32092cat confdefs.h >>conftest.$ac_ext
32093cat >>conftest.$ac_ext <<_ACEOF
32094/* end confdefs.h. */
32095
32096/* Override any gcc2 internal prototype to avoid an error. */
32097#ifdef __cplusplus
32098extern "C"
32099#endif
32100/* We use char because int might match the return type of a gcc2
32101 builtin and then its argument prototype would still apply. */
32102char inet_addr ();
32103int
32104main ()
32105{
32106inet_addr ();
32107 ;
32108 return 0;
32109}
32110_ACEOF
32111rm -f conftest.$ac_objext conftest$ac_exeext
32112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32113 (eval $ac_link) 2>conftest.er1
a848cd7e 32114 ac_status=$?
ac1cb8d3
VS
32115 grep -v '^ *+' conftest.er1 >conftest.err
32116 rm -f conftest.er1
32117 cat conftest.err >&5
a848cd7e
SC
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } &&
89be85c2
VS
32120 { ac_try='test -z "$ac_c_werror_flag"
32121 || test ! -s conftest.err'
ac1cb8d3
VS
32122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32123 (eval $ac_try) 2>&5
32124 ac_status=$?
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); }; } &&
32127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32129 (eval $ac_try) 2>&5
32130 ac_status=$?
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; }; then
32133 ac_cv_lib_nsl_inet_addr=yes
32134else
32135 echo "$as_me: failed program was:" >&5
32136sed 's/^/| /' conftest.$ac_ext >&5
32137
32138ac_cv_lib_nsl_inet_addr=no
32139fi
ac1cb8d3
VS
32140rm -f conftest.err conftest.$ac_objext \
32141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32142LIBS=$ac_check_lib_save_LIBS
32143fi
32144echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32145echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32146if test $ac_cv_lib_nsl_inet_addr = yes; then
32147 INET_LINK="nsl"
32148else
32149
32150 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32151echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32152if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32153 echo $ECHO_N "(cached) $ECHO_C" >&6
32154else
32155 ac_check_lib_save_LIBS=$LIBS
32156LIBS="-lresolv $LIBS"
32157cat >conftest.$ac_ext <<_ACEOF
32158/* confdefs.h. */
32159_ACEOF
32160cat confdefs.h >>conftest.$ac_ext
32161cat >>conftest.$ac_ext <<_ACEOF
32162/* end confdefs.h. */
32163
32164/* Override any gcc2 internal prototype to avoid an error. */
32165#ifdef __cplusplus
32166extern "C"
32167#endif
32168/* We use char because int might match the return type of a gcc2
32169 builtin and then its argument prototype would still apply. */
32170char inet_addr ();
32171int
32172main ()
32173{
32174inet_addr ();
32175 ;
32176 return 0;
32177}
32178_ACEOF
32179rm -f conftest.$ac_objext conftest$ac_exeext
32180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32181 (eval $ac_link) 2>conftest.er1
a848cd7e 32182 ac_status=$?
ac1cb8d3
VS
32183 grep -v '^ *+' conftest.er1 >conftest.err
32184 rm -f conftest.er1
32185 cat conftest.err >&5
a848cd7e
SC
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); } &&
89be85c2
VS
32188 { ac_try='test -z "$ac_c_werror_flag"
32189 || test ! -s conftest.err'
ac1cb8d3
VS
32190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32191 (eval $ac_try) 2>&5
32192 ac_status=$?
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); }; } &&
32195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32197 (eval $ac_try) 2>&5
32198 ac_status=$?
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); }; }; then
32201 ac_cv_lib_resolv_inet_addr=yes
32202else
32203 echo "$as_me: failed program was:" >&5
32204sed 's/^/| /' conftest.$ac_ext >&5
32205
32206ac_cv_lib_resolv_inet_addr=no
32207fi
ac1cb8d3
VS
32208rm -f conftest.err conftest.$ac_objext \
32209 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32210LIBS=$ac_check_lib_save_LIBS
32211fi
32212echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32213echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32214if test $ac_cv_lib_resolv_inet_addr = yes; then
32215 INET_LINK="resolv"
32216else
32217
32218 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32219echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32220if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32221 echo $ECHO_N "(cached) $ECHO_C" >&6
32222else
32223 ac_check_lib_save_LIBS=$LIBS
32224LIBS="-lsocket $LIBS"
32225cat >conftest.$ac_ext <<_ACEOF
32226/* confdefs.h. */
32227_ACEOF
32228cat confdefs.h >>conftest.$ac_ext
32229cat >>conftest.$ac_ext <<_ACEOF
32230/* end confdefs.h. */
32231
32232/* Override any gcc2 internal prototype to avoid an error. */
32233#ifdef __cplusplus
32234extern "C"
32235#endif
32236/* We use char because int might match the return type of a gcc2
32237 builtin and then its argument prototype would still apply. */
32238char inet_addr ();
32239int
32240main ()
32241{
32242inet_addr ();
32243 ;
32244 return 0;
32245}
32246_ACEOF
32247rm -f conftest.$ac_objext conftest$ac_exeext
32248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32249 (eval $ac_link) 2>conftest.er1
a848cd7e 32250 ac_status=$?
ac1cb8d3
VS
32251 grep -v '^ *+' conftest.er1 >conftest.err
32252 rm -f conftest.er1
32253 cat conftest.err >&5
a848cd7e
SC
32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255 (exit $ac_status); } &&
89be85c2
VS
32256 { ac_try='test -z "$ac_c_werror_flag"
32257 || test ! -s conftest.err'
ac1cb8d3
VS
32258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32259 (eval $ac_try) 2>&5
32260 ac_status=$?
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); }; } &&
32263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32265 (eval $ac_try) 2>&5
32266 ac_status=$?
32267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); }; }; then
32269 ac_cv_lib_socket_inet_addr=yes
32270else
32271 echo "$as_me: failed program was:" >&5
32272sed 's/^/| /' conftest.$ac_ext >&5
32273
32274ac_cv_lib_socket_inet_addr=no
32275fi
ac1cb8d3
VS
32276rm -f conftest.err conftest.$ac_objext \
32277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32278LIBS=$ac_check_lib_save_LIBS
32279fi
32280echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32281echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32282if test $ac_cv_lib_socket_inet_addr = yes; then
32283 INET_LINK="socket"
32284
32285fi
32286
32287
32288
32289fi
32290
32291
32292
32293fi
32294
32295
32296
32297fi
32298done
32299
32300
32301
32302for ac_func in inet_aton
32303do
32304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32305echo "$as_me:$LINENO: checking for $ac_func" >&5
32306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32307if eval "test \"\${$as_ac_var+set}\" = set"; then
32308 echo $ECHO_N "(cached) $ECHO_C" >&6
32309else
32310 cat >conftest.$ac_ext <<_ACEOF
32311/* confdefs.h. */
32312_ACEOF
32313cat confdefs.h >>conftest.$ac_ext
32314cat >>conftest.$ac_ext <<_ACEOF
32315/* end confdefs.h. */
ac1cb8d3
VS
32316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32318#define $ac_func innocuous_$ac_func
32319
a848cd7e
SC
32320/* System header to define __stub macros and hopefully few prototypes,
32321 which can conflict with char $ac_func (); below.
32322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32323 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32324
a848cd7e
SC
32325#ifdef __STDC__
32326# include <limits.h>
32327#else
32328# include <assert.h>
32329#endif
ac1cb8d3
VS
32330
32331#undef $ac_func
32332
a848cd7e
SC
32333/* Override any gcc2 internal prototype to avoid an error. */
32334#ifdef __cplusplus
32335extern "C"
32336{
32337#endif
32338/* We use char because int might match the return type of a gcc2
32339 builtin and then its argument prototype would still apply. */
32340char $ac_func ();
32341/* The GNU C library defines this for functions which it implements
32342 to always fail with ENOSYS. Some functions are actually named
32343 something starting with __ and the normal name is an alias. */
32344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32345choke me
32346#else
32347char (*f) () = $ac_func;
32348#endif
32349#ifdef __cplusplus
32350}
32351#endif
32352
32353int
32354main ()
32355{
32356return f != $ac_func;
32357 ;
32358 return 0;
32359}
32360_ACEOF
32361rm -f conftest.$ac_objext conftest$ac_exeext
32362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32363 (eval $ac_link) 2>conftest.er1
a848cd7e 32364 ac_status=$?
ac1cb8d3
VS
32365 grep -v '^ *+' conftest.er1 >conftest.err
32366 rm -f conftest.er1
32367 cat conftest.err >&5
a848cd7e
SC
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); } &&
89be85c2
VS
32370 { ac_try='test -z "$ac_c_werror_flag"
32371 || test ! -s conftest.err'
ac1cb8d3
VS
32372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32373 (eval $ac_try) 2>&5
32374 ac_status=$?
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; } &&
32377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379 (eval $ac_try) 2>&5
32380 ac_status=$?
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; }; then
32383 eval "$as_ac_var=yes"
32384else
32385 echo "$as_me: failed program was:" >&5
32386sed 's/^/| /' conftest.$ac_ext >&5
32387
32388eval "$as_ac_var=no"
32389fi
ac1cb8d3
VS
32390rm -f conftest.err conftest.$ac_objext \
32391 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32392fi
32393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32395if test `eval echo '${'$as_ac_var'}'` = yes; then
32396 cat >>confdefs.h <<_ACEOF
32397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32398_ACEOF
32399 cat >>confdefs.h <<\_ACEOF
32400#define HAVE_INET_ATON 1
32401_ACEOF
32402
32403else
32404
32405 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32406echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32407echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32408if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32409 echo $ECHO_N "(cached) $ECHO_C" >&6
32410else
32411 ac_check_lib_save_LIBS=$LIBS
32412LIBS="-l$INET_LINK $LIBS"
32413cat >conftest.$ac_ext <<_ACEOF
32414/* confdefs.h. */
32415_ACEOF
32416cat confdefs.h >>conftest.$ac_ext
32417cat >>conftest.$ac_ext <<_ACEOF
32418/* end confdefs.h. */
32419
32420/* Override any gcc2 internal prototype to avoid an error. */
32421#ifdef __cplusplus
32422extern "C"
32423#endif
32424/* We use char because int might match the return type of a gcc2
32425 builtin and then its argument prototype would still apply. */
32426char inet_aton ();
32427int
32428main ()
32429{
32430inet_aton ();
32431 ;
32432 return 0;
32433}
32434_ACEOF
32435rm -f conftest.$ac_objext conftest$ac_exeext
32436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32437 (eval $ac_link) 2>conftest.er1
a848cd7e 32438 ac_status=$?
ac1cb8d3
VS
32439 grep -v '^ *+' conftest.er1 >conftest.err
32440 rm -f conftest.er1
32441 cat conftest.err >&5
a848cd7e
SC
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } &&
89be85c2
VS
32444 { ac_try='test -z "$ac_c_werror_flag"
32445 || test ! -s conftest.err'
ac1cb8d3
VS
32446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32447 (eval $ac_try) 2>&5
32448 ac_status=$?
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); }; } &&
32451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32453 (eval $ac_try) 2>&5
32454 ac_status=$?
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); }; }; then
32457 eval "$as_ac_Lib=yes"
32458else
32459 echo "$as_me: failed program was:" >&5
32460sed 's/^/| /' conftest.$ac_ext >&5
32461
32462eval "$as_ac_Lib=no"
32463fi
ac1cb8d3
VS
32464rm -f conftest.err conftest.$ac_objext \
32465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32466LIBS=$ac_check_lib_save_LIBS
32467fi
32468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32469echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32470if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32471 cat >>confdefs.h <<\_ACEOF
32472#define HAVE_INET_ATON 1
32473_ACEOF
32474
32475fi
32476
32477
32478fi
32479done
32480
32481
32482if test "x$INET_LINK" != "x"; then
32483 cat >>confdefs.h <<\_ACEOF
32484#define HAVE_INET_ADDR 1
32485_ACEOF
32486
32487 INET_LINK=" -l$INET_LINK"
32488fi
32489
32490fi
32491
32492
32493
32494EXTRALIBS_ESD=
32495echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32496echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32497if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32498 echo $ECHO_N "(cached) $ECHO_C" >&6
32499else
32500 ac_check_lib_save_LIBS=$LIBS
32501LIBS="-lesd $LIBS"
32502cat >conftest.$ac_ext <<_ACEOF
32503/* confdefs.h. */
32504_ACEOF
32505cat confdefs.h >>conftest.$ac_ext
32506cat >>conftest.$ac_ext <<_ACEOF
32507/* end confdefs.h. */
32508
32509/* Override any gcc2 internal prototype to avoid an error. */
32510#ifdef __cplusplus
32511extern "C"
32512#endif
32513/* We use char because int might match the return type of a gcc2
32514 builtin and then its argument prototype would still apply. */
32515char esd_close ();
32516int
32517main ()
32518{
32519esd_close ();
32520 ;
32521 return 0;
32522}
32523_ACEOF
32524rm -f conftest.$ac_objext conftest$ac_exeext
32525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32526 (eval $ac_link) 2>conftest.er1
a848cd7e 32527 ac_status=$?
ac1cb8d3
VS
32528 grep -v '^ *+' conftest.er1 >conftest.err
32529 rm -f conftest.er1
32530 cat conftest.err >&5
a848cd7e
SC
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); } &&
89be85c2
VS
32533 { ac_try='test -z "$ac_c_werror_flag"
32534 || test ! -s conftest.err'
ac1cb8d3
VS
32535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32536 (eval $ac_try) 2>&5
32537 ac_status=$?
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); }; } &&
32540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542 (eval $ac_try) 2>&5
32543 ac_status=$?
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; }; then
32546 ac_cv_lib_esd_esd_close=yes
32547else
32548 echo "$as_me: failed program was:" >&5
32549sed 's/^/| /' conftest.$ac_ext >&5
32550
32551ac_cv_lib_esd_esd_close=no
32552fi
ac1cb8d3
VS
32553rm -f conftest.err conftest.$ac_objext \
32554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32555LIBS=$ac_check_lib_save_LIBS
32556fi
32557echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32558echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32559if test $ac_cv_lib_esd_esd_close = yes; then
32560
32561
32562for ac_header in esd.h
32563do
32564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32565if eval "test \"\${$as_ac_Header+set}\" = set"; then
32566 echo "$as_me:$LINENO: checking for $ac_header" >&5
32567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32568if eval "test \"\${$as_ac_Header+set}\" = set"; then
32569 echo $ECHO_N "(cached) $ECHO_C" >&6
32570fi
32571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32573else
32574 # Is the header compilable?
32575echo "$as_me:$LINENO: checking $ac_header usability" >&5
32576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32577cat >conftest.$ac_ext <<_ACEOF
32578/* confdefs.h. */
32579_ACEOF
32580cat confdefs.h >>conftest.$ac_ext
32581cat >>conftest.$ac_ext <<_ACEOF
32582/* end confdefs.h. */
32583$ac_includes_default
32584#include <$ac_header>
32585_ACEOF
32586rm -f conftest.$ac_objext
32587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32588 (eval $ac_compile) 2>conftest.er1
a848cd7e 32589 ac_status=$?
ac1cb8d3
VS
32590 grep -v '^ *+' conftest.er1 >conftest.err
32591 rm -f conftest.er1
32592 cat conftest.err >&5
a848cd7e
SC
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } &&
89be85c2
VS
32595 { ac_try='test -z "$ac_c_werror_flag"
32596 || test ! -s conftest.err'
ac1cb8d3
VS
32597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32598 (eval $ac_try) 2>&5
32599 ac_status=$?
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; } &&
32602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32604 (eval $ac_try) 2>&5
32605 ac_status=$?
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); }; }; then
32608 ac_header_compiler=yes
32609else
32610 echo "$as_me: failed program was:" >&5
32611sed 's/^/| /' conftest.$ac_ext >&5
32612
32613ac_header_compiler=no
32614fi
ac1cb8d3 32615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32617echo "${ECHO_T}$ac_header_compiler" >&6
32618
32619# Is the header present?
32620echo "$as_me:$LINENO: checking $ac_header presence" >&5
32621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32622cat >conftest.$ac_ext <<_ACEOF
32623/* confdefs.h. */
32624_ACEOF
32625cat confdefs.h >>conftest.$ac_ext
32626cat >>conftest.$ac_ext <<_ACEOF
32627/* end confdefs.h. */
32628#include <$ac_header>
32629_ACEOF
32630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32632 ac_status=$?
32633 grep -v '^ *+' conftest.er1 >conftest.err
32634 rm -f conftest.er1
32635 cat conftest.err >&5
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); } >/dev/null; then
32638 if test -s conftest.err; then
32639 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32641 else
32642 ac_cpp_err=
32643 fi
32644else
32645 ac_cpp_err=yes
32646fi
32647if test -z "$ac_cpp_err"; then
32648 ac_header_preproc=yes
32649else
32650 echo "$as_me: failed program was:" >&5
32651sed 's/^/| /' conftest.$ac_ext >&5
32652
32653 ac_header_preproc=no
32654fi
32655rm -f conftest.err conftest.$ac_ext
32656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32657echo "${ECHO_T}$ac_header_preproc" >&6
32658
32659# So? What about this header?
ac1cb8d3
VS
32660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32661 yes:no: )
a848cd7e
SC
32662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32666 ac_header_preproc=yes
a848cd7e 32667 ;;
ac1cb8d3 32668 no:yes:* )
a848cd7e
SC
32669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32681 (
32682 cat <<\_ASBOX
ac1cb8d3
VS
32683## ----------------------------------------- ##
32684## Report this to wx-dev@lists.wxwidgets.org ##
32685## ----------------------------------------- ##
a848cd7e
SC
32686_ASBOX
32687 ) |
32688 sed "s/^/$as_me: WARNING: /" >&2
32689 ;;
32690esac
32691echo "$as_me:$LINENO: checking for $ac_header" >&5
32692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32693if eval "test \"\${$as_ac_Header+set}\" = set"; then
32694 echo $ECHO_N "(cached) $ECHO_C" >&6
32695else
ac1cb8d3 32696 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32697fi
32698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32700
32701fi
32702if test `eval echo '${'$as_ac_Header'}'` = yes; then
32703 cat >>confdefs.h <<_ACEOF
32704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32705_ACEOF
32706
32707 EXTRALIBS_ESD="-lesd"
32708
32709fi
32710
32711done
32712
32713
32714fi
32715
32716
32717
32718echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32719echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32720cat >conftest.$ac_ext <<_ACEOF
32721/* confdefs.h. */
32722_ACEOF
32723cat confdefs.h >>conftest.$ac_ext
32724cat >>conftest.$ac_ext <<_ACEOF
32725/* end confdefs.h. */
32726#ifdef __linux__
32727 #include <linux/cdrom.h>
32728 #else
32729 /* For Solaris */
32730 #include <sys/cdio.h>
32731 #endif
32732
32733int
32734main ()
32735{
32736struct cdrom_tocentry entry, old_entry;
32737 ;
32738 return 0;
32739}
32740_ACEOF
32741rm -f conftest.$ac_objext
32742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32743 (eval $ac_compile) 2>conftest.er1
a848cd7e 32744 ac_status=$?
ac1cb8d3
VS
32745 grep -v '^ *+' conftest.er1 >conftest.err
32746 rm -f conftest.er1
32747 cat conftest.err >&5
a848cd7e
SC
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); } &&
89be85c2
VS
32750 { ac_try='test -z "$ac_c_werror_flag"
32751 || test ! -s conftest.err'
ac1cb8d3
VS
32752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753 (eval $ac_try) 2>&5
32754 ac_status=$?
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); }; } &&
32757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32759 (eval $ac_try) 2>&5
32760 ac_status=$?
32761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762 (exit $ac_status); }; }; then
32763 echo "$as_me:$LINENO: result: yes" >&5
32764echo "${ECHO_T}yes" >&6
32765 cat >>confdefs.h <<\_ACEOF
32766#define HAVE_KNOWN_CDROM_INTERFACE 1
32767_ACEOF
32768
32769else
32770 echo "$as_me: failed program was:" >&5
32771sed 's/^/| /' conftest.$ac_ext >&5
32772
32773echo "$as_me:$LINENO: result: no" >&5
32774echo "${ECHO_T}no" >&6
32775fi
ac1cb8d3 32776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32777
32778
32779cat >confcache <<\_ACEOF
32780# This file is a shell script that caches the results of configure
32781# tests run on this system so they can be shared between configure
32782# scripts and configure runs, see configure's option --config-cache.
32783# It is not useful on other systems. If it contains results you don't
32784# want to keep, you may remove or edit it.
32785#
32786# config.status only pays attention to the cache file if you give it
32787# the --recheck option to rerun configure.
32788#
32789# `ac_cv_env_foo' variables (set or unset) will be overridden when
32790# loading this file, other *unset* `ac_cv_foo' will be assigned the
32791# following values.
32792
32793_ACEOF
32794
32795# The following way of writing the cache mishandles newlines in values,
32796# but we know of no workaround that is simple, portable, and efficient.
32797# So, don't put newlines in cache variables' values.
32798# Ultrix sh set writes to stderr and can't be redirected directly,
32799# and sets the high bit in the cache file unless we assign to the vars.
32800{
32801 (set) 2>&1 |
32802 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32803 *ac_space=\ *)
32804 # `set' does not quote correctly, so add quotes (double-quote
32805 # substitution turns \\\\ into \\, and sed turns \\ into \).
32806 sed -n \
ac1cb8d3
VS
32807 "s/'/'\\\\''/g;
32808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32809 ;;
32810 *)
32811 # `set' quotes correctly as required by POSIX, so do not add quotes.
32812 sed -n \
ac1cb8d3 32813 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32814 ;;
32815 esac;
32816} |
32817 sed '
32818 t clear
32819 : clear
32820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32821 t end
32822 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32823 : end' >>confcache
32824if diff $cache_file confcache >/dev/null 2>&1; then :; else
32825 if test -w $cache_file; then
32826 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32827 cat confcache >$cache_file
32828 else
32829 echo "not updating unwritable cache $cache_file"
32830 fi
32831fi
32832rm -f confcache
32833
32834
32835CPP_MT_FLAG=
32836if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32837
32838
32839 THREADS_LINK=
32840 THREADS_CFLAGS=
32841
32842 if test "$wxUSE_THREADS" = "yes" ; then
32843 if test "$USE_BEOS" = 1; then
32844 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32845echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32846 wxUSE_THREADS="no"
32847 fi
32848 fi
32849
32850 if test "$wxUSE_THREADS" = "yes" ; then
32851
32852
32853 THREAD_OPTS="-pthread"
32854 case "${host}" in
32855 *-*-solaris2* | *-*-sunos4* )
32856 if test "x$GCC" = "xyes"; then
32857 THREAD_OPTS="-pthreads $THREAD_OPTS"
32858 else
32859 THREAD_OPTS="-mt $THREAD_OPTS"
32860 fi
32861 ;;
32862 *-*-freebsd*)
32863 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32864 ;;
32865 *-*-darwin* | *-*-cygwin* )
32866 THREAD_OPTS=""
32867 ;;
32868 *-*-aix*)
32869 THREAD_OPTS="pthreads"
32870 ;;
32871 *-hp-hpux* )
32872 if test "x$GCC" != "xyes"; then
32873 THREAD_OPTS=""
32874 fi
32875 ;;
32876
32877 *-*-irix* )
32878 if test "x$GCC" = "xyes"; then
32879 THREAD_OPTS=""
32880 fi
32881 ;;
32882
32883 *-*-*UnixWare*)
32884 if test "x$GCC" != "xyes"; then
32885 THREAD_OPTS="-Ethread"
32886 fi
32887 ;;
32888 esac
32889
32890 THREAD_OPTS="$THREAD_OPTS pthread none"
32891
32892 THREADS_OK=no
32893 for flag in $THREAD_OPTS; do
32894 case $flag in
32895 none)
32896 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32897echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32898 ;;
32899
32900 -*)
32901 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32902echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32903 THREADS_CFLAGS="$flag"
32904 ;;
32905
32906 *)
32907 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32908echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32909 THREADS_LINK="-l$flag"
32910 ;;
32911 esac
32912
32913 save_LIBS="$LIBS"
32914 save_CFLAGS="$CFLAGS"
32915 LIBS="$THREADS_LINK $LIBS"
32916 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32917
32918 cat >conftest.$ac_ext <<_ACEOF
32919/* confdefs.h. */
32920_ACEOF
32921cat confdefs.h >>conftest.$ac_ext
32922cat >>conftest.$ac_ext <<_ACEOF
32923/* end confdefs.h. */
32924#include <pthread.h>
32925int
32926main ()
32927{
32928pthread_create(0,0,0,0);
32929 ;
32930 return 0;
32931}
32932_ACEOF
32933rm -f conftest.$ac_objext conftest$ac_exeext
32934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32935 (eval $ac_link) 2>conftest.er1
a848cd7e 32936 ac_status=$?
ac1cb8d3
VS
32937 grep -v '^ *+' conftest.er1 >conftest.err
32938 rm -f conftest.er1
32939 cat conftest.err >&5
a848cd7e
SC
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); } &&
89be85c2
VS
32942 { ac_try='test -z "$ac_c_werror_flag"
32943 || test ! -s conftest.err'
ac1cb8d3
VS
32944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32945 (eval $ac_try) 2>&5
32946 ac_status=$?
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); }; } &&
32949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32951 (eval $ac_try) 2>&5
32952 ac_status=$?
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); }; }; then
32955 THREADS_OK=yes
32956else
32957 echo "$as_me: failed program was:" >&5
32958sed 's/^/| /' conftest.$ac_ext >&5
32959
32960fi
ac1cb8d3
VS
32961rm -f conftest.err conftest.$ac_objext \
32962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32963
32964 LIBS="$save_LIBS"
32965 CFLAGS="$save_CFLAGS"
32966
32967 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32968echo "${ECHO_T}$THREADS_OK" >&6
32969 if test "x$THREADS_OK" = "xyes"; then
32970 break;
32971 fi
32972
32973 THREADS_LINK=""
32974 THREADS_CFLAGS=""
32975 done
32976
32977 if test "x$THREADS_OK" != "xyes"; then
32978 wxUSE_THREADS=no
32979 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32980echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32981 else
32982 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32983 LIBS="$THREADS_LINK $LIBS"
32984
32985 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32986echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32987 flag=no
32988 case "${host}" in
32989 *-aix*)
32990 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32991 flag="-D_THREAD_SAFE"
32992 ;;
32993 *-freebsd*)
32994 flag="-D_THREAD_SAFE"
32995 ;;
32996 *-hp-hpux* )
32997 flag="-D_REENTRANT"
32998 if test "x$GCC" != "xyes"; then
32999 flag="$flag -D_RWSTD_MULTI_THREAD"
33000 fi
33001 ;;
33002 *solaris* | alpha*-osf*)
33003 flag="-D_REENTRANT"
33004 ;;
33005 esac
33006 echo "$as_me:$LINENO: result: ${flag}" >&5
33007echo "${ECHO_T}${flag}" >&6
33008 if test "x$flag" != xno; then
33009 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33010 fi
33011
33012 if test "x$THREADS_CFLAGS" != "x"; then
33013 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33014 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33015 fi
33016 fi
33017 fi
33018
33019 if test "$wxUSE_THREADS" = "yes" ; then
33020
33021for ac_func in thr_setconcurrency
33022do
33023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33024echo "$as_me:$LINENO: checking for $ac_func" >&5
33025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33026if eval "test \"\${$as_ac_var+set}\" = set"; then
33027 echo $ECHO_N "(cached) $ECHO_C" >&6
33028else
33029 cat >conftest.$ac_ext <<_ACEOF
33030/* confdefs.h. */
33031_ACEOF
33032cat confdefs.h >>conftest.$ac_ext
33033cat >>conftest.$ac_ext <<_ACEOF
33034/* end confdefs.h. */
ac1cb8d3
VS
33035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33037#define $ac_func innocuous_$ac_func
33038
a848cd7e
SC
33039/* System header to define __stub macros and hopefully few prototypes,
33040 which can conflict with char $ac_func (); below.
33041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33042 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33043
a848cd7e
SC
33044#ifdef __STDC__
33045# include <limits.h>
33046#else
33047# include <assert.h>
33048#endif
ac1cb8d3
VS
33049
33050#undef $ac_func
33051
a848cd7e
SC
33052/* Override any gcc2 internal prototype to avoid an error. */
33053#ifdef __cplusplus
33054extern "C"
33055{
33056#endif
33057/* We use char because int might match the return type of a gcc2
33058 builtin and then its argument prototype would still apply. */
33059char $ac_func ();
33060/* The GNU C library defines this for functions which it implements
33061 to always fail with ENOSYS. Some functions are actually named
33062 something starting with __ and the normal name is an alias. */
33063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33064choke me
33065#else
33066char (*f) () = $ac_func;
33067#endif
33068#ifdef __cplusplus
33069}
33070#endif
33071
33072int
33073main ()
33074{
33075return f != $ac_func;
33076 ;
33077 return 0;
33078}
33079_ACEOF
33080rm -f conftest.$ac_objext conftest$ac_exeext
33081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33082 (eval $ac_link) 2>conftest.er1
a848cd7e 33083 ac_status=$?
ac1cb8d3
VS
33084 grep -v '^ *+' conftest.er1 >conftest.err
33085 rm -f conftest.er1
33086 cat conftest.err >&5
a848cd7e
SC
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); } &&
89be85c2
VS
33089 { ac_try='test -z "$ac_c_werror_flag"
33090 || test ! -s conftest.err'
ac1cb8d3
VS
33091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33092 (eval $ac_try) 2>&5
33093 ac_status=$?
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); }; } &&
33096 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33098 (eval $ac_try) 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; }; then
33102 eval "$as_ac_var=yes"
33103else
33104 echo "$as_me: failed program was:" >&5
33105sed 's/^/| /' conftest.$ac_ext >&5
33106
33107eval "$as_ac_var=no"
33108fi
ac1cb8d3
VS
33109rm -f conftest.err conftest.$ac_objext \
33110 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33111fi
33112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33113echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33114if test `eval echo '${'$as_ac_var'}'` = yes; then
33115 cat >>confdefs.h <<_ACEOF
33116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33117_ACEOF
33118
33119fi
33120done
33121
33122
33123
33124for ac_header in sched.h
33125do
33126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33127if eval "test \"\${$as_ac_Header+set}\" = set"; then
33128 echo "$as_me:$LINENO: checking for $ac_header" >&5
33129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33130if eval "test \"\${$as_ac_Header+set}\" = set"; then
33131 echo $ECHO_N "(cached) $ECHO_C" >&6
33132fi
33133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33135else
33136 # Is the header compilable?
33137echo "$as_me:$LINENO: checking $ac_header usability" >&5
33138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33139cat >conftest.$ac_ext <<_ACEOF
33140/* confdefs.h. */
33141_ACEOF
33142cat confdefs.h >>conftest.$ac_ext
33143cat >>conftest.$ac_ext <<_ACEOF
33144/* end confdefs.h. */
33145$ac_includes_default
33146#include <$ac_header>
33147_ACEOF
33148rm -f conftest.$ac_objext
33149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33150 (eval $ac_compile) 2>conftest.er1
a848cd7e 33151 ac_status=$?
ac1cb8d3
VS
33152 grep -v '^ *+' conftest.er1 >conftest.err
33153 rm -f conftest.er1
33154 cat conftest.err >&5
a848cd7e
SC
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } &&
89be85c2
VS
33157 { ac_try='test -z "$ac_c_werror_flag"
33158 || test ! -s conftest.err'
ac1cb8d3
VS
33159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33160 (eval $ac_try) 2>&5
33161 ac_status=$?
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); }; } &&
33164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33166 (eval $ac_try) 2>&5
33167 ac_status=$?
33168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169 (exit $ac_status); }; }; then
33170 ac_header_compiler=yes
33171else
33172 echo "$as_me: failed program was:" >&5
33173sed 's/^/| /' conftest.$ac_ext >&5
33174
33175ac_header_compiler=no
33176fi
ac1cb8d3 33177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33179echo "${ECHO_T}$ac_header_compiler" >&6
33180
33181# Is the header present?
33182echo "$as_me:$LINENO: checking $ac_header presence" >&5
33183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33184cat >conftest.$ac_ext <<_ACEOF
33185/* confdefs.h. */
33186_ACEOF
33187cat confdefs.h >>conftest.$ac_ext
33188cat >>conftest.$ac_ext <<_ACEOF
33189/* end confdefs.h. */
33190#include <$ac_header>
33191_ACEOF
33192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33194 ac_status=$?
33195 grep -v '^ *+' conftest.er1 >conftest.err
33196 rm -f conftest.er1
33197 cat conftest.err >&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } >/dev/null; then
33200 if test -s conftest.err; then
33201 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33203 else
33204 ac_cpp_err=
33205 fi
33206else
33207 ac_cpp_err=yes
33208fi
33209if test -z "$ac_cpp_err"; then
33210 ac_header_preproc=yes
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
33215 ac_header_preproc=no
33216fi
33217rm -f conftest.err conftest.$ac_ext
33218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33219echo "${ECHO_T}$ac_header_preproc" >&6
33220
33221# So? What about this header?
ac1cb8d3
VS
33222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33223 yes:no: )
a848cd7e
SC
33224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33228 ac_header_preproc=yes
a848cd7e 33229 ;;
ac1cb8d3 33230 no:yes:* )
a848cd7e
SC
33231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33243 (
33244 cat <<\_ASBOX
ac1cb8d3
VS
33245## ----------------------------------------- ##
33246## Report this to wx-dev@lists.wxwidgets.org ##
33247## ----------------------------------------- ##
a848cd7e
SC
33248_ASBOX
33249 ) |
33250 sed "s/^/$as_me: WARNING: /" >&2
33251 ;;
33252esac
33253echo "$as_me:$LINENO: checking for $ac_header" >&5
33254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33255if eval "test \"\${$as_ac_Header+set}\" = set"; then
33256 echo $ECHO_N "(cached) $ECHO_C" >&6
33257else
ac1cb8d3 33258 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33259fi
33260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33262
33263fi
33264if test `eval echo '${'$as_ac_Header'}'` = yes; then
33265 cat >>confdefs.h <<_ACEOF
33266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33267_ACEOF
33268
33269fi
33270
33271done
33272
33273 if test "$ac_cv_header_sched_h" = "yes"; then
33274 echo "$as_me:$LINENO: checking for sched_yield" >&5
33275echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33276if test "${ac_cv_func_sched_yield+set}" = set; then
33277 echo $ECHO_N "(cached) $ECHO_C" >&6
33278else
33279 cat >conftest.$ac_ext <<_ACEOF
33280/* confdefs.h. */
33281_ACEOF
33282cat confdefs.h >>conftest.$ac_ext
33283cat >>conftest.$ac_ext <<_ACEOF
33284/* end confdefs.h. */
ac1cb8d3
VS
33285/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33287#define sched_yield innocuous_sched_yield
33288
a848cd7e
SC
33289/* System header to define __stub macros and hopefully few prototypes,
33290 which can conflict with char sched_yield (); below.
33291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33293
a848cd7e
SC
33294#ifdef __STDC__
33295# include <limits.h>
33296#else
33297# include <assert.h>
33298#endif
ac1cb8d3
VS
33299
33300#undef sched_yield
33301
a848cd7e
SC
33302/* Override any gcc2 internal prototype to avoid an error. */
33303#ifdef __cplusplus
33304extern "C"
33305{
33306#endif
33307/* We use char because int might match the return type of a gcc2
33308 builtin and then its argument prototype would still apply. */
33309char sched_yield ();
33310/* The GNU C library defines this for functions which it implements
33311 to always fail with ENOSYS. Some functions are actually named
33312 something starting with __ and the normal name is an alias. */
33313#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33314choke me
33315#else
33316char (*f) () = sched_yield;
33317#endif
33318#ifdef __cplusplus
33319}
33320#endif
33321
33322int
33323main ()
33324{
33325return f != sched_yield;
33326 ;
33327 return 0;
33328}
33329_ACEOF
33330rm -f conftest.$ac_objext conftest$ac_exeext
33331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33332 (eval $ac_link) 2>conftest.er1
a848cd7e 33333 ac_status=$?
ac1cb8d3
VS
33334 grep -v '^ *+' conftest.er1 >conftest.err
33335 rm -f conftest.er1
33336 cat conftest.err >&5
a848cd7e
SC
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); } &&
89be85c2
VS
33339 { ac_try='test -z "$ac_c_werror_flag"
33340 || test ! -s conftest.err'
ac1cb8d3
VS
33341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33342 (eval $ac_try) 2>&5
33343 ac_status=$?
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); }; } &&
33346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33348 (eval $ac_try) 2>&5
33349 ac_status=$?
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; }; then
33352 ac_cv_func_sched_yield=yes
33353else
33354 echo "$as_me: failed program was:" >&5
33355sed 's/^/| /' conftest.$ac_ext >&5
33356
33357ac_cv_func_sched_yield=no
33358fi
ac1cb8d3
VS
33359rm -f conftest.err conftest.$ac_objext \
33360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33361fi
33362echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33363echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33364if test $ac_cv_func_sched_yield = yes; then
33365 cat >>confdefs.h <<\_ACEOF
33366#define HAVE_SCHED_YIELD 1
33367_ACEOF
33368
33369else
33370
33371 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33372echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33373if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33374 echo $ECHO_N "(cached) $ECHO_C" >&6
33375else
33376 ac_check_lib_save_LIBS=$LIBS
33377LIBS="-lposix4 $LIBS"
33378cat >conftest.$ac_ext <<_ACEOF
33379/* confdefs.h. */
33380_ACEOF
33381cat confdefs.h >>conftest.$ac_ext
33382cat >>conftest.$ac_ext <<_ACEOF
33383/* end confdefs.h. */
33384
33385/* Override any gcc2 internal prototype to avoid an error. */
33386#ifdef __cplusplus
33387extern "C"
33388#endif
33389/* We use char because int might match the return type of a gcc2
33390 builtin and then its argument prototype would still apply. */
33391char sched_yield ();
33392int
33393main ()
33394{
33395sched_yield ();
33396 ;
33397 return 0;
33398}
33399_ACEOF
33400rm -f conftest.$ac_objext conftest$ac_exeext
33401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33402 (eval $ac_link) 2>conftest.er1
a848cd7e 33403 ac_status=$?
ac1cb8d3
VS
33404 grep -v '^ *+' conftest.er1 >conftest.err
33405 rm -f conftest.er1
33406 cat conftest.err >&5
a848cd7e
SC
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); } &&
89be85c2
VS
33409 { ac_try='test -z "$ac_c_werror_flag"
33410 || test ! -s conftest.err'
ac1cb8d3
VS
33411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412 (eval $ac_try) 2>&5
33413 ac_status=$?
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; } &&
33416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418 (eval $ac_try) 2>&5
33419 ac_status=$?
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; }; then
33422 ac_cv_lib_posix4_sched_yield=yes
33423else
33424 echo "$as_me: failed program was:" >&5
33425sed 's/^/| /' conftest.$ac_ext >&5
33426
33427ac_cv_lib_posix4_sched_yield=no
33428fi
ac1cb8d3
VS
33429rm -f conftest.err conftest.$ac_objext \
33430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33431LIBS=$ac_check_lib_save_LIBS
33432fi
33433echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33434echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33435if test $ac_cv_lib_posix4_sched_yield = yes; then
33436 cat >>confdefs.h <<\_ACEOF
33437#define HAVE_SCHED_YIELD 1
33438_ACEOF
33439 POSIX4_LINK=" -lposix4"
33440else
33441 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33442echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33443
33444fi
33445
33446
33447
33448fi
33449
33450 fi
33451
33452 HAVE_PRIOR_FUNCS=0
33453 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33454echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33455if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33456 echo $ECHO_N "(cached) $ECHO_C" >&6
33457else
33458 cat >conftest.$ac_ext <<_ACEOF
33459/* confdefs.h. */
33460_ACEOF
33461cat confdefs.h >>conftest.$ac_ext
33462cat >>conftest.$ac_ext <<_ACEOF
33463/* end confdefs.h. */
ac1cb8d3
VS
33464/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33466#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33467
a848cd7e
SC
33468/* System header to define __stub macros and hopefully few prototypes,
33469 which can conflict with char pthread_attr_getschedpolicy (); below.
33470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33471 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33472
a848cd7e
SC
33473#ifdef __STDC__
33474# include <limits.h>
33475#else
33476# include <assert.h>
33477#endif
ac1cb8d3
VS
33478
33479#undef pthread_attr_getschedpolicy
33480
a848cd7e
SC
33481/* Override any gcc2 internal prototype to avoid an error. */
33482#ifdef __cplusplus
33483extern "C"
33484{
33485#endif
33486/* We use char because int might match the return type of a gcc2
33487 builtin and then its argument prototype would still apply. */
33488char pthread_attr_getschedpolicy ();
33489/* The GNU C library defines this for functions which it implements
33490 to always fail with ENOSYS. Some functions are actually named
33491 something starting with __ and the normal name is an alias. */
33492#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33493choke me
33494#else
33495char (*f) () = pthread_attr_getschedpolicy;
33496#endif
33497#ifdef __cplusplus
33498}
33499#endif
33500
33501int
33502main ()
33503{
33504return f != pthread_attr_getschedpolicy;
33505 ;
33506 return 0;
33507}
33508_ACEOF
33509rm -f conftest.$ac_objext conftest$ac_exeext
33510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33511 (eval $ac_link) 2>conftest.er1
a848cd7e 33512 ac_status=$?
ac1cb8d3
VS
33513 grep -v '^ *+' conftest.er1 >conftest.err
33514 rm -f conftest.er1
33515 cat conftest.err >&5
a848cd7e
SC
33516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517 (exit $ac_status); } &&
89be85c2
VS
33518 { ac_try='test -z "$ac_c_werror_flag"
33519 || test ! -s conftest.err'
ac1cb8d3
VS
33520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521 (eval $ac_try) 2>&5
33522 ac_status=$?
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); }; } &&
33525 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33527 (eval $ac_try) 2>&5
33528 ac_status=$?
33529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530 (exit $ac_status); }; }; then
33531 ac_cv_func_pthread_attr_getschedpolicy=yes
33532else
33533 echo "$as_me: failed program was:" >&5
33534sed 's/^/| /' conftest.$ac_ext >&5
33535
33536ac_cv_func_pthread_attr_getschedpolicy=no
33537fi
ac1cb8d3
VS
33538rm -f conftest.err conftest.$ac_objext \
33539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33540fi
33541echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33542echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33543if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33544 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33545echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33546if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33548else
33549 cat >conftest.$ac_ext <<_ACEOF
33550/* confdefs.h. */
33551_ACEOF
33552cat confdefs.h >>conftest.$ac_ext
33553cat >>conftest.$ac_ext <<_ACEOF
33554/* end confdefs.h. */
ac1cb8d3
VS
33555/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33557#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33558
a848cd7e
SC
33559/* System header to define __stub macros and hopefully few prototypes,
33560 which can conflict with char pthread_attr_setschedparam (); below.
33561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33562 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33563
a848cd7e
SC
33564#ifdef __STDC__
33565# include <limits.h>
33566#else
33567# include <assert.h>
33568#endif
ac1cb8d3
VS
33569
33570#undef pthread_attr_setschedparam
33571
a848cd7e
SC
33572/* Override any gcc2 internal prototype to avoid an error. */
33573#ifdef __cplusplus
33574extern "C"
33575{
33576#endif
33577/* We use char because int might match the return type of a gcc2
33578 builtin and then its argument prototype would still apply. */
33579char pthread_attr_setschedparam ();
33580/* The GNU C library defines this for functions which it implements
33581 to always fail with ENOSYS. Some functions are actually named
33582 something starting with __ and the normal name is an alias. */
33583#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33584choke me
33585#else
33586char (*f) () = pthread_attr_setschedparam;
33587#endif
33588#ifdef __cplusplus
33589}
33590#endif
33591
33592int
33593main ()
33594{
33595return f != pthread_attr_setschedparam;
33596 ;
33597 return 0;
33598}
33599_ACEOF
33600rm -f conftest.$ac_objext conftest$ac_exeext
33601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33602 (eval $ac_link) 2>conftest.er1
a848cd7e 33603 ac_status=$?
ac1cb8d3
VS
33604 grep -v '^ *+' conftest.er1 >conftest.err
33605 rm -f conftest.er1
33606 cat conftest.err >&5
a848cd7e
SC
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
89be85c2
VS
33609 { ac_try='test -z "$ac_c_werror_flag"
33610 || test ! -s conftest.err'
ac1cb8d3
VS
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; }; then
33622 ac_cv_func_pthread_attr_setschedparam=yes
33623else
33624 echo "$as_me: failed program was:" >&5
33625sed 's/^/| /' conftest.$ac_ext >&5
33626
33627ac_cv_func_pthread_attr_setschedparam=no
33628fi
ac1cb8d3
VS
33629rm -f conftest.err conftest.$ac_objext \
33630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33631fi
33632echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33633echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33634if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33635 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33636echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33637if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33638 echo $ECHO_N "(cached) $ECHO_C" >&6
33639else
33640 cat >conftest.$ac_ext <<_ACEOF
33641/* confdefs.h. */
33642_ACEOF
33643cat confdefs.h >>conftest.$ac_ext
33644cat >>conftest.$ac_ext <<_ACEOF
33645/* end confdefs.h. */
ac1cb8d3
VS
33646/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33648#define sched_get_priority_max innocuous_sched_get_priority_max
33649
a848cd7e
SC
33650/* System header to define __stub macros and hopefully few prototypes,
33651 which can conflict with char sched_get_priority_max (); below.
33652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33653 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33654
a848cd7e
SC
33655#ifdef __STDC__
33656# include <limits.h>
33657#else
33658# include <assert.h>
33659#endif
ac1cb8d3
VS
33660
33661#undef sched_get_priority_max
33662
a848cd7e
SC
33663/* Override any gcc2 internal prototype to avoid an error. */
33664#ifdef __cplusplus
33665extern "C"
33666{
33667#endif
33668/* We use char because int might match the return type of a gcc2
33669 builtin and then its argument prototype would still apply. */
33670char sched_get_priority_max ();
33671/* The GNU C library defines this for functions which it implements
33672 to always fail with ENOSYS. Some functions are actually named
33673 something starting with __ and the normal name is an alias. */
33674#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33675choke me
33676#else
33677char (*f) () = sched_get_priority_max;
33678#endif
33679#ifdef __cplusplus
33680}
33681#endif
33682
33683int
33684main ()
33685{
33686return f != sched_get_priority_max;
33687 ;
33688 return 0;
33689}
33690_ACEOF
33691rm -f conftest.$ac_objext conftest$ac_exeext
33692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33693 (eval $ac_link) 2>conftest.er1
a848cd7e 33694 ac_status=$?
ac1cb8d3
VS
33695 grep -v '^ *+' conftest.er1 >conftest.err
33696 rm -f conftest.er1
33697 cat conftest.err >&5
a848cd7e
SC
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); } &&
89be85c2
VS
33700 { ac_try='test -z "$ac_c_werror_flag"
33701 || test ! -s conftest.err'
ac1cb8d3
VS
33702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703 (eval $ac_try) 2>&5
33704 ac_status=$?
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); }; } &&
33707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709 (eval $ac_try) 2>&5
33710 ac_status=$?
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; }; then
33713 ac_cv_func_sched_get_priority_max=yes
33714else
33715 echo "$as_me: failed program was:" >&5
33716sed 's/^/| /' conftest.$ac_ext >&5
33717
33718ac_cv_func_sched_get_priority_max=no
33719fi
ac1cb8d3
VS
33720rm -f conftest.err conftest.$ac_objext \
33721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33722fi
33723echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33724echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33725if test $ac_cv_func_sched_get_priority_max = yes; then
33726 HAVE_PRIOR_FUNCS=1
33727else
33728 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33729echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33730if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33731 echo $ECHO_N "(cached) $ECHO_C" >&6
33732else
33733 ac_check_lib_save_LIBS=$LIBS
33734LIBS="-lposix4 $LIBS"
33735cat >conftest.$ac_ext <<_ACEOF
33736/* confdefs.h. */
33737_ACEOF
33738cat confdefs.h >>conftest.$ac_ext
33739cat >>conftest.$ac_ext <<_ACEOF
33740/* end confdefs.h. */
33741
33742/* Override any gcc2 internal prototype to avoid an error. */
33743#ifdef __cplusplus
33744extern "C"
33745#endif
33746/* We use char because int might match the return type of a gcc2
33747 builtin and then its argument prototype would still apply. */
33748char sched_get_priority_max ();
33749int
33750main ()
33751{
33752sched_get_priority_max ();
33753 ;
33754 return 0;
33755}
33756_ACEOF
33757rm -f conftest.$ac_objext conftest$ac_exeext
33758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33759 (eval $ac_link) 2>conftest.er1
a848cd7e 33760 ac_status=$?
ac1cb8d3
VS
33761 grep -v '^ *+' conftest.er1 >conftest.err
33762 rm -f conftest.er1
33763 cat conftest.err >&5
a848cd7e
SC
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); } &&
89be85c2
VS
33766 { ac_try='test -z "$ac_c_werror_flag"
33767 || test ! -s conftest.err'
ac1cb8d3
VS
33768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33769 (eval $ac_try) 2>&5
33770 ac_status=$?
33771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772 (exit $ac_status); }; } &&
33773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33775 (eval $ac_try) 2>&5
33776 ac_status=$?
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; }; then
33779 ac_cv_lib_posix4_sched_get_priority_max=yes
33780else
33781 echo "$as_me: failed program was:" >&5
33782sed 's/^/| /' conftest.$ac_ext >&5
33783
33784ac_cv_lib_posix4_sched_get_priority_max=no
33785fi
ac1cb8d3
VS
33786rm -f conftest.err conftest.$ac_objext \
33787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33788LIBS=$ac_check_lib_save_LIBS
33789fi
33790echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33791echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33792if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33793
33794 HAVE_PRIOR_FUNCS=1
33795 POSIX4_LINK=" -lposix4"
33796
33797fi
33798
33799
33800fi
33801
33802
33803fi
33804
33805
33806fi
33807
33808
33809 if test "$HAVE_PRIOR_FUNCS" = 1; then
33810 cat >>confdefs.h <<\_ACEOF
33811#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33812_ACEOF
33813
33814 else
33815 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33816echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33817 fi
33818
33819 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33820echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33821if test "${ac_cv_func_pthread_cancel+set}" = set; then
33822 echo $ECHO_N "(cached) $ECHO_C" >&6
33823else
33824 cat >conftest.$ac_ext <<_ACEOF
33825/* confdefs.h. */
33826_ACEOF
33827cat confdefs.h >>conftest.$ac_ext
33828cat >>conftest.$ac_ext <<_ACEOF
33829/* end confdefs.h. */
ac1cb8d3
VS
33830/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33832#define pthread_cancel innocuous_pthread_cancel
33833
a848cd7e
SC
33834/* System header to define __stub macros and hopefully few prototypes,
33835 which can conflict with char pthread_cancel (); below.
33836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33838
a848cd7e
SC
33839#ifdef __STDC__
33840# include <limits.h>
33841#else
33842# include <assert.h>
33843#endif
ac1cb8d3
VS
33844
33845#undef pthread_cancel
33846
a848cd7e
SC
33847/* Override any gcc2 internal prototype to avoid an error. */
33848#ifdef __cplusplus
33849extern "C"
33850{
33851#endif
33852/* We use char because int might match the return type of a gcc2
33853 builtin and then its argument prototype would still apply. */
33854char pthread_cancel ();
33855/* The GNU C library defines this for functions which it implements
33856 to always fail with ENOSYS. Some functions are actually named
33857 something starting with __ and the normal name is an alias. */
33858#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33859choke me
33860#else
33861char (*f) () = pthread_cancel;
33862#endif
33863#ifdef __cplusplus
33864}
33865#endif
33866
33867int
33868main ()
33869{
33870return f != pthread_cancel;
33871 ;
33872 return 0;
33873}
33874_ACEOF
33875rm -f conftest.$ac_objext conftest$ac_exeext
33876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33877 (eval $ac_link) 2>conftest.er1
a848cd7e 33878 ac_status=$?
ac1cb8d3
VS
33879 grep -v '^ *+' conftest.er1 >conftest.err
33880 rm -f conftest.er1
33881 cat conftest.err >&5
a848cd7e
SC
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); } &&
89be85c2
VS
33884 { ac_try='test -z "$ac_c_werror_flag"
33885 || test ! -s conftest.err'
ac1cb8d3
VS
33886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33887 (eval $ac_try) 2>&5
33888 ac_status=$?
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); }; } &&
33891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33893 (eval $ac_try) 2>&5
33894 ac_status=$?
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); }; }; then
33897 ac_cv_func_pthread_cancel=yes
33898else
33899 echo "$as_me: failed program was:" >&5
33900sed 's/^/| /' conftest.$ac_ext >&5
33901
33902ac_cv_func_pthread_cancel=no
33903fi
ac1cb8d3
VS
33904rm -f conftest.err conftest.$ac_objext \
33905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33906fi
33907echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33908echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33909if test $ac_cv_func_pthread_cancel = yes; then
33910 cat >>confdefs.h <<\_ACEOF
33911#define HAVE_PTHREAD_CANCEL 1
33912_ACEOF
33913
33914else
33915 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33916echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33917fi
33918
33919
33920
33921
33922 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33923echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33924if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33925 echo $ECHO_N "(cached) $ECHO_C" >&6
33926else
33927
33928 cat >conftest.$ac_ext <<_ACEOF
33929/* confdefs.h. */
33930_ACEOF
33931cat confdefs.h >>conftest.$ac_ext
33932cat >>conftest.$ac_ext <<_ACEOF
33933/* end confdefs.h. */
33934#include <pthread.h>
33935int
33936main ()
33937{
33938
33939 pthread_mutexattr_t attr;
33940 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33941
33942 ;
33943 return 0;
33944}
33945_ACEOF
33946rm -f conftest.$ac_objext
33947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33948 (eval $ac_compile) 2>conftest.er1
a848cd7e 33949 ac_status=$?
ac1cb8d3
VS
33950 grep -v '^ *+' conftest.er1 >conftest.err
33951 rm -f conftest.er1
33952 cat conftest.err >&5
a848cd7e
SC
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } &&
89be85c2
VS
33955 { ac_try='test -z "$ac_c_werror_flag"
33956 || test ! -s conftest.err'
ac1cb8d3
VS
33957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33958 (eval $ac_try) 2>&5
33959 ac_status=$?
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); }; } &&
33962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33964 (eval $ac_try) 2>&5
33965 ac_status=$?
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); }; }; then
33968
33969 wx_cv_type_pthread_mutexattr_t=yes
33970
33971else
33972 echo "$as_me: failed program was:" >&5
33973sed 's/^/| /' conftest.$ac_ext >&5
33974
33975
33976 wx_cv_type_pthread_mutexattr_t=no
33977
33978
33979fi
ac1cb8d3 33980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33981
33982fi
33983echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33984echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33985
33986 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33987 cat >>confdefs.h <<\_ACEOF
33988#define HAVE_PTHREAD_MUTEXATTR_T 1
33989_ACEOF
33990
33991 else
33992 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33993echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33994if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33995 echo $ECHO_N "(cached) $ECHO_C" >&6
33996else
33997
33998 cat >conftest.$ac_ext <<_ACEOF
33999/* confdefs.h. */
34000_ACEOF
34001cat confdefs.h >>conftest.$ac_ext
34002cat >>conftest.$ac_ext <<_ACEOF
34003/* end confdefs.h. */
34004#include <pthread.h>
34005int
34006main ()
34007{
34008
34009 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34010
34011 ;
34012 return 0;
34013}
34014_ACEOF
34015rm -f conftest.$ac_objext
34016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34017 (eval $ac_compile) 2>conftest.er1
a848cd7e 34018 ac_status=$?
ac1cb8d3
VS
34019 grep -v '^ *+' conftest.er1 >conftest.err
34020 rm -f conftest.er1
34021 cat conftest.err >&5
a848cd7e
SC
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); } &&
89be85c2
VS
34024 { ac_try='test -z "$ac_c_werror_flag"
34025 || test ! -s conftest.err'
ac1cb8d3
VS
34026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34027 (eval $ac_try) 2>&5
34028 ac_status=$?
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); }; } &&
34031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34033 (eval $ac_try) 2>&5
34034 ac_status=$?
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); }; }; then
34037
34038 wx_cv_type_pthread_rec_mutex_init=yes
34039
34040else
34041 echo "$as_me: failed program was:" >&5
34042sed 's/^/| /' conftest.$ac_ext >&5
34043
34044
34045 wx_cv_type_pthread_rec_mutex_init=no
34046
34047
34048fi
ac1cb8d3 34049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34050
34051fi
34052echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34053echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34054 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34055 cat >>confdefs.h <<\_ACEOF
34056#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34057_ACEOF
34058
34059 else
34060 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34061echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34062 fi
34063 fi
34064 fi
34065
34066else
34067 if test "$wxUSE_THREADS" = "yes" ; then
34068 case "${host}" in
34069 *-*-mingw32* )
34070 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34071echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34072if test "${wx_cv_cflags_mthread+set}" = set; then
34073 echo $ECHO_N "(cached) $ECHO_C" >&6
34074else
34075
34076 CFLAGS_OLD="$CFLAGS"
34077 CFLAGS="$CFLAGS -mthreads"
34078 cat >conftest.$ac_ext <<_ACEOF
34079/* confdefs.h. */
34080_ACEOF
34081cat confdefs.h >>conftest.$ac_ext
34082cat >>conftest.$ac_ext <<_ACEOF
34083/* end confdefs.h. */
34084
34085int
34086main ()
34087{
34088
34089 ;
34090 return 0;
34091}
34092_ACEOF
34093rm -f conftest.$ac_objext
34094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34095 (eval $ac_compile) 2>conftest.er1
a848cd7e 34096 ac_status=$?
ac1cb8d3
VS
34097 grep -v '^ *+' conftest.er1 >conftest.err
34098 rm -f conftest.er1
34099 cat conftest.err >&5
a848cd7e
SC
34100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101 (exit $ac_status); } &&
89be85c2
VS
34102 { ac_try='test -z "$ac_c_werror_flag"
34103 || test ! -s conftest.err'
ac1cb8d3
VS
34104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34105 (eval $ac_try) 2>&5
34106 ac_status=$?
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; } &&
34109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111 (eval $ac_try) 2>&5
34112 ac_status=$?
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; }; then
34115 wx_cv_cflags_mthread=yes
34116else
34117 echo "$as_me: failed program was:" >&5
34118sed 's/^/| /' conftest.$ac_ext >&5
34119
34120wx_cv_cflags_mthread=no
34121
34122fi
ac1cb8d3 34123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34124
34125
34126fi
34127echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34128echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34129
34130 if test "$wx_cv_cflags_mthread" = "yes"; then
34131 CXXFLAGS="$CXXFLAGS -mthreads"
34132 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34133 LDFLAGS="$LDFLAGS -mthreads"
34134 else
34135 CFLAGS="$CFLAGS_OLD"
34136 fi
34137 ;;
34138 *-pc-os2*emx )
34139 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34140 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34141 LDFLAGS="$LDFLAGS -Zmt"
34142 ;;
34143 esac
34144 fi
34145fi
34146
34147if test "$wxUSE_THREADS" = "yes"; then
34148 cat >>confdefs.h <<\_ACEOF
34149#define wxUSE_THREADS 1
34150_ACEOF
34151
34152
34153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34154else
34155 if test "$ac_cv_func_strtok_r" = "yes"; then
34156 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34157echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34158 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34159 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34160 echo "$as_me:$LINENO: result: yes" >&5
34161echo "${ECHO_T}yes" >&6
34162 else
34163 echo "$as_me:$LINENO: result: no" >&5
34164echo "${ECHO_T}no" >&6
34165 fi
34166 fi
34167fi
34168
34169if test "$WXGTK20" = 1 ; then
34170 cat >>confdefs.h <<_ACEOF
34171#define __WXGTK20__ $WXGTK20
34172_ACEOF
34173
34174 WXGTK12=1
34175fi
34176
34177if test "$WXGTK12" = 1 ; then
34178 cat >>confdefs.h <<_ACEOF
34179#define __WXGTK12__ $WXGTK12
34180_ACEOF
34181
34182fi
34183
34184if test "$WXGTK127" = 1 ; then
34185 cat >>confdefs.h <<_ACEOF
34186#define __WXGTK127__ $WXGTK127
34187_ACEOF
34188
34189fi
34190
34191if test "$WXGPE" = 1 ; then
34192 cat >>confdefs.h <<_ACEOF
34193#define __WXGPE__ $WXGPE
34194_ACEOF
34195
34196fi
34197
34198WXDEBUG=
34199
34200if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34201 WXDEBUG="-g"
34202 wxUSE_OPTIMISE=no
34203fi
34204
34205if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34206 wxUSE_DEBUG_INFO=yes
34207 WXDEBUG="-ggdb"
34208fi
34209
34210if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34211 cat >>confdefs.h <<\_ACEOF
34212#define WXDEBUG 1
34213_ACEOF
34214
34215 WXDEBUG_DEFINE="-D__WXDEBUG__"
34216else
34217 if test "$wxUSE_GTK" = 1 ; then
34218 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34219 fi
34220fi
34221
34222if test "$wxUSE_MEM_TRACING" = "yes" ; then
34223 cat >>confdefs.h <<\_ACEOF
34224#define wxUSE_MEMORY_TRACING 1
34225_ACEOF
34226
34227 cat >>confdefs.h <<\_ACEOF
34228#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34229_ACEOF
34230
34231 cat >>confdefs.h <<\_ACEOF
34232#define wxUSE_DEBUG_NEW_ALWAYS 1
34233_ACEOF
34234
34235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34236fi
34237
34238if test "$wxUSE_DMALLOC" = "yes" ; then
34239 DMALLOC_LIBS="-ldmalloc"
34240fi
34241
34242PROFILE=
34243if test "$wxUSE_PROFILE" = "yes" ; then
34244 PROFILE=" -pg"
34245fi
34246
34247CODE_GEN_FLAGS=
34248CODE_GEN_FLAGS_CXX=
34249if test "$GCC" = "yes" ; then
34250 if test "$wxUSE_NO_RTTI" = "yes" ; then
34251 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34252 fi
34253 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34254 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34255 fi
34256 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34257 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34258 fi
34259
34260 case "${host}" in
34261 powerpc*-*-aix* )
34262 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34263 ;;
34264 *-hppa* )
34265 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34266 ;;
34267 esac
34268fi
34269
34270OPTIMISE=
34271if test "$wxUSE_OPTIMISE" = "no" ; then
34272 if test "$GCC" = yes ; then
34273 OPTIMISE="-O0"
34274 fi
34275else
34276 if test "$GCC" = yes ; then
34277 OPTIMISE="-O2"
34278
34279 case "${host}" in
34280 i586-*-*|i686-*-* )
34281 OPTIMISE="${OPTIMISE} "
34282 ;;
34283 esac
34284 else
34285 OPTIMISE="-O"
34286 fi
34287fi
34288
34289
34290if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34291 cat >>confdefs.h <<\_ACEOF
34292#define WXWIN_COMPATIBILITY_2_2 1
34293_ACEOF
34294
34295
34296 WXWIN_COMPATIBILITY_2_4="yes"
34297fi
34298
34299if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34300 cat >>confdefs.h <<\_ACEOF
34301#define WXWIN_COMPATIBILITY_2_4 1
34302_ACEOF
34303
34304fi
34305
34306
34307if test "$wxUSE_GUI" = "yes"; then
881bfcd6 34308 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
34309#define wxUSE_GUI 1
34310_ACEOF
34311
34312
370fd4c2 34313 fi
a848cd7e
SC
34314
34315
34316if test "$wxUSE_UNIX" = "yes"; then
34317 cat >>confdefs.h <<\_ACEOF
34318#define wxUSE_UNIX 1
34319_ACEOF
34320
34321fi
34322
34323
34324if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34325
34326 HAVE_DL_FUNCS=0
34327 HAVE_SHL_FUNCS=0
34328 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34329 if test "$USE_DARWIN" = 1; then
34330 HAVE_DL_FUNCS=1
34331 else
34332
34333for ac_func in dlopen
34334do
34335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34336echo "$as_me:$LINENO: checking for $ac_func" >&5
34337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34338if eval "test \"\${$as_ac_var+set}\" = set"; then
34339 echo $ECHO_N "(cached) $ECHO_C" >&6
34340else
34341 cat >conftest.$ac_ext <<_ACEOF
34342/* confdefs.h. */
34343_ACEOF
34344cat confdefs.h >>conftest.$ac_ext
34345cat >>conftest.$ac_ext <<_ACEOF
34346/* end confdefs.h. */
ac1cb8d3
VS
34347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34349#define $ac_func innocuous_$ac_func
34350
a848cd7e
SC
34351/* System header to define __stub macros and hopefully few prototypes,
34352 which can conflict with char $ac_func (); below.
34353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34354 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34355
a848cd7e
SC
34356#ifdef __STDC__
34357# include <limits.h>
34358#else
34359# include <assert.h>
34360#endif
ac1cb8d3
VS
34361
34362#undef $ac_func
34363
a848cd7e
SC
34364/* Override any gcc2 internal prototype to avoid an error. */
34365#ifdef __cplusplus
34366extern "C"
34367{
34368#endif
34369/* We use char because int might match the return type of a gcc2
34370 builtin and then its argument prototype would still apply. */
34371char $ac_func ();
34372/* The GNU C library defines this for functions which it implements
34373 to always fail with ENOSYS. Some functions are actually named
34374 something starting with __ and the normal name is an alias. */
34375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34376choke me
34377#else
34378char (*f) () = $ac_func;
34379#endif
34380#ifdef __cplusplus
34381}
34382#endif
34383
34384int
34385main ()
34386{
34387return f != $ac_func;
34388 ;
34389 return 0;
34390}
34391_ACEOF
34392rm -f conftest.$ac_objext conftest$ac_exeext
34393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34394 (eval $ac_link) 2>conftest.er1
a848cd7e 34395 ac_status=$?
ac1cb8d3
VS
34396 grep -v '^ *+' conftest.er1 >conftest.err
34397 rm -f conftest.er1
34398 cat conftest.err >&5
a848cd7e
SC
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400 (exit $ac_status); } &&
89be85c2
VS
34401 { ac_try='test -z "$ac_c_werror_flag"
34402 || test ! -s conftest.err'
ac1cb8d3
VS
34403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34404 (eval $ac_try) 2>&5
34405 ac_status=$?
34406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); }; } &&
34408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34410 (eval $ac_try) 2>&5
34411 ac_status=$?
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); }; }; then
34414 eval "$as_ac_var=yes"
34415else
34416 echo "$as_me: failed program was:" >&5
34417sed 's/^/| /' conftest.$ac_ext >&5
34418
34419eval "$as_ac_var=no"
34420fi
ac1cb8d3
VS
34421rm -f conftest.err conftest.$ac_objext \
34422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34423fi
34424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34425echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34426if test `eval echo '${'$as_ac_var'}'` = yes; then
34427 cat >>confdefs.h <<_ACEOF
34428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34429_ACEOF
34430
34431 cat >>confdefs.h <<\_ACEOF
34432#define HAVE_DLOPEN 1
34433_ACEOF
34434
34435 HAVE_DL_FUNCS=1
34436
34437else
34438
34439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34440echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34441if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34442 echo $ECHO_N "(cached) $ECHO_C" >&6
34443else
34444 ac_check_lib_save_LIBS=$LIBS
34445LIBS="-ldl $LIBS"
34446cat >conftest.$ac_ext <<_ACEOF
34447/* confdefs.h. */
34448_ACEOF
34449cat confdefs.h >>conftest.$ac_ext
34450cat >>conftest.$ac_ext <<_ACEOF
34451/* end confdefs.h. */
34452
34453/* Override any gcc2 internal prototype to avoid an error. */
34454#ifdef __cplusplus
34455extern "C"
34456#endif
34457/* We use char because int might match the return type of a gcc2
34458 builtin and then its argument prototype would still apply. */
34459char dlopen ();
34460int
34461main ()
34462{
34463dlopen ();
34464 ;
34465 return 0;
34466}
34467_ACEOF
34468rm -f conftest.$ac_objext conftest$ac_exeext
34469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34470 (eval $ac_link) 2>conftest.er1
a848cd7e 34471 ac_status=$?
ac1cb8d3
VS
34472 grep -v '^ *+' conftest.er1 >conftest.err
34473 rm -f conftest.er1
34474 cat conftest.err >&5
a848cd7e
SC
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); } &&
89be85c2
VS
34477 { ac_try='test -z "$ac_c_werror_flag"
34478 || test ! -s conftest.err'
ac1cb8d3
VS
34479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480 (eval $ac_try) 2>&5
34481 ac_status=$?
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); }; } &&
34484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34486 (eval $ac_try) 2>&5
34487 ac_status=$?
34488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489 (exit $ac_status); }; }; then
34490 ac_cv_lib_dl_dlopen=yes
34491else
34492 echo "$as_me: failed program was:" >&5
34493sed 's/^/| /' conftest.$ac_ext >&5
34494
34495ac_cv_lib_dl_dlopen=no
34496fi
ac1cb8d3
VS
34497rm -f conftest.err conftest.$ac_objext \
34498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34499LIBS=$ac_check_lib_save_LIBS
34500fi
34501echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34502echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34503if test $ac_cv_lib_dl_dlopen = yes; then
34504
34505 cat >>confdefs.h <<\_ACEOF
34506#define HAVE_DLOPEN 1
34507_ACEOF
34508
34509 HAVE_DL_FUNCS=1
34510 DL_LINK=" -ldl$DL_LINK"
34511
34512else
34513
34514
34515for ac_func in shl_load
34516do
34517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34518echo "$as_me:$LINENO: checking for $ac_func" >&5
34519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34520if eval "test \"\${$as_ac_var+set}\" = set"; then
34521 echo $ECHO_N "(cached) $ECHO_C" >&6
34522else
34523 cat >conftest.$ac_ext <<_ACEOF
34524/* confdefs.h. */
34525_ACEOF
34526cat confdefs.h >>conftest.$ac_ext
34527cat >>conftest.$ac_ext <<_ACEOF
34528/* end confdefs.h. */
ac1cb8d3
VS
34529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34531#define $ac_func innocuous_$ac_func
34532
a848cd7e
SC
34533/* System header to define __stub macros and hopefully few prototypes,
34534 which can conflict with char $ac_func (); below.
34535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34536 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34537
a848cd7e
SC
34538#ifdef __STDC__
34539# include <limits.h>
34540#else
34541# include <assert.h>
34542#endif
ac1cb8d3
VS
34543
34544#undef $ac_func
34545
a848cd7e
SC
34546/* Override any gcc2 internal prototype to avoid an error. */
34547#ifdef __cplusplus
34548extern "C"
34549{
34550#endif
34551/* We use char because int might match the return type of a gcc2
34552 builtin and then its argument prototype would still apply. */
34553char $ac_func ();
34554/* The GNU C library defines this for functions which it implements
34555 to always fail with ENOSYS. Some functions are actually named
34556 something starting with __ and the normal name is an alias. */
34557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34558choke me
34559#else
34560char (*f) () = $ac_func;
34561#endif
34562#ifdef __cplusplus
34563}
34564#endif
34565
34566int
34567main ()
34568{
34569return f != $ac_func;
34570 ;
34571 return 0;
34572}
34573_ACEOF
34574rm -f conftest.$ac_objext conftest$ac_exeext
34575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34576 (eval $ac_link) 2>conftest.er1
a848cd7e 34577 ac_status=$?
ac1cb8d3
VS
34578 grep -v '^ *+' conftest.er1 >conftest.err
34579 rm -f conftest.er1
34580 cat conftest.err >&5
a848cd7e
SC
34581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); } &&
89be85c2
VS
34583 { ac_try='test -z "$ac_c_werror_flag"
34584 || test ! -s conftest.err'
ac1cb8d3
VS
34585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34586 (eval $ac_try) 2>&5
34587 ac_status=$?
34588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34589 (exit $ac_status); }; } &&
34590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34592 (eval $ac_try) 2>&5
34593 ac_status=$?
34594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34595 (exit $ac_status); }; }; then
34596 eval "$as_ac_var=yes"
34597else
34598 echo "$as_me: failed program was:" >&5
34599sed 's/^/| /' conftest.$ac_ext >&5
34600
34601eval "$as_ac_var=no"
34602fi
ac1cb8d3
VS
34603rm -f conftest.err conftest.$ac_objext \
34604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34605fi
34606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34607echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34608if test `eval echo '${'$as_ac_var'}'` = yes; then
34609 cat >>confdefs.h <<_ACEOF
34610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34611_ACEOF
34612
34613 cat >>confdefs.h <<\_ACEOF
34614#define HAVE_SHL_LOAD 1
34615_ACEOF
34616
34617 HAVE_SHL_FUNCS=1
34618
34619else
34620
34621 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34622echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34623if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34624 echo $ECHO_N "(cached) $ECHO_C" >&6
34625else
34626 ac_check_lib_save_LIBS=$LIBS
34627LIBS="-lshl_load $LIBS"
34628cat >conftest.$ac_ext <<_ACEOF
34629/* confdefs.h. */
34630_ACEOF
34631cat confdefs.h >>conftest.$ac_ext
34632cat >>conftest.$ac_ext <<_ACEOF
34633/* end confdefs.h. */
34634
34635/* Override any gcc2 internal prototype to avoid an error. */
34636#ifdef __cplusplus
34637extern "C"
34638#endif
34639/* We use char because int might match the return type of a gcc2
34640 builtin and then its argument prototype would still apply. */
34641char dld ();
34642int
34643main ()
34644{
34645dld ();
34646 ;
34647 return 0;
34648}
34649_ACEOF
34650rm -f conftest.$ac_objext conftest$ac_exeext
34651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34652 (eval $ac_link) 2>conftest.er1
a848cd7e 34653 ac_status=$?
ac1cb8d3
VS
34654 grep -v '^ *+' conftest.er1 >conftest.err
34655 rm -f conftest.er1
34656 cat conftest.err >&5
a848cd7e
SC
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); } &&
89be85c2
VS
34659 { ac_try='test -z "$ac_c_werror_flag"
34660 || test ! -s conftest.err'
ac1cb8d3
VS
34661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34662 (eval $ac_try) 2>&5
34663 ac_status=$?
34664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665 (exit $ac_status); }; } &&
34666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34668 (eval $ac_try) 2>&5
34669 ac_status=$?
34670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671 (exit $ac_status); }; }; then
34672 ac_cv_lib_shl_load_dld=yes
34673else
34674 echo "$as_me: failed program was:" >&5
34675sed 's/^/| /' conftest.$ac_ext >&5
34676
34677ac_cv_lib_shl_load_dld=no
34678fi
ac1cb8d3
VS
34679rm -f conftest.err conftest.$ac_objext \
34680 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34681LIBS=$ac_check_lib_save_LIBS
34682fi
34683echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34684echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34685if test $ac_cv_lib_shl_load_dld = yes; then
34686
34687 HAVE_SHL_FUNCS=1
34688 DL_LINK=" -ldld$DL_LINK"
34689
34690fi
34691
34692
34693fi
34694done
34695
34696
34697fi
34698
34699
34700fi
34701done
34702
34703
34704 if test "$HAVE_DL_FUNCS" = 1; then
34705
34706for ac_func in dlerror
34707do
34708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34709echo "$as_me:$LINENO: checking for $ac_func" >&5
34710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34711if eval "test \"\${$as_ac_var+set}\" = set"; then
34712 echo $ECHO_N "(cached) $ECHO_C" >&6
34713else
34714 cat >conftest.$ac_ext <<_ACEOF
34715/* confdefs.h. */
34716_ACEOF
34717cat confdefs.h >>conftest.$ac_ext
34718cat >>conftest.$ac_ext <<_ACEOF
34719/* end confdefs.h. */
ac1cb8d3
VS
34720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34722#define $ac_func innocuous_$ac_func
34723
a848cd7e
SC
34724/* System header to define __stub macros and hopefully few prototypes,
34725 which can conflict with char $ac_func (); below.
34726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34728
a848cd7e
SC
34729#ifdef __STDC__
34730# include <limits.h>
34731#else
34732# include <assert.h>
34733#endif
ac1cb8d3
VS
34734
34735#undef $ac_func
34736
a848cd7e
SC
34737/* Override any gcc2 internal prototype to avoid an error. */
34738#ifdef __cplusplus
34739extern "C"
34740{
34741#endif
34742/* We use char because int might match the return type of a gcc2
34743 builtin and then its argument prototype would still apply. */
34744char $ac_func ();
34745/* The GNU C library defines this for functions which it implements
34746 to always fail with ENOSYS. Some functions are actually named
34747 something starting with __ and the normal name is an alias. */
34748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34749choke me
34750#else
34751char (*f) () = $ac_func;
34752#endif
34753#ifdef __cplusplus
34754}
34755#endif
34756
34757int
34758main ()
34759{
34760return f != $ac_func;
34761 ;
34762 return 0;
34763}
34764_ACEOF
34765rm -f conftest.$ac_objext conftest$ac_exeext
34766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34767 (eval $ac_link) 2>conftest.er1
a848cd7e 34768 ac_status=$?
ac1cb8d3
VS
34769 grep -v '^ *+' conftest.er1 >conftest.err
34770 rm -f conftest.er1
34771 cat conftest.err >&5
a848cd7e
SC
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); } &&
89be85c2
VS
34774 { ac_try='test -z "$ac_c_werror_flag"
34775 || test ! -s conftest.err'
ac1cb8d3
VS
34776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34777 (eval $ac_try) 2>&5
34778 ac_status=$?
34779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780 (exit $ac_status); }; } &&
34781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34783 (eval $ac_try) 2>&5
34784 ac_status=$?
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); }; }; then
34787 eval "$as_ac_var=yes"
34788else
34789 echo "$as_me: failed program was:" >&5
34790sed 's/^/| /' conftest.$ac_ext >&5
34791
34792eval "$as_ac_var=no"
34793fi
ac1cb8d3
VS
34794rm -f conftest.err conftest.$ac_objext \
34795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34796fi
34797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34799if test `eval echo '${'$as_ac_var'}'` = yes; then
34800 cat >>confdefs.h <<_ACEOF
34801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34802_ACEOF
34803 cat >>confdefs.h <<\_ACEOF
34804#define HAVE_DLERROR 1
34805_ACEOF
34806
34807else
34808
34809 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34810echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34811if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34812 echo $ECHO_N "(cached) $ECHO_C" >&6
34813else
34814 ac_check_lib_save_LIBS=$LIBS
34815LIBS="-ldl $LIBS"
34816cat >conftest.$ac_ext <<_ACEOF
34817/* confdefs.h. */
34818_ACEOF
34819cat confdefs.h >>conftest.$ac_ext
34820cat >>conftest.$ac_ext <<_ACEOF
34821/* end confdefs.h. */
34822
34823/* Override any gcc2 internal prototype to avoid an error. */
34824#ifdef __cplusplus
34825extern "C"
34826#endif
34827/* We use char because int might match the return type of a gcc2
34828 builtin and then its argument prototype would still apply. */
34829char dlerror ();
34830int
34831main ()
34832{
34833dlerror ();
34834 ;
34835 return 0;
34836}
34837_ACEOF
34838rm -f conftest.$ac_objext conftest$ac_exeext
34839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34840 (eval $ac_link) 2>conftest.er1
a848cd7e 34841 ac_status=$?
ac1cb8d3
VS
34842 grep -v '^ *+' conftest.er1 >conftest.err
34843 rm -f conftest.er1
34844 cat conftest.err >&5
a848cd7e
SC
34845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846 (exit $ac_status); } &&
89be85c2
VS
34847 { ac_try='test -z "$ac_c_werror_flag"
34848 || test ! -s conftest.err'
ac1cb8d3
VS
34849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34850 (eval $ac_try) 2>&5
34851 ac_status=$?
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); }; } &&
34854 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34856 (eval $ac_try) 2>&5
34857 ac_status=$?
34858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859 (exit $ac_status); }; }; then
34860 ac_cv_lib_dl_dlerror=yes
34861else
34862 echo "$as_me: failed program was:" >&5
34863sed 's/^/| /' conftest.$ac_ext >&5
34864
34865ac_cv_lib_dl_dlerror=no
34866fi
ac1cb8d3
VS
34867rm -f conftest.err conftest.$ac_objext \
34868 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34869LIBS=$ac_check_lib_save_LIBS
34870fi
34871echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34872echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34873if test $ac_cv_lib_dl_dlerror = yes; then
34874 cat >>confdefs.h <<\_ACEOF
34875#define HAVE_DLERROR 1
34876_ACEOF
34877
34878fi
34879
34880
34881
34882fi
34883done
34884
34885 fi
34886 fi
34887
34888 if test "$HAVE_DL_FUNCS" = 0; then
34889 if test "$HAVE_SHL_FUNCS" = 0; then
34890 if test "$USE_UNIX" = 1; then
34891 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34892echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34893 wxUSE_DYNAMIC_LOADER=no
34894 wxUSE_DYNLIB_CLASS=no
34895 else
34896 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34897echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34898 fi
34899 fi
34900 fi
34901 fi
34902fi
34903
34904if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34905 cat >>confdefs.h <<\_ACEOF
34906#define wxUSE_DYNAMIC_LOADER 1
34907_ACEOF
34908
34909fi
34910if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34911 cat >>confdefs.h <<\_ACEOF
34912#define wxUSE_DYNLIB_CLASS 1
34913_ACEOF
34914
34915fi
34916
34917
34918
34919if test "$wxUSE_PLUGINS" = "yes" ; then
34920 if test "$wxUSE_SHARED" = "no" ; then
34921 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34922echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34923 wxUSE_PLUGINS=no
34924 fi
34925 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34926 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34927echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34928 wxUSE_PLUGINS=no
34929 fi
34930 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34931 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34932echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34933 wxUSE_PLUGINS=no
34934 fi
34935 if test "$wxUSE_PLUGINS" = "yes" ; then
34936 cat >>confdefs.h <<\_ACEOF
34937#define wxUSE_PLUGINS 1
34938_ACEOF
34939
34940 fi
34941fi
34942
34943
34944if test "$wxUSE_STL" = "yes"; then
34945 cat >>confdefs.h <<\_ACEOF
34946#define wxUSE_STL 1
34947_ACEOF
34948
34949fi
34950
34951if test "$wxUSE_APPLE_IEEE" = "yes"; then
34952 cat >>confdefs.h <<\_ACEOF
34953#define wxUSE_APPLE_IEEE 1
34954_ACEOF
34955
34956fi
34957
34958if test "$wxUSE_TIMER" = "yes"; then
34959 cat >>confdefs.h <<\_ACEOF
34960#define wxUSE_TIMER 1
34961_ACEOF
34962
34963fi
34964
34965WITH_PLUGIN_SDL=0
34966if test "$wxUSE_SOUND" = "yes"; then
34967 if test "$USE_UNIX" = "1" ; then
34968
34969for ac_header in sys/soundcard.h
34970do
34971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34972if eval "test \"\${$as_ac_Header+set}\" = set"; then
34973 echo "$as_me:$LINENO: checking for $ac_header" >&5
34974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34975if eval "test \"\${$as_ac_Header+set}\" = set"; then
34976 echo $ECHO_N "(cached) $ECHO_C" >&6
34977fi
34978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34980else
34981 # Is the header compilable?
34982echo "$as_me:$LINENO: checking $ac_header usability" >&5
34983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34984cat >conftest.$ac_ext <<_ACEOF
34985/* confdefs.h. */
34986_ACEOF
34987cat confdefs.h >>conftest.$ac_ext
34988cat >>conftest.$ac_ext <<_ACEOF
34989/* end confdefs.h. */
34990$ac_includes_default
34991#include <$ac_header>
34992_ACEOF
34993rm -f conftest.$ac_objext
34994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34995 (eval $ac_compile) 2>conftest.er1
a848cd7e 34996 ac_status=$?
ac1cb8d3
VS
34997 grep -v '^ *+' conftest.er1 >conftest.err
34998 rm -f conftest.er1
34999 cat conftest.err >&5
a848cd7e
SC
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); } &&
89be85c2
VS
35002 { ac_try='test -z "$ac_c_werror_flag"
35003 || test ! -s conftest.err'
ac1cb8d3
VS
35004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35005 (eval $ac_try) 2>&5
35006 ac_status=$?
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); }; } &&
35009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35011 (eval $ac_try) 2>&5
35012 ac_status=$?
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); }; }; then
35015 ac_header_compiler=yes
35016else
35017 echo "$as_me: failed program was:" >&5
35018sed 's/^/| /' conftest.$ac_ext >&5
35019
35020ac_header_compiler=no
35021fi
ac1cb8d3 35022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35024echo "${ECHO_T}$ac_header_compiler" >&6
35025
35026# Is the header present?
35027echo "$as_me:$LINENO: checking $ac_header presence" >&5
35028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35029cat >conftest.$ac_ext <<_ACEOF
35030/* confdefs.h. */
35031_ACEOF
35032cat confdefs.h >>conftest.$ac_ext
35033cat >>conftest.$ac_ext <<_ACEOF
35034/* end confdefs.h. */
35035#include <$ac_header>
35036_ACEOF
35037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35039 ac_status=$?
35040 grep -v '^ *+' conftest.er1 >conftest.err
35041 rm -f conftest.er1
35042 cat conftest.err >&5
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); } >/dev/null; then
35045 if test -s conftest.err; then
35046 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35048 else
35049 ac_cpp_err=
35050 fi
35051else
35052 ac_cpp_err=yes
35053fi
35054if test -z "$ac_cpp_err"; then
35055 ac_header_preproc=yes
35056else
35057 echo "$as_me: failed program was:" >&5
35058sed 's/^/| /' conftest.$ac_ext >&5
35059
35060 ac_header_preproc=no
35061fi
35062rm -f conftest.err conftest.$ac_ext
35063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35064echo "${ECHO_T}$ac_header_preproc" >&6
35065
35066# So? What about this header?
ac1cb8d3
VS
35067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35068 yes:no: )
a848cd7e
SC
35069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35073 ac_header_preproc=yes
a848cd7e 35074 ;;
ac1cb8d3 35075 no:yes:* )
a848cd7e
SC
35076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35088 (
35089 cat <<\_ASBOX
ac1cb8d3
VS
35090## ----------------------------------------- ##
35091## Report this to wx-dev@lists.wxwidgets.org ##
35092## ----------------------------------------- ##
a848cd7e
SC
35093_ASBOX
35094 ) |
35095 sed "s/^/$as_me: WARNING: /" >&2
35096 ;;
35097esac
35098echo "$as_me:$LINENO: checking for $ac_header" >&5
35099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35100if eval "test \"\${$as_ac_Header+set}\" = set"; then
35101 echo $ECHO_N "(cached) $ECHO_C" >&6
35102else
ac1cb8d3 35103 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35104fi
35105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35107
35108fi
35109if test `eval echo '${'$as_ac_Header'}'` = yes; then
35110 cat >>confdefs.h <<_ACEOF
35111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35112_ACEOF
35113
35114fi
35115
35116done
35117
35118
35119 if test "$wxUSE_LIBSDL" != "no"; then
35120
35121# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35122if test "${with_sdl_prefix+set}" = set; then
35123 withval="$with_sdl_prefix"
35124 sdl_prefix="$withval"
35125else
35126 sdl_prefix=""
35127fi;
35128
35129# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35130if test "${with_sdl_exec_prefix+set}" = set; then
35131 withval="$with_sdl_exec_prefix"
35132 sdl_exec_prefix="$withval"
35133else
35134 sdl_exec_prefix=""
35135fi;
35136# Check whether --enable-sdltest or --disable-sdltest was given.
35137if test "${enable_sdltest+set}" = set; then
35138 enableval="$enable_sdltest"
35139
35140else
35141 enable_sdltest=yes
35142fi;
35143
35144 if test x$sdl_exec_prefix != x ; then
35145 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35146 if test x${SDL_CONFIG+set} != xset ; then
35147 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35148 fi
35149 fi
35150 if test x$sdl_prefix != x ; then
35151 sdl_args="$sdl_args --prefix=$sdl_prefix"
35152 if test x${SDL_CONFIG+set} != xset ; then
35153 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35154 fi
35155 fi
35156
35157
35158 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35159 # Extract the first word of "sdl-config", so it can be a program name with args.
35160set dummy sdl-config; ac_word=$2
35161echo "$as_me:$LINENO: checking for $ac_word" >&5
35162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35163if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35164 echo $ECHO_N "(cached) $ECHO_C" >&6
35165else
35166 case $SDL_CONFIG in
35167 [\\/]* | ?:[\\/]*)
35168 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35169 ;;
35170 *)
35171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35172for as_dir in $PATH
35173do
35174 IFS=$as_save_IFS
35175 test -z "$as_dir" && as_dir=.
35176 for ac_exec_ext in '' $ac_executable_extensions; do
35177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35178 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35180 break 2
35181 fi
35182done
35183done
35184
35185 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35186 ;;
35187esac
35188fi
35189SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35190
35191if test -n "$SDL_CONFIG"; then
35192 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35193echo "${ECHO_T}$SDL_CONFIG" >&6
35194else
35195 echo "$as_me:$LINENO: result: no" >&5
35196echo "${ECHO_T}no" >&6
35197fi
35198
35199 min_sdl_version=1.2.0
35200 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35201echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35202 no_sdl=""
35203 if test "$SDL_CONFIG" = "no" ; then
35204 no_sdl=yes
35205 else
35206 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35207 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35208
35209 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35211 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35213 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35215 if test "x$enable_sdltest" = "xyes" ; then
35216 ac_save_CFLAGS="$CFLAGS"
94acd38e 35217 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
35218 ac_save_LIBS="$LIBS"
35219 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35220 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35221 LIBS="$LIBS $SDL_LIBS"
35222 rm -f conf.sdltest
35223 if test "$cross_compiling" = yes; then
35224 echo $ac_n "cross compiling; assumed OK... $ac_c"
35225else
35226 cat >conftest.$ac_ext <<_ACEOF
35227/* confdefs.h. */
35228_ACEOF
35229cat confdefs.h >>conftest.$ac_ext
35230cat >>conftest.$ac_ext <<_ACEOF
35231/* end confdefs.h. */
35232
35233#include <stdio.h>
35234#include <stdlib.h>
35235#include <string.h>
35236#include "SDL.h"
35237
35238char*
35239my_strdup (char *str)
35240{
35241 char *new_str;
35242
35243 if (str)
35244 {
35245 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35246 strcpy (new_str, str);
35247 }
35248 else
35249 new_str = NULL;
35250
35251 return new_str;
35252}
35253
35254int main (int argc, char *argv[])
35255{
35256 int major, minor, micro;
35257 char *tmp_version;
35258
35259 /* This hangs on some systems (?)
35260 system ("touch conf.sdltest");
35261 */
35262 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35263
35264 /* HP/UX 9 (%@#!) writes to sscanf strings */
35265 tmp_version = my_strdup("$min_sdl_version");
35266 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35267 printf("%s, bad version string\n", "$min_sdl_version");
35268 exit(1);
35269 }
35270
35271 if (($sdl_major_version > major) ||
35272 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35273 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35274 {
35275 return 0;
35276 }
35277 else
35278 {
35279 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35280 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35281 printf("*** best to upgrade to the required version.\n");
35282 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35283 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35284 printf("*** config.cache before re-running configure\n");
35285 return 1;
35286 }
35287}
35288
35289
35290_ACEOF
35291rm -f conftest$ac_exeext
35292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35293 (eval $ac_link) 2>&5
35294 ac_status=$?
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298 (eval $ac_try) 2>&5
35299 ac_status=$?
35300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301 (exit $ac_status); }; }; then
35302 :
35303else
35304 echo "$as_me: program exited with status $ac_status" >&5
35305echo "$as_me: failed program was:" >&5
35306sed 's/^/| /' conftest.$ac_ext >&5
35307
35308( exit $ac_status )
35309no_sdl=yes
35310fi
ac1cb8d3 35311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35312fi
35313 CFLAGS="$ac_save_CFLAGS"
94acd38e 35314 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35315 LIBS="$ac_save_LIBS"
35316 fi
35317 fi
35318 if test "x$no_sdl" = x ; then
35319 echo "$as_me:$LINENO: result: yes" >&5
35320echo "${ECHO_T}yes" >&6
35321
35322 EXTRALIBS_SDL="$SDL_LIBS"
35323 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35324 cat >>confdefs.h <<\_ACEOF
35325#define wxUSE_LIBSDL 1
35326_ACEOF
35327
35328
35329 else
35330 echo "$as_me:$LINENO: result: no" >&5
35331echo "${ECHO_T}no" >&6
35332 if test "$SDL_CONFIG" = "no" ; then
35333 echo "*** The sdl-config script installed by SDL could not be found"
35334 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35335 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35336 echo "*** full path to sdl-config."
35337 else
35338 if test -f conf.sdltest ; then
35339 :
35340 else
35341 echo "*** Could not run SDL test program, checking why..."
35342 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 35343 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
35344 LIBS="$LIBS $SDL_LIBS"
35345 cat >conftest.$ac_ext <<_ACEOF
35346/* confdefs.h. */
35347_ACEOF
35348cat confdefs.h >>conftest.$ac_ext
35349cat >>conftest.$ac_ext <<_ACEOF
35350/* end confdefs.h. */
35351
35352#include <stdio.h>
35353#include "SDL.h"
35354
35355int main(int argc, char *argv[])
35356{ return 0; }
35357#undef main
35358#define main K_and_R_C_main
35359
35360int
35361main ()
35362{
35363 return 0;
35364 ;
35365 return 0;
35366}
35367_ACEOF
35368rm -f conftest.$ac_objext conftest$ac_exeext
35369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35370 (eval $ac_link) 2>conftest.er1
a848cd7e 35371 ac_status=$?
ac1cb8d3
VS
35372 grep -v '^ *+' conftest.er1 >conftest.err
35373 rm -f conftest.er1
35374 cat conftest.err >&5
a848cd7e
SC
35375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376 (exit $ac_status); } &&
89be85c2
VS
35377 { ac_try='test -z "$ac_c_werror_flag"
35378 || test ! -s conftest.err'
ac1cb8d3
VS
35379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35380 (eval $ac_try) 2>&5
35381 ac_status=$?
35382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383 (exit $ac_status); }; } &&
35384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35386 (eval $ac_try) 2>&5
35387 ac_status=$?
35388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389 (exit $ac_status); }; }; then
35390 echo "*** The test program compiled, but did not run. This usually means"
35391 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35392 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35393 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35394 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35395 echo "*** is required on your system"
35396 echo "***"
35397 echo "*** If you have an old version installed, it is best to remove it, although"
35398 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35399else
35400 echo "$as_me: failed program was:" >&5
35401sed 's/^/| /' conftest.$ac_ext >&5
35402
35403 echo "*** The test program failed to compile or link. See the file config.log for the"
35404 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35405 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35406 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35407fi
ac1cb8d3
VS
35408rm -f conftest.err conftest.$ac_objext \
35409 conftest$ac_exeext conftest.$ac_ext
a848cd7e 35410 CFLAGS="$ac_save_CFLAGS"
94acd38e 35411 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
35412 LIBS="$ac_save_LIBS"
35413 fi
35414 fi
35415 SDL_CFLAGS=""
35416 SDL_LIBS=""
35417 wxUSE_LIBSDL="no"
35418 fi
35419
35420
35421 rm -f conf.sdltest
35422
35423 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35424 WITH_PLUGIN_SDL=1
35425 fi
35426 fi
35427 fi
35428
35429 cat >>confdefs.h <<\_ACEOF
35430#define wxUSE_SOUND 1
35431_ACEOF
35432
35433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35434fi
35435
d1c38808
VZ
35436if test "$WXGTK20" = 1; then
35437 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35438 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35439
35440
35441 succeeded=no
35442
35443 if test -z "$PKG_CONFIG"; then
35444 # Extract the first word of "pkg-config", so it can be a program name with args.
35445set dummy pkg-config; ac_word=$2
35446echo "$as_me:$LINENO: checking for $ac_word" >&5
35447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35448if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35449 echo $ECHO_N "(cached) $ECHO_C" >&6
35450else
35451 case $PKG_CONFIG in
35452 [\\/]* | ?:[\\/]*)
35453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35454 ;;
35455 *)
35456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35457for as_dir in $PATH
35458do
35459 IFS=$as_save_IFS
35460 test -z "$as_dir" && as_dir=.
35461 for ac_exec_ext in '' $ac_executable_extensions; do
35462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35463 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35465 break 2
35466 fi
35467done
35468done
35469
35470 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35471 ;;
35472esac
35473fi
35474PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35475
35476if test -n "$PKG_CONFIG"; then
35477 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35478echo "${ECHO_T}$PKG_CONFIG" >&6
35479else
35480 echo "$as_me:$LINENO: result: no" >&5
35481echo "${ECHO_T}no" >&6
35482fi
35483
35484 fi
35485
35486 if test "$PKG_CONFIG" = "no" ; then
35487 echo "*** The pkg-config script could not be found. Make sure it is"
35488 echo "*** in your path, or set the PKG_CONFIG environment variable"
35489 echo "*** to the full path to pkg-config."
35490 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35491 else
35492 PKG_CONFIG_MIN_VERSION=0.9.0
35493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35494 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35495echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35496
ffa762ff 35497 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35498 echo "$as_me:$LINENO: result: yes" >&5
35499echo "${ECHO_T}yes" >&6
35500 succeeded=yes
35501
35502 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35503echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35504 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35505 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35506echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35507
35508 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35509echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35510 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35511 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35512echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35513 else
35514 LIBGNOMEPRINTUI_CFLAGS=""
35515 LIBGNOMEPRINTUI_LIBS=""
35516 ## If we have a custom action on failure, don't print errors, but
35517 ## do set a variable so people can do so.
ffa762ff 35518 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35519
35520 fi
35521
35522
35523
35524 else
35525 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35526 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35527 fi
35528 fi
35529
35530 if test $succeeded = yes; then
35531
d1c38808
VZ
35532 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35533 cat >>confdefs.h <<\_ACEOF
35534#define wxUSE_LIBGNOMEPRINT 1
35535_ACEOF
35536
35537
35538 else
35539
35540 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35541echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35542 wxUSE_LIBGNOMEPRINT="no"
35543
35544
35545 fi
35546
35547 fi
35548 fi
35549fi
35550
35551
a848cd7e
SC
35552if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35553 cat >>confdefs.h <<\_ACEOF
35554#define wxUSE_CMDLINE_PARSER 1
35555_ACEOF
35556
35557fi
35558
35559if test "$wxUSE_STOPWATCH" = "yes"; then
35560 cat >>confdefs.h <<\_ACEOF
35561#define wxUSE_STOPWATCH 1
35562_ACEOF
35563
35564fi
35565
35566if test "$wxUSE_DATETIME" = "yes"; then
35567 cat >>confdefs.h <<\_ACEOF
35568#define wxUSE_DATETIME 1
35569_ACEOF
35570
35571fi
35572
35573if test "$wxUSE_FILE" = "yes"; then
35574 cat >>confdefs.h <<\_ACEOF
35575#define wxUSE_FILE 1
35576_ACEOF
35577
35578fi
35579
35580if test "$wxUSE_FFILE" = "yes"; then
35581 cat >>confdefs.h <<\_ACEOF
35582#define wxUSE_FFILE 1
35583_ACEOF
35584
35585fi
35586
35587if test "$wxUSE_FILESYSTEM" = "yes"; then
35588 cat >>confdefs.h <<\_ACEOF
35589#define wxUSE_FILESYSTEM 1
35590_ACEOF
35591
35592fi
35593
35594if test "$wxUSE_FS_ZIP" = "yes"; then
35595 cat >>confdefs.h <<\_ACEOF
35596#define wxUSE_FS_ZIP 1
35597_ACEOF
35598
35599fi
35600
9e8e867f 35601if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 35602 cat >>confdefs.h <<\_ACEOF
9e8e867f 35603#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
35604_ACEOF
35605
35606fi
35607
35608if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 35609 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
35610 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
35611echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
35612 elif test "$wxUSE_ZLIB" = "no"; then
35613 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
35614echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
35615 else
35616 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35617#define wxUSE_ZIPSTREAM 1
35618_ACEOF
35619
81f90336 35620 fi
a848cd7e
SC
35621fi
35622
a848cd7e
SC
35623if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35624 cat >>confdefs.h <<\_ACEOF
35625#define wxUSE_ON_FATAL_EXCEPTION 1
35626_ACEOF
35627
35628fi
35629
eaff0f0d
VZ
35630if test "$wxUSE_STACKWALKER" = "yes"; then
35631 cat >>confdefs.h <<\_ACEOF
35632#define wxUSE_STACKWALKER 1
35633_ACEOF
35634
35635fi
35636
a848cd7e
SC
35637if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35638 cat >>confdefs.h <<\_ACEOF
35639#define wxUSE_SNGLINST_CHECKER 1
35640_ACEOF
35641
35642fi
35643
35644if test "$wxUSE_BUSYINFO" = "yes"; then
35645 cat >>confdefs.h <<\_ACEOF
35646#define wxUSE_BUSYINFO 1
35647_ACEOF
35648
35649fi
35650
35651if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35652 cat >>confdefs.h <<\_ACEOF
35653#define wxUSE_STD_IOSTREAM 1
35654_ACEOF
35655
35656fi
35657
35658if test "$wxUSE_TEXTBUFFER" = "yes"; then
35659 cat >>confdefs.h <<\_ACEOF
35660#define wxUSE_TEXTBUFFER 1
35661_ACEOF
35662
35663fi
35664
35665if test "$wxUSE_TEXTFILE" = "yes"; then
35666 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35667 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35668echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35669 else
35670 cat >>confdefs.h <<\_ACEOF
35671#define wxUSE_TEXTFILE 1
35672_ACEOF
35673
35674 fi
35675fi
35676
35677if test "$wxUSE_CONFIG" = "yes" ; then
35678 if test "$wxUSE_TEXTFILE" != "yes"; then
35679 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35680echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35681 else
35682 cat >>confdefs.h <<\_ACEOF
35683#define wxUSE_CONFIG 1
89be85c2
VS
35684_ACEOF
35685
35686 cat >>confdefs.h <<\_ACEOF
35687#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
35688_ACEOF
35689
35690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35691 fi
35692fi
35693
35694if test "$wxUSE_INTL" = "yes" ; then
35695 if test "$wxUSE_FILE" != "yes"; then
35696 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35697echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35698 else
35699 cat >>confdefs.h <<\_ACEOF
35700#define wxUSE_INTL 1
35701_ACEOF
35702
35703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35704 GUIDIST="$GUIDIST INTL_DIST"
35705 fi
35706fi
35707
35708if test "$wxUSE_LOG" = "yes"; then
35709 cat >>confdefs.h <<\_ACEOF
35710#define wxUSE_LOG 1
35711_ACEOF
35712
35713
35714 if test "$wxUSE_LOGGUI" = "yes"; then
35715 cat >>confdefs.h <<\_ACEOF
35716#define wxUSE_LOGGUI 1
35717_ACEOF
35718
35719 fi
35720
35721 if test "$wxUSE_LOGWINDOW" = "yes"; then
35722 cat >>confdefs.h <<\_ACEOF
35723#define wxUSE_LOGWINDOW 1
35724_ACEOF
35725
35726 fi
35727
35728 if test "$wxUSE_LOGDIALOG" = "yes"; then
35729 cat >>confdefs.h <<\_ACEOF
35730#define wxUSE_LOG_DIALOG 1
35731_ACEOF
35732
35733 fi
35734fi
35735
35736if test "$wxUSE_LONGLONG" = "yes"; then
35737 cat >>confdefs.h <<\_ACEOF
35738#define wxUSE_LONGLONG 1
35739_ACEOF
35740
35741fi
35742
35743if test "$wxUSE_GEOMETRY" = "yes"; then
35744 cat >>confdefs.h <<\_ACEOF
35745#define wxUSE_GEOMETRY 1
35746_ACEOF
35747
35748fi
35749
a848cd7e
SC
35750if test "$wxUSE_STREAMS" = "yes" ; then
35751 cat >>confdefs.h <<\_ACEOF
35752#define wxUSE_STREAMS 1
35753_ACEOF
35754
35755fi
35756
35757
35758if test "$wxUSE_DATETIME" = "yes"; then
35759
35760for ac_func in strptime
35761do
35762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35763echo "$as_me:$LINENO: checking for $ac_func" >&5
35764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35765if eval "test \"\${$as_ac_var+set}\" = set"; then
35766 echo $ECHO_N "(cached) $ECHO_C" >&6
35767else
35768 cat >conftest.$ac_ext <<_ACEOF
35769/* confdefs.h. */
35770_ACEOF
35771cat confdefs.h >>conftest.$ac_ext
35772cat >>conftest.$ac_ext <<_ACEOF
35773/* end confdefs.h. */
ac1cb8d3
VS
35774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35776#define $ac_func innocuous_$ac_func
35777
a848cd7e
SC
35778/* System header to define __stub macros and hopefully few prototypes,
35779 which can conflict with char $ac_func (); below.
35780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35781 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35782
a848cd7e
SC
35783#ifdef __STDC__
35784# include <limits.h>
35785#else
35786# include <assert.h>
35787#endif
ac1cb8d3
VS
35788
35789#undef $ac_func
35790
a848cd7e
SC
35791/* Override any gcc2 internal prototype to avoid an error. */
35792#ifdef __cplusplus
35793extern "C"
35794{
35795#endif
35796/* We use char because int might match the return type of a gcc2
35797 builtin and then its argument prototype would still apply. */
35798char $ac_func ();
35799/* The GNU C library defines this for functions which it implements
35800 to always fail with ENOSYS. Some functions are actually named
35801 something starting with __ and the normal name is an alias. */
35802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35803choke me
35804#else
35805char (*f) () = $ac_func;
35806#endif
35807#ifdef __cplusplus
35808}
35809#endif
35810
35811int
35812main ()
35813{
35814return f != $ac_func;
35815 ;
35816 return 0;
35817}
35818_ACEOF
35819rm -f conftest.$ac_objext conftest$ac_exeext
35820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35821 (eval $ac_link) 2>conftest.er1
a848cd7e 35822 ac_status=$?
ac1cb8d3
VS
35823 grep -v '^ *+' conftest.er1 >conftest.err
35824 rm -f conftest.er1
35825 cat conftest.err >&5
a848cd7e
SC
35826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827 (exit $ac_status); } &&
89be85c2
VS
35828 { ac_try='test -z "$ac_c_werror_flag"
35829 || test ! -s conftest.err'
ac1cb8d3
VS
35830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35831 (eval $ac_try) 2>&5
35832 ac_status=$?
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); }; } &&
35835 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35837 (eval $ac_try) 2>&5
35838 ac_status=$?
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); }; }; then
35841 eval "$as_ac_var=yes"
35842else
35843 echo "$as_me: failed program was:" >&5
35844sed 's/^/| /' conftest.$ac_ext >&5
35845
35846eval "$as_ac_var=no"
35847fi
ac1cb8d3
VS
35848rm -f conftest.err conftest.$ac_objext \
35849 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35850fi
35851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35852echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35853if test `eval echo '${'$as_ac_var'}'` = yes; then
35854 cat >>confdefs.h <<_ACEOF
35855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35856_ACEOF
35857
35858fi
35859done
35860
35861
35862 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35863echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35864if test "${wx_cv_var_timezone+set}" = set; then
35865 echo $ECHO_N "(cached) $ECHO_C" >&6
35866else
35867
35868 cat >conftest.$ac_ext <<_ACEOF
35869/* confdefs.h. */
35870_ACEOF
35871cat confdefs.h >>conftest.$ac_ext
35872cat >>conftest.$ac_ext <<_ACEOF
35873/* end confdefs.h. */
35874
35875 #include <time.h>
35876
35877int
35878main ()
35879{
35880
35881 int tz;
35882 tz = timezone;
35883
35884 ;
35885 return 0;
35886}
35887_ACEOF
35888rm -f conftest.$ac_objext
35889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35890 (eval $ac_compile) 2>conftest.er1
a848cd7e 35891 ac_status=$?
ac1cb8d3
VS
35892 grep -v '^ *+' conftest.er1 >conftest.err
35893 rm -f conftest.er1
35894 cat conftest.err >&5
a848cd7e
SC
35895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896 (exit $ac_status); } &&
89be85c2
VS
35897 { ac_try='test -z "$ac_c_werror_flag"
35898 || test ! -s conftest.err'
ac1cb8d3
VS
35899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35900 (eval $ac_try) 2>&5
35901 ac_status=$?
35902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903 (exit $ac_status); }; } &&
35904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35906 (eval $ac_try) 2>&5
35907 ac_status=$?
35908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909 (exit $ac_status); }; }; then
35910
35911 wx_cv_var_timezone=timezone
35912
35913else
35914 echo "$as_me: failed program was:" >&5
35915sed 's/^/| /' conftest.$ac_ext >&5
35916
35917
35918 cat >conftest.$ac_ext <<_ACEOF
35919/* confdefs.h. */
35920_ACEOF
35921cat confdefs.h >>conftest.$ac_ext
35922cat >>conftest.$ac_ext <<_ACEOF
35923/* end confdefs.h. */
35924
35925 #include <time.h>
35926
35927int
35928main ()
35929{
35930
35931 int tz;
35932 tz = _timezone;
35933
35934 ;
35935 return 0;
35936}
35937_ACEOF
35938rm -f conftest.$ac_objext
35939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35940 (eval $ac_compile) 2>conftest.er1
a848cd7e 35941 ac_status=$?
ac1cb8d3
VS
35942 grep -v '^ *+' conftest.er1 >conftest.err
35943 rm -f conftest.er1
35944 cat conftest.err >&5
a848cd7e
SC
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); } &&
89be85c2
VS
35947 { ac_try='test -z "$ac_c_werror_flag"
35948 || test ! -s conftest.err'
ac1cb8d3
VS
35949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950 (eval $ac_try) 2>&5
35951 ac_status=$?
35952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; } &&
35954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35956 (eval $ac_try) 2>&5
35957 ac_status=$?
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); }; }; then
35960
35961 wx_cv_var_timezone=_timezone
35962
35963else
35964 echo "$as_me: failed program was:" >&5
35965sed 's/^/| /' conftest.$ac_ext >&5
35966
35967
35968 cat >conftest.$ac_ext <<_ACEOF
35969/* confdefs.h. */
35970_ACEOF
35971cat confdefs.h >>conftest.$ac_ext
35972cat >>conftest.$ac_ext <<_ACEOF
35973/* end confdefs.h. */
35974
35975 #include <time.h>
35976
35977int
35978main ()
35979{
35980
35981 int tz;
35982 tz = __timezone;
35983
35984 ;
35985 return 0;
35986}
35987_ACEOF
35988rm -f conftest.$ac_objext
35989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35990 (eval $ac_compile) 2>conftest.er1
a848cd7e 35991 ac_status=$?
ac1cb8d3
VS
35992 grep -v '^ *+' conftest.er1 >conftest.err
35993 rm -f conftest.er1
35994 cat conftest.err >&5
a848cd7e
SC
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); } &&
89be85c2
VS
35997 { ac_try='test -z "$ac_c_werror_flag"
35998 || test ! -s conftest.err'
ac1cb8d3
VS
35999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36000 (eval $ac_try) 2>&5
36001 ac_status=$?
36002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36003 (exit $ac_status); }; } &&
36004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36006 (eval $ac_try) 2>&5
36007 ac_status=$?
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); }; }; then
36010
36011 wx_cv_var_timezone=__timezone
36012
36013else
36014 echo "$as_me: failed program was:" >&5
36015sed 's/^/| /' conftest.$ac_ext >&5
36016
36017
36018 if test "$USE_DOS" = 0 ; then
36019 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36020echo "$as_me: WARNING: no timezone variable" >&2;}
36021 fi
36022
36023
36024fi
ac1cb8d3 36025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36026
36027
36028fi
ac1cb8d3 36029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36030
36031
36032fi
ac1cb8d3 36033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36034
36035
36036fi
36037echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36038echo "${ECHO_T}$wx_cv_var_timezone" >&6
36039
36040 if test "x$wx_cv_var_timezone" != x ; then
36041 cat >>confdefs.h <<_ACEOF
36042#define WX_TIMEZONE $wx_cv_var_timezone
36043_ACEOF
36044
36045 fi
36046
36047
36048for ac_func in localtime
36049do
36050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36051echo "$as_me:$LINENO: checking for $ac_func" >&5
36052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36053if eval "test \"\${$as_ac_var+set}\" = set"; then
36054 echo $ECHO_N "(cached) $ECHO_C" >&6
36055else
36056 cat >conftest.$ac_ext <<_ACEOF
36057/* confdefs.h. */
36058_ACEOF
36059cat confdefs.h >>conftest.$ac_ext
36060cat >>conftest.$ac_ext <<_ACEOF
36061/* end confdefs.h. */
ac1cb8d3
VS
36062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36064#define $ac_func innocuous_$ac_func
36065
a848cd7e
SC
36066/* System header to define __stub macros and hopefully few prototypes,
36067 which can conflict with char $ac_func (); below.
36068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36069 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36070
a848cd7e
SC
36071#ifdef __STDC__
36072# include <limits.h>
36073#else
36074# include <assert.h>
36075#endif
ac1cb8d3
VS
36076
36077#undef $ac_func
36078
a848cd7e
SC
36079/* Override any gcc2 internal prototype to avoid an error. */
36080#ifdef __cplusplus
36081extern "C"
36082{
36083#endif
36084/* We use char because int might match the return type of a gcc2
36085 builtin and then its argument prototype would still apply. */
36086char $ac_func ();
36087/* The GNU C library defines this for functions which it implements
36088 to always fail with ENOSYS. Some functions are actually named
36089 something starting with __ and the normal name is an alias. */
36090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36091choke me
36092#else
36093char (*f) () = $ac_func;
36094#endif
36095#ifdef __cplusplus
36096}
36097#endif
36098
36099int
36100main ()
36101{
36102return f != $ac_func;
36103 ;
36104 return 0;
36105}
36106_ACEOF
36107rm -f conftest.$ac_objext conftest$ac_exeext
36108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36109 (eval $ac_link) 2>conftest.er1
a848cd7e 36110 ac_status=$?
ac1cb8d3
VS
36111 grep -v '^ *+' conftest.er1 >conftest.err
36112 rm -f conftest.er1
36113 cat conftest.err >&5
a848cd7e
SC
36114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36115 (exit $ac_status); } &&
89be85c2
VS
36116 { ac_try='test -z "$ac_c_werror_flag"
36117 || test ! -s conftest.err'
ac1cb8d3
VS
36118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36119 (eval $ac_try) 2>&5
36120 ac_status=$?
36121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36122 (exit $ac_status); }; } &&
36123 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36125 (eval $ac_try) 2>&5
36126 ac_status=$?
36127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128 (exit $ac_status); }; }; then
36129 eval "$as_ac_var=yes"
36130else
36131 echo "$as_me: failed program was:" >&5
36132sed 's/^/| /' conftest.$ac_ext >&5
36133
36134eval "$as_ac_var=no"
36135fi
ac1cb8d3
VS
36136rm -f conftest.err conftest.$ac_objext \
36137 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36138fi
36139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36140echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36141if test `eval echo '${'$as_ac_var'}'` = yes; then
36142 cat >>confdefs.h <<_ACEOF
36143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36144_ACEOF
36145
36146fi
36147done
36148
36149
36150 if test "$ac_cv_func_localtime" = "yes"; then
36151 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36152echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36153if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36154 echo $ECHO_N "(cached) $ECHO_C" >&6
36155else
36156
36157 cat >conftest.$ac_ext <<_ACEOF
36158/* confdefs.h. */
36159_ACEOF
36160cat confdefs.h >>conftest.$ac_ext
36161cat >>conftest.$ac_ext <<_ACEOF
36162/* end confdefs.h. */
36163
36164 #include <time.h>
36165
36166int
36167main ()
36168{
36169
36170 struct tm tm;
36171 tm.tm_gmtoff++;
36172
36173 ;
36174 return 0;
36175}
36176_ACEOF
36177rm -f conftest.$ac_objext
36178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36179 (eval $ac_compile) 2>conftest.er1
a848cd7e 36180 ac_status=$?
ac1cb8d3
VS
36181 grep -v '^ *+' conftest.er1 >conftest.err
36182 rm -f conftest.er1
36183 cat conftest.err >&5
a848cd7e
SC
36184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185 (exit $ac_status); } &&
89be85c2
VS
36186 { ac_try='test -z "$ac_c_werror_flag"
36187 || test ! -s conftest.err'
ac1cb8d3
VS
36188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189 (eval $ac_try) 2>&5
36190 ac_status=$?
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; } &&
36193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195 (eval $ac_try) 2>&5
36196 ac_status=$?
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); }; }; then
36199
36200 wx_cv_struct_tm_has_gmtoff=yes
36201
36202else
36203 echo "$as_me: failed program was:" >&5
36204sed 's/^/| /' conftest.$ac_ext >&5
36205
36206wx_cv_struct_tm_has_gmtoff=no
36207
36208fi
ac1cb8d3 36209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36210
36211fi
36212echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36213echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36214 fi
36215
36216 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36217 cat >>confdefs.h <<\_ACEOF
36218#define WX_GMTOFF_IN_TM 1
36219_ACEOF
36220
36221 fi
36222
36223
36224
36225for ac_func in gettimeofday ftime
36226do
36227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36228echo "$as_me:$LINENO: checking for $ac_func" >&5
36229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36230if eval "test \"\${$as_ac_var+set}\" = set"; then
36231 echo $ECHO_N "(cached) $ECHO_C" >&6
36232else
36233 cat >conftest.$ac_ext <<_ACEOF
36234/* confdefs.h. */
36235_ACEOF
36236cat confdefs.h >>conftest.$ac_ext
36237cat >>conftest.$ac_ext <<_ACEOF
36238/* end confdefs.h. */
ac1cb8d3
VS
36239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36241#define $ac_func innocuous_$ac_func
36242
a848cd7e
SC
36243/* System header to define __stub macros and hopefully few prototypes,
36244 which can conflict with char $ac_func (); below.
36245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36246 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36247
a848cd7e
SC
36248#ifdef __STDC__
36249# include <limits.h>
36250#else
36251# include <assert.h>
36252#endif
ac1cb8d3
VS
36253
36254#undef $ac_func
36255
a848cd7e
SC
36256/* Override any gcc2 internal prototype to avoid an error. */
36257#ifdef __cplusplus
36258extern "C"
36259{
36260#endif
36261/* We use char because int might match the return type of a gcc2
36262 builtin and then its argument prototype would still apply. */
36263char $ac_func ();
36264/* The GNU C library defines this for functions which it implements
36265 to always fail with ENOSYS. Some functions are actually named
36266 something starting with __ and the normal name is an alias. */
36267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36268choke me
36269#else
36270char (*f) () = $ac_func;
36271#endif
36272#ifdef __cplusplus
36273}
36274#endif
36275
36276int
36277main ()
36278{
36279return f != $ac_func;
36280 ;
36281 return 0;
36282}
36283_ACEOF
36284rm -f conftest.$ac_objext conftest$ac_exeext
36285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36286 (eval $ac_link) 2>conftest.er1
a848cd7e 36287 ac_status=$?
ac1cb8d3
VS
36288 grep -v '^ *+' conftest.er1 >conftest.err
36289 rm -f conftest.er1
36290 cat conftest.err >&5
a848cd7e
SC
36291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); } &&
89be85c2
VS
36293 { ac_try='test -z "$ac_c_werror_flag"
36294 || test ! -s conftest.err'
ac1cb8d3
VS
36295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36296 (eval $ac_try) 2>&5
36297 ac_status=$?
36298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299 (exit $ac_status); }; } &&
36300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36302 (eval $ac_try) 2>&5
36303 ac_status=$?
36304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36305 (exit $ac_status); }; }; then
36306 eval "$as_ac_var=yes"
36307else
36308 echo "$as_me: failed program was:" >&5
36309sed 's/^/| /' conftest.$ac_ext >&5
36310
36311eval "$as_ac_var=no"
36312fi
ac1cb8d3
VS
36313rm -f conftest.err conftest.$ac_objext \
36314 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36315fi
36316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36318if test `eval echo '${'$as_ac_var'}'` = yes; then
36319 cat >>confdefs.h <<_ACEOF
36320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36321_ACEOF
36322 break
36323fi
36324done
36325
36326
36327 if test "$ac_cv_func_gettimeofday" = "yes"; then
36328 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36329echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36330if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36331 echo $ECHO_N "(cached) $ECHO_C" >&6
36332else
36333
36334
36335
36336 ac_ext=cc
36337ac_cpp='$CXXCPP $CPPFLAGS'
36338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36341
36342
36343 cat >conftest.$ac_ext <<_ACEOF
36344/* confdefs.h. */
36345_ACEOF
36346cat confdefs.h >>conftest.$ac_ext
36347cat >>conftest.$ac_ext <<_ACEOF
36348/* end confdefs.h. */
36349
36350 #include <sys/time.h>
36351 #include <unistd.h>
36352
36353int
36354main ()
36355{
36356
36357 struct timeval tv;
36358 gettimeofday(&tv, NULL);
36359
36360 ;
36361 return 0;
36362}
36363_ACEOF
36364rm -f conftest.$ac_objext
36365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36366 (eval $ac_compile) 2>conftest.er1
a848cd7e 36367 ac_status=$?
ac1cb8d3
VS
36368 grep -v '^ *+' conftest.er1 >conftest.err
36369 rm -f conftest.er1
36370 cat conftest.err >&5
a848cd7e
SC
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); } &&
89be85c2
VS
36373 { ac_try='test -z "$ac_cxx_werror_flag"
36374 || test ! -s conftest.err'
ac1cb8d3
VS
36375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36376 (eval $ac_try) 2>&5
36377 ac_status=$?
36378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379 (exit $ac_status); }; } &&
36380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36382 (eval $ac_try) 2>&5
36383 ac_status=$?
36384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36385 (exit $ac_status); }; }; then
36386 wx_cv_func_gettimeofday_has_2_args=yes
36387else
36388 echo "$as_me: failed program was:" >&5
36389sed 's/^/| /' conftest.$ac_ext >&5
36390
36391cat >conftest.$ac_ext <<_ACEOF
36392/* confdefs.h. */
36393_ACEOF
36394cat confdefs.h >>conftest.$ac_ext
36395cat >>conftest.$ac_ext <<_ACEOF
36396/* end confdefs.h. */
36397
36398 #include <sys/time.h>
36399 #include <unistd.h>
36400
36401int
36402main ()
36403{
36404
36405 struct timeval tv;
36406 gettimeofday(&tv);
36407
36408 ;
36409 return 0;
36410}
36411_ACEOF
36412rm -f conftest.$ac_objext
36413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36414 (eval $ac_compile) 2>conftest.er1
a848cd7e 36415 ac_status=$?
ac1cb8d3
VS
36416 grep -v '^ *+' conftest.er1 >conftest.err
36417 rm -f conftest.er1
36418 cat conftest.err >&5
a848cd7e
SC
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); } &&
89be85c2
VS
36421 { ac_try='test -z "$ac_cxx_werror_flag"
36422 || test ! -s conftest.err'
ac1cb8d3
VS
36423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36424 (eval $ac_try) 2>&5
36425 ac_status=$?
36426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427 (exit $ac_status); }; } &&
36428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36430 (eval $ac_try) 2>&5
36431 ac_status=$?
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); }; }; then
36434 wx_cv_func_gettimeofday_has_2_args=no
36435else
36436 echo "$as_me: failed program was:" >&5
36437sed 's/^/| /' conftest.$ac_ext >&5
36438
36439
36440 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36441echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36442 wx_cv_func_gettimeofday_has_2_args=unknown
36443
36444
36445fi
ac1cb8d3 36446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36447
36448fi
ac1cb8d3 36449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36450 ac_ext=c
36451ac_cpp='$CPP $CPPFLAGS'
36452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36454ac_compiler_gnu=$ac_cv_c_compiler_gnu
36455
36456
36457fi
36458echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36459echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36460
36461 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36462 cat >>confdefs.h <<\_ACEOF
36463#define WX_GETTIMEOFDAY_NO_TZ 1
36464_ACEOF
36465
36466 fi
36467 fi
36468
36469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36470fi
36471
36472
36473if test "$wxUSE_SOCKETS" = "yes"; then
36474 if test "$wxUSE_MGL" = "1"; then
36475 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36476echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36477 wxUSE_SOCKETS="no"
36478 fi
36479fi
36480
36481if test "$wxUSE_SOCKETS" = "yes"; then
36482 if test "$TOOLKIT" != "MSW"; then
36483 echo "$as_me:$LINENO: checking for socket" >&5
36484echo $ECHO_N "checking for socket... $ECHO_C" >&6
36485if test "${ac_cv_func_socket+set}" = set; then
36486 echo $ECHO_N "(cached) $ECHO_C" >&6
36487else
36488 cat >conftest.$ac_ext <<_ACEOF
36489/* confdefs.h. */
36490_ACEOF
36491cat confdefs.h >>conftest.$ac_ext
36492cat >>conftest.$ac_ext <<_ACEOF
36493/* end confdefs.h. */
ac1cb8d3
VS
36494/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36496#define socket innocuous_socket
36497
a848cd7e
SC
36498/* System header to define __stub macros and hopefully few prototypes,
36499 which can conflict with char socket (); below.
36500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36501 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36502
a848cd7e
SC
36503#ifdef __STDC__
36504# include <limits.h>
36505#else
36506# include <assert.h>
36507#endif
ac1cb8d3
VS
36508
36509#undef socket
36510
a848cd7e
SC
36511/* Override any gcc2 internal prototype to avoid an error. */
36512#ifdef __cplusplus
36513extern "C"
36514{
36515#endif
36516/* We use char because int might match the return type of a gcc2
36517 builtin and then its argument prototype would still apply. */
36518char socket ();
36519/* The GNU C library defines this for functions which it implements
36520 to always fail with ENOSYS. Some functions are actually named
36521 something starting with __ and the normal name is an alias. */
36522#if defined (__stub_socket) || defined (__stub___socket)
36523choke me
36524#else
36525char (*f) () = socket;
36526#endif
36527#ifdef __cplusplus
36528}
36529#endif
36530
36531int
36532main ()
36533{
36534return f != socket;
36535 ;
36536 return 0;
36537}
36538_ACEOF
36539rm -f conftest.$ac_objext conftest$ac_exeext
36540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36541 (eval $ac_link) 2>conftest.er1
a848cd7e 36542 ac_status=$?
ac1cb8d3
VS
36543 grep -v '^ *+' conftest.er1 >conftest.err
36544 rm -f conftest.er1
36545 cat conftest.err >&5
a848cd7e
SC
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); } &&
89be85c2
VS
36548 { ac_try='test -z "$ac_c_werror_flag"
36549 || test ! -s conftest.err'
ac1cb8d3
VS
36550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36551 (eval $ac_try) 2>&5
36552 ac_status=$?
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); }; } &&
36555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36557 (eval $ac_try) 2>&5
36558 ac_status=$?
36559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36560 (exit $ac_status); }; }; then
36561 ac_cv_func_socket=yes
36562else
36563 echo "$as_me: failed program was:" >&5
36564sed 's/^/| /' conftest.$ac_ext >&5
36565
36566ac_cv_func_socket=no
36567fi
ac1cb8d3
VS
36568rm -f conftest.err conftest.$ac_objext \
36569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36570fi
36571echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36572echo "${ECHO_T}$ac_cv_func_socket" >&6
36573if test $ac_cv_func_socket = yes; then
36574 :
36575else
36576
36577 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36578echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36579if test "${ac_cv_lib_socket_socket+set}" = set; then
36580 echo $ECHO_N "(cached) $ECHO_C" >&6
36581else
36582 ac_check_lib_save_LIBS=$LIBS
36583LIBS="-lsocket $LIBS"
36584cat >conftest.$ac_ext <<_ACEOF
36585/* confdefs.h. */
36586_ACEOF
36587cat confdefs.h >>conftest.$ac_ext
36588cat >>conftest.$ac_ext <<_ACEOF
36589/* end confdefs.h. */
36590
36591/* Override any gcc2 internal prototype to avoid an error. */
36592#ifdef __cplusplus
36593extern "C"
36594#endif
36595/* We use char because int might match the return type of a gcc2
36596 builtin and then its argument prototype would still apply. */
36597char socket ();
36598int
36599main ()
36600{
36601socket ();
36602 ;
36603 return 0;
36604}
36605_ACEOF
36606rm -f conftest.$ac_objext conftest$ac_exeext
36607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36608 (eval $ac_link) 2>conftest.er1
a848cd7e 36609 ac_status=$?
ac1cb8d3
VS
36610 grep -v '^ *+' conftest.er1 >conftest.err
36611 rm -f conftest.er1
36612 cat conftest.err >&5
a848cd7e
SC
36613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36614 (exit $ac_status); } &&
89be85c2
VS
36615 { ac_try='test -z "$ac_c_werror_flag"
36616 || test ! -s conftest.err'
ac1cb8d3
VS
36617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36618 (eval $ac_try) 2>&5
36619 ac_status=$?
36620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36621 (exit $ac_status); }; } &&
36622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36624 (eval $ac_try) 2>&5
36625 ac_status=$?
36626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627 (exit $ac_status); }; }; then
36628 ac_cv_lib_socket_socket=yes
36629else
36630 echo "$as_me: failed program was:" >&5
36631sed 's/^/| /' conftest.$ac_ext >&5
36632
36633ac_cv_lib_socket_socket=no
36634fi
ac1cb8d3
VS
36635rm -f conftest.err conftest.$ac_objext \
36636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36637LIBS=$ac_check_lib_save_LIBS
36638fi
36639echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36640echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36641if test $ac_cv_lib_socket_socket = yes; then
36642 if test "$INET_LINK" != " -lsocket"; then
36643 INET_LINK="$INET_LINK -lsocket"
36644 fi
36645else
36646
36647 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36648echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36649 wxUSE_SOCKETS=no
36650
36651
36652fi
36653
36654
36655
36656fi
36657
36658 fi
36659fi
36660
36661if test "$wxUSE_SOCKETS" = "yes" ; then
36662 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36663 ac_ext=cc
36664ac_cpp='$CXXCPP $CPPFLAGS'
36665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36668
36669 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36670echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36671if test "${wx_cv_type_getsockname3+set}" = set; then
36672 echo $ECHO_N "(cached) $ECHO_C" >&6
36673else
36674
36675 cat >conftest.$ac_ext <<_ACEOF
36676/* confdefs.h. */
36677_ACEOF
36678cat confdefs.h >>conftest.$ac_ext
36679cat >>conftest.$ac_ext <<_ACEOF
36680/* end confdefs.h. */
36681
36682 #include <sys/types.h>
36683 #include <sys/socket.h>
36684
36685int
36686main ()
36687{
36688
36689 socklen_t len;
36690 getsockname(0, 0, &len);
36691
36692 ;
36693 return 0;
36694}
36695_ACEOF
36696rm -f conftest.$ac_objext
36697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36698 (eval $ac_compile) 2>conftest.er1
a848cd7e 36699 ac_status=$?
ac1cb8d3
VS
36700 grep -v '^ *+' conftest.er1 >conftest.err
36701 rm -f conftest.er1
36702 cat conftest.err >&5
a848cd7e
SC
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); } &&
89be85c2
VS
36705 { ac_try='test -z "$ac_cxx_werror_flag"
36706 || test ! -s conftest.err'
ac1cb8d3
VS
36707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36708 (eval $ac_try) 2>&5
36709 ac_status=$?
36710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711 (exit $ac_status); }; } &&
36712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
36718 wx_cv_type_getsockname3=socklen_t
36719else
36720 echo "$as_me: failed program was:" >&5
36721sed 's/^/| /' conftest.$ac_ext >&5
36722
36723
36724 CFLAGS_OLD="$CFLAGS"
36725 if test "$GCC" = yes ; then
36726 CFLAGS="$CFLAGS -Werror"
36727 fi
36728
36729 cat >conftest.$ac_ext <<_ACEOF
36730/* confdefs.h. */
36731_ACEOF
36732cat confdefs.h >>conftest.$ac_ext
36733cat >>conftest.$ac_ext <<_ACEOF
36734/* end confdefs.h. */
36735
36736 #include <sys/types.h>
36737 #include <sys/socket.h>
36738
36739int
36740main ()
36741{
36742
36743 size_t len;
36744 getsockname(0, 0, &len);
36745
36746 ;
36747 return 0;
36748}
36749_ACEOF
36750rm -f conftest.$ac_objext
36751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36752 (eval $ac_compile) 2>conftest.er1
a848cd7e 36753 ac_status=$?
ac1cb8d3
VS
36754 grep -v '^ *+' conftest.er1 >conftest.err
36755 rm -f conftest.er1
36756 cat conftest.err >&5
a848cd7e
SC
36757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758 (exit $ac_status); } &&
89be85c2
VS
36759 { ac_try='test -z "$ac_cxx_werror_flag"
36760 || test ! -s conftest.err'
ac1cb8d3
VS
36761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762 (eval $ac_try) 2>&5
36763 ac_status=$?
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); }; } &&
36766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768 (eval $ac_try) 2>&5
36769 ac_status=$?
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); }; }; then
36772 wx_cv_type_getsockname3=size_t
36773else
36774 echo "$as_me: failed program was:" >&5
36775sed 's/^/| /' conftest.$ac_ext >&5
36776
36777cat >conftest.$ac_ext <<_ACEOF
36778/* confdefs.h. */
36779_ACEOF
36780cat confdefs.h >>conftest.$ac_ext
36781cat >>conftest.$ac_ext <<_ACEOF
36782/* end confdefs.h. */
36783
36784 #include <sys/types.h>
36785 #include <sys/socket.h>
36786
36787int
36788main ()
36789{
36790
36791 int len;
36792 getsockname(0, 0, &len);
36793
36794 ;
36795 return 0;
36796}
36797_ACEOF
36798rm -f conftest.$ac_objext
36799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36800 (eval $ac_compile) 2>conftest.er1
a848cd7e 36801 ac_status=$?
ac1cb8d3
VS
36802 grep -v '^ *+' conftest.er1 >conftest.err
36803 rm -f conftest.er1
36804 cat conftest.err >&5
a848cd7e
SC
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); } &&
89be85c2
VS
36807 { ac_try='test -z "$ac_cxx_werror_flag"
36808 || test ! -s conftest.err'
ac1cb8d3
VS
36809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36810 (eval $ac_try) 2>&5
36811 ac_status=$?
36812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36813 (exit $ac_status); }; } &&
36814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816 (eval $ac_try) 2>&5
36817 ac_status=$?
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); }; }; then
36820 wx_cv_type_getsockname3=int
36821else
36822 echo "$as_me: failed program was:" >&5
36823sed 's/^/| /' conftest.$ac_ext >&5
36824
36825wx_cv_type_getsockname3=unknown
36826
36827fi
ac1cb8d3 36828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36829
36830fi
ac1cb8d3 36831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36832
36833 CFLAGS="$CFLAGS_OLD"
36834
36835
36836fi
ac1cb8d3 36837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36838
36839fi
36840echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36841echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36842
36843 if test "$wx_cv_type_getsockname3" = "unknown"; then
36844 wxUSE_SOCKETS=no
36845 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36846echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36847 else
36848 cat >>confdefs.h <<_ACEOF
36849#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36850_ACEOF
36851
36852 fi
36853 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36854echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36855if test "${wx_cv_type_getsockopt5+set}" = set; then
36856 echo $ECHO_N "(cached) $ECHO_C" >&6
36857else
36858
36859 cat >conftest.$ac_ext <<_ACEOF
36860/* confdefs.h. */
36861_ACEOF
36862cat confdefs.h >>conftest.$ac_ext
36863cat >>conftest.$ac_ext <<_ACEOF
36864/* end confdefs.h. */
36865
36866 #include <sys/types.h>
36867 #include <sys/socket.h>
36868
36869int
36870main ()
36871{
36872
36873 socklen_t len;
36874 getsockopt(0, 0, 0, 0, &len);
36875
36876 ;
36877 return 0;
36878}
36879_ACEOF
36880rm -f conftest.$ac_objext
36881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36882 (eval $ac_compile) 2>conftest.er1
36883 ac_status=$?
36884 grep -v '^ *+' conftest.er1 >conftest.err
36885 rm -f conftest.er1
36886 cat conftest.err >&5
36887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 (exit $ac_status); } &&
89be85c2
VS
36889 { ac_try='test -z "$ac_cxx_werror_flag"
36890 || test ! -s conftest.err'
5b674b9d
DE
36891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36892 (eval $ac_try) 2>&5
36893 ac_status=$?
36894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895 (exit $ac_status); }; } &&
36896 { ac_try='test -s conftest.$ac_objext'
36897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36898 (eval $ac_try) 2>&5
36899 ac_status=$?
36900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); }; }; then
36902 wx_cv_type_getsockopt5=socklen_t
36903else
36904 echo "$as_me: failed program was:" >&5
36905sed 's/^/| /' conftest.$ac_ext >&5
36906
36907
36908 CFLAGS_OLD="$CFLAGS"
36909 if test "$GCC" = yes ; then
36910 CFLAGS="$CFLAGS -Werror"
36911 fi
36912
36913 cat >conftest.$ac_ext <<_ACEOF
36914/* confdefs.h. */
36915_ACEOF
36916cat confdefs.h >>conftest.$ac_ext
36917cat >>conftest.$ac_ext <<_ACEOF
36918/* end confdefs.h. */
36919
36920 #include <sys/types.h>
36921 #include <sys/socket.h>
36922
36923int
36924main ()
36925{
36926
36927 size_t len;
36928 getsockopt(0, 0, 0, 0, &len);
36929
36930 ;
36931 return 0;
36932}
36933_ACEOF
36934rm -f conftest.$ac_objext
36935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36936 (eval $ac_compile) 2>conftest.er1
36937 ac_status=$?
36938 grep -v '^ *+' conftest.er1 >conftest.err
36939 rm -f conftest.er1
36940 cat conftest.err >&5
36941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942 (exit $ac_status); } &&
89be85c2
VS
36943 { ac_try='test -z "$ac_cxx_werror_flag"
36944 || test ! -s conftest.err'
5b674b9d
DE
36945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36946 (eval $ac_try) 2>&5
36947 ac_status=$?
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); }; } &&
36950 { ac_try='test -s conftest.$ac_objext'
36951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36952 (eval $ac_try) 2>&5
36953 ac_status=$?
36954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 (exit $ac_status); }; }; then
36956 wx_cv_type_getsockopt5=size_t
36957else
36958 echo "$as_me: failed program was:" >&5
36959sed 's/^/| /' conftest.$ac_ext >&5
36960
36961cat >conftest.$ac_ext <<_ACEOF
36962/* confdefs.h. */
36963_ACEOF
36964cat confdefs.h >>conftest.$ac_ext
36965cat >>conftest.$ac_ext <<_ACEOF
36966/* end confdefs.h. */
36967
36968 #include <sys/types.h>
36969 #include <sys/socket.h>
36970
36971int
36972main ()
36973{
36974
36975 int len;
36976 getsockopt(0, 0, 0, 0, &len);
36977
36978 ;
36979 return 0;
36980}
36981_ACEOF
36982rm -f conftest.$ac_objext
36983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36984 (eval $ac_compile) 2>conftest.er1
36985 ac_status=$?
36986 grep -v '^ *+' conftest.er1 >conftest.err
36987 rm -f conftest.er1
36988 cat conftest.err >&5
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); } &&
89be85c2
VS
36991 { ac_try='test -z "$ac_cxx_werror_flag"
36992 || test ! -s conftest.err'
5b674b9d
DE
36993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36994 (eval $ac_try) 2>&5
36995 ac_status=$?
36996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997 (exit $ac_status); }; } &&
36998 { ac_try='test -s conftest.$ac_objext'
36999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37000 (eval $ac_try) 2>&5
37001 ac_status=$?
37002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37003 (exit $ac_status); }; }; then
37004 wx_cv_type_getsockopt5=int
37005else
37006 echo "$as_me: failed program was:" >&5
37007sed 's/^/| /' conftest.$ac_ext >&5
37008
37009wx_cv_type_getsockopt5=unknown
37010
37011fi
37012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37013
37014fi
37015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37016
37017 CFLAGS="$CFLAGS_OLD"
37018
37019
37020fi
37021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37022
37023fi
37024echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37025echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37026
37027 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37028 wxUSE_SOCKETS=no
37029 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37030echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37031 else
37032 cat >>confdefs.h <<_ACEOF
37033#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37034_ACEOF
37035
37036 fi
4d4ff94c
VZ
37037 ac_ext=c
37038ac_cpp='$CPP $CPPFLAGS'
37039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37041ac_compiler_gnu=$ac_cv_c_compiler_gnu
37042
a848cd7e
SC
37043 fi
37044fi
37045
37046if test "$wxUSE_SOCKETS" = "yes" ; then
37047 cat >>confdefs.h <<\_ACEOF
37048#define wxUSE_SOCKETS 1
37049_ACEOF
37050
37051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37052fi
37053
37054if test "$wxUSE_PROTOCOL" = "yes"; then
37055 if test "$wxUSE_SOCKETS" != "yes"; then
37056 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37057echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37058 wxUSE_PROTOCOL=no
37059 fi
37060fi
37061
37062if test "$wxUSE_PROTOCOL" = "yes"; then
37063 cat >>confdefs.h <<\_ACEOF
37064#define wxUSE_PROTOCOL 1
37065_ACEOF
37066
37067
37068 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37069 cat >>confdefs.h <<\_ACEOF
37070#define wxUSE_PROTOCOL_HTTP 1
37071_ACEOF
37072
37073 fi
37074 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37075 cat >>confdefs.h <<\_ACEOF
37076#define wxUSE_PROTOCOL_FTP 1
37077_ACEOF
37078
37079 fi
37080 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37081 cat >>confdefs.h <<\_ACEOF
37082#define wxUSE_PROTOCOL_FILE 1
37083_ACEOF
37084
37085 fi
37086else
37087 if test "$wxUSE_FS_INET" = "yes"; then
37088 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37089echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37090 wxUSE_FS_INET="no"
37091 fi
37092fi
37093
37094if test "$wxUSE_URL" = "yes"; then
37095 if test "$wxUSE_PROTOCOL" != "yes"; then
37096 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37097echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37098 wxUSE_URL=no
37099 fi
37100 if test "$wxUSE_URL" = "yes"; then
37101 cat >>confdefs.h <<\_ACEOF
37102#define wxUSE_URL 1
37103_ACEOF
37104
37105 fi
37106fi
37107
37108if test "$wxUSE_FS_INET" = "yes"; then
37109 cat >>confdefs.h <<\_ACEOF
37110#define wxUSE_FS_INET 1
37111_ACEOF
37112
37113fi
37114
37115
37116if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37117 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37118
4cb1d3da 37119 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37120
37121for ac_header in linux/joystick.h
37122do
37123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37124if eval "test \"\${$as_ac_Header+set}\" = set"; then
37125 echo "$as_me:$LINENO: checking for $ac_header" >&5
37126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37127if eval "test \"\${$as_ac_Header+set}\" = set"; then
37128 echo $ECHO_N "(cached) $ECHO_C" >&6
37129fi
37130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37132else
37133 # Is the header compilable?
37134echo "$as_me:$LINENO: checking $ac_header usability" >&5
37135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37136cat >conftest.$ac_ext <<_ACEOF
37137/* confdefs.h. */
37138_ACEOF
37139cat confdefs.h >>conftest.$ac_ext
37140cat >>conftest.$ac_ext <<_ACEOF
37141/* end confdefs.h. */
37142$ac_includes_default
37143#include <$ac_header>
37144_ACEOF
37145rm -f conftest.$ac_objext
37146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37147 (eval $ac_compile) 2>conftest.er1
a848cd7e 37148 ac_status=$?
ac1cb8d3
VS
37149 grep -v '^ *+' conftest.er1 >conftest.err
37150 rm -f conftest.er1
37151 cat conftest.err >&5
a848cd7e
SC
37152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153 (exit $ac_status); } &&
89be85c2
VS
37154 { ac_try='test -z "$ac_c_werror_flag"
37155 || test ! -s conftest.err'
ac1cb8d3
VS
37156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37157 (eval $ac_try) 2>&5
37158 ac_status=$?
37159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37160 (exit $ac_status); }; } &&
37161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37163 (eval $ac_try) 2>&5
37164 ac_status=$?
37165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166 (exit $ac_status); }; }; then
37167 ac_header_compiler=yes
37168else
37169 echo "$as_me: failed program was:" >&5
37170sed 's/^/| /' conftest.$ac_ext >&5
37171
37172ac_header_compiler=no
37173fi
ac1cb8d3 37174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37176echo "${ECHO_T}$ac_header_compiler" >&6
37177
37178# Is the header present?
37179echo "$as_me:$LINENO: checking $ac_header presence" >&5
37180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37181cat >conftest.$ac_ext <<_ACEOF
37182/* confdefs.h. */
37183_ACEOF
37184cat confdefs.h >>conftest.$ac_ext
37185cat >>conftest.$ac_ext <<_ACEOF
37186/* end confdefs.h. */
37187#include <$ac_header>
37188_ACEOF
37189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37191 ac_status=$?
37192 grep -v '^ *+' conftest.er1 >conftest.err
37193 rm -f conftest.er1
37194 cat conftest.err >&5
37195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196 (exit $ac_status); } >/dev/null; then
37197 if test -s conftest.err; then
37198 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37200 else
37201 ac_cpp_err=
37202 fi
37203else
37204 ac_cpp_err=yes
37205fi
37206if test -z "$ac_cpp_err"; then
37207 ac_header_preproc=yes
37208else
37209 echo "$as_me: failed program was:" >&5
37210sed 's/^/| /' conftest.$ac_ext >&5
37211
37212 ac_header_preproc=no
37213fi
37214rm -f conftest.err conftest.$ac_ext
37215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37216echo "${ECHO_T}$ac_header_preproc" >&6
37217
37218# So? What about this header?
ac1cb8d3
VS
37219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37220 yes:no: )
a848cd7e
SC
37221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37225 ac_header_preproc=yes
a848cd7e 37226 ;;
ac1cb8d3 37227 no:yes:* )
a848cd7e
SC
37228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37240 (
37241 cat <<\_ASBOX
ac1cb8d3
VS
37242## ----------------------------------------- ##
37243## Report this to wx-dev@lists.wxwidgets.org ##
37244## ----------------------------------------- ##
a848cd7e
SC
37245_ASBOX
37246 ) |
37247 sed "s/^/$as_me: WARNING: /" >&2
37248 ;;
37249esac
37250echo "$as_me:$LINENO: checking for $ac_header" >&5
37251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37252if eval "test \"\${$as_ac_Header+set}\" = set"; then
37253 echo $ECHO_N "(cached) $ECHO_C" >&6
37254else
ac1cb8d3 37255 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37256fi
37257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37259
37260fi
37261if test `eval echo '${'$as_ac_Header'}'` = yes; then
37262 cat >>confdefs.h <<_ACEOF
37263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37264_ACEOF
37265
37266fi
37267
37268done
37269
37270 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37271 wxUSE_JOYSTICK=no
37272 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37273echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37274 fi
4cb1d3da
RN
37275 else
37276 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
37277 wxUSE_JOYSTICK=no
37278 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37279echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37280 fi
a848cd7e 37281 fi
a848cd7e 37282
4cb1d3da
RN
37283
37284 if test "$wxUSE_JOYSTICK" = "yes"; then
37285 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37286#define wxUSE_JOYSTICK 1
37287_ACEOF
37288
4cb1d3da
RN
37289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37290 fi
a848cd7e
SC
37291 fi
37292fi
37293
37294
37295
37296if test "$wxUSE_FONTMAP" = "yes" ; then
37297 cat >>confdefs.h <<\_ACEOF
37298#define wxUSE_FONTMAP 1
37299_ACEOF
37300
37301fi
37302
37303if test "$wxUSE_UNICODE" = "yes" ; then
37304 cat >>confdefs.h <<\_ACEOF
37305#define wxUSE_UNICODE 1
37306_ACEOF
37307
37308
37309 if test "$USE_WIN32" != 1; then
37310 wxUSE_UNICODE_MSLU=no
37311 fi
37312
37313 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37314 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37315echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37316if test "${ac_cv_lib_unicows_main+set}" = set; then
37317 echo $ECHO_N "(cached) $ECHO_C" >&6
37318else
37319 ac_check_lib_save_LIBS=$LIBS
37320LIBS="-lunicows $LIBS"
37321cat >conftest.$ac_ext <<_ACEOF
37322/* confdefs.h. */
37323_ACEOF
37324cat confdefs.h >>conftest.$ac_ext
37325cat >>conftest.$ac_ext <<_ACEOF
37326/* end confdefs.h. */
37327
37328
37329int
37330main ()
37331{
37332main ();
37333 ;
37334 return 0;
37335}
37336_ACEOF
37337rm -f conftest.$ac_objext conftest$ac_exeext
37338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37339 (eval $ac_link) 2>conftest.er1
a848cd7e 37340 ac_status=$?
ac1cb8d3
VS
37341 grep -v '^ *+' conftest.er1 >conftest.err
37342 rm -f conftest.er1
37343 cat conftest.err >&5
a848cd7e
SC
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); } &&
89be85c2
VS
37346 { ac_try='test -z "$ac_c_werror_flag"
37347 || test ! -s conftest.err'
ac1cb8d3
VS
37348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37349 (eval $ac_try) 2>&5
37350 ac_status=$?
37351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37352 (exit $ac_status); }; } &&
37353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37355 (eval $ac_try) 2>&5
37356 ac_status=$?
37357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37358 (exit $ac_status); }; }; then
37359 ac_cv_lib_unicows_main=yes
37360else
37361 echo "$as_me: failed program was:" >&5
37362sed 's/^/| /' conftest.$ac_ext >&5
37363
37364ac_cv_lib_unicows_main=no
37365fi
ac1cb8d3
VS
37366rm -f conftest.err conftest.$ac_objext \
37367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37368LIBS=$ac_check_lib_save_LIBS
37369fi
37370echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37371echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37372if test $ac_cv_lib_unicows_main = yes; then
37373
37374 cat >>confdefs.h <<\_ACEOF
37375#define wxUSE_UNICODE_MSLU 1
37376_ACEOF
37377
37378
37379else
37380
37381 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37382 Applications will only run on Windows NT/2000/XP!" >&5
37383echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37384 Applications will only run on Windows NT/2000/XP!" >&2;}
37385 wxUSE_UNICODE_MSLU=no
37386
37387fi
37388
37389 fi
37390fi
37391
37392if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37393 cat >>confdefs.h <<\_ACEOF
37394#define wxUSE_EXPERIMENTAL_PRINTF 1
37395_ACEOF
37396
37397fi
37398
37399
37400if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37401 cat >>confdefs.h <<\_ACEOF
37402#define wxUSE_POSTSCRIPT 1
37403_ACEOF
37404
37405fi
37406
37407cat >>confdefs.h <<\_ACEOF
37408#define wxUSE_AFM_FOR_POSTSCRIPT 1
37409_ACEOF
37410
37411
37412cat >>confdefs.h <<\_ACEOF
37413#define wxUSE_NORMALIZED_PS_FONTS 1
37414_ACEOF
37415
37416
37417
37418if test "$wxUSE_CONSTRAINTS" = "yes"; then
37419 cat >>confdefs.h <<\_ACEOF
37420#define wxUSE_CONSTRAINTS 1
37421_ACEOF
37422
37423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37424fi
37425
8a7b1113
VZ
37426if test "$wxUSE_MDI" = "yes"; then
37427 cat >>confdefs.h <<\_ACEOF
37428#define wxUSE_MDI 1
37429_ACEOF
37430
37431
37432 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37433 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37434#define wxUSE_MDI_ARCHITECTURE 1
37435_ACEOF
37436
8a7b1113
VZ
37437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37438 fi
a848cd7e
SC
37439fi
37440
37441if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37442 cat >>confdefs.h <<\_ACEOF
37443#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37444_ACEOF
37445
37446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37447 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37448 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37449 fi
37450fi
37451
37452if test "$wxUSE_HELP" = "yes"; then
37453 cat >>confdefs.h <<\_ACEOF
37454#define wxUSE_HELP 1
37455_ACEOF
37456
37457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37458
37459 if test "$wxUSE_MSW" = 1; then
37460 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37461 cat >>confdefs.h <<\_ACEOF
37462#define wxUSE_MS_HTML_HELP 1
37463_ACEOF
37464
37465 fi
37466 fi
37467
37468 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37469 if test "$wxUSE_HTML" = "yes"; then
37470 cat >>confdefs.h <<\_ACEOF
37471#define wxUSE_WXHTML_HELP 1
37472_ACEOF
37473
37474 else
37475 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37476echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37477 wxUSE_WXHTML_HELP=no
37478 fi
37479 fi
37480fi
37481
37482if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37483 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37484 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37485echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37486 else
37487 cat >>confdefs.h <<\_ACEOF
37488#define wxUSE_PRINTING_ARCHITECTURE 1
37489_ACEOF
37490
37491 fi
37492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37493fi
37494
37495if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37496 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37497echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37498 { (exit 1); exit 1; }; }
37499fi
37500
37501
37502if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37503 -o "$wxUSE_CLIPBOARD" = "yes" \
37504 -o "$wxUSE_OLE" = "yes" \
37505 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37506
37507for ac_header in ole2.h
37508do
37509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37510if eval "test \"\${$as_ac_Header+set}\" = set"; then
37511 echo "$as_me:$LINENO: checking for $ac_header" >&5
37512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37513if eval "test \"\${$as_ac_Header+set}\" = set"; then
37514 echo $ECHO_N "(cached) $ECHO_C" >&6
37515fi
37516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37518else
37519 # Is the header compilable?
37520echo "$as_me:$LINENO: checking $ac_header usability" >&5
37521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37522cat >conftest.$ac_ext <<_ACEOF
37523/* confdefs.h. */
37524_ACEOF
37525cat confdefs.h >>conftest.$ac_ext
37526cat >>conftest.$ac_ext <<_ACEOF
37527/* end confdefs.h. */
37528$ac_includes_default
37529#include <$ac_header>
37530_ACEOF
37531rm -f conftest.$ac_objext
37532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37533 (eval $ac_compile) 2>conftest.er1
a848cd7e 37534 ac_status=$?
ac1cb8d3
VS
37535 grep -v '^ *+' conftest.er1 >conftest.err
37536 rm -f conftest.er1
37537 cat conftest.err >&5
a848cd7e
SC
37538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37539 (exit $ac_status); } &&
89be85c2
VS
37540 { ac_try='test -z "$ac_c_werror_flag"
37541 || test ! -s conftest.err'
ac1cb8d3
VS
37542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37543 (eval $ac_try) 2>&5
37544 ac_status=$?
37545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37546 (exit $ac_status); }; } &&
37547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37549 (eval $ac_try) 2>&5
37550 ac_status=$?
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); }; }; then
37553 ac_header_compiler=yes
37554else
37555 echo "$as_me: failed program was:" >&5
37556sed 's/^/| /' conftest.$ac_ext >&5
37557
37558ac_header_compiler=no
37559fi
ac1cb8d3 37560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37561echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37562echo "${ECHO_T}$ac_header_compiler" >&6
37563
37564# Is the header present?
37565echo "$as_me:$LINENO: checking $ac_header presence" >&5
37566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37567cat >conftest.$ac_ext <<_ACEOF
37568/* confdefs.h. */
37569_ACEOF
37570cat confdefs.h >>conftest.$ac_ext
37571cat >>conftest.$ac_ext <<_ACEOF
37572/* end confdefs.h. */
37573#include <$ac_header>
37574_ACEOF
37575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37577 ac_status=$?
37578 grep -v '^ *+' conftest.er1 >conftest.err
37579 rm -f conftest.er1
37580 cat conftest.err >&5
37581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582 (exit $ac_status); } >/dev/null; then
37583 if test -s conftest.err; then
37584 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37586 else
37587 ac_cpp_err=
37588 fi
37589else
37590 ac_cpp_err=yes
37591fi
37592if test -z "$ac_cpp_err"; then
37593 ac_header_preproc=yes
37594else
37595 echo "$as_me: failed program was:" >&5
37596sed 's/^/| /' conftest.$ac_ext >&5
37597
37598 ac_header_preproc=no
37599fi
37600rm -f conftest.err conftest.$ac_ext
37601echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37602echo "${ECHO_T}$ac_header_preproc" >&6
37603
37604# So? What about this header?
ac1cb8d3
VS
37605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37606 yes:no: )
a848cd7e
SC
37607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37611 ac_header_preproc=yes
a848cd7e 37612 ;;
ac1cb8d3 37613 no:yes:* )
a848cd7e
SC
37614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37626 (
37627 cat <<\_ASBOX
ac1cb8d3
VS
37628## ----------------------------------------- ##
37629## Report this to wx-dev@lists.wxwidgets.org ##
37630## ----------------------------------------- ##
a848cd7e
SC
37631_ASBOX
37632 ) |
37633 sed "s/^/$as_me: WARNING: /" >&2
37634 ;;
37635esac
37636echo "$as_me:$LINENO: checking for $ac_header" >&5
37637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37638if eval "test \"\${$as_ac_Header+set}\" = set"; then
37639 echo $ECHO_N "(cached) $ECHO_C" >&6
37640else
ac1cb8d3 37641 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37642fi
37643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37645
37646fi
37647if test `eval echo '${'$as_ac_Header'}'` = yes; then
37648 cat >>confdefs.h <<_ACEOF
37649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37650_ACEOF
37651
37652fi
37653
37654done
37655
37656
37657 if test "$ac_cv_header_ole2_h" = "yes" ; then
37658 if test "$GCC" = yes ; then
37659
37660
37661 ac_ext=cc
37662ac_cpp='$CXXCPP $CPPFLAGS'
37663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37666
37667
37668 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37669echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37670 cat >conftest.$ac_ext <<_ACEOF
37671/* confdefs.h. */
37672_ACEOF
37673cat confdefs.h >>conftest.$ac_ext
37674cat >>conftest.$ac_ext <<_ACEOF
37675/* end confdefs.h. */
37676#include <windows.h>
37677 #include <ole2.h>
37678int
37679main ()
37680{
37681
37682 ;
37683 return 0;
37684}
37685_ACEOF
37686rm -f conftest.$ac_objext
37687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37688 (eval $ac_compile) 2>conftest.er1
a848cd7e 37689 ac_status=$?
ac1cb8d3
VS
37690 grep -v '^ *+' conftest.er1 >conftest.err
37691 rm -f conftest.er1
37692 cat conftest.err >&5
a848cd7e
SC
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); } &&
89be85c2
VS
37695 { ac_try='test -z "$ac_cxx_werror_flag"
37696 || test ! -s conftest.err'
ac1cb8d3
VS
37697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37698 (eval $ac_try) 2>&5
37699 ac_status=$?
37700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37701 (exit $ac_status); }; } &&
37702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37704 (eval $ac_try) 2>&5
37705 ac_status=$?
37706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707 (exit $ac_status); }; }; then
37708 echo "$as_me:$LINENO: result: no" >&5
37709echo "${ECHO_T}no" >&6
37710else
37711 echo "$as_me: failed program was:" >&5
37712sed 's/^/| /' conftest.$ac_ext >&5
37713
37714echo "$as_me:$LINENO: result: yes" >&5
37715echo "${ECHO_T}yes" >&6
37716 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37717fi
ac1cb8d3 37718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37719 ac_ext=c
37720ac_cpp='$CPP $CPPFLAGS'
37721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37723ac_compiler_gnu=$ac_cv_c_compiler_gnu
37724
a848cd7e
SC
37725 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37726 if test "$wxUSE_OLE" = "yes" ; then
37727 cat >>confdefs.h <<\_ACEOF
37728#define wxUSE_OLE 1
37729_ACEOF
37730
37731 fi
37732 fi
37733
37734 if test "$wxUSE_DATAOBJ" = "yes" ; then
37735 cat >>confdefs.h <<\_ACEOF
37736#define wxUSE_DATAOBJ 1
37737_ACEOF
37738
37739 fi
37740 else
37741 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37742echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37743
37744 wxUSE_CLIPBOARD=no
37745 wxUSE_DRAG_AND_DROP=no
37746 wxUSE_DATAOBJ=no
37747 wxUSE_OLE=no
37748 fi
37749
37750 if test "$wxUSE_METAFILE" = "yes"; then
37751 cat >>confdefs.h <<\_ACEOF
37752#define wxUSE_METAFILE 1
37753_ACEOF
37754
37755
37756 cat >>confdefs.h <<\_ACEOF
37757#define wxUSE_ENH_METAFILE 1
37758_ACEOF
37759
37760 fi
37761fi
37762
37763if test "$wxUSE_IPC" = "yes"; then
37764 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37765 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37766echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37767 fi
37768
37769 cat >>confdefs.h <<\_ACEOF
37770#define wxUSE_IPC 1
37771_ACEOF
37772
37773fi
37774
37775if test "$wxUSE_CLIPBOARD" = "yes"; then
37776 if test "$wxUSE_MGL" = 1; then
37777 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37778echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37779 wxUSE_CLIPBOARD=no
37780 fi
37781
37782 if test "$wxUSE_CLIPBOARD" = "yes"; then
37783 cat >>confdefs.h <<\_ACEOF
37784#define wxUSE_CLIPBOARD 1
37785_ACEOF
37786
37787
37788 cat >>confdefs.h <<\_ACEOF
37789#define wxUSE_DATAOBJ 1
37790_ACEOF
37791
37792 fi
37793fi
37794
37795if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37796 if test "$wxUSE_GTK" = 1; then
37797 if test "$WXGTK12" != 1; then
37798 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37799echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37800 wxUSE_DRAG_AND_DROP=no
37801 fi
37802 fi
37803
37804 if test "$wxUSE_MOTIF" = 1; then
37805 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37806echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37807 wxUSE_DRAG_AND_DROP=no
37808 fi
37809
37810 if test "$wxUSE_X11" = 1; then
37811 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37812echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37813 wxUSE_DRAG_AND_DROP=no
37814 fi
37815
37816 if test "$wxUSE_MGL" = 1; then
37817 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37818echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37819 wxUSE_DRAG_AND_DROP=no
37820 fi
37821
37822 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37823 cat >>confdefs.h <<\_ACEOF
37824#define wxUSE_DRAG_AND_DROP 1
37825_ACEOF
37826
37827 fi
37828
37829fi
37830
37831if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37833fi
37834
37835if test "$wxUSE_SPLINES" = "yes" ; then
37836 cat >>confdefs.h <<\_ACEOF
37837#define wxUSE_SPLINES 1
37838_ACEOF
37839
37840fi
37841
37842
37843USES_CONTROLS=0
37844if test "$wxUSE_CONTROLS" = "yes"; then
37845 USES_CONTROLS=1
37846fi
37847
37848if test "$wxUSE_ACCEL" = "yes"; then
37849 cat >>confdefs.h <<\_ACEOF
37850#define wxUSE_ACCEL 1
37851_ACEOF
37852
37853 USES_CONTROLS=1
37854fi
37855
37856if test "$wxUSE_BUTTON" = "yes"; then
37857 cat >>confdefs.h <<\_ACEOF
37858#define wxUSE_BUTTON 1
37859_ACEOF
37860
37861 USES_CONTROLS=1
37862fi
37863
37864if test "$wxUSE_BMPBUTTON" = "yes"; then
37865 cat >>confdefs.h <<\_ACEOF
37866#define wxUSE_BMPBUTTON 1
37867_ACEOF
37868
37869 USES_CONTROLS=1
37870fi
37871
37872if test "$wxUSE_CALCTRL" = "yes"; then
37873 cat >>confdefs.h <<\_ACEOF
37874#define wxUSE_CALENDARCTRL 1
37875_ACEOF
37876
37877 USES_CONTROLS=1
37878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37879fi
37880
37881if test "$wxUSE_CARET" = "yes"; then
37882 cat >>confdefs.h <<\_ACEOF
37883#define wxUSE_CARET 1
37884_ACEOF
37885
37886 USES_CONTROLS=1
37887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37888fi
37889
37890if test "$wxUSE_COMBOBOX" = "yes"; then
37891 cat >>confdefs.h <<\_ACEOF
37892#define wxUSE_COMBOBOX 1
37893_ACEOF
37894
37895 USES_CONTROLS=1
37896fi
37897
37898if test "$wxUSE_CHOICE" = "yes"; then
37899 cat >>confdefs.h <<\_ACEOF
37900#define wxUSE_CHOICE 1
37901_ACEOF
37902
37903 USES_CONTROLS=1
37904fi
37905
92bbdbcd
WS
37906if test "$wxUSE_CHOICEBOOK" = "yes"; then
37907 cat >>confdefs.h <<\_ACEOF
37908#define wxUSE_CHOICEBOOK 1
37909_ACEOF
37910
37911 USES_CONTROLS=1
37912fi
37913
a848cd7e
SC
37914if test "$wxUSE_CHECKBOX" = "yes"; then
37915 cat >>confdefs.h <<\_ACEOF
37916#define wxUSE_CHECKBOX 1
37917_ACEOF
37918
37919 USES_CONTROLS=1
37920fi
37921
37922if test "$wxUSE_CHECKLST" = "yes"; then
37923 cat >>confdefs.h <<\_ACEOF
37924#define wxUSE_CHECKLISTBOX 1
37925_ACEOF
37926
37927 USES_CONTROLS=1
37928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37929fi
37930
da98e9be
VZ
37931if test "$wxUSE_DATEPICKCTRL" = "yes"; then
37932 cat >>confdefs.h <<\_ACEOF
37933#define wxUSE_DATEPICKCTRL 1
37934_ACEOF
37935
37936 USES_CONTROLS=1
37937fi
37938
a848cd7e
SC
37939if test "$wxUSE_DISPLAY" = "yes"; then
37940 cat >>confdefs.h <<\_ACEOF
37941#define wxUSE_DISPLAY 1
37942_ACEOF
37943
37944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37945fi
37946
37947if test "$wxUSE_GAUGE" = "yes"; then
37948 cat >>confdefs.h <<\_ACEOF
37949#define wxUSE_GAUGE 1
37950_ACEOF
37951
37952 USES_CONTROLS=1
37953fi
37954
37955if test "$wxUSE_GRID" = "yes"; then
37956 cat >>confdefs.h <<\_ACEOF
37957#define wxUSE_GRID 1
37958_ACEOF
37959
37960 USES_CONTROLS=1
37961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37962fi
37963
37964if test "$wxUSE_IMAGLIST" = "yes"; then
37965 cat >>confdefs.h <<\_ACEOF
37966#define wxUSE_IMAGLIST 1
37967_ACEOF
37968
37969fi
37970
37971if test "$wxUSE_LISTBOOK" = "yes"; then
37972 cat >>confdefs.h <<\_ACEOF
37973#define wxUSE_LISTBOOK 1
37974_ACEOF
37975
37976 USES_CONTROLS=1
37977fi
37978
37979if test "$wxUSE_LISTBOX" = "yes"; then
37980 cat >>confdefs.h <<\_ACEOF
37981#define wxUSE_LISTBOX 1
37982_ACEOF
37983
37984 USES_CONTROLS=1
37985fi
37986
37987if test "$wxUSE_LISTCTRL" = "yes"; then
37988 if test "$wxUSE_IMAGLIST" = "yes"; then
37989 cat >>confdefs.h <<\_ACEOF
37990#define wxUSE_LISTCTRL 1
37991_ACEOF
37992
37993 USES_CONTROLS=1
37994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37995 else
37996 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37997echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37998 fi
37999fi
38000
38001if test "$wxUSE_NOTEBOOK" = "yes"; then
38002 cat >>confdefs.h <<\_ACEOF
38003#define wxUSE_NOTEBOOK 1
38004_ACEOF
38005
38006 USES_CONTROLS=1
38007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38008fi
38009
38010
38011if test "$wxUSE_RADIOBOX" = "yes"; then
38012 cat >>confdefs.h <<\_ACEOF
38013#define wxUSE_RADIOBOX 1
38014_ACEOF
38015
38016 USES_CONTROLS=1
38017fi
38018
38019if test "$wxUSE_RADIOBTN" = "yes"; then
38020 cat >>confdefs.h <<\_ACEOF
38021#define wxUSE_RADIOBTN 1
38022_ACEOF
38023
38024 USES_CONTROLS=1
38025fi
38026
38027if test "$wxUSE_SASH" = "yes"; then
38028 cat >>confdefs.h <<\_ACEOF
38029#define wxUSE_SASH 1
38030_ACEOF
38031
38032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38033fi
38034
38035if test "$wxUSE_SCROLLBAR" = "yes"; then
38036 cat >>confdefs.h <<\_ACEOF
38037#define wxUSE_SCROLLBAR 1
38038_ACEOF
38039
38040 USES_CONTROLS=1
38041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38042fi
38043
38044if test "$wxUSE_SLIDER" = "yes"; then
38045 cat >>confdefs.h <<\_ACEOF
38046#define wxUSE_SLIDER 1
38047_ACEOF
38048
38049 USES_CONTROLS=1
38050fi
38051
38052if test "$wxUSE_SPINBTN" = "yes"; then
38053 cat >>confdefs.h <<\_ACEOF
38054#define wxUSE_SPINBTN 1
38055_ACEOF
38056
38057 USES_CONTROLS=1
38058fi
38059
38060if test "$wxUSE_SPINCTRL" = "yes"; then
38061 cat >>confdefs.h <<\_ACEOF
38062#define wxUSE_SPINCTRL 1
38063_ACEOF
38064
38065 USES_CONTROLS=1
38066fi
38067
38068if test "$wxUSE_SPLITTER" = "yes"; then
38069 cat >>confdefs.h <<\_ACEOF
38070#define wxUSE_SPLITTER 1
38071_ACEOF
38072
38073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38074fi
38075
38076if test "$wxUSE_STATBMP" = "yes"; then
38077 cat >>confdefs.h <<\_ACEOF
38078#define wxUSE_STATBMP 1
38079_ACEOF
38080
38081 USES_CONTROLS=1
38082fi
38083
38084if test "$wxUSE_STATBOX" = "yes"; then
38085 cat >>confdefs.h <<\_ACEOF
38086#define wxUSE_STATBOX 1
38087_ACEOF
38088
38089 USES_CONTROLS=1
38090fi
38091
38092if test "$wxUSE_STATTEXT" = "yes"; then
38093 cat >>confdefs.h <<\_ACEOF
38094#define wxUSE_STATTEXT 1
38095_ACEOF
38096
38097 USES_CONTROLS=1
38098fi
38099
38100if test "$wxUSE_STATLINE" = "yes"; then
38101 cat >>confdefs.h <<\_ACEOF
38102#define wxUSE_STATLINE 1
38103_ACEOF
38104
38105 USES_CONTROLS=1
38106fi
38107
38108if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38109 cat >>confdefs.h <<\_ACEOF
38110#define wxUSE_NATIVE_STATUSBAR 1
38111_ACEOF
38112
a848cd7e
SC
38113 cat >>confdefs.h <<\_ACEOF
38114#define wxUSE_STATUSBAR 1
38115_ACEOF
38116
38117 USES_CONTROLS=1
38118
38119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38120fi
38121
38122if test "$wxUSE_TABDIALOG" = "yes"; then
38123 cat >>confdefs.h <<\_ACEOF
38124#define wxUSE_TAB_DIALOG 1
38125_ACEOF
38126
a848cd7e
SC
38127fi
38128
38129if test "$wxUSE_TEXTCTRL" = "yes"; then
38130 cat >>confdefs.h <<\_ACEOF
38131#define wxUSE_TEXTCTRL 1
38132_ACEOF
38133
38134 USES_CONTROLS=1
38135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38136fi
38137
38138if test "$wxUSE_TOGGLEBTN" = "yes"; then
38139 if test "$wxUSE_COCOA" = 1 ; then
38140 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38141echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38142 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38143 else
38144 if test "$wxUSE_PM" = 1; then
38145 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38146echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38147 wxUSE_TOGGLEBTN=no
38148 fi
a848cd7e
SC
38149 fi
38150 if test "$wxUSE_UNIVERSAL" = "yes"; then
38151 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38152echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38153 wxUSE_TOGGLEBTN=no
38154 fi
38155
38156 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38157 cat >>confdefs.h <<\_ACEOF
38158#define wxUSE_TOGGLEBTN 1
38159_ACEOF
38160
38161 USES_CONTROLS=1
38162 fi
38163fi
38164
38165if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
38166 cat >>confdefs.h <<\_ACEOF
38167#define wxUSE_TOOLBAR_SIMPLE 1
38168_ACEOF
38169
38170 wxUSE_TOOLBAR="yes"
38171 USES_CONTROLS=1
38172fi
38173
38174if test "$wxUSE_TOOLBAR" = "yes"; then
38175 cat >>confdefs.h <<\_ACEOF
38176#define wxUSE_TOOLBAR 1
38177_ACEOF
38178
38179 USES_CONTROLS=1
38180
38181 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
38182 wxUSE_TOOLBAR_NATIVE="yes"
38183 fi
38184
38185 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
38186 cat >>confdefs.h <<\_ACEOF
38187#define wxUSE_TOOLBAR_NATIVE 1
38188_ACEOF
38189
38190 USES_CONTROLS=1
38191 fi
38192
38193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
38194fi
38195
38196if test "$wxUSE_TOOLTIPS" = "yes"; then
38197 if test "$wxUSE_MOTIF" = 1; then
38198 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
38199echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
38200 else
38201 if test "$wxUSE_UNIVERSAL" = "yes"; then
38202 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
38203echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
38204 else
38205 cat >>confdefs.h <<\_ACEOF
38206#define wxUSE_TOOLTIPS 1
38207_ACEOF
38208
38209 fi
38210 fi
38211fi
38212
38213if test "$wxUSE_TREECTRL" = "yes"; then
38214 if test "$wxUSE_IMAGLIST" = "yes"; then
38215 cat >>confdefs.h <<\_ACEOF
38216#define wxUSE_TREECTRL 1
38217_ACEOF
38218
38219 USES_CONTROLS=1
38220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
38221 else
38222 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
38223echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
38224 fi
38225fi
38226
38227if test "$wxUSE_POPUPWIN" = "yes"; then
38228 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38229 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
38230echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
38231 else
38232 if test "$wxUSE_PM" = 1; then
38233 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
38234echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
38235 else
38236 cat >>confdefs.h <<\_ACEOF
38237#define wxUSE_POPUPWIN 1
38238_ACEOF
38239
38240
38241 USES_CONTROLS=1
38242 fi
38243 fi
38244fi
38245
0dcd06dd 38246if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
38247 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
38248 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
38249echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
38250 else
38251 cat >>confdefs.h <<\_ACEOF
38252#define wxUSE_DIALUP_MANAGER 1
38253_ACEOF
38254
38255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
38256 fi
38257fi
38258
a848cd7e
SC
38259if test "$wxUSE_TIPWINDOW" = "yes"; then
38260 if test "$wxUSE_PM" = 1; then
38261 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38262echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38263 else
38264 cat >>confdefs.h <<\_ACEOF
38265#define wxUSE_TIPWINDOW 1
38266_ACEOF
38267
38268 fi
38269fi
38270
38271if test "$USES_CONTROLS" = 1; then
38272 cat >>confdefs.h <<\_ACEOF
38273#define wxUSE_CONTROLS 1
38274_ACEOF
38275
38276fi
38277
38278
38279if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38280 cat >>confdefs.h <<\_ACEOF
38281#define wxUSE_ACCESSIBILITY 1
38282_ACEOF
38283
38284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38285fi
38286
38287if test "$wxUSE_DRAGIMAGE" = "yes"; then
38288 cat >>confdefs.h <<\_ACEOF
38289#define wxUSE_DRAGIMAGE 1
38290_ACEOF
38291
38292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38293fi
38294
38295if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
38296 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
38297 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
38298echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
38299 else
38300 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38301#define wxUSE_EXCEPTIONS 1
38302_ACEOF
38303
07bea8f0
VS
38304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
38305 fi
a848cd7e
SC
38306fi
38307
38308USE_HTML=0
38309if test "$wxUSE_HTML" = "yes"; then
38310 cat >>confdefs.h <<\_ACEOF
38311#define wxUSE_HTML 1
38312_ACEOF
38313
38314 USE_HTML=1
38315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38316 if test "$wxUSE_MAC" = 1; then
38317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38318 fi
a848cd7e 38319fi
646b6ec1 38320if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 38321 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
38322 old_CPPFLAGS="$CPPFLAGS"
38323 CPPFLAGS="$CPPFLAGS -x objective-c++"
38324 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
38325echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
38326if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
38327 echo $ECHO_N "(cached) $ECHO_C" >&6
38328else
38329 cat >conftest.$ac_ext <<_ACEOF
38330/* confdefs.h. */
38331_ACEOF
38332cat confdefs.h >>conftest.$ac_ext
38333cat >>conftest.$ac_ext <<_ACEOF
38334/* end confdefs.h. */
38335#include <Carbon/Carbon.h>
38336
38337#include <WebKit/HIWebView.h>
38338_ACEOF
38339rm -f conftest.$ac_objext
38340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38341 (eval $ac_compile) 2>conftest.er1
38342 ac_status=$?
38343 grep -v '^ *+' conftest.er1 >conftest.err
38344 rm -f conftest.er1
38345 cat conftest.err >&5
38346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38347 (exit $ac_status); } &&
89be85c2
VS
38348 { ac_try='test -z "$ac_c_werror_flag"
38349 || test ! -s conftest.err'
07bea8f0
VS
38350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38351 (eval $ac_try) 2>&5
38352 ac_status=$?
38353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38354 (exit $ac_status); }; } &&
38355 { ac_try='test -s conftest.$ac_objext'
38356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38357 (eval $ac_try) 2>&5
38358 ac_status=$?
38359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 (exit $ac_status); }; }; then
38361 ac_cv_header_WebKit_HIWebView_h=yes
38362else
38363 echo "$as_me: failed program was:" >&5
38364sed 's/^/| /' conftest.$ac_ext >&5
38365
38366ac_cv_header_WebKit_HIWebView_h=no
38367fi
38368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38369fi
38370echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
38371echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
38372if test $ac_cv_header_WebKit_HIWebView_h = yes; then
38373
38374 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
38375#define wxUSE_WEBKIT 1
38376_ACEOF
38377
07bea8f0
VS
38378 WEBKIT_LINK="-framework WebKit"
38379
38380else
38381
38382 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38383echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38384 wxUSE_WEBKIT=no
38385
646b6ec1
VS
38386fi
38387
07bea8f0
VS
38388
38389 CPPFLAGS="$old_CPPFLAGS"
38390 elif test "$wxUSE_COCOA" = 1; then
38391 cat >>confdefs.h <<\_ACEOF
38392#define wxUSE_WEBKIT 1
38393_ACEOF
38394
38395 else
38396 wxUSE_WEBKIT=no
38397 fi
38398fi
38399
9a8f0513
VS
38400USE_XRC=0
38401if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38402 if test "$wxUSE_XML" != "yes"; then
38403 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38404echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38405 wxUSE_XRC=no
38406 else
38407 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38408#define wxUSE_XRC 1
38409_ACEOF
38410
d2ebf0b7
VS
38411 USE_XRC=1
38412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38413 fi
9a8f0513 38414fi
07bea8f0 38415
a848cd7e
SC
38416if test "$wxUSE_MENUS" = "yes"; then
38417 cat >>confdefs.h <<\_ACEOF
38418#define wxUSE_MENUS 1
38419_ACEOF
38420
38421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38422fi
38423
38424if test "$wxUSE_METAFILE" = "yes"; then
38425 cat >>confdefs.h <<\_ACEOF
38426#define wxUSE_METAFILE 1
38427_ACEOF
38428
38429fi
38430
38431if test "$wxUSE_MIMETYPE" = "yes"; then
38432 cat >>confdefs.h <<\_ACEOF
38433#define wxUSE_MIMETYPE 1
38434_ACEOF
38435
38436fi
38437
38438if test "$wxUSE_MINIFRAME" = "yes"; then
38439 cat >>confdefs.h <<\_ACEOF
38440#define wxUSE_MINIFRAME 1
38441_ACEOF
38442
38443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38444fi
38445
38446if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38447 cat >>confdefs.h <<\_ACEOF
38448#define wxUSE_SYSTEM_OPTIONS 1
38449_ACEOF
38450
38451 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38452 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38454 fi
38455fi
38456
38457
38458if test "$wxUSE_VALIDATORS" = "yes"; then
38459 cat >>confdefs.h <<\_ACEOF
38460#define wxUSE_VALIDATORS 1
38461_ACEOF
38462
38463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38464fi
38465
38466if test "$wxUSE_PALETTE" = "yes" ; then
38467 cat >>confdefs.h <<\_ACEOF
38468#define wxUSE_PALETTE 1
38469_ACEOF
38470
38471fi
38472
38473if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38474 LIBS=" -lunicows $LIBS"
38475fi
38476
38477
38478if test "$wxUSE_IMAGE" = "yes" ; then
38479 cat >>confdefs.h <<\_ACEOF
38480#define wxUSE_IMAGE 1
38481_ACEOF
38482
38483
38484 if test "$wxUSE_GIF" = "yes" ; then
38485 cat >>confdefs.h <<\_ACEOF
38486#define wxUSE_GIF 1
38487_ACEOF
38488
38489 fi
38490
38491 if test "$wxUSE_PCX" = "yes" ; then
38492 cat >>confdefs.h <<\_ACEOF
38493#define wxUSE_PCX 1
38494_ACEOF
38495
38496 fi
38497
38498 if test "$wxUSE_IFF" = "yes" ; then
38499 cat >>confdefs.h <<\_ACEOF
38500#define wxUSE_IFF 1
38501_ACEOF
38502
38503 fi
38504
38505 if test "$wxUSE_PNM" = "yes" ; then
38506 cat >>confdefs.h <<\_ACEOF
38507#define wxUSE_PNM 1
38508_ACEOF
38509
38510 fi
38511
38512 if test "$wxUSE_XPM" = "yes" ; then
38513 cat >>confdefs.h <<\_ACEOF
38514#define wxUSE_XPM 1
38515_ACEOF
38516
38517 fi
38518
38519 if test "$wxUSE_ICO_CUR" = "yes" ; then
38520 cat >>confdefs.h <<\_ACEOF
38521#define wxUSE_ICO_CUR 1
38522_ACEOF
38523
38524 fi
38525fi
38526
38527
38528if test "$wxUSE_CHOICEDLG" = "yes"; then
38529 cat >>confdefs.h <<\_ACEOF
38530#define wxUSE_CHOICEDLG 1
38531_ACEOF
38532
38533fi
38534
38535if test "$wxUSE_COLOURDLG" = "yes"; then
38536 cat >>confdefs.h <<\_ACEOF
38537#define wxUSE_COLOURDLG 1
38538_ACEOF
38539
38540fi
38541
38542if test "$wxUSE_FILEDLG" = "yes"; then
38543 cat >>confdefs.h <<\_ACEOF
38544#define wxUSE_FILEDLG 1
38545_ACEOF
38546
38547fi
38548
38549if test "$wxUSE_FINDREPLDLG" = "yes"; then
38550 cat >>confdefs.h <<\_ACEOF
38551#define wxUSE_FINDREPLDLG 1
38552_ACEOF
38553
38554fi
38555
38556if test "$wxUSE_FONTDLG" = "yes"; then
38557 cat >>confdefs.h <<\_ACEOF
38558#define wxUSE_FONTDLG 1
38559_ACEOF
38560
38561fi
38562
38563if test "$wxUSE_DIRDLG" = "yes"; then
38564 if test "$wxUSE_TREECTRL" != "yes"; then
38565 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38566echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38567 else
38568 cat >>confdefs.h <<\_ACEOF
38569#define wxUSE_DIRDLG 1
38570_ACEOF
38571
38572 fi
38573fi
38574
38575if test "$wxUSE_MSGDLG" = "yes"; then
38576 cat >>confdefs.h <<\_ACEOF
38577#define wxUSE_MSGDLG 1
38578_ACEOF
38579
38580fi
38581
38582if test "$wxUSE_NUMBERDLG" = "yes"; then
38583 cat >>confdefs.h <<\_ACEOF
38584#define wxUSE_NUMBERDLG 1
38585_ACEOF
38586
38587fi
38588
38589if test "$wxUSE_PROGRESSDLG" = "yes"; then
38590 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38591 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38592echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38593 else
38594 cat >>confdefs.h <<\_ACEOF
38595#define wxUSE_PROGRESSDLG 1
38596_ACEOF
38597
38598 fi
38599fi
38600
38601if test "$wxUSE_SPLASH" = "yes"; then
38602 cat >>confdefs.h <<\_ACEOF
38603#define wxUSE_SPLASH 1
38604_ACEOF
38605
2057db16 38606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38607fi
38608
38609if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38610 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38611 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38612echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38613 else
38614 cat >>confdefs.h <<\_ACEOF
38615#define wxUSE_STARTUP_TIPS 1
38616_ACEOF
38617
38618 fi
38619fi
38620
38621if test "$wxUSE_TEXTDLG" = "yes"; then
38622 cat >>confdefs.h <<\_ACEOF
38623#define wxUSE_TEXTDLG 1
38624_ACEOF
38625
38626fi
38627
38628if test "$wxUSE_WIZARDDLG" = "yes"; then
38629 cat >>confdefs.h <<\_ACEOF
38630#define wxUSE_WIZARDDLG 1
38631_ACEOF
38632
38633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38634fi
38635
38636
ce756cb0
RN
38637if test "$wxUSE_MEDIACTRL" = "yes"; then
38638 if test "$wxUSE_MSW" = 1; then
38639 wxUSE_DIRECTSHOW="yes"
38640
38641for ac_header in dshow.h
38642do
38643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38644echo "$as_me:$LINENO: checking for $ac_header" >&5
38645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38646if eval "test \"\${$as_ac_Header+set}\" = set"; then
38647 echo $ECHO_N "(cached) $ECHO_C" >&6
38648else
38649 cat >conftest.$ac_ext <<_ACEOF
38650/* confdefs.h. */
38651_ACEOF
38652cat confdefs.h >>conftest.$ac_ext
38653cat >>conftest.$ac_ext <<_ACEOF
38654/* end confdefs.h. */
38655#include <windows.h>
38656
38657#include <$ac_header>
38658_ACEOF
38659rm -f conftest.$ac_objext
38660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38661 (eval $ac_compile) 2>conftest.er1
38662 ac_status=$?
38663 grep -v '^ *+' conftest.er1 >conftest.err
38664 rm -f conftest.er1
38665 cat conftest.err >&5
38666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); } &&
38668 { ac_try='test -z "$ac_c_werror_flag"
38669 || test ! -s conftest.err'
38670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38671 (eval $ac_try) 2>&5
38672 ac_status=$?
38673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38674 (exit $ac_status); }; } &&
38675 { ac_try='test -s conftest.$ac_objext'
38676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38677 (eval $ac_try) 2>&5
38678 ac_status=$?
38679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38680 (exit $ac_status); }; }; then
38681 eval "$as_ac_Header=yes"
38682else
38683 echo "$as_me: failed program was:" >&5
38684sed 's/^/| /' conftest.$ac_ext >&5
38685
38686eval "$as_ac_Header=no"
38687fi
38688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38689fi
38690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38692if test `eval echo '${'$as_ac_Header'}'` = yes; then
38693 cat >>confdefs.h <<_ACEOF
38694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38695_ACEOF
38696
38697else
38698
38699 wxUSE_DIRECTSHOW="no"
38700 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
38701echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
38702
38703fi
38704
38705done
38706
38707
38708 if test "$wxUSE_DIRECTSHOW" = "yes"; then
38709 cat >>confdefs.h <<\_ACEOF
38710#define wxUSE_DIRECTSHOW 1
38711_ACEOF
38712
38713 LIBS="$LIBS -lstrmiids"
38714 fi
38715 fi
38716
38717 if test "$wxUSE_GTK" = 1; then
38718 wxUSE_GSTREAMER="yes"
38719
ce756cb0 38720
dae87f93 38721 succeeded=no
ce756cb0 38722
dae87f93
RN
38723 if test -z "$PKG_CONFIG"; then
38724 # Extract the first word of "pkg-config", so it can be a program name with args.
38725set dummy pkg-config; ac_word=$2
38726echo "$as_me:$LINENO: checking for $ac_word" >&5
38727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38728if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38729 echo $ECHO_N "(cached) $ECHO_C" >&6
38730else
38731 case $PKG_CONFIG in
38732 [\\/]* | ?:[\\/]*)
38733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38734 ;;
38735 *)
38736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38737for as_dir in $PATH
38738do
38739 IFS=$as_save_IFS
38740 test -z "$as_dir" && as_dir=.
38741 for ac_exec_ext in '' $ac_executable_extensions; do
38742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38743 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38745 break 2
38746 fi
38747done
38748done
38749
38750 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38751 ;;
38752esac
38753fi
38754PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38755
38756if test -n "$PKG_CONFIG"; then
38757 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38758echo "${ECHO_T}$PKG_CONFIG" >&6
38759else
38760 echo "$as_me:$LINENO: result: no" >&5
38761echo "${ECHO_T}no" >&6
38762fi
38763
38764 fi
38765
38766 if test "$PKG_CONFIG" = "no" ; then
38767 echo "*** The pkg-config script could not be found. Make sure it is"
38768 echo "*** in your path, or set the PKG_CONFIG environment variable"
38769 echo "*** to the full path to pkg-config."
38770 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38771 else
38772 PKG_CONFIG_MIN_VERSION=0.9.0
38773 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
38774 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
38775echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
38776
38777 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
38778 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 38779echo "${ECHO_T}yes" >&6
dae87f93 38780 succeeded=yes
ce756cb0 38781
dae87f93
RN
38782 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
38783echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
38784 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
38785 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
38786echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
38787
38788 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
38789echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
38790 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
38791 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
38792echo "${ECHO_T}$GSTREAMER_LIBS" >&6
38793 else
38794 GSTREAMER_CFLAGS=""
38795 GSTREAMER_LIBS=""
38796 ## If we have a custom action on failure, don't print errors, but
38797 ## do set a variable so people can do so.
38798 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 38799
dae87f93
RN
38800 fi
38801
38802
38803
38804 else
38805 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38806 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38807 fi
38808 fi
38809
38810 if test $succeeded = yes; then
38811
38812 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
38813 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 38814
ce756cb0 38815 else
dae87f93
RN
38816
38817 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
38818echo "$as_me: WARNING: GStreamer installation not found" >&2;}
38819 wxUSE_GSTREAMER="no"
38820
38821 fi
38822
38823
38824
38825
38826
38827 if test "x$GST_INSPECT" == "x"; then
38828 # Extract the first word of "gst-inspect", so it can be a program name with args.
38829set dummy gst-inspect; ac_word=$2
38830echo "$as_me:$LINENO: checking for $ac_word" >&5
38831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38832if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
38833 echo $ECHO_N "(cached) $ECHO_C" >&6
38834else
38835 if test -n "$GST_INSPECT"; then
38836 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
38837else
38838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38839for as_dir in $PATH
38840do
38841 IFS=$as_save_IFS
38842 test -z "$as_dir" && as_dir=.
38843 for ac_exec_ext in '' $ac_executable_extensions; do
38844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38845 ac_cv_prog_GST_INSPECT="gst-inspect"
38846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38847 break 2
ce756cb0 38848 fi
dae87f93
RN
38849done
38850done
38851
38852fi
38853fi
38854GST_INSPECT=$ac_cv_prog_GST_INSPECT
38855if test -n "$GST_INSPECT"; then
38856 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
38857echo "${ECHO_T}$GST_INSPECT" >&6
38858else
38859 echo "$as_me:$LINENO: result: no" >&5
38860echo "${ECHO_T}no" >&6
38861fi
38862
38863 fi
38864
38865 if test "x$GST_INSPECT" != "x"; then
38866 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
38867echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
38868 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
38869 echo "$as_me:$LINENO: result: found." >&5
38870echo "${ECHO_T}found." >&6
ce756cb0 38871
ce756cb0 38872 else
dae87f93
RN
38873 echo "$as_me:$LINENO: result: not found." >&5
38874echo "${ECHO_T}not found." >&6
38875
38876 wxUSE_GSTREAMER="no"
38877 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
38878echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
38879
38880 fi
38881 fi
38882
38883
38884 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
38885echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
38886if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
38887 echo $ECHO_N "(cached) $ECHO_C" >&6
38888else
38889 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
38890/* confdefs.h. */
38891_ACEOF
38892cat confdefs.h >>conftest.$ac_ext
38893cat >>conftest.$ac_ext <<_ACEOF
38894/* end confdefs.h. */
dae87f93 38895#include <gst/gst.h>
ce756cb0 38896
dae87f93 38897#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
38898_ACEOF
38899rm -f conftest.$ac_objext
38900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38901 (eval $ac_compile) 2>conftest.er1
38902 ac_status=$?
38903 grep -v '^ *+' conftest.er1 >conftest.err
38904 rm -f conftest.er1
38905 cat conftest.err >&5
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); } &&
38908 { ac_try='test -z "$ac_c_werror_flag"
38909 || test ! -s conftest.err'
38910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38911 (eval $ac_try) 2>&5
38912 ac_status=$?
38913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914 (exit $ac_status); }; } &&
38915 { ac_try='test -s conftest.$ac_objext'
38916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38917 (eval $ac_try) 2>&5
38918 ac_status=$?
38919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920 (exit $ac_status); }; }; then
dae87f93 38921 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
38922else
38923 echo "$as_me: failed program was:" >&5
38924sed 's/^/| /' conftest.$ac_ext >&5
38925
dae87f93 38926ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
38927fi
38928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
38929fi
38930echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
38931echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
38932if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
38933 :
38934else
ce756cb0 38935
dae87f93
RN
38936 wxUSE_GSTREAMER="no"
38937 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
38938echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 38939
dae87f93 38940fi
ce756cb0 38941
dae87f93
RN
38942
38943
38944 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
38945echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
38946
38947ac_find_libraries=
38948for ac_dir in $SEARCH_LIB /usr/lib;
38949 do
38950 for ac_extension in a so sl dylib; do
38951 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
38952 ac_find_libraries=$ac_dir
38953 break 2
38954 fi
38955 done
38956 done
38957
ce756cb0 38958
dae87f93
RN
38959 if test "$ac_find_libraries" = "" ; then
38960 echo "$as_me:$LINENO: result: no" >&5
38961echo "${ECHO_T}no" >&6
38962 wxUSE_GSTREAMER="no"
38963 else
38964 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 38965echo "${ECHO_T}yes" >&6
dae87f93 38966 fi
ce756cb0 38967
dae87f93
RN
38968 if test "$wxUSE_GSTREAMER" = "yes"; then
38969 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
38970#define wxUSE_GSTREAMER 1
38971_ACEOF
38972
dae87f93
RN
38973 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
38974echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
38975 fi
38976 fi
38977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
38978 cat >>confdefs.h <<\_ACEOF
38979#define wxUSE_MEDIACTRL 1
38980_ACEOF
38981
38982fi
38983
38984
a848cd7e
SC
38985if test "$cross_compiling" = "yes"; then
38986 OSINFO="\"$host\""
38987else
38988 OSINFO=`uname -s -r -m`
38989 OSINFO="\"$OSINFO\""
38990fi
38991
38992cat >>confdefs.h <<_ACEOF
38993#define WXWIN_OS_DESCRIPTION $OSINFO
38994_ACEOF
38995
38996
38997
38998if test "x$prefix" != "xNONE"; then
38999 wxPREFIX=$prefix
39000else
39001 wxPREFIX=$ac_default_prefix
39002fi
39003
39004cat >>confdefs.h <<_ACEOF
39005#define wxINSTALL_PREFIX "$wxPREFIX"
39006_ACEOF
39007
39008
a848cd7e
SC
39009
39010
39011CORE_BASE_LIBS="net base"
39012CORE_GUI_LIBS="adv core"
39013
39014if test "$wxUSE_XML" = "yes" ; then
39015 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39016fi
39017if test "$wxUSE_ODBC" != "no" ; then
39018 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39019 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39020fi
39021if test "$wxUSE_HTML" = "yes" ; then
39022 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39023fi
9a8f0513
VS
39024if test "$wxUSE_XRC" = "yes" ; then
39025 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39026fi
a848cd7e
SC
39027
39028if test "$wxUSE_GUI" != "yes"; then
39029 CORE_GUI_LIBS=""
39030fi
39031
39032
39033
39034
39035
39036
39037
39038
39039if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39040 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39041 if test "$USE_DARWIN" = 1; then
39042 LDFLAGS="$LDFLAGS -framework QuickTime"
39043 else
39044 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39045 fi
07bea8f0 39046 fi
5dcf30a0 39047 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39048 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39049 else
39050 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39051 fi
a848cd7e
SC
39052fi
39053if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39054 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39055 if test "$wxUSE_MEDIACTRL" = "yes"; then
39056 LDFLAGS="$LDFLAGS -framework QuickTime"
39057 fi
a848cd7e
SC
39058fi
39059
39060
39061LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39062
39063have_cos=0
39064have_floor=0
39065
39066for ac_func in cos
39067do
39068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39069echo "$as_me:$LINENO: checking for $ac_func" >&5
39070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39071if eval "test \"\${$as_ac_var+set}\" = set"; then
39072 echo $ECHO_N "(cached) $ECHO_C" >&6
39073else
39074 cat >conftest.$ac_ext <<_ACEOF
39075/* confdefs.h. */
39076_ACEOF
39077cat confdefs.h >>conftest.$ac_ext
39078cat >>conftest.$ac_ext <<_ACEOF
39079/* end confdefs.h. */
ac1cb8d3
VS
39080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39082#define $ac_func innocuous_$ac_func
39083
a848cd7e
SC
39084/* System header to define __stub macros and hopefully few prototypes,
39085 which can conflict with char $ac_func (); below.
39086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39087 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39088
a848cd7e
SC
39089#ifdef __STDC__
39090# include <limits.h>
39091#else
39092# include <assert.h>
39093#endif
ac1cb8d3
VS
39094
39095#undef $ac_func
39096
a848cd7e
SC
39097/* Override any gcc2 internal prototype to avoid an error. */
39098#ifdef __cplusplus
39099extern "C"
39100{
39101#endif
39102/* We use char because int might match the return type of a gcc2
39103 builtin and then its argument prototype would still apply. */
39104char $ac_func ();
39105/* The GNU C library defines this for functions which it implements
39106 to always fail with ENOSYS. Some functions are actually named
39107 something starting with __ and the normal name is an alias. */
39108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39109choke me
39110#else
39111char (*f) () = $ac_func;
39112#endif
39113#ifdef __cplusplus
39114}
39115#endif
39116
39117int
39118main ()
39119{
39120return f != $ac_func;
39121 ;
39122 return 0;
39123}
39124_ACEOF
39125rm -f conftest.$ac_objext conftest$ac_exeext
39126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39127 (eval $ac_link) 2>conftest.er1
a848cd7e 39128 ac_status=$?
ac1cb8d3
VS
39129 grep -v '^ *+' conftest.er1 >conftest.err
39130 rm -f conftest.er1
39131 cat conftest.err >&5
a848cd7e
SC
39132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); } &&
89be85c2
VS
39134 { ac_try='test -z "$ac_c_werror_flag"
39135 || test ! -s conftest.err'
ac1cb8d3
VS
39136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39137 (eval $ac_try) 2>&5
39138 ac_status=$?
39139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140 (exit $ac_status); }; } &&
39141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143 (eval $ac_try) 2>&5
39144 ac_status=$?
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); }; }; then
39147 eval "$as_ac_var=yes"
39148else
39149 echo "$as_me: failed program was:" >&5
39150sed 's/^/| /' conftest.$ac_ext >&5
39151
39152eval "$as_ac_var=no"
39153fi
ac1cb8d3
VS
39154rm -f conftest.err conftest.$ac_objext \
39155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39156fi
39157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39159if test `eval echo '${'$as_ac_var'}'` = yes; then
39160 cat >>confdefs.h <<_ACEOF
39161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39162_ACEOF
39163 have_cos=1
39164fi
39165done
39166
39167
39168for ac_func in floor
39169do
39170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39171echo "$as_me:$LINENO: checking for $ac_func" >&5
39172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39173if eval "test \"\${$as_ac_var+set}\" = set"; then
39174 echo $ECHO_N "(cached) $ECHO_C" >&6
39175else
39176 cat >conftest.$ac_ext <<_ACEOF
39177/* confdefs.h. */
39178_ACEOF
39179cat confdefs.h >>conftest.$ac_ext
39180cat >>conftest.$ac_ext <<_ACEOF
39181/* end confdefs.h. */
ac1cb8d3
VS
39182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39184#define $ac_func innocuous_$ac_func
39185
a848cd7e
SC
39186/* System header to define __stub macros and hopefully few prototypes,
39187 which can conflict with char $ac_func (); below.
39188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39189 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39190
a848cd7e
SC
39191#ifdef __STDC__
39192# include <limits.h>
39193#else
39194# include <assert.h>
39195#endif
ac1cb8d3
VS
39196
39197#undef $ac_func
39198
a848cd7e
SC
39199/* Override any gcc2 internal prototype to avoid an error. */
39200#ifdef __cplusplus
39201extern "C"
39202{
39203#endif
39204/* We use char because int might match the return type of a gcc2
39205 builtin and then its argument prototype would still apply. */
39206char $ac_func ();
39207/* The GNU C library defines this for functions which it implements
39208 to always fail with ENOSYS. Some functions are actually named
39209 something starting with __ and the normal name is an alias. */
39210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39211choke me
39212#else
39213char (*f) () = $ac_func;
39214#endif
39215#ifdef __cplusplus
39216}
39217#endif
39218
39219int
39220main ()
39221{
39222return f != $ac_func;
39223 ;
39224 return 0;
39225}
39226_ACEOF
39227rm -f conftest.$ac_objext conftest$ac_exeext
39228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39229 (eval $ac_link) 2>conftest.er1
a848cd7e 39230 ac_status=$?
ac1cb8d3
VS
39231 grep -v '^ *+' conftest.er1 >conftest.err
39232 rm -f conftest.er1
39233 cat conftest.err >&5
a848cd7e
SC
39234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39235 (exit $ac_status); } &&
89be85c2
VS
39236 { ac_try='test -z "$ac_c_werror_flag"
39237 || test ! -s conftest.err'
ac1cb8d3
VS
39238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39239 (eval $ac_try) 2>&5
39240 ac_status=$?
39241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39242 (exit $ac_status); }; } &&
39243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39245 (eval $ac_try) 2>&5
39246 ac_status=$?
39247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248 (exit $ac_status); }; }; then
39249 eval "$as_ac_var=yes"
39250else
39251 echo "$as_me: failed program was:" >&5
39252sed 's/^/| /' conftest.$ac_ext >&5
39253
39254eval "$as_ac_var=no"
39255fi
ac1cb8d3
VS
39256rm -f conftest.err conftest.$ac_objext \
39257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39258fi
39259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39261if test `eval echo '${'$as_ac_var'}'` = yes; then
39262 cat >>confdefs.h <<_ACEOF
39263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39264_ACEOF
39265 have_floor=1
39266fi
39267done
39268
39269echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
39270echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
39271if test "$have_cos" = 1 -a "$have_floor" = 1; then
39272 echo "$as_me:$LINENO: result: yes" >&5
39273echo "${ECHO_T}yes" >&6
39274else
39275 echo "$as_me:$LINENO: result: no" >&5
39276echo "${ECHO_T}no" >&6
39277 LIBS="$LIBS -lm"
39278 # use different functions to avoid configure caching
39279 have_sin=0
39280 have_ceil=0
39281
39282for ac_func in sin
39283do
39284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39285echo "$as_me:$LINENO: checking for $ac_func" >&5
39286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39287if eval "test \"\${$as_ac_var+set}\" = set"; then
39288 echo $ECHO_N "(cached) $ECHO_C" >&6
39289else
39290 cat >conftest.$ac_ext <<_ACEOF
39291/* confdefs.h. */
39292_ACEOF
39293cat confdefs.h >>conftest.$ac_ext
39294cat >>conftest.$ac_ext <<_ACEOF
39295/* end confdefs.h. */
ac1cb8d3
VS
39296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39298#define $ac_func innocuous_$ac_func
39299
a848cd7e
SC
39300/* System header to define __stub macros and hopefully few prototypes,
39301 which can conflict with char $ac_func (); below.
39302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39303 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39304
a848cd7e
SC
39305#ifdef __STDC__
39306# include <limits.h>
39307#else
39308# include <assert.h>
39309#endif
ac1cb8d3
VS
39310
39311#undef $ac_func
39312
a848cd7e
SC
39313/* Override any gcc2 internal prototype to avoid an error. */
39314#ifdef __cplusplus
39315extern "C"
39316{
39317#endif
39318/* We use char because int might match the return type of a gcc2
39319 builtin and then its argument prototype would still apply. */
39320char $ac_func ();
39321/* The GNU C library defines this for functions which it implements
39322 to always fail with ENOSYS. Some functions are actually named
39323 something starting with __ and the normal name is an alias. */
39324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39325choke me
39326#else
39327char (*f) () = $ac_func;
39328#endif
39329#ifdef __cplusplus
39330}
39331#endif
39332
39333int
39334main ()
39335{
39336return f != $ac_func;
39337 ;
39338 return 0;
39339}
39340_ACEOF
39341rm -f conftest.$ac_objext conftest$ac_exeext
39342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39343 (eval $ac_link) 2>conftest.er1
a848cd7e 39344 ac_status=$?
ac1cb8d3
VS
39345 grep -v '^ *+' conftest.er1 >conftest.err
39346 rm -f conftest.er1
39347 cat conftest.err >&5
a848cd7e
SC
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); } &&
89be85c2
VS
39350 { ac_try='test -z "$ac_c_werror_flag"
39351 || test ! -s conftest.err'
ac1cb8d3
VS
39352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353 (eval $ac_try) 2>&5
39354 ac_status=$?
39355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356 (exit $ac_status); }; } &&
39357 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39359 (eval $ac_try) 2>&5
39360 ac_status=$?
39361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362 (exit $ac_status); }; }; then
39363 eval "$as_ac_var=yes"
39364else
39365 echo "$as_me: failed program was:" >&5
39366sed 's/^/| /' conftest.$ac_ext >&5
39367
39368eval "$as_ac_var=no"
39369fi
ac1cb8d3
VS
39370rm -f conftest.err conftest.$ac_objext \
39371 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39372fi
39373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39375if test `eval echo '${'$as_ac_var'}'` = yes; then
39376 cat >>confdefs.h <<_ACEOF
39377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39378_ACEOF
39379 have_sin=1
39380fi
39381done
39382
39383
39384for ac_func in ceil
39385do
39386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39387echo "$as_me:$LINENO: checking for $ac_func" >&5
39388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39389if eval "test \"\${$as_ac_var+set}\" = set"; then
39390 echo $ECHO_N "(cached) $ECHO_C" >&6
39391else
39392 cat >conftest.$ac_ext <<_ACEOF
39393/* confdefs.h. */
39394_ACEOF
39395cat confdefs.h >>conftest.$ac_ext
39396cat >>conftest.$ac_ext <<_ACEOF
39397/* end confdefs.h. */
ac1cb8d3
VS
39398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39400#define $ac_func innocuous_$ac_func
39401
a848cd7e
SC
39402/* System header to define __stub macros and hopefully few prototypes,
39403 which can conflict with char $ac_func (); below.
39404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39405 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39406
a848cd7e
SC
39407#ifdef __STDC__
39408# include <limits.h>
39409#else
39410# include <assert.h>
39411#endif
ac1cb8d3
VS
39412
39413#undef $ac_func
39414
a848cd7e
SC
39415/* Override any gcc2 internal prototype to avoid an error. */
39416#ifdef __cplusplus
39417extern "C"
39418{
39419#endif
39420/* We use char because int might match the return type of a gcc2
39421 builtin and then its argument prototype would still apply. */
39422char $ac_func ();
39423/* The GNU C library defines this for functions which it implements
39424 to always fail with ENOSYS. Some functions are actually named
39425 something starting with __ and the normal name is an alias. */
39426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39427choke me
39428#else
39429char (*f) () = $ac_func;
39430#endif
39431#ifdef __cplusplus
39432}
39433#endif
39434
39435int
39436main ()
39437{
39438return f != $ac_func;
39439 ;
39440 return 0;
39441}
39442_ACEOF
39443rm -f conftest.$ac_objext conftest$ac_exeext
39444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39445 (eval $ac_link) 2>conftest.er1
a848cd7e 39446 ac_status=$?
ac1cb8d3
VS
39447 grep -v '^ *+' conftest.er1 >conftest.err
39448 rm -f conftest.er1
39449 cat conftest.err >&5
a848cd7e
SC
39450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451 (exit $ac_status); } &&
89be85c2
VS
39452 { ac_try='test -z "$ac_c_werror_flag"
39453 || test ! -s conftest.err'
ac1cb8d3
VS
39454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39455 (eval $ac_try) 2>&5
39456 ac_status=$?
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); }; } &&
39459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39461 (eval $ac_try) 2>&5
39462 ac_status=$?
39463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464 (exit $ac_status); }; }; then
39465 eval "$as_ac_var=yes"
39466else
39467 echo "$as_me: failed program was:" >&5
39468sed 's/^/| /' conftest.$ac_ext >&5
39469
39470eval "$as_ac_var=no"
39471fi
ac1cb8d3
VS
39472rm -f conftest.err conftest.$ac_objext \
39473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39474fi
39475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39477if test `eval echo '${'$as_ac_var'}'` = yes; then
39478 cat >>confdefs.h <<_ACEOF
39479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39480_ACEOF
39481 have_ceil=1
39482fi
39483done
39484
39485 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
39486echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
39487 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
39488 echo "$as_me:$LINENO: result: yes" >&5
39489echo "${ECHO_T}yes" >&6
39490 else
39491 echo "$as_me:$LINENO: result: no" >&5
39492echo "${ECHO_T}no" >&6
39493 # not sure we should warn the user, crash, etc.
39494 fi
39495fi
39496
39497if test "$wxUSE_GUI" = "yes"; then
39498
39499
39500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
39501 drawing dynamic erase event exec font image \
39502 minimal propsize rotate shaped widgets render"
39503
39504 if test "$wxUSE_MONOLITHIC" != "yes"; then
39505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
39506 fi
39507else
39508 SAMPLES_SUBDIRS="console"
39509fi
39510
39511
ceec2216 39512INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
39513-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
39514
39515if test "$GXX" = yes ; then
5294a27e
VZ
39516 CWARNINGS="-Wall"
39517 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
39518 fi
39519
39520EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
39521
0c3c69fc 39522CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 39523CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 39524CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 39525
95986553
DE
39526if test "x$MWCC" = "xyes"; then
39527
39528 CC="$CC -cwd source -I-"
39529 CXX="$CXX -cwd source -I-"
39530fi
39531
a848cd7e 39532
0c3c69fc 39533LIBS=`echo $LIBS`
a848cd7e
SC
39534EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
39535EXTRALIBS_XML="$EXPAT_LINK"
39536EXTRALIBS_HTML="$MSPACK_LINK"
39537EXTRALIBS_ODBC="$ODBC_LINK"
39538if test "$wxUSE_GUI" = "yes"; then
2e350179 39539 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
39540fi
39541if test "$wxUSE_OPENGL" = "yes"; then
39542 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
39543fi
39544
39545LDFLAGS="$LDFLAGS $PROFILE"
39546
39547if test "$wxUSE_GTK" = 1; then
39548 WXCONFIG_INCLUDE=
39549else
39550 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
39551fi
39552
39553WXCONFIG_EXTRALIBS="$LIBS"
39554
39555if test "$wxUSE_REGEX" = "builtin" ; then
39556 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
39557fi
39558if test "$wxUSE_EXPAT" = "builtin" ; then
39559 wxconfig_3rdparty="$wxconfig_3rdparty expat"
39560fi
39561if test "$wxUSE_ODBC" = "builtin" ; then
39562 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39563fi
39564if test "$wxUSE_LIBTIFF" = "builtin" ; then
39565 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
39566fi
39567if test "$wxUSE_LIBJPEG" = "builtin" ; then
39568 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
39569fi
39570if test "$wxUSE_LIBPNG" = "builtin" ; then
39571 wxconfig_3rdparty="$wxconfig_3rdparty png"
39572fi
39573if test "$wxUSE_ZLIB" = "builtin" ; then
39574 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
39575fi
39576if test "$wxUSE_ODBC" = "builtin" ; then
39577 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
39578fi
39579
39580for i in $wxconfig_3rdparty ; do
ceec2216 39581 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
39582done
39583
39584
39585if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
39586 WXUNIV=1
39587else
39588 WXUNIV=0
39589fi
39590
39591
39592
39593
39594
39595
39596
39597
39598
39599if test $wxUSE_MONOLITHIC = "yes" ; then
39600 MONOLITHIC=1
39601else
39602 MONOLITHIC=0
39603fi
39604
39605if test $wxUSE_PLUGINS = "yes" ; then
39606 USE_PLUGINS=1
39607else
39608 USE_PLUGINS=0
39609fi
39610
39611if test $wxUSE_ODBC != "no" ; then
39612 USE_ODBC=1
39613else
39614 USE_ODBC=0
39615fi
39616
39617if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
39618 OFFICIAL_BUILD=1
39619else
39620 OFFICIAL_BUILD=0
39621fi
39622
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633
39634
39635
39636
39637
39638
39639
39640
ceec2216 39641
d1c38808 39642
a848cd7e
SC
39643
39644
39645TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
39646
39647
39648
39649
39650
39651
39652
39653
4d4ff94c
VZ
39654case "$TOOLKIT" in
39655 GTK)
39656 TOOLKIT_USER="GTK+"
39657 if test "$WXGTK20" = 1; then
39658 TOOLKIT_USER="$TOOLKIT_USER 2"
39659 fi
9a8f0513 39660 ;;
4d4ff94c
VZ
39661
39662 *)
39663 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 39664 ;;
4d4ff94c 39665esac
a848cd7e 39666
9a8f0513 39667
1e9e8aba
DE
39668
39669
a848cd7e
SC
39670 if test "x$BAKEFILE_HOST" = "x"; then
39671 BAKEFILE_HOST="${host}"
39672 fi
39673
39674 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
39675
39676 if test -n "$ac_tool_prefix"; then
39677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
39678set dummy ${ac_tool_prefix}ranlib; ac_word=$2
39679echo "$as_me:$LINENO: checking for $ac_word" >&5
39680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39681if test "${ac_cv_prog_RANLIB+set}" = set; then
39682 echo $ECHO_N "(cached) $ECHO_C" >&6
39683else
39684 if test -n "$RANLIB"; then
39685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
39686else
39687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39688for as_dir in $PATH
39689do
39690 IFS=$as_save_IFS
39691 test -z "$as_dir" && as_dir=.
39692 for ac_exec_ext in '' $ac_executable_extensions; do
39693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
39695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39696 break 2
39697 fi
39698done
39699done
39700
39701fi
39702fi
39703RANLIB=$ac_cv_prog_RANLIB
39704if test -n "$RANLIB"; then
39705 echo "$as_me:$LINENO: result: $RANLIB" >&5
39706echo "${ECHO_T}$RANLIB" >&6
39707else
39708 echo "$as_me:$LINENO: result: no" >&5
39709echo "${ECHO_T}no" >&6
39710fi
39711
39712fi
39713if test -z "$ac_cv_prog_RANLIB"; then
39714 ac_ct_RANLIB=$RANLIB
39715 # Extract the first word of "ranlib", so it can be a program name with args.
39716set dummy ranlib; ac_word=$2
39717echo "$as_me:$LINENO: checking for $ac_word" >&5
39718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
39720 echo $ECHO_N "(cached) $ECHO_C" >&6
39721else
39722 if test -n "$ac_ct_RANLIB"; then
39723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
39724else
39725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39726for as_dir in $PATH
39727do
39728 IFS=$as_save_IFS
39729 test -z "$as_dir" && as_dir=.
39730 for ac_exec_ext in '' $ac_executable_extensions; do
39731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39732 ac_cv_prog_ac_ct_RANLIB="ranlib"
39733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39734 break 2
39735 fi
39736done
39737done
39738
39739 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39740fi
39741fi
39742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39743if test -n "$ac_ct_RANLIB"; then
39744 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39745echo "${ECHO_T}$ac_ct_RANLIB" >&6
39746else
39747 echo "$as_me:$LINENO: result: no" >&5
39748echo "${ECHO_T}no" >&6
39749fi
39750
39751 RANLIB=$ac_ct_RANLIB
39752else
39753 RANLIB="$ac_cv_prog_RANLIB"
39754fi
39755
39756 # Find a good install program. We prefer a C program (faster),
39757# so one script is as good as another. But avoid the broken or
39758# incompatible versions:
39759# SysV /etc/install, /usr/sbin/install
39760# SunOS /usr/etc/install
39761# IRIX /sbin/install
39762# AIX /bin/install
39763# AmigaOS /C/install, which installs bootblocks on floppy discs
39764# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39765# AFS /usr/afsws/bin/install, which mishandles nonexistent args
39766# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 39767# OS/2's system install, which has a completely different semantic
a848cd7e
SC
39768# ./install, which can be erroneously created by make from ./install.sh.
39769echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39770echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39771if test -z "$INSTALL"; then
39772if test "${ac_cv_path_install+set}" = set; then
39773 echo $ECHO_N "(cached) $ECHO_C" >&6
39774else
39775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39776for as_dir in $PATH
39777do
39778 IFS=$as_save_IFS
39779 test -z "$as_dir" && as_dir=.
39780 # Account for people who put trailing slashes in PATH elements.
39781case $as_dir/ in
39782 ./ | .// | /cC/* | \
39783 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 39784 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39785 /usr/ucb/* ) ;;
39786 *)
39787 # OSF1 and SCO ODT 3.0 have their own names for install.
39788 # Don't use installbsd from OSF since it installs stuff as root
39789 # by default.
39790 for ac_prog in ginstall scoinst install; do
39791 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39792 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39793 if test $ac_prog = install &&
39794 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39795 # AIX install. It has an incompatible calling convention.
39796 :
39797 elif test $ac_prog = install &&
39798 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39799 # program-specific install script used by HP pwplus--don't use.
39800 :
39801 else
39802 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39803 break 3
39804 fi
39805 fi
a848cd7e
SC
39806 done
39807 done
39808 ;;
39809esac
39810done
39811
39812
39813fi
39814 if test "${ac_cv_path_install+set}" = set; then
39815 INSTALL=$ac_cv_path_install
39816 else
39817 # As a last resort, use the slow shell script. We don't cache a
39818 # path for INSTALL within a source directory, because that will
39819 # break other packages using the cache if that directory is
39820 # removed, or if the path is relative.
39821 INSTALL=$ac_install_sh
39822 fi
39823fi
39824echo "$as_me:$LINENO: result: $INSTALL" >&5
39825echo "${ECHO_T}$INSTALL" >&6
39826
39827# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39828# It thinks the first close brace ends the variable substitution.
39829test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39830
39831test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39832
39833test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39834
39835 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39836echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39837LN_S=$as_ln_s
39838if test "$LN_S" = "ln -s"; then
39839 echo "$as_me:$LINENO: result: yes" >&5
39840echo "${ECHO_T}yes" >&6
39841else
39842 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39843echo "${ECHO_T}no, using $LN_S" >&6
39844fi
39845
39846
39847 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39848echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39849set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39850if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39851 echo $ECHO_N "(cached) $ECHO_C" >&6
39852else
39853 cat >conftest.make <<\_ACEOF
39854all:
39855 @echo 'ac_maketemp="$(MAKE)"'
39856_ACEOF
39857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39858eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39859if test -n "$ac_maketemp"; then
39860 eval ac_cv_prog_make_${ac_make}_set=yes
39861else
39862 eval ac_cv_prog_make_${ac_make}_set=no
39863fi
39864rm -f conftest.make
39865fi
39866if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39867 echo "$as_me:$LINENO: result: yes" >&5
39868echo "${ECHO_T}yes" >&6
39869 SET_MAKE=
39870else
39871 echo "$as_me:$LINENO: result: no" >&5
39872echo "${ECHO_T}no" >&6
39873 SET_MAKE="MAKE=${MAKE-make}"
39874fi
39875
39876
39877
39878 if test -n "$ac_tool_prefix"; then
39879 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39880set dummy ${ac_tool_prefix}ar; ac_word=$2
39881echo "$as_me:$LINENO: checking for $ac_word" >&5
39882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39883if test "${ac_cv_prog_AR+set}" = set; then
39884 echo $ECHO_N "(cached) $ECHO_C" >&6
39885else
39886 if test -n "$AR"; then
39887 ac_cv_prog_AR="$AR" # Let the user override the test.
39888else
39889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39890for as_dir in $PATH
39891do
39892 IFS=$as_save_IFS
39893 test -z "$as_dir" && as_dir=.
39894 for ac_exec_ext in '' $ac_executable_extensions; do
39895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39896 ac_cv_prog_AR="${ac_tool_prefix}ar"
39897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39898 break 2
39899 fi
39900done
39901done
39902
39903fi
39904fi
39905AR=$ac_cv_prog_AR
39906if test -n "$AR"; then
39907 echo "$as_me:$LINENO: result: $AR" >&5
39908echo "${ECHO_T}$AR" >&6
39909else
39910 echo "$as_me:$LINENO: result: no" >&5
39911echo "${ECHO_T}no" >&6
39912fi
39913
39914fi
39915if test -z "$ac_cv_prog_AR"; then
39916 ac_ct_AR=$AR
39917 # Extract the first word of "ar", so it can be a program name with args.
39918set dummy ar; ac_word=$2
39919echo "$as_me:$LINENO: checking for $ac_word" >&5
39920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39921if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39922 echo $ECHO_N "(cached) $ECHO_C" >&6
39923else
39924 if test -n "$ac_ct_AR"; then
39925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39926else
39927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39928for as_dir in $PATH
39929do
39930 IFS=$as_save_IFS
39931 test -z "$as_dir" && as_dir=.
39932 for ac_exec_ext in '' $ac_executable_extensions; do
39933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39934 ac_cv_prog_ac_ct_AR="ar"
39935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39936 break 2
39937 fi
39938done
39939done
39940
39941 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39942fi
39943fi
39944ac_ct_AR=$ac_cv_prog_ac_ct_AR
39945if test -n "$ac_ct_AR"; then
39946 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39947echo "${ECHO_T}$ac_ct_AR" >&6
39948else
39949 echo "$as_me:$LINENO: result: no" >&5
39950echo "${ECHO_T}no" >&6
39951fi
39952
39953 AR=$ac_ct_AR
39954else
39955 AR="$ac_cv_prog_AR"
39956fi
39957
39958 if test -n "$ac_tool_prefix"; then
39959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39960set dummy ${ac_tool_prefix}strip; ac_word=$2
39961echo "$as_me:$LINENO: checking for $ac_word" >&5
39962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39963if test "${ac_cv_prog_STRIP+set}" = set; then
39964 echo $ECHO_N "(cached) $ECHO_C" >&6
39965else
39966 if test -n "$STRIP"; then
39967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39968else
39969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39970for as_dir in $PATH
39971do
39972 IFS=$as_save_IFS
39973 test -z "$as_dir" && as_dir=.
39974 for ac_exec_ext in '' $ac_executable_extensions; do
39975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39978 break 2
39979 fi
39980done
39981done
39982
39983fi
39984fi
39985STRIP=$ac_cv_prog_STRIP
39986if test -n "$STRIP"; then
39987 echo "$as_me:$LINENO: result: $STRIP" >&5
39988echo "${ECHO_T}$STRIP" >&6
39989else
39990 echo "$as_me:$LINENO: result: no" >&5
39991echo "${ECHO_T}no" >&6
39992fi
39993
39994fi
39995if test -z "$ac_cv_prog_STRIP"; then
39996 ac_ct_STRIP=$STRIP
39997 # Extract the first word of "strip", so it can be a program name with args.
39998set dummy strip; ac_word=$2
39999echo "$as_me:$LINENO: checking for $ac_word" >&5
40000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40001if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40002 echo $ECHO_N "(cached) $ECHO_C" >&6
40003else
40004 if test -n "$ac_ct_STRIP"; then
40005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40006else
40007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40008for as_dir in $PATH
40009do
40010 IFS=$as_save_IFS
40011 test -z "$as_dir" && as_dir=.
40012 for ac_exec_ext in '' $ac_executable_extensions; do
40013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40014 ac_cv_prog_ac_ct_STRIP="strip"
40015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40016 break 2
40017 fi
40018done
40019done
40020
40021 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40022fi
40023fi
40024ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40025if test -n "$ac_ct_STRIP"; then
40026 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40027echo "${ECHO_T}$ac_ct_STRIP" >&6
40028else
40029 echo "$as_me:$LINENO: result: no" >&5
40030echo "${ECHO_T}no" >&6
40031fi
40032
40033 STRIP=$ac_ct_STRIP
40034else
40035 STRIP="$ac_cv_prog_STRIP"
40036fi
40037
40038 if test -n "$ac_tool_prefix"; then
40039 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40040set dummy ${ac_tool_prefix}nm; ac_word=$2
40041echo "$as_me:$LINENO: checking for $ac_word" >&5
40042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40043if test "${ac_cv_prog_NM+set}" = set; then
40044 echo $ECHO_N "(cached) $ECHO_C" >&6
40045else
40046 if test -n "$NM"; then
40047 ac_cv_prog_NM="$NM" # Let the user override the test.
40048else
40049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40050for as_dir in $PATH
40051do
40052 IFS=$as_save_IFS
40053 test -z "$as_dir" && as_dir=.
40054 for ac_exec_ext in '' $ac_executable_extensions; do
40055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40056 ac_cv_prog_NM="${ac_tool_prefix}nm"
40057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40058 break 2
40059 fi
40060done
40061done
40062
40063fi
40064fi
40065NM=$ac_cv_prog_NM
40066if test -n "$NM"; then
40067 echo "$as_me:$LINENO: result: $NM" >&5
40068echo "${ECHO_T}$NM" >&6
40069else
40070 echo "$as_me:$LINENO: result: no" >&5
40071echo "${ECHO_T}no" >&6
40072fi
40073
40074fi
40075if test -z "$ac_cv_prog_NM"; then
40076 ac_ct_NM=$NM
40077 # Extract the first word of "nm", so it can be a program name with args.
40078set dummy nm; ac_word=$2
40079echo "$as_me:$LINENO: checking for $ac_word" >&5
40080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40081if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40082 echo $ECHO_N "(cached) $ECHO_C" >&6
40083else
40084 if test -n "$ac_ct_NM"; then
40085 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40086else
40087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40088for as_dir in $PATH
40089do
40090 IFS=$as_save_IFS
40091 test -z "$as_dir" && as_dir=.
40092 for ac_exec_ext in '' $ac_executable_extensions; do
40093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40094 ac_cv_prog_ac_ct_NM="nm"
40095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40096 break 2
40097 fi
40098done
40099done
40100
40101 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40102fi
40103fi
40104ac_ct_NM=$ac_cv_prog_ac_ct_NM
40105if test -n "$ac_ct_NM"; then
40106 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40107echo "${ECHO_T}$ac_ct_NM" >&6
40108else
40109 echo "$as_me:$LINENO: result: no" >&5
40110echo "${ECHO_T}no" >&6
40111fi
40112
40113 NM=$ac_ct_NM
40114else
40115 NM="$ac_cv_prog_NM"
40116fi
40117
40118
40119 case ${BAKEFILE_HOST} in
40120 *-hp-hpux* )
1e9e8aba 40121 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40122 ;;
40123 *) INSTALL_DIR="$INSTALL -d"
40124 ;;
40125 esac
40126
40127
40128 LDFLAGS_GUI=
40129 case ${BAKEFILE_HOST} in
40130 *-*-cygwin* | *-*-mingw32* )
40131 LDFLAGS_GUI="-mwindows"
40132 esac
40133
40134
40135 fi
40136
40137 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40138echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40139if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40140 echo $ECHO_N "(cached) $ECHO_C" >&6
40141else
40142
40143 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
40144 egrep -s GNU > /dev/null); then
40145 bakefile_cv_prog_makeisgnu="yes"
40146 else
40147 bakefile_cv_prog_makeisgnu="no"
40148 fi
40149
40150fi
40151echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
40152echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
40153
40154 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
40155 IF_GNU_MAKE=""
40156 else
40157 IF_GNU_MAKE="#"
40158 fi
40159
40160
40161
40162 PLATFORM_UNIX=0
40163 PLATFORM_WIN32=0
40164 PLATFORM_MSDOS=0
40165 PLATFORM_MAC=0
1e9e8aba 40166 PLATFORM_MACOS=0
a848cd7e
SC
40167 PLATFORM_MACOSX=0
40168 PLATFORM_OS2=0
1e9e8aba 40169 PLATFORM_BEOS=0
a848cd7e
SC
40170
40171 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
40172 case "${BAKEFILE_HOST}" in
40173 *-*-cygwin* | *-*-mingw32* )
40174 PLATFORM_WIN32=1
40175 ;;
40176 *-pc-msdosdjgpp )
40177 PLATFORM_MSDOS=1
40178 ;;
40179 *-pc-os2_emx | *-pc-os2-emx )
40180 PLATFORM_OS2=1
40181 ;;
40182 powerpc-*-darwin* )
40183 PLATFORM_MAC=1
40184 PLATFORM_MACOSX=1
40185 ;;
1e9e8aba
DE
40186 *-*-beos* )
40187 PLATFORM_BEOS=1
40188 ;;
40189 powerpc-apple-macos* )
40190 PLATFORM_MAC=1
40191 PLATFORM_MACOS=1
40192 ;;
a848cd7e
SC
40193 * )
40194 PLATFORM_UNIX=1
40195 ;;
40196 esac
40197 else
40198 case "$BAKEFILE_FORCE_PLATFORM" in
40199 win32 )
40200 PLATFORM_WIN32=1
40201 ;;
40202 msdos )
40203 PLATFORM_MSDOS=1
40204 ;;
40205 os2 )
40206 PLATFORM_OS2=1
40207 ;;
40208 darwin )
40209 PLATFORM_MAC=1
40210 PLATFORM_MACOSX=1
40211 ;;
40212 unix )
40213 PLATFORM_UNIX=1
40214 ;;
1e9e8aba
DE
40215 beos )
40216 PLATFORM_BEOS=1
40217 ;;
a848cd7e
SC
40218 * )
40219 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
40220echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
40221 { (exit 1); exit 1; }; }
40222 ;;
40223 esac
40224 fi
40225
40226
40227
40228
40229
40230
40231
40232
40233
1e9e8aba
DE
40234
40235
a848cd7e
SC
40236 # Check whether --enable-omf or --disable-omf was given.
40237if test "${enable_omf+set}" = set; then
40238 enableval="$enable_omf"
40239 bk_os2_use_omf="$enableval"
40240fi;
40241
40242 case "${BAKEFILE_HOST}" in
40243 *-*-darwin* )
40244 CFLAGS="$CFLAGS -fno-common"
40245 CXXFLAGS="$CXXFLAGS -fno-common"
40246 ;;
40247
40248 *-pc-os2_emx | *-pc-os2-emx )
40249 if test "x$bk_os2_use_omf" = "xyes" ; then
40250 AR=emxomfar
40251 RANLIB=:
40252 LDFLAGS="-Zomf $LDFLAGS"
40253 CFLAGS="-Zomf $CFLAGS"
40254 CXXFLAGS="-Zomf $CXXFLAGS"
40255 OS2_LIBEXT="lib"
40256 else
40257 OS2_LIBEXT="a"
40258 fi
40259 ;;
1e9e8aba
DE
40260
40261 i*86-*-beos* )
40262 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
40263 ;;
a848cd7e
SC
40264 esac
40265
40266
40267 SO_SUFFIX="so"
40268 SO_SUFFIX_MODULE="so"
40269 EXEEXT=""
40270 LIBPREFIX="lib"
40271 LIBEXT=".a"
40272 DLLPREFIX="lib"
40273 DLLPREFIX_MODULE=""
40274 DLLIMP_SUFFIX=""
40275
40276 case "${BAKEFILE_HOST}" in
40277 *-hp-hpux* )
40278 SO_SUFFIX="sl"
40279 SO_SUFFIX_MODULE="sl"
40280 ;;
40281 *-*-aix* )
40282 SO_SUFFIX="a"
40283 SO_SUFFIX_MODULE="a"
40284 ;;
40285 *-*-cygwin* | *-*-mingw32* )
40286 SO_SUFFIX="dll"
40287 SO_SUFFIX_MODULE="dll"
40288 DLLIMP_SUFFIX="dll.a"
40289 EXEEXT=".exe"
40290 DLLPREFIX=""
40291 ;;
40292 *-pc-msdosdjgpp )
40293 EXEEXT=".exe"
40294 DLLPREFIX=""
40295 ;;
40296 *-pc-os2_emx | *-pc-os2-emx )
40297 SO_SUFFIX="dll"
40298 SO_SUFFIX_MODULE="dll"
40299 DLLIMP_SUFFIX=$OS2_LIBEXT
40300 EXEEXT=".exe"
40301 DLLPREFIX=""
40302 LIBPREFIX=""
40303 LIBEXT=".$OS2_LIBEXT"
40304 ;;
40305 powerpc-*-darwin* )
40306 SO_SUFFIX="dylib"
40307 SO_SUFFIX_MODULE="bundle"
40308 ;;
40309 esac
40310
40311 if test "x$DLLIMP_SUFFIX" = "x" ; then
40312 DLLIMP_SUFFIX="$SO_SUFFIX"
40313 fi
40314
40315
40316
40317
40318
40319
40320
40321
40322
40323
40324
1e9e8aba
DE
40325 PIC_FLAG=""
40326 if test "x$GCC" = "xyes"; then
a848cd7e
SC
40327 PIC_FLAG="-fPIC"
40328 fi
40329
1e9e8aba
DE
40330 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
40331 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
40332
a848cd7e
SC
40333 case "${BAKEFILE_HOST}" in
40334 *-hp-hpux* )
1e9e8aba 40335 if test "x$GCC" != "xyes"; then
a848cd7e
SC
40336 LDFLAGS="$LDFLAGS -L/usr/lib"
40337
40338 SHARED_LD_CC="${CC} -b -o"
40339 SHARED_LD_CXX="${CXX} -b -o"
40340 PIC_FLAG="+Z"
40341 fi
40342 ;;
40343
40344 *-*-linux* )
40345 if test "x$GCC" != "xyes"; then
40346 echo "$as_me:$LINENO: checking for Intel compiler" >&5
40347echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
40348if test "${bakefile_cv_prog_icc+set}" = set; then
40349 echo $ECHO_N "(cached) $ECHO_C" >&6
40350else
40351
40352 cat >conftest.$ac_ext <<_ACEOF
40353/* confdefs.h. */
40354_ACEOF
40355cat confdefs.h >>conftest.$ac_ext
40356cat >>conftest.$ac_ext <<_ACEOF
40357/* end confdefs.h. */
40358
40359int
40360main ()
40361{
40362
40363 #ifndef __INTEL_COMPILER
40364 #error Not icc
40365 #endif
40366
40367 ;
40368 return 0;
40369}
40370_ACEOF
40371rm -f conftest.$ac_objext
40372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40373 (eval $ac_compile) 2>conftest.er1
a848cd7e 40374 ac_status=$?
ac1cb8d3
VS
40375 grep -v '^ *+' conftest.er1 >conftest.err
40376 rm -f conftest.er1
40377 cat conftest.err >&5
a848cd7e
SC
40378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40379 (exit $ac_status); } &&
89be85c2
VS
40380 { ac_try='test -z "$ac_c_werror_flag"
40381 || test ! -s conftest.err'
ac1cb8d3
VS
40382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40383 (eval $ac_try) 2>&5
40384 ac_status=$?
40385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40386 (exit $ac_status); }; } &&
40387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40389 (eval $ac_try) 2>&5
40390 ac_status=$?
40391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40392 (exit $ac_status); }; }; then
40393 bakefile_cv_prog_icc=yes
40394else
40395 echo "$as_me: failed program was:" >&5
40396sed 's/^/| /' conftest.$ac_ext >&5
40397
40398bakefile_cv_prog_icc=no
40399
40400fi
ac1cb8d3 40401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40402
40403fi
40404echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
40405echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
40406 if test "$bakefile_cv_prog_icc" = "yes"; then
40407 PIC_FLAG="-KPIC"
40408 fi
40409 fi
40410 ;;
40411
40412 *-*-solaris2* )
40413 if test "x$GCC" != xyes ; then
40414 SHARED_LD_CC="${CC} -G -o"
40415 SHARED_LD_CXX="${CXX} -G -o"
40416 PIC_FLAG="-KPIC"
40417 fi
40418 ;;
40419
40420 *-*-darwin* )
40421
40422 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
40423echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
40424if test "${wx_cv_gcc31+set}" = set; then
40425 echo $ECHO_N "(cached) $ECHO_C" >&6
40426else
40427
40428 cat >conftest.$ac_ext <<_ACEOF
40429/* confdefs.h. */
40430_ACEOF
40431cat confdefs.h >>conftest.$ac_ext
40432cat >>conftest.$ac_ext <<_ACEOF
40433/* end confdefs.h. */
40434
40435int
40436main ()
40437{
40438
40439 #if (__GNUC__ < 3) || \
40440 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
40441 #error old gcc
40442 #endif
40443
40444 ;
40445 return 0;
40446}
40447_ACEOF
40448rm -f conftest.$ac_objext
40449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40450 (eval $ac_compile) 2>conftest.er1
a848cd7e 40451 ac_status=$?
ac1cb8d3
VS
40452 grep -v '^ *+' conftest.er1 >conftest.err
40453 rm -f conftest.er1
40454 cat conftest.err >&5
a848cd7e
SC
40455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40456 (exit $ac_status); } &&
89be85c2
VS
40457 { ac_try='test -z "$ac_c_werror_flag"
40458 || test ! -s conftest.err'
ac1cb8d3
VS
40459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40460 (eval $ac_try) 2>&5
40461 ac_status=$?
40462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463 (exit $ac_status); }; } &&
40464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40466 (eval $ac_try) 2>&5
40467 ac_status=$?
40468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40469 (exit $ac_status); }; }; then
40470
40471 wx_cv_gcc31=yes
40472
40473else
40474 echo "$as_me: failed program was:" >&5
40475sed 's/^/| /' conftest.$ac_ext >&5
40476
40477
40478 wx_cv_gcc31=no
40479
40480
40481fi
ac1cb8d3 40482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40483
40484fi
40485echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
40486echo "${ECHO_T}$wx_cv_gcc31" >&6
40487 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
40488
40489D='$'
40490cat <<EOF >shared-ld-sh
a848cd7e
SC
40491#!/bin/sh
40492#-----------------------------------------------------------------------------
40493#-- Name: distrib/mac/shared-ld-sh
40494#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
40495#-- Author: Gilles Depeyrot
40496#-- Copyright: (c) 2002 Gilles Depeyrot
40497#-- Licence: any use permitted
40498#-----------------------------------------------------------------------------
40499
40500verbose=0
40501args=""
40502objects=""
40503linking_flag="-dynamiclib"
40504
473276a9
VS
40505while test ${D}# -gt 0; do
40506 case ${D}1 in
a848cd7e
SC
40507
40508 -v)
40509 verbose=1
40510 ;;
40511
40512 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
40513 # collect these options and values
473276a9 40514 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
40515 shift
40516 ;;
40517
40518 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
40519 # collect these options
473276a9 40520 args="${D}{args} ${D}1"
a848cd7e
SC
40521 ;;
40522
40523 -dynamiclib|-bundle)
473276a9 40524 linking_flag="${D}1"
a848cd7e
SC
40525 ;;
40526
40527 -*)
473276a9 40528 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
40529 exit 1
40530 ;;
40531
40532 *.o | *.a | *.dylib)
40533 # collect object files
473276a9 40534 objects="${D}{objects} ${D}1"
a848cd7e
SC
40535 ;;
40536
40537 *)
473276a9 40538 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
40539 exit 1
40540 ;;
40541
40542 esac
40543 shift
40544done
40545
40546#
40547# Link one module containing all the others
40548#
473276a9
VS
40549if test ${D}{verbose} = 1; then
40550 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 40551fi
473276a9
VS
40552c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
40553status=${D}?
40554if test ${D}{status} != 0; then
40555 exit ${D}{status}
a848cd7e
SC
40556fi
40557
40558#
40559# Link the shared library from the single module created
40560#
473276a9
VS
40561if test ${D}{verbose} = 1; then
40562 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 40563fi
473276a9
VS
40564c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
40565status=${D}?
40566if test ${D}{status} != 0; then
40567 exit ${D}{status}
a848cd7e
SC
40568fi
40569
40570#
40571# Remove intermediate module
40572#
473276a9 40573rm -f master.${D}${D}.o
a848cd7e
SC
40574
40575exit 0
40576EOF
473276a9 40577
a848cd7e
SC
40578 chmod +x shared-ld-sh
40579
40580 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
40581 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
40582 SHARED_LD_CXX="$SHARED_LD_CC"
40583 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
40584 else
40585 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
40586 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
40587 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
40588 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
40589 fi
40590
40591 PIC_FLAG="-dynamic -fPIC"
40592 ;;
40593
40594 *-*-aix* )
40595 if test "x$GCC" != "xyes"; then
40596 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
40597set dummy makeC++SharedLib; ac_word=$2
40598echo "$as_me:$LINENO: checking for $ac_word" >&5
40599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40600if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
40601 echo $ECHO_N "(cached) $ECHO_C" >&6
40602else
40603 if test -n "$AIX_CXX_LD"; then
40604 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
40605else
40606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40607for as_dir in $PATH
40608do
40609 IFS=$as_save_IFS
40610 test -z "$as_dir" && as_dir=.
40611 for ac_exec_ext in '' $ac_executable_extensions; do
40612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40613 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
40614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40615 break 2
40616 fi
40617done
40618done
40619
40620 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
40621fi
40622fi
40623AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
40624if test -n "$AIX_CXX_LD"; then
40625 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
40626echo "${ECHO_T}$AIX_CXX_LD" >&6
40627else
40628 echo "$as_me:$LINENO: result: no" >&5
40629echo "${ECHO_T}no" >&6
40630fi
40631
40632 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
40633 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
40634 fi
40635 ;;
40636
40637 *-*-beos* )
1e9e8aba
DE
40638 SHARED_LD_CC="${LD} -nostart -o"
40639 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
40640 ;;
40641
40642 *-*-irix* )
40643 if test "x$GCC" != "xyes"; then
40644 PIC_FLAG="-KPIC"
40645 fi
40646 ;;
40647
40648 *-*-cygwin* | *-*-mingw32* )
40649 PIC_FLAG=""
1e9e8aba
DE
40650 SHARED_LD_CC="\$(CC) -shared -o"
40651 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
40652 ;;
40653
40654 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
40655 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
40656 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 40657 PIC_FLAG=""
473276a9
VS
40658
40659D='$'
40660cat <<EOF >dllar.sh
40661#!/bin/sh
40662#
40663# dllar - a tool to build both a .dll and an .a file
40664# from a set of object (.o) files for EMX/OS2.
40665#
40666# Written by Andrew Zabolotny, bit@freya.etu.ru
40667# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
40668#
40669# This script will accept a set of files on the command line.
40670# All the public symbols from the .o files will be exported into
40671# a .DEF file, then linker will be run (through gcc) against them to
40672# build a shared library consisting of all given .o files. All libraries
40673# (.a) will be first decompressed into component .o files then act as
40674# described above. You can optionally give a description (-d "description")
40675# which will be put into .DLL. To see the list of accepted options (as well
40676# as command-line format) simply run this program without options. The .DLL
40677# is built to be imported by name (there is no guarantee that new versions
40678# of the library you build will have same ordinals for same symbols).
40679#
40680# dllar is free software; you can redistribute it and/or modify
40681# it under the terms of the GNU General Public License as published by
40682# the Free Software Foundation; either version 2, or (at your option)
40683# any later version.
40684#
40685# dllar is distributed in the hope that it will be useful,
40686# but WITHOUT ANY WARRANTY; without even the implied warranty of
40687# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40688# GNU General Public License for more details.
40689#
40690# You should have received a copy of the GNU General Public License
40691# along with dllar; see the file COPYING. If not, write to the Free
40692# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
40693# 02111-1307, USA.
40694
40695# To successfuly run this program you will need:
40696# - Current drive should have LFN support (HPFS, ext2, network, etc)
40697# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
40698# - gcc
40699# (used to build the .dll)
40700# - emxexp
40701# (used to create .def file from .o files)
40702# - emximp
40703# (used to create .a file from .def file)
40704# - GNU text utilites (cat, sort, uniq)
40705# used to process emxexp output
40706# - GNU file utilities (mv, rm)
40707# - GNU sed
40708# - lxlite (optional, see flag below)
40709# (used for general .dll cleanup)
40710#
40711
40712flag_USE_LXLITE=1;
40713
40714#
40715# helper functions
40716# basnam, variant of basename, which does _not_ remove the path, _iff_
40717# second argument (suffix to remove) is given
40718basnam(){
40719 case ${D}# in
40720 1)
1e9e8aba 40721 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
40722 ;;
40723 2)
40724 echo ${D}1 | sed 's/'${D}2'${D}//'
40725 ;;
40726 *)
40727 echo "error in basnam ${D}*"
40728 exit 8
40729 ;;
40730 esac
40731}
40732
40733# Cleanup temporary files and output
40734CleanUp() {
40735 cd ${D}curDir
40736 for i in ${D}inputFiles ; do
40737 case ${D}i in
40738 *!)
40739 rm -rf \`basnam ${D}i !\`
40740 ;;
40741 *)
40742 ;;
40743 esac
40744 done
40745
40746 # Kill result in case of failure as there is just to many stupid make/nmake
40747 # things out there which doesn't do this.
1e9e8aba 40748 if [ ${D}# -eq 0 ]; then
473276a9
VS
40749 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
40750 fi
40751}
40752
40753# Print usage and exit script with rc=1.
40754PrintHelp() {
b1d22ded
DE
40755 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
40756 echo ' [-name-mangler-script script.sh]'
40757 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
40758 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
40759 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 40760 echo ' [*.o] [*.a]'
473276a9
VS
40761 echo '*> "output_file" should have no extension.'
40762 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
40763 echo ' The import library name is derived from this and is set to "name".a,'
40764 echo ' unless overridden by -import'
40765 echo '*> "importlib_name" should have no extension.'
40766 echo ' If it has the .o, or .a extension, it is automatically removed.'
40767 echo ' This name is used as the import library name and may be longer and'
40768 echo ' more descriptive than the DLL name which has to follow the old '
40769 echo ' 8.3 convention of FAT.'
b1d22ded
DE
40770 echo '*> "script.sh may be given to override the output_file name by a'
40771 echo ' different name. It is mainly useful if the regular make process'
40772 echo ' of some package does not take into account OS/2 restriction of'
40773 echo ' DLL name lengths. It takes the importlib name as input and is'
40774 echo ' supposed to procude a shorter name as output. The script should'
40775 echo ' expect to get importlib_name without extension and should produce'
40776 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
40777 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
40778 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40779 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
40780 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
40781 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
40782 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40783 echo ' If the last character of a symbol is "*", all symbols beginning'
40784 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 40785 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 40786 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 40787 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 40788 echo ' C runtime DLLs.'
b1d22ded 40789 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
40790 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40791 echo ' unchanged to GCC at the end of command line.'
40792 echo '*> If you create a DLL from a library and you do not specify -o,'
40793 echo ' the basename for DLL and import library will be set to library name,'
40794 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40795 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40796 echo ' library will be renamed into gcc_s.a.'
40797 echo '--------'
40798 echo 'Example:'
40799 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40800 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40801 CleanUp
40802 exit 1
40803}
40804
40805# Execute a command.
40806# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40807# @Uses Whatever CleanUp() uses.
40808doCommand() {
40809 echo "${D}*"
40810 eval ${D}*
40811 rcCmd=${D}?
40812
1e9e8aba 40813 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
40814 echo "command failed, exit code="${D}rcCmd
40815 CleanUp
40816 exit ${D}rcCmd
40817 fi
40818}
40819
40820# main routine
40821# setup globals
40822cmdLine=${D}*
40823outFile=""
40824outimpFile=""
40825inputFiles=""
b1d22ded 40826renameScript=""
473276a9
VS
40827description=""
40828CC=gcc.exe
40829CFLAGS="-s -Zcrtdll"
40830EXTRA_CFLAGS=""
40831EXPORT_BY_ORDINALS=0
40832exclude_symbols=""
40833library_flags=""
40834curDir=\`pwd\`
40835curDirS=curDir
40836case ${D}curDirS in
40837*/)
40838 ;;
40839*)
40840 curDirS=${D}{curDirS}"/"
40841 ;;
40842esac
40843# Parse commandline
40844libsToLink=0
b1d22ded 40845omfLinking=0
1e9e8aba 40846while [ ${D}1 ]; do
473276a9
VS
40847 case ${D}1 in
40848 -ord*)
40849 EXPORT_BY_ORDINALS=1;
40850 ;;
40851 -o*)
40852 shift
40853 outFile=${D}1
40854 ;;
40855 -i*)
40856 shift
40857 outimpFile=${D}1
40858 ;;
b1d22ded
DE
40859 -name-mangler-script)
40860 shift
40861 renameScript=${D}1
40862 ;;
473276a9
VS
40863 -d*)
40864 shift
40865 description=${D}1
40866 ;;
40867 -f*)
40868 shift
40869 CFLAGS=${D}1
40870 ;;
40871 -c*)
40872 shift
40873 CC=${D}1
40874 ;;
40875 -h*)
40876 PrintHelp
40877 ;;
40878 -ex*)
40879 shift
40880 exclude_symbols=${D}{exclude_symbols}${D}1" "
40881 ;;
40882 -libf*)
40883 shift
40884 library_flags=${D}{library_flags}${D}1" "
40885 ;;
40886 -nocrt*)
40887 CFLAGS="-s"
40888 ;;
40889 -nolxl*)
40890 flag_USE_LXLITE=0
40891 ;;
40892 -* | /*)
40893 case ${D}1 in
40894 -L* | -l*)
40895 libsToLink=1
40896 ;;
b1d22ded
DE
40897 -Zomf)
40898 omfLinking=1
40899 ;;
473276a9
VS
40900 *)
40901 ;;
40902 esac
40903 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40904 ;;
b1d22ded
DE
40905 *.dll)
40906 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40907 if [ ${D}omfLinking -eq 1 ]; then
40908 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40909 else
40910 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40911 fi
40912 ;;
473276a9
VS
40913 *)
40914 found=0;
1e9e8aba 40915 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
40916 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40917 else
40918 for file in ${D}1 ; do
1e9e8aba 40919 if [ -f ${D}file ]; then
473276a9
VS
40920 inputFiles="${D}{inputFiles} ${D}file"
40921 found=1
40922 fi
40923 done
1e9e8aba 40924 if [ ${D}found -eq 0 ]; then
473276a9
VS
40925 echo "ERROR: No file(s) found: "${D}1
40926 exit 8
40927 fi
40928 fi
40929 ;;
40930 esac
40931 shift
40932done # iterate cmdline words
40933
40934#
1e9e8aba 40935if [ -z "${D}inputFiles" ]; then
473276a9
VS
40936 echo "dllar: no input files"
40937 PrintHelp
40938fi
40939
40940# Now extract all .o files from .a files
40941newInputFiles=""
40942for file in ${D}inputFiles ; do
40943 case ${D}file in
40944 *.a | *.lib)
40945 case ${D}file in
40946 *.a)
40947 suffix=".a"
40948 AR="ar"
40949 ;;
40950 *.lib)
40951 suffix=".lib"
40952 AR="emxomfar"
40953 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40954 ;;
40955 *)
40956 ;;
40957 esac
40958 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40959 mkdir ${D}dirname
1e9e8aba 40960 if [ ${D}? -ne 0 ]; then
473276a9
VS
40961 echo "Failed to create subdirectory ./${D}dirname"
40962 CleanUp
40963 exit 8;
40964 fi
40965 # Append '!' to indicate archive
40966 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40967 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40968 cd ${D}curDir
40969 found=0;
40970 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40971 if [ -f ${D}subfile ]; then
473276a9 40972 found=1
1e9e8aba 40973 if [ -s ${D}subfile ]; then
473276a9
VS
40974 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40975 newInputFiles="${D}newInputFiles ${D}subfile"
40976 fi
40977 fi
40978 done
1e9e8aba
DE
40979 if [ ${D}found -eq 0 ]; then
40980 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40981 fi
40982 ;;
40983 *)
40984 newInputFiles="${D}{newInputFiles} ${D}file"
40985 ;;
40986 esac
40987done
40988inputFiles="${D}newInputFiles"
40989
40990# Output filename(s).
40991do_backup=0;
1e9e8aba 40992if [ -z ${D}outFile ]; then
473276a9
VS
40993 do_backup=1;
40994 set outFile ${D}inputFiles; outFile=${D}2
40995fi
40996
40997# If it is an archive, remove the '!' and the '_%' suffixes
40998case ${D}outFile in
40999*_%!)
41000 outFile=\`basnam ${D}outFile _%!\`
41001 ;;
41002*)
41003 ;;
41004esac
41005case ${D}outFile in
41006*.dll)
41007 outFile=\`basnam ${D}outFile .dll\`
41008 ;;
41009*.DLL)
41010 outFile=\`basnam ${D}outFile .DLL\`
41011 ;;
41012*.o)
41013 outFile=\`basnam ${D}outFile .o\`
41014 ;;
41015*.obj)
41016 outFile=\`basnam ${D}outFile .obj\`
41017 ;;
41018*.a)
41019 outFile=\`basnam ${D}outFile .a\`
41020 ;;
41021*.lib)
41022 outFile=\`basnam ${D}outFile .lib\`
41023 ;;
41024*)
41025 ;;
41026esac
41027case ${D}outimpFile in
41028*.a)
41029 outimpFile=\`basnam ${D}outimpFile .a\`
41030 ;;
41031*.lib)
41032 outimpFile=\`basnam ${D}outimpFile .lib\`
41033 ;;
41034*)
41035 ;;
41036esac
1e9e8aba 41037if [ -z ${D}outimpFile ]; then
473276a9
VS
41038 outimpFile=${D}outFile
41039fi
41040defFile="${D}{outFile}.def"
41041arcFile="${D}{outimpFile}.a"
41042arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41043
41044#create ${D}dllFile as something matching 8.3 restrictions,
41045if [ -z ${D}renameScript ] ; then
41046 dllFile="${D}outFile"
41047else
41048 dllFile=\`${D}renameScript ${D}outimpFile\`
41049fi
473276a9 41050
1e9e8aba
DE
41051if [ ${D}do_backup -ne 0 ] ; then
41052 if [ -f ${D}arcFile ] ; then
473276a9
VS
41053 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41054 fi
1e9e8aba 41055 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41056 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41057 fi
41058fi
41059
41060# Extract public symbols from all the object files.
41061tmpdefFile=${D}{defFile}_%
41062rm -f ${D}tmpdefFile
41063for file in ${D}inputFiles ; do
41064 case ${D}file in
41065 *!)
41066 ;;
41067 *)
41068 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41069 ;;
41070 esac
41071done
41072
41073# Create the def file.
41074rm -f ${D}defFile
41075echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41076dllFile="${D}{dllFile}.dll"
41077if [ ! -z ${D}description ]; then
1e9e8aba 41078 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41079fi
41080echo "EXPORTS" >> ${D}defFile
41081
41082doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41083grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41084
41085# Checks if the export is ok or not.
41086for word in ${D}exclude_symbols; do
41087 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41088 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41089done
41090
41091
1e9e8aba
DE
41092if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41093 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41094 sed '
41095 N
41096 : loop
1e9e8aba 41097 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41098 t loop
41099 ' > ${D}{tmpdefFile}%
41100 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41101else
41102 rm -f ${D}{tmpdefFile}%
41103fi
41104cat ${D}tmpdefFile >> ${D}defFile
41105rm -f ${D}tmpdefFile
41106
41107# Do linking, create implib, and apply lxlite.
41108gccCmdl="";
41109for file in ${D}inputFiles ; do
41110 case ${D}file in
41111 *!)
41112 ;;
41113 *)
41114 gccCmdl="${D}gccCmdl ${D}file"
41115 ;;
41116 esac
41117done
41118doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41119touch "${D}{outFile}.dll"
41120
41121doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41122if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41123 add_flags="";
1e9e8aba 41124 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41125 add_flags="-ynd"
41126 fi
41127 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41128fi
41129doCommand "emxomf -s -l ${D}arcFile"
41130
41131# Successful exit.
41132CleanUp 1
41133exit 0
41134EOF
41135
41136 chmod +x dllar.sh
a848cd7e
SC
41137 ;;
41138
1e9e8aba 41139 powerpc-apple-macos* | \
a848cd7e
SC
41140 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41141 *-*-sunos4* | \
41142 *-*-osf* | \
41143 *-*-dgux5* | \
41144 *-*-sysv5* )
41145 ;;
41146
41147 *)
41148 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
41149echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
41150 { (exit 1); exit 1; }; }
41151 esac
41152
2057db16
VS
41153 if test "x$PIC_FLAG" != "x" ; then
41154 PIC_FLAG="$PIC_FLAG -DPIC"
41155 fi
41156
a848cd7e
SC
41157 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
41158 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
41159 fi
41160 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
41161 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
41162 fi
41163
41164
41165
41166
41167
41168
41169
41170
41171 USE_SOVERSION=0
41172 USE_SOVERLINUX=0
41173 USE_SOVERSOLARIS=0
41174 USE_SOSYMLINKS=0
41175 USE_MACVERSION=0
41176 SONAME_FLAG=
41177
41178 case "${BAKEFILE_HOST}" in
b1d22ded 41179 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
41180 SONAME_FLAG="-Wl,-soname,"
41181 USE_SOVERSION=1
41182 USE_SOVERLINUX=1
41183 USE_SOSYMLINKS=1
41184 ;;
41185
a848cd7e
SC
41186 *-*-solaris2* )
41187 SONAME_FLAG="-h "
41188 USE_SOVERSION=1
41189 USE_SOVERSOLARIS=1
41190 USE_SOSYMLINKS=1
41191 ;;
41192
41193 *-*-darwin* )
41194 USE_MACVERSION=1
41195 USE_SOVERSION=1
41196 USE_SOSYMLINKS=1
41197 ;;
41198 esac
41199
41200
41201
41202
41203
41204
41205
41206
41207
41208 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
41209echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
41210 DEPS_TRACKING=0
41211
41212 if test "x$GCC" = "xyes"; then
41213 DEPSMODE=gcc
41214 DEPS_TRACKING=1
41215 case "${BAKEFILE_HOST}" in
41216 powerpc-*-darwin* )
41217 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
41218 ;;
41219 * )
41220 DEPSFLAG_GCC="-MMD"
41221 ;;
41222 esac
41223 echo "$as_me:$LINENO: result: gcc" >&5
41224echo "${ECHO_T}gcc" >&6
b1d22ded 41225 elif test "x$MWCC" = "xyes"; then
81f90336 41226 DEPSMODE=mwcc
b1d22ded 41227 DEPS_TRACKING=1
81f90336 41228 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
41229 echo "$as_me:$LINENO: result: mwcc" >&5
41230echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
41231 else
41232 echo "$as_me:$LINENO: result: none" >&5
41233echo "${ECHO_T}none" >&6
41234 fi
41235
41236 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
41237
41238D='$'
41239cat <<EOF >bk-deps
a848cd7e
SC
41240#!/bin/sh
41241
41242# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41243# script. It is used to track C/C++ files dependencies in portable way.
41244#
41245# Permission is given to use this file in any way.
41246
473276a9 41247DEPSMODE=${DEPSMODE}
a848cd7e 41248DEPSDIR=.deps
473276a9 41249DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 41250DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 41251
473276a9 41252mkdir -p ${D}DEPSDIR
a848cd7e 41253
473276a9
VS
41254if test ${D}DEPSMODE = gcc ; then
41255 ${D}* ${D}{DEPSFLAG_GCC}
41256 status=${D}?
41257 if test ${D}{status} != 0 ; then
41258 exit ${D}{status}
a848cd7e
SC
41259 fi
41260 # move created file to the location we want it in:
473276a9
VS
41261 while test ${D}# -gt 0; do
41262 case "${D}1" in
a848cd7e
SC
41263 -o )
41264 shift
473276a9 41265 objfile=${D}1
a848cd7e
SC
41266 ;;
41267 -* )
41268 ;;
41269 * )
473276a9 41270 srcfile=${D}1
a848cd7e
SC
41271 ;;
41272 esac
41273 shift
41274 done
1e9e8aba
DE
41275 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
41276 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
41277 if test -f ${D}depfile ; then
41278 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41279 rm -f ${D}depfile
a848cd7e 41280 else
1e9e8aba 41281 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
41282 if test -f ${D}depfile ; then
41283 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
41284 rm -f ${D}depfile
a848cd7e
SC
41285 fi
41286 fi
41287 exit 0
81f90336
MW
41288elif test ${D}DEPSMODE = mwcc ; then
41289 ${D}*
41290 status=${D}?
41291 if test ${D}{status} != 0 ; then
41292 exit ${D}{status}
41293 fi
41294 # Run mwcc again with -MM and redirect into the dep file we want
41295 # NOTE: We can't use shift here because we need ${D}* to be valid
41296 prevarg=
41297 for arg in ${D}* ; do
41298 if test "${D}prevarg" = "-o"; then
41299 objfile=${D}arg
41300 else
41301 case "${D}arg" in
41302 -* )
41303 ;;
41304 * )
41305 srcfile=${D}arg
41306 ;;
41307 esac
41308 fi
41309 prevarg="${D}arg"
41310 done
41311 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
41312 exit 0
a848cd7e 41313else
473276a9
VS
41314 ${D}*
41315 exit ${D}?
a848cd7e
SC
41316fi
41317EOF
473276a9 41318
a848cd7e
SC
41319 chmod +x bk-deps
41320 fi
41321
41322
41323
41324
41325 RESCOMP=
41326 SETFILE=
41327
41328 case ${BAKEFILE_HOST} in
41329 *-*-cygwin* | *-*-mingw32* )
41330 if test "$build" != "$host" ; then
41331 RESCOMP=$host_alias-windres
41332 else
41333 # Extract the first word of "windres", so it can be a program name with args.
41334set dummy windres; ac_word=$2
41335echo "$as_me:$LINENO: checking for $ac_word" >&5
41336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41337if test "${ac_cv_prog_RESCOMP+set}" = set; then
41338 echo $ECHO_N "(cached) $ECHO_C" >&6
41339else
41340 if test -n "$RESCOMP"; then
41341 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41342else
41343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41344for as_dir in $PATH
41345do
41346 IFS=$as_save_IFS
41347 test -z "$as_dir" && as_dir=.
41348 for ac_exec_ext in '' $ac_executable_extensions; do
41349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41350 ac_cv_prog_RESCOMP="windres"
41351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41352 break 2
41353 fi
41354done
41355done
41356
41357 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
41358fi
41359fi
41360RESCOMP=$ac_cv_prog_RESCOMP
41361if test -n "$RESCOMP"; then
41362 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41363echo "${ECHO_T}$RESCOMP" >&6
41364else
41365 echo "$as_me:$LINENO: result: no" >&5
41366echo "${ECHO_T}no" >&6
41367fi
41368
41369 fi
41370 ;;
41371
1e9e8aba 41372 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
41373 # Extract the first word of "Rez", so it can be a program name with args.
41374set dummy Rez; ac_word=$2
41375echo "$as_me:$LINENO: checking for $ac_word" >&5
41376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41377if test "${ac_cv_prog_RESCOMP+set}" = set; then
41378 echo $ECHO_N "(cached) $ECHO_C" >&6
41379else
41380 if test -n "$RESCOMP"; then
41381 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
41382else
41383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41384for as_dir in $PATH
41385do
41386 IFS=$as_save_IFS
41387 test -z "$as_dir" && as_dir=.
41388 for ac_exec_ext in '' $ac_executable_extensions; do
41389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41390 ac_cv_prog_RESCOMP="Rez"
41391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41392 break 2
41393 fi
41394done
41395done
41396
41397 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
41398fi
41399fi
41400RESCOMP=$ac_cv_prog_RESCOMP
41401if test -n "$RESCOMP"; then
41402 echo "$as_me:$LINENO: result: $RESCOMP" >&5
41403echo "${ECHO_T}$RESCOMP" >&6
41404else
41405 echo "$as_me:$LINENO: result: no" >&5
41406echo "${ECHO_T}no" >&6
41407fi
41408
41409 # Extract the first word of "SetFile", so it can be a program name with args.
41410set dummy SetFile; ac_word=$2
41411echo "$as_me:$LINENO: checking for $ac_word" >&5
41412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41413if test "${ac_cv_prog_SETFILE+set}" = set; then
41414 echo $ECHO_N "(cached) $ECHO_C" >&6
41415else
41416 if test -n "$SETFILE"; then
41417 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
41418else
41419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41420for as_dir in $PATH
41421do
41422 IFS=$as_save_IFS
41423 test -z "$as_dir" && as_dir=.
41424 for ac_exec_ext in '' $ac_executable_extensions; do
41425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41426 ac_cv_prog_SETFILE="SetFile"
41427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41428 break 2
41429 fi
41430done
41431done
41432
41433 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
41434fi
41435fi
41436SETFILE=$ac_cv_prog_SETFILE
41437if test -n "$SETFILE"; then
41438 echo "$as_me:$LINENO: result: $SETFILE" >&5
41439echo "${ECHO_T}$SETFILE" >&6
41440else
41441 echo "$as_me:$LINENO: result: no" >&5
41442echo "${ECHO_T}no" >&6
41443fi
41444
41445 ;;
41446 esac
41447
41448
41449
41450
41451
94acd38e 41452 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 41453
dcc1b6ad 41454
94acd38e 41455BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 41456
646b6ec1 41457
74b84332 41458
a848cd7e
SC
41459 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
41460if test "${enable_precomp_headers+set}" = set; then
41461 enableval="$enable_precomp_headers"
41462 bk_use_pch="$enableval"
41463fi;
41464
41465 GCC_PCH=0
41466
41467 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
41468 if test "x$GCC" = "xyes"; then
41469 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
41470echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
41471 cat >conftest.$ac_ext <<_ACEOF
41472/* confdefs.h. */
41473_ACEOF
41474cat confdefs.h >>conftest.$ac_ext
41475cat >>conftest.$ac_ext <<_ACEOF
41476/* end confdefs.h. */
41477
41478int
41479main ()
41480{
41481
41482 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
41483 #error "no pch support"
41484 #endif
41485 #if (__GNUC__ < 3)
41486 #error "no pch support"
41487 #endif
41488 #if (__GNUC__ == 3) && \
41489 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
41490 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
41491 #error "no pch support"
41492 #endif
41493
41494 ;
41495 return 0;
41496}
41497_ACEOF
41498rm -f conftest.$ac_objext
41499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41500 (eval $ac_compile) 2>conftest.er1
a848cd7e 41501 ac_status=$?
ac1cb8d3
VS
41502 grep -v '^ *+' conftest.er1 >conftest.err
41503 rm -f conftest.er1
41504 cat conftest.err >&5
a848cd7e
SC
41505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41506 (exit $ac_status); } &&
89be85c2
VS
41507 { ac_try='test -z "$ac_c_werror_flag"
41508 || test ! -s conftest.err'
ac1cb8d3
VS
41509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41510 (eval $ac_try) 2>&5
41511 ac_status=$?
41512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41513 (exit $ac_status); }; } &&
41514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41516 (eval $ac_try) 2>&5
41517 ac_status=$?
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); }; }; then
41520
41521 echo "$as_me:$LINENO: result: yes" >&5
41522echo "${ECHO_T}yes" >&6
a848cd7e
SC
41523 GCC_PCH=1
41524
41525else
41526 echo "$as_me: failed program was:" >&5
41527sed 's/^/| /' conftest.$ac_ext >&5
41528
41529
41530 echo "$as_me:$LINENO: result: no" >&5
41531echo "${ECHO_T}no" >&6
41532
41533fi
ac1cb8d3 41534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41535 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
41536
41537D='$'
41538cat <<EOF >bk-make-pch
a848cd7e
SC
41539#!/bin/sh
41540
41541# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
41542# script. It is used to generated precompiled headers.
41543#
41544# Permission is given to use this file in any way.
41545
1e9e8aba
DE
41546outfile="${D}{1}"
41547header="${D}{2}"
a848cd7e
SC
41548shift
41549shift
41550
41551compiler=
41552headerfile=
1e9e8aba
DE
41553while test ${D}{#} -gt 0; do
41554 case "${D}{1}" in
a848cd7e 41555 -I* )
1e9e8aba
DE
41556 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
41557 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
41558 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
41559 fi
41560 ;;
41561 esac
1e9e8aba 41562 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
41563 shift
41564done
41565
1e9e8aba
DE
41566if test "x${D}{headerfile}" = "x" ; then
41567 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 41568else
1e9e8aba
DE
41569 if test -f ${D}{outfile} ; then
41570 rm -f ${D}{outfile}
a848cd7e 41571 else
1e9e8aba 41572 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 41573 fi
1e9e8aba 41574 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
41575 mkdir -p .deps
41576 # can do this because gcc is >= 3.4:
1e9e8aba
DE
41577 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
41578 exit ${D}{?}
a848cd7e
SC
41579fi
41580EOF
1e9e8aba 41581
a848cd7e
SC
41582 chmod +x bk-make-pch
41583 fi
41584 fi
41585 fi
41586
41587
41588
a848cd7e
SC
41589 COND_BUILD_DEBUG="#"
41590 if test "x$BUILD" = "xdebug" ; then
41591 COND_BUILD_DEBUG=""
41592 fi
41593
41594 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41595 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41596 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41597 fi
41598
41599 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41600 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41601 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41602 fi
41603
41604 COND_BUILD_DEBUG_UNICODE_0="#"
41605 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41606 COND_BUILD_DEBUG_UNICODE_0=""
41607 fi
41608
41609 COND_BUILD_DEBUG_UNICODE_1="#"
41610 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41611 COND_BUILD_DEBUG_UNICODE_1=""
41612 fi
41613
41614 COND_BUILD_RELEASE="#"
41615 if test "x$BUILD" = "xrelease" ; then
41616 COND_BUILD_RELEASE=""
41617 fi
41618
41619 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41620 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41621 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41622 fi
41623
41624 COND_BUILD_RELEASE_UNICODE_0="#"
41625 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41626 COND_BUILD_RELEASE_UNICODE_0=""
41627 fi
41628
41629 COND_BUILD_RELEASE_UNICODE_1="#"
41630 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41631 COND_BUILD_RELEASE_UNICODE_1=""
41632 fi
41633
41634 COND_DEBUG_FLAG_1="#"
41635 if test "x$DEBUG_FLAG" = "x1" ; then
41636 COND_DEBUG_FLAG_1=""
41637 fi
41638
41639 COND_DEBUG_INFO_0="#"
41640 if test "x$DEBUG_INFO" = "x0" ; then
41641 COND_DEBUG_INFO_0=""
41642 fi
41643
41644 COND_DEBUG_INFO_1="#"
41645 if test "x$DEBUG_INFO" = "x1" ; then
41646 COND_DEBUG_INFO_1=""
41647 fi
41648
41649 COND_DEPS_TRACKING_0="#"
41650 if test "x$DEPS_TRACKING" = "x0" ; then
41651 COND_DEPS_TRACKING_0=""
41652 fi
41653
41654 COND_DEPS_TRACKING_1="#"
41655 if test "x$DEPS_TRACKING" = "x1" ; then
41656 COND_DEPS_TRACKING_1=""
41657 fi
41658
41659 COND_GCC_PCH_1="#"
41660 if test "x$GCC_PCH" = "x1" ; then
41661 COND_GCC_PCH_1=""
41662 fi
41663
41664 COND_MONOLITHIC_0="#"
41665 if test "x$MONOLITHIC" = "x0" ; then
41666 COND_MONOLITHIC_0=""
41667 fi
41668
41669 COND_MONOLITHIC_0_SHARED_0="#"
41670 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41671 COND_MONOLITHIC_0_SHARED_0=""
41672 fi
41673
41674 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41675 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41676 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41677 fi
41678
90970d69
DE
41679 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
41680 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41681 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
41682 fi
41683
a848cd7e
SC
41684 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41685 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41686 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41687 fi
41688
a848cd7e
SC
41689 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41690 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41691 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41692 fi
41693
ceec2216
RL
41694 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41695 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41696 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41697 fi
41698
a848cd7e
SC
41699 COND_MONOLITHIC_0_SHARED_1="#"
41700 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41701 COND_MONOLITHIC_0_SHARED_1=""
41702 fi
41703
41704 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41705 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41706 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41707 fi
41708
90970d69
DE
41709 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
41710 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41711 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
41712 fi
41713
a848cd7e
SC
41714 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41715 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41716 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41717 fi
41718
a848cd7e
SC
41719 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41720 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41721 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41722 fi
41723
ceec2216
RL
41724 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41725 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41726 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41727 fi
41728
a848cd7e
SC
41729 COND_MONOLITHIC_0_USE_ODBC_1="#"
41730 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41731 COND_MONOLITHIC_0_USE_ODBC_1=""
41732 fi
41733
41734 COND_MONOLITHIC_1="#"
41735 if test "x$MONOLITHIC" = "x1" ; then
41736 COND_MONOLITHIC_1=""
41737 fi
41738
41739 COND_MONOLITHIC_1_SHARED_0="#"
41740 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41741 COND_MONOLITHIC_1_SHARED_0=""
41742 fi
41743
41744 COND_MONOLITHIC_1_SHARED_1="#"
41745 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41746 COND_MONOLITHIC_1_SHARED_1=""
41747 fi
41748
41749 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41750 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41751 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41752 fi
41753
41754 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41755 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41756 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41757 fi
41758
41759 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41760 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41761 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41762 fi
41763
41764 COND_PLATFORM_MACOSX_1="#"
41765 if test "x$PLATFORM_MACOSX" = "x1" ; then
41766 COND_PLATFORM_MACOSX_1=""
41767 fi
41768
a30f955f
VS
41769 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41770 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41771 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41772 fi
41773
a848cd7e
SC
41774 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41775 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41776 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41777 fi
41778
41779 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41780 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41781 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41782 fi
41783
41784 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41785 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41786 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41787 fi
41788
fc480dc1
DE
41789 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41790 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41791 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41792 fi
41793
1e9e8aba
DE
41794 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41795 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41796 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41797 fi
41798
ebee3cd0
VS
41799 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41800 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41801 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41802 fi
41803
41804 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41805 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41806 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41807 fi
41808
a848cd7e
SC
41809 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41810 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41811 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41812 fi
41813
41814 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41815 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41816 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41817 fi
41818
b48a2016
DE
41819 COND_PLATFORM_MACOS_1="#"
41820 if test "x$PLATFORM_MACOS" = "x1" ; then
41821 COND_PLATFORM_MACOS_1=""
41822 fi
41823
a848cd7e
SC
41824 COND_PLATFORM_MAC_1="#"
41825 if test "x$PLATFORM_MAC" = "x1" ; then
41826 COND_PLATFORM_MAC_1=""
41827 fi
41828
41829 COND_PLATFORM_OS2_1="#"
41830 if test "x$PLATFORM_OS2" = "x1" ; then
41831 COND_PLATFORM_OS2_1=""
41832 fi
41833
41834 COND_PLATFORM_UNIX_0="#"
41835 if test "x$PLATFORM_UNIX" = "x0" ; then
41836 COND_PLATFORM_UNIX_0=""
41837 fi
41838
41839 COND_PLATFORM_UNIX_1="#"
41840 if test "x$PLATFORM_UNIX" = "x1" ; then
41841 COND_PLATFORM_UNIX_1=""
41842 fi
41843
41844 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41845 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41846 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41847 fi
41848
41849 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41850 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41851 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41852 fi
41853
41854 COND_PLATFORM_WIN32_0="#"
41855 if test "x$PLATFORM_WIN32" = "x0" ; then
41856 COND_PLATFORM_WIN32_0=""
41857 fi
41858
41859 COND_PLATFORM_WIN32_1="#"
41860 if test "x$PLATFORM_WIN32" = "x1" ; then
41861 COND_PLATFORM_WIN32_1=""
41862 fi
41863
41864 COND_SHARED_0="#"
41865 if test "x$SHARED" = "x0" ; then
41866 COND_SHARED_0=""
41867 fi
41868
ceec2216
RL
41869 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41870 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41871 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41872 fi
41873
41874 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41875 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41876 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41877 fi
41878
41879 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41880 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41881 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41882 fi
41883
a848cd7e
SC
41884 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41885 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41886 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41887 fi
41888
41889 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41890 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41891 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41892 fi
41893
41894 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41895 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41897 fi
41898
41899 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41900 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41901 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41902 fi
41903
41904 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41905 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41906 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41907 fi
41908
41909 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41910 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41911 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41912 fi
41913
41914 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41915 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41916 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41917 fi
41918
41919 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41920 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41921 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41922 fi
41923
41924 COND_SHARED_1="#"
41925 if test "x$SHARED" = "x1" ; then
41926 COND_SHARED_1=""
41927 fi
41928
41929 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41930 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41931 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41932 fi
41933
a30f955f
VS
41934 COND_TOOLKIT_="#"
41935 if test "x$TOOLKIT" = "x" ; then
41936 COND_TOOLKIT_=""
41937 fi
41938
a848cd7e
SC
41939 COND_TOOLKIT_COCOA="#"
41940 if test "x$TOOLKIT" = "xCOCOA" ; then
41941 COND_TOOLKIT_COCOA=""
41942 fi
41943
a49baeab
DE
41944 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41945 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41946 COND_TOOLKIT_COCOA_USE_GUI_1=""
41947 fi
41948
a848cd7e
SC
41949 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41950 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41951 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41952 fi
41953
41954 COND_TOOLKIT_GTK="#"
41955 if test "x$TOOLKIT" = "xGTK" ; then
41956 COND_TOOLKIT_GTK=""
41957 fi
41958
41959 COND_TOOLKIT_GTK_USE_GUI_1="#"
41960 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41961 COND_TOOLKIT_GTK_USE_GUI_1=""
41962 fi
41963
41964 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41965 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41966 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41967 fi
41968
41969 COND_TOOLKIT_MAC="#"
41970 if test "x$TOOLKIT" = "xMAC" ; then
41971 COND_TOOLKIT_MAC=""
41972 fi
41973
41974 COND_TOOLKIT_MAC_USE_GUI_1="#"
41975 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41976 COND_TOOLKIT_MAC_USE_GUI_1=""
41977 fi
41978
41979 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41980 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41981 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41982 fi
41983
41984 COND_TOOLKIT_MGL="#"
41985 if test "x$TOOLKIT" = "xMGL" ; then
41986 COND_TOOLKIT_MGL=""
41987 fi
41988
41989 COND_TOOLKIT_MGL_USE_GUI_1="#"
41990 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41991 COND_TOOLKIT_MGL_USE_GUI_1=""
41992 fi
41993
41994 COND_TOOLKIT_MOTIF="#"
41995 if test "x$TOOLKIT" = "xMOTIF" ; then
41996 COND_TOOLKIT_MOTIF=""
41997 fi
41998
41999 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42000 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42001 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42002 fi
42003
42004 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42005 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42006 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42007 fi
42008
42009 COND_TOOLKIT_MSW="#"
42010 if test "x$TOOLKIT" = "xMSW" ; then
42011 COND_TOOLKIT_MSW=""
42012 fi
42013
42014 COND_TOOLKIT_MSW_USE_GUI_1="#"
42015 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42016 COND_TOOLKIT_MSW_USE_GUI_1=""
42017 fi
42018
42019 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42020 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42021 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42022 fi
42023
42024 COND_TOOLKIT_PM="#"
42025 if test "x$TOOLKIT" = "xPM" ; then
42026 COND_TOOLKIT_PM=""
42027 fi
42028
42029 COND_TOOLKIT_PM_USE_GUI_1="#"
42030 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42031 COND_TOOLKIT_PM_USE_GUI_1=""
42032 fi
42033
42034 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42035 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42036 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42037 fi
42038
3fd9c298
DE
42039 COND_TOOLKIT_WINCE="#"
42040 if test "x$TOOLKIT" = "xWINCE" ; then
42041 COND_TOOLKIT_WINCE=""
42042 fi
42043
42044 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42045 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42046 COND_TOOLKIT_WINCE_USE_GUI_1=""
42047 fi
42048
42049 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42050 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42051 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42052 fi
42053
a848cd7e
SC
42054 COND_TOOLKIT_X11="#"
42055 if test "x$TOOLKIT" = "xX11" ; then
42056 COND_TOOLKIT_X11=""
42057 fi
42058
42059 COND_TOOLKIT_X11_USE_GUI_1="#"
42060 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42061 COND_TOOLKIT_X11_USE_GUI_1=""
42062 fi
42063
42064 COND_UNICODE_1="#"
42065 if test "x$UNICODE" = "x1" ; then
42066 COND_UNICODE_1=""
42067 fi
42068
42069 COND_USE_EXCEPTIONS_0="#"
42070 if test "x$USE_EXCEPTIONS" = "x0" ; then
42071 COND_USE_EXCEPTIONS_0=""
42072 fi
42073
42074 COND_USE_EXCEPTIONS_1="#"
42075 if test "x$USE_EXCEPTIONS" = "x1" ; then
42076 COND_USE_EXCEPTIONS_1=""
42077 fi
42078
42079 COND_USE_GUI_0="#"
42080 if test "x$USE_GUI" = "x0" ; then
42081 COND_USE_GUI_0=""
42082 fi
42083
42084 COND_USE_GUI_1="#"
42085 if test "x$USE_GUI" = "x1" ; then
42086 COND_USE_GUI_1=""
42087 fi
42088
42089 COND_USE_GUI_1_WXUNIV_0="#"
42090 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42091 COND_USE_GUI_1_WXUNIV_0=""
42092 fi
42093
42094 COND_USE_GUI_1_WXUNIV_1="#"
42095 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42096 COND_USE_GUI_1_WXUNIV_1=""
42097 fi
42098
42099 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42100 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42101 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42102 fi
42103
42104 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42105 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42106 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42107 fi
42108
42109 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42110 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42111 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42112 fi
42113
ceec2216
RL
42114 COND_USE_ODBC_1="#"
42115 if test "x$USE_ODBC" = "x1" ; then
42116 COND_USE_ODBC_1=""
42117 fi
42118
ffa0583f
RL
42119 COND_USE_OPENGL_1="#"
42120 if test "x$USE_OPENGL" = "x1" ; then
42121 COND_USE_OPENGL_1=""
42122 fi
42123
a848cd7e
SC
42124 COND_USE_PLUGINS_0="#"
42125 if test "x$USE_PLUGINS" = "x0" ; then
42126 COND_USE_PLUGINS_0=""
42127 fi
42128
42129 COND_USE_SOSYMLINKS_1="#"
42130 if test "x$USE_SOSYMLINKS" = "x1" ; then
42131 COND_USE_SOSYMLINKS_1=""
42132 fi
42133
42134 COND_USE_SOVERLINUX_1="#"
42135 if test "x$USE_SOVERLINUX" = "x1" ; then
42136 COND_USE_SOVERLINUX_1=""
42137 fi
42138
42139 COND_USE_SOVERSION_0="#"
42140 if test "x$USE_SOVERSION" = "x0" ; then
42141 COND_USE_SOVERSION_0=""
42142 fi
42143
42144 COND_USE_SOVERSOLARIS_1="#"
42145 if test "x$USE_SOVERSOLARIS" = "x1" ; then
42146 COND_USE_SOVERSOLARIS_1=""
42147 fi
42148
a13a7f89
RL
42149 COND_USE_XRC_1="#"
42150 if test "x$USE_XRC" = "x1" ; then
42151 COND_USE_XRC_1=""
42152 fi
42153
a848cd7e
SC
42154 COND_WITH_PLUGIN_SDL_1="#"
42155 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
42156 COND_WITH_PLUGIN_SDL_1=""
42157 fi
42158
1e6eb025
VZ
42159 COND_WXUNIV_0="#"
42160 if test "x$WXUNIV" = "x0" ; then
42161 COND_WXUNIV_0=""
42162 fi
42163
a848cd7e
SC
42164 COND_WXUNIV_1="#"
42165 if test "x$WXUNIV" = "x1" ; then
42166 COND_WXUNIV_1=""
42167 fi
42168
42169 COND_WXUSE_EXPAT_BUILTIN="#"
42170 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
42171 COND_WXUSE_EXPAT_BUILTIN=""
42172 fi
42173
42174 COND_WXUSE_LIBJPEG_BUILTIN="#"
42175 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42176 COND_WXUSE_LIBJPEG_BUILTIN=""
42177 fi
42178
42179 COND_WXUSE_LIBPNG_BUILTIN="#"
42180 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42181 COND_WXUSE_LIBPNG_BUILTIN=""
42182 fi
42183
42184 COND_WXUSE_LIBTIFF_BUILTIN="#"
42185 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42186 COND_WXUSE_LIBTIFF_BUILTIN=""
42187 fi
42188
42189 COND_WXUSE_ODBC_BUILTIN="#"
42190 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
42191 COND_WXUSE_ODBC_BUILTIN=""
42192 fi
42193
42194 COND_WXUSE_REGEX_BUILTIN="#"
42195 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
42196 COND_WXUSE_REGEX_BUILTIN=""
42197 fi
42198
42199 COND_WXUSE_ZLIB_BUILTIN="#"
42200 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
42201 COND_WXUSE_ZLIB_BUILTIN=""
42202 fi
42203
42204
42205
2057db16
VS
42206 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
42207 { { 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
42208echo "$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;}
42209 { (exit 1); exit 1; }; }
42210 fi
42211
a848cd7e 42212
ceec2216
RL
42213if test "$wxUSE_SHARED" = "yes"; then
42214
42215 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
42216 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
42217
5b674b9d
DE
42218 case "${host}" in
42219 *-pc-os2_emx | *-pc-os2-emx )
42220 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42221 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42222 cp -p ${srcdir}/src/os2/dllnames.sh .
42223 cp -p ${srcdir}/src/os2/dllar.sh .
42224 ;;
42225 esac
ceec2216
RL
42226else
42227
42228 EXE_LINKER="$CXX -o"
42229
42230fi
a848cd7e 42231
74b84332 42232GCC_PRAGMA_FLAGS=""
c08ebc62
DE
42233PCH_FLAGS=""
42234if test $GCC_PCH = 1 ; then
42235 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42236 PCH_FLAGS="-DWX_PRECOMP"
42237else
a848cd7e
SC
42238 case "${host}" in
42239 powerpc-*-darwin* )
74b84332 42240 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 42241 ;;
bea8e651 42242 *-*-mingw32* )
1f344abf
VS
42243 if test "$wxUSE_STL" = "yes" -o \
42244 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42245 "$wxUSE_NO_RTTI" != "yes"; then
42246 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42247echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42248 cat >conftest.$ac_ext <<_ACEOF
42249/* confdefs.h. */
42250_ACEOF
42251cat confdefs.h >>conftest.$ac_ext
42252cat >>conftest.$ac_ext <<_ACEOF
42253/* end confdefs.h. */
42254
3314e67b
RR
42255int
42256main ()
42257{
42258#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
42259 #error "Not GCC 3.2 or greater"
42260 #endif
42261
42262 ;
42263 return 0;
42264}
42265_ACEOF
42266rm -f conftest.$ac_objext
42267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42268 (eval $ac_compile) 2>conftest.er1
42269 ac_status=$?
42270 grep -v '^ *+' conftest.er1 >conftest.err
42271 rm -f conftest.er1
42272 cat conftest.err >&5
42273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42274 (exit $ac_status); } &&
89be85c2
VS
42275 { ac_try='test -z "$ac_c_werror_flag"
42276 || test ! -s conftest.err'
3314e67b
RR
42277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42278 (eval $ac_try) 2>&5
42279 ac_status=$?
42280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281 (exit $ac_status); }; } &&
42282 { ac_try='test -s conftest.$ac_objext'
42283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42284 (eval $ac_try) 2>&5
42285 ac_status=$?
42286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42287 (exit $ac_status); }; }; then
42288 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
42289 echo "$as_me:$LINENO: result: yes" >&5
42290echo "${ECHO_T}yes" >&6
42291else
42292 echo "$as_me: failed program was:" >&5
42293sed 's/^/| /' conftest.$ac_ext >&5
42294
42295echo "$as_me:$LINENO: result: no" >&5
42296echo "${ECHO_T}no" >&6
42297fi
42298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42299 fi
42300 ;;
42301 *-pc-os2_emx | *-pc-os2-emx )
42302 if test "$wxUSE_STL" = "yes"; then
42303 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
42304echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
42305 cat >conftest.$ac_ext <<_ACEOF
42306/* confdefs.h. */
42307_ACEOF
42308cat confdefs.h >>conftest.$ac_ext
42309cat >>conftest.$ac_ext <<_ACEOF
42310/* end confdefs.h. */
42311
bea8e651
MB
42312int
42313main ()
42314{
1f344abf 42315#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
42316 #error "Not GCC 3.2 or greater"
42317 #endif
42318
42319 ;
42320 return 0;
42321}
42322_ACEOF
42323rm -f conftest.$ac_objext
42324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42325 (eval $ac_compile) 2>conftest.er1
bea8e651 42326 ac_status=$?
ac1cb8d3
VS
42327 grep -v '^ *+' conftest.er1 >conftest.err
42328 rm -f conftest.er1
42329 cat conftest.err >&5
bea8e651
MB
42330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42331 (exit $ac_status); } &&
89be85c2
VS
42332 { ac_try='test -z "$ac_c_werror_flag"
42333 || test ! -s conftest.err'
ac1cb8d3
VS
42334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42335 (eval $ac_try) 2>&5
42336 ac_status=$?
42337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42338 (exit $ac_status); }; } &&
42339 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
42340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42341 (eval $ac_try) 2>&5
42342 ac_status=$?
42343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42344 (exit $ac_status); }; }; then
74b84332 42345 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
42346 echo "$as_me:$LINENO: result: yes" >&5
42347echo "${ECHO_T}yes" >&6
42348else
42349 echo "$as_me: failed program was:" >&5
42350sed 's/^/| /' conftest.$ac_ext >&5
42351
42352echo "$as_me:$LINENO: result: no" >&5
42353echo "${ECHO_T}no" >&6
42354fi
ac1cb8d3 42355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
42356 fi
42357 ;;
a848cd7e
SC
42358 esac
42359fi
d2083416 42360CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
42361
42362
42363SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
42364
42365
42366
42367
42368
42369
42370
42371
42372
42373
42374
42375
42376
42377
42378
42379
42380
42381
42382
42383
42384
42385
42386
42387
42388
42389
42390
42391
42392
42393
42394
42395
42396
42397
42398
42399
42400
42401
42402
42403
42404
42405
a848cd7e
SC
42406
42407
42408
42409
42410
42411
42412
42413
42414
42415
42416
42417
42418
42419
42420
42421
42422
42423
74b84332 42424
a848cd7e
SC
42425
42426
42427echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42428echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42429set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42430if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42431 echo $ECHO_N "(cached) $ECHO_C" >&6
42432else
42433 cat >conftest.make <<\_ACEOF
42434all:
42435 @echo 'ac_maketemp="$(MAKE)"'
42436_ACEOF
42437# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42438eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42439if test -n "$ac_maketemp"; then
42440 eval ac_cv_prog_make_${ac_make}_set=yes
42441else
42442 eval ac_cv_prog_make_${ac_make}_set=no
42443fi
42444rm -f conftest.make
42445fi
42446if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42447 echo "$as_me:$LINENO: result: yes" >&5
42448echo "${ECHO_T}yes" >&6
42449 SET_MAKE=
42450else
42451 echo "$as_me:$LINENO: result: no" >&5
42452echo "${ECHO_T}no" >&6
42453 SET_MAKE="MAKE=${MAKE-make}"
42454fi
42455
42456
a848cd7e 42457
ceec2216
RL
42458 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
42459
a848cd7e 42460
ceec2216 42461 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 42462
a848cd7e 42463
ceec2216 42464 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 42465
ceec2216
RL
42466
42467 ac_config_files="$ac_config_files version-script Makefile"
42468
42469
42470 ac_config_commands="$ac_config_commands wx-config
42471 "
a848cd7e
SC
42472
42473
9103d280
RL
42474
42475
a848cd7e
SC
42476if test "$wxUSE_GUI" = "yes"; then
42477 SUBDIRS="samples demos utils contrib"
42478else SUBDIRS="samples utils"
42479fi
42480
42481
42482
42483# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42484if test "${with_cppunit_prefix+set}" = set; then
42485 withval="$with_cppunit_prefix"
42486 cppunit_config_prefix="$withval"
42487else
42488 cppunit_config_prefix=""
42489fi;
42490
42491# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42492if test "${with_cppunit_exec_prefix+set}" = set; then
42493 withval="$with_cppunit_exec_prefix"
42494 cppunit_config_exec_prefix="$withval"
42495else
42496 cppunit_config_exec_prefix=""
42497fi;
42498
42499 if test x$cppunit_config_exec_prefix != x ; then
42500 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42501 if test x${CPPUNIT_CONFIG+set} != xset ; then
42502 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42503 fi
42504 fi
42505 if test x$cppunit_config_prefix != x ; then
42506 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42507 if test x${CPPUNIT_CONFIG+set} != xset ; then
42508 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42509 fi
42510 fi
42511
42512 # Extract the first word of "cppunit-config", so it can be a program name with args.
42513set dummy cppunit-config; ac_word=$2
42514echo "$as_me:$LINENO: checking for $ac_word" >&5
42515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42516if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42517 echo $ECHO_N "(cached) $ECHO_C" >&6
42518else
42519 case $CPPUNIT_CONFIG in
42520 [\\/]* | ?:[\\/]*)
42521 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42522 ;;
42523 *)
42524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42525for as_dir in $PATH
42526do
42527 IFS=$as_save_IFS
42528 test -z "$as_dir" && as_dir=.
42529 for ac_exec_ext in '' $ac_executable_extensions; do
42530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42531 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42533 break 2
42534 fi
42535done
42536done
42537
42538 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42539 ;;
42540esac
42541fi
42542CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42543
42544if test -n "$CPPUNIT_CONFIG"; then
42545 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42546echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42547else
42548 echo "$as_me:$LINENO: result: no" >&5
42549echo "${ECHO_T}no" >&6
42550fi
42551
42552 cppunit_version_min=1.8.0
42553
42554 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42555echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42556 no_cppunit=""
42557 if test "$CPPUNIT_CONFIG" = "no" ; then
42558 no_cppunit=yes
42559 else
42560 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42561 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42562 cppunit_version=`$CPPUNIT_CONFIG --version`
42563
42564 cppunit_major_version=`echo $cppunit_version | \
42565 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42566 cppunit_minor_version=`echo $cppunit_version | \
42567 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42568 cppunit_micro_version=`echo $cppunit_version | \
42569 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42570
42571 cppunit_major_min=`echo $cppunit_version_min | \
42572 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42573 cppunit_minor_min=`echo $cppunit_version_min | \
42574 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42575 cppunit_micro_min=`echo $cppunit_version_min | \
42576 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42577
42578 cppunit_version_proper=`expr \
42579 $cppunit_major_version \> $cppunit_major_min \| \
42580 $cppunit_major_version \= $cppunit_major_min \& \
42581 $cppunit_minor_version \> $cppunit_minor_min \| \
42582 $cppunit_major_version \= $cppunit_major_min \& \
42583 $cppunit_minor_version \= $cppunit_minor_min \& \
42584 $cppunit_micro_version \>= $cppunit_micro_min `
42585
42586 if test "$cppunit_version_proper" = "1" ; then
42587 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42588echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42589 else
42590 echo "$as_me:$LINENO: result: no" >&5
42591echo "${ECHO_T}no" >&6
42592 no_cppunit=yes
42593 fi
42594 fi
42595
42596 if test "x$no_cppunit" = x ; then
c2218763 42597 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42598 else
42599 CPPUNIT_CFLAGS=""
42600 CPPUNIT_LIBS=""
c2218763 42601 :
a848cd7e
SC
42602 fi
42603
42604
42605
42606
42607
42608for subdir in `echo $SUBDIRS`; do
42609 if test -d ${srcdir}/${subdir} ; then
42610 if test "$wxUSE_GUI" = "yes"; then
42611 if test ${subdir} = "samples"; then
42612 makefiles="samples/Makefile.in $makefiles"
42613 for sample in `echo $SAMPLES_SUBDIRS`; do
42614 if test -d $srcdir/samples/$sample; then
42615 makefiles="samples/$sample/Makefile.in $makefiles"
42616 fi
42617 done
42618 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42619 fi
42620 else if test ${subdir} = "samples"; then
42621 makefiles="samples/Makefile.in samples/console/Makefile.in"
42622 elif test ${subdir} = "utils"; then
6537ccf8
VS
42623 makefiles=""
42624 for util in HelpGen tex2rtf ; do
42625 if test -d $srcdir/utils/$util ; then
42626 makefiles="utils/$util/Makefile.in \
42627 utils/$util/src/Makefile.in \
42628 $makefiles"
42629 fi
42630 done
a848cd7e
SC
42631 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42632 fi
42633 fi
42634
42635 for mkin in $makefiles ; do
42636 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42637 ac_config_files="$ac_config_files $mk"
42638
42639 done
42640 fi
42641done
42642
42643
42644cat >confcache <<\_ACEOF
42645# This file is a shell script that caches the results of configure
42646# tests run on this system so they can be shared between configure
42647# scripts and configure runs, see configure's option --config-cache.
42648# It is not useful on other systems. If it contains results you don't
42649# want to keep, you may remove or edit it.
42650#
42651# config.status only pays attention to the cache file if you give it
42652# the --recheck option to rerun configure.
42653#
42654# `ac_cv_env_foo' variables (set or unset) will be overridden when
42655# loading this file, other *unset* `ac_cv_foo' will be assigned the
42656# following values.
42657
42658_ACEOF
42659
42660# The following way of writing the cache mishandles newlines in values,
42661# but we know of no workaround that is simple, portable, and efficient.
42662# So, don't put newlines in cache variables' values.
42663# Ultrix sh set writes to stderr and can't be redirected directly,
42664# and sets the high bit in the cache file unless we assign to the vars.
42665{
42666 (set) 2>&1 |
42667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42668 *ac_space=\ *)
42669 # `set' does not quote correctly, so add quotes (double-quote
42670 # substitution turns \\\\ into \\, and sed turns \\ into \).
42671 sed -n \
ac1cb8d3
VS
42672 "s/'/'\\\\''/g;
42673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42674 ;;
42675 *)
42676 # `set' quotes correctly as required by POSIX, so do not add quotes.
42677 sed -n \
ac1cb8d3 42678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42679 ;;
42680 esac;
42681} |
42682 sed '
42683 t clear
42684 : clear
42685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42686 t end
42687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42688 : end' >>confcache
42689if diff $cache_file confcache >/dev/null 2>&1; then :; else
42690 if test -w $cache_file; then
42691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42692 cat confcache >$cache_file
42693 else
42694 echo "not updating unwritable cache $cache_file"
42695 fi
42696fi
42697rm -f confcache
42698
42699test "x$prefix" = xNONE && prefix=$ac_default_prefix
42700# Let make expand exec_prefix.
42701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42702
42703# VPATH may cause trouble with some makes, so we remove $(srcdir),
42704# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42705# trailing colons and then remove the whole line if VPATH becomes empty
42706# (actually we leave an empty line to preserve line numbers).
42707if test "x$srcdir" = x.; then
ac1cb8d3 42708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42709s/:*\$(srcdir):*/:/;
42710s/:*\${srcdir}:*/:/;
42711s/:*@srcdir@:*/:/;
ac1cb8d3 42712s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42713s/:*$//;
ac1cb8d3 42714s/^[^=]*=[ ]*$//;
a848cd7e
SC
42715}'
42716fi
42717
42718DEFS=-DHAVE_CONFIG_H
42719
42720ac_libobjs=
42721ac_ltlibobjs=
42722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42723 # 1. Remove the extension, and $U if already installed.
42724 ac_i=`echo "$ac_i" |
ac1cb8d3 42725 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42726 # 2. Add them.
42727 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42728 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42729done
42730LIBOBJS=$ac_libobjs
42731
42732LTLIBOBJS=$ac_ltlibobjs
42733
42734
42735
42736: ${CONFIG_STATUS=./config.status}
42737ac_clean_files_save=$ac_clean_files
42738ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42739{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42740echo "$as_me: creating $CONFIG_STATUS" >&6;}
42741cat >$CONFIG_STATUS <<_ACEOF
42742#! $SHELL
42743# Generated by $as_me.
42744# Run this file to recreate the current configuration.
42745# Compiler output produced by configure, useful for debugging
42746# configure, is in config.log if it exists.
42747
42748debug=false
42749ac_cs_recheck=false
42750ac_cs_silent=false
42751SHELL=\${CONFIG_SHELL-$SHELL}
42752_ACEOF
42753
42754cat >>$CONFIG_STATUS <<\_ACEOF
42755## --------------------- ##
42756## M4sh Initialization. ##
42757## --------------------- ##
42758
42759# Be Bourne compatible
42760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42761 emulate sh
42762 NULLCMD=:
42763 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42764 # is contrary to our usage. Disable this feature.
42765 alias -g '${1+"$@"}'='"$@"'
42766elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42767 set -o posix
42768fi
ac1cb8d3 42769DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42770
42771# Support unset when possible.
ac1cb8d3 42772if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42773 as_unset=unset
42774else
42775 as_unset=false
42776fi
42777
42778
42779# Work around bugs in pre-3.0 UWIN ksh.
42780$as_unset ENV MAIL MAILPATH
42781PS1='$ '
42782PS2='> '
42783PS4='+ '
42784
42785# NLS nuisances.
42786for as_var in \
42787 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42788 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42789 LC_TELEPHONE LC_TIME
42790do
ac1cb8d3 42791 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42792 eval $as_var=C; export $as_var
42793 else
42794 $as_unset $as_var
42795 fi
42796done
42797
42798# Required to use basename.
42799if expr a : '\(a\)' >/dev/null 2>&1; then
42800 as_expr=expr
42801else
42802 as_expr=false
42803fi
42804
42805if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42806 as_basename=basename
42807else
42808 as_basename=false
42809fi
42810
42811
42812# Name of the executable.
42813as_me=`$as_basename "$0" ||
42814$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42815 X"$0" : 'X\(//\)$' \| \
42816 X"$0" : 'X\(/\)$' \| \
42817 . : '\(.\)' 2>/dev/null ||
42818echo X/"$0" |
42819 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42820 /^X\/\(\/\/\)$/{ s//\1/; q; }
42821 /^X\/\(\/\).*/{ s//\1/; q; }
42822 s/.*/./; q'`
42823
42824
42825# PATH needs CR, and LINENO needs CR and PATH.
42826# Avoid depending upon Character Ranges.
42827as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42828as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42829as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42830as_cr_digits='0123456789'
42831as_cr_alnum=$as_cr_Letters$as_cr_digits
42832
42833# The user is always right.
42834if test "${PATH_SEPARATOR+set}" != set; then
42835 echo "#! /bin/sh" >conf$$.sh
42836 echo "exit 0" >>conf$$.sh
42837 chmod +x conf$$.sh
42838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42839 PATH_SEPARATOR=';'
42840 else
42841 PATH_SEPARATOR=:
42842 fi
42843 rm -f conf$$.sh
42844fi
42845
42846
42847 as_lineno_1=$LINENO
42848 as_lineno_2=$LINENO
42849 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42850 test "x$as_lineno_1" != "x$as_lineno_2" &&
42851 test "x$as_lineno_3" = "x$as_lineno_2" || {
42852 # Find who we are. Look in the path if we contain no path at all
42853 # relative or not.
42854 case $0 in
42855 *[\\/]* ) as_myself=$0 ;;
42856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42857for as_dir in $PATH
42858do
42859 IFS=$as_save_IFS
42860 test -z "$as_dir" && as_dir=.
42861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42862done
42863
42864 ;;
42865 esac
42866 # We did not find ourselves, most probably we were run as `sh COMMAND'
42867 # in which case we are not to be found in the path.
42868 if test "x$as_myself" = x; then
42869 as_myself=$0
42870 fi
42871 if test ! -f "$as_myself"; then
42872 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42873echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42874 { (exit 1); exit 1; }; }
42875 fi
42876 case $CONFIG_SHELL in
42877 '')
42878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42879for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42880do
42881 IFS=$as_save_IFS
42882 test -z "$as_dir" && as_dir=.
42883 for as_base in sh bash ksh sh5; do
42884 case $as_dir in
42885 /*)
42886 if ("$as_dir/$as_base" -c '
42887 as_lineno_1=$LINENO
42888 as_lineno_2=$LINENO
42889 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42890 test "x$as_lineno_1" != "x$as_lineno_2" &&
42891 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42892 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42893 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42894 CONFIG_SHELL=$as_dir/$as_base
42895 export CONFIG_SHELL
42896 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42897 fi;;
42898 esac
42899 done
42900done
42901;;
42902 esac
42903
42904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42905 # uniformly replaced by the line number. The first 'sed' inserts a
42906 # line-number line before each line; the second 'sed' does the real
42907 # work. The second script uses 'N' to pair each line-number line
42908 # with the numbered line, and appends trailing '-' during
42909 # substitution so that $LINENO is not a special case at line end.
42910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42911 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42912 sed '=' <$as_myself |
42913 sed '
42914 N
42915 s,$,-,
42916 : loop
42917 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42918 t loop
42919 s,-$,,
42920 s,^['$as_cr_digits']*\n,,
42921 ' >$as_me.lineno &&
42922 chmod +x $as_me.lineno ||
42923 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42924echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42925 { (exit 1); exit 1; }; }
42926
42927 # Don't try to exec as it changes $[0], causing all sort of problems
42928 # (the dirname of $[0] is not the place where we might find the
42929 # original and so on. Autoconf is especially sensible to this).
42930 . ./$as_me.lineno
42931 # Exit status is that of the last command.
42932 exit
42933}
42934
42935
42936case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42937 *c*,-n*) ECHO_N= ECHO_C='
42938' ECHO_T=' ' ;;
42939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42941esac
42942
42943if expr a : '\(a\)' >/dev/null 2>&1; then
42944 as_expr=expr
42945else
42946 as_expr=false
42947fi
42948
42949rm -f conf$$ conf$$.exe conf$$.file
42950echo >conf$$.file
42951if ln -s conf$$.file conf$$ 2>/dev/null; then
42952 # We could just check for DJGPP; but this test a) works b) is more generic
42953 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42954 if test -f conf$$.exe; then
42955 # Don't use ln at all; we don't have any links
42956 as_ln_s='cp -p'
42957 else
42958 as_ln_s='ln -s'
42959 fi
42960elif ln conf$$.file conf$$ 2>/dev/null; then
42961 as_ln_s=ln
42962else
42963 as_ln_s='cp -p'
42964fi
42965rm -f conf$$ conf$$.exe conf$$.file
42966
42967if mkdir -p . 2>/dev/null; then
42968 as_mkdir_p=:
42969else
ac1cb8d3 42970 test -d ./-p && rmdir ./-p
a848cd7e
SC
42971 as_mkdir_p=false
42972fi
42973
42974as_executable_p="test -f"
42975
42976# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42977as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42978
42979# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42980as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42981
42982
42983# IFS
42984# We need space, tab and new line, in precisely that order.
42985as_nl='
42986'
42987IFS=" $as_nl"
42988
42989# CDPATH.
42990$as_unset CDPATH
42991
42992exec 6>&1
42993
42994# Open the log real soon, to keep \$[0] and so on meaningful, and to
42995# report actual input values of CONFIG_FILES etc. instead of their
42996# values after options handling. Logging --version etc. is OK.
42997exec 5>>config.log
42998{
42999 echo
43000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43001## Running $as_me. ##
43002_ASBOX
43003} >&5
43004cat >&5 <<_CSEOF
43005
81f90336 43006This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 43007generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43008
43009 CONFIG_FILES = $CONFIG_FILES
43010 CONFIG_HEADERS = $CONFIG_HEADERS
43011 CONFIG_LINKS = $CONFIG_LINKS
43012 CONFIG_COMMANDS = $CONFIG_COMMANDS
43013 $ $0 $@
43014
43015_CSEOF
43016echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43017echo >&5
43018_ACEOF
43019
43020# Files that config.status was made for.
43021if test -n "$ac_config_files"; then
43022 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43023fi
43024
43025if test -n "$ac_config_headers"; then
43026 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43027fi
43028
43029if test -n "$ac_config_links"; then
43030 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43031fi
43032
43033if test -n "$ac_config_commands"; then
43034 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43035fi
43036
43037cat >>$CONFIG_STATUS <<\_ACEOF
43038
43039ac_cs_usage="\
43040\`$as_me' instantiates files from templates according to the
43041current configuration.
43042
43043Usage: $0 [OPTIONS] [FILE]...
43044
43045 -h, --help print this help, then exit
43046 -V, --version print version number, then exit
43047 -q, --quiet do not print progress messages
43048 -d, --debug don't remove temporary files
43049 --recheck update $as_me by reconfiguring in the same conditions
43050 --file=FILE[:TEMPLATE]
ac1cb8d3 43051 instantiate the configuration file FILE
a848cd7e 43052 --header=FILE[:TEMPLATE]
ac1cb8d3 43053 instantiate the configuration header FILE
a848cd7e
SC
43054
43055Configuration files:
43056$config_files
43057
43058Configuration headers:
43059$config_headers
43060
43061Configuration commands:
43062$config_commands
43063
43064Report bugs to <bug-autoconf@gnu.org>."
43065_ACEOF
43066
43067cat >>$CONFIG_STATUS <<_ACEOF
43068ac_cs_version="\\
81f90336 43069wxWidgets config.status 2.5.4
ac1cb8d3 43070configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43071 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43072
ac1cb8d3 43073Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43074This config.status script is free software; the Free Software Foundation
43075gives unlimited permission to copy, distribute and modify it."
43076srcdir=$srcdir
43077INSTALL="$INSTALL"
43078_ACEOF
43079
43080cat >>$CONFIG_STATUS <<\_ACEOF
43081# If no file are specified by the user, then we need to provide default
43082# value. By we need to know if files were specified by the user.
43083ac_need_defaults=:
43084while test $# != 0
43085do
43086 case $1 in
43087 --*=*)
43088 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43089 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43090 ac_shift=:
43091 ;;
43092 -*)
43093 ac_option=$1
43094 ac_optarg=$2
43095 ac_shift=shift
43096 ;;
43097 *) # This is not an option, so the user has probably given explicit
43098 # arguments.
43099 ac_option=$1
43100 ac_need_defaults=false;;
43101 esac
43102
43103 case $ac_option in
43104 # Handling of the options.
43105_ACEOF
43106cat >>$CONFIG_STATUS <<\_ACEOF
43107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43108 ac_cs_recheck=: ;;
43109 --version | --vers* | -V )
43110 echo "$ac_cs_version"; exit 0 ;;
43111 --he | --h)
43112 # Conflict between --help and --header
43113 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43114Try \`$0 --help' for more information." >&5
43115echo "$as_me: error: ambiguous option: $1
43116Try \`$0 --help' for more information." >&2;}
43117 { (exit 1); exit 1; }; };;
43118 --help | --hel | -h )
43119 echo "$ac_cs_usage"; exit 0 ;;
43120 --debug | --d* | -d )
43121 debug=: ;;
43122 --file | --fil | --fi | --f )
43123 $ac_shift
43124 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43125 ac_need_defaults=false;;
43126 --header | --heade | --head | --hea )
43127 $ac_shift
43128 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43129 ac_need_defaults=false;;
43130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43132 ac_cs_silent=: ;;
43133
43134 # This is an error.
43135 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43136Try \`$0 --help' for more information." >&5
43137echo "$as_me: error: unrecognized option: $1
43138Try \`$0 --help' for more information." >&2;}
43139 { (exit 1); exit 1; }; } ;;
43140
43141 *) ac_config_targets="$ac_config_targets $1" ;;
43142
43143 esac
43144 shift
43145done
43146
43147ac_configure_extra_args=
43148
43149if $ac_cs_silent; then
43150 exec 6>/dev/null
43151 ac_configure_extra_args="$ac_configure_extra_args --silent"
43152fi
43153
43154_ACEOF
43155cat >>$CONFIG_STATUS <<_ACEOF
43156if \$ac_cs_recheck; then
43157 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43158 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43159fi
43160
43161_ACEOF
43162
43163cat >>$CONFIG_STATUS <<_ACEOF
43164#
43165# INIT-COMMANDS section.
43166#
43167
ceec2216
RL
43168 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43169 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43170 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
43171 LN_S="${LN_S}"
a848cd7e
SC
43172
43173
43174_ACEOF
43175
43176
43177
43178cat >>$CONFIG_STATUS <<\_ACEOF
43179for ac_config_target in $ac_config_targets
43180do
43181 case "$ac_config_target" in
43182 # Handling of arguments.
ceec2216
RL
43183 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
43184 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
43185 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
43186 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43187 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
43188 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
43189 "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
43190 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43191echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43192 { (exit 1); exit 1; }; };;
43193 esac
43194done
43195
43196# If the user did not use the arguments to specify the items to instantiate,
43197# then the envvar interface is used. Set only those that are not.
43198# We use the long form for the default assignment because of an extremely
43199# bizarre bug on SunOS 4.1.3.
43200if $ac_need_defaults; then
43201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43204fi
43205
43206# Have a temporary directory for convenience. Make it in the build tree
43207# simply because there is no reason to put it here, and in addition,
43208# creating and moving files from /tmp can sometimes cause problems.
43209# Create a temporary directory, and hook for its removal unless debugging.
43210$debug ||
43211{
43212 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43213 trap '{ (exit 1); exit 1; }' 1 2 13 15
43214}
43215
43216# Create a (secure) tmp directory for tmp files.
43217
43218{
43219 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43220 test -n "$tmp" && test -d "$tmp"
43221} ||
43222{
43223 tmp=./confstat$$-$RANDOM
43224 (umask 077 && mkdir $tmp)
43225} ||
43226{
43227 echo "$me: cannot create a temporary directory in ." >&2
43228 { (exit 1); exit 1; }
43229}
43230
43231_ACEOF
43232
43233cat >>$CONFIG_STATUS <<_ACEOF
43234
43235#
43236# CONFIG_FILES section.
43237#
43238
43239# No need to generate the scripts if there are no CONFIG_FILES.
43240# This happens for instance when ./config.status config.h
43241if test -n "\$CONFIG_FILES"; then
43242 # Protect against being on the right side of a sed subst in config.status.
43243 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43244 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43245s,@SHELL@,$SHELL,;t t
43246s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43247s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43248s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43249s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43250s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43251s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43252s,@exec_prefix@,$exec_prefix,;t t
43253s,@prefix@,$prefix,;t t
43254s,@program_transform_name@,$program_transform_name,;t t
43255s,@bindir@,$bindir,;t t
43256s,@sbindir@,$sbindir,;t t
43257s,@libexecdir@,$libexecdir,;t t
43258s,@datadir@,$datadir,;t t
43259s,@sysconfdir@,$sysconfdir,;t t
43260s,@sharedstatedir@,$sharedstatedir,;t t
43261s,@localstatedir@,$localstatedir,;t t
43262s,@libdir@,$libdir,;t t
43263s,@includedir@,$includedir,;t t
43264s,@oldincludedir@,$oldincludedir,;t t
43265s,@infodir@,$infodir,;t t
43266s,@mandir@,$mandir,;t t
43267s,@build_alias@,$build_alias,;t t
43268s,@host_alias@,$host_alias,;t t
43269s,@target_alias@,$target_alias,;t t
43270s,@DEFS@,$DEFS,;t t
43271s,@ECHO_C@,$ECHO_C,;t t
43272s,@ECHO_N@,$ECHO_N,;t t
43273s,@ECHO_T@,$ECHO_T,;t t
43274s,@LIBS@,$LIBS,;t t
43275s,@build@,$build,;t t
43276s,@build_cpu@,$build_cpu,;t t
43277s,@build_vendor@,$build_vendor,;t t
43278s,@build_os@,$build_os,;t t
43279s,@host@,$host,;t t
43280s,@host_cpu@,$host_cpu,;t t
43281s,@host_vendor@,$host_vendor,;t t
43282s,@host_os@,$host_os,;t t
43283s,@target@,$target,;t t
43284s,@target_cpu@,$target_cpu,;t t
43285s,@target_vendor@,$target_vendor,;t t
43286s,@target_os@,$target_os,;t t
43287s,@CC@,$CC,;t t
43288s,@CFLAGS@,$CFLAGS,;t t
43289s,@LDFLAGS@,$LDFLAGS,;t t
43290s,@CPPFLAGS@,$CPPFLAGS,;t t
43291s,@ac_ct_CC@,$ac_ct_CC,;t t
43292s,@EXEEXT@,$EXEEXT,;t t
43293s,@OBJEXT@,$OBJEXT,;t t
43294s,@CPP@,$CPP,;t t
43295s,@EGREP@,$EGREP,;t t
43296s,@CXX@,$CXX,;t t
43297s,@CXXFLAGS@,$CXXFLAGS,;t t
43298s,@ac_ct_CXX@,$ac_ct_CXX,;t t
43299s,@RANLIB@,$RANLIB,;t t
43300s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43301s,@AR@,$AR,;t t
43302s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43303s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43304s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43305s,@STRIP@,$STRIP,;t t
43306s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
43307s,@LN_S@,$LN_S,;t t
43308s,@CXXCPP@,$CXXCPP,;t t
43309s,@subdirs@,$subdirs,;t t
43310s,@PKG_CONFIG@,$PKG_CONFIG,;t t
43311s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
43312s,@GTK_LIBS@,$GTK_LIBS,;t t
43313s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
43314s,@X_CFLAGS@,$X_CFLAGS,;t t
43315s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
43316s,@X_LIBS@,$X_LIBS,;t t
43317s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
43318s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
43319s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
43320s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
43321s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
43322s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
43323s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
43324s,@RESCOMP@,$RESCOMP,;t t
43325s,@DEREZ@,$DEREZ,;t t
43326s,@SETFILE@,$SETFILE,;t t
43327s,@LIBICONV@,$LIBICONV,;t t
43328s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
43329s,@SDL_CONFIG@,$SDL_CONFIG,;t t
43330s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
43331s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
43332s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
43333s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
43334s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
43335s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
43336s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
43337s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
43338s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
43339s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
43340s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
43341s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
43342s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
43343s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
43344s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
43345s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
43346s,@VENDOR@,$VENDOR,;t t
43347s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
43348s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
43349s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
43350s,@WXUNIV@,$WXUNIV,;t t
43351s,@MONOLITHIC@,$MONOLITHIC,;t t
43352s,@USE_PLUGINS@,$USE_PLUGINS,;t t
43353s,@EXTRALIBS@,$EXTRALIBS,;t t
43354s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
43355s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
43356s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
43357s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
43358s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
43359s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
43360s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 43361s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
43362s,@UNICODE@,$UNICODE,;t t
43363s,@BUILD@,$BUILD,;t t
43364s,@DEBUG_INFO@,$DEBUG_INFO,;t t
43365s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
43366s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
43367s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
43368s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
43369s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
43370s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
43371s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
43372s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
43373s,@SET_MAKE@,$SET_MAKE,;t t
43374s,@MAKE_SET@,$MAKE_SET,;t t
43375s,@ac_ct_AR@,$ac_ct_AR,;t t
43376s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43377s,@NM@,$NM,;t t
43378s,@ac_ct_NM@,$ac_ct_NM,;t t
43379s,@INSTALL_DIR@,$INSTALL_DIR,;t t
43380s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
43381s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
43382s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
43383s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
43384s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 43385s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
43386s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
43387s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 43388s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
43389s,@SO_SUFFIX@,$SO_SUFFIX,;t t
43390s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
43391s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
43392s,@LIBPREFIX@,$LIBPREFIX,;t t
43393s,@LIBEXT@,$LIBEXT,;t t
43394s,@DLLPREFIX@,$DLLPREFIX,;t t
43395s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
43396s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
43397s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
43398s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
43399s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
43400s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
43401s,@PIC_FLAG@,$PIC_FLAG,;t t
43402s,@USE_SOVERSION@,$USE_SOVERSION,;t t
43403s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
43404s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
43405s,@USE_MACVERSION@,$USE_MACVERSION,;t t
43406s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
43407s,@SONAME_FLAG@,$SONAME_FLAG,;t t
43408s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
43409s,@GCC_PCH@,$GCC_PCH,;t t
43410s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
43411s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
43412s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
43413s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
43414s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
43415s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
43416s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
43417s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
43418s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
43419s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
43420s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
43421s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
43422s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
43423s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
43424s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
43425s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
43426s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
43427s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 43428s,@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 43429s,@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 43430s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 43431s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
43432s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
43433s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 43434s,@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 43435s,@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 43436s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 43437s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
43438s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43439s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43440s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43441s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43442s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43443s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43444s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43445s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 43446s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
43447s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43448s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43449s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 43450s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 43451s,@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
43452s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
43453s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
43454s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43455s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 43456s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
43457s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43458s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43459s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43460s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43461s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43462s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43463s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43464s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43465s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
43466s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
43467s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
43468s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
43469s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43470s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43471s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43472s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43473s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43474s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43475s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43476s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43477s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43478s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 43479s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 43480s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 43481s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
43482s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43483s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43484s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43485s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43486s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43487s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43488s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43489s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43490s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43491s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43492s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43493s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43494s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43495s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43496s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43497s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43498s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43499s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43500s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43501s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43502s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43503s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43504s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43505s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43506s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43507s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43508s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43509s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43510s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43511s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43512s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43513s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43514s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 43515s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 43516s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
43517s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43518s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43519s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43520s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43521s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 43522s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 43523s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 43524s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
43525s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43526s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43527s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43528s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43529s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43530s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43531s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43532s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 43533s,@SHARED@,$SHARED,;t t
a848cd7e
SC
43534s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43535s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
43536s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43537s,@USE_GUI@,$USE_GUI,;t t
43538s,@AFMINSTALL@,$AFMINSTALL,;t t
43539s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43540s,@TOOLKIT@,$TOOLKIT,;t t
43541s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 43542s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 43543s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
43544s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43545s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 43546s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
43547s,@WIDGET_SET@,$WIDGET_SET,;t t
43548s,@WX_RELEASE@,$WX_RELEASE,;t t
43549s,@WX_VERSION@,$WX_VERSION,;t t
43550s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
43551s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
43552s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 43553s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
43554s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43555s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43556s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43557s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 43558s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
43559s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43560s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 43561s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 43562s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
43563s,@DISTDIR@,$DISTDIR,;t t
43564s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43565s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
43566s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43567s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43568s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43569s,@RESFLAGS@,$RESFLAGS,;t t
43570s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43571s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43572s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43573s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43574s,@MACRESCOMP@,$MACRESCOMP,;t t
43575s,@MACSETFILE@,$MACSETFILE,;t t
43576s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43577s,@GCC@,$GCC,;t t
a848cd7e 43578s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
43579s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43580s,@LIBOBJS@,$LIBOBJS,;t t
43581s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43582CEOF
43583
43584_ACEOF
43585
43586 cat >>$CONFIG_STATUS <<\_ACEOF
43587 # Split the substitutions into bite-sized pieces for seds with
43588 # small command number limits, like on Digital OSF/1 and HP-UX.
43589 ac_max_sed_lines=48
43590 ac_sed_frag=1 # Number of current file.
43591 ac_beg=1 # First line for current file.
43592 ac_end=$ac_max_sed_lines # Line after last line for current file.
43593 ac_more_lines=:
43594 ac_sed_cmds=
43595 while $ac_more_lines; do
43596 if test $ac_beg -gt 1; then
43597 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43598 else
43599 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43600 fi
43601 if test ! -s $tmp/subs.frag; then
43602 ac_more_lines=false
43603 else
43604 # The purpose of the label and of the branching condition is to
43605 # speed up the sed processing (if there are no `@' at all, there
43606 # is no need to browse any of the substitutions).
43607 # These are the two extra sed commands mentioned above.
43608 (echo ':t
43609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43610 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43611 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43612 else
ac1cb8d3 43613 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43614 fi
43615 ac_sed_frag=`expr $ac_sed_frag + 1`
43616 ac_beg=$ac_end
43617 ac_end=`expr $ac_end + $ac_max_sed_lines`
43618 fi
43619 done
43620 if test -z "$ac_sed_cmds"; then
43621 ac_sed_cmds=cat
43622 fi
43623fi # test -n "$CONFIG_FILES"
43624
43625_ACEOF
43626cat >>$CONFIG_STATUS <<\_ACEOF
43627for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43628 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43629 case $ac_file in
43630 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43631 cat >$tmp/stdin
43632 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43633 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43634 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43636 * ) ac_file_in=$ac_file.in ;;
43637 esac
43638
43639 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43640 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43641$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43642 X"$ac_file" : 'X\(//\)[^/]' \| \
43643 X"$ac_file" : 'X\(//\)$' \| \
43644 X"$ac_file" : 'X\(/\)' \| \
43645 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43646echo X"$ac_file" |
43647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43649 /^X\(\/\/\)$/{ s//\1/; q; }
43650 /^X\(\/\).*/{ s//\1/; q; }
43651 s/.*/./; q'`
43652 { if $as_mkdir_p; then
43653 mkdir -p "$ac_dir"
43654 else
43655 as_dir="$ac_dir"
43656 as_dirs=
43657 while test ! -d "$as_dir"; do
43658 as_dirs="$as_dir $as_dirs"
43659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43661 X"$as_dir" : 'X\(//\)[^/]' \| \
43662 X"$as_dir" : 'X\(//\)$' \| \
43663 X"$as_dir" : 'X\(/\)' \| \
43664 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43665echo X"$as_dir" |
43666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43668 /^X\(\/\/\)$/{ s//\1/; q; }
43669 /^X\(\/\).*/{ s//\1/; q; }
43670 s/.*/./; q'`
43671 done
43672 test ! -n "$as_dirs" || mkdir $as_dirs
43673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43674echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43675 { (exit 1); exit 1; }; }; }
43676
43677 ac_builddir=.
43678
43679if test "$ac_dir" != .; then
43680 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43681 # A "../" for each directory in $ac_dir_suffix.
43682 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43683else
43684 ac_dir_suffix= ac_top_builddir=
43685fi
43686
43687case $srcdir in
43688 .) # No --srcdir option. We are building in place.
43689 ac_srcdir=.
43690 if test -z "$ac_top_builddir"; then
43691 ac_top_srcdir=.
43692 else
43693 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43694 fi ;;
43695 [\\/]* | ?:[\\/]* ) # Absolute path.
43696 ac_srcdir=$srcdir$ac_dir_suffix;
43697 ac_top_srcdir=$srcdir ;;
43698 *) # Relative path.
43699 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43700 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43701esac
ac1cb8d3
VS
43702
43703# Do not use `cd foo && pwd` to compute absolute paths, because
43704# the directories may not exist.
43705case `pwd` in
43706.) ac_abs_builddir="$ac_dir";;
43707*)
43708 case "$ac_dir" in
43709 .) ac_abs_builddir=`pwd`;;
43710 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43711 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43712 esac;;
43713esac
43714case $ac_abs_builddir in
43715.) ac_abs_top_builddir=${ac_top_builddir}.;;
43716*)
43717 case ${ac_top_builddir}. in
43718 .) ac_abs_top_builddir=$ac_abs_builddir;;
43719 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43720 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43721 esac;;
43722esac
43723case $ac_abs_builddir in
43724.) ac_abs_srcdir=$ac_srcdir;;
43725*)
43726 case $ac_srcdir in
43727 .) ac_abs_srcdir=$ac_abs_builddir;;
43728 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43729 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43730 esac;;
43731esac
43732case $ac_abs_builddir in
43733.) ac_abs_top_srcdir=$ac_top_srcdir;;
43734*)
43735 case $ac_top_srcdir in
43736 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43737 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43738 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43739 esac;;
43740esac
a848cd7e
SC
43741
43742
43743 case $INSTALL in
43744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43745 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43746 esac
43747
89be85c2
VS
43748 if test x"$ac_file" != x-; then
43749 { echo "$as_me:$LINENO: creating $ac_file" >&5
43750echo "$as_me: creating $ac_file" >&6;}
43751 rm -f "$ac_file"
43752 fi
a848cd7e
SC
43753 # Let's still pretend it is `configure' which instantiates (i.e., don't
43754 # use $as_me), people would be surprised to read:
43755 # /* config.h. Generated by config.status. */
43756 if test x"$ac_file" = x-; then
43757 configure_input=
43758 else
43759 configure_input="$ac_file. "
43760 fi
43761 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43762 sed 's,.*/,,'` by configure."
a848cd7e
SC
43763
43764 # First look for the input files in the build tree, otherwise in the
43765 # src tree.
43766 ac_file_inputs=`IFS=:
43767 for f in $ac_file_in; do
43768 case $f in
43769 -) echo $tmp/stdin ;;
43770 [\\/$]*)
ac1cb8d3
VS
43771 # Absolute (can't be DOS-style, as IFS=:)
43772 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43773echo "$as_me: error: cannot find input file: $f" >&2;}
43774 { (exit 1); exit 1; }; }
ac1cb8d3 43775 echo "$f";;
a848cd7e 43776 *) # Relative
ac1cb8d3
VS
43777 if test -f "$f"; then
43778 # Build tree
43779 echo "$f"
43780 elif test -f "$srcdir/$f"; then
43781 # Source tree
43782 echo "$srcdir/$f"
43783 else
43784 # /dev/null tree
43785 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43786echo "$as_me: error: cannot find input file: $f" >&2;}
43787 { (exit 1); exit 1; }; }
ac1cb8d3 43788 fi;;
a848cd7e
SC
43789 esac
43790 done` || { (exit 1); exit 1; }
43791_ACEOF
43792cat >>$CONFIG_STATUS <<_ACEOF
43793 sed "$ac_vpsub
43794$extrasub
43795_ACEOF
43796cat >>$CONFIG_STATUS <<\_ACEOF
43797:t
43798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43799s,@configure_input@,$configure_input,;t t
43800s,@srcdir@,$ac_srcdir,;t t
43801s,@abs_srcdir@,$ac_abs_srcdir,;t t
43802s,@top_srcdir@,$ac_top_srcdir,;t t
43803s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43804s,@builddir@,$ac_builddir,;t t
43805s,@abs_builddir@,$ac_abs_builddir,;t t
43806s,@top_builddir@,$ac_top_builddir,;t t
43807s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43808s,@INSTALL@,$ac_INSTALL,;t t
43809" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43810 rm -f $tmp/stdin
43811 if test x"$ac_file" != x-; then
43812 mv $tmp/out $ac_file
43813 else
43814 cat $tmp/out
43815 rm -f $tmp/out
43816 fi
43817
ceec2216
RL
43818 # Run the commands associated with the file.
43819 case $ac_file in
43820 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43821 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43822 esac
a848cd7e
SC
43823done
43824_ACEOF
43825cat >>$CONFIG_STATUS <<\_ACEOF
43826
43827#
43828# CONFIG_HEADER section.
43829#
43830
43831# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43832# NAME is the cpp macro being defined and VALUE is the value it is being given.
43833#
43834# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43835ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43836ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43837ac_dC=' '
43838ac_dD=',;t'
43839# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43840ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43841ac_uB='$,\1#\2define\3'
43842ac_uC=' '
43843ac_uD=',;t'
43844
43845for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43847 case $ac_file in
43848 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43849 cat >$tmp/stdin
43850 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43851 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43852 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43854 * ) ac_file_in=$ac_file.in ;;
43855 esac
43856
43857 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43858echo "$as_me: creating $ac_file" >&6;}
43859
43860 # First look for the input files in the build tree, otherwise in the
43861 # src tree.
43862 ac_file_inputs=`IFS=:
43863 for f in $ac_file_in; do
43864 case $f in
43865 -) echo $tmp/stdin ;;
43866 [\\/$]*)
ac1cb8d3
VS
43867 # Absolute (can't be DOS-style, as IFS=:)
43868 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43869echo "$as_me: error: cannot find input file: $f" >&2;}
43870 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43871 # Do quote $f, to prevent DOS paths from being IFS'd.
43872 echo "$f";;
a848cd7e 43873 *) # Relative
ac1cb8d3
VS
43874 if test -f "$f"; then
43875 # Build tree
43876 echo "$f"
43877 elif test -f "$srcdir/$f"; then
43878 # Source tree
43879 echo "$srcdir/$f"
43880 else
43881 # /dev/null tree
43882 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43883echo "$as_me: error: cannot find input file: $f" >&2;}
43884 { (exit 1); exit 1; }; }
ac1cb8d3 43885 fi;;
a848cd7e
SC
43886 esac
43887 done` || { (exit 1); exit 1; }
43888 # Remove the trailing spaces.
ac1cb8d3 43889 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43890
43891_ACEOF
43892
43893# Transform confdefs.h into two sed scripts, `conftest.defines' and
43894# `conftest.undefs', that substitutes the proper values into
43895# config.h.in to produce config.h. The first handles `#define'
43896# templates, and the second `#undef' templates.
43897# And first: Protect against being on the right side of a sed subst in
43898# config.status. Protect against being in an unquoted here document
43899# in config.status.
43900rm -f conftest.defines conftest.undefs
43901# Using a here document instead of a string reduces the quoting nightmare.
43902# Putting comments in sed scripts is not portable.
43903#
43904# `end' is used to avoid that the second main sed command (meant for
43905# 0-ary CPP macros) applies to n-ary macro definitions.
43906# See the Autoconf documentation for `clear'.
43907cat >confdef2sed.sed <<\_ACEOF
43908s/[\\&,]/\\&/g
43909s,[\\$`],\\&,g
43910t clear
43911: clear
ac1cb8d3 43912s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43913t end
ac1cb8d3 43914s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43915: end
43916_ACEOF
43917# If some macros were called several times there might be several times
43918# the same #defines, which is useless. Nevertheless, we may not want to
43919# sort them, since we want the *last* AC-DEFINE to be honored.
43920uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43921sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43922rm -f confdef2sed.sed
43923
43924# This sed command replaces #undef with comments. This is necessary, for
43925# example, in the case of _POSIX_SOURCE, which is predefined and required
43926# on some systems where configure will not decide to define it.
43927cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43928s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43929_ACEOF
43930
43931# Break up conftest.defines because some shells have a limit on the size
43932# of here documents, and old seds have small limits too (100 cmds).
43933echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43934echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43935echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43936echo ' :' >>$CONFIG_STATUS
43937rm -f conftest.tail
43938while grep . conftest.defines >/dev/null
43939do
43940 # Write a limited-size here document to $tmp/defines.sed.
43941 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43942 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43943 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43944 # Work around the forget-to-reset-the-flag bug.
43945 echo 't clr' >>$CONFIG_STATUS
43946 echo ': clr' >>$CONFIG_STATUS
43947 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43948 echo 'CEOF
43949 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43950 rm -f $tmp/in
43951 mv $tmp/out $tmp/in
43952' >>$CONFIG_STATUS
43953 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43954 rm -f conftest.defines
43955 mv conftest.tail conftest.defines
43956done
43957rm -f conftest.defines
43958echo ' fi # grep' >>$CONFIG_STATUS
43959echo >>$CONFIG_STATUS
43960
43961# Break up conftest.undefs because some shells have a limit on the size
43962# of here documents, and old seds have small limits too (100 cmds).
43963echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43964rm -f conftest.tail
43965while grep . conftest.undefs >/dev/null
43966do
43967 # Write a limited-size here document to $tmp/undefs.sed.
43968 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43969 # Speed up: don't consider the non `#undef'
ac1cb8d3 43970 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43971 # Work around the forget-to-reset-the-flag bug.
43972 echo 't clr' >>$CONFIG_STATUS
43973 echo ': clr' >>$CONFIG_STATUS
43974 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43975 echo 'CEOF
43976 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43977 rm -f $tmp/in
43978 mv $tmp/out $tmp/in
43979' >>$CONFIG_STATUS
43980 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43981 rm -f conftest.undefs
43982 mv conftest.tail conftest.undefs
43983done
43984rm -f conftest.undefs
43985
43986cat >>$CONFIG_STATUS <<\_ACEOF
43987 # Let's still pretend it is `configure' which instantiates (i.e., don't
43988 # use $as_me), people would be surprised to read:
43989 # /* config.h. Generated by config.status. */
43990 if test x"$ac_file" = x-; then
43991 echo "/* Generated by configure. */" >$tmp/config.h
43992 else
43993 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43994 fi
43995 cat $tmp/in >>$tmp/config.h
43996 rm -f $tmp/in
43997 if test x"$ac_file" != x-; then
43998 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43999 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44000echo "$as_me: $ac_file is unchanged" >&6;}
44001 else
44002 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44003$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44004 X"$ac_file" : 'X\(//\)[^/]' \| \
44005 X"$ac_file" : 'X\(//\)$' \| \
44006 X"$ac_file" : 'X\(/\)' \| \
44007 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44008echo X"$ac_file" |
44009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44011 /^X\(\/\/\)$/{ s//\1/; q; }
44012 /^X\(\/\).*/{ s//\1/; q; }
44013 s/.*/./; q'`
44014 { if $as_mkdir_p; then
44015 mkdir -p "$ac_dir"
44016 else
44017 as_dir="$ac_dir"
44018 as_dirs=
44019 while test ! -d "$as_dir"; do
44020 as_dirs="$as_dir $as_dirs"
44021 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44023 X"$as_dir" : 'X\(//\)[^/]' \| \
44024 X"$as_dir" : 'X\(//\)$' \| \
44025 X"$as_dir" : 'X\(/\)' \| \
44026 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44027echo X"$as_dir" |
44028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44030 /^X\(\/\/\)$/{ s//\1/; q; }
44031 /^X\(\/\).*/{ s//\1/; q; }
44032 s/.*/./; q'`
44033 done
44034 test ! -n "$as_dirs" || mkdir $as_dirs
44035 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44036echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44037 { (exit 1); exit 1; }; }; }
44038
44039 rm -f $ac_file
44040 mv $tmp/config.h $ac_file
44041 fi
44042 else
44043 cat $tmp/config.h
44044 rm -f $tmp/config.h
44045 fi
44046done
44047_ACEOF
44048cat >>$CONFIG_STATUS <<\_ACEOF
44049
44050#
44051# CONFIG_COMMANDS section.
44052#
44053for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44054 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44055 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44056 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44057$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44058 X"$ac_dest" : 'X\(//\)[^/]' \| \
44059 X"$ac_dest" : 'X\(//\)$' \| \
44060 X"$ac_dest" : 'X\(/\)' \| \
44061 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44062echo X"$ac_dest" |
44063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44065 /^X\(\/\/\)$/{ s//\1/; q; }
44066 /^X\(\/\).*/{ s//\1/; q; }
44067 s/.*/./; q'`
ac1cb8d3
VS
44068 { if $as_mkdir_p; then
44069 mkdir -p "$ac_dir"
44070 else
44071 as_dir="$ac_dir"
44072 as_dirs=
44073 while test ! -d "$as_dir"; do
44074 as_dirs="$as_dir $as_dirs"
44075 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44076$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44077 X"$as_dir" : 'X\(//\)[^/]' \| \
44078 X"$as_dir" : 'X\(//\)$' \| \
44079 X"$as_dir" : 'X\(/\)' \| \
44080 . : '\(.\)' 2>/dev/null ||
44081echo X"$as_dir" |
44082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44084 /^X\(\/\/\)$/{ s//\1/; q; }
44085 /^X\(\/\).*/{ s//\1/; q; }
44086 s/.*/./; q'`
44087 done
44088 test ! -n "$as_dirs" || mkdir $as_dirs
44089 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44090echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44091 { (exit 1); exit 1; }; }; }
44092
a848cd7e
SC
44093 ac_builddir=.
44094
44095if test "$ac_dir" != .; then
44096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44097 # A "../" for each directory in $ac_dir_suffix.
44098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44099else
44100 ac_dir_suffix= ac_top_builddir=
44101fi
44102
44103case $srcdir in
44104 .) # No --srcdir option. We are building in place.
44105 ac_srcdir=.
44106 if test -z "$ac_top_builddir"; then
44107 ac_top_srcdir=.
44108 else
44109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44110 fi ;;
44111 [\\/]* | ?:[\\/]* ) # Absolute path.
44112 ac_srcdir=$srcdir$ac_dir_suffix;
44113 ac_top_srcdir=$srcdir ;;
44114 *) # Relative path.
44115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44117esac
ac1cb8d3
VS
44118
44119# Do not use `cd foo && pwd` to compute absolute paths, because
44120# the directories may not exist.
44121case `pwd` in
44122.) ac_abs_builddir="$ac_dir";;
44123*)
44124 case "$ac_dir" in
44125 .) ac_abs_builddir=`pwd`;;
44126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44127 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44128 esac;;
44129esac
44130case $ac_abs_builddir in
44131.) ac_abs_top_builddir=${ac_top_builddir}.;;
44132*)
44133 case ${ac_top_builddir}. in
44134 .) ac_abs_top_builddir=$ac_abs_builddir;;
44135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44137 esac;;
44138esac
44139case $ac_abs_builddir in
44140.) ac_abs_srcdir=$ac_srcdir;;
44141*)
44142 case $ac_srcdir in
44143 .) ac_abs_srcdir=$ac_abs_builddir;;
44144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44146 esac;;
44147esac
44148case $ac_abs_builddir in
44149.) ac_abs_top_srcdir=$ac_top_srcdir;;
44150*)
44151 case $ac_top_srcdir in
44152 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44155 esac;;
44156esac
a848cd7e
SC
44157
44158
44159 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44160echo "$as_me: executing $ac_dest commands" >&6;}
44161 case $ac_dest in
ceec2216
RL
44162 wx-config ) rm -f wx-config
44163 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
44164 ;;
a848cd7e
SC
44165 esac
44166done
44167_ACEOF
44168
44169cat >>$CONFIG_STATUS <<\_ACEOF
44170
44171{ (exit 0); exit 0; }
44172_ACEOF
44173chmod +x $CONFIG_STATUS
44174ac_clean_files=$ac_clean_files_save
44175
44176
44177# configure is writing to config.log, and then calls config.status.
44178# config.status does its own redirection, appending to config.log.
44179# Unfortunately, on DOS this fails, as config.log is still kept open
44180# by configure, so config.status won't be able to write to it; its
44181# output is simply discarded. So we exec the FD to /dev/null,
44182# effectively closing config.log, so it can be properly (re)opened and
44183# appended to by config.status. When coming back to configure, we
44184# need to make the FD available again.
44185if test "$no_create" != yes; then
44186 ac_cs_success=:
44187 ac_config_status_args=
44188 test "$silent" = yes &&
44189 ac_config_status_args="$ac_config_status_args --quiet"
44190 exec 5>/dev/null
44191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44192 exec 5>>config.log
44193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44194 # would make configure fail if this is the last instruction.
44195 $ac_cs_success || { (exit 1); exit 1; }
44196fi
44197
44198#
44199# CONFIG_SUBDIRS section.
44200#
44201if test "$no_recursion" != yes; then
44202
44203 # Remove --cache-file and --srcdir arguments so they do not pile up.
44204 ac_sub_configure_args=
44205 ac_prev=
44206 for ac_arg in $ac_configure_args; do
44207 if test -n "$ac_prev"; then
44208 ac_prev=
44209 continue
44210 fi
44211 case $ac_arg in
44212 -cache-file | --cache-file | --cache-fil | --cache-fi \
44213 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44214 ac_prev=cache_file ;;
44215 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44216 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44217 | --c=*)
44218 ;;
44219 --config-cache | -C)
44220 ;;
44221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44222 ac_prev=srcdir ;;
44223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44224 ;;
44225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44226 ac_prev=prefix ;;
44227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44228 ;;
44229 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
44230 esac
44231 done
44232
44233 # Always prepend --prefix to ensure using the same prefix
44234 # in subdir configurations.
44235 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
44236
44237 ac_popdir=`pwd`
44238 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44239
44240 # Do not complain, so a configure script can configure whichever
44241 # parts of a large source tree are present.
44242 test -d $srcdir/$ac_dir || continue
44243
44244 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44245echo "$as_me: configuring in $ac_dir" >&6;}
44246 { if $as_mkdir_p; then
44247 mkdir -p "$ac_dir"
44248 else
44249 as_dir="$ac_dir"
44250 as_dirs=
44251 while test ! -d "$as_dir"; do
44252 as_dirs="$as_dir $as_dirs"
44253 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44254$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44255 X"$as_dir" : 'X\(//\)[^/]' \| \
44256 X"$as_dir" : 'X\(//\)$' \| \
44257 X"$as_dir" : 'X\(/\)' \| \
44258 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44259echo X"$as_dir" |
44260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44262 /^X\(\/\/\)$/{ s//\1/; q; }
44263 /^X\(\/\).*/{ s//\1/; q; }
44264 s/.*/./; q'`
44265 done
44266 test ! -n "$as_dirs" || mkdir $as_dirs
44267 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44268echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44269 { (exit 1); exit 1; }; }; }
44270
44271 ac_builddir=.
44272
44273if test "$ac_dir" != .; then
44274 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44275 # A "../" for each directory in $ac_dir_suffix.
44276 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44277else
44278 ac_dir_suffix= ac_top_builddir=
44279fi
44280
44281case $srcdir in
44282 .) # No --srcdir option. We are building in place.
44283 ac_srcdir=.
44284 if test -z "$ac_top_builddir"; then
44285 ac_top_srcdir=.
44286 else
44287 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44288 fi ;;
44289 [\\/]* | ?:[\\/]* ) # Absolute path.
44290 ac_srcdir=$srcdir$ac_dir_suffix;
44291 ac_top_srcdir=$srcdir ;;
44292 *) # Relative path.
44293 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44294 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44295esac
ac1cb8d3
VS
44296
44297# Do not use `cd foo && pwd` to compute absolute paths, because
44298# the directories may not exist.
44299case `pwd` in
44300.) ac_abs_builddir="$ac_dir";;
44301*)
44302 case "$ac_dir" in
44303 .) ac_abs_builddir=`pwd`;;
44304 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44305 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44306 esac;;
44307esac
44308case $ac_abs_builddir in
44309.) ac_abs_top_builddir=${ac_top_builddir}.;;
44310*)
44311 case ${ac_top_builddir}. in
44312 .) ac_abs_top_builddir=$ac_abs_builddir;;
44313 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44314 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44315 esac;;
44316esac
44317case $ac_abs_builddir in
44318.) ac_abs_srcdir=$ac_srcdir;;
44319*)
44320 case $ac_srcdir in
44321 .) ac_abs_srcdir=$ac_abs_builddir;;
44322 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44323 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44324 esac;;
44325esac
44326case $ac_abs_builddir in
44327.) ac_abs_top_srcdir=$ac_top_srcdir;;
44328*)
44329 case $ac_top_srcdir in
44330 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44331 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44332 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44333 esac;;
44334esac
a848cd7e
SC
44335
44336
44337 cd $ac_dir
44338
44339 # Check for guested configure; otherwise get Cygnus style configure.
44340 if test -f $ac_srcdir/configure.gnu; then
44341 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
44342 elif test -f $ac_srcdir/configure; then
44343 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
44344 elif test -f $ac_srcdir/configure.in; then
44345 ac_sub_configure=$ac_configure
44346 else
44347 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44348echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44349 ac_sub_configure=
44350 fi
44351
44352 # The recursion is here.
44353 if test -n "$ac_sub_configure"; then
44354 # Make the cache file name correct relative to the subdirectory.
44355 case $cache_file in
44356 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44357 *) # Relative path.
ac1cb8d3 44358 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
44359 esac
44360
44361 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44362echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44363 # The eval makes quoting arguments work.
44364 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
44365 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
44366 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
44367echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44368 { (exit 1); exit 1; }; }
44369 fi
44370
89be85c2 44371 cd $ac_popdir
a848cd7e
SC
44372 done
44373fi
44374
44375
44376echo
77ffb593 44377echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 44378echo ""
4d4ff94c 44379echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 44380echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 44381
77ffb593
JS
44382echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
44383echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
44384echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 44385
77ffb593
JS
44386echo " What level of wxWidgets compatibility should be enabled?"
44387echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
44388echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 44389
77ffb593 44390echo " Which libraries should wxWidgets use?"
a848cd7e
SC
44391echo " jpeg ${wxUSE_LIBJPEG-none}"
44392echo " png ${wxUSE_LIBPNG-none}"
44393echo " regex ${wxUSE_REGEX}"
44394echo " tiff ${wxUSE_LIBTIFF-none}"
44395if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
44396echo " xpm ${wxUSE_LIBXPM-none}"
44397fi
44398echo " zlib ${wxUSE_ZLIB}"
44399echo " odbc ${wxUSE_ODBC}"
44400echo " expat ${wxUSE_EXPAT}"
44401echo " libmspack ${wxUSE_LIBMSPACK}"
44402echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 44403echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
44404
44405echo ""
44406