]> git.saurik.com Git - wxWidgets.git/blame - configure
Add $(TOP_SRCDIR)include for windres
[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 1661wx_release_number=4
2da0c077 1662wx_subrelease_number=1
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
480ccd21
DE
11453echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11454echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11455if test "${wx_cv_c_exto+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464
11465int
11466main ()
11467{
11468
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext conftest.$ac_ext.o
11474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; then
11479 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11480 case $ac_file in
11481 conftest.$ac_ext.o)
11482 wx_cv_c_exto="-ext o"
11483 ;;
11484 *)
11485 ;;
11486 esac
11487done
11488else
11489 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11490See \`config.log' for more details." >&5
11491echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11492See \`config.log' for more details." >&2;}
11493 { (exit 1); exit 1; }; }
11494
11495fi
11496
11497rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11498
11499fi
11500echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11501echo "${ECHO_T}$wx_cv_c_exto" >&6
11502if test "x$wx_cv_c_exto" '!=' "x"; then
11503 if test "c" = "c"; then
11504 CFLAGS="$wx_cv_c_exto $CFLAGS"
11505 fi
11506 if test "c" = "cxx"; then
11507 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11508 fi
11509fi
11510
11511if test "x$wx_cv_c_exto" '!=' "x"; then
11512 unset ac_cv_prog_cc_g
11513 ac_test_CFLAGS=${CFLAGS+set}
11514ac_save_CFLAGS=$CFLAGS
11515CFLAGS="-g"
11516echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11517echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11518if test "${ac_cv_prog_cc_g+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527
11528int
11529main ()
11530{
11531
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext
11537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11538 (eval $ac_compile) 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
11545 { ac_try='test -z "$ac_c_werror_flag"
11546 || test ! -s conftest.err'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_prog_cc_g=yes
11559else
11560 echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
11563ac_cv_prog_cc_g=no
11564fi
11565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11566fi
11567echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11568echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11569if test "$ac_test_CFLAGS" = set; then
11570 CFLAGS=$ac_save_CFLAGS
11571elif test $ac_cv_prog_cc_g = yes; then
11572 if test "$GCC" = yes; then
11573 CFLAGS="-g -O2"
11574 else
11575 CFLAGS="-g"
11576 fi
11577else
11578 if test "$GCC" = yes; then
11579 CFLAGS="-O2"
11580 else
11581 CFLAGS=
11582 fi
11583fi
11584fi
a848cd7e 11585
95986553
DE
11586ac_ext=c
11587ac_cpp='$CPP $CPPFLAGS'
11588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11590ac_compiler_gnu=$ac_cv_c_compiler_gnu
11591
11592echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11593echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11594if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603
11604int
11605main ()
11606{
11607#ifndef __MWERKS__
11608 choke me
11609#endif
11610
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext
11616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617 (eval $ac_compile) 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
89be85c2
VS
11624 { ac_try='test -z "$ac_c_werror_flag"
11625 || test ! -s conftest.err'
95986553
DE
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 bakefile_compiler_mwerks=yes
11638else
11639 echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642bakefile_compiler_mwerks=no
11643fi
11644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11645 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11646
11647fi
11648echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11649echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11650
11651MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11652ac_ext=c
11653ac_cpp='$CPP $CPPFLAGS'
11654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657
11658
9273ffba
DE
11659ac_ext=c
11660ac_cpp='$CPP $CPPFLAGS'
11661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11663ac_compiler_gnu=$ac_cv_c_compiler_gnu
11664
11665echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11666echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11667if test "${wx_cv_c_compiler_xlc+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669else
11670 cat >conftest.$ac_ext <<_ACEOF
11671/* confdefs.h. */
11672_ACEOF
11673cat confdefs.h >>conftest.$ac_ext
11674cat >>conftest.$ac_ext <<_ACEOF
11675/* end confdefs.h. */
11676
11677int
11678main ()
11679{
11680#ifndef __xlC__
11681 choke me
11682#endif
11683
11684 ;
11685 return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext
11689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -z "$ac_c_werror_flag"
11698 || test ! -s conftest.err'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest.$ac_objext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 wx_compiler_xlc=yes
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715wx_compiler_xlc=no
11716fi
11717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11718 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11719
11720fi
11721echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11722echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11723
11724XLCC=`test $wx_compiler_xlc = yes && echo yes`
11725ac_ext=c
11726ac_cpp='$CPP $CPPFLAGS'
11727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11729ac_compiler_gnu=$ac_cv_c_compiler_gnu
11730
11731
a848cd7e
SC
11732
11733ac_ext=c
11734ac_cpp='$CPP $CPPFLAGS'
11735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737ac_compiler_gnu=$ac_cv_c_compiler_gnu
11738echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11739echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11740# On Suns, sometimes $CPP names a directory.
11741if test -n "$CPP" && test -d "$CPP"; then
11742 CPP=
11743fi
11744if test -z "$CPP"; then
11745 if test "${ac_cv_prog_CPP+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 # Double quotes because CPP needs to be expanded
11749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11750 do
11751 ac_preproc_ok=false
11752for ac_c_preproc_warn_flag in '' yes
11753do
11754 # Use a header file that comes with gcc, so configuring glibc
11755 # with a fresh cross-compiler works.
11756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 # <limits.h> exists even on freestanding compilers.
11758 # On the NeXT, cc -E runs the code through the compiler's parser,
11759 # not just through cpp. "Syntax error" is here to catch this case.
11760 cat >conftest.$ac_ext <<_ACEOF
11761/* confdefs.h. */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h. */
11766#ifdef __STDC__
11767# include <limits.h>
11768#else
11769# include <assert.h>
11770#endif
ac1cb8d3 11771 Syntax error
a848cd7e
SC
11772_ACEOF
11773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11775 ac_status=$?
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } >/dev/null; then
11781 if test -s conftest.err; then
11782 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11784 else
11785 ac_cpp_err=
11786 fi
11787else
11788 ac_cpp_err=yes
11789fi
11790if test -z "$ac_cpp_err"; then
11791 :
11792else
11793 echo "$as_me: failed program was:" >&5
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 # Broken: fails on valid input.
11797continue
11798fi
11799rm -f conftest.err conftest.$ac_ext
11800
11801 # OK, works on sane cases. Now check whether non-existent headers
11802 # can be detected and how.
11803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809#include <ac_nonexistent.h>
11810_ACEOF
11811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } >/dev/null; then
11819 if test -s conftest.err; then
11820 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11822 else
11823 ac_cpp_err=
11824 fi
11825else
11826 ac_cpp_err=yes
11827fi
11828if test -z "$ac_cpp_err"; then
11829 # Broken: success on invalid input.
11830continue
11831else
11832 echo "$as_me: failed program was:" >&5
11833sed 's/^/| /' conftest.$ac_ext >&5
11834
11835 # Passes both tests.
11836ac_preproc_ok=:
11837break
11838fi
11839rm -f conftest.err conftest.$ac_ext
11840
11841done
11842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11843rm -f conftest.err conftest.$ac_ext
11844if $ac_preproc_ok; then
11845 break
11846fi
11847
11848 done
11849 ac_cv_prog_CPP=$CPP
11850
11851fi
11852 CPP=$ac_cv_prog_CPP
11853else
11854 ac_cv_prog_CPP=$CPP
11855fi
11856echo "$as_me:$LINENO: result: $CPP" >&5
11857echo "${ECHO_T}$CPP" >&6
11858ac_preproc_ok=false
11859for ac_c_preproc_warn_flag in '' yes
11860do
11861 # Use a header file that comes with gcc, so configuring glibc
11862 # with a fresh cross-compiler works.
11863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11864 # <limits.h> exists even on freestanding compilers.
11865 # On the NeXT, cc -E runs the code through the compiler's parser,
11866 # not just through cpp. "Syntax error" is here to catch this case.
11867 cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h. */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h. */
11873#ifdef __STDC__
11874# include <limits.h>
11875#else
11876# include <assert.h>
11877#endif
ac1cb8d3 11878 Syntax error
a848cd7e
SC
11879_ACEOF
11880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } >/dev/null; then
11888 if test -s conftest.err; then
11889 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11891 else
11892 ac_cpp_err=
11893 fi
11894else
11895 ac_cpp_err=yes
11896fi
11897if test -z "$ac_cpp_err"; then
11898 :
11899else
11900 echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 # Broken: fails on valid input.
11904continue
11905fi
11906rm -f conftest.err conftest.$ac_ext
11907
11908 # OK, works on sane cases. Now check whether non-existent headers
11909 # can be detected and how.
11910 cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916#include <ac_nonexistent.h>
11917_ACEOF
11918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } >/dev/null; then
11926 if test -s conftest.err; then
11927 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11929 else
11930 ac_cpp_err=
11931 fi
11932else
11933 ac_cpp_err=yes
11934fi
11935if test -z "$ac_cpp_err"; then
11936 # Broken: success on invalid input.
11937continue
11938else
11939 echo "$as_me: failed program was:" >&5
11940sed 's/^/| /' conftest.$ac_ext >&5
11941
11942 # Passes both tests.
11943ac_preproc_ok=:
11944break
11945fi
11946rm -f conftest.err conftest.$ac_ext
11947
11948done
11949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11950rm -f conftest.err conftest.$ac_ext
11951if $ac_preproc_ok; then
11952 :
11953else
11954 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11955See \`config.log' for more details." >&5
11956echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11957See \`config.log' for more details." >&2;}
11958 { (exit 1); exit 1; }; }
11959fi
11960
11961ac_ext=c
11962ac_cpp='$CPP $CPPFLAGS'
11963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966
11967
11968echo "$as_me:$LINENO: checking for egrep" >&5
11969echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11970if test "${ac_cv_prog_egrep+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972else
11973 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11974 then ac_cv_prog_egrep='grep -E'
11975 else ac_cv_prog_egrep='egrep'
11976 fi
11977fi
11978echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11979echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11980 EGREP=$ac_cv_prog_egrep
11981
11982
11983if test $ac_cv_c_compiler_gnu = yes; then
11984 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11985echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11986if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988else
11989 ac_pattern="Autoconf.*'x'"
11990 cat >conftest.$ac_ext <<_ACEOF
11991/* confdefs.h. */
11992_ACEOF
11993cat confdefs.h >>conftest.$ac_ext
11994cat >>conftest.$ac_ext <<_ACEOF
11995/* end confdefs.h. */
11996#include <sgtty.h>
11997Autoconf TIOCGETP
11998_ACEOF
11999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12000 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12001 ac_cv_prog_gcc_traditional=yes
12002else
12003 ac_cv_prog_gcc_traditional=no
12004fi
12005rm -f conftest*
12006
12007
12008 if test $ac_cv_prog_gcc_traditional = no; then
12009 cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
12015#include <termio.h>
12016Autoconf TCGETA
12017_ACEOF
12018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12019 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12020 ac_cv_prog_gcc_traditional=yes
12021fi
12022rm -f conftest*
12023
12024 fi
12025fi
12026echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12027echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12028 if test $ac_cv_prog_gcc_traditional = yes; then
12029 CC="$CC -traditional"
12030 fi
12031fi
12032
12033
12034
12035
12036ac_ext=cc
12037ac_cpp='$CXXCPP $CPPFLAGS'
12038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12041
12042
12043CXXFLAGS=${CXXFLAGS:=}
12044ac_ext=cc
12045ac_cpp='$CXXCPP $CPPFLAGS'
12046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12049if test -n "$ac_tool_prefix"; then
12050 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12051 do
12052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12053set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12054echo "$as_me:$LINENO: checking for $ac_word" >&5
12055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12056if test "${ac_cv_prog_CXX+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058else
12059 if test -n "$CXX"; then
12060 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12061else
12062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063for as_dir in $PATH
12064do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12069 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12072 fi
12073done
12074done
12075
12076fi
12077fi
12078CXX=$ac_cv_prog_CXX
12079if test -n "$CXX"; then
12080 echo "$as_me:$LINENO: result: $CXX" >&5
12081echo "${ECHO_T}$CXX" >&6
12082else
12083 echo "$as_me:$LINENO: result: no" >&5
12084echo "${ECHO_T}no" >&6
12085fi
12086
12087 test -n "$CXX" && break
12088 done
12089fi
12090if test -z "$CXX"; then
12091 ac_ct_CXX=$CXX
12092 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12093do
12094 # Extract the first word of "$ac_prog", so it can be a program name with args.
12095set dummy $ac_prog; ac_word=$2
12096echo "$as_me:$LINENO: checking for $ac_word" >&5
12097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12098if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101 if test -n "$ac_ct_CXX"; then
12102 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12103else
12104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105for as_dir in $PATH
12106do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_ac_ct_CXX="$ac_prog"
12112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12114 fi
12115done
12116done
12117
12118fi
12119fi
12120ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12121if test -n "$ac_ct_CXX"; then
12122 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12123echo "${ECHO_T}$ac_ct_CXX" >&6
12124else
12125 echo "$as_me:$LINENO: result: no" >&5
12126echo "${ECHO_T}no" >&6
12127fi
12128
12129 test -n "$ac_ct_CXX" && break
12130done
12131test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12132
12133 CXX=$ac_ct_CXX
12134fi
12135
12136
12137# Provide some information about the compiler.
12138echo "$as_me:$LINENO:" \
12139 "checking for C++ compiler version" >&5
12140ac_compiler=`set X $ac_compile; echo $2`
12141{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12142 (eval $ac_compiler --version </dev/null >&5) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }
12146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12147 (eval $ac_compiler -v </dev/null >&5) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }
12151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12152 (eval $ac_compiler -V </dev/null >&5) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }
12156
12157echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12158echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12159if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161else
12162 cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168
12169int
12170main ()
12171{
12172#ifndef __GNUC__
12173 choke me
12174#endif
12175
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12182 (eval $ac_compile) 2>conftest.er1
a848cd7e 12183 ac_status=$?
ac1cb8d3
VS
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
a848cd7e
SC
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
89be85c2
VS
12189 { ac_try='test -z "$ac_cxx_werror_flag"
12190 || test ! -s conftest.err'
ac1cb8d3
VS
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_compiler_gnu=yes
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207ac_compiler_gnu=no
12208fi
ac1cb8d3 12209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12210ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12211
12212fi
12213echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12214echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12215GXX=`test $ac_compiler_gnu = yes && echo yes`
12216ac_test_CXXFLAGS=${CXXFLAGS+set}
12217ac_save_CXXFLAGS=$CXXFLAGS
12218CXXFLAGS="-g"
12219echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12220echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12221if test "${ac_cv_prog_cxx_g+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224 cat >conftest.$ac_ext <<_ACEOF
12225/* confdefs.h. */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h. */
12230
12231int
12232main ()
12233{
12234
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext
12240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12241 (eval $ac_compile) 2>conftest.er1
a848cd7e 12242 ac_status=$?
ac1cb8d3
VS
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
a848cd7e
SC
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
89be85c2
VS
12248 { ac_try='test -z "$ac_cxx_werror_flag"
12249 || test ! -s conftest.err'
ac1cb8d3
VS
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_prog_cxx_g=yes
12262else
12263 echo "$as_me: failed program was:" >&5
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
12266ac_cv_prog_cxx_g=no
12267fi
ac1cb8d3 12268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12269fi
12270echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12271echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12272if test "$ac_test_CXXFLAGS" = set; then
12273 CXXFLAGS=$ac_save_CXXFLAGS
12274elif test $ac_cv_prog_cxx_g = yes; then
12275 if test "$GXX" = yes; then
12276 CXXFLAGS="-g -O2"
12277 else
12278 CXXFLAGS="-g"
12279 fi
12280else
12281 if test "$GXX" = yes; then
12282 CXXFLAGS="-O2"
12283 else
12284 CXXFLAGS=
12285 fi
12286fi
12287for ac_declaration in \
ac1cb8d3 12288 '' \
a848cd7e
SC
12289 'extern "C" void std::exit (int) throw (); using std::exit;' \
12290 'extern "C" void std::exit (int); using std::exit;' \
12291 'extern "C" void exit (int) throw ();' \
12292 'extern "C" void exit (int);' \
12293 'void exit (int);'
12294do
12295 cat >conftest.$ac_ext <<_ACEOF
12296/* confdefs.h. */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h. */
de59c161 12301$ac_declaration
ac1cb8d3 12302#include <stdlib.h>
a848cd7e
SC
12303int
12304main ()
12305{
12306exit (42);
12307 ;
12308 return 0;
12309}
12310_ACEOF
12311rm -f conftest.$ac_objext
12312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12313 (eval $ac_compile) 2>conftest.er1
a848cd7e 12314 ac_status=$?
ac1cb8d3
VS
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
a848cd7e
SC
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
89be85c2
VS
12320 { ac_try='test -z "$ac_cxx_werror_flag"
12321 || test ! -s conftest.err'
ac1cb8d3
VS
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; } &&
12327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 :
12334else
12335 echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338continue
12339fi
ac1cb8d3 12340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12341 cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347$ac_declaration
12348int
12349main ()
12350{
12351exit (42);
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356rm -f conftest.$ac_objext
12357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12358 (eval $ac_compile) 2>conftest.er1
a848cd7e 12359 ac_status=$?
ac1cb8d3
VS
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
a848cd7e
SC
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
89be85c2
VS
12365 { ac_try='test -z "$ac_cxx_werror_flag"
12366 || test ! -s conftest.err'
ac1cb8d3
VS
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 break
12379else
12380 echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383fi
ac1cb8d3 12384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12385done
12386rm -f conftest*
12387if test -n "$ac_declaration"; then
12388 echo '#ifdef __cplusplus' >>confdefs.h
12389 echo $ac_declaration >>confdefs.h
12390 echo '#endif' >>confdefs.h
12391fi
12392
12393ac_ext=cc
12394ac_cpp='$CXXCPP $CPPFLAGS'
12395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12398
480ccd21
DE
12399echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
12400echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12401if test "${wx_cv_cxx_exto+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403else
12404 cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
12410
12411int
12412main ()
12413{
12414
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext conftest.$ac_ext.o
12420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12421 (eval $ac_compile) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; then
12425 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12426 case $ac_file in
12427 conftest.$ac_ext.o)
12428 wx_cv_cxx_exto="-ext o"
12429 ;;
12430 *)
12431 ;;
12432 esac
12433done
12434else
12435 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12436See \`config.log' for more details." >&5
12437echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12438See \`config.log' for more details." >&2;}
12439 { (exit 1); exit 1; }; }
12440
12441fi
12442
12443rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12444
12445fi
12446echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12447echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12448if test "x$wx_cv_cxx_exto" '!=' "x"; then
12449 if test "cxx" = "c"; then
12450 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12451 fi
12452 if test "cxx" = "cxx"; then
12453 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12454 fi
12455fi
12456
12457if test "x$wx_cv_cxx_exto" '!=' "x"; then
12458 unset ac_cv_prog_cxx_g
12459 ac_test_CXXFLAGS=${CXXFLAGS+set}
12460ac_save_CXXFLAGS=$CXXFLAGS
12461CXXFLAGS="-g"
12462echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12463echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12464if test "${ac_cv_prog_cxx_g+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 cat >conftest.$ac_ext <<_ACEOF
12468/* confdefs.h. */
12469_ACEOF
12470cat confdefs.h >>conftest.$ac_ext
12471cat >>conftest.$ac_ext <<_ACEOF
12472/* end confdefs.h. */
12473
12474int
12475main ()
12476{
12477
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext
12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_cxx_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_prog_cxx_g=yes
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509ac_cv_prog_cxx_g=no
12510fi
12511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12512fi
12513echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12514echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12515if test "$ac_test_CXXFLAGS" = set; then
12516 CXXFLAGS=$ac_save_CXXFLAGS
12517elif test $ac_cv_prog_cxx_g = yes; then
12518 if test "$GXX" = yes; then
12519 CXXFLAGS="-g -O2"
12520 else
12521 CXXFLAGS="-g"
12522 fi
12523else
12524 if test "$GXX" = yes; then
12525 CXXFLAGS="-O2"
12526 else
12527 CXXFLAGS=
12528 fi
12529fi
12530fi
a848cd7e 12531
95986553
DE
12532ac_ext=cc
12533ac_cpp='$CXXCPP $CPPFLAGS'
12534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12537
12538echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12539echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12540if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542else
12543 cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549
12550int
12551main ()
12552{
12553#ifndef __MWERKS__
12554 choke me
12555#endif
12556
12557 ;
12558 return 0;
12559}
12560_ACEOF
12561rm -f conftest.$ac_objext
12562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
89be85c2
VS
12570 { ac_try='test -z "$ac_cxx_werror_flag"
12571 || test ! -s conftest.err'
95986553
DE
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest.$ac_objext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 bakefile_compiler_mwerks=yes
12584else
12585 echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588bakefile_compiler_mwerks=no
12589fi
12590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12591 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12592
12593fi
12594echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12595echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12596
12597MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12598ac_ext=cc
12599ac_cpp='$CXXCPP $CPPFLAGS'
12600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12603
12604
9273ffba
DE
12605ac_ext=cc
12606ac_cpp='$CXXCPP $CPPFLAGS'
12607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12610
12611echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12612echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12613if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
12616 cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622
12623int
12624main ()
12625{
12626#ifndef __xlC__
12627 choke me
12628#endif
12629
12630 ;
12631 return 0;
12632}
12633_ACEOF
12634rm -f conftest.$ac_objext
12635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -z "$ac_cxx_werror_flag"
12644 || test ! -s conftest.err'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest.$ac_objext'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 wx_compiler_xlc=yes
12657else
12658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
12660
12661wx_compiler_xlc=no
12662fi
12663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12664 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12665
12666fi
12667echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12668echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12669
12670XLCXX=`test $wx_compiler_xlc = yes && echo yes`
12671ac_ext=cc
12672ac_cpp='$CXXCPP $CPPFLAGS'
12673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12676
12677
95986553 12678
a848cd7e
SC
12679ac_ext=c
12680ac_cpp='$CPP $CPPFLAGS'
12681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685
a848cd7e
SC
12686if test -n "$ac_tool_prefix"; then
12687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12688set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12689echo "$as_me:$LINENO: checking for $ac_word" >&5
12690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12691if test "${ac_cv_prog_RANLIB+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693else
12694 if test -n "$RANLIB"; then
12695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12696else
12697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698for as_dir in $PATH
12699do
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12707 fi
12708done
12709done
12710
12711fi
12712fi
12713RANLIB=$ac_cv_prog_RANLIB
12714if test -n "$RANLIB"; then
12715 echo "$as_me:$LINENO: result: $RANLIB" >&5
12716echo "${ECHO_T}$RANLIB" >&6
12717else
12718 echo "$as_me:$LINENO: result: no" >&5
12719echo "${ECHO_T}no" >&6
12720fi
12721
12722fi
12723if test -z "$ac_cv_prog_RANLIB"; then
12724 ac_ct_RANLIB=$RANLIB
12725 # Extract the first word of "ranlib", so it can be a program name with args.
12726set dummy ranlib; ac_word=$2
12727echo "$as_me:$LINENO: checking for $ac_word" >&5
12728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12729if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732 if test -n "$ac_ct_RANLIB"; then
12733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12734else
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12742 ac_cv_prog_ac_ct_RANLIB="ranlib"
12743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746done
12747done
12748
12749 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12750fi
12751fi
12752ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12753if test -n "$ac_ct_RANLIB"; then
12754 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12755echo "${ECHO_T}$ac_ct_RANLIB" >&6
12756else
12757 echo "$as_me:$LINENO: result: no" >&5
12758echo "${ECHO_T}no" >&6
12759fi
12760
12761 RANLIB=$ac_ct_RANLIB
12762else
12763 RANLIB="$ac_cv_prog_RANLIB"
12764fi
12765
12766
12767# Extract the first word of "ar", so it can be a program name with args.
12768set dummy ar; ac_word=$2
12769echo "$as_me:$LINENO: checking for $ac_word" >&5
12770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12771if test "${ac_cv_prog_AR+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773else
12774 if test -n "$AR"; then
12775 ac_cv_prog_AR="$AR" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12784 ac_cv_prog_AR="ar"
12785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788done
12789done
12790
12791fi
12792fi
12793AR=$ac_cv_prog_AR
12794if test -n "$AR"; then
12795 echo "$as_me:$LINENO: result: $AR" >&5
12796echo "${ECHO_T}$AR" >&6
12797else
12798 echo "$as_me:$LINENO: result: no" >&5
12799echo "${ECHO_T}no" >&6
12800fi
12801
12802if test "x$AR" = "x" ; then
77ffb593
JS
12803 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12804echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12805 { (exit 1); exit 1; }; }
12806fi
12807
12808# Find a good install program. We prefer a C program (faster),
12809# so one script is as good as another. But avoid the broken or
12810# incompatible versions:
12811# SysV /etc/install, /usr/sbin/install
12812# SunOS /usr/etc/install
12813# IRIX /sbin/install
12814# AIX /bin/install
12815# AmigaOS /C/install, which installs bootblocks on floppy discs
12816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12819# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12820# ./install, which can be erroneously created by make from ./install.sh.
12821echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12822echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12823if test -z "$INSTALL"; then
12824if test "${ac_cv_path_install+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828for as_dir in $PATH
12829do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 # Account for people who put trailing slashes in PATH elements.
12833case $as_dir/ in
12834 ./ | .// | /cC/* | \
12835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12837 /usr/ucb/* ) ;;
12838 *)
12839 # OSF1 and SCO ODT 3.0 have their own names for install.
12840 # Don't use installbsd from OSF since it installs stuff as root
12841 # by default.
12842 for ac_prog in ginstall scoinst install; do
12843 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12844 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12845 if test $ac_prog = install &&
12846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12847 # AIX install. It has an incompatible calling convention.
12848 :
12849 elif test $ac_prog = install &&
12850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12851 # program-specific install script used by HP pwplus--don't use.
12852 :
12853 else
12854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12855 break 3
12856 fi
12857 fi
a848cd7e
SC
12858 done
12859 done
12860 ;;
12861esac
12862done
12863
12864
12865fi
12866 if test "${ac_cv_path_install+set}" = set; then
12867 INSTALL=$ac_cv_path_install
12868 else
12869 # As a last resort, use the slow shell script. We don't cache a
12870 # path for INSTALL within a source directory, because that will
12871 # break other packages using the cache if that directory is
12872 # removed, or if the path is relative.
12873 INSTALL=$ac_install_sh
12874 fi
12875fi
12876echo "$as_me:$LINENO: result: $INSTALL" >&5
12877echo "${ECHO_T}$INSTALL" >&6
12878
12879# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12880# It thinks the first close brace ends the variable substitution.
12881test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12882
12883test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12884
12885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12886
12887
12888case ${INSTALL} in
12889 /* ) # Absolute
12890 ;;
12891 ?:* ) # Drive letter, considered as absolute.
12892 ;;
12893 *)
12894 INSTALL=`pwd`/${INSTALL} ;;
12895esac
12896
a848cd7e
SC
12897
12898case "${host}" in
12899
12900 powerpc-*-darwin* )
12901 INSTALL_PROGRAM="cp -fp"
12902 INSTALL_DATA="cp -fp"
12903 ;;
12904 *)
12905 ;;
12906esac
12907
12908# Extract the first word of "strip", so it can be a program name with args.
12909set dummy strip; ac_word=$2
12910echo "$as_me:$LINENO: checking for $ac_word" >&5
12911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12912if test "${ac_cv_prog_STRIP+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914else
12915 if test -n "$STRIP"; then
12916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12917else
12918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919for as_dir in $PATH
12920do
12921 IFS=$as_save_IFS
12922 test -z "$as_dir" && as_dir=.
12923 for ac_exec_ext in '' $ac_executable_extensions; do
12924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12925 ac_cv_prog_STRIP="strip"
12926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12927 break 2
12928 fi
12929done
12930done
12931
12932 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12933fi
12934fi
12935STRIP=$ac_cv_prog_STRIP
12936if test -n "$STRIP"; then
12937 echo "$as_me:$LINENO: result: $STRIP" >&5
12938echo "${ECHO_T}$STRIP" >&6
12939else
12940 echo "$as_me:$LINENO: result: no" >&5
12941echo "${ECHO_T}no" >&6
12942fi
12943
12944
12945echo "$as_me:$LINENO: checking if make is GNU make" >&5
12946echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12947if test "${wx_cv_prog_makeisgnu+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950
12951 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12952 egrep -s GNU > /dev/null); then
12953 wx_cv_prog_makeisgnu="yes"
12954 else
12955 wx_cv_prog_makeisgnu="no"
12956 fi
12957
12958fi
12959echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12960echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12961
12962if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12963 IF_GNU_MAKE=""
12964else
12965 IF_GNU_MAKE="#"
12966fi
12967
12968
12969
12970if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12971echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12972echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12973if test "${wx_cv_prog_makevpath+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976
12977cat - << EOF > confMake
12978check : file
12979 cp \$? \$@
12980 cp \$? final_file
12981EOF
12982
12983if test ! -d sub ; then
12984 mkdir sub
12985fi
12986echo dummy > sub/file
12987${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12988RESULT=$?
12989rm -f sub/file check final_file confMake
12990rmdir sub
12991if test "$RESULT" = 0; then
12992 wx_cv_prog_makevpath="yes"
12993else
12994 wx_cv_prog_makevpath="no"
12995fi
12996
12997fi
12998echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12999echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13000
13001if test "x$wx_cv_prog_makevpath" != "xyes"; then
13002{ { echo "$as_me:$LINENO: error:
13003You need a make-utility that is able to use the variable
13004VPATH correctly.
13005If your version of make does not support VPATH correctly,
13006please install GNU-make (possibly as gmake), and start
13007configure with the following command:
13008export MAKE=gmake; ./configure for sh-type shells
13009setenv MAKE gmake; ./configure for csh-type shells
13010Also please do remember to use gmake in this case every time
13011you are trying to compile.
13012" >&5
13013echo "$as_me: error:
13014You need a make-utility that is able to use the variable
13015VPATH correctly.
13016If your version of make does not support VPATH correctly,
13017please install GNU-make (possibly as gmake), and start
13018configure with the following command:
13019export MAKE=gmake; ./configure for sh-type shells
13020setenv MAKE gmake; ./configure for csh-type shells
13021Also please do remember to use gmake in this case every time
13022you are trying to compile.
13023" >&2;}
13024 { (exit 1); exit 1; }; }
13025fi fi
13026echo "$as_me:$LINENO: checking whether ln -s works" >&5
13027echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13028LN_S=$as_ln_s
13029if test "$LN_S" = "ln -s"; then
13030 echo "$as_me:$LINENO: result: yes" >&5
13031echo "${ECHO_T}yes" >&6
13032else
13033 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13034echo "${ECHO_T}no, using $LN_S" >&6
13035fi
13036
13037
13038
9273ffba
DE
13039if test "x$XLCXX" = "xyes"; then
13040 CXXFLAGS="$CXXFLAGS -qunique"
13041fi
13042
13043
4d7ec9f1
DE
13044case "${host}" in
13045 powerpc-*-darwin* )
13046 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13047echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13048 cat >conftest.$ac_ext <<_ACEOF
13049/* confdefs.h. */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h. */
13054
13055int
13056main ()
13057{
13058#ifndef __POWERPC__
13059 choke me for lack of PowerPC
13060#endif
13061
13062 ;
13063 return 0;
13064}
13065_ACEOF
13066rm -f conftest.$ac_objext
13067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13068 (eval $ac_compile) 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try='test -z "$ac_c_werror_flag"
13076 || test ! -s conftest.err'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; } &&
13082 { ac_try='test -s conftest.$ac_objext'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 echo "$as_me:$LINENO: result: yes" >&5
13089echo "${ECHO_T}yes" >&6
13090else
13091 echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094echo "$as_me:$LINENO: result: no" >&5
13095echo "${ECHO_T}no" >&6
13096 cat >>confdefs.h <<\_ACEOF
13097#define __POWERPC__ 1
13098_ACEOF
13099
13100
13101fi
13102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13103 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13104echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111#include <CoreFoundation/CFBase.h>
13112
13113int
13114main ()
13115{
13116
13117 ;
13118 return 0;
13119}
13120_ACEOF
13121rm -f conftest.$ac_objext
13122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123 (eval $ac_compile) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 echo "$as_me:$LINENO: result: yes" >&5
13144echo "${ECHO_T}yes" >&6
13145else
13146 echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
13149echo "$as_me:$LINENO: result: no" >&5
13150echo "${ECHO_T}no" >&6
13151 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13152echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13153 cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
13159#define __CF_USE_FRAMEWORK_INCLUDES__
13160#include <CoreFoundation/CFBase.h>
13161
13162int
13163main ()
13164{
13165
13166 ;
13167 return 0;
13168}
13169_ACEOF
13170rm -f conftest.$ac_objext
13171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest.$ac_objext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13192 echo "$as_me:$LINENO: result: yes" >&5
13193echo "${ECHO_T}yes" >&6
13194 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13195else
13196 echo "$as_me: failed program was:" >&5
13197sed 's/^/| /' conftest.$ac_ext >&5
13198
13199{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13200See \`config.log' for more details." >&5
13201echo "$as_me: error: no. CoreFoundation not available.
13202See \`config.log' for more details." >&2;}
13203 { (exit 1); exit 1; }; }
13204
13205fi
13206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13207
13208
13209fi
13210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13211 ;;
13212esac
13213
a848cd7e
SC
13214case "${host}" in
13215 *-pc-os2_emx | *-pc-os2-emx )
13216 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13217 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13218echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13219if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221else
13222 ac_check_lib_save_LIBS=$LIBS
13223LIBS="-lcExt $LIBS"
13224cat >conftest.$ac_ext <<_ACEOF
13225/* confdefs.h. */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h. */
13230
13231/* Override any gcc2 internal prototype to avoid an error. */
13232#ifdef __cplusplus
13233extern "C"
13234#endif
13235/* We use char because int might match the return type of a gcc2
13236 builtin and then its argument prototype would still apply. */
13237char drand48 ();
13238int
13239main ()
13240{
13241drand48 ();
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext conftest$ac_exeext
13247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13248 (eval $ac_link) 2>conftest.er1
a848cd7e 13249 ac_status=$?
ac1cb8d3
VS
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
a848cd7e
SC
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
89be85c2
VS
13255 { ac_try='test -z "$ac_c_werror_flag"
13256 || test ! -s conftest.err'
ac1cb8d3
VS
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 ac_cv_lib_cExt_drand48=yes
13269else
13270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273ac_cv_lib_cExt_drand48=no
13274fi
ac1cb8d3
VS
13275rm -f conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13277LIBS=$ac_check_lib_save_LIBS
13278fi
13279echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13280echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13281if test $ac_cv_lib_cExt_drand48 = yes; then
13282 LIBS="$LIBS -lcExt"
13283fi
13284
13285 else
13286 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13287 fi
391a765e 13288 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
13289echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
13290if test "${wx_cv_gccversion+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293
391a765e
VS
13294 if test "$cross_compiling" = yes; then
13295 wx_cv_gccversion="EMX2"
13296
13297else
13298 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13299/* confdefs.h. */
13300_ACEOF
13301cat confdefs.h >>conftest.$ac_ext
13302cat >>conftest.$ac_ext <<_ACEOF
13303/* end confdefs.h. */
13304
391a765e 13305 #include <stdio.h>
a848cd7e 13306
391a765e
VS
13307 int main()
13308 {
13309 FILE *f=fopen("conftestval", "w");
13310 if (!f) exit(1);
13311 fprintf(f,
a848cd7e 13312 #if (__GNUC__ < 3)
391a765e
VS
13313 "EMX2"
13314 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13315 "EMX3"
13316 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13317 "Innotek5"
13318 #else
13319 "Innotek6"
a848cd7e 13320 #endif
391a765e
VS
13321 );
13322 exit(0);
13323 }
a848cd7e 13324
a848cd7e 13325_ACEOF
391a765e
VS
13326rm -f conftest$ac_exeext
13327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328 (eval $ac_link) 2>&5
ac1cb8d3
VS
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
391a765e 13337 wx_cv_gccversion=`cat conftestval`
a848cd7e 13338else
391a765e
VS
13339 echo "$as_me: program exited with status $ac_status" >&5
13340echo "$as_me: failed program was:" >&5
a848cd7e
SC
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
391a765e
VS
13343( exit $ac_status )
13344wx_cv_gccversion="EMX2"
a848cd7e 13345fi
391a765e 13346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13347fi
a848cd7e
SC
13348
13349fi
13350echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13351echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13352 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13353 LIBS="$LIBS -lstdcpp"
13354 LDFLAGS="$LDFLAGS -Zsysv-signals"
13355 else
391a765e 13356 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13357 LIBS="$LIBS -lstdcxx"
13358 LDFLAGS="$LDFLAGS -Zsysv-signals"
13359 else
13360 LIBS="$LIBS -lstdc++"
13361 fi
13362 fi
94acd38e
DE
13363 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13364 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13365echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13366 wxUSE_OMF=yes
2da0c077 13367 enable_omf=yes
94acd38e 13368 fi
a848cd7e 13369 if test "$wxUSE_OMF" = "yes"; then
2da0c077 13370 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK -Zlinker /PMTYPE:PM"
a848cd7e
SC
13371 fi
13372 ;;
13373 *)
13374
13375
13376
13377 ac_ext=cc
13378ac_cpp='$CXXCPP $CPPFLAGS'
13379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13382
13383
95986553 13384 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13385echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13386if test "${ac_cv_string_strcasecmp+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388else
13389
13390 cat >conftest.$ac_ext <<_ACEOF
13391/* confdefs.h. */
13392_ACEOF
13393cat confdefs.h >>conftest.$ac_ext
13394cat >>conftest.$ac_ext <<_ACEOF
13395/* end confdefs.h. */
13396
13397 #include <string.h>
13398
13399int
13400main ()
13401{
13402
13403 strcasecmp("foo", "bar");
13404
13405 ;
13406 return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext conftest$ac_exeext
13410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13411 (eval $ac_link) 2>conftest.er1
a848cd7e 13412 ac_status=$?
ac1cb8d3
VS
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
a848cd7e
SC
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
89be85c2
VS
13418 { ac_try='test -z "$ac_cxx_werror_flag"
13419 || test ! -s conftest.err'
ac1cb8d3
VS
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; } &&
13425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13431 ac_cv_string_strcasecmp=yes
13432else
13433 echo "$as_me: failed program was:" >&5
13434sed 's/^/| /' conftest.$ac_ext >&5
13435
13436ac_cv_string_strcasecmp=no
13437
13438fi
ac1cb8d3
VS
13439rm -f conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13441
13442fi
13443echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13444echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13445
13446 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13447 cat >>confdefs.h <<\_ACEOF
13448#define HAVE_STRCASECMP_IN_STRING_H 1
13449_ACEOF
13450
13451 else
13452 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13453echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13454if test "${ac_cv_strings_strcasecmp+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457
13458 cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464
13465 #include <strings.h>
13466
13467int
13468main ()
13469{
13470
13471 strcasecmp("foo", "bar");
13472
13473 ;
13474 return 0;
13475}
13476_ACEOF
13477rm -f conftest.$ac_objext conftest$ac_exeext
13478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13479 (eval $ac_link) 2>conftest.er1
a848cd7e 13480 ac_status=$?
ac1cb8d3
VS
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
a848cd7e
SC
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
89be85c2
VS
13486 { ac_try='test -z "$ac_cxx_werror_flag"
13487 || test ! -s conftest.err'
ac1cb8d3
VS
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_strings_strcasecmp=yes
13500else
13501 echo "$as_me: failed program was:" >&5
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
13504ac_cv_strings_strcasecmp=no
13505
13506fi
ac1cb8d3
VS
13507rm -f conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13509
13510fi
13511echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13512echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13513
0c3c69fc 13514 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13515 cat >>confdefs.h <<\_ACEOF
13516#define HAVE_STRCASECMP_IN_STRINGS_H 1
13517_ACEOF
13518
13519 else
13520 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13521echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13522 { (exit 1); exit 1; }; }
13523 fi
13524 fi
13525
13526 ac_ext=c
13527ac_cpp='$CPP $CPPFLAGS'
13528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13530ac_compiler_gnu=$ac_cv_c_compiler_gnu
13531
13532 ;;
13533esac
13534
13535
13536echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13537echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13538if test "${ac_cv_header_stdc+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541 cat >conftest.$ac_ext <<_ACEOF
13542/* confdefs.h. */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
13546/* end confdefs.h. */
13547#include <stdlib.h>
13548#include <stdarg.h>
13549#include <string.h>
13550#include <float.h>
13551
13552int
13553main ()
13554{
13555
13556 ;
13557 return 0;
13558}
13559_ACEOF
13560rm -f conftest.$ac_objext
13561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13562 (eval $ac_compile) 2>conftest.er1
a848cd7e 13563 ac_status=$?
ac1cb8d3
VS
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
a848cd7e
SC
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
89be85c2
VS
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
ac1cb8d3
VS
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_header_stdc=yes
13583else
13584 echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
13587ac_cv_header_stdc=no
13588fi
ac1cb8d3 13589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13590
13591if test $ac_cv_header_stdc = yes; then
13592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13593 cat >conftest.$ac_ext <<_ACEOF
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
13599#include <string.h>
13600
13601_ACEOF
13602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13603 $EGREP "memchr" >/dev/null 2>&1; then
13604 :
13605else
13606 ac_cv_header_stdc=no
13607fi
13608rm -f conftest*
13609
13610fi
13611
13612if test $ac_cv_header_stdc = yes; then
13613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13614 cat >conftest.$ac_ext <<_ACEOF
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
13619/* end confdefs.h. */
13620#include <stdlib.h>
13621
13622_ACEOF
13623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13624 $EGREP "free" >/dev/null 2>&1; then
13625 :
13626else
13627 ac_cv_header_stdc=no
13628fi
13629rm -f conftest*
13630
13631fi
13632
13633if test $ac_cv_header_stdc = yes; then
13634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13635 if test "$cross_compiling" = yes; then
13636 :
13637else
13638 cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644#include <ctype.h>
13645#if ((' ' & 0x0FF) == 0x020)
13646# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13647# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13648#else
13649# define ISLOWER(c) \
ac1cb8d3
VS
13650 (('a' <= (c) && (c) <= 'i') \
13651 || ('j' <= (c) && (c) <= 'r') \
13652 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13653# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13654#endif
13655
13656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13657int
13658main ()
13659{
13660 int i;
13661 for (i = 0; i < 256; i++)
13662 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13663 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13664 exit(2);
13665 exit (0);
13666}
13667_ACEOF
13668rm -f conftest$ac_exeext
13669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670 (eval $ac_link) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 :
13680else
13681 echo "$as_me: program exited with status $ac_status" >&5
13682echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685( exit $ac_status )
13686ac_cv_header_stdc=no
13687fi
ac1cb8d3 13688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13689fi
13690fi
13691fi
13692echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13693echo "${ECHO_T}$ac_cv_header_stdc" >&6
13694if test $ac_cv_header_stdc = yes; then
13695
13696cat >>confdefs.h <<\_ACEOF
13697#define STDC_HEADERS 1
13698_ACEOF
13699
13700fi
13701
13702# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13713 inttypes.h stdint.h unistd.h
a848cd7e
SC
13714do
13715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13716echo "$as_me:$LINENO: checking for $ac_header" >&5
13717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13718if eval "test \"\${$as_ac_Header+set}\" = set"; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720else
13721 cat >conftest.$ac_ext <<_ACEOF
13722/* confdefs.h. */
13723_ACEOF
13724cat confdefs.h >>conftest.$ac_ext
13725cat >>conftest.$ac_ext <<_ACEOF
13726/* end confdefs.h. */
13727$ac_includes_default
13728
13729#include <$ac_header>
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13733 (eval $ac_compile) 2>conftest.er1
a848cd7e 13734 ac_status=$?
ac1cb8d3
VS
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
a848cd7e
SC
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
89be85c2
VS
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
ac1cb8d3
VS
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 eval "$as_ac_Header=yes"
13754else
13755 echo "$as_me: failed program was:" >&5
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
13758eval "$as_ac_Header=no"
13759fi
ac1cb8d3 13760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13761fi
13762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13764if test `eval echo '${'$as_ac_Header'}'` = yes; then
13765 cat >>confdefs.h <<_ACEOF
13766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13767_ACEOF
13768
13769fi
13770
13771done
13772
13773
13774
13775for ac_header in stdlib.h
13776do
13777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13778if eval "test \"\${$as_ac_Header+set}\" = set"; then
13779 echo "$as_me:$LINENO: checking for $ac_header" >&5
13780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13781if eval "test \"\${$as_ac_Header+set}\" = set"; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783fi
13784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13786else
13787 # Is the header compilable?
13788echo "$as_me:$LINENO: checking $ac_header usability" >&5
13789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13790cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796$ac_includes_default
13797#include <$ac_header>
13798_ACEOF
13799rm -f conftest.$ac_objext
13800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13801 (eval $ac_compile) 2>conftest.er1
a848cd7e 13802 ac_status=$?
ac1cb8d3
VS
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
a848cd7e
SC
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
89be85c2
VS
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
ac1cb8d3
VS
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_header_compiler=yes
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826ac_header_compiler=no
13827fi
ac1cb8d3 13828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13830echo "${ECHO_T}$ac_header_compiler" >&6
13831
13832# Is the header present?
13833echo "$as_me:$LINENO: checking $ac_header presence" >&5
13834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13835cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h. */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
13841#include <$ac_header>
13842_ACEOF
13843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } >/dev/null; then
13851 if test -s conftest.err; then
13852 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13854 else
13855 ac_cpp_err=
13856 fi
13857else
13858 ac_cpp_err=yes
13859fi
13860if test -z "$ac_cpp_err"; then
13861 ac_header_preproc=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_header_preproc=no
13867fi
13868rm -f conftest.err conftest.$ac_ext
13869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870echo "${ECHO_T}$ac_header_preproc" >&6
13871
13872# So? What about this header?
ac1cb8d3
VS
13873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13874 yes:no: )
a848cd7e
SC
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13879 ac_header_preproc=yes
a848cd7e 13880 ;;
ac1cb8d3 13881 no:yes:* )
a848cd7e
SC
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13894 (
13895 cat <<\_ASBOX
ac1cb8d3
VS
13896## ----------------------------------------- ##
13897## Report this to wx-dev@lists.wxwidgets.org ##
13898## ----------------------------------------- ##
a848cd7e
SC
13899_ASBOX
13900 ) |
13901 sed "s/^/$as_me: WARNING: /" >&2
13902 ;;
13903esac
13904echo "$as_me:$LINENO: checking for $ac_header" >&5
13905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906if eval "test \"\${$as_ac_Header+set}\" = set"; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908else
ac1cb8d3 13909 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13910fi
13911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913
13914fi
13915if test `eval echo '${'$as_ac_Header'}'` = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13918_ACEOF
13919
13920fi
13921
13922done
13923
13924
13925for ac_header in malloc.h
13926do
13927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13928if eval "test \"\${$as_ac_Header+set}\" = set"; then
13929 echo "$as_me:$LINENO: checking for $ac_header" >&5
13930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13931if eval "test \"\${$as_ac_Header+set}\" = set"; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933fi
13934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13936else
13937 # Is the header compilable?
13938echo "$as_me:$LINENO: checking $ac_header usability" >&5
13939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13940cat >conftest.$ac_ext <<_ACEOF
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
13946$ac_includes_default
13947#include <$ac_header>
13948_ACEOF
13949rm -f conftest.$ac_objext
13950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13951 (eval $ac_compile) 2>conftest.er1
a848cd7e 13952 ac_status=$?
ac1cb8d3
VS
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
a848cd7e
SC
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
89be85c2
VS
13958 { ac_try='test -z "$ac_c_werror_flag"
13959 || test ! -s conftest.err'
ac1cb8d3
VS
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_header_compiler=yes
13972else
13973 echo "$as_me: failed program was:" >&5
13974sed 's/^/| /' conftest.$ac_ext >&5
13975
13976ac_header_compiler=no
13977fi
ac1cb8d3 13978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13980echo "${ECHO_T}$ac_header_compiler" >&6
13981
13982# Is the header present?
13983echo "$as_me:$LINENO: checking $ac_header presence" >&5
13984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13985cat >conftest.$ac_ext <<_ACEOF
13986/* confdefs.h. */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h. */
13991#include <$ac_header>
13992_ACEOF
13993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13995 ac_status=$?
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } >/dev/null; then
14001 if test -s conftest.err; then
14002 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14004 else
14005 ac_cpp_err=
14006 fi
14007else
14008 ac_cpp_err=yes
14009fi
14010if test -z "$ac_cpp_err"; then
14011 ac_header_preproc=yes
14012else
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 ac_header_preproc=no
14017fi
14018rm -f conftest.err conftest.$ac_ext
14019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14020echo "${ECHO_T}$ac_header_preproc" >&6
14021
14022# So? What about this header?
ac1cb8d3
VS
14023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14024 yes:no: )
a848cd7e
SC
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14029 ac_header_preproc=yes
a848cd7e 14030 ;;
ac1cb8d3 14031 no:yes:* )
a848cd7e
SC
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14044 (
14045 cat <<\_ASBOX
ac1cb8d3
VS
14046## ----------------------------------------- ##
14047## Report this to wx-dev@lists.wxwidgets.org ##
14048## ----------------------------------------- ##
a848cd7e
SC
14049_ASBOX
14050 ) |
14051 sed "s/^/$as_me: WARNING: /" >&2
14052 ;;
14053esac
14054echo "$as_me:$LINENO: checking for $ac_header" >&5
14055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058else
ac1cb8d3 14059 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14060fi
14061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14063
14064fi
14065if test `eval echo '${'$as_ac_Header'}'` = yes; then
14066 cat >>confdefs.h <<_ACEOF
14067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14068_ACEOF
14069
14070fi
14071
14072done
14073
14074
14075for ac_header in unistd.h
14076do
14077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14078if eval "test \"\${$as_ac_Header+set}\" = set"; then
14079 echo "$as_me:$LINENO: checking for $ac_header" >&5
14080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14081if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083fi
14084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14086else
14087 # Is the header compilable?
14088echo "$as_me:$LINENO: checking $ac_header usability" >&5
14089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14090cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096$ac_includes_default
14097#include <$ac_header>
14098_ACEOF
14099rm -f conftest.$ac_objext
14100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14101 (eval $ac_compile) 2>conftest.er1
a848cd7e 14102 ac_status=$?
ac1cb8d3
VS
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
a848cd7e
SC
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
89be85c2
VS
14108 { ac_try='test -z "$ac_c_werror_flag"
14109 || test ! -s conftest.err'
ac1cb8d3
VS
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_header_compiler=yes
14122else
14123 echo "$as_me: failed program was:" >&5
14124sed 's/^/| /' conftest.$ac_ext >&5
14125
14126ac_header_compiler=no
14127fi
ac1cb8d3 14128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14130echo "${ECHO_T}$ac_header_compiler" >&6
14131
14132# Is the header present?
14133echo "$as_me:$LINENO: checking $ac_header presence" >&5
14134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14135cat >conftest.$ac_ext <<_ACEOF
14136/* confdefs.h. */
14137_ACEOF
14138cat confdefs.h >>conftest.$ac_ext
14139cat >>conftest.$ac_ext <<_ACEOF
14140/* end confdefs.h. */
14141#include <$ac_header>
14142_ACEOF
14143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } >/dev/null; then
14151 if test -s conftest.err; then
14152 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14154 else
14155 ac_cpp_err=
14156 fi
14157else
14158 ac_cpp_err=yes
14159fi
14160if test -z "$ac_cpp_err"; then
14161 ac_header_preproc=yes
14162else
14163 echo "$as_me: failed program was:" >&5
14164sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_header_preproc=no
14167fi
14168rm -f conftest.err conftest.$ac_ext
14169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14170echo "${ECHO_T}$ac_header_preproc" >&6
14171
14172# So? What about this header?
ac1cb8d3
VS
14173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14174 yes:no: )
a848cd7e
SC
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14179 ac_header_preproc=yes
a848cd7e 14180 ;;
ac1cb8d3 14181 no:yes:* )
a848cd7e
SC
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14194 (
14195 cat <<\_ASBOX
ac1cb8d3
VS
14196## ----------------------------------------- ##
14197## Report this to wx-dev@lists.wxwidgets.org ##
14198## ----------------------------------------- ##
a848cd7e
SC
14199_ASBOX
14200 ) |
14201 sed "s/^/$as_me: WARNING: /" >&2
14202 ;;
14203esac
14204echo "$as_me:$LINENO: checking for $ac_header" >&5
14205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14206if eval "test \"\${$as_ac_Header+set}\" = set"; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
ac1cb8d3 14209 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14210fi
14211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14213
14214fi
14215if test `eval echo '${'$as_ac_Header'}'` = yes; then
14216 cat >>confdefs.h <<_ACEOF
14217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14218_ACEOF
14219
14220fi
14221
14222done
14223
14224
14225for ac_header in wchar.h
14226do
14227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14228if eval "test \"\${$as_ac_Header+set}\" = set"; then
14229 echo "$as_me:$LINENO: checking for $ac_header" >&5
14230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14231if eval "test \"\${$as_ac_Header+set}\" = set"; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233fi
14234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14236else
14237 # Is the header compilable?
14238echo "$as_me:$LINENO: checking $ac_header usability" >&5
14239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14240cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246$ac_includes_default
14247#include <$ac_header>
14248_ACEOF
14249rm -f conftest.$ac_objext
14250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14251 (eval $ac_compile) 2>conftest.er1
a848cd7e 14252 ac_status=$?
ac1cb8d3
VS
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
a848cd7e
SC
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
89be85c2
VS
14258 { ac_try='test -z "$ac_c_werror_flag"
14259 || test ! -s conftest.err'
ac1cb8d3
VS
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_header_compiler=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276ac_header_compiler=no
14277fi
ac1cb8d3 14278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14280echo "${ECHO_T}$ac_header_compiler" >&6
14281
14282# Is the header present?
14283echo "$as_me:$LINENO: checking $ac_header presence" >&5
14284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14285cat >conftest.$ac_ext <<_ACEOF
14286/* confdefs.h. */
14287_ACEOF
14288cat confdefs.h >>conftest.$ac_ext
14289cat >>conftest.$ac_ext <<_ACEOF
14290/* end confdefs.h. */
14291#include <$ac_header>
14292_ACEOF
14293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } >/dev/null; then
14301 if test -s conftest.err; then
14302 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14304 else
14305 ac_cpp_err=
14306 fi
14307else
14308 ac_cpp_err=yes
14309fi
14310if test -z "$ac_cpp_err"; then
14311 ac_header_preproc=yes
14312else
14313 echo "$as_me: failed program was:" >&5
14314sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_header_preproc=no
14317fi
14318rm -f conftest.err conftest.$ac_ext
14319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14320echo "${ECHO_T}$ac_header_preproc" >&6
14321
14322# So? What about this header?
ac1cb8d3
VS
14323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14324 yes:no: )
a848cd7e
SC
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14329 ac_header_preproc=yes
a848cd7e 14330 ;;
ac1cb8d3 14331 no:yes:* )
a848cd7e
SC
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14344 (
14345 cat <<\_ASBOX
ac1cb8d3
VS
14346## ----------------------------------------- ##
14347## Report this to wx-dev@lists.wxwidgets.org ##
14348## ----------------------------------------- ##
a848cd7e
SC
14349_ASBOX
14350 ) |
14351 sed "s/^/$as_me: WARNING: /" >&2
14352 ;;
14353esac
14354echo "$as_me:$LINENO: checking for $ac_header" >&5
14355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14356if eval "test \"\${$as_ac_Header+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358else
ac1cb8d3 14359 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14360fi
14361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14363
14364fi
14365if test `eval echo '${'$as_ac_Header'}'` = yes; then
14366 cat >>confdefs.h <<_ACEOF
14367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14368_ACEOF
14369
14370fi
14371
14372done
14373
14374
14375if test "$ac_cv_header_wchar_h" != "yes"; then
14376
14377for ac_header in wcstr.h
14378do
14379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14380if eval "test \"\${$as_ac_Header+set}\" = set"; then
14381 echo "$as_me:$LINENO: checking for $ac_header" >&5
14382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14383if eval "test \"\${$as_ac_Header+set}\" = set"; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385fi
14386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14388else
14389 # Is the header compilable?
14390echo "$as_me:$LINENO: checking $ac_header usability" >&5
14391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398$ac_includes_default
14399#include <$ac_header>
14400_ACEOF
14401rm -f conftest.$ac_objext
14402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14403 (eval $ac_compile) 2>conftest.er1
a848cd7e 14404 ac_status=$?
ac1cb8d3
VS
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
a848cd7e
SC
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
89be85c2
VS
14410 { ac_try='test -z "$ac_c_werror_flag"
14411 || test ! -s conftest.err'
ac1cb8d3
VS
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; } &&
14417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_header_compiler=yes
14424else
14425 echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
14428ac_header_compiler=no
14429fi
ac1cb8d3 14430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14432echo "${ECHO_T}$ac_header_compiler" >&6
14433
14434# Is the header present?
14435echo "$as_me:$LINENO: checking $ac_header presence" >&5
14436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14437cat >conftest.$ac_ext <<_ACEOF
14438/* confdefs.h. */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h. */
14443#include <$ac_header>
14444_ACEOF
14445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } >/dev/null; then
14453 if test -s conftest.err; then
14454 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14456 else
14457 ac_cpp_err=
14458 fi
14459else
14460 ac_cpp_err=yes
14461fi
14462if test -z "$ac_cpp_err"; then
14463 ac_header_preproc=yes
14464else
14465 echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
14468 ac_header_preproc=no
14469fi
14470rm -f conftest.err conftest.$ac_ext
14471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14472echo "${ECHO_T}$ac_header_preproc" >&6
14473
14474# So? What about this header?
ac1cb8d3
VS
14475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14476 yes:no: )
a848cd7e
SC
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14481 ac_header_preproc=yes
a848cd7e 14482 ;;
ac1cb8d3 14483 no:yes:* )
a848cd7e
SC
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14496 (
14497 cat <<\_ASBOX
ac1cb8d3
VS
14498## ----------------------------------------- ##
14499## Report this to wx-dev@lists.wxwidgets.org ##
14500## ----------------------------------------- ##
a848cd7e
SC
14501_ASBOX
14502 ) |
14503 sed "s/^/$as_me: WARNING: /" >&2
14504 ;;
14505esac
14506echo "$as_me:$LINENO: checking for $ac_header" >&5
14507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14508if eval "test \"\${$as_ac_Header+set}\" = set"; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
ac1cb8d3 14511 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14512fi
14513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14515
14516fi
14517if test `eval echo '${'$as_ac_Header'}'` = yes; then
14518 cat >>confdefs.h <<_ACEOF
14519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14520_ACEOF
14521
14522fi
14523
14524done
14525
14526fi
14527
14528
14529for ac_header in fnmatch.h
14530do
14531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14532if eval "test \"\${$as_ac_Header+set}\" = set"; then
14533 echo "$as_me:$LINENO: checking for $ac_header" >&5
14534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14535if eval "test \"\${$as_ac_Header+set}\" = set"; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537fi
14538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14540else
14541 # Is the header compilable?
14542echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14544cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550$ac_includes_default
14551#include <$ac_header>
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14555 (eval $ac_compile) 2>conftest.er1
a848cd7e 14556 ac_status=$?
ac1cb8d3
VS
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
a848cd7e
SC
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
89be85c2
VS
14562 { ac_try='test -z "$ac_c_werror_flag"
14563 || test ! -s conftest.err'
ac1cb8d3
VS
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_header_compiler=yes
14576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580ac_header_compiler=no
14581fi
ac1cb8d3 14582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14584echo "${ECHO_T}$ac_header_compiler" >&6
14585
14586# Is the header present?
14587echo "$as_me:$LINENO: checking $ac_header presence" >&5
14588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14589cat >conftest.$ac_ext <<_ACEOF
14590/* confdefs.h. */
14591_ACEOF
14592cat confdefs.h >>conftest.$ac_ext
14593cat >>conftest.$ac_ext <<_ACEOF
14594/* end confdefs.h. */
14595#include <$ac_header>
14596_ACEOF
14597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } >/dev/null; then
14605 if test -s conftest.err; then
14606 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14608 else
14609 ac_cpp_err=
14610 fi
14611else
14612 ac_cpp_err=yes
14613fi
14614if test -z "$ac_cpp_err"; then
14615 ac_header_preproc=yes
14616else
14617 echo "$as_me: failed program was:" >&5
14618sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 ac_header_preproc=no
14621fi
14622rm -f conftest.err conftest.$ac_ext
14623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14624echo "${ECHO_T}$ac_header_preproc" >&6
14625
14626# So? What about this header?
ac1cb8d3
VS
14627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14628 yes:no: )
a848cd7e
SC
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14633 ac_header_preproc=yes
a848cd7e 14634 ;;
ac1cb8d3 14635 no:yes:* )
a848cd7e
SC
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14648 (
14649 cat <<\_ASBOX
ac1cb8d3
VS
14650## ----------------------------------------- ##
14651## Report this to wx-dev@lists.wxwidgets.org ##
14652## ----------------------------------------- ##
a848cd7e
SC
14653_ASBOX
14654 ) |
14655 sed "s/^/$as_me: WARNING: /" >&2
14656 ;;
14657esac
14658echo "$as_me:$LINENO: checking for $ac_header" >&5
14659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14660if eval "test \"\${$as_ac_Header+set}\" = set"; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
ac1cb8d3 14663 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14664fi
14665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14667
14668fi
14669if test `eval echo '${'$as_ac_Header'}'` = yes; then
14670 cat >>confdefs.h <<_ACEOF
14671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14672_ACEOF
14673
14674fi
14675
14676done
14677
14678
14679if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14680
14681for ac_func in fnmatch
14682do
14683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14684echo "$as_me:$LINENO: checking for $ac_func" >&5
14685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14686if eval "test \"\${$as_ac_var+set}\" = set"; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688else
14689 cat >conftest.$ac_ext <<_ACEOF
14690/* confdefs.h. */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h. */
ac1cb8d3
VS
14695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14697#define $ac_func innocuous_$ac_func
14698
a848cd7e
SC
14699/* System header to define __stub macros and hopefully few prototypes,
14700 which can conflict with char $ac_func (); below.
14701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14702 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14703
a848cd7e
SC
14704#ifdef __STDC__
14705# include <limits.h>
14706#else
14707# include <assert.h>
14708#endif
ac1cb8d3
VS
14709
14710#undef $ac_func
14711
a848cd7e
SC
14712/* Override any gcc2 internal prototype to avoid an error. */
14713#ifdef __cplusplus
14714extern "C"
14715{
14716#endif
14717/* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14719char $ac_func ();
14720/* The GNU C library defines this for functions which it implements
14721 to always fail with ENOSYS. Some functions are actually named
14722 something starting with __ and the normal name is an alias. */
14723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14724choke me
14725#else
14726char (*f) () = $ac_func;
14727#endif
14728#ifdef __cplusplus
14729}
14730#endif
14731
14732int
14733main ()
14734{
14735return f != $ac_func;
14736 ;
14737 return 0;
14738}
14739_ACEOF
14740rm -f conftest.$ac_objext conftest$ac_exeext
14741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14742 (eval $ac_link) 2>conftest.er1
a848cd7e 14743 ac_status=$?
ac1cb8d3
VS
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
a848cd7e
SC
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
89be85c2
VS
14749 { ac_try='test -z "$ac_c_werror_flag"
14750 || test ! -s conftest.err'
ac1cb8d3
VS
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 eval "$as_ac_var=yes"
14763else
14764 echo "$as_me: failed program was:" >&5
14765sed 's/^/| /' conftest.$ac_ext >&5
14766
14767eval "$as_ac_var=no"
14768fi
ac1cb8d3
VS
14769rm -f conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14771fi
14772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14773echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14774if test `eval echo '${'$as_ac_var'}'` = yes; then
14775 cat >>confdefs.h <<_ACEOF
14776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14777_ACEOF
14778
14779fi
14780done
14781
14782fi
14783
14784
14785for ac_header in langinfo.h
14786do
14787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14788if eval "test \"\${$as_ac_Header+set}\" = set"; then
14789 echo "$as_me:$LINENO: checking for $ac_header" >&5
14790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793fi
14794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14796else
14797 # Is the header compilable?
14798echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14800cat >conftest.$ac_ext <<_ACEOF
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806$ac_includes_default
14807#include <$ac_header>
14808_ACEOF
14809rm -f conftest.$ac_objext
14810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14811 (eval $ac_compile) 2>conftest.er1
a848cd7e 14812 ac_status=$?
ac1cb8d3
VS
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
a848cd7e
SC
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
89be85c2
VS
14818 { ac_try='test -z "$ac_c_werror_flag"
14819 || test ! -s conftest.err'
ac1cb8d3
VS
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_header_compiler=yes
14832else
14833 echo "$as_me: failed program was:" >&5
14834sed 's/^/| /' conftest.$ac_ext >&5
14835
14836ac_header_compiler=no
14837fi
ac1cb8d3 14838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840echo "${ECHO_T}$ac_header_compiler" >&6
14841
14842# Is the header present?
14843echo "$as_me:$LINENO: checking $ac_header presence" >&5
14844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14845cat >conftest.$ac_ext <<_ACEOF
14846/* confdefs.h. */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h. */
14851#include <$ac_header>
14852_ACEOF
14853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } >/dev/null; then
14861 if test -s conftest.err; then
14862 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14864 else
14865 ac_cpp_err=
14866 fi
14867else
14868 ac_cpp_err=yes
14869fi
14870if test -z "$ac_cpp_err"; then
14871 ac_header_preproc=yes
14872else
14873 echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
14876 ac_header_preproc=no
14877fi
14878rm -f conftest.err conftest.$ac_ext
14879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880echo "${ECHO_T}$ac_header_preproc" >&6
14881
14882# So? What about this header?
ac1cb8d3
VS
14883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884 yes:no: )
a848cd7e
SC
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
a848cd7e 14890 ;;
ac1cb8d3 14891 no:yes:* )
a848cd7e
SC
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14904 (
14905 cat <<\_ASBOX
ac1cb8d3
VS
14906## ----------------------------------------- ##
14907## Report this to wx-dev@lists.wxwidgets.org ##
14908## ----------------------------------------- ##
a848cd7e
SC
14909_ASBOX
14910 ) |
14911 sed "s/^/$as_me: WARNING: /" >&2
14912 ;;
14913esac
14914echo "$as_me:$LINENO: checking for $ac_header" >&5
14915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14916if eval "test \"\${$as_ac_Header+set}\" = set"; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918else
ac1cb8d3 14919 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14920fi
14921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14923
14924fi
14925if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926 cat >>confdefs.h <<_ACEOF
14927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14928_ACEOF
14929
14930fi
14931
14932done
14933
14934
14935case "${host}" in
14936 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14937 if test $ac_cv_header_langinfo_h = "yes" \
14938 -a \( "$wx_cv_gccversion" = "EMX2" \
14939 -o "$wx_cv_gccversion" = "EMX3" \
14940 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
14941 LIBS="$LIBS -lintl"
14942 fi
14943 ;;
14944esac
14945
14946if test "$wxUSE_GUI" = "yes"; then
14947 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14948
14949for ac_header in X11/Xlib.h
14950do
14951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14952if eval "test \"\${$as_ac_Header+set}\" = set"; then
14953 echo "$as_me:$LINENO: checking for $ac_header" >&5
14954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14955if eval "test \"\${$as_ac_Header+set}\" = set"; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957fi
14958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14960else
14961 # Is the header compilable?
14962echo "$as_me:$LINENO: checking $ac_header usability" >&5
14963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14964cat >conftest.$ac_ext <<_ACEOF
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
14970$ac_includes_default
14971#include <$ac_header>
14972_ACEOF
14973rm -f conftest.$ac_objext
14974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14975 (eval $ac_compile) 2>conftest.er1
a848cd7e 14976 ac_status=$?
ac1cb8d3
VS
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
a848cd7e
SC
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
89be85c2
VS
14982 { ac_try='test -z "$ac_c_werror_flag"
14983 || test ! -s conftest.err'
ac1cb8d3
VS
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; } &&
14989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_header_compiler=yes
14996else
14997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000ac_header_compiler=no
15001fi
ac1cb8d3 15002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004echo "${ECHO_T}$ac_header_compiler" >&6
15005
15006# Is the header present?
15007echo "$as_me:$LINENO: checking $ac_header presence" >&5
15008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15009cat >conftest.$ac_ext <<_ACEOF
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015#include <$ac_header>
15016_ACEOF
15017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15019 ac_status=$?
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } >/dev/null; then
15025 if test -s conftest.err; then
15026 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15028 else
15029 ac_cpp_err=
15030 fi
15031else
15032 ac_cpp_err=yes
15033fi
15034if test -z "$ac_cpp_err"; then
15035 ac_header_preproc=yes
15036else
15037 echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040 ac_header_preproc=no
15041fi
15042rm -f conftest.err conftest.$ac_ext
15043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15044echo "${ECHO_T}$ac_header_preproc" >&6
15045
15046# So? What about this header?
ac1cb8d3
VS
15047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15048 yes:no: )
a848cd7e
SC
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15053 ac_header_preproc=yes
a848cd7e 15054 ;;
ac1cb8d3 15055 no:yes:* )
a848cd7e
SC
15056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15068 (
15069 cat <<\_ASBOX
ac1cb8d3
VS
15070## ----------------------------------------- ##
15071## Report this to wx-dev@lists.wxwidgets.org ##
15072## ----------------------------------------- ##
a848cd7e
SC
15073_ASBOX
15074 ) |
15075 sed "s/^/$as_me: WARNING: /" >&2
15076 ;;
15077esac
15078echo "$as_me:$LINENO: checking for $ac_header" >&5
15079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15080if eval "test \"\${$as_ac_Header+set}\" = set"; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
ac1cb8d3 15083 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15084fi
15085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15087
15088fi
15089if test `eval echo '${'$as_ac_Header'}'` = yes; then
15090 cat >>confdefs.h <<_ACEOF
15091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15092_ACEOF
15093
15094fi
15095
15096done
15097
15098
15099for ac_header in X11/XKBlib.h
15100do
15101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15102echo "$as_me:$LINENO: checking for $ac_header" >&5
15103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15104if eval "test \"\${$as_ac_Header+set}\" = set"; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106else
15107 cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
15113
15114 #if HAVE_X11_XLIB_H
15115 #include <X11/Xlib.h>
15116 #endif
15117
15118
15119#include <$ac_header>
15120_ACEOF
15121rm -f conftest.$ac_objext
15122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15123 (eval $ac_compile) 2>conftest.er1
a848cd7e 15124 ac_status=$?
ac1cb8d3
VS
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
a848cd7e
SC
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
89be85c2
VS
15130 { ac_try='test -z "$ac_c_werror_flag"
15131 || test ! -s conftest.err'
ac1cb8d3
VS
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 eval "$as_ac_Header=yes"
15144else
15145 echo "$as_me: failed program was:" >&5
15146sed 's/^/| /' conftest.$ac_ext >&5
15147
15148eval "$as_ac_Header=no"
15149fi
ac1cb8d3 15150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15151fi
15152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15154if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15157_ACEOF
15158
15159fi
15160
15161done
15162
15163 fi
15164fi
15165
15166
15167echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15168echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15169if test "${ac_cv_c_const+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
15172 cat >conftest.$ac_ext <<_ACEOF
15173/* confdefs.h. */
15174_ACEOF
15175cat confdefs.h >>conftest.$ac_ext
15176cat >>conftest.$ac_ext <<_ACEOF
15177/* end confdefs.h. */
15178
15179int
15180main ()
15181{
15182/* FIXME: Include the comments suggested by Paul. */
15183#ifndef __cplusplus
15184 /* Ultrix mips cc rejects this. */
15185 typedef int charset[2];
15186 const charset x;
15187 /* SunOS 4.1.1 cc rejects this. */
15188 char const *const *ccp;
15189 char **p;
15190 /* NEC SVR4.0.2 mips cc rejects this. */
15191 struct point {int x, y;};
15192 static struct point const zero = {0,0};
15193 /* AIX XL C 1.02.0.0 rejects this.
15194 It does not let you subtract one const X* pointer from another in
15195 an arm of an if-expression whose if-part is not a constant
15196 expression */
15197 const char *g = "string";
15198 ccp = &g + (g ? g-g : 0);
15199 /* HPUX 7.0 cc rejects these. */
15200 ++ccp;
15201 p = (char**) ccp;
15202 ccp = (char const *const *) p;
15203 { /* SCO 3.2v4 cc rejects this. */
15204 char *t;
15205 char const *s = 0 ? (char *) 0 : (char const *) 0;
15206
15207 *t++ = 0;
15208 }
15209 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15210 int x[] = {25, 17};
15211 const int *foo = &x[0];
15212 ++foo;
15213 }
15214 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15215 typedef const int *iptr;
15216 iptr p = 0;
15217 ++p;
15218 }
15219 { /* AIX XL C 1.02.0.0 rejects this saying
15220 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15221 struct s { int j; const int *ap[3]; };
15222 struct s *b; b->j = 5;
15223 }
15224 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15225 const int foo = 10;
15226 }
15227#endif
15228
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233rm -f conftest.$ac_objext
15234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15235 (eval $ac_compile) 2>conftest.er1
a848cd7e 15236 ac_status=$?
ac1cb8d3
VS
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
a848cd7e
SC
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
89be85c2
VS
15242 { ac_try='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
ac1cb8d3
VS
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_cv_c_const=yes
15256else
15257 echo "$as_me: failed program was:" >&5
15258sed 's/^/| /' conftest.$ac_ext >&5
15259
15260ac_cv_c_const=no
15261fi
ac1cb8d3 15262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15263fi
15264echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15265echo "${ECHO_T}$ac_cv_c_const" >&6
15266if test $ac_cv_c_const = no; then
15267
15268cat >>confdefs.h <<\_ACEOF
15269#define const
15270_ACEOF
15271
15272fi
15273
15274echo "$as_me:$LINENO: checking for inline" >&5
15275echo $ECHO_N "checking for inline... $ECHO_C" >&6
15276if test "${ac_cv_c_inline+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279 ac_cv_c_inline=no
15280for ac_kw in inline __inline__ __inline; do
15281 cat >conftest.$ac_ext <<_ACEOF
15282/* confdefs.h. */
15283_ACEOF
15284cat confdefs.h >>conftest.$ac_ext
15285cat >>conftest.$ac_ext <<_ACEOF
15286/* end confdefs.h. */
15287#ifndef __cplusplus
15288typedef int foo_t;
15289static $ac_kw foo_t static_foo () {return 0; }
15290$ac_kw foo_t foo () {return 0; }
15291#endif
15292
15293_ACEOF
15294rm -f conftest.$ac_objext
15295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15296 (eval $ac_compile) 2>conftest.er1
a848cd7e 15297 ac_status=$?
ac1cb8d3
VS
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
a848cd7e
SC
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
89be85c2
VS
15303 { ac_try='test -z "$ac_c_werror_flag"
15304 || test ! -s conftest.err'
ac1cb8d3
VS
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; } &&
15310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_c_inline=$ac_kw; break
15317else
15318 echo "$as_me: failed program was:" >&5
15319sed 's/^/| /' conftest.$ac_ext >&5
15320
15321fi
ac1cb8d3 15322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15323done
15324
15325fi
15326echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15327echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15328
15329
a848cd7e
SC
15330case $ac_cv_c_inline in
15331 inline | yes) ;;
ac1cb8d3
VS
15332 *)
15333 case $ac_cv_c_inline in
15334 no) ac_val=;;
15335 *) ac_val=$ac_cv_c_inline;;
15336 esac
15337 cat >>confdefs.h <<_ACEOF
15338#ifndef __cplusplus
15339#define inline $ac_val
15340#endif
de59c161 15341_ACEOF
ac1cb8d3 15342 ;;
a848cd7e
SC
15343esac
15344
15345
15346echo "$as_me:$LINENO: checking for char" >&5
15347echo $ECHO_N "checking for char... $ECHO_C" >&6
15348if test "${ac_cv_type_char+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 cat >conftest.$ac_ext <<_ACEOF
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
15356/* end confdefs.h. */
15357$ac_includes_default
15358int
15359main ()
15360{
15361if ((char *) 0)
15362 return 0;
15363if (sizeof (char))
15364 return 0;
15365 ;
15366 return 0;
15367}
15368_ACEOF
15369rm -f conftest.$ac_objext
15370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15371 (eval $ac_compile) 2>conftest.er1
a848cd7e 15372 ac_status=$?
ac1cb8d3
VS
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
a848cd7e
SC
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
89be85c2
VS
15378 { ac_try='test -z "$ac_c_werror_flag"
15379 || test ! -s conftest.err'
ac1cb8d3
VS
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } &&
15385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 ac_cv_type_char=yes
15392else
15393 echo "$as_me: failed program was:" >&5
15394sed 's/^/| /' conftest.$ac_ext >&5
15395
15396ac_cv_type_char=no
15397fi
ac1cb8d3 15398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15399fi
15400echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15401echo "${ECHO_T}$ac_cv_type_char" >&6
15402
15403echo "$as_me:$LINENO: checking size of char" >&5
15404echo $ECHO_N "checking size of char... $ECHO_C" >&6
15405if test "${ac_cv_sizeof_char+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407else
15408 if test "$ac_cv_type_char" = yes; then
15409 # The cast to unsigned long works around a bug in the HP C Compiler
15410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15412 # This bug is HP SR number 8606223364.
15413 if test "$cross_compiling" = yes; then
15414 # Depending upon the size, compute the lo and hi bounds.
15415cat >conftest.$ac_ext <<_ACEOF
15416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h. */
15421$ac_includes_default
15422int
15423main ()
15424{
15425static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15426test_array [0] = 0
15427
15428 ;
15429 return 0;
15430}
15431_ACEOF
15432rm -f conftest.$ac_objext
15433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15434 (eval $ac_compile) 2>conftest.er1
a848cd7e 15435 ac_status=$?
ac1cb8d3
VS
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
a848cd7e
SC
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
89be85c2
VS
15441 { ac_try='test -z "$ac_c_werror_flag"
15442 || test ! -s conftest.err'
ac1cb8d3
VS
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15454 ac_lo=0 ac_mid=0
15455 while :; do
15456 cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463int
15464main ()
15465{
15466static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15467test_array [0] = 0
15468
15469 ;
15470 return 0;
15471}
15472_ACEOF
15473rm -f conftest.$ac_objext
15474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15475 (eval $ac_compile) 2>conftest.er1
a848cd7e 15476 ac_status=$?
ac1cb8d3
VS
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
a848cd7e
SC
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
89be85c2
VS
15482 { ac_try='test -z "$ac_c_werror_flag"
15483 || test ! -s conftest.err'
ac1cb8d3
VS
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_hi=$ac_mid; break
15496else
15497 echo "$as_me: failed program was:" >&5
15498sed 's/^/| /' conftest.$ac_ext >&5
15499
15500ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15501 if test $ac_lo -le $ac_mid; then
15502 ac_lo= ac_hi=
15503 break
15504 fi
15505 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15506fi
ac1cb8d3 15507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15508 done
15509else
15510 echo "$as_me: failed program was:" >&5
15511sed 's/^/| /' conftest.$ac_ext >&5
15512
15513cat >conftest.$ac_ext <<_ACEOF
15514/* confdefs.h. */
15515_ACEOF
15516cat confdefs.h >>conftest.$ac_ext
15517cat >>conftest.$ac_ext <<_ACEOF
15518/* end confdefs.h. */
15519$ac_includes_default
15520int
15521main ()
15522{
15523static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15524test_array [0] = 0
15525
15526 ;
15527 return 0;
15528}
15529_ACEOF
15530rm -f conftest.$ac_objext
15531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15532 (eval $ac_compile) 2>conftest.er1
a848cd7e 15533 ac_status=$?
ac1cb8d3
VS
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
a848cd7e
SC
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
89be85c2
VS
15539 { ac_try='test -z "$ac_c_werror_flag"
15540 || test ! -s conftest.err'
ac1cb8d3
VS
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_hi=-1 ac_mid=-1
15553 while :; do
15554 cat >conftest.$ac_ext <<_ACEOF
15555/* confdefs.h. */
15556_ACEOF
15557cat confdefs.h >>conftest.$ac_ext
15558cat >>conftest.$ac_ext <<_ACEOF
15559/* end confdefs.h. */
15560$ac_includes_default
15561int
15562main ()
15563{
15564static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15565test_array [0] = 0
15566
15567 ;
15568 return 0;
15569}
15570_ACEOF
15571rm -f conftest.$ac_objext
15572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15573 (eval $ac_compile) 2>conftest.er1
a848cd7e 15574 ac_status=$?
ac1cb8d3
VS
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
a848cd7e
SC
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
89be85c2
VS
15580 { ac_try='test -z "$ac_c_werror_flag"
15581 || test ! -s conftest.err'
ac1cb8d3
VS
15582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; } &&
15587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_lo=$ac_mid; break
15594else
15595 echo "$as_me: failed program was:" >&5
15596sed 's/^/| /' conftest.$ac_ext >&5
15597
15598ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15599 if test $ac_mid -le $ac_hi; then
15600 ac_lo= ac_hi=
15601 break
15602 fi
15603 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15604fi
ac1cb8d3 15605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15606 done
15607else
15608 echo "$as_me: failed program was:" >&5
15609sed 's/^/| /' conftest.$ac_ext >&5
15610
15611ac_lo= ac_hi=
15612fi
ac1cb8d3 15613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15614fi
ac1cb8d3 15615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15616# Binary search between lo and hi bounds.
15617while test "x$ac_lo" != "x$ac_hi"; do
15618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15619 cat >conftest.$ac_ext <<_ACEOF
15620/* confdefs.h. */
15621_ACEOF
15622cat confdefs.h >>conftest.$ac_ext
15623cat >>conftest.$ac_ext <<_ACEOF
15624/* end confdefs.h. */
15625$ac_includes_default
15626int
15627main ()
15628{
15629static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15630test_array [0] = 0
15631
15632 ;
15633 return 0;
15634}
15635_ACEOF
15636rm -f conftest.$ac_objext
15637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15638 (eval $ac_compile) 2>conftest.er1
a848cd7e 15639 ac_status=$?
ac1cb8d3
VS
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
a848cd7e
SC
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
89be85c2
VS
15645 { ac_try='test -z "$ac_c_werror_flag"
15646 || test ! -s conftest.err'
ac1cb8d3
VS
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15658 ac_hi=$ac_mid
15659else
15660 echo "$as_me: failed program was:" >&5
15661sed 's/^/| /' conftest.$ac_ext >&5
15662
15663ac_lo=`expr '(' $ac_mid ')' + 1`
15664fi
ac1cb8d3 15665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15666done
15667case $ac_lo in
15668?*) ac_cv_sizeof_char=$ac_lo;;
15669'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15670See \`config.log' for more details." >&5
15671echo "$as_me: error: cannot compute sizeof (char), 77
15672See \`config.log' for more details." >&2;}
15673 { (exit 1); exit 1; }; } ;;
15674esac
15675else
15676 if test "$cross_compiling" = yes; then
89be85c2
VS
15677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15678See \`config.log' for more details." >&5
15679echo "$as_me: error: cannot run test program while cross compiling
15680See \`config.log' for more details." >&2;}
a848cd7e
SC
15681 { (exit 1); exit 1; }; }
15682else
15683 cat >conftest.$ac_ext <<_ACEOF
15684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
15689$ac_includes_default
15690long longval () { return (long) (sizeof (char)); }
15691unsigned long ulongval () { return (long) (sizeof (char)); }
15692#include <stdio.h>
15693#include <stdlib.h>
15694int
15695main ()
15696{
15697
15698 FILE *f = fopen ("conftest.val", "w");
15699 if (! f)
15700 exit (1);
15701 if (((long) (sizeof (char))) < 0)
15702 {
15703 long i = longval ();
15704 if (i != ((long) (sizeof (char))))
15705 exit (1);
15706 fprintf (f, "%ld\n", i);
15707 }
15708 else
15709 {
15710 unsigned long i = ulongval ();
15711 if (i != ((long) (sizeof (char))))
15712 exit (1);
15713 fprintf (f, "%lu\n", i);
15714 }
15715 exit (ferror (f) || fclose (f) != 0);
15716
15717 ;
15718 return 0;
15719}
15720_ACEOF
15721rm -f conftest$ac_exeext
15722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15732 ac_cv_sizeof_char=`cat conftest.val`
15733else
15734 echo "$as_me: program exited with status $ac_status" >&5
15735echo "$as_me: failed program was:" >&5
15736sed 's/^/| /' conftest.$ac_ext >&5
15737
15738( exit $ac_status )
15739{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15740See \`config.log' for more details." >&5
15741echo "$as_me: error: cannot compute sizeof (char), 77
15742See \`config.log' for more details." >&2;}
15743 { (exit 1); exit 1; }; }
15744fi
ac1cb8d3 15745rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15746fi
15747fi
15748rm -f conftest.val
15749else
15750 ac_cv_sizeof_char=0
15751fi
15752fi
15753echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15754echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15755cat >>confdefs.h <<_ACEOF
15756#define SIZEOF_CHAR $ac_cv_sizeof_char
15757_ACEOF
15758
15759
15760echo "$as_me:$LINENO: checking for short" >&5
15761echo $ECHO_N "checking for short... $ECHO_C" >&6
15762if test "${ac_cv_type_short+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764else
15765 cat >conftest.$ac_ext <<_ACEOF
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
15771$ac_includes_default
15772int
15773main ()
15774{
15775if ((short *) 0)
15776 return 0;
15777if (sizeof (short))
15778 return 0;
15779 ;
15780 return 0;
15781}
15782_ACEOF
15783rm -f conftest.$ac_objext
15784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15785 (eval $ac_compile) 2>conftest.er1
a848cd7e 15786 ac_status=$?
ac1cb8d3
VS
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
a848cd7e
SC
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
89be85c2
VS
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
ac1cb8d3
VS
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_cv_type_short=yes
15806else
15807 echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810ac_cv_type_short=no
15811fi
ac1cb8d3 15812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15813fi
15814echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15815echo "${ECHO_T}$ac_cv_type_short" >&6
15816
15817echo "$as_me:$LINENO: checking size of short" >&5
15818echo $ECHO_N "checking size of short... $ECHO_C" >&6
15819if test "${ac_cv_sizeof_short+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821else
15822 if test "$ac_cv_type_short" = yes; then
15823 # The cast to unsigned long works around a bug in the HP C Compiler
15824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15826 # This bug is HP SR number 8606223364.
15827 if test "$cross_compiling" = yes; then
15828 # Depending upon the size, compute the lo and hi bounds.
15829cat >conftest.$ac_ext <<_ACEOF
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835$ac_includes_default
15836int
15837main ()
15838{
15839static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15840test_array [0] = 0
15841
15842 ;
15843 return 0;
15844}
15845_ACEOF
15846rm -f conftest.$ac_objext
15847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15848 (eval $ac_compile) 2>conftest.er1
a848cd7e 15849 ac_status=$?
ac1cb8d3
VS
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
a848cd7e
SC
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
89be85c2
VS
15855 { ac_try='test -z "$ac_c_werror_flag"
15856 || test ! -s conftest.err'
ac1cb8d3
VS
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_lo=0 ac_mid=0
15869 while :; do
15870 cat >conftest.$ac_ext <<_ACEOF
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876$ac_includes_default
15877int
15878main ()
15879{
15880static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15881test_array [0] = 0
15882
15883 ;
15884 return 0;
15885}
15886_ACEOF
15887rm -f conftest.$ac_objext
15888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15889 (eval $ac_compile) 2>conftest.er1
a848cd7e 15890 ac_status=$?
ac1cb8d3
VS
15891 grep -v '^ *+' conftest.er1 >conftest.err
15892 rm -f conftest.er1
15893 cat conftest.err >&5
a848cd7e
SC
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
89be85c2
VS
15896 { ac_try='test -z "$ac_c_werror_flag"
15897 || test ! -s conftest.err'
ac1cb8d3
VS
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; } &&
15903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_hi=$ac_mid; break
15910else
15911 echo "$as_me: failed program was:" >&5
15912sed 's/^/| /' conftest.$ac_ext >&5
15913
15914ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15915 if test $ac_lo -le $ac_mid; then
15916 ac_lo= ac_hi=
15917 break
15918 fi
15919 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15920fi
ac1cb8d3 15921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15922 done
15923else
15924 echo "$as_me: failed program was:" >&5
15925sed 's/^/| /' conftest.$ac_ext >&5
15926
15927cat >conftest.$ac_ext <<_ACEOF
15928/* confdefs.h. */
15929_ACEOF
15930cat confdefs.h >>conftest.$ac_ext
15931cat >>conftest.$ac_ext <<_ACEOF
15932/* end confdefs.h. */
15933$ac_includes_default
15934int
15935main ()
15936{
15937static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15938test_array [0] = 0
15939
15940 ;
15941 return 0;
15942}
15943_ACEOF
15944rm -f conftest.$ac_objext
15945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15946 (eval $ac_compile) 2>conftest.er1
a848cd7e 15947 ac_status=$?
ac1cb8d3
VS
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
a848cd7e
SC
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
89be85c2
VS
15953 { ac_try='test -z "$ac_c_werror_flag"
15954 || test ! -s conftest.err'
ac1cb8d3
VS
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 ac_hi=-1 ac_mid=-1
15967 while :; do
15968 cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974$ac_includes_default
15975int
15976main ()
15977{
15978static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15979test_array [0] = 0
15980
15981 ;
15982 return 0;
15983}
15984_ACEOF
15985rm -f conftest.$ac_objext
15986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15987 (eval $ac_compile) 2>conftest.er1
a848cd7e 15988 ac_status=$?
ac1cb8d3
VS
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
a848cd7e
SC
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
89be85c2
VS
15994 { ac_try='test -z "$ac_c_werror_flag"
15995 || test ! -s conftest.err'
ac1cb8d3
VS
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_lo=$ac_mid; break
16008else
16009 echo "$as_me: failed program was:" >&5
16010sed 's/^/| /' conftest.$ac_ext >&5
16011
16012ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16013 if test $ac_mid -le $ac_hi; then
16014 ac_lo= ac_hi=
16015 break
16016 fi
16017 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16018fi
ac1cb8d3 16019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16020 done
16021else
16022 echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025ac_lo= ac_hi=
16026fi
ac1cb8d3 16027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16028fi
ac1cb8d3 16029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16030# Binary search between lo and hi bounds.
16031while test "x$ac_lo" != "x$ac_hi"; do
16032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16033 cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h. */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h. */
16039$ac_includes_default
16040int
16041main ()
16042{
16043static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16044test_array [0] = 0
16045
16046 ;
16047 return 0;
16048}
16049_ACEOF
16050rm -f conftest.$ac_objext
16051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16052 (eval $ac_compile) 2>conftest.er1
a848cd7e 16053 ac_status=$?
ac1cb8d3
VS
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
a848cd7e
SC
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
89be85c2
VS
16059 { ac_try='test -z "$ac_c_werror_flag"
16060 || test ! -s conftest.err'
ac1cb8d3
VS
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } &&
16066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 ac_hi=$ac_mid
16073else
16074 echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077ac_lo=`expr '(' $ac_mid ')' + 1`
16078fi
ac1cb8d3 16079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16080done
16081case $ac_lo in
16082?*) ac_cv_sizeof_short=$ac_lo;;
16083'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16084See \`config.log' for more details." >&5
16085echo "$as_me: error: cannot compute sizeof (short), 77
16086See \`config.log' for more details." >&2;}
16087 { (exit 1); exit 1; }; } ;;
16088esac
16089else
16090 if test "$cross_compiling" = yes; then
89be85c2
VS
16091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16092See \`config.log' for more details." >&5
16093echo "$as_me: error: cannot run test program while cross compiling
16094See \`config.log' for more details." >&2;}
a848cd7e
SC
16095 { (exit 1); exit 1; }; }
16096else
16097 cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104long longval () { return (long) (sizeof (short)); }
16105unsigned long ulongval () { return (long) (sizeof (short)); }
16106#include <stdio.h>
16107#include <stdlib.h>
16108int
16109main ()
16110{
16111
16112 FILE *f = fopen ("conftest.val", "w");
16113 if (! f)
16114 exit (1);
16115 if (((long) (sizeof (short))) < 0)
16116 {
16117 long i = longval ();
16118 if (i != ((long) (sizeof (short))))
16119 exit (1);
16120 fprintf (f, "%ld\n", i);
16121 }
16122 else
16123 {
16124 unsigned long i = ulongval ();
16125 if (i != ((long) (sizeof (short))))
16126 exit (1);
16127 fprintf (f, "%lu\n", i);
16128 }
16129 exit (ferror (f) || fclose (f) != 0);
16130
16131 ;
16132 return 0;
16133}
16134_ACEOF
16135rm -f conftest$ac_exeext
16136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_cv_sizeof_short=`cat conftest.val`
16147else
16148 echo "$as_me: program exited with status $ac_status" >&5
16149echo "$as_me: failed program was:" >&5
16150sed 's/^/| /' conftest.$ac_ext >&5
16151
16152( exit $ac_status )
16153{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16154See \`config.log' for more details." >&5
16155echo "$as_me: error: cannot compute sizeof (short), 77
16156See \`config.log' for more details." >&2;}
16157 { (exit 1); exit 1; }; }
16158fi
ac1cb8d3 16159rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16160fi
16161fi
16162rm -f conftest.val
16163else
16164 ac_cv_sizeof_short=0
16165fi
16166fi
16167echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16168echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16169cat >>confdefs.h <<_ACEOF
16170#define SIZEOF_SHORT $ac_cv_sizeof_short
16171_ACEOF
16172
16173
16174echo "$as_me:$LINENO: checking for void *" >&5
16175echo $ECHO_N "checking for void *... $ECHO_C" >&6
16176if test "${ac_cv_type_void_p+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 cat >conftest.$ac_ext <<_ACEOF
16180/* confdefs.h. */
16181_ACEOF
16182cat confdefs.h >>conftest.$ac_ext
16183cat >>conftest.$ac_ext <<_ACEOF
16184/* end confdefs.h. */
16185$ac_includes_default
16186int
16187main ()
16188{
16189if ((void * *) 0)
16190 return 0;
16191if (sizeof (void *))
16192 return 0;
16193 ;
16194 return 0;
16195}
16196_ACEOF
16197rm -f conftest.$ac_objext
16198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16199 (eval $ac_compile) 2>conftest.er1
a848cd7e 16200 ac_status=$?
ac1cb8d3
VS
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
a848cd7e
SC
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
89be85c2
VS
16206 { ac_try='test -z "$ac_c_werror_flag"
16207 || test ! -s conftest.err'
ac1cb8d3
VS
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_type_void_p=yes
16220else
16221 echo "$as_me: failed program was:" >&5
16222sed 's/^/| /' conftest.$ac_ext >&5
16223
16224ac_cv_type_void_p=no
16225fi
ac1cb8d3 16226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16227fi
16228echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16229echo "${ECHO_T}$ac_cv_type_void_p" >&6
16230
16231echo "$as_me:$LINENO: checking size of void *" >&5
16232echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16233if test "${ac_cv_sizeof_void_p+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16235else
16236 if test "$ac_cv_type_void_p" = yes; then
16237 # The cast to unsigned long works around a bug in the HP C Compiler
16238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16240 # This bug is HP SR number 8606223364.
16241 if test "$cross_compiling" = yes; then
16242 # Depending upon the size, compute the lo and hi bounds.
16243cat >conftest.$ac_ext <<_ACEOF
16244/* confdefs.h. */
16245_ACEOF
16246cat confdefs.h >>conftest.$ac_ext
16247cat >>conftest.$ac_ext <<_ACEOF
16248/* end confdefs.h. */
16249$ac_includes_default
16250int
16251main ()
16252{
16253static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16254test_array [0] = 0
16255
16256 ;
16257 return 0;
16258}
16259_ACEOF
16260rm -f conftest.$ac_objext
16261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16262 (eval $ac_compile) 2>conftest.er1
a848cd7e 16263 ac_status=$?
ac1cb8d3
VS
16264 grep -v '^ *+' conftest.er1 >conftest.err
16265 rm -f conftest.er1
16266 cat conftest.err >&5
a848cd7e
SC
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
89be85c2
VS
16269 { ac_try='test -z "$ac_c_werror_flag"
16270 || test ! -s conftest.err'
ac1cb8d3
VS
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; } &&
16276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; }; then
16282 ac_lo=0 ac_mid=0
16283 while :; do
16284 cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290$ac_includes_default
16291int
16292main ()
16293{
16294static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16295test_array [0] = 0
16296
16297 ;
16298 return 0;
16299}
16300_ACEOF
16301rm -f conftest.$ac_objext
16302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16303 (eval $ac_compile) 2>conftest.er1
a848cd7e 16304 ac_status=$?
ac1cb8d3
VS
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
a848cd7e
SC
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
89be85c2
VS
16310 { ac_try='test -z "$ac_c_werror_flag"
16311 || test ! -s conftest.err'
ac1cb8d3
VS
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_hi=$ac_mid; break
16324else
16325 echo "$as_me: failed program was:" >&5
16326sed 's/^/| /' conftest.$ac_ext >&5
16327
16328ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16329 if test $ac_lo -le $ac_mid; then
16330 ac_lo= ac_hi=
16331 break
16332 fi
16333 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16334fi
ac1cb8d3 16335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16336 done
16337else
16338 echo "$as_me: failed program was:" >&5
16339sed 's/^/| /' conftest.$ac_ext >&5
16340
16341cat >conftest.$ac_ext <<_ACEOF
16342/* confdefs.h. */
16343_ACEOF
16344cat confdefs.h >>conftest.$ac_ext
16345cat >>conftest.$ac_ext <<_ACEOF
16346/* end confdefs.h. */
16347$ac_includes_default
16348int
16349main ()
16350{
16351static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16352test_array [0] = 0
16353
16354 ;
16355 return 0;
16356}
16357_ACEOF
16358rm -f conftest.$ac_objext
16359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16360 (eval $ac_compile) 2>conftest.er1
a848cd7e 16361 ac_status=$?
ac1cb8d3
VS
16362 grep -v '^ *+' conftest.er1 >conftest.err
16363 rm -f conftest.er1
16364 cat conftest.err >&5
a848cd7e
SC
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
89be85c2
VS
16367 { ac_try='test -z "$ac_c_werror_flag"
16368 || test ! -s conftest.err'
ac1cb8d3
VS
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_hi=-1 ac_mid=-1
16381 while :; do
16382 cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388$ac_includes_default
16389int
16390main ()
16391{
16392static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16393test_array [0] = 0
16394
16395 ;
16396 return 0;
16397}
16398_ACEOF
16399rm -f conftest.$ac_objext
16400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16401 (eval $ac_compile) 2>conftest.er1
a848cd7e 16402 ac_status=$?
ac1cb8d3
VS
16403 grep -v '^ *+' conftest.er1 >conftest.err
16404 rm -f conftest.er1
16405 cat conftest.err >&5
a848cd7e
SC
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
89be85c2
VS
16408 { ac_try='test -z "$ac_c_werror_flag"
16409 || test ! -s conftest.err'
ac1cb8d3
VS
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_lo=$ac_mid; break
16422else
16423 echo "$as_me: failed program was:" >&5
16424sed 's/^/| /' conftest.$ac_ext >&5
16425
16426ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16427 if test $ac_mid -le $ac_hi; then
16428 ac_lo= ac_hi=
16429 break
16430 fi
16431 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16432fi
ac1cb8d3 16433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16434 done
16435else
16436 echo "$as_me: failed program was:" >&5
16437sed 's/^/| /' conftest.$ac_ext >&5
16438
16439ac_lo= ac_hi=
16440fi
ac1cb8d3 16441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16442fi
ac1cb8d3 16443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16444# Binary search between lo and hi bounds.
16445while test "x$ac_lo" != "x$ac_hi"; do
16446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16447 cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453$ac_includes_default
16454int
16455main ()
16456{
16457static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16458test_array [0] = 0
16459
16460 ;
16461 return 0;
16462}
16463_ACEOF
16464rm -f conftest.$ac_objext
16465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16466 (eval $ac_compile) 2>conftest.er1
a848cd7e 16467 ac_status=$?
ac1cb8d3
VS
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
a848cd7e
SC
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
89be85c2
VS
16473 { ac_try='test -z "$ac_c_werror_flag"
16474 || test ! -s conftest.err'
ac1cb8d3
VS
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_hi=$ac_mid
16487else
16488 echo "$as_me: failed program was:" >&5
16489sed 's/^/| /' conftest.$ac_ext >&5
16490
16491ac_lo=`expr '(' $ac_mid ')' + 1`
16492fi
ac1cb8d3 16493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16494done
16495case $ac_lo in
16496?*) ac_cv_sizeof_void_p=$ac_lo;;
16497'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16498See \`config.log' for more details." >&5
16499echo "$as_me: error: cannot compute sizeof (void *), 77
16500See \`config.log' for more details." >&2;}
16501 { (exit 1); exit 1; }; } ;;
16502esac
16503else
16504 if test "$cross_compiling" = yes; then
89be85c2
VS
16505 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16506See \`config.log' for more details." >&5
16507echo "$as_me: error: cannot run test program while cross compiling
16508See \`config.log' for more details." >&2;}
a848cd7e
SC
16509 { (exit 1); exit 1; }; }
16510else
16511 cat >conftest.$ac_ext <<_ACEOF
16512/* confdefs.h. */
16513_ACEOF
16514cat confdefs.h >>conftest.$ac_ext
16515cat >>conftest.$ac_ext <<_ACEOF
16516/* end confdefs.h. */
16517$ac_includes_default
16518long longval () { return (long) (sizeof (void *)); }
16519unsigned long ulongval () { return (long) (sizeof (void *)); }
16520#include <stdio.h>
16521#include <stdlib.h>
16522int
16523main ()
16524{
16525
16526 FILE *f = fopen ("conftest.val", "w");
16527 if (! f)
16528 exit (1);
16529 if (((long) (sizeof (void *))) < 0)
16530 {
16531 long i = longval ();
16532 if (i != ((long) (sizeof (void *))))
16533 exit (1);
16534 fprintf (f, "%ld\n", i);
16535 }
16536 else
16537 {
16538 unsigned long i = ulongval ();
16539 if (i != ((long) (sizeof (void *))))
16540 exit (1);
16541 fprintf (f, "%lu\n", i);
16542 }
16543 exit (ferror (f) || fclose (f) != 0);
16544
16545 ;
16546 return 0;
16547}
16548_ACEOF
16549rm -f conftest$ac_exeext
16550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16551 (eval $ac_link) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_cv_sizeof_void_p=`cat conftest.val`
16561else
16562 echo "$as_me: program exited with status $ac_status" >&5
16563echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566( exit $ac_status )
16567{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16568See \`config.log' for more details." >&5
16569echo "$as_me: error: cannot compute sizeof (void *), 77
16570See \`config.log' for more details." >&2;}
16571 { (exit 1); exit 1; }; }
16572fi
ac1cb8d3 16573rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16574fi
16575fi
16576rm -f conftest.val
16577else
16578 ac_cv_sizeof_void_p=0
16579fi
16580fi
16581echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16582echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16583cat >>confdefs.h <<_ACEOF
16584#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16585_ACEOF
16586
16587
16588echo "$as_me:$LINENO: checking for int" >&5
16589echo $ECHO_N "checking for int... $ECHO_C" >&6
16590if test "${ac_cv_type_int+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592else
16593 cat >conftest.$ac_ext <<_ACEOF
16594/* confdefs.h. */
16595_ACEOF
16596cat confdefs.h >>conftest.$ac_ext
16597cat >>conftest.$ac_ext <<_ACEOF
16598/* end confdefs.h. */
16599$ac_includes_default
16600int
16601main ()
16602{
16603if ((int *) 0)
16604 return 0;
16605if (sizeof (int))
16606 return 0;
16607 ;
16608 return 0;
16609}
16610_ACEOF
16611rm -f conftest.$ac_objext
16612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16613 (eval $ac_compile) 2>conftest.er1
a848cd7e 16614 ac_status=$?
ac1cb8d3
VS
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
a848cd7e
SC
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
89be85c2
VS
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
ac1cb8d3
VS
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_cv_type_int=yes
16634else
16635 echo "$as_me: failed program was:" >&5
16636sed 's/^/| /' conftest.$ac_ext >&5
16637
16638ac_cv_type_int=no
16639fi
ac1cb8d3 16640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16641fi
16642echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16643echo "${ECHO_T}$ac_cv_type_int" >&6
16644
16645echo "$as_me:$LINENO: checking size of int" >&5
16646echo $ECHO_N "checking size of int... $ECHO_C" >&6
16647if test "${ac_cv_sizeof_int+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649else
16650 if test "$ac_cv_type_int" = yes; then
16651 # The cast to unsigned long works around a bug in the HP C Compiler
16652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16654 # This bug is HP SR number 8606223364.
16655 if test "$cross_compiling" = yes; then
16656 # Depending upon the size, compute the lo and hi bounds.
16657cat >conftest.$ac_ext <<_ACEOF
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
16663$ac_includes_default
16664int
16665main ()
16666{
16667static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16668test_array [0] = 0
16669
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext
16675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16676 (eval $ac_compile) 2>conftest.er1
a848cd7e 16677 ac_status=$?
ac1cb8d3
VS
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
a848cd7e
SC
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
89be85c2
VS
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
ac1cb8d3
VS
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 ac_lo=0 ac_mid=0
16697 while :; do
16698 cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
16704$ac_includes_default
16705int
16706main ()
16707{
16708static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16709test_array [0] = 0
16710
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16717 (eval $ac_compile) 2>conftest.er1
a848cd7e 16718 ac_status=$?
ac1cb8d3
VS
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
a848cd7e
SC
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
89be85c2
VS
16724 { ac_try='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
ac1cb8d3
VS
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 ac_hi=$ac_mid; break
16738else
16739 echo "$as_me: failed program was:" >&5
16740sed 's/^/| /' conftest.$ac_ext >&5
16741
16742ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16743 if test $ac_lo -le $ac_mid; then
16744 ac_lo= ac_hi=
16745 break
16746 fi
16747 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16748fi
ac1cb8d3 16749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16750 done
16751else
16752 echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755cat >conftest.$ac_ext <<_ACEOF
16756/* confdefs.h. */
16757_ACEOF
16758cat confdefs.h >>conftest.$ac_ext
16759cat >>conftest.$ac_ext <<_ACEOF
16760/* end confdefs.h. */
16761$ac_includes_default
16762int
16763main ()
16764{
16765static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16766test_array [0] = 0
16767
16768 ;
16769 return 0;
16770}
16771_ACEOF
16772rm -f conftest.$ac_objext
16773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16774 (eval $ac_compile) 2>conftest.er1
a848cd7e 16775 ac_status=$?
ac1cb8d3
VS
16776 grep -v '^ *+' conftest.er1 >conftest.err
16777 rm -f conftest.er1
16778 cat conftest.err >&5
a848cd7e
SC
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
89be85c2
VS
16781 { ac_try='test -z "$ac_c_werror_flag"
16782 || test ! -s conftest.err'
ac1cb8d3
VS
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 ac_hi=-1 ac_mid=-1
16795 while :; do
16796 cat >conftest.$ac_ext <<_ACEOF
16797/* confdefs.h. */
16798_ACEOF
16799cat confdefs.h >>conftest.$ac_ext
16800cat >>conftest.$ac_ext <<_ACEOF
16801/* end confdefs.h. */
16802$ac_includes_default
16803int
16804main ()
16805{
16806static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16807test_array [0] = 0
16808
16809 ;
16810 return 0;
16811}
16812_ACEOF
16813rm -f conftest.$ac_objext
16814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16815 (eval $ac_compile) 2>conftest.er1
a848cd7e 16816 ac_status=$?
ac1cb8d3
VS
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
a848cd7e
SC
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
89be85c2
VS
16822 { ac_try='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
ac1cb8d3
VS
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_lo=$ac_mid; break
16836else
16837 echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16841 if test $ac_mid -le $ac_hi; then
16842 ac_lo= ac_hi=
16843 break
16844 fi
16845 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16846fi
ac1cb8d3 16847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16848 done
16849else
16850 echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853ac_lo= ac_hi=
16854fi
ac1cb8d3 16855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16856fi
ac1cb8d3 16857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16858# Binary search between lo and hi bounds.
16859while test "x$ac_lo" != "x$ac_hi"; do
16860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16861 cat >conftest.$ac_ext <<_ACEOF
16862/* confdefs.h. */
16863_ACEOF
16864cat confdefs.h >>conftest.$ac_ext
16865cat >>conftest.$ac_ext <<_ACEOF
16866/* end confdefs.h. */
16867$ac_includes_default
16868int
16869main ()
16870{
16871static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16872test_array [0] = 0
16873
16874 ;
16875 return 0;
16876}
16877_ACEOF
16878rm -f conftest.$ac_objext
16879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16880 (eval $ac_compile) 2>conftest.er1
a848cd7e 16881 ac_status=$?
ac1cb8d3
VS
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
a848cd7e
SC
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
89be85c2
VS
16887 { ac_try='test -z "$ac_c_werror_flag"
16888 || test ! -s conftest.err'
ac1cb8d3
VS
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; } &&
16894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_hi=$ac_mid
16901else
16902 echo "$as_me: failed program was:" >&5
16903sed 's/^/| /' conftest.$ac_ext >&5
16904
16905ac_lo=`expr '(' $ac_mid ')' + 1`
16906fi
ac1cb8d3 16907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16908done
16909case $ac_lo in
16910?*) ac_cv_sizeof_int=$ac_lo;;
16911'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16912See \`config.log' for more details." >&5
16913echo "$as_me: error: cannot compute sizeof (int), 77
16914See \`config.log' for more details." >&2;}
16915 { (exit 1); exit 1; }; } ;;
16916esac
16917else
16918 if test "$cross_compiling" = yes; then
89be85c2
VS
16919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16920See \`config.log' for more details." >&5
16921echo "$as_me: error: cannot run test program while cross compiling
16922See \`config.log' for more details." >&2;}
a848cd7e
SC
16923 { (exit 1); exit 1; }; }
16924else
16925 cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
16931$ac_includes_default
16932long longval () { return (long) (sizeof (int)); }
16933unsigned long ulongval () { return (long) (sizeof (int)); }
16934#include <stdio.h>
16935#include <stdlib.h>
16936int
16937main ()
16938{
16939
16940 FILE *f = fopen ("conftest.val", "w");
16941 if (! f)
16942 exit (1);
16943 if (((long) (sizeof (int))) < 0)
16944 {
16945 long i = longval ();
16946 if (i != ((long) (sizeof (int))))
16947 exit (1);
16948 fprintf (f, "%ld\n", i);
16949 }
16950 else
16951 {
16952 unsigned long i = ulongval ();
16953 if (i != ((long) (sizeof (int))))
16954 exit (1);
16955 fprintf (f, "%lu\n", i);
16956 }
16957 exit (ferror (f) || fclose (f) != 0);
16958
16959 ;
16960 return 0;
16961}
16962_ACEOF
16963rm -f conftest$ac_exeext
16964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965 (eval $ac_link) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_cv_sizeof_int=`cat conftest.val`
16975else
16976 echo "$as_me: program exited with status $ac_status" >&5
16977echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980( exit $ac_status )
16981{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16982See \`config.log' for more details." >&5
16983echo "$as_me: error: cannot compute sizeof (int), 77
16984See \`config.log' for more details." >&2;}
16985 { (exit 1); exit 1; }; }
16986fi
ac1cb8d3 16987rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16988fi
16989fi
16990rm -f conftest.val
16991else
16992 ac_cv_sizeof_int=0
16993fi
16994fi
16995echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16996echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16997cat >>confdefs.h <<_ACEOF
16998#define SIZEOF_INT $ac_cv_sizeof_int
16999_ACEOF
17000
17001
17002echo "$as_me:$LINENO: checking for long" >&5
17003echo $ECHO_N "checking for long... $ECHO_C" >&6
17004if test "${ac_cv_type_long+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006else
17007 cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
17013$ac_includes_default
17014int
17015main ()
17016{
17017if ((long *) 0)
17018 return 0;
17019if (sizeof (long))
17020 return 0;
17021 ;
17022 return 0;
17023}
17024_ACEOF
17025rm -f conftest.$ac_objext
17026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17027 (eval $ac_compile) 2>conftest.er1
a848cd7e 17028 ac_status=$?
ac1cb8d3
VS
17029 grep -v '^ *+' conftest.er1 >conftest.err
17030 rm -f conftest.er1
17031 cat conftest.err >&5
a848cd7e
SC
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
89be85c2
VS
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
ac1cb8d3
VS
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 ac_cv_type_long=yes
17048else
17049 echo "$as_me: failed program was:" >&5
17050sed 's/^/| /' conftest.$ac_ext >&5
17051
17052ac_cv_type_long=no
17053fi
ac1cb8d3 17054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17055fi
17056echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17057echo "${ECHO_T}$ac_cv_type_long" >&6
17058
17059echo "$as_me:$LINENO: checking size of long" >&5
17060echo $ECHO_N "checking size of long... $ECHO_C" >&6
17061if test "${ac_cv_sizeof_long+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063else
17064 if test "$ac_cv_type_long" = yes; then
17065 # The cast to unsigned long works around a bug in the HP C Compiler
17066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17068 # This bug is HP SR number 8606223364.
17069 if test "$cross_compiling" = yes; then
17070 # Depending upon the size, compute the lo and hi bounds.
17071cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
17077$ac_includes_default
17078int
17079main ()
17080{
17081static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17082test_array [0] = 0
17083
17084 ;
17085 return 0;
17086}
17087_ACEOF
17088rm -f conftest.$ac_objext
17089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17090 (eval $ac_compile) 2>conftest.er1
a848cd7e 17091 ac_status=$?
ac1cb8d3
VS
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
a848cd7e
SC
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
89be85c2
VS
17097 { ac_try='test -z "$ac_c_werror_flag"
17098 || test ! -s conftest.err'
ac1cb8d3
VS
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 ac_lo=0 ac_mid=0
17111 while :; do
17112 cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118$ac_includes_default
17119int
17120main ()
17121{
17122static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17123test_array [0] = 0
17124
17125 ;
17126 return 0;
17127}
17128_ACEOF
17129rm -f conftest.$ac_objext
17130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17131 (eval $ac_compile) 2>conftest.er1
a848cd7e 17132 ac_status=$?
ac1cb8d3
VS
17133 grep -v '^ *+' conftest.er1 >conftest.err
17134 rm -f conftest.er1
17135 cat conftest.err >&5
a848cd7e
SC
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
89be85c2
VS
17138 { ac_try='test -z "$ac_c_werror_flag"
17139 || test ! -s conftest.err'
ac1cb8d3
VS
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; }; then
17151 ac_hi=$ac_mid; break
17152else
17153 echo "$as_me: failed program was:" >&5
17154sed 's/^/| /' conftest.$ac_ext >&5
17155
17156ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17157 if test $ac_lo -le $ac_mid; then
17158 ac_lo= ac_hi=
17159 break
17160 fi
17161 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17162fi
ac1cb8d3 17163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17164 done
17165else
17166 echo "$as_me: failed program was:" >&5
17167sed 's/^/| /' conftest.$ac_ext >&5
17168
17169cat >conftest.$ac_ext <<_ACEOF
17170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
17175$ac_includes_default
17176int
17177main ()
17178{
17179static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17180test_array [0] = 0
17181
17182 ;
17183 return 0;
17184}
17185_ACEOF
17186rm -f conftest.$ac_objext
17187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17188 (eval $ac_compile) 2>conftest.er1
a848cd7e 17189 ac_status=$?
ac1cb8d3
VS
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
a848cd7e
SC
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
89be85c2
VS
17195 { ac_try='test -z "$ac_c_werror_flag"
17196 || test ! -s conftest.err'
ac1cb8d3
VS
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 ac_hi=-1 ac_mid=-1
17209 while :; do
17210 cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216$ac_includes_default
17217int
17218main ()
17219{
17220static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17221test_array [0] = 0
17222
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext
17228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17229 (eval $ac_compile) 2>conftest.er1
a848cd7e 17230 ac_status=$?
ac1cb8d3
VS
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
a848cd7e
SC
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
89be85c2
VS
17236 { ac_try='test -z "$ac_c_werror_flag"
17237 || test ! -s conftest.err'
ac1cb8d3
VS
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 ac_lo=$ac_mid; break
17250else
17251 echo "$as_me: failed program was:" >&5
17252sed 's/^/| /' conftest.$ac_ext >&5
17253
17254ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17255 if test $ac_mid -le $ac_hi; then
17256 ac_lo= ac_hi=
17257 break
17258 fi
17259 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17260fi
ac1cb8d3 17261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17262 done
17263else
17264 echo "$as_me: failed program was:" >&5
17265sed 's/^/| /' conftest.$ac_ext >&5
17266
17267ac_lo= ac_hi=
17268fi
ac1cb8d3 17269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17270fi
ac1cb8d3 17271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17272# Binary search between lo and hi bounds.
17273while test "x$ac_lo" != "x$ac_hi"; do
17274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17275 cat >conftest.$ac_ext <<_ACEOF
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
17281$ac_includes_default
17282int
17283main ()
17284{
17285static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17286test_array [0] = 0
17287
17288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext
17293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17294 (eval $ac_compile) 2>conftest.er1
a848cd7e 17295 ac_status=$?
ac1cb8d3
VS
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
a848cd7e
SC
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
89be85c2
VS
17301 { ac_try='test -z "$ac_c_werror_flag"
17302 || test ! -s conftest.err'
ac1cb8d3
VS
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_hi=$ac_mid
17315else
17316 echo "$as_me: failed program was:" >&5
17317sed 's/^/| /' conftest.$ac_ext >&5
17318
17319ac_lo=`expr '(' $ac_mid ')' + 1`
17320fi
ac1cb8d3 17321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17322done
17323case $ac_lo in
17324?*) ac_cv_sizeof_long=$ac_lo;;
17325'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17326See \`config.log' for more details." >&5
17327echo "$as_me: error: cannot compute sizeof (long), 77
17328See \`config.log' for more details." >&2;}
17329 { (exit 1); exit 1; }; } ;;
17330esac
17331else
17332 if test "$cross_compiling" = yes; then
89be85c2
VS
17333 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17334See \`config.log' for more details." >&5
17335echo "$as_me: error: cannot run test program while cross compiling
17336See \`config.log' for more details." >&2;}
a848cd7e
SC
17337 { (exit 1); exit 1; }; }
17338else
17339 cat >conftest.$ac_ext <<_ACEOF
17340/* confdefs.h. */
17341_ACEOF
17342cat confdefs.h >>conftest.$ac_ext
17343cat >>conftest.$ac_ext <<_ACEOF
17344/* end confdefs.h. */
17345$ac_includes_default
17346long longval () { return (long) (sizeof (long)); }
17347unsigned long ulongval () { return (long) (sizeof (long)); }
17348#include <stdio.h>
17349#include <stdlib.h>
17350int
17351main ()
17352{
17353
17354 FILE *f = fopen ("conftest.val", "w");
17355 if (! f)
17356 exit (1);
17357 if (((long) (sizeof (long))) < 0)
17358 {
17359 long i = longval ();
17360 if (i != ((long) (sizeof (long))))
17361 exit (1);
17362 fprintf (f, "%ld\n", i);
17363 }
17364 else
17365 {
17366 unsigned long i = ulongval ();
17367 if (i != ((long) (sizeof (long))))
17368 exit (1);
17369 fprintf (f, "%lu\n", i);
17370 }
17371 exit (ferror (f) || fclose (f) != 0);
17372
17373 ;
17374 return 0;
17375}
17376_ACEOF
17377rm -f conftest$ac_exeext
17378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379 (eval $ac_link) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_sizeof_long=`cat conftest.val`
17389else
17390 echo "$as_me: program exited with status $ac_status" >&5
17391echo "$as_me: failed program was:" >&5
17392sed 's/^/| /' conftest.$ac_ext >&5
17393
17394( exit $ac_status )
17395{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17396See \`config.log' for more details." >&5
17397echo "$as_me: error: cannot compute sizeof (long), 77
17398See \`config.log' for more details." >&2;}
17399 { (exit 1); exit 1; }; }
17400fi
ac1cb8d3 17401rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17402fi
17403fi
17404rm -f conftest.val
17405else
17406 ac_cv_sizeof_long=0
17407fi
17408fi
17409echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17410echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17411cat >>confdefs.h <<_ACEOF
17412#define SIZEOF_LONG $ac_cv_sizeof_long
17413_ACEOF
17414
17415
17416echo "$as_me:$LINENO: checking for size_t" >&5
17417echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17418if test "${ac_cv_type_size_t+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420else
17421 cat >conftest.$ac_ext <<_ACEOF
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427$ac_includes_default
17428int
17429main ()
17430{
17431if ((size_t *) 0)
17432 return 0;
17433if (sizeof (size_t))
17434 return 0;
17435 ;
17436 return 0;
17437}
17438_ACEOF
17439rm -f conftest.$ac_objext
17440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17441 (eval $ac_compile) 2>conftest.er1
a848cd7e 17442 ac_status=$?
ac1cb8d3
VS
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
a848cd7e
SC
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
89be85c2
VS
17448 { ac_try='test -z "$ac_c_werror_flag"
17449 || test ! -s conftest.err'
ac1cb8d3
VS
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 ac_cv_type_size_t=yes
17462else
17463 echo "$as_me: failed program was:" >&5
17464sed 's/^/| /' conftest.$ac_ext >&5
17465
17466ac_cv_type_size_t=no
17467fi
ac1cb8d3 17468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17469fi
17470echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17471echo "${ECHO_T}$ac_cv_type_size_t" >&6
17472
17473echo "$as_me:$LINENO: checking size of size_t" >&5
17474echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17475if test "${ac_cv_sizeof_size_t+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477else
17478 if test "$ac_cv_type_size_t" = yes; then
17479 # The cast to unsigned long works around a bug in the HP C Compiler
17480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17482 # This bug is HP SR number 8606223364.
17483 if test "$cross_compiling" = yes; then
17484 # Depending upon the size, compute the lo and hi bounds.
17485cat >conftest.$ac_ext <<_ACEOF
17486/* confdefs.h. */
17487_ACEOF
17488cat confdefs.h >>conftest.$ac_ext
17489cat >>conftest.$ac_ext <<_ACEOF
17490/* end confdefs.h. */
17491$ac_includes_default
17492int
17493main ()
17494{
17495static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17496test_array [0] = 0
17497
17498 ;
17499 return 0;
17500}
17501_ACEOF
17502rm -f conftest.$ac_objext
17503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17504 (eval $ac_compile) 2>conftest.er1
a848cd7e 17505 ac_status=$?
ac1cb8d3
VS
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
a848cd7e
SC
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
89be85c2
VS
17511 { ac_try='test -z "$ac_c_werror_flag"
17512 || test ! -s conftest.err'
ac1cb8d3
VS
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; } &&
17518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_lo=0 ac_mid=0
17525 while :; do
17526 cat >conftest.$ac_ext <<_ACEOF
17527/* confdefs.h. */
17528_ACEOF
17529cat confdefs.h >>conftest.$ac_ext
17530cat >>conftest.$ac_ext <<_ACEOF
17531/* end confdefs.h. */
17532$ac_includes_default
17533int
17534main ()
17535{
17536static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17537test_array [0] = 0
17538
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext
17544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17545 (eval $ac_compile) 2>conftest.er1
a848cd7e 17546 ac_status=$?
ac1cb8d3
VS
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
a848cd7e
SC
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
89be85c2
VS
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
ac1cb8d3
VS
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_hi=$ac_mid; break
17566else
17567 echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17571 if test $ac_lo -le $ac_mid; then
17572 ac_lo= ac_hi=
17573 break
17574 fi
17575 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17576fi
ac1cb8d3 17577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17578 done
17579else
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h. */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h. */
17589$ac_includes_default
17590int
17591main ()
17592{
17593static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17594test_array [0] = 0
17595
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600rm -f conftest.$ac_objext
17601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17602 (eval $ac_compile) 2>conftest.er1
a848cd7e 17603 ac_status=$?
ac1cb8d3
VS
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
a848cd7e
SC
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
89be85c2
VS
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
ac1cb8d3
VS
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_hi=-1 ac_mid=-1
17623 while :; do
17624 cat >conftest.$ac_ext <<_ACEOF
17625/* confdefs.h. */
17626_ACEOF
17627cat confdefs.h >>conftest.$ac_ext
17628cat >>conftest.$ac_ext <<_ACEOF
17629/* end confdefs.h. */
17630$ac_includes_default
17631int
17632main ()
17633{
17634static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17635test_array [0] = 0
17636
17637 ;
17638 return 0;
17639}
17640_ACEOF
17641rm -f conftest.$ac_objext
17642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17643 (eval $ac_compile) 2>conftest.er1
a848cd7e 17644 ac_status=$?
ac1cb8d3
VS
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
a848cd7e
SC
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
89be85c2
VS
17650 { ac_try='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
ac1cb8d3
VS
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_lo=$ac_mid; break
17664else
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17669 if test $ac_mid -le $ac_hi; then
17670 ac_lo= ac_hi=
17671 break
17672 fi
17673 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17674fi
ac1cb8d3 17675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17676 done
17677else
17678 echo "$as_me: failed program was:" >&5
17679sed 's/^/| /' conftest.$ac_ext >&5
17680
17681ac_lo= ac_hi=
17682fi
ac1cb8d3 17683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17684fi
ac1cb8d3 17685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17686# Binary search between lo and hi bounds.
17687while test "x$ac_lo" != "x$ac_hi"; do
17688 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17689 cat >conftest.$ac_ext <<_ACEOF
17690/* confdefs.h. */
17691_ACEOF
17692cat confdefs.h >>conftest.$ac_ext
17693cat >>conftest.$ac_ext <<_ACEOF
17694/* end confdefs.h. */
17695$ac_includes_default
17696int
17697main ()
17698{
17699static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17700test_array [0] = 0
17701
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext
17707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17708 (eval $ac_compile) 2>conftest.er1
a848cd7e 17709 ac_status=$?
ac1cb8d3
VS
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
a848cd7e
SC
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
89be85c2
VS
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
ac1cb8d3
VS
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_hi=$ac_mid
17729else
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
17733ac_lo=`expr '(' $ac_mid ')' + 1`
17734fi
ac1cb8d3 17735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17736done
17737case $ac_lo in
17738?*) ac_cv_sizeof_size_t=$ac_lo;;
17739'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17740See \`config.log' for more details." >&5
17741echo "$as_me: error: cannot compute sizeof (size_t), 77
17742See \`config.log' for more details." >&2;}
17743 { (exit 1); exit 1; }; } ;;
17744esac
17745else
17746 if test "$cross_compiling" = yes; then
89be85c2
VS
17747 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17748See \`config.log' for more details." >&5
17749echo "$as_me: error: cannot run test program while cross compiling
17750See \`config.log' for more details." >&2;}
a848cd7e
SC
17751 { (exit 1); exit 1; }; }
17752else
17753 cat >conftest.$ac_ext <<_ACEOF
17754/* confdefs.h. */
17755_ACEOF
17756cat confdefs.h >>conftest.$ac_ext
17757cat >>conftest.$ac_ext <<_ACEOF
17758/* end confdefs.h. */
17759$ac_includes_default
17760long longval () { return (long) (sizeof (size_t)); }
17761unsigned long ulongval () { return (long) (sizeof (size_t)); }
17762#include <stdio.h>
17763#include <stdlib.h>
17764int
17765main ()
17766{
17767
17768 FILE *f = fopen ("conftest.val", "w");
17769 if (! f)
17770 exit (1);
17771 if (((long) (sizeof (size_t))) < 0)
17772 {
17773 long i = longval ();
17774 if (i != ((long) (sizeof (size_t))))
17775 exit (1);
17776 fprintf (f, "%ld\n", i);
17777 }
17778 else
17779 {
17780 unsigned long i = ulongval ();
17781 if (i != ((long) (sizeof (size_t))))
17782 exit (1);
17783 fprintf (f, "%lu\n", i);
17784 }
17785 exit (ferror (f) || fclose (f) != 0);
17786
17787 ;
17788 return 0;
17789}
17790_ACEOF
17791rm -f conftest$ac_exeext
17792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17793 (eval $ac_link) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 ac_cv_sizeof_size_t=`cat conftest.val`
17803else
17804 echo "$as_me: program exited with status $ac_status" >&5
17805echo "$as_me: failed program was:" >&5
17806sed 's/^/| /' conftest.$ac_ext >&5
17807
17808( exit $ac_status )
17809{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17810See \`config.log' for more details." >&5
17811echo "$as_me: error: cannot compute sizeof (size_t), 77
17812See \`config.log' for more details." >&2;}
17813 { (exit 1); exit 1; }; }
17814fi
ac1cb8d3 17815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17816fi
17817fi
17818rm -f conftest.val
17819else
17820 ac_cv_sizeof_size_t=0
17821fi
17822fi
17823echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17824echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17825cat >>confdefs.h <<_ACEOF
17826#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17827_ACEOF
17828
17829
17830
17831case "${host}" in
17832 arm-*-linux* )
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 ;;
18248 *-hp-hpux* )
18249 echo "$as_me:$LINENO: checking for long long" >&5
18250echo $ECHO_N "checking for long long... $ECHO_C" >&6
18251if test "${ac_cv_type_long_long+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253else
18254 cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260$ac_includes_default
18261int
18262main ()
18263{
18264if ((long long *) 0)
18265 return 0;
18266if (sizeof (long long))
18267 return 0;
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext
18273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18274 (eval $ac_compile) 2>conftest.er1
a848cd7e 18275 ac_status=$?
ac1cb8d3
VS
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
a848cd7e
SC
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
89be85c2
VS
18281 { ac_try='test -z "$ac_c_werror_flag"
18282 || test ! -s conftest.err'
ac1cb8d3
VS
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_type_long_long=yes
18295else
18296 echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
18299ac_cv_type_long_long=no
18300fi
ac1cb8d3 18301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18302fi
18303echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18304echo "${ECHO_T}$ac_cv_type_long_long" >&6
18305
18306echo "$as_me:$LINENO: checking size of long long" >&5
18307echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18308if test "${ac_cv_sizeof_long_long+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310else
18311 if test "$ac_cv_type_long_long" = yes; then
18312 # The cast to unsigned long works around a bug in the HP C Compiler
18313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18315 # This bug is HP SR number 8606223364.
18316 if test "$cross_compiling" = yes; then
18317 # Depending upon the size, compute the lo and hi bounds.
18318cat >conftest.$ac_ext <<_ACEOF
18319/* confdefs.h. */
18320_ACEOF
18321cat confdefs.h >>conftest.$ac_ext
18322cat >>conftest.$ac_ext <<_ACEOF
18323/* end confdefs.h. */
18324$ac_includes_default
18325int
18326main ()
18327{
18328static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18329test_array [0] = 0
18330
18331 ;
18332 return 0;
18333}
18334_ACEOF
18335rm -f conftest.$ac_objext
18336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18337 (eval $ac_compile) 2>conftest.er1
a848cd7e 18338 ac_status=$?
ac1cb8d3
VS
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
a848cd7e
SC
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
89be85c2
VS
18344 { ac_try='test -z "$ac_c_werror_flag"
18345 || test ! -s conftest.err'
ac1cb8d3
VS
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_lo=0 ac_mid=0
18358 while :; do
18359 cat >conftest.$ac_ext <<_ACEOF
18360/* confdefs.h. */
18361_ACEOF
18362cat confdefs.h >>conftest.$ac_ext
18363cat >>conftest.$ac_ext <<_ACEOF
18364/* end confdefs.h. */
18365$ac_includes_default
18366int
18367main ()
18368{
18369static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18370test_array [0] = 0
18371
18372 ;
18373 return 0;
18374}
18375_ACEOF
18376rm -f conftest.$ac_objext
18377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18378 (eval $ac_compile) 2>conftest.er1
a848cd7e 18379 ac_status=$?
ac1cb8d3
VS
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
a848cd7e
SC
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
89be85c2
VS
18385 { ac_try='test -z "$ac_c_werror_flag"
18386 || test ! -s conftest.err'
ac1cb8d3
VS
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_hi=$ac_mid; break
18399else
18400 echo "$as_me: failed program was:" >&5
18401sed 's/^/| /' conftest.$ac_ext >&5
18402
18403ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18404 if test $ac_lo -le $ac_mid; then
18405 ac_lo= ac_hi=
18406 break
18407 fi
18408 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18409fi
ac1cb8d3 18410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18411 done
18412else
18413 echo "$as_me: failed program was:" >&5
18414sed 's/^/| /' conftest.$ac_ext >&5
18415
18416cat >conftest.$ac_ext <<_ACEOF
18417/* confdefs.h. */
18418_ACEOF
18419cat confdefs.h >>conftest.$ac_ext
18420cat >>conftest.$ac_ext <<_ACEOF
18421/* end confdefs.h. */
18422$ac_includes_default
18423int
18424main ()
18425{
18426static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18427test_array [0] = 0
18428
18429 ;
18430 return 0;
18431}
18432_ACEOF
18433rm -f conftest.$ac_objext
18434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18435 (eval $ac_compile) 2>conftest.er1
a848cd7e 18436 ac_status=$?
ac1cb8d3
VS
18437 grep -v '^ *+' conftest.er1 >conftest.err
18438 rm -f conftest.er1
18439 cat conftest.err >&5
a848cd7e
SC
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
89be85c2
VS
18442 { ac_try='test -z "$ac_c_werror_flag"
18443 || test ! -s conftest.err'
ac1cb8d3
VS
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_hi=-1 ac_mid=-1
18456 while :; do
18457 cat >conftest.$ac_ext <<_ACEOF
18458/* confdefs.h. */
18459_ACEOF
18460cat confdefs.h >>conftest.$ac_ext
18461cat >>conftest.$ac_ext <<_ACEOF
18462/* end confdefs.h. */
18463$ac_includes_default
18464int
18465main ()
18466{
18467static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18468test_array [0] = 0
18469
18470 ;
18471 return 0;
18472}
18473_ACEOF
18474rm -f conftest.$ac_objext
18475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18476 (eval $ac_compile) 2>conftest.er1
a848cd7e 18477 ac_status=$?
ac1cb8d3
VS
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
a848cd7e
SC
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
89be85c2
VS
18483 { ac_try='test -z "$ac_c_werror_flag"
18484 || test ! -s conftest.err'
ac1cb8d3
VS
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; } &&
18490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_lo=$ac_mid; break
18497else
18498 echo "$as_me: failed program was:" >&5
18499sed 's/^/| /' conftest.$ac_ext >&5
18500
18501ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18502 if test $ac_mid -le $ac_hi; then
18503 ac_lo= ac_hi=
18504 break
18505 fi
18506 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18507fi
ac1cb8d3 18508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18509 done
18510else
18511 echo "$as_me: failed program was:" >&5
18512sed 's/^/| /' conftest.$ac_ext >&5
18513
18514ac_lo= ac_hi=
18515fi
ac1cb8d3 18516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18517fi
ac1cb8d3 18518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18519# Binary search between lo and hi bounds.
18520while test "x$ac_lo" != "x$ac_hi"; do
18521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18522 cat >conftest.$ac_ext <<_ACEOF
18523/* confdefs.h. */
18524_ACEOF
18525cat confdefs.h >>conftest.$ac_ext
18526cat >>conftest.$ac_ext <<_ACEOF
18527/* end confdefs.h. */
18528$ac_includes_default
18529int
18530main ()
18531{
18532static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18533test_array [0] = 0
18534
18535 ;
18536 return 0;
18537}
18538_ACEOF
18539rm -f conftest.$ac_objext
18540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18541 (eval $ac_compile) 2>conftest.er1
a848cd7e 18542 ac_status=$?
ac1cb8d3
VS
18543 grep -v '^ *+' conftest.er1 >conftest.err
18544 rm -f conftest.er1
18545 cat conftest.err >&5
a848cd7e
SC
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
89be85c2
VS
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
ac1cb8d3
VS
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_hi=$ac_mid
18562else
18563 echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566ac_lo=`expr '(' $ac_mid ')' + 1`
18567fi
ac1cb8d3 18568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18569done
18570case $ac_lo in
18571?*) ac_cv_sizeof_long_long=$ac_lo;;
18572'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18573See \`config.log' for more details." >&5
18574echo "$as_me: error: cannot compute sizeof (long long), 77
18575See \`config.log' for more details." >&2;}
18576 { (exit 1); exit 1; }; } ;;
18577esac
18578else
18579 if test "$cross_compiling" = yes; then
89be85c2
VS
18580 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18581See \`config.log' for more details." >&5
18582echo "$as_me: error: cannot run test program while cross compiling
18583See \`config.log' for more details." >&2;}
a848cd7e
SC
18584 { (exit 1); exit 1; }; }
18585else
18586 cat >conftest.$ac_ext <<_ACEOF
18587/* confdefs.h. */
18588_ACEOF
18589cat confdefs.h >>conftest.$ac_ext
18590cat >>conftest.$ac_ext <<_ACEOF
18591/* end confdefs.h. */
18592$ac_includes_default
18593long longval () { return (long) (sizeof (long long)); }
18594unsigned long ulongval () { return (long) (sizeof (long long)); }
18595#include <stdio.h>
18596#include <stdlib.h>
18597int
18598main ()
18599{
18600
18601 FILE *f = fopen ("conftest.val", "w");
18602 if (! f)
18603 exit (1);
18604 if (((long) (sizeof (long long))) < 0)
18605 {
18606 long i = longval ();
18607 if (i != ((long) (sizeof (long long))))
18608 exit (1);
18609 fprintf (f, "%ld\n", i);
18610 }
18611 else
18612 {
18613 unsigned long i = ulongval ();
18614 if (i != ((long) (sizeof (long long))))
18615 exit (1);
18616 fprintf (f, "%lu\n", i);
18617 }
18618 exit (ferror (f) || fclose (f) != 0);
18619
18620 ;
18621 return 0;
18622}
18623_ACEOF
18624rm -f conftest$ac_exeext
18625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18626 (eval $ac_link) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_sizeof_long_long=`cat conftest.val`
18636else
18637 echo "$as_me: program exited with status $ac_status" >&5
18638echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
18641( exit $ac_status )
18642{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18643See \`config.log' for more details." >&5
18644echo "$as_me: error: cannot compute sizeof (long long), 77
18645See \`config.log' for more details." >&2;}
18646 { (exit 1); exit 1; }; }
18647fi
ac1cb8d3 18648rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18649fi
18650fi
18651rm -f conftest.val
18652else
18653 ac_cv_sizeof_long_long=0
18654fi
18655fi
18656echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18657echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18658cat >>confdefs.h <<_ACEOF
18659#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18660_ACEOF
18661
18662
18663 if test "$ac_cv_sizeof_long_long" != "0"; then
18664 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18665 fi
18666 ;;
18667 * )
18668 echo "$as_me:$LINENO: checking for long long" >&5
18669echo $ECHO_N "checking for long long... $ECHO_C" >&6
18670if test "${ac_cv_type_long_long+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673 cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
18679$ac_includes_default
18680int
18681main ()
18682{
18683if ((long long *) 0)
18684 return 0;
18685if (sizeof (long long))
18686 return 0;
18687 ;
18688 return 0;
18689}
18690_ACEOF
18691rm -f conftest.$ac_objext
18692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18693 (eval $ac_compile) 2>conftest.er1
a848cd7e 18694 ac_status=$?
ac1cb8d3
VS
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
a848cd7e
SC
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
89be85c2
VS
18700 { ac_try='test -z "$ac_c_werror_flag"
18701 || test ! -s conftest.err'
ac1cb8d3
VS
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_cv_type_long_long=yes
18714else
18715 echo "$as_me: failed program was:" >&5
18716sed 's/^/| /' conftest.$ac_ext >&5
18717
18718ac_cv_type_long_long=no
18719fi
ac1cb8d3 18720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18721fi
18722echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18723echo "${ECHO_T}$ac_cv_type_long_long" >&6
18724
18725echo "$as_me:$LINENO: checking size of long long" >&5
18726echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18727if test "${ac_cv_sizeof_long_long+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729else
18730 if test "$ac_cv_type_long_long" = yes; then
18731 # The cast to unsigned long works around a bug in the HP C Compiler
18732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18734 # This bug is HP SR number 8606223364.
18735 if test "$cross_compiling" = yes; then
18736 # Depending upon the size, compute the lo and hi bounds.
18737cat >conftest.$ac_ext <<_ACEOF
18738/* confdefs.h. */
18739_ACEOF
18740cat confdefs.h >>conftest.$ac_ext
18741cat >>conftest.$ac_ext <<_ACEOF
18742/* end confdefs.h. */
18743$ac_includes_default
18744int
18745main ()
18746{
18747static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18748test_array [0] = 0
18749
18750 ;
18751 return 0;
18752}
18753_ACEOF
18754rm -f conftest.$ac_objext
18755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18756 (eval $ac_compile) 2>conftest.er1
a848cd7e 18757 ac_status=$?
ac1cb8d3
VS
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
a848cd7e
SC
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
89be85c2
VS
18763 { ac_try='test -z "$ac_c_werror_flag"
18764 || test ! -s conftest.err'
ac1cb8d3
VS
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_lo=0 ac_mid=0
18777 while :; do
18778 cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784$ac_includes_default
18785int
18786main ()
18787{
18788static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18789test_array [0] = 0
18790
18791 ;
18792 return 0;
18793}
18794_ACEOF
18795rm -f conftest.$ac_objext
18796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18797 (eval $ac_compile) 2>conftest.er1
a848cd7e 18798 ac_status=$?
ac1cb8d3
VS
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
a848cd7e
SC
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
89be85c2
VS
18804 { ac_try='test -z "$ac_c_werror_flag"
18805 || test ! -s conftest.err'
ac1cb8d3
VS
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; } &&
18811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_hi=$ac_mid; break
18818else
18819 echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18823 if test $ac_lo -le $ac_mid; then
18824 ac_lo= ac_hi=
18825 break
18826 fi
18827 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18828fi
ac1cb8d3 18829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18830 done
18831else
18832 echo "$as_me: failed program was:" >&5
18833sed 's/^/| /' conftest.$ac_ext >&5
18834
18835cat >conftest.$ac_ext <<_ACEOF
18836/* confdefs.h. */
18837_ACEOF
18838cat confdefs.h >>conftest.$ac_ext
18839cat >>conftest.$ac_ext <<_ACEOF
18840/* end confdefs.h. */
18841$ac_includes_default
18842int
18843main ()
18844{
18845static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18846test_array [0] = 0
18847
18848 ;
18849 return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext
18853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18854 (eval $ac_compile) 2>conftest.er1
a848cd7e 18855 ac_status=$?
ac1cb8d3
VS
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
a848cd7e
SC
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
89be85c2
VS
18861 { ac_try='test -z "$ac_c_werror_flag"
18862 || test ! -s conftest.err'
ac1cb8d3
VS
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; } &&
18868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874 ac_hi=-1 ac_mid=-1
18875 while :; do
18876 cat >conftest.$ac_ext <<_ACEOF
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
18882$ac_includes_default
18883int
18884main ()
18885{
18886static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18887test_array [0] = 0
18888
18889 ;
18890 return 0;
18891}
18892_ACEOF
18893rm -f conftest.$ac_objext
18894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18895 (eval $ac_compile) 2>conftest.er1
a848cd7e 18896 ac_status=$?
ac1cb8d3
VS
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
a848cd7e
SC
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
89be85c2
VS
18902 { ac_try='test -z "$ac_c_werror_flag"
18903 || test ! -s conftest.err'
ac1cb8d3
VS
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 ac_lo=$ac_mid; break
18916else
18917 echo "$as_me: failed program was:" >&5
18918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18921 if test $ac_mid -le $ac_hi; then
18922 ac_lo= ac_hi=
18923 break
18924 fi
18925 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18926fi
ac1cb8d3 18927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18928 done
18929else
18930 echo "$as_me: failed program was:" >&5
18931sed 's/^/| /' conftest.$ac_ext >&5
18932
18933ac_lo= ac_hi=
18934fi
ac1cb8d3 18935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18936fi
ac1cb8d3 18937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18938# Binary search between lo and hi bounds.
18939while test "x$ac_lo" != "x$ac_hi"; do
18940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18941 cat >conftest.$ac_ext <<_ACEOF
18942/* confdefs.h. */
18943_ACEOF
18944cat confdefs.h >>conftest.$ac_ext
18945cat >>conftest.$ac_ext <<_ACEOF
18946/* end confdefs.h. */
18947$ac_includes_default
18948int
18949main ()
18950{
18951static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18952test_array [0] = 0
18953
18954 ;
18955 return 0;
18956}
18957_ACEOF
18958rm -f conftest.$ac_objext
18959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18960 (eval $ac_compile) 2>conftest.er1
a848cd7e 18961 ac_status=$?
ac1cb8d3
VS
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
a848cd7e
SC
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
89be85c2
VS
18967 { ac_try='test -z "$ac_c_werror_flag"
18968 || test ! -s conftest.err'
ac1cb8d3
VS
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; } &&
18974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
18980 ac_hi=$ac_mid
18981else
18982 echo "$as_me: failed program was:" >&5
18983sed 's/^/| /' conftest.$ac_ext >&5
18984
18985ac_lo=`expr '(' $ac_mid ')' + 1`
18986fi
ac1cb8d3 18987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18988done
18989case $ac_lo in
18990?*) ac_cv_sizeof_long_long=$ac_lo;;
18991'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18992See \`config.log' for more details." >&5
18993echo "$as_me: error: cannot compute sizeof (long long), 77
18994See \`config.log' for more details." >&2;}
18995 { (exit 1); exit 1; }; } ;;
18996esac
18997else
18998 if test "$cross_compiling" = yes; then
89be85c2
VS
18999 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19000See \`config.log' for more details." >&5
19001echo "$as_me: error: cannot run test program while cross compiling
19002See \`config.log' for more details." >&2;}
a848cd7e
SC
19003 { (exit 1); exit 1; }; }
19004else
19005 cat >conftest.$ac_ext <<_ACEOF
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011$ac_includes_default
19012long longval () { return (long) (sizeof (long long)); }
19013unsigned long ulongval () { return (long) (sizeof (long long)); }
19014#include <stdio.h>
19015#include <stdlib.h>
19016int
19017main ()
19018{
19019
19020 FILE *f = fopen ("conftest.val", "w");
19021 if (! f)
19022 exit (1);
19023 if (((long) (sizeof (long long))) < 0)
19024 {
19025 long i = longval ();
19026 if (i != ((long) (sizeof (long long))))
19027 exit (1);
19028 fprintf (f, "%ld\n", i);
19029 }
19030 else
19031 {
19032 unsigned long i = ulongval ();
19033 if (i != ((long) (sizeof (long long))))
19034 exit (1);
19035 fprintf (f, "%lu\n", i);
19036 }
19037 exit (ferror (f) || fclose (f) != 0);
19038
19039 ;
19040 return 0;
19041}
19042_ACEOF
19043rm -f conftest$ac_exeext
19044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_sizeof_long_long=`cat conftest.val`
19055else
19056 echo "$as_me: program exited with status $ac_status" >&5
19057echo "$as_me: failed program was:" >&5
19058sed 's/^/| /' conftest.$ac_ext >&5
19059
19060( exit $ac_status )
19061{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19062See \`config.log' for more details." >&5
19063echo "$as_me: error: cannot compute sizeof (long long), 77
19064See \`config.log' for more details." >&2;}
19065 { (exit 1); exit 1; }; }
19066fi
ac1cb8d3 19067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19068fi
19069fi
19070rm -f conftest.val
19071else
19072 ac_cv_sizeof_long_long=0
19073fi
19074fi
19075echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19076echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19077cat >>confdefs.h <<_ACEOF
19078#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19079_ACEOF
19080
19081
19082esac
19083
238ecede
MW
19084echo "$as_me:$LINENO: checking for wchar_t" >&5
19085echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19086if test "${ac_cv_type_wchar_t+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089 cat >conftest.$ac_ext <<_ACEOF
19090/* confdefs.h. */
19091_ACEOF
19092cat confdefs.h >>conftest.$ac_ext
19093cat >>conftest.$ac_ext <<_ACEOF
19094/* end confdefs.h. */
19095
19096 /* DJGPP only has fake wchar_t: */
19097 #ifdef __DJGPP__
19098 # error "fake wchar_t"
19099 #endif
19100 #ifdef HAVE_WCHAR_H
19101 # ifdef __CYGWIN__
19102 # include <stddef.h>
19103 # endif
19104 # include <wchar.h>
19105 #endif
19106 #ifdef HAVE_STDLIB_H
19107 # include <stdlib.h>
19108 #endif
19109 #include <stdio.h>
19110
19111
19112
19113int
19114main ()
19115{
19116if ((wchar_t *) 0)
19117 return 0;
19118if (sizeof (wchar_t))
19119 return 0;
19120 ;
19121 return 0;
19122}
19123_ACEOF
19124rm -f conftest.$ac_objext
19125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19126 (eval $ac_compile) 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag"
19134 || test ! -s conftest.err'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest.$ac_objext'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_cv_type_wchar_t=yes
19147else
19148 echo "$as_me: failed program was:" >&5
19149sed 's/^/| /' conftest.$ac_ext >&5
19150
19151ac_cv_type_wchar_t=no
19152fi
19153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19154fi
19155echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19156echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19157
a848cd7e
SC
19158echo "$as_me:$LINENO: checking size of wchar_t" >&5
19159echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19160if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19161 echo $ECHO_N "(cached) $ECHO_C" >&6
19162else
238ecede
MW
19163 if test "$ac_cv_type_wchar_t" = yes; then
19164 # The cast to unsigned long works around a bug in the HP C Compiler
19165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19167 # This bug is HP SR number 8606223364.
19168 if test "$cross_compiling" = yes; then
19169 # Depending upon the size, compute the lo and hi bounds.
19170cat >conftest.$ac_ext <<_ACEOF
19171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
19176
19177 /* DJGPP only has fake wchar_t: */
19178 #ifdef __DJGPP__
19179 # error "fake wchar_t"
19180 #endif
19181 #ifdef HAVE_WCHAR_H
19182 # ifdef __CYGWIN__
19183 # include <stddef.h>
19184 # endif
19185 # include <wchar.h>
19186 #endif
19187 #ifdef HAVE_STDLIB_H
19188 # include <stdlib.h>
19189 #endif
19190 #include <stdio.h>
19191
19192
19193
19194int
19195main ()
19196{
19197static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19198test_array [0] = 0
19199
19200 ;
19201 return 0;
19202}
19203_ACEOF
19204rm -f conftest.$ac_objext
19205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206 (eval $ac_compile) 2>conftest.er1
19207 ac_status=$?
19208 grep -v '^ *+' conftest.er1 >conftest.err
19209 rm -f conftest.er1
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag"
19214 || test ! -s conftest.err'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest.$ac_objext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_lo=0 ac_mid=0
19227 while :; do
19228 cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
19234
19235 /* DJGPP only has fake wchar_t: */
19236 #ifdef __DJGPP__
19237 # error "fake wchar_t"
19238 #endif
19239 #ifdef HAVE_WCHAR_H
19240 # ifdef __CYGWIN__
19241 # include <stddef.h>
19242 # endif
19243 # include <wchar.h>
19244 #endif
19245 #ifdef HAVE_STDLIB_H
19246 # include <stdlib.h>
19247 #endif
19248 #include <stdio.h>
19249
19250
19251
19252int
19253main ()
19254{
19255static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19256test_array [0] = 0
19257
19258 ;
19259 return 0;
19260}
19261_ACEOF
19262rm -f conftest.$ac_objext
19263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19264 (eval $ac_compile) 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } &&
19271 { ac_try='test -z "$ac_c_werror_flag"
19272 || test ! -s conftest.err'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try='test -s conftest.$ac_objext'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 ac_hi=$ac_mid; break
19285else
19286 echo "$as_me: failed program was:" >&5
19287sed 's/^/| /' conftest.$ac_ext >&5
19288
19289ac_lo=`expr $ac_mid + 1`
19290 if test $ac_lo -le $ac_mid; then
19291 ac_lo= ac_hi=
19292 break
19293 fi
19294 ac_mid=`expr 2 '*' $ac_mid + 1`
19295fi
19296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19297 done
19298else
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302cat >conftest.$ac_ext <<_ACEOF
19303/* confdefs.h. */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h. */
19308
19309 /* DJGPP only has fake wchar_t: */
19310 #ifdef __DJGPP__
19311 # error "fake wchar_t"
19312 #endif
19313 #ifdef HAVE_WCHAR_H
19314 # ifdef __CYGWIN__
19315 # include <stddef.h>
19316 # endif
19317 # include <wchar.h>
19318 #endif
19319 #ifdef HAVE_STDLIB_H
19320 # include <stdlib.h>
19321 #endif
19322 #include <stdio.h>
19323
19324
19325
19326int
19327main ()
19328{
19329static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19330test_array [0] = 0
19331
19332 ;
19333 return 0;
19334}
19335_ACEOF
19336rm -f conftest.$ac_objext
19337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19338 (eval $ac_compile) 2>conftest.er1
19339 ac_status=$?
19340 grep -v '^ *+' conftest.er1 >conftest.err
19341 rm -f conftest.er1
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
19345 { ac_try='test -z "$ac_c_werror_flag"
19346 || test ! -s conftest.err'
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try='test -s conftest.$ac_objext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_hi=-1 ac_mid=-1
19359 while :; do
19360 cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h. */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h. */
19366
19367 /* DJGPP only has fake wchar_t: */
19368 #ifdef __DJGPP__
19369 # error "fake wchar_t"
19370 #endif
19371 #ifdef HAVE_WCHAR_H
19372 # ifdef __CYGWIN__
19373 # include <stddef.h>
19374 # endif
19375 # include <wchar.h>
19376 #endif
19377 #ifdef HAVE_STDLIB_H
19378 # include <stdlib.h>
19379 #endif
19380 #include <stdio.h>
19381
19382
19383
19384int
19385main ()
19386{
19387static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19388test_array [0] = 0
19389
19390 ;
19391 return 0;
19392}
19393_ACEOF
19394rm -f conftest.$ac_objext
19395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19396 (eval $ac_compile) 2>conftest.er1
19397 ac_status=$?
19398 grep -v '^ *+' conftest.er1 >conftest.err
19399 rm -f conftest.er1
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } &&
19403 { ac_try='test -z "$ac_c_werror_flag"
19404 || test ! -s conftest.err'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } &&
19410 { ac_try='test -s conftest.$ac_objext'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_lo=$ac_mid; break
19417else
19418 echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421ac_hi=`expr '(' $ac_mid ')' - 1`
19422 if test $ac_mid -le $ac_hi; then
19423 ac_lo= ac_hi=
19424 break
19425 fi
19426 ac_mid=`expr 2 '*' $ac_mid`
19427fi
19428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19429 done
19430else
19431 echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434ac_lo= ac_hi=
19435fi
19436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19437fi
19438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19439# Binary search between lo and hi bounds.
19440while test "x$ac_lo" != "x$ac_hi"; do
19441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19442 cat >conftest.$ac_ext <<_ACEOF
19443/* confdefs.h. */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
19447/* end confdefs.h. */
19448
19449 /* DJGPP only has fake wchar_t: */
19450 #ifdef __DJGPP__
19451 # error "fake wchar_t"
19452 #endif
19453 #ifdef HAVE_WCHAR_H
19454 # ifdef __CYGWIN__
19455 # include <stddef.h>
19456 # endif
19457 # include <wchar.h>
19458 #endif
19459 #ifdef HAVE_STDLIB_H
19460 # include <stdlib.h>
19461 #endif
19462 #include <stdio.h>
a848cd7e 19463
a848cd7e 19464
a848cd7e 19465
238ecede
MW
19466int
19467main ()
19468{
19469static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19470test_array [0] = 0
a848cd7e 19471
238ecede
MW
19472 ;
19473 return 0;
19474}
19475_ACEOF
19476rm -f conftest.$ac_objext
19477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19478 (eval $ac_compile) 2>conftest.er1
19479 ac_status=$?
19480 grep -v '^ *+' conftest.er1 >conftest.err
19481 rm -f conftest.er1
19482 cat conftest.err >&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); } &&
19485 { ac_try='test -z "$ac_c_werror_flag"
19486 || test ! -s conftest.err'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest.$ac_objext'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498 ac_hi=$ac_mid
19499else
19500 echo "$as_me: failed program was:" >&5
19501sed 's/^/| /' conftest.$ac_ext >&5
19502
19503ac_lo=`expr '(' $ac_mid ')' + 1`
19504fi
19505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19506done
19507case $ac_lo in
19508?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19509'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19510See \`config.log' for more details." >&5
19511echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19512See \`config.log' for more details." >&2;}
19513 { (exit 1); exit 1; }; } ;;
19514esac
19515else
19516 if test "$cross_compiling" = yes; then
19517 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19518See \`config.log' for more details." >&5
19519echo "$as_me: error: cannot run test program while cross compiling
19520See \`config.log' for more details." >&2;}
19521 { (exit 1); exit 1; }; }
a848cd7e
SC
19522else
19523 cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529
238ecede
MW
19530 /* DJGPP only has fake wchar_t: */
19531 #ifdef __DJGPP__
19532 # error "fake wchar_t"
19533 #endif
19534 #ifdef HAVE_WCHAR_H
19535 # ifdef __CYGWIN__
19536 # include <stddef.h>
19537 # endif
19538 # include <wchar.h>
19539 #endif
19540 #ifdef HAVE_STDLIB_H
19541 # include <stdlib.h>
19542 #endif
19543 #include <stdio.h>
19544
19545
19546
19547long longval () { return (long) (sizeof (wchar_t)); }
19548unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19549#include <stdio.h>
19550#include <stdlib.h>
19551int
19552main ()
19553{
a848cd7e 19554
238ecede
MW
19555 FILE *f = fopen ("conftest.val", "w");
19556 if (! f)
19557 exit (1);
19558 if (((long) (sizeof (wchar_t))) < 0)
19559 {
19560 long i = longval ();
19561 if (i != ((long) (sizeof (wchar_t))))
19562 exit (1);
19563 fprintf (f, "%ld\n", i);
19564 }
19565 else
19566 {
19567 unsigned long i = ulongval ();
19568 if (i != ((long) (sizeof (wchar_t))))
19569 exit (1);
19570 fprintf (f, "%lu\n", i);
19571 }
19572 exit (ferror (f) || fclose (f) != 0);
19573
19574 ;
19575 return 0;
19576}
a848cd7e
SC
19577_ACEOF
19578rm -f conftest$ac_exeext
19579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
238ecede 19589 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19590else
19591 echo "$as_me: program exited with status $ac_status" >&5
19592echo "$as_me: failed program was:" >&5
19593sed 's/^/| /' conftest.$ac_ext >&5
19594
19595( exit $ac_status )
238ecede
MW
19596{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19597See \`config.log' for more details." >&5
19598echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19599See \`config.log' for more details." >&2;}
19600 { (exit 1); exit 1; }; }
a848cd7e 19601fi
ac1cb8d3 19602rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19603fi
a848cd7e 19604fi
238ecede
MW
19605rm -f conftest.val
19606else
19607 ac_cv_sizeof_wchar_t=0
19608fi
19609fi
19610echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19611echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19612cat >>confdefs.h <<_ACEOF
238ecede 19613#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19614_ACEOF
19615
19616
238ecede 19617
ba3d13e1
VZ
19618echo "$as_me:$LINENO: checking for va_copy" >&5
19619echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19620if test "${wx_cv_func_va_copy+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622else
19623
19624 cat >conftest.$ac_ext <<_ACEOF
19625
19626 #include <stdarg.h>
19627 void foo(char *f, ...)
19628 {
19629 va_list ap1, ap2;
19630 va_start(ap1, f);
19631 va_copy(ap2, ap1);
19632 va_end(ap2);
19633 va_end(ap1);
19634 }
5886b072
VZ
19635 int main()
19636 {
b902e639
VZ
19637 foo("hi", 17);
19638 return 0;
5886b072 19639 }
ba3d13e1
VZ
19640_ACEOF
19641rm -f conftest.$ac_objext conftest$ac_exeext
19642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19643 (eval $ac_link) 2>conftest.er1
19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
89be85c2
VS
19650 { ac_try='test -z "$ac_c_werror_flag"
19651 || test ! -s conftest.err'
ba3d13e1
VZ
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest$ac_exeext'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 wx_cv_func_va_copy=yes
19664else
19665 echo "$as_me: failed program was:" >&5
19666sed 's/^/| /' conftest.$ac_ext >&5
19667
19668wx_cv_func_va_copy=no
19669
19670fi
19671rm -f conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19673
19674
19675fi
19676echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19677echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19678
19679if test $wx_cv_func_va_copy = "yes"; then
19680 cat >>confdefs.h <<\_ACEOF
19681#define HAVE_VA_COPY 1
19682_ACEOF
19683
19684else
19685 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19686echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19687if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
19690
19691 if test "$cross_compiling" = yes; then
19692 wx_cv_type_va_list_lvalue=yes
19693
19694else
19695 cat >conftest.$ac_ext <<_ACEOF
19696
19697 #include <stdarg.h>
19698 int foo(char *f, ...)
19699 {
19700 va_list ap1, ap2;
19701 va_start(ap1, f);
19702 ap2 = ap1;
19703 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19704 return 1;
19705 va_end(ap2);
19706 va_end(ap1);
19707 return 0;
19708 }
19709 int main()
19710 {
19711 return foo("hi", 17);
19712 }
19713_ACEOF
19714rm -f conftest$ac_exeext
19715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 wx_cv_type_va_list_lvalue=yes
19726else
19727 echo "$as_me: program exited with status $ac_status" >&5
19728echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
19731( exit $ac_status )
19732wx_cv_type_va_list_lvalue=no
19733fi
19734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19735fi
19736
19737
19738fi
19739echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19740echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19741
19742 if test $wx_cv_type_va_list_lvalue != "yes"; then
19743 cat >>confdefs.h <<\_ACEOF
19744#define VA_LIST_IS_ARRAY 1
19745_ACEOF
19746
19747 fi
19748fi
19749
a848cd7e
SC
19750# Check whether --enable-largefile or --disable-largefile was given.
19751if test "${enable_largefile+set}" = set; then
19752 enableval="$enable_largefile"
19753
19754fi;
19755if test "$enable_largefile" != no; then
19756 wx_largefile=no
19757
19758 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19759echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19760if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762else
19763
19764 cat >conftest.$ac_ext <<_ACEOF
19765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
19770#define _FILE_OFFSET_BITS 64
19771 #include <sys/types.h>
19772int
19773main ()
19774{
19775typedef struct {
19776 unsigned int field: sizeof(off_t) == 8;
19777} wxlf;
19778
19779 ;
19780 return 0;
19781}
19782_ACEOF
19783rm -f conftest.$ac_objext
19784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19785 (eval $ac_compile) 2>conftest.er1
a848cd7e 19786 ac_status=$?
ac1cb8d3
VS
19787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
a848cd7e
SC
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
89be85c2
VS
19792 { ac_try='test -z "$ac_c_werror_flag"
19793 || test ! -s conftest.err'
ac1cb8d3
VS
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 ac_cv_sys_file_offset_bits=64
19806else
19807 echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
19810ac_cv_sys_file_offset_bits=no
19811fi
ac1cb8d3 19812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19813
19814
19815fi
19816echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19817echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19818
19819 if test "$ac_cv_sys_file_offset_bits" != no; then
19820 wx_largefile=yes
19821 cat >>confdefs.h <<_ACEOF
19822#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19823_ACEOF
19824
19825 fi
19826
19827 if test "x$wx_largefile" != "xyes"; then
19828
19829 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19830echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19831if test "${ac_cv_sys_large_files+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833else
19834
19835 cat >conftest.$ac_ext <<_ACEOF
19836/* confdefs.h. */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
19840/* end confdefs.h. */
19841#define _LARGE_FILES 1
19842 #include <sys/types.h>
19843int
19844main ()
19845{
19846typedef struct {
19847 unsigned int field: sizeof(off_t) == 8;
19848} wxlf;
19849
19850 ;
19851 return 0;
19852}
19853_ACEOF
19854rm -f conftest.$ac_objext
19855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19856 (eval $ac_compile) 2>conftest.er1
a848cd7e 19857 ac_status=$?
ac1cb8d3
VS
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
a848cd7e
SC
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
89be85c2
VS
19863 { ac_try='test -z "$ac_c_werror_flag"
19864 || test ! -s conftest.err'
ac1cb8d3
VS
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876 ac_cv_sys_large_files=1
19877else
19878 echo "$as_me: failed program was:" >&5
19879sed 's/^/| /' conftest.$ac_ext >&5
19880
19881ac_cv_sys_large_files=no
19882fi
ac1cb8d3 19883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19884
19885
19886fi
19887echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19888echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19889
19890 if test "$ac_cv_sys_large_files" != no; then
19891 wx_largefile=yes
19892 cat >>confdefs.h <<_ACEOF
19893#define _LARGE_FILES $ac_cv_sys_large_files
19894_ACEOF
19895
19896 fi
19897
19898 fi
19899
19900 echo "$as_me:$LINENO: checking if large file support is available" >&5
19901echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19902 if test "x$wx_largefile" = "xyes"; then
19903 cat >>confdefs.h <<\_ACEOF
19904#define HAVE_LARGEFILE_SUPPORT 1
19905_ACEOF
19906
19907 fi
19908 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19909echo "${ECHO_T}$wx_largefile" >&6
19910fi
19911
5b674b9d
DE
19912
19913if test "x$wx_largefile" = "xyes"; then
19914 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19915 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19916 else
19917 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19918 fi
19919 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19920echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19921if test "${ac_cv_sys_largefile_source+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923else
19924 while :; do
19925 ac_cv_sys_largefile_source=no
19926 cat >conftest.$ac_ext <<_ACEOF
19927/* confdefs.h. */
19928_ACEOF
19929cat confdefs.h >>conftest.$ac_ext
19930cat >>conftest.$ac_ext <<_ACEOF
19931/* end confdefs.h. */
19932#include <stdio.h>
19933int
19934main ()
19935{
19936return !fseeko;
19937 ;
19938 return 0;
19939}
19940_ACEOF
19941rm -f conftest.$ac_objext
19942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19943 (eval $ac_compile) 2>conftest.er1
19944 ac_status=$?
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
89be85c2
VS
19950 { ac_try='test -z "$ac_c_werror_flag"
19951 || test ! -s conftest.err'
5294a27e
VZ
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest.$ac_objext'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 break
19964else
19965 echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968fi
19969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19970 cat >conftest.$ac_ext <<_ACEOF
19971/* confdefs.h. */
19972_ACEOF
19973cat confdefs.h >>conftest.$ac_ext
19974cat >>conftest.$ac_ext <<_ACEOF
19975/* end confdefs.h. */
19976#define _LARGEFILE_SOURCE 1
19977#include <stdio.h>
19978int
19979main ()
19980{
19981return !fseeko;
19982 ;
19983 return 0;
19984}
19985_ACEOF
19986rm -f conftest.$ac_objext
19987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19988 (eval $ac_compile) 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
89be85c2
VS
19995 { ac_try='test -z "$ac_c_werror_flag"
19996 || test ! -s conftest.err'
5294a27e
VZ
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
20002 { ac_try='test -s conftest.$ac_objext'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
20008 ac_cv_sys_largefile_source=1; break
20009else
20010 echo "$as_me: failed program was:" >&5
20011sed 's/^/| /' conftest.$ac_ext >&5
20012
20013fi
20014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20015 break
20016done
20017fi
20018echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20019echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20020if test "$ac_cv_sys_largefile_source" != no; then
20021
20022cat >>confdefs.h <<_ACEOF
20023#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20024_ACEOF
20025
20026fi
20027rm -f conftest*
20028
20029# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20030# in glibc 2.1.3, but that breaks too many other things.
20031# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20032echo "$as_me:$LINENO: checking for fseeko" >&5
20033echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20034if test "${ac_cv_func_fseeko+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036else
20037 cat >conftest.$ac_ext <<_ACEOF
20038/* confdefs.h. */
20039_ACEOF
20040cat confdefs.h >>conftest.$ac_ext
20041cat >>conftest.$ac_ext <<_ACEOF
20042/* end confdefs.h. */
20043#include <stdio.h>
20044int
20045main ()
20046{
20047return fseeko && fseeko (stdin, 0, 0);
20048 ;
20049 return 0;
20050}
20051_ACEOF
20052rm -f conftest.$ac_objext conftest$ac_exeext
20053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20054 (eval $ac_link) 2>conftest.er1
20055 ac_status=$?
20056 grep -v '^ *+' conftest.er1 >conftest.err
20057 rm -f conftest.er1
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
89be85c2
VS
20061 { ac_try='test -z "$ac_c_werror_flag"
20062 || test ! -s conftest.err'
5294a27e
VZ
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest$ac_exeext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_func_fseeko=yes
20075else
20076 echo "$as_me: failed program was:" >&5
20077sed 's/^/| /' conftest.$ac_ext >&5
20078
20079ac_cv_func_fseeko=no
20080fi
20081rm -f conftest.err conftest.$ac_objext \
20082 conftest$ac_exeext conftest.$ac_ext
20083fi
20084echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20085echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20086if test $ac_cv_func_fseeko = yes; then
20087
20088cat >>confdefs.h <<\_ACEOF
20089#define HAVE_FSEEKO 1
20090_ACEOF
20091
20092fi
20093
5b674b9d
DE
20094 if test "$ac_cv_sys_largefile_source" != no; then
20095 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20096 fi
20097 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20098fi
20099
20100echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20101echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20102if test "${ac_cv_c_bigendian+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104else
20105 ac_cv_c_bigendian=unknown
20106# See if sys/param.h defines the BYTE_ORDER macro.
20107cat >conftest.$ac_ext <<_ACEOF
20108/* confdefs.h. */
20109_ACEOF
20110cat confdefs.h >>conftest.$ac_ext
20111cat >>conftest.$ac_ext <<_ACEOF
20112/* end confdefs.h. */
20113#include <sys/types.h>
20114#include <sys/param.h>
20115int
20116main ()
20117{
20118
20119#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20120 bogus endian macros
20121#endif
20122 ;
20123 return 0;
20124}
20125_ACEOF
20126rm -f conftest.$ac_objext
20127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20128 (eval $ac_compile) 2>conftest.er1
a848cd7e 20129 ac_status=$?
ac1cb8d3
VS
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
a848cd7e
SC
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } &&
89be85c2
VS
20135 { ac_try='test -z "$ac_c_werror_flag"
20136 || test ! -s conftest.err'
ac1cb8d3
VS
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138 (eval $ac_try) 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; } &&
20142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 # It does; now see whether it defined to BIG_ENDIAN or not.
20149cat >conftest.$ac_ext <<_ACEOF
20150/* confdefs.h. */
20151_ACEOF
20152cat confdefs.h >>conftest.$ac_ext
20153cat >>conftest.$ac_ext <<_ACEOF
20154/* end confdefs.h. */
20155#include <sys/types.h>
20156#include <sys/param.h>
20157int
20158main ()
20159{
20160
20161#if BYTE_ORDER != BIG_ENDIAN
20162 not big endian
20163#endif
20164 ;
20165 return 0;
20166}
20167_ACEOF
20168rm -f conftest.$ac_objext
20169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20170 (eval $ac_compile) 2>conftest.er1
a848cd7e 20171 ac_status=$?
ac1cb8d3
VS
20172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
a848cd7e
SC
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
89be85c2
VS
20177 { ac_try='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
ac1cb8d3
VS
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20187 ac_status=$?
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_c_bigendian=yes
20191else
20192 echo "$as_me: failed program was:" >&5
20193sed 's/^/| /' conftest.$ac_ext >&5
20194
20195ac_cv_c_bigendian=no
20196fi
ac1cb8d3 20197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20198else
20199 echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
20202fi
ac1cb8d3 20203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20204if test $ac_cv_c_bigendian = unknown; then
20205if test "$cross_compiling" = yes; then
20206 ac_cv_c_bigendian=unknown
20207else
20208 cat >conftest.$ac_ext <<_ACEOF
20209/* confdefs.h. */
20210_ACEOF
20211cat confdefs.h >>conftest.$ac_ext
20212cat >>conftest.$ac_ext <<_ACEOF
20213/* end confdefs.h. */
20214main () {
20215 /* Are we little or big endian? From Harbison&Steele. */
20216 union
20217 {
20218 long l;
20219 char c[sizeof (long)];
20220 } u;
20221 u.l = 1;
20222 exit (u.c[sizeof (long) - 1] == 1);
20223}
20224_ACEOF
20225rm -f conftest$ac_exeext
20226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227 (eval $ac_link) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_cv_c_bigendian=no
20237else
20238 echo "$as_me: program exited with status $ac_status" >&5
20239echo "$as_me: failed program was:" >&5
20240sed 's/^/| /' conftest.$ac_ext >&5
20241
20242( exit $ac_status )
20243ac_cv_c_bigendian=yes
20244fi
ac1cb8d3 20245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20246fi
20247fi
20248fi
20249echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20250echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20251if test $ac_cv_c_bigendian = unknown; then
20252 { 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
20253echo "$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;}
20254fi
20255if test $ac_cv_c_bigendian = yes; then
20256 cat >>confdefs.h <<\_ACEOF
20257#define WORDS_BIGENDIAN 1
20258_ACEOF
20259
20260fi
20261
20262
20263ac_ext=cc
20264ac_cpp='$CXXCPP $CPPFLAGS'
20265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20268echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20269echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20270if test -z "$CXXCPP"; then
20271 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20273else
20274 # Double quotes because CXXCPP needs to be expanded
20275 for CXXCPP in "$CXX -E" "/lib/cpp"
20276 do
20277 ac_preproc_ok=false
20278for ac_cxx_preproc_warn_flag in '' yes
20279do
20280 # Use a header file that comes with gcc, so configuring glibc
20281 # with a fresh cross-compiler works.
20282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20283 # <limits.h> exists even on freestanding compilers.
20284 # On the NeXT, cc -E runs the code through the compiler's parser,
20285 # not just through cpp. "Syntax error" is here to catch this case.
20286 cat >conftest.$ac_ext <<_ACEOF
20287/* confdefs.h. */
20288_ACEOF
20289cat confdefs.h >>conftest.$ac_ext
20290cat >>conftest.$ac_ext <<_ACEOF
20291/* end confdefs.h. */
20292#ifdef __STDC__
20293# include <limits.h>
20294#else
20295# include <assert.h>
20296#endif
ac1cb8d3 20297 Syntax error
a848cd7e
SC
20298_ACEOF
20299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } >/dev/null; then
20307 if test -s conftest.err; then
20308 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20310 else
20311 ac_cpp_err=
20312 fi
20313else
20314 ac_cpp_err=yes
20315fi
20316if test -z "$ac_cpp_err"; then
20317 :
20318else
20319 echo "$as_me: failed program was:" >&5
20320sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 # Broken: fails on valid input.
20323continue
20324fi
20325rm -f conftest.err conftest.$ac_ext
20326
20327 # OK, works on sane cases. Now check whether non-existent headers
20328 # can be detected and how.
20329 cat >conftest.$ac_ext <<_ACEOF
20330/* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h. */
20335#include <ac_nonexistent.h>
20336_ACEOF
20337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20339 ac_status=$?
20340 grep -v '^ *+' conftest.er1 >conftest.err
20341 rm -f conftest.er1
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } >/dev/null; then
20345 if test -s conftest.err; then
20346 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20347 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20348 else
20349 ac_cpp_err=
20350 fi
20351else
20352 ac_cpp_err=yes
20353fi
20354if test -z "$ac_cpp_err"; then
20355 # Broken: success on invalid input.
20356continue
20357else
20358 echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361 # Passes both tests.
20362ac_preproc_ok=:
20363break
20364fi
20365rm -f conftest.err conftest.$ac_ext
20366
20367done
20368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20369rm -f conftest.err conftest.$ac_ext
20370if $ac_preproc_ok; then
20371 break
20372fi
20373
20374 done
20375 ac_cv_prog_CXXCPP=$CXXCPP
20376
20377fi
20378 CXXCPP=$ac_cv_prog_CXXCPP
20379else
20380 ac_cv_prog_CXXCPP=$CXXCPP
20381fi
20382echo "$as_me:$LINENO: result: $CXXCPP" >&5
20383echo "${ECHO_T}$CXXCPP" >&6
20384ac_preproc_ok=false
20385for ac_cxx_preproc_warn_flag in '' yes
20386do
20387 # Use a header file that comes with gcc, so configuring glibc
20388 # with a fresh cross-compiler works.
20389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20390 # <limits.h> exists even on freestanding compilers.
20391 # On the NeXT, cc -E runs the code through the compiler's parser,
20392 # not just through cpp. "Syntax error" is here to catch this case.
20393 cat >conftest.$ac_ext <<_ACEOF
20394/* confdefs.h. */
20395_ACEOF
20396cat confdefs.h >>conftest.$ac_ext
20397cat >>conftest.$ac_ext <<_ACEOF
20398/* end confdefs.h. */
20399#ifdef __STDC__
20400# include <limits.h>
20401#else
20402# include <assert.h>
20403#endif
ac1cb8d3 20404 Syntax error
a848cd7e
SC
20405_ACEOF
20406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } >/dev/null; then
20414 if test -s conftest.err; then
20415 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20417 else
20418 ac_cpp_err=
20419 fi
20420else
20421 ac_cpp_err=yes
20422fi
20423if test -z "$ac_cpp_err"; then
20424 :
20425else
20426 echo "$as_me: failed program was:" >&5
20427sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 # Broken: fails on valid input.
20430continue
20431fi
20432rm -f conftest.err conftest.$ac_ext
20433
20434 # OK, works on sane cases. Now check whether non-existent headers
20435 # can be detected and how.
20436 cat >conftest.$ac_ext <<_ACEOF
20437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
20442#include <ac_nonexistent.h>
20443_ACEOF
20444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } >/dev/null; then
20452 if test -s conftest.err; then
20453 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20455 else
20456 ac_cpp_err=
20457 fi
20458else
20459 ac_cpp_err=yes
20460fi
20461if test -z "$ac_cpp_err"; then
20462 # Broken: success on invalid input.
20463continue
20464else
20465 echo "$as_me: failed program was:" >&5
20466sed 's/^/| /' conftest.$ac_ext >&5
20467
20468 # Passes both tests.
20469ac_preproc_ok=:
20470break
20471fi
20472rm -f conftest.err conftest.$ac_ext
20473
20474done
20475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20476rm -f conftest.err conftest.$ac_ext
20477if $ac_preproc_ok; then
20478 :
20479else
20480 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20481See \`config.log' for more details." >&5
20482echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20483See \`config.log' for more details." >&2;}
20484 { (exit 1); exit 1; }; }
20485fi
20486
20487ac_ext=cc
20488ac_cpp='$CXXCPP $CPPFLAGS'
20489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20492
20493
20494
20495
20496
20497 ac_ext=cc
20498ac_cpp='$CXXCPP $CPPFLAGS'
20499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20502
20503
20504
20505for ac_header in iostream
20506do
20507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20508if eval "test \"\${$as_ac_Header+set}\" = set"; then
20509 echo "$as_me:$LINENO: checking for $ac_header" >&5
20510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20511if eval "test \"\${$as_ac_Header+set}\" = set"; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513fi
20514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20516else
20517 # Is the header compilable?
20518echo "$as_me:$LINENO: checking $ac_header usability" >&5
20519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20520cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h. */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
20525/* end confdefs.h. */
20526$ac_includes_default
20527#include <$ac_header>
20528_ACEOF
20529rm -f conftest.$ac_objext
20530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20531 (eval $ac_compile) 2>conftest.er1
a848cd7e 20532 ac_status=$?
ac1cb8d3
VS
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
a848cd7e
SC
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
89be85c2
VS
20538 { ac_try='test -z "$ac_cxx_werror_flag"
20539 || test ! -s conftest.err'
ac1cb8d3
VS
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_header_compiler=yes
20552else
20553 echo "$as_me: failed program was:" >&5
20554sed 's/^/| /' conftest.$ac_ext >&5
20555
20556ac_header_compiler=no
20557fi
ac1cb8d3 20558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20560echo "${ECHO_T}$ac_header_compiler" >&6
20561
20562# Is the header present?
20563echo "$as_me:$LINENO: checking $ac_header presence" >&5
20564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20565cat >conftest.$ac_ext <<_ACEOF
20566/* confdefs.h. */
20567_ACEOF
20568cat confdefs.h >>conftest.$ac_ext
20569cat >>conftest.$ac_ext <<_ACEOF
20570/* end confdefs.h. */
20571#include <$ac_header>
20572_ACEOF
20573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } >/dev/null; then
20581 if test -s conftest.err; then
20582 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20583 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20584 else
20585 ac_cpp_err=
20586 fi
20587else
20588 ac_cpp_err=yes
20589fi
20590if test -z "$ac_cpp_err"; then
20591 ac_header_preproc=yes
20592else
20593 echo "$as_me: failed program was:" >&5
20594sed 's/^/| /' conftest.$ac_ext >&5
20595
20596 ac_header_preproc=no
20597fi
20598rm -f conftest.err conftest.$ac_ext
20599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20600echo "${ECHO_T}$ac_header_preproc" >&6
20601
20602# So? What about this header?
ac1cb8d3
VS
20603case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20604 yes:no: )
a848cd7e
SC
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20609 ac_header_preproc=yes
a848cd7e 20610 ;;
ac1cb8d3 20611 no:yes:* )
a848cd7e
SC
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20624 (
20625 cat <<\_ASBOX
ac1cb8d3
VS
20626## ----------------------------------------- ##
20627## Report this to wx-dev@lists.wxwidgets.org ##
20628## ----------------------------------------- ##
a848cd7e
SC
20629_ASBOX
20630 ) |
20631 sed "s/^/$as_me: WARNING: /" >&2
20632 ;;
20633esac
20634echo "$as_me:$LINENO: checking for $ac_header" >&5
20635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20636if eval "test \"\${$as_ac_Header+set}\" = set"; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638else
ac1cb8d3 20639 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20640fi
20641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20643
20644fi
20645if test `eval echo '${'$as_ac_Header'}'` = yes; then
20646 cat >>confdefs.h <<_ACEOF
20647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20648_ACEOF
20649
20650fi
20651
20652done
20653
20654
20655 if test "$ac_cv_header_iostream" = "yes" ; then
20656 :
20657 else
20658 cat >>confdefs.h <<\_ACEOF
20659#define wxUSE_IOSTREAMH 1
20660_ACEOF
20661
20662 fi
20663
20664 ac_ext=c
20665ac_cpp='$CPP $CPPFLAGS'
20666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20668ac_compiler_gnu=$ac_cv_c_compiler_gnu
20669
20670
20671
20672
20673 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20674echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20675if test "${wx_cv_cpp_bool+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20677else
20678
20679
20680
20681 ac_ext=cc
20682ac_cpp='$CXXCPP $CPPFLAGS'
20683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20686
20687
20688 cat >conftest.$ac_ext <<_ACEOF
20689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
20694
20695
20696int
20697main ()
20698{
20699
20700 bool b = true;
20701
20702 return 0;
20703
20704 ;
20705 return 0;
20706}
20707_ACEOF
20708rm -f conftest.$ac_objext
20709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20710 (eval $ac_compile) 2>conftest.er1
a848cd7e 20711 ac_status=$?
ac1cb8d3
VS
20712 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1
20714 cat conftest.err >&5
a848cd7e
SC
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
89be85c2
VS
20717 { ac_try='test -z "$ac_cxx_werror_flag"
20718 || test ! -s conftest.err'
ac1cb8d3
VS
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; } &&
20724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730
20731 wx_cv_cpp_bool=yes
20732
20733else
20734 echo "$as_me: failed program was:" >&5
20735sed 's/^/| /' conftest.$ac_ext >&5
20736
20737
20738 wx_cv_cpp_bool=no
20739
20740
20741fi
ac1cb8d3 20742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20743
20744 ac_ext=c
20745ac_cpp='$CPP $CPPFLAGS'
20746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20748ac_compiler_gnu=$ac_cv_c_compiler_gnu
20749
20750
20751fi
20752echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20753echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20754
20755 if test "$wx_cv_cpp_bool" = "yes"; then
20756 cat >>confdefs.h <<\_ACEOF
20757#define HAVE_BOOL 1
20758_ACEOF
20759
20760 fi
20761
20762
20763
20764 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20765echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20766if test "${wx_cv_explicit+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20768else
20769
20770
20771
20772 ac_ext=cc
20773ac_cpp='$CXXCPP $CPPFLAGS'
20774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20777
20778
20779 cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
20785
20786 class Foo { public: explicit Foo(int) {} };
20787
20788int
20789main ()
20790{
20791
20792 return 0;
20793
20794 ;
20795 return 0;
20796}
20797_ACEOF
20798rm -f conftest.$ac_objext
20799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20800 (eval $ac_compile) 2>conftest.er1
a848cd7e 20801 ac_status=$?
ac1cb8d3
VS
20802 grep -v '^ *+' conftest.er1 >conftest.err
20803 rm -f conftest.er1
20804 cat conftest.err >&5
a848cd7e
SC
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
89be85c2
VS
20807 { ac_try='test -z "$ac_cxx_werror_flag"
20808 || test ! -s conftest.err'
ac1cb8d3
VS
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820
20821 cat >conftest.$ac_ext <<_ACEOF
20822/* confdefs.h. */
20823_ACEOF
20824cat confdefs.h >>conftest.$ac_ext
20825cat >>conftest.$ac_ext <<_ACEOF
20826/* end confdefs.h. */
20827
20828 class Foo { public: explicit Foo(int) {} };
20829 static void TakeFoo(const Foo& foo) { }
20830
20831int
20832main ()
20833{
20834
20835 TakeFoo(17);
20836 return 0;
20837
20838 ;
20839 return 0;
20840}
20841_ACEOF
20842rm -f conftest.$ac_objext
20843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20844 (eval $ac_compile) 2>conftest.er1
a848cd7e 20845 ac_status=$?
ac1cb8d3
VS
20846 grep -v '^ *+' conftest.er1 >conftest.err
20847 rm -f conftest.er1
20848 cat conftest.err >&5
a848cd7e
SC
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
89be85c2
VS
20851 { ac_try='test -z "$ac_cxx_werror_flag"
20852 || test ! -s conftest.err'
ac1cb8d3
VS
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; } &&
20858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 wx_cv_explicit=no
20865else
20866 echo "$as_me: failed program was:" >&5
20867sed 's/^/| /' conftest.$ac_ext >&5
20868
20869wx_cv_explicit=yes
20870
20871fi
ac1cb8d3 20872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20873
20874else
20875 echo "$as_me: failed program was:" >&5
20876sed 's/^/| /' conftest.$ac_ext >&5
20877
20878wx_cv_explicit=no
20879
20880fi
ac1cb8d3 20881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20882
20883 ac_ext=c
20884ac_cpp='$CPP $CPPFLAGS'
20885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20887ac_compiler_gnu=$ac_cv_c_compiler_gnu
20888
20889
20890fi
20891echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20892echo "${ECHO_T}$wx_cv_explicit" >&6
20893
20894 if test "$wx_cv_explicit" = "yes"; then
20895 cat >>confdefs.h <<\_ACEOF
20896#define HAVE_EXPLICIT 1
20897_ACEOF
20898
20899 fi
20900
20901
20902echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20903echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20904if test "${ac_cv_cxx_const_cast+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20906else
20907
20908
20909 ac_ext=cc
20910ac_cpp='$CXXCPP $CPPFLAGS'
20911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20914
20915 cat >conftest.$ac_ext <<_ACEOF
20916/* confdefs.h. */
20917_ACEOF
20918cat confdefs.h >>conftest.$ac_ext
20919cat >>conftest.$ac_ext <<_ACEOF
20920/* end confdefs.h. */
20921
20922int
20923main ()
20924{
20925int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20926 ;
20927 return 0;
20928}
20929_ACEOF
20930rm -f conftest.$ac_objext
20931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20932 (eval $ac_compile) 2>conftest.er1
a848cd7e 20933 ac_status=$?
ac1cb8d3
VS
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
a848cd7e
SC
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } &&
89be85c2
VS
20939 { ac_try='test -z "$ac_cxx_werror_flag"
20940 || test ! -s conftest.err'
ac1cb8d3
VS
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_cxx_const_cast=yes
20953else
20954 echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
20957ac_cv_cxx_const_cast=no
20958fi
ac1cb8d3 20959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20960 ac_ext=c
20961ac_cpp='$CPP $CPPFLAGS'
20962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20964ac_compiler_gnu=$ac_cv_c_compiler_gnu
20965
20966
20967fi
20968echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20969echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20970if test "$ac_cv_cxx_const_cast" = yes; then
20971
20972cat >>confdefs.h <<\_ACEOF
20973#define HAVE_CONST_CAST
20974_ACEOF
20975
20976fi
20977
7714864e
RL
20978echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20979echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20980if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20982else
20983
20984
20985 ac_ext=cc
20986ac_cpp='$CXXCPP $CPPFLAGS'
20987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20990
20991 cat >conftest.$ac_ext <<_ACEOF
20992/* confdefs.h. */
20993_ACEOF
20994cat confdefs.h >>conftest.$ac_ext
20995cat >>conftest.$ac_ext <<_ACEOF
20996/* end confdefs.h. */
20997#include <typeinfo>
20998class Base { public : Base () {} virtual void f () = 0;};
20999class Derived : public Base { public : Derived () {} virtual void f () {} };
21000class Unrelated { public : Unrelated () {} };
21001int g (Unrelated&) { return 0; }
21002int
21003main ()
21004{
21005
21006Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21007 ;
21008 return 0;
21009}
21010_ACEOF
21011rm -f conftest.$ac_objext
21012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013 (eval $ac_compile) 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
89be85c2
VS
21020 { ac_try='test -z "$ac_cxx_werror_flag"
21021 || test ! -s conftest.err'
7714864e
RL
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest.$ac_objext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_cxx_reinterpret_cast=yes
21034else
21035 echo "$as_me: failed program was:" >&5
21036sed 's/^/| /' conftest.$ac_ext >&5
21037
21038ac_cv_cxx_reinterpret_cast=no
21039fi
21040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21041 ac_ext=c
21042ac_cpp='$CPP $CPPFLAGS'
21043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21045ac_compiler_gnu=$ac_cv_c_compiler_gnu
21046
21047
21048fi
21049echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21050echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21051if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21052
21053cat >>confdefs.h <<\_ACEOF
21054#define HAVE_REINTERPRET_CAST
21055_ACEOF
21056
21057fi
21058
a848cd7e
SC
21059echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21060echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21061if test "${ac_cv_cxx_static_cast+set}" = set; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21063else
21064
21065
21066 ac_ext=cc
21067ac_cpp='$CXXCPP $CPPFLAGS'
21068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21071
21072 cat >conftest.$ac_ext <<_ACEOF
21073/* confdefs.h. */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h. */
21078#include <typeinfo>
21079class Base { public : Base () {} virtual void f () = 0; };
21080class Derived : public Base { public : Derived () {} virtual void f () {} };
21081int g (Derived&) { return 0; }
21082int
21083main ()
21084{
21085
21086Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21087 ;
21088 return 0;
21089}
21090_ACEOF
21091rm -f conftest.$ac_objext
21092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21093 (eval $ac_compile) 2>conftest.er1
a848cd7e 21094 ac_status=$?
ac1cb8d3
VS
21095 grep -v '^ *+' conftest.er1 >conftest.err
21096 rm -f conftest.er1
21097 cat conftest.err >&5
a848cd7e
SC
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } &&
89be85c2
VS
21100 { ac_try='test -z "$ac_cxx_werror_flag"
21101 || test ! -s conftest.err'
ac1cb8d3
VS
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; } &&
21107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ac_cv_cxx_static_cast=yes
21114else
21115 echo "$as_me: failed program was:" >&5
21116sed 's/^/| /' conftest.$ac_ext >&5
21117
21118ac_cv_cxx_static_cast=no
21119fi
ac1cb8d3 21120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21121 ac_ext=c
21122ac_cpp='$CPP $CPPFLAGS'
21123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21125ac_compiler_gnu=$ac_cv_c_compiler_gnu
21126
21127
21128fi
21129echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21130echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21131if test "$ac_cv_cxx_static_cast" = yes; then
21132
21133cat >>confdefs.h <<\_ACEOF
21134#define HAVE_STATIC_CAST
21135_ACEOF
21136
21137fi
21138
21139
21140if test "$wxUSE_STL" = "yes"; then
21141 ac_ext=cc
21142ac_cpp='$CXXCPP $CPPFLAGS'
21143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21146
21147
21148 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21149echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21150 cat >conftest.$ac_ext <<_ACEOF
21151/* confdefs.h. */
21152_ACEOF
21153cat confdefs.h >>conftest.$ac_ext
21154cat >>conftest.$ac_ext <<_ACEOF
21155/* end confdefs.h. */
21156#include <string>
21157 #include <functional>
21158 #include <algorithm>
21159 #include <vector>
21160 #include <list>
21161int
21162main ()
21163{
21164std::vector<int> moo;
21165 std::list<int> foo;
21166 std::vector<int>::iterator it =
21167 std::find_if(moo.begin(), moo.end(),
21168 std::bind2nd(std::less<int>(), 3));
21169 ;
21170 return 0;
21171}
21172_ACEOF
21173rm -f conftest.$ac_objext
21174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21175 (eval $ac_compile) 2>conftest.er1
a848cd7e 21176 ac_status=$?
ac1cb8d3
VS
21177 grep -v '^ *+' conftest.er1 >conftest.err
21178 rm -f conftest.er1
21179 cat conftest.err >&5
a848cd7e
SC
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
89be85c2
VS
21182 { ac_try='test -z "$ac_cxx_werror_flag"
21183 || test ! -s conftest.err'
ac1cb8d3
VS
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 echo "$as_me:$LINENO: result: yes" >&5
21196echo "${ECHO_T}yes" >&6
21197else
21198 echo "$as_me: failed program was:" >&5
21199sed 's/^/| /' conftest.$ac_ext >&5
21200
21201echo "$as_me:$LINENO: result: no" >&5
21202echo "${ECHO_T}no" >&6
21203 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21204echo "$as_me: error: Basic STL functionality missing" >&2;}
21205 { (exit 1); exit 1; }; }
21206fi
ac1cb8d3 21207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21208
21209 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21210echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21211 cat >conftest.$ac_ext <<_ACEOF
21212/* confdefs.h. */
21213_ACEOF
21214cat confdefs.h >>conftest.$ac_ext
21215cat >>conftest.$ac_ext <<_ACEOF
21216/* end confdefs.h. */
21217#include <string>
21218int
21219main ()
21220{
21221std::wstring foo;
21222 ;
21223 return 0;
21224}
21225_ACEOF
21226rm -f conftest.$ac_objext
21227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21228 (eval $ac_compile) 2>conftest.er1
a848cd7e 21229 ac_status=$?
ac1cb8d3
VS
21230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
a848cd7e
SC
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } &&
89be85c2
VS
21235 { ac_try='test -z "$ac_cxx_werror_flag"
21236 || test ! -s conftest.err'
ac1cb8d3
VS
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; } &&
21242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244 (eval $ac_try) 2>&5
21245 ac_status=$?
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; }; then
21248 echo "$as_me:$LINENO: result: yes" >&5
21249echo "${ECHO_T}yes" >&6
21250 cat >>confdefs.h <<\_ACEOF
21251#define HAVE_STD_WSTRING 1
21252_ACEOF
21253
21254else
21255 echo "$as_me: failed program was:" >&5
21256sed 's/^/| /' conftest.$ac_ext >&5
21257
21258echo "$as_me:$LINENO: result: no" >&5
21259echo "${ECHO_T}no" >&6
21260fi
ac1cb8d3 21261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21262
21263 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21264echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21265 cat >conftest.$ac_ext <<_ACEOF
21266/* confdefs.h. */
21267_ACEOF
21268cat confdefs.h >>conftest.$ac_ext
21269cat >>conftest.$ac_ext <<_ACEOF
21270/* end confdefs.h. */
21271#include <string>
21272int
21273main ()
21274{
21275std::string foo, bar;
21276 foo.compare(bar);
21277 foo.compare(1, 1, bar);
21278 foo.compare(1, 1, bar, 1, 1);
21279 foo.compare("");
21280 foo.compare(1, 1, "");
21281 foo.compare(1, 1, "", 2);
21282 ;
21283 return 0;
21284}
21285_ACEOF
21286rm -f conftest.$ac_objext
21287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21288 (eval $ac_compile) 2>conftest.er1
a848cd7e 21289 ac_status=$?
ac1cb8d3
VS
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
a848cd7e
SC
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
89be85c2
VS
21295 { ac_try='test -z "$ac_cxx_werror_flag"
21296 || test ! -s conftest.err'
ac1cb8d3
VS
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 echo "$as_me:$LINENO: result: yes" >&5
21309echo "${ECHO_T}yes" >&6
21310 cat >>confdefs.h <<\_ACEOF
21311#define HAVE_STD_STRING_COMPARE 1
21312_ACEOF
21313
21314else
21315 echo "$as_me: failed program was:" >&5
21316sed 's/^/| /' conftest.$ac_ext >&5
21317
21318echo "$as_me:$LINENO: result: no" >&5
21319echo "${ECHO_T}no" >&6
21320fi
ac1cb8d3 21321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21322
21323 if test "${ac_cv_header_hash_map+set}" = set; then
21324 echo "$as_me:$LINENO: checking for hash_map" >&5
21325echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21326if test "${ac_cv_header_hash_map+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21328fi
21329echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21330echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21331else
21332 # Is the header compilable?
21333echo "$as_me:$LINENO: checking hash_map usability" >&5
21334echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21335cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
21341$ac_includes_default
21342#include <hash_map>
21343_ACEOF
21344rm -f conftest.$ac_objext
21345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21346 (eval $ac_compile) 2>conftest.er1
bdcade0a 21347 ac_status=$?
ac1cb8d3
VS
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
bdcade0a
MB
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
89be85c2
VS
21353 { ac_try='test -z "$ac_cxx_werror_flag"
21354 || test ! -s conftest.err'
ac1cb8d3
VS
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_header_compiler=yes
21367else
21368 echo "$as_me: failed program was:" >&5
21369sed 's/^/| /' conftest.$ac_ext >&5
21370
21371ac_header_compiler=no
21372fi
ac1cb8d3 21373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21375echo "${ECHO_T}$ac_header_compiler" >&6
21376
21377# Is the header present?
21378echo "$as_me:$LINENO: checking hash_map presence" >&5
21379echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21380cat >conftest.$ac_ext <<_ACEOF
21381/* confdefs.h. */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h. */
21386#include <hash_map>
21387_ACEOF
21388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } >/dev/null; then
21396 if test -s conftest.err; then
21397 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21398 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21399 else
21400 ac_cpp_err=
21401 fi
21402else
21403 ac_cpp_err=yes
21404fi
21405if test -z "$ac_cpp_err"; then
21406 ac_header_preproc=yes
21407else
21408 echo "$as_me: failed program was:" >&5
21409sed 's/^/| /' conftest.$ac_ext >&5
21410
21411 ac_header_preproc=no
21412fi
21413rm -f conftest.err conftest.$ac_ext
21414echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21415echo "${ECHO_T}$ac_header_preproc" >&6
21416
21417# So? What about this header?
ac1cb8d3
VS
21418case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21419 yes:no: )
bdcade0a
MB
21420 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21421echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21422 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21423echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21424 ac_header_preproc=yes
bdcade0a 21425 ;;
ac1cb8d3 21426 no:yes:* )
bdcade0a
MB
21427 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21428echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21429 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21430echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21431 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21432echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21434echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21435 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21436echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21437 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21438echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21439 (
21440 cat <<\_ASBOX
ac1cb8d3
VS
21441## ----------------------------------------- ##
21442## Report this to wx-dev@lists.wxwidgets.org ##
21443## ----------------------------------------- ##
bdcade0a
MB
21444_ASBOX
21445 ) |
21446 sed "s/^/$as_me: WARNING: /" >&2
21447 ;;
21448esac
21449echo "$as_me:$LINENO: checking for hash_map" >&5
21450echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21451if test "${ac_cv_header_hash_map+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21453else
21454 ac_cv_header_hash_map=$ac_header_preproc
21455fi
21456echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21457echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21458
21459fi
21460if test $ac_cv_header_hash_map = yes; then
21461 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21462echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21463 cat >conftest.$ac_ext <<_ACEOF
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
21469#include <hash_map>
21470 #include <hash_set>
21471int
21472main ()
21473{
21474std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21475 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21476 ;
21477 return 0;
21478}
21479_ACEOF
21480rm -f conftest.$ac_objext
21481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21482 (eval $ac_compile) 2>conftest.er1
bdcade0a 21483 ac_status=$?
ac1cb8d3
VS
21484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
bdcade0a
MB
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } &&
89be85c2
VS
21489 { ac_try='test -z "$ac_cxx_werror_flag"
21490 || test ! -s conftest.err'
ac1cb8d3
VS
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 echo "$as_me:$LINENO: result: yes" >&5
21503echo "${ECHO_T}yes" >&6
21504 cat >>confdefs.h <<\_ACEOF
21505#define HAVE_HASH_MAP 1
21506_ACEOF
21507
21508 cat >>confdefs.h <<\_ACEOF
21509#define HAVE_STD_HASH_MAP 1
21510_ACEOF
21511
21512else
21513 echo "$as_me: failed program was:" >&5
21514sed 's/^/| /' conftest.$ac_ext >&5
21515
21516echo "$as_me:$LINENO: result: no" >&5
21517echo "${ECHO_T}no" >&6
21518fi
ac1cb8d3 21519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21520
21521fi
21522
21523
21524
21525 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21526 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21527echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21528if test "${ac_cv_header_ext_hash_map+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530fi
21531echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21532echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21533else
21534 # Is the header compilable?
21535echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21536echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21537cat >conftest.$ac_ext <<_ACEOF
21538/* confdefs.h. */
21539_ACEOF
21540cat confdefs.h >>conftest.$ac_ext
21541cat >>conftest.$ac_ext <<_ACEOF
21542/* end confdefs.h. */
21543$ac_includes_default
21544#include <ext/hash_map>
21545_ACEOF
21546rm -f conftest.$ac_objext
21547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21548 (eval $ac_compile) 2>conftest.er1
bdcade0a 21549 ac_status=$?
ac1cb8d3
VS
21550 grep -v '^ *+' conftest.er1 >conftest.err
21551 rm -f conftest.er1
21552 cat conftest.err >&5
bdcade0a
MB
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
89be85c2
VS
21555 { ac_try='test -z "$ac_cxx_werror_flag"
21556 || test ! -s conftest.err'
ac1cb8d3
VS
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; } &&
21562 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21565 ac_status=$?
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21568 ac_header_compiler=yes
21569else
21570 echo "$as_me: failed program was:" >&5
21571sed 's/^/| /' conftest.$ac_ext >&5
21572
21573ac_header_compiler=no
21574fi
ac1cb8d3 21575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21577echo "${ECHO_T}$ac_header_compiler" >&6
21578
21579# Is the header present?
21580echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21581echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21582cat >conftest.$ac_ext <<_ACEOF
21583/* confdefs.h. */
21584_ACEOF
21585cat confdefs.h >>conftest.$ac_ext
21586cat >>conftest.$ac_ext <<_ACEOF
21587/* end confdefs.h. */
21588#include <ext/hash_map>
21589_ACEOF
21590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21592 ac_status=$?
21593 grep -v '^ *+' conftest.er1 >conftest.err
21594 rm -f conftest.er1
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } >/dev/null; then
21598 if test -s conftest.err; then
21599 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21600 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21601 else
21602 ac_cpp_err=
21603 fi
21604else
21605 ac_cpp_err=yes
21606fi
21607if test -z "$ac_cpp_err"; then
21608 ac_header_preproc=yes
21609else
21610 echo "$as_me: failed program was:" >&5
21611sed 's/^/| /' conftest.$ac_ext >&5
21612
21613 ac_header_preproc=no
21614fi
21615rm -f conftest.err conftest.$ac_ext
21616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21617echo "${ECHO_T}$ac_header_preproc" >&6
21618
21619# So? What about this header?
ac1cb8d3
VS
21620case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21621 yes:no: )
bdcade0a
MB
21622 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21623echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21624 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21625echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21626 ac_header_preproc=yes
bdcade0a 21627 ;;
ac1cb8d3 21628 no:yes:* )
bdcade0a
MB
21629 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21630echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21631 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21632echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21634echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21636echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21637 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21638echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21639 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21640echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21641 (
21642 cat <<\_ASBOX
ac1cb8d3
VS
21643## ----------------------------------------- ##
21644## Report this to wx-dev@lists.wxwidgets.org ##
21645## ----------------------------------------- ##
bdcade0a
MB
21646_ASBOX
21647 ) |
21648 sed "s/^/$as_me: WARNING: /" >&2
21649 ;;
21650esac
21651echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21652echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21653if test "${ac_cv_header_ext_hash_map+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21655else
21656 ac_cv_header_ext_hash_map=$ac_header_preproc
21657fi
21658echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21659echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21660
21661fi
21662if test $ac_cv_header_ext_hash_map = yes; then
21663 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21664echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21665 cat >conftest.$ac_ext <<_ACEOF
21666/* confdefs.h. */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h. */
21671#include <ext/hash_map>
21672 #include <ext/hash_set>
21673int
21674main ()
21675{
21676__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21677 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21678 ;
21679 return 0;
21680}
21681_ACEOF
21682rm -f conftest.$ac_objext
21683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21684 (eval $ac_compile) 2>conftest.er1
bdcade0a 21685 ac_status=$?
ac1cb8d3
VS
21686 grep -v '^ *+' conftest.er1 >conftest.err
21687 rm -f conftest.er1
21688 cat conftest.err >&5
bdcade0a
MB
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } &&
89be85c2
VS
21691 { ac_try='test -z "$ac_cxx_werror_flag"
21692 || test ! -s conftest.err'
ac1cb8d3
VS
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; } &&
21698 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21701 ac_status=$?
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; }; then
21704 echo "$as_me:$LINENO: result: yes" >&5
21705echo "${ECHO_T}yes" >&6
21706 cat >>confdefs.h <<\_ACEOF
21707#define HAVE_EXT_HASH_MAP 1
21708_ACEOF
21709
21710 cat >>confdefs.h <<\_ACEOF
21711#define HAVE_GNU_CXX_HASH_MAP 1
21712_ACEOF
21713
21714else
21715 echo "$as_me: failed program was:" >&5
21716sed 's/^/| /' conftest.$ac_ext >&5
21717
21718echo "$as_me:$LINENO: result: no" >&5
21719echo "${ECHO_T}no" >&6
21720fi
ac1cb8d3 21721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21722
21723fi
21724
21725
a848cd7e
SC
21726
21727 ac_ext=c
21728ac_cpp='$CPP $CPPFLAGS'
21729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21731ac_compiler_gnu=$ac_cv_c_compiler_gnu
21732
21733fi
21734
21735
21736SEARCH_INCLUDE="\
21737 /usr/local/include \
21738 \
21739 /usr/Motif-2.1/include \
21740 /usr/Motif-1.2/include \
21741 /usr/include/Motif1.2 \
21742 /opt/xpm/include/X11 \
21743 /opt/GBxpm/include/ \
21744 /opt/GBxpm/X11/include/ \
21745 \
21746 /usr/dt/include \
21747 /usr/openwin/include \
21748 \
21749 /usr/include/Xm \
21750 \
21751 /usr/X11R6/include \
21752 /usr/X11R6.4/include \
21753 /usr/X11R5/include \
21754 /usr/X11R4/include \
21755 \
21756 /usr/include/X11R6 \
21757 /usr/include/X11R5 \
21758 /usr/include/X11R4 \
21759 \
21760 /usr/local/X11R6/include \
21761 /usr/local/X11R5/include \
21762 /usr/local/X11R4/include \
21763 \
21764 /usr/local/include/X11R6 \
21765 /usr/local/include/X11R5 \
21766 /usr/local/include/X11R4 \
21767 \
21768 /usr/X11/include \
21769 /usr/include/X11 \
21770 /usr/local/X11/include \
21771 /usr/local/include/X11 \
21772 \
21773 /usr/X386/include \
21774 /usr/x386/include \
21775 /usr/XFree86/include/X11 \
21776 \
21777 X:/XFree86/include \
21778 X:/XFree86/include/X11 \
21779 \
21780 /usr/include/gtk \
21781 /usr/local/include/gtk \
21782 /usr/include/glib \
21783 /usr/local/include/glib \
21784 \
21785 /usr/include/qt \
21786 /usr/local/include/qt \
21787 \
21788 /usr/local/arm/3.3.2/include \
21789 \
21790 /usr/include/windows \
21791 /usr/include/wine \
21792 /usr/local/include/wine \
21793 \
21794 /usr/unsupported/include \
21795 /usr/athena/include \
21796 /usr/local/x11r5/include \
21797 /usr/lpp/Xamples/include \
21798 \
21799 /usr/openwin/share/include"
21800
21801SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21802
21803
21804cat >confcache <<\_ACEOF
21805# This file is a shell script that caches the results of configure
21806# tests run on this system so they can be shared between configure
21807# scripts and configure runs, see configure's option --config-cache.
21808# It is not useful on other systems. If it contains results you don't
21809# want to keep, you may remove or edit it.
21810#
21811# config.status only pays attention to the cache file if you give it
21812# the --recheck option to rerun configure.
21813#
21814# `ac_cv_env_foo' variables (set or unset) will be overridden when
21815# loading this file, other *unset* `ac_cv_foo' will be assigned the
21816# following values.
21817
21818_ACEOF
21819
21820# The following way of writing the cache mishandles newlines in values,
21821# but we know of no workaround that is simple, portable, and efficient.
21822# So, don't put newlines in cache variables' values.
21823# Ultrix sh set writes to stderr and can't be redirected directly,
21824# and sets the high bit in the cache file unless we assign to the vars.
21825{
21826 (set) 2>&1 |
21827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21828 *ac_space=\ *)
21829 # `set' does not quote correctly, so add quotes (double-quote
21830 # substitution turns \\\\ into \\, and sed turns \\ into \).
21831 sed -n \
ac1cb8d3
VS
21832 "s/'/'\\\\''/g;
21833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21834 ;;
21835 *)
21836 # `set' quotes correctly as required by POSIX, so do not add quotes.
21837 sed -n \
ac1cb8d3 21838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21839 ;;
21840 esac;
21841} |
21842 sed '
21843 t clear
21844 : clear
21845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21846 t end
21847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21848 : end' >>confcache
21849if diff $cache_file confcache >/dev/null 2>&1; then :; else
21850 if test -w $cache_file; then
21851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21852 cat confcache >$cache_file
21853 else
21854 echo "not updating unwritable cache $cache_file"
21855 fi
21856fi
21857rm -f confcache
21858
21859if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21860 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21861echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21862if test "${wx_cv_lib_glibc21+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864else
21865
21866 cat >conftest.$ac_ext <<_ACEOF
21867/* confdefs.h. */
21868_ACEOF
21869cat confdefs.h >>conftest.$ac_ext
21870cat >>conftest.$ac_ext <<_ACEOF
21871/* end confdefs.h. */
21872#include <features.h>
21873int
21874main ()
21875{
21876
21877 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21878 #error not glibc2.1
21879 #endif
21880
21881 ;
21882 return 0;
21883}
21884_ACEOF
21885rm -f conftest.$ac_objext
21886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21887 (eval $ac_compile) 2>conftest.er1
a848cd7e 21888 ac_status=$?
ac1cb8d3
VS
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
a848cd7e
SC
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } &&
89be85c2
VS
21894 { ac_try='test -z "$ac_c_werror_flag"
21895 || test ! -s conftest.err'
ac1cb8d3
VS
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; } &&
21901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907
21908 wx_cv_lib_glibc21=yes
21909
21910else
21911 echo "$as_me: failed program was:" >&5
21912sed 's/^/| /' conftest.$ac_ext >&5
21913
21914
21915 wx_cv_lib_glibc21=no
21916
21917
21918fi
ac1cb8d3 21919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21920
21921fi
21922echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21923echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21924 if test "$wx_cv_lib_glibc21" = "yes"; then
21925 cat >>confdefs.h <<\_ACEOF
21926#define wxHAVE_GLIBC2 1
21927_ACEOF
21928
21929 fi
21930fi
21931
21932if test "x$wx_cv_lib_glibc21" = "xyes"; then
21933 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21934 cat >>confdefs.h <<\_ACEOF
21935#define _GNU_SOURCE 1
21936_ACEOF
21937
21938 fi
21939fi
21940
21941
21942
21943if test "$wxUSE_REGEX" != "no"; then
21944 cat >>confdefs.h <<\_ACEOF
21945#define wxUSE_REGEX 1
21946_ACEOF
21947
21948
21949 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21950 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21951echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21952 wxUSE_REGEX=builtin
21953 fi
21954
21955 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21956 if test "${ac_cv_header_regex_h+set}" = set; then
21957 echo "$as_me:$LINENO: checking for regex.h" >&5
21958echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21959if test "${ac_cv_header_regex_h+set}" = set; then
21960 echo $ECHO_N "(cached) $ECHO_C" >&6
21961fi
21962echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21963echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21964else
21965 # Is the header compilable?
21966echo "$as_me:$LINENO: checking regex.h usability" >&5
21967echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21968cat >conftest.$ac_ext <<_ACEOF
21969/* confdefs.h. */
21970_ACEOF
21971cat confdefs.h >>conftest.$ac_ext
21972cat >>conftest.$ac_ext <<_ACEOF
21973/* end confdefs.h. */
21974$ac_includes_default
21975#include <regex.h>
21976_ACEOF
21977rm -f conftest.$ac_objext
21978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21979 (eval $ac_compile) 2>conftest.er1
a848cd7e 21980 ac_status=$?
ac1cb8d3
VS
21981 grep -v '^ *+' conftest.er1 >conftest.err
21982 rm -f conftest.er1
21983 cat conftest.err >&5
a848cd7e
SC
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } &&
89be85c2
VS
21986 { ac_try='test -z "$ac_c_werror_flag"
21987 || test ! -s conftest.err'
ac1cb8d3
VS
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21990 ac_status=$?
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; } &&
21993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; }; then
21999 ac_header_compiler=yes
22000else
22001 echo "$as_me: failed program was:" >&5
22002sed 's/^/| /' conftest.$ac_ext >&5
22003
22004ac_header_compiler=no
22005fi
ac1cb8d3 22006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22008echo "${ECHO_T}$ac_header_compiler" >&6
22009
22010# Is the header present?
22011echo "$as_me:$LINENO: checking regex.h presence" >&5
22012echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22013cat >conftest.$ac_ext <<_ACEOF
22014/* confdefs.h. */
22015_ACEOF
22016cat confdefs.h >>conftest.$ac_ext
22017cat >>conftest.$ac_ext <<_ACEOF
22018/* end confdefs.h. */
22019#include <regex.h>
22020_ACEOF
22021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22023 ac_status=$?
22024 grep -v '^ *+' conftest.er1 >conftest.err
22025 rm -f conftest.er1
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } >/dev/null; then
22029 if test -s conftest.err; then
22030 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22032 else
22033 ac_cpp_err=
22034 fi
22035else
22036 ac_cpp_err=yes
22037fi
22038if test -z "$ac_cpp_err"; then
22039 ac_header_preproc=yes
22040else
22041 echo "$as_me: failed program was:" >&5
22042sed 's/^/| /' conftest.$ac_ext >&5
22043
22044 ac_header_preproc=no
22045fi
22046rm -f conftest.err conftest.$ac_ext
22047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22048echo "${ECHO_T}$ac_header_preproc" >&6
22049
22050# So? What about this header?
ac1cb8d3
VS
22051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22052 yes:no: )
a848cd7e
SC
22053 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22054echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22055 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22056echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22057 ac_header_preproc=yes
a848cd7e 22058 ;;
ac1cb8d3 22059 no:yes:* )
a848cd7e
SC
22060 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22061echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22062 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22063echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22064 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22065echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22066 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22067echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22068 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22069echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22070 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22071echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22072 (
22073 cat <<\_ASBOX
ac1cb8d3
VS
22074## ----------------------------------------- ##
22075## Report this to wx-dev@lists.wxwidgets.org ##
22076## ----------------------------------------- ##
a848cd7e
SC
22077_ASBOX
22078 ) |
22079 sed "s/^/$as_me: WARNING: /" >&2
22080 ;;
22081esac
22082echo "$as_me:$LINENO: checking for regex.h" >&5
22083echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22084if test "${ac_cv_header_regex_h+set}" = set; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22086else
22087 ac_cv_header_regex_h=$ac_header_preproc
22088fi
22089echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22090echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22091
22092fi
22093if test $ac_cv_header_regex_h = yes; then
22094
22095for ac_func in regcomp
22096do
22097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22098echo "$as_me:$LINENO: checking for $ac_func" >&5
22099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22100if eval "test \"\${$as_ac_var+set}\" = set"; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22102else
22103 cat >conftest.$ac_ext <<_ACEOF
22104/* confdefs.h. */
22105_ACEOF
22106cat confdefs.h >>conftest.$ac_ext
22107cat >>conftest.$ac_ext <<_ACEOF
22108/* end confdefs.h. */
ac1cb8d3
VS
22109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22111#define $ac_func innocuous_$ac_func
22112
a848cd7e
SC
22113/* System header to define __stub macros and hopefully few prototypes,
22114 which can conflict with char $ac_func (); below.
22115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22116 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22117
a848cd7e
SC
22118#ifdef __STDC__
22119# include <limits.h>
22120#else
22121# include <assert.h>
22122#endif
ac1cb8d3
VS
22123
22124#undef $ac_func
22125
a848cd7e
SC
22126/* Override any gcc2 internal prototype to avoid an error. */
22127#ifdef __cplusplus
22128extern "C"
22129{
22130#endif
22131/* We use char because int might match the return type of a gcc2
22132 builtin and then its argument prototype would still apply. */
22133char $ac_func ();
22134/* The GNU C library defines this for functions which it implements
22135 to always fail with ENOSYS. Some functions are actually named
22136 something starting with __ and the normal name is an alias. */
22137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22138choke me
22139#else
22140char (*f) () = $ac_func;
22141#endif
22142#ifdef __cplusplus
22143}
22144#endif
22145
22146int
22147main ()
22148{
22149return f != $ac_func;
22150 ;
22151 return 0;
22152}
22153_ACEOF
22154rm -f conftest.$ac_objext conftest$ac_exeext
22155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22156 (eval $ac_link) 2>conftest.er1
a848cd7e 22157 ac_status=$?
ac1cb8d3
VS
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
a848cd7e
SC
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } &&
89be85c2
VS
22163 { ac_try='test -z "$ac_c_werror_flag"
22164 || test ! -s conftest.err'
ac1cb8d3
VS
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; } &&
22170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22173 ac_status=$?
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22176 eval "$as_ac_var=yes"
22177else
22178 echo "$as_me: failed program was:" >&5
22179sed 's/^/| /' conftest.$ac_ext >&5
22180
22181eval "$as_ac_var=no"
22182fi
ac1cb8d3
VS
22183rm -f conftest.err conftest.$ac_objext \
22184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22185fi
22186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22188if test `eval echo '${'$as_ac_var'}'` = yes; then
22189 cat >>confdefs.h <<_ACEOF
22190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22191_ACEOF
22192
22193fi
22194done
22195
22196fi
22197
22198
22199
22200 if test "x$ac_cv_func_regcomp" != "xyes"; then
22201 if test "$wxUSE_REGEX" = "sys" ; then
22202 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22203echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22204 { (exit 1); exit 1; }; }
22205 else
22206 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22207echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22208 wxUSE_REGEX=builtin
22209 fi
22210 else
22211 wxUSE_REGEX=sys
22212 cat >>confdefs.h <<\_ACEOF
22213#define WX_NO_REGEX_ADVANCED 1
22214_ACEOF
22215
22216 fi
22217 fi
22218fi
22219
22220
22221ZLIB_LINK=
22222if test "$wxUSE_ZLIB" != "no" ; then
22223 cat >>confdefs.h <<\_ACEOF
22224#define wxUSE_ZLIB 1
22225_ACEOF
22226
22227
22228 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22229 if test "$USE_DARWIN" = 1; then
22230 system_zlib_h_ok="yes"
22231 else
22232 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22233echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22234if test "${ac_cv_header_zlib_h+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22236else
22237 if test "$cross_compiling" = yes; then
22238 unset ac_cv_header_zlib_h
22239
22240else
22241 cat >conftest.$ac_ext <<_ACEOF
22242/* confdefs.h. */
22243_ACEOF
22244cat confdefs.h >>conftest.$ac_ext
22245cat >>conftest.$ac_ext <<_ACEOF
22246/* end confdefs.h. */
22247
22248 #include <zlib.h>
22249 #include <stdio.h>
22250
22251 int main()
22252 {
22253 FILE *f=fopen("conftestval", "w");
22254 if (!f) exit(1);
22255 fprintf(f, "%s",
22256 ZLIB_VERSION[0] == '1' &&
22257 (ZLIB_VERSION[2] > '1' ||
22258 (ZLIB_VERSION[2] == '1' &&
22259 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22260 exit(0);
22261 }
22262
22263_ACEOF
22264rm -f conftest$ac_exeext
22265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22266 (eval $ac_link) 2>&5
22267 ac_status=$?
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22272 ac_status=$?
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 ac_cv_header_zlib_h=`cat conftestval`
22276else
22277 echo "$as_me: program exited with status $ac_status" >&5
22278echo "$as_me: failed program was:" >&5
22279sed 's/^/| /' conftest.$ac_ext >&5
22280
22281( exit $ac_status )
22282ac_cv_header_zlib_h=no
22283fi
ac1cb8d3 22284rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22285fi
22286
22287fi
22288echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22289echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22290 if test "${ac_cv_header_zlib_h+set}" = set; then
22291 echo "$as_me:$LINENO: checking for zlib.h" >&5
22292echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22293if test "${ac_cv_header_zlib_h+set}" = set; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22295fi
22296echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22297echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22298else
22299 # Is the header compilable?
22300echo "$as_me:$LINENO: checking zlib.h usability" >&5
22301echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22302cat >conftest.$ac_ext <<_ACEOF
22303/* confdefs.h. */
22304_ACEOF
22305cat confdefs.h >>conftest.$ac_ext
22306cat >>conftest.$ac_ext <<_ACEOF
22307/* end confdefs.h. */
22308$ac_includes_default
22309#include <zlib.h>
22310_ACEOF
22311rm -f conftest.$ac_objext
22312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22313 (eval $ac_compile) 2>conftest.er1
a848cd7e 22314 ac_status=$?
ac1cb8d3
VS
22315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
22317 cat conftest.err >&5
a848cd7e
SC
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } &&
89be85c2
VS
22320 { ac_try='test -z "$ac_c_werror_flag"
22321 || test ! -s conftest.err'
ac1cb8d3
VS
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; } &&
22327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
22333 ac_header_compiler=yes
22334else
22335 echo "$as_me: failed program was:" >&5
22336sed 's/^/| /' conftest.$ac_ext >&5
22337
22338ac_header_compiler=no
22339fi
ac1cb8d3 22340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22342echo "${ECHO_T}$ac_header_compiler" >&6
22343
22344# Is the header present?
22345echo "$as_me:$LINENO: checking zlib.h presence" >&5
22346echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22347cat >conftest.$ac_ext <<_ACEOF
22348/* confdefs.h. */
22349_ACEOF
22350cat confdefs.h >>conftest.$ac_ext
22351cat >>conftest.$ac_ext <<_ACEOF
22352/* end confdefs.h. */
22353#include <zlib.h>
22354_ACEOF
22355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22357 ac_status=$?
22358 grep -v '^ *+' conftest.er1 >conftest.err
22359 rm -f conftest.er1
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } >/dev/null; then
22363 if test -s conftest.err; then
22364 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22366 else
22367 ac_cpp_err=
22368 fi
22369else
22370 ac_cpp_err=yes
22371fi
22372if test -z "$ac_cpp_err"; then
22373 ac_header_preproc=yes
22374else
22375 echo "$as_me: failed program was:" >&5
22376sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 ac_header_preproc=no
22379fi
22380rm -f conftest.err conftest.$ac_ext
22381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22382echo "${ECHO_T}$ac_header_preproc" >&6
22383
22384# So? What about this header?
ac1cb8d3
VS
22385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22386 yes:no: )
a848cd7e
SC
22387 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22388echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22389 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22390echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22391 ac_header_preproc=yes
a848cd7e 22392 ;;
ac1cb8d3 22393 no:yes:* )
a848cd7e
SC
22394 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22395echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22396 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22397echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22398 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22399echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22400 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22401echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22402 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22403echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22404 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22405echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22406 (
22407 cat <<\_ASBOX
ac1cb8d3
VS
22408## ----------------------------------------- ##
22409## Report this to wx-dev@lists.wxwidgets.org ##
22410## ----------------------------------------- ##
a848cd7e
SC
22411_ASBOX
22412 ) |
22413 sed "s/^/$as_me: WARNING: /" >&2
22414 ;;
22415esac
22416echo "$as_me:$LINENO: checking for zlib.h" >&5
22417echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22418if test "${ac_cv_header_zlib_h+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22420else
22421 ac_cv_header_zlib_h=$ac_header_preproc
22422fi
22423echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22424echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22425
22426fi
22427
22428
22429
22430 system_zlib_h_ok=$ac_cv_header_zlib_h
22431 fi
22432
22433 if test "$system_zlib_h_ok" = "yes"; then
22434 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22435echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22436if test "${ac_cv_lib_z_deflate+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22438else
22439 ac_check_lib_save_LIBS=$LIBS
22440LIBS="-lz $LIBS"
22441cat >conftest.$ac_ext <<_ACEOF
22442/* confdefs.h. */
22443_ACEOF
22444cat confdefs.h >>conftest.$ac_ext
22445cat >>conftest.$ac_ext <<_ACEOF
22446/* end confdefs.h. */
22447
22448/* Override any gcc2 internal prototype to avoid an error. */
22449#ifdef __cplusplus
22450extern "C"
22451#endif
22452/* We use char because int might match the return type of a gcc2
22453 builtin and then its argument prototype would still apply. */
22454char deflate ();
22455int
22456main ()
22457{
22458deflate ();
22459 ;
22460 return 0;
22461}
22462_ACEOF
22463rm -f conftest.$ac_objext conftest$ac_exeext
22464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22465 (eval $ac_link) 2>conftest.er1
a848cd7e 22466 ac_status=$?
ac1cb8d3
VS
22467 grep -v '^ *+' conftest.er1 >conftest.err
22468 rm -f conftest.er1
22469 cat conftest.err >&5
a848cd7e
SC
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
89be85c2
VS
22472 { ac_try='test -z "$ac_c_werror_flag"
22473 || test ! -s conftest.err'
ac1cb8d3
VS
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 ac_cv_lib_z_deflate=yes
22486else
22487 echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490ac_cv_lib_z_deflate=no
22491fi
ac1cb8d3
VS
22492rm -f conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22494LIBS=$ac_check_lib_save_LIBS
22495fi
22496echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22497echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22498if test $ac_cv_lib_z_deflate = yes; then
22499 ZLIB_LINK=" -lz"
22500fi
22501
22502 fi
22503
22504 if test "x$ZLIB_LINK" = "x" ; then
22505 if test "$wxUSE_ZLIB" = "sys" ; then
22506 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22507echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22508 { (exit 1); exit 1; }; }
22509 else
22510 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22511echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22512 wxUSE_ZLIB=builtin
22513 fi
22514 else
22515 wxUSE_ZLIB=sys
22516 fi
22517 fi
22518fi
22519
22520
22521PNG_LINK=
22522if test "$wxUSE_LIBPNG" != "no" ; then
22523 cat >>confdefs.h <<\_ACEOF
22524#define wxUSE_LIBPNG 1
22525_ACEOF
22526
22527
22528 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22529 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22530echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22531 wxUSE_LIBPNG=sys
22532 fi
22533
22534 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22535 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22536echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22537 wxUSE_LIBPNG=builtin
22538 fi
22539
22540 if test "$wxUSE_MGL" != 1 ; then
22541 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22542 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22543echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22544if test "${ac_cv_header_png_h+set}" = set; then
22545 echo $ECHO_N "(cached) $ECHO_C" >&6
22546else
22547 if test "$cross_compiling" = yes; then
22548 unset ac_cv_header_png_h
22549
22550else
22551 cat >conftest.$ac_ext <<_ACEOF
22552/* confdefs.h. */
22553_ACEOF
22554cat confdefs.h >>conftest.$ac_ext
22555cat >>conftest.$ac_ext <<_ACEOF
22556/* end confdefs.h. */
22557
22558 #include <png.h>
22559 #include <stdio.h>
22560
22561 int main()
22562 {
22563 FILE *f=fopen("conftestval", "w");
22564 if (!f) exit(1);
22565 fprintf(f, "%s",
22566 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22567 exit(0);
22568 }
22569
22570_ACEOF
22571rm -f conftest$ac_exeext
22572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22573 (eval $ac_link) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; }; then
22582 ac_cv_header_png_h=`cat conftestval`
22583else
22584 echo "$as_me: program exited with status $ac_status" >&5
22585echo "$as_me: failed program was:" >&5
22586sed 's/^/| /' conftest.$ac_ext >&5
22587
22588( exit $ac_status )
22589ac_cv_header_png_h=no
22590fi
ac1cb8d3 22591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22592fi
22593
22594fi
22595echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22596echo "${ECHO_T}$ac_cv_header_png_h" >&6
22597 if test "${ac_cv_header_png_h+set}" = set; then
22598 echo "$as_me:$LINENO: checking for png.h" >&5
22599echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22600if test "${ac_cv_header_png_h+set}" = set; then
22601 echo $ECHO_N "(cached) $ECHO_C" >&6
22602fi
22603echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22604echo "${ECHO_T}$ac_cv_header_png_h" >&6
22605else
22606 # Is the header compilable?
22607echo "$as_me:$LINENO: checking png.h usability" >&5
22608echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22609cat >conftest.$ac_ext <<_ACEOF
22610/* confdefs.h. */
22611_ACEOF
22612cat confdefs.h >>conftest.$ac_ext
22613cat >>conftest.$ac_ext <<_ACEOF
22614/* end confdefs.h. */
22615$ac_includes_default
22616#include <png.h>
22617_ACEOF
22618rm -f conftest.$ac_objext
22619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22620 (eval $ac_compile) 2>conftest.er1
a848cd7e 22621 ac_status=$?
ac1cb8d3
VS
22622 grep -v '^ *+' conftest.er1 >conftest.err
22623 rm -f conftest.er1
22624 cat conftest.err >&5
a848cd7e
SC
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } &&
89be85c2
VS
22627 { ac_try='test -z "$ac_c_werror_flag"
22628 || test ! -s conftest.err'
ac1cb8d3
VS
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; } &&
22634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }; then
22640 ac_header_compiler=yes
22641else
22642 echo "$as_me: failed program was:" >&5
22643sed 's/^/| /' conftest.$ac_ext >&5
22644
22645ac_header_compiler=no
22646fi
ac1cb8d3 22647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22649echo "${ECHO_T}$ac_header_compiler" >&6
22650
22651# Is the header present?
22652echo "$as_me:$LINENO: checking png.h presence" >&5
22653echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22654cat >conftest.$ac_ext <<_ACEOF
22655/* confdefs.h. */
22656_ACEOF
22657cat confdefs.h >>conftest.$ac_ext
22658cat >>conftest.$ac_ext <<_ACEOF
22659/* end confdefs.h. */
22660#include <png.h>
22661_ACEOF
22662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22664 ac_status=$?
22665 grep -v '^ *+' conftest.er1 >conftest.err
22666 rm -f conftest.er1
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } >/dev/null; then
22670 if test -s conftest.err; then
22671 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22673 else
22674 ac_cpp_err=
22675 fi
22676else
22677 ac_cpp_err=yes
22678fi
22679if test -z "$ac_cpp_err"; then
22680 ac_header_preproc=yes
22681else
22682 echo "$as_me: failed program was:" >&5
22683sed 's/^/| /' conftest.$ac_ext >&5
22684
22685 ac_header_preproc=no
22686fi
22687rm -f conftest.err conftest.$ac_ext
22688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22689echo "${ECHO_T}$ac_header_preproc" >&6
22690
22691# So? What about this header?
ac1cb8d3
VS
22692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22693 yes:no: )
a848cd7e
SC
22694 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22695echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22696 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22697echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22698 ac_header_preproc=yes
a848cd7e 22699 ;;
ac1cb8d3 22700 no:yes:* )
a848cd7e
SC
22701 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22702echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22703 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22704echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22705 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22706echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22707 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22708echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22709 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22710echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22711 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22712echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22713 (
22714 cat <<\_ASBOX
ac1cb8d3
VS
22715## ----------------------------------------- ##
22716## Report this to wx-dev@lists.wxwidgets.org ##
22717## ----------------------------------------- ##
a848cd7e
SC
22718_ASBOX
22719 ) |
22720 sed "s/^/$as_me: WARNING: /" >&2
22721 ;;
22722esac
22723echo "$as_me:$LINENO: checking for png.h" >&5
22724echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22725if test "${ac_cv_header_png_h+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
22727else
22728 ac_cv_header_png_h=$ac_header_preproc
22729fi
22730echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22731echo "${ECHO_T}$ac_cv_header_png_h" >&6
22732
22733fi
22734
22735
22736
22737 if test "$ac_cv_header_png_h" = "yes"; then
22738 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22739echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22740if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22742else
22743 ac_check_lib_save_LIBS=$LIBS
22744LIBS="-lpng -lz -lm $LIBS"
22745cat >conftest.$ac_ext <<_ACEOF
22746/* confdefs.h. */
22747_ACEOF
22748cat confdefs.h >>conftest.$ac_ext
22749cat >>conftest.$ac_ext <<_ACEOF
22750/* end confdefs.h. */
22751
22752/* Override any gcc2 internal prototype to avoid an error. */
22753#ifdef __cplusplus
22754extern "C"
22755#endif
22756/* We use char because int might match the return type of a gcc2
22757 builtin and then its argument prototype would still apply. */
22758char png_check_sig ();
22759int
22760main ()
22761{
22762png_check_sig ();
22763 ;
22764 return 0;
22765}
22766_ACEOF
22767rm -f conftest.$ac_objext conftest$ac_exeext
22768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22769 (eval $ac_link) 2>conftest.er1
a848cd7e 22770 ac_status=$?
ac1cb8d3
VS
22771 grep -v '^ *+' conftest.er1 >conftest.err
22772 rm -f conftest.er1
22773 cat conftest.err >&5
a848cd7e
SC
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } &&
89be85c2
VS
22776 { ac_try='test -z "$ac_c_werror_flag"
22777 || test ! -s conftest.err'
ac1cb8d3
VS
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; } &&
22783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; }; then
22789 ac_cv_lib_png_png_check_sig=yes
22790else
22791 echo "$as_me: failed program was:" >&5
22792sed 's/^/| /' conftest.$ac_ext >&5
22793
22794ac_cv_lib_png_png_check_sig=no
22795fi
ac1cb8d3
VS
22796rm -f conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22798LIBS=$ac_check_lib_save_LIBS
22799fi
22800echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22801echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22802if test $ac_cv_lib_png_png_check_sig = yes; then
22803 PNG_LINK=" -lpng -lz"
22804fi
22805
22806 fi
22807
22808 if test "x$PNG_LINK" = "x" ; then
22809 if test "$wxUSE_LIBPNG" = "sys" ; then
22810 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22811echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22812 { (exit 1); exit 1; }; }
22813 else
22814 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22815echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22816 wxUSE_LIBPNG=builtin
22817 fi
22818 else
22819 wxUSE_LIBPNG=sys
22820 fi
22821 fi
22822 fi
22823
22824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22825fi
22826
22827
22828JPEG_LINK=
22829if test "$wxUSE_LIBJPEG" != "no" ; then
22830 cat >>confdefs.h <<\_ACEOF
22831#define wxUSE_LIBJPEG 1
22832_ACEOF
22833
22834
22835 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22836 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22837echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22838 wxUSE_LIBJPEG=sys
22839 fi
22840
22841 if test "$wxUSE_MGL" != 1 ; then
22842 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22843 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22844echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22845 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22846 echo $ECHO_N "(cached) $ECHO_C" >&6
22847else
22848 cat >conftest.$ac_ext <<_ACEOF
22849/* confdefs.h. */
22850_ACEOF
22851cat confdefs.h >>conftest.$ac_ext
22852cat >>conftest.$ac_ext <<_ACEOF
22853/* end confdefs.h. */
22854
22855 #undef HAVE_STDLIB_H
22856 #include <stdio.h>
22857 #include <jpeglib.h>
22858
22859int
22860main ()
22861{
22862
22863
22864 ;
22865 return 0;
22866}
22867_ACEOF
22868rm -f conftest.$ac_objext
22869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22870 (eval $ac_compile) 2>conftest.er1
a848cd7e 22871 ac_status=$?
ac1cb8d3
VS
22872 grep -v '^ *+' conftest.er1 >conftest.err
22873 rm -f conftest.er1
22874 cat conftest.err >&5
a848cd7e
SC
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } &&
89be85c2
VS
22877 { ac_try='test -z "$ac_c_werror_flag"
22878 || test ! -s conftest.err'
ac1cb8d3
VS
22879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880 (eval $ac_try) 2>&5
22881 ac_status=$?
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); }; } &&
22884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; }; then
22890 ac_cv_header_jpeglib_h=yes
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895ac_cv_header_jpeglib_h=no
22896
22897fi
ac1cb8d3 22898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22899
22900fi
22901
22902 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22903echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22904
22905 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22906 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22907echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22908if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22910else
22911 ac_check_lib_save_LIBS=$LIBS
22912LIBS="-ljpeg $LIBS"
22913cat >conftest.$ac_ext <<_ACEOF
22914/* confdefs.h. */
22915_ACEOF
22916cat confdefs.h >>conftest.$ac_ext
22917cat >>conftest.$ac_ext <<_ACEOF
22918/* end confdefs.h. */
22919
22920/* Override any gcc2 internal prototype to avoid an error. */
22921#ifdef __cplusplus
22922extern "C"
22923#endif
22924/* We use char because int might match the return type of a gcc2
22925 builtin and then its argument prototype would still apply. */
22926char jpeg_read_header ();
22927int
22928main ()
22929{
22930jpeg_read_header ();
22931 ;
22932 return 0;
22933}
22934_ACEOF
22935rm -f conftest.$ac_objext conftest$ac_exeext
22936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22937 (eval $ac_link) 2>conftest.er1
a848cd7e 22938 ac_status=$?
ac1cb8d3
VS
22939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
a848cd7e
SC
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } &&
89be85c2
VS
22944 { ac_try='test -z "$ac_c_werror_flag"
22945 || test ! -s conftest.err'
ac1cb8d3
VS
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; } &&
22951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 ac_cv_lib_jpeg_jpeg_read_header=yes
22958else
22959 echo "$as_me: failed program was:" >&5
22960sed 's/^/| /' conftest.$ac_ext >&5
22961
22962ac_cv_lib_jpeg_jpeg_read_header=no
22963fi
ac1cb8d3
VS
22964rm -f conftest.err conftest.$ac_objext \
22965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22966LIBS=$ac_check_lib_save_LIBS
22967fi
22968echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22969echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22970if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22971 JPEG_LINK=" -ljpeg"
22972fi
22973
22974 fi
22975
22976 if test "x$JPEG_LINK" = "x" ; then
22977 if test "$wxUSE_LIBJPEG" = "sys" ; then
22978 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22979echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22980 { (exit 1); exit 1; }; }
22981 else
22982 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22983echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22984 wxUSE_LIBJPEG=builtin
22985 fi
22986 else
22987 wxUSE_LIBJPEG=sys
22988 fi
22989 fi
22990 fi
22991fi
22992
22993
22994TIFF_LINK=
22995TIFF_PREREQ_LINKS=-lm
22996if test "$wxUSE_LIBTIFF" != "no" ; then
22997 cat >>confdefs.h <<\_ACEOF
22998#define wxUSE_LIBTIFF 1
22999_ACEOF
23000
23001
23002 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23003 if test "$wxUSE_LIBJPEG" = "sys"; then
23004 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23005 fi
23006 if test "$wxUSE_ZLIB" = "sys"; then
23007 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23008 fi
23009 if test "${ac_cv_header_tiffio_h+set}" = set; then
23010 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23011echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23012if test "${ac_cv_header_tiffio_h+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23014fi
23015echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23016echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23017else
23018 # Is the header compilable?
23019echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23020echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23021cat >conftest.$ac_ext <<_ACEOF
23022/* confdefs.h. */
23023_ACEOF
23024cat confdefs.h >>conftest.$ac_ext
23025cat >>conftest.$ac_ext <<_ACEOF
23026/* end confdefs.h. */
23027$ac_includes_default
23028#include <tiffio.h>
23029_ACEOF
23030rm -f conftest.$ac_objext
23031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23032 (eval $ac_compile) 2>conftest.er1
a848cd7e 23033 ac_status=$?
ac1cb8d3
VS
23034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
a848cd7e
SC
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
89be85c2
VS
23039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
ac1cb8d3
VS
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_header_compiler=yes
23053else
23054 echo "$as_me: failed program was:" >&5
23055sed 's/^/| /' conftest.$ac_ext >&5
23056
23057ac_header_compiler=no
23058fi
ac1cb8d3 23059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23061echo "${ECHO_T}$ac_header_compiler" >&6
23062
23063# Is the header present?
23064echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23065echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23066cat >conftest.$ac_ext <<_ACEOF
23067/* confdefs.h. */
23068_ACEOF
23069cat confdefs.h >>conftest.$ac_ext
23070cat >>conftest.$ac_ext <<_ACEOF
23071/* end confdefs.h. */
23072#include <tiffio.h>
23073_ACEOF
23074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } >/dev/null; then
23082 if test -s conftest.err; then
23083 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23085 else
23086 ac_cpp_err=
23087 fi
23088else
23089 ac_cpp_err=yes
23090fi
23091if test -z "$ac_cpp_err"; then
23092 ac_header_preproc=yes
23093else
23094 echo "$as_me: failed program was:" >&5
23095sed 's/^/| /' conftest.$ac_ext >&5
23096
23097 ac_header_preproc=no
23098fi
23099rm -f conftest.err conftest.$ac_ext
23100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23101echo "${ECHO_T}$ac_header_preproc" >&6
23102
23103# So? What about this header?
ac1cb8d3
VS
23104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23105 yes:no: )
a848cd7e
SC
23106 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23107echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23108 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23109echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23110 ac_header_preproc=yes
a848cd7e 23111 ;;
ac1cb8d3 23112 no:yes:* )
a848cd7e
SC
23113 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23114echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23115 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23116echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23117 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23118echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23120echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23121 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23122echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23123 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23124echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23125 (
23126 cat <<\_ASBOX
ac1cb8d3
VS
23127## ----------------------------------------- ##
23128## Report this to wx-dev@lists.wxwidgets.org ##
23129## ----------------------------------------- ##
a848cd7e
SC
23130_ASBOX
23131 ) |
23132 sed "s/^/$as_me: WARNING: /" >&2
23133 ;;
23134esac
23135echo "$as_me:$LINENO: checking for tiffio.h" >&5
23136echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23137if test "${ac_cv_header_tiffio_h+set}" = set; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23139else
23140 ac_cv_header_tiffio_h=$ac_header_preproc
23141fi
23142echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23143echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23144
23145fi
23146if test $ac_cv_header_tiffio_h = yes; then
23147
23148 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23149echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23150if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23152else
23153 ac_check_lib_save_LIBS=$LIBS
23154LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23155cat >conftest.$ac_ext <<_ACEOF
23156/* confdefs.h. */
23157_ACEOF
23158cat confdefs.h >>conftest.$ac_ext
23159cat >>conftest.$ac_ext <<_ACEOF
23160/* end confdefs.h. */
23161
23162/* Override any gcc2 internal prototype to avoid an error. */
23163#ifdef __cplusplus
23164extern "C"
23165#endif
23166/* We use char because int might match the return type of a gcc2
23167 builtin and then its argument prototype would still apply. */
23168char TIFFError ();
23169int
23170main ()
23171{
23172TIFFError ();
23173 ;
23174 return 0;
23175}
23176_ACEOF
23177rm -f conftest.$ac_objext conftest$ac_exeext
23178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23179 (eval $ac_link) 2>conftest.er1
a848cd7e 23180 ac_status=$?
ac1cb8d3
VS
23181 grep -v '^ *+' conftest.er1 >conftest.err
23182 rm -f conftest.er1
23183 cat conftest.err >&5
a848cd7e
SC
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
89be85c2
VS
23186 { ac_try='test -z "$ac_c_werror_flag"
23187 || test ! -s conftest.err'
ac1cb8d3
VS
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; } &&
23193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23199 ac_cv_lib_tiff_TIFFError=yes
23200else
23201 echo "$as_me: failed program was:" >&5
23202sed 's/^/| /' conftest.$ac_ext >&5
23203
23204ac_cv_lib_tiff_TIFFError=no
23205fi
ac1cb8d3
VS
23206rm -f conftest.err conftest.$ac_objext \
23207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23208LIBS=$ac_check_lib_save_LIBS
23209fi
23210echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23211echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23212if test $ac_cv_lib_tiff_TIFFError = yes; then
23213 TIFF_LINK=" -ltiff"
23214fi
23215
23216
23217
23218fi
23219
23220
23221
23222 if test "x$TIFF_LINK" = "x" ; then
23223 if test "$wxUSE_LIBTIFF" = "sys" ; then
23224 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23225echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23226 { (exit 1); exit 1; }; }
23227 else
23228 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23229echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23230 wxUSE_LIBTIFF=builtin
23231 fi
23232 else
23233 wxUSE_LIBTIFF=sys
23234 fi
23235 fi
23236fi
23237
23238
23239if test "$wxUSE_EXPAT" != "no"; then
23240 wxUSE_XML=yes
23241 cat >>confdefs.h <<\_ACEOF
23242#define wxUSE_EXPAT 1
23243_ACEOF
23244
23245 cat >>confdefs.h <<\_ACEOF
23246#define wxUSE_XML 1
23247_ACEOF
23248
23249
23250 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23251 if test "${ac_cv_header_expat_h+set}" = set; then
23252 echo "$as_me:$LINENO: checking for expat.h" >&5
23253echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23254if test "${ac_cv_header_expat_h+set}" = set; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23256fi
23257echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23258echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23259else
23260 # Is the header compilable?
23261echo "$as_me:$LINENO: checking expat.h usability" >&5
23262echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23263cat >conftest.$ac_ext <<_ACEOF
23264/* confdefs.h. */
23265_ACEOF
23266cat confdefs.h >>conftest.$ac_ext
23267cat >>conftest.$ac_ext <<_ACEOF
23268/* end confdefs.h. */
23269$ac_includes_default
23270#include <expat.h>
23271_ACEOF
23272rm -f conftest.$ac_objext
23273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23274 (eval $ac_compile) 2>conftest.er1
a848cd7e 23275 ac_status=$?
ac1cb8d3
VS
23276 grep -v '^ *+' conftest.er1 >conftest.err
23277 rm -f conftest.er1
23278 cat conftest.err >&5
a848cd7e
SC
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } &&
89be85c2
VS
23281 { ac_try='test -z "$ac_c_werror_flag"
23282 || test ! -s conftest.err'
ac1cb8d3
VS
23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284 (eval $ac_try) 2>&5
23285 ac_status=$?
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; } &&
23288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; }; then
23294 ac_header_compiler=yes
23295else
23296 echo "$as_me: failed program was:" >&5
23297sed 's/^/| /' conftest.$ac_ext >&5
23298
23299ac_header_compiler=no
23300fi
ac1cb8d3 23301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23303echo "${ECHO_T}$ac_header_compiler" >&6
23304
23305# Is the header present?
23306echo "$as_me:$LINENO: checking expat.h presence" >&5
23307echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23308cat >conftest.$ac_ext <<_ACEOF
23309/* confdefs.h. */
23310_ACEOF
23311cat confdefs.h >>conftest.$ac_ext
23312cat >>conftest.$ac_ext <<_ACEOF
23313/* end confdefs.h. */
23314#include <expat.h>
23315_ACEOF
23316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23318 ac_status=$?
23319 grep -v '^ *+' conftest.er1 >conftest.err
23320 rm -f conftest.er1
23321 cat conftest.err >&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } >/dev/null; then
23324 if test -s conftest.err; then
23325 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23327 else
23328 ac_cpp_err=
23329 fi
23330else
23331 ac_cpp_err=yes
23332fi
23333if test -z "$ac_cpp_err"; then
23334 ac_header_preproc=yes
23335else
23336 echo "$as_me: failed program was:" >&5
23337sed 's/^/| /' conftest.$ac_ext >&5
23338
23339 ac_header_preproc=no
23340fi
23341rm -f conftest.err conftest.$ac_ext
23342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23343echo "${ECHO_T}$ac_header_preproc" >&6
23344
23345# So? What about this header?
ac1cb8d3
VS
23346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23347 yes:no: )
a848cd7e
SC
23348 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23349echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23350 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23351echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23352 ac_header_preproc=yes
a848cd7e 23353 ;;
ac1cb8d3 23354 no:yes:* )
a848cd7e
SC
23355 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23356echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23357 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23358echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23359 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23360echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23361 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23362echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23363 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23364echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23365 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23366echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23367 (
23368 cat <<\_ASBOX
ac1cb8d3
VS
23369## ----------------------------------------- ##
23370## Report this to wx-dev@lists.wxwidgets.org ##
23371## ----------------------------------------- ##
a848cd7e
SC
23372_ASBOX
23373 ) |
23374 sed "s/^/$as_me: WARNING: /" >&2
23375 ;;
23376esac
23377echo "$as_me:$LINENO: checking for expat.h" >&5
23378echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23379if test "${ac_cv_header_expat_h+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23381else
23382 ac_cv_header_expat_h=$ac_header_preproc
23383fi
23384echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23385echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23386
23387fi
23388if test $ac_cv_header_expat_h = yes; then
23389 found_expat_h=1
23390fi
23391
23392
23393 if test "x$found_expat_h" = "x1"; then
23394 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23395echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23396if test "${wx_cv_expat_is_not_broken+set}" = set; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23398else
23399
23400
23401
23402 ac_ext=cc
23403ac_cpp='$CXXCPP $CPPFLAGS'
23404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23407
23408 cat >conftest.$ac_ext <<_ACEOF
23409/* confdefs.h. */
23410_ACEOF
23411cat confdefs.h >>conftest.$ac_ext
23412cat >>conftest.$ac_ext <<_ACEOF
23413/* end confdefs.h. */
23414#include <expat.h>
23415int
23416main ()
23417{
23418
23419 ;
23420 return 0;
23421}
23422_ACEOF
23423rm -f conftest.$ac_objext
23424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23425 (eval $ac_compile) 2>conftest.er1
a848cd7e 23426 ac_status=$?
ac1cb8d3
VS
23427 grep -v '^ *+' conftest.er1 >conftest.err
23428 rm -f conftest.er1
23429 cat conftest.err >&5
a848cd7e
SC
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); } &&
89be85c2
VS
23432 { ac_try='test -z "$ac_cxx_werror_flag"
23433 || test ! -s conftest.err'
ac1cb8d3
VS
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23436 ac_status=$?
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; } &&
23439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; }; then
23445 wx_cv_expat_is_not_broken=yes
23446else
23447 echo "$as_me: failed program was:" >&5
23448sed 's/^/| /' conftest.$ac_ext >&5
23449
23450wx_cv_expat_is_not_broken=no
23451
23452fi
ac1cb8d3 23453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23454 ac_ext=c
23455ac_cpp='$CPP $CPPFLAGS'
23456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23458ac_compiler_gnu=$ac_cv_c_compiler_gnu
23459
23460
23461
23462fi
23463echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23464echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23465 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23466 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23467echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23468if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23469 echo $ECHO_N "(cached) $ECHO_C" >&6
23470else
23471 ac_check_lib_save_LIBS=$LIBS
23472LIBS="-lexpat $LIBS"
23473cat >conftest.$ac_ext <<_ACEOF
23474/* confdefs.h. */
23475_ACEOF
23476cat confdefs.h >>conftest.$ac_ext
23477cat >>conftest.$ac_ext <<_ACEOF
23478/* end confdefs.h. */
23479
23480/* Override any gcc2 internal prototype to avoid an error. */
23481#ifdef __cplusplus
23482extern "C"
23483#endif
23484/* We use char because int might match the return type of a gcc2
23485 builtin and then its argument prototype would still apply. */
23486char XML_ParserCreate ();
23487int
23488main ()
23489{
23490XML_ParserCreate ();
23491 ;
23492 return 0;
23493}
23494_ACEOF
23495rm -f conftest.$ac_objext conftest$ac_exeext
23496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23497 (eval $ac_link) 2>conftest.er1
a848cd7e 23498 ac_status=$?
ac1cb8d3
VS
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
a848cd7e
SC
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } &&
89be85c2
VS
23504 { ac_try='test -z "$ac_c_werror_flag"
23505 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
23511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513 (eval $ac_try) 2>&5
23514 ac_status=$?
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); }; }; then
23517 ac_cv_lib_expat_XML_ParserCreate=yes
23518else
23519 echo "$as_me: failed program was:" >&5
23520sed 's/^/| /' conftest.$ac_ext >&5
23521
23522ac_cv_lib_expat_XML_ParserCreate=no
23523fi
ac1cb8d3
VS
23524rm -f conftest.err conftest.$ac_objext \
23525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23526LIBS=$ac_check_lib_save_LIBS
23527fi
23528echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23529echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23530if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23531 EXPAT_LINK=" -lexpat"
23532fi
23533
23534 fi
23535 fi
23536 if test "x$EXPAT_LINK" = "x" ; then
23537 if test "$wxUSE_EXPAT" = "sys" ; then
23538 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23539echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23540 { (exit 1); exit 1; }; }
23541 else
23542 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23543echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23544 wxUSE_EXPAT=builtin
23545 fi
23546 else
23547 wxUSE_EXPAT=sys
23548 fi
23549 fi
23550 if test "$wxUSE_EXPAT" = "builtin" ; then
23551
23552
23553subdirs="$subdirs src/expat"
23554
23555 fi
23556fi
23557
23558
23559
23560if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23561 if test "${ac_cv_header_mspack_h+set}" = set; then
23562 echo "$as_me:$LINENO: checking for mspack.h" >&5
23563echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23564if test "${ac_cv_header_mspack_h+set}" = set; then
23565 echo $ECHO_N "(cached) $ECHO_C" >&6
23566fi
23567echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23568echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23569else
23570 # Is the header compilable?
23571echo "$as_me:$LINENO: checking mspack.h usability" >&5
23572echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23573cat >conftest.$ac_ext <<_ACEOF
23574/* confdefs.h. */
23575_ACEOF
23576cat confdefs.h >>conftest.$ac_ext
23577cat >>conftest.$ac_ext <<_ACEOF
23578/* end confdefs.h. */
23579$ac_includes_default
23580#include <mspack.h>
23581_ACEOF
23582rm -f conftest.$ac_objext
23583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23584 (eval $ac_compile) 2>conftest.er1
a848cd7e 23585 ac_status=$?
ac1cb8d3
VS
23586 grep -v '^ *+' conftest.er1 >conftest.err
23587 rm -f conftest.er1
23588 cat conftest.err >&5
a848cd7e
SC
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); } &&
89be85c2
VS
23591 { ac_try='test -z "$ac_c_werror_flag"
23592 || test ! -s conftest.err'
ac1cb8d3
VS
23593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594 (eval $ac_try) 2>&5
23595 ac_status=$?
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; } &&
23598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600 (eval $ac_try) 2>&5
23601 ac_status=$?
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); }; }; then
23604 ac_header_compiler=yes
23605else
23606 echo "$as_me: failed program was:" >&5
23607sed 's/^/| /' conftest.$ac_ext >&5
23608
23609ac_header_compiler=no
23610fi
ac1cb8d3 23611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23613echo "${ECHO_T}$ac_header_compiler" >&6
23614
23615# Is the header present?
23616echo "$as_me:$LINENO: checking mspack.h presence" >&5
23617echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23618cat >conftest.$ac_ext <<_ACEOF
23619/* confdefs.h. */
23620_ACEOF
23621cat confdefs.h >>conftest.$ac_ext
23622cat >>conftest.$ac_ext <<_ACEOF
23623/* end confdefs.h. */
23624#include <mspack.h>
23625_ACEOF
23626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23628 ac_status=$?
23629 grep -v '^ *+' conftest.er1 >conftest.err
23630 rm -f conftest.er1
23631 cat conftest.err >&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } >/dev/null; then
23634 if test -s conftest.err; then
23635 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23637 else
23638 ac_cpp_err=
23639 fi
23640else
23641 ac_cpp_err=yes
23642fi
23643if test -z "$ac_cpp_err"; then
23644 ac_header_preproc=yes
23645else
23646 echo "$as_me: failed program was:" >&5
23647sed 's/^/| /' conftest.$ac_ext >&5
23648
23649 ac_header_preproc=no
23650fi
23651rm -f conftest.err conftest.$ac_ext
23652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23653echo "${ECHO_T}$ac_header_preproc" >&6
23654
23655# So? What about this header?
ac1cb8d3
VS
23656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23657 yes:no: )
a848cd7e
SC
23658 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23659echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23660 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23661echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23662 ac_header_preproc=yes
a848cd7e 23663 ;;
ac1cb8d3 23664 no:yes:* )
a848cd7e
SC
23665 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23666echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23667 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23668echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23669 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23670echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23671 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23672echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23673 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23674echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23675 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23676echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23677 (
23678 cat <<\_ASBOX
ac1cb8d3
VS
23679## ----------------------------------------- ##
23680## Report this to wx-dev@lists.wxwidgets.org ##
23681## ----------------------------------------- ##
a848cd7e
SC
23682_ASBOX
23683 ) |
23684 sed "s/^/$as_me: WARNING: /" >&2
23685 ;;
23686esac
23687echo "$as_me:$LINENO: checking for mspack.h" >&5
23688echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23689if test "${ac_cv_header_mspack_h+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23691else
23692 ac_cv_header_mspack_h=$ac_header_preproc
23693fi
23694echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23695echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23696
23697fi
23698if test $ac_cv_header_mspack_h = yes; then
23699 found_mspack_h=1
23700fi
23701
23702
23703 if test "x$found_mspack_h" = "x1"; then
23704 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23705echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23706if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23708else
23709 ac_check_lib_save_LIBS=$LIBS
23710LIBS="-lmspack $LIBS"
23711cat >conftest.$ac_ext <<_ACEOF
23712/* confdefs.h. */
23713_ACEOF
23714cat confdefs.h >>conftest.$ac_ext
23715cat >>conftest.$ac_ext <<_ACEOF
23716/* end confdefs.h. */
23717
23718/* Override any gcc2 internal prototype to avoid an error. */
23719#ifdef __cplusplus
23720extern "C"
23721#endif
23722/* We use char because int might match the return type of a gcc2
23723 builtin and then its argument prototype would still apply. */
23724char mspack_create_chm_decompressor ();
23725int
23726main ()
23727{
23728mspack_create_chm_decompressor ();
23729 ;
23730 return 0;
23731}
23732_ACEOF
23733rm -f conftest.$ac_objext conftest$ac_exeext
23734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23735 (eval $ac_link) 2>conftest.er1
a848cd7e 23736 ac_status=$?
ac1cb8d3
VS
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
a848cd7e
SC
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } &&
89be85c2
VS
23742 { ac_try='test -z "$ac_c_werror_flag"
23743 || test ! -s conftest.err'
ac1cb8d3
VS
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; } &&
23749 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23756else
23757 echo "$as_me: failed program was:" >&5
23758sed 's/^/| /' conftest.$ac_ext >&5
23759
23760ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23761fi
ac1cb8d3
VS
23762rm -f conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23764LIBS=$ac_check_lib_save_LIBS
23765fi
23766echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23767echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23768if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23769 MSPACK_LINK=" -lmspack"
23770fi
23771
23772 fi
23773 if test "x$MSPACK_LINK" = "x" ; then
23774 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23775 fi
23776fi
23777
23778if test "$wxUSE_LIBMSPACK" != "no"; then
23779 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23780#define wxUSE_LIBMSPACK 1
23781_ACEOF
23782
a848cd7e
SC
23783fi
23784
23785
23786
23787AFMINSTALL=
23788WIN32INSTALL=
23789
23790TOOLKIT=
23791TOOLKIT_INCLUDE=
23792WIDGET_SET=
23793
23794if test "$USE_WIN32" = 1 ; then
23795
23796for ac_header in w32api.h
23797do
23798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23799if eval "test \"\${$as_ac_Header+set}\" = set"; then
23800 echo "$as_me:$LINENO: checking for $ac_header" >&5
23801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23802if eval "test \"\${$as_ac_Header+set}\" = set"; then
23803 echo $ECHO_N "(cached) $ECHO_C" >&6
23804fi
23805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23807else
23808 # Is the header compilable?
23809echo "$as_me:$LINENO: checking $ac_header usability" >&5
23810echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23811cat >conftest.$ac_ext <<_ACEOF
23812/* confdefs.h. */
23813_ACEOF
23814cat confdefs.h >>conftest.$ac_ext
23815cat >>conftest.$ac_ext <<_ACEOF
23816/* end confdefs.h. */
23817$ac_includes_default
23818#include <$ac_header>
23819_ACEOF
23820rm -f conftest.$ac_objext
23821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23822 (eval $ac_compile) 2>conftest.er1
a848cd7e 23823 ac_status=$?
ac1cb8d3
VS
23824 grep -v '^ *+' conftest.er1 >conftest.err
23825 rm -f conftest.er1
23826 cat conftest.err >&5
a848cd7e
SC
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); } &&
89be85c2
VS
23829 { ac_try='test -z "$ac_c_werror_flag"
23830 || test ! -s conftest.err'
ac1cb8d3
VS
23831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23832 (eval $ac_try) 2>&5
23833 ac_status=$?
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); }; } &&
23836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838 (eval $ac_try) 2>&5
23839 ac_status=$?
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); }; }; then
23842 ac_header_compiler=yes
23843else
23844 echo "$as_me: failed program was:" >&5
23845sed 's/^/| /' conftest.$ac_ext >&5
23846
23847ac_header_compiler=no
23848fi
ac1cb8d3 23849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23851echo "${ECHO_T}$ac_header_compiler" >&6
23852
23853# Is the header present?
23854echo "$as_me:$LINENO: checking $ac_header presence" >&5
23855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23856cat >conftest.$ac_ext <<_ACEOF
23857/* confdefs.h. */
23858_ACEOF
23859cat confdefs.h >>conftest.$ac_ext
23860cat >>conftest.$ac_ext <<_ACEOF
23861/* end confdefs.h. */
23862#include <$ac_header>
23863_ACEOF
23864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23866 ac_status=$?
23867 grep -v '^ *+' conftest.er1 >conftest.err
23868 rm -f conftest.er1
23869 cat conftest.err >&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } >/dev/null; then
23872 if test -s conftest.err; then
23873 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23875 else
23876 ac_cpp_err=
23877 fi
23878else
23879 ac_cpp_err=yes
23880fi
23881if test -z "$ac_cpp_err"; then
23882 ac_header_preproc=yes
23883else
23884 echo "$as_me: failed program was:" >&5
23885sed 's/^/| /' conftest.$ac_ext >&5
23886
23887 ac_header_preproc=no
23888fi
23889rm -f conftest.err conftest.$ac_ext
23890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23891echo "${ECHO_T}$ac_header_preproc" >&6
23892
23893# So? What about this header?
ac1cb8d3
VS
23894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23895 yes:no: )
a848cd7e
SC
23896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23900 ac_header_preproc=yes
a848cd7e 23901 ;;
ac1cb8d3 23902 no:yes:* )
a848cd7e
SC
23903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23915 (
23916 cat <<\_ASBOX
ac1cb8d3
VS
23917## ----------------------------------------- ##
23918## Report this to wx-dev@lists.wxwidgets.org ##
23919## ----------------------------------------- ##
a848cd7e
SC
23920_ASBOX
23921 ) |
23922 sed "s/^/$as_me: WARNING: /" >&2
23923 ;;
23924esac
23925echo "$as_me:$LINENO: checking for $ac_header" >&5
23926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23927if eval "test \"\${$as_ac_Header+set}\" = set"; then
23928 echo $ECHO_N "(cached) $ECHO_C" >&6
23929else
ac1cb8d3 23930 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23931fi
23932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23934
23935fi
23936if test `eval echo '${'$as_ac_Header'}'` = yes; then
23937 cat >>confdefs.h <<_ACEOF
23938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23939_ACEOF
23940
23941fi
23942
23943done
23944
23945 if test "${ac_cv_header_windows_h+set}" = set; then
23946 echo "$as_me:$LINENO: checking for windows.h" >&5
23947echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23948if test "${ac_cv_header_windows_h+set}" = set; then
23949 echo $ECHO_N "(cached) $ECHO_C" >&6
23950fi
23951echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23952echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23953else
23954 # Is the header compilable?
23955echo "$as_me:$LINENO: checking windows.h usability" >&5
23956echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23957cat >conftest.$ac_ext <<_ACEOF
23958/* confdefs.h. */
23959_ACEOF
23960cat confdefs.h >>conftest.$ac_ext
23961cat >>conftest.$ac_ext <<_ACEOF
23962/* end confdefs.h. */
23963$ac_includes_default
23964#include <windows.h>
23965_ACEOF
23966rm -f conftest.$ac_objext
23967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23968 (eval $ac_compile) 2>conftest.er1
a848cd7e 23969 ac_status=$?
ac1cb8d3
VS
23970 grep -v '^ *+' conftest.er1 >conftest.err
23971 rm -f conftest.er1
23972 cat conftest.err >&5
a848cd7e
SC
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } &&
89be85c2
VS
23975 { ac_try='test -z "$ac_c_werror_flag"
23976 || test ! -s conftest.err'
ac1cb8d3
VS
23977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; } &&
23982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23984 (eval $ac_try) 2>&5
23985 ac_status=$?
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); }; }; then
23988 ac_header_compiler=yes
23989else
23990 echo "$as_me: failed program was:" >&5
23991sed 's/^/| /' conftest.$ac_ext >&5
23992
23993ac_header_compiler=no
23994fi
ac1cb8d3 23995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23996echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23997echo "${ECHO_T}$ac_header_compiler" >&6
23998
23999# Is the header present?
24000echo "$as_me:$LINENO: checking windows.h presence" >&5
24001echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24002cat >conftest.$ac_ext <<_ACEOF
24003/* confdefs.h. */
24004_ACEOF
24005cat confdefs.h >>conftest.$ac_ext
24006cat >>conftest.$ac_ext <<_ACEOF
24007/* end confdefs.h. */
24008#include <windows.h>
24009_ACEOF
24010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24012 ac_status=$?
24013 grep -v '^ *+' conftest.er1 >conftest.err
24014 rm -f conftest.er1
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } >/dev/null; then
24018 if test -s conftest.err; then
24019 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24021 else
24022 ac_cpp_err=
24023 fi
24024else
24025 ac_cpp_err=yes
24026fi
24027if test -z "$ac_cpp_err"; then
24028 ac_header_preproc=yes
24029else
24030 echo "$as_me: failed program was:" >&5
24031sed 's/^/| /' conftest.$ac_ext >&5
24032
24033 ac_header_preproc=no
24034fi
24035rm -f conftest.err conftest.$ac_ext
24036echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24037echo "${ECHO_T}$ac_header_preproc" >&6
24038
24039# So? What about this header?
ac1cb8d3
VS
24040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24041 yes:no: )
a848cd7e
SC
24042 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24043echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24044 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24045echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24046 ac_header_preproc=yes
a848cd7e 24047 ;;
ac1cb8d3 24048 no:yes:* )
a848cd7e
SC
24049 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24050echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24051 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24052echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24053 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24054echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24055 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24056echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24057 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24058echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24059 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24060echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24061 (
24062 cat <<\_ASBOX
ac1cb8d3
VS
24063## ----------------------------------------- ##
24064## Report this to wx-dev@lists.wxwidgets.org ##
24065## ----------------------------------------- ##
a848cd7e
SC
24066_ASBOX
24067 ) |
24068 sed "s/^/$as_me: WARNING: /" >&2
24069 ;;
24070esac
24071echo "$as_me:$LINENO: checking for windows.h" >&5
24072echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24073if test "${ac_cv_header_windows_h+set}" = set; then
24074 echo $ECHO_N "(cached) $ECHO_C" >&6
24075else
24076 ac_cv_header_windows_h=$ac_header_preproc
24077fi
24078echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24079echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24080
24081fi
24082if test $ac_cv_header_windows_h = yes; then
24083 :
24084else
24085
24086 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24087echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24088 { (exit 1); exit 1; }; }
24089
24090fi
24091
24092
24093
24094 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24095
24096 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24097 LIBS="$LIBS -loleacc"
24098 fi
24099
24100 case "${host}" in
24101 *-*-cygwin* )
24102 LIBS="$LIBS -lkernel32 -luser32"
24103 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24104 esac
24105
24106 if test "$wxUSE_ODBC" = "sys" ; then
24107 wxUSE_ODBC = "yes"
24108 fi
24109 if test "$wxUSE_ODBC" = "yes" ; then
24110 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24111 cat >>confdefs.h <<\_ACEOF
24112#define wxUSE_ODBC 1
24113_ACEOF
24114
24115 fi
24116
24117 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24118 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24119
24120 WIN32INSTALL=win32install
24121fi
24122
24123if test "$wxUSE_GUI" = "yes"; then
24124 USE_GUI=1
24125
24126 GUI_TK_LIBRARY=
24127
24128 WXGTK12=
24129 WXGTK127=
24130 WXGTK20=
24131 WXGPE=
24132
207bc66c
RN
24133 if test "$wxUSE_COCOA" = 1 ; then
24134 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24135 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24136echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24137 wxUSE_PRINTING_ARCHITECTURE=no
24138 fi
24139 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24140 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24141echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24142 wxUSE_DRAG_AND_DROP=no
24143 fi
24144 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24145 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24146echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24147 wxUSE_DRAGIMAGE=no
24148 fi
24149 fi
24150
a848cd7e
SC
24151 if test "$wxUSE_MSW" = 1 ; then
24152 TOOLKIT=MSW
24153 GUIDIST=MSW_DIST
24154
ceec2216 24155 case "${host}" in
a848cd7e
SC
24156 *-*-mingw32* )
24157 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24158 esac
24159 fi
24160
24161 if test "$wxUSE_GTK" = 1; then
24162 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24163echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24164
24165 gtk_version_cached=1
24166 if test "${wx_cv_lib_gtk+set}" = set; then
24167 echo $ECHO_N "(cached) $ECHO_C" >&6
24168else
24169
24170 gtk_version_cached=0
24171 echo "$as_me:$LINENO: result: " >&5
24172echo "${ECHO_T}" >&6
24173
24174 GTK_MODULES=
24175 if test "$wxUSE_THREADS" = "yes"; then
24176 GTK_MODULES=gthread
24177 fi
24178
24179 wx_cv_lib_gtk=
24180 if test "x$wxUSE_GTK2" = "xyes"; then
24181 # Check whether --enable-gtktest or --disable-gtktest was given.
24182if test "${enable_gtktest+set}" = set; then
24183 enableval="$enable_gtktest"
24184
24185else
24186 enable_gtktest=yes
24187fi;
24188
24189 pkg_config_args=gtk+-2.0
24190 for module in . $GTK_MODULES
24191 do
24192 case "$module" in
24193 gthread)
24194 pkg_config_args="$pkg_config_args gthread-2.0"
24195 ;;
24196 esac
24197 done
24198
24199 no_gtk=""
24200
24201 # Extract the first word of "pkg-config", so it can be a program name with args.
24202set dummy pkg-config; ac_word=$2
24203echo "$as_me:$LINENO: checking for $ac_word" >&5
24204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24205if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24206 echo $ECHO_N "(cached) $ECHO_C" >&6
24207else
24208 case $PKG_CONFIG in
24209 [\\/]* | ?:[\\/]*)
24210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24211 ;;
24212 *)
24213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24214for as_dir in $PATH
24215do
24216 IFS=$as_save_IFS
24217 test -z "$as_dir" && as_dir=.
24218 for ac_exec_ext in '' $ac_executable_extensions; do
24219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24222 break 2
24223 fi
24224done
24225done
24226
24227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24228 ;;
24229esac
24230fi
24231PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24232
24233if test -n "$PKG_CONFIG"; then
24234 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24235echo "${ECHO_T}$PKG_CONFIG" >&6
24236else
24237 echo "$as_me:$LINENO: result: no" >&5
24238echo "${ECHO_T}no" >&6
24239fi
24240
24241
24242 if test x$PKG_CONFIG != xno ; then
24243 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24244 :
24245 else
c2218763 24246 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24247 no_gtk=yes
24248 PKG_CONFIG=no
24249 fi
24250 else
24251 no_gtk=yes
24252 fi
24253
24254 min_gtk_version=2.0.0
24255 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24256echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24257
24258 if test x$PKG_CONFIG != xno ; then
24259 ## don't try to run the test against uninstalled libtool libs
24260 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24261 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24262 enable_gtktest=no
24263 fi
24264
24265 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24266 :
24267 else
24268 no_gtk=yes
24269 fi
24270 fi
24271
24272 if test x"$no_gtk" = x ; then
24273 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24274 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24275 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24276 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24277 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24278 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24279 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24280 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24281 if test "x$enable_gtktest" = "xyes" ; then
24282 ac_save_CFLAGS="$CFLAGS"
24283 ac_save_LIBS="$LIBS"
24284 CFLAGS="$CFLAGS $GTK_CFLAGS"
24285 LIBS="$GTK_LIBS $LIBS"
24286 rm -f conf.gtktest
24287 if test "$cross_compiling" = yes; then
24288 echo $ac_n "cross compiling; assumed OK... $ac_c"
24289else
24290 cat >conftest.$ac_ext <<_ACEOF
24291/* confdefs.h. */
24292_ACEOF
24293cat confdefs.h >>conftest.$ac_ext
24294cat >>conftest.$ac_ext <<_ACEOF
24295/* end confdefs.h. */
24296
24297#include <gtk/gtk.h>
24298#include <stdio.h>
24299#include <stdlib.h>
24300
24301int
24302main ()
24303{
24304 int major, minor, micro;
24305 char *tmp_version;
24306
24307 system ("touch conf.gtktest");
24308
24309 /* HP/UX 9 (%@#!) writes to sscanf strings */
24310 tmp_version = g_strdup("$min_gtk_version");
24311 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24312 printf("%s, bad version string\n", "$min_gtk_version");
24313 exit(1);
24314 }
24315
24316 if ((gtk_major_version != $gtk_config_major_version) ||
24317 (gtk_minor_version != $gtk_config_minor_version) ||
24318 (gtk_micro_version != $gtk_config_micro_version))
24319 {
24320 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24321 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24322 gtk_major_version, gtk_minor_version, gtk_micro_version);
24323 printf ("*** was found! If pkg-config was correct, then it is best\n");
24324 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24325 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24326 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24327 printf("*** required on your system.\n");
24328 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24329 printf("*** to point to the correct configuration files\n");
24330 }
24331 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24332 (gtk_minor_version != GTK_MINOR_VERSION) ||
24333 (gtk_micro_version != GTK_MICRO_VERSION))
24334 {
24335 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24336 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24337 printf("*** library (version %d.%d.%d)\n",
24338 gtk_major_version, gtk_minor_version, gtk_micro_version);
24339 }
24340 else
24341 {
24342 if ((gtk_major_version > major) ||
24343 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24344 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24345 {
24346 return 0;
24347 }
24348 else
24349 {
24350 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24351 gtk_major_version, gtk_minor_version, gtk_micro_version);
24352 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24353 major, minor, micro);
24354 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24355 printf("***\n");
24356 printf("*** If you have already installed a sufficiently new version, this error\n");
24357 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24358 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24359 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24360 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24361 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24362 printf("*** so that the correct libraries are found at run-time))\n");
24363 }
24364 }
24365 return 1;
24366}
24367
24368_ACEOF
24369rm -f conftest$ac_exeext
24370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24371 (eval $ac_link) 2>&5
24372 ac_status=$?
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); }; }; then
24380 :
24381else
24382 echo "$as_me: program exited with status $ac_status" >&5
24383echo "$as_me: failed program was:" >&5
24384sed 's/^/| /' conftest.$ac_ext >&5
24385
24386( exit $ac_status )
24387no_gtk=yes
24388fi
ac1cb8d3 24389rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24390fi
24391 CFLAGS="$ac_save_CFLAGS"
24392 LIBS="$ac_save_LIBS"
24393 fi
24394 fi
24395 if test "x$no_gtk" = x ; then
24396 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24397echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24398 wx_cv_lib_gtk=2.0
24399 else
24400 echo "$as_me:$LINENO: result: no" >&5
24401echo "${ECHO_T}no" >&6
24402 if test "$PKG_CONFIG" = "no" ; then
24403 echo "*** A new enough version of pkg-config was not found."
24404 echo "*** See http://pkgconfig.sourceforge.net"
24405 else
24406 if test -f conf.gtktest ; then
24407 :
24408 else
24409 echo "*** Could not run GTK+ test program, checking why..."
24410 ac_save_CFLAGS="$CFLAGS"
24411 ac_save_LIBS="$LIBS"
24412 CFLAGS="$CFLAGS $GTK_CFLAGS"
24413 LIBS="$LIBS $GTK_LIBS"
24414 cat >conftest.$ac_ext <<_ACEOF
24415/* confdefs.h. */
24416_ACEOF
24417cat confdefs.h >>conftest.$ac_ext
24418cat >>conftest.$ac_ext <<_ACEOF
24419/* end confdefs.h. */
24420
24421#include <gtk/gtk.h>
24422#include <stdio.h>
24423
24424int
24425main ()
24426{
24427 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24428 ;
24429 return 0;
24430}
24431_ACEOF
24432rm -f conftest.$ac_objext conftest$ac_exeext
24433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24434 (eval $ac_link) 2>conftest.er1
a848cd7e 24435 ac_status=$?
ac1cb8d3
VS
24436 grep -v '^ *+' conftest.er1 >conftest.err
24437 rm -f conftest.er1
24438 cat conftest.err >&5
a848cd7e
SC
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } &&
89be85c2
VS
24441 { ac_try='test -z "$ac_c_werror_flag"
24442 || test ! -s conftest.err'
ac1cb8d3
VS
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24445 ac_status=$?
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; } &&
24448 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450 (eval $ac_try) 2>&5
24451 ac_status=$?
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); }; }; then
24454 echo "*** The test program compiled, but did not run. This usually means"
24455 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24456 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24457 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24458 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24459 echo "*** is required on your system"
24460 echo "***"
24461 echo "*** If you have an old version installed, it is best to remove it, although"
24462 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24463else
24464 echo "$as_me: failed program was:" >&5
24465sed 's/^/| /' conftest.$ac_ext >&5
24466
24467 echo "*** The test program failed to compile or link. See the file config.log for the"
24468 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24469fi
ac1cb8d3
VS
24470rm -f conftest.err conftest.$ac_objext \
24471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24472 CFLAGS="$ac_save_CFLAGS"
24473 LIBS="$ac_save_LIBS"
24474 fi
24475 fi
24476 GTK_CFLAGS=""
24477 GTK_LIBS=""
24478 :
24479 fi
24480
24481
24482 rm -f conf.gtktest
24483
24484 else
24485
24486# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24487if test "${with_gtk_prefix+set}" = set; then
24488 withval="$with_gtk_prefix"
24489 gtk_config_prefix="$withval"
24490else
24491 gtk_config_prefix=""
24492fi;
24493
24494# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24495if test "${with_gtk_exec_prefix+set}" = set; then
24496 withval="$with_gtk_exec_prefix"
24497 gtk_config_exec_prefix="$withval"
24498else
24499 gtk_config_exec_prefix=""
24500fi;
24501# Check whether --enable-gtktest or --disable-gtktest was given.
24502if test "${enable_gtktest+set}" = set; then
24503 enableval="$enable_gtktest"
24504
24505else
24506 enable_gtktest=yes
24507fi;
24508
24509 for module in . $GTK_MODULES
24510 do
24511 case "$module" in
24512 gthread)
24513 gtk_config_args="$gtk_config_args gthread"
24514 ;;
24515 esac
24516 done
24517
24518 if test x$gtk_config_exec_prefix != x ; then
24519 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24520 if test x${GTK_CONFIG+set} != xset ; then
24521 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24522 fi
24523 fi
24524 if test x$gtk_config_prefix != x ; then
24525 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24526 if test x${GTK_CONFIG+set} != xset ; then
24527 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24528 fi
24529 fi
24530
24531 # Extract the first word of "gtk-config", so it can be a program name with args.
24532set dummy gtk-config; ac_word=$2
24533echo "$as_me:$LINENO: checking for $ac_word" >&5
24534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24535if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24537else
24538 case $GTK_CONFIG in
24539 [\\/]* | ?:[\\/]*)
24540 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24541 ;;
24542 *)
24543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24544for as_dir in $PATH
24545do
24546 IFS=$as_save_IFS
24547 test -z "$as_dir" && as_dir=.
24548 for ac_exec_ext in '' $ac_executable_extensions; do
24549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24550 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24552 break 2
24553 fi
24554done
24555done
24556
24557 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24558 ;;
24559esac
24560fi
24561GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24562
24563if test -n "$GTK_CONFIG"; then
24564 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24565echo "${ECHO_T}$GTK_CONFIG" >&6
24566else
24567 echo "$as_me:$LINENO: result: no" >&5
24568echo "${ECHO_T}no" >&6
24569fi
24570
24571 min_gtk_version=1.2.7
24572 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24573echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24574 no_gtk=""
24575 if test "$GTK_CONFIG" = "no" ; then
24576 no_gtk=yes
24577 else
24578 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24579 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24580 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24581 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24582 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24583 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24584 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24585 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24586 if test "x$enable_gtktest" = "xyes" ; then
24587 ac_save_CFLAGS="$CFLAGS"
24588 ac_save_LIBS="$LIBS"
24589 CFLAGS="$CFLAGS $GTK_CFLAGS"
24590 LIBS="$GTK_LIBS $LIBS"
24591 rm -f conf.gtktest
24592 if test "$cross_compiling" = yes; then
24593 echo $ac_n "cross compiling; assumed OK... $ac_c"
24594else
24595 cat >conftest.$ac_ext <<_ACEOF
24596/* confdefs.h. */
24597_ACEOF
24598cat confdefs.h >>conftest.$ac_ext
24599cat >>conftest.$ac_ext <<_ACEOF
24600/* end confdefs.h. */
24601
24602#include <gtk/gtk.h>
24603#include <stdio.h>
24604#include <stdlib.h>
24605
24606int
24607main ()
24608{
24609 int major, minor, micro;
24610 char *tmp_version;
24611
24612 system ("touch conf.gtktest");
24613
24614 /* HP/UX 9 (%@#!) writes to sscanf strings */
24615 tmp_version = g_strdup("$min_gtk_version");
24616 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24617 printf("%s, bad version string\n", "$min_gtk_version");
24618 exit(1);
24619 }
24620
24621 if ((gtk_major_version != $gtk_config_major_version) ||
24622 (gtk_minor_version != $gtk_config_minor_version) ||
24623 (gtk_micro_version != $gtk_config_micro_version))
24624 {
24625 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24626 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24627 gtk_major_version, gtk_minor_version, gtk_micro_version);
24628 printf ("*** was found! If gtk-config was correct, then it is best\n");
24629 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24630 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24631 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24632 printf("*** required on your system.\n");
24633 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24634 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24635 printf("*** before re-running configure\n");
24636 }
24637#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24638 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24639 (gtk_minor_version != GTK_MINOR_VERSION) ||
24640 (gtk_micro_version != GTK_MICRO_VERSION))
24641 {
24642 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24643 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24644 printf("*** library (version %d.%d.%d)\n",
24645 gtk_major_version, gtk_minor_version, gtk_micro_version);
24646 }
24647#endif /* defined (GTK_MAJOR_VERSION) ... */
24648 else
24649 {
24650 if ((gtk_major_version > major) ||
24651 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24652 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24653 {
24654 return 0;
24655 }
24656 else
24657 {
24658 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24659 gtk_major_version, gtk_minor_version, gtk_micro_version);
24660 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24661 major, minor, micro);
24662 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24663 printf("***\n");
24664 printf("*** If you have already installed a sufficiently new version, this error\n");
24665 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24666 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24667 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24668 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24669 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24670 printf("*** so that the correct libraries are found at run-time))\n");
24671 }
24672 }
24673 return 1;
24674}
24675
24676_ACEOF
24677rm -f conftest$ac_exeext
24678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24679 (eval $ac_link) 2>&5
24680 ac_status=$?
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
24688 :
24689else
24690 echo "$as_me: program exited with status $ac_status" >&5
24691echo "$as_me: failed program was:" >&5
24692sed 's/^/| /' conftest.$ac_ext >&5
24693
24694( exit $ac_status )
24695no_gtk=yes
24696fi
ac1cb8d3 24697rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24698fi
24699 CFLAGS="$ac_save_CFLAGS"
24700 LIBS="$ac_save_LIBS"
24701 fi
24702 fi
24703 if test "x$no_gtk" = x ; then
24704 echo "$as_me:$LINENO: result: yes" >&5
24705echo "${ECHO_T}yes" >&6
24706 wx_cv_lib_gtk=1.2.7
24707 else
24708 echo "$as_me:$LINENO: result: no" >&5
24709echo "${ECHO_T}no" >&6
24710 if test "$GTK_CONFIG" = "no" ; then
24711 echo "*** The gtk-config script installed by GTK could not be found"
24712 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24713 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24714 echo "*** full path to gtk-config."
24715 else
24716 if test -f conf.gtktest ; then
24717 :
24718 else
24719 echo "*** Could not run GTK test program, checking why..."
24720 CFLAGS="$CFLAGS $GTK_CFLAGS"
24721 LIBS="$LIBS $GTK_LIBS"
24722 cat >conftest.$ac_ext <<_ACEOF
24723/* confdefs.h. */
24724_ACEOF
24725cat confdefs.h >>conftest.$ac_ext
24726cat >>conftest.$ac_ext <<_ACEOF
24727/* end confdefs.h. */
24728
24729#include <gtk/gtk.h>
24730#include <stdio.h>
24731
24732int
24733main ()
24734{
24735 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24736 ;
24737 return 0;
24738}
24739_ACEOF
24740rm -f conftest.$ac_objext conftest$ac_exeext
24741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24742 (eval $ac_link) 2>conftest.er1
a848cd7e 24743 ac_status=$?
ac1cb8d3
VS
24744 grep -v '^ *+' conftest.er1 >conftest.err
24745 rm -f conftest.er1
24746 cat conftest.err >&5
a848cd7e
SC
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); } &&
89be85c2
VS
24749 { ac_try='test -z "$ac_c_werror_flag"
24750 || test ! -s conftest.err'
ac1cb8d3
VS
24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 (eval $ac_try) 2>&5
24753 ac_status=$?
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; } &&
24756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24759 ac_status=$?
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; }; then
24762 echo "*** The test program compiled, but did not run. This usually means"
24763 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24764 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24765 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24766 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24767 echo "*** is required on your system"
24768 echo "***"
24769 echo "*** If you have an old version installed, it is best to remove it, although"
24770 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24771 echo "***"
24772 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24773 echo "*** came with the system with the command"
24774 echo "***"
24775 echo "*** rpm --erase --nodeps gtk gtk-devel"
24776else
24777 echo "$as_me: failed program was:" >&5
24778sed 's/^/| /' conftest.$ac_ext >&5
24779
24780 echo "*** The test program failed to compile or link. See the file config.log for the"
24781 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24782 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24783 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24784fi
ac1cb8d3
VS
24785rm -f conftest.err conftest.$ac_objext \
24786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24787 CFLAGS="$ac_save_CFLAGS"
24788 LIBS="$ac_save_LIBS"
24789 fi
24790 fi
24791 GTK_CFLAGS=""
24792 GTK_LIBS=""
24793 :
24794 fi
24795
24796
24797 rm -f conf.gtktest
24798
24799
24800 if test -z "$wx_cv_lib_gtk"; then
24801
24802# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24803if test "${with_gtk_prefix+set}" = set; then
24804 withval="$with_gtk_prefix"
24805 gtk_config_prefix="$withval"
24806else
24807 gtk_config_prefix=""
24808fi;
24809
24810# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24811if test "${with_gtk_exec_prefix+set}" = set; then
24812 withval="$with_gtk_exec_prefix"
24813 gtk_config_exec_prefix="$withval"
24814else
24815 gtk_config_exec_prefix=""
24816fi;
24817# Check whether --enable-gtktest or --disable-gtktest was given.
24818if test "${enable_gtktest+set}" = set; then
24819 enableval="$enable_gtktest"
24820
24821else
24822 enable_gtktest=yes
24823fi;
24824
24825 for module in . $GTK_MODULES
24826 do
24827 case "$module" in
24828 gthread)
24829 gtk_config_args="$gtk_config_args gthread"
24830 ;;
24831 esac
24832 done
24833
24834 if test x$gtk_config_exec_prefix != x ; then
24835 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24836 if test x${GTK_CONFIG+set} != xset ; then
24837 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24838 fi
24839 fi
24840 if test x$gtk_config_prefix != x ; then
24841 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24842 if test x${GTK_CONFIG+set} != xset ; then
24843 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24844 fi
24845 fi
24846
24847 # Extract the first word of "gtk-config", so it can be a program name with args.
24848set dummy gtk-config; ac_word=$2
24849echo "$as_me:$LINENO: checking for $ac_word" >&5
24850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24851if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24852 echo $ECHO_N "(cached) $ECHO_C" >&6
24853else
24854 case $GTK_CONFIG in
24855 [\\/]* | ?:[\\/]*)
24856 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24857 ;;
24858 *)
24859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24860for as_dir in $PATH
24861do
24862 IFS=$as_save_IFS
24863 test -z "$as_dir" && as_dir=.
24864 for ac_exec_ext in '' $ac_executable_extensions; do
24865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24866 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24868 break 2
24869 fi
24870done
24871done
24872
24873 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24874 ;;
24875esac
24876fi
24877GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24878
24879if test -n "$GTK_CONFIG"; then
24880 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24881echo "${ECHO_T}$GTK_CONFIG" >&6
24882else
24883 echo "$as_me:$LINENO: result: no" >&5
24884echo "${ECHO_T}no" >&6
24885fi
24886
24887 min_gtk_version=1.2.3
24888 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24889echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24890 no_gtk=""
24891 if test "$GTK_CONFIG" = "no" ; then
24892 no_gtk=yes
24893 else
24894 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24895 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24896 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24897 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24898 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24899 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24900 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24901 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24902 if test "x$enable_gtktest" = "xyes" ; then
24903 ac_save_CFLAGS="$CFLAGS"
24904 ac_save_LIBS="$LIBS"
24905 CFLAGS="$CFLAGS $GTK_CFLAGS"
24906 LIBS="$GTK_LIBS $LIBS"
24907 rm -f conf.gtktest
24908 if test "$cross_compiling" = yes; then
24909 echo $ac_n "cross compiling; assumed OK... $ac_c"
24910else
24911 cat >conftest.$ac_ext <<_ACEOF
24912/* confdefs.h. */
24913_ACEOF
24914cat confdefs.h >>conftest.$ac_ext
24915cat >>conftest.$ac_ext <<_ACEOF
24916/* end confdefs.h. */
24917
24918#include <gtk/gtk.h>
24919#include <stdio.h>
24920#include <stdlib.h>
24921
24922int
24923main ()
24924{
24925 int major, minor, micro;
24926 char *tmp_version;
24927
24928 system ("touch conf.gtktest");
24929
24930 /* HP/UX 9 (%@#!) writes to sscanf strings */
24931 tmp_version = g_strdup("$min_gtk_version");
24932 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24933 printf("%s, bad version string\n", "$min_gtk_version");
24934 exit(1);
24935 }
24936
24937 if ((gtk_major_version != $gtk_config_major_version) ||
24938 (gtk_minor_version != $gtk_config_minor_version) ||
24939 (gtk_micro_version != $gtk_config_micro_version))
24940 {
24941 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24942 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24943 gtk_major_version, gtk_minor_version, gtk_micro_version);
24944 printf ("*** was found! If gtk-config was correct, then it is best\n");
24945 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24946 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24947 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24948 printf("*** required on your system.\n");
24949 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24950 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24951 printf("*** before re-running configure\n");
24952 }
24953#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24954 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24955 (gtk_minor_version != GTK_MINOR_VERSION) ||
24956 (gtk_micro_version != GTK_MICRO_VERSION))
24957 {
24958 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24959 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24960 printf("*** library (version %d.%d.%d)\n",
24961 gtk_major_version, gtk_minor_version, gtk_micro_version);
24962 }
24963#endif /* defined (GTK_MAJOR_VERSION) ... */
24964 else
24965 {
24966 if ((gtk_major_version > major) ||
24967 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24968 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24969 {
24970 return 0;
24971 }
24972 else
24973 {
24974 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24975 gtk_major_version, gtk_minor_version, gtk_micro_version);
24976 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24977 major, minor, micro);
24978 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24979 printf("***\n");
24980 printf("*** If you have already installed a sufficiently new version, this error\n");
24981 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24982 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24983 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24984 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24985 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24986 printf("*** so that the correct libraries are found at run-time))\n");
24987 }
24988 }
24989 return 1;
24990}
24991
24992_ACEOF
24993rm -f conftest$ac_exeext
24994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995 (eval $ac_link) 2>&5
24996 ac_status=$?
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25001 ac_status=$?
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; }; then
25004 :
25005else
25006 echo "$as_me: program exited with status $ac_status" >&5
25007echo "$as_me: failed program was:" >&5
25008sed 's/^/| /' conftest.$ac_ext >&5
25009
25010( exit $ac_status )
25011no_gtk=yes
25012fi
ac1cb8d3 25013rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25014fi
25015 CFLAGS="$ac_save_CFLAGS"
25016 LIBS="$ac_save_LIBS"
25017 fi
25018 fi
25019 if test "x$no_gtk" = x ; then
25020 echo "$as_me:$LINENO: result: yes" >&5
25021echo "${ECHO_T}yes" >&6
25022 wx_cv_lib_gtk=1.2.3
25023 else
25024 echo "$as_me:$LINENO: result: no" >&5
25025echo "${ECHO_T}no" >&6
25026 if test "$GTK_CONFIG" = "no" ; then
25027 echo "*** The gtk-config script installed by GTK could not be found"
25028 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25029 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25030 echo "*** full path to gtk-config."
25031 else
25032 if test -f conf.gtktest ; then
25033 :
25034 else
25035 echo "*** Could not run GTK test program, checking why..."
25036 CFLAGS="$CFLAGS $GTK_CFLAGS"
25037 LIBS="$LIBS $GTK_LIBS"
25038 cat >conftest.$ac_ext <<_ACEOF
25039/* confdefs.h. */
25040_ACEOF
25041cat confdefs.h >>conftest.$ac_ext
25042cat >>conftest.$ac_ext <<_ACEOF
25043/* end confdefs.h. */
25044
25045#include <gtk/gtk.h>
25046#include <stdio.h>
25047
25048int
25049main ()
25050{
25051 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25052 ;
25053 return 0;
25054}
25055_ACEOF
25056rm -f conftest.$ac_objext conftest$ac_exeext
25057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25058 (eval $ac_link) 2>conftest.er1
a848cd7e 25059 ac_status=$?
ac1cb8d3
VS
25060 grep -v '^ *+' conftest.er1 >conftest.err
25061 rm -f conftest.er1
25062 cat conftest.err >&5
a848cd7e
SC
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); } &&
89be85c2
VS
25065 { ac_try='test -z "$ac_c_werror_flag"
25066 || test ! -s conftest.err'
ac1cb8d3
VS
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; } &&
25072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); }; }; then
25078 echo "*** The test program compiled, but did not run. This usually means"
25079 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25080 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25081 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25082 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25083 echo "*** is required on your system"
25084 echo "***"
25085 echo "*** If you have an old version installed, it is best to remove it, although"
25086 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25087 echo "***"
25088 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25089 echo "*** came with the system with the command"
25090 echo "***"
25091 echo "*** rpm --erase --nodeps gtk gtk-devel"
25092else
25093 echo "$as_me: failed program was:" >&5
25094sed 's/^/| /' conftest.$ac_ext >&5
25095
25096 echo "*** The test program failed to compile or link. See the file config.log for the"
25097 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25098 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25099 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25100fi
ac1cb8d3
VS
25101rm -f conftest.err conftest.$ac_objext \
25102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25103 CFLAGS="$ac_save_CFLAGS"
25104 LIBS="$ac_save_LIBS"
25105 fi
25106 fi
25107 GTK_CFLAGS=""
25108 GTK_LIBS=""
25109 :
25110 fi
25111
25112
25113 rm -f conf.gtktest
25114
25115 fi
25116 fi
25117
25118 if test -z "$wx_cv_lib_gtk"; then
25119 wx_cv_lib_gtk=none
25120 else
25121 wx_cv_cflags_gtk=$GTK_CFLAGS
25122 wx_cv_libs_gtk=$GTK_LIBS
25123 fi
25124
25125
25126fi
25127
25128
25129 if test "$gtk_version_cached" = 1; then
25130 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25131echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25132 fi
25133
25134 case "$wx_cv_lib_gtk" in
25135 2.0) WXGTK20=1
25136 TOOLKIT_VERSION=2
25137 ;;
25138 1.2.7) WXGTK127=1
25139 WXGTK12=1
25140 ;;
25141 1.2.3) WXGTK12=1
25142 ;;
25143 *) { { echo "$as_me:$LINENO: error:
25144Please check that gtk-config is in path, the directory
25145where GTK+ libraries are installed (returned by
25146'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25147equivalent variable and GTK+ is version 1.2.3 or above.
25148 " >&5
25149echo "$as_me: error:
25150Please check that gtk-config is in path, the directory
25151where GTK+ libraries are installed (returned by
25152'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25153equivalent variable and GTK+ is version 1.2.3 or above.
25154 " >&2;}
25155 { (exit 1); exit 1; }; }
25156 ;;
25157 esac
25158
25159 if test "$WXGTK20" = 1; then
304205f1
VS
25160 save_CFLAGS="$CFLAGS"
25161 save_LIBS="$LIBS"
25162 CFLAGS="$CFLAGS $GTK_CFLAGS"
25163 LIBS="$LIBS $GTK_LIBS"
25164
9755e73b 25165
304205f1
VS
25166for ac_func in pango_font_family_is_monospace
25167do
25168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25169echo "$as_me:$LINENO: checking for $ac_func" >&5
25170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25171if eval "test \"\${$as_ac_var+set}\" = set"; then
25172 echo $ECHO_N "(cached) $ECHO_C" >&6
25173else
25174 cat >conftest.$ac_ext <<_ACEOF
25175/* confdefs.h. */
25176_ACEOF
25177cat confdefs.h >>conftest.$ac_ext
25178cat >>conftest.$ac_ext <<_ACEOF
25179/* end confdefs.h. */
25180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25182#define $ac_func innocuous_$ac_func
25183
25184/* System header to define __stub macros and hopefully few prototypes,
25185 which can conflict with char $ac_func (); below.
25186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25187 <limits.h> exists even on freestanding compilers. */
25188
25189#ifdef __STDC__
25190# include <limits.h>
25191#else
25192# include <assert.h>
25193#endif
25194
25195#undef $ac_func
25196
25197/* Override any gcc2 internal prototype to avoid an error. */
25198#ifdef __cplusplus
25199extern "C"
25200{
25201#endif
25202/* We use char because int might match the return type of a gcc2
25203 builtin and then its argument prototype would still apply. */
25204char $ac_func ();
25205/* The GNU C library defines this for functions which it implements
25206 to always fail with ENOSYS. Some functions are actually named
25207 something starting with __ and the normal name is an alias. */
25208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25209choke me
25210#else
25211char (*f) () = $ac_func;
25212#endif
25213#ifdef __cplusplus
25214}
25215#endif
25216
25217int
25218main ()
25219{
25220return f != $ac_func;
25221 ;
25222 return 0;
25223}
25224_ACEOF
25225rm -f conftest.$ac_objext conftest$ac_exeext
25226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25227 (eval $ac_link) 2>conftest.er1
25228 ac_status=$?
25229 grep -v '^ *+' conftest.er1 >conftest.err
25230 rm -f conftest.er1
25231 cat conftest.err >&5
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); } &&
89be85c2
VS
25234 { ac_try='test -z "$ac_c_werror_flag"
25235 || test ! -s conftest.err'
304205f1
VS
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; } &&
25241 { ac_try='test -s conftest$ac_exeext'
25242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); }; }; then
25247 eval "$as_ac_var=yes"
25248else
25249 echo "$as_me: failed program was:" >&5
25250sed 's/^/| /' conftest.$ac_ext >&5
25251
25252eval "$as_ac_var=no"
25253fi
25254rm -f conftest.err conftest.$ac_objext \
25255 conftest$ac_exeext conftest.$ac_ext
25256fi
25257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25259if test `eval echo '${'$as_ac_var'}'` = yes; then
25260 cat >>confdefs.h <<_ACEOF
25261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25262_ACEOF
25263
25264fi
25265done
25266
9755e73b
VS
25267
25268 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25269echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25270 cat >conftest.$ac_ext <<_ACEOF
25271/* confdefs.h. */
25272_ACEOF
25273cat confdefs.h >>conftest.$ac_ext
25274cat >>conftest.$ac_ext <<_ACEOF
25275/* end confdefs.h. */
25276
25277 #include <gtk/gtk.h>
25278
25279int
25280main ()
25281{
25282
25283 #if !GTK_CHECK_VERSION(2,4,0)
25284 #error "Not GTK+ 2.4"
25285 #endif
25286
25287 ;
25288 return 0;
25289}
25290_ACEOF
25291rm -f conftest.$ac_objext
25292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25293 (eval $ac_compile) 2>conftest.er1
25294 ac_status=$?
25295 grep -v '^ *+' conftest.er1 >conftest.err
25296 rm -f conftest.er1
25297 cat conftest.err >&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } &&
89be85c2
VS
25300 { ac_try='test -z "$ac_c_werror_flag"
25301 || test ! -s conftest.err'
9755e73b
VS
25302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303 (eval $ac_try) 2>&5
25304 ac_status=$?
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); }; } &&
25307 { ac_try='test -s conftest.$ac_objext'
25308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309 (eval $ac_try) 2>&5
25310 ac_status=$?
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313
25314 cat >>confdefs.h <<\_ACEOF
25315#define __WXGTK24__ 1
25316_ACEOF
25317
25318 echo "$as_me:$LINENO: result: yes" >&5
25319echo "${ECHO_T}yes" >&6
25320
25321else
25322 echo "$as_me: failed program was:" >&5
25323sed 's/^/| /' conftest.$ac_ext >&5
25324
25325
25326 echo "$as_me:$LINENO: result: no" >&5
25327echo "${ECHO_T}no" >&6
25328
25329fi
25330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25331
304205f1
VS
25332 CFLAGS="$save_CFLAGS"
25333 LIBS="$save_LIBS"
a848cd7e
SC
25334 else
25335 if test "$wxUSE_UNICODE" = "yes"; then
25336 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25337echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25338 wxUSE_UNICODE=no
25339 fi
25340 fi
25341
25342 if test "$USE_DARWIN" != 1; then
25343
25344for ac_func in poll
25345do
25346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25347echo "$as_me:$LINENO: checking for $ac_func" >&5
25348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25349if eval "test \"\${$as_ac_var+set}\" = set"; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
25351else
25352 cat >conftest.$ac_ext <<_ACEOF
25353/* confdefs.h. */
25354_ACEOF
25355cat confdefs.h >>conftest.$ac_ext
25356cat >>conftest.$ac_ext <<_ACEOF
25357/* end confdefs.h. */
ac1cb8d3
VS
25358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25360#define $ac_func innocuous_$ac_func
25361
a848cd7e
SC
25362/* System header to define __stub macros and hopefully few prototypes,
25363 which can conflict with char $ac_func (); below.
25364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25365 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25366
a848cd7e
SC
25367#ifdef __STDC__
25368# include <limits.h>
25369#else
25370# include <assert.h>
25371#endif
ac1cb8d3
VS
25372
25373#undef $ac_func
25374
a848cd7e
SC
25375/* Override any gcc2 internal prototype to avoid an error. */
25376#ifdef __cplusplus
25377extern "C"
25378{
25379#endif
25380/* We use char because int might match the return type of a gcc2
25381 builtin and then its argument prototype would still apply. */
25382char $ac_func ();
25383/* The GNU C library defines this for functions which it implements
25384 to always fail with ENOSYS. Some functions are actually named
25385 something starting with __ and the normal name is an alias. */
25386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25387choke me
25388#else
25389char (*f) () = $ac_func;
25390#endif
25391#ifdef __cplusplus
25392}
25393#endif
25394
25395int
25396main ()
25397{
25398return f != $ac_func;
25399 ;
25400 return 0;
25401}
25402_ACEOF
25403rm -f conftest.$ac_objext conftest$ac_exeext
25404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25405 (eval $ac_link) 2>conftest.er1
a848cd7e 25406 ac_status=$?
ac1cb8d3
VS
25407 grep -v '^ *+' conftest.er1 >conftest.err
25408 rm -f conftest.er1
25409 cat conftest.err >&5
a848cd7e
SC
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } &&
89be85c2
VS
25412 { ac_try='test -z "$ac_c_werror_flag"
25413 || test ! -s conftest.err'
ac1cb8d3
VS
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25416 ac_status=$?
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; } &&
25419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; }; then
25425 eval "$as_ac_var=yes"
25426else
25427 echo "$as_me: failed program was:" >&5
25428sed 's/^/| /' conftest.$ac_ext >&5
25429
25430eval "$as_ac_var=no"
25431fi
ac1cb8d3
VS
25432rm -f conftest.err conftest.$ac_objext \
25433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25434fi
25435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25437if test `eval echo '${'$as_ac_var'}'` = yes; then
25438 cat >>confdefs.h <<_ACEOF
25439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25440_ACEOF
25441
25442fi
25443done
25444
25445 fi
25446
25447 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25448 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25449
25450 AFMINSTALL=afminstall
25451 TOOLKIT=GTK
25452 GUIDIST=GTK_DIST
25453
25454 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25455echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25456if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25458else
25459 ac_check_lib_save_LIBS=$LIBS
25460LIBS="-lgdk $LIBS"
25461cat >conftest.$ac_ext <<_ACEOF
25462/* confdefs.h. */
25463_ACEOF
25464cat confdefs.h >>conftest.$ac_ext
25465cat >>conftest.$ac_ext <<_ACEOF
25466/* end confdefs.h. */
25467
25468/* Override any gcc2 internal prototype to avoid an error. */
25469#ifdef __cplusplus
25470extern "C"
25471#endif
25472/* We use char because int might match the return type of a gcc2
25473 builtin and then its argument prototype would still apply. */
25474char gdk_im_open ();
25475int
25476main ()
25477{
25478gdk_im_open ();
25479 ;
25480 return 0;
25481}
25482_ACEOF
25483rm -f conftest.$ac_objext conftest$ac_exeext
25484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25485 (eval $ac_link) 2>conftest.er1
a848cd7e 25486 ac_status=$?
ac1cb8d3
VS
25487 grep -v '^ *+' conftest.er1 >conftest.err
25488 rm -f conftest.er1
25489 cat conftest.err >&5
a848cd7e
SC
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); } &&
89be85c2
VS
25492 { ac_try='test -z "$ac_c_werror_flag"
25493 || test ! -s conftest.err'
ac1cb8d3
VS
25494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25496 ac_status=$?
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; } &&
25499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25502 ac_status=$?
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; }; then
25505 ac_cv_lib_gdk_gdk_im_open=yes
25506else
25507 echo "$as_me: failed program was:" >&5
25508sed 's/^/| /' conftest.$ac_ext >&5
25509
25510ac_cv_lib_gdk_gdk_im_open=no
25511fi
ac1cb8d3
VS
25512rm -f conftest.err conftest.$ac_objext \
25513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25514LIBS=$ac_check_lib_save_LIBS
25515fi
25516echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25517echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25518if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25519 cat >>confdefs.h <<\_ACEOF
25520#define HAVE_XIM 1
25521_ACEOF
25522
25523fi
25524
25525
25526
25527 if test "$wxUSE_GPE" = "yes"; then
25528 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25529echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25530
25531ac_find_libraries=
25532for ac_dir in $SEARCH_LIB /usr/lib;
25533 do
25534 for ac_extension in a so sl dylib; do
25535 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25536 ac_find_libraries=$ac_dir
25537 break 2
25538 fi
25539 done
25540 done
25541
25542 if test "$ac_find_libraries" != "" ; then
25543
25544 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25545 result=$?
25546 if test $result = 0; then
25547 ac_path_to_link=""
25548 else
25549 ac_path_to_link=" -L$ac_find_libraries"
25550 fi
25551
25552 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25553 WXGPE=1
25554 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25555echo "${ECHO_T}found at $ac_find_libraries" >&6
25556 else
25557 echo "$as_me:$LINENO: result: not found" >&5
25558echo "${ECHO_T}not found" >&6
25559 fi
25560
25561 fi
25562 fi
25563
25564 if test "$wxUSE_MGL" = 1; then
25565 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25566echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25567 if test "x$MGL_ROOT" = x ; then
25568 echo "$as_me:$LINENO: result: not found" >&5
25569echo "${ECHO_T}not found" >&6
25570 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25571echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25572 { (exit 1); exit 1; }; }
25573 else
25574 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25575echo "${ECHO_T}$MGL_ROOT" >&6
25576 fi
25577
25578 echo "$as_me:$LINENO: checking for libmgl location" >&5
25579echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25580 case "${host}" in
25581 *-*-linux* )
25582 if test "x$wxUSE_SHARED" = xyes ; then
25583 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25584 else
25585 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25586 fi
25587 ;;
25588 *-pc-msdosdjgpp )
25589 mgl_os_candidates="dos32/dj2"
25590 ;;
25591 *)
25592 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25593echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25594 { (exit 1); exit 1; }; }
25595 esac
25596
25597 mgl_lib_type=""
25598 mgl_os=""
25599
25600 for mgl_os_i in $mgl_os_candidates ; do
25601 if test "x$mgl_os" = x ; then
25602 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25603 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25604 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25605 mgl_lib_type=debug
25606 mgl_os=$mgl_os_i
25607 fi
25608 fi
25609 if test "x$mgl_lib_type" = x ; then
25610 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25611 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25612 mgl_lib_type=release
25613 mgl_os=$mgl_os_i
25614 fi
25615 fi
25616 fi
25617 done
25618
25619 if test "x$mgl_os" = x ; then
25620 echo "$as_me:$LINENO: result: not found" >&5
25621echo "${ECHO_T}not found" >&6
25622 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25623echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25624 { (exit 1); exit 1; }; }
25625 fi
25626 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25627echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25628
25629 wxUSE_UNIVERSAL="yes"
25630
25631 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25632 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25633
25634 AFMINSTALL=afminstall
25635 TOOLKIT=MGL
25636 GUIDIST=MGL_DIST
25637 fi
25638
25639 if test "$wxUSE_MICROWIN" = 1; then
25640 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25641echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25642 if test "x$MICROWINDOWS" = x ; then
25643 echo "$as_me:$LINENO: result: not found" >&5
25644echo "${ECHO_T}not found" >&6
25645 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25646echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25647 { (exit 1); exit 1; }; }
25648 else
25649 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25650echo "${ECHO_T}$MICROWINDOWS" >&6
25651 fi
25652
25653 if test -f $MICROWINDOWS/lib/libmwin.a; then
25654 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25655echo "${ECHO_T}MicroWindows' libraries found." >&6
25656 else
25657 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25658echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25659 { (exit 1); exit 1; }; }
25660 fi
25661
25662 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25663 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25664
25665 wxUSE_UNIVERSAL="yes"
25666
25667 AFMINSTALL=afminstall
25668 TOOLKIT=MICROWIN
25669 GUIDIST=MICROWIN_DIST
25670
25671 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25672 fi
25673
74b84332 25674 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
89be85c2 25675 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25676echo $ECHO_N "checking for X... $ECHO_C" >&6
25677
25678
25679# Check whether --with-x or --without-x was given.
25680if test "${with_x+set}" = set; then
25681 withval="$with_x"
25682
25683fi;
25684# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25685if test "x$with_x" = xno; then
25686 # The user explicitly disabled X.
25687 have_x=disabled
25688else
25689 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25690 # Both variables are already set.
25691 have_x=yes
25692 else
25693 if test "${ac_cv_have_x+set}" = set; then
25694 echo $ECHO_N "(cached) $ECHO_C" >&6
25695else
25696 # One or both of the vars are not set, and there is no cached value.
25697ac_x_includes=no ac_x_libraries=no
25698rm -fr conftest.dir
25699if mkdir conftest.dir; then
25700 cd conftest.dir
25701 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25702 cat >Imakefile <<'_ACEOF'
25703acfindx:
25704 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25705_ACEOF
25706 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25707 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25708 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25709 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25710 for ac_extension in a so sl; do
25711 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25712 test -f $ac_im_libdir/libX11.$ac_extension; then
25713 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25714 fi
25715 done
25716 # Screen out bogus values from the imake configuration. They are
25717 # bogus both because they are the default anyway, and because
25718 # using them would break gcc on systems where it needs fixed includes.
25719 case $ac_im_incroot in
25720 /usr/include) ;;
25721 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25722 esac
25723 case $ac_im_usrlibdir in
25724 /usr/lib | /lib) ;;
25725 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25726 esac
25727 fi
25728 cd ..
25729 rm -fr conftest.dir
25730fi
25731
25732# Standard set of common directories for X headers.
25733# Check X11 before X11Rn because it is often a symlink to the current release.
25734ac_x_header_dirs='
25735/usr/X11/include
25736/usr/X11R6/include
25737/usr/X11R5/include
25738/usr/X11R4/include
25739
25740/usr/include/X11
25741/usr/include/X11R6
25742/usr/include/X11R5
25743/usr/include/X11R4
25744
25745/usr/local/X11/include
25746/usr/local/X11R6/include
25747/usr/local/X11R5/include
25748/usr/local/X11R4/include
25749
25750/usr/local/include/X11
25751/usr/local/include/X11R6
25752/usr/local/include/X11R5
25753/usr/local/include/X11R4
25754
25755/usr/X386/include
25756/usr/x386/include
25757/usr/XFree86/include/X11
25758
25759/usr/include
25760/usr/local/include
25761/usr/unsupported/include
25762/usr/athena/include
25763/usr/local/x11r5/include
25764/usr/lpp/Xamples/include
25765
25766/usr/openwin/include
25767/usr/openwin/share/include'
25768
25769if test "$ac_x_includes" = no; then
89be85c2 25770 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
25771 # First, try using that file with no special directory specified.
25772 cat >conftest.$ac_ext <<_ACEOF
25773/* confdefs.h. */
25774_ACEOF
25775cat confdefs.h >>conftest.$ac_ext
25776cat >>conftest.$ac_ext <<_ACEOF
25777/* end confdefs.h. */
25778#include <X11/Intrinsic.h>
25779_ACEOF
25780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25782 ac_status=$?
25783 grep -v '^ *+' conftest.er1 >conftest.err
25784 rm -f conftest.er1
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } >/dev/null; then
25788 if test -s conftest.err; then
25789 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25791 else
25792 ac_cpp_err=
25793 fi
25794else
25795 ac_cpp_err=yes
25796fi
25797if test -z "$ac_cpp_err"; then
25798 # We can compile using X headers with no special include directory.
25799ac_x_includes=
25800else
25801 echo "$as_me: failed program was:" >&5
25802sed 's/^/| /' conftest.$ac_ext >&5
25803
25804 for ac_dir in $ac_x_header_dirs; do
25805 if test -r "$ac_dir/X11/Intrinsic.h"; then
25806 ac_x_includes=$ac_dir
25807 break
25808 fi
25809done
25810fi
25811rm -f conftest.err conftest.$ac_ext
25812fi # $ac_x_includes = no
25813
25814if test "$ac_x_libraries" = no; then
25815 # Check for the libraries.
25816 # See if we find them without any special options.
25817 # Don't add to $LIBS permanently.
25818 ac_save_LIBS=$LIBS
25819 LIBS="-lXt $LIBS"
25820 cat >conftest.$ac_ext <<_ACEOF
25821/* confdefs.h. */
25822_ACEOF
25823cat confdefs.h >>conftest.$ac_ext
25824cat >>conftest.$ac_ext <<_ACEOF
25825/* end confdefs.h. */
25826#include <X11/Intrinsic.h>
25827int
25828main ()
25829{
25830XtMalloc (0)
25831 ;
25832 return 0;
25833}
25834_ACEOF
25835rm -f conftest.$ac_objext conftest$ac_exeext
25836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25837 (eval $ac_link) 2>conftest.er1
a848cd7e 25838 ac_status=$?
ac1cb8d3
VS
25839 grep -v '^ *+' conftest.er1 >conftest.err
25840 rm -f conftest.er1
25841 cat conftest.err >&5
a848cd7e
SC
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } &&
89be85c2
VS
25844 { ac_try='test -z "$ac_c_werror_flag"
25845 || test ! -s conftest.err'
ac1cb8d3
VS
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25848 ac_status=$?
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; } &&
25851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
25857 LIBS=$ac_save_LIBS
25858# We can link X programs with no special library path.
25859ac_x_libraries=
25860else
25861 echo "$as_me: failed program was:" >&5
25862sed 's/^/| /' conftest.$ac_ext >&5
25863
25864LIBS=$ac_save_LIBS
25865for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25866do
25867 # Don't even attempt the hair of trying to link an X program!
25868 for ac_extension in a so sl; do
25869 if test -r $ac_dir/libXt.$ac_extension; then
25870 ac_x_libraries=$ac_dir
25871 break 2
25872 fi
25873 done
25874done
25875fi
ac1cb8d3
VS
25876rm -f conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25878fi # $ac_x_libraries = no
25879
25880if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25881 # Didn't find X anywhere. Cache the known absence of X.
25882 ac_cv_have_x="have_x=no"
25883else
25884 # Record where we found X for the cache.
25885 ac_cv_have_x="have_x=yes \
ac1cb8d3 25886 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25887fi
25888fi
25889
25890 fi
25891 eval "$ac_cv_have_x"
25892fi # $with_x != no
25893
25894if test "$have_x" != yes; then
25895 echo "$as_me:$LINENO: result: $have_x" >&5
25896echo "${ECHO_T}$have_x" >&6
25897 no_x=yes
25898else
25899 # If each of the values was on the command line, it overrides each guess.
25900 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25901 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25902 # Update the cache value to reflect the command line values.
25903 ac_cv_have_x="have_x=yes \
25904 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
89be85c2
VS
25905 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25906echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
25907fi
25908
25909if test "$no_x" = yes; then
25910 # Not all programs may use this symbol, but it does not hurt to define it.
25911
25912cat >>confdefs.h <<\_ACEOF
25913#define X_DISPLAY_MISSING 1
25914_ACEOF
25915
25916 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25917else
25918 if test -n "$x_includes"; then
25919 X_CFLAGS="$X_CFLAGS -I$x_includes"
25920 fi
25921
25922 # It would also be nice to do this for all -L options, not just this one.
25923 if test -n "$x_libraries"; then
25924 X_LIBS="$X_LIBS -L$x_libraries"
25925 # For Solaris; some versions of Sun CC require a space after -R and
25926 # others require no space. Words are not sufficient . . . .
25927 case `(uname -sr) 2>/dev/null` in
25928 "SunOS 5"*)
25929 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25930echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25931 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25932 cat >conftest.$ac_ext <<_ACEOF
25933/* confdefs.h. */
25934_ACEOF
25935cat confdefs.h >>conftest.$ac_ext
25936cat >>conftest.$ac_ext <<_ACEOF
25937/* end confdefs.h. */
25938
25939int
25940main ()
25941{
25942
25943 ;
25944 return 0;
25945}
25946_ACEOF
25947rm -f conftest.$ac_objext conftest$ac_exeext
25948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25949 (eval $ac_link) 2>conftest.er1
a848cd7e 25950 ac_status=$?
ac1cb8d3
VS
25951 grep -v '^ *+' conftest.er1 >conftest.err
25952 rm -f conftest.er1
25953 cat conftest.err >&5
a848cd7e
SC
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
89be85c2
VS
25956 { ac_try='test -z "$ac_c_werror_flag"
25957 || test ! -s conftest.err'
ac1cb8d3
VS
25958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; } &&
25963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; }; then
25969 ac_R_nospace=yes
25970else
25971 echo "$as_me: failed program was:" >&5
25972sed 's/^/| /' conftest.$ac_ext >&5
25973
25974ac_R_nospace=no
25975fi
ac1cb8d3
VS
25976rm -f conftest.err conftest.$ac_objext \
25977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25978 if test $ac_R_nospace = yes; then
25979 echo "$as_me:$LINENO: result: no" >&5
25980echo "${ECHO_T}no" >&6
25981 X_LIBS="$X_LIBS -R$x_libraries"
25982 else
25983 LIBS="$ac_xsave_LIBS -R $x_libraries"
25984 cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h. */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h. */
25990
25991int
25992main ()
25993{
25994
25995 ;
25996 return 0;
25997}
25998_ACEOF
25999rm -f conftest.$ac_objext conftest$ac_exeext
26000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26001 (eval $ac_link) 2>conftest.er1
a848cd7e 26002 ac_status=$?
ac1cb8d3
VS
26003 grep -v '^ *+' conftest.er1 >conftest.err
26004 rm -f conftest.er1
26005 cat conftest.err >&5
a848cd7e
SC
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } &&
89be85c2
VS
26008 { ac_try='test -z "$ac_c_werror_flag"
26009 || test ! -s conftest.err'
ac1cb8d3
VS
26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011 (eval $ac_try) 2>&5
26012 ac_status=$?
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; } &&
26015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 ac_R_space=yes
26022else
26023 echo "$as_me: failed program was:" >&5
26024sed 's/^/| /' conftest.$ac_ext >&5
26025
26026ac_R_space=no
26027fi
ac1cb8d3
VS
26028rm -f conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26030 if test $ac_R_space = yes; then
26031 echo "$as_me:$LINENO: result: yes" >&5
26032echo "${ECHO_T}yes" >&6
26033 X_LIBS="$X_LIBS -R $x_libraries"
26034 else
26035 echo "$as_me:$LINENO: result: neither works" >&5
26036echo "${ECHO_T}neither works" >&6
26037 fi
26038 fi
26039 LIBS=$ac_xsave_LIBS
26040 esac
26041 fi
26042
26043 # Check for system-dependent libraries X programs must link with.
26044 # Do this before checking for the system-independent R6 libraries
26045 # (-lICE), since we may need -lsocket or whatever for X linking.
26046
26047 if test "$ISC" = yes; then
26048 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26049 else
26050 # Martyn Johnson says this is needed for Ultrix, if the X
26051 # libraries were built with DECnet support. And Karl Berry says
26052 # the Alpha needs dnet_stub (dnet does not exist).
26053 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26054 cat >conftest.$ac_ext <<_ACEOF
26055/* confdefs.h. */
26056_ACEOF
26057cat confdefs.h >>conftest.$ac_ext
26058cat >>conftest.$ac_ext <<_ACEOF
26059/* end confdefs.h. */
26060
26061/* Override any gcc2 internal prototype to avoid an error. */
26062#ifdef __cplusplus
26063extern "C"
26064#endif
26065/* We use char because int might match the return type of a gcc2
26066 builtin and then its argument prototype would still apply. */
26067char XOpenDisplay ();
26068int
26069main ()
26070{
26071XOpenDisplay ();
26072 ;
26073 return 0;
26074}
26075_ACEOF
26076rm -f conftest.$ac_objext conftest$ac_exeext
26077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26078 (eval $ac_link) 2>conftest.er1
a848cd7e 26079 ac_status=$?
ac1cb8d3
VS
26080 grep -v '^ *+' conftest.er1 >conftest.err
26081 rm -f conftest.er1
26082 cat conftest.err >&5
a848cd7e
SC
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); } &&
89be85c2
VS
26085 { ac_try='test -z "$ac_c_werror_flag"
26086 || test ! -s conftest.err'
ac1cb8d3
VS
26087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26088 (eval $ac_try) 2>&5
26089 ac_status=$?
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; } &&
26092 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; }; then
26098 :
26099else
26100 echo "$as_me: failed program was:" >&5
26101sed 's/^/| /' conftest.$ac_ext >&5
26102
26103echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26104echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26105if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26107else
26108 ac_check_lib_save_LIBS=$LIBS
26109LIBS="-ldnet $LIBS"
26110cat >conftest.$ac_ext <<_ACEOF
26111/* confdefs.h. */
26112_ACEOF
26113cat confdefs.h >>conftest.$ac_ext
26114cat >>conftest.$ac_ext <<_ACEOF
26115/* end confdefs.h. */
26116
26117/* Override any gcc2 internal prototype to avoid an error. */
26118#ifdef __cplusplus
26119extern "C"
26120#endif
26121/* We use char because int might match the return type of a gcc2
26122 builtin and then its argument prototype would still apply. */
26123char dnet_ntoa ();
26124int
26125main ()
26126{
26127dnet_ntoa ();
26128 ;
26129 return 0;
26130}
26131_ACEOF
26132rm -f conftest.$ac_objext conftest$ac_exeext
26133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26134 (eval $ac_link) 2>conftest.er1
a848cd7e 26135 ac_status=$?
ac1cb8d3
VS
26136 grep -v '^ *+' conftest.er1 >conftest.err
26137 rm -f conftest.er1
26138 cat conftest.err >&5
a848cd7e
SC
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } &&
89be85c2
VS
26141 { ac_try='test -z "$ac_c_werror_flag"
26142 || test ! -s conftest.err'
ac1cb8d3
VS
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26145 ac_status=$?
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; } &&
26148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26150 (eval $ac_try) 2>&5
26151 ac_status=$?
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); }; }; then
26154 ac_cv_lib_dnet_dnet_ntoa=yes
26155else
26156 echo "$as_me: failed program was:" >&5
26157sed 's/^/| /' conftest.$ac_ext >&5
26158
26159ac_cv_lib_dnet_dnet_ntoa=no
26160fi
ac1cb8d3
VS
26161rm -f conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26163LIBS=$ac_check_lib_save_LIBS
26164fi
26165echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26166echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26167if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26168 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26169fi
26170
26171 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26172 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26173echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26174if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26175 echo $ECHO_N "(cached) $ECHO_C" >&6
26176else
26177 ac_check_lib_save_LIBS=$LIBS
26178LIBS="-ldnet_stub $LIBS"
26179cat >conftest.$ac_ext <<_ACEOF
26180/* confdefs.h. */
26181_ACEOF
26182cat confdefs.h >>conftest.$ac_ext
26183cat >>conftest.$ac_ext <<_ACEOF
26184/* end confdefs.h. */
26185
26186/* Override any gcc2 internal prototype to avoid an error. */
26187#ifdef __cplusplus
26188extern "C"
26189#endif
26190/* We use char because int might match the return type of a gcc2
26191 builtin and then its argument prototype would still apply. */
26192char dnet_ntoa ();
26193int
26194main ()
26195{
26196dnet_ntoa ();
26197 ;
26198 return 0;
26199}
26200_ACEOF
26201rm -f conftest.$ac_objext conftest$ac_exeext
26202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26203 (eval $ac_link) 2>conftest.er1
a848cd7e 26204 ac_status=$?
ac1cb8d3
VS
26205 grep -v '^ *+' conftest.er1 >conftest.err
26206 rm -f conftest.er1
26207 cat conftest.err >&5
a848cd7e
SC
26208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209 (exit $ac_status); } &&
89be85c2
VS
26210 { ac_try='test -z "$ac_c_werror_flag"
26211 || test ! -s conftest.err'
ac1cb8d3
VS
26212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26213 (eval $ac_try) 2>&5
26214 ac_status=$?
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); }; } &&
26217 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26219 (eval $ac_try) 2>&5
26220 ac_status=$?
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); }; }; then
26223 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26224else
26225 echo "$as_me: failed program was:" >&5
26226sed 's/^/| /' conftest.$ac_ext >&5
26227
26228ac_cv_lib_dnet_stub_dnet_ntoa=no
26229fi
ac1cb8d3
VS
26230rm -f conftest.err conftest.$ac_objext \
26231 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26232LIBS=$ac_check_lib_save_LIBS
26233fi
26234echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26235echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26236if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26238fi
26239
26240 fi
26241fi
ac1cb8d3
VS
26242rm -f conftest.err conftest.$ac_objext \
26243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26244 LIBS="$ac_xsave_LIBS"
26245
26246 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26247 # to get the SysV transport functions.
26248 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26249 # needs -lnsl.
26250 # The nsl library prevents programs from opening the X display
26251 # on Irix 5.2, according to T.E. Dickey.
26252 # The functions gethostbyname, getservbyname, and inet_addr are
26253 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26254 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26255echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26256if test "${ac_cv_func_gethostbyname+set}" = set; then
26257 echo $ECHO_N "(cached) $ECHO_C" >&6
26258else
26259 cat >conftest.$ac_ext <<_ACEOF
26260/* confdefs.h. */
26261_ACEOF
26262cat confdefs.h >>conftest.$ac_ext
26263cat >>conftest.$ac_ext <<_ACEOF
26264/* end confdefs.h. */
ac1cb8d3
VS
26265/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26267#define gethostbyname innocuous_gethostbyname
26268
a848cd7e
SC
26269/* System header to define __stub macros and hopefully few prototypes,
26270 which can conflict with char gethostbyname (); below.
26271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26272 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26273
a848cd7e
SC
26274#ifdef __STDC__
26275# include <limits.h>
26276#else
26277# include <assert.h>
26278#endif
ac1cb8d3
VS
26279
26280#undef gethostbyname
26281
a848cd7e
SC
26282/* Override any gcc2 internal prototype to avoid an error. */
26283#ifdef __cplusplus
26284extern "C"
26285{
26286#endif
26287/* We use char because int might match the return type of a gcc2
26288 builtin and then its argument prototype would still apply. */
26289char gethostbyname ();
26290/* The GNU C library defines this for functions which it implements
26291 to always fail with ENOSYS. Some functions are actually named
26292 something starting with __ and the normal name is an alias. */
26293#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26294choke me
26295#else
26296char (*f) () = gethostbyname;
26297#endif
26298#ifdef __cplusplus
26299}
26300#endif
26301
26302int
26303main ()
26304{
26305return f != gethostbyname;
26306 ;
26307 return 0;
26308}
26309_ACEOF
26310rm -f conftest.$ac_objext conftest$ac_exeext
26311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26312 (eval $ac_link) 2>conftest.er1
a848cd7e 26313 ac_status=$?
ac1cb8d3
VS
26314 grep -v '^ *+' conftest.er1 >conftest.err
26315 rm -f conftest.er1
26316 cat conftest.err >&5
a848cd7e
SC
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); } &&
89be85c2
VS
26319 { ac_try='test -z "$ac_c_werror_flag"
26320 || test ! -s conftest.err'
ac1cb8d3
VS
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; } &&
26326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26328 (eval $ac_try) 2>&5
26329 ac_status=$?
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); }; }; then
26332 ac_cv_func_gethostbyname=yes
26333else
26334 echo "$as_me: failed program was:" >&5
26335sed 's/^/| /' conftest.$ac_ext >&5
26336
26337ac_cv_func_gethostbyname=no
26338fi
ac1cb8d3
VS
26339rm -f conftest.err conftest.$ac_objext \
26340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26341fi
26342echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26343echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26344
26345 if test $ac_cv_func_gethostbyname = no; then
26346 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26347echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26348if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26350else
26351 ac_check_lib_save_LIBS=$LIBS
26352LIBS="-lnsl $LIBS"
26353cat >conftest.$ac_ext <<_ACEOF
26354/* confdefs.h. */
26355_ACEOF
26356cat confdefs.h >>conftest.$ac_ext
26357cat >>conftest.$ac_ext <<_ACEOF
26358/* end confdefs.h. */
26359
26360/* Override any gcc2 internal prototype to avoid an error. */
26361#ifdef __cplusplus
26362extern "C"
26363#endif
26364/* We use char because int might match the return type of a gcc2
26365 builtin and then its argument prototype would still apply. */
26366char gethostbyname ();
26367int
26368main ()
26369{
26370gethostbyname ();
26371 ;
26372 return 0;
26373}
26374_ACEOF
26375rm -f conftest.$ac_objext conftest$ac_exeext
26376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26377 (eval $ac_link) 2>conftest.er1
26378 ac_status=$?
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } &&
89be85c2
VS
26384 { ac_try='test -z "$ac_c_werror_flag"
26385 || test ! -s conftest.err'
ac1cb8d3
VS
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; } &&
26391 { ac_try='test -s conftest$ac_exeext'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26397 ac_cv_lib_nsl_gethostbyname=yes
26398else
26399 echo "$as_me: failed program was:" >&5
26400sed 's/^/| /' conftest.$ac_ext >&5
26401
26402ac_cv_lib_nsl_gethostbyname=no
26403fi
26404rm -f conftest.err conftest.$ac_objext \
26405 conftest$ac_exeext conftest.$ac_ext
26406LIBS=$ac_check_lib_save_LIBS
26407fi
26408echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26409echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26410if test $ac_cv_lib_nsl_gethostbyname = yes; then
26411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26412fi
26413
26414 if test $ac_cv_lib_nsl_gethostbyname = no; then
26415 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26416echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26417if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26419else
26420 ac_check_lib_save_LIBS=$LIBS
26421LIBS="-lbsd $LIBS"
26422cat >conftest.$ac_ext <<_ACEOF
26423/* confdefs.h. */
26424_ACEOF
26425cat confdefs.h >>conftest.$ac_ext
26426cat >>conftest.$ac_ext <<_ACEOF
26427/* end confdefs.h. */
26428
26429/* Override any gcc2 internal prototype to avoid an error. */
26430#ifdef __cplusplus
26431extern "C"
26432#endif
26433/* We use char because int might match the return type of a gcc2
26434 builtin and then its argument prototype would still apply. */
26435char gethostbyname ();
26436int
26437main ()
26438{
26439gethostbyname ();
26440 ;
26441 return 0;
26442}
26443_ACEOF
26444rm -f conftest.$ac_objext conftest$ac_exeext
26445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26446 (eval $ac_link) 2>conftest.er1
a848cd7e 26447 ac_status=$?
ac1cb8d3
VS
26448 grep -v '^ *+' conftest.er1 >conftest.err
26449 rm -f conftest.er1
26450 cat conftest.err >&5
a848cd7e
SC
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } &&
89be85c2
VS
26453 { ac_try='test -z "$ac_c_werror_flag"
26454 || test ! -s conftest.err'
a848cd7e
SC
26455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26456 (eval $ac_try) 2>&5
26457 ac_status=$?
26458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26459 (exit $ac_status); }; } &&
26460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462 (eval $ac_try) 2>&5
26463 ac_status=$?
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); }; }; then
26466 ac_cv_lib_bsd_gethostbyname=yes
26467else
26468 echo "$as_me: failed program was:" >&5
26469sed 's/^/| /' conftest.$ac_ext >&5
26470
26471ac_cv_lib_bsd_gethostbyname=no
26472fi
ac1cb8d3
VS
26473rm -f conftest.err conftest.$ac_objext \
26474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26475LIBS=$ac_check_lib_save_LIBS
26476fi
26477echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26478echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26479if test $ac_cv_lib_bsd_gethostbyname = yes; then
26480 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26481fi
26482
26483 fi
26484 fi
26485
26486 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26487 # socket/setsockopt and other routines are undefined under SCO ODT
26488 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26489 # on later versions), says Simon Leinen: it contains gethostby*
26490 # variants that don't use the name server (or something). -lsocket
26491 # must be given before -lnsl if both are needed. We assume that
26492 # if connect needs -lnsl, so does gethostbyname.
26493 echo "$as_me:$LINENO: checking for connect" >&5
26494echo $ECHO_N "checking for connect... $ECHO_C" >&6
26495if test "${ac_cv_func_connect+set}" = set; then
26496 echo $ECHO_N "(cached) $ECHO_C" >&6
26497else
26498 cat >conftest.$ac_ext <<_ACEOF
26499/* confdefs.h. */
26500_ACEOF
26501cat confdefs.h >>conftest.$ac_ext
26502cat >>conftest.$ac_ext <<_ACEOF
26503/* end confdefs.h. */
ac1cb8d3
VS
26504/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26506#define connect innocuous_connect
26507
a848cd7e
SC
26508/* System header to define __stub macros and hopefully few prototypes,
26509 which can conflict with char connect (); below.
26510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26511 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26512
a848cd7e
SC
26513#ifdef __STDC__
26514# include <limits.h>
26515#else
26516# include <assert.h>
26517#endif
ac1cb8d3
VS
26518
26519#undef connect
26520
a848cd7e
SC
26521/* Override any gcc2 internal prototype to avoid an error. */
26522#ifdef __cplusplus
26523extern "C"
26524{
26525#endif
26526/* We use char because int might match the return type of a gcc2
26527 builtin and then its argument prototype would still apply. */
26528char connect ();
26529/* The GNU C library defines this for functions which it implements
26530 to always fail with ENOSYS. Some functions are actually named
26531 something starting with __ and the normal name is an alias. */
26532#if defined (__stub_connect) || defined (__stub___connect)
26533choke me
26534#else
26535char (*f) () = connect;
26536#endif
26537#ifdef __cplusplus
26538}
26539#endif
26540
26541int
26542main ()
26543{
26544return f != connect;
26545 ;
26546 return 0;
26547}
26548_ACEOF
26549rm -f conftest.$ac_objext conftest$ac_exeext
26550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26551 (eval $ac_link) 2>conftest.er1
a848cd7e 26552 ac_status=$?
ac1cb8d3
VS
26553 grep -v '^ *+' conftest.er1 >conftest.err
26554 rm -f conftest.er1
26555 cat conftest.err >&5
a848cd7e
SC
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } &&
89be85c2
VS
26558 { ac_try='test -z "$ac_c_werror_flag"
26559 || test ! -s conftest.err'
ac1cb8d3
VS
26560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26561 (eval $ac_try) 2>&5
26562 ac_status=$?
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); }; } &&
26565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26567 (eval $ac_try) 2>&5
26568 ac_status=$?
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); }; }; then
26571 ac_cv_func_connect=yes
26572else
26573 echo "$as_me: failed program was:" >&5
26574sed 's/^/| /' conftest.$ac_ext >&5
26575
26576ac_cv_func_connect=no
26577fi
ac1cb8d3
VS
26578rm -f conftest.err conftest.$ac_objext \
26579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26580fi
26581echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26582echo "${ECHO_T}$ac_cv_func_connect" >&6
26583
26584 if test $ac_cv_func_connect = no; then
26585 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26586echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26587if test "${ac_cv_lib_socket_connect+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26589else
26590 ac_check_lib_save_LIBS=$LIBS
26591LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26592cat >conftest.$ac_ext <<_ACEOF
26593/* confdefs.h. */
26594_ACEOF
26595cat confdefs.h >>conftest.$ac_ext
26596cat >>conftest.$ac_ext <<_ACEOF
26597/* end confdefs.h. */
26598
26599/* Override any gcc2 internal prototype to avoid an error. */
26600#ifdef __cplusplus
26601extern "C"
26602#endif
26603/* We use char because int might match the return type of a gcc2
26604 builtin and then its argument prototype would still apply. */
26605char connect ();
26606int
26607main ()
26608{
26609connect ();
26610 ;
26611 return 0;
26612}
26613_ACEOF
26614rm -f conftest.$ac_objext conftest$ac_exeext
26615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26616 (eval $ac_link) 2>conftest.er1
a848cd7e 26617 ac_status=$?
ac1cb8d3
VS
26618 grep -v '^ *+' conftest.er1 >conftest.err
26619 rm -f conftest.er1
26620 cat conftest.err >&5
a848cd7e
SC
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } &&
89be85c2
VS
26623 { ac_try='test -z "$ac_c_werror_flag"
26624 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
26630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; }; then
26636 ac_cv_lib_socket_connect=yes
26637else
26638 echo "$as_me: failed program was:" >&5
26639sed 's/^/| /' conftest.$ac_ext >&5
26640
26641ac_cv_lib_socket_connect=no
26642fi
ac1cb8d3
VS
26643rm -f conftest.err conftest.$ac_objext \
26644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26645LIBS=$ac_check_lib_save_LIBS
26646fi
26647echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26648echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26649if test $ac_cv_lib_socket_connect = yes; then
26650 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26651fi
26652
26653 fi
26654
26655 # Guillermo Gomez says -lposix is necessary on A/UX.
26656 echo "$as_me:$LINENO: checking for remove" >&5
26657echo $ECHO_N "checking for remove... $ECHO_C" >&6
26658if test "${ac_cv_func_remove+set}" = set; then
26659 echo $ECHO_N "(cached) $ECHO_C" >&6
26660else
26661 cat >conftest.$ac_ext <<_ACEOF
26662/* confdefs.h. */
26663_ACEOF
26664cat confdefs.h >>conftest.$ac_ext
26665cat >>conftest.$ac_ext <<_ACEOF
26666/* end confdefs.h. */
ac1cb8d3
VS
26667/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26669#define remove innocuous_remove
26670
a848cd7e
SC
26671/* System header to define __stub macros and hopefully few prototypes,
26672 which can conflict with char remove (); below.
26673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26675
a848cd7e
SC
26676#ifdef __STDC__
26677# include <limits.h>
26678#else
26679# include <assert.h>
26680#endif
ac1cb8d3
VS
26681
26682#undef remove
26683
a848cd7e
SC
26684/* Override any gcc2 internal prototype to avoid an error. */
26685#ifdef __cplusplus
26686extern "C"
26687{
26688#endif
26689/* We use char because int might match the return type of a gcc2
26690 builtin and then its argument prototype would still apply. */
26691char remove ();
26692/* The GNU C library defines this for functions which it implements
26693 to always fail with ENOSYS. Some functions are actually named
26694 something starting with __ and the normal name is an alias. */
26695#if defined (__stub_remove) || defined (__stub___remove)
26696choke me
26697#else
26698char (*f) () = remove;
26699#endif
26700#ifdef __cplusplus
26701}
26702#endif
26703
26704int
26705main ()
26706{
26707return f != remove;
26708 ;
26709 return 0;
26710}
26711_ACEOF
26712rm -f conftest.$ac_objext conftest$ac_exeext
26713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26714 (eval $ac_link) 2>conftest.er1
a848cd7e 26715 ac_status=$?
ac1cb8d3
VS
26716 grep -v '^ *+' conftest.er1 >conftest.err
26717 rm -f conftest.er1
26718 cat conftest.err >&5
a848cd7e
SC
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); } &&
89be85c2
VS
26721 { ac_try='test -z "$ac_c_werror_flag"
26722 || test ! -s conftest.err'
ac1cb8d3
VS
26723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724 (eval $ac_try) 2>&5
26725 ac_status=$?
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); }; } &&
26728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730 (eval $ac_try) 2>&5
26731 ac_status=$?
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; }; then
26734 ac_cv_func_remove=yes
26735else
26736 echo "$as_me: failed program was:" >&5
26737sed 's/^/| /' conftest.$ac_ext >&5
26738
26739ac_cv_func_remove=no
26740fi
ac1cb8d3
VS
26741rm -f conftest.err conftest.$ac_objext \
26742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26743fi
26744echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26745echo "${ECHO_T}$ac_cv_func_remove" >&6
26746
26747 if test $ac_cv_func_remove = no; then
26748 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26749echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26750if test "${ac_cv_lib_posix_remove+set}" = set; then
26751 echo $ECHO_N "(cached) $ECHO_C" >&6
26752else
26753 ac_check_lib_save_LIBS=$LIBS
26754LIBS="-lposix $LIBS"
26755cat >conftest.$ac_ext <<_ACEOF
26756/* confdefs.h. */
26757_ACEOF
26758cat confdefs.h >>conftest.$ac_ext
26759cat >>conftest.$ac_ext <<_ACEOF
26760/* end confdefs.h. */
26761
26762/* Override any gcc2 internal prototype to avoid an error. */
26763#ifdef __cplusplus
26764extern "C"
26765#endif
26766/* We use char because int might match the return type of a gcc2
26767 builtin and then its argument prototype would still apply. */
26768char remove ();
26769int
26770main ()
26771{
26772remove ();
26773 ;
26774 return 0;
26775}
26776_ACEOF
26777rm -f conftest.$ac_objext conftest$ac_exeext
26778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26779 (eval $ac_link) 2>conftest.er1
a848cd7e 26780 ac_status=$?
ac1cb8d3
VS
26781 grep -v '^ *+' conftest.er1 >conftest.err
26782 rm -f conftest.er1
26783 cat conftest.err >&5
a848cd7e
SC
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } &&
89be85c2
VS
26786 { ac_try='test -z "$ac_c_werror_flag"
26787 || test ! -s conftest.err'
ac1cb8d3
VS
26788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; } &&
26793 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; }; then
26799 ac_cv_lib_posix_remove=yes
26800else
26801 echo "$as_me: failed program was:" >&5
26802sed 's/^/| /' conftest.$ac_ext >&5
26803
26804ac_cv_lib_posix_remove=no
26805fi
ac1cb8d3
VS
26806rm -f conftest.err conftest.$ac_objext \
26807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26808LIBS=$ac_check_lib_save_LIBS
26809fi
26810echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26811echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26812if test $ac_cv_lib_posix_remove = yes; then
26813 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26814fi
26815
26816 fi
26817
26818 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26819 echo "$as_me:$LINENO: checking for shmat" >&5
26820echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26821if test "${ac_cv_func_shmat+set}" = set; then
26822 echo $ECHO_N "(cached) $ECHO_C" >&6
26823else
26824 cat >conftest.$ac_ext <<_ACEOF
26825/* confdefs.h. */
26826_ACEOF
26827cat confdefs.h >>conftest.$ac_ext
26828cat >>conftest.$ac_ext <<_ACEOF
26829/* end confdefs.h. */
ac1cb8d3
VS
26830/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26832#define shmat innocuous_shmat
26833
a848cd7e
SC
26834/* System header to define __stub macros and hopefully few prototypes,
26835 which can conflict with char shmat (); below.
26836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26838
a848cd7e
SC
26839#ifdef __STDC__
26840# include <limits.h>
26841#else
26842# include <assert.h>
26843#endif
ac1cb8d3
VS
26844
26845#undef shmat
26846
a848cd7e
SC
26847/* Override any gcc2 internal prototype to avoid an error. */
26848#ifdef __cplusplus
26849extern "C"
26850{
26851#endif
26852/* We use char because int might match the return type of a gcc2
26853 builtin and then its argument prototype would still apply. */
26854char shmat ();
26855/* The GNU C library defines this for functions which it implements
26856 to always fail with ENOSYS. Some functions are actually named
26857 something starting with __ and the normal name is an alias. */
26858#if defined (__stub_shmat) || defined (__stub___shmat)
26859choke me
26860#else
26861char (*f) () = shmat;
26862#endif
26863#ifdef __cplusplus
26864}
26865#endif
26866
26867int
26868main ()
26869{
26870return f != shmat;
26871 ;
26872 return 0;
26873}
26874_ACEOF
26875rm -f conftest.$ac_objext conftest$ac_exeext
26876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26877 (eval $ac_link) 2>conftest.er1
a848cd7e 26878 ac_status=$?
ac1cb8d3
VS
26879 grep -v '^ *+' conftest.er1 >conftest.err
26880 rm -f conftest.er1
26881 cat conftest.err >&5
a848cd7e
SC
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); } &&
89be85c2
VS
26884 { ac_try='test -z "$ac_c_werror_flag"
26885 || test ! -s conftest.err'
ac1cb8d3
VS
26886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26887 (eval $ac_try) 2>&5
26888 ac_status=$?
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); }; } &&
26891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26893 (eval $ac_try) 2>&5
26894 ac_status=$?
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); }; }; then
26897 ac_cv_func_shmat=yes
26898else
26899 echo "$as_me: failed program was:" >&5
26900sed 's/^/| /' conftest.$ac_ext >&5
26901
26902ac_cv_func_shmat=no
26903fi
ac1cb8d3
VS
26904rm -f conftest.err conftest.$ac_objext \
26905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26906fi
26907echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26908echo "${ECHO_T}$ac_cv_func_shmat" >&6
26909
26910 if test $ac_cv_func_shmat = no; then
26911 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26912echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26913if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26915else
26916 ac_check_lib_save_LIBS=$LIBS
26917LIBS="-lipc $LIBS"
26918cat >conftest.$ac_ext <<_ACEOF
26919/* confdefs.h. */
26920_ACEOF
26921cat confdefs.h >>conftest.$ac_ext
26922cat >>conftest.$ac_ext <<_ACEOF
26923/* end confdefs.h. */
26924
26925/* Override any gcc2 internal prototype to avoid an error. */
26926#ifdef __cplusplus
26927extern "C"
26928#endif
26929/* We use char because int might match the return type of a gcc2
26930 builtin and then its argument prototype would still apply. */
26931char shmat ();
26932int
26933main ()
26934{
26935shmat ();
26936 ;
26937 return 0;
26938}
26939_ACEOF
26940rm -f conftest.$ac_objext conftest$ac_exeext
26941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26942 (eval $ac_link) 2>conftest.er1
a848cd7e 26943 ac_status=$?
ac1cb8d3
VS
26944 grep -v '^ *+' conftest.er1 >conftest.err
26945 rm -f conftest.er1
26946 cat conftest.err >&5
a848cd7e
SC
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); } &&
89be85c2
VS
26949 { ac_try='test -z "$ac_c_werror_flag"
26950 || test ! -s conftest.err'
ac1cb8d3
VS
26951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952 (eval $ac_try) 2>&5
26953 ac_status=$?
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); }; } &&
26956 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26958 (eval $ac_try) 2>&5
26959 ac_status=$?
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); }; }; then
26962 ac_cv_lib_ipc_shmat=yes
26963else
26964 echo "$as_me: failed program was:" >&5
26965sed 's/^/| /' conftest.$ac_ext >&5
26966
26967ac_cv_lib_ipc_shmat=no
26968fi
ac1cb8d3
VS
26969rm -f conftest.err conftest.$ac_objext \
26970 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26971LIBS=$ac_check_lib_save_LIBS
26972fi
26973echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26974echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26975if test $ac_cv_lib_ipc_shmat = yes; then
26976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26977fi
26978
26979 fi
26980 fi
26981
26982 # Check for libraries that X11R6 Xt/Xaw programs need.
26983 ac_save_LDFLAGS=$LDFLAGS
26984 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26985 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26986 # check for ICE first), but we must link in the order -lSM -lICE or
26987 # we get undefined symbols. So assume we have SM if we have ICE.
26988 # These have to be linked with before -lX11, unlike the other
26989 # libraries we check for below, so use a different variable.
26990 # John Interrante, Karl Berry
26991 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26992echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26993if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26994 echo $ECHO_N "(cached) $ECHO_C" >&6
26995else
26996 ac_check_lib_save_LIBS=$LIBS
26997LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26998cat >conftest.$ac_ext <<_ACEOF
26999/* confdefs.h. */
27000_ACEOF
27001cat confdefs.h >>conftest.$ac_ext
27002cat >>conftest.$ac_ext <<_ACEOF
27003/* end confdefs.h. */
27004
27005/* Override any gcc2 internal prototype to avoid an error. */
27006#ifdef __cplusplus
27007extern "C"
27008#endif
27009/* We use char because int might match the return type of a gcc2
27010 builtin and then its argument prototype would still apply. */
27011char IceConnectionNumber ();
27012int
27013main ()
27014{
27015IceConnectionNumber ();
27016 ;
27017 return 0;
27018}
27019_ACEOF
27020rm -f conftest.$ac_objext conftest$ac_exeext
27021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27022 (eval $ac_link) 2>conftest.er1
a848cd7e 27023 ac_status=$?
ac1cb8d3
VS
27024 grep -v '^ *+' conftest.er1 >conftest.err
27025 rm -f conftest.er1
27026 cat conftest.err >&5
a848cd7e
SC
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } &&
89be85c2
VS
27029 { ac_try='test -z "$ac_c_werror_flag"
27030 || test ! -s conftest.err'
ac1cb8d3
VS
27031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27033 ac_status=$?
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; } &&
27036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27038 (eval $ac_try) 2>&5
27039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
27042 ac_cv_lib_ICE_IceConnectionNumber=yes
27043else
27044 echo "$as_me: failed program was:" >&5
27045sed 's/^/| /' conftest.$ac_ext >&5
27046
27047ac_cv_lib_ICE_IceConnectionNumber=no
27048fi
ac1cb8d3
VS
27049rm -f conftest.err conftest.$ac_objext \
27050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27051LIBS=$ac_check_lib_save_LIBS
27052fi
27053echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27054echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27055if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27056 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27057fi
27058
27059 LDFLAGS=$ac_save_LDFLAGS
27060
27061fi
27062
27063
27064 if test "$no_x" = "yes"; then
27065 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27066echo "$as_me: error: X11 not found" >&2;}
27067 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27068 fi
27069
74b84332
VS
27070 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27071 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27072 AFMINSTALL=afminstall
27073 COMPILED_X_PROGRAM=0
27074
74b84332
VS
27075 fi
27076
27077 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27078 if test "$wxUSE_NANOX" = "yes"; then
27079 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27080echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27081 if test "x$MICROWIN" = x ; then
27082 echo "$as_me:$LINENO: result: not found" >&5
27083echo "${ECHO_T}not found" >&6
27084 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27085echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27086 { (exit 1); exit 1; }; }
27087 else
27088 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27089echo "${ECHO_T}$MICROWIN" >&6
27090 cat >>confdefs.h <<\_ACEOF
27091#define wxUSE_NANOX 1
27092_ACEOF
27093
27094 fi
27095 fi
27096
27097 if test "$wxUSE_UNICODE" = "yes"; then
27098
27099 succeeded=no
27100
27101 if test -z "$PKG_CONFIG"; then
27102 # Extract the first word of "pkg-config", so it can be a program name with args.
27103set dummy pkg-config; ac_word=$2
27104echo "$as_me:$LINENO: checking for $ac_word" >&5
27105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27106if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27107 echo $ECHO_N "(cached) $ECHO_C" >&6
27108else
27109 case $PKG_CONFIG in
27110 [\\/]* | ?:[\\/]*)
27111 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27112 ;;
27113 *)
27114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27115for as_dir in $PATH
27116do
27117 IFS=$as_save_IFS
27118 test -z "$as_dir" && as_dir=.
27119 for ac_exec_ext in '' $ac_executable_extensions; do
27120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27121 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27123 break 2
27124 fi
27125done
27126done
27127
27128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27129 ;;
27130esac
27131fi
27132PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27133
27134if test -n "$PKG_CONFIG"; then
27135 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27136echo "${ECHO_T}$PKG_CONFIG" >&6
27137else
27138 echo "$as_me:$LINENO: result: no" >&5
27139echo "${ECHO_T}no" >&6
27140fi
27141
27142 fi
27143
27144 if test "$PKG_CONFIG" = "no" ; then
27145 echo "*** The pkg-config script could not be found. Make sure it is"
27146 echo "*** in your path, or set the PKG_CONFIG environment variable"
27147 echo "*** to the full path to pkg-config."
27148 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27149 else
27150 PKG_CONFIG_MIN_VERSION=0.9.0
27151 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27152 echo "$as_me:$LINENO: checking for pangox" >&5
27153echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27154
27155 if $PKG_CONFIG --exists "pangox" ; then
27156 echo "$as_me:$LINENO: result: yes" >&5
27157echo "${ECHO_T}yes" >&6
27158 succeeded=yes
27159
27160 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27161echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27162 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27163 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27164echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27165
27166 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27167echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27168 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27169 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27170echo "${ECHO_T}$PANGOX_LIBS" >&6
27171 else
27172 PANGOX_CFLAGS=""
27173 PANGOX_LIBS=""
27174 ## If we have a custom action on failure, don't print errors, but
27175 ## do set a variable so people can do so.
27176 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27177
27178 fi
27179
27180
27181
27182 else
27183 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27184 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27185 fi
27186 fi
27187
27188 if test $succeeded = yes; then
27189
27190 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27191 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27192
27193 else
27194
27195 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27196echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27197 { (exit 1); exit 1; }; }
27198
27199
27200 fi
27201
27202
27203 succeeded=no
27204
27205 if test -z "$PKG_CONFIG"; then
27206 # Extract the first word of "pkg-config", so it can be a program name with args.
27207set dummy pkg-config; ac_word=$2
27208echo "$as_me:$LINENO: checking for $ac_word" >&5
27209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27210if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27211 echo $ECHO_N "(cached) $ECHO_C" >&6
27212else
27213 case $PKG_CONFIG in
27214 [\\/]* | ?:[\\/]*)
27215 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27216 ;;
27217 *)
27218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27219for as_dir in $PATH
27220do
27221 IFS=$as_save_IFS
27222 test -z "$as_dir" && as_dir=.
27223 for ac_exec_ext in '' $ac_executable_extensions; do
27224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27225 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27227 break 2
27228 fi
27229done
27230done
27231
27232 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27233 ;;
27234esac
27235fi
27236PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27237
27238if test -n "$PKG_CONFIG"; then
27239 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27240echo "${ECHO_T}$PKG_CONFIG" >&6
27241else
27242 echo "$as_me:$LINENO: result: no" >&5
27243echo "${ECHO_T}no" >&6
27244fi
27245
27246 fi
27247
27248 if test "$PKG_CONFIG" = "no" ; then
27249 echo "*** The pkg-config script could not be found. Make sure it is"
27250 echo "*** in your path, or set the PKG_CONFIG environment variable"
27251 echo "*** to the full path to pkg-config."
27252 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27253 else
27254 PKG_CONFIG_MIN_VERSION=0.9.0
27255 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27256 echo "$as_me:$LINENO: checking for pangoft2" >&5
27257echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27258
27259 if $PKG_CONFIG --exists "pangoft2" ; then
27260 echo "$as_me:$LINENO: result: yes" >&5
27261echo "${ECHO_T}yes" >&6
27262 succeeded=yes
27263
27264 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27265echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27266 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27267 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27268echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27269
27270 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27271echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27272 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27273 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27274echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27275 else
27276 PANGOFT2_CFLAGS=""
27277 PANGOFT2_LIBS=""
27278 ## If we have a custom action on failure, don't print errors, but
27279 ## do set a variable so people can do so.
27280 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27281
27282 fi
27283
27284
27285
27286 else
27287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27289 fi
27290 fi
27291
27292 if test $succeeded = yes; then
27293
27294 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27295 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27296
27297 else
27298
27299 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27300echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27301 wxUSE_PRINTING_ARCHITECTURE="no"
27302
27303
27304 fi
27305
27306
27307 succeeded=no
27308
27309 if test -z "$PKG_CONFIG"; then
27310 # Extract the first word of "pkg-config", so it can be a program name with args.
27311set dummy pkg-config; ac_word=$2
27312echo "$as_me:$LINENO: checking for $ac_word" >&5
27313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27314if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27315 echo $ECHO_N "(cached) $ECHO_C" >&6
27316else
27317 case $PKG_CONFIG in
27318 [\\/]* | ?:[\\/]*)
27319 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27320 ;;
27321 *)
27322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27323for as_dir in $PATH
27324do
27325 IFS=$as_save_IFS
27326 test -z "$as_dir" && as_dir=.
27327 for ac_exec_ext in '' $ac_executable_extensions; do
27328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27329 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27331 break 2
27332 fi
27333done
27334done
27335
27336 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27337 ;;
27338esac
27339fi
27340PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27341
27342if test -n "$PKG_CONFIG"; then
27343 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27344echo "${ECHO_T}$PKG_CONFIG" >&6
27345else
27346 echo "$as_me:$LINENO: result: no" >&5
27347echo "${ECHO_T}no" >&6
27348fi
27349
27350 fi
27351
27352 if test "$PKG_CONFIG" = "no" ; then
27353 echo "*** The pkg-config script could not be found. Make sure it is"
27354 echo "*** in your path, or set the PKG_CONFIG environment variable"
27355 echo "*** to the full path to pkg-config."
27356 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27357 else
27358 PKG_CONFIG_MIN_VERSION=0.9.0
27359 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27360 echo "$as_me:$LINENO: checking for pangoxft" >&5
27361echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27362
27363 if $PKG_CONFIG --exists "pangoxft" ; then
27364 echo "$as_me:$LINENO: result: yes" >&5
27365echo "${ECHO_T}yes" >&6
27366 succeeded=yes
27367
27368 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27369echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27370 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27371 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27372echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27373
27374 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27375echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27376 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27377 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27378echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27379 else
27380 PANGOXFT_CFLAGS=""
27381 PANGOXFT_LIBS=""
27382 ## If we have a custom action on failure, don't print errors, but
27383 ## do set a variable so people can do so.
27384 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27385
27386 fi
27387
27388
27389
27390 else
27391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27393 fi
27394 fi
27395
27396 if test $succeeded = yes; then
27397
4ae1af05
MB
27398 cat >>confdefs.h <<\_ACEOF
27399#define HAVE_PANGO_XFT 1
27400_ACEOF
27401
a848cd7e
SC
27402 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27403 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27404
27405 else
27406
27407 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27408echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27409
27410
27411 fi
27412
304205f1
VS
27413 save_CFLAGS="$CFLAGS"
27414 save_LIBS="$LIBS"
27415 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27416 LIBS="$LIBS $PANGOX_LIBS"
27417
27418for ac_func in pango_font_family_is_monospace
27419do
27420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27421echo "$as_me:$LINENO: checking for $ac_func" >&5
27422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27423if eval "test \"\${$as_ac_var+set}\" = set"; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27425else
27426 cat >conftest.$ac_ext <<_ACEOF
27427/* confdefs.h. */
27428_ACEOF
27429cat confdefs.h >>conftest.$ac_ext
27430cat >>conftest.$ac_ext <<_ACEOF
27431/* end confdefs.h. */
27432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27434#define $ac_func innocuous_$ac_func
27435
27436/* System header to define __stub macros and hopefully few prototypes,
27437 which can conflict with char $ac_func (); below.
27438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27439 <limits.h> exists even on freestanding compilers. */
27440
27441#ifdef __STDC__
27442# include <limits.h>
27443#else
27444# include <assert.h>
27445#endif
27446
27447#undef $ac_func
27448
27449/* Override any gcc2 internal prototype to avoid an error. */
27450#ifdef __cplusplus
27451extern "C"
27452{
27453#endif
27454/* We use char because int might match the return type of a gcc2
27455 builtin and then its argument prototype would still apply. */
27456char $ac_func ();
27457/* The GNU C library defines this for functions which it implements
27458 to always fail with ENOSYS. Some functions are actually named
27459 something starting with __ and the normal name is an alias. */
27460#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27461choke me
27462#else
27463char (*f) () = $ac_func;
27464#endif
27465#ifdef __cplusplus
27466}
27467#endif
27468
27469int
27470main ()
27471{
27472return f != $ac_func;
27473 ;
27474 return 0;
27475}
27476_ACEOF
27477rm -f conftest.$ac_objext conftest$ac_exeext
27478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27479 (eval $ac_link) 2>conftest.er1
27480 ac_status=$?
27481 grep -v '^ *+' conftest.er1 >conftest.err
27482 rm -f conftest.er1
27483 cat conftest.err >&5
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); } &&
89be85c2
VS
27486 { ac_try='test -z "$ac_c_werror_flag"
27487 || test ! -s conftest.err'
304205f1
VS
27488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27489 (eval $ac_try) 2>&5
27490 ac_status=$?
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); }; } &&
27493 { ac_try='test -s conftest$ac_exeext'
27494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495 (eval $ac_try) 2>&5
27496 ac_status=$?
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; }; then
27499 eval "$as_ac_var=yes"
27500else
27501 echo "$as_me: failed program was:" >&5
27502sed 's/^/| /' conftest.$ac_ext >&5
27503
27504eval "$as_ac_var=no"
27505fi
27506rm -f conftest.err conftest.$ac_objext \
27507 conftest$ac_exeext conftest.$ac_ext
27508fi
27509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27511if test `eval echo '${'$as_ac_var'}'` = yes; then
27512 cat >>confdefs.h <<_ACEOF
27513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27514_ACEOF
27515
27516fi
27517done
27518
27519 CFLAGS="$save_CFLAGS"
27520 LIBS="$save_LIBS"
a848cd7e
SC
27521 fi
27522
27523 wxUSE_UNIVERSAL="yes"
27524
27525 if test "$wxUSE_NANOX" = "yes"; then
27526 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27527 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"
27528 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27529 else
27530 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27531 fi
27532
a848cd7e
SC
27533 TOOLKIT=X11
27534 GUIDIST=X11_DIST
27535 fi
27536
27537 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27538 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27539echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27540
74b84332
VS
27541ac_find_includes=
27542for ac_dir in $SEARCH_INCLUDE /usr/include;
27543 do
27544 if test -f "$ac_dir/Xm/Xm.h"; then
27545 ac_find_includes=$ac_dir
27546 break
27547 fi
27548 done
a848cd7e 27549
74b84332
VS
27550 if test "$ac_find_includes" != "" ; then
27551 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27552echo "${ECHO_T}found in $ac_find_includes" >&6
27553
27554 if test "x$ac_find_includes" = "x/usr/include"; then
27555 ac_path_to_include=""
27556 else
27557 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27558 result=$?
27559 if test $result = 0; then
27560 ac_path_to_include=""
27561 else
27562 ac_path_to_include=" -I$ac_find_includes"
27563 fi
a848cd7e
SC
27564 fi
27565
74b84332
VS
27566 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27567 else
27568 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27569/* confdefs.h. */
27570_ACEOF
27571cat confdefs.h >>conftest.$ac_ext
27572cat >>conftest.$ac_ext <<_ACEOF
27573/* end confdefs.h. */
27574
74b84332
VS
27575 #include <Xm/Xm.h>
27576
a848cd7e
SC
27577int
27578main ()
27579{
27580
74b84332
VS
27581 int version;
27582 version = xmUseVersion;
27583
a848cd7e
SC
27584 ;
27585 return 0;
27586}
27587_ACEOF
74b84332
VS
27588rm -f conftest.$ac_objext
27589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27590 (eval $ac_compile) 2>conftest.er1
a848cd7e 27591 ac_status=$?
ac1cb8d3
VS
27592 grep -v '^ *+' conftest.er1 >conftest.err
27593 rm -f conftest.er1
27594 cat conftest.err >&5
a848cd7e
SC
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); } &&
89be85c2
VS
27597 { ac_try='test -z "$ac_c_werror_flag"
27598 || test ! -s conftest.err'
ac1cb8d3
VS
27599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600 (eval $ac_try) 2>&5
27601 ac_status=$?
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); }; } &&
74b84332 27604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; }; then
74b84332
VS
27610
27611 echo "$as_me:$LINENO: result: found in default search path" >&5
27612echo "${ECHO_T}found in default search path" >&6
27613 COMPILED_X_PROGRAM=1
27614
a848cd7e
SC
27615else
27616 echo "$as_me: failed program was:" >&5
27617sed 's/^/| /' conftest.$ac_ext >&5
27618
a848cd7e 27619
74b84332
VS
27620 echo "$as_me:$LINENO: result: no" >&5
27621echo "${ECHO_T}no" >&6
27622 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27623echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27624 { (exit 1); exit 1; }; }
a848cd7e 27625
a848cd7e 27626
a848cd7e 27627fi
74b84332
VS
27628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27629 fi
27630
27631 if test "$COMPILED_X_PROGRAM" = 0; then
27632 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27633echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27634
27635ac_find_libraries=
27636for ac_dir in $SEARCH_LIB /usr/lib;
27637 do
27638 for ac_extension in a so sl dylib; do
27639 if test -f "$ac_dir/libXm.$ac_extension"; then
27640 ac_find_libraries=$ac_dir
27641 break 2
a848cd7e 27642 fi
74b84332
VS
27643 done
27644 done
a848cd7e 27645
74b84332
VS
27646 if test "$ac_find_libraries" != "" ; then
27647 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27648echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27649
74b84332
VS
27650
27651 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27652 result=$?
27653 if test $result = 0; then
27654 ac_path_to_link=""
a848cd7e 27655 else
74b84332
VS
27656 ac_path_to_link=" -L$ac_find_libraries"
27657 fi
27658
27659 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27660 else
27661 save_CFLAGS=$CFLAGS
27662 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27663
27664 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27665/* confdefs.h. */
27666_ACEOF
27667cat confdefs.h >>conftest.$ac_ext
27668cat >>conftest.$ac_ext <<_ACEOF
27669/* end confdefs.h. */
27670
74b84332
VS
27671 #include <Xm/Xm.h>
27672
a848cd7e
SC
27673int
27674main ()
27675{
74b84332
VS
27676
27677 int version;
27678 version = xmUseVersion;
27679
a848cd7e
SC
27680 ;
27681 return 0;
27682}
27683_ACEOF
74b84332
VS
27684rm -f conftest.$ac_objext
27685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27686 (eval $ac_compile) 2>conftest.er1
a848cd7e 27687 ac_status=$?
ac1cb8d3
VS
27688 grep -v '^ *+' conftest.er1 >conftest.err
27689 rm -f conftest.er1
27690 cat conftest.err >&5
a848cd7e
SC
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } &&
89be85c2
VS
27693 { ac_try='test -z "$ac_c_werror_flag"
27694 || test ! -s conftest.err'
ac1cb8d3
VS
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
74b84332 27700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27703 ac_status=$?
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; }; then
74b84332
VS
27706
27707 echo "$as_me:$LINENO: result: found in default search path" >&5
27708echo "${ECHO_T}found in default search path" >&6
27709 COMPILED_X_PROGRAM=1
27710
a848cd7e
SC
27711else
27712 echo "$as_me: failed program was:" >&5
27713sed 's/^/| /' conftest.$ac_ext >&5
27714
74b84332
VS
27715
27716 echo "$as_me:$LINENO: result: no" >&5
27717echo "${ECHO_T}no" >&6
27718 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27719echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27720 { (exit 1); exit 1; }; }
27721
27722
27723fi
27724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27725
27726 CFLAGS=$save_CFLAGS
27727 fi
27728 fi
27729
27730 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27731echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27732 libp_link=""
27733 libsm_ice_link=""
27734 libs_found=0
27735 for libp in "" " -lXp"; do
27736 if test "$libs_found" = "0"; then
27737 for libsm_ice in "" " -lSM -lICE"; do
27738 if test "$libs_found" = "0"; then
27739 save_LIBS="$LIBS"
27740 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27741 save_CFLAGS=$CFLAGS
27742 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27743
27744 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27745/* confdefs.h. */
27746_ACEOF
27747cat confdefs.h >>conftest.$ac_ext
27748cat >>conftest.$ac_ext <<_ACEOF
27749/* end confdefs.h. */
27750
74b84332
VS
27751 #include <Xm/Xm.h>
27752 #include <Xm/List.h>
27753
a848cd7e
SC
27754int
27755main ()
27756{
74b84332
VS
27757
27758 XmString string = NULL;
27759 Widget w = NULL;
27760 int position = 0;
27761 XmListAddItem(w, string, position);
27762
a848cd7e
SC
27763 ;
27764 return 0;
27765}
27766_ACEOF
27767rm -f conftest.$ac_objext conftest$ac_exeext
27768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27769 (eval $ac_link) 2>conftest.er1
a848cd7e 27770 ac_status=$?
ac1cb8d3
VS
27771 grep -v '^ *+' conftest.er1 >conftest.err
27772 rm -f conftest.er1
27773 cat conftest.err >&5
a848cd7e
SC
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); } &&
89be85c2
VS
27776 { ac_try='test -z "$ac_c_werror_flag"
27777 || test ! -s conftest.err'
ac1cb8d3
VS
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
27780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } &&
27783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785 (eval $ac_try) 2>&5
27786 ac_status=$?
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; }; then
27789
27790 libp_link="$libp"
27791 libsm_ice_link="$libsm_ice"
27792 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27793echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27794 libs_found=1
27795
27796else
27797 echo "$as_me: failed program was:" >&5
27798sed 's/^/| /' conftest.$ac_ext >&5
27799
27800
27801
27802fi
ac1cb8d3
VS
27803rm -f conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27805
27806 LIBS="$save_LIBS"
27807 CFLAGS=$save_CFLAGS
27808 fi
27809 done
27810 fi
27811 done
27812
27813 if test "$libs_found" = "0"; then
27814 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27815echo "${ECHO_T}can't find the right libraries" >&6
27816 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27817echo "$as_me: error: can't link a simple motif program" >&2;}
27818 { (exit 1); exit 1; }; }
27819 fi
27820
27821 save_CFLAGS=$CFLAGS
27822 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27823 echo "$as_me:$LINENO: checking for Motif 2" >&5
27824echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27825 cat >conftest.$ac_ext <<_ACEOF
27826/* confdefs.h. */
27827_ACEOF
27828cat confdefs.h >>conftest.$ac_ext
27829cat >>conftest.$ac_ext <<_ACEOF
27830/* end confdefs.h. */
27831
27832 #include <Xm/Xm.h>
27833
27834int
27835main ()
27836{
27837
27838 #if XmVersion < 2000
27839 #error "Not Motif 2"
27840 #endif
27841
27842 ;
27843 return 0;
27844}
27845_ACEOF
27846rm -f conftest.$ac_objext
27847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27848 (eval $ac_compile) 2>conftest.er1
a848cd7e 27849 ac_status=$?
ac1cb8d3
VS
27850 grep -v '^ *+' conftest.er1 >conftest.err
27851 rm -f conftest.er1
27852 cat conftest.err >&5
a848cd7e
SC
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } &&
89be85c2
VS
27855 { ac_try='test -z "$ac_c_werror_flag"
27856 || test ! -s conftest.err'
ac1cb8d3
VS
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; } &&
27862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864 (eval $ac_try) 2>&5
27865 ac_status=$?
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; }; then
27868
27869 cat >>confdefs.h <<\_ACEOF
27870#define __WXMOTIF20__ 1
27871_ACEOF
27872
27873 echo "$as_me:$LINENO: result: found" >&5
27874echo "${ECHO_T}found" >&6
27875
27876else
27877 echo "$as_me: failed program was:" >&5
27878sed 's/^/| /' conftest.$ac_ext >&5
27879
27880
27881 cat >>confdefs.h <<\_ACEOF
27882#define __WXMOTIF20__ 0
27883_ACEOF
27884
27885 echo "$as_me:$LINENO: result: not found" >&5
27886echo "${ECHO_T}not found" >&6
27887
27888fi
ac1cb8d3 27889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27890 CFLAGS=$save_CFLAGS
27891
27892 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27893 TOOLKIT=MOTIF
27894 GUIDIST=MOTIF_DIST
27895 fi
27896
74b84332 27897 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27898 if test "$wxUSE_LIBXPM" = "sys"; then
27899 echo "$as_me:$LINENO: checking for Xpm library" >&5
27900echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27901
27902ac_find_libraries=
27903for ac_dir in $SEARCH_LIB /usr/lib;
27904 do
27905 for ac_extension in a so sl dylib; do
27906 if test -f "$ac_dir/libXpm.$ac_extension"; then
27907 ac_find_libraries=$ac_dir
27908 break 2
27909 fi
27910 done
27911 done
27912
27913 if test "$ac_find_libraries" != "" ; then
27914
27915 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27916 result=$?
27917 if test $result = 0; then
27918 ac_path_to_link=""
27919 else
27920 ac_path_to_link=" -L$ac_find_libraries"
27921 fi
27922
27923 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27924 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27925echo "${ECHO_T}found at $ac_find_libraries" >&6
27926
27927 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27928echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27929if test "${wx_cv_x11_xpm_h+set}" = set; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27931else
27932
27933 save_CFLAGS=$CFLAGS
27934 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27935
27936 cat >conftest.$ac_ext <<_ACEOF
27937/* confdefs.h. */
27938_ACEOF
27939cat confdefs.h >>conftest.$ac_ext
27940cat >>conftest.$ac_ext <<_ACEOF
27941/* end confdefs.h. */
27942
27943 #include <X11/xpm.h>
27944
27945int
27946main ()
27947{
27948
27949 int version;
27950 version = XpmLibraryVersion();
27951
27952 ;
27953 return 0;
27954}
27955_ACEOF
27956rm -f conftest.$ac_objext
27957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27958 (eval $ac_compile) 2>conftest.er1
a848cd7e 27959 ac_status=$?
ac1cb8d3
VS
27960 grep -v '^ *+' conftest.er1 >conftest.err
27961 rm -f conftest.er1
27962 cat conftest.err >&5
a848cd7e
SC
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); } &&
89be85c2
VS
27965 { ac_try='test -z "$ac_c_werror_flag"
27966 || test ! -s conftest.err'
ac1cb8d3
VS
27967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27969 ac_status=$?
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); }; } &&
27972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27974 (eval $ac_try) 2>&5
27975 ac_status=$?
27976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977 (exit $ac_status); }; }; then
27978 wx_cv_x11_xpm_h=yes
27979else
27980 echo "$as_me: failed program was:" >&5
27981sed 's/^/| /' conftest.$ac_ext >&5
27982
27983wx_cv_x11_xpm_h=no
27984
27985fi
ac1cb8d3 27986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27987
27988 CFLAGS=$save_CFLAGS
27989
27990
27991fi
27992echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27993echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27994
27995 if test $wx_cv_x11_xpm_h = "yes"; then
27996 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27997 cat >>confdefs.h <<\_ACEOF
27998#define wxHAVE_LIB_XPM 1
27999_ACEOF
28000
28001 else
28002 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28003echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28004 fi
28005 fi
28006
28007 fi
28008
28009 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28010echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28011if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28012 echo $ECHO_N "(cached) $ECHO_C" >&6
28013else
28014 ac_check_lib_save_LIBS=$LIBS
28015LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28016cat >conftest.$ac_ext <<_ACEOF
28017/* confdefs.h. */
28018_ACEOF
28019cat confdefs.h >>conftest.$ac_ext
28020cat >>conftest.$ac_ext <<_ACEOF
28021/* end confdefs.h. */
28022
28023/* Override any gcc2 internal prototype to avoid an error. */
28024#ifdef __cplusplus
28025extern "C"
28026#endif
28027/* We use char because int might match the return type of a gcc2
28028 builtin and then its argument prototype would still apply. */
28029char XShapeQueryExtension ();
28030int
28031main ()
28032{
28033XShapeQueryExtension ();
28034 ;
28035 return 0;
28036}
28037_ACEOF
28038rm -f conftest.$ac_objext conftest$ac_exeext
28039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28040 (eval $ac_link) 2>conftest.er1
a848cd7e 28041 ac_status=$?
ac1cb8d3
VS
28042 grep -v '^ *+' conftest.er1 >conftest.err
28043 rm -f conftest.er1
28044 cat conftest.err >&5
a848cd7e
SC
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } &&
89be85c2
VS
28047 { ac_try='test -z "$ac_c_werror_flag"
28048 || test ! -s conftest.err'
ac1cb8d3
VS
28049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050 (eval $ac_try) 2>&5
28051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; } &&
28054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056 (eval $ac_try) 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; }; then
28060 ac_cv_lib_Xext_XShapeQueryExtension=yes
28061else
28062 echo "$as_me: failed program was:" >&5
28063sed 's/^/| /' conftest.$ac_ext >&5
28064
28065ac_cv_lib_Xext_XShapeQueryExtension=no
28066fi
ac1cb8d3
VS
28067rm -f conftest.err conftest.$ac_objext \
28068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28069LIBS=$ac_check_lib_save_LIBS
28070fi
28071echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28072echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28073if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28074
28075 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28076 wxHAVE_XEXT_LIB=1
28077
28078fi
28079
28080
28081 if test "$wxHAVE_XEXT_LIB" = 1; then
28082 save_CFLAGS="$CFLAGS"
28083 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28084
28085 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28086echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28087 cat >conftest.$ac_ext <<_ACEOF
28088/* confdefs.h. */
28089_ACEOF
28090cat confdefs.h >>conftest.$ac_ext
28091cat >>conftest.$ac_ext <<_ACEOF
28092/* end confdefs.h. */
28093
28094 #include <X11/Xlib.h>
28095 #include <X11/extensions/shape.h>
28096
28097int
28098main ()
28099{
28100
28101 int dummy1, dummy2;
28102 XShapeQueryExtension((Display*)NULL,
28103 (int*)NULL, (int*)NULL);
28104
28105 ;
28106 return 0;
28107}
28108_ACEOF
28109rm -f conftest.$ac_objext
28110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28111 (eval $ac_compile) 2>conftest.er1
a848cd7e 28112 ac_status=$?
ac1cb8d3
VS
28113 grep -v '^ *+' conftest.er1 >conftest.err
28114 rm -f conftest.er1
28115 cat conftest.err >&5
a848cd7e
SC
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } &&
89be85c2
VS
28118 { ac_try='test -z "$ac_c_werror_flag"
28119 || test ! -s conftest.err'
ac1cb8d3
VS
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28122 ac_status=$?
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; } &&
28125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28128 ac_status=$?
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; }; then
28131
28132 cat >>confdefs.h <<\_ACEOF
28133#define HAVE_XSHAPE 1
28134_ACEOF
28135
28136 echo "$as_me:$LINENO: result: found" >&5
28137echo "${ECHO_T}found" >&6
28138
28139else
28140 echo "$as_me: failed program was:" >&5
28141sed 's/^/| /' conftest.$ac_ext >&5
28142
28143
28144 echo "$as_me:$LINENO: result: not found" >&5
28145echo "${ECHO_T}not found" >&6
28146
28147fi
ac1cb8d3 28148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28149 CFLAGS="$save_CFLAGS"
28150
28151 fi
28152 fi
28153
28154 if test "$wxUSE_MAC" = 1; then
28155 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28156echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28157 if test "$GCC" = yes; then
28158 echo "$as_me:$LINENO: result: gcc" >&5
28159echo "${ECHO_T}gcc" >&6
28160 CPPFLAGS_PASCAL="-fpascal-strings"
28161 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28162 echo "$as_me:$LINENO: result: xlc" >&5
28163echo "${ECHO_T}xlc" >&6
28164 CPPFLAGS_PASCAL="-qmacpstr"
28165 else
28166 echo "$as_me:$LINENO: result: none" >&5
28167echo "${ECHO_T}none" >&6
28168 fi
28169
1e9e8aba
DE
28170 if test "x$wxUSE_UNIX" = "xyes"; then
28171 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28172 else
28173 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28174 fi
a848cd7e 28175
a848cd7e
SC
28176 TOOLKIT=MAC
28177 GUIDIST=MACX_DIST
dd21ced8 28178 WXBASEPORT="_carbon"
a848cd7e
SC
28179 fi
28180
28181 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28182 TOOLKIT=COCOA
28183 GUIDIST=COCOA_DIST
28184 fi
28185
28186 if test "$wxUSE_PM" = 1; then
28187 TOOLKIT=PM
de59c161
RD
28188 GUIDIST=PM_DIST
28189 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28190echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28191if test "${wx_cv_spbcdata+set}" = set; then
28192 echo $ECHO_N "(cached) $ECHO_C" >&6
28193else
28194
28195 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28196/* confdefs.h. */
28197_ACEOF
28198cat confdefs.h >>conftest.$ac_ext
28199cat >>conftest.$ac_ext <<_ACEOF
28200/* end confdefs.h. */
28201
28202 #define INCL_PM
28203 #include <os2.h>
28204
28205int
28206main ()
28207{
28208
28209 SPBCDATA test;
28210
28211 ;
28212 return 0;
28213}
28214_ACEOF
28215rm -f conftest.$ac_objext
28216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28217 (eval $ac_compile) 2>conftest.er1
de59c161 28218 ac_status=$?
ac1cb8d3
VS
28219 grep -v '^ *+' conftest.er1 >conftest.err
28220 rm -f conftest.er1
28221 cat conftest.err >&5
de59c161
RD
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); } &&
89be85c2
VS
28224 { ac_try='test -z "$ac_c_werror_flag"
28225 || test ! -s conftest.err'
ac1cb8d3
VS
28226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28227 (eval $ac_try) 2>&5
28228 ac_status=$?
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); }; } &&
28231 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233 (eval $ac_try) 2>&5
28234 ac_status=$?
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
28237 wx_cv_spbcdata=yes
28238else
28239 echo "$as_me: failed program was:" >&5
28240sed 's/^/| /' conftest.$ac_ext >&5
28241
28242wx_cv_spbcdata=no
28243
28244fi
ac1cb8d3 28245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28246
28247
28248fi
28249echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28250echo "${ECHO_T}$wx_cv_spbcdata" >&6
28251
28252 if test $wx_cv_spbcdata = "yes"; then
28253 cat >>confdefs.h <<\_ACEOF
28254#define HAVE_SPBCDATA 1
28255_ACEOF
28256
28257 fi
a848cd7e
SC
28258 fi
28259
28260 if test "$TOOLKIT" = "PM" ; then
28261 TOOLKIT_DIR="os2"
28262 else
28263 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28264 fi
28265
a848cd7e 28266 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28267 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28268 WIDGET_SET=univ
a848cd7e
SC
28269 fi
28270
28271 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28272 DISTDIR="wx\$(TOOLKIT)"
28273else
28274 USE_GUI=0
28275
28276 TOOLKIT_DIR="base"
28277
28278 if test "$USE_WIN32" = 1 ; then
a848cd7e 28279 TOOLKIT="MSW"
a848cd7e
SC
28280 fi
28281
a848cd7e
SC
28282 GUIDIST="BASE_DIST"
28283 DISTDIR="wxBase"
28284fi
28285
28286
28287
28288
28289IODBC_C_SRC=""
28290
28291
28292if test "$TOOLKIT" != "MSW" ; then
28293
28294 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28295
28296 if test "${ac_cv_header_sql_h+set}" = set; then
28297 echo "$as_me:$LINENO: checking for sql.h" >&5
28298echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28299if test "${ac_cv_header_sql_h+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28301fi
28302echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28303echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28304else
28305 # Is the header compilable?
28306echo "$as_me:$LINENO: checking sql.h usability" >&5
28307echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28308cat >conftest.$ac_ext <<_ACEOF
28309/* confdefs.h. */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h. */
28314$ac_includes_default
28315#include <sql.h>
28316_ACEOF
28317rm -f conftest.$ac_objext
28318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28319 (eval $ac_compile) 2>conftest.er1
a848cd7e 28320 ac_status=$?
ac1cb8d3
VS
28321 grep -v '^ *+' conftest.er1 >conftest.err
28322 rm -f conftest.er1
28323 cat conftest.err >&5
a848cd7e
SC
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); } &&
89be85c2
VS
28326 { ac_try='test -z "$ac_c_werror_flag"
28327 || test ! -s conftest.err'
ac1cb8d3
VS
28328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28329 (eval $ac_try) 2>&5
28330 ac_status=$?
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); }; } &&
28333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335 (eval $ac_try) 2>&5
28336 ac_status=$?
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; }; then
28339 ac_header_compiler=yes
28340else
28341 echo "$as_me: failed program was:" >&5
28342sed 's/^/| /' conftest.$ac_ext >&5
28343
28344ac_header_compiler=no
28345fi
ac1cb8d3 28346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28348echo "${ECHO_T}$ac_header_compiler" >&6
28349
28350# Is the header present?
28351echo "$as_me:$LINENO: checking sql.h presence" >&5
28352echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28353cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
28359#include <sql.h>
28360_ACEOF
28361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28363 ac_status=$?
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } >/dev/null; then
28369 if test -s conftest.err; then
28370 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28372 else
28373 ac_cpp_err=
28374 fi
28375else
28376 ac_cpp_err=yes
28377fi
28378if test -z "$ac_cpp_err"; then
28379 ac_header_preproc=yes
28380else
28381 echo "$as_me: failed program was:" >&5
28382sed 's/^/| /' conftest.$ac_ext >&5
28383
28384 ac_header_preproc=no
28385fi
28386rm -f conftest.err conftest.$ac_ext
28387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28388echo "${ECHO_T}$ac_header_preproc" >&6
28389
28390# So? What about this header?
ac1cb8d3
VS
28391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28392 yes:no: )
a848cd7e
SC
28393 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28394echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28395 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28396echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28397 ac_header_preproc=yes
a848cd7e 28398 ;;
ac1cb8d3 28399 no:yes:* )
a848cd7e
SC
28400 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28401echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28402 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28403echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28404 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28405echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28406 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28407echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28408 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28409echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28410 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28411echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28412 (
28413 cat <<\_ASBOX
ac1cb8d3
VS
28414## ----------------------------------------- ##
28415## Report this to wx-dev@lists.wxwidgets.org ##
28416## ----------------------------------------- ##
a848cd7e
SC
28417_ASBOX
28418 ) |
28419 sed "s/^/$as_me: WARNING: /" >&2
28420 ;;
28421esac
28422echo "$as_me:$LINENO: checking for sql.h" >&5
28423echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28424if test "${ac_cv_header_sql_h+set}" = set; then
28425 echo $ECHO_N "(cached) $ECHO_C" >&6
28426else
28427 ac_cv_header_sql_h=$ac_header_preproc
28428fi
28429echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28430echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28431
28432fi
28433if test $ac_cv_header_sql_h = yes; then
28434 found_sql_h=1
28435fi
28436
28437
28438 if test "x$found_sql_h" = "x1" ; then
28439 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28440echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28441if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28442 echo $ECHO_N "(cached) $ECHO_C" >&6
28443else
28444 ac_check_lib_save_LIBS=$LIBS
28445LIBS="-liodbc $LIBS"
28446cat >conftest.$ac_ext <<_ACEOF
28447/* confdefs.h. */
28448_ACEOF
28449cat confdefs.h >>conftest.$ac_ext
28450cat >>conftest.$ac_ext <<_ACEOF
28451/* end confdefs.h. */
28452
28453/* Override any gcc2 internal prototype to avoid an error. */
28454#ifdef __cplusplus
28455extern "C"
28456#endif
28457/* We use char because int might match the return type of a gcc2
28458 builtin and then its argument prototype would still apply. */
28459char SQLAllocEnv ();
28460int
28461main ()
28462{
28463SQLAllocEnv ();
28464 ;
28465 return 0;
28466}
28467_ACEOF
28468rm -f conftest.$ac_objext conftest$ac_exeext
28469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28470 (eval $ac_link) 2>conftest.er1
a848cd7e 28471 ac_status=$?
ac1cb8d3
VS
28472 grep -v '^ *+' conftest.er1 >conftest.err
28473 rm -f conftest.er1
28474 cat conftest.err >&5
a848cd7e
SC
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); } &&
89be85c2
VS
28477 { ac_try='test -z "$ac_c_werror_flag"
28478 || test ! -s conftest.err'
ac1cb8d3
VS
28479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28480 (eval $ac_try) 2>&5
28481 ac_status=$?
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); }; } &&
28484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28486 (eval $ac_try) 2>&5
28487 ac_status=$?
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); }; }; then
28490 ac_cv_lib_iodbc_SQLAllocEnv=yes
28491else
28492 echo "$as_me: failed program was:" >&5
28493sed 's/^/| /' conftest.$ac_ext >&5
28494
28495ac_cv_lib_iodbc_SQLAllocEnv=no
28496fi
ac1cb8d3
VS
28497rm -f conftest.err conftest.$ac_objext \
28498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28499LIBS=$ac_check_lib_save_LIBS
28500fi
28501echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28502echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28503if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28504 ODBC_LINK=" -liodbc"
28505else
28506
28507 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28508echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28509if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28511else
28512 ac_check_lib_save_LIBS=$LIBS
28513LIBS="-lunixodbc $LIBS"
28514cat >conftest.$ac_ext <<_ACEOF
28515/* confdefs.h. */
28516_ACEOF
28517cat confdefs.h >>conftest.$ac_ext
28518cat >>conftest.$ac_ext <<_ACEOF
28519/* end confdefs.h. */
28520
28521/* Override any gcc2 internal prototype to avoid an error. */
28522#ifdef __cplusplus
28523extern "C"
28524#endif
28525/* We use char because int might match the return type of a gcc2
28526 builtin and then its argument prototype would still apply. */
28527char SQLAllocEnv ();
28528int
28529main ()
28530{
28531SQLAllocEnv ();
28532 ;
28533 return 0;
28534}
28535_ACEOF
28536rm -f conftest.$ac_objext conftest$ac_exeext
28537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28538 (eval $ac_link) 2>conftest.er1
a848cd7e 28539 ac_status=$?
ac1cb8d3
VS
28540 grep -v '^ *+' conftest.er1 >conftest.err
28541 rm -f conftest.er1
28542 cat conftest.err >&5
a848cd7e
SC
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); } &&
89be85c2
VS
28545 { ac_try='test -z "$ac_c_werror_flag"
28546 || test ! -s conftest.err'
ac1cb8d3
VS
28547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28548 (eval $ac_try) 2>&5
28549 ac_status=$?
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); }; } &&
28552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28554 (eval $ac_try) 2>&5
28555 ac_status=$?
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; }; then
28558 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28559else
28560 echo "$as_me: failed program was:" >&5
28561sed 's/^/| /' conftest.$ac_ext >&5
28562
28563ac_cv_lib_unixodbc_SQLAllocEnv=no
28564fi
ac1cb8d3
VS
28565rm -f conftest.err conftest.$ac_objext \
28566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28567LIBS=$ac_check_lib_save_LIBS
28568fi
28569echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28570echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28571if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28572 ODBC_LINK=" -lunixodbc"
28573else
28574
28575 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28576echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28577if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28579else
28580 ac_check_lib_save_LIBS=$LIBS
28581LIBS="-lodbc $LIBS"
28582cat >conftest.$ac_ext <<_ACEOF
28583/* confdefs.h. */
28584_ACEOF
28585cat confdefs.h >>conftest.$ac_ext
28586cat >>conftest.$ac_ext <<_ACEOF
28587/* end confdefs.h. */
28588
28589/* Override any gcc2 internal prototype to avoid an error. */
28590#ifdef __cplusplus
28591extern "C"
28592#endif
28593/* We use char because int might match the return type of a gcc2
28594 builtin and then its argument prototype would still apply. */
28595char SQLAllocEnv ();
28596int
28597main ()
28598{
28599SQLAllocEnv ();
28600 ;
28601 return 0;
28602}
28603_ACEOF
28604rm -f conftest.$ac_objext conftest$ac_exeext
28605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28606 (eval $ac_link) 2>conftest.er1
a848cd7e 28607 ac_status=$?
ac1cb8d3
VS
28608 grep -v '^ *+' conftest.er1 >conftest.err
28609 rm -f conftest.er1
28610 cat conftest.err >&5
a848cd7e
SC
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } &&
89be85c2
VS
28613 { ac_try='test -z "$ac_c_werror_flag"
28614 || test ! -s conftest.err'
ac1cb8d3
VS
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; } &&
28620 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 ac_cv_lib_odbc_SQLAllocEnv=yes
28627else
28628 echo "$as_me: failed program was:" >&5
28629sed 's/^/| /' conftest.$ac_ext >&5
28630
28631ac_cv_lib_odbc_SQLAllocEnv=no
28632fi
ac1cb8d3
VS
28633rm -f conftest.err conftest.$ac_objext \
28634 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28635LIBS=$ac_check_lib_save_LIBS
28636fi
28637echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28638echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28639if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28640 ODBC_LINK=" -lodbc"
28641fi
28642
28643
28644fi
28645
28646
28647fi
28648
28649 fi
28650 if test "x$ODBC_LINK" = "x" ; then
28651 if test "$wxUSE_ODBC" = "sys" ; then
28652 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28653echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28654 { (exit 1); exit 1; }; }
28655 else
28656 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28657echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28658 wxUSE_ODBC=builtin
28659 fi
28660 else
28661 wxUSE_ODBC=sys
28662 fi
28663 fi
a848cd7e 28664
2da0c077
RD
28665 if test "$wxUSE_ODBC" = "builtin" ; then
28666 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28667#define wxUSE_BUILTIN_IODBC 1
28668_ACEOF
28669
a848cd7e
SC
28670 fi
28671fi
28672
2da0c077
RD
28673if test "$wxUSE_ODBC" != "no" ; then
28674 cat >>confdefs.h <<\_ACEOF
28675#define wxUSE_ODBC 1
28676_ACEOF
28677
28678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28679
28680 WXODBCFLAG="-D_IODBC_"
28681fi
a848cd7e 28682
01cb68df 28683
a848cd7e 28684if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28685 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28686 echo "$as_me:$LINENO: checking for Xinerama" >&5
28687echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28688
28689ac_find_libraries=
28690for ac_dir in $SEARCH_LIB /usr/lib;
28691 do
28692 for ac_extension in a so sl dylib; do
28693 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28694 ac_find_libraries=$ac_dir
28695 break 2
28696 fi
28697 done
28698 done
28699
28700 if test "$ac_find_libraries" != "" ; then
28701
28702 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28703 result=$?
28704 if test $result = 0; then
28705 ac_path_to_link=""
28706 else
28707 ac_path_to_link=" -L$ac_find_libraries"
28708 fi
28709
28710 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28711 LDFLAGS="$LDFLAGS $ac_path_to_link"
28712 fi
28713 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28714 echo "$as_me:$LINENO: result: yes" >&5
28715echo "${ECHO_T}yes" >&6
28716
28717 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28718echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28719
28720ac_find_libraries=
28721for ac_dir in $SEARCH_LIB /usr/lib;
28722 do
28723 for ac_extension in a so sl dylib; do
28724 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28725 ac_find_libraries=$ac_dir
28726 break 2
28727 fi
28728 done
28729 done
28730
28731 if test "$ac_find_libraries" != "" ; then
28732 echo "$as_me:$LINENO: result: yes" >&5
28733echo "${ECHO_T}yes" >&6
28734
28735for ac_header in X11/extensions/xf86vmode.h
28736do
28737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28738echo "$as_me:$LINENO: checking for $ac_header" >&5
28739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28740if eval "test \"\${$as_ac_Header+set}\" = set"; then
28741 echo $ECHO_N "(cached) $ECHO_C" >&6
28742else
28743 cat >conftest.$ac_ext <<_ACEOF
28744/* confdefs.h. */
28745_ACEOF
28746cat confdefs.h >>conftest.$ac_ext
28747cat >>conftest.$ac_ext <<_ACEOF
28748/* end confdefs.h. */
28749
28750 #if HAVE_X11_XLIB_H
28751 #include <X11/Xlib.h>
28752 #endif
28753
28754
28755#include <$ac_header>
28756_ACEOF
28757rm -f conftest.$ac_objext
28758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28759 (eval $ac_compile) 2>conftest.er1
a848cd7e 28760 ac_status=$?
ac1cb8d3
VS
28761 grep -v '^ *+' conftest.er1 >conftest.err
28762 rm -f conftest.er1
28763 cat conftest.err >&5
a848cd7e
SC
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); } &&
89be85c2
VS
28766 { ac_try='test -z "$ac_c_werror_flag"
28767 || test ! -s conftest.err'
ac1cb8d3
VS
28768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769 (eval $ac_try) 2>&5
28770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; }; then
28779 eval "$as_ac_Header=yes"
28780else
28781 echo "$as_me: failed program was:" >&5
28782sed 's/^/| /' conftest.$ac_ext >&5
28783
28784eval "$as_ac_Header=no"
28785fi
ac1cb8d3 28786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28787fi
28788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28790if test `eval echo '${'$as_ac_Header'}'` = yes; then
28791 cat >>confdefs.h <<_ACEOF
28792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28793_ACEOF
28794
28795 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28796
28797fi
28798
28799done
28800
28801 else
28802 echo "$as_me:$LINENO: result: no" >&5
28803echo "${ECHO_T}no" >&6
28804 fi
28805
28806 else
28807 echo "$as_me:$LINENO: result: no" >&5
28808echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28809 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28810echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28811 wxUSE_DISPLAY="no"
28812 fi
01cb68df
RG
28813 elif test "$wxUSE_MSW" = 1; then
28814
28815
28816for ac_header in multimon.h ddraw.h
28817do
28818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28819echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28821if eval "test \"\${$as_ac_Header+set}\" = set"; then
28822 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28823else
5294a27e 28824 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28825/* confdefs.h. */
28826_ACEOF
28827cat confdefs.h >>conftest.$ac_ext
28828cat >>conftest.$ac_ext <<_ACEOF
28829/* end confdefs.h. */
5294a27e
VZ
28830#include <windows.h>
28831
01cb68df
RG
28832#include <$ac_header>
28833_ACEOF
28834rm -f conftest.$ac_objext
28835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28836 (eval $ac_compile) 2>conftest.er1
01cb68df 28837 ac_status=$?
ac1cb8d3
VS
28838 grep -v '^ *+' conftest.er1 >conftest.err
28839 rm -f conftest.er1
28840 cat conftest.err >&5
01cb68df
RG
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); } &&
89be85c2
VS
28843 { ac_try='test -z "$ac_c_werror_flag"
28844 || test ! -s conftest.err'
ac1cb8d3
VS
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28847 ac_status=$?
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; } &&
28850 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28853 ac_status=$?
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; }; then
5294a27e 28856 eval "$as_ac_Header=yes"
01cb68df
RG
28857else
28858 echo "$as_me: failed program was:" >&5
28859sed 's/^/| /' conftest.$ac_ext >&5
28860
5294a27e 28861eval "$as_ac_Header=no"
01cb68df 28862fi
ac1cb8d3 28863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28864fi
28865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28867if test `eval echo '${'$as_ac_Header'}'` = yes; then
28868 cat >>confdefs.h <<_ACEOF
28869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28870_ACEOF
28871
28872else
28873
5294a27e
VZ
28874 wxUSE_DISPLAY="no"
28875 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28876echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28877
28878fi
28879
28880done
28881
a848cd7e
SC
28882 fi
28883fi
28884
28885
28886USE_OPENGL=0
28887if test "$wxUSE_OPENGL" = "yes"; then
28888 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28889 OPENGL_LIBS="-framework OpenGL -framework AGL"
28890 elif test "$wxUSE_MSW" = 1; then
28891 OPENGL_LIBS="-lopengl32 -lglu32"
28892 else
28893
28894
28895ac_find_includes=
28896for ac_dir in $SEARCH_INCLUDE /usr/include;
28897 do
28898 if test -f "$ac_dir/GL/gl.h"; then
28899 ac_find_includes=$ac_dir
28900 break
28901 fi
28902 done
28903
28904 if test "$ac_find_includes" != "" ; then
28905 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28906echo "${ECHO_T}found in $ac_find_includes" >&6
28907
28908 if test "x$ac_find_includes" = "x/usr/include"; then
28909 ac_path_to_include=""
28910 else
28911 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28912 result=$?
28913 if test $result = 0; then
28914 ac_path_to_include=""
28915 else
28916 ac_path_to_include=" -I$ac_find_includes"
28917 fi
28918 fi
28919
28920 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28921 fi
28922
28923 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28924 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28925echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28926if test "${ac_cv_header_GL_gl_h+set}" = set; then
28927 echo $ECHO_N "(cached) $ECHO_C" >&6
28928fi
28929echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28930echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28931else
28932 # Is the header compilable?
28933echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28934echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28935cat >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
28942#include <GL/gl.h>
28943_ACEOF
28944rm -f conftest.$ac_objext
28945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28946 (eval $ac_compile) 2>conftest.er1
a848cd7e 28947 ac_status=$?
ac1cb8d3
VS
28948 grep -v '^ *+' conftest.er1 >conftest.err
28949 rm -f conftest.er1
28950 cat conftest.err >&5
a848cd7e
SC
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } &&
89be85c2
VS
28953 { ac_try='test -z "$ac_c_werror_flag"
28954 || test ! -s conftest.err'
ac1cb8d3
VS
28955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28956 (eval $ac_try) 2>&5
28957 ac_status=$?
28958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); }; } &&
28960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28962 (eval $ac_try) 2>&5
28963 ac_status=$?
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); }; }; then
28966 ac_header_compiler=yes
28967else
28968 echo "$as_me: failed program was:" >&5
28969sed 's/^/| /' conftest.$ac_ext >&5
28970
28971ac_header_compiler=no
28972fi
ac1cb8d3 28973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28975echo "${ECHO_T}$ac_header_compiler" >&6
28976
28977# Is the header present?
28978echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28979echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28980cat >conftest.$ac_ext <<_ACEOF
28981/* confdefs.h. */
28982_ACEOF
28983cat confdefs.h >>conftest.$ac_ext
28984cat >>conftest.$ac_ext <<_ACEOF
28985/* end confdefs.h. */
28986#include <GL/gl.h>
28987_ACEOF
28988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28990 ac_status=$?
28991 grep -v '^ *+' conftest.er1 >conftest.err
28992 rm -f conftest.er1
28993 cat conftest.err >&5
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } >/dev/null; then
28996 if test -s conftest.err; then
28997 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28999 else
29000 ac_cpp_err=
29001 fi
29002else
29003 ac_cpp_err=yes
29004fi
29005if test -z "$ac_cpp_err"; then
29006 ac_header_preproc=yes
29007else
29008 echo "$as_me: failed program was:" >&5
29009sed 's/^/| /' conftest.$ac_ext >&5
29010
29011 ac_header_preproc=no
29012fi
29013rm -f conftest.err conftest.$ac_ext
29014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29015echo "${ECHO_T}$ac_header_preproc" >&6
29016
29017# So? What about this header?
ac1cb8d3
VS
29018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29019 yes:no: )
a848cd7e
SC
29020 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29021echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29022 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29023echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29024 ac_header_preproc=yes
a848cd7e 29025 ;;
ac1cb8d3 29026 no:yes:* )
a848cd7e
SC
29027 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29028echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29029 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29030echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29032echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29034echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29035 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29036echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29037 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29038echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29039 (
29040 cat <<\_ASBOX
ac1cb8d3
VS
29041## ----------------------------------------- ##
29042## Report this to wx-dev@lists.wxwidgets.org ##
29043## ----------------------------------------- ##
a848cd7e
SC
29044_ASBOX
29045 ) |
29046 sed "s/^/$as_me: WARNING: /" >&2
29047 ;;
29048esac
29049echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29050echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29051if test "${ac_cv_header_GL_gl_h+set}" = set; then
29052 echo $ECHO_N "(cached) $ECHO_C" >&6
29053else
29054 ac_cv_header_GL_gl_h=$ac_header_preproc
29055fi
29056echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29057echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29058
29059fi
29060if test $ac_cv_header_GL_gl_h = yes; then
29061
29062 found_gl=0
29063
29064 echo "$as_me:$LINENO: checking for -lGL" >&5
29065echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29066
29067ac_find_libraries=
29068for ac_dir in $SEARCH_LIB /usr/lib;
29069 do
29070 for ac_extension in a so sl dylib; do
29071 if test -f "$ac_dir/libGL.$ac_extension"; then
29072 ac_find_libraries=$ac_dir
29073 break 2
29074 fi
29075 done
29076 done
29077
29078 if test "$ac_find_libraries" != "" ; then
29079
29080 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29081 result=$?
29082 if test $result = 0; then
29083 ac_path_to_link=""
29084 else
29085 ac_path_to_link=" -L$ac_find_libraries"
29086 fi
29087
29088 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29089 LDFLAGS_GL="$ac_path_to_link"
29090 fi
29091
29092
29093ac_find_libraries=
29094for ac_dir in $SEARCH_LIB /usr/lib;
29095 do
29096 for ac_extension in a so sl dylib; do
29097 if test -f "$ac_dir/libGLU.$ac_extension"; then
29098 ac_find_libraries=$ac_dir
29099 break 2
29100 fi
29101 done
29102 done
29103
29104 if test "$ac_find_libraries" != "" ; then
29105
29106 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29107 result=$?
29108 if test $result = 0; then
29109 ac_path_to_link=""
29110 else
29111 ac_path_to_link=" -L$ac_find_libraries"
29112 fi
29113
29114 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29115 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29116 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29117 fi
29118
29119 found_gl=1
29120 OPENGL_LIBS="-lGL -lGLU"
29121 echo "$as_me:$LINENO: result: yes" >&5
29122echo "${ECHO_T}yes" >&6
29123 fi
29124 fi
29125
29126 if test "$found_gl" != 1; then
29127 echo "$as_me:$LINENO: result: no" >&5
29128echo "${ECHO_T}no" >&6
29129 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29130echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29131
29132ac_find_libraries=
29133for ac_dir in $SEARCH_LIB /usr/lib;
29134 do
29135 for ac_extension in a so sl dylib; do
29136 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29137 ac_find_libraries=$ac_dir
29138 break 2
29139 fi
29140 done
29141 done
29142
29143 if test "$ac_find_libraries" != "" ; then
29144
29145 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29146 result=$?
29147 if test $result = 0; then
29148 ac_path_to_link=""
29149 else
29150 ac_path_to_link=" -L$ac_find_libraries"
29151 fi
29152
29153 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29154 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29155 echo "$as_me:$LINENO: result: yes" >&5
29156echo "${ECHO_T}yes" >&6
29157 else
29158 echo "$as_me:$LINENO: result: no" >&5
29159echo "${ECHO_T}no" >&6
29160 fi
29161 fi
29162
29163fi
29164
29165
29166
29167 if test "x$OPENGL_LIBS" = "x"; then
29168 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29169echo "$as_me: error: OpenGL libraries not available" >&2;}
29170 { (exit 1); exit 1; }; }
29171 fi
29172 fi
29173
29174 if test "$wxUSE_OPENGL" = "yes"; then
29175 USE_OPENGL=1
29176 cat >>confdefs.h <<\_ACEOF
29177#define wxUSE_OPENGL 1
29178_ACEOF
29179
29180 cat >>confdefs.h <<\_ACEOF
29181#define wxUSE_GLCANVAS 1
29182_ACEOF
29183
29184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29185 fi
29186fi
29187
a848cd7e
SC
29188
29189if test -n "$TOOLKIT" ; then
29190 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29191fi
29192
a848cd7e
SC
29193
29194
29195if test "$wxUSE_SHARED" = "yes"; then
29196 case "${host}" in
29197 *-pc-msdosdjgpp )
29198 wxUSE_SHARED=no
29199 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29200echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29201 ;;
29202 esac
29203fi
29204
a848cd7e 29205if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29206
29207
29208 found_versioning=no
29209
29210
29211 if test $found_versioning = no ; then
29212 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29213echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29214if test "${wx_cv_version_script+set}" = set; then
29215 echo $ECHO_N "(cached) $ECHO_C" >&6
29216else
29217
29218 echo "VER_1 { *; };" >conftest.sym
29219 echo "int main() { return 0; }" >conftest.cpp
29220
29221 if { ac_try='
29222 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29223 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225 (eval $ac_try) 2>&5
29226 ac_status=$?
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; } ; then
29229 if test -s conftest.stderr ; then
29230 wx_cv_version_script=no
29231 else
29232 wx_cv_version_script=yes
29233 fi
29234 else
29235 wx_cv_version_script=no
29236 fi
29237 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29238
29239fi
29240echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29241echo "${ECHO_T}$wx_cv_version_script" >&6
29242 if test $wx_cv_version_script = yes ; then
29243 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29244 fi
29245 fi
29246
29247
29248 case "${host}" in
29249 *-*-linux* | *-*-gnu* )
29250 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29251 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29252 ;;
29253
29254 *-*-solaris2* )
29255 if test "$GCC" = yes ; then
29256 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29257
29258 saveLdflags="$LDFLAGS"
29259 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29260 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29261echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29262 cat >conftest.$ac_ext <<_ACEOF
29263/* confdefs.h. */
29264_ACEOF
29265cat confdefs.h >>conftest.$ac_ext
29266cat >>conftest.$ac_ext <<_ACEOF
29267/* end confdefs.h. */
29268
29269int
29270main ()
29271{
29272
29273 ;
29274 return 0;
29275}
29276_ACEOF
29277rm -f conftest.$ac_objext conftest$ac_exeext
29278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29279 (eval $ac_link) 2>conftest.er1
a848cd7e 29280 ac_status=$?
ac1cb8d3
VS
29281 grep -v '^ *+' conftest.er1 >conftest.err
29282 rm -f conftest.er1
29283 cat conftest.err >&5
a848cd7e
SC
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } &&
89be85c2
VS
29286 { ac_try='test -z "$ac_c_werror_flag"
29287 || test ! -s conftest.err'
ac1cb8d3
VS
29288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29289 (eval $ac_try) 2>&5
29290 ac_status=$?
29291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 (exit $ac_status); }; } &&
29293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29295 (eval $ac_try) 2>&5
29296 ac_status=$?
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); }; }; then
29299
29300 echo "$as_me:$LINENO: result: yes" >&5
29301echo "${ECHO_T}yes" >&6
29302 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29303 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29304
29305else
29306 echo "$as_me: failed program was:" >&5
29307sed 's/^/| /' conftest.$ac_ext >&5
29308
29309
29310 echo "$as_me:$LINENO: result: no" >&5
29311echo "${ECHO_T}no" >&6
29312 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29313echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29314 LDFLAGS="$saveLdflags -Wl,-R,/"
29315 cat >conftest.$ac_ext <<_ACEOF
29316/* confdefs.h. */
29317_ACEOF
29318cat confdefs.h >>conftest.$ac_ext
29319cat >>conftest.$ac_ext <<_ACEOF
29320/* end confdefs.h. */
29321
29322int
29323main ()
29324{
29325
29326 ;
29327 return 0;
29328}
29329_ACEOF
29330rm -f conftest.$ac_objext conftest$ac_exeext
29331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29332 (eval $ac_link) 2>conftest.er1
a848cd7e 29333 ac_status=$?
ac1cb8d3
VS
29334 grep -v '^ *+' conftest.er1 >conftest.err
29335 rm -f conftest.er1
29336 cat conftest.err >&5
a848cd7e
SC
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); } &&
89be85c2
VS
29339 { ac_try='test -z "$ac_c_werror_flag"
29340 || test ! -s conftest.err'
ac1cb8d3
VS
29341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29342 (eval $ac_try) 2>&5
29343 ac_status=$?
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; } &&
29346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29348 (eval $ac_try) 2>&5
29349 ac_status=$?
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; }; then
29352
ffa0583f 29353 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29354echo "${ECHO_T}yes" >&6
ffa0583f
RL
29355 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29356 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29357
a848cd7e
SC
29358else
29359 echo "$as_me: failed program was:" >&5
29360sed 's/^/| /' conftest.$ac_ext >&5
29361
29362
29363 echo "$as_me:$LINENO: result: no" >&5
29364echo "${ECHO_T}no" >&6
29365
29366fi
ac1cb8d3
VS
29367rm -f conftest.err conftest.$ac_objext \
29368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29369
29370fi
ac1cb8d3
VS
29371rm -f conftest.err conftest.$ac_objext \
29372 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29373 LDFLAGS="$saveLdflags"
29374 else
a848cd7e 29375 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29376 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29377 fi
29378 ;;
29379
29380 powerpc-*-darwin* )
29381 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29382 cat <<EOF >change-install-names
29383#!/bin/sh
29384libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29385inst_cmd="install_name_tool "
29386for i in \${libnames} ; do
29387 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29388done
29389\${inst_cmd} \${3}
29390EOF
29391 chmod +x change-install-names
29392 ;;
29393
29394 *-*-cygwin* | *-*-mingw32* )
29395 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29396 ;;
29397
81f90336
MW
29398 *-*-hpux* )
29399 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29400 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29401 ;;
29402
a848cd7e 29403 esac
ceec2216 29404
ffa0583f
RL
29405 if test $wxUSE_RPATH = "no"; then
29406 SAMPLES_RPATH_FLAG=''
29407 SAMPLES_RPATH_POSTLINK=''
29408 WXCONFIG_RPATH=''
29409 fi
29410
29411 SHARED=1
29412
29413else
29414
ceec2216
RL
29415 config_linkage_component="-static"
29416 SHARED=0
ffa0583f 29417
ceec2216 29418fi
a848cd7e 29419
a848cd7e 29420
ceec2216
RL
29421UNICODE=0
29422lib_unicode_suffix=
29423WX_CHARTYPE="ansi"
29424if test "$wxUSE_UNICODE" = "yes"; then
29425 lib_unicode_suffix=u
29426 WX_CHARTYPE="unicode"
29427 UNICODE=1
a848cd7e
SC
29428fi
29429
ceec2216
RL
29430lib_debug_suffix=
29431WX_DEBUGTYPE="release"
29432DEBUG_FLAG=0
29433if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29434 lib_debug_suffix=d
29435 WX_DEBUGTYPE="debug"
29436 DEBUG_FLAG=1
29437fi
a848cd7e 29438
ceec2216
RL
29439WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29440WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29441
ceec2216
RL
29442DEBUG_INFO=0
29443if test "$wxUSE_DEBUG_INFO" = "yes"; then
29444 DEBUG_INFO=1
29445fi
a848cd7e 29446
ceec2216 29447WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29448
ceec2216 29449TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29450
ceec2216 29451TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29452
ceec2216
RL
29453if test "$cross_compiling" = "yes"; then
29454 HOST_SUFFIX="-$host_alias"
29455 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29456 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29457fi
29458
dd21ced8 29459WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29460WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29461
29462
29463
a848cd7e 29464if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29465 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29466 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29467
a848cd7e 29468 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29469
29470 # Extract the first word of "Rez", so it can be a program name with args.
29471set dummy Rez; ac_word=$2
29472echo "$as_me:$LINENO: checking for $ac_word" >&5
29473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29474if test "${ac_cv_prog_RESCOMP+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29476else
29477 if test -n "$RESCOMP"; then
29478 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29479else
29480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29481for as_dir in $PATH
29482do
29483 IFS=$as_save_IFS
29484 test -z "$as_dir" && as_dir=.
29485 for ac_exec_ext in '' $ac_executable_extensions; do
29486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29487 ac_cv_prog_RESCOMP="Rez"
29488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29489 break 2
29490 fi
29491done
29492done
29493
29494 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29495fi
29496fi
29497RESCOMP=$ac_cv_prog_RESCOMP
29498if test -n "$RESCOMP"; then
29499 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29500echo "${ECHO_T}$RESCOMP" >&6
29501else
29502 echo "$as_me:$LINENO: result: no" >&5
29503echo "${ECHO_T}no" >&6
29504fi
29505
29506 # Extract the first word of "DeRez", so it can be a program name with args.
29507set dummy DeRez; ac_word=$2
29508echo "$as_me:$LINENO: checking for $ac_word" >&5
29509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29510if test "${ac_cv_prog_DEREZ+set}" = set; then
29511 echo $ECHO_N "(cached) $ECHO_C" >&6
29512else
29513 if test -n "$DEREZ"; then
29514 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29515else
29516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29517for as_dir in $PATH
29518do
29519 IFS=$as_save_IFS
29520 test -z "$as_dir" && as_dir=.
29521 for ac_exec_ext in '' $ac_executable_extensions; do
29522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29523 ac_cv_prog_DEREZ="DeRez"
29524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29525 break 2
29526 fi
29527done
29528done
29529
29530 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29531fi
29532fi
29533DEREZ=$ac_cv_prog_DEREZ
29534if test -n "$DEREZ"; then
29535 echo "$as_me:$LINENO: result: $DEREZ" >&5
29536echo "${ECHO_T}$DEREZ" >&6
29537else
29538 echo "$as_me:$LINENO: result: no" >&5
29539echo "${ECHO_T}no" >&6
29540fi
29541
29542 # Extract the first word of "SetFile", so it can be a program name with args.
29543set dummy SetFile; ac_word=$2
29544echo "$as_me:$LINENO: checking for $ac_word" >&5
29545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29546if test "${ac_cv_prog_SETFILE+set}" = set; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29548else
29549 if test -n "$SETFILE"; then
29550 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29551else
29552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29553for as_dir in $PATH
29554do
29555 IFS=$as_save_IFS
29556 test -z "$as_dir" && as_dir=.
29557 for ac_exec_ext in '' $ac_executable_extensions; do
29558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29559 ac_cv_prog_SETFILE="SetFile"
29560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29561 break 2
29562 fi
29563done
29564done
29565
29566 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29567fi
29568fi
29569SETFILE=$ac_cv_prog_SETFILE
29570if test -n "$SETFILE"; then
29571 echo "$as_me:$LINENO: result: $SETFILE" >&5
29572echo "${ECHO_T}$SETFILE" >&6
29573else
29574 echo "$as_me:$LINENO: result: no" >&5
29575echo "${ECHO_T}no" >&6
29576fi
29577
29578
29579 MACSETFILE="\$(SETFILE)"
29580
29581 if test "$wxUSE_MAC" = 1; then
29582 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29583
29584 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29585 else
29586 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29587 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29588 fi
29589else
ffa0583f
RL
29590 MACSETFILE="@true"
29591 MACRESWXCONFIG="@true"
a848cd7e
SC
29592
29593 if test "$wxUSE_PM" = 1; then
29594 MACRESCOMP="emxbind -ep"
29595 else
ffa0583f 29596 MACRESCOMP="@true"
a848cd7e
SC
29597 fi
29598fi
29599
29600
29601
29602echo "$as_me:$LINENO: checking for mode_t" >&5
29603echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29604if test "${ac_cv_type_mode_t+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. */
29613$ac_includes_default
29614int
29615main ()
29616{
29617if ((mode_t *) 0)
29618 return 0;
29619if (sizeof (mode_t))
29620 return 0;
29621 ;
29622 return 0;
29623}
29624_ACEOF
29625rm -f conftest.$ac_objext
29626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29627 (eval $ac_compile) 2>conftest.er1
a848cd7e 29628 ac_status=$?
ac1cb8d3
VS
29629 grep -v '^ *+' conftest.er1 >conftest.err
29630 rm -f conftest.er1
29631 cat conftest.err >&5
a848cd7e
SC
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
89be85c2
VS
29634 { ac_try='test -z "$ac_c_werror_flag"
29635 || test ! -s conftest.err'
ac1cb8d3
VS
29636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29637 (eval $ac_try) 2>&5
29638 ac_status=$?
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); }; } &&
29641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29643 (eval $ac_try) 2>&5
29644 ac_status=$?
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; }; then
29647 ac_cv_type_mode_t=yes
29648else
29649 echo "$as_me: failed program was:" >&5
29650sed 's/^/| /' conftest.$ac_ext >&5
29651
29652ac_cv_type_mode_t=no
29653fi
ac1cb8d3 29654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29655fi
29656echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29657echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29658if test $ac_cv_type_mode_t = yes; then
29659 :
29660else
29661
29662cat >>confdefs.h <<_ACEOF
29663#define mode_t int
29664_ACEOF
29665
29666fi
29667
29668echo "$as_me:$LINENO: checking for off_t" >&5
29669echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29670if test "${ac_cv_type_off_t+set}" = set; then
29671 echo $ECHO_N "(cached) $ECHO_C" >&6
29672else
29673 cat >conftest.$ac_ext <<_ACEOF
29674/* confdefs.h. */
29675_ACEOF
29676cat confdefs.h >>conftest.$ac_ext
29677cat >>conftest.$ac_ext <<_ACEOF
29678/* end confdefs.h. */
29679$ac_includes_default
29680int
29681main ()
29682{
29683if ((off_t *) 0)
29684 return 0;
29685if (sizeof (off_t))
29686 return 0;
29687 ;
29688 return 0;
29689}
29690_ACEOF
29691rm -f conftest.$ac_objext
29692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29693 (eval $ac_compile) 2>conftest.er1
a848cd7e 29694 ac_status=$?
ac1cb8d3
VS
29695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
a848cd7e
SC
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } &&
89be85c2
VS
29700 { ac_try='test -z "$ac_c_werror_flag"
29701 || test ! -s conftest.err'
ac1cb8d3
VS
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; } &&
29707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709 (eval $ac_try) 2>&5
29710 ac_status=$?
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; }; then
29713 ac_cv_type_off_t=yes
29714else
29715 echo "$as_me: failed program was:" >&5
29716sed 's/^/| /' conftest.$ac_ext >&5
29717
29718ac_cv_type_off_t=no
29719fi
ac1cb8d3 29720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29721fi
29722echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29723echo "${ECHO_T}$ac_cv_type_off_t" >&6
29724if test $ac_cv_type_off_t = yes; then
29725 :
29726else
29727
29728cat >>confdefs.h <<_ACEOF
29729#define off_t long
29730_ACEOF
29731
29732fi
29733
29734echo "$as_me:$LINENO: checking for pid_t" >&5
29735echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29736if test "${ac_cv_type_pid_t+set}" = set; then
29737 echo $ECHO_N "(cached) $ECHO_C" >&6
29738else
29739 cat >conftest.$ac_ext <<_ACEOF
29740/* confdefs.h. */
29741_ACEOF
29742cat confdefs.h >>conftest.$ac_ext
29743cat >>conftest.$ac_ext <<_ACEOF
29744/* end confdefs.h. */
29745$ac_includes_default
29746int
29747main ()
29748{
29749if ((pid_t *) 0)
29750 return 0;
29751if (sizeof (pid_t))
29752 return 0;
29753 ;
29754 return 0;
29755}
29756_ACEOF
29757rm -f conftest.$ac_objext
29758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29759 (eval $ac_compile) 2>conftest.er1
a848cd7e 29760 ac_status=$?
ac1cb8d3
VS
29761 grep -v '^ *+' conftest.er1 >conftest.err
29762 rm -f conftest.er1
29763 cat conftest.err >&5
a848cd7e
SC
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); } &&
89be85c2
VS
29766 { ac_try='test -z "$ac_c_werror_flag"
29767 || test ! -s conftest.err'
ac1cb8d3
VS
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29770 ac_status=$?
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; } &&
29773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775 (eval $ac_try) 2>&5
29776 ac_status=$?
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; }; then
29779 ac_cv_type_pid_t=yes
29780else
29781 echo "$as_me: failed program was:" >&5
29782sed 's/^/| /' conftest.$ac_ext >&5
29783
29784ac_cv_type_pid_t=no
29785fi
ac1cb8d3 29786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29787fi
29788echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29789echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29790if test $ac_cv_type_pid_t = yes; then
29791 :
29792else
29793
29794cat >>confdefs.h <<_ACEOF
29795#define pid_t int
29796_ACEOF
29797
29798fi
29799
29800echo "$as_me:$LINENO: checking for size_t" >&5
29801echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29802if test "${ac_cv_type_size_t+set}" = set; then
29803 echo $ECHO_N "(cached) $ECHO_C" >&6
29804else
29805 cat >conftest.$ac_ext <<_ACEOF
29806/* confdefs.h. */
29807_ACEOF
29808cat confdefs.h >>conftest.$ac_ext
29809cat >>conftest.$ac_ext <<_ACEOF
29810/* end confdefs.h. */
29811$ac_includes_default
29812int
29813main ()
29814{
29815if ((size_t *) 0)
29816 return 0;
29817if (sizeof (size_t))
29818 return 0;
29819 ;
29820 return 0;
29821}
29822_ACEOF
29823rm -f conftest.$ac_objext
29824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29825 (eval $ac_compile) 2>conftest.er1
a848cd7e 29826 ac_status=$?
ac1cb8d3
VS
29827 grep -v '^ *+' conftest.er1 >conftest.err
29828 rm -f conftest.er1
29829 cat conftest.err >&5
a848cd7e
SC
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } &&
89be85c2
VS
29832 { ac_try='test -z "$ac_c_werror_flag"
29833 || test ! -s conftest.err'
ac1cb8d3
VS
29834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29835 (eval $ac_try) 2>&5
29836 ac_status=$?
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); }; } &&
29839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29842 ac_status=$?
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; }; then
29845 ac_cv_type_size_t=yes
29846else
29847 echo "$as_me: failed program was:" >&5
29848sed 's/^/| /' conftest.$ac_ext >&5
29849
29850ac_cv_type_size_t=no
29851fi
ac1cb8d3 29852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29853fi
29854echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29855echo "${ECHO_T}$ac_cv_type_size_t" >&6
29856if test $ac_cv_type_size_t = yes; then
29857 :
29858else
29859
29860cat >>confdefs.h <<_ACEOF
29861#define size_t unsigned
29862_ACEOF
29863
29864fi
29865
29866echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29867echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29868if test "${ac_cv_type_uid_t+set}" = set; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29870else
29871 cat >conftest.$ac_ext <<_ACEOF
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
29877#include <sys/types.h>
29878
29879_ACEOF
29880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29881 $EGREP "uid_t" >/dev/null 2>&1; then
29882 ac_cv_type_uid_t=yes
29883else
29884 ac_cv_type_uid_t=no
29885fi
29886rm -f conftest*
29887
29888fi
29889echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29890echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29891if test $ac_cv_type_uid_t = no; then
29892
29893cat >>confdefs.h <<\_ACEOF
29894#define uid_t int
29895_ACEOF
29896
29897
29898cat >>confdefs.h <<\_ACEOF
29899#define gid_t int
29900_ACEOF
29901
29902fi
29903
29904
d51253e8
RL
29905echo "$as_me:$LINENO: checking for ssize_t" >&5
29906echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29907if test "${ac_cv_type_ssize_t+set}" = set; then
29908 echo $ECHO_N "(cached) $ECHO_C" >&6
29909else
29910 cat >conftest.$ac_ext <<_ACEOF
29911/* confdefs.h. */
29912_ACEOF
29913cat confdefs.h >>conftest.$ac_ext
29914cat >>conftest.$ac_ext <<_ACEOF
29915/* end confdefs.h. */
29916$ac_includes_default
29917int
29918main ()
29919{
29920if ((ssize_t *) 0)
29921 return 0;
29922if (sizeof (ssize_t))
29923 return 0;
29924 ;
29925 return 0;
29926}
29927_ACEOF
29928rm -f conftest.$ac_objext
29929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29930 (eval $ac_compile) 2>conftest.er1
29931 ac_status=$?
29932 grep -v '^ *+' conftest.er1 >conftest.err
29933 rm -f conftest.er1
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
89be85c2
VS
29937 { ac_try='test -z "$ac_c_werror_flag"
29938 || test ! -s conftest.err'
d51253e8
RL
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; } &&
29944 { ac_try='test -s conftest.$ac_objext'
29945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946 (eval $ac_try) 2>&5
29947 ac_status=$?
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
29950 ac_cv_type_ssize_t=yes
29951else
29952 echo "$as_me: failed program was:" >&5
29953sed 's/^/| /' conftest.$ac_ext >&5
29954
29955ac_cv_type_ssize_t=no
29956fi
29957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29958fi
29959echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29960echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29961if test $ac_cv_type_ssize_t = yes; then
29962
29963cat >>confdefs.h <<_ACEOF
29964#define HAVE_SSIZE_T 1
29965_ACEOF
29966
29967
29968fi
29969
29970
a848cd7e
SC
29971
29972
29973ac_ext=cc
29974ac_cpp='$CXXCPP $CPPFLAGS'
29975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29978
29979echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29980echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29981if test "${wx_cv_size_t_is_uint+set}" = set; then
29982 echo $ECHO_N "(cached) $ECHO_C" >&6
29983else
29984
29985 cat >conftest.$ac_ext <<_ACEOF
29986/* confdefs.h. */
29987_ACEOF
29988cat confdefs.h >>conftest.$ac_ext
29989cat >>conftest.$ac_ext <<_ACEOF
29990/* end confdefs.h. */
29991#include <stddef.h>
29992int
29993main ()
29994{
29995
29996 return 0; }
29997
29998 struct Foo { void foo(size_t); void foo(unsigned int); };
29999
30000 int bar() {
30001
30002 ;
30003 return 0;
30004}
30005_ACEOF
30006rm -f conftest.$ac_objext
30007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30008 (eval $ac_compile) 2>conftest.er1
a848cd7e 30009 ac_status=$?
ac1cb8d3
VS
30010 grep -v '^ *+' conftest.er1 >conftest.err
30011 rm -f conftest.er1
30012 cat conftest.err >&5
a848cd7e
SC
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } &&
89be85c2
VS
30015 { ac_try='test -z "$ac_cxx_werror_flag"
30016 || test ! -s conftest.err'
ac1cb8d3
VS
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30019 ac_status=$?
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; } &&
30022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
30028 wx_cv_size_t_is_uint=no
30029else
30030 echo "$as_me: failed program was:" >&5
30031sed 's/^/| /' conftest.$ac_ext >&5
30032
30033wx_cv_size_t_is_uint=yes
30034
30035fi
ac1cb8d3 30036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30037
30038
30039fi
30040echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30041echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30042
30043if test "$wx_cv_size_t_is_uint" = "yes"; then
30044 cat >>confdefs.h <<\_ACEOF
30045#define wxSIZE_T_IS_UINT 1
30046_ACEOF
30047
30048else
30049 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30050echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30051if test "${wx_cv_size_t_is_ulong+set}" = set; then
30052 echo $ECHO_N "(cached) $ECHO_C" >&6
30053else
30054 cat >conftest.$ac_ext <<_ACEOF
30055/* confdefs.h. */
30056_ACEOF
30057cat confdefs.h >>conftest.$ac_ext
30058cat >>conftest.$ac_ext <<_ACEOF
30059/* end confdefs.h. */
30060#include <stddef.h>
30061int
30062main ()
30063{
30064
30065 return 0; }
30066
30067 struct Foo { void foo(size_t); void foo(unsigned long); };
30068
30069 int bar() {
30070
30071 ;
30072 return 0;
30073}
30074_ACEOF
30075rm -f conftest.$ac_objext
30076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30077 (eval $ac_compile) 2>conftest.er1
a848cd7e 30078 ac_status=$?
ac1cb8d3
VS
30079 grep -v '^ *+' conftest.er1 >conftest.err
30080 rm -f conftest.er1
30081 cat conftest.err >&5
a848cd7e
SC
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } &&
89be85c2
VS
30084 { ac_try='test -z "$ac_cxx_werror_flag"
30085 || test ! -s conftest.err'
ac1cb8d3
VS
30086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30087 (eval $ac_try) 2>&5
30088 ac_status=$?
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; } &&
30091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30094 ac_status=$?
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; }; then
30097 wx_cv_size_t_is_ulong=no
30098else
30099 echo "$as_me: failed program was:" >&5
30100sed 's/^/| /' conftest.$ac_ext >&5
30101
30102wx_cv_size_t_is_ulong=yes
30103
30104fi
ac1cb8d3 30105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30106
30107fi
30108echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30109echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30110
30111 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30112 cat >>confdefs.h <<\_ACEOF
30113#define wxSIZE_T_IS_ULONG 1
30114_ACEOF
30115
30116 fi
30117fi
30118
30119ac_ext=c
30120ac_cpp='$CPP $CPPFLAGS'
30121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30123ac_compiler_gnu=$ac_cv_c_compiler_gnu
30124
30125
30126
30127echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30128echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30129if test "${wx_cv_struct_pw_gecos+set}" = set; then
30130 echo $ECHO_N "(cached) $ECHO_C" >&6
30131else
30132
30133 cat >conftest.$ac_ext <<_ACEOF
30134/* confdefs.h. */
30135_ACEOF
30136cat confdefs.h >>conftest.$ac_ext
30137cat >>conftest.$ac_ext <<_ACEOF
30138/* end confdefs.h. */
30139#include <pwd.h>
30140int
30141main ()
30142{
30143
30144 char *p;
30145 struct passwd *pw;
30146 p = pw->pw_gecos;
30147
30148 ;
30149 return 0;
30150}
30151_ACEOF
30152rm -f conftest.$ac_objext
30153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30154 (eval $ac_compile) 2>conftest.er1
a848cd7e 30155 ac_status=$?
ac1cb8d3
VS
30156 grep -v '^ *+' conftest.er1 >conftest.err
30157 rm -f conftest.er1
30158 cat conftest.err >&5
a848cd7e
SC
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); } &&
89be85c2
VS
30161 { ac_try='test -z "$ac_c_werror_flag"
30162 || test ! -s conftest.err'
ac1cb8d3
VS
30163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30164 (eval $ac_try) 2>&5
30165 ac_status=$?
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); }; } &&
30168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30170 (eval $ac_try) 2>&5
30171 ac_status=$?
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); }; }; then
30174
30175 wx_cv_struct_pw_gecos=yes
30176
30177else
30178 echo "$as_me: failed program was:" >&5
30179sed 's/^/| /' conftest.$ac_ext >&5
30180
30181
30182 wx_cv_struct_pw_gecos=no
30183
30184
30185fi
ac1cb8d3 30186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30187
30188
30189fi
30190echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30191echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30192
30193if test "$wx_cv_struct_pw_gecos" = "yes"; then
30194 cat >>confdefs.h <<\_ACEOF
30195#define HAVE_PW_GECOS 1
30196_ACEOF
30197
30198fi
30199
30200
238ecede 30201if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30202 cat >>confdefs.h <<\_ACEOF
30203#define wxUSE_WCHAR_T 1
30204_ACEOF
30205
30206
30207 WCSLEN_FOUND=0
30208 WCHAR_LINK=
30209
30210for ac_func in wcslen
30211do
30212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30213echo "$as_me:$LINENO: checking for $ac_func" >&5
30214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30215if eval "test \"\${$as_ac_var+set}\" = set"; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30217else
30218 cat >conftest.$ac_ext <<_ACEOF
30219/* confdefs.h. */
30220_ACEOF
30221cat confdefs.h >>conftest.$ac_ext
30222cat >>conftest.$ac_ext <<_ACEOF
30223/* end confdefs.h. */
ac1cb8d3
VS
30224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30226#define $ac_func innocuous_$ac_func
30227
a848cd7e
SC
30228/* System header to define __stub macros and hopefully few prototypes,
30229 which can conflict with char $ac_func (); below.
30230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30231 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30232
a848cd7e
SC
30233#ifdef __STDC__
30234# include <limits.h>
30235#else
30236# include <assert.h>
30237#endif
ac1cb8d3
VS
30238
30239#undef $ac_func
30240
a848cd7e
SC
30241/* Override any gcc2 internal prototype to avoid an error. */
30242#ifdef __cplusplus
30243extern "C"
30244{
30245#endif
30246/* We use char because int might match the return type of a gcc2
30247 builtin and then its argument prototype would still apply. */
30248char $ac_func ();
30249/* The GNU C library defines this for functions which it implements
30250 to always fail with ENOSYS. Some functions are actually named
30251 something starting with __ and the normal name is an alias. */
30252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30253choke me
30254#else
30255char (*f) () = $ac_func;
30256#endif
30257#ifdef __cplusplus
30258}
30259#endif
30260
30261int
30262main ()
30263{
30264return f != $ac_func;
30265 ;
30266 return 0;
30267}
30268_ACEOF
30269rm -f conftest.$ac_objext conftest$ac_exeext
30270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30271 (eval $ac_link) 2>conftest.er1
a848cd7e 30272 ac_status=$?
ac1cb8d3
VS
30273 grep -v '^ *+' conftest.er1 >conftest.err
30274 rm -f conftest.er1
30275 cat conftest.err >&5
a848cd7e
SC
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); } &&
89be85c2
VS
30278 { ac_try='test -z "$ac_c_werror_flag"
30279 || test ! -s conftest.err'
ac1cb8d3
VS
30280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; } &&
30285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287 (eval $ac_try) 2>&5
30288 ac_status=$?
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; }; then
30291 eval "$as_ac_var=yes"
30292else
30293 echo "$as_me: failed program was:" >&5
30294sed 's/^/| /' conftest.$ac_ext >&5
30295
30296eval "$as_ac_var=no"
30297fi
ac1cb8d3
VS
30298rm -f conftest.err conftest.$ac_objext \
30299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30300fi
30301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30303if test `eval echo '${'$as_ac_var'}'` = yes; then
30304 cat >>confdefs.h <<_ACEOF
30305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30306_ACEOF
30307 WCSLEN_FOUND=1
30308fi
30309done
30310
30311
30312 if test "$WCSLEN_FOUND" = 0; then
30313 if test "$TOOLKIT" = "MSW"; then
30314 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30315echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30316if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30317 echo $ECHO_N "(cached) $ECHO_C" >&6
30318else
30319 ac_check_lib_save_LIBS=$LIBS
30320LIBS="-lmsvcrt $LIBS"
30321cat >conftest.$ac_ext <<_ACEOF
30322/* confdefs.h. */
30323_ACEOF
30324cat confdefs.h >>conftest.$ac_ext
30325cat >>conftest.$ac_ext <<_ACEOF
30326/* end confdefs.h. */
30327
30328/* Override any gcc2 internal prototype to avoid an error. */
30329#ifdef __cplusplus
30330extern "C"
30331#endif
30332/* We use char because int might match the return type of a gcc2
30333 builtin and then its argument prototype would still apply. */
30334char wcslen ();
30335int
30336main ()
30337{
30338wcslen ();
30339 ;
30340 return 0;
30341}
30342_ACEOF
30343rm -f conftest.$ac_objext conftest$ac_exeext
30344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30345 (eval $ac_link) 2>conftest.er1
a848cd7e 30346 ac_status=$?
ac1cb8d3
VS
30347 grep -v '^ *+' conftest.er1 >conftest.err
30348 rm -f conftest.er1
30349 cat conftest.err >&5
a848cd7e
SC
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
89be85c2
VS
30352 { ac_try='test -z "$ac_c_werror_flag"
30353 || test ! -s conftest.err'
ac1cb8d3
VS
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; } &&
30359 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; }; then
30365 ac_cv_lib_msvcrt_wcslen=yes
30366else
30367 echo "$as_me: failed program was:" >&5
30368sed 's/^/| /' conftest.$ac_ext >&5
30369
30370ac_cv_lib_msvcrt_wcslen=no
30371fi
ac1cb8d3
VS
30372rm -f conftest.err conftest.$ac_objext \
30373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30374LIBS=$ac_check_lib_save_LIBS
30375fi
30376echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30377echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30378if test $ac_cv_lib_msvcrt_wcslen = yes; then
30379 WCHAR_OK=1
30380fi
30381
30382 else
30383 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30384echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30385if test "${ac_cv_lib_w_wcslen+set}" = set; then
30386 echo $ECHO_N "(cached) $ECHO_C" >&6
30387else
30388 ac_check_lib_save_LIBS=$LIBS
30389LIBS="-lw $LIBS"
30390cat >conftest.$ac_ext <<_ACEOF
30391/* confdefs.h. */
30392_ACEOF
30393cat confdefs.h >>conftest.$ac_ext
30394cat >>conftest.$ac_ext <<_ACEOF
30395/* end confdefs.h. */
30396
30397/* Override any gcc2 internal prototype to avoid an error. */
30398#ifdef __cplusplus
30399extern "C"
30400#endif
30401/* We use char because int might match the return type of a gcc2
30402 builtin and then its argument prototype would still apply. */
30403char wcslen ();
30404int
30405main ()
30406{
30407wcslen ();
30408 ;
30409 return 0;
30410}
30411_ACEOF
30412rm -f conftest.$ac_objext conftest$ac_exeext
30413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30414 (eval $ac_link) 2>conftest.er1
a848cd7e 30415 ac_status=$?
ac1cb8d3
VS
30416 grep -v '^ *+' conftest.er1 >conftest.err
30417 rm -f conftest.er1
30418 cat conftest.err >&5
a848cd7e
SC
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } &&
89be85c2
VS
30421 { ac_try='test -z "$ac_c_werror_flag"
30422 || test ! -s conftest.err'
ac1cb8d3
VS
30423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30424 (eval $ac_try) 2>&5
30425 ac_status=$?
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); }; } &&
30428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30434 ac_cv_lib_w_wcslen=yes
30435else
30436 echo "$as_me: failed program was:" >&5
30437sed 's/^/| /' conftest.$ac_ext >&5
30438
30439ac_cv_lib_w_wcslen=no
30440fi
ac1cb8d3
VS
30441rm -f conftest.err conftest.$ac_objext \
30442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30443LIBS=$ac_check_lib_save_LIBS
30444fi
30445echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30446echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30447if test $ac_cv_lib_w_wcslen = yes; then
30448
30449 WCHAR_LINK=" -lw"
30450 WCSLEN_FOUND=1
30451
30452fi
30453
30454 fi
30455 fi
30456
30457 if test "$WCSLEN_FOUND" = 1; then
30458 cat >>confdefs.h <<\_ACEOF
30459#define HAVE_WCSLEN 1
30460_ACEOF
30461
30462 fi
30463
81f90336 30464 if test "$USE_HPUX" = 1; then
473276a9
VS
30465 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30466 fi
30467
a848cd7e
SC
30468
30469for ac_func in wcsrtombs
30470do
30471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30472echo "$as_me:$LINENO: checking for $ac_func" >&5
30473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30474if eval "test \"\${$as_ac_var+set}\" = set"; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30476else
30477 cat >conftest.$ac_ext <<_ACEOF
30478/* confdefs.h. */
30479_ACEOF
30480cat confdefs.h >>conftest.$ac_ext
30481cat >>conftest.$ac_ext <<_ACEOF
30482/* end confdefs.h. */
ac1cb8d3
VS
30483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30485#define $ac_func innocuous_$ac_func
30486
a848cd7e
SC
30487/* System header to define __stub macros and hopefully few prototypes,
30488 which can conflict with char $ac_func (); below.
30489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30490 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30491
a848cd7e
SC
30492#ifdef __STDC__
30493# include <limits.h>
30494#else
30495# include <assert.h>
30496#endif
ac1cb8d3
VS
30497
30498#undef $ac_func
30499
a848cd7e
SC
30500/* Override any gcc2 internal prototype to avoid an error. */
30501#ifdef __cplusplus
30502extern "C"
30503{
30504#endif
30505/* We use char because int might match the return type of a gcc2
30506 builtin and then its argument prototype would still apply. */
30507char $ac_func ();
30508/* The GNU C library defines this for functions which it implements
30509 to always fail with ENOSYS. Some functions are actually named
30510 something starting with __ and the normal name is an alias. */
30511#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30512choke me
30513#else
30514char (*f) () = $ac_func;
30515#endif
30516#ifdef __cplusplus
30517}
30518#endif
30519
30520int
30521main ()
30522{
30523return f != $ac_func;
30524 ;
30525 return 0;
30526}
30527_ACEOF
30528rm -f conftest.$ac_objext conftest$ac_exeext
30529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30530 (eval $ac_link) 2>conftest.er1
a848cd7e 30531 ac_status=$?
ac1cb8d3
VS
30532 grep -v '^ *+' conftest.er1 >conftest.err
30533 rm -f conftest.er1
30534 cat conftest.err >&5
a848cd7e
SC
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); } &&
89be85c2
VS
30537 { ac_try='test -z "$ac_c_werror_flag"
30538 || test ! -s conftest.err'
ac1cb8d3
VS
30539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30540 (eval $ac_try) 2>&5
30541 ac_status=$?
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; } &&
30544 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30546 (eval $ac_try) 2>&5
30547 ac_status=$?
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; }; then
30550 eval "$as_ac_var=yes"
30551else
30552 echo "$as_me: failed program was:" >&5
30553sed 's/^/| /' conftest.$ac_ext >&5
30554
30555eval "$as_ac_var=no"
30556fi
ac1cb8d3
VS
30557rm -f conftest.err conftest.$ac_objext \
30558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30559fi
30560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30562if test `eval echo '${'$as_ac_var'}'` = yes; then
30563 cat >>confdefs.h <<_ACEOF
30564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30565_ACEOF
30566
30567fi
30568done
30569
30570else
30571 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30572echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30573fi
30574
30575
30576
30577ac_ext=cc
30578ac_cpp='$CXXCPP $CPPFLAGS'
30579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30582
30583
30584
30585for ac_func in vsnprintf
30586do
30587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30588echo "$as_me:$LINENO: checking for $ac_func" >&5
30589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30590if eval "test \"\${$as_ac_var+set}\" = set"; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30592else
30593 cat >conftest.$ac_ext <<_ACEOF
30594/* confdefs.h. */
30595_ACEOF
30596cat confdefs.h >>conftest.$ac_ext
30597cat >>conftest.$ac_ext <<_ACEOF
30598/* end confdefs.h. */
ac1cb8d3
VS
30599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30601#define $ac_func innocuous_$ac_func
30602
a848cd7e
SC
30603/* System header to define __stub macros and hopefully few prototypes,
30604 which can conflict with char $ac_func (); below.
30605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30606 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30607
a848cd7e
SC
30608#ifdef __STDC__
30609# include <limits.h>
30610#else
30611# include <assert.h>
30612#endif
ac1cb8d3
VS
30613
30614#undef $ac_func
30615
a848cd7e
SC
30616/* Override any gcc2 internal prototype to avoid an error. */
30617#ifdef __cplusplus
30618extern "C"
30619{
30620#endif
30621/* We use char because int might match the return type of a gcc2
30622 builtin and then its argument prototype would still apply. */
30623char $ac_func ();
30624/* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30628choke me
30629#else
30630char (*f) () = $ac_func;
30631#endif
30632#ifdef __cplusplus
30633}
30634#endif
30635
30636int
30637main ()
30638{
30639return f != $ac_func;
30640 ;
30641 return 0;
30642}
30643_ACEOF
30644rm -f conftest.$ac_objext conftest$ac_exeext
30645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30646 (eval $ac_link) 2>conftest.er1
a848cd7e 30647 ac_status=$?
ac1cb8d3
VS
30648 grep -v '^ *+' conftest.er1 >conftest.err
30649 rm -f conftest.er1
30650 cat conftest.err >&5
a848cd7e
SC
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
89be85c2
VS
30653 { ac_try='test -z "$ac_cxx_werror_flag"
30654 || test ! -s conftest.err'
ac1cb8d3
VS
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662 (eval $ac_try) 2>&5
30663 ac_status=$?
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 eval "$as_ac_var=yes"
30667else
30668 echo "$as_me: failed program was:" >&5
30669sed 's/^/| /' conftest.$ac_ext >&5
30670
30671eval "$as_ac_var=no"
30672fi
ac1cb8d3
VS
30673rm -f conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30675fi
30676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30678if test `eval echo '${'$as_ac_var'}'` = yes; then
30679 cat >>confdefs.h <<_ACEOF
30680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30681_ACEOF
30682
30683fi
30684done
30685
30686
30687if test "$ac_cv_func_vsnprintf" = "yes"; then
30688 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30689echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30690if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30691 echo $ECHO_N "(cached) $ECHO_C" >&6
30692else
30693
30694 cat >conftest.$ac_ext <<_ACEOF
30695/* confdefs.h. */
30696_ACEOF
30697cat confdefs.h >>conftest.$ac_ext
30698cat >>conftest.$ac_ext <<_ACEOF
30699/* end confdefs.h. */
30700
30701 #include <stdio.h>
30702 #include <stdarg.h>
30703
30704int
30705main ()
30706{
30707
30708 char *buf;
30709 va_list ap;
30710 vsnprintf(buf, 10u, "%s", ap);
30711
30712 ;
30713 return 0;
30714}
30715_ACEOF
30716rm -f conftest.$ac_objext
30717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30718 (eval $ac_compile) 2>conftest.er1
a848cd7e 30719 ac_status=$?
ac1cb8d3
VS
30720 grep -v '^ *+' conftest.er1 >conftest.err
30721 rm -f conftest.er1
30722 cat conftest.err >&5
a848cd7e
SC
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); } &&
89be85c2
VS
30725 { ac_try='test -z "$ac_cxx_werror_flag"
30726 || test ! -s conftest.err'
ac1cb8d3
VS
30727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30728 (eval $ac_try) 2>&5
30729 ac_status=$?
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; } &&
30732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30734 (eval $ac_try) 2>&5
30735 ac_status=$?
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); }; }; then
30738 wx_cv_func_vsnprintf_decl=yes
30739else
30740 echo "$as_me: failed program was:" >&5
30741sed 's/^/| /' conftest.$ac_ext >&5
30742
c122b164
DE
30743
30744 cat >conftest.$ac_ext <<_ACEOF
30745/* confdefs.h. */
30746_ACEOF
30747cat confdefs.h >>conftest.$ac_ext
30748cat >>conftest.$ac_ext <<_ACEOF
30749/* end confdefs.h. */
30750
30751 #include <stdio.h>
30752 #include <stdarg.h>
30753 using namespace std;
30754
30755int
30756main ()
30757{
30758
30759 char *buf;
30760 va_list ap;
30761 vsnprintf(buf, 10u, "%s", ap);
30762
30763 ;
30764 return 0;
30765}
30766_ACEOF
30767rm -f conftest.$ac_objext
30768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30769 (eval $ac_compile) 2>conftest.er1
30770 ac_status=$?
30771 grep -v '^ *+' conftest.er1 >conftest.err
30772 rm -f conftest.er1
30773 cat conftest.err >&5
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); } &&
89be85c2
VS
30776 { ac_try='test -z "$ac_cxx_werror_flag"
30777 || test ! -s conftest.err'
c122b164
DE
30778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30779 (eval $ac_try) 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; } &&
30783 { ac_try='test -s conftest.$ac_objext'
30784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30785 (eval $ac_try) 2>&5
30786 ac_status=$?
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); }; }; then
30789 wx_cv_func_vsnprintf_decl=yes
30790else
30791 echo "$as_me: failed program was:" >&5
30792sed 's/^/| /' conftest.$ac_ext >&5
30793
a848cd7e
SC
30794wx_cv_func_vsnprintf_decl=no
30795
30796fi
ac1cb8d3 30797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30798
30799
c122b164
DE
30800fi
30801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30802
30803
a848cd7e
SC
30804fi
30805echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30806echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30807
30808 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30809 cat >>confdefs.h <<\_ACEOF
30810#define HAVE_VSNPRINTF_DECL 1
30811_ACEOF
30812
30813 fi
30814fi
30815
30816if test "$wxUSE_UNICODE" = yes; then
30817
30818
30819
fbe47c7b
VS
30820
30821
30822
30823for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30824do
30825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30826echo "$as_me:$LINENO: checking for $ac_func" >&5
30827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30828if eval "test \"\${$as_ac_var+set}\" = set"; then
30829 echo $ECHO_N "(cached) $ECHO_C" >&6
30830else
30831 cat >conftest.$ac_ext <<_ACEOF
30832/* confdefs.h. */
30833_ACEOF
30834cat confdefs.h >>conftest.$ac_ext
30835cat >>conftest.$ac_ext <<_ACEOF
30836/* end confdefs.h. */
ac1cb8d3
VS
30837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30839#define $ac_func innocuous_$ac_func
30840
a848cd7e
SC
30841/* System header to define __stub macros and hopefully few prototypes,
30842 which can conflict with char $ac_func (); below.
30843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30844 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30845
a848cd7e
SC
30846#ifdef __STDC__
30847# include <limits.h>
30848#else
30849# include <assert.h>
30850#endif
ac1cb8d3
VS
30851
30852#undef $ac_func
30853
a848cd7e
SC
30854/* Override any gcc2 internal prototype to avoid an error. */
30855#ifdef __cplusplus
30856extern "C"
30857{
30858#endif
30859/* We use char because int might match the return type of a gcc2
30860 builtin and then its argument prototype would still apply. */
30861char $ac_func ();
30862/* The GNU C library defines this for functions which it implements
30863 to always fail with ENOSYS. Some functions are actually named
30864 something starting with __ and the normal name is an alias. */
30865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30866choke me
30867#else
30868char (*f) () = $ac_func;
30869#endif
30870#ifdef __cplusplus
30871}
30872#endif
30873
30874int
30875main ()
30876{
30877return f != $ac_func;
30878 ;
30879 return 0;
30880}
30881_ACEOF
30882rm -f conftest.$ac_objext conftest$ac_exeext
30883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30884 (eval $ac_link) 2>conftest.er1
a848cd7e 30885 ac_status=$?
ac1cb8d3
VS
30886 grep -v '^ *+' conftest.er1 >conftest.err
30887 rm -f conftest.er1
30888 cat conftest.err >&5
a848cd7e
SC
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); } &&
89be85c2
VS
30891 { ac_try='test -z "$ac_cxx_werror_flag"
30892 || test ! -s conftest.err'
ac1cb8d3
VS
30893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894 (eval $ac_try) 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; } &&
30898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30900 (eval $ac_try) 2>&5
30901 ac_status=$?
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); }; }; then
30904 eval "$as_ac_var=yes"
30905else
30906 echo "$as_me: failed program was:" >&5
30907sed 's/^/| /' conftest.$ac_ext >&5
30908
30909eval "$as_ac_var=no"
30910fi
ac1cb8d3
VS
30911rm -f conftest.err conftest.$ac_objext \
30912 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30913fi
30914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30915echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30916if test `eval echo '${'$as_ac_var'}'` = yes; then
30917 cat >>confdefs.h <<_ACEOF
30918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30919_ACEOF
30920
30921fi
30922done
30923
30924
30925 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30926echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30927 cat >conftest.$ac_ext <<_ACEOF
30928/* confdefs.h. */
30929_ACEOF
30930cat confdefs.h >>conftest.$ac_ext
30931cat >>conftest.$ac_ext <<_ACEOF
30932/* end confdefs.h. */
30933#include <wchar.h>
30934int
30935main ()
30936{
30937&_vsnwprintf;
30938 ;
30939 return 0;
30940}
30941_ACEOF
30942rm -f conftest.$ac_objext
30943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30944 (eval $ac_compile) 2>conftest.er1
a848cd7e 30945 ac_status=$?
ac1cb8d3
VS
30946 grep -v '^ *+' conftest.er1 >conftest.err
30947 rm -f conftest.er1
30948 cat conftest.err >&5
a848cd7e
SC
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); } &&
89be85c2
VS
30951 { ac_try='test -z "$ac_cxx_werror_flag"
30952 || test ! -s conftest.err'
ac1cb8d3
VS
30953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954 (eval $ac_try) 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960 (eval $ac_try) 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
30964 echo "$as_me:$LINENO: result: yes" >&5
30965echo "${ECHO_T}yes" >&6
30966 cat >>confdefs.h <<\_ACEOF
30967#define HAVE__VSNWPRINTF 1
30968_ACEOF
30969
30970else
30971 echo "$as_me: failed program was:" >&5
30972sed 's/^/| /' conftest.$ac_ext >&5
30973
30974echo "$as_me:$LINENO: result: no" >&5
30975echo "${ECHO_T}no" >&6
30976fi
ac1cb8d3 30977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30978fi
30979
30980ac_ext=c
30981ac_cpp='$CPP $CPPFLAGS'
30982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30984ac_compiler_gnu=$ac_cv_c_compiler_gnu
30985
30986
30987
30988
30989if test "$TOOLKIT" != "MSW"; then
30990
30991
30992
30993
30994ac_ext=cc
30995ac_cpp='$CXXCPP $CPPFLAGS'
30996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30999
31000
31001
31002
31003# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31004if test "${with_libiconv_prefix+set}" = set; then
31005 withval="$with_libiconv_prefix"
31006
31007 for dir in `echo "$withval" | tr : ' '`; do
31008 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31009 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31010 done
31011
31012fi;
31013
31014 echo "$as_me:$LINENO: checking for iconv" >&5
31015echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31016if test "${am_cv_func_iconv+set}" = set; then
31017 echo $ECHO_N "(cached) $ECHO_C" >&6
31018else
31019
31020 am_cv_func_iconv="no, consider installing GNU libiconv"
31021 am_cv_lib_iconv=no
31022 cat >conftest.$ac_ext <<_ACEOF
31023/* confdefs.h. */
31024_ACEOF
31025cat confdefs.h >>conftest.$ac_ext
31026cat >>conftest.$ac_ext <<_ACEOF
31027/* end confdefs.h. */
31028#include <stdlib.h>
31029#include <iconv.h>
31030int
31031main ()
31032{
31033iconv_t cd = iconv_open("","");
31034 iconv(cd,NULL,NULL,NULL,NULL);
31035 iconv_close(cd);
31036 ;
31037 return 0;
31038}
31039_ACEOF
31040rm -f conftest.$ac_objext conftest$ac_exeext
31041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31042 (eval $ac_link) 2>conftest.er1
a848cd7e 31043 ac_status=$?
ac1cb8d3
VS
31044 grep -v '^ *+' conftest.er1 >conftest.err
31045 rm -f conftest.er1
31046 cat conftest.err >&5
a848cd7e
SC
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); } &&
89be85c2
VS
31049 { ac_try='test -z "$ac_cxx_werror_flag"
31050 || test ! -s conftest.err'
ac1cb8d3
VS
31051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31052 (eval $ac_try) 2>&5
31053 ac_status=$?
31054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055 (exit $ac_status); }; } &&
31056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31058 (eval $ac_try) 2>&5
31059 ac_status=$?
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); }; }; then
31062 am_cv_func_iconv=yes
31063else
31064 echo "$as_me: failed program was:" >&5
31065sed 's/^/| /' conftest.$ac_ext >&5
31066
31067fi
ac1cb8d3
VS
31068rm -f conftest.err conftest.$ac_objext \
31069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31070 if test "$am_cv_func_iconv" != yes; then
31071 am_save_LIBS="$LIBS"
31072 LIBS="$LIBS -liconv"
31073 cat >conftest.$ac_ext <<_ACEOF
31074/* confdefs.h. */
31075_ACEOF
31076cat confdefs.h >>conftest.$ac_ext
31077cat >>conftest.$ac_ext <<_ACEOF
31078/* end confdefs.h. */
31079#include <stdlib.h>
31080#include <iconv.h>
31081int
31082main ()
31083{
31084iconv_t cd = iconv_open("","");
31085 iconv(cd,NULL,NULL,NULL,NULL);
31086 iconv_close(cd);
31087 ;
31088 return 0;
31089}
31090_ACEOF
31091rm -f conftest.$ac_objext conftest$ac_exeext
31092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31093 (eval $ac_link) 2>conftest.er1
a848cd7e 31094 ac_status=$?
ac1cb8d3
VS
31095 grep -v '^ *+' conftest.er1 >conftest.err
31096 rm -f conftest.er1
31097 cat conftest.err >&5
a848cd7e
SC
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); } &&
89be85c2
VS
31100 { ac_try='test -z "$ac_cxx_werror_flag"
31101 || test ! -s conftest.err'
ac1cb8d3
VS
31102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31103 (eval $ac_try) 2>&5
31104 ac_status=$?
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); }; } &&
31107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31109 (eval $ac_try) 2>&5
31110 ac_status=$?
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); }; }; then
31113 am_cv_lib_iconv=yes
31114 am_cv_func_iconv=yes
31115else
31116 echo "$as_me: failed program was:" >&5
31117sed 's/^/| /' conftest.$ac_ext >&5
31118
31119fi
ac1cb8d3
VS
31120rm -f conftest.err conftest.$ac_objext \
31121 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31122 LIBS="$am_save_LIBS"
31123 fi
31124
31125fi
31126echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31127echo "${ECHO_T}$am_cv_func_iconv" >&6
31128 if test "$am_cv_func_iconv" = yes; then
31129
31130cat >>confdefs.h <<\_ACEOF
31131#define HAVE_ICONV 1
31132_ACEOF
31133
31134 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31135echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31136if test "${wx_cv_func_iconv_const+set}" = set; then
31137 echo $ECHO_N "(cached) $ECHO_C" >&6
31138else
31139 cat >conftest.$ac_ext <<_ACEOF
31140/* confdefs.h. */
31141_ACEOF
31142cat confdefs.h >>conftest.$ac_ext
31143cat >>conftest.$ac_ext <<_ACEOF
31144/* end confdefs.h. */
31145
31146#include <stdlib.h>
31147#include <iconv.h>
31148extern
31149#ifdef __cplusplus
31150"C"
31151#endif
31152#if defined(__STDC__) || defined(__cplusplus)
31153size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31154#else
31155size_t iconv();
31156#endif
31157
31158int
31159main ()
31160{
31161
31162 ;
31163 return 0;
31164}
31165_ACEOF
31166rm -f conftest.$ac_objext
31167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31168 (eval $ac_compile) 2>conftest.er1
a848cd7e 31169 ac_status=$?
ac1cb8d3
VS
31170 grep -v '^ *+' conftest.er1 >conftest.err
31171 rm -f conftest.er1
31172 cat conftest.err >&5
a848cd7e
SC
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); } &&
89be85c2
VS
31175 { ac_try='test -z "$ac_cxx_werror_flag"
31176 || test ! -s conftest.err'
ac1cb8d3
VS
31177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31178 (eval $ac_try) 2>&5
31179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; } &&
31182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184 (eval $ac_try) 2>&5
31185 ac_status=$?
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; }; then
31188 wx_cv_func_iconv_const="no"
31189else
31190 echo "$as_me: failed program was:" >&5
31191sed 's/^/| /' conftest.$ac_ext >&5
31192
31193wx_cv_func_iconv_const="yes"
31194
31195fi
ac1cb8d3 31196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31197
31198fi
31199echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31200echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31201
31202 iconv_const=
31203 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31204 iconv_const="const"
31205 fi
31206
31207
31208cat >>confdefs.h <<_ACEOF
31209#define ICONV_CONST $iconv_const
31210_ACEOF
31211
31212 fi
31213 LIBICONV=
31214 if test "$am_cv_lib_iconv" = yes; then
31215 LIBICONV="-liconv"
31216 fi
31217
31218
31219LIBS="$LIBICONV $LIBS"
31220ac_ext=c
31221ac_cpp='$CPP $CPPFLAGS'
31222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31224ac_compiler_gnu=$ac_cv_c_compiler_gnu
31225
31226
31227if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31228
31229for ac_func in sigaction
31230do
31231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31232echo "$as_me:$LINENO: checking for $ac_func" >&5
31233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31234if eval "test \"\${$as_ac_var+set}\" = set"; then
31235 echo $ECHO_N "(cached) $ECHO_C" >&6
31236else
31237 cat >conftest.$ac_ext <<_ACEOF
31238/* confdefs.h. */
31239_ACEOF
31240cat confdefs.h >>conftest.$ac_ext
31241cat >>conftest.$ac_ext <<_ACEOF
31242/* end confdefs.h. */
ac1cb8d3
VS
31243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31245#define $ac_func innocuous_$ac_func
31246
a848cd7e
SC
31247/* System header to define __stub macros and hopefully few prototypes,
31248 which can conflict with char $ac_func (); below.
31249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31250 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31251
a848cd7e
SC
31252#ifdef __STDC__
31253# include <limits.h>
31254#else
31255# include <assert.h>
31256#endif
ac1cb8d3
VS
31257
31258#undef $ac_func
31259
a848cd7e
SC
31260/* Override any gcc2 internal prototype to avoid an error. */
31261#ifdef __cplusplus
31262extern "C"
31263{
31264#endif
31265/* We use char because int might match the return type of a gcc2
31266 builtin and then its argument prototype would still apply. */
31267char $ac_func ();
31268/* The GNU C library defines this for functions which it implements
31269 to always fail with ENOSYS. Some functions are actually named
31270 something starting with __ and the normal name is an alias. */
31271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31272choke me
31273#else
31274char (*f) () = $ac_func;
31275#endif
31276#ifdef __cplusplus
31277}
31278#endif
31279
31280int
31281main ()
31282{
31283return f != $ac_func;
31284 ;
31285 return 0;
31286}
31287_ACEOF
31288rm -f conftest.$ac_objext conftest$ac_exeext
31289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31290 (eval $ac_link) 2>conftest.er1
a848cd7e 31291 ac_status=$?
ac1cb8d3
VS
31292 grep -v '^ *+' conftest.er1 >conftest.err
31293 rm -f conftest.er1
31294 cat conftest.err >&5
a848cd7e
SC
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); } &&
89be85c2
VS
31297 { ac_try='test -z "$ac_c_werror_flag"
31298 || test ! -s conftest.err'
ac1cb8d3
VS
31299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300 (eval $ac_try) 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; } &&
31304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31306 (eval $ac_try) 2>&5
31307 ac_status=$?
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); }; }; then
31310 eval "$as_ac_var=yes"
31311else
31312 echo "$as_me: failed program was:" >&5
31313sed 's/^/| /' conftest.$ac_ext >&5
31314
31315eval "$as_ac_var=no"
31316fi
ac1cb8d3
VS
31317rm -f conftest.err conftest.$ac_objext \
31318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31319fi
31320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31321echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31322if test `eval echo '${'$as_ac_var'}'` = yes; then
31323 cat >>confdefs.h <<_ACEOF
31324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31325_ACEOF
31326
31327fi
31328done
31329
31330
31331 if test "$ac_cv_func_sigaction" = "no"; then
31332 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31333echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31334 wxUSE_ON_FATAL_EXCEPTION=no
31335 fi
31336
31337 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31338
31339
31340 ac_ext=cc
31341ac_cpp='$CXXCPP $CPPFLAGS'
31342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31345
31346
31347 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31348echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31349if test "${wx_cv_type_sa_handler+set}" = set; then
31350 echo $ECHO_N "(cached) $ECHO_C" >&6
31351else
31352
31353 cat >conftest.$ac_ext <<_ACEOF
31354/* confdefs.h. */
31355_ACEOF
31356cat confdefs.h >>conftest.$ac_ext
31357cat >>conftest.$ac_ext <<_ACEOF
31358/* end confdefs.h. */
31359#include <signal.h>
31360int
31361main ()
31362{
31363
31364 extern void testSigHandler(int);
31365
31366 struct sigaction sa;
31367 sa.sa_handler = testSigHandler;
31368
31369 ;
31370 return 0;
31371}
31372_ACEOF
31373rm -f conftest.$ac_objext
31374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31375 (eval $ac_compile) 2>conftest.er1
a848cd7e 31376 ac_status=$?
ac1cb8d3
VS
31377 grep -v '^ *+' conftest.er1 >conftest.err
31378 rm -f conftest.er1
31379 cat conftest.err >&5
a848cd7e
SC
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
89be85c2
VS
31382 { ac_try='test -z "$ac_cxx_werror_flag"
31383 || test ! -s conftest.err'
ac1cb8d3
VS
31384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31385 (eval $ac_try) 2>&5
31386 ac_status=$?
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); }; } &&
31389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391 (eval $ac_try) 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; }; then
31395
31396 wx_cv_type_sa_handler=int
31397
31398else
31399 echo "$as_me: failed program was:" >&5
31400sed 's/^/| /' conftest.$ac_ext >&5
31401
31402
31403 wx_cv_type_sa_handler=void
31404
31405fi
ac1cb8d3 31406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31407
31408fi
31409echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31410echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31411
31412 ac_ext=c
31413ac_cpp='$CPP $CPPFLAGS'
31414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31416ac_compiler_gnu=$ac_cv_c_compiler_gnu
31417
31418
31419 cat >>confdefs.h <<_ACEOF
31420#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31421_ACEOF
31422
31423 fi
31424fi
31425
eaff0f0d
VZ
31426if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31427
31428
31429 ac_ext=cc
31430ac_cpp='$CXXCPP $CPPFLAGS'
31431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31434
31435
31436 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31437echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31438if test "${wx_cv_func_backtrace+set}" = set; then
31439 echo $ECHO_N "(cached) $ECHO_C" >&6
31440else
31441
31442 cat >conftest.$ac_ext <<_ACEOF
31443/* confdefs.h. */
31444_ACEOF
31445cat confdefs.h >>conftest.$ac_ext
31446cat >>conftest.$ac_ext <<_ACEOF
31447/* end confdefs.h. */
31448#include <execinfo.h>
31449int
31450main ()
31451{
31452
31453 void *trace[1];
31454 char **messages;
31455
31456 backtrace(trace, 1);
31457 messages = backtrace_symbols(trace, 1);
31458
31459 ;
31460 return 0;
31461}
31462_ACEOF
31463rm -f conftest.$ac_objext
31464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31465 (eval $ac_compile) 2>conftest.er1
31466 ac_status=$?
31467 grep -v '^ *+' conftest.er1 >conftest.err
31468 rm -f conftest.er1
31469 cat conftest.err >&5
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); } &&
89be85c2
VS
31472 { ac_try='test -z "$ac_cxx_werror_flag"
31473 || test ! -s conftest.err'
eaff0f0d
VZ
31474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31475 (eval $ac_try) 2>&5
31476 ac_status=$?
31477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 (exit $ac_status); }; } &&
31479 { ac_try='test -s conftest.$ac_objext'
31480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31481 (eval $ac_try) 2>&5
31482 ac_status=$?
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; }; then
31485 wx_cv_func_backtrace=yes
31486else
31487 echo "$as_me: failed program was:" >&5
31488sed 's/^/| /' conftest.$ac_ext >&5
31489
31490wx_cv_func_backtrace=no
31491
31492fi
31493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31494
31495
31496fi
31497echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31498echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31499
31500
31501 if test "$wx_cv_func_backtrace" = "no"; then
31502 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31503echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31504 wxUSE_STACKWALKER=no
31505 else
31506 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31507echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31508if test "${wx_cv_func_cxa_demangle+set}" = set; then
31509 echo $ECHO_N "(cached) $ECHO_C" >&6
31510else
31511
31512 cat >conftest.$ac_ext <<_ACEOF
31513/* confdefs.h. */
31514_ACEOF
31515cat confdefs.h >>conftest.$ac_ext
31516cat >>conftest.$ac_ext <<_ACEOF
31517/* end confdefs.h. */
31518#include <cxxabi.h>
31519int
31520main ()
31521{
31522
31523 int rc;
31524 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31525
31526 ;
31527 return 0;
31528}
31529_ACEOF
31530rm -f conftest.$ac_objext
31531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31532 (eval $ac_compile) 2>conftest.er1
31533 ac_status=$?
31534 grep -v '^ *+' conftest.er1 >conftest.err
31535 rm -f conftest.er1
31536 cat conftest.err >&5
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } &&
89be85c2
VS
31539 { ac_try='test -z "$ac_cxx_werror_flag"
31540 || test ! -s conftest.err'
eaff0f0d
VZ
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; } &&
31546 { ac_try='test -s conftest.$ac_objext'
31547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31548 (eval $ac_try) 2>&5
31549 ac_status=$?
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); }; }; then
31552 wx_cv_func_cxa_demangle=yes
31553else
31554 echo "$as_me: failed program was:" >&5
31555sed 's/^/| /' conftest.$ac_ext >&5
31556
31557wx_cv_func_cxa_demangle=no
31558
31559fi
31560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31561
31562
31563fi
31564echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31565echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31566
31567 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31568 cat >>confdefs.h <<\_ACEOF
31569#define HAVE_CXA_DEMANGLE 1
31570_ACEOF
31571
31572 fi
31573 fi
31574
31575 ac_ext=c
31576ac_cpp='$CPP $CPPFLAGS'
31577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31579ac_compiler_gnu=$ac_cv_c_compiler_gnu
31580
31581fi
31582
a848cd7e
SC
31583
31584
31585for ac_func in mkstemp mktemp
31586do
31587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31588echo "$as_me:$LINENO: checking for $ac_func" >&5
31589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31590if eval "test \"\${$as_ac_var+set}\" = set"; then
31591 echo $ECHO_N "(cached) $ECHO_C" >&6
31592else
31593 cat >conftest.$ac_ext <<_ACEOF
31594/* confdefs.h. */
31595_ACEOF
31596cat confdefs.h >>conftest.$ac_ext
31597cat >>conftest.$ac_ext <<_ACEOF
31598/* end confdefs.h. */
ac1cb8d3
VS
31599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31601#define $ac_func innocuous_$ac_func
31602
a848cd7e
SC
31603/* System header to define __stub macros and hopefully few prototypes,
31604 which can conflict with char $ac_func (); below.
31605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31606 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31607
a848cd7e
SC
31608#ifdef __STDC__
31609# include <limits.h>
31610#else
31611# include <assert.h>
31612#endif
ac1cb8d3
VS
31613
31614#undef $ac_func
31615
a848cd7e
SC
31616/* Override any gcc2 internal prototype to avoid an error. */
31617#ifdef __cplusplus
31618extern "C"
31619{
31620#endif
31621/* We use char because int might match the return type of a gcc2
31622 builtin and then its argument prototype would still apply. */
31623char $ac_func ();
31624/* The GNU C library defines this for functions which it implements
31625 to always fail with ENOSYS. Some functions are actually named
31626 something starting with __ and the normal name is an alias. */
31627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31628choke me
31629#else
31630char (*f) () = $ac_func;
31631#endif
31632#ifdef __cplusplus
31633}
31634#endif
31635
31636int
31637main ()
31638{
31639return f != $ac_func;
31640 ;
31641 return 0;
31642}
31643_ACEOF
31644rm -f conftest.$ac_objext conftest$ac_exeext
31645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31646 (eval $ac_link) 2>conftest.er1
a848cd7e 31647 ac_status=$?
ac1cb8d3
VS
31648 grep -v '^ *+' conftest.er1 >conftest.err
31649 rm -f conftest.er1
31650 cat conftest.err >&5
a848cd7e
SC
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); } &&
89be85c2
VS
31653 { ac_try='test -z "$ac_c_werror_flag"
31654 || test ! -s conftest.err'
ac1cb8d3
VS
31655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31656 (eval $ac_try) 2>&5
31657 ac_status=$?
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); }; } &&
31660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31662 (eval $ac_try) 2>&5
31663 ac_status=$?
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); }; }; then
31666 eval "$as_ac_var=yes"
31667else
31668 echo "$as_me: failed program was:" >&5
31669sed 's/^/| /' conftest.$ac_ext >&5
31670
31671eval "$as_ac_var=no"
31672fi
ac1cb8d3
VS
31673rm -f conftest.err conftest.$ac_objext \
31674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31675fi
31676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31678if test `eval echo '${'$as_ac_var'}'` = yes; then
31679 cat >>confdefs.h <<_ACEOF
31680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31681_ACEOF
31682 break
31683fi
31684done
31685
31686
31687echo "$as_me:$LINENO: checking for statfs" >&5
31688echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31689if test "${wx_cv_func_statfs+set}" = set; then
31690 echo $ECHO_N "(cached) $ECHO_C" >&6
31691else
31692 cat >conftest.$ac_ext <<_ACEOF
31693/* confdefs.h. */
31694_ACEOF
31695cat confdefs.h >>conftest.$ac_ext
31696cat >>conftest.$ac_ext <<_ACEOF
31697/* end confdefs.h. */
31698
31699 #if defined(__BSD__)
31700 #include <sys/param.h>
31701 #include <sys/mount.h>
31702 #else
31703 #include <sys/vfs.h>
31704 #endif
31705
31706int
31707main ()
31708{
31709
31710 long l;
31711 struct statfs fs;
31712 statfs("/", &fs);
31713 l = fs.f_bsize;
31714 l += fs.f_blocks;
31715 l += fs.f_bavail;
31716
31717 ;
31718 return 0;
31719}
31720_ACEOF
31721rm -f conftest.$ac_objext
31722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31723 (eval $ac_compile) 2>conftest.er1
a848cd7e 31724 ac_status=$?
ac1cb8d3
VS
31725 grep -v '^ *+' conftest.er1 >conftest.err
31726 rm -f conftest.er1
31727 cat conftest.err >&5
a848cd7e
SC
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); } &&
89be85c2
VS
31730 { ac_try='test -z "$ac_c_werror_flag"
31731 || test ! -s conftest.err'
ac1cb8d3
VS
31732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31733 (eval $ac_try) 2>&5
31734 ac_status=$?
31735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736 (exit $ac_status); }; } &&
31737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31739 (eval $ac_try) 2>&5
31740 ac_status=$?
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); }; }; then
31743
31744 wx_cv_func_statfs=yes
31745
31746else
31747 echo "$as_me: failed program was:" >&5
31748sed 's/^/| /' conftest.$ac_ext >&5
31749
31750
31751 wx_cv_func_statfs=no
31752
31753
31754fi
ac1cb8d3 31755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31756
31757fi
31758echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31759echo "${ECHO_T}$wx_cv_func_statfs" >&6
31760
31761if test "$wx_cv_func_statfs" = "yes"; then
31762 wx_cv_type_statvfs_t="struct statfs"
31763 cat >>confdefs.h <<\_ACEOF
31764#define HAVE_STATFS 1
31765_ACEOF
31766
31767else
31768 echo "$as_me:$LINENO: checking for statvfs" >&5
31769echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31770if test "${wx_cv_func_statvfs+set}" = set; then
31771 echo $ECHO_N "(cached) $ECHO_C" >&6
31772else
31773 cat >conftest.$ac_ext <<_ACEOF
31774/* confdefs.h. */
31775_ACEOF
31776cat confdefs.h >>conftest.$ac_ext
31777cat >>conftest.$ac_ext <<_ACEOF
31778/* end confdefs.h. */
31779
31780 #include <stddef.h>
31781 #include <sys/statvfs.h>
31782
31783int
31784main ()
31785{
31786
31787 statvfs("/", NULL);
31788
31789 ;
31790 return 0;
31791}
31792_ACEOF
31793rm -f conftest.$ac_objext
31794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31795 (eval $ac_compile) 2>conftest.er1
a848cd7e 31796 ac_status=$?
ac1cb8d3
VS
31797 grep -v '^ *+' conftest.er1 >conftest.err
31798 rm -f conftest.er1
31799 cat conftest.err >&5
a848cd7e
SC
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); } &&
89be85c2
VS
31802 { ac_try='test -z "$ac_c_werror_flag"
31803 || test ! -s conftest.err'
ac1cb8d3
VS
31804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805 (eval $ac_try) 2>&5
31806 ac_status=$?
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); }; } &&
31809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31811 (eval $ac_try) 2>&5
31812 ac_status=$?
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); }; }; then
31815 wx_cv_func_statvfs=yes
31816else
31817 echo "$as_me: failed program was:" >&5
31818sed 's/^/| /' conftest.$ac_ext >&5
31819
31820wx_cv_func_statvfs=no
31821
31822fi
ac1cb8d3 31823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31824
31825fi
31826echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31827echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31828
31829 if test "$wx_cv_func_statvfs" = "yes"; then
31830
31831
31832 ac_ext=cc
31833ac_cpp='$CXXCPP $CPPFLAGS'
31834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31837
31838
31839 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31840echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31841if test "${wx_cv_type_statvfs_t+set}" = set; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31843else
31844 cat >conftest.$ac_ext <<_ACEOF
31845/* confdefs.h. */
31846_ACEOF
31847cat confdefs.h >>conftest.$ac_ext
31848cat >>conftest.$ac_ext <<_ACEOF
31849/* end confdefs.h. */
31850
31851 #include <sys/statvfs.h>
31852
31853int
31854main ()
31855{
31856
31857 long l;
31858 statvfs_t fs;
31859 statvfs("/", &fs);
31860 l = fs.f_bsize;
31861 l += fs.f_blocks;
31862 l += fs.f_bavail;
31863
31864 ;
31865 return 0;
31866}
31867_ACEOF
31868rm -f conftest.$ac_objext
31869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31870 (eval $ac_compile) 2>conftest.er1
a848cd7e 31871 ac_status=$?
ac1cb8d3
VS
31872 grep -v '^ *+' conftest.er1 >conftest.err
31873 rm -f conftest.er1
31874 cat conftest.err >&5
a848cd7e
SC
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); } &&
89be85c2
VS
31877 { ac_try='test -z "$ac_cxx_werror_flag"
31878 || test ! -s conftest.err'
ac1cb8d3
VS
31879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31880 (eval $ac_try) 2>&5
31881 ac_status=$?
31882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883 (exit $ac_status); }; } &&
31884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31886 (eval $ac_try) 2>&5
31887 ac_status=$?
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); }; }; then
31890 wx_cv_type_statvfs_t=statvfs_t
31891else
31892 echo "$as_me: failed program was:" >&5
31893sed 's/^/| /' conftest.$ac_ext >&5
31894
31895
31896 cat >conftest.$ac_ext <<_ACEOF
31897/* confdefs.h. */
31898_ACEOF
31899cat confdefs.h >>conftest.$ac_ext
31900cat >>conftest.$ac_ext <<_ACEOF
31901/* end confdefs.h. */
31902
31903 #include <sys/statvfs.h>
31904
31905int
31906main ()
31907{
31908
31909 long l;
31910 struct statvfs fs;
31911 statvfs("/", &fs);
31912 l = fs.f_bsize;
31913 l += fs.f_blocks;
31914 l += fs.f_bavail;
31915
31916 ;
31917 return 0;
31918}
31919_ACEOF
31920rm -f conftest.$ac_objext
31921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31922 (eval $ac_compile) 2>conftest.er1
a848cd7e 31923 ac_status=$?
ac1cb8d3
VS
31924 grep -v '^ *+' conftest.er1 >conftest.err
31925 rm -f conftest.er1
31926 cat conftest.err >&5
a848cd7e
SC
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } &&
89be85c2
VS
31929 { ac_try='test -z "$ac_cxx_werror_flag"
31930 || test ! -s conftest.err'
ac1cb8d3
VS
31931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31932 (eval $ac_try) 2>&5
31933 ac_status=$?
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); }; } &&
31936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31939 ac_status=$?
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; }; then
31942 wx_cv_type_statvfs_t="struct statvfs"
31943else
31944 echo "$as_me: failed program was:" >&5
31945sed 's/^/| /' conftest.$ac_ext >&5
31946
31947wx_cv_type_statvfs_t="unknown"
31948
31949fi
ac1cb8d3 31950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31951
31952
31953fi
ac1cb8d3 31954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31955
31956fi
31957echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31958echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31959
31960 ac_ext=c
31961ac_cpp='$CPP $CPPFLAGS'
31962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964ac_compiler_gnu=$ac_cv_c_compiler_gnu
31965
31966
31967 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31968 cat >>confdefs.h <<\_ACEOF
31969#define HAVE_STATVFS 1
31970_ACEOF
31971
31972 fi
31973 else
31974 wx_cv_type_statvfs_t="unknown"
31975 fi
31976fi
31977
31978if test "$wx_cv_type_statvfs_t" != "unknown"; then
31979 cat >>confdefs.h <<_ACEOF
31980#define WX_STATFS_T $wx_cv_type_statvfs_t
31981_ACEOF
31982
31983else
31984 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31985echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31986fi
31987
31988if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31989
31990
31991for ac_func in fcntl flock
31992do
31993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31994echo "$as_me:$LINENO: checking for $ac_func" >&5
31995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31996if eval "test \"\${$as_ac_var+set}\" = set"; then
31997 echo $ECHO_N "(cached) $ECHO_C" >&6
31998else
31999 cat >conftest.$ac_ext <<_ACEOF
32000/* confdefs.h. */
32001_ACEOF
32002cat confdefs.h >>conftest.$ac_ext
32003cat >>conftest.$ac_ext <<_ACEOF
32004/* end confdefs.h. */
ac1cb8d3
VS
32005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32007#define $ac_func innocuous_$ac_func
32008
a848cd7e
SC
32009/* System header to define __stub macros and hopefully few prototypes,
32010 which can conflict with char $ac_func (); below.
32011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32012 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32013
a848cd7e
SC
32014#ifdef __STDC__
32015# include <limits.h>
32016#else
32017# include <assert.h>
32018#endif
ac1cb8d3
VS
32019
32020#undef $ac_func
32021
a848cd7e
SC
32022/* Override any gcc2 internal prototype to avoid an error. */
32023#ifdef __cplusplus
32024extern "C"
32025{
32026#endif
32027/* We use char because int might match the return type of a gcc2
32028 builtin and then its argument prototype would still apply. */
32029char $ac_func ();
32030/* The GNU C library defines this for functions which it implements
32031 to always fail with ENOSYS. Some functions are actually named
32032 something starting with __ and the normal name is an alias. */
32033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32034choke me
32035#else
32036char (*f) () = $ac_func;
32037#endif
32038#ifdef __cplusplus
32039}
32040#endif
32041
32042int
32043main ()
32044{
32045return f != $ac_func;
32046 ;
32047 return 0;
32048}
32049_ACEOF
32050rm -f conftest.$ac_objext conftest$ac_exeext
32051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32052 (eval $ac_link) 2>conftest.er1
a848cd7e 32053 ac_status=$?
ac1cb8d3
VS
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
a848cd7e
SC
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
89be85c2
VS
32059 { ac_try='test -z "$ac_c_werror_flag"
32060 || test ! -s conftest.err'
ac1cb8d3
VS
32061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32062 (eval $ac_try) 2>&5
32063 ac_status=$?
32064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); }; } &&
32066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32068 (eval $ac_try) 2>&5
32069 ac_status=$?
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); }; }; then
32072 eval "$as_ac_var=yes"
32073else
32074 echo "$as_me: failed program was:" >&5
32075sed 's/^/| /' conftest.$ac_ext >&5
32076
32077eval "$as_ac_var=no"
32078fi
ac1cb8d3
VS
32079rm -f conftest.err conftest.$ac_objext \
32080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32081fi
32082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32084if test `eval echo '${'$as_ac_var'}'` = yes; then
32085 cat >>confdefs.h <<_ACEOF
32086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32087_ACEOF
32088 break
32089fi
32090done
32091
32092
32093 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32094 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32095echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32096 wxUSE_SNGLINST_CHECKER=no
32097 fi
32098fi
32099
32100
32101for ac_func in timegm
32102do
32103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32104echo "$as_me:$LINENO: checking for $ac_func" >&5
32105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32106if eval "test \"\${$as_ac_var+set}\" = set"; then
32107 echo $ECHO_N "(cached) $ECHO_C" >&6
32108else
32109 cat >conftest.$ac_ext <<_ACEOF
32110/* confdefs.h. */
32111_ACEOF
32112cat confdefs.h >>conftest.$ac_ext
32113cat >>conftest.$ac_ext <<_ACEOF
32114/* end confdefs.h. */
ac1cb8d3
VS
32115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32117#define $ac_func innocuous_$ac_func
32118
a848cd7e
SC
32119/* System header to define __stub macros and hopefully few prototypes,
32120 which can conflict with char $ac_func (); below.
32121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32122 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32123
a848cd7e
SC
32124#ifdef __STDC__
32125# include <limits.h>
32126#else
32127# include <assert.h>
32128#endif
ac1cb8d3
VS
32129
32130#undef $ac_func
32131
a848cd7e
SC
32132/* Override any gcc2 internal prototype to avoid an error. */
32133#ifdef __cplusplus
32134extern "C"
32135{
32136#endif
32137/* We use char because int might match the return type of a gcc2
32138 builtin and then its argument prototype would still apply. */
32139char $ac_func ();
32140/* The GNU C library defines this for functions which it implements
32141 to always fail with ENOSYS. Some functions are actually named
32142 something starting with __ and the normal name is an alias. */
32143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32144choke me
32145#else
32146char (*f) () = $ac_func;
32147#endif
32148#ifdef __cplusplus
32149}
32150#endif
32151
32152int
32153main ()
32154{
32155return f != $ac_func;
32156 ;
32157 return 0;
32158}
32159_ACEOF
32160rm -f conftest.$ac_objext conftest$ac_exeext
32161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32162 (eval $ac_link) 2>conftest.er1
a848cd7e 32163 ac_status=$?
ac1cb8d3
VS
32164 grep -v '^ *+' conftest.er1 >conftest.err
32165 rm -f conftest.er1
32166 cat conftest.err >&5
a848cd7e
SC
32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); } &&
89be85c2
VS
32169 { ac_try='test -z "$ac_c_werror_flag"
32170 || test ! -s conftest.err'
ac1cb8d3
VS
32171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32172 (eval $ac_try) 2>&5
32173 ac_status=$?
32174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32175 (exit $ac_status); }; } &&
32176 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32178 (eval $ac_try) 2>&5
32179 ac_status=$?
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); }; }; then
32182 eval "$as_ac_var=yes"
32183else
32184 echo "$as_me: failed program was:" >&5
32185sed 's/^/| /' conftest.$ac_ext >&5
32186
32187eval "$as_ac_var=no"
32188fi
ac1cb8d3
VS
32189rm -f conftest.err conftest.$ac_objext \
32190 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32191fi
32192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32194if test `eval echo '${'$as_ac_var'}'` = yes; then
32195 cat >>confdefs.h <<_ACEOF
32196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32197_ACEOF
32198
32199fi
32200done
32201
32202
32203
32204
32205for ac_func in putenv setenv
32206do
32207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32208echo "$as_me:$LINENO: checking for $ac_func" >&5
32209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32210if eval "test \"\${$as_ac_var+set}\" = set"; then
32211 echo $ECHO_N "(cached) $ECHO_C" >&6
32212else
32213 cat >conftest.$ac_ext <<_ACEOF
32214/* confdefs.h. */
32215_ACEOF
32216cat confdefs.h >>conftest.$ac_ext
32217cat >>conftest.$ac_ext <<_ACEOF
32218/* end confdefs.h. */
ac1cb8d3
VS
32219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32221#define $ac_func innocuous_$ac_func
32222
a848cd7e
SC
32223/* System header to define __stub macros and hopefully few prototypes,
32224 which can conflict with char $ac_func (); below.
32225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32226 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32227
a848cd7e
SC
32228#ifdef __STDC__
32229# include <limits.h>
32230#else
32231# include <assert.h>
32232#endif
ac1cb8d3
VS
32233
32234#undef $ac_func
32235
a848cd7e
SC
32236/* Override any gcc2 internal prototype to avoid an error. */
32237#ifdef __cplusplus
32238extern "C"
32239{
32240#endif
32241/* We use char because int might match the return type of a gcc2
32242 builtin and then its argument prototype would still apply. */
32243char $ac_func ();
32244/* The GNU C library defines this for functions which it implements
32245 to always fail with ENOSYS. Some functions are actually named
32246 something starting with __ and the normal name is an alias. */
32247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32248choke me
32249#else
32250char (*f) () = $ac_func;
32251#endif
32252#ifdef __cplusplus
32253}
32254#endif
32255
32256int
32257main ()
32258{
32259return f != $ac_func;
32260 ;
32261 return 0;
32262}
32263_ACEOF
32264rm -f conftest.$ac_objext conftest$ac_exeext
32265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32266 (eval $ac_link) 2>conftest.er1
a848cd7e 32267 ac_status=$?
ac1cb8d3
VS
32268 grep -v '^ *+' conftest.er1 >conftest.err
32269 rm -f conftest.er1
32270 cat conftest.err >&5
a848cd7e
SC
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); } &&
89be85c2
VS
32273 { ac_try='test -z "$ac_c_werror_flag"
32274 || test ! -s conftest.err'
ac1cb8d3
VS
32275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32276 (eval $ac_try) 2>&5
32277 ac_status=$?
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); }; } &&
32280 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282 (eval $ac_try) 2>&5
32283 ac_status=$?
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; }; then
32286 eval "$as_ac_var=yes"
32287else
32288 echo "$as_me: failed program was:" >&5
32289sed 's/^/| /' conftest.$ac_ext >&5
32290
32291eval "$as_ac_var=no"
32292fi
ac1cb8d3
VS
32293rm -f conftest.err conftest.$ac_objext \
32294 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32295fi
32296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32298if test `eval echo '${'$as_ac_var'}'` = yes; then
32299 cat >>confdefs.h <<_ACEOF
32300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32301_ACEOF
32302 break
32303fi
32304done
32305
32306
32307HAVE_SOME_SLEEP_FUNC=0
32308if test "$USE_BEOS" = 1; then
32309 cat >>confdefs.h <<\_ACEOF
32310#define HAVE_SLEEP 1
32311_ACEOF
32312
32313 HAVE_SOME_SLEEP_FUNC=1
32314fi
32315
32316if test "$USE_DARWIN" = 1; then
32317 cat >>confdefs.h <<\_ACEOF
32318#define HAVE_USLEEP 1
32319_ACEOF
32320
32321 HAVE_SOME_SLEEP_FUNC=1
32322fi
32323
32324if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32325 POSIX4_LINK=
32326
32327for ac_func in nanosleep
32328do
32329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32330echo "$as_me:$LINENO: checking for $ac_func" >&5
32331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32332if eval "test \"\${$as_ac_var+set}\" = set"; then
32333 echo $ECHO_N "(cached) $ECHO_C" >&6
32334else
32335 cat >conftest.$ac_ext <<_ACEOF
32336/* confdefs.h. */
32337_ACEOF
32338cat confdefs.h >>conftest.$ac_ext
32339cat >>conftest.$ac_ext <<_ACEOF
32340/* end confdefs.h. */
ac1cb8d3
VS
32341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32343#define $ac_func innocuous_$ac_func
32344
a848cd7e
SC
32345/* System header to define __stub macros and hopefully few prototypes,
32346 which can conflict with char $ac_func (); below.
32347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32348 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32349
a848cd7e
SC
32350#ifdef __STDC__
32351# include <limits.h>
32352#else
32353# include <assert.h>
32354#endif
ac1cb8d3
VS
32355
32356#undef $ac_func
32357
a848cd7e
SC
32358/* Override any gcc2 internal prototype to avoid an error. */
32359#ifdef __cplusplus
32360extern "C"
32361{
32362#endif
32363/* We use char because int might match the return type of a gcc2
32364 builtin and then its argument prototype would still apply. */
32365char $ac_func ();
32366/* The GNU C library defines this for functions which it implements
32367 to always fail with ENOSYS. Some functions are actually named
32368 something starting with __ and the normal name is an alias. */
32369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32370choke me
32371#else
32372char (*f) () = $ac_func;
32373#endif
32374#ifdef __cplusplus
32375}
32376#endif
32377
32378int
32379main ()
32380{
32381return f != $ac_func;
32382 ;
32383 return 0;
32384}
32385_ACEOF
32386rm -f conftest.$ac_objext conftest$ac_exeext
32387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32388 (eval $ac_link) 2>conftest.er1
a848cd7e 32389 ac_status=$?
ac1cb8d3
VS
32390 grep -v '^ *+' conftest.er1 >conftest.err
32391 rm -f conftest.er1
32392 cat conftest.err >&5
a848cd7e
SC
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); } &&
89be85c2
VS
32395 { ac_try='test -z "$ac_c_werror_flag"
32396 || test ! -s conftest.err'
ac1cb8d3
VS
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32399 ac_status=$?
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; }; then
32408 eval "$as_ac_var=yes"
32409else
32410 echo "$as_me: failed program was:" >&5
32411sed 's/^/| /' conftest.$ac_ext >&5
32412
32413eval "$as_ac_var=no"
32414fi
ac1cb8d3
VS
32415rm -f conftest.err conftest.$ac_objext \
32416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32417fi
32418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32420if test `eval echo '${'$as_ac_var'}'` = yes; then
32421 cat >>confdefs.h <<_ACEOF
32422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32423_ACEOF
32424 cat >>confdefs.h <<\_ACEOF
32425#define HAVE_NANOSLEEP 1
32426_ACEOF
32427
32428else
32429
32430 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32431echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32432if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32434else
32435 ac_check_lib_save_LIBS=$LIBS
32436LIBS="-lposix4 $LIBS"
32437cat >conftest.$ac_ext <<_ACEOF
32438/* confdefs.h. */
32439_ACEOF
32440cat confdefs.h >>conftest.$ac_ext
32441cat >>conftest.$ac_ext <<_ACEOF
32442/* end confdefs.h. */
32443
32444/* Override any gcc2 internal prototype to avoid an error. */
32445#ifdef __cplusplus
32446extern "C"
32447#endif
32448/* We use char because int might match the return type of a gcc2
32449 builtin and then its argument prototype would still apply. */
32450char nanosleep ();
32451int
32452main ()
32453{
32454nanosleep ();
32455 ;
32456 return 0;
32457}
32458_ACEOF
32459rm -f conftest.$ac_objext conftest$ac_exeext
32460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32461 (eval $ac_link) 2>conftest.er1
a848cd7e 32462 ac_status=$?
ac1cb8d3
VS
32463 grep -v '^ *+' conftest.er1 >conftest.err
32464 rm -f conftest.er1
32465 cat conftest.err >&5
a848cd7e
SC
32466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); } &&
89be85c2
VS
32468 { ac_try='test -z "$ac_c_werror_flag"
32469 || test ! -s conftest.err'
ac1cb8d3
VS
32470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32471 (eval $ac_try) 2>&5
32472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; } &&
32475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32477 (eval $ac_try) 2>&5
32478 ac_status=$?
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; }; then
32481 ac_cv_lib_posix4_nanosleep=yes
32482else
32483 echo "$as_me: failed program was:" >&5
32484sed 's/^/| /' conftest.$ac_ext >&5
32485
32486ac_cv_lib_posix4_nanosleep=no
32487fi
ac1cb8d3
VS
32488rm -f conftest.err conftest.$ac_objext \
32489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32490LIBS=$ac_check_lib_save_LIBS
32491fi
32492echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32493echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32494if test $ac_cv_lib_posix4_nanosleep = yes; then
32495
32496 cat >>confdefs.h <<\_ACEOF
32497#define HAVE_NANOSLEEP 1
32498_ACEOF
32499
32500 POSIX4_LINK=" -lposix4"
32501
32502else
32503
32504
32505for ac_func in usleep
32506do
32507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32508echo "$as_me:$LINENO: checking for $ac_func" >&5
32509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32510if eval "test \"\${$as_ac_var+set}\" = set"; then
32511 echo $ECHO_N "(cached) $ECHO_C" >&6
32512else
32513 cat >conftest.$ac_ext <<_ACEOF
32514/* confdefs.h. */
32515_ACEOF
32516cat confdefs.h >>conftest.$ac_ext
32517cat >>conftest.$ac_ext <<_ACEOF
32518/* end confdefs.h. */
ac1cb8d3
VS
32519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32521#define $ac_func innocuous_$ac_func
32522
a848cd7e
SC
32523/* System header to define __stub macros and hopefully few prototypes,
32524 which can conflict with char $ac_func (); below.
32525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32526 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32527
a848cd7e
SC
32528#ifdef __STDC__
32529# include <limits.h>
32530#else
32531# include <assert.h>
32532#endif
ac1cb8d3
VS
32533
32534#undef $ac_func
32535
a848cd7e
SC
32536/* Override any gcc2 internal prototype to avoid an error. */
32537#ifdef __cplusplus
32538extern "C"
32539{
32540#endif
32541/* We use char because int might match the return type of a gcc2
32542 builtin and then its argument prototype would still apply. */
32543char $ac_func ();
32544/* The GNU C library defines this for functions which it implements
32545 to always fail with ENOSYS. Some functions are actually named
32546 something starting with __ and the normal name is an alias. */
32547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32548choke me
32549#else
32550char (*f) () = $ac_func;
32551#endif
32552#ifdef __cplusplus
32553}
32554#endif
32555
32556int
32557main ()
32558{
32559return f != $ac_func;
32560 ;
32561 return 0;
32562}
32563_ACEOF
32564rm -f conftest.$ac_objext conftest$ac_exeext
32565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32566 (eval $ac_link) 2>conftest.er1
a848cd7e 32567 ac_status=$?
ac1cb8d3
VS
32568 grep -v '^ *+' conftest.er1 >conftest.err
32569 rm -f conftest.er1
32570 cat conftest.err >&5
a848cd7e
SC
32571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32572 (exit $ac_status); } &&
89be85c2
VS
32573 { ac_try='test -z "$ac_c_werror_flag"
32574 || test ! -s conftest.err'
ac1cb8d3
VS
32575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32576 (eval $ac_try) 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32582 (eval $ac_try) 2>&5
32583 ac_status=$?
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); }; }; then
32586 eval "$as_ac_var=yes"
32587else
32588 echo "$as_me: failed program was:" >&5
32589sed 's/^/| /' conftest.$ac_ext >&5
32590
32591eval "$as_ac_var=no"
32592fi
ac1cb8d3
VS
32593rm -f conftest.err conftest.$ac_objext \
32594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32595fi
32596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32598if test `eval echo '${'$as_ac_var'}'` = yes; then
32599 cat >>confdefs.h <<_ACEOF
32600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32601_ACEOF
32602 cat >>confdefs.h <<\_ACEOF
32603#define HAVE_USLEEP 1
32604_ACEOF
32605
32606else
32607 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32608echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32609
32610fi
32611done
32612
32613
32614
32615fi
32616
32617
32618
32619fi
32620done
32621
32622fi
32623
32624
32625
32626for ac_func in uname gethostname
32627do
32628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32629echo "$as_me:$LINENO: checking for $ac_func" >&5
32630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32631if eval "test \"\${$as_ac_var+set}\" = set"; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32633else
32634 cat >conftest.$ac_ext <<_ACEOF
32635/* confdefs.h. */
32636_ACEOF
32637cat confdefs.h >>conftest.$ac_ext
32638cat >>conftest.$ac_ext <<_ACEOF
32639/* end confdefs.h. */
ac1cb8d3
VS
32640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32642#define $ac_func innocuous_$ac_func
32643
a848cd7e
SC
32644/* System header to define __stub macros and hopefully few prototypes,
32645 which can conflict with char $ac_func (); below.
32646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32647 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32648
a848cd7e
SC
32649#ifdef __STDC__
32650# include <limits.h>
32651#else
32652# include <assert.h>
32653#endif
ac1cb8d3
VS
32654
32655#undef $ac_func
32656
a848cd7e
SC
32657/* Override any gcc2 internal prototype to avoid an error. */
32658#ifdef __cplusplus
32659extern "C"
32660{
32661#endif
32662/* We use char because int might match the return type of a gcc2
32663 builtin and then its argument prototype would still apply. */
32664char $ac_func ();
32665/* The GNU C library defines this for functions which it implements
32666 to always fail with ENOSYS. Some functions are actually named
32667 something starting with __ and the normal name is an alias. */
32668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32669choke me
32670#else
32671char (*f) () = $ac_func;
32672#endif
32673#ifdef __cplusplus
32674}
32675#endif
32676
32677int
32678main ()
32679{
32680return f != $ac_func;
32681 ;
32682 return 0;
32683}
32684_ACEOF
32685rm -f conftest.$ac_objext conftest$ac_exeext
32686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32687 (eval $ac_link) 2>conftest.er1
a848cd7e 32688 ac_status=$?
ac1cb8d3
VS
32689 grep -v '^ *+' conftest.er1 >conftest.err
32690 rm -f conftest.er1
32691 cat conftest.err >&5
a848cd7e
SC
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); } &&
89be85c2
VS
32694 { ac_try='test -z "$ac_c_werror_flag"
32695 || test ! -s conftest.err'
ac1cb8d3
VS
32696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32697 (eval $ac_try) 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32703 (eval $ac_try) 2>&5
32704 ac_status=$?
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; }; then
32707 eval "$as_ac_var=yes"
32708else
32709 echo "$as_me: failed program was:" >&5
32710sed 's/^/| /' conftest.$ac_ext >&5
32711
32712eval "$as_ac_var=no"
32713fi
ac1cb8d3
VS
32714rm -f conftest.err conftest.$ac_objext \
32715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32716fi
32717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32719if test `eval echo '${'$as_ac_var'}'` = yes; then
32720 cat >>confdefs.h <<_ACEOF
32721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32722_ACEOF
32723 break
32724fi
32725done
32726
32727
32728
32729
32730ac_ext=cc
32731ac_cpp='$CXXCPP $CPPFLAGS'
32732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32735
32736
32737
32738for ac_func in strtok_r
32739do
32740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32741echo "$as_me:$LINENO: checking for $ac_func" >&5
32742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32743if eval "test \"\${$as_ac_var+set}\" = set"; then
32744 echo $ECHO_N "(cached) $ECHO_C" >&6
32745else
32746 cat >conftest.$ac_ext <<_ACEOF
32747/* confdefs.h. */
32748_ACEOF
32749cat confdefs.h >>conftest.$ac_ext
32750cat >>conftest.$ac_ext <<_ACEOF
32751/* end confdefs.h. */
ac1cb8d3
VS
32752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32754#define $ac_func innocuous_$ac_func
32755
a848cd7e
SC
32756/* System header to define __stub macros and hopefully few prototypes,
32757 which can conflict with char $ac_func (); below.
32758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32759 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32760
a848cd7e
SC
32761#ifdef __STDC__
32762# include <limits.h>
32763#else
32764# include <assert.h>
32765#endif
ac1cb8d3
VS
32766
32767#undef $ac_func
32768
a848cd7e
SC
32769/* Override any gcc2 internal prototype to avoid an error. */
32770#ifdef __cplusplus
32771extern "C"
32772{
32773#endif
32774/* We use char because int might match the return type of a gcc2
32775 builtin and then its argument prototype would still apply. */
32776char $ac_func ();
32777/* The GNU C library defines this for functions which it implements
32778 to always fail with ENOSYS. Some functions are actually named
32779 something starting with __ and the normal name is an alias. */
32780#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32781choke me
32782#else
32783char (*f) () = $ac_func;
32784#endif
32785#ifdef __cplusplus
32786}
32787#endif
32788
32789int
32790main ()
32791{
32792return f != $ac_func;
32793 ;
32794 return 0;
32795}
32796_ACEOF
32797rm -f conftest.$ac_objext conftest$ac_exeext
32798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32799 (eval $ac_link) 2>conftest.er1
a848cd7e 32800 ac_status=$?
ac1cb8d3
VS
32801 grep -v '^ *+' conftest.er1 >conftest.err
32802 rm -f conftest.er1
32803 cat conftest.err >&5
a848cd7e
SC
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } &&
89be85c2
VS
32806 { ac_try='test -z "$ac_cxx_werror_flag"
32807 || test ! -s conftest.err'
ac1cb8d3
VS
32808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32809 (eval $ac_try) 2>&5
32810 ac_status=$?
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; } &&
32813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32815 (eval $ac_try) 2>&5
32816 ac_status=$?
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); }; }; then
32819 eval "$as_ac_var=yes"
32820else
32821 echo "$as_me: failed program was:" >&5
32822sed 's/^/| /' conftest.$ac_ext >&5
32823
32824eval "$as_ac_var=no"
32825fi
ac1cb8d3
VS
32826rm -f conftest.err conftest.$ac_objext \
32827 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32828fi
32829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32830echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32831if test `eval echo '${'$as_ac_var'}'` = yes; then
32832 cat >>confdefs.h <<_ACEOF
32833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32834_ACEOF
32835
32836fi
32837done
32838
32839
32840ac_ext=c
32841ac_cpp='$CPP $CPPFLAGS'
32842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32844ac_compiler_gnu=$ac_cv_c_compiler_gnu
32845
32846
32847INET_LINK=
32848
32849for ac_func in inet_addr
32850do
32851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32852echo "$as_me:$LINENO: checking for $ac_func" >&5
32853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32854if eval "test \"\${$as_ac_var+set}\" = set"; then
32855 echo $ECHO_N "(cached) $ECHO_C" >&6
32856else
32857 cat >conftest.$ac_ext <<_ACEOF
32858/* confdefs.h. */
32859_ACEOF
32860cat confdefs.h >>conftest.$ac_ext
32861cat >>conftest.$ac_ext <<_ACEOF
32862/* end confdefs.h. */
ac1cb8d3
VS
32863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32865#define $ac_func innocuous_$ac_func
32866
a848cd7e
SC
32867/* System header to define __stub macros and hopefully few prototypes,
32868 which can conflict with char $ac_func (); below.
32869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32870 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32871
a848cd7e
SC
32872#ifdef __STDC__
32873# include <limits.h>
32874#else
32875# include <assert.h>
32876#endif
ac1cb8d3
VS
32877
32878#undef $ac_func
32879
a848cd7e
SC
32880/* Override any gcc2 internal prototype to avoid an error. */
32881#ifdef __cplusplus
32882extern "C"
32883{
32884#endif
32885/* We use char because int might match the return type of a gcc2
32886 builtin and then its argument prototype would still apply. */
32887char $ac_func ();
32888/* The GNU C library defines this for functions which it implements
32889 to always fail with ENOSYS. Some functions are actually named
32890 something starting with __ and the normal name is an alias. */
32891#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32892choke me
32893#else
32894char (*f) () = $ac_func;
32895#endif
32896#ifdef __cplusplus
32897}
32898#endif
32899
32900int
32901main ()
32902{
32903return f != $ac_func;
32904 ;
32905 return 0;
32906}
32907_ACEOF
32908rm -f conftest.$ac_objext conftest$ac_exeext
32909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32910 (eval $ac_link) 2>conftest.er1
a848cd7e 32911 ac_status=$?
ac1cb8d3
VS
32912 grep -v '^ *+' conftest.er1 >conftest.err
32913 rm -f conftest.er1
32914 cat conftest.err >&5
a848cd7e
SC
32915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32916 (exit $ac_status); } &&
89be85c2
VS
32917 { ac_try='test -z "$ac_c_werror_flag"
32918 || test ! -s conftest.err'
ac1cb8d3
VS
32919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32920 (eval $ac_try) 2>&5
32921 ac_status=$?
32922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32923 (exit $ac_status); }; } &&
32924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926 (eval $ac_try) 2>&5
32927 ac_status=$?
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; }; then
32930 eval "$as_ac_var=yes"
32931else
32932 echo "$as_me: failed program was:" >&5
32933sed 's/^/| /' conftest.$ac_ext >&5
32934
32935eval "$as_ac_var=no"
32936fi
ac1cb8d3
VS
32937rm -f conftest.err conftest.$ac_objext \
32938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32939fi
32940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32941echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32942if test `eval echo '${'$as_ac_var'}'` = yes; then
32943 cat >>confdefs.h <<_ACEOF
32944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32945_ACEOF
32946 cat >>confdefs.h <<\_ACEOF
32947#define HAVE_INET_ADDR 1
32948_ACEOF
32949
32950else
32951
32952 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32953echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32954if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32955 echo $ECHO_N "(cached) $ECHO_C" >&6
32956else
32957 ac_check_lib_save_LIBS=$LIBS
32958LIBS="-lnsl $LIBS"
32959cat >conftest.$ac_ext <<_ACEOF
32960/* confdefs.h. */
32961_ACEOF
32962cat confdefs.h >>conftest.$ac_ext
32963cat >>conftest.$ac_ext <<_ACEOF
32964/* end confdefs.h. */
32965
32966/* Override any gcc2 internal prototype to avoid an error. */
32967#ifdef __cplusplus
32968extern "C"
32969#endif
32970/* We use char because int might match the return type of a gcc2
32971 builtin and then its argument prototype would still apply. */
32972char inet_addr ();
32973int
32974main ()
32975{
32976inet_addr ();
32977 ;
32978 return 0;
32979}
32980_ACEOF
32981rm -f conftest.$ac_objext conftest$ac_exeext
32982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32983 (eval $ac_link) 2>conftest.er1
a848cd7e 32984 ac_status=$?
ac1cb8d3
VS
32985 grep -v '^ *+' conftest.er1 >conftest.err
32986 rm -f conftest.er1
32987 cat conftest.err >&5
a848cd7e
SC
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); } &&
89be85c2
VS
32990 { ac_try='test -z "$ac_c_werror_flag"
32991 || test ! -s conftest.err'
ac1cb8d3
VS
32992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32993 (eval $ac_try) 2>&5
32994 ac_status=$?
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; } &&
32997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32999 (eval $ac_try) 2>&5
33000 ac_status=$?
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; }; then
33003 ac_cv_lib_nsl_inet_addr=yes
33004else
33005 echo "$as_me: failed program was:" >&5
33006sed 's/^/| /' conftest.$ac_ext >&5
33007
33008ac_cv_lib_nsl_inet_addr=no
33009fi
ac1cb8d3
VS
33010rm -f conftest.err conftest.$ac_objext \
33011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33012LIBS=$ac_check_lib_save_LIBS
33013fi
33014echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33015echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33016if test $ac_cv_lib_nsl_inet_addr = yes; then
33017 INET_LINK="nsl"
33018else
33019
33020 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33021echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33022if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33024else
33025 ac_check_lib_save_LIBS=$LIBS
33026LIBS="-lresolv $LIBS"
33027cat >conftest.$ac_ext <<_ACEOF
33028/* confdefs.h. */
33029_ACEOF
33030cat confdefs.h >>conftest.$ac_ext
33031cat >>conftest.$ac_ext <<_ACEOF
33032/* end confdefs.h. */
33033
33034/* Override any gcc2 internal prototype to avoid an error. */
33035#ifdef __cplusplus
33036extern "C"
33037#endif
33038/* We use char because int might match the return type of a gcc2
33039 builtin and then its argument prototype would still apply. */
33040char inet_addr ();
33041int
33042main ()
33043{
33044inet_addr ();
33045 ;
33046 return 0;
33047}
33048_ACEOF
33049rm -f conftest.$ac_objext conftest$ac_exeext
33050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33051 (eval $ac_link) 2>conftest.er1
a848cd7e 33052 ac_status=$?
ac1cb8d3
VS
33053 grep -v '^ *+' conftest.er1 >conftest.err
33054 rm -f conftest.er1
33055 cat conftest.err >&5
a848cd7e
SC
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } &&
89be85c2
VS
33058 { ac_try='test -z "$ac_c_werror_flag"
33059 || test ! -s conftest.err'
ac1cb8d3
VS
33060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33061 (eval $ac_try) 2>&5
33062 ac_status=$?
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); }; } &&
33065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33067 (eval $ac_try) 2>&5
33068 ac_status=$?
33069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070 (exit $ac_status); }; }; then
33071 ac_cv_lib_resolv_inet_addr=yes
33072else
33073 echo "$as_me: failed program was:" >&5
33074sed 's/^/| /' conftest.$ac_ext >&5
33075
33076ac_cv_lib_resolv_inet_addr=no
33077fi
ac1cb8d3
VS
33078rm -f conftest.err conftest.$ac_objext \
33079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33080LIBS=$ac_check_lib_save_LIBS
33081fi
33082echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33083echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33084if test $ac_cv_lib_resolv_inet_addr = yes; then
33085 INET_LINK="resolv"
33086else
33087
33088 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33089echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33090if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33091 echo $ECHO_N "(cached) $ECHO_C" >&6
33092else
33093 ac_check_lib_save_LIBS=$LIBS
33094LIBS="-lsocket $LIBS"
33095cat >conftest.$ac_ext <<_ACEOF
33096/* confdefs.h. */
33097_ACEOF
33098cat confdefs.h >>conftest.$ac_ext
33099cat >>conftest.$ac_ext <<_ACEOF
33100/* end confdefs.h. */
33101
33102/* Override any gcc2 internal prototype to avoid an error. */
33103#ifdef __cplusplus
33104extern "C"
33105#endif
33106/* We use char because int might match the return type of a gcc2
33107 builtin and then its argument prototype would still apply. */
33108char inet_addr ();
33109int
33110main ()
33111{
33112inet_addr ();
33113 ;
33114 return 0;
33115}
33116_ACEOF
33117rm -f conftest.$ac_objext conftest$ac_exeext
33118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33119 (eval $ac_link) 2>conftest.er1
a848cd7e 33120 ac_status=$?
ac1cb8d3
VS
33121 grep -v '^ *+' conftest.er1 >conftest.err
33122 rm -f conftest.er1
33123 cat conftest.err >&5
a848cd7e
SC
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); } &&
89be85c2
VS
33126 { ac_try='test -z "$ac_c_werror_flag"
33127 || test ! -s conftest.err'
ac1cb8d3
VS
33128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33129 (eval $ac_try) 2>&5
33130 ac_status=$?
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; } &&
33133 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33135 (eval $ac_try) 2>&5
33136 ac_status=$?
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); }; }; then
33139 ac_cv_lib_socket_inet_addr=yes
33140else
33141 echo "$as_me: failed program was:" >&5
33142sed 's/^/| /' conftest.$ac_ext >&5
33143
33144ac_cv_lib_socket_inet_addr=no
33145fi
ac1cb8d3
VS
33146rm -f conftest.err conftest.$ac_objext \
33147 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33148LIBS=$ac_check_lib_save_LIBS
33149fi
33150echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33151echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33152if test $ac_cv_lib_socket_inet_addr = yes; then
33153 INET_LINK="socket"
33154
33155fi
33156
33157
33158
33159fi
33160
33161
33162
33163fi
33164
33165
33166
33167fi
33168done
33169
33170
33171
33172for ac_func in inet_aton
33173do
33174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33175echo "$as_me:$LINENO: checking for $ac_func" >&5
33176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33177if eval "test \"\${$as_ac_var+set}\" = set"; then
33178 echo $ECHO_N "(cached) $ECHO_C" >&6
33179else
33180 cat >conftest.$ac_ext <<_ACEOF
33181/* confdefs.h. */
33182_ACEOF
33183cat confdefs.h >>conftest.$ac_ext
33184cat >>conftest.$ac_ext <<_ACEOF
33185/* end confdefs.h. */
ac1cb8d3
VS
33186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33188#define $ac_func innocuous_$ac_func
33189
a848cd7e
SC
33190/* System header to define __stub macros and hopefully few prototypes,
33191 which can conflict with char $ac_func (); below.
33192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33193 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33194
a848cd7e
SC
33195#ifdef __STDC__
33196# include <limits.h>
33197#else
33198# include <assert.h>
33199#endif
ac1cb8d3
VS
33200
33201#undef $ac_func
33202
a848cd7e
SC
33203/* Override any gcc2 internal prototype to avoid an error. */
33204#ifdef __cplusplus
33205extern "C"
33206{
33207#endif
33208/* We use char because int might match the return type of a gcc2
33209 builtin and then its argument prototype would still apply. */
33210char $ac_func ();
33211/* The GNU C library defines this for functions which it implements
33212 to always fail with ENOSYS. Some functions are actually named
33213 something starting with __ and the normal name is an alias. */
33214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33215choke me
33216#else
33217char (*f) () = $ac_func;
33218#endif
33219#ifdef __cplusplus
33220}
33221#endif
33222
33223int
33224main ()
33225{
33226return f != $ac_func;
33227 ;
33228 return 0;
33229}
33230_ACEOF
33231rm -f conftest.$ac_objext conftest$ac_exeext
33232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33233 (eval $ac_link) 2>conftest.er1
a848cd7e 33234 ac_status=$?
ac1cb8d3
VS
33235 grep -v '^ *+' conftest.er1 >conftest.err
33236 rm -f conftest.er1
33237 cat conftest.err >&5
a848cd7e
SC
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); } &&
89be85c2
VS
33240 { ac_try='test -z "$ac_c_werror_flag"
33241 || test ! -s conftest.err'
ac1cb8d3
VS
33242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243 (eval $ac_try) 2>&5
33244 ac_status=$?
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); }; } &&
33247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; }; then
33253 eval "$as_ac_var=yes"
33254else
33255 echo "$as_me: failed program was:" >&5
33256sed 's/^/| /' conftest.$ac_ext >&5
33257
33258eval "$as_ac_var=no"
33259fi
ac1cb8d3
VS
33260rm -f conftest.err conftest.$ac_objext \
33261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33262fi
33263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33264echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33265if test `eval echo '${'$as_ac_var'}'` = yes; then
33266 cat >>confdefs.h <<_ACEOF
33267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33268_ACEOF
33269 cat >>confdefs.h <<\_ACEOF
33270#define HAVE_INET_ATON 1
33271_ACEOF
33272
33273else
33274
33275 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33276echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33277echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33278if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33280else
33281 ac_check_lib_save_LIBS=$LIBS
33282LIBS="-l$INET_LINK $LIBS"
33283cat >conftest.$ac_ext <<_ACEOF
33284/* confdefs.h. */
33285_ACEOF
33286cat confdefs.h >>conftest.$ac_ext
33287cat >>conftest.$ac_ext <<_ACEOF
33288/* end confdefs.h. */
33289
33290/* Override any gcc2 internal prototype to avoid an error. */
33291#ifdef __cplusplus
33292extern "C"
33293#endif
33294/* We use char because int might match the return type of a gcc2
33295 builtin and then its argument prototype would still apply. */
33296char inet_aton ();
33297int
33298main ()
33299{
33300inet_aton ();
33301 ;
33302 return 0;
33303}
33304_ACEOF
33305rm -f conftest.$ac_objext conftest$ac_exeext
33306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33307 (eval $ac_link) 2>conftest.er1
a848cd7e 33308 ac_status=$?
ac1cb8d3
VS
33309 grep -v '^ *+' conftest.er1 >conftest.err
33310 rm -f conftest.er1
33311 cat conftest.err >&5
a848cd7e
SC
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } &&
89be85c2
VS
33314 { ac_try='test -z "$ac_c_werror_flag"
33315 || test ! -s conftest.err'
ac1cb8d3
VS
33316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33317 (eval $ac_try) 2>&5
33318 ac_status=$?
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); }; } &&
33321 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; }; then
33327 eval "$as_ac_Lib=yes"
33328else
33329 echo "$as_me: failed program was:" >&5
33330sed 's/^/| /' conftest.$ac_ext >&5
33331
33332eval "$as_ac_Lib=no"
33333fi
ac1cb8d3
VS
33334rm -f conftest.err conftest.$ac_objext \
33335 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33336LIBS=$ac_check_lib_save_LIBS
33337fi
33338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33339echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33340if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33341 cat >>confdefs.h <<\_ACEOF
33342#define HAVE_INET_ATON 1
33343_ACEOF
33344
33345fi
33346
33347
33348fi
33349done
33350
33351
33352if test "x$INET_LINK" != "x"; then
33353 cat >>confdefs.h <<\_ACEOF
33354#define HAVE_INET_ADDR 1
33355_ACEOF
33356
33357 INET_LINK=" -l$INET_LINK"
33358fi
33359
33360fi
33361
33362
33363
33364EXTRALIBS_ESD=
33365echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33366echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33367if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33368 echo $ECHO_N "(cached) $ECHO_C" >&6
33369else
33370 ac_check_lib_save_LIBS=$LIBS
33371LIBS="-lesd $LIBS"
33372cat >conftest.$ac_ext <<_ACEOF
33373/* confdefs.h. */
33374_ACEOF
33375cat confdefs.h >>conftest.$ac_ext
33376cat >>conftest.$ac_ext <<_ACEOF
33377/* end confdefs.h. */
33378
33379/* Override any gcc2 internal prototype to avoid an error. */
33380#ifdef __cplusplus
33381extern "C"
33382#endif
33383/* We use char because int might match the return type of a gcc2
33384 builtin and then its argument prototype would still apply. */
33385char esd_close ();
33386int
33387main ()
33388{
33389esd_close ();
33390 ;
33391 return 0;
33392}
33393_ACEOF
33394rm -f conftest.$ac_objext conftest$ac_exeext
33395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33396 (eval $ac_link) 2>conftest.er1
a848cd7e 33397 ac_status=$?
ac1cb8d3
VS
33398 grep -v '^ *+' conftest.er1 >conftest.err
33399 rm -f conftest.er1
33400 cat conftest.err >&5
a848cd7e
SC
33401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33402 (exit $ac_status); } &&
89be85c2
VS
33403 { ac_try='test -z "$ac_c_werror_flag"
33404 || test ! -s conftest.err'
ac1cb8d3
VS
33405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33406 (eval $ac_try) 2>&5
33407 ac_status=$?
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); }; } &&
33410 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33416 ac_cv_lib_esd_esd_close=yes
33417else
33418 echo "$as_me: failed program was:" >&5
33419sed 's/^/| /' conftest.$ac_ext >&5
33420
33421ac_cv_lib_esd_esd_close=no
33422fi
ac1cb8d3
VS
33423rm -f conftest.err conftest.$ac_objext \
33424 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33425LIBS=$ac_check_lib_save_LIBS
33426fi
33427echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33428echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33429if test $ac_cv_lib_esd_esd_close = yes; then
33430
33431
33432for ac_header in esd.h
33433do
33434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33435if eval "test \"\${$as_ac_Header+set}\" = set"; then
33436 echo "$as_me:$LINENO: checking for $ac_header" >&5
33437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33438if eval "test \"\${$as_ac_Header+set}\" = set"; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33440fi
33441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33443else
33444 # Is the header compilable?
33445echo "$as_me:$LINENO: checking $ac_header usability" >&5
33446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33447cat >conftest.$ac_ext <<_ACEOF
33448/* confdefs.h. */
33449_ACEOF
33450cat confdefs.h >>conftest.$ac_ext
33451cat >>conftest.$ac_ext <<_ACEOF
33452/* end confdefs.h. */
33453$ac_includes_default
33454#include <$ac_header>
33455_ACEOF
33456rm -f conftest.$ac_objext
33457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33458 (eval $ac_compile) 2>conftest.er1
a848cd7e 33459 ac_status=$?
ac1cb8d3
VS
33460 grep -v '^ *+' conftest.er1 >conftest.err
33461 rm -f conftest.er1
33462 cat conftest.err >&5
a848cd7e
SC
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); } &&
89be85c2
VS
33465 { ac_try='test -z "$ac_c_werror_flag"
33466 || test ! -s conftest.err'
ac1cb8d3
VS
33467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33468 (eval $ac_try) 2>&5
33469 ac_status=$?
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); }; } &&
33472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474 (eval $ac_try) 2>&5
33475 ac_status=$?
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); }; }; then
33478 ac_header_compiler=yes
33479else
33480 echo "$as_me: failed program was:" >&5
33481sed 's/^/| /' conftest.$ac_ext >&5
33482
33483ac_header_compiler=no
33484fi
ac1cb8d3 33485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33487echo "${ECHO_T}$ac_header_compiler" >&6
33488
33489# Is the header present?
33490echo "$as_me:$LINENO: checking $ac_header presence" >&5
33491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33492cat >conftest.$ac_ext <<_ACEOF
33493/* confdefs.h. */
33494_ACEOF
33495cat confdefs.h >>conftest.$ac_ext
33496cat >>conftest.$ac_ext <<_ACEOF
33497/* end confdefs.h. */
33498#include <$ac_header>
33499_ACEOF
33500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33502 ac_status=$?
33503 grep -v '^ *+' conftest.er1 >conftest.err
33504 rm -f conftest.er1
33505 cat conftest.err >&5
33506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507 (exit $ac_status); } >/dev/null; then
33508 if test -s conftest.err; then
33509 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33511 else
33512 ac_cpp_err=
33513 fi
33514else
33515 ac_cpp_err=yes
33516fi
33517if test -z "$ac_cpp_err"; then
33518 ac_header_preproc=yes
33519else
33520 echo "$as_me: failed program was:" >&5
33521sed 's/^/| /' conftest.$ac_ext >&5
33522
33523 ac_header_preproc=no
33524fi
33525rm -f conftest.err conftest.$ac_ext
33526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33527echo "${ECHO_T}$ac_header_preproc" >&6
33528
33529# So? What about this header?
ac1cb8d3
VS
33530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33531 yes:no: )
a848cd7e
SC
33532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33536 ac_header_preproc=yes
a848cd7e 33537 ;;
ac1cb8d3 33538 no:yes:* )
a848cd7e
SC
33539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33551 (
33552 cat <<\_ASBOX
ac1cb8d3
VS
33553## ----------------------------------------- ##
33554## Report this to wx-dev@lists.wxwidgets.org ##
33555## ----------------------------------------- ##
a848cd7e
SC
33556_ASBOX
33557 ) |
33558 sed "s/^/$as_me: WARNING: /" >&2
33559 ;;
33560esac
33561echo "$as_me:$LINENO: checking for $ac_header" >&5
33562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33563if eval "test \"\${$as_ac_Header+set}\" = set"; then
33564 echo $ECHO_N "(cached) $ECHO_C" >&6
33565else
ac1cb8d3 33566 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33567fi
33568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33570
33571fi
33572if test `eval echo '${'$as_ac_Header'}'` = yes; then
33573 cat >>confdefs.h <<_ACEOF
33574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33575_ACEOF
33576
33577 EXTRALIBS_ESD="-lesd"
33578
33579fi
33580
33581done
33582
33583
33584fi
33585
33586
33587
33588echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33589echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33590cat >conftest.$ac_ext <<_ACEOF
33591/* confdefs.h. */
33592_ACEOF
33593cat confdefs.h >>conftest.$ac_ext
33594cat >>conftest.$ac_ext <<_ACEOF
33595/* end confdefs.h. */
33596#ifdef __linux__
33597 #include <linux/cdrom.h>
33598 #else
33599 /* For Solaris */
33600 #include <sys/cdio.h>
33601 #endif
33602
33603int
33604main ()
33605{
33606struct cdrom_tocentry entry, old_entry;
33607 ;
33608 return 0;
33609}
33610_ACEOF
33611rm -f conftest.$ac_objext
33612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33613 (eval $ac_compile) 2>conftest.er1
a848cd7e 33614 ac_status=$?
ac1cb8d3
VS
33615 grep -v '^ *+' conftest.er1 >conftest.err
33616 rm -f conftest.er1
33617 cat conftest.err >&5
a848cd7e
SC
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 (exit $ac_status); } &&
89be85c2
VS
33620 { ac_try='test -z "$ac_c_werror_flag"
33621 || test ! -s conftest.err'
ac1cb8d3
VS
33622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33623 (eval $ac_try) 2>&5
33624 ac_status=$?
33625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626 (exit $ac_status); }; } &&
33627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33629 (eval $ac_try) 2>&5
33630 ac_status=$?
33631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632 (exit $ac_status); }; }; then
33633 echo "$as_me:$LINENO: result: yes" >&5
33634echo "${ECHO_T}yes" >&6
33635 cat >>confdefs.h <<\_ACEOF
33636#define HAVE_KNOWN_CDROM_INTERFACE 1
33637_ACEOF
33638
33639else
33640 echo "$as_me: failed program was:" >&5
33641sed 's/^/| /' conftest.$ac_ext >&5
33642
33643echo "$as_me:$LINENO: result: no" >&5
33644echo "${ECHO_T}no" >&6
33645fi
ac1cb8d3 33646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33647
33648
33649cat >confcache <<\_ACEOF
33650# This file is a shell script that caches the results of configure
33651# tests run on this system so they can be shared between configure
33652# scripts and configure runs, see configure's option --config-cache.
33653# It is not useful on other systems. If it contains results you don't
33654# want to keep, you may remove or edit it.
33655#
33656# config.status only pays attention to the cache file if you give it
33657# the --recheck option to rerun configure.
33658#
33659# `ac_cv_env_foo' variables (set or unset) will be overridden when
33660# loading this file, other *unset* `ac_cv_foo' will be assigned the
33661# following values.
33662
33663_ACEOF
33664
33665# The following way of writing the cache mishandles newlines in values,
33666# but we know of no workaround that is simple, portable, and efficient.
33667# So, don't put newlines in cache variables' values.
33668# Ultrix sh set writes to stderr and can't be redirected directly,
33669# and sets the high bit in the cache file unless we assign to the vars.
33670{
33671 (set) 2>&1 |
33672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33673 *ac_space=\ *)
33674 # `set' does not quote correctly, so add quotes (double-quote
33675 # substitution turns \\\\ into \\, and sed turns \\ into \).
33676 sed -n \
ac1cb8d3
VS
33677 "s/'/'\\\\''/g;
33678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33679 ;;
33680 *)
33681 # `set' quotes correctly as required by POSIX, so do not add quotes.
33682 sed -n \
ac1cb8d3 33683 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33684 ;;
33685 esac;
33686} |
33687 sed '
33688 t clear
33689 : clear
33690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33691 t end
33692 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33693 : end' >>confcache
33694if diff $cache_file confcache >/dev/null 2>&1; then :; else
33695 if test -w $cache_file; then
33696 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33697 cat confcache >$cache_file
33698 else
33699 echo "not updating unwritable cache $cache_file"
33700 fi
33701fi
33702rm -f confcache
33703
33704
33705CPP_MT_FLAG=
33706if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33707
33708
33709 THREADS_LINK=
33710 THREADS_CFLAGS=
33711
33712 if test "$wxUSE_THREADS" = "yes" ; then
33713 if test "$USE_BEOS" = 1; then
33714 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33715echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33716 wxUSE_THREADS="no"
33717 fi
33718 fi
33719
33720 if test "$wxUSE_THREADS" = "yes" ; then
33721
33722
33723 THREAD_OPTS="-pthread"
33724 case "${host}" in
33725 *-*-solaris2* | *-*-sunos4* )
33726 if test "x$GCC" = "xyes"; then
33727 THREAD_OPTS="-pthreads $THREAD_OPTS"
33728 else
33729 THREAD_OPTS="-mt $THREAD_OPTS"
33730 fi
33731 ;;
33732 *-*-freebsd*)
33733 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33734 ;;
33735 *-*-darwin* | *-*-cygwin* )
33736 THREAD_OPTS=""
33737 ;;
33738 *-*-aix*)
33739 THREAD_OPTS="pthreads"
33740 ;;
33741 *-hp-hpux* )
33742 if test "x$GCC" != "xyes"; then
33743 THREAD_OPTS=""
33744 fi
33745 ;;
33746
33747 *-*-irix* )
33748 if test "x$GCC" = "xyes"; then
33749 THREAD_OPTS=""
33750 fi
33751 ;;
33752
33753 *-*-*UnixWare*)
33754 if test "x$GCC" != "xyes"; then
33755 THREAD_OPTS="-Ethread"
33756 fi
33757 ;;
33758 esac
33759
33760 THREAD_OPTS="$THREAD_OPTS pthread none"
33761
33762 THREADS_OK=no
33763 for flag in $THREAD_OPTS; do
33764 case $flag in
33765 none)
33766 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33767echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33768 ;;
33769
33770 -*)
33771 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33772echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33773 THREADS_CFLAGS="$flag"
33774 ;;
33775
33776 *)
33777 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33778echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33779 THREADS_LINK="-l$flag"
33780 ;;
33781 esac
33782
33783 save_LIBS="$LIBS"
33784 save_CFLAGS="$CFLAGS"
33785 LIBS="$THREADS_LINK $LIBS"
33786 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33787
33788 cat >conftest.$ac_ext <<_ACEOF
33789/* confdefs.h. */
33790_ACEOF
33791cat confdefs.h >>conftest.$ac_ext
33792cat >>conftest.$ac_ext <<_ACEOF
33793/* end confdefs.h. */
33794#include <pthread.h>
33795int
33796main ()
33797{
33798pthread_create(0,0,0,0);
33799 ;
33800 return 0;
33801}
33802_ACEOF
33803rm -f conftest.$ac_objext conftest$ac_exeext
33804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33805 (eval $ac_link) 2>conftest.er1
a848cd7e 33806 ac_status=$?
ac1cb8d3
VS
33807 grep -v '^ *+' conftest.er1 >conftest.err
33808 rm -f conftest.er1
33809 cat conftest.err >&5
a848cd7e
SC
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); } &&
89be85c2
VS
33812 { ac_try='test -z "$ac_c_werror_flag"
33813 || test ! -s conftest.err'
ac1cb8d3
VS
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; } &&
33819 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33821 (eval $ac_try) 2>&5
33822 ac_status=$?
33823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); }; }; then
33825 THREADS_OK=yes
33826else
33827 echo "$as_me: failed program was:" >&5
33828sed 's/^/| /' conftest.$ac_ext >&5
33829
33830fi
ac1cb8d3
VS
33831rm -f conftest.err conftest.$ac_objext \
33832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33833
33834 LIBS="$save_LIBS"
33835 CFLAGS="$save_CFLAGS"
33836
33837 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33838echo "${ECHO_T}$THREADS_OK" >&6
33839 if test "x$THREADS_OK" = "xyes"; then
33840 break;
33841 fi
33842
33843 THREADS_LINK=""
33844 THREADS_CFLAGS=""
33845 done
33846
33847 if test "x$THREADS_OK" != "xyes"; then
33848 wxUSE_THREADS=no
33849 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33850echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33851 else
33852 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33853 LIBS="$THREADS_LINK $LIBS"
33854
33855 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33856echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33857 flag=no
33858 case "${host}" in
33859 *-aix*)
33860 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33861 flag="-D_THREAD_SAFE"
33862 ;;
33863 *-freebsd*)
33864 flag="-D_THREAD_SAFE"
33865 ;;
33866 *-hp-hpux* )
33867 flag="-D_REENTRANT"
33868 if test "x$GCC" != "xyes"; then
33869 flag="$flag -D_RWSTD_MULTI_THREAD"
33870 fi
33871 ;;
33872 *solaris* | alpha*-osf*)
33873 flag="-D_REENTRANT"
33874 ;;
33875 esac
33876 echo "$as_me:$LINENO: result: ${flag}" >&5
33877echo "${ECHO_T}${flag}" >&6
33878 if test "x$flag" != xno; then
33879 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33880 fi
33881
33882 if test "x$THREADS_CFLAGS" != "x"; then
33883 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33884 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33885 fi
33886 fi
33887 fi
33888
33889 if test "$wxUSE_THREADS" = "yes" ; then
33890
33891for ac_func in thr_setconcurrency
33892do
33893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33894echo "$as_me:$LINENO: checking for $ac_func" >&5
33895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33896if eval "test \"\${$as_ac_var+set}\" = set"; then
33897 echo $ECHO_N "(cached) $ECHO_C" >&6
33898else
33899 cat >conftest.$ac_ext <<_ACEOF
33900/* confdefs.h. */
33901_ACEOF
33902cat confdefs.h >>conftest.$ac_ext
33903cat >>conftest.$ac_ext <<_ACEOF
33904/* end confdefs.h. */
ac1cb8d3
VS
33905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33907#define $ac_func innocuous_$ac_func
33908
a848cd7e
SC
33909/* System header to define __stub macros and hopefully few prototypes,
33910 which can conflict with char $ac_func (); below.
33911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33912 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33913
a848cd7e
SC
33914#ifdef __STDC__
33915# include <limits.h>
33916#else
33917# include <assert.h>
33918#endif
ac1cb8d3
VS
33919
33920#undef $ac_func
33921
a848cd7e
SC
33922/* Override any gcc2 internal prototype to avoid an error. */
33923#ifdef __cplusplus
33924extern "C"
33925{
33926#endif
33927/* We use char because int might match the return type of a gcc2
33928 builtin and then its argument prototype would still apply. */
33929char $ac_func ();
33930/* The GNU C library defines this for functions which it implements
33931 to always fail with ENOSYS. Some functions are actually named
33932 something starting with __ and the normal name is an alias. */
33933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33934choke me
33935#else
33936char (*f) () = $ac_func;
33937#endif
33938#ifdef __cplusplus
33939}
33940#endif
33941
33942int
33943main ()
33944{
33945return f != $ac_func;
33946 ;
33947 return 0;
33948}
33949_ACEOF
33950rm -f conftest.$ac_objext conftest$ac_exeext
33951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33952 (eval $ac_link) 2>conftest.er1
a848cd7e 33953 ac_status=$?
ac1cb8d3
VS
33954 grep -v '^ *+' conftest.er1 >conftest.err
33955 rm -f conftest.er1
33956 cat conftest.err >&5
a848cd7e
SC
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); } &&
89be85c2
VS
33959 { ac_try='test -z "$ac_c_werror_flag"
33960 || test ! -s conftest.err'
ac1cb8d3
VS
33961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962 (eval $ac_try) 2>&5
33963 ac_status=$?
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); }; } &&
33966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 (eval $ac_try) 2>&5
33969 ac_status=$?
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; }; then
33972 eval "$as_ac_var=yes"
33973else
33974 echo "$as_me: failed program was:" >&5
33975sed 's/^/| /' conftest.$ac_ext >&5
33976
33977eval "$as_ac_var=no"
33978fi
ac1cb8d3
VS
33979rm -f conftest.err conftest.$ac_objext \
33980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33981fi
33982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33984if test `eval echo '${'$as_ac_var'}'` = yes; then
33985 cat >>confdefs.h <<_ACEOF
33986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33987_ACEOF
33988
33989fi
33990done
33991
33992
33993
33994for ac_header in sched.h
33995do
33996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33997if eval "test \"\${$as_ac_Header+set}\" = set"; then
33998 echo "$as_me:$LINENO: checking for $ac_header" >&5
33999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34000if eval "test \"\${$as_ac_Header+set}\" = set"; then
34001 echo $ECHO_N "(cached) $ECHO_C" >&6
34002fi
34003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34005else
34006 # Is the header compilable?
34007echo "$as_me:$LINENO: checking $ac_header usability" >&5
34008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34009cat >conftest.$ac_ext <<_ACEOF
34010/* confdefs.h. */
34011_ACEOF
34012cat confdefs.h >>conftest.$ac_ext
34013cat >>conftest.$ac_ext <<_ACEOF
34014/* end confdefs.h. */
34015$ac_includes_default
34016#include <$ac_header>
34017_ACEOF
34018rm -f conftest.$ac_objext
34019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34020 (eval $ac_compile) 2>conftest.er1
a848cd7e 34021 ac_status=$?
ac1cb8d3
VS
34022 grep -v '^ *+' conftest.er1 >conftest.err
34023 rm -f conftest.er1
34024 cat conftest.err >&5
a848cd7e
SC
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); } &&
89be85c2
VS
34027 { ac_try='test -z "$ac_c_werror_flag"
34028 || test ! -s conftest.err'
ac1cb8d3
VS
34029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34030 (eval $ac_try) 2>&5
34031 ac_status=$?
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; } &&
34034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34036 (eval $ac_try) 2>&5
34037 ac_status=$?
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); }; }; then
34040 ac_header_compiler=yes
34041else
34042 echo "$as_me: failed program was:" >&5
34043sed 's/^/| /' conftest.$ac_ext >&5
34044
34045ac_header_compiler=no
34046fi
ac1cb8d3 34047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34048echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34049echo "${ECHO_T}$ac_header_compiler" >&6
34050
34051# Is the header present?
34052echo "$as_me:$LINENO: checking $ac_header presence" >&5
34053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34054cat >conftest.$ac_ext <<_ACEOF
34055/* confdefs.h. */
34056_ACEOF
34057cat confdefs.h >>conftest.$ac_ext
34058cat >>conftest.$ac_ext <<_ACEOF
34059/* end confdefs.h. */
34060#include <$ac_header>
34061_ACEOF
34062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34064 ac_status=$?
34065 grep -v '^ *+' conftest.er1 >conftest.err
34066 rm -f conftest.er1
34067 cat conftest.err >&5
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); } >/dev/null; then
34070 if test -s conftest.err; then
34071 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34073 else
34074 ac_cpp_err=
34075 fi
34076else
34077 ac_cpp_err=yes
34078fi
34079if test -z "$ac_cpp_err"; then
34080 ac_header_preproc=yes
34081else
34082 echo "$as_me: failed program was:" >&5
34083sed 's/^/| /' conftest.$ac_ext >&5
34084
34085 ac_header_preproc=no
34086fi
34087rm -f conftest.err conftest.$ac_ext
34088echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34089echo "${ECHO_T}$ac_header_preproc" >&6
34090
34091# So? What about this header?
ac1cb8d3
VS
34092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34093 yes:no: )
a848cd7e
SC
34094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34095echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34097echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34098 ac_header_preproc=yes
a848cd7e 34099 ;;
ac1cb8d3 34100 no:yes:* )
a848cd7e
SC
34101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34102echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34104echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34106echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34108echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34110echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34112echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34113 (
34114 cat <<\_ASBOX
ac1cb8d3
VS
34115## ----------------------------------------- ##
34116## Report this to wx-dev@lists.wxwidgets.org ##
34117## ----------------------------------------- ##
a848cd7e
SC
34118_ASBOX
34119 ) |
34120 sed "s/^/$as_me: WARNING: /" >&2
34121 ;;
34122esac
34123echo "$as_me:$LINENO: checking for $ac_header" >&5
34124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34125if eval "test \"\${$as_ac_Header+set}\" = set"; then
34126 echo $ECHO_N "(cached) $ECHO_C" >&6
34127else
ac1cb8d3 34128 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34129fi
34130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34132
34133fi
34134if test `eval echo '${'$as_ac_Header'}'` = yes; then
34135 cat >>confdefs.h <<_ACEOF
34136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34137_ACEOF
34138
34139fi
34140
34141done
34142
34143 if test "$ac_cv_header_sched_h" = "yes"; then
34144 echo "$as_me:$LINENO: checking for sched_yield" >&5
34145echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34146if test "${ac_cv_func_sched_yield+set}" = set; then
34147 echo $ECHO_N "(cached) $ECHO_C" >&6
34148else
34149 cat >conftest.$ac_ext <<_ACEOF
34150/* confdefs.h. */
34151_ACEOF
34152cat confdefs.h >>conftest.$ac_ext
34153cat >>conftest.$ac_ext <<_ACEOF
34154/* end confdefs.h. */
ac1cb8d3
VS
34155/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34157#define sched_yield innocuous_sched_yield
34158
a848cd7e
SC
34159/* System header to define __stub macros and hopefully few prototypes,
34160 which can conflict with char sched_yield (); below.
34161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34162 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34163
a848cd7e
SC
34164#ifdef __STDC__
34165# include <limits.h>
34166#else
34167# include <assert.h>
34168#endif
ac1cb8d3
VS
34169
34170#undef sched_yield
34171
a848cd7e
SC
34172/* Override any gcc2 internal prototype to avoid an error. */
34173#ifdef __cplusplus
34174extern "C"
34175{
34176#endif
34177/* We use char because int might match the return type of a gcc2
34178 builtin and then its argument prototype would still apply. */
34179char sched_yield ();
34180/* The GNU C library defines this for functions which it implements
34181 to always fail with ENOSYS. Some functions are actually named
34182 something starting with __ and the normal name is an alias. */
34183#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34184choke me
34185#else
34186char (*f) () = sched_yield;
34187#endif
34188#ifdef __cplusplus
34189}
34190#endif
34191
34192int
34193main ()
34194{
34195return f != sched_yield;
34196 ;
34197 return 0;
34198}
34199_ACEOF
34200rm -f conftest.$ac_objext conftest$ac_exeext
34201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34202 (eval $ac_link) 2>conftest.er1
a848cd7e 34203 ac_status=$?
ac1cb8d3
VS
34204 grep -v '^ *+' conftest.er1 >conftest.err
34205 rm -f conftest.er1
34206 cat conftest.err >&5
a848cd7e
SC
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); } &&
89be85c2
VS
34209 { ac_try='test -z "$ac_c_werror_flag"
34210 || test ! -s conftest.err'
ac1cb8d3
VS
34211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34212 (eval $ac_try) 2>&5
34213 ac_status=$?
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); }; } &&
34216 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34218 (eval $ac_try) 2>&5
34219 ac_status=$?
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 (exit $ac_status); }; }; then
34222 ac_cv_func_sched_yield=yes
34223else
34224 echo "$as_me: failed program was:" >&5
34225sed 's/^/| /' conftest.$ac_ext >&5
34226
34227ac_cv_func_sched_yield=no
34228fi
ac1cb8d3
VS
34229rm -f conftest.err conftest.$ac_objext \
34230 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34231fi
34232echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34233echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34234if test $ac_cv_func_sched_yield = yes; then
34235 cat >>confdefs.h <<\_ACEOF
34236#define HAVE_SCHED_YIELD 1
34237_ACEOF
34238
34239else
34240
34241 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34242echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34243if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34244 echo $ECHO_N "(cached) $ECHO_C" >&6
34245else
34246 ac_check_lib_save_LIBS=$LIBS
34247LIBS="-lposix4 $LIBS"
34248cat >conftest.$ac_ext <<_ACEOF
34249/* confdefs.h. */
34250_ACEOF
34251cat confdefs.h >>conftest.$ac_ext
34252cat >>conftest.$ac_ext <<_ACEOF
34253/* end confdefs.h. */
34254
34255/* Override any gcc2 internal prototype to avoid an error. */
34256#ifdef __cplusplus
34257extern "C"
34258#endif
34259/* We use char because int might match the return type of a gcc2
34260 builtin and then its argument prototype would still apply. */
34261char sched_yield ();
34262int
34263main ()
34264{
34265sched_yield ();
34266 ;
34267 return 0;
34268}
34269_ACEOF
34270rm -f conftest.$ac_objext conftest$ac_exeext
34271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34272 (eval $ac_link) 2>conftest.er1
a848cd7e 34273 ac_status=$?
ac1cb8d3
VS
34274 grep -v '^ *+' conftest.er1 >conftest.err
34275 rm -f conftest.er1
34276 cat conftest.err >&5
a848cd7e
SC
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); } &&
89be85c2
VS
34279 { ac_try='test -z "$ac_c_werror_flag"
34280 || test ! -s conftest.err'
ac1cb8d3
VS
34281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34282 (eval $ac_try) 2>&5
34283 ac_status=$?
34284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285 (exit $ac_status); }; } &&
34286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34288 (eval $ac_try) 2>&5
34289 ac_status=$?
34290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291 (exit $ac_status); }; }; then
34292 ac_cv_lib_posix4_sched_yield=yes
34293else
34294 echo "$as_me: failed program was:" >&5
34295sed 's/^/| /' conftest.$ac_ext >&5
34296
34297ac_cv_lib_posix4_sched_yield=no
34298fi
ac1cb8d3
VS
34299rm -f conftest.err conftest.$ac_objext \
34300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34301LIBS=$ac_check_lib_save_LIBS
34302fi
34303echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34304echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34305if test $ac_cv_lib_posix4_sched_yield = yes; then
34306 cat >>confdefs.h <<\_ACEOF
34307#define HAVE_SCHED_YIELD 1
34308_ACEOF
34309 POSIX4_LINK=" -lposix4"
34310else
34311 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34312echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34313
34314fi
34315
34316
34317
34318fi
34319
34320 fi
34321
34322 HAVE_PRIOR_FUNCS=0
34323 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34324echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34325if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34326 echo $ECHO_N "(cached) $ECHO_C" >&6
34327else
34328 cat >conftest.$ac_ext <<_ACEOF
34329/* confdefs.h. */
34330_ACEOF
34331cat confdefs.h >>conftest.$ac_ext
34332cat >>conftest.$ac_ext <<_ACEOF
34333/* end confdefs.h. */
ac1cb8d3
VS
34334/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34336#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34337
a848cd7e
SC
34338/* System header to define __stub macros and hopefully few prototypes,
34339 which can conflict with char pthread_attr_getschedpolicy (); below.
34340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34341 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34342
a848cd7e
SC
34343#ifdef __STDC__
34344# include <limits.h>
34345#else
34346# include <assert.h>
34347#endif
ac1cb8d3
VS
34348
34349#undef pthread_attr_getschedpolicy
34350
a848cd7e
SC
34351/* Override any gcc2 internal prototype to avoid an error. */
34352#ifdef __cplusplus
34353extern "C"
34354{
34355#endif
34356/* We use char because int might match the return type of a gcc2
34357 builtin and then its argument prototype would still apply. */
34358char pthread_attr_getschedpolicy ();
34359/* The GNU C library defines this for functions which it implements
34360 to always fail with ENOSYS. Some functions are actually named
34361 something starting with __ and the normal name is an alias. */
34362#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34363choke me
34364#else
34365char (*f) () = pthread_attr_getschedpolicy;
34366#endif
34367#ifdef __cplusplus
34368}
34369#endif
34370
34371int
34372main ()
34373{
34374return f != pthread_attr_getschedpolicy;
34375 ;
34376 return 0;
34377}
34378_ACEOF
34379rm -f conftest.$ac_objext conftest$ac_exeext
34380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34381 (eval $ac_link) 2>conftest.er1
a848cd7e 34382 ac_status=$?
ac1cb8d3
VS
34383 grep -v '^ *+' conftest.er1 >conftest.err
34384 rm -f conftest.er1
34385 cat conftest.err >&5
a848cd7e
SC
34386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387 (exit $ac_status); } &&
89be85c2
VS
34388 { ac_try='test -z "$ac_c_werror_flag"
34389 || test ! -s conftest.err'
ac1cb8d3
VS
34390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34391 (eval $ac_try) 2>&5
34392 ac_status=$?
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); }; } &&
34395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34397 (eval $ac_try) 2>&5
34398 ac_status=$?
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400 (exit $ac_status); }; }; then
34401 ac_cv_func_pthread_attr_getschedpolicy=yes
34402else
34403 echo "$as_me: failed program was:" >&5
34404sed 's/^/| /' conftest.$ac_ext >&5
34405
34406ac_cv_func_pthread_attr_getschedpolicy=no
34407fi
ac1cb8d3
VS
34408rm -f conftest.err conftest.$ac_objext \
34409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34410fi
34411echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34412echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34413if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34414 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34415echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34416if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34417 echo $ECHO_N "(cached) $ECHO_C" >&6
34418else
34419 cat >conftest.$ac_ext <<_ACEOF
34420/* confdefs.h. */
34421_ACEOF
34422cat confdefs.h >>conftest.$ac_ext
34423cat >>conftest.$ac_ext <<_ACEOF
34424/* end confdefs.h. */
ac1cb8d3
VS
34425/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34427#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34428
a848cd7e
SC
34429/* System header to define __stub macros and hopefully few prototypes,
34430 which can conflict with char pthread_attr_setschedparam (); below.
34431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34432 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34433
a848cd7e
SC
34434#ifdef __STDC__
34435# include <limits.h>
34436#else
34437# include <assert.h>
34438#endif
ac1cb8d3
VS
34439
34440#undef pthread_attr_setschedparam
34441
a848cd7e
SC
34442/* Override any gcc2 internal prototype to avoid an error. */
34443#ifdef __cplusplus
34444extern "C"
34445{
34446#endif
34447/* We use char because int might match the return type of a gcc2
34448 builtin and then its argument prototype would still apply. */
34449char pthread_attr_setschedparam ();
34450/* The GNU C library defines this for functions which it implements
34451 to always fail with ENOSYS. Some functions are actually named
34452 something starting with __ and the normal name is an alias. */
34453#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34454choke me
34455#else
34456char (*f) () = pthread_attr_setschedparam;
34457#endif
34458#ifdef __cplusplus
34459}
34460#endif
34461
34462int
34463main ()
34464{
34465return f != pthread_attr_setschedparam;
34466 ;
34467 return 0;
34468}
34469_ACEOF
34470rm -f conftest.$ac_objext conftest$ac_exeext
34471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34472 (eval $ac_link) 2>conftest.er1
a848cd7e 34473 ac_status=$?
ac1cb8d3
VS
34474 grep -v '^ *+' conftest.er1 >conftest.err
34475 rm -f conftest.er1
34476 cat conftest.err >&5
a848cd7e
SC
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } &&
89be85c2
VS
34479 { ac_try='test -z "$ac_c_werror_flag"
34480 || test ! -s conftest.err'
ac1cb8d3
VS
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; } &&
34486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34488 (eval $ac_try) 2>&5
34489 ac_status=$?
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; }; then
34492 ac_cv_func_pthread_attr_setschedparam=yes
34493else
34494 echo "$as_me: failed program was:" >&5
34495sed 's/^/| /' conftest.$ac_ext >&5
34496
34497ac_cv_func_pthread_attr_setschedparam=no
34498fi
ac1cb8d3
VS
34499rm -f conftest.err conftest.$ac_objext \
34500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34501fi
34502echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34503echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34504if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34505 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34506echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34507if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34508 echo $ECHO_N "(cached) $ECHO_C" >&6
34509else
34510 cat >conftest.$ac_ext <<_ACEOF
34511/* confdefs.h. */
34512_ACEOF
34513cat confdefs.h >>conftest.$ac_ext
34514cat >>conftest.$ac_ext <<_ACEOF
34515/* end confdefs.h. */
ac1cb8d3
VS
34516/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34518#define sched_get_priority_max innocuous_sched_get_priority_max
34519
a848cd7e
SC
34520/* System header to define __stub macros and hopefully few prototypes,
34521 which can conflict with char sched_get_priority_max (); below.
34522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34523 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34524
a848cd7e
SC
34525#ifdef __STDC__
34526# include <limits.h>
34527#else
34528# include <assert.h>
34529#endif
ac1cb8d3
VS
34530
34531#undef sched_get_priority_max
34532
a848cd7e
SC
34533/* Override any gcc2 internal prototype to avoid an error. */
34534#ifdef __cplusplus
34535extern "C"
34536{
34537#endif
34538/* We use char because int might match the return type of a gcc2
34539 builtin and then its argument prototype would still apply. */
34540char sched_get_priority_max ();
34541/* The GNU C library defines this for functions which it implements
34542 to always fail with ENOSYS. Some functions are actually named
34543 something starting with __ and the normal name is an alias. */
34544#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34545choke me
34546#else
34547char (*f) () = sched_get_priority_max;
34548#endif
34549#ifdef __cplusplus
34550}
34551#endif
34552
34553int
34554main ()
34555{
34556return f != sched_get_priority_max;
34557 ;
34558 return 0;
34559}
34560_ACEOF
34561rm -f conftest.$ac_objext conftest$ac_exeext
34562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34563 (eval $ac_link) 2>conftest.er1
a848cd7e 34564 ac_status=$?
ac1cb8d3
VS
34565 grep -v '^ *+' conftest.er1 >conftest.err
34566 rm -f conftest.er1
34567 cat conftest.err >&5
a848cd7e
SC
34568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569 (exit $ac_status); } &&
89be85c2
VS
34570 { ac_try='test -z "$ac_c_werror_flag"
34571 || test ! -s conftest.err'
ac1cb8d3
VS
34572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34573 (eval $ac_try) 2>&5
34574 ac_status=$?
34575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576 (exit $ac_status); }; } &&
34577 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34579 (eval $ac_try) 2>&5
34580 ac_status=$?
34581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); }; }; then
34583 ac_cv_func_sched_get_priority_max=yes
34584else
34585 echo "$as_me: failed program was:" >&5
34586sed 's/^/| /' conftest.$ac_ext >&5
34587
34588ac_cv_func_sched_get_priority_max=no
34589fi
ac1cb8d3
VS
34590rm -f conftest.err conftest.$ac_objext \
34591 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34592fi
34593echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34594echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34595if test $ac_cv_func_sched_get_priority_max = yes; then
34596 HAVE_PRIOR_FUNCS=1
34597else
34598 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34599echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34600if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34601 echo $ECHO_N "(cached) $ECHO_C" >&6
34602else
34603 ac_check_lib_save_LIBS=$LIBS
34604LIBS="-lposix4 $LIBS"
34605cat >conftest.$ac_ext <<_ACEOF
34606/* confdefs.h. */
34607_ACEOF
34608cat confdefs.h >>conftest.$ac_ext
34609cat >>conftest.$ac_ext <<_ACEOF
34610/* end confdefs.h. */
34611
34612/* Override any gcc2 internal prototype to avoid an error. */
34613#ifdef __cplusplus
34614extern "C"
34615#endif
34616/* We use char because int might match the return type of a gcc2
34617 builtin and then its argument prototype would still apply. */
34618char sched_get_priority_max ();
34619int
34620main ()
34621{
34622sched_get_priority_max ();
34623 ;
34624 return 0;
34625}
34626_ACEOF
34627rm -f conftest.$ac_objext conftest$ac_exeext
34628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34629 (eval $ac_link) 2>conftest.er1
a848cd7e 34630 ac_status=$?
ac1cb8d3
VS
34631 grep -v '^ *+' conftest.er1 >conftest.err
34632 rm -f conftest.er1
34633 cat conftest.err >&5
a848cd7e
SC
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); } &&
89be85c2
VS
34636 { ac_try='test -z "$ac_c_werror_flag"
34637 || test ! -s conftest.err'
ac1cb8d3
VS
34638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34639 (eval $ac_try) 2>&5
34640 ac_status=$?
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); }; } &&
34643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645 (eval $ac_try) 2>&5
34646 ac_status=$?
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; }; then
34649 ac_cv_lib_posix4_sched_get_priority_max=yes
34650else
34651 echo "$as_me: failed program was:" >&5
34652sed 's/^/| /' conftest.$ac_ext >&5
34653
34654ac_cv_lib_posix4_sched_get_priority_max=no
34655fi
ac1cb8d3
VS
34656rm -f conftest.err conftest.$ac_objext \
34657 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34658LIBS=$ac_check_lib_save_LIBS
34659fi
34660echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34661echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34662if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34663
34664 HAVE_PRIOR_FUNCS=1
34665 POSIX4_LINK=" -lposix4"
34666
34667fi
34668
34669
34670fi
34671
34672
34673fi
34674
34675
34676fi
34677
34678
34679 if test "$HAVE_PRIOR_FUNCS" = 1; then
34680 cat >>confdefs.h <<\_ACEOF
34681#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34682_ACEOF
34683
34684 else
34685 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34686echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34687 fi
34688
34689 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34690echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34691if test "${ac_cv_func_pthread_cancel+set}" = set; then
34692 echo $ECHO_N "(cached) $ECHO_C" >&6
34693else
34694 cat >conftest.$ac_ext <<_ACEOF
34695/* confdefs.h. */
34696_ACEOF
34697cat confdefs.h >>conftest.$ac_ext
34698cat >>conftest.$ac_ext <<_ACEOF
34699/* end confdefs.h. */
ac1cb8d3
VS
34700/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34702#define pthread_cancel innocuous_pthread_cancel
34703
a848cd7e
SC
34704/* System header to define __stub macros and hopefully few prototypes,
34705 which can conflict with char pthread_cancel (); below.
34706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34707 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34708
a848cd7e
SC
34709#ifdef __STDC__
34710# include <limits.h>
34711#else
34712# include <assert.h>
34713#endif
ac1cb8d3
VS
34714
34715#undef pthread_cancel
34716
a848cd7e
SC
34717/* Override any gcc2 internal prototype to avoid an error. */
34718#ifdef __cplusplus
34719extern "C"
34720{
34721#endif
34722/* We use char because int might match the return type of a gcc2
34723 builtin and then its argument prototype would still apply. */
34724char pthread_cancel ();
34725/* The GNU C library defines this for functions which it implements
34726 to always fail with ENOSYS. Some functions are actually named
34727 something starting with __ and the normal name is an alias. */
34728#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34729choke me
34730#else
34731char (*f) () = pthread_cancel;
34732#endif
34733#ifdef __cplusplus
34734}
34735#endif
34736
34737int
34738main ()
34739{
34740return f != pthread_cancel;
34741 ;
34742 return 0;
34743}
34744_ACEOF
34745rm -f conftest.$ac_objext conftest$ac_exeext
34746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34747 (eval $ac_link) 2>conftest.er1
a848cd7e 34748 ac_status=$?
ac1cb8d3
VS
34749 grep -v '^ *+' conftest.er1 >conftest.err
34750 rm -f conftest.er1
34751 cat conftest.err >&5
a848cd7e
SC
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); } &&
89be85c2
VS
34754 { ac_try='test -z "$ac_c_werror_flag"
34755 || test ! -s conftest.err'
ac1cb8d3
VS
34756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34757 (eval $ac_try) 2>&5
34758 ac_status=$?
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); }; } &&
34761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; }; then
34767 ac_cv_func_pthread_cancel=yes
34768else
34769 echo "$as_me: failed program was:" >&5
34770sed 's/^/| /' conftest.$ac_ext >&5
34771
34772ac_cv_func_pthread_cancel=no
34773fi
ac1cb8d3
VS
34774rm -f conftest.err conftest.$ac_objext \
34775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34776fi
34777echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34778echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34779if test $ac_cv_func_pthread_cancel = yes; then
34780 cat >>confdefs.h <<\_ACEOF
34781#define HAVE_PTHREAD_CANCEL 1
34782_ACEOF
34783
34784else
34785 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34786echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34787fi
34788
34789
34790
34791
34792 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34793echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34794if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34796else
34797
34798 cat >conftest.$ac_ext <<_ACEOF
34799/* confdefs.h. */
34800_ACEOF
34801cat confdefs.h >>conftest.$ac_ext
34802cat >>conftest.$ac_ext <<_ACEOF
34803/* end confdefs.h. */
34804#include <pthread.h>
34805int
34806main ()
34807{
34808
34809 pthread_mutexattr_t attr;
34810 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34811
34812 ;
34813 return 0;
34814}
34815_ACEOF
34816rm -f conftest.$ac_objext
34817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34818 (eval $ac_compile) 2>conftest.er1
a848cd7e 34819 ac_status=$?
ac1cb8d3
VS
34820 grep -v '^ *+' conftest.er1 >conftest.err
34821 rm -f conftest.er1
34822 cat conftest.err >&5
a848cd7e
SC
34823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); } &&
89be85c2
VS
34825 { ac_try='test -z "$ac_c_werror_flag"
34826 || test ! -s conftest.err'
ac1cb8d3
VS
34827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34828 (eval $ac_try) 2>&5
34829 ac_status=$?
34830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 (exit $ac_status); }; } &&
34832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34834 (eval $ac_try) 2>&5
34835 ac_status=$?
34836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837 (exit $ac_status); }; }; then
34838
34839 wx_cv_type_pthread_mutexattr_t=yes
34840
34841else
34842 echo "$as_me: failed program was:" >&5
34843sed 's/^/| /' conftest.$ac_ext >&5
34844
34845
34846 wx_cv_type_pthread_mutexattr_t=no
34847
34848
34849fi
ac1cb8d3 34850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34851
34852fi
34853echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34854echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34855
34856 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34857 cat >>confdefs.h <<\_ACEOF
34858#define HAVE_PTHREAD_MUTEXATTR_T 1
34859_ACEOF
34860
34861 else
34862 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34863echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34864if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34866else
34867
34868 cat >conftest.$ac_ext <<_ACEOF
34869/* confdefs.h. */
34870_ACEOF
34871cat confdefs.h >>conftest.$ac_ext
34872cat >>conftest.$ac_ext <<_ACEOF
34873/* end confdefs.h. */
34874#include <pthread.h>
34875int
34876main ()
34877{
34878
34879 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34880
34881 ;
34882 return 0;
34883}
34884_ACEOF
34885rm -f conftest.$ac_objext
34886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34887 (eval $ac_compile) 2>conftest.er1
a848cd7e 34888 ac_status=$?
ac1cb8d3
VS
34889 grep -v '^ *+' conftest.er1 >conftest.err
34890 rm -f conftest.er1
34891 cat conftest.err >&5
a848cd7e
SC
34892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893 (exit $ac_status); } &&
89be85c2
VS
34894 { ac_try='test -z "$ac_c_werror_flag"
34895 || test ! -s conftest.err'
ac1cb8d3
VS
34896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34897 (eval $ac_try) 2>&5
34898 ac_status=$?
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); }; } &&
34901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34903 (eval $ac_try) 2>&5
34904 ac_status=$?
34905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); }; }; then
34907
34908 wx_cv_type_pthread_rec_mutex_init=yes
34909
34910else
34911 echo "$as_me: failed program was:" >&5
34912sed 's/^/| /' conftest.$ac_ext >&5
34913
34914
34915 wx_cv_type_pthread_rec_mutex_init=no
34916
34917
34918fi
ac1cb8d3 34919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34920
34921fi
34922echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34923echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34924 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34925 cat >>confdefs.h <<\_ACEOF
34926#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34927_ACEOF
34928
34929 else
34930 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34931echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34932 fi
34933 fi
34934 fi
34935
34936else
34937 if test "$wxUSE_THREADS" = "yes" ; then
34938 case "${host}" in
34939 *-*-mingw32* )
34940 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34941echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34942if test "${wx_cv_cflags_mthread+set}" = set; then
34943 echo $ECHO_N "(cached) $ECHO_C" >&6
34944else
34945
34946 CFLAGS_OLD="$CFLAGS"
34947 CFLAGS="$CFLAGS -mthreads"
34948 cat >conftest.$ac_ext <<_ACEOF
34949/* confdefs.h. */
34950_ACEOF
34951cat confdefs.h >>conftest.$ac_ext
34952cat >>conftest.$ac_ext <<_ACEOF
34953/* end confdefs.h. */
34954
34955int
34956main ()
34957{
34958
34959 ;
34960 return 0;
34961}
34962_ACEOF
34963rm -f conftest.$ac_objext
34964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34965 (eval $ac_compile) 2>conftest.er1
a848cd7e 34966 ac_status=$?
ac1cb8d3
VS
34967 grep -v '^ *+' conftest.er1 >conftest.err
34968 rm -f conftest.er1
34969 cat conftest.err >&5
a848cd7e
SC
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); } &&
89be85c2
VS
34972 { ac_try='test -z "$ac_c_werror_flag"
34973 || test ! -s conftest.err'
ac1cb8d3
VS
34974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34975 (eval $ac_try) 2>&5
34976 ac_status=$?
34977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978 (exit $ac_status); }; } &&
34979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34981 (eval $ac_try) 2>&5
34982 ac_status=$?
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); }; }; then
34985 wx_cv_cflags_mthread=yes
34986else
34987 echo "$as_me: failed program was:" >&5
34988sed 's/^/| /' conftest.$ac_ext >&5
34989
34990wx_cv_cflags_mthread=no
34991
34992fi
ac1cb8d3 34993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34994
34995
34996fi
34997echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34998echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34999
35000 if test "$wx_cv_cflags_mthread" = "yes"; then
35001 CXXFLAGS="$CXXFLAGS -mthreads"
35002 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35003 LDFLAGS="$LDFLAGS -mthreads"
35004 else
35005 CFLAGS="$CFLAGS_OLD"
35006 fi
35007 ;;
35008 *-pc-os2*emx )
35009 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35010 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35011 LDFLAGS="$LDFLAGS -Zmt"
35012 ;;
35013 esac
35014 fi
35015fi
35016
35017if test "$wxUSE_THREADS" = "yes"; then
35018 cat >>confdefs.h <<\_ACEOF
35019#define wxUSE_THREADS 1
35020_ACEOF
35021
35022
35023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35024else
35025 if test "$ac_cv_func_strtok_r" = "yes"; then
35026 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35027echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35028 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35029 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35030 echo "$as_me:$LINENO: result: yes" >&5
35031echo "${ECHO_T}yes" >&6
35032 else
35033 echo "$as_me:$LINENO: result: no" >&5
35034echo "${ECHO_T}no" >&6
35035 fi
35036 fi
35037fi
35038
35039if test "$WXGTK20" = 1 ; then
35040 cat >>confdefs.h <<_ACEOF
35041#define __WXGTK20__ $WXGTK20
35042_ACEOF
35043
35044 WXGTK12=1
35045fi
35046
35047if test "$WXGTK12" = 1 ; then
35048 cat >>confdefs.h <<_ACEOF
35049#define __WXGTK12__ $WXGTK12
35050_ACEOF
35051
35052fi
35053
35054if test "$WXGTK127" = 1 ; then
35055 cat >>confdefs.h <<_ACEOF
35056#define __WXGTK127__ $WXGTK127
35057_ACEOF
35058
35059fi
35060
35061if test "$WXGPE" = 1 ; then
35062 cat >>confdefs.h <<_ACEOF
35063#define __WXGPE__ $WXGPE
35064_ACEOF
35065
35066fi
35067
35068WXDEBUG=
35069
35070if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35071 WXDEBUG="-g"
35072 wxUSE_OPTIMISE=no
35073fi
35074
35075if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35076 wxUSE_DEBUG_INFO=yes
35077 WXDEBUG="-ggdb"
35078fi
35079
35080if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35081 cat >>confdefs.h <<\_ACEOF
35082#define WXDEBUG 1
35083_ACEOF
35084
35085 WXDEBUG_DEFINE="-D__WXDEBUG__"
35086else
35087 if test "$wxUSE_GTK" = 1 ; then
35088 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35089 fi
35090fi
35091
35092if test "$wxUSE_MEM_TRACING" = "yes" ; then
35093 cat >>confdefs.h <<\_ACEOF
35094#define wxUSE_MEMORY_TRACING 1
35095_ACEOF
35096
35097 cat >>confdefs.h <<\_ACEOF
35098#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35099_ACEOF
35100
35101 cat >>confdefs.h <<\_ACEOF
35102#define wxUSE_DEBUG_NEW_ALWAYS 1
35103_ACEOF
35104
35105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35106fi
35107
35108if test "$wxUSE_DMALLOC" = "yes" ; then
35109 DMALLOC_LIBS="-ldmalloc"
35110fi
35111
35112PROFILE=
35113if test "$wxUSE_PROFILE" = "yes" ; then
35114 PROFILE=" -pg"
35115fi
35116
35117CODE_GEN_FLAGS=
35118CODE_GEN_FLAGS_CXX=
35119if test "$GCC" = "yes" ; then
35120 if test "$wxUSE_NO_RTTI" = "yes" ; then
35121 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35122 fi
35123 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35124 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35125 fi
35126 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35127 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35128 fi
35129
35130 case "${host}" in
35131 powerpc*-*-aix* )
35132 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35133 ;;
35134 *-hppa* )
35135 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35136 ;;
35137 esac
35138fi
35139
35140OPTIMISE=
35141if test "$wxUSE_OPTIMISE" = "no" ; then
35142 if test "$GCC" = yes ; then
35143 OPTIMISE="-O0"
35144 fi
35145else
35146 if test "$GCC" = yes ; then
35147 OPTIMISE="-O2"
35148
35149 case "${host}" in
35150 i586-*-*|i686-*-* )
35151 OPTIMISE="${OPTIMISE} "
35152 ;;
35153 esac
35154 else
35155 OPTIMISE="-O"
35156 fi
35157fi
35158
35159
35160if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35161 cat >>confdefs.h <<\_ACEOF
35162#define WXWIN_COMPATIBILITY_2_2 1
35163_ACEOF
35164
35165
35166 WXWIN_COMPATIBILITY_2_4="yes"
35167fi
35168
35169if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35170 cat >>confdefs.h <<\_ACEOF
35171#define WXWIN_COMPATIBILITY_2_4 1
35172_ACEOF
35173
35174fi
35175
35176
35177if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35178 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35179#define wxUSE_GUI 1
35180_ACEOF
35181
35182
370fd4c2 35183 fi
a848cd7e
SC
35184
35185
35186if test "$wxUSE_UNIX" = "yes"; then
35187 cat >>confdefs.h <<\_ACEOF
35188#define wxUSE_UNIX 1
35189_ACEOF
35190
35191fi
35192
35193
35194if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35195
35196 HAVE_DL_FUNCS=0
35197 HAVE_SHL_FUNCS=0
35198 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35199 if test "$USE_DARWIN" = 1; then
35200 HAVE_DL_FUNCS=1
35201 else
35202
35203for ac_func in dlopen
35204do
35205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35206echo "$as_me:$LINENO: checking for $ac_func" >&5
35207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35208if eval "test \"\${$as_ac_var+set}\" = set"; then
35209 echo $ECHO_N "(cached) $ECHO_C" >&6
35210else
35211 cat >conftest.$ac_ext <<_ACEOF
35212/* confdefs.h. */
35213_ACEOF
35214cat confdefs.h >>conftest.$ac_ext
35215cat >>conftest.$ac_ext <<_ACEOF
35216/* end confdefs.h. */
ac1cb8d3
VS
35217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35219#define $ac_func innocuous_$ac_func
35220
a848cd7e
SC
35221/* System header to define __stub macros and hopefully few prototypes,
35222 which can conflict with char $ac_func (); below.
35223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35224 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35225
a848cd7e
SC
35226#ifdef __STDC__
35227# include <limits.h>
35228#else
35229# include <assert.h>
35230#endif
ac1cb8d3
VS
35231
35232#undef $ac_func
35233
a848cd7e
SC
35234/* Override any gcc2 internal prototype to avoid an error. */
35235#ifdef __cplusplus
35236extern "C"
35237{
35238#endif
35239/* We use char because int might match the return type of a gcc2
35240 builtin and then its argument prototype would still apply. */
35241char $ac_func ();
35242/* The GNU C library defines this for functions which it implements
35243 to always fail with ENOSYS. Some functions are actually named
35244 something starting with __ and the normal name is an alias. */
35245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35246choke me
35247#else
35248char (*f) () = $ac_func;
35249#endif
35250#ifdef __cplusplus
35251}
35252#endif
35253
35254int
35255main ()
35256{
35257return f != $ac_func;
35258 ;
35259 return 0;
35260}
35261_ACEOF
35262rm -f conftest.$ac_objext conftest$ac_exeext
35263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35264 (eval $ac_link) 2>conftest.er1
a848cd7e 35265 ac_status=$?
ac1cb8d3
VS
35266 grep -v '^ *+' conftest.er1 >conftest.err
35267 rm -f conftest.er1
35268 cat conftest.err >&5
a848cd7e
SC
35269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270 (exit $ac_status); } &&
89be85c2
VS
35271 { ac_try='test -z "$ac_c_werror_flag"
35272 || test ! -s conftest.err'
ac1cb8d3
VS
35273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35274 (eval $ac_try) 2>&5
35275 ac_status=$?
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); }; } &&
35278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280 (eval $ac_try) 2>&5
35281 ac_status=$?
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); }; }; then
35284 eval "$as_ac_var=yes"
35285else
35286 echo "$as_me: failed program was:" >&5
35287sed 's/^/| /' conftest.$ac_ext >&5
35288
35289eval "$as_ac_var=no"
35290fi
ac1cb8d3
VS
35291rm -f conftest.err conftest.$ac_objext \
35292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35293fi
35294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35296if test `eval echo '${'$as_ac_var'}'` = yes; then
35297 cat >>confdefs.h <<_ACEOF
35298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35299_ACEOF
35300
35301 cat >>confdefs.h <<\_ACEOF
35302#define HAVE_DLOPEN 1
35303_ACEOF
35304
35305 HAVE_DL_FUNCS=1
35306
35307else
35308
35309 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35310echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35311if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35312 echo $ECHO_N "(cached) $ECHO_C" >&6
35313else
35314 ac_check_lib_save_LIBS=$LIBS
35315LIBS="-ldl $LIBS"
35316cat >conftest.$ac_ext <<_ACEOF
35317/* confdefs.h. */
35318_ACEOF
35319cat confdefs.h >>conftest.$ac_ext
35320cat >>conftest.$ac_ext <<_ACEOF
35321/* end confdefs.h. */
35322
35323/* Override any gcc2 internal prototype to avoid an error. */
35324#ifdef __cplusplus
35325extern "C"
35326#endif
35327/* We use char because int might match the return type of a gcc2
35328 builtin and then its argument prototype would still apply. */
35329char dlopen ();
35330int
35331main ()
35332{
35333dlopen ();
35334 ;
35335 return 0;
35336}
35337_ACEOF
35338rm -f conftest.$ac_objext conftest$ac_exeext
35339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35340 (eval $ac_link) 2>conftest.er1
a848cd7e 35341 ac_status=$?
ac1cb8d3
VS
35342 grep -v '^ *+' conftest.er1 >conftest.err
35343 rm -f conftest.er1
35344 cat conftest.err >&5
a848cd7e
SC
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); } &&
89be85c2
VS
35347 { ac_try='test -z "$ac_c_werror_flag"
35348 || test ! -s conftest.err'
ac1cb8d3
VS
35349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350 (eval $ac_try) 2>&5
35351 ac_status=$?
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); }; } &&
35354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35356 (eval $ac_try) 2>&5
35357 ac_status=$?
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); }; }; then
35360 ac_cv_lib_dl_dlopen=yes
35361else
35362 echo "$as_me: failed program was:" >&5
35363sed 's/^/| /' conftest.$ac_ext >&5
35364
35365ac_cv_lib_dl_dlopen=no
35366fi
ac1cb8d3
VS
35367rm -f conftest.err conftest.$ac_objext \
35368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35369LIBS=$ac_check_lib_save_LIBS
35370fi
35371echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35372echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35373if test $ac_cv_lib_dl_dlopen = yes; then
35374
35375 cat >>confdefs.h <<\_ACEOF
35376#define HAVE_DLOPEN 1
35377_ACEOF
35378
35379 HAVE_DL_FUNCS=1
35380 DL_LINK=" -ldl$DL_LINK"
35381
35382else
35383
35384
35385for ac_func in shl_load
35386do
35387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35388echo "$as_me:$LINENO: checking for $ac_func" >&5
35389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35390if eval "test \"\${$as_ac_var+set}\" = set"; then
35391 echo $ECHO_N "(cached) $ECHO_C" >&6
35392else
35393 cat >conftest.$ac_ext <<_ACEOF
35394/* confdefs.h. */
35395_ACEOF
35396cat confdefs.h >>conftest.$ac_ext
35397cat >>conftest.$ac_ext <<_ACEOF
35398/* end confdefs.h. */
ac1cb8d3
VS
35399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35401#define $ac_func innocuous_$ac_func
35402
a848cd7e
SC
35403/* System header to define __stub macros and hopefully few prototypes,
35404 which can conflict with char $ac_func (); below.
35405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35407
a848cd7e
SC
35408#ifdef __STDC__
35409# include <limits.h>
35410#else
35411# include <assert.h>
35412#endif
ac1cb8d3
VS
35413
35414#undef $ac_func
35415
a848cd7e
SC
35416/* Override any gcc2 internal prototype to avoid an error. */
35417#ifdef __cplusplus
35418extern "C"
35419{
35420#endif
35421/* We use char because int might match the return type of a gcc2
35422 builtin and then its argument prototype would still apply. */
35423char $ac_func ();
35424/* The GNU C library defines this for functions which it implements
35425 to always fail with ENOSYS. Some functions are actually named
35426 something starting with __ and the normal name is an alias. */
35427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35428choke me
35429#else
35430char (*f) () = $ac_func;
35431#endif
35432#ifdef __cplusplus
35433}
35434#endif
35435
35436int
35437main ()
35438{
35439return f != $ac_func;
35440 ;
35441 return 0;
35442}
35443_ACEOF
35444rm -f conftest.$ac_objext conftest$ac_exeext
35445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35446 (eval $ac_link) 2>conftest.er1
a848cd7e 35447 ac_status=$?
ac1cb8d3
VS
35448 grep -v '^ *+' conftest.er1 >conftest.err
35449 rm -f conftest.er1
35450 cat conftest.err >&5
a848cd7e
SC
35451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35452 (exit $ac_status); } &&
89be85c2
VS
35453 { ac_try='test -z "$ac_c_werror_flag"
35454 || test ! -s conftest.err'
ac1cb8d3
VS
35455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456 (eval $ac_try) 2>&5
35457 ac_status=$?
35458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459 (exit $ac_status); }; } &&
35460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35462 (eval $ac_try) 2>&5
35463 ac_status=$?
35464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465 (exit $ac_status); }; }; then
35466 eval "$as_ac_var=yes"
35467else
35468 echo "$as_me: failed program was:" >&5
35469sed 's/^/| /' conftest.$ac_ext >&5
35470
35471eval "$as_ac_var=no"
35472fi
ac1cb8d3
VS
35473rm -f conftest.err conftest.$ac_objext \
35474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35475fi
35476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35478if test `eval echo '${'$as_ac_var'}'` = yes; then
35479 cat >>confdefs.h <<_ACEOF
35480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35481_ACEOF
35482
35483 cat >>confdefs.h <<\_ACEOF
35484#define HAVE_SHL_LOAD 1
35485_ACEOF
35486
35487 HAVE_SHL_FUNCS=1
35488
35489else
35490
35491 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35492echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35493if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35494 echo $ECHO_N "(cached) $ECHO_C" >&6
35495else
35496 ac_check_lib_save_LIBS=$LIBS
35497LIBS="-lshl_load $LIBS"
35498cat >conftest.$ac_ext <<_ACEOF
35499/* confdefs.h. */
35500_ACEOF
35501cat confdefs.h >>conftest.$ac_ext
35502cat >>conftest.$ac_ext <<_ACEOF
35503/* end confdefs.h. */
35504
35505/* Override any gcc2 internal prototype to avoid an error. */
35506#ifdef __cplusplus
35507extern "C"
35508#endif
35509/* We use char because int might match the return type of a gcc2
35510 builtin and then its argument prototype would still apply. */
35511char dld ();
35512int
35513main ()
35514{
35515dld ();
35516 ;
35517 return 0;
35518}
35519_ACEOF
35520rm -f conftest.$ac_objext conftest$ac_exeext
35521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35522 (eval $ac_link) 2>conftest.er1
a848cd7e 35523 ac_status=$?
ac1cb8d3
VS
35524 grep -v '^ *+' conftest.er1 >conftest.err
35525 rm -f conftest.er1
35526 cat conftest.err >&5
a848cd7e
SC
35527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35528 (exit $ac_status); } &&
89be85c2
VS
35529 { ac_try='test -z "$ac_c_werror_flag"
35530 || test ! -s conftest.err'
ac1cb8d3
VS
35531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35532 (eval $ac_try) 2>&5
35533 ac_status=$?
35534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35535 (exit $ac_status); }; } &&
35536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35538 (eval $ac_try) 2>&5
35539 ac_status=$?
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); }; }; then
35542 ac_cv_lib_shl_load_dld=yes
35543else
35544 echo "$as_me: failed program was:" >&5
35545sed 's/^/| /' conftest.$ac_ext >&5
35546
35547ac_cv_lib_shl_load_dld=no
35548fi
ac1cb8d3
VS
35549rm -f conftest.err conftest.$ac_objext \
35550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35551LIBS=$ac_check_lib_save_LIBS
35552fi
35553echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35554echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35555if test $ac_cv_lib_shl_load_dld = yes; then
35556
35557 HAVE_SHL_FUNCS=1
35558 DL_LINK=" -ldld$DL_LINK"
35559
35560fi
35561
35562
35563fi
35564done
35565
35566
35567fi
35568
35569
35570fi
35571done
35572
35573
35574 if test "$HAVE_DL_FUNCS" = 1; then
35575
35576for ac_func in dlerror
35577do
35578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35579echo "$as_me:$LINENO: checking for $ac_func" >&5
35580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35581if eval "test \"\${$as_ac_var+set}\" = set"; then
35582 echo $ECHO_N "(cached) $ECHO_C" >&6
35583else
35584 cat >conftest.$ac_ext <<_ACEOF
35585/* confdefs.h. */
35586_ACEOF
35587cat confdefs.h >>conftest.$ac_ext
35588cat >>conftest.$ac_ext <<_ACEOF
35589/* end confdefs.h. */
ac1cb8d3
VS
35590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35592#define $ac_func innocuous_$ac_func
35593
a848cd7e
SC
35594/* System header to define __stub macros and hopefully few prototypes,
35595 which can conflict with char $ac_func (); below.
35596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35597 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35598
a848cd7e
SC
35599#ifdef __STDC__
35600# include <limits.h>
35601#else
35602# include <assert.h>
35603#endif
ac1cb8d3
VS
35604
35605#undef $ac_func
35606
a848cd7e
SC
35607/* Override any gcc2 internal prototype to avoid an error. */
35608#ifdef __cplusplus
35609extern "C"
35610{
35611#endif
35612/* We use char because int might match the return type of a gcc2
35613 builtin and then its argument prototype would still apply. */
35614char $ac_func ();
35615/* The GNU C library defines this for functions which it implements
35616 to always fail with ENOSYS. Some functions are actually named
35617 something starting with __ and the normal name is an alias. */
35618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35619choke me
35620#else
35621char (*f) () = $ac_func;
35622#endif
35623#ifdef __cplusplus
35624}
35625#endif
35626
35627int
35628main ()
35629{
35630return f != $ac_func;
35631 ;
35632 return 0;
35633}
35634_ACEOF
35635rm -f conftest.$ac_objext conftest$ac_exeext
35636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35637 (eval $ac_link) 2>conftest.er1
a848cd7e 35638 ac_status=$?
ac1cb8d3
VS
35639 grep -v '^ *+' conftest.er1 >conftest.err
35640 rm -f conftest.er1
35641 cat conftest.err >&5
a848cd7e
SC
35642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643 (exit $ac_status); } &&
89be85c2
VS
35644 { ac_try='test -z "$ac_c_werror_flag"
35645 || test ! -s conftest.err'
ac1cb8d3
VS
35646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647 (eval $ac_try) 2>&5
35648 ac_status=$?
35649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 (exit $ac_status); }; } &&
35651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653 (eval $ac_try) 2>&5
35654 ac_status=$?
35655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); }; }; then
35657 eval "$as_ac_var=yes"
35658else
35659 echo "$as_me: failed program was:" >&5
35660sed 's/^/| /' conftest.$ac_ext >&5
35661
35662eval "$as_ac_var=no"
35663fi
ac1cb8d3
VS
35664rm -f conftest.err conftest.$ac_objext \
35665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35666fi
35667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35669if test `eval echo '${'$as_ac_var'}'` = yes; then
35670 cat >>confdefs.h <<_ACEOF
35671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35672_ACEOF
35673 cat >>confdefs.h <<\_ACEOF
35674#define HAVE_DLERROR 1
35675_ACEOF
35676
35677else
35678
35679 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35680echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35681if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35682 echo $ECHO_N "(cached) $ECHO_C" >&6
35683else
35684 ac_check_lib_save_LIBS=$LIBS
35685LIBS="-ldl $LIBS"
35686cat >conftest.$ac_ext <<_ACEOF
35687/* confdefs.h. */
35688_ACEOF
35689cat confdefs.h >>conftest.$ac_ext
35690cat >>conftest.$ac_ext <<_ACEOF
35691/* end confdefs.h. */
35692
35693/* Override any gcc2 internal prototype to avoid an error. */
35694#ifdef __cplusplus
35695extern "C"
35696#endif
35697/* We use char because int might match the return type of a gcc2
35698 builtin and then its argument prototype would still apply. */
35699char dlerror ();
35700int
35701main ()
35702{
35703dlerror ();
35704 ;
35705 return 0;
35706}
35707_ACEOF
35708rm -f conftest.$ac_objext conftest$ac_exeext
35709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35710 (eval $ac_link) 2>conftest.er1
a848cd7e 35711 ac_status=$?
ac1cb8d3
VS
35712 grep -v '^ *+' conftest.er1 >conftest.err
35713 rm -f conftest.er1
35714 cat conftest.err >&5
a848cd7e
SC
35715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35716 (exit $ac_status); } &&
89be85c2
VS
35717 { ac_try='test -z "$ac_c_werror_flag"
35718 || test ! -s conftest.err'
ac1cb8d3
VS
35719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35720 (eval $ac_try) 2>&5
35721 ac_status=$?
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); }; } &&
35724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35726 (eval $ac_try) 2>&5
35727 ac_status=$?
35728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729 (exit $ac_status); }; }; then
35730 ac_cv_lib_dl_dlerror=yes
35731else
35732 echo "$as_me: failed program was:" >&5
35733sed 's/^/| /' conftest.$ac_ext >&5
35734
35735ac_cv_lib_dl_dlerror=no
35736fi
ac1cb8d3
VS
35737rm -f conftest.err conftest.$ac_objext \
35738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35739LIBS=$ac_check_lib_save_LIBS
35740fi
35741echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35742echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35743if test $ac_cv_lib_dl_dlerror = yes; then
35744 cat >>confdefs.h <<\_ACEOF
35745#define HAVE_DLERROR 1
35746_ACEOF
35747
35748fi
35749
35750
35751
35752fi
35753done
35754
35755 fi
35756 fi
35757
35758 if test "$HAVE_DL_FUNCS" = 0; then
35759 if test "$HAVE_SHL_FUNCS" = 0; then
35760 if test "$USE_UNIX" = 1; then
35761 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35762echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35763 wxUSE_DYNAMIC_LOADER=no
35764 wxUSE_DYNLIB_CLASS=no
35765 else
35766 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35767echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35768 fi
35769 fi
35770 fi
35771 fi
35772fi
35773
35774if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35775 cat >>confdefs.h <<\_ACEOF
35776#define wxUSE_DYNAMIC_LOADER 1
35777_ACEOF
35778
35779fi
35780if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35781 cat >>confdefs.h <<\_ACEOF
35782#define wxUSE_DYNLIB_CLASS 1
35783_ACEOF
35784
35785fi
35786
35787
35788
35789if test "$wxUSE_PLUGINS" = "yes" ; then
35790 if test "$wxUSE_SHARED" = "no" ; then
35791 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35792echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35793 wxUSE_PLUGINS=no
35794 fi
35795 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35796 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35797echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35798 wxUSE_PLUGINS=no
35799 fi
35800 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35801 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35802echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35803 wxUSE_PLUGINS=no
35804 fi
35805 if test "$wxUSE_PLUGINS" = "yes" ; then
35806 cat >>confdefs.h <<\_ACEOF
35807#define wxUSE_PLUGINS 1
35808_ACEOF
35809
35810 fi
35811fi
35812
35813
35814if test "$wxUSE_STL" = "yes"; then
35815 cat >>confdefs.h <<\_ACEOF
35816#define wxUSE_STL 1
35817_ACEOF
35818
35819fi
35820
35821if test "$wxUSE_APPLE_IEEE" = "yes"; then
35822 cat >>confdefs.h <<\_ACEOF
35823#define wxUSE_APPLE_IEEE 1
35824_ACEOF
35825
35826fi
35827
35828if test "$wxUSE_TIMER" = "yes"; then
35829 cat >>confdefs.h <<\_ACEOF
35830#define wxUSE_TIMER 1
35831_ACEOF
35832
35833fi
35834
35835WITH_PLUGIN_SDL=0
35836if test "$wxUSE_SOUND" = "yes"; then
35837 if test "$USE_UNIX" = "1" ; then
35838
35839for ac_header in sys/soundcard.h
35840do
35841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35842if eval "test \"\${$as_ac_Header+set}\" = set"; then
35843 echo "$as_me:$LINENO: checking for $ac_header" >&5
35844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35845if eval "test \"\${$as_ac_Header+set}\" = set"; then
35846 echo $ECHO_N "(cached) $ECHO_C" >&6
35847fi
35848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35850else
35851 # Is the header compilable?
35852echo "$as_me:$LINENO: checking $ac_header usability" >&5
35853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35854cat >conftest.$ac_ext <<_ACEOF
35855/* confdefs.h. */
35856_ACEOF
35857cat confdefs.h >>conftest.$ac_ext
35858cat >>conftest.$ac_ext <<_ACEOF
35859/* end confdefs.h. */
35860$ac_includes_default
35861#include <$ac_header>
35862_ACEOF
35863rm -f conftest.$ac_objext
35864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35865 (eval $ac_compile) 2>conftest.er1
a848cd7e 35866 ac_status=$?
ac1cb8d3
VS
35867 grep -v '^ *+' conftest.er1 >conftest.err
35868 rm -f conftest.er1
35869 cat conftest.err >&5
a848cd7e
SC
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); } &&
89be85c2
VS
35872 { ac_try='test -z "$ac_c_werror_flag"
35873 || test ! -s conftest.err'
ac1cb8d3
VS
35874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875 (eval $ac_try) 2>&5
35876 ac_status=$?
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); }; } &&
35879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35881 (eval $ac_try) 2>&5
35882 ac_status=$?
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); }; }; then
35885 ac_header_compiler=yes
35886else
35887 echo "$as_me: failed program was:" >&5
35888sed 's/^/| /' conftest.$ac_ext >&5
35889
35890ac_header_compiler=no
35891fi
ac1cb8d3 35892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35894echo "${ECHO_T}$ac_header_compiler" >&6
35895
35896# Is the header present?
35897echo "$as_me:$LINENO: checking $ac_header presence" >&5
35898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35899cat >conftest.$ac_ext <<_ACEOF
35900/* confdefs.h. */
35901_ACEOF
35902cat confdefs.h >>conftest.$ac_ext
35903cat >>conftest.$ac_ext <<_ACEOF
35904/* end confdefs.h. */
35905#include <$ac_header>
35906_ACEOF
35907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35909 ac_status=$?
35910 grep -v '^ *+' conftest.er1 >conftest.err
35911 rm -f conftest.er1
35912 cat conftest.err >&5
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); } >/dev/null; then
35915 if test -s conftest.err; then
35916 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35918 else
35919 ac_cpp_err=
35920 fi
35921else
35922 ac_cpp_err=yes
35923fi
35924if test -z "$ac_cpp_err"; then
35925 ac_header_preproc=yes
35926else
35927 echo "$as_me: failed program was:" >&5
35928sed 's/^/| /' conftest.$ac_ext >&5
35929
35930 ac_header_preproc=no
35931fi
35932rm -f conftest.err conftest.$ac_ext
35933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35934echo "${ECHO_T}$ac_header_preproc" >&6
35935
35936# So? What about this header?
ac1cb8d3
VS
35937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35938 yes:no: )
a848cd7e
SC
35939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35943 ac_header_preproc=yes
a848cd7e 35944 ;;
ac1cb8d3 35945 no:yes:* )
a848cd7e
SC
35946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35958 (
35959 cat <<\_ASBOX
ac1cb8d3
VS
35960## ----------------------------------------- ##
35961## Report this to wx-dev@lists.wxwidgets.org ##
35962## ----------------------------------------- ##
a848cd7e
SC
35963_ASBOX
35964 ) |
35965 sed "s/^/$as_me: WARNING: /" >&2
35966 ;;
35967esac
35968echo "$as_me:$LINENO: checking for $ac_header" >&5
35969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35970if eval "test \"\${$as_ac_Header+set}\" = set"; then
35971 echo $ECHO_N "(cached) $ECHO_C" >&6
35972else
ac1cb8d3 35973 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35974fi
35975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35977
35978fi
35979if test `eval echo '${'$as_ac_Header'}'` = yes; then
35980 cat >>confdefs.h <<_ACEOF
35981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35982_ACEOF
35983
35984fi
35985
35986done
35987
35988
35989 if test "$wxUSE_LIBSDL" != "no"; then
35990
35991# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35992if test "${with_sdl_prefix+set}" = set; then
35993 withval="$with_sdl_prefix"
35994 sdl_prefix="$withval"
35995else
35996 sdl_prefix=""
35997fi;
35998
35999# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36000if test "${with_sdl_exec_prefix+set}" = set; then
36001 withval="$with_sdl_exec_prefix"
36002 sdl_exec_prefix="$withval"
36003else
36004 sdl_exec_prefix=""
36005fi;
36006# Check whether --enable-sdltest or --disable-sdltest was given.
36007if test "${enable_sdltest+set}" = set; then
36008 enableval="$enable_sdltest"
36009
36010else
36011 enable_sdltest=yes
36012fi;
36013
36014 if test x$sdl_exec_prefix != x ; then
36015 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36016 if test x${SDL_CONFIG+set} != xset ; then
36017 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36018 fi
36019 fi
36020 if test x$sdl_prefix != x ; then
36021 sdl_args="$sdl_args --prefix=$sdl_prefix"
36022 if test x${SDL_CONFIG+set} != xset ; then
36023 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36024 fi
36025 fi
36026
36027
36028 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36029 # Extract the first word of "sdl-config", so it can be a program name with args.
36030set dummy sdl-config; ac_word=$2
36031echo "$as_me:$LINENO: checking for $ac_word" >&5
36032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36033if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36034 echo $ECHO_N "(cached) $ECHO_C" >&6
36035else
36036 case $SDL_CONFIG in
36037 [\\/]* | ?:[\\/]*)
36038 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36039 ;;
36040 *)
36041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36042for as_dir in $PATH
36043do
36044 IFS=$as_save_IFS
36045 test -z "$as_dir" && as_dir=.
36046 for ac_exec_ext in '' $ac_executable_extensions; do
36047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36048 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36050 break 2
36051 fi
36052done
36053done
36054
36055 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36056 ;;
36057esac
36058fi
36059SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36060
36061if test -n "$SDL_CONFIG"; then
36062 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36063echo "${ECHO_T}$SDL_CONFIG" >&6
36064else
36065 echo "$as_me:$LINENO: result: no" >&5
36066echo "${ECHO_T}no" >&6
36067fi
36068
36069 min_sdl_version=1.2.0
36070 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36071echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36072 no_sdl=""
36073 if test "$SDL_CONFIG" = "no" ; then
36074 no_sdl=yes
36075 else
36076 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36077 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36078
36079 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36080 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36081 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36082 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36083 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36084 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36085 if test "x$enable_sdltest" = "xyes" ; then
36086 ac_save_CFLAGS="$CFLAGS"
94acd38e 36087 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36088 ac_save_LIBS="$LIBS"
36089 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36090 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36091 LIBS="$LIBS $SDL_LIBS"
36092 rm -f conf.sdltest
36093 if test "$cross_compiling" = yes; then
36094 echo $ac_n "cross compiling; assumed OK... $ac_c"
36095else
36096 cat >conftest.$ac_ext <<_ACEOF
36097/* confdefs.h. */
36098_ACEOF
36099cat confdefs.h >>conftest.$ac_ext
36100cat >>conftest.$ac_ext <<_ACEOF
36101/* end confdefs.h. */
36102
36103#include <stdio.h>
36104#include <stdlib.h>
36105#include <string.h>
36106#include "SDL.h"
36107
36108char*
36109my_strdup (char *str)
36110{
36111 char *new_str;
36112
36113 if (str)
36114 {
36115 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36116 strcpy (new_str, str);
36117 }
36118 else
36119 new_str = NULL;
36120
36121 return new_str;
36122}
36123
36124int main (int argc, char *argv[])
36125{
36126 int major, minor, micro;
36127 char *tmp_version;
36128
36129 /* This hangs on some systems (?)
36130 system ("touch conf.sdltest");
36131 */
36132 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36133
36134 /* HP/UX 9 (%@#!) writes to sscanf strings */
36135 tmp_version = my_strdup("$min_sdl_version");
36136 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36137 printf("%s, bad version string\n", "$min_sdl_version");
36138 exit(1);
36139 }
36140
36141 if (($sdl_major_version > major) ||
36142 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36143 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36144 {
36145 return 0;
36146 }
36147 else
36148 {
36149 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36150 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36151 printf("*** best to upgrade to the required version.\n");
36152 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36153 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36154 printf("*** config.cache before re-running configure\n");
36155 return 1;
36156 }
36157}
36158
36159
36160_ACEOF
36161rm -f conftest$ac_exeext
36162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36163 (eval $ac_link) 2>&5
36164 ac_status=$?
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36168 (eval $ac_try) 2>&5
36169 ac_status=$?
36170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); }; }; then
36172 :
36173else
36174 echo "$as_me: program exited with status $ac_status" >&5
36175echo "$as_me: failed program was:" >&5
36176sed 's/^/| /' conftest.$ac_ext >&5
36177
36178( exit $ac_status )
36179no_sdl=yes
36180fi
ac1cb8d3 36181rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36182fi
36183 CFLAGS="$ac_save_CFLAGS"
94acd38e 36184 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36185 LIBS="$ac_save_LIBS"
36186 fi
36187 fi
36188 if test "x$no_sdl" = x ; then
36189 echo "$as_me:$LINENO: result: yes" >&5
36190echo "${ECHO_T}yes" >&6
36191
36192 EXTRALIBS_SDL="$SDL_LIBS"
36193 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36194 cat >>confdefs.h <<\_ACEOF
36195#define wxUSE_LIBSDL 1
36196_ACEOF
36197
36198
36199 else
36200 echo "$as_me:$LINENO: result: no" >&5
36201echo "${ECHO_T}no" >&6
36202 if test "$SDL_CONFIG" = "no" ; then
36203 echo "*** The sdl-config script installed by SDL could not be found"
36204 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36205 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36206 echo "*** full path to sdl-config."
36207 else
36208 if test -f conf.sdltest ; then
36209 :
36210 else
36211 echo "*** Could not run SDL test program, checking why..."
36212 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36213 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36214 LIBS="$LIBS $SDL_LIBS"
36215 cat >conftest.$ac_ext <<_ACEOF
36216/* confdefs.h. */
36217_ACEOF
36218cat confdefs.h >>conftest.$ac_ext
36219cat >>conftest.$ac_ext <<_ACEOF
36220/* end confdefs.h. */
36221
36222#include <stdio.h>
36223#include "SDL.h"
36224
36225int main(int argc, char *argv[])
36226{ return 0; }
36227#undef main
36228#define main K_and_R_C_main
36229
36230int
36231main ()
36232{
36233 return 0;
36234 ;
36235 return 0;
36236}
36237_ACEOF
36238rm -f conftest.$ac_objext conftest$ac_exeext
36239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36240 (eval $ac_link) 2>conftest.er1
a848cd7e 36241 ac_status=$?
ac1cb8d3
VS
36242 grep -v '^ *+' conftest.er1 >conftest.err
36243 rm -f conftest.er1
36244 cat conftest.err >&5
a848cd7e
SC
36245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36246 (exit $ac_status); } &&
89be85c2
VS
36247 { ac_try='test -z "$ac_c_werror_flag"
36248 || test ! -s conftest.err'
ac1cb8d3
VS
36249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36250 (eval $ac_try) 2>&5
36251 ac_status=$?
36252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); }; } &&
36254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36256 (eval $ac_try) 2>&5
36257 ac_status=$?
36258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259 (exit $ac_status); }; }; then
36260 echo "*** The test program compiled, but did not run. This usually means"
36261 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36262 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36263 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36264 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36265 echo "*** is required on your system"
36266 echo "***"
36267 echo "*** If you have an old version installed, it is best to remove it, although"
36268 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36269else
36270 echo "$as_me: failed program was:" >&5
36271sed 's/^/| /' conftest.$ac_ext >&5
36272
36273 echo "*** The test program failed to compile or link. See the file config.log for the"
36274 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36275 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36276 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36277fi
ac1cb8d3
VS
36278rm -f conftest.err conftest.$ac_objext \
36279 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36280 CFLAGS="$ac_save_CFLAGS"
94acd38e 36281 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36282 LIBS="$ac_save_LIBS"
36283 fi
36284 fi
36285 SDL_CFLAGS=""
36286 SDL_LIBS=""
36287 wxUSE_LIBSDL="no"
36288 fi
36289
36290
36291 rm -f conf.sdltest
36292
36293 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36294 WITH_PLUGIN_SDL=1
36295 fi
36296 fi
36297 fi
36298
36299 cat >>confdefs.h <<\_ACEOF
36300#define wxUSE_SOUND 1
36301_ACEOF
36302
36303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36304fi
36305
d1c38808
VZ
36306if test "$WXGTK20" = 1; then
36307 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36308 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36309
36310
36311 succeeded=no
36312
36313 if test -z "$PKG_CONFIG"; then
36314 # Extract the first word of "pkg-config", so it can be a program name with args.
36315set dummy pkg-config; ac_word=$2
36316echo "$as_me:$LINENO: checking for $ac_word" >&5
36317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36318if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36319 echo $ECHO_N "(cached) $ECHO_C" >&6
36320else
36321 case $PKG_CONFIG in
36322 [\\/]* | ?:[\\/]*)
36323 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36324 ;;
36325 *)
36326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36327for as_dir in $PATH
36328do
36329 IFS=$as_save_IFS
36330 test -z "$as_dir" && as_dir=.
36331 for ac_exec_ext in '' $ac_executable_extensions; do
36332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36333 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36335 break 2
36336 fi
36337done
36338done
36339
36340 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36341 ;;
36342esac
36343fi
36344PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36345
36346if test -n "$PKG_CONFIG"; then
36347 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36348echo "${ECHO_T}$PKG_CONFIG" >&6
36349else
36350 echo "$as_me:$LINENO: result: no" >&5
36351echo "${ECHO_T}no" >&6
36352fi
36353
36354 fi
36355
36356 if test "$PKG_CONFIG" = "no" ; then
36357 echo "*** The pkg-config script could not be found. Make sure it is"
36358 echo "*** in your path, or set the PKG_CONFIG environment variable"
36359 echo "*** to the full path to pkg-config."
36360 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36361 else
36362 PKG_CONFIG_MIN_VERSION=0.9.0
36363 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36364 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36365echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36366
ffa762ff 36367 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36368 echo "$as_me:$LINENO: result: yes" >&5
36369echo "${ECHO_T}yes" >&6
36370 succeeded=yes
36371
36372 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36373echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36374 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36375 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36376echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36377
36378 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36379echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36380 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36381 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36382echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36383 else
36384 LIBGNOMEPRINTUI_CFLAGS=""
36385 LIBGNOMEPRINTUI_LIBS=""
36386 ## If we have a custom action on failure, don't print errors, but
36387 ## do set a variable so people can do so.
ffa762ff 36388 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36389
36390 fi
36391
36392
36393
36394 else
36395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36397 fi
36398 fi
36399
36400 if test $succeeded = yes; then
36401
d1c38808
VZ
36402 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36403 cat >>confdefs.h <<\_ACEOF
36404#define wxUSE_LIBGNOMEPRINT 1
36405_ACEOF
36406
36407
36408 else
36409
36410 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36411echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36412 wxUSE_LIBGNOMEPRINT="no"
36413
36414
36415 fi
36416
36417 fi
36418 fi
36419fi
36420
36421
a848cd7e
SC
36422if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36423 cat >>confdefs.h <<\_ACEOF
36424#define wxUSE_CMDLINE_PARSER 1
36425_ACEOF
36426
36427fi
36428
36429if test "$wxUSE_STOPWATCH" = "yes"; then
36430 cat >>confdefs.h <<\_ACEOF
36431#define wxUSE_STOPWATCH 1
36432_ACEOF
36433
36434fi
36435
36436if test "$wxUSE_DATETIME" = "yes"; then
36437 cat >>confdefs.h <<\_ACEOF
36438#define wxUSE_DATETIME 1
36439_ACEOF
36440
36441fi
36442
36443if test "$wxUSE_FILE" = "yes"; then
36444 cat >>confdefs.h <<\_ACEOF
36445#define wxUSE_FILE 1
36446_ACEOF
36447
36448fi
36449
36450if test "$wxUSE_FFILE" = "yes"; then
36451 cat >>confdefs.h <<\_ACEOF
36452#define wxUSE_FFILE 1
36453_ACEOF
36454
36455fi
36456
36457if test "$wxUSE_FILESYSTEM" = "yes"; then
36458 cat >>confdefs.h <<\_ACEOF
36459#define wxUSE_FILESYSTEM 1
36460_ACEOF
36461
36462fi
36463
36464if test "$wxUSE_FS_ZIP" = "yes"; then
36465 cat >>confdefs.h <<\_ACEOF
36466#define wxUSE_FS_ZIP 1
36467_ACEOF
36468
36469fi
36470
9e8e867f 36471if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36472 cat >>confdefs.h <<\_ACEOF
9e8e867f 36473#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36474_ACEOF
36475
36476fi
36477
36478if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36479 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36480 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36481echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36482 elif test "$wxUSE_ZLIB" = "no"; then
36483 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36484echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36485 else
36486 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36487#define wxUSE_ZIPSTREAM 1
36488_ACEOF
36489
81f90336 36490 fi
a848cd7e
SC
36491fi
36492
a848cd7e
SC
36493if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36494 cat >>confdefs.h <<\_ACEOF
36495#define wxUSE_ON_FATAL_EXCEPTION 1
36496_ACEOF
36497
36498fi
36499
eaff0f0d
VZ
36500if test "$wxUSE_STACKWALKER" = "yes"; then
36501 cat >>confdefs.h <<\_ACEOF
36502#define wxUSE_STACKWALKER 1
36503_ACEOF
36504
36505fi
36506
a848cd7e
SC
36507if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36508 cat >>confdefs.h <<\_ACEOF
36509#define wxUSE_SNGLINST_CHECKER 1
36510_ACEOF
36511
36512fi
36513
36514if test "$wxUSE_BUSYINFO" = "yes"; then
36515 cat >>confdefs.h <<\_ACEOF
36516#define wxUSE_BUSYINFO 1
36517_ACEOF
36518
36519fi
36520
36521if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36522 cat >>confdefs.h <<\_ACEOF
36523#define wxUSE_STD_IOSTREAM 1
36524_ACEOF
36525
36526fi
36527
36528if test "$wxUSE_TEXTBUFFER" = "yes"; then
36529 cat >>confdefs.h <<\_ACEOF
36530#define wxUSE_TEXTBUFFER 1
36531_ACEOF
36532
36533fi
36534
36535if test "$wxUSE_TEXTFILE" = "yes"; then
36536 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36537 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36538echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36539 else
36540 cat >>confdefs.h <<\_ACEOF
36541#define wxUSE_TEXTFILE 1
36542_ACEOF
36543
36544 fi
36545fi
36546
36547if test "$wxUSE_CONFIG" = "yes" ; then
36548 if test "$wxUSE_TEXTFILE" != "yes"; then
36549 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36550echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36551 else
36552 cat >>confdefs.h <<\_ACEOF
36553#define wxUSE_CONFIG 1
89be85c2
VS
36554_ACEOF
36555
36556 cat >>confdefs.h <<\_ACEOF
36557#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36558_ACEOF
36559
36560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36561 fi
36562fi
36563
36564if test "$wxUSE_INTL" = "yes" ; then
36565 if test "$wxUSE_FILE" != "yes"; then
36566 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36567echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36568 else
36569 cat >>confdefs.h <<\_ACEOF
36570#define wxUSE_INTL 1
36571_ACEOF
36572
36573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36574 GUIDIST="$GUIDIST INTL_DIST"
36575 fi
36576fi
36577
36578if test "$wxUSE_LOG" = "yes"; then
36579 cat >>confdefs.h <<\_ACEOF
36580#define wxUSE_LOG 1
36581_ACEOF
36582
36583
36584 if test "$wxUSE_LOGGUI" = "yes"; then
36585 cat >>confdefs.h <<\_ACEOF
36586#define wxUSE_LOGGUI 1
36587_ACEOF
36588
36589 fi
36590
36591 if test "$wxUSE_LOGWINDOW" = "yes"; then
36592 cat >>confdefs.h <<\_ACEOF
36593#define wxUSE_LOGWINDOW 1
36594_ACEOF
36595
36596 fi
36597
36598 if test "$wxUSE_LOGDIALOG" = "yes"; then
36599 cat >>confdefs.h <<\_ACEOF
36600#define wxUSE_LOG_DIALOG 1
36601_ACEOF
36602
36603 fi
36604fi
36605
36606if test "$wxUSE_LONGLONG" = "yes"; then
36607 cat >>confdefs.h <<\_ACEOF
36608#define wxUSE_LONGLONG 1
36609_ACEOF
36610
36611fi
36612
36613if test "$wxUSE_GEOMETRY" = "yes"; then
36614 cat >>confdefs.h <<\_ACEOF
36615#define wxUSE_GEOMETRY 1
36616_ACEOF
36617
36618fi
36619
a848cd7e
SC
36620if test "$wxUSE_STREAMS" = "yes" ; then
36621 cat >>confdefs.h <<\_ACEOF
36622#define wxUSE_STREAMS 1
36623_ACEOF
36624
36625fi
36626
36627
36628if test "$wxUSE_DATETIME" = "yes"; then
36629
36630for ac_func in strptime
36631do
36632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36633echo "$as_me:$LINENO: checking for $ac_func" >&5
36634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36635if eval "test \"\${$as_ac_var+set}\" = set"; then
36636 echo $ECHO_N "(cached) $ECHO_C" >&6
36637else
36638 cat >conftest.$ac_ext <<_ACEOF
36639/* confdefs.h. */
36640_ACEOF
36641cat confdefs.h >>conftest.$ac_ext
36642cat >>conftest.$ac_ext <<_ACEOF
36643/* end confdefs.h. */
ac1cb8d3
VS
36644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36646#define $ac_func innocuous_$ac_func
36647
a848cd7e
SC
36648/* System header to define __stub macros and hopefully few prototypes,
36649 which can conflict with char $ac_func (); below.
36650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36651 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36652
a848cd7e
SC
36653#ifdef __STDC__
36654# include <limits.h>
36655#else
36656# include <assert.h>
36657#endif
ac1cb8d3
VS
36658
36659#undef $ac_func
36660
a848cd7e
SC
36661/* Override any gcc2 internal prototype to avoid an error. */
36662#ifdef __cplusplus
36663extern "C"
36664{
36665#endif
36666/* We use char because int might match the return type of a gcc2
36667 builtin and then its argument prototype would still apply. */
36668char $ac_func ();
36669/* The GNU C library defines this for functions which it implements
36670 to always fail with ENOSYS. Some functions are actually named
36671 something starting with __ and the normal name is an alias. */
36672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36673choke me
36674#else
36675char (*f) () = $ac_func;
36676#endif
36677#ifdef __cplusplus
36678}
36679#endif
36680
36681int
36682main ()
36683{
36684return f != $ac_func;
36685 ;
36686 return 0;
36687}
36688_ACEOF
36689rm -f conftest.$ac_objext conftest$ac_exeext
36690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36691 (eval $ac_link) 2>conftest.er1
a848cd7e 36692 ac_status=$?
ac1cb8d3
VS
36693 grep -v '^ *+' conftest.er1 >conftest.err
36694 rm -f conftest.er1
36695 cat conftest.err >&5
a848cd7e
SC
36696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); } &&
89be85c2
VS
36698 { ac_try='test -z "$ac_c_werror_flag"
36699 || test ! -s conftest.err'
ac1cb8d3
VS
36700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36701 (eval $ac_try) 2>&5
36702 ac_status=$?
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); }; } &&
36705 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36707 (eval $ac_try) 2>&5
36708 ac_status=$?
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; }; then
36711 eval "$as_ac_var=yes"
36712else
36713 echo "$as_me: failed program was:" >&5
36714sed 's/^/| /' conftest.$ac_ext >&5
36715
36716eval "$as_ac_var=no"
36717fi
ac1cb8d3
VS
36718rm -f conftest.err conftest.$ac_objext \
36719 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36720fi
36721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36722echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36723if test `eval echo '${'$as_ac_var'}'` = yes; then
36724 cat >>confdefs.h <<_ACEOF
36725#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36726_ACEOF
36727
36728fi
36729done
36730
36731
36732 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36733echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36734if test "${wx_cv_var_timezone+set}" = set; then
36735 echo $ECHO_N "(cached) $ECHO_C" >&6
36736else
36737
36738 cat >conftest.$ac_ext <<_ACEOF
36739/* confdefs.h. */
36740_ACEOF
36741cat confdefs.h >>conftest.$ac_ext
36742cat >>conftest.$ac_ext <<_ACEOF
36743/* end confdefs.h. */
36744
36745 #include <time.h>
36746
36747int
36748main ()
36749{
36750
36751 int tz;
36752 tz = timezone;
36753
36754 ;
36755 return 0;
36756}
36757_ACEOF
36758rm -f conftest.$ac_objext
36759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36760 (eval $ac_compile) 2>conftest.er1
a848cd7e 36761 ac_status=$?
ac1cb8d3
VS
36762 grep -v '^ *+' conftest.er1 >conftest.err
36763 rm -f conftest.er1
36764 cat conftest.err >&5
a848cd7e
SC
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); } &&
89be85c2
VS
36767 { ac_try='test -z "$ac_c_werror_flag"
36768 || test ! -s conftest.err'
ac1cb8d3
VS
36769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36770 (eval $ac_try) 2>&5
36771 ac_status=$?
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); }; } &&
36774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36776 (eval $ac_try) 2>&5
36777 ac_status=$?
36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779 (exit $ac_status); }; }; then
36780
36781 wx_cv_var_timezone=timezone
36782
36783else
36784 echo "$as_me: failed program was:" >&5
36785sed 's/^/| /' conftest.$ac_ext >&5
36786
36787
36788 cat >conftest.$ac_ext <<_ACEOF
36789/* confdefs.h. */
36790_ACEOF
36791cat confdefs.h >>conftest.$ac_ext
36792cat >>conftest.$ac_ext <<_ACEOF
36793/* end confdefs.h. */
36794
36795 #include <time.h>
36796
36797int
36798main ()
36799{
36800
36801 int tz;
36802 tz = _timezone;
36803
36804 ;
36805 return 0;
36806}
36807_ACEOF
36808rm -f conftest.$ac_objext
36809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36810 (eval $ac_compile) 2>conftest.er1
a848cd7e 36811 ac_status=$?
ac1cb8d3
VS
36812 grep -v '^ *+' conftest.er1 >conftest.err
36813 rm -f conftest.er1
36814 cat conftest.err >&5
a848cd7e
SC
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); } &&
89be85c2
VS
36817 { ac_try='test -z "$ac_c_werror_flag"
36818 || test ! -s conftest.err'
ac1cb8d3
VS
36819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36820 (eval $ac_try) 2>&5
36821 ac_status=$?
36822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36823 (exit $ac_status); }; } &&
36824 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36826 (eval $ac_try) 2>&5
36827 ac_status=$?
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); }; }; then
36830
36831 wx_cv_var_timezone=_timezone
36832
36833else
36834 echo "$as_me: failed program was:" >&5
36835sed 's/^/| /' conftest.$ac_ext >&5
36836
36837
36838 cat >conftest.$ac_ext <<_ACEOF
36839/* confdefs.h. */
36840_ACEOF
36841cat confdefs.h >>conftest.$ac_ext
36842cat >>conftest.$ac_ext <<_ACEOF
36843/* end confdefs.h. */
36844
36845 #include <time.h>
36846
36847int
36848main ()
36849{
36850
36851 int tz;
36852 tz = __timezone;
36853
36854 ;
36855 return 0;
36856}
36857_ACEOF
36858rm -f conftest.$ac_objext
36859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36860 (eval $ac_compile) 2>conftest.er1
a848cd7e 36861 ac_status=$?
ac1cb8d3
VS
36862 grep -v '^ *+' conftest.er1 >conftest.err
36863 rm -f conftest.er1
36864 cat conftest.err >&5
a848cd7e
SC
36865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866 (exit $ac_status); } &&
89be85c2
VS
36867 { ac_try='test -z "$ac_c_werror_flag"
36868 || test ! -s conftest.err'
ac1cb8d3
VS
36869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36870 (eval $ac_try) 2>&5
36871 ac_status=$?
36872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873 (exit $ac_status); }; } &&
36874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36876 (eval $ac_try) 2>&5
36877 ac_status=$?
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); }; }; then
36880
36881 wx_cv_var_timezone=__timezone
36882
36883else
36884 echo "$as_me: failed program was:" >&5
36885sed 's/^/| /' conftest.$ac_ext >&5
36886
36887
36888 if test "$USE_DOS" = 0 ; then
36889 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36890echo "$as_me: WARNING: no timezone variable" >&2;}
36891 fi
36892
36893
36894fi
ac1cb8d3 36895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36896
36897
36898fi
ac1cb8d3 36899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36900
36901
36902fi
ac1cb8d3 36903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36904
36905
36906fi
36907echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36908echo "${ECHO_T}$wx_cv_var_timezone" >&6
36909
36910 if test "x$wx_cv_var_timezone" != x ; then
36911 cat >>confdefs.h <<_ACEOF
36912#define WX_TIMEZONE $wx_cv_var_timezone
36913_ACEOF
36914
36915 fi
36916
36917
36918for ac_func in localtime
36919do
36920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36921echo "$as_me:$LINENO: checking for $ac_func" >&5
36922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36923if eval "test \"\${$as_ac_var+set}\" = set"; then
36924 echo $ECHO_N "(cached) $ECHO_C" >&6
36925else
36926 cat >conftest.$ac_ext <<_ACEOF
36927/* confdefs.h. */
36928_ACEOF
36929cat confdefs.h >>conftest.$ac_ext
36930cat >>conftest.$ac_ext <<_ACEOF
36931/* end confdefs.h. */
ac1cb8d3
VS
36932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36934#define $ac_func innocuous_$ac_func
36935
a848cd7e
SC
36936/* System header to define __stub macros and hopefully few prototypes,
36937 which can conflict with char $ac_func (); below.
36938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36939 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36940
a848cd7e
SC
36941#ifdef __STDC__
36942# include <limits.h>
36943#else
36944# include <assert.h>
36945#endif
ac1cb8d3
VS
36946
36947#undef $ac_func
36948
a848cd7e
SC
36949/* Override any gcc2 internal prototype to avoid an error. */
36950#ifdef __cplusplus
36951extern "C"
36952{
36953#endif
36954/* We use char because int might match the return type of a gcc2
36955 builtin and then its argument prototype would still apply. */
36956char $ac_func ();
36957/* The GNU C library defines this for functions which it implements
36958 to always fail with ENOSYS. Some functions are actually named
36959 something starting with __ and the normal name is an alias. */
36960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36961choke me
36962#else
36963char (*f) () = $ac_func;
36964#endif
36965#ifdef __cplusplus
36966}
36967#endif
36968
36969int
36970main ()
36971{
36972return f != $ac_func;
36973 ;
36974 return 0;
36975}
36976_ACEOF
36977rm -f conftest.$ac_objext conftest$ac_exeext
36978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36979 (eval $ac_link) 2>conftest.er1
a848cd7e 36980 ac_status=$?
ac1cb8d3
VS
36981 grep -v '^ *+' conftest.er1 >conftest.err
36982 rm -f conftest.er1
36983 cat conftest.err >&5
a848cd7e
SC
36984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985 (exit $ac_status); } &&
89be85c2
VS
36986 { ac_try='test -z "$ac_c_werror_flag"
36987 || test ! -s conftest.err'
ac1cb8d3
VS
36988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36989 (eval $ac_try) 2>&5
36990 ac_status=$?
36991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992 (exit $ac_status); }; } &&
36993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36995 (eval $ac_try) 2>&5
36996 ac_status=$?
36997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998 (exit $ac_status); }; }; then
36999 eval "$as_ac_var=yes"
37000else
37001 echo "$as_me: failed program was:" >&5
37002sed 's/^/| /' conftest.$ac_ext >&5
37003
37004eval "$as_ac_var=no"
37005fi
ac1cb8d3
VS
37006rm -f conftest.err conftest.$ac_objext \
37007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37008fi
37009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37010echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37011if test `eval echo '${'$as_ac_var'}'` = yes; then
37012 cat >>confdefs.h <<_ACEOF
37013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37014_ACEOF
37015
37016fi
37017done
37018
37019
37020 if test "$ac_cv_func_localtime" = "yes"; then
37021 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37022echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37023if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37024 echo $ECHO_N "(cached) $ECHO_C" >&6
37025else
37026
37027 cat >conftest.$ac_ext <<_ACEOF
37028/* confdefs.h. */
37029_ACEOF
37030cat confdefs.h >>conftest.$ac_ext
37031cat >>conftest.$ac_ext <<_ACEOF
37032/* end confdefs.h. */
37033
37034 #include <time.h>
37035
37036int
37037main ()
37038{
37039
37040 struct tm tm;
37041 tm.tm_gmtoff++;
37042
37043 ;
37044 return 0;
37045}
37046_ACEOF
37047rm -f conftest.$ac_objext
37048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37049 (eval $ac_compile) 2>conftest.er1
a848cd7e 37050 ac_status=$?
ac1cb8d3
VS
37051 grep -v '^ *+' conftest.er1 >conftest.err
37052 rm -f conftest.er1
37053 cat conftest.err >&5
a848cd7e
SC
37054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055 (exit $ac_status); } &&
89be85c2
VS
37056 { ac_try='test -z "$ac_c_werror_flag"
37057 || test ! -s conftest.err'
ac1cb8d3
VS
37058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37059 (eval $ac_try) 2>&5
37060 ac_status=$?
37061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062 (exit $ac_status); }; } &&
37063 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37065 (eval $ac_try) 2>&5
37066 ac_status=$?
37067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068 (exit $ac_status); }; }; then
37069
37070 wx_cv_struct_tm_has_gmtoff=yes
37071
37072else
37073 echo "$as_me: failed program was:" >&5
37074sed 's/^/| /' conftest.$ac_ext >&5
37075
37076wx_cv_struct_tm_has_gmtoff=no
37077
37078fi
ac1cb8d3 37079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37080
37081fi
37082echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37083echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37084 fi
37085
37086 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37087 cat >>confdefs.h <<\_ACEOF
37088#define WX_GMTOFF_IN_TM 1
37089_ACEOF
37090
37091 fi
37092
37093
37094
37095for ac_func in gettimeofday ftime
37096do
37097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37098echo "$as_me:$LINENO: checking for $ac_func" >&5
37099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37100if eval "test \"\${$as_ac_var+set}\" = set"; then
37101 echo $ECHO_N "(cached) $ECHO_C" >&6
37102else
37103 cat >conftest.$ac_ext <<_ACEOF
37104/* confdefs.h. */
37105_ACEOF
37106cat confdefs.h >>conftest.$ac_ext
37107cat >>conftest.$ac_ext <<_ACEOF
37108/* end confdefs.h. */
ac1cb8d3
VS
37109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37111#define $ac_func innocuous_$ac_func
37112
a848cd7e
SC
37113/* System header to define __stub macros and hopefully few prototypes,
37114 which can conflict with char $ac_func (); below.
37115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37116 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37117
a848cd7e
SC
37118#ifdef __STDC__
37119# include <limits.h>
37120#else
37121# include <assert.h>
37122#endif
ac1cb8d3
VS
37123
37124#undef $ac_func
37125
a848cd7e
SC
37126/* Override any gcc2 internal prototype to avoid an error. */
37127#ifdef __cplusplus
37128extern "C"
37129{
37130#endif
37131/* We use char because int might match the return type of a gcc2
37132 builtin and then its argument prototype would still apply. */
37133char $ac_func ();
37134/* The GNU C library defines this for functions which it implements
37135 to always fail with ENOSYS. Some functions are actually named
37136 something starting with __ and the normal name is an alias. */
37137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37138choke me
37139#else
37140char (*f) () = $ac_func;
37141#endif
37142#ifdef __cplusplus
37143}
37144#endif
37145
37146int
37147main ()
37148{
37149return f != $ac_func;
37150 ;
37151 return 0;
37152}
37153_ACEOF
37154rm -f conftest.$ac_objext conftest$ac_exeext
37155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37156 (eval $ac_link) 2>conftest.er1
a848cd7e 37157 ac_status=$?
ac1cb8d3
VS
37158 grep -v '^ *+' conftest.er1 >conftest.err
37159 rm -f conftest.er1
37160 cat conftest.err >&5
a848cd7e
SC
37161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162 (exit $ac_status); } &&
89be85c2
VS
37163 { ac_try='test -z "$ac_c_werror_flag"
37164 || test ! -s conftest.err'
ac1cb8d3
VS
37165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37166 (eval $ac_try) 2>&5
37167 ac_status=$?
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); }; } &&
37170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172 (eval $ac_try) 2>&5
37173 ac_status=$?
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; }; then
37176 eval "$as_ac_var=yes"
37177else
37178 echo "$as_me: failed program was:" >&5
37179sed 's/^/| /' conftest.$ac_ext >&5
37180
37181eval "$as_ac_var=no"
37182fi
ac1cb8d3
VS
37183rm -f conftest.err conftest.$ac_objext \
37184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37185fi
37186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37188if test `eval echo '${'$as_ac_var'}'` = yes; then
37189 cat >>confdefs.h <<_ACEOF
37190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37191_ACEOF
37192 break
37193fi
37194done
37195
37196
37197 if test "$ac_cv_func_gettimeofday" = "yes"; then
37198 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37199echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37200if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37201 echo $ECHO_N "(cached) $ECHO_C" >&6
37202else
37203
37204
37205
37206 ac_ext=cc
37207ac_cpp='$CXXCPP $CPPFLAGS'
37208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37211
37212
37213 cat >conftest.$ac_ext <<_ACEOF
37214/* confdefs.h. */
37215_ACEOF
37216cat confdefs.h >>conftest.$ac_ext
37217cat >>conftest.$ac_ext <<_ACEOF
37218/* end confdefs.h. */
37219
37220 #include <sys/time.h>
37221 #include <unistd.h>
37222
37223int
37224main ()
37225{
37226
37227 struct timeval tv;
37228 gettimeofday(&tv, NULL);
37229
37230 ;
37231 return 0;
37232}
37233_ACEOF
37234rm -f conftest.$ac_objext
37235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37236 (eval $ac_compile) 2>conftest.er1
a848cd7e 37237 ac_status=$?
ac1cb8d3
VS
37238 grep -v '^ *+' conftest.er1 >conftest.err
37239 rm -f conftest.er1
37240 cat conftest.err >&5
a848cd7e
SC
37241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242 (exit $ac_status); } &&
89be85c2
VS
37243 { ac_try='test -z "$ac_cxx_werror_flag"
37244 || test ! -s conftest.err'
ac1cb8d3
VS
37245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37246 (eval $ac_try) 2>&5
37247 ac_status=$?
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); }; } &&
37250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252 (eval $ac_try) 2>&5
37253 ac_status=$?
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); }; }; then
37256 wx_cv_func_gettimeofday_has_2_args=yes
37257else
37258 echo "$as_me: failed program was:" >&5
37259sed 's/^/| /' conftest.$ac_ext >&5
37260
37261cat >conftest.$ac_ext <<_ACEOF
37262/* confdefs.h. */
37263_ACEOF
37264cat confdefs.h >>conftest.$ac_ext
37265cat >>conftest.$ac_ext <<_ACEOF
37266/* end confdefs.h. */
37267
37268 #include <sys/time.h>
37269 #include <unistd.h>
37270
37271int
37272main ()
37273{
37274
37275 struct timeval tv;
37276 gettimeofday(&tv);
37277
37278 ;
37279 return 0;
37280}
37281_ACEOF
37282rm -f conftest.$ac_objext
37283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37284 (eval $ac_compile) 2>conftest.er1
a848cd7e 37285 ac_status=$?
ac1cb8d3
VS
37286 grep -v '^ *+' conftest.er1 >conftest.err
37287 rm -f conftest.er1
37288 cat conftest.err >&5
a848cd7e
SC
37289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37290 (exit $ac_status); } &&
89be85c2
VS
37291 { ac_try='test -z "$ac_cxx_werror_flag"
37292 || test ! -s conftest.err'
ac1cb8d3
VS
37293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37294 (eval $ac_try) 2>&5
37295 ac_status=$?
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); }; } &&
37298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37300 (eval $ac_try) 2>&5
37301 ac_status=$?
37302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303 (exit $ac_status); }; }; then
37304 wx_cv_func_gettimeofday_has_2_args=no
37305else
37306 echo "$as_me: failed program was:" >&5
37307sed 's/^/| /' conftest.$ac_ext >&5
37308
37309
37310 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37311echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37312 wx_cv_func_gettimeofday_has_2_args=unknown
37313
37314
37315fi
ac1cb8d3 37316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37317
37318fi
ac1cb8d3 37319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37320 ac_ext=c
37321ac_cpp='$CPP $CPPFLAGS'
37322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37324ac_compiler_gnu=$ac_cv_c_compiler_gnu
37325
37326
37327fi
37328echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37329echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37330
37331 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37332 cat >>confdefs.h <<\_ACEOF
37333#define WX_GETTIMEOFDAY_NO_TZ 1
37334_ACEOF
37335
37336 fi
37337 fi
37338
37339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37340fi
37341
37342
37343if test "$wxUSE_SOCKETS" = "yes"; then
37344 if test "$wxUSE_MGL" = "1"; then
37345 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37346echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37347 wxUSE_SOCKETS="no"
37348 fi
37349fi
37350
37351if test "$wxUSE_SOCKETS" = "yes"; then
37352 if test "$TOOLKIT" != "MSW"; then
37353 echo "$as_me:$LINENO: checking for socket" >&5
37354echo $ECHO_N "checking for socket... $ECHO_C" >&6
37355if test "${ac_cv_func_socket+set}" = set; then
37356 echo $ECHO_N "(cached) $ECHO_C" >&6
37357else
37358 cat >conftest.$ac_ext <<_ACEOF
37359/* confdefs.h. */
37360_ACEOF
37361cat confdefs.h >>conftest.$ac_ext
37362cat >>conftest.$ac_ext <<_ACEOF
37363/* end confdefs.h. */
ac1cb8d3
VS
37364/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37366#define socket innocuous_socket
37367
a848cd7e
SC
37368/* System header to define __stub macros and hopefully few prototypes,
37369 which can conflict with char socket (); below.
37370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37371 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37372
a848cd7e
SC
37373#ifdef __STDC__
37374# include <limits.h>
37375#else
37376# include <assert.h>
37377#endif
ac1cb8d3
VS
37378
37379#undef socket
37380
a848cd7e
SC
37381/* Override any gcc2 internal prototype to avoid an error. */
37382#ifdef __cplusplus
37383extern "C"
37384{
37385#endif
37386/* We use char because int might match the return type of a gcc2
37387 builtin and then its argument prototype would still apply. */
37388char socket ();
37389/* The GNU C library defines this for functions which it implements
37390 to always fail with ENOSYS. Some functions are actually named
37391 something starting with __ and the normal name is an alias. */
37392#if defined (__stub_socket) || defined (__stub___socket)
37393choke me
37394#else
37395char (*f) () = socket;
37396#endif
37397#ifdef __cplusplus
37398}
37399#endif
37400
37401int
37402main ()
37403{
37404return f != socket;
37405 ;
37406 return 0;
37407}
37408_ACEOF
37409rm -f conftest.$ac_objext conftest$ac_exeext
37410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37411 (eval $ac_link) 2>conftest.er1
a848cd7e 37412 ac_status=$?
ac1cb8d3
VS
37413 grep -v '^ *+' conftest.er1 >conftest.err
37414 rm -f conftest.er1
37415 cat conftest.err >&5
a848cd7e
SC
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); } &&
89be85c2
VS
37418 { ac_try='test -z "$ac_c_werror_flag"
37419 || test ! -s conftest.err'
ac1cb8d3
VS
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; } &&
37425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37427 (eval $ac_try) 2>&5
37428 ac_status=$?
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); }; }; then
37431 ac_cv_func_socket=yes
37432else
37433 echo "$as_me: failed program was:" >&5
37434sed 's/^/| /' conftest.$ac_ext >&5
37435
37436ac_cv_func_socket=no
37437fi
ac1cb8d3
VS
37438rm -f conftest.err conftest.$ac_objext \
37439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37440fi
37441echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37442echo "${ECHO_T}$ac_cv_func_socket" >&6
37443if test $ac_cv_func_socket = yes; then
37444 :
37445else
37446
37447 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37448echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37449if test "${ac_cv_lib_socket_socket+set}" = set; then
37450 echo $ECHO_N "(cached) $ECHO_C" >&6
37451else
37452 ac_check_lib_save_LIBS=$LIBS
37453LIBS="-lsocket $LIBS"
37454cat >conftest.$ac_ext <<_ACEOF
37455/* confdefs.h. */
37456_ACEOF
37457cat confdefs.h >>conftest.$ac_ext
37458cat >>conftest.$ac_ext <<_ACEOF
37459/* end confdefs.h. */
37460
37461/* Override any gcc2 internal prototype to avoid an error. */
37462#ifdef __cplusplus
37463extern "C"
37464#endif
37465/* We use char because int might match the return type of a gcc2
37466 builtin and then its argument prototype would still apply. */
37467char socket ();
37468int
37469main ()
37470{
37471socket ();
37472 ;
37473 return 0;
37474}
37475_ACEOF
37476rm -f conftest.$ac_objext conftest$ac_exeext
37477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37478 (eval $ac_link) 2>conftest.er1
a848cd7e 37479 ac_status=$?
ac1cb8d3
VS
37480 grep -v '^ *+' conftest.er1 >conftest.err
37481 rm -f conftest.er1
37482 cat conftest.err >&5
a848cd7e
SC
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); } &&
89be85c2
VS
37485 { ac_try='test -z "$ac_c_werror_flag"
37486 || test ! -s conftest.err'
ac1cb8d3
VS
37487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37488 (eval $ac_try) 2>&5
37489 ac_status=$?
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); }; } &&
37492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37494 (eval $ac_try) 2>&5
37495 ac_status=$?
37496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497 (exit $ac_status); }; }; then
37498 ac_cv_lib_socket_socket=yes
37499else
37500 echo "$as_me: failed program was:" >&5
37501sed 's/^/| /' conftest.$ac_ext >&5
37502
37503ac_cv_lib_socket_socket=no
37504fi
ac1cb8d3
VS
37505rm -f conftest.err conftest.$ac_objext \
37506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37507LIBS=$ac_check_lib_save_LIBS
37508fi
37509echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37510echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37511if test $ac_cv_lib_socket_socket = yes; then
37512 if test "$INET_LINK" != " -lsocket"; then
37513 INET_LINK="$INET_LINK -lsocket"
37514 fi
37515else
37516
37517 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37518echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37519 wxUSE_SOCKETS=no
37520
37521
37522fi
37523
37524
37525
37526fi
37527
37528 fi
37529fi
37530
37531if test "$wxUSE_SOCKETS" = "yes" ; then
37532 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37533 ac_ext=cc
37534ac_cpp='$CXXCPP $CPPFLAGS'
37535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37538
37539 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37540echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37541if test "${wx_cv_type_getsockname3+set}" = set; then
37542 echo $ECHO_N "(cached) $ECHO_C" >&6
37543else
37544
37545 cat >conftest.$ac_ext <<_ACEOF
37546/* confdefs.h. */
37547_ACEOF
37548cat confdefs.h >>conftest.$ac_ext
37549cat >>conftest.$ac_ext <<_ACEOF
37550/* end confdefs.h. */
37551
37552 #include <sys/types.h>
37553 #include <sys/socket.h>
37554
37555int
37556main ()
37557{
37558
37559 socklen_t len;
37560 getsockname(0, 0, &len);
37561
37562 ;
37563 return 0;
37564}
37565_ACEOF
37566rm -f conftest.$ac_objext
37567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37568 (eval $ac_compile) 2>conftest.er1
a848cd7e 37569 ac_status=$?
ac1cb8d3
VS
37570 grep -v '^ *+' conftest.er1 >conftest.err
37571 rm -f conftest.er1
37572 cat conftest.err >&5
a848cd7e
SC
37573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574 (exit $ac_status); } &&
89be85c2
VS
37575 { ac_try='test -z "$ac_cxx_werror_flag"
37576 || test ! -s conftest.err'
ac1cb8d3
VS
37577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37578 (eval $ac_try) 2>&5
37579 ac_status=$?
37580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581 (exit $ac_status); }; } &&
37582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37584 (eval $ac_try) 2>&5
37585 ac_status=$?
37586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); }; }; then
37588 wx_cv_type_getsockname3=socklen_t
37589else
37590 echo "$as_me: failed program was:" >&5
37591sed 's/^/| /' conftest.$ac_ext >&5
37592
37593
37594 CFLAGS_OLD="$CFLAGS"
37595 if test "$GCC" = yes ; then
37596 CFLAGS="$CFLAGS -Werror"
37597 fi
37598
37599 cat >conftest.$ac_ext <<_ACEOF
37600/* confdefs.h. */
37601_ACEOF
37602cat confdefs.h >>conftest.$ac_ext
37603cat >>conftest.$ac_ext <<_ACEOF
37604/* end confdefs.h. */
37605
37606 #include <sys/types.h>
37607 #include <sys/socket.h>
37608
37609int
37610main ()
37611{
37612
37613 size_t len;
37614 getsockname(0, 0, &len);
37615
37616 ;
37617 return 0;
37618}
37619_ACEOF
37620rm -f conftest.$ac_objext
37621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37622 (eval $ac_compile) 2>conftest.er1
a848cd7e 37623 ac_status=$?
ac1cb8d3
VS
37624 grep -v '^ *+' conftest.er1 >conftest.err
37625 rm -f conftest.er1
37626 cat conftest.err >&5
a848cd7e
SC
37627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628 (exit $ac_status); } &&
89be85c2
VS
37629 { ac_try='test -z "$ac_cxx_werror_flag"
37630 || test ! -s conftest.err'
ac1cb8d3
VS
37631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37632 (eval $ac_try) 2>&5
37633 ac_status=$?
37634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37635 (exit $ac_status); }; } &&
37636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37638 (eval $ac_try) 2>&5
37639 ac_status=$?
37640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37641 (exit $ac_status); }; }; then
37642 wx_cv_type_getsockname3=size_t
37643else
37644 echo "$as_me: failed program was:" >&5
37645sed 's/^/| /' conftest.$ac_ext >&5
37646
37647cat >conftest.$ac_ext <<_ACEOF
37648/* confdefs.h. */
37649_ACEOF
37650cat confdefs.h >>conftest.$ac_ext
37651cat >>conftest.$ac_ext <<_ACEOF
37652/* end confdefs.h. */
37653
37654 #include <sys/types.h>
37655 #include <sys/socket.h>
37656
37657int
37658main ()
37659{
37660
37661 int len;
37662 getsockname(0, 0, &len);
37663
37664 ;
37665 return 0;
37666}
37667_ACEOF
37668rm -f conftest.$ac_objext
37669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37670 (eval $ac_compile) 2>conftest.er1
a848cd7e 37671 ac_status=$?
ac1cb8d3
VS
37672 grep -v '^ *+' conftest.er1 >conftest.err
37673 rm -f conftest.er1
37674 cat conftest.err >&5
a848cd7e
SC
37675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676 (exit $ac_status); } &&
89be85c2
VS
37677 { ac_try='test -z "$ac_cxx_werror_flag"
37678 || test ! -s conftest.err'
ac1cb8d3
VS
37679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680 (eval $ac_try) 2>&5
37681 ac_status=$?
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); }; } &&
37684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37686 (eval $ac_try) 2>&5
37687 ac_status=$?
37688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689 (exit $ac_status); }; }; then
37690 wx_cv_type_getsockname3=int
37691else
37692 echo "$as_me: failed program was:" >&5
37693sed 's/^/| /' conftest.$ac_ext >&5
37694
37695wx_cv_type_getsockname3=unknown
37696
37697fi
ac1cb8d3 37698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37699
37700fi
ac1cb8d3 37701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37702
37703 CFLAGS="$CFLAGS_OLD"
37704
37705
37706fi
ac1cb8d3 37707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37708
37709fi
37710echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37711echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37712
37713 if test "$wx_cv_type_getsockname3" = "unknown"; then
37714 wxUSE_SOCKETS=no
37715 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37716echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37717 else
37718 cat >>confdefs.h <<_ACEOF
37719#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37720_ACEOF
37721
37722 fi
37723 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37724echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37725if test "${wx_cv_type_getsockopt5+set}" = set; then
37726 echo $ECHO_N "(cached) $ECHO_C" >&6
37727else
37728
37729 cat >conftest.$ac_ext <<_ACEOF
37730/* confdefs.h. */
37731_ACEOF
37732cat confdefs.h >>conftest.$ac_ext
37733cat >>conftest.$ac_ext <<_ACEOF
37734/* end confdefs.h. */
37735
37736 #include <sys/types.h>
37737 #include <sys/socket.h>
37738
37739int
37740main ()
37741{
37742
37743 socklen_t len;
37744 getsockopt(0, 0, 0, 0, &len);
37745
37746 ;
37747 return 0;
37748}
37749_ACEOF
37750rm -f conftest.$ac_objext
37751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37752 (eval $ac_compile) 2>conftest.er1
37753 ac_status=$?
37754 grep -v '^ *+' conftest.er1 >conftest.err
37755 rm -f conftest.er1
37756 cat conftest.err >&5
37757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37758 (exit $ac_status); } &&
89be85c2
VS
37759 { ac_try='test -z "$ac_cxx_werror_flag"
37760 || test ! -s conftest.err'
5b674b9d
DE
37761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37762 (eval $ac_try) 2>&5
37763 ac_status=$?
37764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37765 (exit $ac_status); }; } &&
37766 { ac_try='test -s conftest.$ac_objext'
37767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37768 (eval $ac_try) 2>&5
37769 ac_status=$?
37770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37771 (exit $ac_status); }; }; then
37772 wx_cv_type_getsockopt5=socklen_t
37773else
37774 echo "$as_me: failed program was:" >&5
37775sed 's/^/| /' conftest.$ac_ext >&5
37776
37777
37778 CFLAGS_OLD="$CFLAGS"
37779 if test "$GCC" = yes ; then
37780 CFLAGS="$CFLAGS -Werror"
37781 fi
37782
37783 cat >conftest.$ac_ext <<_ACEOF
37784/* confdefs.h. */
37785_ACEOF
37786cat confdefs.h >>conftest.$ac_ext
37787cat >>conftest.$ac_ext <<_ACEOF
37788/* end confdefs.h. */
37789
37790 #include <sys/types.h>
37791 #include <sys/socket.h>
37792
37793int
37794main ()
37795{
37796
37797 size_t len;
37798 getsockopt(0, 0, 0, 0, &len);
37799
37800 ;
37801 return 0;
37802}
37803_ACEOF
37804rm -f conftest.$ac_objext
37805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37806 (eval $ac_compile) 2>conftest.er1
37807 ac_status=$?
37808 grep -v '^ *+' conftest.er1 >conftest.err
37809 rm -f conftest.er1
37810 cat conftest.err >&5
37811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812 (exit $ac_status); } &&
89be85c2
VS
37813 { ac_try='test -z "$ac_cxx_werror_flag"
37814 || test ! -s conftest.err'
5b674b9d
DE
37815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37816 (eval $ac_try) 2>&5
37817 ac_status=$?
37818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819 (exit $ac_status); }; } &&
37820 { ac_try='test -s conftest.$ac_objext'
37821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37822 (eval $ac_try) 2>&5
37823 ac_status=$?
37824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825 (exit $ac_status); }; }; then
37826 wx_cv_type_getsockopt5=size_t
37827else
37828 echo "$as_me: failed program was:" >&5
37829sed 's/^/| /' conftest.$ac_ext >&5
37830
37831cat >conftest.$ac_ext <<_ACEOF
37832/* confdefs.h. */
37833_ACEOF
37834cat confdefs.h >>conftest.$ac_ext
37835cat >>conftest.$ac_ext <<_ACEOF
37836/* end confdefs.h. */
37837
37838 #include <sys/types.h>
37839 #include <sys/socket.h>
37840
37841int
37842main ()
37843{
37844
37845 int len;
37846 getsockopt(0, 0, 0, 0, &len);
37847
37848 ;
37849 return 0;
37850}
37851_ACEOF
37852rm -f conftest.$ac_objext
37853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37854 (eval $ac_compile) 2>conftest.er1
37855 ac_status=$?
37856 grep -v '^ *+' conftest.er1 >conftest.err
37857 rm -f conftest.er1
37858 cat conftest.err >&5
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); } &&
89be85c2
VS
37861 { ac_try='test -z "$ac_cxx_werror_flag"
37862 || test ! -s conftest.err'
5b674b9d
DE
37863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37864 (eval $ac_try) 2>&5
37865 ac_status=$?
37866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); }; } &&
37868 { ac_try='test -s conftest.$ac_objext'
37869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37870 (eval $ac_try) 2>&5
37871 ac_status=$?
37872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873 (exit $ac_status); }; }; then
37874 wx_cv_type_getsockopt5=int
37875else
37876 echo "$as_me: failed program was:" >&5
37877sed 's/^/| /' conftest.$ac_ext >&5
37878
37879wx_cv_type_getsockopt5=unknown
37880
37881fi
37882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37883
37884fi
37885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37886
37887 CFLAGS="$CFLAGS_OLD"
37888
37889
37890fi
37891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37892
37893fi
37894echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37895echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37896
37897 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37898 wxUSE_SOCKETS=no
37899 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37900echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37901 else
37902 cat >>confdefs.h <<_ACEOF
37903#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37904_ACEOF
37905
37906 fi
4d4ff94c
VZ
37907 ac_ext=c
37908ac_cpp='$CPP $CPPFLAGS'
37909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37911ac_compiler_gnu=$ac_cv_c_compiler_gnu
37912
a848cd7e
SC
37913 fi
37914fi
37915
37916if test "$wxUSE_SOCKETS" = "yes" ; then
37917 cat >>confdefs.h <<\_ACEOF
37918#define wxUSE_SOCKETS 1
37919_ACEOF
37920
37921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37922fi
37923
37924if test "$wxUSE_PROTOCOL" = "yes"; then
37925 if test "$wxUSE_SOCKETS" != "yes"; then
37926 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37927echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37928 wxUSE_PROTOCOL=no
37929 fi
37930fi
37931
37932if test "$wxUSE_PROTOCOL" = "yes"; then
37933 cat >>confdefs.h <<\_ACEOF
37934#define wxUSE_PROTOCOL 1
37935_ACEOF
37936
37937
37938 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37939 cat >>confdefs.h <<\_ACEOF
37940#define wxUSE_PROTOCOL_HTTP 1
37941_ACEOF
37942
37943 fi
37944 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37945 cat >>confdefs.h <<\_ACEOF
37946#define wxUSE_PROTOCOL_FTP 1
37947_ACEOF
37948
37949 fi
37950 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37951 cat >>confdefs.h <<\_ACEOF
37952#define wxUSE_PROTOCOL_FILE 1
37953_ACEOF
37954
37955 fi
37956else
37957 if test "$wxUSE_FS_INET" = "yes"; then
37958 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37959echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37960 wxUSE_FS_INET="no"
37961 fi
37962fi
37963
37964if test "$wxUSE_URL" = "yes"; then
37965 if test "$wxUSE_PROTOCOL" != "yes"; then
37966 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37967echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37968 wxUSE_URL=no
37969 fi
37970 if test "$wxUSE_URL" = "yes"; then
37971 cat >>confdefs.h <<\_ACEOF
37972#define wxUSE_URL 1
37973_ACEOF
37974
37975 fi
37976fi
37977
37978if test "$wxUSE_FS_INET" = "yes"; then
37979 cat >>confdefs.h <<\_ACEOF
37980#define wxUSE_FS_INET 1
37981_ACEOF
37982
37983fi
37984
37985
37986if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37987 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37988
4cb1d3da 37989 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37990
37991for ac_header in linux/joystick.h
37992do
37993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37994if eval "test \"\${$as_ac_Header+set}\" = set"; then
37995 echo "$as_me:$LINENO: checking for $ac_header" >&5
37996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37997if eval "test \"\${$as_ac_Header+set}\" = set"; then
37998 echo $ECHO_N "(cached) $ECHO_C" >&6
37999fi
38000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38002else
38003 # Is the header compilable?
38004echo "$as_me:$LINENO: checking $ac_header usability" >&5
38005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38006cat >conftest.$ac_ext <<_ACEOF
38007/* confdefs.h. */
38008_ACEOF
38009cat confdefs.h >>conftest.$ac_ext
38010cat >>conftest.$ac_ext <<_ACEOF
38011/* end confdefs.h. */
38012$ac_includes_default
38013#include <$ac_header>
38014_ACEOF
38015rm -f conftest.$ac_objext
38016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38017 (eval $ac_compile) 2>conftest.er1
a848cd7e 38018 ac_status=$?
ac1cb8d3
VS
38019 grep -v '^ *+' conftest.er1 >conftest.err
38020 rm -f conftest.er1
38021 cat conftest.err >&5
a848cd7e
SC
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); } &&
89be85c2
VS
38024 { ac_try='test -z "$ac_c_werror_flag"
38025 || test ! -s conftest.err'
ac1cb8d3
VS
38026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38027 (eval $ac_try) 2>&5
38028 ac_status=$?
38029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38030 (exit $ac_status); }; } &&
38031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38033 (eval $ac_try) 2>&5
38034 ac_status=$?
38035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036 (exit $ac_status); }; }; then
38037 ac_header_compiler=yes
38038else
38039 echo "$as_me: failed program was:" >&5
38040sed 's/^/| /' conftest.$ac_ext >&5
38041
38042ac_header_compiler=no
38043fi
ac1cb8d3 38044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38046echo "${ECHO_T}$ac_header_compiler" >&6
38047
38048# Is the header present?
38049echo "$as_me:$LINENO: checking $ac_header presence" >&5
38050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38051cat >conftest.$ac_ext <<_ACEOF
38052/* confdefs.h. */
38053_ACEOF
38054cat confdefs.h >>conftest.$ac_ext
38055cat >>conftest.$ac_ext <<_ACEOF
38056/* end confdefs.h. */
38057#include <$ac_header>
38058_ACEOF
38059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38061 ac_status=$?
38062 grep -v '^ *+' conftest.er1 >conftest.err
38063 rm -f conftest.er1
38064 cat conftest.err >&5
38065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066 (exit $ac_status); } >/dev/null; then
38067 if test -s conftest.err; then
38068 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38070 else
38071 ac_cpp_err=
38072 fi
38073else
38074 ac_cpp_err=yes
38075fi
38076if test -z "$ac_cpp_err"; then
38077 ac_header_preproc=yes
38078else
38079 echo "$as_me: failed program was:" >&5
38080sed 's/^/| /' conftest.$ac_ext >&5
38081
38082 ac_header_preproc=no
38083fi
38084rm -f conftest.err conftest.$ac_ext
38085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38086echo "${ECHO_T}$ac_header_preproc" >&6
38087
38088# So? What about this header?
ac1cb8d3
VS
38089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38090 yes:no: )
a848cd7e
SC
38091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38095 ac_header_preproc=yes
a848cd7e 38096 ;;
ac1cb8d3 38097 no:yes:* )
a848cd7e
SC
38098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38110 (
38111 cat <<\_ASBOX
ac1cb8d3
VS
38112## ----------------------------------------- ##
38113## Report this to wx-dev@lists.wxwidgets.org ##
38114## ----------------------------------------- ##
a848cd7e
SC
38115_ASBOX
38116 ) |
38117 sed "s/^/$as_me: WARNING: /" >&2
38118 ;;
38119esac
38120echo "$as_me:$LINENO: checking for $ac_header" >&5
38121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38122if eval "test \"\${$as_ac_Header+set}\" = set"; then
38123 echo $ECHO_N "(cached) $ECHO_C" >&6
38124else
ac1cb8d3 38125 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38126fi
38127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38129
38130fi
38131if test `eval echo '${'$as_ac_Header'}'` = yes; then
38132 cat >>confdefs.h <<_ACEOF
38133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38134_ACEOF
38135
38136fi
38137
38138done
38139
38140 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38141 wxUSE_JOYSTICK=no
38142 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38143echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38144 fi
4cb1d3da
RN
38145 else
38146 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38147 wxUSE_JOYSTICK=no
38148 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38149echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38150 fi
a848cd7e 38151 fi
a848cd7e 38152
4cb1d3da
RN
38153
38154 if test "$wxUSE_JOYSTICK" = "yes"; then
38155 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38156#define wxUSE_JOYSTICK 1
38157_ACEOF
38158
4cb1d3da
RN
38159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38160 fi
a848cd7e
SC
38161 fi
38162fi
38163
38164
38165
38166if test "$wxUSE_FONTMAP" = "yes" ; then
38167 cat >>confdefs.h <<\_ACEOF
38168#define wxUSE_FONTMAP 1
38169_ACEOF
38170
38171fi
38172
38173if test "$wxUSE_UNICODE" = "yes" ; then
38174 cat >>confdefs.h <<\_ACEOF
38175#define wxUSE_UNICODE 1
38176_ACEOF
38177
38178
38179 if test "$USE_WIN32" != 1; then
38180 wxUSE_UNICODE_MSLU=no
38181 fi
38182
38183 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38184 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38185echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38186if test "${ac_cv_lib_unicows_main+set}" = set; then
38187 echo $ECHO_N "(cached) $ECHO_C" >&6
38188else
38189 ac_check_lib_save_LIBS=$LIBS
38190LIBS="-lunicows $LIBS"
38191cat >conftest.$ac_ext <<_ACEOF
38192/* confdefs.h. */
38193_ACEOF
38194cat confdefs.h >>conftest.$ac_ext
38195cat >>conftest.$ac_ext <<_ACEOF
38196/* end confdefs.h. */
38197
38198
38199int
38200main ()
38201{
38202main ();
38203 ;
38204 return 0;
38205}
38206_ACEOF
38207rm -f conftest.$ac_objext conftest$ac_exeext
38208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38209 (eval $ac_link) 2>conftest.er1
a848cd7e 38210 ac_status=$?
ac1cb8d3
VS
38211 grep -v '^ *+' conftest.er1 >conftest.err
38212 rm -f conftest.er1
38213 cat conftest.err >&5
a848cd7e
SC
38214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); } &&
89be85c2
VS
38216 { ac_try='test -z "$ac_c_werror_flag"
38217 || test ! -s conftest.err'
ac1cb8d3
VS
38218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38219 (eval $ac_try) 2>&5
38220 ac_status=$?
38221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222 (exit $ac_status); }; } &&
38223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38225 (eval $ac_try) 2>&5
38226 ac_status=$?
38227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228 (exit $ac_status); }; }; then
38229 ac_cv_lib_unicows_main=yes
38230else
38231 echo "$as_me: failed program was:" >&5
38232sed 's/^/| /' conftest.$ac_ext >&5
38233
38234ac_cv_lib_unicows_main=no
38235fi
ac1cb8d3
VS
38236rm -f conftest.err conftest.$ac_objext \
38237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38238LIBS=$ac_check_lib_save_LIBS
38239fi
38240echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38241echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38242if test $ac_cv_lib_unicows_main = yes; then
38243
38244 cat >>confdefs.h <<\_ACEOF
38245#define wxUSE_UNICODE_MSLU 1
38246_ACEOF
38247
38248
38249else
38250
38251 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38252 Applications will only run on Windows NT/2000/XP!" >&5
38253echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38254 Applications will only run on Windows NT/2000/XP!" >&2;}
38255 wxUSE_UNICODE_MSLU=no
38256
38257fi
38258
38259 fi
38260fi
38261
38262if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38263 cat >>confdefs.h <<\_ACEOF
38264#define wxUSE_EXPERIMENTAL_PRINTF 1
38265_ACEOF
38266
38267fi
38268
38269
38270if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38271 cat >>confdefs.h <<\_ACEOF
38272#define wxUSE_POSTSCRIPT 1
38273_ACEOF
38274
38275fi
38276
38277cat >>confdefs.h <<\_ACEOF
38278#define wxUSE_AFM_FOR_POSTSCRIPT 1
38279_ACEOF
38280
38281
38282cat >>confdefs.h <<\_ACEOF
38283#define wxUSE_NORMALIZED_PS_FONTS 1
38284_ACEOF
38285
38286
38287
38288if test "$wxUSE_CONSTRAINTS" = "yes"; then
38289 cat >>confdefs.h <<\_ACEOF
38290#define wxUSE_CONSTRAINTS 1
38291_ACEOF
38292
38293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38294fi
38295
8a7b1113
VZ
38296if test "$wxUSE_MDI" = "yes"; then
38297 cat >>confdefs.h <<\_ACEOF
38298#define wxUSE_MDI 1
38299_ACEOF
38300
38301
38302 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38303 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38304#define wxUSE_MDI_ARCHITECTURE 1
38305_ACEOF
38306
8a7b1113
VZ
38307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38308 fi
a848cd7e
SC
38309fi
38310
38311if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38312 cat >>confdefs.h <<\_ACEOF
38313#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38314_ACEOF
38315
38316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38317 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38319 fi
38320fi
38321
38322if test "$wxUSE_HELP" = "yes"; then
38323 cat >>confdefs.h <<\_ACEOF
38324#define wxUSE_HELP 1
38325_ACEOF
38326
38327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38328
38329 if test "$wxUSE_MSW" = 1; then
38330 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38331 cat >>confdefs.h <<\_ACEOF
38332#define wxUSE_MS_HTML_HELP 1
38333_ACEOF
38334
38335 fi
38336 fi
38337
38338 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38339 if test "$wxUSE_HTML" = "yes"; then
38340 cat >>confdefs.h <<\_ACEOF
38341#define wxUSE_WXHTML_HELP 1
38342_ACEOF
38343
38344 else
38345 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38346echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38347 wxUSE_WXHTML_HELP=no
38348 fi
38349 fi
38350fi
38351
38352if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38353 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38354 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38355echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38356 else
38357 cat >>confdefs.h <<\_ACEOF
38358#define wxUSE_PRINTING_ARCHITECTURE 1
38359_ACEOF
38360
38361 fi
38362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38363fi
38364
38365if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38366 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38367echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38368 { (exit 1); exit 1; }; }
38369fi
38370
38371
38372if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38373 -o "$wxUSE_CLIPBOARD" = "yes" \
38374 -o "$wxUSE_OLE" = "yes" \
38375 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38376
38377for ac_header in ole2.h
38378do
38379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38380if eval "test \"\${$as_ac_Header+set}\" = set"; then
38381 echo "$as_me:$LINENO: checking for $ac_header" >&5
38382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38383if eval "test \"\${$as_ac_Header+set}\" = set"; then
38384 echo $ECHO_N "(cached) $ECHO_C" >&6
38385fi
38386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38388else
38389 # Is the header compilable?
38390echo "$as_me:$LINENO: checking $ac_header usability" >&5
38391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38392cat >conftest.$ac_ext <<_ACEOF
38393/* confdefs.h. */
38394_ACEOF
38395cat confdefs.h >>conftest.$ac_ext
38396cat >>conftest.$ac_ext <<_ACEOF
38397/* end confdefs.h. */
38398$ac_includes_default
38399#include <$ac_header>
38400_ACEOF
38401rm -f conftest.$ac_objext
38402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38403 (eval $ac_compile) 2>conftest.er1
a848cd7e 38404 ac_status=$?
ac1cb8d3
VS
38405 grep -v '^ *+' conftest.er1 >conftest.err
38406 rm -f conftest.er1
38407 cat conftest.err >&5
a848cd7e
SC
38408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38409 (exit $ac_status); } &&
89be85c2
VS
38410 { ac_try='test -z "$ac_c_werror_flag"
38411 || test ! -s conftest.err'
ac1cb8d3
VS
38412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38413 (eval $ac_try) 2>&5
38414 ac_status=$?
38415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416 (exit $ac_status); }; } &&
38417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38419 (eval $ac_try) 2>&5
38420 ac_status=$?
38421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38422 (exit $ac_status); }; }; then
38423 ac_header_compiler=yes
38424else
38425 echo "$as_me: failed program was:" >&5
38426sed 's/^/| /' conftest.$ac_ext >&5
38427
38428ac_header_compiler=no
38429fi
ac1cb8d3 38430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38432echo "${ECHO_T}$ac_header_compiler" >&6
38433
38434# Is the header present?
38435echo "$as_me:$LINENO: checking $ac_header presence" >&5
38436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38437cat >conftest.$ac_ext <<_ACEOF
38438/* confdefs.h. */
38439_ACEOF
38440cat confdefs.h >>conftest.$ac_ext
38441cat >>conftest.$ac_ext <<_ACEOF
38442/* end confdefs.h. */
38443#include <$ac_header>
38444_ACEOF
38445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38447 ac_status=$?
38448 grep -v '^ *+' conftest.er1 >conftest.err
38449 rm -f conftest.er1
38450 cat conftest.err >&5
38451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38452 (exit $ac_status); } >/dev/null; then
38453 if test -s conftest.err; then
38454 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38456 else
38457 ac_cpp_err=
38458 fi
38459else
38460 ac_cpp_err=yes
38461fi
38462if test -z "$ac_cpp_err"; then
38463 ac_header_preproc=yes
38464else
38465 echo "$as_me: failed program was:" >&5
38466sed 's/^/| /' conftest.$ac_ext >&5
38467
38468 ac_header_preproc=no
38469fi
38470rm -f conftest.err conftest.$ac_ext
38471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38472echo "${ECHO_T}$ac_header_preproc" >&6
38473
38474# So? What about this header?
ac1cb8d3
VS
38475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38476 yes:no: )
a848cd7e
SC
38477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38481 ac_header_preproc=yes
a848cd7e 38482 ;;
ac1cb8d3 38483 no:yes:* )
a848cd7e
SC
38484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38496 (
38497 cat <<\_ASBOX
ac1cb8d3
VS
38498## ----------------------------------------- ##
38499## Report this to wx-dev@lists.wxwidgets.org ##
38500## ----------------------------------------- ##
a848cd7e
SC
38501_ASBOX
38502 ) |
38503 sed "s/^/$as_me: WARNING: /" >&2
38504 ;;
38505esac
38506echo "$as_me:$LINENO: checking for $ac_header" >&5
38507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38508if eval "test \"\${$as_ac_Header+set}\" = set"; then
38509 echo $ECHO_N "(cached) $ECHO_C" >&6
38510else
ac1cb8d3 38511 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38512fi
38513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38515
38516fi
38517if test `eval echo '${'$as_ac_Header'}'` = yes; then
38518 cat >>confdefs.h <<_ACEOF
38519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38520_ACEOF
38521
38522fi
38523
38524done
38525
38526
38527 if test "$ac_cv_header_ole2_h" = "yes" ; then
38528 if test "$GCC" = yes ; then
38529
38530
38531 ac_ext=cc
38532ac_cpp='$CXXCPP $CPPFLAGS'
38533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38536
38537
38538 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38539echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38540 cat >conftest.$ac_ext <<_ACEOF
38541/* confdefs.h. */
38542_ACEOF
38543cat confdefs.h >>conftest.$ac_ext
38544cat >>conftest.$ac_ext <<_ACEOF
38545/* end confdefs.h. */
38546#include <windows.h>
38547 #include <ole2.h>
38548int
38549main ()
38550{
38551
38552 ;
38553 return 0;
38554}
38555_ACEOF
38556rm -f conftest.$ac_objext
38557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38558 (eval $ac_compile) 2>conftest.er1
a848cd7e 38559 ac_status=$?
ac1cb8d3
VS
38560 grep -v '^ *+' conftest.er1 >conftest.err
38561 rm -f conftest.er1
38562 cat conftest.err >&5
a848cd7e
SC
38563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564 (exit $ac_status); } &&
89be85c2
VS
38565 { ac_try='test -z "$ac_cxx_werror_flag"
38566 || test ! -s conftest.err'
ac1cb8d3
VS
38567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38568 (eval $ac_try) 2>&5
38569 ac_status=$?
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); }; } &&
38572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38574 (eval $ac_try) 2>&5
38575 ac_status=$?
38576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 (exit $ac_status); }; }; then
38578 echo "$as_me:$LINENO: result: no" >&5
38579echo "${ECHO_T}no" >&6
38580else
38581 echo "$as_me: failed program was:" >&5
38582sed 's/^/| /' conftest.$ac_ext >&5
38583
38584echo "$as_me:$LINENO: result: yes" >&5
38585echo "${ECHO_T}yes" >&6
38586 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38587fi
ac1cb8d3 38588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38589 ac_ext=c
38590ac_cpp='$CPP $CPPFLAGS'
38591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38593ac_compiler_gnu=$ac_cv_c_compiler_gnu
38594
a848cd7e
SC
38595 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38596 if test "$wxUSE_OLE" = "yes" ; then
38597 cat >>confdefs.h <<\_ACEOF
38598#define wxUSE_OLE 1
38599_ACEOF
38600
38601 fi
38602 fi
38603
38604 if test "$wxUSE_DATAOBJ" = "yes" ; then
38605 cat >>confdefs.h <<\_ACEOF
38606#define wxUSE_DATAOBJ 1
38607_ACEOF
38608
38609 fi
38610 else
38611 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38612echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38613
38614 wxUSE_CLIPBOARD=no
38615 wxUSE_DRAG_AND_DROP=no
38616 wxUSE_DATAOBJ=no
38617 wxUSE_OLE=no
38618 fi
38619
38620 if test "$wxUSE_METAFILE" = "yes"; then
38621 cat >>confdefs.h <<\_ACEOF
38622#define wxUSE_METAFILE 1
38623_ACEOF
38624
38625
38626 cat >>confdefs.h <<\_ACEOF
38627#define wxUSE_ENH_METAFILE 1
38628_ACEOF
38629
38630 fi
38631fi
38632
38633if test "$wxUSE_IPC" = "yes"; then
38634 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
38635 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38636echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
38637 fi
38638
38639 cat >>confdefs.h <<\_ACEOF
38640#define wxUSE_IPC 1
38641_ACEOF
38642
38643fi
38644
38645if test "$wxUSE_CLIPBOARD" = "yes"; then
38646 if test "$wxUSE_MGL" = 1; then
38647 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38648echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38649 wxUSE_CLIPBOARD=no
38650 fi
38651
38652 if test "$wxUSE_CLIPBOARD" = "yes"; then
38653 cat >>confdefs.h <<\_ACEOF
38654#define wxUSE_CLIPBOARD 1
38655_ACEOF
38656
38657
38658 cat >>confdefs.h <<\_ACEOF
38659#define wxUSE_DATAOBJ 1
38660_ACEOF
38661
38662 fi
38663fi
38664
38665if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38666 if test "$wxUSE_GTK" = 1; then
38667 if test "$WXGTK12" != 1; then
38668 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38669echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38670 wxUSE_DRAG_AND_DROP=no
38671 fi
38672 fi
38673
38674 if test "$wxUSE_MOTIF" = 1; then
38675 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38676echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38677 wxUSE_DRAG_AND_DROP=no
38678 fi
38679
38680 if test "$wxUSE_X11" = 1; then
38681 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38682echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38683 wxUSE_DRAG_AND_DROP=no
38684 fi
38685
38686 if test "$wxUSE_MGL" = 1; then
38687 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38688echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38689 wxUSE_DRAG_AND_DROP=no
38690 fi
38691
38692 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38693 cat >>confdefs.h <<\_ACEOF
38694#define wxUSE_DRAG_AND_DROP 1
38695_ACEOF
38696
38697 fi
38698
38699fi
38700
38701if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38703fi
38704
38705if test "$wxUSE_SPLINES" = "yes" ; then
38706 cat >>confdefs.h <<\_ACEOF
38707#define wxUSE_SPLINES 1
38708_ACEOF
38709
38710fi
38711
38712
38713USES_CONTROLS=0
38714if test "$wxUSE_CONTROLS" = "yes"; then
38715 USES_CONTROLS=1
38716fi
38717
38718if test "$wxUSE_ACCEL" = "yes"; then
38719 cat >>confdefs.h <<\_ACEOF
38720#define wxUSE_ACCEL 1
38721_ACEOF
38722
38723 USES_CONTROLS=1
38724fi
38725
38726if test "$wxUSE_BUTTON" = "yes"; then
38727 cat >>confdefs.h <<\_ACEOF
38728#define wxUSE_BUTTON 1
38729_ACEOF
38730
38731 USES_CONTROLS=1
38732fi
38733
38734if test "$wxUSE_BMPBUTTON" = "yes"; then
38735 cat >>confdefs.h <<\_ACEOF
38736#define wxUSE_BMPBUTTON 1
38737_ACEOF
38738
38739 USES_CONTROLS=1
38740fi
38741
38742if test "$wxUSE_CALCTRL" = "yes"; then
38743 cat >>confdefs.h <<\_ACEOF
38744#define wxUSE_CALENDARCTRL 1
38745_ACEOF
38746
38747 USES_CONTROLS=1
38748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38749fi
38750
38751if test "$wxUSE_CARET" = "yes"; then
38752 cat >>confdefs.h <<\_ACEOF
38753#define wxUSE_CARET 1
38754_ACEOF
38755
38756 USES_CONTROLS=1
38757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38758fi
38759
38760if test "$wxUSE_COMBOBOX" = "yes"; then
38761 cat >>confdefs.h <<\_ACEOF
38762#define wxUSE_COMBOBOX 1
38763_ACEOF
38764
38765 USES_CONTROLS=1
38766fi
38767
38768if test "$wxUSE_CHOICE" = "yes"; then
38769 cat >>confdefs.h <<\_ACEOF
38770#define wxUSE_CHOICE 1
38771_ACEOF
38772
38773 USES_CONTROLS=1
38774fi
38775
92bbdbcd
WS
38776if test "$wxUSE_CHOICEBOOK" = "yes"; then
38777 cat >>confdefs.h <<\_ACEOF
38778#define wxUSE_CHOICEBOOK 1
38779_ACEOF
38780
38781 USES_CONTROLS=1
38782fi
38783
a848cd7e
SC
38784if test "$wxUSE_CHECKBOX" = "yes"; then
38785 cat >>confdefs.h <<\_ACEOF
38786#define wxUSE_CHECKBOX 1
38787_ACEOF
38788
38789 USES_CONTROLS=1
38790fi
38791
38792if test "$wxUSE_CHECKLST" = "yes"; then
38793 cat >>confdefs.h <<\_ACEOF
38794#define wxUSE_CHECKLISTBOX 1
38795_ACEOF
38796
38797 USES_CONTROLS=1
38798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38799fi
38800
da98e9be
VZ
38801if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38802 cat >>confdefs.h <<\_ACEOF
38803#define wxUSE_DATEPICKCTRL 1
38804_ACEOF
38805
38806 USES_CONTROLS=1
38807fi
38808
a848cd7e
SC
38809if test "$wxUSE_DISPLAY" = "yes"; then
38810 cat >>confdefs.h <<\_ACEOF
38811#define wxUSE_DISPLAY 1
38812_ACEOF
38813
38814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
38815fi
38816
38817if test "$wxUSE_GAUGE" = "yes"; then
38818 cat >>confdefs.h <<\_ACEOF
38819#define wxUSE_GAUGE 1
38820_ACEOF
38821
38822 USES_CONTROLS=1
38823fi
38824
38825if test "$wxUSE_GRID" = "yes"; then
38826 cat >>confdefs.h <<\_ACEOF
38827#define wxUSE_GRID 1
38828_ACEOF
38829
38830 USES_CONTROLS=1
38831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38832fi
38833
38834if test "$wxUSE_IMAGLIST" = "yes"; then
38835 cat >>confdefs.h <<\_ACEOF
38836#define wxUSE_IMAGLIST 1
38837_ACEOF
38838
38839fi
38840
38841if test "$wxUSE_LISTBOOK" = "yes"; then
38842 cat >>confdefs.h <<\_ACEOF
38843#define wxUSE_LISTBOOK 1
38844_ACEOF
38845
38846 USES_CONTROLS=1
38847fi
38848
38849if test "$wxUSE_LISTBOX" = "yes"; then
38850 cat >>confdefs.h <<\_ACEOF
38851#define wxUSE_LISTBOX 1
38852_ACEOF
38853
38854 USES_CONTROLS=1
38855fi
38856
38857if test "$wxUSE_LISTCTRL" = "yes"; then
38858 if test "$wxUSE_IMAGLIST" = "yes"; then
38859 cat >>confdefs.h <<\_ACEOF
38860#define wxUSE_LISTCTRL 1
38861_ACEOF
38862
38863 USES_CONTROLS=1
38864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38865 else
38866 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38867echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38868 fi
38869fi
38870
38871if test "$wxUSE_NOTEBOOK" = "yes"; then
38872 cat >>confdefs.h <<\_ACEOF
38873#define wxUSE_NOTEBOOK 1
38874_ACEOF
38875
38876 USES_CONTROLS=1
38877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38878fi
38879
38880
38881if test "$wxUSE_RADIOBOX" = "yes"; then
38882 cat >>confdefs.h <<\_ACEOF
38883#define wxUSE_RADIOBOX 1
38884_ACEOF
38885
38886 USES_CONTROLS=1
38887fi
38888
38889if test "$wxUSE_RADIOBTN" = "yes"; then
38890 cat >>confdefs.h <<\_ACEOF
38891#define wxUSE_RADIOBTN 1
38892_ACEOF
38893
38894 USES_CONTROLS=1
38895fi
38896
38897if test "$wxUSE_SASH" = "yes"; then
38898 cat >>confdefs.h <<\_ACEOF
38899#define wxUSE_SASH 1
38900_ACEOF
38901
38902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38903fi
38904
38905if test "$wxUSE_SCROLLBAR" = "yes"; then
38906 cat >>confdefs.h <<\_ACEOF
38907#define wxUSE_SCROLLBAR 1
38908_ACEOF
38909
38910 USES_CONTROLS=1
38911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38912fi
38913
38914if test "$wxUSE_SLIDER" = "yes"; then
38915 cat >>confdefs.h <<\_ACEOF
38916#define wxUSE_SLIDER 1
38917_ACEOF
38918
38919 USES_CONTROLS=1
38920fi
38921
38922if test "$wxUSE_SPINBTN" = "yes"; then
38923 cat >>confdefs.h <<\_ACEOF
38924#define wxUSE_SPINBTN 1
38925_ACEOF
38926
38927 USES_CONTROLS=1
38928fi
38929
38930if test "$wxUSE_SPINCTRL" = "yes"; then
38931 cat >>confdefs.h <<\_ACEOF
38932#define wxUSE_SPINCTRL 1
38933_ACEOF
38934
38935 USES_CONTROLS=1
38936fi
38937
38938if test "$wxUSE_SPLITTER" = "yes"; then
38939 cat >>confdefs.h <<\_ACEOF
38940#define wxUSE_SPLITTER 1
38941_ACEOF
38942
38943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38944fi
38945
38946if test "$wxUSE_STATBMP" = "yes"; then
38947 cat >>confdefs.h <<\_ACEOF
38948#define wxUSE_STATBMP 1
38949_ACEOF
38950
38951 USES_CONTROLS=1
38952fi
38953
38954if test "$wxUSE_STATBOX" = "yes"; then
38955 cat >>confdefs.h <<\_ACEOF
38956#define wxUSE_STATBOX 1
38957_ACEOF
38958
38959 USES_CONTROLS=1
38960fi
38961
38962if test "$wxUSE_STATTEXT" = "yes"; then
38963 cat >>confdefs.h <<\_ACEOF
38964#define wxUSE_STATTEXT 1
38965_ACEOF
38966
38967 USES_CONTROLS=1
38968fi
38969
38970if test "$wxUSE_STATLINE" = "yes"; then
38971 cat >>confdefs.h <<\_ACEOF
38972#define wxUSE_STATLINE 1
38973_ACEOF
38974
38975 USES_CONTROLS=1
38976fi
38977
38978if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38979 cat >>confdefs.h <<\_ACEOF
38980#define wxUSE_NATIVE_STATUSBAR 1
38981_ACEOF
38982
a848cd7e
SC
38983 cat >>confdefs.h <<\_ACEOF
38984#define wxUSE_STATUSBAR 1
38985_ACEOF
38986
38987 USES_CONTROLS=1
38988
38989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38990fi
38991
38992if test "$wxUSE_TABDIALOG" = "yes"; then
38993 cat >>confdefs.h <<\_ACEOF
38994#define wxUSE_TAB_DIALOG 1
38995_ACEOF
38996
a848cd7e
SC
38997fi
38998
38999if test "$wxUSE_TEXTCTRL" = "yes"; then
39000 cat >>confdefs.h <<\_ACEOF
39001#define wxUSE_TEXTCTRL 1
39002_ACEOF
39003
39004 USES_CONTROLS=1
39005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39006fi
39007
39008if test "$wxUSE_TOGGLEBTN" = "yes"; then
39009 if test "$wxUSE_COCOA" = 1 ; then
39010 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39011echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39012 wxUSE_TOGGLEBTN=no
bdcade0a
MB
39013 else
39014 if test "$wxUSE_PM" = 1; then
39015 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
39016echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
39017 wxUSE_TOGGLEBTN=no
39018 fi
a848cd7e
SC
39019 fi
39020 if test "$wxUSE_UNIVERSAL" = "yes"; then
39021 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39022echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39023 wxUSE_TOGGLEBTN=no
39024 fi
39025
39026 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39027 cat >>confdefs.h <<\_ACEOF
39028#define wxUSE_TOGGLEBTN 1
39029_ACEOF
39030
39031 USES_CONTROLS=1
39032 fi
39033fi
39034
39035if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39036 cat >>confdefs.h <<\_ACEOF
39037#define wxUSE_TOOLBAR_SIMPLE 1
39038_ACEOF
39039
39040 wxUSE_TOOLBAR="yes"
39041 USES_CONTROLS=1
39042fi
39043
39044if test "$wxUSE_TOOLBAR" = "yes"; then
39045 cat >>confdefs.h <<\_ACEOF
39046#define wxUSE_TOOLBAR 1
39047_ACEOF
39048
39049 USES_CONTROLS=1
39050
39051 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39052 wxUSE_TOOLBAR_NATIVE="yes"
39053 fi
39054
39055 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39056 cat >>confdefs.h <<\_ACEOF
39057#define wxUSE_TOOLBAR_NATIVE 1
39058_ACEOF
39059
39060 USES_CONTROLS=1
39061 fi
39062
39063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39064fi
39065
39066if test "$wxUSE_TOOLTIPS" = "yes"; then
39067 if test "$wxUSE_MOTIF" = 1; then
39068 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39069echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39070 else
39071 if test "$wxUSE_UNIVERSAL" = "yes"; then
39072 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39073echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39074 else
39075 cat >>confdefs.h <<\_ACEOF
39076#define wxUSE_TOOLTIPS 1
39077_ACEOF
39078
39079 fi
39080 fi
39081fi
39082
39083if test "$wxUSE_TREECTRL" = "yes"; then
39084 if test "$wxUSE_IMAGLIST" = "yes"; then
39085 cat >>confdefs.h <<\_ACEOF
39086#define wxUSE_TREECTRL 1
39087_ACEOF
39088
39089 USES_CONTROLS=1
39090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39091 else
39092 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39093echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39094 fi
39095fi
39096
39097if test "$wxUSE_POPUPWIN" = "yes"; then
39098 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39099 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39100echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39101 else
39102 if test "$wxUSE_PM" = 1; then
39103 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39104echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39105 else
39106 cat >>confdefs.h <<\_ACEOF
39107#define wxUSE_POPUPWIN 1
39108_ACEOF
39109
39110
39111 USES_CONTROLS=1
39112 fi
39113 fi
39114fi
39115
0dcd06dd 39116if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39117 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39118 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39119echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39120 else
39121 cat >>confdefs.h <<\_ACEOF
39122#define wxUSE_DIALUP_MANAGER 1
39123_ACEOF
39124
39125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39126 fi
39127fi
39128
a848cd7e
SC
39129if test "$wxUSE_TIPWINDOW" = "yes"; then
39130 if test "$wxUSE_PM" = 1; then
39131 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39132echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39133 else
39134 cat >>confdefs.h <<\_ACEOF
39135#define wxUSE_TIPWINDOW 1
39136_ACEOF
39137
39138 fi
39139fi
39140
39141if test "$USES_CONTROLS" = 1; then
39142 cat >>confdefs.h <<\_ACEOF
39143#define wxUSE_CONTROLS 1
39144_ACEOF
39145
39146fi
39147
39148
39149if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39150 cat >>confdefs.h <<\_ACEOF
39151#define wxUSE_ACCESSIBILITY 1
39152_ACEOF
39153
39154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39155fi
39156
39157if test "$wxUSE_DRAGIMAGE" = "yes"; then
39158 cat >>confdefs.h <<\_ACEOF
39159#define wxUSE_DRAGIMAGE 1
39160_ACEOF
39161
39162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39163fi
39164
39165if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39166 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39167 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39168echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39169 else
39170 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39171#define wxUSE_EXCEPTIONS 1
39172_ACEOF
39173
07bea8f0
VS
39174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39175 fi
a848cd7e
SC
39176fi
39177
39178USE_HTML=0
39179if test "$wxUSE_HTML" = "yes"; then
39180 cat >>confdefs.h <<\_ACEOF
39181#define wxUSE_HTML 1
39182_ACEOF
39183
39184 USE_HTML=1
39185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39186 if test "$wxUSE_MAC" = 1; then
39187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39188 fi
a848cd7e 39189fi
646b6ec1 39190if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39191 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39192 old_CPPFLAGS="$CPPFLAGS"
39193 CPPFLAGS="$CPPFLAGS -x objective-c++"
39194 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39195echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39196if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39197 echo $ECHO_N "(cached) $ECHO_C" >&6
39198else
39199 cat >conftest.$ac_ext <<_ACEOF
39200/* confdefs.h. */
39201_ACEOF
39202cat confdefs.h >>conftest.$ac_ext
39203cat >>conftest.$ac_ext <<_ACEOF
39204/* end confdefs.h. */
39205#include <Carbon/Carbon.h>
39206
39207#include <WebKit/HIWebView.h>
39208_ACEOF
39209rm -f conftest.$ac_objext
39210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39211 (eval $ac_compile) 2>conftest.er1
39212 ac_status=$?
39213 grep -v '^ *+' conftest.er1 >conftest.err
39214 rm -f conftest.er1
39215 cat conftest.err >&5
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); } &&
89be85c2
VS
39218 { ac_try='test -z "$ac_c_werror_flag"
39219 || test ! -s conftest.err'
07bea8f0
VS
39220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39221 (eval $ac_try) 2>&5
39222 ac_status=$?
39223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39224 (exit $ac_status); }; } &&
39225 { ac_try='test -s conftest.$ac_objext'
39226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39227 (eval $ac_try) 2>&5
39228 ac_status=$?
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); }; }; then
39231 ac_cv_header_WebKit_HIWebView_h=yes
39232else
39233 echo "$as_me: failed program was:" >&5
39234sed 's/^/| /' conftest.$ac_ext >&5
39235
39236ac_cv_header_WebKit_HIWebView_h=no
39237fi
39238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39239fi
39240echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39241echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39242if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39243
39244 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39245#define wxUSE_WEBKIT 1
39246_ACEOF
39247
07bea8f0
VS
39248 WEBKIT_LINK="-framework WebKit"
39249
39250else
39251
39252 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39253echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39254 wxUSE_WEBKIT=no
39255
646b6ec1
VS
39256fi
39257
07bea8f0
VS
39258
39259 CPPFLAGS="$old_CPPFLAGS"
39260 elif test "$wxUSE_COCOA" = 1; then
39261 cat >>confdefs.h <<\_ACEOF
39262#define wxUSE_WEBKIT 1
39263_ACEOF
39264
39265 else
39266 wxUSE_WEBKIT=no
39267 fi
39268fi
39269
9a8f0513
VS
39270USE_XRC=0
39271if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39272 if test "$wxUSE_XML" != "yes"; then
39273 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39274echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39275 wxUSE_XRC=no
39276 else
39277 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39278#define wxUSE_XRC 1
39279_ACEOF
39280
d2ebf0b7
VS
39281 USE_XRC=1
39282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39283 fi
9a8f0513 39284fi
07bea8f0 39285
a848cd7e
SC
39286if test "$wxUSE_MENUS" = "yes"; then
39287 cat >>confdefs.h <<\_ACEOF
39288#define wxUSE_MENUS 1
39289_ACEOF
39290
39291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39292fi
39293
39294if test "$wxUSE_METAFILE" = "yes"; then
39295 cat >>confdefs.h <<\_ACEOF
39296#define wxUSE_METAFILE 1
39297_ACEOF
39298
39299fi
39300
39301if test "$wxUSE_MIMETYPE" = "yes"; then
39302 cat >>confdefs.h <<\_ACEOF
39303#define wxUSE_MIMETYPE 1
39304_ACEOF
39305
39306fi
39307
39308if test "$wxUSE_MINIFRAME" = "yes"; then
39309 cat >>confdefs.h <<\_ACEOF
39310#define wxUSE_MINIFRAME 1
39311_ACEOF
39312
39313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39314fi
39315
39316if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39317 cat >>confdefs.h <<\_ACEOF
39318#define wxUSE_SYSTEM_OPTIONS 1
39319_ACEOF
39320
39321 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39322 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39324 fi
39325fi
39326
39327
39328if test "$wxUSE_VALIDATORS" = "yes"; then
39329 cat >>confdefs.h <<\_ACEOF
39330#define wxUSE_VALIDATORS 1
39331_ACEOF
39332
39333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39334fi
39335
39336if test "$wxUSE_PALETTE" = "yes" ; then
39337 cat >>confdefs.h <<\_ACEOF
39338#define wxUSE_PALETTE 1
39339_ACEOF
39340
39341fi
39342
39343if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39344 LIBS=" -lunicows $LIBS"
39345fi
39346
39347
39348if test "$wxUSE_IMAGE" = "yes" ; then
39349 cat >>confdefs.h <<\_ACEOF
39350#define wxUSE_IMAGE 1
39351_ACEOF
39352
39353
39354 if test "$wxUSE_GIF" = "yes" ; then
39355 cat >>confdefs.h <<\_ACEOF
39356#define wxUSE_GIF 1
39357_ACEOF
39358
39359 fi
39360
39361 if test "$wxUSE_PCX" = "yes" ; then
39362 cat >>confdefs.h <<\_ACEOF
39363#define wxUSE_PCX 1
39364_ACEOF
39365
39366 fi
39367
39368 if test "$wxUSE_IFF" = "yes" ; then
39369 cat >>confdefs.h <<\_ACEOF
39370#define wxUSE_IFF 1
39371_ACEOF
39372
39373 fi
39374
39375 if test "$wxUSE_PNM" = "yes" ; then
39376 cat >>confdefs.h <<\_ACEOF
39377#define wxUSE_PNM 1
39378_ACEOF
39379
39380 fi
39381
39382 if test "$wxUSE_XPM" = "yes" ; then
39383 cat >>confdefs.h <<\_ACEOF
39384#define wxUSE_XPM 1
39385_ACEOF
39386
39387 fi
39388
39389 if test "$wxUSE_ICO_CUR" = "yes" ; then
39390 cat >>confdefs.h <<\_ACEOF
39391#define wxUSE_ICO_CUR 1
39392_ACEOF
39393
39394 fi
39395fi
39396
39397
39398if test "$wxUSE_CHOICEDLG" = "yes"; then
39399 cat >>confdefs.h <<\_ACEOF
39400#define wxUSE_CHOICEDLG 1
39401_ACEOF
39402
39403fi
39404
39405if test "$wxUSE_COLOURDLG" = "yes"; then
39406 cat >>confdefs.h <<\_ACEOF
39407#define wxUSE_COLOURDLG 1
39408_ACEOF
39409
39410fi
39411
39412if test "$wxUSE_FILEDLG" = "yes"; then
39413 cat >>confdefs.h <<\_ACEOF
39414#define wxUSE_FILEDLG 1
39415_ACEOF
39416
39417fi
39418
39419if test "$wxUSE_FINDREPLDLG" = "yes"; then
39420 cat >>confdefs.h <<\_ACEOF
39421#define wxUSE_FINDREPLDLG 1
39422_ACEOF
39423
39424fi
39425
39426if test "$wxUSE_FONTDLG" = "yes"; then
39427 cat >>confdefs.h <<\_ACEOF
39428#define wxUSE_FONTDLG 1
39429_ACEOF
39430
39431fi
39432
39433if test "$wxUSE_DIRDLG" = "yes"; then
39434 if test "$wxUSE_TREECTRL" != "yes"; then
39435 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39436echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39437 else
39438 cat >>confdefs.h <<\_ACEOF
39439#define wxUSE_DIRDLG 1
39440_ACEOF
39441
39442 fi
39443fi
39444
39445if test "$wxUSE_MSGDLG" = "yes"; then
39446 cat >>confdefs.h <<\_ACEOF
39447#define wxUSE_MSGDLG 1
39448_ACEOF
39449
39450fi
39451
39452if test "$wxUSE_NUMBERDLG" = "yes"; then
39453 cat >>confdefs.h <<\_ACEOF
39454#define wxUSE_NUMBERDLG 1
39455_ACEOF
39456
39457fi
39458
39459if test "$wxUSE_PROGRESSDLG" = "yes"; then
39460 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39461 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39462echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39463 else
39464 cat >>confdefs.h <<\_ACEOF
39465#define wxUSE_PROGRESSDLG 1
39466_ACEOF
39467
39468 fi
39469fi
39470
39471if test "$wxUSE_SPLASH" = "yes"; then
39472 cat >>confdefs.h <<\_ACEOF
39473#define wxUSE_SPLASH 1
39474_ACEOF
39475
2057db16 39476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39477fi
39478
39479if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39480 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39481 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39482echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39483 else
39484 cat >>confdefs.h <<\_ACEOF
39485#define wxUSE_STARTUP_TIPS 1
39486_ACEOF
39487
39488 fi
39489fi
39490
39491if test "$wxUSE_TEXTDLG" = "yes"; then
39492 cat >>confdefs.h <<\_ACEOF
39493#define wxUSE_TEXTDLG 1
39494_ACEOF
39495
39496fi
39497
39498if test "$wxUSE_WIZARDDLG" = "yes"; then
39499 cat >>confdefs.h <<\_ACEOF
39500#define wxUSE_WIZARDDLG 1
39501_ACEOF
39502
39503 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39504fi
39505
39506
ce756cb0
RN
39507if test "$wxUSE_MEDIACTRL" = "yes"; then
39508 if test "$wxUSE_MSW" = 1; then
39509 wxUSE_DIRECTSHOW="yes"
39510
39511for ac_header in dshow.h
39512do
39513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39514echo "$as_me:$LINENO: checking for $ac_header" >&5
39515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39516if eval "test \"\${$as_ac_Header+set}\" = set"; then
39517 echo $ECHO_N "(cached) $ECHO_C" >&6
39518else
39519 cat >conftest.$ac_ext <<_ACEOF
39520/* confdefs.h. */
39521_ACEOF
39522cat confdefs.h >>conftest.$ac_ext
39523cat >>conftest.$ac_ext <<_ACEOF
39524/* end confdefs.h. */
39525#include <windows.h>
39526
39527#include <$ac_header>
39528_ACEOF
39529rm -f conftest.$ac_objext
39530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39531 (eval $ac_compile) 2>conftest.er1
39532 ac_status=$?
39533 grep -v '^ *+' conftest.er1 >conftest.err
39534 rm -f conftest.er1
39535 cat conftest.err >&5
39536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537 (exit $ac_status); } &&
39538 { ac_try='test -z "$ac_c_werror_flag"
39539 || test ! -s conftest.err'
39540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541 (eval $ac_try) 2>&5
39542 ac_status=$?
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); }; } &&
39545 { ac_try='test -s conftest.$ac_objext'
39546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39547 (eval $ac_try) 2>&5
39548 ac_status=$?
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); }; }; then
39551 eval "$as_ac_Header=yes"
39552else
39553 echo "$as_me: failed program was:" >&5
39554sed 's/^/| /' conftest.$ac_ext >&5
39555
39556eval "$as_ac_Header=no"
39557fi
39558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39559fi
39560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39562if test `eval echo '${'$as_ac_Header'}'` = yes; then
39563 cat >>confdefs.h <<_ACEOF
39564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39565_ACEOF
39566
39567else
39568
39569 wxUSE_DIRECTSHOW="no"
39570 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39571echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39572
39573fi
39574
39575done
39576
39577
39578 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39579 cat >>confdefs.h <<\_ACEOF
39580#define wxUSE_DIRECTSHOW 1
39581_ACEOF
39582
39583 LIBS="$LIBS -lstrmiids"
39584 fi
39585 fi
39586
39587 if test "$wxUSE_GTK" = 1; then
39588 wxUSE_GSTREAMER="yes"
39589
ce756cb0 39590
dae87f93 39591 succeeded=no
ce756cb0 39592
dae87f93
RN
39593 if test -z "$PKG_CONFIG"; then
39594 # Extract the first word of "pkg-config", so it can be a program name with args.
39595set dummy pkg-config; ac_word=$2
39596echo "$as_me:$LINENO: checking for $ac_word" >&5
39597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39598if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39599 echo $ECHO_N "(cached) $ECHO_C" >&6
39600else
39601 case $PKG_CONFIG in
39602 [\\/]* | ?:[\\/]*)
39603 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39604 ;;
39605 *)
39606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39607for as_dir in $PATH
39608do
39609 IFS=$as_save_IFS
39610 test -z "$as_dir" && as_dir=.
39611 for ac_exec_ext in '' $ac_executable_extensions; do
39612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39613 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39615 break 2
39616 fi
39617done
39618done
39619
39620 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39621 ;;
39622esac
39623fi
39624PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39625
39626if test -n "$PKG_CONFIG"; then
39627 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39628echo "${ECHO_T}$PKG_CONFIG" >&6
39629else
39630 echo "$as_me:$LINENO: result: no" >&5
39631echo "${ECHO_T}no" >&6
39632fi
39633
39634 fi
39635
39636 if test "$PKG_CONFIG" = "no" ; then
39637 echo "*** The pkg-config script could not be found. Make sure it is"
39638 echo "*** in your path, or set the PKG_CONFIG environment variable"
39639 echo "*** to the full path to pkg-config."
39640 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39641 else
39642 PKG_CONFIG_MIN_VERSION=0.9.0
39643 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39644 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39645echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39646
39647 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39648 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39649echo "${ECHO_T}yes" >&6
dae87f93 39650 succeeded=yes
ce756cb0 39651
dae87f93
RN
39652 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39653echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39654 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39655 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39656echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39657
39658 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39659echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39660 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39661 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39662echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39663 else
39664 GSTREAMER_CFLAGS=""
39665 GSTREAMER_LIBS=""
39666 ## If we have a custom action on failure, don't print errors, but
39667 ## do set a variable so people can do so.
39668 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39669
dae87f93
RN
39670 fi
39671
39672
39673
39674 else
39675 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39676 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39677 fi
39678 fi
39679
39680 if test $succeeded = yes; then
39681
39682 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39683 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39684
ce756cb0 39685 else
dae87f93
RN
39686
39687 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39688echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39689 wxUSE_GSTREAMER="no"
39690
39691 fi
39692
39693
39694
39695
39696
39697 if test "x$GST_INSPECT" == "x"; then
39698 # Extract the first word of "gst-inspect", so it can be a program name with args.
39699set dummy gst-inspect; ac_word=$2
39700echo "$as_me:$LINENO: checking for $ac_word" >&5
39701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39702if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39703 echo $ECHO_N "(cached) $ECHO_C" >&6
39704else
39705 if test -n "$GST_INSPECT"; then
39706 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39707else
39708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39709for as_dir in $PATH
39710do
39711 IFS=$as_save_IFS
39712 test -z "$as_dir" && as_dir=.
39713 for ac_exec_ext in '' $ac_executable_extensions; do
39714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39715 ac_cv_prog_GST_INSPECT="gst-inspect"
39716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39717 break 2
ce756cb0 39718 fi
dae87f93
RN
39719done
39720done
39721
39722fi
39723fi
39724GST_INSPECT=$ac_cv_prog_GST_INSPECT
39725if test -n "$GST_INSPECT"; then
39726 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39727echo "${ECHO_T}$GST_INSPECT" >&6
39728else
39729 echo "$as_me:$LINENO: result: no" >&5
39730echo "${ECHO_T}no" >&6
39731fi
39732
39733 fi
39734
39735 if test "x$GST_INSPECT" != "x"; then
39736 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39737echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39738 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39739 echo "$as_me:$LINENO: result: found." >&5
39740echo "${ECHO_T}found." >&6
ce756cb0 39741
ce756cb0 39742 else
dae87f93
RN
39743 echo "$as_me:$LINENO: result: not found." >&5
39744echo "${ECHO_T}not found." >&6
39745
39746 wxUSE_GSTREAMER="no"
39747 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39748echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39749
39750 fi
39751 fi
39752
39753
39754 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39755echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39756if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39757 echo $ECHO_N "(cached) $ECHO_C" >&6
39758else
39759 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39760/* confdefs.h. */
39761_ACEOF
39762cat confdefs.h >>conftest.$ac_ext
39763cat >>conftest.$ac_ext <<_ACEOF
39764/* end confdefs.h. */
dae87f93 39765#include <gst/gst.h>
ce756cb0 39766
dae87f93 39767#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39768_ACEOF
39769rm -f conftest.$ac_objext
39770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39771 (eval $ac_compile) 2>conftest.er1
39772 ac_status=$?
39773 grep -v '^ *+' conftest.er1 >conftest.err
39774 rm -f conftest.er1
39775 cat conftest.err >&5
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); } &&
39778 { ac_try='test -z "$ac_c_werror_flag"
39779 || test ! -s conftest.err'
39780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39781 (eval $ac_try) 2>&5
39782 ac_status=$?
39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784 (exit $ac_status); }; } &&
39785 { ac_try='test -s conftest.$ac_objext'
39786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787 (eval $ac_try) 2>&5
39788 ac_status=$?
39789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790 (exit $ac_status); }; }; then
dae87f93 39791 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39792else
39793 echo "$as_me: failed program was:" >&5
39794sed 's/^/| /' conftest.$ac_ext >&5
39795
dae87f93 39796ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39797fi
39798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39799fi
39800echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39801echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39802if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39803 :
39804else
ce756cb0 39805
dae87f93
RN
39806 wxUSE_GSTREAMER="no"
39807 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39808echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39809
dae87f93 39810fi
ce756cb0 39811
dae87f93
RN
39812
39813
39814 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39815echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39816
39817ac_find_libraries=
39818for ac_dir in $SEARCH_LIB /usr/lib;
39819 do
39820 for ac_extension in a so sl dylib; do
39821 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39822 ac_find_libraries=$ac_dir
39823 break 2
39824 fi
39825 done
39826 done
39827
ce756cb0 39828
dae87f93
RN
39829 if test "$ac_find_libraries" = "" ; then
39830 echo "$as_me:$LINENO: result: no" >&5
39831echo "${ECHO_T}no" >&6
39832 wxUSE_GSTREAMER="no"
39833 else
39834 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39835echo "${ECHO_T}yes" >&6
dae87f93 39836 fi
ce756cb0 39837
dae87f93
RN
39838 if test "$wxUSE_GSTREAMER" = "yes"; then
39839 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39840#define wxUSE_GSTREAMER 1
39841_ACEOF
39842
dae87f93
RN
39843 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39844echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39845 fi
39846 fi
39847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39848 cat >>confdefs.h <<\_ACEOF
39849#define wxUSE_MEDIACTRL 1
39850_ACEOF
39851
39852fi
39853
39854
a848cd7e
SC
39855if test "$cross_compiling" = "yes"; then
39856 OSINFO="\"$host\""
39857else
39858 OSINFO=`uname -s -r -m`
39859 OSINFO="\"$OSINFO\""
39860fi
39861
39862cat >>confdefs.h <<_ACEOF
39863#define WXWIN_OS_DESCRIPTION $OSINFO
39864_ACEOF
39865
39866
39867
39868if test "x$prefix" != "xNONE"; then
39869 wxPREFIX=$prefix
39870else
39871 wxPREFIX=$ac_default_prefix
39872fi
39873
39874cat >>confdefs.h <<_ACEOF
39875#define wxINSTALL_PREFIX "$wxPREFIX"
39876_ACEOF
39877
39878
a848cd7e
SC
39879
39880
39881CORE_BASE_LIBS="net base"
39882CORE_GUI_LIBS="adv core"
39883
39884if test "$wxUSE_XML" = "yes" ; then
39885 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39886fi
39887if test "$wxUSE_ODBC" != "no" ; then
39888 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39889 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39890fi
39891if test "$wxUSE_HTML" = "yes" ; then
39892 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39893fi
9a8f0513
VS
39894if test "$wxUSE_XRC" = "yes" ; then
39895 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39896fi
a848cd7e
SC
39897
39898if test "$wxUSE_GUI" != "yes"; then
39899 CORE_GUI_LIBS=""
39900fi
39901
39902
39903
39904
39905
39906
39907
39908
39909if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39910 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39911 if test "$USE_DARWIN" = 1; then
39912 LDFLAGS="$LDFLAGS -framework QuickTime"
39913 else
39914 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39915 fi
07bea8f0 39916 fi
5dcf30a0 39917 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39918 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39919 else
39920 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39921 fi
a848cd7e
SC
39922fi
39923if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39924 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39925 if test "$wxUSE_MEDIACTRL" = "yes"; then
39926 LDFLAGS="$LDFLAGS -framework QuickTime"
39927 fi
a848cd7e
SC
39928fi
39929
39930
39931LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39932
39933have_cos=0
39934have_floor=0
39935
39936for ac_func in cos
39937do
39938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39939echo "$as_me:$LINENO: checking for $ac_func" >&5
39940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39941if eval "test \"\${$as_ac_var+set}\" = set"; then
39942 echo $ECHO_N "(cached) $ECHO_C" >&6
39943else
39944 cat >conftest.$ac_ext <<_ACEOF
39945/* confdefs.h. */
39946_ACEOF
39947cat confdefs.h >>conftest.$ac_ext
39948cat >>conftest.$ac_ext <<_ACEOF
39949/* end confdefs.h. */
ac1cb8d3
VS
39950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39952#define $ac_func innocuous_$ac_func
39953
a848cd7e
SC
39954/* System header to define __stub macros and hopefully few prototypes,
39955 which can conflict with char $ac_func (); below.
39956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39957 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39958
a848cd7e
SC
39959#ifdef __STDC__
39960# include <limits.h>
39961#else
39962# include <assert.h>
39963#endif
ac1cb8d3
VS
39964
39965#undef $ac_func
39966
a848cd7e
SC
39967/* Override any gcc2 internal prototype to avoid an error. */
39968#ifdef __cplusplus
39969extern "C"
39970{
39971#endif
39972/* We use char because int might match the return type of a gcc2
39973 builtin and then its argument prototype would still apply. */
39974char $ac_func ();
39975/* The GNU C library defines this for functions which it implements
39976 to always fail with ENOSYS. Some functions are actually named
39977 something starting with __ and the normal name is an alias. */
39978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39979choke me
39980#else
39981char (*f) () = $ac_func;
39982#endif
39983#ifdef __cplusplus
39984}
39985#endif
39986
39987int
39988main ()
39989{
39990return f != $ac_func;
39991 ;
39992 return 0;
39993}
39994_ACEOF
39995rm -f conftest.$ac_objext conftest$ac_exeext
39996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39997 (eval $ac_link) 2>conftest.er1
a848cd7e 39998 ac_status=$?
ac1cb8d3
VS
39999 grep -v '^ *+' conftest.er1 >conftest.err
40000 rm -f conftest.er1
40001 cat conftest.err >&5
a848cd7e
SC
40002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003 (exit $ac_status); } &&
89be85c2
VS
40004 { ac_try='test -z "$ac_c_werror_flag"
40005 || test ! -s conftest.err'
ac1cb8d3
VS
40006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40007 (eval $ac_try) 2>&5
40008 ac_status=$?
40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); }; } &&
40011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40013 (eval $ac_try) 2>&5
40014 ac_status=$?
40015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40016 (exit $ac_status); }; }; then
40017 eval "$as_ac_var=yes"
40018else
40019 echo "$as_me: failed program was:" >&5
40020sed 's/^/| /' conftest.$ac_ext >&5
40021
40022eval "$as_ac_var=no"
40023fi
ac1cb8d3
VS
40024rm -f conftest.err conftest.$ac_objext \
40025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40026fi
40027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40028echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40029if test `eval echo '${'$as_ac_var'}'` = yes; then
40030 cat >>confdefs.h <<_ACEOF
40031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40032_ACEOF
40033 have_cos=1
40034fi
40035done
40036
40037
40038for ac_func in floor
40039do
40040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40041echo "$as_me:$LINENO: checking for $ac_func" >&5
40042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40043if eval "test \"\${$as_ac_var+set}\" = set"; then
40044 echo $ECHO_N "(cached) $ECHO_C" >&6
40045else
40046 cat >conftest.$ac_ext <<_ACEOF
40047/* confdefs.h. */
40048_ACEOF
40049cat confdefs.h >>conftest.$ac_ext
40050cat >>conftest.$ac_ext <<_ACEOF
40051/* end confdefs.h. */
ac1cb8d3
VS
40052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40054#define $ac_func innocuous_$ac_func
40055
a848cd7e
SC
40056/* System header to define __stub macros and hopefully few prototypes,
40057 which can conflict with char $ac_func (); below.
40058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40059 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40060
a848cd7e
SC
40061#ifdef __STDC__
40062# include <limits.h>
40063#else
40064# include <assert.h>
40065#endif
ac1cb8d3
VS
40066
40067#undef $ac_func
40068
a848cd7e
SC
40069/* Override any gcc2 internal prototype to avoid an error. */
40070#ifdef __cplusplus
40071extern "C"
40072{
40073#endif
40074/* We use char because int might match the return type of a gcc2
40075 builtin and then its argument prototype would still apply. */
40076char $ac_func ();
40077/* The GNU C library defines this for functions which it implements
40078 to always fail with ENOSYS. Some functions are actually named
40079 something starting with __ and the normal name is an alias. */
40080#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40081choke me
40082#else
40083char (*f) () = $ac_func;
40084#endif
40085#ifdef __cplusplus
40086}
40087#endif
40088
40089int
40090main ()
40091{
40092return f != $ac_func;
40093 ;
40094 return 0;
40095}
40096_ACEOF
40097rm -f conftest.$ac_objext conftest$ac_exeext
40098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40099 (eval $ac_link) 2>conftest.er1
a848cd7e 40100 ac_status=$?
ac1cb8d3
VS
40101 grep -v '^ *+' conftest.er1 >conftest.err
40102 rm -f conftest.er1
40103 cat conftest.err >&5
a848cd7e
SC
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); } &&
89be85c2
VS
40106 { ac_try='test -z "$ac_c_werror_flag"
40107 || test ! -s conftest.err'
ac1cb8d3
VS
40108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40109 (eval $ac_try) 2>&5
40110 ac_status=$?
40111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112 (exit $ac_status); }; } &&
40113 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40115 (eval $ac_try) 2>&5
40116 ac_status=$?
40117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118 (exit $ac_status); }; }; then
40119 eval "$as_ac_var=yes"
40120else
40121 echo "$as_me: failed program was:" >&5
40122sed 's/^/| /' conftest.$ac_ext >&5
40123
40124eval "$as_ac_var=no"
40125fi
ac1cb8d3
VS
40126rm -f conftest.err conftest.$ac_objext \
40127 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40128fi
40129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40131if test `eval echo '${'$as_ac_var'}'` = yes; then
40132 cat >>confdefs.h <<_ACEOF
40133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40134_ACEOF
40135 have_floor=1
40136fi
40137done
40138
40139echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40140echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40141if test "$have_cos" = 1 -a "$have_floor" = 1; then
40142 echo "$as_me:$LINENO: result: yes" >&5
40143echo "${ECHO_T}yes" >&6
40144else
40145 echo "$as_me:$LINENO: result: no" >&5
40146echo "${ECHO_T}no" >&6
40147 LIBS="$LIBS -lm"
40148 # use different functions to avoid configure caching
40149 have_sin=0
40150 have_ceil=0
40151
40152for ac_func in sin
40153do
40154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40155echo "$as_me:$LINENO: checking for $ac_func" >&5
40156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40157if eval "test \"\${$as_ac_var+set}\" = set"; then
40158 echo $ECHO_N "(cached) $ECHO_C" >&6
40159else
40160 cat >conftest.$ac_ext <<_ACEOF
40161/* confdefs.h. */
40162_ACEOF
40163cat confdefs.h >>conftest.$ac_ext
40164cat >>conftest.$ac_ext <<_ACEOF
40165/* end confdefs.h. */
ac1cb8d3
VS
40166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40168#define $ac_func innocuous_$ac_func
40169
a848cd7e
SC
40170/* System header to define __stub macros and hopefully few prototypes,
40171 which can conflict with char $ac_func (); below.
40172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40173 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40174
a848cd7e
SC
40175#ifdef __STDC__
40176# include <limits.h>
40177#else
40178# include <assert.h>
40179#endif
ac1cb8d3
VS
40180
40181#undef $ac_func
40182
a848cd7e
SC
40183/* Override any gcc2 internal prototype to avoid an error. */
40184#ifdef __cplusplus
40185extern "C"
40186{
40187#endif
40188/* We use char because int might match the return type of a gcc2
40189 builtin and then its argument prototype would still apply. */
40190char $ac_func ();
40191/* The GNU C library defines this for functions which it implements
40192 to always fail with ENOSYS. Some functions are actually named
40193 something starting with __ and the normal name is an alias. */
40194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40195choke me
40196#else
40197char (*f) () = $ac_func;
40198#endif
40199#ifdef __cplusplus
40200}
40201#endif
40202
40203int
40204main ()
40205{
40206return f != $ac_func;
40207 ;
40208 return 0;
40209}
40210_ACEOF
40211rm -f conftest.$ac_objext conftest$ac_exeext
40212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40213 (eval $ac_link) 2>conftest.er1
a848cd7e 40214 ac_status=$?
ac1cb8d3
VS
40215 grep -v '^ *+' conftest.er1 >conftest.err
40216 rm -f conftest.er1
40217 cat conftest.err >&5
a848cd7e
SC
40218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40219 (exit $ac_status); } &&
89be85c2
VS
40220 { ac_try='test -z "$ac_c_werror_flag"
40221 || test ! -s conftest.err'
ac1cb8d3
VS
40222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40223 (eval $ac_try) 2>&5
40224 ac_status=$?
40225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40226 (exit $ac_status); }; } &&
40227 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40229 (eval $ac_try) 2>&5
40230 ac_status=$?
40231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40232 (exit $ac_status); }; }; then
40233 eval "$as_ac_var=yes"
40234else
40235 echo "$as_me: failed program was:" >&5
40236sed 's/^/| /' conftest.$ac_ext >&5
40237
40238eval "$as_ac_var=no"
40239fi
ac1cb8d3
VS
40240rm -f conftest.err conftest.$ac_objext \
40241 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40242fi
40243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40244echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40245if test `eval echo '${'$as_ac_var'}'` = yes; then
40246 cat >>confdefs.h <<_ACEOF
40247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40248_ACEOF
40249 have_sin=1
40250fi
40251done
40252
40253
40254for ac_func in ceil
40255do
40256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40257echo "$as_me:$LINENO: checking for $ac_func" >&5
40258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40259if eval "test \"\${$as_ac_var+set}\" = set"; then
40260 echo $ECHO_N "(cached) $ECHO_C" >&6
40261else
40262 cat >conftest.$ac_ext <<_ACEOF
40263/* confdefs.h. */
40264_ACEOF
40265cat confdefs.h >>conftest.$ac_ext
40266cat >>conftest.$ac_ext <<_ACEOF
40267/* end confdefs.h. */
ac1cb8d3
VS
40268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40270#define $ac_func innocuous_$ac_func
40271
a848cd7e
SC
40272/* System header to define __stub macros and hopefully few prototypes,
40273 which can conflict with char $ac_func (); below.
40274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40275 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40276
a848cd7e
SC
40277#ifdef __STDC__
40278# include <limits.h>
40279#else
40280# include <assert.h>
40281#endif
ac1cb8d3
VS
40282
40283#undef $ac_func
40284
a848cd7e
SC
40285/* Override any gcc2 internal prototype to avoid an error. */
40286#ifdef __cplusplus
40287extern "C"
40288{
40289#endif
40290/* We use char because int might match the return type of a gcc2
40291 builtin and then its argument prototype would still apply. */
40292char $ac_func ();
40293/* The GNU C library defines this for functions which it implements
40294 to always fail with ENOSYS. Some functions are actually named
40295 something starting with __ and the normal name is an alias. */
40296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40297choke me
40298#else
40299char (*f) () = $ac_func;
40300#endif
40301#ifdef __cplusplus
40302}
40303#endif
40304
40305int
40306main ()
40307{
40308return f != $ac_func;
40309 ;
40310 return 0;
40311}
40312_ACEOF
40313rm -f conftest.$ac_objext conftest$ac_exeext
40314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40315 (eval $ac_link) 2>conftest.er1
a848cd7e 40316 ac_status=$?
ac1cb8d3
VS
40317 grep -v '^ *+' conftest.er1 >conftest.err
40318 rm -f conftest.er1
40319 cat conftest.err >&5
a848cd7e
SC
40320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321 (exit $ac_status); } &&
89be85c2
VS
40322 { ac_try='test -z "$ac_c_werror_flag"
40323 || test ! -s conftest.err'
ac1cb8d3
VS
40324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40325 (eval $ac_try) 2>&5
40326 ac_status=$?
40327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328 (exit $ac_status); }; } &&
40329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40331 (eval $ac_try) 2>&5
40332 ac_status=$?
40333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334 (exit $ac_status); }; }; then
40335 eval "$as_ac_var=yes"
40336else
40337 echo "$as_me: failed program was:" >&5
40338sed 's/^/| /' conftest.$ac_ext >&5
40339
40340eval "$as_ac_var=no"
40341fi
ac1cb8d3
VS
40342rm -f conftest.err conftest.$ac_objext \
40343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40344fi
40345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40347if test `eval echo '${'$as_ac_var'}'` = yes; then
40348 cat >>confdefs.h <<_ACEOF
40349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40350_ACEOF
40351 have_ceil=1
40352fi
40353done
40354
40355 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40356echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40357 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40358 echo "$as_me:$LINENO: result: yes" >&5
40359echo "${ECHO_T}yes" >&6
40360 else
40361 echo "$as_me:$LINENO: result: no" >&5
40362echo "${ECHO_T}no" >&6
40363 # not sure we should warn the user, crash, etc.
40364 fi
40365fi
40366
40367if test "$wxUSE_GUI" = "yes"; then
40368
40369
40370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
40371 drawing dynamic erase event exec font image \
40372 minimal propsize rotate shaped widgets render"
40373
40374 if test "$wxUSE_MONOLITHIC" != "yes"; then
40375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40376 fi
40377else
40378 SAMPLES_SUBDIRS="console"
40379fi
40380
40381
ceec2216 40382INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40383-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40384
40385if test "$GXX" = yes ; then
5294a27e
VZ
40386 CWARNINGS="-Wall"
40387 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40388 fi
40389
40390EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40391
0c3c69fc 40392CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40393CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40394CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40395
95986553
DE
40396if test "x$MWCC" = "xyes"; then
40397
40398 CC="$CC -cwd source -I-"
40399 CXX="$CXX -cwd source -I-"
40400fi
40401
a848cd7e 40402
0c3c69fc 40403LIBS=`echo $LIBS`
a848cd7e
SC
40404EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40405EXTRALIBS_XML="$EXPAT_LINK"
40406EXTRALIBS_HTML="$MSPACK_LINK"
40407EXTRALIBS_ODBC="$ODBC_LINK"
40408if test "$wxUSE_GUI" = "yes"; then
2e350179 40409 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40410fi
40411if test "$wxUSE_OPENGL" = "yes"; then
40412 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40413fi
40414
40415LDFLAGS="$LDFLAGS $PROFILE"
40416
40417if test "$wxUSE_GTK" = 1; then
40418 WXCONFIG_INCLUDE=
40419else
40420 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40421fi
40422
40423WXCONFIG_EXTRALIBS="$LIBS"
40424
40425if test "$wxUSE_REGEX" = "builtin" ; then
40426 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
40427fi
40428if test "$wxUSE_EXPAT" = "builtin" ; then
40429 wxconfig_3rdparty="$wxconfig_3rdparty expat"
40430fi
40431if test "$wxUSE_ODBC" = "builtin" ; then
40432 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40433fi
40434if test "$wxUSE_LIBTIFF" = "builtin" ; then
40435 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
40436fi
40437if test "$wxUSE_LIBJPEG" = "builtin" ; then
40438 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
40439fi
40440if test "$wxUSE_LIBPNG" = "builtin" ; then
40441 wxconfig_3rdparty="$wxconfig_3rdparty png"
40442fi
40443if test "$wxUSE_ZLIB" = "builtin" ; then
40444 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
40445fi
40446if test "$wxUSE_ODBC" = "builtin" ; then
40447 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40448fi
40449
40450for i in $wxconfig_3rdparty ; do
ceec2216 40451 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
40452done
40453
40454
40455if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40456 WXUNIV=1
40457else
40458 WXUNIV=0
40459fi
40460
40461
40462
40463
40464
40465
40466
40467
40468
40469if test $wxUSE_MONOLITHIC = "yes" ; then
40470 MONOLITHIC=1
40471else
40472 MONOLITHIC=0
40473fi
40474
40475if test $wxUSE_PLUGINS = "yes" ; then
40476 USE_PLUGINS=1
40477else
40478 USE_PLUGINS=0
40479fi
40480
40481if test $wxUSE_ODBC != "no" ; then
40482 USE_ODBC=1
40483else
40484 USE_ODBC=0
40485fi
40486
40487if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40488 OFFICIAL_BUILD=1
40489else
40490 OFFICIAL_BUILD=0
40491fi
40492
40493
40494
40495
40496
40497
40498
40499
40500
40501
40502
40503
40504
40505
40506
40507
40508
40509
40510
ceec2216 40511
d1c38808 40512
a848cd7e
SC
40513
40514
40515TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40516
40517
40518
40519
40520
40521
40522
40523
4d4ff94c
VZ
40524case "$TOOLKIT" in
40525 GTK)
40526 TOOLKIT_USER="GTK+"
40527 if test "$WXGTK20" = 1; then
40528 TOOLKIT_USER="$TOOLKIT_USER 2"
40529 fi
9a8f0513 40530 ;;
4d4ff94c
VZ
40531
40532 *)
40533 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40534 ;;
4d4ff94c 40535esac
a848cd7e 40536
9a8f0513 40537
1e9e8aba
DE
40538
40539
a848cd7e
SC
40540 if test "x$BAKEFILE_HOST" = "x"; then
40541 BAKEFILE_HOST="${host}"
40542 fi
40543
40544 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40545
40546 if test -n "$ac_tool_prefix"; then
40547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40548set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40549echo "$as_me:$LINENO: checking for $ac_word" >&5
40550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40551if test "${ac_cv_prog_RANLIB+set}" = set; then
40552 echo $ECHO_N "(cached) $ECHO_C" >&6
40553else
40554 if test -n "$RANLIB"; then
40555 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40556else
40557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40558for as_dir in $PATH
40559do
40560 IFS=$as_save_IFS
40561 test -z "$as_dir" && as_dir=.
40562 for ac_exec_ext in '' $ac_executable_extensions; do
40563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40566 break 2
40567 fi
40568done
40569done
40570
40571fi
40572fi
40573RANLIB=$ac_cv_prog_RANLIB
40574if test -n "$RANLIB"; then
40575 echo "$as_me:$LINENO: result: $RANLIB" >&5
40576echo "${ECHO_T}$RANLIB" >&6
40577else
40578 echo "$as_me:$LINENO: result: no" >&5
40579echo "${ECHO_T}no" >&6
40580fi
40581
40582fi
40583if test -z "$ac_cv_prog_RANLIB"; then
40584 ac_ct_RANLIB=$RANLIB
40585 # Extract the first word of "ranlib", so it can be a program name with args.
40586set dummy ranlib; ac_word=$2
40587echo "$as_me:$LINENO: checking for $ac_word" >&5
40588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40589if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40590 echo $ECHO_N "(cached) $ECHO_C" >&6
40591else
40592 if test -n "$ac_ct_RANLIB"; then
40593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40594else
40595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40596for as_dir in $PATH
40597do
40598 IFS=$as_save_IFS
40599 test -z "$as_dir" && as_dir=.
40600 for ac_exec_ext in '' $ac_executable_extensions; do
40601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40602 ac_cv_prog_ac_ct_RANLIB="ranlib"
40603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40604 break 2
40605 fi
40606done
40607done
40608
40609 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40610fi
40611fi
40612ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40613if test -n "$ac_ct_RANLIB"; then
40614 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40615echo "${ECHO_T}$ac_ct_RANLIB" >&6
40616else
40617 echo "$as_me:$LINENO: result: no" >&5
40618echo "${ECHO_T}no" >&6
40619fi
40620
40621 RANLIB=$ac_ct_RANLIB
40622else
40623 RANLIB="$ac_cv_prog_RANLIB"
40624fi
40625
40626 # Find a good install program. We prefer a C program (faster),
40627# so one script is as good as another. But avoid the broken or
40628# incompatible versions:
40629# SysV /etc/install, /usr/sbin/install
40630# SunOS /usr/etc/install
40631# IRIX /sbin/install
40632# AIX /bin/install
40633# AmigaOS /C/install, which installs bootblocks on floppy discs
40634# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40635# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40636# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40637# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40638# ./install, which can be erroneously created by make from ./install.sh.
40639echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40640echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40641if test -z "$INSTALL"; then
40642if test "${ac_cv_path_install+set}" = set; then
40643 echo $ECHO_N "(cached) $ECHO_C" >&6
40644else
40645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40646for as_dir in $PATH
40647do
40648 IFS=$as_save_IFS
40649 test -z "$as_dir" && as_dir=.
40650 # Account for people who put trailing slashes in PATH elements.
40651case $as_dir/ in
40652 ./ | .// | /cC/* | \
40653 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40654 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40655 /usr/ucb/* ) ;;
40656 *)
40657 # OSF1 and SCO ODT 3.0 have their own names for install.
40658 # Don't use installbsd from OSF since it installs stuff as root
40659 # by default.
40660 for ac_prog in ginstall scoinst install; do
40661 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40662 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40663 if test $ac_prog = install &&
40664 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40665 # AIX install. It has an incompatible calling convention.
40666 :
40667 elif test $ac_prog = install &&
40668 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40669 # program-specific install script used by HP pwplus--don't use.
40670 :
40671 else
40672 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40673 break 3
40674 fi
40675 fi
a848cd7e
SC
40676 done
40677 done
40678 ;;
40679esac
40680done
40681
40682
40683fi
40684 if test "${ac_cv_path_install+set}" = set; then
40685 INSTALL=$ac_cv_path_install
40686 else
40687 # As a last resort, use the slow shell script. We don't cache a
40688 # path for INSTALL within a source directory, because that will
40689 # break other packages using the cache if that directory is
40690 # removed, or if the path is relative.
40691 INSTALL=$ac_install_sh
40692 fi
40693fi
40694echo "$as_me:$LINENO: result: $INSTALL" >&5
40695echo "${ECHO_T}$INSTALL" >&6
40696
40697# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40698# It thinks the first close brace ends the variable substitution.
40699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40700
40701test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40702
40703test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40704
40705 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40706echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40707LN_S=$as_ln_s
40708if test "$LN_S" = "ln -s"; then
40709 echo "$as_me:$LINENO: result: yes" >&5
40710echo "${ECHO_T}yes" >&6
40711else
40712 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40713echo "${ECHO_T}no, using $LN_S" >&6
40714fi
40715
40716
40717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40718echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40719set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40720if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40721 echo $ECHO_N "(cached) $ECHO_C" >&6
40722else
40723 cat >conftest.make <<\_ACEOF
40724all:
40725 @echo 'ac_maketemp="$(MAKE)"'
40726_ACEOF
40727# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40728eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40729if test -n "$ac_maketemp"; then
40730 eval ac_cv_prog_make_${ac_make}_set=yes
40731else
40732 eval ac_cv_prog_make_${ac_make}_set=no
40733fi
40734rm -f conftest.make
40735fi
40736if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40737 echo "$as_me:$LINENO: result: yes" >&5
40738echo "${ECHO_T}yes" >&6
40739 SET_MAKE=
40740else
40741 echo "$as_me:$LINENO: result: no" >&5
40742echo "${ECHO_T}no" >&6
40743 SET_MAKE="MAKE=${MAKE-make}"
40744fi
40745
40746
40747
40748 if test -n "$ac_tool_prefix"; then
40749 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40750set dummy ${ac_tool_prefix}ar; ac_word=$2
40751echo "$as_me:$LINENO: checking for $ac_word" >&5
40752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40753if test "${ac_cv_prog_AR+set}" = set; then
40754 echo $ECHO_N "(cached) $ECHO_C" >&6
40755else
40756 if test -n "$AR"; then
40757 ac_cv_prog_AR="$AR" # Let the user override the test.
40758else
40759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40760for as_dir in $PATH
40761do
40762 IFS=$as_save_IFS
40763 test -z "$as_dir" && as_dir=.
40764 for ac_exec_ext in '' $ac_executable_extensions; do
40765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40766 ac_cv_prog_AR="${ac_tool_prefix}ar"
40767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40768 break 2
40769 fi
40770done
40771done
40772
40773fi
40774fi
40775AR=$ac_cv_prog_AR
40776if test -n "$AR"; then
40777 echo "$as_me:$LINENO: result: $AR" >&5
40778echo "${ECHO_T}$AR" >&6
40779else
40780 echo "$as_me:$LINENO: result: no" >&5
40781echo "${ECHO_T}no" >&6
40782fi
40783
40784fi
40785if test -z "$ac_cv_prog_AR"; then
40786 ac_ct_AR=$AR
40787 # Extract the first word of "ar", so it can be a program name with args.
40788set dummy ar; ac_word=$2
40789echo "$as_me:$LINENO: checking for $ac_word" >&5
40790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40791if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40792 echo $ECHO_N "(cached) $ECHO_C" >&6
40793else
40794 if test -n "$ac_ct_AR"; then
40795 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40796else
40797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40798for as_dir in $PATH
40799do
40800 IFS=$as_save_IFS
40801 test -z "$as_dir" && as_dir=.
40802 for ac_exec_ext in '' $ac_executable_extensions; do
40803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40804 ac_cv_prog_ac_ct_AR="ar"
40805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40806 break 2
40807 fi
40808done
40809done
40810
40811 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40812fi
40813fi
40814ac_ct_AR=$ac_cv_prog_ac_ct_AR
40815if test -n "$ac_ct_AR"; then
40816 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40817echo "${ECHO_T}$ac_ct_AR" >&6
40818else
40819 echo "$as_me:$LINENO: result: no" >&5
40820echo "${ECHO_T}no" >&6
40821fi
40822
40823 AR=$ac_ct_AR
40824else
40825 AR="$ac_cv_prog_AR"
40826fi
40827
40828 if test -n "$ac_tool_prefix"; then
40829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40830set dummy ${ac_tool_prefix}strip; ac_word=$2
40831echo "$as_me:$LINENO: checking for $ac_word" >&5
40832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40833if test "${ac_cv_prog_STRIP+set}" = set; then
40834 echo $ECHO_N "(cached) $ECHO_C" >&6
40835else
40836 if test -n "$STRIP"; then
40837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40838else
40839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40840for as_dir in $PATH
40841do
40842 IFS=$as_save_IFS
40843 test -z "$as_dir" && as_dir=.
40844 for ac_exec_ext in '' $ac_executable_extensions; do
40845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40848 break 2
40849 fi
40850done
40851done
40852
40853fi
40854fi
40855STRIP=$ac_cv_prog_STRIP
40856if test -n "$STRIP"; then
40857 echo "$as_me:$LINENO: result: $STRIP" >&5
40858echo "${ECHO_T}$STRIP" >&6
40859else
40860 echo "$as_me:$LINENO: result: no" >&5
40861echo "${ECHO_T}no" >&6
40862fi
40863
40864fi
40865if test -z "$ac_cv_prog_STRIP"; then
40866 ac_ct_STRIP=$STRIP
40867 # Extract the first word of "strip", so it can be a program name with args.
40868set dummy strip; ac_word=$2
40869echo "$as_me:$LINENO: checking for $ac_word" >&5
40870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40871if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40872 echo $ECHO_N "(cached) $ECHO_C" >&6
40873else
40874 if test -n "$ac_ct_STRIP"; then
40875 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40876else
40877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40878for as_dir in $PATH
40879do
40880 IFS=$as_save_IFS
40881 test -z "$as_dir" && as_dir=.
40882 for ac_exec_ext in '' $ac_executable_extensions; do
40883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40884 ac_cv_prog_ac_ct_STRIP="strip"
40885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40886 break 2
40887 fi
40888done
40889done
40890
40891 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40892fi
40893fi
40894ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40895if test -n "$ac_ct_STRIP"; then
40896 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40897echo "${ECHO_T}$ac_ct_STRIP" >&6
40898else
40899 echo "$as_me:$LINENO: result: no" >&5
40900echo "${ECHO_T}no" >&6
40901fi
40902
40903 STRIP=$ac_ct_STRIP
40904else
40905 STRIP="$ac_cv_prog_STRIP"
40906fi
40907
40908 if test -n "$ac_tool_prefix"; then
40909 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40910set dummy ${ac_tool_prefix}nm; ac_word=$2
40911echo "$as_me:$LINENO: checking for $ac_word" >&5
40912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40913if test "${ac_cv_prog_NM+set}" = set; then
40914 echo $ECHO_N "(cached) $ECHO_C" >&6
40915else
40916 if test -n "$NM"; then
40917 ac_cv_prog_NM="$NM" # Let the user override the test.
40918else
40919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40920for as_dir in $PATH
40921do
40922 IFS=$as_save_IFS
40923 test -z "$as_dir" && as_dir=.
40924 for ac_exec_ext in '' $ac_executable_extensions; do
40925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40926 ac_cv_prog_NM="${ac_tool_prefix}nm"
40927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40928 break 2
40929 fi
40930done
40931done
40932
40933fi
40934fi
40935NM=$ac_cv_prog_NM
40936if test -n "$NM"; then
40937 echo "$as_me:$LINENO: result: $NM" >&5
40938echo "${ECHO_T}$NM" >&6
40939else
40940 echo "$as_me:$LINENO: result: no" >&5
40941echo "${ECHO_T}no" >&6
40942fi
40943
40944fi
40945if test -z "$ac_cv_prog_NM"; then
40946 ac_ct_NM=$NM
40947 # Extract the first word of "nm", so it can be a program name with args.
40948set dummy nm; ac_word=$2
40949echo "$as_me:$LINENO: checking for $ac_word" >&5
40950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40951if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40952 echo $ECHO_N "(cached) $ECHO_C" >&6
40953else
40954 if test -n "$ac_ct_NM"; then
40955 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40956else
40957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40958for as_dir in $PATH
40959do
40960 IFS=$as_save_IFS
40961 test -z "$as_dir" && as_dir=.
40962 for ac_exec_ext in '' $ac_executable_extensions; do
40963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40964 ac_cv_prog_ac_ct_NM="nm"
40965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40966 break 2
40967 fi
40968done
40969done
40970
40971 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40972fi
40973fi
40974ac_ct_NM=$ac_cv_prog_ac_ct_NM
40975if test -n "$ac_ct_NM"; then
40976 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40977echo "${ECHO_T}$ac_ct_NM" >&6
40978else
40979 echo "$as_me:$LINENO: result: no" >&5
40980echo "${ECHO_T}no" >&6
40981fi
40982
40983 NM=$ac_ct_NM
40984else
40985 NM="$ac_cv_prog_NM"
40986fi
40987
40988
40989 case ${BAKEFILE_HOST} in
40990 *-hp-hpux* )
1e9e8aba 40991 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40992 ;;
40993 *) INSTALL_DIR="$INSTALL -d"
40994 ;;
40995 esac
40996
40997
40998 LDFLAGS_GUI=
40999 case ${BAKEFILE_HOST} in
41000 *-*-cygwin* | *-*-mingw32* )
41001 LDFLAGS_GUI="-mwindows"
41002 esac
41003
41004
41005 fi
41006
41007 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41008echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41009if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41010 echo $ECHO_N "(cached) $ECHO_C" >&6
41011else
41012
41013 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41014 egrep -s GNU > /dev/null); then
41015 bakefile_cv_prog_makeisgnu="yes"
41016 else
41017 bakefile_cv_prog_makeisgnu="no"
41018 fi
41019
41020fi
41021echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41022echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41023
41024 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41025 IF_GNU_MAKE=""
41026 else
41027 IF_GNU_MAKE="#"
41028 fi
41029
41030
41031
41032 PLATFORM_UNIX=0
41033 PLATFORM_WIN32=0
41034 PLATFORM_MSDOS=0
41035 PLATFORM_MAC=0
1e9e8aba 41036 PLATFORM_MACOS=0
a848cd7e
SC
41037 PLATFORM_MACOSX=0
41038 PLATFORM_OS2=0
1e9e8aba 41039 PLATFORM_BEOS=0
a848cd7e
SC
41040
41041 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41042 case "${BAKEFILE_HOST}" in
41043 *-*-cygwin* | *-*-mingw32* )
41044 PLATFORM_WIN32=1
41045 ;;
41046 *-pc-msdosdjgpp )
41047 PLATFORM_MSDOS=1
41048 ;;
41049 *-pc-os2_emx | *-pc-os2-emx )
41050 PLATFORM_OS2=1
41051 ;;
41052 powerpc-*-darwin* )
41053 PLATFORM_MAC=1
41054 PLATFORM_MACOSX=1
41055 ;;
1e9e8aba
DE
41056 *-*-beos* )
41057 PLATFORM_BEOS=1
41058 ;;
41059 powerpc-apple-macos* )
41060 PLATFORM_MAC=1
41061 PLATFORM_MACOS=1
41062 ;;
a848cd7e
SC
41063 * )
41064 PLATFORM_UNIX=1
41065 ;;
41066 esac
41067 else
41068 case "$BAKEFILE_FORCE_PLATFORM" in
41069 win32 )
41070 PLATFORM_WIN32=1
41071 ;;
41072 msdos )
41073 PLATFORM_MSDOS=1
41074 ;;
41075 os2 )
41076 PLATFORM_OS2=1
41077 ;;
41078 darwin )
41079 PLATFORM_MAC=1
41080 PLATFORM_MACOSX=1
41081 ;;
41082 unix )
41083 PLATFORM_UNIX=1
41084 ;;
1e9e8aba
DE
41085 beos )
41086 PLATFORM_BEOS=1
41087 ;;
a848cd7e
SC
41088 * )
41089 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41090echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41091 { (exit 1); exit 1; }; }
41092 ;;
41093 esac
41094 fi
41095
41096
41097
41098
41099
41100
41101
41102
41103
1e9e8aba
DE
41104
41105
a848cd7e
SC
41106 # Check whether --enable-omf or --disable-omf was given.
41107if test "${enable_omf+set}" = set; then
41108 enableval="$enable_omf"
41109 bk_os2_use_omf="$enableval"
41110fi;
41111
41112 case "${BAKEFILE_HOST}" in
41113 *-*-darwin* )
41114 CFLAGS="$CFLAGS -fno-common"
41115 CXXFLAGS="$CXXFLAGS -fno-common"
41116 ;;
41117
41118 *-pc-os2_emx | *-pc-os2-emx )
41119 if test "x$bk_os2_use_omf" = "xyes" ; then
41120 AR=emxomfar
41121 RANLIB=:
41122 LDFLAGS="-Zomf $LDFLAGS"
41123 CFLAGS="-Zomf $CFLAGS"
41124 CXXFLAGS="-Zomf $CXXFLAGS"
41125 OS2_LIBEXT="lib"
41126 else
41127 OS2_LIBEXT="a"
41128 fi
41129 ;;
1e9e8aba
DE
41130
41131 i*86-*-beos* )
41132 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41133 ;;
a848cd7e
SC
41134 esac
41135
41136
41137 SO_SUFFIX="so"
41138 SO_SUFFIX_MODULE="so"
41139 EXEEXT=""
41140 LIBPREFIX="lib"
41141 LIBEXT=".a"
41142 DLLPREFIX="lib"
41143 DLLPREFIX_MODULE=""
41144 DLLIMP_SUFFIX=""
41145
41146 case "${BAKEFILE_HOST}" in
41147 *-hp-hpux* )
41148 SO_SUFFIX="sl"
41149 SO_SUFFIX_MODULE="sl"
41150 ;;
41151 *-*-aix* )
41152 SO_SUFFIX="a"
41153 SO_SUFFIX_MODULE="a"
41154 ;;
41155 *-*-cygwin* | *-*-mingw32* )
41156 SO_SUFFIX="dll"
41157 SO_SUFFIX_MODULE="dll"
41158 DLLIMP_SUFFIX="dll.a"
41159 EXEEXT=".exe"
41160 DLLPREFIX=""
41161 ;;
41162 *-pc-msdosdjgpp )
41163 EXEEXT=".exe"
41164 DLLPREFIX=""
41165 ;;
41166 *-pc-os2_emx | *-pc-os2-emx )
41167 SO_SUFFIX="dll"
41168 SO_SUFFIX_MODULE="dll"
41169 DLLIMP_SUFFIX=$OS2_LIBEXT
41170 EXEEXT=".exe"
41171 DLLPREFIX=""
41172 LIBPREFIX=""
41173 LIBEXT=".$OS2_LIBEXT"
41174 ;;
41175 powerpc-*-darwin* )
41176 SO_SUFFIX="dylib"
41177 SO_SUFFIX_MODULE="bundle"
41178 ;;
41179 esac
41180
41181 if test "x$DLLIMP_SUFFIX" = "x" ; then
41182 DLLIMP_SUFFIX="$SO_SUFFIX"
41183 fi
41184
41185
41186
41187
41188
41189
41190
41191
41192
41193
41194
1e9e8aba
DE
41195 PIC_FLAG=""
41196 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41197 PIC_FLAG="-fPIC"
41198 fi
41199
1e9e8aba
DE
41200 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41201 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41202
a848cd7e
SC
41203 case "${BAKEFILE_HOST}" in
41204 *-hp-hpux* )
1e9e8aba 41205 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41206 LDFLAGS="$LDFLAGS -L/usr/lib"
41207
41208 SHARED_LD_CC="${CC} -b -o"
41209 SHARED_LD_CXX="${CXX} -b -o"
41210 PIC_FLAG="+Z"
41211 fi
41212 ;;
41213
41214 *-*-linux* )
41215 if test "x$GCC" != "xyes"; then
41216 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41217echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41218if test "${bakefile_cv_prog_icc+set}" = set; then
41219 echo $ECHO_N "(cached) $ECHO_C" >&6
41220else
41221
41222 cat >conftest.$ac_ext <<_ACEOF
41223/* confdefs.h. */
41224_ACEOF
41225cat confdefs.h >>conftest.$ac_ext
41226cat >>conftest.$ac_ext <<_ACEOF
41227/* end confdefs.h. */
41228
41229int
41230main ()
41231{
41232
41233 #ifndef __INTEL_COMPILER
41234 #error Not icc
41235 #endif
41236
41237 ;
41238 return 0;
41239}
41240_ACEOF
41241rm -f conftest.$ac_objext
41242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41243 (eval $ac_compile) 2>conftest.er1
a848cd7e 41244 ac_status=$?
ac1cb8d3
VS
41245 grep -v '^ *+' conftest.er1 >conftest.err
41246 rm -f conftest.er1
41247 cat conftest.err >&5
a848cd7e
SC
41248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); } &&
89be85c2
VS
41250 { ac_try='test -z "$ac_c_werror_flag"
41251 || test ! -s conftest.err'
ac1cb8d3
VS
41252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41253 (eval $ac_try) 2>&5
41254 ac_status=$?
41255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41256 (exit $ac_status); }; } &&
41257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41259 (eval $ac_try) 2>&5
41260 ac_status=$?
41261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41262 (exit $ac_status); }; }; then
41263 bakefile_cv_prog_icc=yes
41264else
41265 echo "$as_me: failed program was:" >&5
41266sed 's/^/| /' conftest.$ac_ext >&5
41267
41268bakefile_cv_prog_icc=no
41269
41270fi
ac1cb8d3 41271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41272
41273fi
41274echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41275echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41276 if test "$bakefile_cv_prog_icc" = "yes"; then
41277 PIC_FLAG="-KPIC"
41278 fi
41279 fi
41280 ;;
41281
41282 *-*-solaris2* )
41283 if test "x$GCC" != xyes ; then
41284 SHARED_LD_CC="${CC} -G -o"
41285 SHARED_LD_CXX="${CXX} -G -o"
41286 PIC_FLAG="-KPIC"
41287 fi
41288 ;;
41289
41290 *-*-darwin* )
41291
41292 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41293echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41294if test "${wx_cv_gcc31+set}" = set; then
41295 echo $ECHO_N "(cached) $ECHO_C" >&6
41296else
41297
41298 cat >conftest.$ac_ext <<_ACEOF
41299/* confdefs.h. */
41300_ACEOF
41301cat confdefs.h >>conftest.$ac_ext
41302cat >>conftest.$ac_ext <<_ACEOF
41303/* end confdefs.h. */
41304
41305int
41306main ()
41307{
41308
41309 #if (__GNUC__ < 3) || \
41310 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41311 #error old gcc
41312 #endif
41313
41314 ;
41315 return 0;
41316}
41317_ACEOF
41318rm -f conftest.$ac_objext
41319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41320 (eval $ac_compile) 2>conftest.er1
a848cd7e 41321 ac_status=$?
ac1cb8d3
VS
41322 grep -v '^ *+' conftest.er1 >conftest.err
41323 rm -f conftest.er1
41324 cat conftest.err >&5
a848cd7e
SC
41325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41326 (exit $ac_status); } &&
89be85c2
VS
41327 { ac_try='test -z "$ac_c_werror_flag"
41328 || test ! -s conftest.err'
ac1cb8d3
VS
41329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41330 (eval $ac_try) 2>&5
41331 ac_status=$?
41332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41333 (exit $ac_status); }; } &&
41334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41336 (eval $ac_try) 2>&5
41337 ac_status=$?
41338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339 (exit $ac_status); }; }; then
41340
41341 wx_cv_gcc31=yes
41342
41343else
41344 echo "$as_me: failed program was:" >&5
41345sed 's/^/| /' conftest.$ac_ext >&5
41346
41347
41348 wx_cv_gcc31=no
41349
41350
41351fi
ac1cb8d3 41352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41353
41354fi
41355echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41356echo "${ECHO_T}$wx_cv_gcc31" >&6
41357 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41358
41359D='$'
41360cat <<EOF >shared-ld-sh
a848cd7e
SC
41361#!/bin/sh
41362#-----------------------------------------------------------------------------
41363#-- Name: distrib/mac/shared-ld-sh
41364#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41365#-- Author: Gilles Depeyrot
41366#-- Copyright: (c) 2002 Gilles Depeyrot
41367#-- Licence: any use permitted
41368#-----------------------------------------------------------------------------
41369
41370verbose=0
41371args=""
41372objects=""
41373linking_flag="-dynamiclib"
41374
473276a9
VS
41375while test ${D}# -gt 0; do
41376 case ${D}1 in
a848cd7e
SC
41377
41378 -v)
41379 verbose=1
41380 ;;
41381
41382 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41383 # collect these options and values
473276a9 41384 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41385 shift
41386 ;;
41387
41388 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41389 # collect these options
473276a9 41390 args="${D}{args} ${D}1"
a848cd7e
SC
41391 ;;
41392
41393 -dynamiclib|-bundle)
473276a9 41394 linking_flag="${D}1"
a848cd7e
SC
41395 ;;
41396
41397 -*)
473276a9 41398 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41399 exit 1
41400 ;;
41401
41402 *.o | *.a | *.dylib)
41403 # collect object files
473276a9 41404 objects="${D}{objects} ${D}1"
a848cd7e
SC
41405 ;;
41406
41407 *)
473276a9 41408 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41409 exit 1
41410 ;;
41411
41412 esac
41413 shift
41414done
41415
41416#
41417# Link one module containing all the others
41418#
473276a9
VS
41419if test ${D}{verbose} = 1; then
41420 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41421fi
473276a9
VS
41422c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41423status=${D}?
41424if test ${D}{status} != 0; then
41425 exit ${D}{status}
a848cd7e
SC
41426fi
41427
41428#
41429# Link the shared library from the single module created
41430#
473276a9
VS
41431if test ${D}{verbose} = 1; then
41432 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41433fi
473276a9
VS
41434c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41435status=${D}?
41436if test ${D}{status} != 0; then
41437 exit ${D}{status}
a848cd7e
SC
41438fi
41439
41440#
41441# Remove intermediate module
41442#
473276a9 41443rm -f master.${D}${D}.o
a848cd7e
SC
41444
41445exit 0
41446EOF
473276a9 41447
a848cd7e
SC
41448 chmod +x shared-ld-sh
41449
41450 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41451 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41452 SHARED_LD_CXX="$SHARED_LD_CC"
41453 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41454 else
41455 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41456 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41457 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41458 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41459 fi
41460
41461 PIC_FLAG="-dynamic -fPIC"
41462 ;;
41463
41464 *-*-aix* )
41465 if test "x$GCC" != "xyes"; then
41466 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41467set dummy makeC++SharedLib; ac_word=$2
41468echo "$as_me:$LINENO: checking for $ac_word" >&5
41469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41470if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41471 echo $ECHO_N "(cached) $ECHO_C" >&6
41472else
41473 if test -n "$AIX_CXX_LD"; then
41474 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41475else
41476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41477for as_dir in $PATH
41478do
41479 IFS=$as_save_IFS
41480 test -z "$as_dir" && as_dir=.
41481 for ac_exec_ext in '' $ac_executable_extensions; do
41482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41483 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41485 break 2
41486 fi
41487done
41488done
41489
41490 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41491fi
41492fi
41493AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41494if test -n "$AIX_CXX_LD"; then
41495 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41496echo "${ECHO_T}$AIX_CXX_LD" >&6
41497else
41498 echo "$as_me:$LINENO: result: no" >&5
41499echo "${ECHO_T}no" >&6
41500fi
41501
41502 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41503 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41504 fi
41505 ;;
41506
41507 *-*-beos* )
1e9e8aba
DE
41508 SHARED_LD_CC="${LD} -nostart -o"
41509 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41510 ;;
41511
41512 *-*-irix* )
41513 if test "x$GCC" != "xyes"; then
41514 PIC_FLAG="-KPIC"
41515 fi
41516 ;;
41517
41518 *-*-cygwin* | *-*-mingw32* )
41519 PIC_FLAG=""
1e9e8aba
DE
41520 SHARED_LD_CC="\$(CC) -shared -o"
41521 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41522 ;;
41523
41524 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41525 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41526 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41527 PIC_FLAG=""
473276a9
VS
41528
41529D='$'
41530cat <<EOF >dllar.sh
41531#!/bin/sh
41532#
41533# dllar - a tool to build both a .dll and an .a file
41534# from a set of object (.o) files for EMX/OS2.
41535#
41536# Written by Andrew Zabolotny, bit@freya.etu.ru
41537# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41538#
41539# This script will accept a set of files on the command line.
41540# All the public symbols from the .o files will be exported into
41541# a .DEF file, then linker will be run (through gcc) against them to
41542# build a shared library consisting of all given .o files. All libraries
41543# (.a) will be first decompressed into component .o files then act as
41544# described above. You can optionally give a description (-d "description")
41545# which will be put into .DLL. To see the list of accepted options (as well
41546# as command-line format) simply run this program without options. The .DLL
41547# is built to be imported by name (there is no guarantee that new versions
41548# of the library you build will have same ordinals for same symbols).
41549#
41550# dllar is free software; you can redistribute it and/or modify
41551# it under the terms of the GNU General Public License as published by
41552# the Free Software Foundation; either version 2, or (at your option)
41553# any later version.
41554#
41555# dllar is distributed in the hope that it will be useful,
41556# but WITHOUT ANY WARRANTY; without even the implied warranty of
41557# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41558# GNU General Public License for more details.
41559#
41560# You should have received a copy of the GNU General Public License
41561# along with dllar; see the file COPYING. If not, write to the Free
41562# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41563# 02111-1307, USA.
41564
41565# To successfuly run this program you will need:
41566# - Current drive should have LFN support (HPFS, ext2, network, etc)
41567# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41568# - gcc
41569# (used to build the .dll)
41570# - emxexp
41571# (used to create .def file from .o files)
41572# - emximp
41573# (used to create .a file from .def file)
41574# - GNU text utilites (cat, sort, uniq)
41575# used to process emxexp output
41576# - GNU file utilities (mv, rm)
41577# - GNU sed
41578# - lxlite (optional, see flag below)
41579# (used for general .dll cleanup)
41580#
41581
41582flag_USE_LXLITE=1;
41583
41584#
41585# helper functions
41586# basnam, variant of basename, which does _not_ remove the path, _iff_
41587# second argument (suffix to remove) is given
41588basnam(){
41589 case ${D}# in
41590 1)
1e9e8aba 41591 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41592 ;;
41593 2)
41594 echo ${D}1 | sed 's/'${D}2'${D}//'
41595 ;;
41596 *)
41597 echo "error in basnam ${D}*"
41598 exit 8
41599 ;;
41600 esac
41601}
41602
41603# Cleanup temporary files and output
41604CleanUp() {
41605 cd ${D}curDir
41606 for i in ${D}inputFiles ; do
41607 case ${D}i in
41608 *!)
41609 rm -rf \`basnam ${D}i !\`
41610 ;;
41611 *)
41612 ;;
41613 esac
41614 done
41615
41616 # Kill result in case of failure as there is just to many stupid make/nmake
41617 # things out there which doesn't do this.
1e9e8aba 41618 if [ ${D}# -eq 0 ]; then
473276a9
VS
41619 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41620 fi
41621}
41622
41623# Print usage and exit script with rc=1.
41624PrintHelp() {
b1d22ded
DE
41625 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41626 echo ' [-name-mangler-script script.sh]'
41627 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41628 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41629 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41630 echo ' [*.o] [*.a]'
473276a9
VS
41631 echo '*> "output_file" should have no extension.'
41632 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41633 echo ' The import library name is derived from this and is set to "name".a,'
41634 echo ' unless overridden by -import'
41635 echo '*> "importlib_name" should have no extension.'
41636 echo ' If it has the .o, or .a extension, it is automatically removed.'
41637 echo ' This name is used as the import library name and may be longer and'
41638 echo ' more descriptive than the DLL name which has to follow the old '
41639 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41640 echo '*> "script.sh may be given to override the output_file name by a'
41641 echo ' different name. It is mainly useful if the regular make process'
41642 echo ' of some package does not take into account OS/2 restriction of'
41643 echo ' DLL name lengths. It takes the importlib name as input and is'
41644 echo ' supposed to procude a shorter name as output. The script should'
41645 echo ' expect to get importlib_name without extension and should produce'
41646 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41647 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41648 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41649 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41650 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41651 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41652 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41653 echo ' If the last character of a symbol is "*", all symbols beginning'
41654 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41655 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41656 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41657 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41658 echo ' C runtime DLLs.'
b1d22ded 41659 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41660 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41661 echo ' unchanged to GCC at the end of command line.'
41662 echo '*> If you create a DLL from a library and you do not specify -o,'
41663 echo ' the basename for DLL and import library will be set to library name,'
41664 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41665 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41666 echo ' library will be renamed into gcc_s.a.'
41667 echo '--------'
41668 echo 'Example:'
41669 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41670 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41671 CleanUp
41672 exit 1
41673}
41674
41675# Execute a command.
41676# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41677# @Uses Whatever CleanUp() uses.
41678doCommand() {
41679 echo "${D}*"
41680 eval ${D}*
41681 rcCmd=${D}?
41682
1e9e8aba 41683 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41684 echo "command failed, exit code="${D}rcCmd
41685 CleanUp
41686 exit ${D}rcCmd
41687 fi
41688}
41689
41690# main routine
41691# setup globals
41692cmdLine=${D}*
41693outFile=""
41694outimpFile=""
41695inputFiles=""
b1d22ded 41696renameScript=""
473276a9
VS
41697description=""
41698CC=gcc.exe
41699CFLAGS="-s -Zcrtdll"
41700EXTRA_CFLAGS=""
41701EXPORT_BY_ORDINALS=0
41702exclude_symbols=""
41703library_flags=""
41704curDir=\`pwd\`
41705curDirS=curDir
41706case ${D}curDirS in
41707*/)
41708 ;;
41709*)
41710 curDirS=${D}{curDirS}"/"
41711 ;;
41712esac
41713# Parse commandline
41714libsToLink=0
b1d22ded 41715omfLinking=0
1e9e8aba 41716while [ ${D}1 ]; do
473276a9
VS
41717 case ${D}1 in
41718 -ord*)
41719 EXPORT_BY_ORDINALS=1;
41720 ;;
41721 -o*)
41722 shift
41723 outFile=${D}1
41724 ;;
41725 -i*)
41726 shift
41727 outimpFile=${D}1
41728 ;;
b1d22ded
DE
41729 -name-mangler-script)
41730 shift
41731 renameScript=${D}1
41732 ;;
473276a9
VS
41733 -d*)
41734 shift
41735 description=${D}1
41736 ;;
41737 -f*)
41738 shift
41739 CFLAGS=${D}1
41740 ;;
41741 -c*)
41742 shift
41743 CC=${D}1
41744 ;;
41745 -h*)
41746 PrintHelp
41747 ;;
41748 -ex*)
41749 shift
41750 exclude_symbols=${D}{exclude_symbols}${D}1" "
41751 ;;
41752 -libf*)
41753 shift
41754 library_flags=${D}{library_flags}${D}1" "
41755 ;;
41756 -nocrt*)
41757 CFLAGS="-s"
41758 ;;
41759 -nolxl*)
41760 flag_USE_LXLITE=0
41761 ;;
41762 -* | /*)
41763 case ${D}1 in
41764 -L* | -l*)
41765 libsToLink=1
41766 ;;
b1d22ded
DE
41767 -Zomf)
41768 omfLinking=1
41769 ;;
473276a9
VS
41770 *)
41771 ;;
41772 esac
41773 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41774 ;;
b1d22ded
DE
41775 *.dll)
41776 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41777 if [ ${D}omfLinking -eq 1 ]; then
41778 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41779 else
41780 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41781 fi
41782 ;;
473276a9
VS
41783 *)
41784 found=0;
1e9e8aba 41785 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41786 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41787 else
41788 for file in ${D}1 ; do
1e9e8aba 41789 if [ -f ${D}file ]; then
473276a9
VS
41790 inputFiles="${D}{inputFiles} ${D}file"
41791 found=1
41792 fi
41793 done
1e9e8aba 41794 if [ ${D}found -eq 0 ]; then
473276a9
VS
41795 echo "ERROR: No file(s) found: "${D}1
41796 exit 8
41797 fi
41798 fi
41799 ;;
41800 esac
41801 shift
41802done # iterate cmdline words
41803
41804#
1e9e8aba 41805if [ -z "${D}inputFiles" ]; then
473276a9
VS
41806 echo "dllar: no input files"
41807 PrintHelp
41808fi
41809
41810# Now extract all .o files from .a files
41811newInputFiles=""
41812for file in ${D}inputFiles ; do
41813 case ${D}file in
41814 *.a | *.lib)
41815 case ${D}file in
41816 *.a)
41817 suffix=".a"
41818 AR="ar"
41819 ;;
41820 *.lib)
41821 suffix=".lib"
41822 AR="emxomfar"
41823 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41824 ;;
41825 *)
41826 ;;
41827 esac
41828 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41829 mkdir ${D}dirname
1e9e8aba 41830 if [ ${D}? -ne 0 ]; then
473276a9
VS
41831 echo "Failed to create subdirectory ./${D}dirname"
41832 CleanUp
41833 exit 8;
41834 fi
41835 # Append '!' to indicate archive
41836 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41837 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41838 cd ${D}curDir
41839 found=0;
41840 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41841 if [ -f ${D}subfile ]; then
473276a9 41842 found=1
1e9e8aba 41843 if [ -s ${D}subfile ]; then
473276a9
VS
41844 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41845 newInputFiles="${D}newInputFiles ${D}subfile"
41846 fi
41847 fi
41848 done
1e9e8aba
DE
41849 if [ ${D}found -eq 0 ]; then
41850 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41851 fi
41852 ;;
41853 *)
41854 newInputFiles="${D}{newInputFiles} ${D}file"
41855 ;;
41856 esac
41857done
41858inputFiles="${D}newInputFiles"
41859
41860# Output filename(s).
41861do_backup=0;
1e9e8aba 41862if [ -z ${D}outFile ]; then
473276a9
VS
41863 do_backup=1;
41864 set outFile ${D}inputFiles; outFile=${D}2
41865fi
41866
41867# If it is an archive, remove the '!' and the '_%' suffixes
41868case ${D}outFile in
41869*_%!)
41870 outFile=\`basnam ${D}outFile _%!\`
41871 ;;
41872*)
41873 ;;
41874esac
41875case ${D}outFile in
41876*.dll)
41877 outFile=\`basnam ${D}outFile .dll\`
41878 ;;
41879*.DLL)
41880 outFile=\`basnam ${D}outFile .DLL\`
41881 ;;
41882*.o)
41883 outFile=\`basnam ${D}outFile .o\`
41884 ;;
41885*.obj)
41886 outFile=\`basnam ${D}outFile .obj\`
41887 ;;
41888*.a)
41889 outFile=\`basnam ${D}outFile .a\`
41890 ;;
41891*.lib)
41892 outFile=\`basnam ${D}outFile .lib\`
41893 ;;
41894*)
41895 ;;
41896esac
41897case ${D}outimpFile in
41898*.a)
41899 outimpFile=\`basnam ${D}outimpFile .a\`
41900 ;;
41901*.lib)
41902 outimpFile=\`basnam ${D}outimpFile .lib\`
41903 ;;
41904*)
41905 ;;
41906esac
1e9e8aba 41907if [ -z ${D}outimpFile ]; then
473276a9
VS
41908 outimpFile=${D}outFile
41909fi
41910defFile="${D}{outFile}.def"
41911arcFile="${D}{outimpFile}.a"
41912arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41913
41914#create ${D}dllFile as something matching 8.3 restrictions,
41915if [ -z ${D}renameScript ] ; then
41916 dllFile="${D}outFile"
41917else
41918 dllFile=\`${D}renameScript ${D}outimpFile\`
41919fi
473276a9 41920
1e9e8aba
DE
41921if [ ${D}do_backup -ne 0 ] ; then
41922 if [ -f ${D}arcFile ] ; then
473276a9
VS
41923 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41924 fi
1e9e8aba 41925 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41926 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41927 fi
41928fi
41929
41930# Extract public symbols from all the object files.
41931tmpdefFile=${D}{defFile}_%
41932rm -f ${D}tmpdefFile
41933for file in ${D}inputFiles ; do
41934 case ${D}file in
41935 *!)
41936 ;;
41937 *)
41938 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41939 ;;
41940 esac
41941done
41942
41943# Create the def file.
41944rm -f ${D}defFile
41945echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41946dllFile="${D}{dllFile}.dll"
41947if [ ! -z ${D}description ]; then
1e9e8aba 41948 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41949fi
41950echo "EXPORTS" >> ${D}defFile
41951
41952doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41953grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41954
41955# Checks if the export is ok or not.
41956for word in ${D}exclude_symbols; do
41957 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41958 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41959done
41960
41961
1e9e8aba
DE
41962if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41963 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41964 sed '
41965 N
41966 : loop
1e9e8aba 41967 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41968 t loop
41969 ' > ${D}{tmpdefFile}%
41970 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41971else
41972 rm -f ${D}{tmpdefFile}%
41973fi
41974cat ${D}tmpdefFile >> ${D}defFile
41975rm -f ${D}tmpdefFile
41976
41977# Do linking, create implib, and apply lxlite.
41978gccCmdl="";
41979for file in ${D}inputFiles ; do
41980 case ${D}file in
41981 *!)
41982 ;;
41983 *)
41984 gccCmdl="${D}gccCmdl ${D}file"
41985 ;;
41986 esac
41987done
41988doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41989touch "${D}{outFile}.dll"
41990
41991doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41992if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41993 add_flags="";
1e9e8aba 41994 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41995 add_flags="-ynd"
41996 fi
41997 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41998fi
41999doCommand "emxomf -s -l ${D}arcFile"
42000
42001# Successful exit.
42002CleanUp 1
42003exit 0
42004EOF
42005
42006 chmod +x dllar.sh
a848cd7e
SC
42007 ;;
42008
1e9e8aba 42009 powerpc-apple-macos* | \
a848cd7e
SC
42010 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42011 *-*-sunos4* | \
42012 *-*-osf* | \
42013 *-*-dgux5* | \
42014 *-*-sysv5* )
42015 ;;
42016
42017 *)
42018 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42019echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42020 { (exit 1); exit 1; }; }
42021 esac
42022
2057db16
VS
42023 if test "x$PIC_FLAG" != "x" ; then
42024 PIC_FLAG="$PIC_FLAG -DPIC"
42025 fi
42026
a848cd7e
SC
42027 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42028 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42029 fi
42030 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42031 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42032 fi
42033
42034
42035
42036
42037
42038
42039
42040
42041 USE_SOVERSION=0
42042 USE_SOVERLINUX=0
42043 USE_SOVERSOLARIS=0
42044 USE_SOSYMLINKS=0
42045 USE_MACVERSION=0
42046 SONAME_FLAG=
42047
42048 case "${BAKEFILE_HOST}" in
b1d22ded 42049 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42050 SONAME_FLAG="-Wl,-soname,"
42051 USE_SOVERSION=1
42052 USE_SOVERLINUX=1
42053 USE_SOSYMLINKS=1
42054 ;;
42055
a848cd7e
SC
42056 *-*-solaris2* )
42057 SONAME_FLAG="-h "
42058 USE_SOVERSION=1
42059 USE_SOVERSOLARIS=1
42060 USE_SOSYMLINKS=1
42061 ;;
42062
42063 *-*-darwin* )
42064 USE_MACVERSION=1
42065 USE_SOVERSION=1
42066 USE_SOSYMLINKS=1
42067 ;;
42068 esac
42069
42070
42071
42072
42073
42074
42075
42076
42077
42078 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42079echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42080 DEPS_TRACKING=0
42081
42082 if test "x$GCC" = "xyes"; then
42083 DEPSMODE=gcc
42084 DEPS_TRACKING=1
42085 case "${BAKEFILE_HOST}" in
42086 powerpc-*-darwin* )
42087 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42088 ;;
42089 * )
42090 DEPSFLAG_GCC="-MMD"
42091 ;;
42092 esac
42093 echo "$as_me:$LINENO: result: gcc" >&5
42094echo "${ECHO_T}gcc" >&6
b1d22ded 42095 elif test "x$MWCC" = "xyes"; then
81f90336 42096 DEPSMODE=mwcc
b1d22ded 42097 DEPS_TRACKING=1
81f90336 42098 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42099 echo "$as_me:$LINENO: result: mwcc" >&5
42100echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42101 else
42102 echo "$as_me:$LINENO: result: none" >&5
42103echo "${ECHO_T}none" >&6
42104 fi
42105
42106 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42107
42108D='$'
42109cat <<EOF >bk-deps
a848cd7e
SC
42110#!/bin/sh
42111
42112# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42113# script. It is used to track C/C++ files dependencies in portable way.
42114#
42115# Permission is given to use this file in any way.
42116
473276a9 42117DEPSMODE=${DEPSMODE}
a848cd7e 42118DEPSDIR=.deps
473276a9 42119DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42120DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42121
473276a9 42122mkdir -p ${D}DEPSDIR
a848cd7e 42123
473276a9
VS
42124if test ${D}DEPSMODE = gcc ; then
42125 ${D}* ${D}{DEPSFLAG_GCC}
42126 status=${D}?
42127 if test ${D}{status} != 0 ; then
42128 exit ${D}{status}
a848cd7e
SC
42129 fi
42130 # move created file to the location we want it in:
473276a9
VS
42131 while test ${D}# -gt 0; do
42132 case "${D}1" in
a848cd7e
SC
42133 -o )
42134 shift
473276a9 42135 objfile=${D}1
a848cd7e
SC
42136 ;;
42137 -* )
42138 ;;
42139 * )
473276a9 42140 srcfile=${D}1
a848cd7e
SC
42141 ;;
42142 esac
42143 shift
42144 done
1e9e8aba
DE
42145 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42146 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42147 if test -f ${D}depfile ; then
42148 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42149 rm -f ${D}depfile
a848cd7e 42150 else
1e9e8aba 42151 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42152 if test -f ${D}depfile ; then
42153 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42154 rm -f ${D}depfile
a848cd7e
SC
42155 fi
42156 fi
42157 exit 0
81f90336
MW
42158elif test ${D}DEPSMODE = mwcc ; then
42159 ${D}*
42160 status=${D}?
42161 if test ${D}{status} != 0 ; then
42162 exit ${D}{status}
42163 fi
42164 # Run mwcc again with -MM and redirect into the dep file we want
42165 # NOTE: We can't use shift here because we need ${D}* to be valid
42166 prevarg=
42167 for arg in ${D}* ; do
42168 if test "${D}prevarg" = "-o"; then
42169 objfile=${D}arg
42170 else
42171 case "${D}arg" in
42172 -* )
42173 ;;
42174 * )
42175 srcfile=${D}arg
42176 ;;
42177 esac
42178 fi
42179 prevarg="${D}arg"
42180 done
42181 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42182 exit 0
a848cd7e 42183else
473276a9
VS
42184 ${D}*
42185 exit ${D}?
a848cd7e
SC
42186fi
42187EOF
473276a9 42188
a848cd7e
SC
42189 chmod +x bk-deps
42190 fi
42191
42192
42193
42194
42195 RESCOMP=
42196 SETFILE=
42197
42198 case ${BAKEFILE_HOST} in
42199 *-*-cygwin* | *-*-mingw32* )
42200 if test "$build" != "$host" ; then
42201 RESCOMP=$host_alias-windres
42202 else
42203 # Extract the first word of "windres", so it can be a program name with args.
42204set dummy windres; ac_word=$2
42205echo "$as_me:$LINENO: checking for $ac_word" >&5
42206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42207if test "${ac_cv_prog_RESCOMP+set}" = set; then
42208 echo $ECHO_N "(cached) $ECHO_C" >&6
42209else
42210 if test -n "$RESCOMP"; then
42211 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42212else
42213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42214for as_dir in $PATH
42215do
42216 IFS=$as_save_IFS
42217 test -z "$as_dir" && as_dir=.
42218 for ac_exec_ext in '' $ac_executable_extensions; do
42219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42220 ac_cv_prog_RESCOMP="windres"
42221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42222 break 2
42223 fi
42224done
42225done
42226
42227 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42228fi
42229fi
42230RESCOMP=$ac_cv_prog_RESCOMP
42231if test -n "$RESCOMP"; then
42232 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42233echo "${ECHO_T}$RESCOMP" >&6
42234else
42235 echo "$as_me:$LINENO: result: no" >&5
42236echo "${ECHO_T}no" >&6
42237fi
42238
42239 fi
42240 ;;
42241
1e9e8aba 42242 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42243 # Extract the first word of "Rez", so it can be a program name with args.
42244set dummy Rez; ac_word=$2
42245echo "$as_me:$LINENO: checking for $ac_word" >&5
42246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42247if test "${ac_cv_prog_RESCOMP+set}" = set; then
42248 echo $ECHO_N "(cached) $ECHO_C" >&6
42249else
42250 if test -n "$RESCOMP"; then
42251 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42252else
42253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42254for as_dir in $PATH
42255do
42256 IFS=$as_save_IFS
42257 test -z "$as_dir" && as_dir=.
42258 for ac_exec_ext in '' $ac_executable_extensions; do
42259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42260 ac_cv_prog_RESCOMP="Rez"
42261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42262 break 2
42263 fi
42264done
42265done
42266
42267 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42268fi
42269fi
42270RESCOMP=$ac_cv_prog_RESCOMP
42271if test -n "$RESCOMP"; then
42272 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42273echo "${ECHO_T}$RESCOMP" >&6
42274else
42275 echo "$as_me:$LINENO: result: no" >&5
42276echo "${ECHO_T}no" >&6
42277fi
42278
42279 # Extract the first word of "SetFile", so it can be a program name with args.
42280set dummy SetFile; ac_word=$2
42281echo "$as_me:$LINENO: checking for $ac_word" >&5
42282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42283if test "${ac_cv_prog_SETFILE+set}" = set; then
42284 echo $ECHO_N "(cached) $ECHO_C" >&6
42285else
42286 if test -n "$SETFILE"; then
42287 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42288else
42289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42290for as_dir in $PATH
42291do
42292 IFS=$as_save_IFS
42293 test -z "$as_dir" && as_dir=.
42294 for ac_exec_ext in '' $ac_executable_extensions; do
42295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42296 ac_cv_prog_SETFILE="SetFile"
42297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42298 break 2
42299 fi
42300done
42301done
42302
42303 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42304fi
42305fi
42306SETFILE=$ac_cv_prog_SETFILE
42307if test -n "$SETFILE"; then
42308 echo "$as_me:$LINENO: result: $SETFILE" >&5
42309echo "${ECHO_T}$SETFILE" >&6
42310else
42311 echo "$as_me:$LINENO: result: no" >&5
42312echo "${ECHO_T}no" >&6
42313fi
42314
42315 ;;
42316 esac
42317
42318
42319
42320
42321
94acd38e 42322 BAKEFILE_BAKEFILE_M4_VERSION="0.1.7"
a848cd7e 42323
dcc1b6ad 42324
94acd38e 42325BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7"
a848cd7e 42326
646b6ec1 42327
74b84332 42328
a848cd7e
SC
42329 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42330if test "${enable_precomp_headers+set}" = set; then
42331 enableval="$enable_precomp_headers"
42332 bk_use_pch="$enableval"
42333fi;
42334
42335 GCC_PCH=0
42336
42337 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42338 if test "x$GCC" = "xyes"; then
42339 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42340echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42341 cat >conftest.$ac_ext <<_ACEOF
42342/* confdefs.h. */
42343_ACEOF
42344cat confdefs.h >>conftest.$ac_ext
42345cat >>conftest.$ac_ext <<_ACEOF
42346/* end confdefs.h. */
42347
42348int
42349main ()
42350{
42351
42352 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42353 #error "no pch support"
42354 #endif
42355 #if (__GNUC__ < 3)
42356 #error "no pch support"
42357 #endif
42358 #if (__GNUC__ == 3) && \
42359 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42360 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42361 #error "no pch support"
42362 #endif
42363
42364 ;
42365 return 0;
42366}
42367_ACEOF
42368rm -f conftest.$ac_objext
42369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42370 (eval $ac_compile) 2>conftest.er1
a848cd7e 42371 ac_status=$?
ac1cb8d3
VS
42372 grep -v '^ *+' conftest.er1 >conftest.err
42373 rm -f conftest.er1
42374 cat conftest.err >&5
a848cd7e
SC
42375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376 (exit $ac_status); } &&
89be85c2
VS
42377 { ac_try='test -z "$ac_c_werror_flag"
42378 || test ! -s conftest.err'
ac1cb8d3
VS
42379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42380 (eval $ac_try) 2>&5
42381 ac_status=$?
42382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42383 (exit $ac_status); }; } &&
42384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42386 (eval $ac_try) 2>&5
42387 ac_status=$?
42388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42389 (exit $ac_status); }; }; then
42390
42391 echo "$as_me:$LINENO: result: yes" >&5
42392echo "${ECHO_T}yes" >&6
a848cd7e
SC
42393 GCC_PCH=1
42394
42395else
42396 echo "$as_me: failed program was:" >&5
42397sed 's/^/| /' conftest.$ac_ext >&5
42398
42399
42400 echo "$as_me:$LINENO: result: no" >&5
42401echo "${ECHO_T}no" >&6
42402
42403fi
ac1cb8d3 42404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42405 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42406
42407D='$'
42408cat <<EOF >bk-make-pch
a848cd7e
SC
42409#!/bin/sh
42410
42411# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42412# script. It is used to generated precompiled headers.
42413#
42414# Permission is given to use this file in any way.
42415
1e9e8aba
DE
42416outfile="${D}{1}"
42417header="${D}{2}"
a848cd7e
SC
42418shift
42419shift
42420
42421compiler=
42422headerfile=
1e9e8aba
DE
42423while test ${D}{#} -gt 0; do
42424 case "${D}{1}" in
a848cd7e 42425 -I* )
1e9e8aba
DE
42426 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42427 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42428 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42429 fi
42430 ;;
42431 esac
1e9e8aba 42432 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42433 shift
42434done
42435
1e9e8aba
DE
42436if test "x${D}{headerfile}" = "x" ; then
42437 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42438else
1e9e8aba
DE
42439 if test -f ${D}{outfile} ; then
42440 rm -f ${D}{outfile}
a848cd7e 42441 else
1e9e8aba 42442 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42443 fi
1e9e8aba 42444 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42445 mkdir -p .deps
42446 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42447 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42448 exit ${D}{?}
a848cd7e
SC
42449fi
42450EOF
1e9e8aba 42451
a848cd7e
SC
42452 chmod +x bk-make-pch
42453 fi
42454 fi
42455 fi
42456
42457
42458
a848cd7e
SC
42459 COND_BUILD_DEBUG="#"
42460 if test "x$BUILD" = "xdebug" ; then
42461 COND_BUILD_DEBUG=""
42462 fi
42463
42464 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42465 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42466 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42467 fi
42468
42469 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42470 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42471 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42472 fi
42473
42474 COND_BUILD_DEBUG_UNICODE_0="#"
42475 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42476 COND_BUILD_DEBUG_UNICODE_0=""
42477 fi
42478
42479 COND_BUILD_DEBUG_UNICODE_1="#"
42480 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42481 COND_BUILD_DEBUG_UNICODE_1=""
42482 fi
42483
42484 COND_BUILD_RELEASE="#"
42485 if test "x$BUILD" = "xrelease" ; then
42486 COND_BUILD_RELEASE=""
42487 fi
42488
42489 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42490 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42491 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42492 fi
42493
42494 COND_BUILD_RELEASE_UNICODE_0="#"
42495 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42496 COND_BUILD_RELEASE_UNICODE_0=""
42497 fi
42498
42499 COND_BUILD_RELEASE_UNICODE_1="#"
42500 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42501 COND_BUILD_RELEASE_UNICODE_1=""
42502 fi
42503
42504 COND_DEBUG_FLAG_1="#"
42505 if test "x$DEBUG_FLAG" = "x1" ; then
42506 COND_DEBUG_FLAG_1=""
42507 fi
42508
42509 COND_DEBUG_INFO_0="#"
42510 if test "x$DEBUG_INFO" = "x0" ; then
42511 COND_DEBUG_INFO_0=""
42512 fi
42513
42514 COND_DEBUG_INFO_1="#"
42515 if test "x$DEBUG_INFO" = "x1" ; then
42516 COND_DEBUG_INFO_1=""
42517 fi
42518
42519 COND_DEPS_TRACKING_0="#"
42520 if test "x$DEPS_TRACKING" = "x0" ; then
42521 COND_DEPS_TRACKING_0=""
42522 fi
42523
42524 COND_DEPS_TRACKING_1="#"
42525 if test "x$DEPS_TRACKING" = "x1" ; then
42526 COND_DEPS_TRACKING_1=""
42527 fi
42528
42529 COND_GCC_PCH_1="#"
42530 if test "x$GCC_PCH" = "x1" ; then
42531 COND_GCC_PCH_1=""
42532 fi
42533
42534 COND_MONOLITHIC_0="#"
42535 if test "x$MONOLITHIC" = "x0" ; then
42536 COND_MONOLITHIC_0=""
42537 fi
42538
42539 COND_MONOLITHIC_0_SHARED_0="#"
42540 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42541 COND_MONOLITHIC_0_SHARED_0=""
42542 fi
42543
42544 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42545 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42546 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42547 fi
42548
90970d69
DE
42549 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42550 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42551 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42552 fi
42553
a848cd7e
SC
42554 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42555 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42556 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42557 fi
42558
a848cd7e
SC
42559 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42560 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42561 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42562 fi
42563
ceec2216
RL
42564 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42565 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42566 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42567 fi
42568
a848cd7e
SC
42569 COND_MONOLITHIC_0_SHARED_1="#"
42570 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42571 COND_MONOLITHIC_0_SHARED_1=""
42572 fi
42573
42574 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42575 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42576 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42577 fi
42578
90970d69
DE
42579 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42580 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42581 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42582 fi
42583
a848cd7e
SC
42584 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42585 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42586 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42587 fi
42588
a848cd7e
SC
42589 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42590 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42591 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42592 fi
42593
ceec2216
RL
42594 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42595 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42596 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42597 fi
42598
a848cd7e
SC
42599 COND_MONOLITHIC_0_USE_ODBC_1="#"
42600 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42601 COND_MONOLITHIC_0_USE_ODBC_1=""
42602 fi
42603
42604 COND_MONOLITHIC_1="#"
42605 if test "x$MONOLITHIC" = "x1" ; then
42606 COND_MONOLITHIC_1=""
42607 fi
42608
42609 COND_MONOLITHIC_1_SHARED_0="#"
42610 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42611 COND_MONOLITHIC_1_SHARED_0=""
42612 fi
42613
42614 COND_MONOLITHIC_1_SHARED_1="#"
42615 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42616 COND_MONOLITHIC_1_SHARED_1=""
42617 fi
42618
42619 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42620 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42621 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42622 fi
42623
42624 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42625 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42626 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42627 fi
42628
42629 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42630 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42631 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42632 fi
42633
42634 COND_PLATFORM_MACOSX_1="#"
42635 if test "x$PLATFORM_MACOSX" = "x1" ; then
42636 COND_PLATFORM_MACOSX_1=""
42637 fi
42638
a30f955f
VS
42639 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42640 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42641 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42642 fi
42643
a848cd7e
SC
42644 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42645 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42646 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42647 fi
42648
42649 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42650 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42651 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42652 fi
42653
42654 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42655 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42656 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42657 fi
42658
fc480dc1
DE
42659 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42660 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42661 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42662 fi
42663
1e9e8aba
DE
42664 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42665 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42666 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42667 fi
42668
ebee3cd0
VS
42669 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42670 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42671 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42672 fi
42673
42674 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42675 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42676 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42677 fi
42678
a848cd7e
SC
42679 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42680 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42681 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42682 fi
42683
42684 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42685 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42686 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42687 fi
42688
b48a2016
DE
42689 COND_PLATFORM_MACOS_1="#"
42690 if test "x$PLATFORM_MACOS" = "x1" ; then
42691 COND_PLATFORM_MACOS_1=""
42692 fi
42693
a848cd7e
SC
42694 COND_PLATFORM_MAC_1="#"
42695 if test "x$PLATFORM_MAC" = "x1" ; then
42696 COND_PLATFORM_MAC_1=""
42697 fi
42698
42699 COND_PLATFORM_OS2_1="#"
42700 if test "x$PLATFORM_OS2" = "x1" ; then
42701 COND_PLATFORM_OS2_1=""
42702 fi
42703
42704 COND_PLATFORM_UNIX_0="#"
42705 if test "x$PLATFORM_UNIX" = "x0" ; then
42706 COND_PLATFORM_UNIX_0=""
42707 fi
42708
42709 COND_PLATFORM_UNIX_1="#"
42710 if test "x$PLATFORM_UNIX" = "x1" ; then
42711 COND_PLATFORM_UNIX_1=""
42712 fi
42713
42714 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42715 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42716 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42717 fi
42718
42719 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42720 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42721 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42722 fi
42723
42724 COND_PLATFORM_WIN32_0="#"
42725 if test "x$PLATFORM_WIN32" = "x0" ; then
42726 COND_PLATFORM_WIN32_0=""
42727 fi
42728
42729 COND_PLATFORM_WIN32_1="#"
42730 if test "x$PLATFORM_WIN32" = "x1" ; then
42731 COND_PLATFORM_WIN32_1=""
42732 fi
42733
42734 COND_SHARED_0="#"
42735 if test "x$SHARED" = "x0" ; then
42736 COND_SHARED_0=""
42737 fi
42738
ceec2216
RL
42739 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42740 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42741 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42742 fi
42743
42744 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42745 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42746 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42747 fi
42748
42749 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42750 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42751 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42752 fi
42753
a848cd7e
SC
42754 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42755 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42756 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42757 fi
42758
42759 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42760 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42761 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42762 fi
42763
42764 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42765 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42766 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42767 fi
42768
42769 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42770 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42771 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42772 fi
42773
42774 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42775 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42776 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42777 fi
42778
42779 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42780 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42781 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42782 fi
42783
42784 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42785 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42786 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42787 fi
42788
42789 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42790 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42791 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42792 fi
42793
42794 COND_SHARED_1="#"
42795 if test "x$SHARED" = "x1" ; then
42796 COND_SHARED_1=""
42797 fi
42798
42799 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42800 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42801 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42802 fi
42803
a30f955f
VS
42804 COND_TOOLKIT_="#"
42805 if test "x$TOOLKIT" = "x" ; then
42806 COND_TOOLKIT_=""
42807 fi
42808
a848cd7e
SC
42809 COND_TOOLKIT_COCOA="#"
42810 if test "x$TOOLKIT" = "xCOCOA" ; then
42811 COND_TOOLKIT_COCOA=""
42812 fi
42813
a49baeab
DE
42814 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42815 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42816 COND_TOOLKIT_COCOA_USE_GUI_1=""
42817 fi
42818
a848cd7e
SC
42819 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42820 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42821 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42822 fi
42823
42824 COND_TOOLKIT_GTK="#"
42825 if test "x$TOOLKIT" = "xGTK" ; then
42826 COND_TOOLKIT_GTK=""
42827 fi
42828
42829 COND_TOOLKIT_GTK_USE_GUI_1="#"
42830 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42831 COND_TOOLKIT_GTK_USE_GUI_1=""
42832 fi
42833
42834 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42835 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42836 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42837 fi
42838
42839 COND_TOOLKIT_MAC="#"
42840 if test "x$TOOLKIT" = "xMAC" ; then
42841 COND_TOOLKIT_MAC=""
42842 fi
42843
42844 COND_TOOLKIT_MAC_USE_GUI_1="#"
42845 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42846 COND_TOOLKIT_MAC_USE_GUI_1=""
42847 fi
42848
42849 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42850 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42851 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42852 fi
42853
42854 COND_TOOLKIT_MGL="#"
42855 if test "x$TOOLKIT" = "xMGL" ; then
42856 COND_TOOLKIT_MGL=""
42857 fi
42858
42859 COND_TOOLKIT_MGL_USE_GUI_1="#"
42860 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42861 COND_TOOLKIT_MGL_USE_GUI_1=""
42862 fi
42863
42864 COND_TOOLKIT_MOTIF="#"
42865 if test "x$TOOLKIT" = "xMOTIF" ; then
42866 COND_TOOLKIT_MOTIF=""
42867 fi
42868
42869 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42870 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42871 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42872 fi
42873
42874 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42875 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42876 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42877 fi
42878
42879 COND_TOOLKIT_MSW="#"
42880 if test "x$TOOLKIT" = "xMSW" ; then
42881 COND_TOOLKIT_MSW=""
42882 fi
42883
42884 COND_TOOLKIT_MSW_USE_GUI_1="#"
42885 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42886 COND_TOOLKIT_MSW_USE_GUI_1=""
42887 fi
42888
42889 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42890 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42891 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42892 fi
42893
42894 COND_TOOLKIT_PM="#"
42895 if test "x$TOOLKIT" = "xPM" ; then
42896 COND_TOOLKIT_PM=""
42897 fi
42898
42899 COND_TOOLKIT_PM_USE_GUI_1="#"
42900 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42901 COND_TOOLKIT_PM_USE_GUI_1=""
42902 fi
42903
42904 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42905 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42906 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42907 fi
42908
3fd9c298
DE
42909 COND_TOOLKIT_WINCE="#"
42910 if test "x$TOOLKIT" = "xWINCE" ; then
42911 COND_TOOLKIT_WINCE=""
42912 fi
42913
42914 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42915 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42916 COND_TOOLKIT_WINCE_USE_GUI_1=""
42917 fi
42918
42919 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42920 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42921 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42922 fi
42923
a848cd7e
SC
42924 COND_TOOLKIT_X11="#"
42925 if test "x$TOOLKIT" = "xX11" ; then
42926 COND_TOOLKIT_X11=""
42927 fi
42928
42929 COND_TOOLKIT_X11_USE_GUI_1="#"
42930 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42931 COND_TOOLKIT_X11_USE_GUI_1=""
42932 fi
42933
42934 COND_UNICODE_1="#"
42935 if test "x$UNICODE" = "x1" ; then
42936 COND_UNICODE_1=""
42937 fi
42938
42939 COND_USE_EXCEPTIONS_0="#"
42940 if test "x$USE_EXCEPTIONS" = "x0" ; then
42941 COND_USE_EXCEPTIONS_0=""
42942 fi
42943
42944 COND_USE_EXCEPTIONS_1="#"
42945 if test "x$USE_EXCEPTIONS" = "x1" ; then
42946 COND_USE_EXCEPTIONS_1=""
42947 fi
42948
42949 COND_USE_GUI_0="#"
42950 if test "x$USE_GUI" = "x0" ; then
42951 COND_USE_GUI_0=""
42952 fi
42953
42954 COND_USE_GUI_1="#"
42955 if test "x$USE_GUI" = "x1" ; then
42956 COND_USE_GUI_1=""
42957 fi
42958
42959 COND_USE_GUI_1_WXUNIV_0="#"
42960 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42961 COND_USE_GUI_1_WXUNIV_0=""
42962 fi
42963
42964 COND_USE_GUI_1_WXUNIV_1="#"
42965 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42966 COND_USE_GUI_1_WXUNIV_1=""
42967 fi
42968
42969 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42970 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42971 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42972 fi
42973
42974 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42975 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42976 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42977 fi
42978
42979 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42980 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42981 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42982 fi
42983
ceec2216
RL
42984 COND_USE_ODBC_1="#"
42985 if test "x$USE_ODBC" = "x1" ; then
42986 COND_USE_ODBC_1=""
42987 fi
42988
ffa0583f
RL
42989 COND_USE_OPENGL_1="#"
42990 if test "x$USE_OPENGL" = "x1" ; then
42991 COND_USE_OPENGL_1=""
42992 fi
42993
a848cd7e
SC
42994 COND_USE_PLUGINS_0="#"
42995 if test "x$USE_PLUGINS" = "x0" ; then
42996 COND_USE_PLUGINS_0=""
42997 fi
42998
42999 COND_USE_SOSYMLINKS_1="#"
43000 if test "x$USE_SOSYMLINKS" = "x1" ; then
43001 COND_USE_SOSYMLINKS_1=""
43002 fi
43003
43004 COND_USE_SOVERLINUX_1="#"
43005 if test "x$USE_SOVERLINUX" = "x1" ; then
43006 COND_USE_SOVERLINUX_1=""
43007 fi
43008
43009 COND_USE_SOVERSION_0="#"
43010 if test "x$USE_SOVERSION" = "x0" ; then
43011 COND_USE_SOVERSION_0=""
43012 fi
43013
43014 COND_USE_SOVERSOLARIS_1="#"
43015 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43016 COND_USE_SOVERSOLARIS_1=""
43017 fi
43018
a13a7f89
RL
43019 COND_USE_XRC_1="#"
43020 if test "x$USE_XRC" = "x1" ; then
43021 COND_USE_XRC_1=""
43022 fi
43023
a848cd7e
SC
43024 COND_WITH_PLUGIN_SDL_1="#"
43025 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43026 COND_WITH_PLUGIN_SDL_1=""
43027 fi
43028
1e6eb025
VZ
43029 COND_WXUNIV_0="#"
43030 if test "x$WXUNIV" = "x0" ; then
43031 COND_WXUNIV_0=""
43032 fi
43033
a848cd7e
SC
43034 COND_WXUNIV_1="#"
43035 if test "x$WXUNIV" = "x1" ; then
43036 COND_WXUNIV_1=""
43037 fi
43038
43039 COND_WXUSE_EXPAT_BUILTIN="#"
43040 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43041 COND_WXUSE_EXPAT_BUILTIN=""
43042 fi
43043
43044 COND_WXUSE_LIBJPEG_BUILTIN="#"
43045 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43046 COND_WXUSE_LIBJPEG_BUILTIN=""
43047 fi
43048
43049 COND_WXUSE_LIBPNG_BUILTIN="#"
43050 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43051 COND_WXUSE_LIBPNG_BUILTIN=""
43052 fi
43053
43054 COND_WXUSE_LIBTIFF_BUILTIN="#"
43055 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43056 COND_WXUSE_LIBTIFF_BUILTIN=""
43057 fi
43058
43059 COND_WXUSE_ODBC_BUILTIN="#"
43060 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43061 COND_WXUSE_ODBC_BUILTIN=""
43062 fi
43063
43064 COND_WXUSE_REGEX_BUILTIN="#"
43065 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43066 COND_WXUSE_REGEX_BUILTIN=""
43067 fi
43068
43069 COND_WXUSE_ZLIB_BUILTIN="#"
43070 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43071 COND_WXUSE_ZLIB_BUILTIN=""
43072 fi
43073
43074
43075
2057db16
VS
43076 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43077 { { 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
43078echo "$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;}
43079 { (exit 1); exit 1; }; }
43080 fi
43081
a848cd7e 43082
ceec2216
RL
43083if test "$wxUSE_SHARED" = "yes"; then
43084
43085 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43086 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43087
5b674b9d
DE
43088 case "${host}" in
43089 *-pc-os2_emx | *-pc-os2-emx )
43090 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43091 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43092 cp -p ${srcdir}/src/os2/dllnames.sh .
43093 cp -p ${srcdir}/src/os2/dllar.sh .
43094 ;;
43095 esac
ceec2216
RL
43096else
43097
43098 EXE_LINKER="$CXX -o"
43099
43100fi
a848cd7e 43101
74b84332 43102GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43103PCH_FLAGS=""
43104if test $GCC_PCH = 1 ; then
43105 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43106 PCH_FLAGS="-DWX_PRECOMP"
43107else
a848cd7e
SC
43108 case "${host}" in
43109 powerpc-*-darwin* )
74b84332 43110 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43111 ;;
bea8e651 43112 *-*-mingw32* )
1f344abf
VS
43113 if test "$wxUSE_STL" = "yes" -o \
43114 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43115 "$wxUSE_NO_RTTI" != "yes"; then
43116 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43117echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43118 cat >conftest.$ac_ext <<_ACEOF
43119/* confdefs.h. */
43120_ACEOF
43121cat confdefs.h >>conftest.$ac_ext
43122cat >>conftest.$ac_ext <<_ACEOF
43123/* end confdefs.h. */
43124
3314e67b
RR
43125int
43126main ()
43127{
43128#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43129 #error "Not GCC 3.2 or greater"
43130 #endif
43131
43132 ;
43133 return 0;
43134}
43135_ACEOF
43136rm -f conftest.$ac_objext
43137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43138 (eval $ac_compile) 2>conftest.er1
43139 ac_status=$?
43140 grep -v '^ *+' conftest.er1 >conftest.err
43141 rm -f conftest.er1
43142 cat conftest.err >&5
43143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43144 (exit $ac_status); } &&
89be85c2
VS
43145 { ac_try='test -z "$ac_c_werror_flag"
43146 || test ! -s conftest.err'
3314e67b
RR
43147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43148 (eval $ac_try) 2>&5
43149 ac_status=$?
43150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43151 (exit $ac_status); }; } &&
43152 { ac_try='test -s conftest.$ac_objext'
43153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43154 (eval $ac_try) 2>&5
43155 ac_status=$?
43156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43157 (exit $ac_status); }; }; then
43158 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43159 echo "$as_me:$LINENO: result: yes" >&5
43160echo "${ECHO_T}yes" >&6
43161else
43162 echo "$as_me: failed program was:" >&5
43163sed 's/^/| /' conftest.$ac_ext >&5
43164
43165echo "$as_me:$LINENO: result: no" >&5
43166echo "${ECHO_T}no" >&6
43167fi
43168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43169 fi
43170 ;;
43171 *-pc-os2_emx | *-pc-os2-emx )
43172 if test "$wxUSE_STL" = "yes"; then
43173 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43174echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43175 cat >conftest.$ac_ext <<_ACEOF
43176/* confdefs.h. */
43177_ACEOF
43178cat confdefs.h >>conftest.$ac_ext
43179cat >>conftest.$ac_ext <<_ACEOF
43180/* end confdefs.h. */
43181
bea8e651
MB
43182int
43183main ()
43184{
1f344abf 43185#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43186 #error "Not GCC 3.2 or greater"
43187 #endif
43188
43189 ;
43190 return 0;
43191}
43192_ACEOF
43193rm -f conftest.$ac_objext
43194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43195 (eval $ac_compile) 2>conftest.er1
bea8e651 43196 ac_status=$?
ac1cb8d3
VS
43197 grep -v '^ *+' conftest.er1 >conftest.err
43198 rm -f conftest.er1
43199 cat conftest.err >&5
bea8e651
MB
43200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43201 (exit $ac_status); } &&
89be85c2
VS
43202 { ac_try='test -z "$ac_c_werror_flag"
43203 || test ! -s conftest.err'
ac1cb8d3
VS
43204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43205 (eval $ac_try) 2>&5
43206 ac_status=$?
43207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208 (exit $ac_status); }; } &&
43209 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43211 (eval $ac_try) 2>&5
43212 ac_status=$?
43213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214 (exit $ac_status); }; }; then
74b84332 43215 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43216 echo "$as_me:$LINENO: result: yes" >&5
43217echo "${ECHO_T}yes" >&6
43218else
43219 echo "$as_me: failed program was:" >&5
43220sed 's/^/| /' conftest.$ac_ext >&5
43221
43222echo "$as_me:$LINENO: result: no" >&5
43223echo "${ECHO_T}no" >&6
43224fi
ac1cb8d3 43225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43226 fi
43227 ;;
a848cd7e
SC
43228 esac
43229fi
d2083416 43230CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43231
43232
43233SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43234
43235
43236
43237
43238
43239
43240
43241
43242
43243
43244
43245
43246
43247
43248
43249
43250
43251
43252
43253
43254
43255
43256
43257
43258
43259
43260
43261
43262
43263
43264
43265
43266
43267
43268
43269
43270
43271
43272
43273
43274
43275
a848cd7e
SC
43276
43277
43278
43279
43280
43281
43282
43283
43284
43285
43286
43287
43288
43289
43290
43291
43292
43293
74b84332 43294
a848cd7e
SC
43295
43296
43297echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43298echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43299set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43300if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43301 echo $ECHO_N "(cached) $ECHO_C" >&6
43302else
43303 cat >conftest.make <<\_ACEOF
43304all:
43305 @echo 'ac_maketemp="$(MAKE)"'
43306_ACEOF
43307# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43308eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43309if test -n "$ac_maketemp"; then
43310 eval ac_cv_prog_make_${ac_make}_set=yes
43311else
43312 eval ac_cv_prog_make_${ac_make}_set=no
43313fi
43314rm -f conftest.make
43315fi
43316if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43317 echo "$as_me:$LINENO: result: yes" >&5
43318echo "${ECHO_T}yes" >&6
43319 SET_MAKE=
43320else
43321 echo "$as_me:$LINENO: result: no" >&5
43322echo "${ECHO_T}no" >&6
43323 SET_MAKE="MAKE=${MAKE-make}"
43324fi
43325
43326
a848cd7e 43327
ceec2216
RL
43328 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43329
a848cd7e 43330
ceec2216 43331 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43332
a848cd7e 43333
ceec2216 43334 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43335
ceec2216
RL
43336
43337 ac_config_files="$ac_config_files version-script Makefile"
43338
43339
43340 ac_config_commands="$ac_config_commands wx-config
43341 "
a848cd7e
SC
43342
43343
9103d280
RL
43344
43345
a848cd7e
SC
43346if test "$wxUSE_GUI" = "yes"; then
43347 SUBDIRS="samples demos utils contrib"
43348else SUBDIRS="samples utils"
43349fi
43350
43351
43352
43353# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43354if test "${with_cppunit_prefix+set}" = set; then
43355 withval="$with_cppunit_prefix"
43356 cppunit_config_prefix="$withval"
43357else
43358 cppunit_config_prefix=""
43359fi;
43360
43361# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43362if test "${with_cppunit_exec_prefix+set}" = set; then
43363 withval="$with_cppunit_exec_prefix"
43364 cppunit_config_exec_prefix="$withval"
43365else
43366 cppunit_config_exec_prefix=""
43367fi;
43368
43369 if test x$cppunit_config_exec_prefix != x ; then
43370 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43371 if test x${CPPUNIT_CONFIG+set} != xset ; then
43372 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43373 fi
43374 fi
43375 if test x$cppunit_config_prefix != x ; then
43376 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43377 if test x${CPPUNIT_CONFIG+set} != xset ; then
43378 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43379 fi
43380 fi
43381
43382 # Extract the first word of "cppunit-config", so it can be a program name with args.
43383set dummy cppunit-config; ac_word=$2
43384echo "$as_me:$LINENO: checking for $ac_word" >&5
43385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43386if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43387 echo $ECHO_N "(cached) $ECHO_C" >&6
43388else
43389 case $CPPUNIT_CONFIG in
43390 [\\/]* | ?:[\\/]*)
43391 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43392 ;;
43393 *)
43394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43395for as_dir in $PATH
43396do
43397 IFS=$as_save_IFS
43398 test -z "$as_dir" && as_dir=.
43399 for ac_exec_ext in '' $ac_executable_extensions; do
43400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43401 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43403 break 2
43404 fi
43405done
43406done
43407
43408 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43409 ;;
43410esac
43411fi
43412CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43413
43414if test -n "$CPPUNIT_CONFIG"; then
43415 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43416echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43417else
43418 echo "$as_me:$LINENO: result: no" >&5
43419echo "${ECHO_T}no" >&6
43420fi
43421
43422 cppunit_version_min=1.8.0
43423
43424 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43425echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43426 no_cppunit=""
43427 if test "$CPPUNIT_CONFIG" = "no" ; then
43428 no_cppunit=yes
43429 else
43430 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43431 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43432 cppunit_version=`$CPPUNIT_CONFIG --version`
43433
43434 cppunit_major_version=`echo $cppunit_version | \
43435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43436 cppunit_minor_version=`echo $cppunit_version | \
43437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43438 cppunit_micro_version=`echo $cppunit_version | \
43439 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43440
43441 cppunit_major_min=`echo $cppunit_version_min | \
43442 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43443 cppunit_minor_min=`echo $cppunit_version_min | \
43444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43445 cppunit_micro_min=`echo $cppunit_version_min | \
43446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43447
43448 cppunit_version_proper=`expr \
43449 $cppunit_major_version \> $cppunit_major_min \| \
43450 $cppunit_major_version \= $cppunit_major_min \& \
43451 $cppunit_minor_version \> $cppunit_minor_min \| \
43452 $cppunit_major_version \= $cppunit_major_min \& \
43453 $cppunit_minor_version \= $cppunit_minor_min \& \
43454 $cppunit_micro_version \>= $cppunit_micro_min `
43455
43456 if test "$cppunit_version_proper" = "1" ; then
43457 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43458echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43459 else
43460 echo "$as_me:$LINENO: result: no" >&5
43461echo "${ECHO_T}no" >&6
43462 no_cppunit=yes
43463 fi
43464 fi
43465
43466 if test "x$no_cppunit" = x ; then
c2218763 43467 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43468 else
43469 CPPUNIT_CFLAGS=""
43470 CPPUNIT_LIBS=""
c2218763 43471 :
a848cd7e
SC
43472 fi
43473
43474
43475
43476
43477
43478for subdir in `echo $SUBDIRS`; do
43479 if test -d ${srcdir}/${subdir} ; then
43480 if test "$wxUSE_GUI" = "yes"; then
43481 if test ${subdir} = "samples"; then
43482 makefiles="samples/Makefile.in $makefiles"
43483 for sample in `echo $SAMPLES_SUBDIRS`; do
43484 if test -d $srcdir/samples/$sample; then
43485 makefiles="samples/$sample/Makefile.in $makefiles"
43486 fi
43487 done
43488 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43489 fi
43490 else if test ${subdir} = "samples"; then
43491 makefiles="samples/Makefile.in samples/console/Makefile.in"
43492 elif test ${subdir} = "utils"; then
6537ccf8
VS
43493 makefiles=""
43494 for util in HelpGen tex2rtf ; do
43495 if test -d $srcdir/utils/$util ; then
43496 makefiles="utils/$util/Makefile.in \
43497 utils/$util/src/Makefile.in \
43498 $makefiles"
43499 fi
43500 done
a848cd7e
SC
43501 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43502 fi
43503 fi
43504
43505 for mkin in $makefiles ; do
43506 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43507 ac_config_files="$ac_config_files $mk"
43508
43509 done
43510 fi
43511done
43512
43513
43514cat >confcache <<\_ACEOF
43515# This file is a shell script that caches the results of configure
43516# tests run on this system so they can be shared between configure
43517# scripts and configure runs, see configure's option --config-cache.
43518# It is not useful on other systems. If it contains results you don't
43519# want to keep, you may remove or edit it.
43520#
43521# config.status only pays attention to the cache file if you give it
43522# the --recheck option to rerun configure.
43523#
43524# `ac_cv_env_foo' variables (set or unset) will be overridden when
43525# loading this file, other *unset* `ac_cv_foo' will be assigned the
43526# following values.
43527
43528_ACEOF
43529
43530# The following way of writing the cache mishandles newlines in values,
43531# but we know of no workaround that is simple, portable, and efficient.
43532# So, don't put newlines in cache variables' values.
43533# Ultrix sh set writes to stderr and can't be redirected directly,
43534# and sets the high bit in the cache file unless we assign to the vars.
43535{
43536 (set) 2>&1 |
43537 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43538 *ac_space=\ *)
43539 # `set' does not quote correctly, so add quotes (double-quote
43540 # substitution turns \\\\ into \\, and sed turns \\ into \).
43541 sed -n \
ac1cb8d3
VS
43542 "s/'/'\\\\''/g;
43543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43544 ;;
43545 *)
43546 # `set' quotes correctly as required by POSIX, so do not add quotes.
43547 sed -n \
ac1cb8d3 43548 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43549 ;;
43550 esac;
43551} |
43552 sed '
43553 t clear
43554 : clear
43555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43556 t end
43557 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43558 : end' >>confcache
43559if diff $cache_file confcache >/dev/null 2>&1; then :; else
43560 if test -w $cache_file; then
43561 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43562 cat confcache >$cache_file
43563 else
43564 echo "not updating unwritable cache $cache_file"
43565 fi
43566fi
43567rm -f confcache
43568
43569test "x$prefix" = xNONE && prefix=$ac_default_prefix
43570# Let make expand exec_prefix.
43571test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43572
43573# VPATH may cause trouble with some makes, so we remove $(srcdir),
43574# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43575# trailing colons and then remove the whole line if VPATH becomes empty
43576# (actually we leave an empty line to preserve line numbers).
43577if test "x$srcdir" = x.; then
ac1cb8d3 43578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43579s/:*\$(srcdir):*/:/;
43580s/:*\${srcdir}:*/:/;
43581s/:*@srcdir@:*/:/;
ac1cb8d3 43582s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43583s/:*$//;
ac1cb8d3 43584s/^[^=]*=[ ]*$//;
a848cd7e
SC
43585}'
43586fi
43587
43588DEFS=-DHAVE_CONFIG_H
43589
43590ac_libobjs=
43591ac_ltlibobjs=
43592for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43593 # 1. Remove the extension, and $U if already installed.
43594 ac_i=`echo "$ac_i" |
ac1cb8d3 43595 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43596 # 2. Add them.
43597 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43598 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43599done
43600LIBOBJS=$ac_libobjs
43601
43602LTLIBOBJS=$ac_ltlibobjs
43603
43604
43605
43606: ${CONFIG_STATUS=./config.status}
43607ac_clean_files_save=$ac_clean_files
43608ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43609{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43610echo "$as_me: creating $CONFIG_STATUS" >&6;}
43611cat >$CONFIG_STATUS <<_ACEOF
43612#! $SHELL
43613# Generated by $as_me.
43614# Run this file to recreate the current configuration.
43615# Compiler output produced by configure, useful for debugging
43616# configure, is in config.log if it exists.
43617
43618debug=false
43619ac_cs_recheck=false
43620ac_cs_silent=false
43621SHELL=\${CONFIG_SHELL-$SHELL}
43622_ACEOF
43623
43624cat >>$CONFIG_STATUS <<\_ACEOF
43625## --------------------- ##
43626## M4sh Initialization. ##
43627## --------------------- ##
43628
43629# Be Bourne compatible
43630if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43631 emulate sh
43632 NULLCMD=:
43633 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43634 # is contrary to our usage. Disable this feature.
43635 alias -g '${1+"$@"}'='"$@"'
43636elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43637 set -o posix
43638fi
ac1cb8d3 43639DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43640
43641# Support unset when possible.
ac1cb8d3 43642if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43643 as_unset=unset
43644else
43645 as_unset=false
43646fi
43647
43648
43649# Work around bugs in pre-3.0 UWIN ksh.
43650$as_unset ENV MAIL MAILPATH
43651PS1='$ '
43652PS2='> '
43653PS4='+ '
43654
43655# NLS nuisances.
43656for as_var in \
43657 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43658 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43659 LC_TELEPHONE LC_TIME
43660do
ac1cb8d3 43661 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43662 eval $as_var=C; export $as_var
43663 else
43664 $as_unset $as_var
43665 fi
43666done
43667
43668# Required to use basename.
43669if expr a : '\(a\)' >/dev/null 2>&1; then
43670 as_expr=expr
43671else
43672 as_expr=false
43673fi
43674
43675if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43676 as_basename=basename
43677else
43678 as_basename=false
43679fi
43680
43681
43682# Name of the executable.
43683as_me=`$as_basename "$0" ||
43684$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43685 X"$0" : 'X\(//\)$' \| \
43686 X"$0" : 'X\(/\)$' \| \
43687 . : '\(.\)' 2>/dev/null ||
43688echo X/"$0" |
43689 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43690 /^X\/\(\/\/\)$/{ s//\1/; q; }
43691 /^X\/\(\/\).*/{ s//\1/; q; }
43692 s/.*/./; q'`
43693
43694
43695# PATH needs CR, and LINENO needs CR and PATH.
43696# Avoid depending upon Character Ranges.
43697as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43698as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43699as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43700as_cr_digits='0123456789'
43701as_cr_alnum=$as_cr_Letters$as_cr_digits
43702
43703# The user is always right.
43704if test "${PATH_SEPARATOR+set}" != set; then
43705 echo "#! /bin/sh" >conf$$.sh
43706 echo "exit 0" >>conf$$.sh
43707 chmod +x conf$$.sh
43708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43709 PATH_SEPARATOR=';'
43710 else
43711 PATH_SEPARATOR=:
43712 fi
43713 rm -f conf$$.sh
43714fi
43715
43716
43717 as_lineno_1=$LINENO
43718 as_lineno_2=$LINENO
43719 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43720 test "x$as_lineno_1" != "x$as_lineno_2" &&
43721 test "x$as_lineno_3" = "x$as_lineno_2" || {
43722 # Find who we are. Look in the path if we contain no path at all
43723 # relative or not.
43724 case $0 in
43725 *[\\/]* ) as_myself=$0 ;;
43726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43727for as_dir in $PATH
43728do
43729 IFS=$as_save_IFS
43730 test -z "$as_dir" && as_dir=.
43731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43732done
43733
43734 ;;
43735 esac
43736 # We did not find ourselves, most probably we were run as `sh COMMAND'
43737 # in which case we are not to be found in the path.
43738 if test "x$as_myself" = x; then
43739 as_myself=$0
43740 fi
43741 if test ! -f "$as_myself"; then
43742 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43743echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43744 { (exit 1); exit 1; }; }
43745 fi
43746 case $CONFIG_SHELL in
43747 '')
43748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43749for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43750do
43751 IFS=$as_save_IFS
43752 test -z "$as_dir" && as_dir=.
43753 for as_base in sh bash ksh sh5; do
43754 case $as_dir in
43755 /*)
43756 if ("$as_dir/$as_base" -c '
43757 as_lineno_1=$LINENO
43758 as_lineno_2=$LINENO
43759 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43760 test "x$as_lineno_1" != "x$as_lineno_2" &&
43761 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43762 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43763 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43764 CONFIG_SHELL=$as_dir/$as_base
43765 export CONFIG_SHELL
43766 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43767 fi;;
43768 esac
43769 done
43770done
43771;;
43772 esac
43773
43774 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43775 # uniformly replaced by the line number. The first 'sed' inserts a
43776 # line-number line before each line; the second 'sed' does the real
43777 # work. The second script uses 'N' to pair each line-number line
43778 # with the numbered line, and appends trailing '-' during
43779 # substitution so that $LINENO is not a special case at line end.
43780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43781 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43782 sed '=' <$as_myself |
43783 sed '
43784 N
43785 s,$,-,
43786 : loop
43787 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43788 t loop
43789 s,-$,,
43790 s,^['$as_cr_digits']*\n,,
43791 ' >$as_me.lineno &&
43792 chmod +x $as_me.lineno ||
43793 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43794echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43795 { (exit 1); exit 1; }; }
43796
43797 # Don't try to exec as it changes $[0], causing all sort of problems
43798 # (the dirname of $[0] is not the place where we might find the
43799 # original and so on. Autoconf is especially sensible to this).
43800 . ./$as_me.lineno
43801 # Exit status is that of the last command.
43802 exit
43803}
43804
43805
43806case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43807 *c*,-n*) ECHO_N= ECHO_C='
43808' ECHO_T=' ' ;;
43809 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43810 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43811esac
43812
43813if expr a : '\(a\)' >/dev/null 2>&1; then
43814 as_expr=expr
43815else
43816 as_expr=false
43817fi
43818
43819rm -f conf$$ conf$$.exe conf$$.file
43820echo >conf$$.file
43821if ln -s conf$$.file conf$$ 2>/dev/null; then
43822 # We could just check for DJGPP; but this test a) works b) is more generic
43823 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43824 if test -f conf$$.exe; then
43825 # Don't use ln at all; we don't have any links
43826 as_ln_s='cp -p'
43827 else
43828 as_ln_s='ln -s'
43829 fi
43830elif ln conf$$.file conf$$ 2>/dev/null; then
43831 as_ln_s=ln
43832else
43833 as_ln_s='cp -p'
43834fi
43835rm -f conf$$ conf$$.exe conf$$.file
43836
43837if mkdir -p . 2>/dev/null; then
43838 as_mkdir_p=:
43839else
ac1cb8d3 43840 test -d ./-p && rmdir ./-p
a848cd7e
SC
43841 as_mkdir_p=false
43842fi
43843
43844as_executable_p="test -f"
43845
43846# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43848
43849# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43851
43852
43853# IFS
43854# We need space, tab and new line, in precisely that order.
43855as_nl='
43856'
43857IFS=" $as_nl"
43858
43859# CDPATH.
43860$as_unset CDPATH
43861
43862exec 6>&1
43863
43864# Open the log real soon, to keep \$[0] and so on meaningful, and to
43865# report actual input values of CONFIG_FILES etc. instead of their
43866# values after options handling. Logging --version etc. is OK.
43867exec 5>>config.log
43868{
43869 echo
43870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43871## Running $as_me. ##
43872_ASBOX
43873} >&5
43874cat >&5 <<_CSEOF
43875
81f90336 43876This file was extended by wxWidgets $as_me 2.5.4, which was
ac1cb8d3 43877generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43878
43879 CONFIG_FILES = $CONFIG_FILES
43880 CONFIG_HEADERS = $CONFIG_HEADERS
43881 CONFIG_LINKS = $CONFIG_LINKS
43882 CONFIG_COMMANDS = $CONFIG_COMMANDS
43883 $ $0 $@
43884
43885_CSEOF
43886echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43887echo >&5
43888_ACEOF
43889
43890# Files that config.status was made for.
43891if test -n "$ac_config_files"; then
43892 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43893fi
43894
43895if test -n "$ac_config_headers"; then
43896 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43897fi
43898
43899if test -n "$ac_config_links"; then
43900 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43901fi
43902
43903if test -n "$ac_config_commands"; then
43904 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43905fi
43906
43907cat >>$CONFIG_STATUS <<\_ACEOF
43908
43909ac_cs_usage="\
43910\`$as_me' instantiates files from templates according to the
43911current configuration.
43912
43913Usage: $0 [OPTIONS] [FILE]...
43914
43915 -h, --help print this help, then exit
43916 -V, --version print version number, then exit
43917 -q, --quiet do not print progress messages
43918 -d, --debug don't remove temporary files
43919 --recheck update $as_me by reconfiguring in the same conditions
43920 --file=FILE[:TEMPLATE]
ac1cb8d3 43921 instantiate the configuration file FILE
a848cd7e 43922 --header=FILE[:TEMPLATE]
ac1cb8d3 43923 instantiate the configuration header FILE
a848cd7e
SC
43924
43925Configuration files:
43926$config_files
43927
43928Configuration headers:
43929$config_headers
43930
43931Configuration commands:
43932$config_commands
43933
43934Report bugs to <bug-autoconf@gnu.org>."
43935_ACEOF
43936
43937cat >>$CONFIG_STATUS <<_ACEOF
43938ac_cs_version="\\
81f90336 43939wxWidgets config.status 2.5.4
ac1cb8d3 43940configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43941 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43942
ac1cb8d3 43943Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43944This config.status script is free software; the Free Software Foundation
43945gives unlimited permission to copy, distribute and modify it."
43946srcdir=$srcdir
43947INSTALL="$INSTALL"
43948_ACEOF
43949
43950cat >>$CONFIG_STATUS <<\_ACEOF
43951# If no file are specified by the user, then we need to provide default
43952# value. By we need to know if files were specified by the user.
43953ac_need_defaults=:
43954while test $# != 0
43955do
43956 case $1 in
43957 --*=*)
43958 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43959 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43960 ac_shift=:
43961 ;;
43962 -*)
43963 ac_option=$1
43964 ac_optarg=$2
43965 ac_shift=shift
43966 ;;
43967 *) # This is not an option, so the user has probably given explicit
43968 # arguments.
43969 ac_option=$1
43970 ac_need_defaults=false;;
43971 esac
43972
43973 case $ac_option in
43974 # Handling of the options.
43975_ACEOF
43976cat >>$CONFIG_STATUS <<\_ACEOF
43977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43978 ac_cs_recheck=: ;;
43979 --version | --vers* | -V )
43980 echo "$ac_cs_version"; exit 0 ;;
43981 --he | --h)
43982 # Conflict between --help and --header
43983 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43984Try \`$0 --help' for more information." >&5
43985echo "$as_me: error: ambiguous option: $1
43986Try \`$0 --help' for more information." >&2;}
43987 { (exit 1); exit 1; }; };;
43988 --help | --hel | -h )
43989 echo "$ac_cs_usage"; exit 0 ;;
43990 --debug | --d* | -d )
43991 debug=: ;;
43992 --file | --fil | --fi | --f )
43993 $ac_shift
43994 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43995 ac_need_defaults=false;;
43996 --header | --heade | --head | --hea )
43997 $ac_shift
43998 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43999 ac_need_defaults=false;;
44000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44002 ac_cs_silent=: ;;
44003
44004 # This is an error.
44005 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44006Try \`$0 --help' for more information." >&5
44007echo "$as_me: error: unrecognized option: $1
44008Try \`$0 --help' for more information." >&2;}
44009 { (exit 1); exit 1; }; } ;;
44010
44011 *) ac_config_targets="$ac_config_targets $1" ;;
44012
44013 esac
44014 shift
44015done
44016
44017ac_configure_extra_args=
44018
44019if $ac_cs_silent; then
44020 exec 6>/dev/null
44021 ac_configure_extra_args="$ac_configure_extra_args --silent"
44022fi
44023
44024_ACEOF
44025cat >>$CONFIG_STATUS <<_ACEOF
44026if \$ac_cs_recheck; then
44027 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44028 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44029fi
44030
44031_ACEOF
44032
44033cat >>$CONFIG_STATUS <<_ACEOF
44034#
44035# INIT-COMMANDS section.
44036#
44037
ceec2216
RL
44038 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44039 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44040 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44041 LN_S="${LN_S}"
a848cd7e
SC
44042
44043
44044_ACEOF
44045
44046
44047
44048cat >>$CONFIG_STATUS <<\_ACEOF
44049for ac_config_target in $ac_config_targets
44050do
44051 case "$ac_config_target" in
44052 # Handling of arguments.
ceec2216
RL
44053 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44054 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44055 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44056 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44057 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44058 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44059 "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
44060 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44061echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44062 { (exit 1); exit 1; }; };;
44063 esac
44064done
44065
44066# If the user did not use the arguments to specify the items to instantiate,
44067# then the envvar interface is used. Set only those that are not.
44068# We use the long form for the default assignment because of an extremely
44069# bizarre bug on SunOS 4.1.3.
44070if $ac_need_defaults; then
44071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44074fi
44075
44076# Have a temporary directory for convenience. Make it in the build tree
44077# simply because there is no reason to put it here, and in addition,
44078# creating and moving files from /tmp can sometimes cause problems.
44079# Create a temporary directory, and hook for its removal unless debugging.
44080$debug ||
44081{
44082 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44083 trap '{ (exit 1); exit 1; }' 1 2 13 15
44084}
44085
44086# Create a (secure) tmp directory for tmp files.
44087
44088{
44089 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44090 test -n "$tmp" && test -d "$tmp"
44091} ||
44092{
44093 tmp=./confstat$$-$RANDOM
44094 (umask 077 && mkdir $tmp)
44095} ||
44096{
44097 echo "$me: cannot create a temporary directory in ." >&2
44098 { (exit 1); exit 1; }
44099}
44100
44101_ACEOF
44102
44103cat >>$CONFIG_STATUS <<_ACEOF
44104
44105#
44106# CONFIG_FILES section.
44107#
44108
44109# No need to generate the scripts if there are no CONFIG_FILES.
44110# This happens for instance when ./config.status config.h
44111if test -n "\$CONFIG_FILES"; then
44112 # Protect against being on the right side of a sed subst in config.status.
44113 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44114 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44115s,@SHELL@,$SHELL,;t t
44116s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44117s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44118s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44119s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44120s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44121s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44122s,@exec_prefix@,$exec_prefix,;t t
44123s,@prefix@,$prefix,;t t
44124s,@program_transform_name@,$program_transform_name,;t t
44125s,@bindir@,$bindir,;t t
44126s,@sbindir@,$sbindir,;t t
44127s,@libexecdir@,$libexecdir,;t t
44128s,@datadir@,$datadir,;t t
44129s,@sysconfdir@,$sysconfdir,;t t
44130s,@sharedstatedir@,$sharedstatedir,;t t
44131s,@localstatedir@,$localstatedir,;t t
44132s,@libdir@,$libdir,;t t
44133s,@includedir@,$includedir,;t t
44134s,@oldincludedir@,$oldincludedir,;t t
44135s,@infodir@,$infodir,;t t
44136s,@mandir@,$mandir,;t t
44137s,@build_alias@,$build_alias,;t t
44138s,@host_alias@,$host_alias,;t t
44139s,@target_alias@,$target_alias,;t t
44140s,@DEFS@,$DEFS,;t t
44141s,@ECHO_C@,$ECHO_C,;t t
44142s,@ECHO_N@,$ECHO_N,;t t
44143s,@ECHO_T@,$ECHO_T,;t t
44144s,@LIBS@,$LIBS,;t t
44145s,@build@,$build,;t t
44146s,@build_cpu@,$build_cpu,;t t
44147s,@build_vendor@,$build_vendor,;t t
44148s,@build_os@,$build_os,;t t
44149s,@host@,$host,;t t
44150s,@host_cpu@,$host_cpu,;t t
44151s,@host_vendor@,$host_vendor,;t t
44152s,@host_os@,$host_os,;t t
44153s,@target@,$target,;t t
44154s,@target_cpu@,$target_cpu,;t t
44155s,@target_vendor@,$target_vendor,;t t
44156s,@target_os@,$target_os,;t t
44157s,@CC@,$CC,;t t
44158s,@CFLAGS@,$CFLAGS,;t t
44159s,@LDFLAGS@,$LDFLAGS,;t t
44160s,@CPPFLAGS@,$CPPFLAGS,;t t
44161s,@ac_ct_CC@,$ac_ct_CC,;t t
44162s,@EXEEXT@,$EXEEXT,;t t
44163s,@OBJEXT@,$OBJEXT,;t t
44164s,@CPP@,$CPP,;t t
44165s,@EGREP@,$EGREP,;t t
44166s,@CXX@,$CXX,;t t
44167s,@CXXFLAGS@,$CXXFLAGS,;t t
44168s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44169s,@RANLIB@,$RANLIB,;t t
44170s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44171s,@AR@,$AR,;t t
44172s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44173s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44174s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44175s,@STRIP@,$STRIP,;t t
44176s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44177s,@LN_S@,$LN_S,;t t
44178s,@CXXCPP@,$CXXCPP,;t t
44179s,@subdirs@,$subdirs,;t t
44180s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44181s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44182s,@GTK_LIBS@,$GTK_LIBS,;t t
44183s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44184s,@X_CFLAGS@,$X_CFLAGS,;t t
44185s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44186s,@X_LIBS@,$X_LIBS,;t t
44187s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44188s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44189s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44190s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44191s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44192s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44193s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44194s,@RESCOMP@,$RESCOMP,;t t
44195s,@DEREZ@,$DEREZ,;t t
44196s,@SETFILE@,$SETFILE,;t t
44197s,@LIBICONV@,$LIBICONV,;t t
44198s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44199s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44200s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44201s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44202s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44203s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44204s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44205s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44206s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44207s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44208s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44209s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44210s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44211s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44212s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44213s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44214s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44215s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44216s,@VENDOR@,$VENDOR,;t t
44217s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44218s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44219s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44220s,@WXUNIV@,$WXUNIV,;t t
44221s,@MONOLITHIC@,$MONOLITHIC,;t t
44222s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44223s,@EXTRALIBS@,$EXTRALIBS,;t t
44224s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44225s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44226s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44227s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44228s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44229s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44230s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44231s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44232s,@UNICODE@,$UNICODE,;t t
44233s,@BUILD@,$BUILD,;t t
44234s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44235s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44236s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44237s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44238s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44239s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44240s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44241s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44242s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44243s,@SET_MAKE@,$SET_MAKE,;t t
44244s,@MAKE_SET@,$MAKE_SET,;t t
44245s,@ac_ct_AR@,$ac_ct_AR,;t t
44246s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44247s,@NM@,$NM,;t t
44248s,@ac_ct_NM@,$ac_ct_NM,;t t
44249s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44250s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44251s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44252s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44253s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44254s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44255s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44256s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44257s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44258s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44259s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44260s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44261s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44262s,@LIBPREFIX@,$LIBPREFIX,;t t
44263s,@LIBEXT@,$LIBEXT,;t t
44264s,@DLLPREFIX@,$DLLPREFIX,;t t
44265s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44266s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44267s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44268s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44269s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44270s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44271s,@PIC_FLAG@,$PIC_FLAG,;t t
44272s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44273s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44274s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44275s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44276s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44277s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44278s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44279s,@GCC_PCH@,$GCC_PCH,;t t
44280s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44281s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44282s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44283s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44284s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44285s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44286s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44287s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44288s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44289s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44290s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44291s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44292s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44293s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44294s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44295s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44296s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44297s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44298s,@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 44299s,@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 44300s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44301s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44302s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44303s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44304s,@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 44305s,@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 44306s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44307s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44308s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44309s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44310s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44311s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44312s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44313s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44314s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44315s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44316s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44317s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44318s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44319s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44320s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44321s,@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
44322s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44323s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44324s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44325s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44326s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44327s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44328s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44329s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44330s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44331s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44332s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44333s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44334s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44335s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44336s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44337s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44338s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44339s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44340s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44341s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44342s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44343s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44344s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44345s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44346s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44347s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44348s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44349s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44350s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44351s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44352s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44353s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44354s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44355s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44356s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44357s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44358s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44359s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44360s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44361s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44362s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44363s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44364s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44365s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44366s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44367s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44368s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44369s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44370s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44371s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44372s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44373s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44374s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44375s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44376s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44377s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44378s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44379s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44380s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44381s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44382s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44383s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44384s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44385s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44386s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
44387s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
44388s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44389s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44390s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44391s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 44392s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44393s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44394s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44395s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44396s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44397s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44398s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44399s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44400s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44401s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44402s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44403s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44404s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44405s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44406s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44407s,@USE_GUI@,$USE_GUI,;t t
44408s,@AFMINSTALL@,$AFMINSTALL,;t t
44409s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44410s,@TOOLKIT@,$TOOLKIT,;t t
44411s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44412s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44413s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44414s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44415s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44416s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44417s,@WIDGET_SET@,$WIDGET_SET,;t t
44418s,@WX_RELEASE@,$WX_RELEASE,;t t
44419s,@WX_VERSION@,$WX_VERSION,;t t
44420s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44421s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44422s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44423s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44424s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44425s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44426s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44427s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44428s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44429s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44430s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44431s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44432s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44433s,@DISTDIR@,$DISTDIR,;t t
44434s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44435s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44436s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44437s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44438s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44439s,@RESFLAGS@,$RESFLAGS,;t t
44440s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44441s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44442s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44443s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44444s,@MACRESCOMP@,$MACRESCOMP,;t t
44445s,@MACSETFILE@,$MACSETFILE,;t t
44446s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44447s,@GCC@,$GCC,;t t
a848cd7e 44448s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44449s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44450s,@LIBOBJS@,$LIBOBJS,;t t
44451s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44452CEOF
44453
44454_ACEOF
44455
44456 cat >>$CONFIG_STATUS <<\_ACEOF
44457 # Split the substitutions into bite-sized pieces for seds with
44458 # small command number limits, like on Digital OSF/1 and HP-UX.
44459 ac_max_sed_lines=48
44460 ac_sed_frag=1 # Number of current file.
44461 ac_beg=1 # First line for current file.
44462 ac_end=$ac_max_sed_lines # Line after last line for current file.
44463 ac_more_lines=:
44464 ac_sed_cmds=
44465 while $ac_more_lines; do
44466 if test $ac_beg -gt 1; then
44467 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44468 else
44469 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44470 fi
44471 if test ! -s $tmp/subs.frag; then
44472 ac_more_lines=false
44473 else
44474 # The purpose of the label and of the branching condition is to
44475 # speed up the sed processing (if there are no `@' at all, there
44476 # is no need to browse any of the substitutions).
44477 # These are the two extra sed commands mentioned above.
44478 (echo ':t
44479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44480 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44481 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44482 else
ac1cb8d3 44483 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44484 fi
44485 ac_sed_frag=`expr $ac_sed_frag + 1`
44486 ac_beg=$ac_end
44487 ac_end=`expr $ac_end + $ac_max_sed_lines`
44488 fi
44489 done
44490 if test -z "$ac_sed_cmds"; then
44491 ac_sed_cmds=cat
44492 fi
44493fi # test -n "$CONFIG_FILES"
44494
44495_ACEOF
44496cat >>$CONFIG_STATUS <<\_ACEOF
44497for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44499 case $ac_file in
44500 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44501 cat >$tmp/stdin
44502 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44504 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44505 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44506 * ) ac_file_in=$ac_file.in ;;
44507 esac
44508
44509 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44510 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44511$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44512 X"$ac_file" : 'X\(//\)[^/]' \| \
44513 X"$ac_file" : 'X\(//\)$' \| \
44514 X"$ac_file" : 'X\(/\)' \| \
44515 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44516echo X"$ac_file" |
44517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44519 /^X\(\/\/\)$/{ s//\1/; q; }
44520 /^X\(\/\).*/{ s//\1/; q; }
44521 s/.*/./; q'`
44522 { if $as_mkdir_p; then
44523 mkdir -p "$ac_dir"
44524 else
44525 as_dir="$ac_dir"
44526 as_dirs=
44527 while test ! -d "$as_dir"; do
44528 as_dirs="$as_dir $as_dirs"
44529 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44530$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44531 X"$as_dir" : 'X\(//\)[^/]' \| \
44532 X"$as_dir" : 'X\(//\)$' \| \
44533 X"$as_dir" : 'X\(/\)' \| \
44534 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44535echo X"$as_dir" |
44536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44538 /^X\(\/\/\)$/{ s//\1/; q; }
44539 /^X\(\/\).*/{ s//\1/; q; }
44540 s/.*/./; q'`
44541 done
44542 test ! -n "$as_dirs" || mkdir $as_dirs
44543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44544echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44545 { (exit 1); exit 1; }; }; }
44546
44547 ac_builddir=.
44548
44549if test "$ac_dir" != .; then
44550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44551 # A "../" for each directory in $ac_dir_suffix.
44552 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44553else
44554 ac_dir_suffix= ac_top_builddir=
44555fi
44556
44557case $srcdir in
44558 .) # No --srcdir option. We are building in place.
44559 ac_srcdir=.
44560 if test -z "$ac_top_builddir"; then
44561 ac_top_srcdir=.
44562 else
44563 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44564 fi ;;
44565 [\\/]* | ?:[\\/]* ) # Absolute path.
44566 ac_srcdir=$srcdir$ac_dir_suffix;
44567 ac_top_srcdir=$srcdir ;;
44568 *) # Relative path.
44569 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44570 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44571esac
ac1cb8d3
VS
44572
44573# Do not use `cd foo && pwd` to compute absolute paths, because
44574# the directories may not exist.
44575case `pwd` in
44576.) ac_abs_builddir="$ac_dir";;
44577*)
44578 case "$ac_dir" in
44579 .) ac_abs_builddir=`pwd`;;
44580 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44581 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44582 esac;;
44583esac
44584case $ac_abs_builddir in
44585.) ac_abs_top_builddir=${ac_top_builddir}.;;
44586*)
44587 case ${ac_top_builddir}. in
44588 .) ac_abs_top_builddir=$ac_abs_builddir;;
44589 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44590 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44591 esac;;
44592esac
44593case $ac_abs_builddir in
44594.) ac_abs_srcdir=$ac_srcdir;;
44595*)
44596 case $ac_srcdir in
44597 .) ac_abs_srcdir=$ac_abs_builddir;;
44598 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44599 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44600 esac;;
44601esac
44602case $ac_abs_builddir in
44603.) ac_abs_top_srcdir=$ac_top_srcdir;;
44604*)
44605 case $ac_top_srcdir in
44606 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44607 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44608 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44609 esac;;
44610esac
a848cd7e
SC
44611
44612
44613 case $INSTALL in
44614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44615 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44616 esac
44617
89be85c2
VS
44618 if test x"$ac_file" != x-; then
44619 { echo "$as_me:$LINENO: creating $ac_file" >&5
44620echo "$as_me: creating $ac_file" >&6;}
44621 rm -f "$ac_file"
44622 fi
a848cd7e
SC
44623 # Let's still pretend it is `configure' which instantiates (i.e., don't
44624 # use $as_me), people would be surprised to read:
44625 # /* config.h. Generated by config.status. */
44626 if test x"$ac_file" = x-; then
44627 configure_input=
44628 else
44629 configure_input="$ac_file. "
44630 fi
44631 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44632 sed 's,.*/,,'` by configure."
a848cd7e
SC
44633
44634 # First look for the input files in the build tree, otherwise in the
44635 # src tree.
44636 ac_file_inputs=`IFS=:
44637 for f in $ac_file_in; do
44638 case $f in
44639 -) echo $tmp/stdin ;;
44640 [\\/$]*)
ac1cb8d3
VS
44641 # Absolute (can't be DOS-style, as IFS=:)
44642 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44643echo "$as_me: error: cannot find input file: $f" >&2;}
44644 { (exit 1); exit 1; }; }
ac1cb8d3 44645 echo "$f";;
a848cd7e 44646 *) # Relative
ac1cb8d3
VS
44647 if test -f "$f"; then
44648 # Build tree
44649 echo "$f"
44650 elif test -f "$srcdir/$f"; then
44651 # Source tree
44652 echo "$srcdir/$f"
44653 else
44654 # /dev/null tree
44655 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44656echo "$as_me: error: cannot find input file: $f" >&2;}
44657 { (exit 1); exit 1; }; }
ac1cb8d3 44658 fi;;
a848cd7e
SC
44659 esac
44660 done` || { (exit 1); exit 1; }
44661_ACEOF
44662cat >>$CONFIG_STATUS <<_ACEOF
44663 sed "$ac_vpsub
44664$extrasub
44665_ACEOF
44666cat >>$CONFIG_STATUS <<\_ACEOF
44667:t
44668/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44669s,@configure_input@,$configure_input,;t t
44670s,@srcdir@,$ac_srcdir,;t t
44671s,@abs_srcdir@,$ac_abs_srcdir,;t t
44672s,@top_srcdir@,$ac_top_srcdir,;t t
44673s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44674s,@builddir@,$ac_builddir,;t t
44675s,@abs_builddir@,$ac_abs_builddir,;t t
44676s,@top_builddir@,$ac_top_builddir,;t t
44677s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44678s,@INSTALL@,$ac_INSTALL,;t t
44679" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44680 rm -f $tmp/stdin
44681 if test x"$ac_file" != x-; then
44682 mv $tmp/out $ac_file
44683 else
44684 cat $tmp/out
44685 rm -f $tmp/out
44686 fi
44687
ceec2216
RL
44688 # Run the commands associated with the file.
44689 case $ac_file in
44690 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44691 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44692 esac
a848cd7e
SC
44693done
44694_ACEOF
44695cat >>$CONFIG_STATUS <<\_ACEOF
44696
44697#
44698# CONFIG_HEADER section.
44699#
44700
44701# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44702# NAME is the cpp macro being defined and VALUE is the value it is being given.
44703#
44704# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44705ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44706ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44707ac_dC=' '
44708ac_dD=',;t'
44709# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44710ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44711ac_uB='$,\1#\2define\3'
44712ac_uC=' '
44713ac_uD=',;t'
44714
44715for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44717 case $ac_file in
44718 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44719 cat >$tmp/stdin
44720 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44721 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44722 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44724 * ) ac_file_in=$ac_file.in ;;
44725 esac
44726
44727 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44728echo "$as_me: creating $ac_file" >&6;}
44729
44730 # First look for the input files in the build tree, otherwise in the
44731 # src tree.
44732 ac_file_inputs=`IFS=:
44733 for f in $ac_file_in; do
44734 case $f in
44735 -) echo $tmp/stdin ;;
44736 [\\/$]*)
ac1cb8d3
VS
44737 # Absolute (can't be DOS-style, as IFS=:)
44738 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44739echo "$as_me: error: cannot find input file: $f" >&2;}
44740 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44741 # Do quote $f, to prevent DOS paths from being IFS'd.
44742 echo "$f";;
a848cd7e 44743 *) # Relative
ac1cb8d3
VS
44744 if test -f "$f"; then
44745 # Build tree
44746 echo "$f"
44747 elif test -f "$srcdir/$f"; then
44748 # Source tree
44749 echo "$srcdir/$f"
44750 else
44751 # /dev/null tree
44752 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44753echo "$as_me: error: cannot find input file: $f" >&2;}
44754 { (exit 1); exit 1; }; }
ac1cb8d3 44755 fi;;
a848cd7e
SC
44756 esac
44757 done` || { (exit 1); exit 1; }
44758 # Remove the trailing spaces.
ac1cb8d3 44759 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44760
44761_ACEOF
44762
44763# Transform confdefs.h into two sed scripts, `conftest.defines' and
44764# `conftest.undefs', that substitutes the proper values into
44765# config.h.in to produce config.h. The first handles `#define'
44766# templates, and the second `#undef' templates.
44767# And first: Protect against being on the right side of a sed subst in
44768# config.status. Protect against being in an unquoted here document
44769# in config.status.
44770rm -f conftest.defines conftest.undefs
44771# Using a here document instead of a string reduces the quoting nightmare.
44772# Putting comments in sed scripts is not portable.
44773#
44774# `end' is used to avoid that the second main sed command (meant for
44775# 0-ary CPP macros) applies to n-ary macro definitions.
44776# See the Autoconf documentation for `clear'.
44777cat >confdef2sed.sed <<\_ACEOF
44778s/[\\&,]/\\&/g
44779s,[\\$`],\\&,g
44780t clear
44781: clear
ac1cb8d3 44782s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44783t end
ac1cb8d3 44784s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44785: end
44786_ACEOF
44787# If some macros were called several times there might be several times
44788# the same #defines, which is useless. Nevertheless, we may not want to
44789# sort them, since we want the *last* AC-DEFINE to be honored.
44790uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44791sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44792rm -f confdef2sed.sed
44793
44794# This sed command replaces #undef with comments. This is necessary, for
44795# example, in the case of _POSIX_SOURCE, which is predefined and required
44796# on some systems where configure will not decide to define it.
44797cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44798s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44799_ACEOF
44800
44801# Break up conftest.defines because some shells have a limit on the size
44802# of here documents, and old seds have small limits too (100 cmds).
44803echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44804echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44805echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44806echo ' :' >>$CONFIG_STATUS
44807rm -f conftest.tail
44808while grep . conftest.defines >/dev/null
44809do
44810 # Write a limited-size here document to $tmp/defines.sed.
44811 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44812 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44813 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44814 # Work around the forget-to-reset-the-flag bug.
44815 echo 't clr' >>$CONFIG_STATUS
44816 echo ': clr' >>$CONFIG_STATUS
44817 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44818 echo 'CEOF
44819 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44820 rm -f $tmp/in
44821 mv $tmp/out $tmp/in
44822' >>$CONFIG_STATUS
44823 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44824 rm -f conftest.defines
44825 mv conftest.tail conftest.defines
44826done
44827rm -f conftest.defines
44828echo ' fi # grep' >>$CONFIG_STATUS
44829echo >>$CONFIG_STATUS
44830
44831# Break up conftest.undefs because some shells have a limit on the size
44832# of here documents, and old seds have small limits too (100 cmds).
44833echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44834rm -f conftest.tail
44835while grep . conftest.undefs >/dev/null
44836do
44837 # Write a limited-size here document to $tmp/undefs.sed.
44838 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44839 # Speed up: don't consider the non `#undef'
ac1cb8d3 44840 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44841 # Work around the forget-to-reset-the-flag bug.
44842 echo 't clr' >>$CONFIG_STATUS
44843 echo ': clr' >>$CONFIG_STATUS
44844 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44845 echo 'CEOF
44846 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44847 rm -f $tmp/in
44848 mv $tmp/out $tmp/in
44849' >>$CONFIG_STATUS
44850 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44851 rm -f conftest.undefs
44852 mv conftest.tail conftest.undefs
44853done
44854rm -f conftest.undefs
44855
44856cat >>$CONFIG_STATUS <<\_ACEOF
44857 # Let's still pretend it is `configure' which instantiates (i.e., don't
44858 # use $as_me), people would be surprised to read:
44859 # /* config.h. Generated by config.status. */
44860 if test x"$ac_file" = x-; then
44861 echo "/* Generated by configure. */" >$tmp/config.h
44862 else
44863 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44864 fi
44865 cat $tmp/in >>$tmp/config.h
44866 rm -f $tmp/in
44867 if test x"$ac_file" != x-; then
44868 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44869 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44870echo "$as_me: $ac_file is unchanged" >&6;}
44871 else
44872 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44873$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44874 X"$ac_file" : 'X\(//\)[^/]' \| \
44875 X"$ac_file" : 'X\(//\)$' \| \
44876 X"$ac_file" : 'X\(/\)' \| \
44877 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44878echo X"$ac_file" |
44879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44881 /^X\(\/\/\)$/{ s//\1/; q; }
44882 /^X\(\/\).*/{ s//\1/; q; }
44883 s/.*/./; q'`
44884 { if $as_mkdir_p; then
44885 mkdir -p "$ac_dir"
44886 else
44887 as_dir="$ac_dir"
44888 as_dirs=
44889 while test ! -d "$as_dir"; do
44890 as_dirs="$as_dir $as_dirs"
44891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44893 X"$as_dir" : 'X\(//\)[^/]' \| \
44894 X"$as_dir" : 'X\(//\)$' \| \
44895 X"$as_dir" : 'X\(/\)' \| \
44896 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44897echo X"$as_dir" |
44898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44900 /^X\(\/\/\)$/{ s//\1/; q; }
44901 /^X\(\/\).*/{ s//\1/; q; }
44902 s/.*/./; q'`
44903 done
44904 test ! -n "$as_dirs" || mkdir $as_dirs
44905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44906echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44907 { (exit 1); exit 1; }; }; }
44908
44909 rm -f $ac_file
44910 mv $tmp/config.h $ac_file
44911 fi
44912 else
44913 cat $tmp/config.h
44914 rm -f $tmp/config.h
44915 fi
44916done
44917_ACEOF
44918cat >>$CONFIG_STATUS <<\_ACEOF
44919
44920#
44921# CONFIG_COMMANDS section.
44922#
44923for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44924 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44925 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44926 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44927$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44928 X"$ac_dest" : 'X\(//\)[^/]' \| \
44929 X"$ac_dest" : 'X\(//\)$' \| \
44930 X"$ac_dest" : 'X\(/\)' \| \
44931 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44932echo X"$ac_dest" |
44933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44935 /^X\(\/\/\)$/{ s//\1/; q; }
44936 /^X\(\/\).*/{ s//\1/; q; }
44937 s/.*/./; q'`
ac1cb8d3
VS
44938 { if $as_mkdir_p; then
44939 mkdir -p "$ac_dir"
44940 else
44941 as_dir="$ac_dir"
44942 as_dirs=
44943 while test ! -d "$as_dir"; do
44944 as_dirs="$as_dir $as_dirs"
44945 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44947 X"$as_dir" : 'X\(//\)[^/]' \| \
44948 X"$as_dir" : 'X\(//\)$' \| \
44949 X"$as_dir" : 'X\(/\)' \| \
44950 . : '\(.\)' 2>/dev/null ||
44951echo X"$as_dir" |
44952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44954 /^X\(\/\/\)$/{ s//\1/; q; }
44955 /^X\(\/\).*/{ s//\1/; q; }
44956 s/.*/./; q'`
44957 done
44958 test ! -n "$as_dirs" || mkdir $as_dirs
44959 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44960echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44961 { (exit 1); exit 1; }; }; }
44962
a848cd7e
SC
44963 ac_builddir=.
44964
44965if test "$ac_dir" != .; then
44966 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44967 # A "../" for each directory in $ac_dir_suffix.
44968 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44969else
44970 ac_dir_suffix= ac_top_builddir=
44971fi
44972
44973case $srcdir in
44974 .) # No --srcdir option. We are building in place.
44975 ac_srcdir=.
44976 if test -z "$ac_top_builddir"; then
44977 ac_top_srcdir=.
44978 else
44979 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44980 fi ;;
44981 [\\/]* | ?:[\\/]* ) # Absolute path.
44982 ac_srcdir=$srcdir$ac_dir_suffix;
44983 ac_top_srcdir=$srcdir ;;
44984 *) # Relative path.
44985 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44986 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44987esac
ac1cb8d3
VS
44988
44989# Do not use `cd foo && pwd` to compute absolute paths, because
44990# the directories may not exist.
44991case `pwd` in
44992.) ac_abs_builddir="$ac_dir";;
44993*)
44994 case "$ac_dir" in
44995 .) ac_abs_builddir=`pwd`;;
44996 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44997 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44998 esac;;
44999esac
45000case $ac_abs_builddir in
45001.) ac_abs_top_builddir=${ac_top_builddir}.;;
45002*)
45003 case ${ac_top_builddir}. in
45004 .) ac_abs_top_builddir=$ac_abs_builddir;;
45005 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45006 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45007 esac;;
45008esac
45009case $ac_abs_builddir in
45010.) ac_abs_srcdir=$ac_srcdir;;
45011*)
45012 case $ac_srcdir in
45013 .) ac_abs_srcdir=$ac_abs_builddir;;
45014 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45015 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45016 esac;;
45017esac
45018case $ac_abs_builddir in
45019.) ac_abs_top_srcdir=$ac_top_srcdir;;
45020*)
45021 case $ac_top_srcdir in
45022 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45023 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45024 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45025 esac;;
45026esac
a848cd7e
SC
45027
45028
45029 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45030echo "$as_me: executing $ac_dest commands" >&6;}
45031 case $ac_dest in
ceec2216
RL
45032 wx-config ) rm -f wx-config
45033 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45034 ;;
a848cd7e
SC
45035 esac
45036done
45037_ACEOF
45038
45039cat >>$CONFIG_STATUS <<\_ACEOF
45040
45041{ (exit 0); exit 0; }
45042_ACEOF
45043chmod +x $CONFIG_STATUS
45044ac_clean_files=$ac_clean_files_save
45045
45046
45047# configure is writing to config.log, and then calls config.status.
45048# config.status does its own redirection, appending to config.log.
45049# Unfortunately, on DOS this fails, as config.log is still kept open
45050# by configure, so config.status won't be able to write to it; its
45051# output is simply discarded. So we exec the FD to /dev/null,
45052# effectively closing config.log, so it can be properly (re)opened and
45053# appended to by config.status. When coming back to configure, we
45054# need to make the FD available again.
45055if test "$no_create" != yes; then
45056 ac_cs_success=:
45057 ac_config_status_args=
45058 test "$silent" = yes &&
45059 ac_config_status_args="$ac_config_status_args --quiet"
45060 exec 5>/dev/null
45061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45062 exec 5>>config.log
45063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45064 # would make configure fail if this is the last instruction.
45065 $ac_cs_success || { (exit 1); exit 1; }
45066fi
45067
45068#
45069# CONFIG_SUBDIRS section.
45070#
45071if test "$no_recursion" != yes; then
45072
45073 # Remove --cache-file and --srcdir arguments so they do not pile up.
45074 ac_sub_configure_args=
45075 ac_prev=
45076 for ac_arg in $ac_configure_args; do
45077 if test -n "$ac_prev"; then
45078 ac_prev=
45079 continue
45080 fi
45081 case $ac_arg in
45082 -cache-file | --cache-file | --cache-fil | --cache-fi \
45083 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45084 ac_prev=cache_file ;;
45085 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45086 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45087 | --c=*)
45088 ;;
45089 --config-cache | -C)
45090 ;;
45091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45092 ac_prev=srcdir ;;
45093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45094 ;;
45095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45096 ac_prev=prefix ;;
45097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45098 ;;
45099 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45100 esac
45101 done
45102
45103 # Always prepend --prefix to ensure using the same prefix
45104 # in subdir configurations.
45105 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45106
45107 ac_popdir=`pwd`
45108 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45109
45110 # Do not complain, so a configure script can configure whichever
45111 # parts of a large source tree are present.
45112 test -d $srcdir/$ac_dir || continue
45113
45114 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45115echo "$as_me: configuring in $ac_dir" >&6;}
45116 { if $as_mkdir_p; then
45117 mkdir -p "$ac_dir"
45118 else
45119 as_dir="$ac_dir"
45120 as_dirs=
45121 while test ! -d "$as_dir"; do
45122 as_dirs="$as_dir $as_dirs"
45123 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45124$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45125 X"$as_dir" : 'X\(//\)[^/]' \| \
45126 X"$as_dir" : 'X\(//\)$' \| \
45127 X"$as_dir" : 'X\(/\)' \| \
45128 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45129echo X"$as_dir" |
45130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45132 /^X\(\/\/\)$/{ s//\1/; q; }
45133 /^X\(\/\).*/{ s//\1/; q; }
45134 s/.*/./; q'`
45135 done
45136 test ! -n "$as_dirs" || mkdir $as_dirs
45137 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45138echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45139 { (exit 1); exit 1; }; }; }
45140
45141 ac_builddir=.
45142
45143if test "$ac_dir" != .; then
45144 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45145 # A "../" for each directory in $ac_dir_suffix.
45146 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45147else
45148 ac_dir_suffix= ac_top_builddir=
45149fi
45150
45151case $srcdir in
45152 .) # No --srcdir option. We are building in place.
45153 ac_srcdir=.
45154 if test -z "$ac_top_builddir"; then
45155 ac_top_srcdir=.
45156 else
45157 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45158 fi ;;
45159 [\\/]* | ?:[\\/]* ) # Absolute path.
45160 ac_srcdir=$srcdir$ac_dir_suffix;
45161 ac_top_srcdir=$srcdir ;;
45162 *) # Relative path.
45163 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45164 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45165esac
ac1cb8d3
VS
45166
45167# Do not use `cd foo && pwd` to compute absolute paths, because
45168# the directories may not exist.
45169case `pwd` in
45170.) ac_abs_builddir="$ac_dir";;
45171*)
45172 case "$ac_dir" in
45173 .) ac_abs_builddir=`pwd`;;
45174 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45175 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45176 esac;;
45177esac
45178case $ac_abs_builddir in
45179.) ac_abs_top_builddir=${ac_top_builddir}.;;
45180*)
45181 case ${ac_top_builddir}. in
45182 .) ac_abs_top_builddir=$ac_abs_builddir;;
45183 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45184 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45185 esac;;
45186esac
45187case $ac_abs_builddir in
45188.) ac_abs_srcdir=$ac_srcdir;;
45189*)
45190 case $ac_srcdir in
45191 .) ac_abs_srcdir=$ac_abs_builddir;;
45192 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45193 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45194 esac;;
45195esac
45196case $ac_abs_builddir in
45197.) ac_abs_top_srcdir=$ac_top_srcdir;;
45198*)
45199 case $ac_top_srcdir in
45200 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45201 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45202 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45203 esac;;
45204esac
a848cd7e
SC
45205
45206
45207 cd $ac_dir
45208
45209 # Check for guested configure; otherwise get Cygnus style configure.
45210 if test -f $ac_srcdir/configure.gnu; then
45211 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45212 elif test -f $ac_srcdir/configure; then
45213 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45214 elif test -f $ac_srcdir/configure.in; then
45215 ac_sub_configure=$ac_configure
45216 else
45217 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45218echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45219 ac_sub_configure=
45220 fi
45221
45222 # The recursion is here.
45223 if test -n "$ac_sub_configure"; then
45224 # Make the cache file name correct relative to the subdirectory.
45225 case $cache_file in
45226 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45227 *) # Relative path.
ac1cb8d3 45228 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45229 esac
45230
45231 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45232echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45233 # The eval makes quoting arguments work.
45234 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45235 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45236 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45237echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45238 { (exit 1); exit 1; }; }
45239 fi
45240
89be85c2 45241 cd $ac_popdir
a848cd7e
SC
45242 done
45243fi
45244
45245
45246echo
77ffb593 45247echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45248echo ""
4d4ff94c 45249echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45250echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45251
77ffb593
JS
45252echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45253echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45254echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45255
77ffb593
JS
45256echo " What level of wxWidgets compatibility should be enabled?"
45257echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45258echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45259
77ffb593 45260echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45261echo " jpeg ${wxUSE_LIBJPEG-none}"
45262echo " png ${wxUSE_LIBPNG-none}"
45263echo " regex ${wxUSE_REGEX}"
45264echo " tiff ${wxUSE_LIBTIFF-none}"
45265if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45266echo " xpm ${wxUSE_LIBXPM-none}"
45267fi
45268echo " zlib ${wxUSE_ZLIB}"
45269echo " odbc ${wxUSE_ODBC}"
45270echo " expat ${wxUSE_EXPAT}"
45271echo " libmspack ${wxUSE_LIBMSPACK}"
45272echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45273echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45274
45275echo ""
45276