]> git.saurik.com Git - wxWidgets.git/blame - configure
math.h/PI integration
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
6ab3c239 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_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_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_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_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
3b57de8b 934 --enable-mediactrl use wxMediaCtrl class
77ffb593 935 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 936 --enable-zipstream use wxZipInputStream
a848cd7e
SC
937 --enable-url use wxURL class
938 --enable-protocol use wxProtocol class
939 --enable-protocol-http HTTP support in wxProtocol
940 --enable-protocol-ftp FTP support in wxProtocol
941 --enable-protocol-file FILE support in wxProtocol
942 --enable-threads use threads
943 --enable-docview use document view architecture
944 --enable-help use help subsystem
945 --enable-mshtmlhelp use MS HTML Help (win32)
946 --enable-html use wxHTML sub-library
947 --enable-htmlhelp use wxHTML-based help
9a8f0513 948 --enable-xrc use XRC resources sub-library
a848cd7e
SC
949 --enable-constraints use layout-constraints system
950 --enable-printarch use printing architecture
951 --enable-mdi use multiple document interface architecture
8a7b1113 952 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
953 --enable-loggui use standard GUI logger
954 --enable-logwin use wxLogWindow
955 --enable-logdialog use wxLogDialog
646b6ec1 956 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
957 --enable-postscript use wxPostscriptDC device context (default for gtk+)
958 --enable-prologio not available; see contrib
959 --enable-resources not available; see contrib
960 --enable-clipboard use wxClipboard class
961 --enable-dnd use Drag'n'Drop classes
962 --enable-metafile use win32 metafiles
963 --enable-controls use all usual controls
964 --enable-accel use accelerators
965 --enable-button use wxButton class
966 --enable-bmpbutton use wxBitmapButton class
967 --enable-calendar use wxCalendarCtrl class
968 --enable-caret use wxCaret class
969 --enable-checkbox use wxCheckBox class
970 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
971 --enable-choice use wxChoice class
92bbdbcd 972 --enable-choicebook use wxChoicebook class
a848cd7e
SC
973 --enable-combobox use wxComboBox class
974 --enable-display use wxDisplay class
975 --enable-gauge use wxGauge class
976 --enable-grid use wxGrid class
977 --enable-imaglist use wxImageList class
978 --enable-listbook use wxListbook class
979 --enable-listbox use wxListBox class
980 --enable-listctrl use wxListCtrl class
981 --enable-notebook use wxNotebook class
982 --enable-radiobox use wxRadioBox class
983 --enable-radiobtn use wxRadioButton class
984 --enable-sash use wxSashWindow class
985 --enable-scrollbar use wxScrollBar class and scrollable windows
986 --enable-slider use wxSlider class
987 --enable-spinbtn use wxSpinButton class
988 --enable-spinctrl use wxSpinCtrl class
989 --enable-splitter use wxSplitterWindow class
990 --enable-statbmp use wxStaticBitmap class
991 --enable-statbox use wxStaticBox class
992 --enable-statline use wxStaticLine class
993 --enable-stattext use wxStaticText class
994 --enable-statusbar use wxStatusBar class
995 --enable-tabdialog use wxTabControl class
996 --enable-textctrl use wxTextCtrl class
997 --enable-togglebtn use wxToggleButton class
998 --enable-toolbar use wxToolBar class
999 --enable-tbarnative use native wxToolBar class
1000 --enable-tbarsmpl use wxToolBarSimple class
1001 --enable-treectrl use wxTreeCtrl class
1002 --enable-tipwindow use wxTipWindow class
1003 --enable-popupwin use wxPopUpWindow class
1004 --enable-commondlg use all common dialogs
1005 --enable-choicedlg use wxChoiceDialog
1006 --enable-coldlg use wxColourDialog
1007 --enable-filedlg use wxFileDialog
1008 --enable-finddlg use wxFindReplaceDialog
1009 --enable-fontdlg use wxFontDialog
1010 --enable-dirdlg use wxDirDialog
1011 --enable-msgdlg use wxMessageDialog
1012 --enable-numberdlg use wxNumberEntryDialog
1013 --enable-splash use wxSplashScreen
1014 --enable-textdlg use wxTextDialog
1015 --enable-tipdlg use startup tips
1016 --enable-progressdlg use wxProgressDialog
1017 --enable-wizarddlg use wxWizard
1018 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1019 --enable-miniframe use wxMiniFrame class
1020 --enable-tooltips use wxToolTip class
1021 --enable-splines use spline drawing code
1022 --enable-validators use wxValidator and derived classes
1023 --enable-busyinfo use wxBusyInfo
1024 --enable-joystick use wxJoystick (Linux only)
1025 --enable-metafiles use wxMetaFile (Windows only)
1026 --enable-dragimage use wxDragImage
1027 --enable-accessibility enable accessibility support
1028 --enable-palette use wxPalette class
1029 --enable-image use wxImage class
1030 --enable-gif use gif images (GIF file format)
1031 --enable-pcx use pcx images (PCX file format)
1032 --enable-iff use iff images (IFF file format)
1033 --enable-pnm use pnm images (PNM file format)
1034 --enable-xpm use xpm images (XPM file format)
1035 --enable-icocur use Windows ICO and CUR formats
77ffb593 1036 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1037 --enable-vendor=VENDOR vendor name (win32 DLL only)
1038 --disable-largefile omit support for large files
1039 --disable-gtktest do not try to compile and run a test GTK+ program
1040 --disable-gtktest Do not try to compile and run a test GTK program
1041 --disable-sdltest Do not try to compile and run a test SDL program
1042 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1043 --disable-precomp-headers
1044 don't use precompiled headers even if compiler can
a848cd7e
SC
1045
1046Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gtk use GTK+
1050 --with-motif use Motif/Lesstif
1051 --with-mac use Mac OS X
1052 --with-cocoa use Cocoa
1053 --with-wine use Wine
1054 --with-msw use MS-Windows
1055 --with-pm use OS/2 Presentation Manager
1056 --with-mgl use SciTech MGL
1057 --with-microwin use MicroWindows
1058 --with-x11 use X11
1059 --with-libpng use libpng (PNG image format)
1060 --with-libjpeg use libjpeg (JPEG file format)
1061 --with-libtiff use libtiff (TIFF file format)
1062 --with-libxpm use libxpm (XPM file format)
1063 --with-libmspack use libmspack (CHM help files loading)
1064 --with-sdl use SDL for audio on Unix
d51253e8 1065 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1066 --with-opengl use OpenGL (or Mesa)
1067 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1068 --with-regex enable support for wxRegEx class
1069 --with-zlib use zlib for LZW compression
1070 --with-odbc use the IODBC and wxODBC classes
1071 --with-expat enable XML support using expat parser
ceec2216 1072 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1073 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1074 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1075 --with-x use the X Window System
1076 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1077 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1078 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1079 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1080 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1081
1082Some influential environment variables:
dcc1b6ad
VS
1083 CC C compiler command
1084 CFLAGS C compiler flags
1085 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1086 nonstandard directory <lib dir>
1087 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1088 headers in a nonstandard directory <include dir>
1089 CPP C preprocessor
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CXXCPP C++ preprocessor
a848cd7e
SC
1093
1094Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations.
1096
77ffb593 1097Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1098_ACEOF
1099fi
1100
1101if test "$ac_init_help" = "recursive"; then
1102 # If there are subdirs, report their specific --help.
1103 ac_popdir=`pwd`
1104 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1105 test -d $ac_dir || continue
1106 ac_builddir=.
1107
1108if test "$ac_dir" != .; then
1109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1110 # A "../" for each directory in $ac_dir_suffix.
1111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1112else
1113 ac_dir_suffix= ac_top_builddir=
1114fi
1115
1116case $srcdir in
1117 .) # No --srcdir option. We are building in place.
1118 ac_srcdir=.
1119 if test -z "$ac_top_builddir"; then
1120 ac_top_srcdir=.
1121 else
1122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1123 fi ;;
1124 [\\/]* | ?:[\\/]* ) # Absolute path.
1125 ac_srcdir=$srcdir$ac_dir_suffix;
1126 ac_top_srcdir=$srcdir ;;
1127 *) # Relative path.
1128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1130esac
ac1cb8d3
VS
1131
1132# Do not use `cd foo && pwd` to compute absolute paths, because
1133# the directories may not exist.
1134case `pwd` in
1135.) ac_abs_builddir="$ac_dir";;
1136*)
1137 case "$ac_dir" in
1138 .) ac_abs_builddir=`pwd`;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_builddir=${ac_top_builddir}.;;
1145*)
1146 case ${ac_top_builddir}. in
1147 .) ac_abs_top_builddir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_srcdir=$ac_srcdir;;
1154*)
1155 case $ac_srcdir in
1156 .) ac_abs_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_srcdir=$ac_top_srcdir;;
1163*)
1164 case $ac_top_srcdir in
1165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1168 esac;;
1169esac
a848cd7e
SC
1170
1171 cd $ac_dir
1172 # Check for guested configure; otherwise get Cygnus style configure.
1173 if test -f $ac_srcdir/configure.gnu; then
1174 echo
1175 $SHELL $ac_srcdir/configure.gnu --help=recursive
1176 elif test -f $ac_srcdir/configure; then
1177 echo
1178 $SHELL $ac_srcdir/configure --help=recursive
1179 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1180 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1181 echo
1182 $ac_configure --help
1183 else
1184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1185 fi
5294a27e 1186 cd "$ac_popdir"
a848cd7e
SC
1187 done
1188fi
1189
1190test -n "$ac_init_help" && exit 0
1191if $ac_init_version; then
1192 cat <<\_ACEOF
7714864e 1193wxWidgets configure 2.5.3
ac1cb8d3 1194generated by GNU Autoconf 2.59
a848cd7e 1195
ac1cb8d3 1196Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1197This configure script is free software; the Free Software Foundation
1198gives unlimited permission to copy, distribute and modify it.
1199_ACEOF
1200 exit 0
1201fi
1202exec 5>config.log
1203cat >&5 <<_ACEOF
1204This file contains any messages produced by compilers while
1205running configure, to aid debugging if configure makes a mistake.
1206
7714864e 1207It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1208generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1209
1210 $ $0 $@
1211
1212_ACEOF
1213{
1214cat <<_ASUNAME
1215## --------- ##
1216## Platform. ##
1217## --------- ##
1218
1219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1220uname -m = `(uname -m) 2>/dev/null || echo unknown`
1221uname -r = `(uname -r) 2>/dev/null || echo unknown`
1222uname -s = `(uname -s) 2>/dev/null || echo unknown`
1223uname -v = `(uname -v) 2>/dev/null || echo unknown`
1224
1225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1227
1228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1231hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1235
1236_ASUNAME
1237
1238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1239for as_dir in $PATH
1240do
1241 IFS=$as_save_IFS
1242 test -z "$as_dir" && as_dir=.
1243 echo "PATH: $as_dir"
1244done
1245
1246} >&5
1247
1248cat >&5 <<_ACEOF
1249
1250
1251## ----------- ##
1252## Core tests. ##
1253## ----------- ##
1254
1255_ACEOF
1256
1257
1258# Keep a trace of the command line.
1259# Strip out --no-create and --no-recursion so they do not pile up.
1260# Strip out --silent because we don't want to record it for future runs.
1261# Also quote any args containing shell meta-characters.
1262# Make two passes to allow for proper duplicate-argument suppression.
1263ac_configure_args=
1264ac_configure_args0=
1265ac_configure_args1=
1266ac_sep=
1267ac_must_keep_next=false
1268for ac_pass in 1 2
1269do
1270 for ac_arg
1271 do
1272 case $ac_arg in
1273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1276 continue ;;
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 esac
1280 case $ac_pass in
1281 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1282 2)
1283 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1284 if test $ac_must_keep_next = true; then
ac1cb8d3 1285 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1286 else
ac1cb8d3
VS
1287 case $ac_arg in
1288 *=* | --config-cache | -C | -disable-* | --disable-* \
1289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1291 | -with-* | --with-* | -without-* | --without-* | --x)
1292 case "$ac_configure_args0 " in
1293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1294 esac
1295 ;;
1296 -* ) ac_must_keep_next=true ;;
1297 esac
a848cd7e
SC
1298 fi
1299 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1300 # Get rid of the leading space.
1301 ac_sep=" "
1302 ;;
1303 esac
1304 done
1305done
1306$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1307$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1308
1309# When interrupted or exit'd, cleanup temporary files, and complete
1310# config.log. We remove comments because anyway the quotes in there
1311# would cause problems or look ugly.
1312# WARNING: Be sure not to use single quotes in there, as some shells,
1313# such as our DU 5.0 friend, will then `close' the trap.
1314trap 'exit_status=$?
1315 # Save into config.log some information that might help in debugging.
1316 {
1317 echo
1318
1319 cat <<\_ASBOX
1320## ---------------- ##
1321## Cache variables. ##
1322## ---------------- ##
1323_ASBOX
1324 echo
1325 # The following way of writing the cache mishandles newlines in values,
1326{
1327 (set) 2>&1 |
1328 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1329 *ac_space=\ *)
1330 sed -n \
ac1cb8d3
VS
1331 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1333 ;;
1334 *)
1335 sed -n \
ac1cb8d3 1336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1337 ;;
1338 esac;
1339}
1340 echo
1341
1342 cat <<\_ASBOX
1343## ----------------- ##
1344## Output variables. ##
1345## ----------------- ##
1346_ASBOX
1347 echo
1348 for ac_var in $ac_subst_vars
1349 do
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1352 done | sort
1353 echo
1354
1355 if test -n "$ac_subst_files"; then
1356 cat <<\_ASBOX
1357## ------------- ##
1358## Output files. ##
1359## ------------- ##
1360_ASBOX
1361 echo
1362 for ac_var in $ac_subst_files
1363 do
1364 eval ac_val=$`echo $ac_var`
ac1cb8d3 1365 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1366 done | sort
1367 echo
1368 fi
1369
1370 if test -s confdefs.h; then
1371 cat <<\_ASBOX
1372## ----------- ##
1373## confdefs.h. ##
1374## ----------- ##
1375_ASBOX
1376 echo
1377 sed "/^$/d" confdefs.h | sort
1378 echo
1379 fi
1380 test "$ac_signal" != 0 &&
1381 echo "$as_me: caught signal $ac_signal"
1382 echo "$as_me: exit $exit_status"
1383 } >&5
ac1cb8d3 1384 rm -f core *.core &&
a848cd7e
SC
1385 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1386 exit $exit_status
1387 ' 0
1388for ac_signal in 1 2 13 15; do
1389 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1390done
1391ac_signal=0
1392
1393# confdefs.h avoids OS command line length limits that DEFS can exceed.
1394rm -rf conftest* confdefs.h
1395# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1396echo >confdefs.h
1397
1398# Predefined preprocessor variables.
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_NAME "$PACKAGE_NAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_VERSION "$PACKAGE_VERSION"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_STRING "$PACKAGE_STRING"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422_ACEOF
1423
1424
1425# Let the site file select an alternate cache file if it wants to.
1426# Prefer explicitly selected file to automatically selected ones.
1427if test -z "$CONFIG_SITE"; then
1428 if test "x$prefix" != xNONE; then
1429 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1430 else
1431 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1432 fi
1433fi
1434for ac_site_file in $CONFIG_SITE; do
1435 if test -r "$ac_site_file"; then
1436 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1437echo "$as_me: loading site script $ac_site_file" >&6;}
1438 sed 's/^/| /' "$ac_site_file" >&5
1439 . "$ac_site_file"
1440 fi
1441done
1442
1443if test -r "$cache_file"; then
1444 # Some versions of bash will fail to source /dev/null (special
1445 # files actually), so we avoid doing that.
1446 if test -f "$cache_file"; then
1447 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1448echo "$as_me: loading cache $cache_file" >&6;}
1449 case $cache_file in
1450 [\\/]* | ?:[\\/]* ) . $cache_file;;
1451 *) . ./$cache_file;;
1452 esac
1453 fi
1454else
1455 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1456echo "$as_me: creating cache $cache_file" >&6;}
1457 >$cache_file
1458fi
1459
1460# Check that the precious variables saved in the cache have kept the same
1461# value.
1462ac_cache_corrupted=false
1463for ac_var in `(set) 2>&1 |
ac1cb8d3 1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1470 set,)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,set)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,);;
1479 *)
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1482echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1484echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1486echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1487 ac_cache_corrupted=:
a848cd7e
SC
1488 fi;;
1489 esac
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1492 case $ac_new_val in
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1496 esac
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 esac
1501 fi
1502done
1503if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510
1511ac_ext=c
1512ac_cpp='$CPP $CPPFLAGS'
1513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546ac_aux_dir=
1547for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1548 if test -f $ac_dir/install-sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install-sh -c"
1551 break
1552 elif test -f $ac_dir/install.sh; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/install.sh -c"
1555 break
1556 elif test -f $ac_dir/shtool; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 break
1560 fi
1561done
1562if test -z "$ac_aux_dir"; then
1563 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1564echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1565 { (exit 1); exit 1; }; }
1566fi
1567ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1568ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1569ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570
1571# Make sure we can run config.sub.
1572$ac_config_sub sun4 >/dev/null 2>&1 ||
1573 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1574echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577echo "$as_me:$LINENO: checking build system type" >&5
1578echo $ECHO_N "checking build system type... $ECHO_C" >&6
1579if test "${ac_cv_build+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 ac_cv_build_alias=$build_alias
1583test -z "$ac_cv_build_alias" &&
1584 ac_cv_build_alias=`$ac_config_guess`
1585test -z "$ac_cv_build_alias" &&
1586 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1587echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1588 { (exit 1); exit 1; }; }
1589ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1596echo "${ECHO_T}$ac_cv_build" >&6
1597build=$ac_cv_build
1598build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603echo "$as_me:$LINENO: checking host system type" >&5
1604echo $ECHO_N "checking host system type... $ECHO_C" >&6
1605if test "${ac_cv_host+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 ac_cv_host_alias=$host_alias
1609test -z "$ac_cv_host_alias" &&
1610 ac_cv_host_alias=$ac_cv_build_alias
1611ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1613echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1615
1616fi
1617echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1618echo "${ECHO_T}$ac_cv_host" >&6
1619host=$ac_cv_host
1620host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625echo "$as_me:$LINENO: checking target system type" >&5
1626echo $ECHO_N "checking target system type... $ECHO_C" >&6
1627if test "${ac_cv_target+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_target_alias=$target_alias
1631test "x$ac_cv_target_alias" = "x" &&
1632 ac_cv_target_alias=$ac_cv_host_alias
1633ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1640echo "${ECHO_T}$ac_cv_target" >&6
1641target=$ac_cv_target
1642target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647# The aliases save the names the user supplied, while $host etc.
1648# will get canonicalized.
1649test -n "$target_alias" &&
1650 test "$program_prefix$program_suffix$program_transform_name" = \
1651 NONENONEs,x,x, &&
1652 program_prefix=${target_alias}-
1653
1654
1655
ceec2216
RL
1656wx_major_version_number=2
1657wx_minor_version_number=5
7714864e 1658wx_release_number=3
0210f373 1659wx_subrelease_number=3
a848cd7e 1660
ceec2216
RL
1661WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1662WX_VERSION=$WX_RELEASE.$wx_release_number
1663WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1664
ceec2216 1665WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1666
e653e181 1667WX_CURRENT=3
a848cd7e 1668WX_REVISION=0
0210f373 1669WX_AGE=3
a848cd7e
SC
1670
1671
1672
1673USE_UNIX=1
1674USE_OS2=0
1675USE_WIN32=0
1676USE_DOS=0
1677USE_BEOS=0
1678USE_MAC=0
1679
1680USE_AIX=
1681USE_BSD= USE_DARWIN= USE_FREEBSD=
1682USE_GNU= USE_HPUX=
1683USE_LINUX=
1684USE_NETBSD=
1685USE_OPENBSD=
1686USE_OSF= USE_SGI=
1687USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1688USE_ULTRIX=
1689USE_UNIXWARE=
1690
1691USE_ALPHA=
1692
1693NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1694
1695ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1696
1697DEFAULT_wxUSE_COCOA=0
1698DEFAULT_wxUSE_GTK=0
1699DEFAULT_wxUSE_MAC=0
1700DEFAULT_wxUSE_MGL=0
1701DEFAULT_wxUSE_MICROWIN=0
1702DEFAULT_wxUSE_MOTIF=0
1703DEFAULT_wxUSE_MSW=0
1704DEFAULT_wxUSE_PM=0
1705DEFAULT_wxUSE_X11=0
1706
1707DEFAULT_DEFAULT_wxUSE_COCOA=0
1708DEFAULT_DEFAULT_wxUSE_GTK=0
1709DEFAULT_DEFAULT_wxUSE_MAC=0
1710DEFAULT_DEFAULT_wxUSE_MGL=0
1711DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_DEFAULT_wxUSE_MSW=0
1714DEFAULT_DEFAULT_wxUSE_PM=0
1715DEFAULT_DEFAULT_wxUSE_X11=0
1716
1717PROGRAM_EXT=
1718SO_SUFFIX=so
1719SAMPLES_RPATH_FLAG=
1720SAMPLES_RPATH_POSTLINK=
1721
1722case "${host}" in
1723 *-hp-hpux* )
1724 USE_HPUX=1
1725 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1726 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1727 SO_SUFFIX=sl
1728 cat >>confdefs.h <<\_ACEOF
1729#define __HPUX__ 1
1730_ACEOF
1731
1732 ;;
1733 *-*-linux* )
1734 USE_LINUX=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __LINUX__ 1
1737_ACEOF
1738
1739 TMP=`uname -m`
1740 if test "x$TMP" = "xalpha"; then
1741 USE_ALPHA=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __ALPHA__ 1
1744_ACEOF
1745
1746 fi
1747 DEFAULT_DEFAULT_wxUSE_GTK=1
1748 ;;
1749 *-*-gnu* | *-*-k*bsd*-gnu )
1750 USE_GNU=1
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-irix5* | *-*-irix6* )
1762 USE_SGI=1
1763 USE_SVR4=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __SGI__ 1
1766_ACEOF
1767
1768 cat >>confdefs.h <<\_ACEOF
1769#define __SVR4__ 1
1770_ACEOF
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1773 ;;
1774 *-*-solaris2* )
1775 USE_SUN=1
1776 USE_SOLARIS=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SUN__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SOLARIS__ 1
1784_ACEOF
1785
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SVR4__ 1
1788_ACEOF
1789
1790 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1791 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1792 ;;
1793 *-*-sunos4* )
1794 USE_SUN=1
1795 USE_SUNOS=1
1796 USE_BSD=1
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SUN__ 1
1799_ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SUNOS__ 1
1803_ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806#define __BSD__ 1
1807_ACEOF
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1810 ;;
1811 *-*-freebsd*)
1812 USE_BSD=1
1813 USE_FREEBSD=1
1814 cat >>confdefs.h <<\_ACEOF
1815#define __FREEBSD__ 1
1816_ACEOF
1817
1818 cat >>confdefs.h <<\_ACEOF
1819#define __BSD__ 1
1820_ACEOF
1821
1822 DEFAULT_DEFAULT_wxUSE_GTK=1
1823 ;;
1824 *-*-openbsd*)
1825 USE_BSD=1
1826 USE_OPENBSD=1
1827 cat >>confdefs.h <<\_ACEOF
1828#define __OPENBSD__ 1
1829_ACEOF
1830
1831 cat >>confdefs.h <<\_ACEOF
1832#define __BSD__ 1
1833_ACEOF
1834
1835 DEFAULT_DEFAULT_wxUSE_GTK=1
1836 ;;
1837 *-*-netbsd*)
1838 USE_BSD=1
1839 USE_NETBSD=1
1840 cat >>confdefs.h <<\_ACEOF
1841#define __NETBSD__ 1
1842_ACEOF
1843
1844 cat >>confdefs.h <<\_ACEOF
1845#define __BSD__ 1
1846_ACEOF
1847
1848 DEFAULT_DEFAULT_wxUSE_GTK=1
1849 ;;
1850 *-*-osf* )
1851 USE_ALPHA=1
1852 USE_OSF=1
1853 cat >>confdefs.h <<\_ACEOF
1854#define __ALPHA__ 1
1855_ACEOF
1856
1857 cat >>confdefs.h <<\_ACEOF
1858#define __OSF__ 1
1859_ACEOF
1860
1861 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1862 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1863 ;;
1864 *-*-dgux5* )
1865 USE_ALPHA=1
1866 USE_SVR4=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __ALPHA__ 1
1869_ACEOF
1870
1871 cat >>confdefs.h <<\_ACEOF
1872#define __SVR4__ 1
1873_ACEOF
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 ;;
1877 *-*-sysv5* )
1878 USE_SYSV=1
1879 USE_SVR4=1
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SYSV__ 1
1882_ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885#define __SVR4__ 1
1886_ACEOF
1887
1888 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1889 ;;
1890 *-*-aix* )
1891 USE_AIX=1
1892 USE_SYSV=1
1893 USE_SVR4=1
1894 SO_SUFFIX=a
1895 cat >>confdefs.h <<\_ACEOF
1896#define __AIX__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SYSV__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909
1910 *-*-*UnixWare*)
1911 USE_SYSV=1
1912 USE_SVR4=1
1913 USE_UNIXWARE=1
1914 cat >>confdefs.h <<\_ACEOF
1915#define __UNIXWARE__ 1
1916_ACEOF
1917
1918 ;;
1919
1920 *-*-cygwin* | *-*-mingw32* )
1921 SO_SUFFIX=dll
1922 PROGRAM_EXT=".exe"
1923 RESCOMP=windres
1924 DEFAULT_DEFAULT_wxUSE_MSW=1
1925 ;;
1926
1927 *-pc-msdosdjgpp )
1928 USE_UNIX=0
1929 USE_DOS=1
1930 cat >>confdefs.h <<\_ACEOF
1931#define __DOS__ 1
1932_ACEOF
1933
1934 PROGRAM_EXT=".exe"
1935 DEFAULT_DEFAULT_wxUSE_MGL=1
1936 LIBS="$LIBS -lstdc++"
1937 ;;
1938
1939 *-pc-os2_emx | *-pc-os2-emx )
1940 cat >>confdefs.h <<\_ACEOF
1941#define __EMX__ 1
1942_ACEOF
1943
1944 USE_OS2=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __OS2__ 1
1947_ACEOF
1948
1949 PROGRAM_EXT=".exe"
1950 DEFAULT_DEFAULT_wxUSE_PM=1
1951 CXX=gcc
1952 LDFLAGS="$LDFLAGS -Zcrtdll"
1953 ac_executable_extensions=".exe"
1954 export ac_executable_extensions
1955 ac_save_IFS="$IFS"
1956 IFS='\\'
1957 ac_TEMP_PATH=
1958 for ac_dir in $PATH; do
1959 IFS=$ac_save_IFS
1960 if test -z "$ac_TEMP_PATH"; then
1961 ac_TEMP_PATH="$ac_dir"
1962 else
1963 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1964 fi
1965 done
1966 export PATH="$ac_TEMP_PATH"
1967 unset ac_TEMP_PATH
1968 ;;
1969
1970 powerpc-*-darwin* )
1971 USE_BSD=1
1972 USE_DARWIN=1
1973 SO_SUFFIX=dylib
1974 cat >>confdefs.h <<\_ACEOF
1975#define __BSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __DARWIN__ 1
1980_ACEOF
1981
1982 cat >>confdefs.h <<\_ACEOF
1983#define __POWERPC__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define TARGET_CARBON 1
1988_ACEOF
1989
1990 DEFAULT_DEFAULT_wxUSE_MAC=1
1991 ;;
1e9e8aba
DE
1992 powerpc-apple-macos* )
1993 USE_UNIX=0
1994 ac_cv_c_bigendian=yes
1995 SO_SUFFIX=shlib
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
1997 ;;
a848cd7e
SC
1998
1999 *-*-beos* )
2000 USE_BEOS=1
2001 cat >>confdefs.h <<\_ACEOF
2002#define __BEOS__ 1
2003_ACEOF
2004
2005 ;;
2006
2007 *)
2008 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2009echo "$as_me: error: unknown system type ${host}." >&2;}
2010 { (exit 1); exit 1; }; }
2011esac
2012
2013
2014
2015
2016 wx_arg_cache_file="configarg.cache"
2017 echo "loading argument cache $wx_arg_cache_file"
2018 rm -f ${wx_arg_cache_file}.tmp
2019 touch ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}
2021
2022
2023DEBUG_CONFIGURE=0
2024if test $DEBUG_CONFIGURE = 1; then
2025 DEFAULT_wxUSE_UNIVERSAL=no
2026 DEFAULT_wxUSE_STL=no
2027
2028 DEFAULT_wxUSE_NANOX=no
2029
2030 DEFAULT_wxUSE_THREADS=yes
2031
2032 DEFAULT_wxUSE_SHARED=yes
2033 DEFAULT_wxUSE_OPTIMISE=no
2034 DEFAULT_wxUSE_PROFILE=no
2035 DEFAULT_wxUSE_NO_DEPS=no
2036 DEFAULT_wxUSE_NO_RTTI=no
2037 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2038 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2039 DEFAULT_wxUSE_PERMISSIVE=no
2040 DEFAULT_wxUSE_DEBUG_FLAG=yes
2041 DEFAULT_wxUSE_DEBUG_INFO=yes
2042 DEFAULT_wxUSE_DEBUG_GDB=yes
2043 DEFAULT_wxUSE_MEM_TRACING=no
2044 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2045 DEFAULT_wxUSE_DMALLOC=no
2046 DEFAULT_wxUSE_APPLE_IEEE=no
2047
2048 DEFAULT_wxUSE_EXCEPTIONS=no
2049 DEFAULT_wxUSE_LOG=yes
2050 DEFAULT_wxUSE_LOGWINDOW=no
2051 DEFAULT_wxUSE_LOGGUI=no
2052 DEFAULT_wxUSE_LOGDIALOG=no
2053
2054 DEFAULT_wxUSE_GUI=yes
2055 DEFAULT_wxUSE_CONTROLS=no
2056
2057 DEFAULT_wxUSE_REGEX=no
2058 DEFAULT_wxUSE_XML=no
2059 DEFAULT_wxUSE_EXPAT=no
2060 DEFAULT_wxUSE_ZLIB=no
2061 DEFAULT_wxUSE_LIBPNG=no
2062 DEFAULT_wxUSE_LIBJPEG=no
2063 DEFAULT_wxUSE_LIBTIFF=no
2064 DEFAULT_wxUSE_LIBXPM=no
2065 DEFAULT_wxUSE_LIBMSPACK=no
2066 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2067 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2068 DEFAULT_wxUSE_ODBC=no
2069 DEFAULT_wxUSE_OPENGL=no
2070
2071 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
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
2154 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2155 DEFAULT_wxUSE_VALIDATORS=no
2156
2157 DEFAULT_wxUSE_ACCEL=no
2158 DEFAULT_wxUSE_BUTTON=no
2159 DEFAULT_wxUSE_BMPBUTTON=no
2160 DEFAULT_wxUSE_CALCTRL=no
2161 DEFAULT_wxUSE_CARET=no
2162 DEFAULT_wxUSE_CHECKBOX=no
2163 DEFAULT_wxUSE_CHECKLST=no
2164 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2165 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2166 DEFAULT_wxUSE_COMBOBOX=no
2167 DEFAULT_wxUSE_DISPLAY=no
2168 DEFAULT_wxUSE_GAUGE=no
2169 DEFAULT_wxUSE_GRID=no
2170 DEFAULT_wxUSE_IMAGLIST=no
2171 DEFAULT_wxUSE_LISTBOOK=no
2172 DEFAULT_wxUSE_LISTBOX=no
2173 DEFAULT_wxUSE_LISTCTRL=no
2174 DEFAULT_wxUSE_NOTEBOOK=no
2175 DEFAULT_wxUSE_RADIOBOX=no
2176 DEFAULT_wxUSE_RADIOBTN=no
2177 DEFAULT_wxUSE_SASH=no
2178 DEFAULT_wxUSE_SCROLLBAR=no
2179 DEFAULT_wxUSE_SLIDER=no
2180 DEFAULT_wxUSE_SPINBTN=no
2181 DEFAULT_wxUSE_SPINCTRL=no
2182 DEFAULT_wxUSE_SPLITTER=no
2183 DEFAULT_wxUSE_STATBMP=no
2184 DEFAULT_wxUSE_STATBOX=no
2185 DEFAULT_wxUSE_STATLINE=no
2186 DEFAULT_wxUSE_STATTEXT=no
2187 DEFAULT_wxUSE_STATUSBAR=yes
2188 DEFAULT_wxUSE_TABDIALOG=no
2189 DEFAULT_wxUSE_TEXTCTRL=no
2190 DEFAULT_wxUSE_TOGGLEBTN=no
2191 DEFAULT_wxUSE_TOOLBAR=no
2192 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2193 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2194 DEFAULT_wxUSE_TREECTRL=no
2195 DEFAULT_wxUSE_POPUPWIN=no
2196 DEFAULT_wxUSE_TIPWINDOW=no
2197
2198 DEFAULT_wxUSE_UNICODE=no
2199 DEFAULT_wxUSE_UNICODE_MSLU=no
2200 DEFAULT_wxUSE_WCSRTOMBS=no
2201
2202 DEFAULT_wxUSE_PALETTE=no
2203 DEFAULT_wxUSE_IMAGE=no
2204 DEFAULT_wxUSE_GIF=no
2205 DEFAULT_wxUSE_PCX=no
2206 DEFAULT_wxUSE_PNM=no
2207 DEFAULT_wxUSE_IFF=no
2208 DEFAULT_wxUSE_XPM=no
2209 DEFAULT_wxUSE_ICO_CUR=no
2210 DEFAULT_wxUSE_ACCESSIBILITY=no
2211
2212 DEFAULT_wxUSE_MONOLITHIC=no
2213 DEFAULT_wxUSE_PLUGINS=no
2214 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2215else
2216 DEFAULT_wxUSE_UNIVERSAL=no
2217 DEFAULT_wxUSE_STL=no
2218
2219 DEFAULT_wxUSE_NANOX=no
2220
2221 DEFAULT_wxUSE_THREADS=yes
2222
2223 DEFAULT_wxUSE_SHARED=yes
2224 DEFAULT_wxUSE_OPTIMISE=yes
2225 DEFAULT_wxUSE_PROFILE=no
2226 DEFAULT_wxUSE_NO_DEPS=no
2227 DEFAULT_wxUSE_NO_RTTI=no
2228 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2229 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2230 DEFAULT_wxUSE_PERMISSIVE=no
2231 DEFAULT_wxUSE_DEBUG_FLAG=no
2232 DEFAULT_wxUSE_DEBUG_INFO=no
2233 DEFAULT_wxUSE_DEBUG_GDB=no
2234 DEFAULT_wxUSE_MEM_TRACING=no
2235 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2236 DEFAULT_wxUSE_DMALLOC=no
2237 DEFAULT_wxUSE_APPLE_IEEE=yes
2238
2239 DEFAULT_wxUSE_EXCEPTIONS=yes
2240 DEFAULT_wxUSE_LOG=yes
2241 DEFAULT_wxUSE_LOGWINDOW=yes
2242 DEFAULT_wxUSE_LOGGUI=yes
2243 DEFAULT_wxUSE_LOGDIALOG=yes
2244
2245 DEFAULT_wxUSE_GUI=yes
2246
2247 DEFAULT_wxUSE_REGEX=yes
2248 DEFAULT_wxUSE_XML=yes
2249 DEFAULT_wxUSE_EXPAT=yes
2250 DEFAULT_wxUSE_ZLIB=yes
2251 DEFAULT_wxUSE_LIBPNG=yes
2252 DEFAULT_wxUSE_LIBJPEG=yes
2253 DEFAULT_wxUSE_LIBTIFF=yes
2254 DEFAULT_wxUSE_LIBXPM=yes
2255 DEFAULT_wxUSE_LIBMSPACK=yes
2256 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2257 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2258 DEFAULT_wxUSE_ODBC=no
2259 DEFAULT_wxUSE_OPENGL=no
2260
2261 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2262 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2263 DEFAULT_wxUSE_STD_IOSTREAM=no
2264 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2265 DEFAULT_wxUSE_DATETIME=yes
2266 DEFAULT_wxUSE_TIMER=yes
2267 DEFAULT_wxUSE_STOPWATCH=yes
2268 DEFAULT_wxUSE_FILE=yes
2269 DEFAULT_wxUSE_FFILE=yes
2270 DEFAULT_wxUSE_TEXTBUFFER=yes
2271 DEFAULT_wxUSE_TEXTFILE=yes
2272 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2273 DEFAULT_wxUSE_MEDIACTRL=no
2274 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2275 DEFAULT_wxUSE_INTL=yes
2276 DEFAULT_wxUSE_CONFIG=yes
2277 DEFAULT_wxUSE_FONTMAP=yes
2278 DEFAULT_wxUSE_STREAMS=yes
2279 DEFAULT_wxUSE_SOCKETS=yes
2280 DEFAULT_wxUSE_OLE=yes
2281 DEFAULT_wxUSE_DATAOBJ=yes
2282 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2283 DEFAULT_wxUSE_JOYSTICK=yes
2284 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2285 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2286 DEFAULT_wxUSE_LONGLONG=yes
2287 DEFAULT_wxUSE_GEOMETRY=yes
2288
2289 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2290 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2291 DEFAULT_wxUSE_POSTSCRIPT=yes
2292
2293 DEFAULT_wxUSE_CLIPBOARD=yes
2294 DEFAULT_wxUSE_TOOLTIPS=yes
2295 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2296 DEFAULT_wxUSE_DRAGIMAGE=yes
2297 DEFAULT_wxUSE_SPLINES=yes
2298
8a7b1113 2299 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2300 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2301 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2302 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2303
2304 DEFAULT_wxUSE_RESOURCES=no
2305 DEFAULT_wxUSE_CONSTRAINTS=yes
2306 DEFAULT_wxUSE_IPC=yes
2307 DEFAULT_wxUSE_HELP=yes
2308 DEFAULT_wxUSE_MS_HTML_HELP=yes
2309 DEFAULT_wxUSE_WXHTML_HELP=yes
2310 DEFAULT_wxUSE_TREELAYOUT=yes
2311 DEFAULT_wxUSE_METAFILE=yes
2312 DEFAULT_wxUSE_MIMETYPE=yes
2313 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2314 DEFAULT_wxUSE_PROTOCOL=yes
2315 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2316 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2317 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2318 DEFAULT_wxUSE_URL=yes
2319
2320 DEFAULT_wxUSE_COMMONDLGS=yes
2321 DEFAULT_wxUSE_CHOICEDLG=yes
2322 DEFAULT_wxUSE_COLOURDLG=yes
2323 DEFAULT_wxUSE_DIRDLG=yes
2324 DEFAULT_wxUSE_FILEDLG=yes
2325 DEFAULT_wxUSE_FINDREPLDLG=yes
2326 DEFAULT_wxUSE_FONTDLG=yes
2327 DEFAULT_wxUSE_MSGDLG=yes
2328 DEFAULT_wxUSE_NUMBERDLG=yes
2329 DEFAULT_wxUSE_TEXTDLG=yes
2330 DEFAULT_wxUSE_SPLASH=yes
2331 DEFAULT_wxUSE_STARTUP_TIPS=yes
2332 DEFAULT_wxUSE_PROGRESSDLG=yes
2333 DEFAULT_wxUSE_WIZARDDLG=yes
2334
2335 DEFAULT_wxUSE_MENUS=yes
2336 DEFAULT_wxUSE_MINIFRAME=yes
2337 DEFAULT_wxUSE_HTML=yes
9a8f0513 2338 DEFAULT_wxUSE_XRC=yes
646b6ec1 2339 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2340 DEFAULT_wxUSE_FILESYSTEM=yes
2341 DEFAULT_wxUSE_FS_INET=yes
2342 DEFAULT_wxUSE_FS_ZIP=yes
2343 DEFAULT_wxUSE_BUSYINFO=yes
2344 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2345 DEFAULT_wxUSE_VALIDATORS=yes
2346
2347 DEFAULT_wxUSE_ACCEL=yes
2348 DEFAULT_wxUSE_BUTTON=yes
2349 DEFAULT_wxUSE_BMPBUTTON=yes
2350 DEFAULT_wxUSE_CALCTRL=yes
2351 DEFAULT_wxUSE_CARET=yes
2352 DEFAULT_wxUSE_CHECKBOX=yes
2353 DEFAULT_wxUSE_CHECKLST=yes
2354 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2355 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_COMBOBOX=yes
2357 DEFAULT_wxUSE_DISPLAY=yes
2358 DEFAULT_wxUSE_GAUGE=yes
2359 DEFAULT_wxUSE_GRID=yes
2360 DEFAULT_wxUSE_IMAGLIST=yes
2361 DEFAULT_wxUSE_LISTBOOK=yes
2362 DEFAULT_wxUSE_LISTBOX=yes
2363 DEFAULT_wxUSE_LISTCTRL=yes
2364 DEFAULT_wxUSE_NOTEBOOK=yes
2365 DEFAULT_wxUSE_RADIOBOX=yes
2366 DEFAULT_wxUSE_RADIOBTN=yes
2367 DEFAULT_wxUSE_SASH=yes
2368 DEFAULT_wxUSE_SCROLLBAR=yes
2369 DEFAULT_wxUSE_SLIDER=yes
2370 DEFAULT_wxUSE_SPINBTN=yes
2371 DEFAULT_wxUSE_SPINCTRL=yes
2372 DEFAULT_wxUSE_SPLITTER=yes
2373 DEFAULT_wxUSE_STATBMP=yes
2374 DEFAULT_wxUSE_STATBOX=yes
2375 DEFAULT_wxUSE_STATLINE=yes
2376 DEFAULT_wxUSE_STATTEXT=yes
2377 DEFAULT_wxUSE_STATUSBAR=yes
2378 DEFAULT_wxUSE_TABDIALOG=no
2379 DEFAULT_wxUSE_TEXTCTRL=yes
2380 DEFAULT_wxUSE_TOGGLEBTN=yes
2381 DEFAULT_wxUSE_TOOLBAR=yes
2382 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2383 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2384 DEFAULT_wxUSE_TREECTRL=yes
2385 DEFAULT_wxUSE_POPUPWIN=yes
2386 DEFAULT_wxUSE_TIPWINDOW=yes
2387
2388 DEFAULT_wxUSE_UNICODE=no
2389 DEFAULT_wxUSE_UNICODE_MSLU=yes
2390 DEFAULT_wxUSE_WCSRTOMBS=no
2391
2392 DEFAULT_wxUSE_PALETTE=yes
2393 DEFAULT_wxUSE_IMAGE=yes
2394 DEFAULT_wxUSE_GIF=yes
2395 DEFAULT_wxUSE_PCX=yes
2396 DEFAULT_wxUSE_IFF=no
2397 DEFAULT_wxUSE_PNM=yes
2398 DEFAULT_wxUSE_XPM=yes
2399 DEFAULT_wxUSE_ICO_CUR=yes
2400 DEFAULT_wxUSE_ACCESSIBILITY=no
2401
2402 DEFAULT_wxUSE_MONOLITHIC=no
2403 DEFAULT_wxUSE_PLUGINS=no
2404 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2405
2406 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2407fi
2408
2409
2410
2411for toolkit in `echo $ALL_TOOLKITS`; do
2412 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2413 if test "x$LINE" != "x" ; then
2414 has_toolkit_in_cache=1
2415 eval "DEFAULT_$LINE"
2416 eval "CACHE_$toolkit=1"
2417 fi
2418done
2419
2420
2421
2422 enablestring=
2423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2424echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2425 no_cache=0
2426 # Check whether --enable-gui or --disable-gui was given.
2427if test "${enable_gui+set}" = set; then
2428 enableval="$enable_gui"
2429
2430 if test "$enableval" = yes; then
2431 ac_cv_use_gui='wxUSE_GUI=yes'
2432 else
2433 ac_cv_use_gui='wxUSE_GUI=no'
2434 fi
2435
2436else
2437
2438 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2446
2447fi;
2448
2449 eval "$ac_cv_use_gui"
2450 if test "$no_cache" != 1; then
2451 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2452 fi
2453
2454 if test "$wxUSE_GUI" = yes; then
2455 echo "$as_me:$LINENO: result: yes" >&5
2456echo "${ECHO_T}yes" >&6
2457 else
2458 echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6
2460 fi
2461
2462
2463 enablestring=
2464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2465echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2466 no_cache=0
2467 # Check whether --enable-monolithic or --disable-monolithic was given.
2468if test "${enable_monolithic+set}" = set; then
2469 enableval="$enable_monolithic"
2470
2471 if test "$enableval" = yes; then
2472 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2473 else
2474 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2475 fi
2476
2477else
2478
2479 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2480 if test "x$LINE" != x ; then
2481 eval "DEFAULT_$LINE"
2482 else
2483 no_cache=1
2484 fi
2485
2486 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2487
2488fi;
2489
2490 eval "$ac_cv_use_monolithic"
2491 if test "$no_cache" != 1; then
2492 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2493 fi
2494
2495 if test "$wxUSE_MONOLITHIC" = yes; then
2496 echo "$as_me:$LINENO: result: yes" >&5
2497echo "${ECHO_T}yes" >&6
2498 else
2499 echo "$as_me:$LINENO: result: no" >&5
2500echo "${ECHO_T}no" >&6
2501 fi
2502
2503
2504 enablestring=
2505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2506echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2507 no_cache=0
2508 # Check whether --enable-plugins or --disable-plugins was given.
2509if test "${enable_plugins+set}" = set; then
2510 enableval="$enable_plugins"
2511
2512 if test "$enableval" = yes; then
2513 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2514 else
2515 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2516 fi
2517
2518else
2519
2520 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2521 if test "x$LINE" != x ; then
2522 eval "DEFAULT_$LINE"
2523 else
2524 no_cache=1
2525 fi
2526
2527 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2528
2529fi;
2530
2531 eval "$ac_cv_use_plugins"
2532 if test "$no_cache" != 1; then
2533 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2534 fi
2535
2536 if test "$wxUSE_PLUGINS" = yes; then
2537 echo "$as_me:$LINENO: result: yes" >&5
2538echo "${ECHO_T}yes" >&6
2539 else
2540 echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6
2542 fi
2543
2544
2545if test "$wxUSE_GUI" = "yes"; then
2546
2547
2548 enablestring=
2549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2550echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2551 no_cache=0
2552 # Check whether --enable-universal or --disable-universal was given.
2553if test "${enable_universal+set}" = set; then
2554 enableval="$enable_universal"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2558 else
2559 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2560 fi
2561
2562else
2563
2564 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2572
2573fi;
2574
2575 eval "$ac_cv_use_universal"
2576 if test "$no_cache" != 1; then
2577 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2578 fi
2579
2580 if test "$wxUSE_UNIVERSAL" = yes; then
2581 echo "$as_me:$LINENO: result: yes" >&5
2582echo "${ECHO_T}yes" >&6
2583 else
2584 echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6
2586 fi
2587
2588
2589# Check whether --with-gtk or --without-gtk was given.
2590if test "${with_gtk+set}" = set; then
2591 withval="$with_gtk"
2592 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2593fi;
2594
2595# Check whether --with-motif or --without-motif was given.
2596if test "${with_motif+set}" = set; then
2597 withval="$with_motif"
2598 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2599fi;
2600
2601# Check whether --with-mac or --without-mac was given.
2602if test "${with_mac+set}" = set; then
2603 withval="$with_mac"
c228d3a4 2604 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2605fi;
2606
2607# Check whether --with-cocoa or --without-cocoa was given.
2608if test "${with_cocoa+set}" = set; then
2609 withval="$with_cocoa"
c228d3a4 2610 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2611fi;
2612
2613# Check whether --with-wine or --without-wine was given.
2614if test "${with_wine+set}" = set; then
2615 withval="$with_wine"
2616 wxUSE_WINE="$withval" CACHE_WINE=1
2617fi;
2618
2619# Check whether --with-msw or --without-msw was given.
2620if test "${with_msw+set}" = set; then
2621 withval="$with_msw"
2622 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-pm or --without-pm was given.
2626if test "${with_pm+set}" = set; then
2627 withval="$with_pm"
2628 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631# Check whether --with-mgl or --without-mgl was given.
2632if test "${with_mgl+set}" = set; then
2633 withval="$with_mgl"
2634 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2635fi;
2636
2637# Check whether --with-microwin or --without-microwin was given.
2638if test "${with_microwin+set}" = set; then
2639 withval="$with_microwin"
2640 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2641fi;
2642
2643# Check whether --with-x11 or --without-x11 was given.
2644if test "${with_x11+set}" = set; then
2645 withval="$with_x11"
2646 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649 enablestring=
2650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2651echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2652 no_cache=0
2653 # Check whether --enable-nanox or --disable-nanox was given.
2654if test "${enable_nanox+set}" = set; then
2655 enableval="$enable_nanox"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_nanox='wxUSE_NANOX=yes'
2659 else
2660 ac_cv_use_nanox='wxUSE_NANOX=no'
2661 fi
2662
2663else
2664
2665 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2673
2674fi;
2675
2676 eval "$ac_cv_use_nanox"
2677 if test "$no_cache" != 1; then
2678 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2679 fi
2680
2681 if test "$wxUSE_NANOX" = yes; then
2682 echo "$as_me:$LINENO: result: yes" >&5
2683echo "${ECHO_T}yes" >&6
2684 else
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
2687 fi
2688
2689
2690
2691 enablestring=
2692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2693echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2694 no_cache=0
2695 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2696if test "${enable_gtk2+set}" = set; then
2697 enableval="$enable_gtk2"
2698
2699 if test "$enableval" = yes; then
2700 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2701 else
2702 ac_cv_use_gtk2='wxUSE_GTK2=no'
2703 fi
2704
2705else
2706
2707 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2715
2716fi;
2717
2718 eval "$ac_cv_use_gtk2"
2719 if test "$no_cache" != 1; then
2720 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2721 fi
2722
2723 if test "$wxUSE_GTK2" = yes; then
2724 echo "$as_me:$LINENO: result: yes" >&5
2725echo "${ECHO_T}yes" >&6
2726 else
2727 echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6
2729 fi
2730
2731
2732 enablestring=
2733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2734echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2735 no_cache=0
2736 # Check whether --enable-gpe or --disable-gpe was given.
2737if test "${enable_gpe+set}" = set; then
2738 enableval="$enable_gpe"
2739
2740 if test "$enableval" = yes; then
2741 ac_cv_use_gpe='wxUSE_GPE=yes'
2742 else
2743 ac_cv_use_gpe='wxUSE_GPE=no'
2744 fi
2745
2746else
2747
2748 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2756
2757fi;
2758
2759 eval "$ac_cv_use_gpe"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_GPE" = yes; then
2765 echo "$as_me:$LINENO: result: yes" >&5
2766echo "${ECHO_T}yes" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6
2770 fi
2771
2772
2773
2774 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2775echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2776 no_cache=0
2777
2778# Check whether --with-libpng or --without-libpng was given.
2779if test "${with_libpng+set}" = set; then
2780 withval="$with_libpng"
2781
2782 if test "$withval" = yes; then
2783 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2784 elif test "$withval" = no; then
2785 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2786 elif test "$withval" = sys; then
2787 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2788 elif test "$withval" = builtin; then
2789 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2790 else
2791 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2792echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2793 { (exit 1); exit 1; }; }
2794 fi
2795
2796else
2797
2798 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2806
2807fi;
2808
2809 eval "$ac_cv_use_libpng"
2810 if test "$no_cache" != 1; then
2811 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2812 fi
2813
2814 if test "$wxUSE_LIBPNG" = yes; then
2815 echo "$as_me:$LINENO: result: yes" >&5
2816echo "${ECHO_T}yes" >&6
2817 elif test "$wxUSE_LIBPNG" = no; then
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
2820 elif test "$wxUSE_LIBPNG" = sys; then
2821 echo "$as_me:$LINENO: result: system version" >&5
2822echo "${ECHO_T}system version" >&6
2823 elif test "$wxUSE_LIBPNG" = builtin; then
2824 echo "$as_me:$LINENO: result: builtin version" >&5
2825echo "${ECHO_T}builtin version" >&6
2826 else
2827 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2828echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2829 { (exit 1); exit 1; }; }
2830 fi
2831
2832
2833 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2834echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2835 no_cache=0
2836
2837# Check whether --with-libjpeg or --without-libjpeg was given.
2838if test "${with_libjpeg+set}" = set; then
2839 withval="$with_libjpeg"
2840
2841 if test "$withval" = yes; then
2842 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2843 elif test "$withval" = no; then
2844 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2845 elif test "$withval" = sys; then
2846 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2847 elif test "$withval" = builtin; then
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2849 else
2850 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2851echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2852 { (exit 1); exit 1; }; }
2853 fi
2854
2855else
2856
2857 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2865
2866fi;
2867
2868 eval "$ac_cv_use_libjpeg"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_LIBJPEG" = yes; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875echo "${ECHO_T}yes" >&6
2876 elif test "$wxUSE_LIBJPEG" = no; then
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879 elif test "$wxUSE_LIBJPEG" = sys; then
2880 echo "$as_me:$LINENO: result: system version" >&5
2881echo "${ECHO_T}system version" >&6
2882 elif test "$wxUSE_LIBJPEG" = builtin; then
2883 echo "$as_me:$LINENO: result: builtin version" >&5
2884echo "${ECHO_T}builtin version" >&6
2885 else
2886 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2887echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2888 { (exit 1); exit 1; }; }
2889 fi
2890
2891
2892 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2893echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2894 no_cache=0
2895
2896# Check whether --with-libtiff or --without-libtiff was given.
2897if test "${with_libtiff+set}" = set; then
2898 withval="$with_libtiff"
2899
2900 if test "$withval" = yes; then
2901 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2902 elif test "$withval" = no; then
2903 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2904 elif test "$withval" = sys; then
2905 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2906 elif test "$withval" = builtin; then
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2908 else
2909 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2910echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2911 { (exit 1); exit 1; }; }
2912 fi
2913
2914else
2915
2916 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2917 if test "x$LINE" != x ; then
2918 eval "DEFAULT_$LINE"
2919 else
2920 no_cache=1
2921 fi
2922
2923 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2924
2925fi;
2926
2927 eval "$ac_cv_use_libtiff"
2928 if test "$no_cache" != 1; then
2929 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2930 fi
2931
2932 if test "$wxUSE_LIBTIFF" = yes; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
2935 elif test "$wxUSE_LIBTIFF" = no; then
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
2938 elif test "$wxUSE_LIBTIFF" = sys; then
2939 echo "$as_me:$LINENO: result: system version" >&5
2940echo "${ECHO_T}system version" >&6
2941 elif test "$wxUSE_LIBTIFF" = builtin; then
2942 echo "$as_me:$LINENO: result: builtin version" >&5
2943echo "${ECHO_T}builtin version" >&6
2944 else
2945 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2946echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2947 { (exit 1); exit 1; }; }
2948 fi
2949
2950
2951 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2952echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2953 no_cache=0
2954
2955# Check whether --with-libxpm or --without-libxpm was given.
2956if test "${with_libxpm+set}" = set; then
2957 withval="$with_libxpm"
2958
2959 if test "$withval" = yes; then
2960 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2961 elif test "$withval" = no; then
2962 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2963 elif test "$withval" = sys; then
2964 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2965 elif test "$withval" = builtin; then
2966 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2967 else
2968 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2969echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2970 { (exit 1); exit 1; }; }
2971 fi
2972
2973else
2974
2975 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2983
2984fi;
2985
2986 eval "$ac_cv_use_libxpm"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_LIBXPM" = yes; then
2992 echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6
2994 elif test "$wxUSE_LIBXPM" = no; then
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997 elif test "$wxUSE_LIBXPM" = sys; then
2998 echo "$as_me:$LINENO: result: system version" >&5
2999echo "${ECHO_T}system version" >&6
3000 elif test "$wxUSE_LIBXPM" = builtin; then
3001 echo "$as_me:$LINENO: result: builtin version" >&5
3002echo "${ECHO_T}builtin version" >&6
3003 else
3004 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3005echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008
3009
3010 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3011echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3012 no_cache=0
3013
3014# Check whether --with-libmspack or --without-libmspack was given.
3015if test "${with_libmspack+set}" = set; then
3016 withval="$with_libmspack"
3017
3018 if test "$withval" = yes; then
3019 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3020 else
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3022 fi
3023
3024else
3025
3026 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3034
3035fi;
3036
3037 eval "$ac_cv_use_libmspack"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_LIBMSPACK" = yes; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044echo "${ECHO_T}yes" >&6
3045 else
3046 echo "$as_me:$LINENO: result: no" >&5
3047echo "${ECHO_T}no" >&6
3048 fi
3049
3050
3051 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3052echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3053 no_cache=0
3054
3055# Check whether --with-sdl or --without-sdl was given.
3056if test "${with_sdl+set}" = set; then
3057 withval="$with_sdl"
3058
3059 if test "$withval" = yes; then
3060 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3061 else
3062 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3063 fi
3064
3065else
3066
3067 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3068 if test "x$LINE" != x ; then
3069 eval "DEFAULT_$LINE"
3070 else
3071 no_cache=1
3072 fi
3073
3074 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3075
3076fi;
3077
3078 eval "$ac_cv_use_sdl"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_LIBSDL" = yes; then
3084 echo "$as_me:$LINENO: result: yes" >&5
3085echo "${ECHO_T}yes" >&6
3086 else
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
3089 fi
3090
3091
d1c38808
VZ
3092 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3093echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3094 no_cache=0
3095
3096# Check whether --with-gnomeprint or --without-gnomeprint was given.
3097if test "${with_gnomeprint+set}" = set; then
3098 withval="$with_gnomeprint"
3099
3100 if test "$withval" = yes; then
3101 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3102 else
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3104 fi
3105
3106else
3107
3108 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3109 if test "x$LINE" != x ; then
3110 eval "DEFAULT_$LINE"
3111 else
3112 no_cache=1
3113 fi
3114
3115 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3116
3117fi;
3118
3119 eval "$ac_cv_use_gnomeprint"
3120 if test "$no_cache" != 1; then
3121 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3122 fi
3123
3124 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3125 echo "$as_me:$LINENO: result: yes" >&5
3126echo "${ECHO_T}yes" >&6
3127 else
3128 echo "$as_me:$LINENO: result: no" >&5
3129echo "${ECHO_T}no" >&6
3130 fi
3131
3132
a848cd7e
SC
3133 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3134echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3135 no_cache=0
3136
3137# Check whether --with-opengl or --without-opengl was given.
3138if test "${with_opengl+set}" = set; then
3139 withval="$with_opengl"
3140
3141 if test "$withval" = yes; then
3142 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3143 else
3144 ac_cv_use_opengl='wxUSE_OPENGL=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3157
3158fi;
3159
3160 eval "$ac_cv_use_opengl"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_OPENGL" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 fi
3172
3173
3174fi
3175
3176
3177 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3178echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3179 no_cache=0
3180
3181# Check whether --with-dmalloc or --without-dmalloc was given.
3182if test "${with_dmalloc+set}" = set; then
3183 withval="$with_dmalloc"
3184
3185 if test "$withval" = yes; then
3186 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3187 else
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3189 fi
3190
3191else
3192
3193 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3194 if test "x$LINE" != x ; then
3195 eval "DEFAULT_$LINE"
3196 else
3197 no_cache=1
3198 fi
3199
3200 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3201
3202fi;
3203
3204 eval "$ac_cv_use_dmalloc"
3205 if test "$no_cache" != 1; then
3206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3207 fi
3208
3209 if test "$wxUSE_DMALLOC" = yes; then
3210 echo "$as_me:$LINENO: result: yes" >&5
3211echo "${ECHO_T}yes" >&6
3212 else
3213 echo "$as_me:$LINENO: result: no" >&5
3214echo "${ECHO_T}no" >&6
3215 fi
3216
3217
3218 echo "$as_me:$LINENO: checking for --with-regex" >&5
3219echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3220 no_cache=0
3221
3222# Check whether --with-regex or --without-regex was given.
3223if test "${with_regex+set}" = set; then
3224 withval="$with_regex"
3225
3226 if test "$withval" = yes; then
3227 ac_cv_use_regex='wxUSE_REGEX=yes'
3228 elif test "$withval" = no; then
3229 ac_cv_use_regex='wxUSE_REGEX=no'
3230 elif test "$withval" = sys; then
3231 ac_cv_use_regex='wxUSE_REGEX=sys'
3232 elif test "$withval" = builtin; then
3233 ac_cv_use_regex='wxUSE_REGEX=builtin'
3234 else
3235 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3236echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3237 { (exit 1); exit 1; }; }
3238 fi
3239
3240else
3241
3242 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3250
3251fi;
3252
3253 eval "$ac_cv_use_regex"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_REGEX" = yes; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260echo "${ECHO_T}yes" >&6
3261 elif test "$wxUSE_REGEX" = no; then
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264 elif test "$wxUSE_REGEX" = sys; then
3265 echo "$as_me:$LINENO: result: system version" >&5
3266echo "${ECHO_T}system version" >&6
3267 elif test "$wxUSE_REGEX" = builtin; then
3268 echo "$as_me:$LINENO: result: builtin version" >&5
3269echo "${ECHO_T}builtin version" >&6
3270 else
3271 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3272echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3273 { (exit 1); exit 1; }; }
3274 fi
3275
3276
3277 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3278echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3279 no_cache=0
3280
3281# Check whether --with-zlib or --without-zlib was given.
3282if test "${with_zlib+set}" = set; then
3283 withval="$with_zlib"
3284
3285 if test "$withval" = yes; then
3286 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3287 elif test "$withval" = no; then
3288 ac_cv_use_zlib='wxUSE_ZLIB=no'
3289 elif test "$withval" = sys; then
3290 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3291 elif test "$withval" = builtin; then
3292 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3293 else
3294 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3295echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3296 { (exit 1); exit 1; }; }
3297 fi
3298
3299else
3300
3301 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3302 if test "x$LINE" != x ; then
3303 eval "DEFAULT_$LINE"
3304 else
3305 no_cache=1
3306 fi
3307
3308 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3309
3310fi;
3311
3312 eval "$ac_cv_use_zlib"
3313 if test "$no_cache" != 1; then
3314 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3315 fi
3316
3317 if test "$wxUSE_ZLIB" = yes; then
3318 echo "$as_me:$LINENO: result: yes" >&5
3319echo "${ECHO_T}yes" >&6
3320 elif test "$wxUSE_ZLIB" = no; then
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323 elif test "$wxUSE_ZLIB" = sys; then
3324 echo "$as_me:$LINENO: result: system version" >&5
3325echo "${ECHO_T}system version" >&6
3326 elif test "$wxUSE_ZLIB" = builtin; then
3327 echo "$as_me:$LINENO: result: builtin version" >&5
3328echo "${ECHO_T}builtin version" >&6
3329 else
3330 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3331echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3332 { (exit 1); exit 1; }; }
3333 fi
3334
3335
3336 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3337echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3338 no_cache=0
3339
3340# Check whether --with-odbc or --without-odbc was given.
3341if test "${with_odbc+set}" = set; then
3342 withval="$with_odbc"
3343
3344 if test "$withval" = yes; then
3345 ac_cv_use_odbc='wxUSE_ODBC=yes'
3346 elif test "$withval" = no; then
3347 ac_cv_use_odbc='wxUSE_ODBC=no'
3348 elif test "$withval" = sys; then
3349 ac_cv_use_odbc='wxUSE_ODBC=sys'
3350 elif test "$withval" = builtin; then
3351 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3352 else
3353 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3354echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3355 { (exit 1); exit 1; }; }
3356 fi
3357
3358else
3359
3360 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3361 if test "x$LINE" != x ; then
3362 eval "DEFAULT_$LINE"
3363 else
3364 no_cache=1
3365 fi
3366
3367 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3368
3369fi;
3370
3371 eval "$ac_cv_use_odbc"
3372 if test "$no_cache" != 1; then
3373 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3374 fi
3375
3376 if test "$wxUSE_ODBC" = yes; then
3377 echo "$as_me:$LINENO: result: yes" >&5
3378echo "${ECHO_T}yes" >&6
3379 elif test "$wxUSE_ODBC" = no; then
3380 echo "$as_me:$LINENO: result: no" >&5
3381echo "${ECHO_T}no" >&6
3382 elif test "$wxUSE_ODBC" = sys; then
3383 echo "$as_me:$LINENO: result: system version" >&5
3384echo "${ECHO_T}system version" >&6
3385 elif test "$wxUSE_ODBC" = builtin; then
3386 echo "$as_me:$LINENO: result: builtin version" >&5
3387echo "${ECHO_T}builtin version" >&6
3388 else
3389 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3390echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3391 { (exit 1); exit 1; }; }
3392 fi
3393
3394
3395 echo "$as_me:$LINENO: checking for --with-expat" >&5
3396echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3397 no_cache=0
3398
3399# Check whether --with-expat or --without-expat was given.
3400if test "${with_expat+set}" = set; then
3401 withval="$with_expat"
3402
3403 if test "$withval" = yes; then
3404 ac_cv_use_expat='wxUSE_EXPAT=yes'
3405 elif test "$withval" = no; then
3406 ac_cv_use_expat='wxUSE_EXPAT=no'
3407 elif test "$withval" = sys; then
3408 ac_cv_use_expat='wxUSE_EXPAT=sys'
3409 elif test "$withval" = builtin; then
3410 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3411 else
3412 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3413echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3414 { (exit 1); exit 1; }; }
3415 fi
3416
3417else
3418
3419 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3427
3428fi;
3429
3430 eval "$ac_cv_use_expat"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_EXPAT" = yes; then
3436 echo "$as_me:$LINENO: result: yes" >&5
3437echo "${ECHO_T}yes" >&6
3438 elif test "$wxUSE_EXPAT" = no; then
3439 echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441 elif test "$wxUSE_EXPAT" = sys; then
3442 echo "$as_me:$LINENO: result: system version" >&5
3443echo "${ECHO_T}system version" >&6
3444 elif test "$wxUSE_EXPAT" = builtin; then
3445 echo "$as_me:$LINENO: result: builtin version" >&5
3446echo "${ECHO_T}builtin version" >&6
3447 else
3448 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3449echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3450 { (exit 1); exit 1; }; }
3451 fi
3452
3453
3454
3455
3456 enablestring=
3457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3458echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3459 no_cache=0
3460 # Check whether --enable-shared or --disable-shared was given.
3461if test "${enable_shared+set}" = set; then
3462 enableval="$enable_shared"
3463
3464 if test "$enableval" = yes; then
3465 ac_cv_use_shared='wxUSE_SHARED=yes'
3466 else
3467 ac_cv_use_shared='wxUSE_SHARED=no'
3468 fi
3469
3470else
3471
3472 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3473 if test "x$LINE" != x ; then
3474 eval "DEFAULT_$LINE"
3475 else
3476 no_cache=1
3477 fi
3478
3479 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3480
3481fi;
3482
3483 eval "$ac_cv_use_shared"
3484 if test "$no_cache" != 1; then
3485 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3486 fi
3487
3488 if test "$wxUSE_SHARED" = yes; then
3489 echo "$as_me:$LINENO: result: yes" >&5
3490echo "${ECHO_T}yes" >&6
3491 else
3492 echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494 fi
3495
3496
3497 enablestring=
3498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3499echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3500 no_cache=0
3501 # Check whether --enable-optimise or --disable-optimise was given.
3502if test "${enable_optimise+set}" = set; then
3503 enableval="$enable_optimise"
3504
3505 if test "$enableval" = yes; then
3506 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3507 else
3508 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3509 fi
3510
3511else
3512
3513 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3514 if test "x$LINE" != x ; then
3515 eval "DEFAULT_$LINE"
3516 else
3517 no_cache=1
3518 fi
3519
3520 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3521
3522fi;
3523
3524 eval "$ac_cv_use_optimise"
3525 if test "$no_cache" != 1; then
3526 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3527 fi
3528
3529 if test "$wxUSE_OPTIMISE" = yes; then
3530 echo "$as_me:$LINENO: result: yes" >&5
3531echo "${ECHO_T}yes" >&6
3532 else
3533 echo "$as_me:$LINENO: result: no" >&5
3534echo "${ECHO_T}no" >&6
3535 fi
3536
3537
3538 enablestring=
3539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3540echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3541 no_cache=0
3542 # Check whether --enable-debug or --disable-debug was given.
3543if test "${enable_debug+set}" = set; then
3544 enableval="$enable_debug"
3545
3546 if test "$enableval" = yes; then
3547 ac_cv_use_debug='wxUSE_DEBUG=yes'
3548 else
3549 ac_cv_use_debug='wxUSE_DEBUG=no'
3550 fi
3551
3552else
3553
3554 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3555 if test "x$LINE" != x ; then
3556 eval "DEFAULT_$LINE"
3557 else
3558 no_cache=1
3559 fi
3560
3561 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3562
3563fi;
3564
3565 eval "$ac_cv_use_debug"
3566 if test "$no_cache" != 1; then
3567 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3568 fi
3569
3570 if test "$wxUSE_DEBUG" = yes; then
3571 echo "$as_me:$LINENO: result: yes" >&5
3572echo "${ECHO_T}yes" >&6
3573 else
3574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
3576 fi
3577
3578
3579 enablestring=
3580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3581echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3582 no_cache=0
3583 # Check whether --enable-stl or --disable-stl was given.
3584if test "${enable_stl+set}" = set; then
3585 enableval="$enable_stl"
3586
3587 if test "$enableval" = yes; then
3588 ac_cv_use_stl='wxUSE_STL=yes'
3589 else
3590 ac_cv_use_stl='wxUSE_STL=no'
3591 fi
3592
3593else
3594
3595 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3596 if test "x$LINE" != x ; then
3597 eval "DEFAULT_$LINE"
3598 else
3599 no_cache=1
3600 fi
3601
3602 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3603
3604fi;
3605
3606 eval "$ac_cv_use_stl"
3607 if test "$no_cache" != 1; then
3608 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3609 fi
3610
3611 if test "$wxUSE_STL" = yes; then
3612 echo "$as_me:$LINENO: result: yes" >&5
3613echo "${ECHO_T}yes" >&6
3614 else
3615 echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6
3617 fi
3618
3619if test "$USE_OS2" = "1"; then
3620
3621 enablestring=
3622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3623echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3624 no_cache=0
3625 # Check whether --enable-omf or --disable-omf was given.
3626if test "${enable_omf+set}" = set; then
3627 enableval="$enable_omf"
3628
3629 if test "$enableval" = yes; then
3630 ac_cv_use_omf='wxUSE_OMF=yes'
3631 else
3632 ac_cv_use_omf='wxUSE_OMF=no'
3633 fi
3634
3635else
3636
3637 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3638 if test "x$LINE" != x ; then
3639 eval "DEFAULT_$LINE"
3640 else
3641 no_cache=1
3642 fi
3643
3644 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3645
3646fi;
3647
3648 eval "$ac_cv_use_omf"
3649 if test "$no_cache" != 1; then
3650 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3651 fi
3652
3653 if test "$wxUSE_OMF" = yes; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no" >&5
3658echo "${ECHO_T}no" >&6
3659 fi
3660
3661fi
3662
3663if test "$wxUSE_DEBUG" = "yes"; then
3664 DEFAULT_wxUSE_DEBUG_FLAG=yes
3665 DEFAULT_wxUSE_DEBUG_INFO=yes
3666 BUILD=debug
3667elif test "$wxUSE_DEBUG" = "no"; then
3668 DEFAULT_wxUSE_DEBUG_FLAG=no
3669 DEFAULT_wxUSE_DEBUG_INFO=no
3670 BUILD=release
3671fi
3672
3673
3674 enablestring=
3675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3676echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3677 no_cache=0
3678 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3679if test "${enable_debug_flag+set}" = set; then
3680 enableval="$enable_debug_flag"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3684 else
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3698
3699fi;
3700
3701 eval "$ac_cv_use_debug_flag"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_DEBUG_FLAG" = yes; then
3707 echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712 fi
3713
3714
3715 enablestring=
3716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3717echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3718 no_cache=0
3719 # Check whether --enable-debug_info or --disable-debug_info was given.
3720if test "${enable_debug_info+set}" = set; then
3721 enableval="$enable_debug_info"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3725 else
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3739
3740fi;
3741
3742 eval "$ac_cv_use_debug_info"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DEBUG_INFO" = yes; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752echo "${ECHO_T}no" >&6
3753 fi
3754
3755
3756 enablestring=
3757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3758echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3759 no_cache=0
3760 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3761if test "${enable_debug_gdb+set}" = set; then
3762 enableval="$enable_debug_gdb"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3766 else
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3768 fi
3769
3770else
3771
3772 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3780
3781fi;
3782
3783 eval "$ac_cv_use_debug_gdb"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_DEBUG_GDB" = yes; then
3789 echo "$as_me:$LINENO: result: yes" >&5
3790echo "${ECHO_T}yes" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794 fi
3795
3796
3797 enablestring=
3798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3799echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3800 no_cache=0
3801 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3802if test "${enable_debug_cntxt+set}" = set; then
3803 enableval="$enable_debug_cntxt"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3807 else
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3809 fi
3810
3811else
3812
3813 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3821
3822fi;
3823
3824 eval "$ac_cv_use_debug_cntxt"
3825 if test "$no_cache" != 1; then
3826 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3827 fi
3828
3829 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831echo "${ECHO_T}yes" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834echo "${ECHO_T}no" >&6
3835 fi
3836
3837
3838 enablestring=
3839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3840echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3841 no_cache=0
3842 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3843if test "${enable_mem_tracing+set}" = set; then
3844 enableval="$enable_mem_tracing"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3848 else
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3850 fi
3851
3852else
3853
3854 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3862
3863fi;
3864
3865 eval "$ac_cv_use_mem_tracing"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_MEM_TRACING" = yes; then
3871 echo "$as_me:$LINENO: result: yes" >&5
3872echo "${ECHO_T}yes" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876 fi
3877
3878
3879 enablestring=
3880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3881echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3882 no_cache=0
3883 # Check whether --enable-profile or --disable-profile was given.
3884if test "${enable_profile+set}" = set; then
3885 enableval="$enable_profile"
3886
3887 if test "$enableval" = yes; then
3888 ac_cv_use_profile='wxUSE_PROFILE=yes'
3889 else
3890 ac_cv_use_profile='wxUSE_PROFILE=no'
3891 fi
3892
3893else
3894
3895 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3903
3904fi;
3905
3906 eval "$ac_cv_use_profile"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_PROFILE" = yes; then
3912 echo "$as_me:$LINENO: result: yes" >&5
3913echo "${ECHO_T}yes" >&6
3914 else
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
3917 fi
3918
3919
3920 enablestring=
3921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3922echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3923 no_cache=0
3924 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3925if test "${enable_no_rtti+set}" = set; then
3926 enableval="$enable_no_rtti"
3927
3928 if test "$enableval" = yes; then
3929 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3930 else
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3932 fi
3933
3934else
3935
3936 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3944
3945fi;
3946
3947 eval "$ac_cv_use_no_rtti"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_NO_RTTI" = yes; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954echo "${ECHO_T}yes" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
3958 fi
3959
3960
3961 enablestring=
3962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3963echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3964 no_cache=0
3965 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3966if test "${enable_no_exceptions+set}" = set; then
3967 enableval="$enable_no_exceptions"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3971 else
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3973 fi
3974
3975else
3976
3977 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3985
3986fi;
3987
3988 eval "$ac_cv_use_no_exceptions"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3994 echo "$as_me:$LINENO: result: yes" >&5
3995echo "${ECHO_T}yes" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998echo "${ECHO_T}no" >&6
3999 fi
4000
4001
4002 enablestring=
4003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4004echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4005 no_cache=0
4006 # Check whether --enable-permissive or --disable-permissive was given.
4007if test "${enable_permissive+set}" = set; then
4008 enableval="$enable_permissive"
4009
4010 if test "$enableval" = yes; then
4011 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4012 else
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4014 fi
4015
4016else
4017
4018 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4019 if test "x$LINE" != x ; then
4020 eval "DEFAULT_$LINE"
4021 else
4022 no_cache=1
4023 fi
4024
4025 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4026
4027fi;
4028
4029 eval "$ac_cv_use_permissive"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_PERMISSIVE" = yes; then
4035 echo "$as_me:$LINENO: result: yes" >&5
4036echo "${ECHO_T}yes" >&6
4037 else
4038 echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6
4040 fi
4041
4042
4043 enablestring=
4044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4045echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4046 no_cache=0
4047 # Check whether --enable-no_deps or --disable-no_deps was given.
4048if test "${enable_no_deps+set}" = set; then
4049 enableval="$enable_no_deps"
4050
4051 if test "$enableval" = yes; then
4052 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4053 else
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4055 fi
4056
4057else
4058
4059 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4067
4068fi;
4069
4070 eval "$ac_cv_use_no_deps"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_NO_DEPS" = yes; then
4076 echo "$as_me:$LINENO: result: yes" >&5
4077echo "${ECHO_T}yes" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080echo "${ECHO_T}no" >&6
4081 fi
4082
4083
4084
4085 enablestring=
4086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4087echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4088 no_cache=0
4089 # Check whether --enable-compat22 or --disable-compat22 was given.
4090if test "${enable_compat22+set}" = set; then
4091 enableval="$enable_compat22"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4095 else
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4097 fi
4098
4099else
4100
4101 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4109
4110fi;
4111
4112 eval "$ac_cv_use_compat22"
4113 if test "$no_cache" != 1; then
4114 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4115 fi
4116
4117 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4118 echo "$as_me:$LINENO: result: yes" >&5
4119echo "${ECHO_T}yes" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123 fi
4124
4125
4126 enablestring=disable
4127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4128echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4129 no_cache=0
4130 # Check whether --enable-compat24 or --disable-compat24 was given.
4131if test "${enable_compat24+set}" = set; then
4132 enableval="$enable_compat24"
4133
4134 if test "$enableval" = yes; then
4135 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4136 else
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4138 fi
4139
4140else
4141
4142 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
4149 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4150
4151fi;
4152
4153 eval "$ac_cv_use_compat24"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4159 echo "$as_me:$LINENO: result: yes" >&5
4160echo "${ECHO_T}yes" >&6
4161 else
4162 echo "$as_me:$LINENO: result: no" >&5
4163echo "${ECHO_T}no" >&6
4164 fi
4165
4166
ffa0583f
RL
4167
4168 enablestring=
4169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4170echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4171 no_cache=0
4172 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4173if test "${enable_rpath+set}" = set; then
4174 enableval="$enable_rpath"
ffa0583f
RL
4175
4176 if test "$enableval" = yes; then
4177 ac_cv_use_rpath='wxUSE_RPATH=yes'
4178 else
4179 ac_cv_use_rpath='wxUSE_RPATH=no'
4180 fi
4181
4182else
4183
4184 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4185 if test "x$LINE" != x ; then
4186 eval "DEFAULT_$LINE"
4187 else
4188 no_cache=1
4189 fi
4190
4191 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4192
a848cd7e
SC
4193fi;
4194
ffa0583f
RL
4195 eval "$ac_cv_use_rpath"
4196 if test "$no_cache" != 1; then
4197 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4198 fi
4199
4200 if test "$wxUSE_RPATH" = yes; then
4201 echo "$as_me:$LINENO: result: yes" >&5
4202echo "${ECHO_T}yes" >&6
4203 else
4204 echo "$as_me:$LINENO: result: no" >&5
4205echo "${ECHO_T}no" >&6
4206 fi
4207
a848cd7e
SC
4208
4209
4210
4211
4212 enablestring=
4213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4214echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4215 no_cache=0
4216 # Check whether --enable-intl or --disable-intl was given.
4217if test "${enable_intl+set}" = set; then
4218 enableval="$enable_intl"
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_intl='wxUSE_INTL=yes'
4222 else
4223 ac_cv_use_intl='wxUSE_INTL=no'
4224 fi
4225
4226else
4227
4228 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4236
4237fi;
4238
4239 eval "$ac_cv_use_intl"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_INTL" = yes; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247 else
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250 fi
4251
4252
4253 enablestring=
4254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4255echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4256 no_cache=0
4257 # Check whether --enable-config or --disable-config was given.
4258if test "${enable_config+set}" = set; then
4259 enableval="$enable_config"
4260
4261 if test "$enableval" = yes; then
4262 ac_cv_use_config='wxUSE_CONFIG=yes'
4263 else
4264 ac_cv_use_config='wxUSE_CONFIG=no'
4265 fi
4266
4267else
4268
4269 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4277
4278fi;
4279
4280 eval "$ac_cv_use_config"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_CONFIG" = yes; then
4286 echo "$as_me:$LINENO: result: yes" >&5
4287echo "${ECHO_T}yes" >&6
4288 else
4289 echo "$as_me:$LINENO: result: no" >&5
4290echo "${ECHO_T}no" >&6
4291 fi
4292
4293
4294
4295 enablestring=
4296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4297echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4298 no_cache=0
4299 # Check whether --enable-protocols or --disable-protocols was given.
4300if test "${enable_protocols+set}" = set; then
4301 enableval="$enable_protocols"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4305 else
4306 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4307 fi
4308
4309else
4310
4311 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4319
4320fi;
4321
4322 eval "$ac_cv_use_protocols"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_PROTOCOL" = yes; then
4328 echo "$as_me:$LINENO: result: yes" >&5
4329echo "${ECHO_T}yes" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333 fi
4334
4335
4336 enablestring=
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4338echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4339 no_cache=0
4340 # Check whether --enable-ftp or --disable-ftp was given.
4341if test "${enable_ftp+set}" = set; then
4342 enableval="$enable_ftp"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4346 else
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4360
4361fi;
4362
4363 eval "$ac_cv_use_ftp"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374 fi
4375
4376
4377 enablestring=
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4379echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4380 no_cache=0
4381 # Check whether --enable-http or --disable-http was given.
4382if test "${enable_http+set}" = set; then
4383 enableval="$enable_http"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4387 else
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4401
4402fi;
4403
4404 eval "$ac_cv_use_http"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411echo "${ECHO_T}yes" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415 fi
4416
4417
4418 enablestring=
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4421 no_cache=0
4422 # Check whether --enable-fileproto or --disable-fileproto was given.
4423if test "${enable_fileproto+set}" = set; then
4424 enableval="$enable_fileproto"
4425
4426 if test "$enableval" = yes; then
4427 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4428 else
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4430 fi
4431
4432else
4433
4434 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
4441 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4442
4443fi;
4444
4445 eval "$ac_cv_use_fileproto"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452echo "${ECHO_T}yes" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
4456 fi
4457
4458
4459 enablestring=
4460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4461echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4462 no_cache=0
4463 # Check whether --enable-sockets or --disable-sockets was given.
4464if test "${enable_sockets+set}" = set; then
4465 enableval="$enable_sockets"
4466
4467 if test "$enableval" = yes; then
4468 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4469 else
4470 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4471 fi
4472
4473else
4474
4475 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4483
4484fi;
4485
4486 eval "$ac_cv_use_sockets"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SOCKETS" = yes; then
4492 echo "$as_me:$LINENO: result: yes" >&5
4493echo "${ECHO_T}yes" >&6
4494 else
4495 echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
4497 fi
4498
4499
4500 enablestring=
4501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4502echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4503 no_cache=0
4504 # Check whether --enable-ole or --disable-ole was given.
4505if test "${enable_ole+set}" = set; then
4506 enableval="$enable_ole"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_ole='wxUSE_OLE=yes'
4510 else
4511 ac_cv_use_ole='wxUSE_OLE=no'
4512 fi
4513
4514else
4515
4516 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4524
4525fi;
4526
4527 eval "$ac_cv_use_ole"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_OLE" = yes; then
4533 echo "$as_me:$LINENO: result: yes" >&5
4534echo "${ECHO_T}yes" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6
4538 fi
4539
4540
4541 enablestring=
4542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4543echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4544 no_cache=0
4545 # Check whether --enable-dataobj or --disable-dataobj was given.
4546if test "${enable_dataobj+set}" = set; then
4547 enableval="$enable_dataobj"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4551 else
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4565
4566fi;
4567
4568 eval "$ac_cv_use_dataobj"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_DATAOBJ" = yes; then
4574 echo "$as_me:$LINENO: result: yes" >&5
4575echo "${ECHO_T}yes" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
4579 fi
4580
4581
4582
4583 enablestring=
4584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4585echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4586 no_cache=0
4587 # Check whether --enable-ipc or --disable-ipc was given.
4588if test "${enable_ipc+set}" = set; then
4589 enableval="$enable_ipc"
4590
4591 if test "$enableval" = yes; then
4592 ac_cv_use_ipc='wxUSE_IPC=yes'
4593 else
4594 ac_cv_use_ipc='wxUSE_IPC=no'
4595 fi
4596
4597else
4598
4599 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4600 if test "x$LINE" != x ; then
4601 eval "DEFAULT_$LINE"
4602 else
4603 no_cache=1
4604 fi
4605
4606 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4607
4608fi;
4609
4610 eval "$ac_cv_use_ipc"
4611 if test "$no_cache" != 1; then
4612 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4613 fi
4614
4615 if test "$wxUSE_IPC" = yes; then
4616 echo "$as_me:$LINENO: result: yes" >&5
4617echo "${ECHO_T}yes" >&6
4618 else
4619 echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
4621 fi
4622
4623
4624
4625 enablestring=
4626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4627echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4628 no_cache=0
4629 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4630if test "${enable_apple_ieee+set}" = set; then
4631 enableval="$enable_apple_ieee"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4635 else
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4637 fi
4638
4639else
4640
4641 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4649
4650fi;
4651
4652 eval "$ac_cv_use_apple_ieee"
4653 if test "$no_cache" != 1; then
4654 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4655 fi
4656
4657 if test "$wxUSE_APPLE_IEEE" = yes; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
4660 else
4661 echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6
4663 fi
4664
4665
4666 enablestring=
4667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4668echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4669 no_cache=0
4670 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4671if test "${enable_catch_segvs+set}" = set; then
4672 enableval="$enable_catch_segvs"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4676 else
4677 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4678 fi
4679
4680else
4681
4682 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4690
4691fi;
4692
4693 eval "$ac_cv_use_catch_segvs"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4699 echo "$as_me:$LINENO: result: yes" >&5
4700echo "${ECHO_T}yes" >&6
4701 else
4702 echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704 fi
4705
4706
4707 enablestring=
4708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4709echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4710 no_cache=0
4711 # Check whether --enable-cmdline or --disable-cmdline was given.
4712if test "${enable_cmdline+set}" = set; then
4713 enableval="$enable_cmdline"
4714
4715 if test "$enableval" = yes; then
4716 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4717 else
4718 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4719 fi
4720
4721else
4722
4723 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4724 if test "x$LINE" != x ; then
4725 eval "DEFAULT_$LINE"
4726 else
4727 no_cache=1
4728 fi
4729
4730 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4731
4732fi;
4733
4734 eval "$ac_cv_use_cmdline"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4737 fi
4738
4739 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4740 echo "$as_me:$LINENO: result: yes" >&5
4741echo "${ECHO_T}yes" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
4745 fi
4746
4747
4748 enablestring=
4749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4750echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4751 no_cache=0
4752 # Check whether --enable-datetime or --disable-datetime was given.
4753if test "${enable_datetime+set}" = set; then
4754 enableval="$enable_datetime"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4758 else
4759 ac_cv_use_datetime='wxUSE_DATETIME=no'
4760 fi
4761
4762else
4763
4764 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4772
4773fi;
4774
4775 eval "$ac_cv_use_datetime"
4776 if test "$no_cache" != 1; then
4777 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4778 fi
4779
4780 if test "$wxUSE_DATETIME" = yes; then
4781 echo "$as_me:$LINENO: result: yes" >&5
4782echo "${ECHO_T}yes" >&6
4783 else
4784 echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
4786 fi
4787
4788
4789 enablestring=
4790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4791echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4792 no_cache=0
4793 # Check whether --enable-dialupman or --disable-dialupman was given.
4794if test "${enable_dialupman+set}" = set; then
4795 enableval="$enable_dialupman"
4796
4797 if test "$enableval" = yes; then
4798 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4799 else
4800 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4801 fi
4802
4803else
4804
4805 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
4812 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4813
4814fi;
4815
4816 eval "$ac_cv_use_dialupman"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4822 echo "$as_me:$LINENO: result: yes" >&5
4823echo "${ECHO_T}yes" >&6
4824 else
4825 echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6
4827 fi
4828
4829
4830 enablestring=
4831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4832echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4833 no_cache=0
4834 # Check whether --enable-dynlib or --disable-dynlib was given.
4835if test "${enable_dynlib+set}" = set; then
4836 enableval="$enable_dynlib"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4840 else
4841 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4842 fi
4843
4844else
4845
4846 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4854
4855fi;
4856
4857 eval "$ac_cv_use_dynlib"
4858 if test "$no_cache" != 1; then
4859 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4860 fi
4861
4862 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4863 echo "$as_me:$LINENO: result: yes" >&5
4864echo "${ECHO_T}yes" >&6
4865 else
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868 fi
4869
4870
4871 enablestring=
4872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4873echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4874 no_cache=0
4875 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4876if test "${enable_dynamicloader+set}" = set; then
4877 enableval="$enable_dynamicloader"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4881 else
4882 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4883 fi
4884
4885else
4886
4887 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4895
4896fi;
4897
4898 eval "$ac_cv_use_dynamicloader"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905echo "${ECHO_T}yes" >&6
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6
4909 fi
4910
4911
4912 enablestring=
4913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4914echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4915 no_cache=0
4916 # Check whether --enable-exceptions or --disable-exceptions was given.
4917if test "${enable_exceptions+set}" = set; then
4918 enableval="$enable_exceptions"
4919
4920 if test "$enableval" = yes; then
4921 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4922 else
4923 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4924 fi
4925
4926else
4927
4928 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4936
4937fi;
4938
4939 eval "$ac_cv_use_exceptions"
4940 if test "$no_cache" != 1; then
4941 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4942 fi
4943
4944 if test "$wxUSE_EXCEPTIONS" = yes; then
4945 echo "$as_me:$LINENO: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6
4950 fi
4951
4952
4953 enablestring=
4954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4955echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4956 no_cache=0
4957 # Check whether --enable-ffile or --disable-ffile was given.
4958if test "${enable_ffile+set}" = set; then
4959 enableval="$enable_ffile"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_ffile='wxUSE_FFILE=yes'
4963 else
4964 ac_cv_use_ffile='wxUSE_FFILE=no'
4965 fi
4966
4967else
4968
4969 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4977
4978fi;
4979
4980 eval "$ac_cv_use_ffile"
4981 if test "$no_cache" != 1; then
4982 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4983 fi
4984
4985 if test "$wxUSE_FFILE" = yes; then
4986 echo "$as_me:$LINENO: result: yes" >&5
4987echo "${ECHO_T}yes" >&6
4988 else
4989 echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
4991 fi
4992
4993
4994 enablestring=
4995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4996echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4997 no_cache=0
4998 # Check whether --enable-file or --disable-file was given.
4999if test "${enable_file+set}" = set; then
5000 enableval="$enable_file"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_file='wxUSE_FILE=yes'
5004 else
5005 ac_cv_use_file='wxUSE_FILE=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5018
5019fi;
5020
5021 eval "$ac_cv_use_file"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_FILE" = yes; then
5027 echo "$as_me:$LINENO: result: yes" >&5
5028echo "${ECHO_T}yes" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032 fi
5033
5034
5035 enablestring=
5036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5037echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5038 no_cache=0
5039 # Check whether --enable-filesystem or --disable-filesystem was given.
5040if test "${enable_filesystem+set}" = set; then
5041 enableval="$enable_filesystem"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5045 else
5046 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5047 fi
5048
5049else
5050
5051 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5059
5060fi;
5061
5062 eval "$ac_cv_use_filesystem"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_FILESYSTEM" = yes; then
5068 echo "$as_me:$LINENO: result: yes" >&5
5069echo "${ECHO_T}yes" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073 fi
5074
5075
5076 enablestring=
5077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5078echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5079 no_cache=0
5080 # Check whether --enable-fontmap or --disable-fontmap was given.
5081if test "${enable_fontmap+set}" = set; then
5082 enableval="$enable_fontmap"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5086 else
5087 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5088 fi
5089
5090else
5091
5092 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5100
5101fi;
5102
5103 eval "$ac_cv_use_fontmap"
5104 if test "$no_cache" != 1; then
5105 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5106 fi
5107
5108 if test "$wxUSE_FONTMAP" = yes; then
5109 echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114 fi
5115
5116
5117 enablestring=
5118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5119echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5120 no_cache=0
5121 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5122if test "${enable_fs_inet+set}" = set; then
5123 enableval="$enable_fs_inet"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5127 else
5128 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5129 fi
5130
5131else
5132
5133 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5141
5142fi;
5143
5144 eval "$ac_cv_use_fs_inet"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_FS_INET" = yes; then
5150 echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152 else
5153 echo "$as_me:$LINENO: result: no" >&5
5154echo "${ECHO_T}no" >&6
5155 fi
5156
5157
5158 enablestring=
5159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5160echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5161 no_cache=0
5162 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5163if test "${enable_fs_zip+set}" = set; then
5164 enableval="$enable_fs_zip"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5168 else
5169 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5182
5183fi;
5184
5185 eval "$ac_cv_use_fs_zip"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_FS_ZIP" = yes; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192echo "${ECHO_T}yes" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196 fi
5197
5198
5199 enablestring=
5200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5201echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5202 no_cache=0
5203 # Check whether --enable-geometry or --disable-geometry was given.
5204if test "${enable_geometry+set}" = set; then
5205 enableval="$enable_geometry"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5209 else
5210 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5211 fi
5212
5213else
5214
5215 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5223
5224fi;
5225
5226 eval "$ac_cv_use_geometry"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_GEOMETRY" = yes; then
5232 echo "$as_me:$LINENO: result: yes" >&5
5233echo "${ECHO_T}yes" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237 fi
5238
5239
5240 enablestring=
5241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5242echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5243 no_cache=0
5244 # Check whether --enable-log or --disable-log was given.
5245if test "${enable_log+set}" = set; then
5246 enableval="$enable_log"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_log='wxUSE_LOG=yes'
5250 else
5251 ac_cv_use_log='wxUSE_LOG=no'
5252 fi
5253
5254else
5255
5256 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5264
5265fi;
5266
5267 eval "$ac_cv_use_log"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_LOG" = yes; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
5278 fi
5279
5280
5281 enablestring=
5282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5283echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5284 no_cache=0
5285 # Check whether --enable-longlong or --disable-longlong was given.
5286if test "${enable_longlong+set}" = set; then
5287 enableval="$enable_longlong"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5291 else
5292 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5305
5306fi;
5307
5308 eval "$ac_cv_use_longlong"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_LONGLONG" = yes; then
5314 echo "$as_me:$LINENO: result: yes" >&5
5315echo "${ECHO_T}yes" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319 fi
5320
5321
5322 enablestring=
5323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5324echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5325 no_cache=0
5326 # Check whether --enable-mimetype or --disable-mimetype was given.
5327if test "${enable_mimetype+set}" = set; then
5328 enableval="$enable_mimetype"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5332 else
5333 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5334 fi
5335
5336else
5337
5338 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5346
5347fi;
5348
5349 eval "$ac_cv_use_mimetype"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_MIMETYPE" = yes; then
5355 echo "$as_me:$LINENO: result: yes" >&5
5356echo "${ECHO_T}yes" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360 fi
5361
5362
5363 enablestring=
5364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5365echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5366 no_cache=0
5367 # Check whether --enable-mslu or --disable-mslu was given.
5368if test "${enable_mslu+set}" = set; then
5369 enableval="$enable_mslu"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5373 else
5374 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5375 fi
5376
5377else
5378
5379 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5387
5388fi;
5389
5390 eval "$ac_cv_use_mslu"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_UNICODE_MSLU" = yes; then
5396 echo "$as_me:$LINENO: result: yes" >&5
5397echo "${ECHO_T}yes" >&6
5398 else
5399 echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401 fi
5402
5403
5404 enablestring=
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5406echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5407 no_cache=0
5408 # Check whether --enable-snglinst or --disable-snglinst was given.
5409if test "${enable_snglinst+set}" = set; then
5410 enableval="$enable_snglinst"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5414 else
5415 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5416 fi
5417
5418else
5419
5420 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5428
5429fi;
5430
5431 eval "$ac_cv_use_snglinst"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5437 echo "$as_me:$LINENO: result: yes" >&5
5438echo "${ECHO_T}yes" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441echo "${ECHO_T}no" >&6
5442 fi
5443
5444
5445 enablestring=
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5447echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5448 no_cache=0
5449 # Check whether --enable-streams or --disable-streams was given.
5450if test "${enable_streams+set}" = set; then
5451 enableval="$enable_streams"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_streams='wxUSE_STREAMS=yes'
5455 else
5456 ac_cv_use_streams='wxUSE_STREAMS=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5469
5470fi;
5471
5472 eval "$ac_cv_use_streams"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_STREAMS" = yes; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479echo "${ECHO_T}yes" >&6
5480 else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483 fi
5484
5485
5486 enablestring=
5487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5488echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5489 no_cache=0
5490 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5491if test "${enable_std_iostreams+set}" = set; then
5492 enableval="$enable_std_iostreams"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5496 else
5497 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5510
5511fi;
5512
5513 eval "$ac_cv_use_std_iostreams"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_STD_IOSTREAM" = yes; then
5519 echo "$as_me:$LINENO: result: yes" >&5
5520echo "${ECHO_T}yes" >&6
5521 else
5522 echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524 fi
5525
5526
5527 enablestring=
5528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5529echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5530 no_cache=0
5531 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5532if test "${enable_stopwatch+set}" = set; then
5533 enableval="$enable_stopwatch"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5537 else
5538 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5539 fi
5540
5541else
5542
5543 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5551
5552fi;
5553
5554 eval "$ac_cv_use_stopwatch"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_STOPWATCH" = yes; then
5560 echo "$as_me:$LINENO: result: yes" >&5
5561echo "${ECHO_T}yes" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565 fi
5566
5567
5568 enablestring=
5569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5570echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5571 no_cache=0
5572 # Check whether --enable-system_options or --disable-system_options was given.
5573if test "${enable_system_options+set}" = set; then
5574 enableval="$enable_system_options"
5575
5576 if test "$enableval" = yes; then
5577 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5578 else
5579 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5580 fi
5581
5582else
5583
5584 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5585 if test "x$LINE" != x ; then
5586 eval "DEFAULT_$LINE"
5587 else
5588 no_cache=1
5589 fi
5590
5591 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5592
5593fi;
5594
5595 eval "$ac_cv_use_system_options"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5601 echo "$as_me:$LINENO: result: yes" >&5
5602echo "${ECHO_T}yes" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606 fi
5607
5608
5609 enablestring=
5610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5611echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5612 no_cache=0
5613 # Check whether --enable-textbuf or --disable-textbuf was given.
5614if test "${enable_textbuf+set}" = set; then
5615 enableval="$enable_textbuf"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5619 else
5620 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5621 fi
5622
5623else
5624
5625 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5633
5634fi;
5635
5636 eval "$ac_cv_use_textbuf"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_TEXTBUFFER" = yes; then
5642 echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647 fi
5648
5649
5650 enablestring=
5651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5652echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5653 no_cache=0
5654 # Check whether --enable-textfile or --disable-textfile was given.
5655if test "${enable_textfile+set}" = set; then
5656 enableval="$enable_textfile"
5657
5658 if test "$enableval" = yes; then
5659 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5660 else
5661 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5662 fi
5663
5664else
5665
5666 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 else
5670 no_cache=1
5671 fi
5672
5673 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5674
5675fi;
5676
5677 eval "$ac_cv_use_textfile"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_TEXTFILE" = yes; then
5683 echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5688 fi
5689
5690
5691 enablestring=
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5693echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5694 no_cache=0
5695 # Check whether --enable-timer or --disable-timer was given.
5696if test "${enable_timer+set}" = set; then
5697 enableval="$enable_timer"
5698
5699 if test "$enableval" = yes; then
5700 ac_cv_use_timer='wxUSE_TIMER=yes'
5701 else
5702 ac_cv_use_timer='wxUSE_TIMER=no'
5703 fi
5704
5705else
5706
5707 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5715
5716fi;
5717
5718 eval "$ac_cv_use_timer"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_TIMER" = yes; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729 fi
5730
5731
5732 enablestring=
5733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5734echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5735 no_cache=0
5736 # Check whether --enable-unicode or --disable-unicode was given.
5737if test "${enable_unicode+set}" = set; then
5738 enableval="$enable_unicode"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5742 else
5743 ac_cv_use_unicode='wxUSE_UNICODE=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5756
5757fi;
5758
5759 eval "$ac_cv_use_unicode"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_UNICODE" = yes; then
5765 echo "$as_me:$LINENO: result: yes" >&5
5766echo "${ECHO_T}yes" >&6
5767 else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770 fi
5771
5772
5773 enablestring=
5774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5775echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5776 no_cache=0
5777 # Check whether --enable-sound or --disable-sound was given.
5778if test "${enable_sound+set}" = set; then
5779 enableval="$enable_sound"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_sound='wxUSE_SOUND=yes'
5783 else
5784 ac_cv_use_sound='wxUSE_SOUND=no'
5785 fi
5786
5787else
5788
5789 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5797
5798fi;
5799
5800 eval "$ac_cv_use_sound"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_SOUND" = yes; then
5806 echo "$as_me:$LINENO: result: yes" >&5
5807echo "${ECHO_T}yes" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811 fi
5812
5813
3b57de8b
RL
5814 enablestring=
5815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5816echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5817 no_cache=0
5818 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5819if test "${enable_mediactrl+set}" = set; then
5820 enableval="$enable_mediactrl"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5824 else
5825 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5838
5839fi;
5840
5841 eval "$ac_cv_use_mediactrl"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_MEDIACTRL" = yes; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848echo "${ECHO_T}yes" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852 fi
5853
5854
a848cd7e
SC
5855 enablestring=
5856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5857echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5858 no_cache=0
5859 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5860if test "${enable_wxprintfv+set}" = set; then
5861 enableval="$enable_wxprintfv"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5865 else
5866 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5867 fi
5868
5869else
5870
5871 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5879
5880fi;
5881
5882 eval "$ac_cv_use_wxprintfv"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5888 echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893 fi
5894
5895
5896 enablestring=
5897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5898echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5899 no_cache=0
5900 # Check whether --enable-zipstream or --disable-zipstream was given.
5901if test "${enable_zipstream+set}" = set; then
5902 enableval="$enable_zipstream"
5903
5904 if test "$enableval" = yes; then
5905 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5906 else
5907 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5908 fi
5909
5910else
5911
5912 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5913 if test "x$LINE" != x ; then
5914 eval "DEFAULT_$LINE"
5915 else
5916 no_cache=1
5917 fi
5918
5919 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5920
5921fi;
5922
5923 eval "$ac_cv_use_zipstream"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_ZIPSTREAM" = yes; then
5929 echo "$as_me:$LINENO: result: yes" >&5
5930echo "${ECHO_T}yes" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934 fi
5935
5936
a848cd7e
SC
5937
5938 enablestring=
5939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5940echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5941 no_cache=0
5942 # Check whether --enable-url or --disable-url was given.
5943if test "${enable_url+set}" = set; then
5944 enableval="$enable_url"
5945
5946 if test "$enableval" = yes; then
5947 ac_cv_use_url='wxUSE_URL=yes'
5948 else
5949 ac_cv_use_url='wxUSE_URL=no'
5950 fi
5951
5952else
5953
5954 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5955 if test "x$LINE" != x ; then
5956 eval "DEFAULT_$LINE"
5957 else
5958 no_cache=1
5959 fi
5960
5961 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5962
5963fi;
5964
5965 eval "$ac_cv_use_url"
5966 if test "$no_cache" != 1; then
5967 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5968 fi
5969
5970 if test "$wxUSE_URL" = yes; then
5971 echo "$as_me:$LINENO: result: yes" >&5
5972echo "${ECHO_T}yes" >&6
5973 else
5974 echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6
5976 fi
5977
5978
5979 enablestring=
5980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5981echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5982 no_cache=0
5983 # Check whether --enable-protocol or --disable-protocol was given.
5984if test "${enable_protocol+set}" = set; then
5985 enableval="$enable_protocol"
5986
5987 if test "$enableval" = yes; then
5988 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5989 else
5990 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5991 fi
5992
5993else
5994
5995 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5996 if test "x$LINE" != x ; then
5997 eval "DEFAULT_$LINE"
5998 else
5999 no_cache=1
6000 fi
6001
6002 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6003
6004fi;
6005
6006 eval "$ac_cv_use_protocol"
6007 if test "$no_cache" != 1; then
6008 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6009 fi
6010
6011 if test "$wxUSE_PROTOCOL" = yes; then
6012 echo "$as_me:$LINENO: result: yes" >&5
6013echo "${ECHO_T}yes" >&6
6014 else
6015 echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6
6017 fi
6018
6019
6020 enablestring=
6021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6022echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6023 no_cache=0
6024 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6025if test "${enable_protocol_http+set}" = set; then
6026 enableval="$enable_protocol_http"
6027
6028 if test "$enableval" = yes; then
6029 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6030 else
6031 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6032 fi
6033
6034else
6035
6036 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6044
6045fi;
6046
6047 eval "$ac_cv_use_protocol_http"
6048 if test "$no_cache" != 1; then
6049 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6050 fi
6051
6052 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6053 echo "$as_me:$LINENO: result: yes" >&5
6054echo "${ECHO_T}yes" >&6
6055 else
6056 echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058 fi
6059
6060
6061 enablestring=
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6064 no_cache=0
6065 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6066if test "${enable_protocol_ftp+set}" = set; then
6067 enableval="$enable_protocol_ftp"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6071 else
6072 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6085
6086fi;
6087
6088 eval "$ac_cv_use_protocol_ftp"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6094 echo "$as_me:$LINENO: result: yes" >&5
6095echo "${ECHO_T}yes" >&6
6096 else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099 fi
6100
6101
6102 enablestring=
6103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6105 no_cache=0
6106 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6107if test "${enable_protocol_file+set}" = set; then
6108 enableval="$enable_protocol_file"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6112 else
6113 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6114 fi
6115
6116else
6117
6118 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6126
6127fi;
6128
6129 eval "$ac_cv_use_protocol_file"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6135 echo "$as_me:$LINENO: result: yes" >&5
6136echo "${ECHO_T}yes" >&6
6137 else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140 fi
6141
6142
6143
6144
6145
6146 enablestring=
6147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6148echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6149 no_cache=0
6150 # Check whether --enable-threads or --disable-threads was given.
6151if test "${enable_threads+set}" = set; then
6152 enableval="$enable_threads"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_threads='wxUSE_THREADS=yes'
6156 else
6157 ac_cv_use_threads='wxUSE_THREADS=no'
6158 fi
6159
6160else
6161
6162 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6170
6171fi;
6172
6173 eval "$ac_cv_use_threads"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_THREADS" = yes; then
6179 echo "$as_me:$LINENO: result: yes" >&5
6180echo "${ECHO_T}yes" >&6
6181 else
6182 echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
6184 fi
6185
6186
6187if test "$wxUSE_GUI" = "yes"; then
6188
6189
6190
6191 enablestring=
6192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6193echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6194 no_cache=0
6195 # Check whether --enable-docview or --disable-docview was given.
6196if test "${enable_docview+set}" = set; then
6197 enableval="$enable_docview"
6198
6199 if test "$enableval" = yes; then
6200 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6201 else
6202 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6203 fi
6204
6205else
6206
6207 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6208 if test "x$LINE" != x ; then
6209 eval "DEFAULT_$LINE"
6210 else
6211 no_cache=1
6212 fi
6213
6214 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6215
6216fi;
6217
6218 eval "$ac_cv_use_docview"
6219 if test "$no_cache" != 1; then
6220 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6221 fi
6222
6223 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6224 echo "$as_me:$LINENO: result: yes" >&5
6225echo "${ECHO_T}yes" >&6
6226 else
6227 echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229 fi
6230
6231
6232 enablestring=
6233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6234echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6235 no_cache=0
6236 # Check whether --enable-help or --disable-help was given.
6237if test "${enable_help+set}" = set; then
6238 enableval="$enable_help"
6239
6240 if test "$enableval" = yes; then
6241 ac_cv_use_help='wxUSE_HELP=yes'
6242 else
6243 ac_cv_use_help='wxUSE_HELP=no'
6244 fi
6245
6246else
6247
6248 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
6255 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6256
6257fi;
6258
6259 eval "$ac_cv_use_help"
6260 if test "$no_cache" != 1; then
6261 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6262 fi
6263
6264 if test "$wxUSE_HELP" = yes; then
6265 echo "$as_me:$LINENO: result: yes" >&5
6266echo "${ECHO_T}yes" >&6
6267 else
6268 echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
6270 fi
6271
6272
6273 enablestring=
6274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6275echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6276 no_cache=0
6277 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6278if test "${enable_mshtmlhelp+set}" = set; then
6279 enableval="$enable_mshtmlhelp"
6280
6281 if test "$enableval" = yes; then
6282 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6283 else
6284 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6285 fi
6286
6287else
6288
6289 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6290 if test "x$LINE" != x ; then
6291 eval "DEFAULT_$LINE"
6292 else
6293 no_cache=1
6294 fi
6295
6296 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6297
6298fi;
6299
6300 eval "$ac_cv_use_mshtmlhelp"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_MS_HTML_HELP" = yes; then
6306 echo "$as_me:$LINENO: result: yes" >&5
6307echo "${ECHO_T}yes" >&6
6308 else
6309 echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311 fi
6312
6313
6314 enablestring=
6315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6316echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6317 no_cache=0
6318 # Check whether --enable-html or --disable-html was given.
6319if test "${enable_html+set}" = set; then
6320 enableval="$enable_html"
6321
6322 if test "$enableval" = yes; then
6323 ac_cv_use_html='wxUSE_HTML=yes'
6324 else
6325 ac_cv_use_html='wxUSE_HTML=no'
6326 fi
6327
6328else
6329
6330 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6331 if test "x$LINE" != x ; then
6332 eval "DEFAULT_$LINE"
6333 else
6334 no_cache=1
6335 fi
6336
6337 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6338
6339fi;
6340
6341 eval "$ac_cv_use_html"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_HTML" = yes; then
6347 echo "$as_me:$LINENO: result: yes" >&5
6348echo "${ECHO_T}yes" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
6352 fi
6353
6354
6355 enablestring=
6356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6357echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6358 no_cache=0
6359 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6360if test "${enable_htmlhelp+set}" = set; then
6361 enableval="$enable_htmlhelp"
6362
6363 if test "$enableval" = yes; then
6364 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6365 else
6366 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6367 fi
6368
6369else
6370
6371 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6372 if test "x$LINE" != x ; then
6373 eval "DEFAULT_$LINE"
6374 else
6375 no_cache=1
6376 fi
6377
6378 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6379
6380fi;
6381
6382 eval "$ac_cv_use_htmlhelp"
6383 if test "$no_cache" != 1; then
6384 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6385 fi
6386
6387 if test "$wxUSE_WXHTML_HELP" = yes; then
6388 echo "$as_me:$LINENO: result: yes" >&5
6389echo "${ECHO_T}yes" >&6
6390 else
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393 fi
6394
6395
9a8f0513
VS
6396 enablestring=
6397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6398echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6399 no_cache=0
6400 # Check whether --enable-xrc or --disable-xrc was given.
6401if test "${enable_xrc+set}" = set; then
6402 enableval="$enable_xrc"
6403
6404 if test "$enableval" = yes; then
6405 ac_cv_use_xrc='wxUSE_XRC=yes'
6406 else
6407 ac_cv_use_xrc='wxUSE_XRC=no'
6408 fi
6409
6410else
6411
6412 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6413 if test "x$LINE" != x ; then
6414 eval "DEFAULT_$LINE"
6415 else
6416 no_cache=1
6417 fi
6418
6419 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6420
6421fi;
6422
6423 eval "$ac_cv_use_xrc"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_XRC" = yes; then
6429 echo "$as_me:$LINENO: result: yes" >&5
6430echo "${ECHO_T}yes" >&6
6431 else
6432 echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6
6434 fi
6435
6436
a848cd7e
SC
6437 enablestring=
6438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6439echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6440 no_cache=0
6441 # Check whether --enable-constraints or --disable-constraints was given.
6442if test "${enable_constraints+set}" = set; then
6443 enableval="$enable_constraints"
6444
6445 if test "$enableval" = yes; then
6446 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6447 else
6448 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6449 fi
6450
6451else
6452
6453 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6461
6462fi;
6463
6464 eval "$ac_cv_use_constraints"
6465 if test "$no_cache" != 1; then
6466 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6467 fi
6468
6469 if test "$wxUSE_CONSTRAINTS" = yes; then
6470 echo "$as_me:$LINENO: result: yes" >&5
6471echo "${ECHO_T}yes" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
6475 fi
6476
6477
6478 enablestring=
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6480echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6481 no_cache=0
6482 # Check whether --enable-printarch or --disable-printarch was given.
6483if test "${enable_printarch+set}" = set; then
6484 enableval="$enable_printarch"
6485
6486 if test "$enableval" = yes; then
6487 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6488 else
6489 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6490 fi
6491
6492else
6493
6494 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6502
6503fi;
6504
6505 eval "$ac_cv_use_printarch"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6511 echo "$as_me:$LINENO: result: yes" >&5
6512echo "${ECHO_T}yes" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516 fi
6517
6518
6519 enablestring=
6520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6521echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6522 no_cache=0
6523 # Check whether --enable-mdi or --disable-mdi was given.
6524if test "${enable_mdi+set}" = set; then
6525 enableval="$enable_mdi"
6526
6527 if test "$enableval" = yes; then
8a7b1113 6528 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6529 else
8a7b1113 6530 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6531 fi
6532
6533else
6534
8a7b1113 6535 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6536 if test "x$LINE" != x ; then
6537 eval "DEFAULT_$LINE"
6538 else
6539 no_cache=1
6540 fi
6541
8a7b1113 6542 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6543
6544fi;
6545
6546 eval "$ac_cv_use_mdi"
6547 if test "$no_cache" != 1; then
6548 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6549 fi
6550
8a7b1113
VZ
6551 if test "$wxUSE_MDI" = yes; then
6552 echo "$as_me:$LINENO: result: yes" >&5
6553echo "${ECHO_T}yes" >&6
6554 else
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557 fi
6558
6559
6560 enablestring=
6561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6562echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6563 no_cache=0
6564 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6565if test "${enable_mdidoc+set}" = set; then
6566 enableval="$enable_mdidoc"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6570 else
6571 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6572 fi
6573
6574else
6575
6576 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6584
6585fi;
6586
6587 eval "$ac_cv_use_mdidoc"
6588 if test "$no_cache" != 1; then
6589 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6590 fi
6591
a848cd7e
SC
6592 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6593 echo "$as_me:$LINENO: result: yes" >&5
6594echo "${ECHO_T}yes" >&6
6595 else
6596 echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6
6598 fi
6599
6600
6601 enablestring=
6602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6603echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6604 no_cache=0
6605 # Check whether --enable-loggui or --disable-loggui was given.
6606if test "${enable_loggui+set}" = set; then
6607 enableval="$enable_loggui"
6608
6609 if test "$enableval" = yes; then
6610 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6611 else
6612 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6613 fi
6614
6615else
6616
6617 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6618 if test "x$LINE" != x ; then
6619 eval "DEFAULT_$LINE"
6620 else
6621 no_cache=1
6622 fi
6623
6624 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6625
6626fi;
6627
6628 eval "$ac_cv_use_loggui"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_LOGGUI" = yes; then
6634 echo "$as_me:$LINENO: result: yes" >&5
6635echo "${ECHO_T}yes" >&6
6636 else
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
6639 fi
6640
6641
6642 enablestring=
6643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6644echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6645 no_cache=0
6646 # Check whether --enable-logwin or --disable-logwin was given.
6647if test "${enable_logwin+set}" = set; then
6648 enableval="$enable_logwin"
6649
6650 if test "$enableval" = yes; then
6651 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6652 else
6653 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6654 fi
6655
6656else
6657
6658 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6659 if test "x$LINE" != x ; then
6660 eval "DEFAULT_$LINE"
6661 else
6662 no_cache=1
6663 fi
6664
6665 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6666
6667fi;
6668
6669 eval "$ac_cv_use_logwin"
6670 if test "$no_cache" != 1; then
6671 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6672 fi
6673
6674 if test "$wxUSE_LOGWINDOW" = yes; then
6675 echo "$as_me:$LINENO: result: yes" >&5
6676echo "${ECHO_T}yes" >&6
6677 else
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680 fi
6681
6682
6683 enablestring=
6684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6685echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6686 no_cache=0
6687 # Check whether --enable-logdialog or --disable-logdialog was given.
6688if test "${enable_logdialog+set}" = set; then
6689 enableval="$enable_logdialog"
6690
6691 if test "$enableval" = yes; then
6692 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6693 else
6694 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6695 fi
6696
6697else
6698
6699 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6700 if test "x$LINE" != x ; then
6701 eval "DEFAULT_$LINE"
6702 else
6703 no_cache=1
6704 fi
6705
6706 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6707
6708fi;
6709
6710 eval "$ac_cv_use_logdialog"
6711 if test "$no_cache" != 1; then
6712 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6713 fi
6714
6715 if test "$wxUSE_LOGDIALOG" = yes; then
6716 echo "$as_me:$LINENO: result: yes" >&5
6717echo "${ECHO_T}yes" >&6
6718 else
6719 echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6
6721 fi
6722
6723
646b6ec1
VS
6724 enablestring=
6725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6726echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6727 no_cache=0
6728 # Check whether --enable-webkit or --disable-webkit was given.
6729if test "${enable_webkit+set}" = set; then
6730 enableval="$enable_webkit"
6731
6732 if test "$enableval" = yes; then
6733 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6734 else
6735 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6736 fi
6737
6738else
6739
6740 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6748
6749fi;
6750
6751 eval "$ac_cv_use_webkit"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_WEBKIT" = yes; then
6757 echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6
6759 else
6760 echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
6762 fi
6763
6764
a848cd7e
SC
6765
6766 enablestring=
6767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6768echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6769 no_cache=0
6770 # Check whether --enable-postscript or --disable-postscript was given.
6771if test "${enable_postscript+set}" = set; then
6772 enableval="$enable_postscript"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6776 else
6777 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6790
6791fi;
6792
6793 eval "$ac_cv_use_postscript"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_POSTSCRIPT" = yes; then
6799 echo "$as_me:$LINENO: result: yes" >&5
6800echo "${ECHO_T}yes" >&6
6801 else
6802 echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6
6804 fi
6805
6806
6807
6808
6809
6810 enablestring=
6811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6812echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6813 no_cache=0
6814 # Check whether --enable-prologio or --disable-prologio was given.
6815if test "${enable_prologio+set}" = set; then
6816 enableval="$enable_prologio"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6820 else
6821 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6834
6835fi;
6836
6837 eval "$ac_cv_use_prologio"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_PROLOGIO" = yes; then
6843 echo "$as_me:$LINENO: result: yes" >&5
6844echo "${ECHO_T}yes" >&6
6845 else
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
6848 fi
6849
6850
6851 enablestring=
6852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6853echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6854 no_cache=0
6855 # Check whether --enable-resources or --disable-resources was given.
6856if test "${enable_resources+set}" = set; then
6857 enableval="$enable_resources"
6858
6859 if test "$enableval" = yes; then
6860 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6861 else
6862 ac_cv_use_resources='wxUSE_RESOURCES=no'
6863 fi
6864
6865else
6866
6867 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6868 if test "x$LINE" != x ; then
6869 eval "DEFAULT_$LINE"
6870 else
6871 no_cache=1
6872 fi
6873
6874 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6875
6876fi;
6877
6878 eval "$ac_cv_use_resources"
6879 if test "$no_cache" != 1; then
6880 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6881 fi
6882
6883 if test "$wxUSE_RESOURCES" = yes; then
6884 echo "$as_me:$LINENO: result: yes" >&5
6885echo "${ECHO_T}yes" >&6
6886 else
6887 echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
6889 fi
6890
6891
6892
6893
6894 enablestring=
6895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6896echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6897 no_cache=0
6898 # Check whether --enable-clipboard or --disable-clipboard was given.
6899if test "${enable_clipboard+set}" = set; then
6900 enableval="$enable_clipboard"
6901
6902 if test "$enableval" = yes; then
6903 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6904 else
6905 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6906 fi
6907
6908else
6909
6910 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6911 if test "x$LINE" != x ; then
6912 eval "DEFAULT_$LINE"
6913 else
6914 no_cache=1
6915 fi
6916
6917 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6918
6919fi;
6920
6921 eval "$ac_cv_use_clipboard"
6922 if test "$no_cache" != 1; then
6923 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6924 fi
6925
6926 if test "$wxUSE_CLIPBOARD" = yes; then
6927 echo "$as_me:$LINENO: result: yes" >&5
6928echo "${ECHO_T}yes" >&6
6929 else
6930 echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6
6932 fi
6933
6934
6935 enablestring=
6936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6937echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6938 no_cache=0
6939 # Check whether --enable-dnd or --disable-dnd was given.
6940if test "${enable_dnd+set}" = set; then
6941 enableval="$enable_dnd"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6945 else
6946 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6947 fi
6948
6949else
6950
6951 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6959
6960fi;
6961
6962 eval "$ac_cv_use_dnd"
6963 if test "$no_cache" != 1; then
6964 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6965 fi
6966
6967 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
6970 else
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
6973 fi
6974
6975
6976 enablestring=
6977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6978echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6979 no_cache=0
6980 # Check whether --enable-metafile or --disable-metafile was given.
6981if test "${enable_metafile+set}" = set; then
6982 enableval="$enable_metafile"
6983
6984 if test "$enableval" = yes; then
6985 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6986 else
6987 ac_cv_use_metafile='wxUSE_METAFILE=no'
6988 fi
6989
6990else
6991
6992 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7000
7001fi;
7002
7003 eval "$ac_cv_use_metafile"
7004 if test "$no_cache" != 1; then
7005 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7006 fi
7007
7008 if test "$wxUSE_METAFILE" = yes; then
7009 echo "$as_me:$LINENO: result: yes" >&5
7010echo "${ECHO_T}yes" >&6
7011 else
7012 echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
7014 fi
7015
7016
7017
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-controls or --disable-controls was given.
7025if test "${enable_controls+set}" = set; then
7026 enableval="$enable_controls"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7030 else
7031 ac_cv_use_controls='wxUSE_CONTROLS=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7044
7045fi;
7046
7047 eval "$ac_cv_use_controls"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_CONTROLS" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061if test "$wxUSE_CONTROLS" = "yes"; then
7062 DEFAULT_wxUSE_ACCEL=yes
7063 DEFAULT_wxUSE_BMPBUTTON=yes
7064 DEFAULT_wxUSE_BUTTON=yes
7065 DEFAULT_wxUSE_CALCTRL=no
7066 DEFAULT_wxUSE_CARET=yes
7067 DEFAULT_wxUSE_COMBOBOX=yes
7068 DEFAULT_wxUSE_CHECKBOX=yes
7069 DEFAULT_wxUSE_CHECKLISTBOX=yes
7070 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7071 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7072 DEFAULT_wxUSE_GAUGE=yes
7073 DEFAULT_wxUSE_GRID=yes
7074 DEFAULT_wxUSE_IMAGLIST=yes
7075 DEFAULT_wxUSE_LISTBOOK=yes
7076 DEFAULT_wxUSE_LISTBOX=yes
7077 DEFAULT_wxUSE_LISTCTRL=yes
7078 DEFAULT_wxUSE_NOTEBOOK=yes
7079 DEFAULT_wxUSE_RADIOBOX=yes
7080 DEFAULT_wxUSE_RADIOBTN=yes
7081 DEFAULT_wxUSE_SASH=yes
7082 DEFAULT_wxUSE_SCROLLBAR=yes
7083 DEFAULT_wxUSE_SLIDER=yes
7084 DEFAULT_wxUSE_SPINBTN=yes
7085 DEFAULT_wxUSE_SPINCTRL=yes
7086 DEFAULT_wxUSE_SPLITTER=yes
7087 DEFAULT_wxUSE_STATBMP=yes
7088 DEFAULT_wxUSE_STATBOX=yes
7089 DEFAULT_wxUSE_STATLINE=yes
7090 DEFAULT_wxUSE_STATUSBAR=yes
7091 DEFAULT_wxUSE_TAB_DIALOG=yes
7092 DEFAULT_wxUSE_TOGGLEBTN=yes
7093 DEFAULT_wxUSE_TOOLBAR=yes
7094 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7095 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7096 DEFAULT_wxUSE_TOOLTIPS=yes
7097 DEFAULT_wxUSE_TREECTRL=yes
7098 DEFAULT_wxUSE_POPUPWIN=yes
7099 DEFAULT_wxUSE_TIPWINDOW=yes
7100elif test "$wxUSE_CONTROLS" = "no"; then
7101 DEFAULT_wxUSE_ACCEL=no
7102 DEFAULT_wxUSE_BMPBUTTON=no
7103 DEFAULT_wxUSE_BUTTON=no
7104 DEFAULT_wxUSE_CALCTRL=no
7105 DEFAULT_wxUSE_CARET=no
7106 DEFAULT_wxUSE_COMBOBOX=no
7107 DEFAULT_wxUSE_CHECKBOX=no
7108 DEFAULT_wxUSE_CHECKLISTBOX=no
7109 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7110 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7111 DEFAULT_wxUSE_GAUGE=no
7112 DEFAULT_wxUSE_GRID=no
7113 DEFAULT_wxUSE_IMAGLIST=no
7114 DEFAULT_wxUSE_LISTBOOK=no
7115 DEFAULT_wxUSE_LISTBOX=no
7116 DEFAULT_wxUSE_LISTCTRL=no
7117 DEFAULT_wxUSE_NOTEBOOK=no
7118 DEFAULT_wxUSE_RADIOBOX=no
7119 DEFAULT_wxUSE_RADIOBTN=no
7120 DEFAULT_wxUSE_SASH=no
7121 DEFAULT_wxUSE_SCROLLBAR=no
7122 DEFAULT_wxUSE_SLIDER=no
7123 DEFAULT_wxUSE_SPINBTN=no
7124 DEFAULT_wxUSE_SPINCTRL=no
7125 DEFAULT_wxUSE_SPLITTER=no
7126 DEFAULT_wxUSE_STATBMP=no
7127 DEFAULT_wxUSE_STATBOX=no
7128 DEFAULT_wxUSE_STATLINE=no
7129 DEFAULT_wxUSE_STATUSBAR=no
7130 DEFAULT_wxUSE_TAB_DIALOG=no
7131 DEFAULT_wxUSE_TOGGLEBTN=no
7132 DEFAULT_wxUSE_TOOLBAR=no
7133 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7134 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7135 DEFAULT_wxUSE_TOOLTIPS=no
7136 DEFAULT_wxUSE_TREECTRL=no
7137 DEFAULT_wxUSE_POPUPWIN=no
7138 DEFAULT_wxUSE_TIPWINDOW=no
7139fi
7140
a848cd7e
SC
7141
7142 enablestring=
7143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7144echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7145 no_cache=0
7146 # Check whether --enable-accel or --disable-accel was given.
7147if test "${enable_accel+set}" = set; then
7148 enableval="$enable_accel"
7149
7150 if test "$enableval" = yes; then
7151 ac_cv_use_accel='wxUSE_ACCEL=yes'
7152 else
7153 ac_cv_use_accel='wxUSE_ACCEL=no'
7154 fi
7155
7156else
7157
7158 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7159 if test "x$LINE" != x ; then
7160 eval "DEFAULT_$LINE"
7161 else
7162 no_cache=1
7163 fi
7164
7165 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7166
7167fi;
7168
7169 eval "$ac_cv_use_accel"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_ACCEL" = yes; then
7175 echo "$as_me:$LINENO: result: yes" >&5
7176echo "${ECHO_T}yes" >&6
7177 else
7178 echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180 fi
7181
7182
7183 enablestring=
7184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7185echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7186 no_cache=0
7187 # Check whether --enable-button or --disable-button was given.
7188if test "${enable_button+set}" = set; then
7189 enableval="$enable_button"
7190
7191 if test "$enableval" = yes; then
7192 ac_cv_use_button='wxUSE_BUTTON=yes'
7193 else
7194 ac_cv_use_button='wxUSE_BUTTON=no'
7195 fi
7196
7197else
7198
7199 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7207
7208fi;
7209
7210 eval "$ac_cv_use_button"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7213 fi
7214
7215 if test "$wxUSE_BUTTON" = yes; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217echo "${ECHO_T}yes" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221 fi
7222
7223
7224 enablestring=
7225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7226echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7227 no_cache=0
7228 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7229if test "${enable_bmpbutton+set}" = set; then
7230 enableval="$enable_bmpbutton"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7234 else
7235 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7236 fi
7237
7238else
7239
7240 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7248
7249fi;
7250
7251 eval "$ac_cv_use_bmpbutton"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7254 fi
7255
7256 if test "$wxUSE_BMPBUTTON" = yes; then
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262 fi
7263
7264
7265 enablestring=
7266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7267echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7268 no_cache=0
7269 # Check whether --enable-calendar or --disable-calendar was given.
7270if test "${enable_calendar+set}" = set; then
7271 enableval="$enable_calendar"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7275 else
7276 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7277 fi
7278
7279else
7280
7281 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7289
7290fi;
7291
7292 eval "$ac_cv_use_calendar"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_CALCTRL" = yes; then
7298 echo "$as_me:$LINENO: result: yes" >&5
7299echo "${ECHO_T}yes" >&6
7300 else
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303 fi
7304
7305
7306 enablestring=
7307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7308echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7309 no_cache=0
7310 # Check whether --enable-caret or --disable-caret was given.
7311if test "${enable_caret+set}" = set; then
7312 enableval="$enable_caret"
7313
7314 if test "$enableval" = yes; then
7315 ac_cv_use_caret='wxUSE_CARET=yes'
7316 else
7317 ac_cv_use_caret='wxUSE_CARET=no'
7318 fi
7319
7320else
7321
7322 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7323 if test "x$LINE" != x ; then
7324 eval "DEFAULT_$LINE"
7325 else
7326 no_cache=1
7327 fi
7328
7329 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7330
7331fi;
7332
7333 eval "$ac_cv_use_caret"
7334 if test "$no_cache" != 1; then
7335 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7336 fi
7337
7338 if test "$wxUSE_CARET" = yes; then
7339 echo "$as_me:$LINENO: result: yes" >&5
7340echo "${ECHO_T}yes" >&6
7341 else
7342 echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344 fi
7345
7346
7347 enablestring=
7348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7349echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7350 no_cache=0
7351 # Check whether --enable-checkbox or --disable-checkbox was given.
7352if test "${enable_checkbox+set}" = set; then
7353 enableval="$enable_checkbox"
7354
7355 if test "$enableval" = yes; then
7356 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7357 else
7358 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7359 fi
7360
7361else
7362
7363 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7364 if test "x$LINE" != x ; then
7365 eval "DEFAULT_$LINE"
7366 else
7367 no_cache=1
7368 fi
7369
7370 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7371
7372fi;
7373
7374 eval "$ac_cv_use_checkbox"
7375 if test "$no_cache" != 1; then
7376 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7377 fi
7378
7379 if test "$wxUSE_CHECKBOX" = yes; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381echo "${ECHO_T}yes" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385 fi
7386
7387
7388 enablestring=
7389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7390echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7391 no_cache=0
7392 # Check whether --enable-checklst or --disable-checklst was given.
7393if test "${enable_checklst+set}" = set; then
7394 enableval="$enable_checklst"
7395
7396 if test "$enableval" = yes; then
7397 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7398 else
7399 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7400 fi
7401
7402else
7403
7404 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
7411 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7412
7413fi;
7414
7415 eval "$ac_cv_use_checklst"
7416 if test "$no_cache" != 1; then
7417 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7418 fi
7419
7420 if test "$wxUSE_CHECKLST" = yes; then
7421 echo "$as_me:$LINENO: result: yes" >&5
7422echo "${ECHO_T}yes" >&6
7423 else
7424 echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
7426 fi
7427
7428
7429 enablestring=
7430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7431echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7432 no_cache=0
7433 # Check whether --enable-choice or --disable-choice was given.
7434if test "${enable_choice+set}" = set; then
7435 enableval="$enable_choice"
7436
7437 if test "$enableval" = yes; then
7438 ac_cv_use_choice='wxUSE_CHOICE=yes'
7439 else
7440 ac_cv_use_choice='wxUSE_CHOICE=no'
7441 fi
7442
7443else
7444
7445 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7446 if test "x$LINE" != x ; then
7447 eval "DEFAULT_$LINE"
7448 else
7449 no_cache=1
7450 fi
7451
7452 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7453
7454fi;
7455
7456 eval "$ac_cv_use_choice"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_CHOICE" = yes; then
7462 echo "$as_me:$LINENO: result: yes" >&5
7463echo "${ECHO_T}yes" >&6
7464 else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467 fi
7468
7469
92bbdbcd
WS
7470 enablestring=
7471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7472echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7473 no_cache=0
7474 # Check whether --enable-choicebook or --disable-choicebook was given.
7475if test "${enable_choicebook+set}" = set; then
7476 enableval="$enable_choicebook"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7480 else
7481 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7494
7495fi;
7496
7497 eval "$ac_cv_use_choicebook"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_CHOICEBOOK" = yes; then
7503 echo "$as_me:$LINENO: result: yes" >&5
7504echo "${ECHO_T}yes" >&6
7505 else
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508 fi
7509
7510
a848cd7e
SC
7511 enablestring=
7512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7513echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7514 no_cache=0
7515 # Check whether --enable-combobox or --disable-combobox was given.
7516if test "${enable_combobox+set}" = set; then
7517 enableval="$enable_combobox"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7521 else
7522 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7523 fi
7524
7525else
7526
7527 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7535
7536fi;
7537
7538 eval "$ac_cv_use_combobox"
7539 if test "$no_cache" != 1; then
7540 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7541 fi
7542
7543 if test "$wxUSE_COMBOBOX" = yes; then
7544 echo "$as_me:$LINENO: result: yes" >&5
7545echo "${ECHO_T}yes" >&6
7546 else
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549 fi
7550
7551
7552 enablestring=
7553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7554echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7555 no_cache=0
7556 # Check whether --enable-display or --disable-display was given.
7557if test "${enable_display+set}" = set; then
7558 enableval="$enable_display"
7559
7560 if test "$enableval" = yes; then
7561 ac_cv_use_display='wxUSE_DISPLAY=yes'
7562 else
7563 ac_cv_use_display='wxUSE_DISPLAY=no'
7564 fi
7565
7566else
7567
7568 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7576
7577fi;
7578
7579 eval "$ac_cv_use_display"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_DISPLAY" = yes; then
7585 echo "$as_me:$LINENO: result: yes" >&5
7586echo "${ECHO_T}yes" >&6
7587 else
7588 echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
7590 fi
7591
7592
7593 enablestring=
7594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7595echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7596 no_cache=0
7597 # Check whether --enable-gauge or --disable-gauge was given.
7598if test "${enable_gauge+set}" = set; then
7599 enableval="$enable_gauge"
7600
7601 if test "$enableval" = yes; then
7602 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7603 else
7604 ac_cv_use_gauge='wxUSE_GAUGE=no'
7605 fi
7606
7607else
7608
7609 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7617
7618fi;
7619
7620 eval "$ac_cv_use_gauge"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_GAUGE" = yes; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627echo "${ECHO_T}yes" >&6
7628 else
7629 echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6
7631 fi
7632
7633
7634 enablestring=
7635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7636echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7637 no_cache=0
7638 # Check whether --enable-grid or --disable-grid was given.
7639if test "${enable_grid+set}" = set; then
7640 enableval="$enable_grid"
7641
7642 if test "$enableval" = yes; then
7643 ac_cv_use_grid='wxUSE_GRID=yes'
7644 else
7645 ac_cv_use_grid='wxUSE_GRID=no'
7646 fi
7647
7648else
7649
7650 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7651 if test "x$LINE" != x ; then
7652 eval "DEFAULT_$LINE"
7653 else
7654 no_cache=1
7655 fi
7656
7657 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7658
7659fi;
7660
7661 eval "$ac_cv_use_grid"
7662 if test "$no_cache" != 1; then
7663 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7664 fi
7665
7666 if test "$wxUSE_GRID" = yes; then
7667 echo "$as_me:$LINENO: result: yes" >&5
7668echo "${ECHO_T}yes" >&6
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
7672 fi
7673
7674
7675 enablestring=
7676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7677echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7678 no_cache=0
7679 # Check whether --enable-imaglist or --disable-imaglist was given.
7680if test "${enable_imaglist+set}" = set; then
7681 enableval="$enable_imaglist"
7682
7683 if test "$enableval" = yes; then
7684 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7685 else
7686 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7687 fi
7688
7689else
7690
7691 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7692 if test "x$LINE" != x ; then
7693 eval "DEFAULT_$LINE"
7694 else
7695 no_cache=1
7696 fi
7697
7698 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7699
7700fi;
7701
7702 eval "$ac_cv_use_imaglist"
7703 if test "$no_cache" != 1; then
7704 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7705 fi
7706
7707 if test "$wxUSE_IMAGLIST" = yes; then
7708 echo "$as_me:$LINENO: result: yes" >&5
7709echo "${ECHO_T}yes" >&6
7710 else
7711 echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
7713 fi
7714
7715
7716 enablestring=
7717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7718echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7719 no_cache=0
7720 # Check whether --enable-listbook or --disable-listbook was given.
7721if test "${enable_listbook+set}" = set; then
7722 enableval="$enable_listbook"
7723
7724 if test "$enableval" = yes; then
7725 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7726 else
7727 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7728 fi
7729
7730else
7731
7732 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7733 if test "x$LINE" != x ; then
7734 eval "DEFAULT_$LINE"
7735 else
7736 no_cache=1
7737 fi
7738
7739 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7740
7741fi;
7742
7743 eval "$ac_cv_use_listbook"
7744 if test "$no_cache" != 1; then
7745 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7746 fi
7747
7748 if test "$wxUSE_LISTBOOK" = yes; then
7749 echo "$as_me:$LINENO: result: yes" >&5
7750echo "${ECHO_T}yes" >&6
7751 else
7752 echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754 fi
7755
7756
7757 enablestring=
7758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7759echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7760 no_cache=0
7761 # Check whether --enable-listbox or --disable-listbox was given.
7762if test "${enable_listbox+set}" = set; then
7763 enableval="$enable_listbox"
7764
7765 if test "$enableval" = yes; then
7766 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7767 else
7768 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7769 fi
7770
7771else
7772
7773 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
7775 eval "DEFAULT_$LINE"
7776 else
7777 no_cache=1
7778 fi
7779
7780 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7781
7782fi;
7783
7784 eval "$ac_cv_use_listbox"
7785 if test "$no_cache" != 1; then
7786 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7787 fi
7788
7789 if test "$wxUSE_LISTBOX" = yes; then
7790 echo "$as_me:$LINENO: result: yes" >&5
7791echo "${ECHO_T}yes" >&6
7792 else
7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
7795 fi
7796
7797
7798 enablestring=
7799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7800echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7801 no_cache=0
7802 # Check whether --enable-listctrl or --disable-listctrl was given.
7803if test "${enable_listctrl+set}" = set; then
7804 enableval="$enable_listctrl"
7805
7806 if test "$enableval" = yes; then
7807 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7808 else
7809 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7810 fi
7811
7812else
7813
7814 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7815 if test "x$LINE" != x ; then
7816 eval "DEFAULT_$LINE"
7817 else
7818 no_cache=1
7819 fi
7820
7821 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7822
7823fi;
7824
7825 eval "$ac_cv_use_listctrl"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_LISTCTRL" = yes; then
7831 echo "$as_me:$LINENO: result: yes" >&5
7832echo "${ECHO_T}yes" >&6
7833 else
7834 echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6
7836 fi
7837
7838
7839 enablestring=
7840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7841echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7842 no_cache=0
7843 # Check whether --enable-notebook or --disable-notebook was given.
7844if test "${enable_notebook+set}" = set; then
7845 enableval="$enable_notebook"
7846
7847 if test "$enableval" = yes; then
7848 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7849 else
7850 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7851 fi
7852
7853else
7854
7855 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7863
7864fi;
7865
7866 eval "$ac_cv_use_notebook"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_NOTEBOOK" = yes; then
7872 echo "$as_me:$LINENO: result: yes" >&5
7873echo "${ECHO_T}yes" >&6
7874 else
7875 echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6
7877 fi
7878
7879
7880 enablestring=
7881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7882echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7883 no_cache=0
7884 # Check whether --enable-radiobox or --disable-radiobox was given.
7885if test "${enable_radiobox+set}" = set; then
7886 enableval="$enable_radiobox"
7887
7888 if test "$enableval" = yes; then
7889 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7890 else
7891 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7892 fi
7893
7894else
7895
7896 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7897 if test "x$LINE" != x ; then
7898 eval "DEFAULT_$LINE"
7899 else
7900 no_cache=1
7901 fi
7902
7903 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7904
7905fi;
7906
7907 eval "$ac_cv_use_radiobox"
7908 if test "$no_cache" != 1; then
7909 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7910 fi
7911
7912 if test "$wxUSE_RADIOBOX" = yes; then
7913 echo "$as_me:$LINENO: result: yes" >&5
7914echo "${ECHO_T}yes" >&6
7915 else
7916 echo "$as_me:$LINENO: result: no" >&5
7917echo "${ECHO_T}no" >&6
7918 fi
7919
7920
7921 enablestring=
7922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7923echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7924 no_cache=0
7925 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7926if test "${enable_radiobtn+set}" = set; then
7927 enableval="$enable_radiobtn"
7928
7929 if test "$enableval" = yes; then
7930 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7931 else
7932 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7933 fi
7934
7935else
7936
7937 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7938 if test "x$LINE" != x ; then
7939 eval "DEFAULT_$LINE"
7940 else
7941 no_cache=1
7942 fi
7943
7944 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7945
7946fi;
7947
7948 eval "$ac_cv_use_radiobtn"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_RADIOBTN" = yes; then
7954 echo "$as_me:$LINENO: result: yes" >&5
7955echo "${ECHO_T}yes" >&6
7956 else
7957 echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6
7959 fi
7960
7961
7962 enablestring=
7963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7964echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7965 no_cache=0
7966 # Check whether --enable-sash or --disable-sash was given.
7967if test "${enable_sash+set}" = set; then
7968 enableval="$enable_sash"
7969
7970 if test "$enableval" = yes; then
7971 ac_cv_use_sash='wxUSE_SASH=yes'
7972 else
7973 ac_cv_use_sash='wxUSE_SASH=no'
7974 fi
7975
7976else
7977
7978 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7979 if test "x$LINE" != x ; then
7980 eval "DEFAULT_$LINE"
7981 else
7982 no_cache=1
7983 fi
7984
7985 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7986
7987fi;
7988
7989 eval "$ac_cv_use_sash"
7990 if test "$no_cache" != 1; then
7991 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7992 fi
7993
7994 if test "$wxUSE_SASH" = yes; then
7995 echo "$as_me:$LINENO: result: yes" >&5
7996echo "${ECHO_T}yes" >&6
7997 else
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
8000 fi
8001
8002
8003 enablestring=
8004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8005echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8006 no_cache=0
8007 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8008if test "${enable_scrollbar+set}" = set; then
8009 enableval="$enable_scrollbar"
8010
8011 if test "$enableval" = yes; then
8012 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8013 else
8014 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8015 fi
8016
8017else
8018
8019 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8020 if test "x$LINE" != x ; then
8021 eval "DEFAULT_$LINE"
8022 else
8023 no_cache=1
8024 fi
8025
8026 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8027
8028fi;
8029
8030 eval "$ac_cv_use_scrollbar"
8031 if test "$no_cache" != 1; then
8032 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8033 fi
8034
8035 if test "$wxUSE_SCROLLBAR" = yes; then
8036 echo "$as_me:$LINENO: result: yes" >&5
8037echo "${ECHO_T}yes" >&6
8038 else
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
8041 fi
8042
8043
8044 enablestring=
8045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8046echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8047 no_cache=0
8048 # Check whether --enable-slider or --disable-slider was given.
8049if test "${enable_slider+set}" = set; then
8050 enableval="$enable_slider"
8051
8052 if test "$enableval" = yes; then
8053 ac_cv_use_slider='wxUSE_SLIDER=yes'
8054 else
8055 ac_cv_use_slider='wxUSE_SLIDER=no'
8056 fi
8057
8058else
8059
8060 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8061 if test "x$LINE" != x ; then
8062 eval "DEFAULT_$LINE"
8063 else
8064 no_cache=1
8065 fi
8066
8067 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8068
8069fi;
8070
8071 eval "$ac_cv_use_slider"
8072 if test "$no_cache" != 1; then
8073 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8074 fi
8075
8076 if test "$wxUSE_SLIDER" = yes; then
8077 echo "$as_me:$LINENO: result: yes" >&5
8078echo "${ECHO_T}yes" >&6
8079 else
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
8082 fi
8083
8084
8085 enablestring=
8086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8087echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8088 no_cache=0
8089 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8090if test "${enable_spinbtn+set}" = set; then
8091 enableval="$enable_spinbtn"
8092
8093 if test "$enableval" = yes; then
8094 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8095 else
8096 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8097 fi
8098
8099else
8100
8101 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8102 if test "x$LINE" != x ; then
8103 eval "DEFAULT_$LINE"
8104 else
8105 no_cache=1
8106 fi
8107
8108 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8109
8110fi;
8111
8112 eval "$ac_cv_use_spinbtn"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_SPINBTN" = yes; then
8118 echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
8120 else
8121 echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6
8123 fi
8124
8125
8126 enablestring=
8127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8128echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8129 no_cache=0
8130 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8131if test "${enable_spinctrl+set}" = set; then
8132 enableval="$enable_spinctrl"
8133
8134 if test "$enableval" = yes; then
8135 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8136 else
8137 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8138 fi
8139
8140else
8141
8142 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8143 if test "x$LINE" != x ; then
8144 eval "DEFAULT_$LINE"
8145 else
8146 no_cache=1
8147 fi
8148
8149 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8150
8151fi;
8152
8153 eval "$ac_cv_use_spinctrl"
8154 if test "$no_cache" != 1; then
8155 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8156 fi
8157
8158 if test "$wxUSE_SPINCTRL" = yes; then
8159 echo "$as_me:$LINENO: result: yes" >&5
8160echo "${ECHO_T}yes" >&6
8161 else
8162 echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
8164 fi
8165
8166
8167 enablestring=
8168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8169echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8170 no_cache=0
8171 # Check whether --enable-splitter or --disable-splitter was given.
8172if test "${enable_splitter+set}" = set; then
8173 enableval="$enable_splitter"
8174
8175 if test "$enableval" = yes; then
8176 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8177 else
8178 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8179 fi
8180
8181else
8182
8183 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8184 if test "x$LINE" != x ; then
8185 eval "DEFAULT_$LINE"
8186 else
8187 no_cache=1
8188 fi
8189
8190 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8191
8192fi;
8193
8194 eval "$ac_cv_use_splitter"
8195 if test "$no_cache" != 1; then
8196 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8197 fi
8198
8199 if test "$wxUSE_SPLITTER" = yes; then
8200 echo "$as_me:$LINENO: result: yes" >&5
8201echo "${ECHO_T}yes" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204echo "${ECHO_T}no" >&6
8205 fi
8206
8207
8208 enablestring=
8209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8210echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8211 no_cache=0
8212 # Check whether --enable-statbmp or --disable-statbmp was given.
8213if test "${enable_statbmp+set}" = set; then
8214 enableval="$enable_statbmp"
8215
8216 if test "$enableval" = yes; then
8217 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8218 else
8219 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8220 fi
8221
8222else
8223
8224 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8225 if test "x$LINE" != x ; then
8226 eval "DEFAULT_$LINE"
8227 else
8228 no_cache=1
8229 fi
8230
8231 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8232
8233fi;
8234
8235 eval "$ac_cv_use_statbmp"
8236 if test "$no_cache" != 1; then
8237 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8238 fi
8239
8240 if test "$wxUSE_STATBMP" = yes; then
8241 echo "$as_me:$LINENO: result: yes" >&5
8242echo "${ECHO_T}yes" >&6
8243 else
8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
8246 fi
8247
8248
8249 enablestring=
8250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8251echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8252 no_cache=0
8253 # Check whether --enable-statbox or --disable-statbox was given.
8254if test "${enable_statbox+set}" = set; then
8255 enableval="$enable_statbox"
8256
8257 if test "$enableval" = yes; then
8258 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8259 else
8260 ac_cv_use_statbox='wxUSE_STATBOX=no'
8261 fi
8262
8263else
8264
8265 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8266 if test "x$LINE" != x ; then
8267 eval "DEFAULT_$LINE"
8268 else
8269 no_cache=1
8270 fi
8271
8272 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8273
8274fi;
8275
8276 eval "$ac_cv_use_statbox"
8277 if test "$no_cache" != 1; then
8278 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8279 fi
8280
8281 if test "$wxUSE_STATBOX" = yes; then
8282 echo "$as_me:$LINENO: result: yes" >&5
8283echo "${ECHO_T}yes" >&6
8284 else
8285 echo "$as_me:$LINENO: result: no" >&5
8286echo "${ECHO_T}no" >&6
8287 fi
8288
8289
8290 enablestring=
8291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8292echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8293 no_cache=0
8294 # Check whether --enable-statline or --disable-statline was given.
8295if test "${enable_statline+set}" = set; then
8296 enableval="$enable_statline"
8297
8298 if test "$enableval" = yes; then
8299 ac_cv_use_statline='wxUSE_STATLINE=yes'
8300 else
8301 ac_cv_use_statline='wxUSE_STATLINE=no'
8302 fi
8303
8304else
8305
8306 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8307 if test "x$LINE" != x ; then
8308 eval "DEFAULT_$LINE"
8309 else
8310 no_cache=1
8311 fi
8312
8313 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8314
8315fi;
8316
8317 eval "$ac_cv_use_statline"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_STATLINE" = yes; then
8323 echo "$as_me:$LINENO: result: yes" >&5
8324echo "${ECHO_T}yes" >&6
8325 else
8326 echo "$as_me:$LINENO: result: no" >&5
8327echo "${ECHO_T}no" >&6
8328 fi
8329
8330
8331 enablestring=
8332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8333echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8334 no_cache=0
8335 # Check whether --enable-stattext or --disable-stattext was given.
8336if test "${enable_stattext+set}" = set; then
8337 enableval="$enable_stattext"
8338
8339 if test "$enableval" = yes; then
8340 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8341 else
8342 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8343 fi
8344
8345else
8346
8347 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8348 if test "x$LINE" != x ; then
8349 eval "DEFAULT_$LINE"
8350 else
8351 no_cache=1
8352 fi
8353
8354 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8355
8356fi;
8357
8358 eval "$ac_cv_use_stattext"
8359 if test "$no_cache" != 1; then
8360 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8361 fi
8362
8363 if test "$wxUSE_STATTEXT" = yes; then
8364 echo "$as_me:$LINENO: result: yes" >&5
8365echo "${ECHO_T}yes" >&6
8366 else
8367 echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6
8369 fi
8370
8371
8372 enablestring=
8373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8374echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8375 no_cache=0
8376 # Check whether --enable-statusbar or --disable-statusbar was given.
8377if test "${enable_statusbar+set}" = set; then
8378 enableval="$enable_statusbar"
8379
8380 if test "$enableval" = yes; then
8381 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8382 else
8383 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8384 fi
8385
8386else
8387
8388 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8389 if test "x$LINE" != x ; then
8390 eval "DEFAULT_$LINE"
8391 else
8392 no_cache=1
8393 fi
8394
8395 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8396
8397fi;
8398
8399 eval "$ac_cv_use_statusbar"
8400 if test "$no_cache" != 1; then
8401 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8402 fi
8403
8404 if test "$wxUSE_STATUSBAR" = yes; then
8405 echo "$as_me:$LINENO: result: yes" >&5
8406echo "${ECHO_T}yes" >&6
8407 else
8408 echo "$as_me:$LINENO: result: no" >&5
8409echo "${ECHO_T}no" >&6
8410 fi
8411
8412
8413 enablestring=
8414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8415echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8416 no_cache=0
8417 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8418if test "${enable_tabdialog+set}" = set; then
8419 enableval="$enable_tabdialog"
8420
8421 if test "$enableval" = yes; then
8422 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8423 else
8424 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8425 fi
8426
8427else
8428
8429 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8430 if test "x$LINE" != x ; then
8431 eval "DEFAULT_$LINE"
8432 else
8433 no_cache=1
8434 fi
8435
8436 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8437
8438fi;
8439
8440 eval "$ac_cv_use_tabdialog"
8441 if test "$no_cache" != 1; then
8442 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8443 fi
8444
8445 if test "$wxUSE_TABDIALOG" = yes; then
8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
8448 else
8449 echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6
8451 fi
8452
8453
8454 enablestring=
8455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8456echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8457 no_cache=0
8458 # Check whether --enable-textctrl or --disable-textctrl was given.
8459if test "${enable_textctrl+set}" = set; then
8460 enableval="$enable_textctrl"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8464 else
8465 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8466 fi
8467
8468else
8469
8470 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8478
8479fi;
8480
8481 eval "$ac_cv_use_textctrl"
8482 if test "$no_cache" != 1; then
8483 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8484 fi
8485
8486 if test "$wxUSE_TEXTCTRL" = yes; then
8487 echo "$as_me:$LINENO: result: yes" >&5
8488echo "${ECHO_T}yes" >&6
8489 else
8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
8492 fi
8493
8494
8495 enablestring=
8496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8497echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8498 no_cache=0
8499 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8500if test "${enable_togglebtn+set}" = set; then
8501 enableval="$enable_togglebtn"
8502
8503 if test "$enableval" = yes; then
8504 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8505 else
8506 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8507 fi
8508
8509else
8510
8511 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8512 if test "x$LINE" != x ; then
8513 eval "DEFAULT_$LINE"
8514 else
8515 no_cache=1
8516 fi
8517
8518 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8519
8520fi;
8521
8522 eval "$ac_cv_use_togglebtn"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_TOGGLEBTN" = yes; then
8528 echo "$as_me:$LINENO: result: yes" >&5
8529echo "${ECHO_T}yes" >&6
8530 else
8531 echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6
8533 fi
8534
8535
8536 enablestring=
8537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8538echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8539 no_cache=0
8540 # Check whether --enable-toolbar or --disable-toolbar was given.
8541if test "${enable_toolbar+set}" = set; then
8542 enableval="$enable_toolbar"
8543
8544 if test "$enableval" = yes; then
8545 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8546 else
8547 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8548 fi
8549
8550else
8551
8552 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8553 if test "x$LINE" != x ; then
8554 eval "DEFAULT_$LINE"
8555 else
8556 no_cache=1
8557 fi
8558
8559 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8560
8561fi;
8562
8563 eval "$ac_cv_use_toolbar"
8564 if test "$no_cache" != 1; then
8565 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8566 fi
8567
8568 if test "$wxUSE_TOOLBAR" = yes; then
8569 echo "$as_me:$LINENO: result: yes" >&5
8570echo "${ECHO_T}yes" >&6
8571 else
8572 echo "$as_me:$LINENO: result: no" >&5
8573echo "${ECHO_T}no" >&6
8574 fi
8575
8576
8577 enablestring=
8578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8579echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8580 no_cache=0
8581 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8582if test "${enable_tbarnative+set}" = set; then
8583 enableval="$enable_tbarnative"
8584
8585 if test "$enableval" = yes; then
8586 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8587 else
8588 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8589 fi
8590
8591else
8592
8593 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8594 if test "x$LINE" != x ; then
8595 eval "DEFAULT_$LINE"
8596 else
8597 no_cache=1
8598 fi
8599
8600 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8601
8602fi;
8603
8604 eval "$ac_cv_use_tbarnative"
8605 if test "$no_cache" != 1; then
8606 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8607 fi
8608
8609 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611echo "${ECHO_T}yes" >&6
8612 else
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
8615 fi
8616
8617
8618 enablestring=
8619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8620echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8621 no_cache=0
8622 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8623if test "${enable_tbarsmpl+set}" = set; then
8624 enableval="$enable_tbarsmpl"
8625
8626 if test "$enableval" = yes; then
8627 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8628 else
8629 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8630 fi
8631
8632else
8633
8634 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8642
8643fi;
8644
8645 eval "$ac_cv_use_tbarsmpl"
8646 if test "$no_cache" != 1; then
8647 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8648 fi
8649
8650 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8651 echo "$as_me:$LINENO: result: yes" >&5
8652echo "${ECHO_T}yes" >&6
8653 else
8654 echo "$as_me:$LINENO: result: no" >&5
8655echo "${ECHO_T}no" >&6
8656 fi
8657
8658
8659 enablestring=
8660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8661echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8662 no_cache=0
8663 # Check whether --enable-treectrl or --disable-treectrl was given.
8664if test "${enable_treectrl+set}" = set; then
8665 enableval="$enable_treectrl"
8666
8667 if test "$enableval" = yes; then
8668 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8669 else
8670 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8671 fi
8672
8673else
8674
8675 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8676 if test "x$LINE" != x ; then
8677 eval "DEFAULT_$LINE"
8678 else
8679 no_cache=1
8680 fi
8681
8682 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8683
8684fi;
8685
8686 eval "$ac_cv_use_treectrl"
8687 if test "$no_cache" != 1; then
8688 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8689 fi
8690
8691 if test "$wxUSE_TREECTRL" = yes; then
8692 echo "$as_me:$LINENO: result: yes" >&5
8693echo "${ECHO_T}yes" >&6
8694 else
8695 echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6
8697 fi
8698
8699
8700 enablestring=
8701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8702echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8703 no_cache=0
8704 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8705if test "${enable_tipwindow+set}" = set; then
8706 enableval="$enable_tipwindow"
8707
8708 if test "$enableval" = yes; then
8709 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8710 else
8711 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8712 fi
8713
8714else
8715
8716 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8717 if test "x$LINE" != x ; then
8718 eval "DEFAULT_$LINE"
8719 else
8720 no_cache=1
8721 fi
8722
8723 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8724
8725fi;
8726
8727 eval "$ac_cv_use_tipwindow"
8728 if test "$no_cache" != 1; then
8729 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8730 fi
8731
8732 if test "$wxUSE_TIPWINDOW" = yes; then
8733 echo "$as_me:$LINENO: result: yes" >&5
8734echo "${ECHO_T}yes" >&6
8735 else
8736 echo "$as_me:$LINENO: result: no" >&5
8737echo "${ECHO_T}no" >&6
8738 fi
8739
8740
8741 enablestring=
8742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8743echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8744 no_cache=0
8745 # Check whether --enable-popupwin or --disable-popupwin was given.
8746if test "${enable_popupwin+set}" = set; then
8747 enableval="$enable_popupwin"
8748
8749 if test "$enableval" = yes; then
8750 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8751 else
8752 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8753 fi
8754
8755else
8756
8757 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8758 if test "x$LINE" != x ; then
8759 eval "DEFAULT_$LINE"
8760 else
8761 no_cache=1
8762 fi
8763
8764 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8765
8766fi;
8767
8768 eval "$ac_cv_use_popupwin"
8769 if test "$no_cache" != 1; then
8770 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8771 fi
8772
8773 if test "$wxUSE_POPUPWIN" = yes; then
8774 echo "$as_me:$LINENO: result: yes" >&5
8775echo "${ECHO_T}yes" >&6
8776 else
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
8779 fi
8780
8781
8782
8783
8784 enablestring=
8785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8786echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8787 no_cache=0
8788 # Check whether --enable-commondlg or --disable-commondlg was given.
8789if test "${enable_commondlg+set}" = set; then
8790 enableval="$enable_commondlg"
8791
8792 if test "$enableval" = yes; then
8793 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8794 else
8795 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8796 fi
8797
8798else
8799
8800 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8801 if test "x$LINE" != x ; then
8802 eval "DEFAULT_$LINE"
8803 else
8804 no_cache=1
8805 fi
8806
8807 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8808
8809fi;
8810
8811 eval "$ac_cv_use_commondlg"
8812 if test "$no_cache" != 1; then
8813 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8814 fi
8815
8816 if test "$wxUSE_COMMONDLGS" = yes; then
8817 echo "$as_me:$LINENO: result: yes" >&5
8818echo "${ECHO_T}yes" >&6
8819 else
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
8822 fi
8823
8824
8825 enablestring=
8826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8827echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8828 no_cache=0
8829 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8830if test "${enable_choicedlg+set}" = set; then
8831 enableval="$enable_choicedlg"
8832
8833 if test "$enableval" = yes; then
8834 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8835 else
8836 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8837 fi
8838
8839else
8840
8841 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8842 if test "x$LINE" != x ; then
8843 eval "DEFAULT_$LINE"
8844 else
8845 no_cache=1
8846 fi
8847
8848 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8849
8850fi;
8851
8852 eval "$ac_cv_use_choicedlg"
8853 if test "$no_cache" != 1; then
8854 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8855 fi
8856
8857 if test "$wxUSE_CHOICEDLG" = yes; then
8858 echo "$as_me:$LINENO: result: yes" >&5
8859echo "${ECHO_T}yes" >&6
8860 else
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863 fi
8864
8865
8866 enablestring=
8867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8868echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8869 no_cache=0
8870 # Check whether --enable-coldlg or --disable-coldlg was given.
8871if test "${enable_coldlg+set}" = set; then
8872 enableval="$enable_coldlg"
8873
8874 if test "$enableval" = yes; then
8875 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8876 else
8877 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8878 fi
8879
8880else
8881
8882 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8883 if test "x$LINE" != x ; then
8884 eval "DEFAULT_$LINE"
8885 else
8886 no_cache=1
8887 fi
8888
8889 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8890
8891fi;
8892
8893 eval "$ac_cv_use_coldlg"
8894 if test "$no_cache" != 1; then
8895 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8896 fi
8897
8898 if test "$wxUSE_COLOURDLG" = yes; then
8899 echo "$as_me:$LINENO: result: yes" >&5
8900echo "${ECHO_T}yes" >&6
8901 else
8902 echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
8904 fi
8905
8906
8907 enablestring=
8908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8909echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8910 no_cache=0
8911 # Check whether --enable-filedlg or --disable-filedlg was given.
8912if test "${enable_filedlg+set}" = set; then
8913 enableval="$enable_filedlg"
8914
8915 if test "$enableval" = yes; then
8916 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8917 else
8918 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8919 fi
8920
8921else
8922
8923 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8924 if test "x$LINE" != x ; then
8925 eval "DEFAULT_$LINE"
8926 else
8927 no_cache=1
8928 fi
8929
8930 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8931
8932fi;
8933
8934 eval "$ac_cv_use_filedlg"
8935 if test "$no_cache" != 1; then
8936 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8937 fi
8938
8939 if test "$wxUSE_FILEDLG" = yes; then
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
8942 else
8943 echo "$as_me:$LINENO: result: no" >&5
8944echo "${ECHO_T}no" >&6
8945 fi
8946
8947
8948 enablestring=
8949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8950echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8951 no_cache=0
8952 # Check whether --enable-finddlg or --disable-finddlg was given.
8953if test "${enable_finddlg+set}" = set; then
8954 enableval="$enable_finddlg"
8955
8956 if test "$enableval" = yes; then
8957 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8958 else
8959 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8960 fi
8961
8962else
8963
8964 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8965 if test "x$LINE" != x ; then
8966 eval "DEFAULT_$LINE"
8967 else
8968 no_cache=1
8969 fi
8970
8971 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8972
8973fi;
8974
8975 eval "$ac_cv_use_finddlg"
8976 if test "$no_cache" != 1; then
8977 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8978 fi
8979
8980 if test "$wxUSE_FINDREPLDLG" = yes; then
8981 echo "$as_me:$LINENO: result: yes" >&5
8982echo "${ECHO_T}yes" >&6
8983 else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986 fi
8987
8988
8989 enablestring=
8990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8991echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8992 no_cache=0
8993 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8994if test "${enable_fontdlg+set}" = set; then
8995 enableval="$enable_fontdlg"
8996
8997 if test "$enableval" = yes; then
8998 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8999 else
9000 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9001 fi
9002
9003else
9004
9005 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9006 if test "x$LINE" != x ; then
9007 eval "DEFAULT_$LINE"
9008 else
9009 no_cache=1
9010 fi
9011
9012 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9013
9014fi;
9015
9016 eval "$ac_cv_use_fontdlg"
9017 if test "$no_cache" != 1; then
9018 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9019 fi
9020
9021 if test "$wxUSE_FONTDLG" = yes; then
9022 echo "$as_me:$LINENO: result: yes" >&5
9023echo "${ECHO_T}yes" >&6
9024 else
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
9027 fi
9028
9029
9030 enablestring=
9031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9032echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9033 no_cache=0
9034 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9035if test "${enable_dirdlg+set}" = set; then
9036 enableval="$enable_dirdlg"
9037
9038 if test "$enableval" = yes; then
9039 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9040 else
9041 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9042 fi
9043
9044else
9045
9046 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9047 if test "x$LINE" != x ; then
9048 eval "DEFAULT_$LINE"
9049 else
9050 no_cache=1
9051 fi
9052
9053 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9054
9055fi;
9056
9057 eval "$ac_cv_use_dirdlg"
9058 if test "$no_cache" != 1; then
9059 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9060 fi
9061
9062 if test "$wxUSE_DIRDLG" = yes; then
9063 echo "$as_me:$LINENO: result: yes" >&5
9064echo "${ECHO_T}yes" >&6
9065 else
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
9068 fi
9069
9070
9071 enablestring=
9072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9073echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9074 no_cache=0
9075 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9076if test "${enable_msgdlg+set}" = set; then
9077 enableval="$enable_msgdlg"
9078
9079 if test "$enableval" = yes; then
9080 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9081 else
9082 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9083 fi
9084
9085else
9086
9087 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9088 if test "x$LINE" != x ; then
9089 eval "DEFAULT_$LINE"
9090 else
9091 no_cache=1
9092 fi
9093
9094 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9095
9096fi;
9097
9098 eval "$ac_cv_use_msgdlg"
9099 if test "$no_cache" != 1; then
9100 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9101 fi
9102
9103 if test "$wxUSE_MSGDLG" = yes; then
9104 echo "$as_me:$LINENO: result: yes" >&5
9105echo "${ECHO_T}yes" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109 fi
9110
9111
9112 enablestring=
9113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9114echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9115 no_cache=0
9116 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9117if test "${enable_numberdlg+set}" = set; then
9118 enableval="$enable_numberdlg"
9119
9120 if test "$enableval" = yes; then
9121 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9122 else
9123 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9124 fi
9125
9126else
9127
9128 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9129 if test "x$LINE" != x ; then
9130 eval "DEFAULT_$LINE"
9131 else
9132 no_cache=1
9133 fi
9134
9135 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9136
9137fi;
9138
9139 eval "$ac_cv_use_numberdlg"
9140 if test "$no_cache" != 1; then
9141 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9142 fi
9143
9144 if test "$wxUSE_NUMBERDLG" = yes; then
9145 echo "$as_me:$LINENO: result: yes" >&5
9146echo "${ECHO_T}yes" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150 fi
9151
9152
9153 enablestring=
9154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9155echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9156 no_cache=0
9157 # Check whether --enable-splash or --disable-splash was given.
9158if test "${enable_splash+set}" = set; then
9159 enableval="$enable_splash"
9160
9161 if test "$enableval" = yes; then
9162 ac_cv_use_splash='wxUSE_SPLASH=yes'
9163 else
9164 ac_cv_use_splash='wxUSE_SPLASH=no'
9165 fi
9166
9167else
9168
9169 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9170 if test "x$LINE" != x ; then
9171 eval "DEFAULT_$LINE"
9172 else
9173 no_cache=1
9174 fi
9175
9176 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9177
9178fi;
9179
9180 eval "$ac_cv_use_splash"
9181 if test "$no_cache" != 1; then
9182 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9183 fi
9184
9185 if test "$wxUSE_SPLASH" = yes; then
9186 echo "$as_me:$LINENO: result: yes" >&5
9187echo "${ECHO_T}yes" >&6
9188 else
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
9191 fi
9192
9193
9194 enablestring=
9195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9196echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9197 no_cache=0
9198 # Check whether --enable-textdlg or --disable-textdlg was given.
9199if test "${enable_textdlg+set}" = set; then
9200 enableval="$enable_textdlg"
9201
9202 if test "$enableval" = yes; then
9203 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9204 else
9205 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9206 fi
9207
9208else
9209
9210 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9211 if test "x$LINE" != x ; then
9212 eval "DEFAULT_$LINE"
9213 else
9214 no_cache=1
9215 fi
9216
9217 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9218
9219fi;
9220
9221 eval "$ac_cv_use_textdlg"
9222 if test "$no_cache" != 1; then
9223 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9224 fi
9225
9226 if test "$wxUSE_TEXTDLG" = yes; then
9227 echo "$as_me:$LINENO: result: yes" >&5
9228echo "${ECHO_T}yes" >&6
9229 else
9230 echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
9232 fi
9233
9234
9235 enablestring=
9236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9237echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9238 no_cache=0
9239 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9240if test "${enable_tipdlg+set}" = set; then
9241 enableval="$enable_tipdlg"
9242
9243 if test "$enableval" = yes; then
9244 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9245 else
9246 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9247 fi
9248
9249else
9250
9251 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9252 if test "x$LINE" != x ; then
9253 eval "DEFAULT_$LINE"
9254 else
9255 no_cache=1
9256 fi
9257
9258 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9259
9260fi;
9261
9262 eval "$ac_cv_use_tipdlg"
9263 if test "$no_cache" != 1; then
9264 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9265 fi
9266
9267 if test "$wxUSE_STARTUP_TIPS" = yes; then
9268 echo "$as_me:$LINENO: result: yes" >&5
9269echo "${ECHO_T}yes" >&6
9270 else
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
9273 fi
9274
9275
9276 enablestring=
9277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9278echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9279 no_cache=0
9280 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9281if test "${enable_progressdlg+set}" = set; then
9282 enableval="$enable_progressdlg"
9283
9284 if test "$enableval" = yes; then
9285 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9286 else
9287 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9288 fi
9289
9290else
9291
9292 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9293 if test "x$LINE" != x ; then
9294 eval "DEFAULT_$LINE"
9295 else
9296 no_cache=1
9297 fi
9298
9299 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9300
9301fi;
9302
9303 eval "$ac_cv_use_progressdlg"
9304 if test "$no_cache" != 1; then
9305 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9306 fi
9307
9308 if test "$wxUSE_PROGRESSDLG" = yes; then
9309 echo "$as_me:$LINENO: result: yes" >&5
9310echo "${ECHO_T}yes" >&6
9311 else
9312 echo "$as_me:$LINENO: result: no" >&5
9313echo "${ECHO_T}no" >&6
9314 fi
9315
9316
9317 enablestring=
9318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9319echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9320 no_cache=0
9321 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9322if test "${enable_wizarddlg+set}" = set; then
9323 enableval="$enable_wizarddlg"
9324
9325 if test "$enableval" = yes; then
9326 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9327 else
9328 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9329 fi
9330
9331else
9332
9333 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9334 if test "x$LINE" != x ; then
9335 eval "DEFAULT_$LINE"
9336 else
9337 no_cache=1
9338 fi
9339
9340 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9341
9342fi;
9343
9344 eval "$ac_cv_use_wizarddlg"
9345 if test "$no_cache" != 1; then
9346 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9347 fi
9348
9349 if test "$wxUSE_WIZARDDLG" = yes; then
9350 echo "$as_me:$LINENO: result: yes" >&5
9351echo "${ECHO_T}yes" >&6
9352 else
9353 echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6
9355 fi
9356
9357
9358
9359
9360 enablestring=
9361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9362echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9363 no_cache=0
9364 # Check whether --enable-menus or --disable-menus was given.
9365if test "${enable_menus+set}" = set; then
9366 enableval="$enable_menus"
9367
9368 if test "$enableval" = yes; then
9369 ac_cv_use_menus='wxUSE_MENUS=yes'
9370 else
9371 ac_cv_use_menus='wxUSE_MENUS=no'
9372 fi
9373
9374else
9375
9376 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9377 if test "x$LINE" != x ; then
9378 eval "DEFAULT_$LINE"
9379 else
9380 no_cache=1
9381 fi
9382
9383 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9384
9385fi;
9386
9387 eval "$ac_cv_use_menus"
9388 if test "$no_cache" != 1; then
9389 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9390 fi
9391
9392 if test "$wxUSE_MENUS" = yes; then
9393 echo "$as_me:$LINENO: result: yes" >&5
9394echo "${ECHO_T}yes" >&6
9395 else
9396 echo "$as_me:$LINENO: result: no" >&5
9397echo "${ECHO_T}no" >&6
9398 fi
9399
9400
9401 enablestring=
9402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9403echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9404 no_cache=0
9405 # Check whether --enable-miniframe or --disable-miniframe was given.
9406if test "${enable_miniframe+set}" = set; then
9407 enableval="$enable_miniframe"
9408
9409 if test "$enableval" = yes; then
9410 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9411 else
9412 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9413 fi
9414
9415else
9416
9417 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9418 if test "x$LINE" != x ; then
9419 eval "DEFAULT_$LINE"
9420 else
9421 no_cache=1
9422 fi
9423
9424 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9425
9426fi;
9427
9428 eval "$ac_cv_use_miniframe"
9429 if test "$no_cache" != 1; then
9430 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9431 fi
9432
9433 if test "$wxUSE_MINIFRAME" = yes; then
9434 echo "$as_me:$LINENO: result: yes" >&5
9435echo "${ECHO_T}yes" >&6
9436 else
9437 echo "$as_me:$LINENO: result: no" >&5
9438echo "${ECHO_T}no" >&6
9439 fi
9440
9441
9442 enablestring=
9443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9444echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9445 no_cache=0
9446 # Check whether --enable-tooltips or --disable-tooltips was given.
9447if test "${enable_tooltips+set}" = set; then
9448 enableval="$enable_tooltips"
9449
9450 if test "$enableval" = yes; then
9451 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9452 else
9453 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9454 fi
9455
9456else
9457
9458 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9459 if test "x$LINE" != x ; then
9460 eval "DEFAULT_$LINE"
9461 else
9462 no_cache=1
9463 fi
9464
9465 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9466
9467fi;
9468
9469 eval "$ac_cv_use_tooltips"
9470 if test "$no_cache" != 1; then
9471 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9472 fi
9473
9474 if test "$wxUSE_TOOLTIPS" = yes; then
9475 echo "$as_me:$LINENO: result: yes" >&5
9476echo "${ECHO_T}yes" >&6
9477 else
9478 echo "$as_me:$LINENO: result: no" >&5
9479echo "${ECHO_T}no" >&6
9480 fi
9481
9482
9483 enablestring=
9484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9485echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9486 no_cache=0
9487 # Check whether --enable-splines or --disable-splines was given.
9488if test "${enable_splines+set}" = set; then
9489 enableval="$enable_splines"
9490
9491 if test "$enableval" = yes; then
9492 ac_cv_use_splines='wxUSE_SPLINES=yes'
9493 else
9494 ac_cv_use_splines='wxUSE_SPLINES=no'
9495 fi
9496
9497else
9498
9499 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9500 if test "x$LINE" != x ; then
9501 eval "DEFAULT_$LINE"
9502 else
9503 no_cache=1
9504 fi
9505
9506 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9507
9508fi;
9509
9510 eval "$ac_cv_use_splines"
9511 if test "$no_cache" != 1; then
9512 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9513 fi
9514
9515 if test "$wxUSE_SPLINES" = yes; then
9516 echo "$as_me:$LINENO: result: yes" >&5
9517echo "${ECHO_T}yes" >&6
9518 else
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
9521 fi
9522
9523
9524 enablestring=
9525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9526echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9527 no_cache=0
9528 # Check whether --enable-validators or --disable-validators was given.
9529if test "${enable_validators+set}" = set; then
9530 enableval="$enable_validators"
9531
9532 if test "$enableval" = yes; then
9533 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9534 else
9535 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9536 fi
9537
9538else
9539
9540 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9541 if test "x$LINE" != x ; then
9542 eval "DEFAULT_$LINE"
9543 else
9544 no_cache=1
9545 fi
9546
9547 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9548
9549fi;
9550
9551 eval "$ac_cv_use_validators"
9552 if test "$no_cache" != 1; then
9553 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9554 fi
9555
9556 if test "$wxUSE_VALIDATORS" = yes; then
9557 echo "$as_me:$LINENO: result: yes" >&5
9558echo "${ECHO_T}yes" >&6
9559 else
9560 echo "$as_me:$LINENO: result: no" >&5
9561echo "${ECHO_T}no" >&6
9562 fi
9563
9564
9565 enablestring=
9566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9567echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9568 no_cache=0
9569 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9570if test "${enable_busyinfo+set}" = set; then
9571 enableval="$enable_busyinfo"
9572
9573 if test "$enableval" = yes; then
9574 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9575 else
9576 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9577 fi
9578
9579else
9580
9581 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9582 if test "x$LINE" != x ; then
9583 eval "DEFAULT_$LINE"
9584 else
9585 no_cache=1
9586 fi
9587
9588 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9589
9590fi;
9591
9592 eval "$ac_cv_use_busyinfo"
9593 if test "$no_cache" != 1; then
9594 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9595 fi
9596
9597 if test "$wxUSE_BUSYINFO" = yes; then
9598 echo "$as_me:$LINENO: result: yes" >&5
9599echo "${ECHO_T}yes" >&6
9600 else
9601 echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
9603 fi
9604
9605
9606 enablestring=
9607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9608echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9609 no_cache=0
9610 # Check whether --enable-joystick or --disable-joystick was given.
9611if test "${enable_joystick+set}" = set; then
9612 enableval="$enable_joystick"
9613
9614 if test "$enableval" = yes; then
9615 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9616 else
9617 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9618 fi
9619
9620else
9621
9622 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9623 if test "x$LINE" != x ; then
9624 eval "DEFAULT_$LINE"
9625 else
9626 no_cache=1
9627 fi
9628
9629 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9630
9631fi;
9632
9633 eval "$ac_cv_use_joystick"
9634 if test "$no_cache" != 1; then
9635 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9636 fi
9637
9638 if test "$wxUSE_JOYSTICK" = yes; then
9639 echo "$as_me:$LINENO: result: yes" >&5
9640echo "${ECHO_T}yes" >&6
9641 else
9642 echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
9644 fi
9645
9646
9647 enablestring=
9648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9649echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9650 no_cache=0
9651 # Check whether --enable-metafile or --disable-metafile was given.
9652if test "${enable_metafile+set}" = set; then
9653 enableval="$enable_metafile"
9654
9655 if test "$enableval" = yes; then
9656 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9657 else
9658 ac_cv_use_metafile='wxUSE_METAFILE=no'
9659 fi
9660
9661else
9662
9663 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9664 if test "x$LINE" != x ; then
9665 eval "DEFAULT_$LINE"
9666 else
9667 no_cache=1
9668 fi
9669
9670 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9671
9672fi;
9673
9674 eval "$ac_cv_use_metafile"
9675 if test "$no_cache" != 1; then
9676 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9677 fi
9678
9679 if test "$wxUSE_METAFILE" = yes; then
9680 echo "$as_me:$LINENO: result: yes" >&5
9681echo "${ECHO_T}yes" >&6
9682 else
9683 echo "$as_me:$LINENO: result: no" >&5
9684echo "${ECHO_T}no" >&6
9685 fi
9686
9687
9688 enablestring=
9689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9690echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9691 no_cache=0
9692 # Check whether --enable-dragimage or --disable-dragimage was given.
9693if test "${enable_dragimage+set}" = set; then
9694 enableval="$enable_dragimage"
9695
9696 if test "$enableval" = yes; then
9697 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9698 else
9699 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9700 fi
9701
9702else
9703
9704 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9705 if test "x$LINE" != x ; then
9706 eval "DEFAULT_$LINE"
9707 else
9708 no_cache=1
9709 fi
9710
9711 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9712
9713fi;
9714
9715 eval "$ac_cv_use_dragimage"
9716 if test "$no_cache" != 1; then
9717 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9718 fi
9719
9720 if test "$wxUSE_DRAGIMAGE" = yes; then
9721 echo "$as_me:$LINENO: result: yes" >&5
9722echo "${ECHO_T}yes" >&6
9723 else
9724 echo "$as_me:$LINENO: result: no" >&5
9725echo "${ECHO_T}no" >&6
9726 fi
9727
9728
9729 enablestring=
9730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9731echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9732 no_cache=0
9733 # Check whether --enable-accessibility or --disable-accessibility was given.
9734if test "${enable_accessibility+set}" = set; then
9735 enableval="$enable_accessibility"
9736
9737 if test "$enableval" = yes; then
9738 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9739 else
9740 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9741 fi
9742
9743else
9744
9745 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9746 if test "x$LINE" != x ; then
9747 eval "DEFAULT_$LINE"
9748 else
9749 no_cache=1
9750 fi
9751
9752 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9753
9754fi;
9755
9756 eval "$ac_cv_use_accessibility"
9757 if test "$no_cache" != 1; then
9758 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9759 fi
9760
9761 if test "$wxUSE_ACCESSIBILITY" = yes; then
9762 echo "$as_me:$LINENO: result: yes" >&5
9763echo "${ECHO_T}yes" >&6
9764 else
9765 echo "$as_me:$LINENO: result: no" >&5
9766echo "${ECHO_T}no" >&6
9767 fi
9768
9769
9770
9771
9772 enablestring=
9773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9774echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9775 no_cache=0
9776 # Check whether --enable-palette or --disable-palette was given.
9777if test "${enable_palette+set}" = set; then
9778 enableval="$enable_palette"
9779
9780 if test "$enableval" = yes; then
9781 ac_cv_use_palette='wxUSE_PALETTE=yes'
9782 else
9783 ac_cv_use_palette='wxUSE_PALETTE=no'
9784 fi
9785
9786else
9787
9788 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9789 if test "x$LINE" != x ; then
9790 eval "DEFAULT_$LINE"
9791 else
9792 no_cache=1
9793 fi
9794
9795 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9796
9797fi;
9798
9799 eval "$ac_cv_use_palette"
9800 if test "$no_cache" != 1; then
9801 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9802 fi
9803
9804 if test "$wxUSE_PALETTE" = yes; then
9805 echo "$as_me:$LINENO: result: yes" >&5
9806echo "${ECHO_T}yes" >&6
9807 else
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9810 fi
9811
9812
9813 enablestring=
9814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9815echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9816 no_cache=0
9817 # Check whether --enable-image or --disable-image was given.
9818if test "${enable_image+set}" = set; then
9819 enableval="$enable_image"
9820
9821 if test "$enableval" = yes; then
9822 ac_cv_use_image='wxUSE_IMAGE=yes'
9823 else
9824 ac_cv_use_image='wxUSE_IMAGE=no'
9825 fi
9826
9827else
9828
9829 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9830 if test "x$LINE" != x ; then
9831 eval "DEFAULT_$LINE"
9832 else
9833 no_cache=1
9834 fi
9835
9836 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9837
9838fi;
9839
9840 eval "$ac_cv_use_image"
9841 if test "$no_cache" != 1; then
9842 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9843 fi
9844
9845 if test "$wxUSE_IMAGE" = yes; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847echo "${ECHO_T}yes" >&6
9848 else
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
9851 fi
9852
9853
9854 enablestring=
9855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9856echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9857 no_cache=0
9858 # Check whether --enable-gif or --disable-gif was given.
9859if test "${enable_gif+set}" = set; then
9860 enableval="$enable_gif"
9861
9862 if test "$enableval" = yes; then
9863 ac_cv_use_gif='wxUSE_GIF=yes'
9864 else
9865 ac_cv_use_gif='wxUSE_GIF=no'
9866 fi
9867
9868else
9869
9870 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9871 if test "x$LINE" != x ; then
9872 eval "DEFAULT_$LINE"
9873 else
9874 no_cache=1
9875 fi
9876
9877 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9878
9879fi;
9880
9881 eval "$ac_cv_use_gif"
9882 if test "$no_cache" != 1; then
9883 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9884 fi
9885
9886 if test "$wxUSE_GIF" = yes; then
9887 echo "$as_me:$LINENO: result: yes" >&5
9888echo "${ECHO_T}yes" >&6
9889 else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892 fi
9893
9894
9895 enablestring=
9896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9897echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9898 no_cache=0
9899 # Check whether --enable-pcx or --disable-pcx was given.
9900if test "${enable_pcx+set}" = set; then
9901 enableval="$enable_pcx"
9902
9903 if test "$enableval" = yes; then
9904 ac_cv_use_pcx='wxUSE_PCX=yes'
9905 else
9906 ac_cv_use_pcx='wxUSE_PCX=no'
9907 fi
9908
9909else
9910
9911 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9912 if test "x$LINE" != x ; then
9913 eval "DEFAULT_$LINE"
9914 else
9915 no_cache=1
9916 fi
9917
9918 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9919
9920fi;
9921
9922 eval "$ac_cv_use_pcx"
9923 if test "$no_cache" != 1; then
9924 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9925 fi
9926
9927 if test "$wxUSE_PCX" = yes; then
9928 echo "$as_me:$LINENO: result: yes" >&5
9929echo "${ECHO_T}yes" >&6
9930 else
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
9933 fi
9934
9935
9936 enablestring=
9937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9938echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9939 no_cache=0
9940 # Check whether --enable-iff or --disable-iff was given.
9941if test "${enable_iff+set}" = set; then
9942 enableval="$enable_iff"
9943
9944 if test "$enableval" = yes; then
9945 ac_cv_use_iff='wxUSE_IFF=yes'
9946 else
9947 ac_cv_use_iff='wxUSE_IFF=no'
9948 fi
9949
9950else
9951
9952 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9953 if test "x$LINE" != x ; then
9954 eval "DEFAULT_$LINE"
9955 else
9956 no_cache=1
9957 fi
9958
9959 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9960
9961fi;
9962
9963 eval "$ac_cv_use_iff"
9964 if test "$no_cache" != 1; then
9965 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9966 fi
9967
9968 if test "$wxUSE_IFF" = yes; then
9969 echo "$as_me:$LINENO: result: yes" >&5
9970echo "${ECHO_T}yes" >&6
9971 else
9972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
9974 fi
9975
9976
9977 enablestring=
9978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9979echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9980 no_cache=0
9981 # Check whether --enable-pnm or --disable-pnm was given.
9982if test "${enable_pnm+set}" = set; then
9983 enableval="$enable_pnm"
9984
9985 if test "$enableval" = yes; then
9986 ac_cv_use_pnm='wxUSE_PNM=yes'
9987 else
9988 ac_cv_use_pnm='wxUSE_PNM=no'
9989 fi
9990
9991else
9992
9993 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9994 if test "x$LINE" != x ; then
9995 eval "DEFAULT_$LINE"
9996 else
9997 no_cache=1
9998 fi
9999
10000 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10001
10002fi;
10003
10004 eval "$ac_cv_use_pnm"
10005 if test "$no_cache" != 1; then
10006 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10007 fi
10008
10009 if test "$wxUSE_PNM" = yes; then
10010 echo "$as_me:$LINENO: result: yes" >&5
10011echo "${ECHO_T}yes" >&6
10012 else
10013 echo "$as_me:$LINENO: result: no" >&5
10014echo "${ECHO_T}no" >&6
10015 fi
10016
10017
10018 enablestring=
10019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10020echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10021 no_cache=0
10022 # Check whether --enable-xpm or --disable-xpm was given.
10023if test "${enable_xpm+set}" = set; then
10024 enableval="$enable_xpm"
10025
10026 if test "$enableval" = yes; then
10027 ac_cv_use_xpm='wxUSE_XPM=yes'
10028 else
10029 ac_cv_use_xpm='wxUSE_XPM=no'
10030 fi
10031
10032else
10033
10034 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10035 if test "x$LINE" != x ; then
10036 eval "DEFAULT_$LINE"
10037 else
10038 no_cache=1
10039 fi
10040
10041 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10042
10043fi;
10044
10045 eval "$ac_cv_use_xpm"
10046 if test "$no_cache" != 1; then
10047 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10048 fi
10049
10050 if test "$wxUSE_XPM" = yes; then
10051 echo "$as_me:$LINENO: result: yes" >&5
10052echo "${ECHO_T}yes" >&6
10053 else
10054 echo "$as_me:$LINENO: result: no" >&5
10055echo "${ECHO_T}no" >&6
10056 fi
10057
10058
10059 enablestring=
10060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10061echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10062 no_cache=0
10063 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10064if test "${enable_ico_cur+set}" = set; then
10065 enableval="$enable_ico_cur"
10066
10067 if test "$enableval" = yes; then
10068 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10069 else
10070 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10071 fi
10072
10073else
10074
10075 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10076 if test "x$LINE" != x ; then
10077 eval "DEFAULT_$LINE"
10078 else
10079 no_cache=1
10080 fi
10081
10082 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10083
10084fi;
10085
10086 eval "$ac_cv_use_ico_cur"
10087 if test "$no_cache" != 1; then
10088 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10089 fi
10090
10091 if test "$wxUSE_ICO_CUR" = yes; then
10092 echo "$as_me:$LINENO: result: yes" >&5
10093echo "${ECHO_T}yes" >&6
10094 else
10095 echo "$as_me:$LINENO: result: no" >&5
10096echo "${ECHO_T}no" >&6
10097 fi
10098
10099
10100fi
10101
10102
10103
ceec2216
RL
10104# Check whether --with-flavour or --without-flavour was given.
10105if test "${with_flavour+set}" = set; then
10106 withval="$with_flavour"
10107 WX_FLAVOUR="$withval"
10108fi;
10109
10110
10111
a848cd7e
SC
10112 enablestring=
10113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10114echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10115 no_cache=0
10116 # Check whether --enable-official_build or --disable-official_build was given.
10117if test "${enable_official_build+set}" = set; then
10118 enableval="$enable_official_build"
10119
10120 if test "$enableval" = yes; then
10121 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10122 else
10123 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10124 fi
10125
10126else
10127
10128 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10129 if test "x$LINE" != x ; then
10130 eval "DEFAULT_$LINE"
10131 else
10132 no_cache=1
10133 fi
10134
10135 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10136
10137fi;
10138
10139 eval "$ac_cv_use_official_build"
10140 if test "$no_cache" != 1; then
10141 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10142 fi
10143
10144 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10145 echo "$as_me:$LINENO: result: yes" >&5
10146echo "${ECHO_T}yes" >&6
10147 else
10148 echo "$as_me:$LINENO: result: no" >&5
10149echo "${ECHO_T}no" >&6
10150 fi
10151
10152# Check whether --enable-vendor or --disable-vendor was given.
10153if test "${enable_vendor+set}" = set; then
10154 enableval="$enable_vendor"
10155 VENDOR="$enableval"
10156fi;
10157if test "x$VENDOR" = "x"; then
10158 VENDOR="custom"
10159fi
10160
a848cd7e
SC
10161
10162
10163
10164 echo "saving argument cache $wx_arg_cache_file"
10165 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10166
10167
10168
10169echo "$as_me:$LINENO: checking for toolkit" >&5
10170echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10171
10172# In Wine, we need to default to MSW, not GTK or MOTIF
10173if test "$wxUSE_WINE" = "yes"; then
10174 DEFAULT_DEFAULT_wxUSE_GTK=0
10175 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10176 DEFAULT_DEFAULT_wxUSE_MSW=1
10177 wxUSE_SHARED=no
10178fi
10179
10180if test "$wxUSE_GUI" = "yes"; then
10181
10182 if test "$USE_BEOS" = 1; then
10183 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10184echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10185 { (exit 1); exit 1; }; }
10186 fi
10187
10188 if test "$TOOLKIT_GIVEN" = 1; then
10189 for toolkit in `echo $ALL_TOOLKITS`; do
10190 var=wxUSE_$toolkit
10191 eval "value=\$${var}"
10192 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10193 done
10194 else
10195 for toolkit in `echo $ALL_TOOLKITS`; do
10196 if test "$has_toolkit_in_cache" != 1; then
10197 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10198 else
10199 var=DEFAULT_wxUSE_$toolkit
10200 fi
10201 eval "wxUSE_$toolkit=\$${var}"
10202 done
10203 fi
10204
10205 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10206 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10207 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10208
10209 case "${host}" in
10210 *-pc-os2_emx | *-pc-os2-emx )
10211 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10212 esac
10213
10214 case "$NUM_TOOLKITS" in
10215 1)
10216 ;;
10217 0)
10218 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10219echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10220 { (exit 1); exit 1; }; }
10221 ;;
10222 *)
10223 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10224echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10225 { (exit 1); exit 1; }; }
10226 esac
10227
10228 for toolkit in `echo $ALL_TOOLKITS`; do
10229 var=wxUSE_$toolkit
10230 eval "value=\$${var}"
10231 if test "x$value" != x; then
10232 cache_var=CACHE_$toolkit
10233 eval "cache=\$${cache_var}"
10234 if test "$cache" = 1; then
10235 echo "$var=$value" >> ${wx_arg_cache_file}
10236 fi
10237 if test "$value" = 1; then
10238 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10239 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10240echo "${ECHO_T}$toolkit_echo" >&6
10241 fi
10242 fi
10243 done
10244else
10245 if test "x$host_alias" != "x"; then
10246 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10247echo "${ECHO_T}base ($host_alias hosted) only" >&6
10248 else
10249 echo "$as_me:$LINENO: result: base only" >&5
10250echo "${ECHO_T}base only" >&6
10251 fi
10252fi
10253
10254wants_win32=0
10255doesnt_want_win32=0
10256case "${host}" in
10257 *-*-cygwin*)
10258 if test "$wxUSE_MSW" = 1 ; then
10259 wants_win32=1
10260 else
10261 doesnt_want_win32=1
10262 fi
10263 ;;
10264 *-*-mingw*)
10265 wants_win32=1
10266 ;;
10267esac
10268
10269if test "$wxUSE_WINE" = "yes"; then
10270 wants_win32=1
10271 CC=winegcc
10272 CXX=wineg++
10273 RESCOMP=wrc
10274 LDFLAGS_GUI="-mwindows"
10275fi
10276
10277if test "$wants_win32" = 1 ; then
10278 USE_UNIX=0
10279 USE_WIN32=1
10280 cat >>confdefs.h <<\_ACEOF
10281#define __WIN32__ 1
10282_ACEOF
10283
10284 cat >>confdefs.h <<\_ACEOF
10285#define __WIN95__ 1
10286_ACEOF
10287
10288 cat >>confdefs.h <<\_ACEOF
10289#define __WINDOWS__ 1
10290_ACEOF
10291
10292 cat >>confdefs.h <<\_ACEOF
10293#define __GNUWIN32__ 1
10294_ACEOF
10295
10296 cat >>confdefs.h <<\_ACEOF
10297#define STRICT 1
10298_ACEOF
10299
10300 cat >>confdefs.h <<\_ACEOF
10301#define WINVER 0x0400
10302_ACEOF
10303
10304fi
10305if test "$doesnt_want_win32" = 1 ; then
10306 USE_UNIX=1
10307 USE_WIN32=0
10308fi
10309
10310if test "$USE_UNIX" = 1 ; then
10311 wxUSE_UNIX=yes
10312 cat >>confdefs.h <<\_ACEOF
10313#define __UNIX__ 1
10314_ACEOF
10315
10316fi
10317
10318
10319cat >confcache <<\_ACEOF
10320# This file is a shell script that caches the results of configure
10321# tests run on this system so they can be shared between configure
10322# scripts and configure runs, see configure's option --config-cache.
10323# It is not useful on other systems. If it contains results you don't
10324# want to keep, you may remove or edit it.
10325#
10326# config.status only pays attention to the cache file if you give it
10327# the --recheck option to rerun configure.
10328#
10329# `ac_cv_env_foo' variables (set or unset) will be overridden when
10330# loading this file, other *unset* `ac_cv_foo' will be assigned the
10331# following values.
10332
10333_ACEOF
10334
10335# The following way of writing the cache mishandles newlines in values,
10336# but we know of no workaround that is simple, portable, and efficient.
10337# So, don't put newlines in cache variables' values.
10338# Ultrix sh set writes to stderr and can't be redirected directly,
10339# and sets the high bit in the cache file unless we assign to the vars.
10340{
10341 (set) 2>&1 |
10342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10343 *ac_space=\ *)
10344 # `set' does not quote correctly, so add quotes (double-quote
10345 # substitution turns \\\\ into \\, and sed turns \\ into \).
10346 sed -n \
ac1cb8d3
VS
10347 "s/'/'\\\\''/g;
10348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10349 ;;
10350 *)
10351 # `set' quotes correctly as required by POSIX, so do not add quotes.
10352 sed -n \
ac1cb8d3 10353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10354 ;;
10355 esac;
10356} |
10357 sed '
10358 t clear
10359 : clear
10360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10361 t end
10362 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10363 : end' >>confcache
10364if diff $cache_file confcache >/dev/null 2>&1; then :; else
10365 if test -w $cache_file; then
10366 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10367 cat confcache >$cache_file
10368 else
10369 echo "not updating unwritable cache $cache_file"
10370 fi
10371fi
10372rm -f confcache
10373
10374if test "$build" != "$host" ; then
1e9e8aba 10375 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10376 CC=$host_alias-gcc
10377 CXX=$host_alias-c++
10378 AR=$host_alias-ar
10379 RANLIB=$host_alias-ranlib
10380 DLLTOOL=$host_alias-dlltool
10381 RESCOMP=$host_alias-windres
a848cd7e 10382 STRIP=$host_alias-strip
1e9e8aba
DE
10383 elif test "x$CC" '!=' "x"; then
10384 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10385 else
10386 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10387echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10388 { (exit 1); exit 1; }; }
10389 fi
10390fi
10391
10392CFLAGS=${CFLAGS:=}
10393ac_ext=c
10394ac_cpp='$CPP $CPPFLAGS'
10395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397ac_compiler_gnu=$ac_cv_c_compiler_gnu
10398if test -n "$ac_tool_prefix"; then
10399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10400set dummy ${ac_tool_prefix}gcc; ac_word=$2
10401echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10403if test "${ac_cv_prog_CC+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 if test -n "$CC"; then
10407 ac_cv_prog_CC="$CC" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
10422
10423fi
10424fi
10425CC=$ac_cv_prog_CC
10426if test -n "$CC"; then
10427 echo "$as_me:$LINENO: result: $CC" >&5
10428echo "${ECHO_T}$CC" >&6
10429else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432fi
10433
10434fi
10435if test -z "$ac_cv_prog_CC"; then
10436 ac_ct_CC=$CC
10437 # Extract the first word of "gcc", so it can be a program name with args.
10438set dummy gcc; ac_word=$2
10439echo "$as_me:$LINENO: checking for $ac_word" >&5
10440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444 if test -n "$ac_ct_CC"; then
10445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10446else
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_ac_ct_CC="gcc"
10455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10457 fi
10458done
10459done
10460
10461fi
10462fi
10463ac_ct_CC=$ac_cv_prog_ac_ct_CC
10464if test -n "$ac_ct_CC"; then
10465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10466echo "${ECHO_T}$ac_ct_CC" >&6
10467else
10468 echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
10470fi
10471
10472 CC=$ac_ct_CC
10473else
10474 CC="$ac_cv_prog_CC"
10475fi
10476
10477if test -z "$CC"; then
10478 if test -n "$ac_tool_prefix"; then
10479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10480set dummy ${ac_tool_prefix}cc; ac_word=$2
10481echo "$as_me:$LINENO: checking for $ac_word" >&5
10482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10483if test "${ac_cv_prog_CC+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 if test -n "$CC"; then
10487 ac_cv_prog_CC="$CC" # Let the user override the test.
10488else
10489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $PATH
10491do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_CC="${ac_tool_prefix}cc"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10499 fi
10500done
10501done
10502
10503fi
10504fi
10505CC=$ac_cv_prog_CC
10506if test -n "$CC"; then
10507 echo "$as_me:$LINENO: result: $CC" >&5
10508echo "${ECHO_T}$CC" >&6
10509else
10510 echo "$as_me:$LINENO: result: no" >&5
10511echo "${ECHO_T}no" >&6
10512fi
10513
10514fi
10515if test -z "$ac_cv_prog_CC"; then
10516 ac_ct_CC=$CC
10517 # Extract the first word of "cc", so it can be a program name with args.
10518set dummy cc; ac_word=$2
10519echo "$as_me:$LINENO: checking for $ac_word" >&5
10520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523else
10524 if test -n "$ac_ct_CC"; then
10525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10526else
10527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528for as_dir in $PATH
10529do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_prog_ac_ct_CC="cc"
10535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538done
10539done
10540
10541fi
10542fi
10543ac_ct_CC=$ac_cv_prog_ac_ct_CC
10544if test -n "$ac_ct_CC"; then
10545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10546echo "${ECHO_T}$ac_ct_CC" >&6
10547else
10548 echo "$as_me:$LINENO: result: no" >&5
10549echo "${ECHO_T}no" >&6
10550fi
10551
10552 CC=$ac_ct_CC
10553else
10554 CC="$ac_cv_prog_CC"
10555fi
10556
10557fi
10558if test -z "$CC"; then
10559 # Extract the first word of "cc", so it can be a program name with args.
10560set dummy cc; ac_word=$2
10561echo "$as_me:$LINENO: checking for $ac_word" >&5
10562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10563if test "${ac_cv_prog_CC+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566 if test -n "$CC"; then
10567 ac_cv_prog_CC="$CC" # Let the user override the test.
10568else
10569 ac_prog_rejected=no
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10578 ac_prog_rejected=yes
10579 continue
10580 fi
10581 ac_cv_prog_CC="cc"
10582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585done
10586done
10587
10588if test $ac_prog_rejected = yes; then
10589 # We found a bogon in the path, so make sure we never use it.
10590 set dummy $ac_cv_prog_CC
10591 shift
10592 if test $# != 0; then
10593 # We chose a different compiler from the bogus one.
10594 # However, it has the same basename, so the bogon will be chosen
10595 # first if we set CC to just the basename; use the full file name.
10596 shift
10597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10598 fi
10599fi
10600fi
10601fi
10602CC=$ac_cv_prog_CC
10603if test -n "$CC"; then
10604 echo "$as_me:$LINENO: result: $CC" >&5
10605echo "${ECHO_T}$CC" >&6
10606else
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
10609fi
10610
10611fi
10612if test -z "$CC"; then
10613 if test -n "$ac_tool_prefix"; then
10614 for ac_prog in cl
10615 do
10616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10618echo "$as_me:$LINENO: checking for $ac_word" >&5
10619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10620if test "${ac_cv_prog_CC+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 if test -n "$CC"; then
10624 ac_cv_prog_CC="$CC" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639
10640fi
10641fi
10642CC=$ac_cv_prog_CC
10643if test -n "$CC"; then
10644 echo "$as_me:$LINENO: result: $CC" >&5
10645echo "${ECHO_T}$CC" >&6
10646else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649fi
10650
10651 test -n "$CC" && break
10652 done
10653fi
10654if test -z "$CC"; then
10655 ac_ct_CC=$CC
10656 for ac_prog in cl
10657do
10658 # Extract the first word of "$ac_prog", so it can be a program name with args.
10659set dummy $ac_prog; ac_word=$2
10660echo "$as_me:$LINENO: checking for $ac_word" >&5
10661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 if test -n "$ac_ct_CC"; then
10666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10667else
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_prog_ac_ct_CC="$ac_prog"
10676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680done
10681
10682fi
10683fi
10684ac_ct_CC=$ac_cv_prog_ac_ct_CC
10685if test -n "$ac_ct_CC"; then
10686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10687echo "${ECHO_T}$ac_ct_CC" >&6
10688else
10689 echo "$as_me:$LINENO: result: no" >&5
10690echo "${ECHO_T}no" >&6
10691fi
10692
10693 test -n "$ac_ct_CC" && break
10694done
10695
10696 CC=$ac_ct_CC
10697fi
10698
10699fi
10700
10701
10702test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10703See \`config.log' for more details." >&5
10704echo "$as_me: error: no acceptable C compiler found in \$PATH
10705See \`config.log' for more details." >&2;}
10706 { (exit 1); exit 1; }; }
10707
10708# Provide some information about the compiler.
10709echo "$as_me:$LINENO:" \
10710 "checking for C compiler version" >&5
10711ac_compiler=`set X $ac_compile; echo $2`
10712{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10713 (eval $ac_compiler --version </dev/null >&5) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }
10717{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10718 (eval $ac_compiler -v </dev/null >&5) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
10722{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10723 (eval $ac_compiler -V </dev/null >&5) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }
10727
10728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734
10735int
10736main ()
10737{
10738
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743ac_clean_files_save=$ac_clean_files
10744ac_clean_files="$ac_clean_files a.out a.exe b.out"
10745# Try to create an executable without -o first, disregard a.out.
10746# It will help us diagnose broken compilers, and finding out an intuition
10747# of exeext.
ac1cb8d3
VS
10748echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10749echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10750ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10751if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10752 (eval $ac_link_default) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; then
10756 # Find the output, starting from the most likely. This scheme is
10757# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10758# resort.
10759
10760# Be careful to initialize this variable, since it used to be cached.
10761# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10762ac_cv_exeext=
10763# b.out is created by i960 compilers.
10764for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10765do
10766 test -f "$ac_file" || continue
10767 case $ac_file in
10768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10769 ;;
a848cd7e 10770 conftest.$ac_ext )
ac1cb8d3
VS
10771 # This is the source file.
10772 ;;
a848cd7e 10773 [ab].out )
ac1cb8d3
VS
10774 # We found the default executable, but exeext='' is most
10775 # certainly right.
10776 break;;
a848cd7e 10777 *.* )
ac1cb8d3
VS
10778 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10779 # FIXME: I believe we export ac_cv_exeext for Libtool,
10780 # but it would be cool to find out if it's true. Does anybody
10781 # maintain Libtool? --akim.
10782 export ac_cv_exeext
10783 break;;
a848cd7e 10784 * )
ac1cb8d3 10785 break;;
a848cd7e
SC
10786 esac
10787done
10788else
10789 echo "$as_me: failed program was:" >&5
10790sed 's/^/| /' conftest.$ac_ext >&5
10791
10792{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: C compiler cannot create executables
10795See \`config.log' for more details." >&2;}
10796 { (exit 77); exit 77; }; }
10797fi
10798
10799ac_exeext=$ac_cv_exeext
10800echo "$as_me:$LINENO: result: $ac_file" >&5
10801echo "${ECHO_T}$ac_file" >&6
10802
10803# Check the compiler produces executables we can run. If not, either
10804# the compiler is broken, or we cross compile.
10805echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10806echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10807# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10808# If not cross compiling, check that we can run a simple program.
10809if test "$cross_compiling" != yes; then
10810 if { ac_try='./$ac_file'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 cross_compiling=no
10817 else
10818 if test "$cross_compiling" = maybe; then
10819 cross_compiling=yes
10820 else
10821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10822If you meant to cross compile, use \`--host'.
10823See \`config.log' for more details." >&5
10824echo "$as_me: error: cannot run C compiled programs.
10825If you meant to cross compile, use \`--host'.
10826See \`config.log' for more details." >&2;}
10827 { (exit 1); exit 1; }; }
10828 fi
10829 fi
10830fi
10831echo "$as_me:$LINENO: result: yes" >&5
10832echo "${ECHO_T}yes" >&6
10833
10834rm -f a.out a.exe conftest$ac_cv_exeext b.out
10835ac_clean_files=$ac_clean_files_save
10836# Check the compiler produces executables we can run. If not, either
10837# the compiler is broken, or we cross compile.
10838echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10839echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10840echo "$as_me:$LINENO: result: $cross_compiling" >&5
10841echo "${ECHO_T}$cross_compiling" >&6
10842
10843echo "$as_me:$LINENO: checking for suffix of executables" >&5
10844echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; then
10850 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10851# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10852# work properly (i.e., refer to `conftest.exe'), while it won't with
10853# `rm'.
10854for ac_file in conftest.exe conftest conftest.*; do
10855 test -f "$ac_file" || continue
10856 case $ac_file in
10857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10859 export ac_cv_exeext
10860 break;;
a848cd7e
SC
10861 * ) break;;
10862 esac
10863done
10864else
10865 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10866See \`config.log' for more details." >&5
10867echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10868See \`config.log' for more details." >&2;}
10869 { (exit 1); exit 1; }; }
10870fi
10871
10872rm -f conftest$ac_cv_exeext
10873echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10874echo "${ECHO_T}$ac_cv_exeext" >&6
10875
10876rm -f conftest.$ac_ext
10877EXEEXT=$ac_cv_exeext
10878ac_exeext=$EXEEXT
10879echo "$as_me:$LINENO: checking for suffix of object files" >&5
10880echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10881if test "${ac_cv_objext+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 cat >conftest.$ac_ext <<_ACEOF
10885/* confdefs.h. */
10886_ACEOF
10887cat confdefs.h >>conftest.$ac_ext
10888cat >>conftest.$ac_ext <<_ACEOF
10889/* end confdefs.h. */
10890
10891int
10892main ()
10893{
10894
10895 ;
10896 return 0;
10897}
10898_ACEOF
10899rm -f conftest.o conftest.obj
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; then
10905 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10906 case $ac_file in
10907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10909 break;;
10910 esac
10911done
10912else
10913 echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
10915
10916{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10917See \`config.log' for more details." >&5
10918echo "$as_me: error: cannot compute suffix of object files: cannot compile
10919See \`config.log' for more details." >&2;}
10920 { (exit 1); exit 1; }; }
10921fi
10922
10923rm -f conftest.$ac_cv_objext conftest.$ac_ext
10924fi
10925echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10926echo "${ECHO_T}$ac_cv_objext" >&6
10927OBJEXT=$ac_cv_objext
10928ac_objext=$OBJEXT
10929echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10930echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10931if test "${ac_cv_c_compiler_gnu+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933else
10934 cat >conftest.$ac_ext <<_ACEOF
10935/* confdefs.h. */
10936_ACEOF
10937cat confdefs.h >>conftest.$ac_ext
10938cat >>conftest.$ac_ext <<_ACEOF
10939/* end confdefs.h. */
10940
10941int
10942main ()
10943{
10944#ifndef __GNUC__
10945 choke me
10946#endif
10947
10948 ;
10949 return 0;
10950}
10951_ACEOF
10952rm -f conftest.$ac_objext
10953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10954 (eval $ac_compile) 2>conftest.er1
a848cd7e 10955 ac_status=$?
ac1cb8d3
VS
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
a848cd7e
SC
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
5294a27e 10961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 ac_compiler_gnu=yes
10974else
10975 echo "$as_me: failed program was:" >&5
10976sed 's/^/| /' conftest.$ac_ext >&5
10977
10978ac_compiler_gnu=no
10979fi
ac1cb8d3 10980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10981ac_cv_c_compiler_gnu=$ac_compiler_gnu
10982
10983fi
10984echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10985echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10986GCC=`test $ac_compiler_gnu = yes && echo yes`
10987ac_test_CFLAGS=${CFLAGS+set}
10988ac_save_CFLAGS=$CFLAGS
10989CFLAGS="-g"
10990echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10991echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10992if test "${ac_cv_prog_cc_g+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
11001
11002int
11003main ()
11004{
11005
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext
11011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11012 (eval $ac_compile) 2>conftest.er1
a848cd7e 11013 ac_status=$?
ac1cb8d3
VS
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
a848cd7e
SC
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
5294a27e 11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_prog_cc_g=yes
11032else
11033 echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036ac_cv_prog_cc_g=no
11037fi
ac1cb8d3 11038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11039fi
11040echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11041echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11042if test "$ac_test_CFLAGS" = set; then
11043 CFLAGS=$ac_save_CFLAGS
11044elif test $ac_cv_prog_cc_g = yes; then
11045 if test "$GCC" = yes; then
11046 CFLAGS="-g -O2"
11047 else
11048 CFLAGS="-g"
11049 fi
11050else
11051 if test "$GCC" = yes; then
11052 CFLAGS="-O2"
11053 else
11054 CFLAGS=
11055 fi
11056fi
11057echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11058echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11059if test "${ac_cv_prog_cc_stdc+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061else
11062 ac_cv_prog_cc_stdc=no
11063ac_save_CC=$CC
11064cat >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#include <stdarg.h>
11071#include <stdio.h>
11072#include <sys/types.h>
11073#include <sys/stat.h>
11074/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11075struct buf { int x; };
11076FILE * (*rcsopen) (struct buf *, struct stat *, int);
11077static char *e (p, i)
11078 char **p;
11079 int i;
11080{
11081 return p[i];
11082}
11083static char *f (char * (*g) (char **, int), char **p, ...)
11084{
11085 char *s;
11086 va_list v;
11087 va_start (v,p);
11088 s = g (p, va_arg (v,int));
11089 va_end (v);
11090 return s;
11091}
ac1cb8d3
VS
11092
11093/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11094 function prototypes and stuff, but not '\xHH' hex character constants.
11095 These don't provoke an error unfortunately, instead are silently treated
11096 as 'x'. The following induces an error, until -std1 is added to get
11097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11098 array size at least. It's necessary to write '\x00'==0 to get something
11099 that's true only with -std1. */
11100int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11101
a848cd7e
SC
11102int test (int i, double x);
11103struct s1 {int (*f) (int a);};
11104struct s2 {int (*f) (double a);};
11105int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11106int argc;
11107char **argv;
11108int
11109main ()
11110{
11111return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11112 ;
11113 return 0;
11114}
11115_ACEOF
11116# Don't try gcc -ansi; that turns off useful extensions and
11117# breaks some systems' header files.
11118# AIX -qlanglvl=ansi
11119# Ultrix and OSF/1 -std1
11120# HP-UX 10.20 and later -Ae
11121# HP-UX older versions -Aa -D_HPUX_SOURCE
11122# SVR4 -Xc -D__EXTENSIONS__
11123for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11124do
11125 CC="$ac_save_CC $ac_arg"
11126 rm -f conftest.$ac_objext
11127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11128 (eval $ac_compile) 2>conftest.er1
a848cd7e 11129 ac_status=$?
ac1cb8d3
VS
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
a848cd7e
SC
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
5294a27e 11135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_cv_prog_cc_stdc=$ac_arg
11148break
11149else
11150 echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153fi
ac1cb8d3 11154rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11155done
11156rm -f conftest.$ac_ext conftest.$ac_objext
11157CC=$ac_save_CC
11158
11159fi
11160
11161case "x$ac_cv_prog_cc_stdc" in
11162 x|xno)
11163 echo "$as_me:$LINENO: result: none needed" >&5
11164echo "${ECHO_T}none needed" >&6 ;;
11165 *)
11166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11167echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11168 CC="$CC $ac_cv_prog_cc_stdc" ;;
11169esac
11170
11171# Some people use a C++ compiler to compile C. Since we use `exit',
11172# in C++ we need to declare it. In case someone uses the same compiler
11173# for both compiling C and C++ we need to have the C++ compiler decide
11174# the declaration of exit, since it's the most demanding environment.
11175cat >conftest.$ac_ext <<_ACEOF
11176#ifndef __cplusplus
11177 choke me
11178#endif
11179_ACEOF
11180rm -f conftest.$ac_objext
11181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11182 (eval $ac_compile) 2>conftest.er1
a848cd7e 11183 ac_status=$?
ac1cb8d3
VS
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
a848cd7e
SC
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
5294a27e 11189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 for ac_declaration in \
ac1cb8d3 11202 '' \
a848cd7e
SC
11203 'extern "C" void std::exit (int) throw (); using std::exit;' \
11204 'extern "C" void std::exit (int); using std::exit;' \
11205 'extern "C" void exit (int) throw ();' \
11206 'extern "C" void exit (int);' \
11207 'void exit (int);'
11208do
11209 cat >conftest.$ac_ext <<_ACEOF
11210/* confdefs.h. */
11211_ACEOF
11212cat confdefs.h >>conftest.$ac_ext
11213cat >>conftest.$ac_ext <<_ACEOF
11214/* end confdefs.h. */
de59c161 11215$ac_declaration
ac1cb8d3 11216#include <stdlib.h>
a848cd7e
SC
11217int
11218main ()
11219{
11220exit (42);
11221 ;
11222 return 0;
11223}
11224_ACEOF
11225rm -f conftest.$ac_objext
11226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11227 (eval $ac_compile) 2>conftest.er1
a848cd7e 11228 ac_status=$?
ac1cb8d3
VS
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
a848cd7e
SC
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
5294a27e 11234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 :
11247else
11248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250
11251continue
11252fi
ac1cb8d3 11253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11254 cat >conftest.$ac_ext <<_ACEOF
11255/* confdefs.h. */
11256_ACEOF
11257cat confdefs.h >>conftest.$ac_ext
11258cat >>conftest.$ac_ext <<_ACEOF
11259/* end confdefs.h. */
11260$ac_declaration
11261int
11262main ()
11263{
11264exit (42);
11265 ;
11266 return 0;
11267}
11268_ACEOF
11269rm -f conftest.$ac_objext
11270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11271 (eval $ac_compile) 2>conftest.er1
a848cd7e 11272 ac_status=$?
ac1cb8d3
VS
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
a848cd7e
SC
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
5294a27e 11278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 break
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295fi
ac1cb8d3 11296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11297done
11298rm -f conftest*
11299if test -n "$ac_declaration"; then
11300 echo '#ifdef __cplusplus' >>confdefs.h
11301 echo $ac_declaration >>confdefs.h
11302 echo '#endif' >>confdefs.h
11303fi
11304
11305else
11306 echo "$as_me: failed program was:" >&5
11307sed 's/^/| /' conftest.$ac_ext >&5
11308
11309fi
ac1cb8d3 11310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11311ac_ext=c
11312ac_cpp='$CPP $CPPFLAGS'
11313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11315ac_compiler_gnu=$ac_cv_c_compiler_gnu
11316
11317
11318
11319ac_ext=c
11320ac_cpp='$CPP $CPPFLAGS'
11321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11323ac_compiler_gnu=$ac_cv_c_compiler_gnu
11324echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11325echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11326# On Suns, sometimes $CPP names a directory.
11327if test -n "$CPP" && test -d "$CPP"; then
11328 CPP=
11329fi
11330if test -z "$CPP"; then
11331 if test "${ac_cv_prog_CPP+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333else
11334 # Double quotes because CPP needs to be expanded
11335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11336 do
11337 ac_preproc_ok=false
11338for ac_c_preproc_warn_flag in '' yes
11339do
11340 # Use a header file that comes with gcc, so configuring glibc
11341 # with a fresh cross-compiler works.
11342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343 # <limits.h> exists even on freestanding compilers.
11344 # On the NeXT, cc -E runs the code through the compiler's parser,
11345 # not just through cpp. "Syntax error" is here to catch this case.
11346 cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */
11352#ifdef __STDC__
11353# include <limits.h>
11354#else
11355# include <assert.h>
11356#endif
ac1cb8d3 11357 Syntax error
a848cd7e
SC
11358_ACEOF
11359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } >/dev/null; then
11367 if test -s conftest.err; then
11368 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11370 else
11371 ac_cpp_err=
11372 fi
11373else
11374 ac_cpp_err=yes
11375fi
11376if test -z "$ac_cpp_err"; then
11377 :
11378else
11379 echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 # Broken: fails on valid input.
11383continue
11384fi
11385rm -f conftest.err conftest.$ac_ext
11386
11387 # OK, works on sane cases. Now check whether non-existent headers
11388 # can be detected and how.
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#include <ac_nonexistent.h>
11396_ACEOF
11397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11408 else
11409 ac_cpp_err=
11410 fi
11411else
11412 ac_cpp_err=yes
11413fi
11414if test -z "$ac_cpp_err"; then
11415 # Broken: success on invalid input.
11416continue
11417else
11418 echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 # Passes both tests.
11422ac_preproc_ok=:
11423break
11424fi
11425rm -f conftest.err conftest.$ac_ext
11426
11427done
11428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11429rm -f conftest.err conftest.$ac_ext
11430if $ac_preproc_ok; then
11431 break
11432fi
11433
11434 done
11435 ac_cv_prog_CPP=$CPP
11436
11437fi
11438 CPP=$ac_cv_prog_CPP
11439else
11440 ac_cv_prog_CPP=$CPP
11441fi
11442echo "$as_me:$LINENO: result: $CPP" >&5
11443echo "${ECHO_T}$CPP" >&6
11444ac_preproc_ok=false
11445for ac_c_preproc_warn_flag in '' yes
11446do
11447 # Use a header file that comes with gcc, so configuring glibc
11448 # with a fresh cross-compiler works.
11449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 # <limits.h> exists even on freestanding compilers.
11451 # On the NeXT, cc -E runs the code through the compiler's parser,
11452 # not just through cpp. "Syntax error" is here to catch this case.
11453 cat >conftest.$ac_ext <<_ACEOF
11454/* confdefs.h. */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h. */
11459#ifdef __STDC__
11460# include <limits.h>
11461#else
11462# include <assert.h>
11463#endif
ac1cb8d3 11464 Syntax error
a848cd7e
SC
11465_ACEOF
11466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } >/dev/null; then
11474 if test -s conftest.err; then
11475 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11477 else
11478 ac_cpp_err=
11479 fi
11480else
11481 ac_cpp_err=yes
11482fi
11483if test -z "$ac_cpp_err"; then
11484 :
11485else
11486 echo "$as_me: failed program was:" >&5
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 # Broken: fails on valid input.
11490continue
11491fi
11492rm -f conftest.err conftest.$ac_ext
11493
11494 # OK, works on sane cases. Now check whether non-existent headers
11495 # can be detected and how.
11496 cat >conftest.$ac_ext <<_ACEOF
11497/* confdefs.h. */
11498_ACEOF
11499cat confdefs.h >>conftest.$ac_ext
11500cat >>conftest.$ac_ext <<_ACEOF
11501/* end confdefs.h. */
11502#include <ac_nonexistent.h>
11503_ACEOF
11504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } >/dev/null; then
11512 if test -s conftest.err; then
11513 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11515 else
11516 ac_cpp_err=
11517 fi
11518else
11519 ac_cpp_err=yes
11520fi
11521if test -z "$ac_cpp_err"; then
11522 # Broken: success on invalid input.
11523continue
11524else
11525 echo "$as_me: failed program was:" >&5
11526sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 # Passes both tests.
11529ac_preproc_ok=:
11530break
11531fi
11532rm -f conftest.err conftest.$ac_ext
11533
11534done
11535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11536rm -f conftest.err conftest.$ac_ext
11537if $ac_preproc_ok; then
11538 :
11539else
11540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11541See \`config.log' for more details." >&5
11542echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11543See \`config.log' for more details." >&2;}
11544 { (exit 1); exit 1; }; }
11545fi
11546
11547ac_ext=c
11548ac_cpp='$CPP $CPPFLAGS'
11549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11551ac_compiler_gnu=$ac_cv_c_compiler_gnu
11552
11553
11554echo "$as_me:$LINENO: checking for egrep" >&5
11555echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11556if test "${ac_cv_prog_egrep+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11560 then ac_cv_prog_egrep='grep -E'
11561 else ac_cv_prog_egrep='egrep'
11562 fi
11563fi
11564echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11565echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11566 EGREP=$ac_cv_prog_egrep
11567
11568
11569if test $ac_cv_c_compiler_gnu = yes; then
11570 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11571echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11572if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 ac_pattern="Autoconf.*'x'"
11576 cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h. */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h. */
11582#include <sgtty.h>
11583Autoconf TIOCGETP
11584_ACEOF
11585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11586 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11587 ac_cv_prog_gcc_traditional=yes
11588else
11589 ac_cv_prog_gcc_traditional=no
11590fi
11591rm -f conftest*
11592
11593
11594 if test $ac_cv_prog_gcc_traditional = no; then
11595 cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
11601#include <termio.h>
11602Autoconf TCGETA
11603_ACEOF
11604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11605 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11606 ac_cv_prog_gcc_traditional=yes
11607fi
11608rm -f conftest*
11609
11610 fi
11611fi
11612echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11613echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11614 if test $ac_cv_prog_gcc_traditional = yes; then
11615 CC="$CC -traditional"
11616 fi
11617fi
11618
11619
11620
11621
11622ac_ext=cc
11623ac_cpp='$CXXCPP $CPPFLAGS'
11624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11627
11628
11629CXXFLAGS=${CXXFLAGS:=}
11630ac_ext=cc
11631ac_cpp='$CXXCPP $CPPFLAGS'
11632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11635if test -n "$ac_tool_prefix"; then
11636 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11637 do
11638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11640echo "$as_me:$LINENO: checking for $ac_word" >&5
11641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11642if test "${ac_cv_prog_CXX+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645 if test -n "$CXX"; then
11646 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11647else
11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11657 break 2
11658 fi
11659done
11660done
11661
11662fi
11663fi
11664CXX=$ac_cv_prog_CXX
11665if test -n "$CXX"; then
11666 echo "$as_me:$LINENO: result: $CXX" >&5
11667echo "${ECHO_T}$CXX" >&6
11668else
11669 echo "$as_me:$LINENO: result: no" >&5
11670echo "${ECHO_T}no" >&6
11671fi
11672
11673 test -n "$CXX" && break
11674 done
11675fi
11676if test -z "$CXX"; then
11677 ac_ct_CXX=$CXX
11678 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11679do
11680 # Extract the first word of "$ac_prog", so it can be a program name with args.
11681set dummy $ac_prog; ac_word=$2
11682echo "$as_me:$LINENO: checking for $ac_word" >&5
11683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11684if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 if test -n "$ac_ct_CXX"; then
11688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11689else
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
11692do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697 ac_cv_prog_ac_ct_CXX="$ac_prog"
11698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11700 fi
11701done
11702done
11703
11704fi
11705fi
11706ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11707if test -n "$ac_ct_CXX"; then
11708 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11709echo "${ECHO_T}$ac_ct_CXX" >&6
11710else
11711 echo "$as_me:$LINENO: result: no" >&5
11712echo "${ECHO_T}no" >&6
11713fi
11714
11715 test -n "$ac_ct_CXX" && break
11716done
11717test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11718
11719 CXX=$ac_ct_CXX
11720fi
11721
11722
11723# Provide some information about the compiler.
11724echo "$as_me:$LINENO:" \
11725 "checking for C++ compiler version" >&5
11726ac_compiler=`set X $ac_compile; echo $2`
11727{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11728 (eval $ac_compiler --version </dev/null >&5) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }
11732{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11733 (eval $ac_compiler -v </dev/null >&5) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }
11737{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11738 (eval $ac_compiler -V </dev/null >&5) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }
11742
11743echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11744echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11745if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754
11755int
11756main ()
11757{
11758#ifndef __GNUC__
11759 choke me
11760#endif
11761
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11768 (eval $ac_compile) 2>conftest.er1
a848cd7e 11769 ac_status=$?
ac1cb8d3
VS
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
a848cd7e
SC
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
5294a27e 11775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_compiler_gnu=yes
11788else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792ac_compiler_gnu=no
11793fi
ac1cb8d3 11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11795ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11796
11797fi
11798echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11799echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11800GXX=`test $ac_compiler_gnu = yes && echo yes`
11801ac_test_CXXFLAGS=${CXXFLAGS+set}
11802ac_save_CXXFLAGS=$CXXFLAGS
11803CXXFLAGS="-g"
11804echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11805echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11806if test "${ac_cv_prog_cxx_g+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819
11820 ;
11821 return 0;
11822}
11823_ACEOF
11824rm -f conftest.$ac_objext
11825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11826 (eval $ac_compile) 2>conftest.er1
a848cd7e 11827 ac_status=$?
ac1cb8d3
VS
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
a848cd7e
SC
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
5294a27e 11833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_cv_prog_cxx_g=yes
11846else
11847 echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
11850ac_cv_prog_cxx_g=no
11851fi
ac1cb8d3 11852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11853fi
11854echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11855echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11856if test "$ac_test_CXXFLAGS" = set; then
11857 CXXFLAGS=$ac_save_CXXFLAGS
11858elif test $ac_cv_prog_cxx_g = yes; then
11859 if test "$GXX" = yes; then
11860 CXXFLAGS="-g -O2"
11861 else
11862 CXXFLAGS="-g"
11863 fi
11864else
11865 if test "$GXX" = yes; then
11866 CXXFLAGS="-O2"
11867 else
11868 CXXFLAGS=
11869 fi
11870fi
11871for ac_declaration in \
ac1cb8d3 11872 '' \
a848cd7e
SC
11873 'extern "C" void std::exit (int) throw (); using std::exit;' \
11874 'extern "C" void std::exit (int); using std::exit;' \
11875 'extern "C" void exit (int) throw ();' \
11876 'extern "C" void exit (int);' \
11877 'void exit (int);'
11878do
11879 cat >conftest.$ac_ext <<_ACEOF
11880/* confdefs.h. */
11881_ACEOF
11882cat confdefs.h >>conftest.$ac_ext
11883cat >>conftest.$ac_ext <<_ACEOF
11884/* end confdefs.h. */
de59c161 11885$ac_declaration
ac1cb8d3 11886#include <stdlib.h>
a848cd7e
SC
11887int
11888main ()
11889{
11890exit (42);
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895rm -f conftest.$ac_objext
11896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11897 (eval $ac_compile) 2>conftest.er1
a848cd7e 11898 ac_status=$?
ac1cb8d3
VS
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
a848cd7e
SC
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } &&
5294a27e 11904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 :
11917else
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
11921continue
11922fi
ac1cb8d3 11923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11924 cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
11930$ac_declaration
11931int
11932main ()
11933{
11934exit (42);
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext
11940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11941 (eval $ac_compile) 2>conftest.er1
a848cd7e 11942 ac_status=$?
ac1cb8d3
VS
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
a848cd7e
SC
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
5294a27e 11948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 break
11961else
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965fi
ac1cb8d3 11966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11967done
11968rm -f conftest*
11969if test -n "$ac_declaration"; then
11970 echo '#ifdef __cplusplus' >>confdefs.h
11971 echo $ac_declaration >>confdefs.h
11972 echo '#endif' >>confdefs.h
11973fi
11974
11975ac_ext=cc
11976ac_cpp='$CXXCPP $CPPFLAGS'
11977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11980
11981
11982ac_ext=c
11983ac_cpp='$CPP $CPPFLAGS'
11984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11986ac_compiler_gnu=$ac_cv_c_compiler_gnu
11987
11988
a848cd7e
SC
11989if test -n "$ac_tool_prefix"; then
11990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11992echo "$as_me:$LINENO: checking for $ac_word" >&5
11993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11994if test "${ac_cv_prog_RANLIB+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 if test -n "$RANLIB"; then
11998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11999else
12000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001for as_dir in $PATH
12002do
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12010 fi
12011done
12012done
12013
12014fi
12015fi
12016RANLIB=$ac_cv_prog_RANLIB
12017if test -n "$RANLIB"; then
12018 echo "$as_me:$LINENO: result: $RANLIB" >&5
12019echo "${ECHO_T}$RANLIB" >&6
12020else
12021 echo "$as_me:$LINENO: result: no" >&5
12022echo "${ECHO_T}no" >&6
12023fi
12024
12025fi
12026if test -z "$ac_cv_prog_RANLIB"; then
12027 ac_ct_RANLIB=$RANLIB
12028 # Extract the first word of "ranlib", so it can be a program name with args.
12029set dummy ranlib; ac_word=$2
12030echo "$as_me:$LINENO: checking for $ac_word" >&5
12031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 if test -n "$ac_ct_RANLIB"; then
12036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12037else
12038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039for as_dir in $PATH
12040do
12041 IFS=$as_save_IFS
12042 test -z "$as_dir" && as_dir=.
12043 for ac_exec_ext in '' $ac_executable_extensions; do
12044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12045 ac_cv_prog_ac_ct_RANLIB="ranlib"
12046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 break 2
12048 fi
12049done
12050done
12051
12052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12053fi
12054fi
12055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12056if test -n "$ac_ct_RANLIB"; then
12057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12058echo "${ECHO_T}$ac_ct_RANLIB" >&6
12059else
12060 echo "$as_me:$LINENO: result: no" >&5
12061echo "${ECHO_T}no" >&6
12062fi
12063
12064 RANLIB=$ac_ct_RANLIB
12065else
12066 RANLIB="$ac_cv_prog_RANLIB"
12067fi
12068
12069
12070# Extract the first word of "ar", so it can be a program name with args.
12071set dummy ar; ac_word=$2
12072echo "$as_me:$LINENO: checking for $ac_word" >&5
12073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12074if test "${ac_cv_prog_AR+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 if test -n "$AR"; then
12078 ac_cv_prog_AR="$AR" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_AR="ar"
12088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091done
12092done
12093
12094fi
12095fi
12096AR=$ac_cv_prog_AR
12097if test -n "$AR"; then
12098 echo "$as_me:$LINENO: result: $AR" >&5
12099echo "${ECHO_T}$AR" >&6
12100else
12101 echo "$as_me:$LINENO: result: no" >&5
12102echo "${ECHO_T}no" >&6
12103fi
12104
12105if test "x$AR" = "x" ; then
77ffb593
JS
12106 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12107echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12108 { (exit 1); exit 1; }; }
12109fi
12110
12111# Find a good install program. We prefer a C program (faster),
12112# so one script is as good as another. But avoid the broken or
12113# incompatible versions:
12114# SysV /etc/install, /usr/sbin/install
12115# SunOS /usr/etc/install
12116# IRIX /sbin/install
12117# AIX /bin/install
12118# AmigaOS /C/install, which installs bootblocks on floppy discs
12119# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12120# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12121# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12122# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12123# ./install, which can be erroneously created by make from ./install.sh.
12124echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12125echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12126if test -z "$INSTALL"; then
12127if test "${ac_cv_path_install+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $PATH
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 # Account for people who put trailing slashes in PATH elements.
12136case $as_dir/ in
12137 ./ | .// | /cC/* | \
12138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12139 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12140 /usr/ucb/* ) ;;
12141 *)
12142 # OSF1 and SCO ODT 3.0 have their own names for install.
12143 # Don't use installbsd from OSF since it installs stuff as root
12144 # by default.
12145 for ac_prog in ginstall scoinst install; do
12146 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12147 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12148 if test $ac_prog = install &&
12149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12150 # AIX install. It has an incompatible calling convention.
12151 :
12152 elif test $ac_prog = install &&
12153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12154 # program-specific install script used by HP pwplus--don't use.
12155 :
12156 else
12157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12158 break 3
12159 fi
12160 fi
a848cd7e
SC
12161 done
12162 done
12163 ;;
12164esac
12165done
12166
12167
12168fi
12169 if test "${ac_cv_path_install+set}" = set; then
12170 INSTALL=$ac_cv_path_install
12171 else
12172 # As a last resort, use the slow shell script. We don't cache a
12173 # path for INSTALL within a source directory, because that will
12174 # break other packages using the cache if that directory is
12175 # removed, or if the path is relative.
12176 INSTALL=$ac_install_sh
12177 fi
12178fi
12179echo "$as_me:$LINENO: result: $INSTALL" >&5
12180echo "${ECHO_T}$INSTALL" >&6
12181
12182# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12183# It thinks the first close brace ends the variable substitution.
12184test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12185
12186test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12187
12188test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12189
12190
12191case ${INSTALL} in
12192 /* ) # Absolute
12193 ;;
12194 ?:* ) # Drive letter, considered as absolute.
12195 ;;
12196 *)
12197 INSTALL=`pwd`/${INSTALL} ;;
12198esac
12199
a848cd7e
SC
12200
12201case "${host}" in
12202
12203 powerpc-*-darwin* )
12204 INSTALL_PROGRAM="cp -fp"
12205 INSTALL_DATA="cp -fp"
12206 ;;
12207 *)
12208 ;;
12209esac
12210
12211# Extract the first word of "strip", so it can be a program name with args.
12212set dummy strip; ac_word=$2
12213echo "$as_me:$LINENO: checking for $ac_word" >&5
12214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12215if test "${ac_cv_prog_STRIP+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217else
12218 if test -n "$STRIP"; then
12219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12220else
12221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222for as_dir in $PATH
12223do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228 ac_cv_prog_STRIP="strip"
12229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12231 fi
12232done
12233done
12234
12235 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12236fi
12237fi
12238STRIP=$ac_cv_prog_STRIP
12239if test -n "$STRIP"; then
12240 echo "$as_me:$LINENO: result: $STRIP" >&5
12241echo "${ECHO_T}$STRIP" >&6
12242else
12243 echo "$as_me:$LINENO: result: no" >&5
12244echo "${ECHO_T}no" >&6
12245fi
12246
12247
12248echo "$as_me:$LINENO: checking if make is GNU make" >&5
12249echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12250if test "${wx_cv_prog_makeisgnu+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252else
12253
12254 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12255 egrep -s GNU > /dev/null); then
12256 wx_cv_prog_makeisgnu="yes"
12257 else
12258 wx_cv_prog_makeisgnu="no"
12259 fi
12260
12261fi
12262echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12263echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12264
12265if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12266 IF_GNU_MAKE=""
12267else
12268 IF_GNU_MAKE="#"
12269fi
12270
12271
12272
12273if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12274echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12275echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12276if test "${wx_cv_prog_makevpath+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278else
12279
12280cat - << EOF > confMake
12281check : file
12282 cp \$? \$@
12283 cp \$? final_file
12284EOF
12285
12286if test ! -d sub ; then
12287 mkdir sub
12288fi
12289echo dummy > sub/file
12290${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12291RESULT=$?
12292rm -f sub/file check final_file confMake
12293rmdir sub
12294if test "$RESULT" = 0; then
12295 wx_cv_prog_makevpath="yes"
12296else
12297 wx_cv_prog_makevpath="no"
12298fi
12299
12300fi
12301echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12302echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12303
12304if test "x$wx_cv_prog_makevpath" != "xyes"; then
12305{ { echo "$as_me:$LINENO: error:
12306You need a make-utility that is able to use the variable
12307VPATH correctly.
12308If your version of make does not support VPATH correctly,
12309please install GNU-make (possibly as gmake), and start
12310configure with the following command:
12311export MAKE=gmake; ./configure for sh-type shells
12312setenv MAKE gmake; ./configure for csh-type shells
12313Also please do remember to use gmake in this case every time
12314you are trying to compile.
12315" >&5
12316echo "$as_me: error:
12317You need a make-utility that is able to use the variable
12318VPATH correctly.
12319If your version of make does not support VPATH correctly,
12320please install GNU-make (possibly as gmake), and start
12321configure with the following command:
12322export MAKE=gmake; ./configure for sh-type shells
12323setenv MAKE gmake; ./configure for csh-type shells
12324Also please do remember to use gmake in this case every time
12325you are trying to compile.
12326" >&2;}
12327 { (exit 1); exit 1; }; }
12328fi fi
12329echo "$as_me:$LINENO: checking whether ln -s works" >&5
12330echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12331LN_S=$as_ln_s
12332if test "$LN_S" = "ln -s"; then
12333 echo "$as_me:$LINENO: result: yes" >&5
12334echo "${ECHO_T}yes" >&6
12335else
12336 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12337echo "${ECHO_T}no, using $LN_S" >&6
12338fi
12339
12340
12341
12342case "${host}" in
12343 *-pc-os2_emx | *-pc-os2-emx )
12344 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12345 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12346echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12347if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349else
12350 ac_check_lib_save_LIBS=$LIBS
12351LIBS="-lcExt $LIBS"
12352cat >conftest.$ac_ext <<_ACEOF
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
12357/* end confdefs.h. */
12358
12359/* Override any gcc2 internal prototype to avoid an error. */
12360#ifdef __cplusplus
12361extern "C"
12362#endif
12363/* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12365char drand48 ();
12366int
12367main ()
12368{
12369drand48 ();
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374rm -f conftest.$ac_objext conftest$ac_exeext
12375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12376 (eval $ac_link) 2>conftest.er1
a848cd7e 12377 ac_status=$?
ac1cb8d3
VS
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
a848cd7e
SC
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
5294a27e 12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 ac_cv_lib_cExt_drand48=yes
12396else
12397 echo "$as_me: failed program was:" >&5
12398sed 's/^/| /' conftest.$ac_ext >&5
12399
12400ac_cv_lib_cExt_drand48=no
12401fi
ac1cb8d3
VS
12402rm -f conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12404LIBS=$ac_check_lib_save_LIBS
12405fi
12406echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12407echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12408if test $ac_cv_lib_cExt_drand48 = yes; then
12409 LIBS="$LIBS -lcExt"
12410fi
12411
12412 else
12413 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12414 fi
12415 echo "$as_me:$LINENO: checking for gcc version" >&5
12416echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12417if test "${wx_cv_gccversion+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419else
12420
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427
12428int
12429main ()
12430{
12431
12432 #if (__GNUC__ < 3)
12433 #error old gcc
12434 #endif
12435
12436 ;
12437 return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext
12441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12442 (eval $ac_compile) 2>conftest.er1
a848cd7e 12443 ac_status=$?
ac1cb8d3
VS
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
a848cd7e
SC
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
5294a27e 12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461
12462 cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h. */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h. */
12468
12469int
12470main ()
12471{
12472
12473 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12474 #error intermediate gcc
12475 #endif
12476
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12483 (eval $ac_compile) 2>conftest.er1
a848cd7e 12484 ac_status=$?
ac1cb8d3
VS
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
a848cd7e
SC
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
5294a27e 12490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502
12503 wx_cv_gccversion=Innotek
12504
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509
12510 wx_cv_gccversion=3
12511
12512
12513fi
ac1cb8d3 12514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12515
12516else
12517 echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520
12521 wx_cv_gccversion=2
12522
12523
12524fi
ac1cb8d3 12525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12526
12527fi
12528echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12529echo "${ECHO_T}$wx_cv_gccversion" >&6
12530 if test "$wx_cv_gccversion" = "2"; then
12531 LIBS="$LIBS -lstdcpp"
12532 LDFLAGS="$LDFLAGS -Zsysv-signals"
12533 else
12534 if test "$wx_cv_gccversion" = "3"; then
12535 LIBS="$LIBS -lstdcxx"
12536 LDFLAGS="$LDFLAGS -Zsysv-signals"
12537 else
12538 LIBS="$LIBS -lstdc++"
12539 fi
12540 fi
12541 if test "$wxUSE_OMF" = "yes"; then
de59c161 12542 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12543 fi
12544 ;;
12545 *)
12546
12547
12548
12549 ac_ext=cc
12550ac_cpp='$CXXCPP $CPPFLAGS'
12551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12554
12555
12556
12557echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12558echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12559if test "${ac_cv_string_strcasecmp+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561else
12562
12563 cat >conftest.$ac_ext <<_ACEOF
12564/* confdefs.h. */
12565_ACEOF
12566cat confdefs.h >>conftest.$ac_ext
12567cat >>conftest.$ac_ext <<_ACEOF
12568/* end confdefs.h. */
12569
12570 #include <string.h>
12571
12572int
12573main ()
12574{
12575
12576 strcasecmp("foo", "bar");
12577
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext conftest$ac_exeext
12583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12584 (eval $ac_link) 2>conftest.er1
a848cd7e 12585 ac_status=$?
ac1cb8d3
VS
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
a848cd7e
SC
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
5294a27e 12591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_string_strcasecmp=yes
12604else
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608ac_cv_string_strcasecmp=no
12609
12610fi
ac1cb8d3
VS
12611rm -f conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12613
12614fi
12615echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12616echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12617
12618 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12619 cat >>confdefs.h <<\_ACEOF
12620#define HAVE_STRCASECMP_IN_STRING_H 1
12621_ACEOF
12622
12623 else
12624 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12625echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12626if test "${ac_cv_strings_strcasecmp+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12628else
12629
12630 cat >conftest.$ac_ext <<_ACEOF
12631/* confdefs.h. */
12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
12636
12637 #include <strings.h>
12638
12639int
12640main ()
12641{
12642
12643 strcasecmp("foo", "bar");
12644
12645 ;
12646 return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext conftest$ac_exeext
12650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12651 (eval $ac_link) 2>conftest.er1
a848cd7e 12652 ac_status=$?
ac1cb8d3
VS
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
a848cd7e
SC
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
5294a27e 12658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_cv_strings_strcasecmp=yes
12671else
12672 echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
12675ac_cv_strings_strcasecmp=no
12676
12677fi
ac1cb8d3
VS
12678rm -f conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12680
12681fi
12682echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12683echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12684
0c3c69fc 12685 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12686 cat >>confdefs.h <<\_ACEOF
12687#define HAVE_STRCASECMP_IN_STRINGS_H 1
12688_ACEOF
12689
12690 else
12691 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12692echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12693 { (exit 1); exit 1; }; }
12694 fi
12695 fi
12696
12697 ac_ext=c
12698ac_cpp='$CPP $CPPFLAGS'
12699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12701ac_compiler_gnu=$ac_cv_c_compiler_gnu
12702
12703 ;;
12704esac
12705
12706
12707echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12708echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12709if test "${ac_cv_header_stdc+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711else
12712 cat >conftest.$ac_ext <<_ACEOF
12713/* confdefs.h. */
12714_ACEOF
12715cat confdefs.h >>conftest.$ac_ext
12716cat >>conftest.$ac_ext <<_ACEOF
12717/* end confdefs.h. */
12718#include <stdlib.h>
12719#include <stdarg.h>
12720#include <string.h>
12721#include <float.h>
12722
12723int
12724main ()
12725{
12726
12727 ;
12728 return 0;
12729}
12730_ACEOF
12731rm -f conftest.$ac_objext
12732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12733 (eval $ac_compile) 2>conftest.er1
a848cd7e 12734 ac_status=$?
ac1cb8d3
VS
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
a848cd7e
SC
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
5294a27e 12740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_cv_header_stdc=yes
12753else
12754 echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757ac_cv_header_stdc=no
12758fi
ac1cb8d3 12759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12760
12761if test $ac_cv_header_stdc = yes; then
12762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12763 cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h. */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h. */
12769#include <string.h>
12770
12771_ACEOF
12772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12773 $EGREP "memchr" >/dev/null 2>&1; then
12774 :
12775else
12776 ac_cv_header_stdc=no
12777fi
12778rm -f conftest*
12779
12780fi
12781
12782if test $ac_cv_header_stdc = yes; then
12783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12784 cat >conftest.$ac_ext <<_ACEOF
12785/* confdefs.h. */
12786_ACEOF
12787cat confdefs.h >>conftest.$ac_ext
12788cat >>conftest.$ac_ext <<_ACEOF
12789/* end confdefs.h. */
12790#include <stdlib.h>
12791
12792_ACEOF
12793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12794 $EGREP "free" >/dev/null 2>&1; then
12795 :
12796else
12797 ac_cv_header_stdc=no
12798fi
12799rm -f conftest*
12800
12801fi
12802
12803if test $ac_cv_header_stdc = yes; then
12804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12805 if test "$cross_compiling" = yes; then
12806 :
12807else
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814#include <ctype.h>
12815#if ((' ' & 0x0FF) == 0x020)
12816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12818#else
12819# define ISLOWER(c) \
ac1cb8d3
VS
12820 (('a' <= (c) && (c) <= 'i') \
12821 || ('j' <= (c) && (c) <= 'r') \
12822 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12824#endif
12825
12826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12827int
12828main ()
12829{
12830 int i;
12831 for (i = 0; i < 256; i++)
12832 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12833 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12834 exit(2);
12835 exit (0);
12836}
12837_ACEOF
12838rm -f conftest$ac_exeext
12839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 :
12850else
12851 echo "$as_me: program exited with status $ac_status" >&5
12852echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
12855( exit $ac_status )
12856ac_cv_header_stdc=no
12857fi
ac1cb8d3 12858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12859fi
12860fi
12861fi
12862echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12863echo "${ECHO_T}$ac_cv_header_stdc" >&6
12864if test $ac_cv_header_stdc = yes; then
12865
12866cat >>confdefs.h <<\_ACEOF
12867#define STDC_HEADERS 1
12868_ACEOF
12869
12870fi
12871
12872# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12883 inttypes.h stdint.h unistd.h
a848cd7e
SC
12884do
12885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12886echo "$as_me:$LINENO: checking for $ac_header" >&5
12887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12888if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891 cat >conftest.$ac_ext <<_ACEOF
12892/* confdefs.h. */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h. */
12897$ac_includes_default
12898
12899#include <$ac_header>
12900_ACEOF
12901rm -f conftest.$ac_objext
12902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12903 (eval $ac_compile) 2>conftest.er1
a848cd7e 12904 ac_status=$?
ac1cb8d3
VS
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
a848cd7e
SC
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
5294a27e 12910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 eval "$as_ac_Header=yes"
12923else
12924 echo "$as_me: failed program was:" >&5
12925sed 's/^/| /' conftest.$ac_ext >&5
12926
12927eval "$as_ac_Header=no"
12928fi
ac1cb8d3 12929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12930fi
12931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12933if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936_ACEOF
12937
12938fi
12939
12940done
12941
12942
12943
12944for ac_header in stdlib.h
12945do
12946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12947if eval "test \"\${$as_ac_Header+set}\" = set"; then
12948 echo "$as_me:$LINENO: checking for $ac_header" >&5
12949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12950if eval "test \"\${$as_ac_Header+set}\" = set"; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952fi
12953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12955else
12956 # Is the header compilable?
12957echo "$as_me:$LINENO: checking $ac_header usability" >&5
12958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12959cat >conftest.$ac_ext <<_ACEOF
12960/* confdefs.h. */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
12964/* end confdefs.h. */
12965$ac_includes_default
12966#include <$ac_header>
12967_ACEOF
12968rm -f conftest.$ac_objext
12969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12970 (eval $ac_compile) 2>conftest.er1
a848cd7e 12971 ac_status=$?
ac1cb8d3
VS
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
a848cd7e
SC
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
5294a27e 12977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_header_compiler=yes
12990else
12991 echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994ac_header_compiler=no
12995fi
ac1cb8d3 12996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12998echo "${ECHO_T}$ac_header_compiler" >&6
12999
13000# Is the header present?
13001echo "$as_me:$LINENO: checking $ac_header presence" >&5
13002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13003cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009#include <$ac_header>
13010_ACEOF
13011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } >/dev/null; then
13019 if test -s conftest.err; then
13020 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13022 else
13023 ac_cpp_err=
13024 fi
13025else
13026 ac_cpp_err=yes
13027fi
13028if test -z "$ac_cpp_err"; then
13029 ac_header_preproc=yes
13030else
13031 echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 ac_header_preproc=no
13035fi
13036rm -f conftest.err conftest.$ac_ext
13037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038echo "${ECHO_T}$ac_header_preproc" >&6
13039
13040# So? What about this header?
ac1cb8d3
VS
13041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13042 yes:no: )
a848cd7e
SC
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc=yes
a848cd7e 13048 ;;
ac1cb8d3 13049 no:yes:* )
a848cd7e
SC
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13062 (
13063 cat <<\_ASBOX
ac1cb8d3
VS
13064## ----------------------------------------- ##
13065## Report this to wx-dev@lists.wxwidgets.org ##
13066## ----------------------------------------- ##
a848cd7e
SC
13067_ASBOX
13068 ) |
13069 sed "s/^/$as_me: WARNING: /" >&2
13070 ;;
13071esac
13072echo "$as_me:$LINENO: checking for $ac_header" >&5
13073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13074if eval "test \"\${$as_ac_Header+set}\" = set"; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076else
ac1cb8d3 13077 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13078fi
13079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13081
13082fi
13083if test `eval echo '${'$as_ac_Header'}'` = yes; then
13084 cat >>confdefs.h <<_ACEOF
13085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086_ACEOF
13087
13088fi
13089
13090done
13091
13092
13093for ac_header in malloc.h
13094do
13095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13096if eval "test \"\${$as_ac_Header+set}\" = set"; then
13097 echo "$as_me:$LINENO: checking for $ac_header" >&5
13098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13099if eval "test \"\${$as_ac_Header+set}\" = set"; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101fi
13102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13104else
13105 # Is the header compilable?
13106echo "$as_me:$LINENO: checking $ac_header usability" >&5
13107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13108cat >conftest.$ac_ext <<_ACEOF
13109/* confdefs.h. */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h. */
13114$ac_includes_default
13115#include <$ac_header>
13116_ACEOF
13117rm -f conftest.$ac_objext
13118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13119 (eval $ac_compile) 2>conftest.er1
a848cd7e 13120 ac_status=$?
ac1cb8d3
VS
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
a848cd7e
SC
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
5294a27e 13126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_header_compiler=yes
13139else
13140 echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143ac_header_compiler=no
13144fi
ac1cb8d3 13145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13147echo "${ECHO_T}$ac_header_compiler" >&6
13148
13149# Is the header present?
13150echo "$as_me:$LINENO: checking $ac_header presence" >&5
13151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13152cat >conftest.$ac_ext <<_ACEOF
13153/* confdefs.h. */
13154_ACEOF
13155cat confdefs.h >>conftest.$ac_ext
13156cat >>conftest.$ac_ext <<_ACEOF
13157/* end confdefs.h. */
13158#include <$ac_header>
13159_ACEOF
13160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } >/dev/null; then
13168 if test -s conftest.err; then
13169 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13171 else
13172 ac_cpp_err=
13173 fi
13174else
13175 ac_cpp_err=yes
13176fi
13177if test -z "$ac_cpp_err"; then
13178 ac_header_preproc=yes
13179else
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
13183 ac_header_preproc=no
13184fi
13185rm -f conftest.err conftest.$ac_ext
13186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13187echo "${ECHO_T}$ac_header_preproc" >&6
13188
13189# So? What about this header?
ac1cb8d3
VS
13190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13191 yes:no: )
a848cd7e
SC
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13196 ac_header_preproc=yes
a848cd7e 13197 ;;
ac1cb8d3 13198 no:yes:* )
a848cd7e
SC
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13211 (
13212 cat <<\_ASBOX
ac1cb8d3
VS
13213## ----------------------------------------- ##
13214## Report this to wx-dev@lists.wxwidgets.org ##
13215## ----------------------------------------- ##
a848cd7e
SC
13216_ASBOX
13217 ) |
13218 sed "s/^/$as_me: WARNING: /" >&2
13219 ;;
13220esac
13221echo "$as_me:$LINENO: checking for $ac_header" >&5
13222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13223if eval "test \"\${$as_ac_Header+set}\" = set"; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225else
ac1cb8d3 13226 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13227fi
13228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13230
13231fi
13232if test `eval echo '${'$as_ac_Header'}'` = yes; then
13233 cat >>confdefs.h <<_ACEOF
13234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13235_ACEOF
13236
13237fi
13238
13239done
13240
13241
13242for ac_header in unistd.h
13243do
13244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13245if eval "test \"\${$as_ac_Header+set}\" = set"; then
13246 echo "$as_me:$LINENO: checking for $ac_header" >&5
13247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13248if eval "test \"\${$as_ac_Header+set}\" = set"; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250fi
13251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13253else
13254 # Is the header compilable?
13255echo "$as_me:$LINENO: checking $ac_header usability" >&5
13256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13257cat >conftest.$ac_ext <<_ACEOF
13258/* confdefs.h. */
13259_ACEOF
13260cat confdefs.h >>conftest.$ac_ext
13261cat >>conftest.$ac_ext <<_ACEOF
13262/* end confdefs.h. */
13263$ac_includes_default
13264#include <$ac_header>
13265_ACEOF
13266rm -f conftest.$ac_objext
13267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13268 (eval $ac_compile) 2>conftest.er1
a848cd7e 13269 ac_status=$?
ac1cb8d3
VS
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
a848cd7e
SC
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
5294a27e 13275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_header_compiler=yes
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292ac_header_compiler=no
13293fi
ac1cb8d3 13294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13296echo "${ECHO_T}$ac_header_compiler" >&6
13297
13298# Is the header present?
13299echo "$as_me:$LINENO: checking $ac_header presence" >&5
13300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13301cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h. */
13307#include <$ac_header>
13308_ACEOF
13309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } >/dev/null; then
13317 if test -s conftest.err; then
13318 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13320 else
13321 ac_cpp_err=
13322 fi
13323else
13324 ac_cpp_err=yes
13325fi
13326if test -z "$ac_cpp_err"; then
13327 ac_header_preproc=yes
13328else
13329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_header_preproc=no
13333fi
13334rm -f conftest.err conftest.$ac_ext
13335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13336echo "${ECHO_T}$ac_header_preproc" >&6
13337
13338# So? What about this header?
ac1cb8d3
VS
13339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13340 yes:no: )
a848cd7e
SC
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13345 ac_header_preproc=yes
a848cd7e 13346 ;;
ac1cb8d3 13347 no:yes:* )
a848cd7e
SC
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13360 (
13361 cat <<\_ASBOX
ac1cb8d3
VS
13362## ----------------------------------------- ##
13363## Report this to wx-dev@lists.wxwidgets.org ##
13364## ----------------------------------------- ##
a848cd7e
SC
13365_ASBOX
13366 ) |
13367 sed "s/^/$as_me: WARNING: /" >&2
13368 ;;
13369esac
13370echo "$as_me:$LINENO: checking for $ac_header" >&5
13371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13372if eval "test \"\${$as_ac_Header+set}\" = set"; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374else
ac1cb8d3 13375 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13376fi
13377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13379
13380fi
13381if test `eval echo '${'$as_ac_Header'}'` = yes; then
13382 cat >>confdefs.h <<_ACEOF
13383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13384_ACEOF
13385
13386fi
13387
13388done
13389
13390
13391for ac_header in wchar.h
13392do
13393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13394if eval "test \"\${$as_ac_Header+set}\" = set"; then
13395 echo "$as_me:$LINENO: checking for $ac_header" >&5
13396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13397if eval "test \"\${$as_ac_Header+set}\" = set"; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399fi
13400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13402else
13403 # Is the header compilable?
13404echo "$as_me:$LINENO: checking $ac_header usability" >&5
13405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13406cat >conftest.$ac_ext <<_ACEOF
13407/* confdefs.h. */
13408_ACEOF
13409cat confdefs.h >>conftest.$ac_ext
13410cat >>conftest.$ac_ext <<_ACEOF
13411/* end confdefs.h. */
13412$ac_includes_default
13413#include <$ac_header>
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13417 (eval $ac_compile) 2>conftest.er1
a848cd7e 13418 ac_status=$?
ac1cb8d3
VS
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
a848cd7e
SC
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
5294a27e 13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_header_compiler=yes
13437else
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441ac_header_compiler=no
13442fi
ac1cb8d3 13443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13445echo "${ECHO_T}$ac_header_compiler" >&6
13446
13447# Is the header present?
13448echo "$as_me:$LINENO: checking $ac_header presence" >&5
13449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13450cat >conftest.$ac_ext <<_ACEOF
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
13456#include <$ac_header>
13457_ACEOF
13458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } >/dev/null; then
13466 if test -s conftest.err; then
13467 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13469 else
13470 ac_cpp_err=
13471 fi
13472else
13473 ac_cpp_err=yes
13474fi
13475if test -z "$ac_cpp_err"; then
13476 ac_header_preproc=yes
13477else
13478 echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_header_preproc=no
13482fi
13483rm -f conftest.err conftest.$ac_ext
13484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13485echo "${ECHO_T}$ac_header_preproc" >&6
13486
13487# So? What about this header?
ac1cb8d3
VS
13488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13489 yes:no: )
a848cd7e
SC
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13494 ac_header_preproc=yes
a848cd7e 13495 ;;
ac1cb8d3 13496 no:yes:* )
a848cd7e
SC
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13504echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13509 (
13510 cat <<\_ASBOX
ac1cb8d3
VS
13511## ----------------------------------------- ##
13512## Report this to wx-dev@lists.wxwidgets.org ##
13513## ----------------------------------------- ##
a848cd7e
SC
13514_ASBOX
13515 ) |
13516 sed "s/^/$as_me: WARNING: /" >&2
13517 ;;
13518esac
13519echo "$as_me:$LINENO: checking for $ac_header" >&5
13520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13521if eval "test \"\${$as_ac_Header+set}\" = set"; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523else
ac1cb8d3 13524 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13525fi
13526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13528
13529fi
13530if test `eval echo '${'$as_ac_Header'}'` = yes; then
13531 cat >>confdefs.h <<_ACEOF
13532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13533_ACEOF
13534
13535fi
13536
13537done
13538
13539
13540if test "$ac_cv_header_wchar_h" != "yes"; then
13541
13542for ac_header in wcstr.h
13543do
13544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13545if eval "test \"\${$as_ac_Header+set}\" = set"; then
13546 echo "$as_me:$LINENO: checking for $ac_header" >&5
13547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13548if eval "test \"\${$as_ac_Header+set}\" = set"; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550fi
13551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13553else
13554 # Is the header compilable?
13555echo "$as_me:$LINENO: checking $ac_header usability" >&5
13556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13557cat >conftest.$ac_ext <<_ACEOF
13558/* confdefs.h. */
13559_ACEOF
13560cat confdefs.h >>conftest.$ac_ext
13561cat >>conftest.$ac_ext <<_ACEOF
13562/* end confdefs.h. */
13563$ac_includes_default
13564#include <$ac_header>
13565_ACEOF
13566rm -f conftest.$ac_objext
13567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13568 (eval $ac_compile) 2>conftest.er1
a848cd7e 13569 ac_status=$?
ac1cb8d3
VS
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
a848cd7e
SC
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
5294a27e 13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_header_compiler=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592ac_header_compiler=no
13593fi
ac1cb8d3 13594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13595echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596echo "${ECHO_T}$ac_header_compiler" >&6
13597
13598# Is the header present?
13599echo "$as_me:$LINENO: checking $ac_header presence" >&5
13600echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13601cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607#include <$ac_header>
13608_ACEOF
13609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev/null; then
13617 if test -s conftest.err; then
13618 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13620 else
13621 ac_cpp_err=
13622 fi
13623else
13624 ac_cpp_err=yes
13625fi
13626if test -z "$ac_cpp_err"; then
13627 ac_header_preproc=yes
13628else
13629 echo "$as_me: failed program was:" >&5
13630sed 's/^/| /' conftest.$ac_ext >&5
13631
13632 ac_header_preproc=no
13633fi
13634rm -f conftest.err conftest.$ac_ext
13635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13636echo "${ECHO_T}$ac_header_preproc" >&6
13637
13638# So? What about this header?
ac1cb8d3
VS
13639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13640 yes:no: )
a848cd7e
SC
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13645 ac_header_preproc=yes
a848cd7e 13646 ;;
ac1cb8d3 13647 no:yes:* )
a848cd7e
SC
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13660 (
13661 cat <<\_ASBOX
ac1cb8d3
VS
13662## ----------------------------------------- ##
13663## Report this to wx-dev@lists.wxwidgets.org ##
13664## ----------------------------------------- ##
a848cd7e
SC
13665_ASBOX
13666 ) |
13667 sed "s/^/$as_me: WARNING: /" >&2
13668 ;;
13669esac
13670echo "$as_me:$LINENO: checking for $ac_header" >&5
13671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13672if eval "test \"\${$as_ac_Header+set}\" = set"; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674else
ac1cb8d3 13675 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13676fi
13677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13679
13680fi
13681if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682 cat >>confdefs.h <<_ACEOF
13683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684_ACEOF
13685
13686fi
13687
13688done
13689
13690fi
13691
13692
13693for ac_header in fnmatch.h
13694do
13695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13696if eval "test \"\${$as_ac_Header+set}\" = set"; then
13697 echo "$as_me:$LINENO: checking for $ac_header" >&5
13698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13699if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701fi
13702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13704else
13705 # Is the header compilable?
13706echo "$as_me:$LINENO: checking $ac_header usability" >&5
13707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13708cat >conftest.$ac_ext <<_ACEOF
13709/* confdefs.h. */
13710_ACEOF
13711cat confdefs.h >>conftest.$ac_ext
13712cat >>conftest.$ac_ext <<_ACEOF
13713/* end confdefs.h. */
13714$ac_includes_default
13715#include <$ac_header>
13716_ACEOF
13717rm -f conftest.$ac_objext
13718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13719 (eval $ac_compile) 2>conftest.er1
a848cd7e 13720 ac_status=$?
ac1cb8d3
VS
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
a848cd7e
SC
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
5294a27e 13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_header_compiler=yes
13739else
13740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
13743ac_header_compiler=no
13744fi
ac1cb8d3 13745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13747echo "${ECHO_T}$ac_header_compiler" >&6
13748
13749# Is the header present?
13750echo "$as_me:$LINENO: checking $ac_header presence" >&5
13751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13752cat >conftest.$ac_ext <<_ACEOF
13753/* confdefs.h. */
13754_ACEOF
13755cat confdefs.h >>conftest.$ac_ext
13756cat >>conftest.$ac_ext <<_ACEOF
13757/* end confdefs.h. */
13758#include <$ac_header>
13759_ACEOF
13760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } >/dev/null; then
13768 if test -s conftest.err; then
13769 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13771 else
13772 ac_cpp_err=
13773 fi
13774else
13775 ac_cpp_err=yes
13776fi
13777if test -z "$ac_cpp_err"; then
13778 ac_header_preproc=yes
13779else
13780 echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 ac_header_preproc=no
13784fi
13785rm -f conftest.err conftest.$ac_ext
13786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13787echo "${ECHO_T}$ac_header_preproc" >&6
13788
13789# So? What about this header?
ac1cb8d3
VS
13790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13791 yes:no: )
a848cd7e
SC
13792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13796 ac_header_preproc=yes
a848cd7e 13797 ;;
ac1cb8d3 13798 no:yes:* )
a848cd7e
SC
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13811 (
13812 cat <<\_ASBOX
ac1cb8d3
VS
13813## ----------------------------------------- ##
13814## Report this to wx-dev@lists.wxwidgets.org ##
13815## ----------------------------------------- ##
a848cd7e
SC
13816_ASBOX
13817 ) |
13818 sed "s/^/$as_me: WARNING: /" >&2
13819 ;;
13820esac
13821echo "$as_me:$LINENO: checking for $ac_header" >&5
13822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13823if eval "test \"\${$as_ac_Header+set}\" = set"; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825else
ac1cb8d3 13826 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13827fi
13828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13830
13831fi
13832if test `eval echo '${'$as_ac_Header'}'` = yes; then
13833 cat >>confdefs.h <<_ACEOF
13834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13835_ACEOF
13836
13837fi
13838
13839done
13840
13841
13842if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13843
13844for ac_func in fnmatch
13845do
13846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13847echo "$as_me:$LINENO: checking for $ac_func" >&5
13848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13849if eval "test \"\${$as_ac_var+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851else
13852 cat >conftest.$ac_ext <<_ACEOF
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
ac1cb8d3
VS
13858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13860#define $ac_func innocuous_$ac_func
13861
a848cd7e
SC
13862/* System header to define __stub macros and hopefully few prototypes,
13863 which can conflict with char $ac_func (); below.
13864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13865 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13866
a848cd7e
SC
13867#ifdef __STDC__
13868# include <limits.h>
13869#else
13870# include <assert.h>
13871#endif
ac1cb8d3
VS
13872
13873#undef $ac_func
13874
a848cd7e
SC
13875/* Override any gcc2 internal prototype to avoid an error. */
13876#ifdef __cplusplus
13877extern "C"
13878{
13879#endif
13880/* We use char because int might match the return type of a gcc2
13881 builtin and then its argument prototype would still apply. */
13882char $ac_func ();
13883/* The GNU C library defines this for functions which it implements
13884 to always fail with ENOSYS. Some functions are actually named
13885 something starting with __ and the normal name is an alias. */
13886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13887choke me
13888#else
13889char (*f) () = $ac_func;
13890#endif
13891#ifdef __cplusplus
13892}
13893#endif
13894
13895int
13896main ()
13897{
13898return f != $ac_func;
13899 ;
13900 return 0;
13901}
13902_ACEOF
13903rm -f conftest.$ac_objext conftest$ac_exeext
13904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13905 (eval $ac_link) 2>conftest.er1
a848cd7e 13906 ac_status=$?
ac1cb8d3
VS
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
a848cd7e
SC
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
5294a27e 13912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 eval "$as_ac_var=yes"
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929eval "$as_ac_var=no"
13930fi
ac1cb8d3
VS
13931rm -f conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13933fi
13934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13936if test `eval echo '${'$as_ac_var'}'` = yes; then
13937 cat >>confdefs.h <<_ACEOF
13938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13939_ACEOF
13940
13941fi
13942done
13943
13944fi
13945
13946
13947for ac_header in langinfo.h
13948do
13949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13950if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo "$as_me:$LINENO: checking for $ac_header" >&5
13952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13953if eval "test \"\${$as_ac_Header+set}\" = set"; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955fi
13956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13958else
13959 # Is the header compilable?
13960echo "$as_me:$LINENO: checking $ac_header usability" >&5
13961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13962cat >conftest.$ac_ext <<_ACEOF
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
13967/* end confdefs.h. */
13968$ac_includes_default
13969#include <$ac_header>
13970_ACEOF
13971rm -f conftest.$ac_objext
13972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13973 (eval $ac_compile) 2>conftest.er1
a848cd7e 13974 ac_status=$?
ac1cb8d3
VS
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
a848cd7e
SC
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
5294a27e 13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } &&
13986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 ac_header_compiler=yes
13993else
13994 echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
13997ac_header_compiler=no
13998fi
ac1cb8d3 13999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14000echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14001echo "${ECHO_T}$ac_header_compiler" >&6
14002
14003# Is the header present?
14004echo "$as_me:$LINENO: checking $ac_header presence" >&5
14005echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14006cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h. */
14012#include <$ac_header>
14013_ACEOF
14014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } >/dev/null; then
14022 if test -s conftest.err; then
14023 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14025 else
14026 ac_cpp_err=
14027 fi
14028else
14029 ac_cpp_err=yes
14030fi
14031if test -z "$ac_cpp_err"; then
14032 ac_header_preproc=yes
14033else
14034 echo "$as_me: failed program was:" >&5
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
14037 ac_header_preproc=no
14038fi
14039rm -f conftest.err conftest.$ac_ext
14040echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14041echo "${ECHO_T}$ac_header_preproc" >&6
14042
14043# So? What about this header?
ac1cb8d3
VS
14044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14045 yes:no: )
a848cd7e
SC
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14047echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14049echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14050 ac_header_preproc=yes
a848cd7e 14051 ;;
ac1cb8d3 14052 no:yes:* )
a848cd7e
SC
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14056echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14058echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14060echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14064echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14065 (
14066 cat <<\_ASBOX
ac1cb8d3
VS
14067## ----------------------------------------- ##
14068## Report this to wx-dev@lists.wxwidgets.org ##
14069## ----------------------------------------- ##
a848cd7e
SC
14070_ASBOX
14071 ) |
14072 sed "s/^/$as_me: WARNING: /" >&2
14073 ;;
14074esac
14075echo "$as_me:$LINENO: checking for $ac_header" >&5
14076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14077if eval "test \"\${$as_ac_Header+set}\" = set"; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079else
ac1cb8d3 14080 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14081fi
14082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14084
14085fi
14086if test `eval echo '${'$as_ac_Header'}'` = yes; then
14087 cat >>confdefs.h <<_ACEOF
14088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14089_ACEOF
14090
14091fi
14092
14093done
14094
14095
14096case "${host}" in
14097 *-pc-os2_emx | *-pc-os2-emx )
14098 if test $ac_cv_header_langinfo_h = "yes"; then
14099 LIBS="$LIBS -lintl"
14100 fi
14101 ;;
14102esac
14103
14104if test "$wxUSE_GUI" = "yes"; then
14105 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14106
14107for ac_header in X11/Xlib.h
14108do
14109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14110if eval "test \"\${$as_ac_Header+set}\" = set"; then
14111 echo "$as_me:$LINENO: checking for $ac_header" >&5
14112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14113if eval "test \"\${$as_ac_Header+set}\" = set"; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115fi
14116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14118else
14119 # Is the header compilable?
14120echo "$as_me:$LINENO: checking $ac_header usability" >&5
14121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14122cat >conftest.$ac_ext <<_ACEOF
14123/* confdefs.h. */
14124_ACEOF
14125cat confdefs.h >>conftest.$ac_ext
14126cat >>conftest.$ac_ext <<_ACEOF
14127/* end confdefs.h. */
14128$ac_includes_default
14129#include <$ac_header>
14130_ACEOF
14131rm -f conftest.$ac_objext
14132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14133 (eval $ac_compile) 2>conftest.er1
a848cd7e 14134 ac_status=$?
ac1cb8d3
VS
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
a848cd7e
SC
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
5294a27e 14140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; } &&
14146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_header_compiler=yes
14153else
14154 echo "$as_me: failed program was:" >&5
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157ac_header_compiler=no
14158fi
ac1cb8d3 14159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14161echo "${ECHO_T}$ac_header_compiler" >&6
14162
14163# Is the header present?
14164echo "$as_me:$LINENO: checking $ac_header presence" >&5
14165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14166cat >conftest.$ac_ext <<_ACEOF
14167/* confdefs.h. */
14168_ACEOF
14169cat confdefs.h >>conftest.$ac_ext
14170cat >>conftest.$ac_ext <<_ACEOF
14171/* end confdefs.h. */
14172#include <$ac_header>
14173_ACEOF
14174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } >/dev/null; then
14182 if test -s conftest.err; then
14183 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14185 else
14186 ac_cpp_err=
14187 fi
14188else
14189 ac_cpp_err=yes
14190fi
14191if test -z "$ac_cpp_err"; then
14192 ac_header_preproc=yes
14193else
14194 echo "$as_me: failed program was:" >&5
14195sed 's/^/| /' conftest.$ac_ext >&5
14196
14197 ac_header_preproc=no
14198fi
14199rm -f conftest.err conftest.$ac_ext
14200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14201echo "${ECHO_T}$ac_header_preproc" >&6
14202
14203# So? What about this header?
ac1cb8d3
VS
14204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14205 yes:no: )
a848cd7e
SC
14206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14210 ac_header_preproc=yes
a848cd7e 14211 ;;
ac1cb8d3 14212 no:yes:* )
a848cd7e
SC
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14225 (
14226 cat <<\_ASBOX
ac1cb8d3
VS
14227## ----------------------------------------- ##
14228## Report this to wx-dev@lists.wxwidgets.org ##
14229## ----------------------------------------- ##
a848cd7e
SC
14230_ASBOX
14231 ) |
14232 sed "s/^/$as_me: WARNING: /" >&2
14233 ;;
14234esac
14235echo "$as_me:$LINENO: checking for $ac_header" >&5
14236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14237if eval "test \"\${$as_ac_Header+set}\" = set"; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239else
ac1cb8d3 14240 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14241fi
14242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14244
14245fi
14246if test `eval echo '${'$as_ac_Header'}'` = yes; then
14247 cat >>confdefs.h <<_ACEOF
14248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14249_ACEOF
14250
14251fi
14252
14253done
14254
14255
14256for ac_header in X11/XKBlib.h
14257do
14258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14259echo "$as_me:$LINENO: checking for $ac_header" >&5
14260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14261if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263else
14264 cat >conftest.$ac_ext <<_ACEOF
14265/* confdefs.h. */
14266_ACEOF
14267cat confdefs.h >>conftest.$ac_ext
14268cat >>conftest.$ac_ext <<_ACEOF
14269/* end confdefs.h. */
14270
14271 #if HAVE_X11_XLIB_H
14272 #include <X11/Xlib.h>
14273 #endif
14274
14275
14276#include <$ac_header>
14277_ACEOF
14278rm -f conftest.$ac_objext
14279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14280 (eval $ac_compile) 2>conftest.er1
a848cd7e 14281 ac_status=$?
ac1cb8d3
VS
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
a848cd7e
SC
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
5294a27e 14287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 eval "$as_ac_Header=yes"
14300else
14301 echo "$as_me: failed program was:" >&5
14302sed 's/^/| /' conftest.$ac_ext >&5
14303
14304eval "$as_ac_Header=no"
14305fi
ac1cb8d3 14306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14307fi
14308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14310if test `eval echo '${'$as_ac_Header'}'` = yes; then
14311 cat >>confdefs.h <<_ACEOF
14312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14313_ACEOF
14314
14315fi
14316
14317done
14318
14319 fi
14320fi
14321
14322
14323echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14324echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14325if test "${ac_cv_c_const+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327else
14328 cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334
14335int
14336main ()
14337{
14338/* FIXME: Include the comments suggested by Paul. */
14339#ifndef __cplusplus
14340 /* Ultrix mips cc rejects this. */
14341 typedef int charset[2];
14342 const charset x;
14343 /* SunOS 4.1.1 cc rejects this. */
14344 char const *const *ccp;
14345 char **p;
14346 /* NEC SVR4.0.2 mips cc rejects this. */
14347 struct point {int x, y;};
14348 static struct point const zero = {0,0};
14349 /* AIX XL C 1.02.0.0 rejects this.
14350 It does not let you subtract one const X* pointer from another in
14351 an arm of an if-expression whose if-part is not a constant
14352 expression */
14353 const char *g = "string";
14354 ccp = &g + (g ? g-g : 0);
14355 /* HPUX 7.0 cc rejects these. */
14356 ++ccp;
14357 p = (char**) ccp;
14358 ccp = (char const *const *) p;
14359 { /* SCO 3.2v4 cc rejects this. */
14360 char *t;
14361 char const *s = 0 ? (char *) 0 : (char const *) 0;
14362
14363 *t++ = 0;
14364 }
14365 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14366 int x[] = {25, 17};
14367 const int *foo = &x[0];
14368 ++foo;
14369 }
14370 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14371 typedef const int *iptr;
14372 iptr p = 0;
14373 ++p;
14374 }
14375 { /* AIX XL C 1.02.0.0 rejects this saying
14376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14377 struct s { int j; const int *ap[3]; };
14378 struct s *b; b->j = 5;
14379 }
14380 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14381 const int foo = 10;
14382 }
14383#endif
14384
14385 ;
14386 return 0;
14387}
14388_ACEOF
14389rm -f conftest.$ac_objext
14390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14391 (eval $ac_compile) 2>conftest.er1
a848cd7e 14392 ac_status=$?
ac1cb8d3
VS
14393 grep -v '^ *+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14395 cat conftest.err >&5
a848cd7e
SC
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
5294a27e 14398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_c_const=yes
14411else
14412 echo "$as_me: failed program was:" >&5
14413sed 's/^/| /' conftest.$ac_ext >&5
14414
14415ac_cv_c_const=no
14416fi
ac1cb8d3 14417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14418fi
14419echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14420echo "${ECHO_T}$ac_cv_c_const" >&6
14421if test $ac_cv_c_const = no; then
14422
14423cat >>confdefs.h <<\_ACEOF
14424#define const
14425_ACEOF
14426
14427fi
14428
14429echo "$as_me:$LINENO: checking for inline" >&5
14430echo $ECHO_N "checking for inline... $ECHO_C" >&6
14431if test "${ac_cv_c_inline+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14433else
14434 ac_cv_c_inline=no
14435for ac_kw in inline __inline__ __inline; do
14436 cat >conftest.$ac_ext <<_ACEOF
14437/* confdefs.h. */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h. */
14442#ifndef __cplusplus
14443typedef int foo_t;
14444static $ac_kw foo_t static_foo () {return 0; }
14445$ac_kw foo_t foo () {return 0; }
14446#endif
14447
14448_ACEOF
14449rm -f conftest.$ac_objext
14450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14451 (eval $ac_compile) 2>conftest.er1
a848cd7e 14452 ac_status=$?
ac1cb8d3
VS
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
a848cd7e
SC
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
5294a27e 14458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_cv_c_inline=$ac_kw; break
14471else
14472 echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475fi
ac1cb8d3 14476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14477done
14478
14479fi
14480echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14481echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14482
14483
a848cd7e
SC
14484case $ac_cv_c_inline in
14485 inline | yes) ;;
ac1cb8d3
VS
14486 *)
14487 case $ac_cv_c_inline in
14488 no) ac_val=;;
14489 *) ac_val=$ac_cv_c_inline;;
14490 esac
14491 cat >>confdefs.h <<_ACEOF
14492#ifndef __cplusplus
14493#define inline $ac_val
14494#endif
de59c161 14495_ACEOF
ac1cb8d3 14496 ;;
a848cd7e
SC
14497esac
14498
14499
14500echo "$as_me:$LINENO: checking for char" >&5
14501echo $ECHO_N "checking for char... $ECHO_C" >&6
14502if test "${ac_cv_type_char+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14504else
14505 cat >conftest.$ac_ext <<_ACEOF
14506/* confdefs.h. */
14507_ACEOF
14508cat confdefs.h >>conftest.$ac_ext
14509cat >>conftest.$ac_ext <<_ACEOF
14510/* end confdefs.h. */
14511$ac_includes_default
14512int
14513main ()
14514{
14515if ((char *) 0)
14516 return 0;
14517if (sizeof (char))
14518 return 0;
14519 ;
14520 return 0;
14521}
14522_ACEOF
14523rm -f conftest.$ac_objext
14524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14525 (eval $ac_compile) 2>conftest.er1
a848cd7e 14526 ac_status=$?
ac1cb8d3
VS
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
a848cd7e
SC
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
5294a27e 14532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_type_char=yes
14545else
14546 echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549ac_cv_type_char=no
14550fi
ac1cb8d3 14551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14552fi
14553echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14554echo "${ECHO_T}$ac_cv_type_char" >&6
14555
14556echo "$as_me:$LINENO: checking size of char" >&5
14557echo $ECHO_N "checking size of char... $ECHO_C" >&6
14558if test "${ac_cv_sizeof_char+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
14561 if test "$ac_cv_type_char" = yes; then
14562 # The cast to unsigned long works around a bug in the HP C Compiler
14563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14565 # This bug is HP SR number 8606223364.
14566 if test "$cross_compiling" = yes; then
14567 # Depending upon the size, compute the lo and hi bounds.
14568cat >conftest.$ac_ext <<_ACEOF
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574$ac_includes_default
14575int
14576main ()
14577{
14578static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14579test_array [0] = 0
14580
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585rm -f conftest.$ac_objext
14586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14587 (eval $ac_compile) 2>conftest.er1
a848cd7e 14588 ac_status=$?
ac1cb8d3
VS
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
a848cd7e
SC
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
5294a27e 14594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_lo=0 ac_mid=0
14607 while :; do
14608 cat >conftest.$ac_ext <<_ACEOF
14609/* confdefs.h. */
14610_ACEOF
14611cat confdefs.h >>conftest.$ac_ext
14612cat >>conftest.$ac_ext <<_ACEOF
14613/* end confdefs.h. */
14614$ac_includes_default
14615int
14616main ()
14617{
14618static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14619test_array [0] = 0
14620
14621 ;
14622 return 0;
14623}
14624_ACEOF
14625rm -f conftest.$ac_objext
14626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14627 (eval $ac_compile) 2>conftest.er1
a848cd7e 14628 ac_status=$?
ac1cb8d3
VS
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
a848cd7e
SC
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
5294a27e 14634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; }; then
14646 ac_hi=$ac_mid; break
14647else
14648 echo "$as_me: failed program was:" >&5
14649sed 's/^/| /' conftest.$ac_ext >&5
14650
14651ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14652 if test $ac_lo -le $ac_mid; then
14653 ac_lo= ac_hi=
14654 break
14655 fi
14656 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14657fi
ac1cb8d3 14658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14659 done
14660else
14661 echo "$as_me: failed program was:" >&5
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
14664cat >conftest.$ac_ext <<_ACEOF
14665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
14670$ac_includes_default
14671int
14672main ()
14673{
14674static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14675test_array [0] = 0
14676
14677 ;
14678 return 0;
14679}
14680_ACEOF
14681rm -f conftest.$ac_objext
14682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14683 (eval $ac_compile) 2>conftest.er1
a848cd7e 14684 ac_status=$?
ac1cb8d3
VS
14685 grep -v '^ *+' conftest.er1 >conftest.err
14686 rm -f conftest.er1
14687 cat conftest.err >&5
a848cd7e
SC
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
5294a27e 14690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; } &&
14696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_hi=-1 ac_mid=-1
14703 while :; do
14704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710$ac_includes_default
14711int
14712main ()
14713{
14714static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14715test_array [0] = 0
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14723 (eval $ac_compile) 2>conftest.er1
a848cd7e 14724 ac_status=$?
ac1cb8d3
VS
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
a848cd7e
SC
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
5294a27e 14730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_lo=$ac_mid; break
14743else
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
14747ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14748 if test $ac_mid -le $ac_hi; then
14749 ac_lo= ac_hi=
14750 break
14751 fi
14752 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14753fi
ac1cb8d3 14754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14755 done
14756else
14757 echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760ac_lo= ac_hi=
14761fi
ac1cb8d3 14762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14763fi
ac1cb8d3 14764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14765# Binary search between lo and hi bounds.
14766while test "x$ac_lo" != "x$ac_hi"; do
14767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14768 cat >conftest.$ac_ext <<_ACEOF
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
14774$ac_includes_default
14775int
14776main ()
14777{
14778static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14779test_array [0] = 0
14780
14781 ;
14782 return 0;
14783}
14784_ACEOF
14785rm -f conftest.$ac_objext
14786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14787 (eval $ac_compile) 2>conftest.er1
a848cd7e 14788 ac_status=$?
ac1cb8d3
VS
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
a848cd7e
SC
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
5294a27e 14794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_hi=$ac_mid
14807else
14808 echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
14810
14811ac_lo=`expr '(' $ac_mid ')' + 1`
14812fi
ac1cb8d3 14813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14814done
14815case $ac_lo in
14816?*) ac_cv_sizeof_char=$ac_lo;;
14817'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14818See \`config.log' for more details." >&5
14819echo "$as_me: error: cannot compute sizeof (char), 77
14820See \`config.log' for more details." >&2;}
14821 { (exit 1); exit 1; }; } ;;
14822esac
14823else
14824 if test "$cross_compiling" = yes; then
5294a27e
VZ
14825 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14826echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14827 { (exit 1); exit 1; }; }
14828else
14829 cat >conftest.$ac_ext <<_ACEOF
14830/* confdefs.h. */
14831_ACEOF
14832cat confdefs.h >>conftest.$ac_ext
14833cat >>conftest.$ac_ext <<_ACEOF
14834/* end confdefs.h. */
14835$ac_includes_default
14836long longval () { return (long) (sizeof (char)); }
14837unsigned long ulongval () { return (long) (sizeof (char)); }
14838#include <stdio.h>
14839#include <stdlib.h>
14840int
14841main ()
14842{
14843
14844 FILE *f = fopen ("conftest.val", "w");
14845 if (! f)
14846 exit (1);
14847 if (((long) (sizeof (char))) < 0)
14848 {
14849 long i = longval ();
14850 if (i != ((long) (sizeof (char))))
14851 exit (1);
14852 fprintf (f, "%ld\n", i);
14853 }
14854 else
14855 {
14856 unsigned long i = ulongval ();
14857 if (i != ((long) (sizeof (char))))
14858 exit (1);
14859 fprintf (f, "%lu\n", i);
14860 }
14861 exit (ferror (f) || fclose (f) != 0);
14862
14863 ;
14864 return 0;
14865}
14866_ACEOF
14867rm -f conftest$ac_exeext
14868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_cv_sizeof_char=`cat conftest.val`
14879else
14880 echo "$as_me: program exited with status $ac_status" >&5
14881echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
14884( exit $ac_status )
14885{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14886See \`config.log' for more details." >&5
14887echo "$as_me: error: cannot compute sizeof (char), 77
14888See \`config.log' for more details." >&2;}
14889 { (exit 1); exit 1; }; }
14890fi
ac1cb8d3 14891rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14892fi
14893fi
14894rm -f conftest.val
14895else
14896 ac_cv_sizeof_char=0
14897fi
14898fi
14899echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14900echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14901cat >>confdefs.h <<_ACEOF
14902#define SIZEOF_CHAR $ac_cv_sizeof_char
14903_ACEOF
14904
14905
14906echo "$as_me:$LINENO: checking for short" >&5
14907echo $ECHO_N "checking for short... $ECHO_C" >&6
14908if test "${ac_cv_type_short+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910else
14911 cat >conftest.$ac_ext <<_ACEOF
14912/* confdefs.h. */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
14916/* end confdefs.h. */
14917$ac_includes_default
14918int
14919main ()
14920{
14921if ((short *) 0)
14922 return 0;
14923if (sizeof (short))
14924 return 0;
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929rm -f conftest.$ac_objext
14930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14931 (eval $ac_compile) 2>conftest.er1
a848cd7e 14932 ac_status=$?
ac1cb8d3
VS
14933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
a848cd7e
SC
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
5294a27e 14938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_cv_type_short=yes
14951else
14952 echo "$as_me: failed program was:" >&5
14953sed 's/^/| /' conftest.$ac_ext >&5
14954
14955ac_cv_type_short=no
14956fi
ac1cb8d3 14957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14958fi
14959echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14960echo "${ECHO_T}$ac_cv_type_short" >&6
14961
14962echo "$as_me:$LINENO: checking size of short" >&5
14963echo $ECHO_N "checking size of short... $ECHO_C" >&6
14964if test "${ac_cv_sizeof_short+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966else
14967 if test "$ac_cv_type_short" = yes; then
14968 # The cast to unsigned long works around a bug in the HP C Compiler
14969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14971 # This bug is HP SR number 8606223364.
14972 if test "$cross_compiling" = yes; then
14973 # Depending upon the size, compute the lo and hi bounds.
14974cat >conftest.$ac_ext <<_ACEOF
14975/* confdefs.h. */
14976_ACEOF
14977cat confdefs.h >>conftest.$ac_ext
14978cat >>conftest.$ac_ext <<_ACEOF
14979/* end confdefs.h. */
14980$ac_includes_default
14981int
14982main ()
14983{
14984static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14985test_array [0] = 0
14986
14987 ;
14988 return 0;
14989}
14990_ACEOF
14991rm -f conftest.$ac_objext
14992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14993 (eval $ac_compile) 2>conftest.er1
a848cd7e 14994 ac_status=$?
ac1cb8d3
VS
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
a848cd7e
SC
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
5294a27e 15000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_lo=0 ac_mid=0
15013 while :; do
15014 cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020$ac_includes_default
15021int
15022main ()
15023{
15024static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15025test_array [0] = 0
15026
15027 ;
15028 return 0;
15029}
15030_ACEOF
15031rm -f conftest.$ac_objext
15032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15033 (eval $ac_compile) 2>conftest.er1
a848cd7e 15034 ac_status=$?
ac1cb8d3
VS
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
a848cd7e
SC
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
5294a27e 15040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; } &&
15046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 ac_hi=$ac_mid; break
15053else
15054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15058 if test $ac_lo -le $ac_mid; then
15059 ac_lo= ac_hi=
15060 break
15061 fi
15062 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15063fi
ac1cb8d3 15064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15065 done
15066else
15067 echo "$as_me: failed program was:" >&5
15068sed 's/^/| /' conftest.$ac_ext >&5
15069
15070cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
15076$ac_includes_default
15077int
15078main ()
15079{
15080static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15081test_array [0] = 0
15082
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087rm -f conftest.$ac_objext
15088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15089 (eval $ac_compile) 2>conftest.er1
a848cd7e 15090 ac_status=$?
ac1cb8d3
VS
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
a848cd7e
SC
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
5294a27e 15096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_hi=-1 ac_mid=-1
15109 while :; do
15110 cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117int
15118main ()
15119{
15120static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15121test_array [0] = 0
15122
15123 ;
15124 return 0;
15125}
15126_ACEOF
15127rm -f conftest.$ac_objext
15128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15129 (eval $ac_compile) 2>conftest.er1
a848cd7e 15130 ac_status=$?
ac1cb8d3
VS
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
a848cd7e
SC
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
5294a27e 15136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 ac_lo=$ac_mid; break
15149else
15150 echo "$as_me: failed program was:" >&5
15151sed 's/^/| /' conftest.$ac_ext >&5
15152
15153ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15154 if test $ac_mid -le $ac_hi; then
15155 ac_lo= ac_hi=
15156 break
15157 fi
15158 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15159fi
ac1cb8d3 15160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15161 done
15162else
15163 echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
15166ac_lo= ac_hi=
15167fi
ac1cb8d3 15168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15169fi
ac1cb8d3 15170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15171# Binary search between lo and hi bounds.
15172while test "x$ac_lo" != "x$ac_hi"; do
15173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15174 cat >conftest.$ac_ext <<_ACEOF
15175/* confdefs.h. */
15176_ACEOF
15177cat confdefs.h >>conftest.$ac_ext
15178cat >>conftest.$ac_ext <<_ACEOF
15179/* end confdefs.h. */
15180$ac_includes_default
15181int
15182main ()
15183{
15184static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15185test_array [0] = 0
15186
15187 ;
15188 return 0;
15189}
15190_ACEOF
15191rm -f conftest.$ac_objext
15192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15193 (eval $ac_compile) 2>conftest.er1
a848cd7e 15194 ac_status=$?
ac1cb8d3
VS
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
a848cd7e
SC
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
5294a27e 15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 ac_hi=$ac_mid
15213else
15214 echo "$as_me: failed program was:" >&5
15215sed 's/^/| /' conftest.$ac_ext >&5
15216
15217ac_lo=`expr '(' $ac_mid ')' + 1`
15218fi
ac1cb8d3 15219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15220done
15221case $ac_lo in
15222?*) ac_cv_sizeof_short=$ac_lo;;
15223'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15224See \`config.log' for more details." >&5
15225echo "$as_me: error: cannot compute sizeof (short), 77
15226See \`config.log' for more details." >&2;}
15227 { (exit 1); exit 1; }; } ;;
15228esac
15229else
15230 if test "$cross_compiling" = yes; then
5294a27e
VZ
15231 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15232echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15233 { (exit 1); exit 1; }; }
15234else
15235 cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241$ac_includes_default
15242long longval () { return (long) (sizeof (short)); }
15243unsigned long ulongval () { return (long) (sizeof (short)); }
15244#include <stdio.h>
15245#include <stdlib.h>
15246int
15247main ()
15248{
15249
15250 FILE *f = fopen ("conftest.val", "w");
15251 if (! f)
15252 exit (1);
15253 if (((long) (sizeof (short))) < 0)
15254 {
15255 long i = longval ();
15256 if (i != ((long) (sizeof (short))))
15257 exit (1);
15258 fprintf (f, "%ld\n", i);
15259 }
15260 else
15261 {
15262 unsigned long i = ulongval ();
15263 if (i != ((long) (sizeof (short))))
15264 exit (1);
15265 fprintf (f, "%lu\n", i);
15266 }
15267 exit (ferror (f) || fclose (f) != 0);
15268
15269 ;
15270 return 0;
15271}
15272_ACEOF
15273rm -f conftest$ac_exeext
15274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15275 (eval $ac_link) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_sizeof_short=`cat conftest.val`
15285else
15286 echo "$as_me: program exited with status $ac_status" >&5
15287echo "$as_me: failed program was:" >&5
15288sed 's/^/| /' conftest.$ac_ext >&5
15289
15290( exit $ac_status )
15291{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15292See \`config.log' for more details." >&5
15293echo "$as_me: error: cannot compute sizeof (short), 77
15294See \`config.log' for more details." >&2;}
15295 { (exit 1); exit 1; }; }
15296fi
ac1cb8d3 15297rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15298fi
15299fi
15300rm -f conftest.val
15301else
15302 ac_cv_sizeof_short=0
15303fi
15304fi
15305echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15306echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15307cat >>confdefs.h <<_ACEOF
15308#define SIZEOF_SHORT $ac_cv_sizeof_short
15309_ACEOF
15310
15311
15312echo "$as_me:$LINENO: checking for void *" >&5
15313echo $ECHO_N "checking for void *... $ECHO_C" >&6
15314if test "${ac_cv_type_void_p+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317 cat >conftest.$ac_ext <<_ACEOF
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
15323$ac_includes_default
15324int
15325main ()
15326{
15327if ((void * *) 0)
15328 return 0;
15329if (sizeof (void *))
15330 return 0;
15331 ;
15332 return 0;
15333}
15334_ACEOF
15335rm -f conftest.$ac_objext
15336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15337 (eval $ac_compile) 2>conftest.er1
a848cd7e 15338 ac_status=$?
ac1cb8d3
VS
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
a848cd7e
SC
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
5294a27e 15344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; } &&
15350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_cv_type_void_p=yes
15357else
15358 echo "$as_me: failed program was:" >&5
15359sed 's/^/| /' conftest.$ac_ext >&5
15360
15361ac_cv_type_void_p=no
15362fi
ac1cb8d3 15363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15364fi
15365echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15366echo "${ECHO_T}$ac_cv_type_void_p" >&6
15367
15368echo "$as_me:$LINENO: checking size of void *" >&5
15369echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15370if test "${ac_cv_sizeof_void_p+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372else
15373 if test "$ac_cv_type_void_p" = yes; then
15374 # The cast to unsigned long works around a bug in the HP C Compiler
15375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15377 # This bug is HP SR number 8606223364.
15378 if test "$cross_compiling" = yes; then
15379 # Depending upon the size, compute the lo and hi bounds.
15380cat >conftest.$ac_ext <<_ACEOF
15381/* confdefs.h. */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
15386$ac_includes_default
15387int
15388main ()
15389{
15390static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15391test_array [0] = 0
15392
15393 ;
15394 return 0;
15395}
15396_ACEOF
15397rm -f conftest.$ac_objext
15398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15399 (eval $ac_compile) 2>conftest.er1
a848cd7e 15400 ac_status=$?
ac1cb8d3
VS
15401 grep -v '^ *+' conftest.er1 >conftest.err
15402 rm -f conftest.er1
15403 cat conftest.err >&5
a848cd7e
SC
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
5294a27e 15406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } &&
15412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_lo=0 ac_mid=0
15419 while :; do
15420 cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426$ac_includes_default
15427int
15428main ()
15429{
15430static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15431test_array [0] = 0
15432
15433 ;
15434 return 0;
15435}
15436_ACEOF
15437rm -f conftest.$ac_objext
15438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15439 (eval $ac_compile) 2>conftest.er1
a848cd7e 15440 ac_status=$?
ac1cb8d3
VS
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
a848cd7e
SC
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
5294a27e 15446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_hi=$ac_mid; break
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15464 if test $ac_lo -le $ac_mid; then
15465 ac_lo= ac_hi=
15466 break
15467 fi
15468 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15469fi
ac1cb8d3 15470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15471 done
15472else
15473 echo "$as_me: failed program was:" >&5
15474sed 's/^/| /' conftest.$ac_ext >&5
15475
15476cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482$ac_includes_default
15483int
15484main ()
15485{
15486static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15487test_array [0] = 0
15488
15489 ;
15490 return 0;
15491}
15492_ACEOF
15493rm -f conftest.$ac_objext
15494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15495 (eval $ac_compile) 2>conftest.er1
a848cd7e 15496 ac_status=$?
ac1cb8d3
VS
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
a848cd7e
SC
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
5294a27e 15502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_hi=-1 ac_mid=-1
15515 while :; do
15516 cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522$ac_includes_default
15523int
15524main ()
15525{
15526static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15527test_array [0] = 0
15528
15529 ;
15530 return 0;
15531}
15532_ACEOF
15533rm -f conftest.$ac_objext
15534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15535 (eval $ac_compile) 2>conftest.er1
a848cd7e 15536 ac_status=$?
ac1cb8d3
VS
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
a848cd7e
SC
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } &&
5294a27e 15542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; } &&
15548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_lo=$ac_mid; break
15555else
15556 echo "$as_me: failed program was:" >&5
15557sed 's/^/| /' conftest.$ac_ext >&5
15558
15559ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15560 if test $ac_mid -le $ac_hi; then
15561 ac_lo= ac_hi=
15562 break
15563 fi
15564 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15565fi
ac1cb8d3 15566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15567 done
15568else
15569 echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572ac_lo= ac_hi=
15573fi
ac1cb8d3 15574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15575fi
ac1cb8d3 15576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15577# Binary search between lo and hi bounds.
15578while test "x$ac_lo" != "x$ac_hi"; do
15579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15580 cat >conftest.$ac_ext <<_ACEOF
15581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
15586$ac_includes_default
15587int
15588main ()
15589{
15590static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15591test_array [0] = 0
15592
15593 ;
15594 return 0;
15595}
15596_ACEOF
15597rm -f conftest.$ac_objext
15598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15599 (eval $ac_compile) 2>conftest.er1
a848cd7e 15600 ac_status=$?
ac1cb8d3
VS
15601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
a848cd7e
SC
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
5294a27e 15606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_hi=$ac_mid
15619else
15620 echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623ac_lo=`expr '(' $ac_mid ')' + 1`
15624fi
ac1cb8d3 15625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15626done
15627case $ac_lo in
15628?*) ac_cv_sizeof_void_p=$ac_lo;;
15629'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15630See \`config.log' for more details." >&5
15631echo "$as_me: error: cannot compute sizeof (void *), 77
15632See \`config.log' for more details." >&2;}
15633 { (exit 1); exit 1; }; } ;;
15634esac
15635else
15636 if test "$cross_compiling" = yes; then
5294a27e
VZ
15637 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15638echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15639 { (exit 1); exit 1; }; }
15640else
15641 cat >conftest.$ac_ext <<_ACEOF
15642/* confdefs.h. */
15643_ACEOF
15644cat confdefs.h >>conftest.$ac_ext
15645cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h. */
15647$ac_includes_default
15648long longval () { return (long) (sizeof (void *)); }
15649unsigned long ulongval () { return (long) (sizeof (void *)); }
15650#include <stdio.h>
15651#include <stdlib.h>
15652int
15653main ()
15654{
15655
15656 FILE *f = fopen ("conftest.val", "w");
15657 if (! f)
15658 exit (1);
15659 if (((long) (sizeof (void *))) < 0)
15660 {
15661 long i = longval ();
15662 if (i != ((long) (sizeof (void *))))
15663 exit (1);
15664 fprintf (f, "%ld\n", i);
15665 }
15666 else
15667 {
15668 unsigned long i = ulongval ();
15669 if (i != ((long) (sizeof (void *))))
15670 exit (1);
15671 fprintf (f, "%lu\n", i);
15672 }
15673 exit (ferror (f) || fclose (f) != 0);
15674
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679rm -f conftest$ac_exeext
15680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681 (eval $ac_link) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_sizeof_void_p=`cat conftest.val`
15691else
15692 echo "$as_me: program exited with status $ac_status" >&5
15693echo "$as_me: failed program was:" >&5
15694sed 's/^/| /' conftest.$ac_ext >&5
15695
15696( exit $ac_status )
15697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15698See \`config.log' for more details." >&5
15699echo "$as_me: error: cannot compute sizeof (void *), 77
15700See \`config.log' for more details." >&2;}
15701 { (exit 1); exit 1; }; }
15702fi
ac1cb8d3 15703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15704fi
15705fi
15706rm -f conftest.val
15707else
15708 ac_cv_sizeof_void_p=0
15709fi
15710fi
15711echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15712echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15713cat >>confdefs.h <<_ACEOF
15714#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15715_ACEOF
15716
15717
15718echo "$as_me:$LINENO: checking for int" >&5
15719echo $ECHO_N "checking for int... $ECHO_C" >&6
15720if test "${ac_cv_type_int+set}" = set; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722else
15723 cat >conftest.$ac_ext <<_ACEOF
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729$ac_includes_default
15730int
15731main ()
15732{
15733if ((int *) 0)
15734 return 0;
15735if (sizeof (int))
15736 return 0;
15737 ;
15738 return 0;
15739}
15740_ACEOF
15741rm -f conftest.$ac_objext
15742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15743 (eval $ac_compile) 2>conftest.er1
a848cd7e 15744 ac_status=$?
ac1cb8d3
VS
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
a848cd7e
SC
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
5294a27e 15750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_cv_type_int=yes
15763else
15764 echo "$as_me: failed program was:" >&5
15765sed 's/^/| /' conftest.$ac_ext >&5
15766
15767ac_cv_type_int=no
15768fi
ac1cb8d3 15769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15770fi
15771echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15772echo "${ECHO_T}$ac_cv_type_int" >&6
15773
15774echo "$as_me:$LINENO: checking size of int" >&5
15775echo $ECHO_N "checking size of int... $ECHO_C" >&6
15776if test "${ac_cv_sizeof_int+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778else
15779 if test "$ac_cv_type_int" = yes; then
15780 # The cast to unsigned long works around a bug in the HP C Compiler
15781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15783 # This bug is HP SR number 8606223364.
15784 if test "$cross_compiling" = yes; then
15785 # Depending upon the size, compute the lo and hi bounds.
15786cat >conftest.$ac_ext <<_ACEOF
15787/* confdefs.h. */
15788_ACEOF
15789cat confdefs.h >>conftest.$ac_ext
15790cat >>conftest.$ac_ext <<_ACEOF
15791/* end confdefs.h. */
15792$ac_includes_default
15793int
15794main ()
15795{
15796static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15797test_array [0] = 0
15798
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext
15804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15805 (eval $ac_compile) 2>conftest.er1
a848cd7e 15806 ac_status=$?
ac1cb8d3
VS
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
a848cd7e
SC
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
5294a27e 15812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_lo=0 ac_mid=0
15825 while :; do
15826 cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832$ac_includes_default
15833int
15834main ()
15835{
15836static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15837test_array [0] = 0
15838
15839 ;
15840 return 0;
15841}
15842_ACEOF
15843rm -f conftest.$ac_objext
15844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15845 (eval $ac_compile) 2>conftest.er1
a848cd7e 15846 ac_status=$?
ac1cb8d3
VS
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
a848cd7e
SC
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
5294a27e 15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 ac_hi=$ac_mid; break
15865else
15866 echo "$as_me: failed program was:" >&5
15867sed 's/^/| /' conftest.$ac_ext >&5
15868
15869ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15870 if test $ac_lo -le $ac_mid; then
15871 ac_lo= ac_hi=
15872 break
15873 fi
15874 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15875fi
ac1cb8d3 15876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15877 done
15878else
15879 echo "$as_me: failed program was:" >&5
15880sed 's/^/| /' conftest.$ac_ext >&5
15881
15882cat >conftest.$ac_ext <<_ACEOF
15883/* confdefs.h. */
15884_ACEOF
15885cat confdefs.h >>conftest.$ac_ext
15886cat >>conftest.$ac_ext <<_ACEOF
15887/* end confdefs.h. */
15888$ac_includes_default
15889int
15890main ()
15891{
15892static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15893test_array [0] = 0
15894
15895 ;
15896 return 0;
15897}
15898_ACEOF
15899rm -f conftest.$ac_objext
15900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15901 (eval $ac_compile) 2>conftest.er1
a848cd7e 15902 ac_status=$?
ac1cb8d3
VS
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
a848cd7e
SC
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
5294a27e 15908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_hi=-1 ac_mid=-1
15921 while :; do
15922 cat >conftest.$ac_ext <<_ACEOF
15923/* confdefs.h. */
15924_ACEOF
15925cat confdefs.h >>conftest.$ac_ext
15926cat >>conftest.$ac_ext <<_ACEOF
15927/* end confdefs.h. */
15928$ac_includes_default
15929int
15930main ()
15931{
15932static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15933test_array [0] = 0
15934
15935 ;
15936 return 0;
15937}
15938_ACEOF
15939rm -f conftest.$ac_objext
15940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15941 (eval $ac_compile) 2>conftest.er1
a848cd7e 15942 ac_status=$?
ac1cb8d3
VS
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
a848cd7e
SC
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
5294a27e 15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15960 ac_lo=$ac_mid; break
15961else
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15966 if test $ac_mid -le $ac_hi; then
15967 ac_lo= ac_hi=
15968 break
15969 fi
15970 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15971fi
ac1cb8d3 15972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15973 done
15974else
15975 echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978ac_lo= ac_hi=
15979fi
ac1cb8d3 15980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15981fi
ac1cb8d3 15982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15983# Binary search between lo and hi bounds.
15984while test "x$ac_lo" != "x$ac_hi"; do
15985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15986 cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992$ac_includes_default
15993int
15994main ()
15995{
15996static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15997test_array [0] = 0
15998
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext
16004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16005 (eval $ac_compile) 2>conftest.er1
a848cd7e 16006 ac_status=$?
ac1cb8d3
VS
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
a848cd7e
SC
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
5294a27e 16012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_hi=$ac_mid
16025else
16026 echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029ac_lo=`expr '(' $ac_mid ')' + 1`
16030fi
ac1cb8d3 16031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16032done
16033case $ac_lo in
16034?*) ac_cv_sizeof_int=$ac_lo;;
16035'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16036See \`config.log' for more details." >&5
16037echo "$as_me: error: cannot compute sizeof (int), 77
16038See \`config.log' for more details." >&2;}
16039 { (exit 1); exit 1; }; } ;;
16040esac
16041else
16042 if test "$cross_compiling" = yes; then
5294a27e
VZ
16043 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16044echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16045 { (exit 1); exit 1; }; }
16046else
16047 cat >conftest.$ac_ext <<_ACEOF
16048/* confdefs.h. */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h. */
16053$ac_includes_default
16054long longval () { return (long) (sizeof (int)); }
16055unsigned long ulongval () { return (long) (sizeof (int)); }
16056#include <stdio.h>
16057#include <stdlib.h>
16058int
16059main ()
16060{
16061
16062 FILE *f = fopen ("conftest.val", "w");
16063 if (! f)
16064 exit (1);
16065 if (((long) (sizeof (int))) < 0)
16066 {
16067 long i = longval ();
16068 if (i != ((long) (sizeof (int))))
16069 exit (1);
16070 fprintf (f, "%ld\n", i);
16071 }
16072 else
16073 {
16074 unsigned long i = ulongval ();
16075 if (i != ((long) (sizeof (int))))
16076 exit (1);
16077 fprintf (f, "%lu\n", i);
16078 }
16079 exit (ferror (f) || fclose (f) != 0);
16080
16081 ;
16082 return 0;
16083}
16084_ACEOF
16085rm -f conftest$ac_exeext
16086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16087 (eval $ac_link) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_cv_sizeof_int=`cat conftest.val`
16097else
16098 echo "$as_me: program exited with status $ac_status" >&5
16099echo "$as_me: failed program was:" >&5
16100sed 's/^/| /' conftest.$ac_ext >&5
16101
16102( exit $ac_status )
16103{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16104See \`config.log' for more details." >&5
16105echo "$as_me: error: cannot compute sizeof (int), 77
16106See \`config.log' for more details." >&2;}
16107 { (exit 1); exit 1; }; }
16108fi
ac1cb8d3 16109rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16110fi
16111fi
16112rm -f conftest.val
16113else
16114 ac_cv_sizeof_int=0
16115fi
16116fi
16117echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16118echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16119cat >>confdefs.h <<_ACEOF
16120#define SIZEOF_INT $ac_cv_sizeof_int
16121_ACEOF
16122
16123
16124echo "$as_me:$LINENO: checking for long" >&5
16125echo $ECHO_N "checking for long... $ECHO_C" >&6
16126if test "${ac_cv_type_long+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16128else
16129 cat >conftest.$ac_ext <<_ACEOF
16130/* confdefs.h. */
16131_ACEOF
16132cat confdefs.h >>conftest.$ac_ext
16133cat >>conftest.$ac_ext <<_ACEOF
16134/* end confdefs.h. */
16135$ac_includes_default
16136int
16137main ()
16138{
16139if ((long *) 0)
16140 return 0;
16141if (sizeof (long))
16142 return 0;
16143 ;
16144 return 0;
16145}
16146_ACEOF
16147rm -f conftest.$ac_objext
16148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16149 (eval $ac_compile) 2>conftest.er1
a848cd7e 16150 ac_status=$?
ac1cb8d3
VS
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
a848cd7e
SC
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
5294a27e 16156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
16162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_cv_type_long=yes
16169else
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173ac_cv_type_long=no
16174fi
ac1cb8d3 16175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16176fi
16177echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16178echo "${ECHO_T}$ac_cv_type_long" >&6
16179
16180echo "$as_me:$LINENO: checking size of long" >&5
16181echo $ECHO_N "checking size of long... $ECHO_C" >&6
16182if test "${ac_cv_sizeof_long+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184else
16185 if test "$ac_cv_type_long" = yes; then
16186 # The cast to unsigned long works around a bug in the HP C Compiler
16187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16189 # This bug is HP SR number 8606223364.
16190 if test "$cross_compiling" = yes; then
16191 # Depending upon the size, compute the lo and hi bounds.
16192cat >conftest.$ac_ext <<_ACEOF
16193/* confdefs.h. */
16194_ACEOF
16195cat confdefs.h >>conftest.$ac_ext
16196cat >>conftest.$ac_ext <<_ACEOF
16197/* end confdefs.h. */
16198$ac_includes_default
16199int
16200main ()
16201{
16202static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16203test_array [0] = 0
16204
16205 ;
16206 return 0;
16207}
16208_ACEOF
16209rm -f conftest.$ac_objext
16210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16211 (eval $ac_compile) 2>conftest.er1
a848cd7e 16212 ac_status=$?
ac1cb8d3
VS
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
a848cd7e
SC
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
5294a27e 16218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; } &&
16224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_lo=0 ac_mid=0
16231 while :; do
16232 cat >conftest.$ac_ext <<_ACEOF
16233/* confdefs.h. */
16234_ACEOF
16235cat confdefs.h >>conftest.$ac_ext
16236cat >>conftest.$ac_ext <<_ACEOF
16237/* end confdefs.h. */
16238$ac_includes_default
16239int
16240main ()
16241{
16242static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16243test_array [0] = 0
16244
16245 ;
16246 return 0;
16247}
16248_ACEOF
16249rm -f conftest.$ac_objext
16250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16251 (eval $ac_compile) 2>conftest.er1
a848cd7e 16252 ac_status=$?
ac1cb8d3
VS
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
a848cd7e
SC
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
5294a27e 16258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_hi=$ac_mid; break
16271else
16272 echo "$as_me: failed program was:" >&5
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
16275ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16276 if test $ac_lo -le $ac_mid; then
16277 ac_lo= ac_hi=
16278 break
16279 fi
16280 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16281fi
ac1cb8d3 16282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16283 done
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
16288cat >conftest.$ac_ext <<_ACEOF
16289/* confdefs.h. */
16290_ACEOF
16291cat confdefs.h >>conftest.$ac_ext
16292cat >>conftest.$ac_ext <<_ACEOF
16293/* end confdefs.h. */
16294$ac_includes_default
16295int
16296main ()
16297{
16298static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16299test_array [0] = 0
16300
16301 ;
16302 return 0;
16303}
16304_ACEOF
16305rm -f conftest.$ac_objext
16306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16307 (eval $ac_compile) 2>conftest.er1
a848cd7e 16308 ac_status=$?
ac1cb8d3
VS
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
a848cd7e
SC
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
5294a27e 16314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_hi=-1 ac_mid=-1
16327 while :; do
16328 cat >conftest.$ac_ext <<_ACEOF
16329/* confdefs.h. */
16330_ACEOF
16331cat confdefs.h >>conftest.$ac_ext
16332cat >>conftest.$ac_ext <<_ACEOF
16333/* end confdefs.h. */
16334$ac_includes_default
16335int
16336main ()
16337{
16338static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16339test_array [0] = 0
16340
16341 ;
16342 return 0;
16343}
16344_ACEOF
16345rm -f conftest.$ac_objext
16346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16347 (eval $ac_compile) 2>conftest.er1
a848cd7e 16348 ac_status=$?
ac1cb8d3
VS
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
a848cd7e
SC
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
5294a27e 16354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_lo=$ac_mid; break
16367else
16368 echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
16371ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16372 if test $ac_mid -le $ac_hi; then
16373 ac_lo= ac_hi=
16374 break
16375 fi
16376 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16377fi
ac1cb8d3 16378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16379 done
16380else
16381 echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384ac_lo= ac_hi=
16385fi
ac1cb8d3 16386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16387fi
ac1cb8d3 16388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16389# Binary search between lo and hi bounds.
16390while test "x$ac_lo" != "x$ac_hi"; do
16391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16392 cat >conftest.$ac_ext <<_ACEOF
16393/* confdefs.h. */
16394_ACEOF
16395cat confdefs.h >>conftest.$ac_ext
16396cat >>conftest.$ac_ext <<_ACEOF
16397/* end confdefs.h. */
16398$ac_includes_default
16399int
16400main ()
16401{
16402static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16403test_array [0] = 0
16404
16405 ;
16406 return 0;
16407}
16408_ACEOF
16409rm -f conftest.$ac_objext
16410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16411 (eval $ac_compile) 2>conftest.er1
a848cd7e 16412 ac_status=$?
ac1cb8d3
VS
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
a848cd7e
SC
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
5294a27e 16418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_hi=$ac_mid
16431else
16432 echo "$as_me: failed program was:" >&5
16433sed 's/^/| /' conftest.$ac_ext >&5
16434
16435ac_lo=`expr '(' $ac_mid ')' + 1`
16436fi
ac1cb8d3 16437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16438done
16439case $ac_lo in
16440?*) ac_cv_sizeof_long=$ac_lo;;
16441'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16442See \`config.log' for more details." >&5
16443echo "$as_me: error: cannot compute sizeof (long), 77
16444See \`config.log' for more details." >&2;}
16445 { (exit 1); exit 1; }; } ;;
16446esac
16447else
16448 if test "$cross_compiling" = yes; then
5294a27e
VZ
16449 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16450echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16451 { (exit 1); exit 1; }; }
16452else
16453 cat >conftest.$ac_ext <<_ACEOF
16454/* confdefs.h. */
16455_ACEOF
16456cat confdefs.h >>conftest.$ac_ext
16457cat >>conftest.$ac_ext <<_ACEOF
16458/* end confdefs.h. */
16459$ac_includes_default
16460long longval () { return (long) (sizeof (long)); }
16461unsigned long ulongval () { return (long) (sizeof (long)); }
16462#include <stdio.h>
16463#include <stdlib.h>
16464int
16465main ()
16466{
16467
16468 FILE *f = fopen ("conftest.val", "w");
16469 if (! f)
16470 exit (1);
16471 if (((long) (sizeof (long))) < 0)
16472 {
16473 long i = longval ();
16474 if (i != ((long) (sizeof (long))))
16475 exit (1);
16476 fprintf (f, "%ld\n", i);
16477 }
16478 else
16479 {
16480 unsigned long i = ulongval ();
16481 if (i != ((long) (sizeof (long))))
16482 exit (1);
16483 fprintf (f, "%lu\n", i);
16484 }
16485 exit (ferror (f) || fclose (f) != 0);
16486
16487 ;
16488 return 0;
16489}
16490_ACEOF
16491rm -f conftest$ac_exeext
16492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493 (eval $ac_link) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_sizeof_long=`cat conftest.val`
16503else
16504 echo "$as_me: program exited with status $ac_status" >&5
16505echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508( exit $ac_status )
16509{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16510See \`config.log' for more details." >&5
16511echo "$as_me: error: cannot compute sizeof (long), 77
16512See \`config.log' for more details." >&2;}
16513 { (exit 1); exit 1; }; }
16514fi
ac1cb8d3 16515rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16516fi
16517fi
16518rm -f conftest.val
16519else
16520 ac_cv_sizeof_long=0
16521fi
16522fi
16523echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16524echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16525cat >>confdefs.h <<_ACEOF
16526#define SIZEOF_LONG $ac_cv_sizeof_long
16527_ACEOF
16528
16529
16530echo "$as_me:$LINENO: checking for size_t" >&5
16531echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16532if test "${ac_cv_type_size_t+set}" = set; then
16533 echo $ECHO_N "(cached) $ECHO_C" >&6
16534else
16535 cat >conftest.$ac_ext <<_ACEOF
16536/* confdefs.h. */
16537_ACEOF
16538cat confdefs.h >>conftest.$ac_ext
16539cat >>conftest.$ac_ext <<_ACEOF
16540/* end confdefs.h. */
16541$ac_includes_default
16542int
16543main ()
16544{
16545if ((size_t *) 0)
16546 return 0;
16547if (sizeof (size_t))
16548 return 0;
16549 ;
16550 return 0;
16551}
16552_ACEOF
16553rm -f conftest.$ac_objext
16554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16555 (eval $ac_compile) 2>conftest.er1
a848cd7e 16556 ac_status=$?
ac1cb8d3
VS
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
a848cd7e
SC
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } &&
5294a27e 16562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_cv_type_size_t=yes
16575else
16576 echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
16579ac_cv_type_size_t=no
16580fi
ac1cb8d3 16581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16582fi
16583echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16584echo "${ECHO_T}$ac_cv_type_size_t" >&6
16585
16586echo "$as_me:$LINENO: checking size of size_t" >&5
16587echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16588if test "${ac_cv_sizeof_size_t+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590else
16591 if test "$ac_cv_type_size_t" = yes; then
16592 # The cast to unsigned long works around a bug in the HP C Compiler
16593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16595 # This bug is HP SR number 8606223364.
16596 if test "$cross_compiling" = yes; then
16597 # Depending upon the size, compute the lo and hi bounds.
16598cat >conftest.$ac_ext <<_ACEOF
16599/* confdefs.h. */
16600_ACEOF
16601cat confdefs.h >>conftest.$ac_ext
16602cat >>conftest.$ac_ext <<_ACEOF
16603/* end confdefs.h. */
16604$ac_includes_default
16605int
16606main ()
16607{
16608static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16609test_array [0] = 0
16610
16611 ;
16612 return 0;
16613}
16614_ACEOF
16615rm -f conftest.$ac_objext
16616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16617 (eval $ac_compile) 2>conftest.er1
a848cd7e 16618 ac_status=$?
ac1cb8d3
VS
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
a848cd7e
SC
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
5294a27e 16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_lo=0 ac_mid=0
16637 while :; do
16638 cat >conftest.$ac_ext <<_ACEOF
16639/* confdefs.h. */
16640_ACEOF
16641cat confdefs.h >>conftest.$ac_ext
16642cat >>conftest.$ac_ext <<_ACEOF
16643/* end confdefs.h. */
16644$ac_includes_default
16645int
16646main ()
16647{
16648static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16649test_array [0] = 0
16650
16651 ;
16652 return 0;
16653}
16654_ACEOF
16655rm -f conftest.$ac_objext
16656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16657 (eval $ac_compile) 2>conftest.er1
a848cd7e 16658 ac_status=$?
ac1cb8d3
VS
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
a848cd7e
SC
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
5294a27e 16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_hi=$ac_mid; break
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
16681ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16682 if test $ac_lo -le $ac_mid; then
16683 ac_lo= ac_hi=
16684 break
16685 fi
16686 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16687fi
ac1cb8d3 16688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16689 done
16690else
16691 echo "$as_me: failed program was:" >&5
16692sed 's/^/| /' conftest.$ac_ext >&5
16693
16694cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700$ac_includes_default
16701int
16702main ()
16703{
16704static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16705test_array [0] = 0
16706
16707 ;
16708 return 0;
16709}
16710_ACEOF
16711rm -f conftest.$ac_objext
16712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16713 (eval $ac_compile) 2>conftest.er1
a848cd7e 16714 ac_status=$?
ac1cb8d3
VS
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
a848cd7e
SC
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
5294a27e 16720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_hi=-1 ac_mid=-1
16733 while :; do
16734 cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740$ac_includes_default
16741int
16742main ()
16743{
16744static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16745test_array [0] = 0
16746
16747 ;
16748 return 0;
16749}
16750_ACEOF
16751rm -f conftest.$ac_objext
16752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16753 (eval $ac_compile) 2>conftest.er1
a848cd7e 16754 ac_status=$?
ac1cb8d3
VS
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
a848cd7e
SC
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
5294a27e 16760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 ac_lo=$ac_mid; break
16773else
16774 echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
16777ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16778 if test $ac_mid -le $ac_hi; then
16779 ac_lo= ac_hi=
16780 break
16781 fi
16782 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16783fi
ac1cb8d3 16784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16785 done
16786else
16787 echo "$as_me: failed program was:" >&5
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
16790ac_lo= ac_hi=
16791fi
ac1cb8d3 16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16793fi
ac1cb8d3 16794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16795# Binary search between lo and hi bounds.
16796while test "x$ac_lo" != "x$ac_hi"; do
16797 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16798 cat >conftest.$ac_ext <<_ACEOF
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
16804$ac_includes_default
16805int
16806main ()
16807{
16808static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16809test_array [0] = 0
16810
16811 ;
16812 return 0;
16813}
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16817 (eval $ac_compile) 2>conftest.er1
a848cd7e 16818 ac_status=$?
ac1cb8d3
VS
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
a848cd7e
SC
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
5294a27e 16824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836 ac_hi=$ac_mid
16837else
16838 echo "$as_me: failed program was:" >&5
16839sed 's/^/| /' conftest.$ac_ext >&5
16840
16841ac_lo=`expr '(' $ac_mid ')' + 1`
16842fi
ac1cb8d3 16843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16844done
16845case $ac_lo in
16846?*) ac_cv_sizeof_size_t=$ac_lo;;
16847'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16848See \`config.log' for more details." >&5
16849echo "$as_me: error: cannot compute sizeof (size_t), 77
16850See \`config.log' for more details." >&2;}
16851 { (exit 1); exit 1; }; } ;;
16852esac
16853else
16854 if test "$cross_compiling" = yes; then
5294a27e
VZ
16855 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16856echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16857 { (exit 1); exit 1; }; }
16858else
16859 cat >conftest.$ac_ext <<_ACEOF
16860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
16865$ac_includes_default
16866long longval () { return (long) (sizeof (size_t)); }
16867unsigned long ulongval () { return (long) (sizeof (size_t)); }
16868#include <stdio.h>
16869#include <stdlib.h>
16870int
16871main ()
16872{
16873
16874 FILE *f = fopen ("conftest.val", "w");
16875 if (! f)
16876 exit (1);
16877 if (((long) (sizeof (size_t))) < 0)
16878 {
16879 long i = longval ();
16880 if (i != ((long) (sizeof (size_t))))
16881 exit (1);
16882 fprintf (f, "%ld\n", i);
16883 }
16884 else
16885 {
16886 unsigned long i = ulongval ();
16887 if (i != ((long) (sizeof (size_t))))
16888 exit (1);
16889 fprintf (f, "%lu\n", i);
16890 }
16891 exit (ferror (f) || fclose (f) != 0);
16892
16893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest$ac_exeext
16898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16899 (eval $ac_link) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_sizeof_size_t=`cat conftest.val`
16909else
16910 echo "$as_me: program exited with status $ac_status" >&5
16911echo "$as_me: failed program was:" >&5
16912sed 's/^/| /' conftest.$ac_ext >&5
16913
16914( exit $ac_status )
16915{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16916See \`config.log' for more details." >&5
16917echo "$as_me: error: cannot compute sizeof (size_t), 77
16918See \`config.log' for more details." >&2;}
16919 { (exit 1); exit 1; }; }
16920fi
ac1cb8d3 16921rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16922fi
16923fi
16924rm -f conftest.val
16925else
16926 ac_cv_sizeof_size_t=0
16927fi
16928fi
16929echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16930echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16931cat >>confdefs.h <<_ACEOF
16932#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16933_ACEOF
16934
16935
16936
16937case "${host}" in
16938 arm-*-linux* )
16939 echo "$as_me:$LINENO: checking for long long" >&5
16940echo $ECHO_N "checking for long long... $ECHO_C" >&6
16941if test "${ac_cv_type_long_long+set}" = set; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16943else
16944 cat >conftest.$ac_ext <<_ACEOF
16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
16950$ac_includes_default
16951int
16952main ()
16953{
16954if ((long long *) 0)
16955 return 0;
16956if (sizeof (long long))
16957 return 0;
16958 ;
16959 return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext
16963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16964 (eval $ac_compile) 2>conftest.er1
a848cd7e 16965 ac_status=$?
ac1cb8d3
VS
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
a848cd7e
SC
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
5294a27e 16971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 ac_cv_type_long_long=yes
16984else
16985 echo "$as_me: failed program was:" >&5
16986sed 's/^/| /' conftest.$ac_ext >&5
16987
16988ac_cv_type_long_long=no
16989fi
ac1cb8d3 16990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16991fi
16992echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16993echo "${ECHO_T}$ac_cv_type_long_long" >&6
16994
16995echo "$as_me:$LINENO: checking size of long long" >&5
16996echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16997if test "${ac_cv_sizeof_long_long+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999else
17000 if test "$ac_cv_type_long_long" = yes; then
17001 # The cast to unsigned long works around a bug in the HP C Compiler
17002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17004 # This bug is HP SR number 8606223364.
17005 if test "$cross_compiling" = yes; then
17006 # Depending upon the size, compute the lo and hi bounds.
17007cat >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{
17017static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17018test_array [0] = 0
17019
17020 ;
17021 return 0;
17022}
17023_ACEOF
17024rm -f conftest.$ac_objext
17025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17026 (eval $ac_compile) 2>conftest.er1
a848cd7e 17027 ac_status=$?
ac1cb8d3
VS
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
a848cd7e
SC
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
5294a27e 17033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_lo=0 ac_mid=0
17046 while :; do
17047 cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053$ac_includes_default
17054int
17055main ()
17056{
17057static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17058test_array [0] = 0
17059
17060 ;
17061 return 0;
17062}
17063_ACEOF
17064rm -f conftest.$ac_objext
17065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17066 (eval $ac_compile) 2>conftest.er1
a848cd7e 17067 ac_status=$?
ac1cb8d3
VS
17068 grep -v '^ *+' conftest.er1 >conftest.err
17069 rm -f conftest.er1
17070 cat conftest.err >&5
a848cd7e
SC
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
5294a27e 17073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_hi=$ac_mid; break
17086else
17087 echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
17090ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17091 if test $ac_lo -le $ac_mid; then
17092 ac_lo= ac_hi=
17093 break
17094 fi
17095 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17096fi
ac1cb8d3 17097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17098 done
17099else
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103cat >conftest.$ac_ext <<_ACEOF
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109$ac_includes_default
17110int
17111main ()
17112{
17113static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17114test_array [0] = 0
17115
17116 ;
17117 return 0;
17118}
17119_ACEOF
17120rm -f conftest.$ac_objext
17121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17122 (eval $ac_compile) 2>conftest.er1
a848cd7e 17123 ac_status=$?
ac1cb8d3
VS
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
a848cd7e
SC
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
5294a27e 17129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_hi=-1 ac_mid=-1
17142 while :; do
17143 cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149$ac_includes_default
17150int
17151main ()
17152{
17153static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17154test_array [0] = 0
17155
17156 ;
17157 return 0;
17158}
17159_ACEOF
17160rm -f conftest.$ac_objext
17161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17162 (eval $ac_compile) 2>conftest.er1
a848cd7e 17163 ac_status=$?
ac1cb8d3
VS
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
a848cd7e
SC
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
5294a27e 17169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_lo=$ac_mid; break
17182else
17183 echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
17186ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17187 if test $ac_mid -le $ac_hi; then
17188 ac_lo= ac_hi=
17189 break
17190 fi
17191 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17192fi
ac1cb8d3 17193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17194 done
17195else
17196 echo "$as_me: failed program was:" >&5
17197sed 's/^/| /' conftest.$ac_ext >&5
17198
17199ac_lo= ac_hi=
17200fi
ac1cb8d3 17201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17202fi
ac1cb8d3 17203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17204# Binary search between lo and hi bounds.
17205while test "x$ac_lo" != "x$ac_hi"; do
17206 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17207 cat >conftest.$ac_ext <<_ACEOF
17208/* confdefs.h. */
17209_ACEOF
17210cat confdefs.h >>conftest.$ac_ext
17211cat >>conftest.$ac_ext <<_ACEOF
17212/* end confdefs.h. */
17213$ac_includes_default
17214int
17215main ()
17216{
17217static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17218test_array [0] = 0
17219
17220 ;
17221 return 0;
17222}
17223_ACEOF
17224rm -f conftest.$ac_objext
17225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17226 (eval $ac_compile) 2>conftest.er1
a848cd7e 17227 ac_status=$?
ac1cb8d3
VS
17228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
a848cd7e
SC
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
5294a27e 17233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; } &&
17239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_hi=$ac_mid
17246else
17247 echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250ac_lo=`expr '(' $ac_mid ')' + 1`
17251fi
ac1cb8d3 17252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17253done
17254case $ac_lo in
17255?*) ac_cv_sizeof_long_long=$ac_lo;;
17256'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17257See \`config.log' for more details." >&5
17258echo "$as_me: error: cannot compute sizeof (long long), 77
17259See \`config.log' for more details." >&2;}
17260 { (exit 1); exit 1; }; } ;;
17261esac
17262else
17263 if test "$cross_compiling" = yes; then
5294a27e
VZ
17264 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17265echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17266 { (exit 1); exit 1; }; }
17267else
17268 cat >conftest.$ac_ext <<_ACEOF
17269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
17274$ac_includes_default
17275long longval () { return (long) (sizeof (long long)); }
17276unsigned long ulongval () { return (long) (sizeof (long long)); }
17277#include <stdio.h>
17278#include <stdlib.h>
17279int
17280main ()
17281{
17282
17283 FILE *f = fopen ("conftest.val", "w");
17284 if (! f)
17285 exit (1);
17286 if (((long) (sizeof (long long))) < 0)
17287 {
17288 long i = longval ();
17289 if (i != ((long) (sizeof (long long))))
17290 exit (1);
17291 fprintf (f, "%ld\n", i);
17292 }
17293 else
17294 {
17295 unsigned long i = ulongval ();
17296 if (i != ((long) (sizeof (long long))))
17297 exit (1);
17298 fprintf (f, "%lu\n", i);
17299 }
17300 exit (ferror (f) || fclose (f) != 0);
17301
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306rm -f conftest$ac_exeext
17307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17308 (eval $ac_link) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_cv_sizeof_long_long=`cat conftest.val`
17318else
17319 echo "$as_me: program exited with status $ac_status" >&5
17320echo "$as_me: failed program was:" >&5
17321sed 's/^/| /' conftest.$ac_ext >&5
17322
17323( exit $ac_status )
17324{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17325See \`config.log' for more details." >&5
17326echo "$as_me: error: cannot compute sizeof (long long), 77
17327See \`config.log' for more details." >&2;}
17328 { (exit 1); exit 1; }; }
17329fi
ac1cb8d3 17330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17331fi
17332fi
17333rm -f conftest.val
17334else
17335 ac_cv_sizeof_long_long=0
17336fi
17337fi
17338echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17339echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17340cat >>confdefs.h <<_ACEOF
17341#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17342_ACEOF
17343
17344
17345 ;;
17346 *-hp-hpux* )
17347 echo "$as_me:$LINENO: checking for long long" >&5
17348echo $ECHO_N "checking for long long... $ECHO_C" >&6
17349if test "${ac_cv_type_long_long+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17351else
17352 cat >conftest.$ac_ext <<_ACEOF
17353/* confdefs.h. */
17354_ACEOF
17355cat confdefs.h >>conftest.$ac_ext
17356cat >>conftest.$ac_ext <<_ACEOF
17357/* end confdefs.h. */
17358$ac_includes_default
17359int
17360main ()
17361{
17362if ((long long *) 0)
17363 return 0;
17364if (sizeof (long long))
17365 return 0;
17366 ;
17367 return 0;
17368}
17369_ACEOF
17370rm -f conftest.$ac_objext
17371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17372 (eval $ac_compile) 2>conftest.er1
a848cd7e 17373 ac_status=$?
ac1cb8d3
VS
17374 grep -v '^ *+' conftest.er1 >conftest.err
17375 rm -f conftest.er1
17376 cat conftest.err >&5
a848cd7e
SC
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
5294a27e 17379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 ac_cv_type_long_long=yes
17392else
17393 echo "$as_me: failed program was:" >&5
17394sed 's/^/| /' conftest.$ac_ext >&5
17395
17396ac_cv_type_long_long=no
17397fi
ac1cb8d3 17398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17399fi
17400echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17401echo "${ECHO_T}$ac_cv_type_long_long" >&6
17402
17403echo "$as_me:$LINENO: checking size of long long" >&5
17404echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17405if test "${ac_cv_sizeof_long_long+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407else
17408 if test "$ac_cv_type_long_long" = yes; then
17409 # The cast to unsigned long works around a bug in the HP C Compiler
17410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17412 # This bug is HP SR number 8606223364.
17413 if test "$cross_compiling" = yes; then
17414 # Depending upon the size, compute the lo and hi bounds.
17415cat >conftest.$ac_ext <<_ACEOF
17416/* confdefs.h. */
17417_ACEOF
17418cat confdefs.h >>conftest.$ac_ext
17419cat >>conftest.$ac_ext <<_ACEOF
17420/* end confdefs.h. */
17421$ac_includes_default
17422int
17423main ()
17424{
17425static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17426test_array [0] = 0
17427
17428 ;
17429 return 0;
17430}
17431_ACEOF
17432rm -f conftest.$ac_objext
17433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17434 (eval $ac_compile) 2>conftest.er1
a848cd7e 17435 ac_status=$?
ac1cb8d3
VS
17436 grep -v '^ *+' conftest.er1 >conftest.err
17437 rm -f conftest.er1
17438 cat conftest.err >&5
a848cd7e
SC
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
5294a27e 17441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_lo=0 ac_mid=0
17454 while :; do
17455 cat >conftest.$ac_ext <<_ACEOF
17456/* confdefs.h. */
17457_ACEOF
17458cat confdefs.h >>conftest.$ac_ext
17459cat >>conftest.$ac_ext <<_ACEOF
17460/* end confdefs.h. */
17461$ac_includes_default
17462int
17463main ()
17464{
17465static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17466test_array [0] = 0
17467
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext
17473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17474 (eval $ac_compile) 2>conftest.er1
a848cd7e 17475 ac_status=$?
ac1cb8d3
VS
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
a848cd7e
SC
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
5294a27e 17481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_hi=$ac_mid; break
17494else
17495 echo "$as_me: failed program was:" >&5
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
17498ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17499 if test $ac_lo -le $ac_mid; then
17500 ac_lo= ac_hi=
17501 break
17502 fi
17503 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17504fi
ac1cb8d3 17505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17506 done
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511cat >conftest.$ac_ext <<_ACEOF
17512/* confdefs.h. */
17513_ACEOF
17514cat confdefs.h >>conftest.$ac_ext
17515cat >>conftest.$ac_ext <<_ACEOF
17516/* end confdefs.h. */
17517$ac_includes_default
17518int
17519main ()
17520{
17521static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17522test_array [0] = 0
17523
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext
17529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17530 (eval $ac_compile) 2>conftest.er1
a848cd7e 17531 ac_status=$?
ac1cb8d3
VS
17532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
a848cd7e
SC
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } &&
5294a27e 17537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_hi=-1 ac_mid=-1
17550 while :; do
17551 cat >conftest.$ac_ext <<_ACEOF
17552/* confdefs.h. */
17553_ACEOF
17554cat confdefs.h >>conftest.$ac_ext
17555cat >>conftest.$ac_ext <<_ACEOF
17556/* end confdefs.h. */
17557$ac_includes_default
17558int
17559main ()
17560{
17561static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17562test_array [0] = 0
17563
17564 ;
17565 return 0;
17566}
17567_ACEOF
17568rm -f conftest.$ac_objext
17569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17570 (eval $ac_compile) 2>conftest.er1
a848cd7e 17571 ac_status=$?
ac1cb8d3
VS
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
a848cd7e
SC
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
5294a27e 17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 ac_lo=$ac_mid; break
17590else
17591 echo "$as_me: failed program was:" >&5
17592sed 's/^/| /' conftest.$ac_ext >&5
17593
17594ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17595 if test $ac_mid -le $ac_hi; then
17596 ac_lo= ac_hi=
17597 break
17598 fi
17599 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17600fi
ac1cb8d3 17601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17602 done
17603else
17604 echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607ac_lo= ac_hi=
17608fi
ac1cb8d3 17609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17610fi
ac1cb8d3 17611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17612# Binary search between lo and hi bounds.
17613while test "x$ac_lo" != "x$ac_hi"; do
17614 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17615 cat >conftest.$ac_ext <<_ACEOF
17616/* confdefs.h. */
17617_ACEOF
17618cat confdefs.h >>conftest.$ac_ext
17619cat >>conftest.$ac_ext <<_ACEOF
17620/* end confdefs.h. */
17621$ac_includes_default
17622int
17623main ()
17624{
17625static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17626test_array [0] = 0
17627
17628 ;
17629 return 0;
17630}
17631_ACEOF
17632rm -f conftest.$ac_objext
17633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17634 (eval $ac_compile) 2>conftest.er1
a848cd7e 17635 ac_status=$?
ac1cb8d3
VS
17636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
a848cd7e
SC
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } &&
5294a27e 17641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_hi=$ac_mid
17654else
17655 echo "$as_me: failed program was:" >&5
17656sed 's/^/| /' conftest.$ac_ext >&5
17657
17658ac_lo=`expr '(' $ac_mid ')' + 1`
17659fi
ac1cb8d3 17660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17661done
17662case $ac_lo in
17663?*) ac_cv_sizeof_long_long=$ac_lo;;
17664'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17665See \`config.log' for more details." >&5
17666echo "$as_me: error: cannot compute sizeof (long long), 77
17667See \`config.log' for more details." >&2;}
17668 { (exit 1); exit 1; }; } ;;
17669esac
17670else
17671 if test "$cross_compiling" = yes; then
5294a27e
VZ
17672 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17673echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17674 { (exit 1); exit 1; }; }
17675else
17676 cat >conftest.$ac_ext <<_ACEOF
17677/* confdefs.h. */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h. */
17682$ac_includes_default
17683long longval () { return (long) (sizeof (long long)); }
17684unsigned long ulongval () { return (long) (sizeof (long long)); }
17685#include <stdio.h>
17686#include <stdlib.h>
17687int
17688main ()
17689{
17690
17691 FILE *f = fopen ("conftest.val", "w");
17692 if (! f)
17693 exit (1);
17694 if (((long) (sizeof (long long))) < 0)
17695 {
17696 long i = longval ();
17697 if (i != ((long) (sizeof (long long))))
17698 exit (1);
17699 fprintf (f, "%ld\n", i);
17700 }
17701 else
17702 {
17703 unsigned long i = ulongval ();
17704 if (i != ((long) (sizeof (long long))))
17705 exit (1);
17706 fprintf (f, "%lu\n", i);
17707 }
17708 exit (ferror (f) || fclose (f) != 0);
17709
17710 ;
17711 return 0;
17712}
17713_ACEOF
17714rm -f conftest$ac_exeext
17715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_sizeof_long_long=`cat conftest.val`
17726else
17727 echo "$as_me: program exited with status $ac_status" >&5
17728echo "$as_me: failed program was:" >&5
17729sed 's/^/| /' conftest.$ac_ext >&5
17730
17731( exit $ac_status )
17732{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17733See \`config.log' for more details." >&5
17734echo "$as_me: error: cannot compute sizeof (long long), 77
17735See \`config.log' for more details." >&2;}
17736 { (exit 1); exit 1; }; }
17737fi
ac1cb8d3 17738rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17739fi
17740fi
17741rm -f conftest.val
17742else
17743 ac_cv_sizeof_long_long=0
17744fi
17745fi
17746echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17747echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17748cat >>confdefs.h <<_ACEOF
17749#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17750_ACEOF
17751
17752
17753 if test "$ac_cv_sizeof_long_long" != "0"; then
17754 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17755 fi
17756 ;;
17757 * )
17758 echo "$as_me:$LINENO: checking for long long" >&5
17759echo $ECHO_N "checking for long long... $ECHO_C" >&6
17760if test "${ac_cv_type_long_long+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17762else
17763 cat >conftest.$ac_ext <<_ACEOF
17764/* confdefs.h. */
17765_ACEOF
17766cat confdefs.h >>conftest.$ac_ext
17767cat >>conftest.$ac_ext <<_ACEOF
17768/* end confdefs.h. */
17769$ac_includes_default
17770int
17771main ()
17772{
17773if ((long long *) 0)
17774 return 0;
17775if (sizeof (long long))
17776 return 0;
17777 ;
17778 return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext
17782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17783 (eval $ac_compile) 2>conftest.er1
a848cd7e 17784 ac_status=$?
ac1cb8d3
VS
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
a848cd7e
SC
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
5294a27e 17790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_type_long_long=yes
17803else
17804 echo "$as_me: failed program was:" >&5
17805sed 's/^/| /' conftest.$ac_ext >&5
17806
17807ac_cv_type_long_long=no
17808fi
ac1cb8d3 17809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17810fi
17811echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17812echo "${ECHO_T}$ac_cv_type_long_long" >&6
17813
17814echo "$as_me:$LINENO: checking size of long long" >&5
17815echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17816if test "${ac_cv_sizeof_long_long+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818else
17819 if test "$ac_cv_type_long_long" = yes; then
17820 # The cast to unsigned long works around a bug in the HP C Compiler
17821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17823 # This bug is HP SR number 8606223364.
17824 if test "$cross_compiling" = yes; then
17825 # Depending upon the size, compute the lo and hi bounds.
17826cat >conftest.$ac_ext <<_ACEOF
17827/* confdefs.h. */
17828_ACEOF
17829cat confdefs.h >>conftest.$ac_ext
17830cat >>conftest.$ac_ext <<_ACEOF
17831/* end confdefs.h. */
17832$ac_includes_default
17833int
17834main ()
17835{
17836static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17837test_array [0] = 0
17838
17839 ;
17840 return 0;
17841}
17842_ACEOF
17843rm -f conftest.$ac_objext
17844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17845 (eval $ac_compile) 2>conftest.er1
a848cd7e 17846 ac_status=$?
ac1cb8d3
VS
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
a848cd7e
SC
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
5294a27e 17852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_lo=0 ac_mid=0
17865 while :; do
17866 cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872$ac_includes_default
17873int
17874main ()
17875{
17876static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17877test_array [0] = 0
17878
17879 ;
17880 return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext
17884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17885 (eval $ac_compile) 2>conftest.er1
a848cd7e 17886 ac_status=$?
ac1cb8d3
VS
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
a848cd7e
SC
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
5294a27e 17892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 ac_hi=$ac_mid; break
17905else
17906 echo "$as_me: failed program was:" >&5
17907sed 's/^/| /' conftest.$ac_ext >&5
17908
17909ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17910 if test $ac_lo -le $ac_mid; then
17911 ac_lo= ac_hi=
17912 break
17913 fi
17914 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17915fi
ac1cb8d3 17916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17917 done
17918else
17919 echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921
17922cat >conftest.$ac_ext <<_ACEOF
17923/* confdefs.h. */
17924_ACEOF
17925cat confdefs.h >>conftest.$ac_ext
17926cat >>conftest.$ac_ext <<_ACEOF
17927/* end confdefs.h. */
17928$ac_includes_default
17929int
17930main ()
17931{
17932static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17933test_array [0] = 0
17934
17935 ;
17936 return 0;
17937}
17938_ACEOF
17939rm -f conftest.$ac_objext
17940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17941 (eval $ac_compile) 2>conftest.er1
a848cd7e 17942 ac_status=$?
ac1cb8d3
VS
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
a848cd7e
SC
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
5294a27e 17948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_hi=-1 ac_mid=-1
17961 while :; do
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
17969int
17970main ()
17971{
17972static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17973test_array [0] = 0
17974
17975 ;
17976 return 0;
17977}
17978_ACEOF
17979rm -f conftest.$ac_objext
17980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17981 (eval $ac_compile) 2>conftest.er1
a848cd7e 17982 ac_status=$?
ac1cb8d3
VS
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
a848cd7e
SC
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
5294a27e 17988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_lo=$ac_mid; break
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18006 if test $ac_mid -le $ac_hi; then
18007 ac_lo= ac_hi=
18008 break
18009 fi
18010 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18011fi
ac1cb8d3 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18013 done
18014else
18015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018ac_lo= ac_hi=
18019fi
ac1cb8d3 18020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18021fi
ac1cb8d3 18022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18023# Binary search between lo and hi bounds.
18024while test "x$ac_lo" != "x$ac_hi"; do
18025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18026 cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h. */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h. */
18032$ac_includes_default
18033int
18034main ()
18035{
18036static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18037test_array [0] = 0
18038
18039 ;
18040 return 0;
18041}
18042_ACEOF
18043rm -f conftest.$ac_objext
18044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18045 (eval $ac_compile) 2>conftest.er1
a848cd7e 18046 ac_status=$?
ac1cb8d3
VS
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
a848cd7e
SC
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
5294a27e 18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_hi=$ac_mid
18065else
18066 echo "$as_me: failed program was:" >&5
18067sed 's/^/| /' conftest.$ac_ext >&5
18068
18069ac_lo=`expr '(' $ac_mid ')' + 1`
18070fi
ac1cb8d3 18071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18072done
18073case $ac_lo in
18074?*) ac_cv_sizeof_long_long=$ac_lo;;
18075'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18076See \`config.log' for more details." >&5
18077echo "$as_me: error: cannot compute sizeof (long long), 77
18078See \`config.log' for more details." >&2;}
18079 { (exit 1); exit 1; }; } ;;
18080esac
18081else
18082 if test "$cross_compiling" = yes; then
5294a27e
VZ
18083 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18084echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18085 { (exit 1); exit 1; }; }
18086else
18087 cat >conftest.$ac_ext <<_ACEOF
18088/* confdefs.h. */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h. */
18093$ac_includes_default
18094long longval () { return (long) (sizeof (long long)); }
18095unsigned long ulongval () { return (long) (sizeof (long long)); }
18096#include <stdio.h>
18097#include <stdlib.h>
18098int
18099main ()
18100{
18101
18102 FILE *f = fopen ("conftest.val", "w");
18103 if (! f)
18104 exit (1);
18105 if (((long) (sizeof (long long))) < 0)
18106 {
18107 long i = longval ();
18108 if (i != ((long) (sizeof (long long))))
18109 exit (1);
18110 fprintf (f, "%ld\n", i);
18111 }
18112 else
18113 {
18114 unsigned long i = ulongval ();
18115 if (i != ((long) (sizeof (long long))))
18116 exit (1);
18117 fprintf (f, "%lu\n", i);
18118 }
18119 exit (ferror (f) || fclose (f) != 0);
18120
18121 ;
18122 return 0;
18123}
18124_ACEOF
18125rm -f conftest$ac_exeext
18126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18127 (eval $ac_link) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_sizeof_long_long=`cat conftest.val`
18137else
18138 echo "$as_me: program exited with status $ac_status" >&5
18139echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142( exit $ac_status )
18143{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18144See \`config.log' for more details." >&5
18145echo "$as_me: error: cannot compute sizeof (long long), 77
18146See \`config.log' for more details." >&2;}
18147 { (exit 1); exit 1; }; }
18148fi
ac1cb8d3 18149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18150fi
18151fi
18152rm -f conftest.val
18153else
18154 ac_cv_sizeof_long_long=0
18155fi
18156fi
18157echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18158echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18159cat >>confdefs.h <<_ACEOF
18160#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18161_ACEOF
18162
18163
18164esac
18165
18166echo "$as_me:$LINENO: checking size of wchar_t" >&5
18167echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18168if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18170else
18171
18172 if test "$cross_compiling" = yes; then
18173
18174 case "${host}" in
18175 *-pc-msdosdjgpp )
18176 wx_cv_sizeof_wchar_t=0
18177 ;;
18178 * )
18179 wx_cv_sizeof_wchar_t=4
18180 ;;
18181 esac
18182
18183
18184else
18185 cat >conftest.$ac_ext <<_ACEOF
18186/* confdefs.h. */
18187_ACEOF
18188cat confdefs.h >>conftest.$ac_ext
18189cat >>conftest.$ac_ext <<_ACEOF
18190/* end confdefs.h. */
18191
18192 /* DJGPP only has fake wchar_t: */
18193 #ifdef __DJGPP__
18194 # error "fake wchar_t"
18195 #endif
18196 #ifdef HAVE_WCHAR_H
18197 # ifdef __CYGWIN__
18198 # include <stddef.h>
18199 # endif
18200 # include <wchar.h>
18201 #endif
18202 #ifdef HAVE_STDLIB_H
18203 # include <stdlib.h>
18204 #endif
18205 #include <stdio.h>
18206 int main()
18207 {
18208 FILE *f=fopen("conftestval", "w");
18209 if (!f) exit(1);
18210 fprintf(f, "%i", sizeof(wchar_t));
18211 exit(0);
18212 }
18213
18214_ACEOF
18215rm -f conftest$ac_exeext
18216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217 (eval $ac_link) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; }; then
18226 wx_cv_sizeof_wchar_t=`cat conftestval`
18227else
18228 echo "$as_me: program exited with status $ac_status" >&5
18229echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232( exit $ac_status )
18233wx_cv_sizeof_wchar_t=0
18234fi
ac1cb8d3 18235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18236fi
18237
18238fi
18239echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18240echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18241
18242cat >>confdefs.h <<_ACEOF
18243#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18244_ACEOF
18245
18246
ba3d13e1
VZ
18247echo "$as_me:$LINENO: checking for va_copy" >&5
18248echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18249if test "${wx_cv_func_va_copy+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251else
18252
18253 cat >conftest.$ac_ext <<_ACEOF
18254
18255 #include <stdarg.h>
18256 void foo(char *f, ...)
18257 {
18258 va_list ap1, ap2;
18259 va_start(ap1, f);
18260 va_copy(ap2, ap1);
18261 va_end(ap2);
18262 va_end(ap1);
18263 }
5886b072
VZ
18264 int main()
18265 {
18266 return foo("hi", 17);
18267 }
ba3d13e1
VZ
18268_ACEOF
18269rm -f conftest.$ac_objext conftest$ac_exeext
18270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18271 (eval $ac_link) 2>conftest.er1
18272 ac_status=$?
18273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
5294a27e 18278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 wx_cv_func_va_copy=yes
18291else
18292 echo "$as_me: failed program was:" >&5
18293sed 's/^/| /' conftest.$ac_ext >&5
18294
18295wx_cv_func_va_copy=no
18296
18297fi
18298rm -f conftest.err conftest.$ac_objext \
18299 conftest$ac_exeext conftest.$ac_ext
18300
18301
18302fi
18303echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18304echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18305
18306if test $wx_cv_func_va_copy = "yes"; then
18307 cat >>confdefs.h <<\_ACEOF
18308#define HAVE_VA_COPY 1
18309_ACEOF
18310
18311else
18312 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18313echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18314if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316else
18317
18318 if test "$cross_compiling" = yes; then
18319 wx_cv_type_va_list_lvalue=yes
18320
18321else
18322 cat >conftest.$ac_ext <<_ACEOF
18323
18324 #include <stdarg.h>
18325 int foo(char *f, ...)
18326 {
18327 va_list ap1, ap2;
18328 va_start(ap1, f);
18329 ap2 = ap1;
18330 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18331 return 1;
18332 va_end(ap2);
18333 va_end(ap1);
18334 return 0;
18335 }
18336 int main()
18337 {
18338 return foo("hi", 17);
18339 }
18340_ACEOF
18341rm -f conftest$ac_exeext
18342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18343 (eval $ac_link) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 wx_cv_type_va_list_lvalue=yes
18353else
18354 echo "$as_me: program exited with status $ac_status" >&5
18355echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358( exit $ac_status )
18359wx_cv_type_va_list_lvalue=no
18360fi
18361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18362fi
18363
18364
18365fi
18366echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18367echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18368
18369 if test $wx_cv_type_va_list_lvalue != "yes"; then
18370 cat >>confdefs.h <<\_ACEOF
18371#define VA_LIST_IS_ARRAY 1
18372_ACEOF
18373
18374 fi
18375fi
18376
a848cd7e
SC
18377# Check whether --enable-largefile or --disable-largefile was given.
18378if test "${enable_largefile+set}" = set; then
18379 enableval="$enable_largefile"
18380
18381fi;
18382if test "$enable_largefile" != no; then
18383 wx_largefile=no
18384
18385 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18386echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18387if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389else
18390
18391 cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397#define _FILE_OFFSET_BITS 64
18398 #include <sys/types.h>
18399int
18400main ()
18401{
18402typedef struct {
18403 unsigned int field: sizeof(off_t) == 8;
18404} wxlf;
18405
18406 ;
18407 return 0;
18408}
18409_ACEOF
18410rm -f conftest.$ac_objext
18411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18412 (eval $ac_compile) 2>conftest.er1
a848cd7e 18413 ac_status=$?
ac1cb8d3
VS
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
a848cd7e
SC
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
5294a27e 18419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_sys_file_offset_bits=64
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
18436ac_cv_sys_file_offset_bits=no
18437fi
ac1cb8d3 18438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18439
18440
18441fi
18442echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18443echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18444
18445 if test "$ac_cv_sys_file_offset_bits" != no; then
18446 wx_largefile=yes
18447 cat >>confdefs.h <<_ACEOF
18448#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18449_ACEOF
18450
18451 fi
18452
18453 if test "x$wx_largefile" != "xyes"; then
18454
18455 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18456echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18457if test "${ac_cv_sys_large_files+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18459else
18460
18461 cat >conftest.$ac_ext <<_ACEOF
18462/* confdefs.h. */
18463_ACEOF
18464cat confdefs.h >>conftest.$ac_ext
18465cat >>conftest.$ac_ext <<_ACEOF
18466/* end confdefs.h. */
18467#define _LARGE_FILES 1
18468 #include <sys/types.h>
18469int
18470main ()
18471{
18472typedef struct {
18473 unsigned int field: sizeof(off_t) == 8;
18474} wxlf;
18475
18476 ;
18477 return 0;
18478}
18479_ACEOF
18480rm -f conftest.$ac_objext
18481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18482 (eval $ac_compile) 2>conftest.er1
a848cd7e 18483 ac_status=$?
ac1cb8d3
VS
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
a848cd7e
SC
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
5294a27e 18489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_sys_large_files=1
18502else
18503 echo "$as_me: failed program was:" >&5
18504sed 's/^/| /' conftest.$ac_ext >&5
18505
18506ac_cv_sys_large_files=no
18507fi
ac1cb8d3 18508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18509
18510
18511fi
18512echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18513echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18514
18515 if test "$ac_cv_sys_large_files" != no; then
18516 wx_largefile=yes
18517 cat >>confdefs.h <<_ACEOF
18518#define _LARGE_FILES $ac_cv_sys_large_files
18519_ACEOF
18520
18521 fi
18522
18523 fi
18524
18525 echo "$as_me:$LINENO: checking if large file support is available" >&5
18526echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18527 if test "x$wx_largefile" = "xyes"; then
18528 cat >>confdefs.h <<\_ACEOF
18529#define HAVE_LARGEFILE_SUPPORT 1
18530_ACEOF
18531
18532 fi
18533 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18534echo "${ECHO_T}$wx_largefile" >&6
18535fi
18536
5294a27e
VZ
18537echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18538echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18539if test "${ac_cv_sys_largefile_source+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18541else
18542 while :; do
18543 ac_cv_sys_largefile_source=no
18544 cat >conftest.$ac_ext <<_ACEOF
18545/* confdefs.h. */
18546_ACEOF
18547cat confdefs.h >>conftest.$ac_ext
18548cat >>conftest.$ac_ext <<_ACEOF
18549/* end confdefs.h. */
18550#include <stdio.h>
18551int
18552main ()
18553{
18554return !fseeko;
18555 ;
18556 return 0;
18557}
18558_ACEOF
18559rm -f conftest.$ac_objext
18560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18561 (eval $ac_compile) 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; } &&
18574 { ac_try='test -s conftest.$ac_objext'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 break
18581else
18582 echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585fi
18586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18587 cat >conftest.$ac_ext <<_ACEOF
18588/* confdefs.h. */
18589_ACEOF
18590cat confdefs.h >>conftest.$ac_ext
18591cat >>conftest.$ac_ext <<_ACEOF
18592/* end confdefs.h. */
18593#define _LARGEFILE_SOURCE 1
18594#include <stdio.h>
18595int
18596main ()
18597{
18598return !fseeko;
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext
18604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18605 (eval $ac_compile) 2>conftest.er1
18606 ac_status=$?
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_sys_largefile_source=1; break
18625else
18626 echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629fi
18630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18631 break
18632done
18633fi
18634echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18635echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18636if test "$ac_cv_sys_largefile_source" != no; then
18637
18638cat >>confdefs.h <<_ACEOF
18639#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18640_ACEOF
18641
18642fi
18643rm -f conftest*
18644
18645# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18646# in glibc 2.1.3, but that breaks too many other things.
18647# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18648echo "$as_me:$LINENO: checking for fseeko" >&5
18649echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18650if test "${ac_cv_func_fseeko+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18652else
18653 cat >conftest.$ac_ext <<_ACEOF
18654/* confdefs.h. */
18655_ACEOF
18656cat confdefs.h >>conftest.$ac_ext
18657cat >>conftest.$ac_ext <<_ACEOF
18658/* end confdefs.h. */
18659#include <stdio.h>
18660int
18661main ()
18662{
18663return fseeko && fseeko (stdin, 0, 0);
18664 ;
18665 return 0;
18666}
18667_ACEOF
18668rm -f conftest.$ac_objext conftest$ac_exeext
18669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18670 (eval $ac_link) 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest$ac_exeext'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 ac_cv_func_fseeko=yes
18690else
18691 echo "$as_me: failed program was:" >&5
18692sed 's/^/| /' conftest.$ac_ext >&5
18693
18694ac_cv_func_fseeko=no
18695fi
18696rm -f conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18698fi
18699echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18700echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18701if test $ac_cv_func_fseeko = yes; then
18702
18703cat >>confdefs.h <<\_ACEOF
18704#define HAVE_FSEEKO 1
18705_ACEOF
18706
18707fi
18708
a848cd7e
SC
18709
18710if test "x$wx_largefile" = "xyes"; then
18711 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18712 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18713 else
18714 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18715 fi
18716 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18717fi
18718
18719echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18720echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18721if test "${ac_cv_c_bigendian+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18723else
18724 ac_cv_c_bigendian=unknown
18725# See if sys/param.h defines the BYTE_ORDER macro.
18726cat >conftest.$ac_ext <<_ACEOF
18727/* confdefs.h. */
18728_ACEOF
18729cat confdefs.h >>conftest.$ac_ext
18730cat >>conftest.$ac_ext <<_ACEOF
18731/* end confdefs.h. */
18732#include <sys/types.h>
18733#include <sys/param.h>
18734int
18735main ()
18736{
18737
18738#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18739 bogus endian macros
18740#endif
18741 ;
18742 return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext
18746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18747 (eval $ac_compile) 2>conftest.er1
a848cd7e 18748 ac_status=$?
ac1cb8d3
VS
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
a848cd7e
SC
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
5294a27e 18754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 # It does; now see whether it defined to BIG_ENDIAN or not.
18767cat >conftest.$ac_ext <<_ACEOF
18768/* confdefs.h. */
18769_ACEOF
18770cat confdefs.h >>conftest.$ac_ext
18771cat >>conftest.$ac_ext <<_ACEOF
18772/* end confdefs.h. */
18773#include <sys/types.h>
18774#include <sys/param.h>
18775int
18776main ()
18777{
18778
18779#if BYTE_ORDER != BIG_ENDIAN
18780 not big endian
18781#endif
18782 ;
18783 return 0;
18784}
18785_ACEOF
18786rm -f conftest.$ac_objext
18787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18788 (eval $ac_compile) 2>conftest.er1
a848cd7e 18789 ac_status=$?
ac1cb8d3
VS
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
a848cd7e
SC
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
5294a27e 18795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; } &&
18801 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; }; then
18807 ac_cv_c_bigendian=yes
18808else
18809 echo "$as_me: failed program was:" >&5
18810sed 's/^/| /' conftest.$ac_ext >&5
18811
18812ac_cv_c_bigendian=no
18813fi
ac1cb8d3 18814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18815else
18816 echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
18819fi
ac1cb8d3 18820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18821if test $ac_cv_c_bigendian = unknown; then
18822if test "$cross_compiling" = yes; then
18823 ac_cv_c_bigendian=unknown
18824else
18825 cat >conftest.$ac_ext <<_ACEOF
18826/* confdefs.h. */
18827_ACEOF
18828cat confdefs.h >>conftest.$ac_ext
18829cat >>conftest.$ac_ext <<_ACEOF
18830/* end confdefs.h. */
18831main () {
18832 /* Are we little or big endian? From Harbison&Steele. */
18833 union
18834 {
18835 long l;
18836 char c[sizeof (long)];
18837 } u;
18838 u.l = 1;
18839 exit (u.c[sizeof (long) - 1] == 1);
18840}
18841_ACEOF
18842rm -f conftest$ac_exeext
18843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844 (eval $ac_link) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_cv_c_bigendian=no
18854else
18855 echo "$as_me: program exited with status $ac_status" >&5
18856echo "$as_me: failed program was:" >&5
18857sed 's/^/| /' conftest.$ac_ext >&5
18858
18859( exit $ac_status )
18860ac_cv_c_bigendian=yes
18861fi
ac1cb8d3 18862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18863fi
18864fi
18865fi
18866echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18867echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18868if test $ac_cv_c_bigendian = unknown; then
18869 { 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
18870echo "$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;}
18871fi
18872if test $ac_cv_c_bigendian = yes; then
18873 cat >>confdefs.h <<\_ACEOF
18874#define WORDS_BIGENDIAN 1
18875_ACEOF
18876
18877fi
18878
18879
18880ac_ext=cc
18881ac_cpp='$CXXCPP $CPPFLAGS'
18882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18885echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18886echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18887if test -z "$CXXCPP"; then
18888 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890else
18891 # Double quotes because CXXCPP needs to be expanded
18892 for CXXCPP in "$CXX -E" "/lib/cpp"
18893 do
18894 ac_preproc_ok=false
18895for ac_cxx_preproc_warn_flag in '' yes
18896do
18897 # Use a header file that comes with gcc, so configuring glibc
18898 # with a fresh cross-compiler works.
18899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18900 # <limits.h> exists even on freestanding compilers.
18901 # On the NeXT, cc -E runs the code through the compiler's parser,
18902 # not just through cpp. "Syntax error" is here to catch this case.
18903 cat >conftest.$ac_ext <<_ACEOF
18904/* confdefs.h. */
18905_ACEOF
18906cat confdefs.h >>conftest.$ac_ext
18907cat >>conftest.$ac_ext <<_ACEOF
18908/* end confdefs.h. */
18909#ifdef __STDC__
18910# include <limits.h>
18911#else
18912# include <assert.h>
18913#endif
ac1cb8d3 18914 Syntax error
a848cd7e
SC
18915_ACEOF
18916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18918 ac_status=$?
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } >/dev/null; then
18924 if test -s conftest.err; then
18925 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18927 else
18928 ac_cpp_err=
18929 fi
18930else
18931 ac_cpp_err=yes
18932fi
18933if test -z "$ac_cpp_err"; then
18934 :
18935else
18936 echo "$as_me: failed program was:" >&5
18937sed 's/^/| /' conftest.$ac_ext >&5
18938
18939 # Broken: fails on valid input.
18940continue
18941fi
18942rm -f conftest.err conftest.$ac_ext
18943
18944 # OK, works on sane cases. Now check whether non-existent headers
18945 # can be detected and how.
18946 cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952#include <ac_nonexistent.h>
18953_ACEOF
18954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18956 ac_status=$?
18957 grep -v '^ *+' conftest.er1 >conftest.err
18958 rm -f conftest.er1
18959 cat conftest.err >&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } >/dev/null; then
18962 if test -s conftest.err; then
18963 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18964 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18965 else
18966 ac_cpp_err=
18967 fi
18968else
18969 ac_cpp_err=yes
18970fi
18971if test -z "$ac_cpp_err"; then
18972 # Broken: success on invalid input.
18973continue
18974else
18975 echo "$as_me: failed program was:" >&5
18976sed 's/^/| /' conftest.$ac_ext >&5
18977
18978 # Passes both tests.
18979ac_preproc_ok=:
18980break
18981fi
18982rm -f conftest.err conftest.$ac_ext
18983
18984done
18985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18986rm -f conftest.err conftest.$ac_ext
18987if $ac_preproc_ok; then
18988 break
18989fi
18990
18991 done
18992 ac_cv_prog_CXXCPP=$CXXCPP
18993
18994fi
18995 CXXCPP=$ac_cv_prog_CXXCPP
18996else
18997 ac_cv_prog_CXXCPP=$CXXCPP
18998fi
18999echo "$as_me:$LINENO: result: $CXXCPP" >&5
19000echo "${ECHO_T}$CXXCPP" >&6
19001ac_preproc_ok=false
19002for ac_cxx_preproc_warn_flag in '' yes
19003do
19004 # Use a header file that comes with gcc, so configuring glibc
19005 # with a fresh cross-compiler works.
19006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19007 # <limits.h> exists even on freestanding compilers.
19008 # On the NeXT, cc -E runs the code through the compiler's parser,
19009 # not just through cpp. "Syntax error" is here to catch this case.
19010 cat >conftest.$ac_ext <<_ACEOF
19011/* confdefs.h. */
19012_ACEOF
19013cat confdefs.h >>conftest.$ac_ext
19014cat >>conftest.$ac_ext <<_ACEOF
19015/* end confdefs.h. */
19016#ifdef __STDC__
19017# include <limits.h>
19018#else
19019# include <assert.h>
19020#endif
ac1cb8d3 19021 Syntax error
a848cd7e
SC
19022_ACEOF
19023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19025 ac_status=$?
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } >/dev/null; then
19031 if test -s conftest.err; then
19032 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19033 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19034 else
19035 ac_cpp_err=
19036 fi
19037else
19038 ac_cpp_err=yes
19039fi
19040if test -z "$ac_cpp_err"; then
19041 :
19042else
19043 echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 # Broken: fails on valid input.
19047continue
19048fi
19049rm -f conftest.err conftest.$ac_ext
19050
19051 # OK, works on sane cases. Now check whether non-existent headers
19052 # can be detected and how.
19053 cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
19059#include <ac_nonexistent.h>
19060_ACEOF
19061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } >/dev/null; then
19069 if test -s conftest.err; then
19070 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19072 else
19073 ac_cpp_err=
19074 fi
19075else
19076 ac_cpp_err=yes
19077fi
19078if test -z "$ac_cpp_err"; then
19079 # Broken: success on invalid input.
19080continue
19081else
19082 echo "$as_me: failed program was:" >&5
19083sed 's/^/| /' conftest.$ac_ext >&5
19084
19085 # Passes both tests.
19086ac_preproc_ok=:
19087break
19088fi
19089rm -f conftest.err conftest.$ac_ext
19090
19091done
19092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19093rm -f conftest.err conftest.$ac_ext
19094if $ac_preproc_ok; then
19095 :
19096else
19097 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19098See \`config.log' for more details." >&5
19099echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19100See \`config.log' for more details." >&2;}
19101 { (exit 1); exit 1; }; }
19102fi
19103
19104ac_ext=cc
19105ac_cpp='$CXXCPP $CPPFLAGS'
19106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19109
19110
19111
19112
19113
19114 ac_ext=cc
19115ac_cpp='$CXXCPP $CPPFLAGS'
19116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19119
19120
19121
19122for ac_header in iostream
19123do
19124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19125if eval "test \"\${$as_ac_Header+set}\" = set"; then
19126 echo "$as_me:$LINENO: checking for $ac_header" >&5
19127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19128if eval "test \"\${$as_ac_Header+set}\" = set"; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19130fi
19131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19133else
19134 # Is the header compilable?
19135echo "$as_me:$LINENO: checking $ac_header usability" >&5
19136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19137cat >conftest.$ac_ext <<_ACEOF
19138/* confdefs.h. */
19139_ACEOF
19140cat confdefs.h >>conftest.$ac_ext
19141cat >>conftest.$ac_ext <<_ACEOF
19142/* end confdefs.h. */
19143$ac_includes_default
19144#include <$ac_header>
19145_ACEOF
19146rm -f conftest.$ac_objext
19147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19148 (eval $ac_compile) 2>conftest.er1
a848cd7e 19149 ac_status=$?
ac1cb8d3
VS
19150 grep -v '^ *+' conftest.er1 >conftest.err
19151 rm -f conftest.er1
19152 cat conftest.err >&5
a848cd7e
SC
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } &&
5294a27e 19155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_header_compiler=yes
19168else
19169 echo "$as_me: failed program was:" >&5
19170sed 's/^/| /' conftest.$ac_ext >&5
19171
19172ac_header_compiler=no
19173fi
ac1cb8d3 19174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19176echo "${ECHO_T}$ac_header_compiler" >&6
19177
19178# Is the header present?
19179echo "$as_me:$LINENO: checking $ac_header presence" >&5
19180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19181cat >conftest.$ac_ext <<_ACEOF
19182/* confdefs.h. */
19183_ACEOF
19184cat confdefs.h >>conftest.$ac_ext
19185cat >>conftest.$ac_ext <<_ACEOF
19186/* end confdefs.h. */
19187#include <$ac_header>
19188_ACEOF
19189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19191 ac_status=$?
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } >/dev/null; then
19197 if test -s conftest.err; then
19198 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19199 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19200 else
19201 ac_cpp_err=
19202 fi
19203else
19204 ac_cpp_err=yes
19205fi
19206if test -z "$ac_cpp_err"; then
19207 ac_header_preproc=yes
19208else
19209 echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212 ac_header_preproc=no
19213fi
19214rm -f conftest.err conftest.$ac_ext
19215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19216echo "${ECHO_T}$ac_header_preproc" >&6
19217
19218# So? What about this header?
ac1cb8d3
VS
19219case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19220 yes:no: )
a848cd7e
SC
19221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19225 ac_header_preproc=yes
a848cd7e 19226 ;;
ac1cb8d3 19227 no:yes:* )
a848cd7e
SC
19228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19240 (
19241 cat <<\_ASBOX
ac1cb8d3
VS
19242## ----------------------------------------- ##
19243## Report this to wx-dev@lists.wxwidgets.org ##
19244## ----------------------------------------- ##
a848cd7e
SC
19245_ASBOX
19246 ) |
19247 sed "s/^/$as_me: WARNING: /" >&2
19248 ;;
19249esac
19250echo "$as_me:$LINENO: checking for $ac_header" >&5
19251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19252if eval "test \"\${$as_ac_Header+set}\" = set"; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19254else
ac1cb8d3 19255 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19256fi
19257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19259
19260fi
19261if test `eval echo '${'$as_ac_Header'}'` = yes; then
19262 cat >>confdefs.h <<_ACEOF
19263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19264_ACEOF
19265
19266fi
19267
19268done
19269
19270
19271 if test "$ac_cv_header_iostream" = "yes" ; then
19272 :
19273 else
19274 cat >>confdefs.h <<\_ACEOF
19275#define wxUSE_IOSTREAMH 1
19276_ACEOF
19277
19278 fi
19279
19280 ac_ext=c
19281ac_cpp='$CPP $CPPFLAGS'
19282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284ac_compiler_gnu=$ac_cv_c_compiler_gnu
19285
19286
19287
19288
19289 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19290echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19291if test "${wx_cv_cpp_bool+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19293else
19294
19295
19296
19297 ac_ext=cc
19298ac_cpp='$CXXCPP $CPPFLAGS'
19299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19302
19303
19304 cat >conftest.$ac_ext <<_ACEOF
19305/* confdefs.h. */
19306_ACEOF
19307cat confdefs.h >>conftest.$ac_ext
19308cat >>conftest.$ac_ext <<_ACEOF
19309/* end confdefs.h. */
19310
19311
19312int
19313main ()
19314{
19315
19316 bool b = true;
19317
19318 return 0;
19319
19320 ;
19321 return 0;
19322}
19323_ACEOF
19324rm -f conftest.$ac_objext
19325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19326 (eval $ac_compile) 2>conftest.er1
a848cd7e 19327 ac_status=$?
ac1cb8d3
VS
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
a848cd7e
SC
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
5294a27e 19333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345
19346 wx_cv_cpp_bool=yes
19347
19348else
19349 echo "$as_me: failed program was:" >&5
19350sed 's/^/| /' conftest.$ac_ext >&5
19351
19352
19353 wx_cv_cpp_bool=no
19354
19355
19356fi
ac1cb8d3 19357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19358
19359 ac_ext=c
19360ac_cpp='$CPP $CPPFLAGS'
19361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363ac_compiler_gnu=$ac_cv_c_compiler_gnu
19364
19365
19366fi
19367echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19368echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19369
19370 if test "$wx_cv_cpp_bool" = "yes"; then
19371 cat >>confdefs.h <<\_ACEOF
19372#define HAVE_BOOL 1
19373_ACEOF
19374
19375 fi
19376
19377
19378
19379 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19380echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19381if test "${wx_cv_explicit+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383else
19384
19385
19386
19387 ac_ext=cc
19388ac_cpp='$CXXCPP $CPPFLAGS'
19389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19392
19393
19394 cat >conftest.$ac_ext <<_ACEOF
19395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h. */
19400
19401 class Foo { public: explicit Foo(int) {} };
19402
19403int
19404main ()
19405{
19406
19407 return 0;
19408
19409 ;
19410 return 0;
19411}
19412_ACEOF
19413rm -f conftest.$ac_objext
19414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19415 (eval $ac_compile) 2>conftest.er1
a848cd7e 19416 ac_status=$?
ac1cb8d3
VS
19417 grep -v '^ *+' conftest.er1 >conftest.err
19418 rm -f conftest.er1
19419 cat conftest.err >&5
a848cd7e
SC
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
5294a27e 19422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434
19435 cat >conftest.$ac_ext <<_ACEOF
19436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
19441
19442 class Foo { public: explicit Foo(int) {} };
19443 static void TakeFoo(const Foo& foo) { }
19444
19445int
19446main ()
19447{
19448
19449 TakeFoo(17);
19450 return 0;
19451
19452 ;
19453 return 0;
19454}
19455_ACEOF
19456rm -f conftest.$ac_objext
19457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19458 (eval $ac_compile) 2>conftest.er1
a848cd7e 19459 ac_status=$?
ac1cb8d3
VS
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
a848cd7e
SC
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
5294a27e 19465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477 wx_cv_explicit=no
19478else
19479 echo "$as_me: failed program was:" >&5
19480sed 's/^/| /' conftest.$ac_ext >&5
19481
19482wx_cv_explicit=yes
19483
19484fi
ac1cb8d3 19485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19486
19487else
19488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491wx_cv_explicit=no
19492
19493fi
ac1cb8d3 19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19495
19496 ac_ext=c
19497ac_cpp='$CPP $CPPFLAGS'
19498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500ac_compiler_gnu=$ac_cv_c_compiler_gnu
19501
19502
19503fi
19504echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19505echo "${ECHO_T}$wx_cv_explicit" >&6
19506
19507 if test "$wx_cv_explicit" = "yes"; then
19508 cat >>confdefs.h <<\_ACEOF
19509#define HAVE_EXPLICIT 1
19510_ACEOF
19511
19512 fi
19513
19514
19515echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19516echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19517if test "${ac_cv_cxx_const_cast+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19519else
19520
19521
19522 ac_ext=cc
19523ac_cpp='$CXXCPP $CPPFLAGS'
19524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19527
19528 cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
19534
19535int
19536main ()
19537{
19538int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19539 ;
19540 return 0;
19541}
19542_ACEOF
19543rm -f conftest.$ac_objext
19544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19545 (eval $ac_compile) 2>conftest.er1
a848cd7e 19546 ac_status=$?
ac1cb8d3
VS
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
a848cd7e
SC
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
5294a27e 19552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_cv_cxx_const_cast=yes
19565else
19566 echo "$as_me: failed program was:" >&5
19567sed 's/^/| /' conftest.$ac_ext >&5
19568
19569ac_cv_cxx_const_cast=no
19570fi
ac1cb8d3 19571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19572 ac_ext=c
19573ac_cpp='$CPP $CPPFLAGS'
19574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19576ac_compiler_gnu=$ac_cv_c_compiler_gnu
19577
19578
19579fi
19580echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19581echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19582if test "$ac_cv_cxx_const_cast" = yes; then
19583
19584cat >>confdefs.h <<\_ACEOF
19585#define HAVE_CONST_CAST
19586_ACEOF
19587
19588fi
19589
7714864e
RL
19590echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19591echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19592if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19594else
19595
19596
19597 ac_ext=cc
19598ac_cpp='$CXXCPP $CPPFLAGS'
19599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19602
19603 cat >conftest.$ac_ext <<_ACEOF
19604/* confdefs.h. */
19605_ACEOF
19606cat confdefs.h >>conftest.$ac_ext
19607cat >>conftest.$ac_ext <<_ACEOF
19608/* end confdefs.h. */
19609#include <typeinfo>
19610class Base { public : Base () {} virtual void f () = 0;};
19611class Derived : public Base { public : Derived () {} virtual void f () {} };
19612class Unrelated { public : Unrelated () {} };
19613int g (Unrelated&) { return 0; }
19614int
19615main ()
19616{
19617
19618Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19619 ;
19620 return 0;
19621}
19622_ACEOF
19623rm -f conftest.$ac_objext
19624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19625 (eval $ac_compile) 2>conftest.er1
19626 ac_status=$?
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
5294a27e 19632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_cxx_reinterpret_cast=yes
19645else
19646 echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649ac_cv_cxx_reinterpret_cast=no
19650fi
19651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19652 ac_ext=c
19653ac_cpp='$CPP $CPPFLAGS'
19654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656ac_compiler_gnu=$ac_cv_c_compiler_gnu
19657
19658
19659fi
19660echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19661echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19662if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19663
19664cat >>confdefs.h <<\_ACEOF
19665#define HAVE_REINTERPRET_CAST
19666_ACEOF
19667
19668fi
19669
a848cd7e
SC
19670echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19671echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19672if test "${ac_cv_cxx_static_cast+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674else
19675
19676
19677 ac_ext=cc
19678ac_cpp='$CXXCPP $CPPFLAGS'
19679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19682
19683 cat >conftest.$ac_ext <<_ACEOF
19684/* confdefs.h. */
19685_ACEOF
19686cat confdefs.h >>conftest.$ac_ext
19687cat >>conftest.$ac_ext <<_ACEOF
19688/* end confdefs.h. */
19689#include <typeinfo>
19690class Base { public : Base () {} virtual void f () = 0; };
19691class Derived : public Base { public : Derived () {} virtual void f () {} };
19692int g (Derived&) { return 0; }
19693int
19694main ()
19695{
19696
19697Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19698 ;
19699 return 0;
19700}
19701_ACEOF
19702rm -f conftest.$ac_objext
19703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19704 (eval $ac_compile) 2>conftest.er1
a848cd7e 19705 ac_status=$?
ac1cb8d3
VS
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
a848cd7e
SC
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
5294a27e 19711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19714 ac_status=$?
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_cv_cxx_static_cast=yes
19724else
19725 echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728ac_cv_cxx_static_cast=no
19729fi
ac1cb8d3 19730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19731 ac_ext=c
19732ac_cpp='$CPP $CPPFLAGS'
19733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19735ac_compiler_gnu=$ac_cv_c_compiler_gnu
19736
19737
19738fi
19739echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19740echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19741if test "$ac_cv_cxx_static_cast" = yes; then
19742
19743cat >>confdefs.h <<\_ACEOF
19744#define HAVE_STATIC_CAST
19745_ACEOF
19746
19747fi
19748
19749
19750if test "$wxUSE_STL" = "yes"; then
19751 ac_ext=cc
19752ac_cpp='$CXXCPP $CPPFLAGS'
19753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19756
19757
19758 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19759echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19760 cat >conftest.$ac_ext <<_ACEOF
19761/* confdefs.h. */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h. */
19766#include <string>
19767 #include <functional>
19768 #include <algorithm>
19769 #include <vector>
19770 #include <list>
19771int
19772main ()
19773{
19774std::vector<int> moo;
19775 std::list<int> foo;
19776 std::vector<int>::iterator it =
19777 std::find_if(moo.begin(), moo.end(),
19778 std::bind2nd(std::less<int>(), 3));
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); } &&
5294a27e 19792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804 echo "$as_me:$LINENO: result: yes" >&5
19805echo "${ECHO_T}yes" >&6
19806else
19807 echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
19810echo "$as_me:$LINENO: result: no" >&5
19811echo "${ECHO_T}no" >&6
19812 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19813echo "$as_me: error: Basic STL functionality missing" >&2;}
19814 { (exit 1); exit 1; }; }
19815fi
ac1cb8d3 19816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19817
19818 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19819echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19820 cat >conftest.$ac_ext <<_ACEOF
19821/* confdefs.h. */
19822_ACEOF
19823cat confdefs.h >>conftest.$ac_ext
19824cat >>conftest.$ac_ext <<_ACEOF
19825/* end confdefs.h. */
19826#include <string>
19827int
19828main ()
19829{
19830std::wstring foo;
19831 ;
19832 return 0;
19833}
19834_ACEOF
19835rm -f conftest.$ac_objext
19836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19837 (eval $ac_compile) 2>conftest.er1
a848cd7e 19838 ac_status=$?
ac1cb8d3
VS
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
a848cd7e
SC
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
5294a27e 19844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 echo "$as_me:$LINENO: result: yes" >&5
19857echo "${ECHO_T}yes" >&6
19858 cat >>confdefs.h <<\_ACEOF
19859#define HAVE_STD_WSTRING 1
19860_ACEOF
19861
19862else
19863 echo "$as_me: failed program was:" >&5
19864sed 's/^/| /' conftest.$ac_ext >&5
19865
19866echo "$as_me:$LINENO: result: no" >&5
19867echo "${ECHO_T}no" >&6
19868fi
ac1cb8d3 19869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19870
19871 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19872echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19873 cat >conftest.$ac_ext <<_ACEOF
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
19879#include <string>
19880int
19881main ()
19882{
19883std::string foo, bar;
19884 foo.compare(bar);
19885 foo.compare(1, 1, bar);
19886 foo.compare(1, 1, bar, 1, 1);
19887 foo.compare("");
19888 foo.compare(1, 1, "");
19889 foo.compare(1, 1, "", 2);
19890 ;
19891 return 0;
19892}
19893_ACEOF
19894rm -f conftest.$ac_objext
19895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19896 (eval $ac_compile) 2>conftest.er1
a848cd7e 19897 ac_status=$?
ac1cb8d3
VS
19898 grep -v '^ *+' conftest.er1 >conftest.err
19899 rm -f conftest.er1
19900 cat conftest.err >&5
a848cd7e
SC
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
5294a27e 19903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19915 echo "$as_me:$LINENO: result: yes" >&5
19916echo "${ECHO_T}yes" >&6
19917 cat >>confdefs.h <<\_ACEOF
19918#define HAVE_STD_STRING_COMPARE 1
19919_ACEOF
19920
19921else
19922 echo "$as_me: failed program was:" >&5
19923sed 's/^/| /' conftest.$ac_ext >&5
19924
19925echo "$as_me:$LINENO: result: no" >&5
19926echo "${ECHO_T}no" >&6
19927fi
ac1cb8d3 19928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19929
19930 if test "${ac_cv_header_hash_map+set}" = set; then
19931 echo "$as_me:$LINENO: checking for hash_map" >&5
19932echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19933if test "${ac_cv_header_hash_map+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19935fi
19936echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19937echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19938else
19939 # Is the header compilable?
19940echo "$as_me:$LINENO: checking hash_map usability" >&5
19941echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19942cat >conftest.$ac_ext <<_ACEOF
19943/* confdefs.h. */
19944_ACEOF
19945cat confdefs.h >>conftest.$ac_ext
19946cat >>conftest.$ac_ext <<_ACEOF
19947/* end confdefs.h. */
19948$ac_includes_default
19949#include <hash_map>
19950_ACEOF
19951rm -f conftest.$ac_objext
19952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19953 (eval $ac_compile) 2>conftest.er1
bdcade0a 19954 ac_status=$?
ac1cb8d3
VS
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
bdcade0a
MB
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
5294a27e 19960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_header_compiler=yes
19973else
19974 echo "$as_me: failed program was:" >&5
19975sed 's/^/| /' conftest.$ac_ext >&5
19976
19977ac_header_compiler=no
19978fi
ac1cb8d3 19979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981echo "${ECHO_T}$ac_header_compiler" >&6
19982
19983# Is the header present?
19984echo "$as_me:$LINENO: checking hash_map presence" >&5
19985echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19986cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
19992#include <hash_map>
19993_ACEOF
19994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } >/dev/null; then
20002 if test -s conftest.err; then
20003 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20005 else
20006 ac_cpp_err=
20007 fi
20008else
20009 ac_cpp_err=yes
20010fi
20011if test -z "$ac_cpp_err"; then
20012 ac_header_preproc=yes
20013else
20014 echo "$as_me: failed program was:" >&5
20015sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_header_preproc=no
20018fi
20019rm -f conftest.err conftest.$ac_ext
20020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021echo "${ECHO_T}$ac_header_preproc" >&6
20022
20023# So? What about this header?
ac1cb8d3
VS
20024case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20025 yes:no: )
bdcade0a
MB
20026 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20027echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20028 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20029echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20030 ac_header_preproc=yes
bdcade0a 20031 ;;
ac1cb8d3 20032 no:yes:* )
bdcade0a
MB
20033 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20034echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20035 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20036echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20038echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20039 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20040echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20041 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20042echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20043 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20044echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20045 (
20046 cat <<\_ASBOX
ac1cb8d3
VS
20047## ----------------------------------------- ##
20048## Report this to wx-dev@lists.wxwidgets.org ##
20049## ----------------------------------------- ##
bdcade0a
MB
20050_ASBOX
20051 ) |
20052 sed "s/^/$as_me: WARNING: /" >&2
20053 ;;
20054esac
20055echo "$as_me:$LINENO: checking for hash_map" >&5
20056echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20057if test "${ac_cv_header_hash_map+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059else
20060 ac_cv_header_hash_map=$ac_header_preproc
20061fi
20062echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20063echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20064
20065fi
20066if test $ac_cv_header_hash_map = yes; then
20067 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20068echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20069 cat >conftest.$ac_ext <<_ACEOF
20070/* confdefs.h. */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h. */
20075#include <hash_map>
20076 #include <hash_set>
20077int
20078main ()
20079{
20080std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20081 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20082 ;
20083 return 0;
20084}
20085_ACEOF
20086rm -f conftest.$ac_objext
20087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20088 (eval $ac_compile) 2>conftest.er1
bdcade0a 20089 ac_status=$?
ac1cb8d3
VS
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
bdcade0a
MB
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
5294a27e 20095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 echo "$as_me:$LINENO: result: yes" >&5
20108echo "${ECHO_T}yes" >&6
20109 cat >>confdefs.h <<\_ACEOF
20110#define HAVE_HASH_MAP 1
20111_ACEOF
20112
20113 cat >>confdefs.h <<\_ACEOF
20114#define HAVE_STD_HASH_MAP 1
20115_ACEOF
20116
20117else
20118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121echo "$as_me:$LINENO: result: no" >&5
20122echo "${ECHO_T}no" >&6
20123fi
ac1cb8d3 20124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20125
20126fi
20127
20128
20129
20130 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20131 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20132echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20133if test "${ac_cv_header_ext_hash_map+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20135fi
20136echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20137echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20138else
20139 # Is the header compilable?
20140echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20141echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20142cat >conftest.$ac_ext <<_ACEOF
20143/* confdefs.h. */
20144_ACEOF
20145cat confdefs.h >>conftest.$ac_ext
20146cat >>conftest.$ac_ext <<_ACEOF
20147/* end confdefs.h. */
20148$ac_includes_default
20149#include <ext/hash_map>
20150_ACEOF
20151rm -f conftest.$ac_objext
20152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20153 (eval $ac_compile) 2>conftest.er1
bdcade0a 20154 ac_status=$?
ac1cb8d3
VS
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
bdcade0a
MB
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
5294a27e 20160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 ac_header_compiler=yes
20173else
20174 echo "$as_me: failed program was:" >&5
20175sed 's/^/| /' conftest.$ac_ext >&5
20176
20177ac_header_compiler=no
20178fi
ac1cb8d3 20179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20180echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20181echo "${ECHO_T}$ac_header_compiler" >&6
20182
20183# Is the header present?
20184echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20185echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20186cat >conftest.$ac_ext <<_ACEOF
20187/* confdefs.h. */
20188_ACEOF
20189cat confdefs.h >>conftest.$ac_ext
20190cat >>conftest.$ac_ext <<_ACEOF
20191/* end confdefs.h. */
20192#include <ext/hash_map>
20193_ACEOF
20194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20196 ac_status=$?
20197 grep -v '^ *+' conftest.er1 >conftest.err
20198 rm -f conftest.er1
20199 cat conftest.err >&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } >/dev/null; then
20202 if test -s conftest.err; then
20203 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20204 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20205 else
20206 ac_cpp_err=
20207 fi
20208else
20209 ac_cpp_err=yes
20210fi
20211if test -z "$ac_cpp_err"; then
20212 ac_header_preproc=yes
20213else
20214 echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 ac_header_preproc=no
20218fi
20219rm -f conftest.err conftest.$ac_ext
20220echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20221echo "${ECHO_T}$ac_header_preproc" >&6
20222
20223# So? What about this header?
ac1cb8d3
VS
20224case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20225 yes:no: )
bdcade0a
MB
20226 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20227echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20228 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20229echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20230 ac_header_preproc=yes
bdcade0a 20231 ;;
ac1cb8d3 20232 no:yes:* )
bdcade0a
MB
20233 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20234echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20235 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20236echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20238echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20240echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20241 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20242echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20243 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20244echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20245 (
20246 cat <<\_ASBOX
ac1cb8d3
VS
20247## ----------------------------------------- ##
20248## Report this to wx-dev@lists.wxwidgets.org ##
20249## ----------------------------------------- ##
bdcade0a
MB
20250_ASBOX
20251 ) |
20252 sed "s/^/$as_me: WARNING: /" >&2
20253 ;;
20254esac
20255echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20256echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20257if test "${ac_cv_header_ext_hash_map+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20259else
20260 ac_cv_header_ext_hash_map=$ac_header_preproc
20261fi
20262echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20263echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20264
20265fi
20266if test $ac_cv_header_ext_hash_map = yes; then
20267 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20268echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20269 cat >conftest.$ac_ext <<_ACEOF
20270/* confdefs.h. */
20271_ACEOF
20272cat confdefs.h >>conftest.$ac_ext
20273cat >>conftest.$ac_ext <<_ACEOF
20274/* end confdefs.h. */
20275#include <ext/hash_map>
20276 #include <ext/hash_set>
20277int
20278main ()
20279{
20280__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20281 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20282 ;
20283 return 0;
20284}
20285_ACEOF
20286rm -f conftest.$ac_objext
20287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20288 (eval $ac_compile) 2>conftest.er1
bdcade0a 20289 ac_status=$?
ac1cb8d3
VS
20290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
bdcade0a
MB
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
5294a27e 20295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; } &&
20301 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 echo "$as_me:$LINENO: result: yes" >&5
20308echo "${ECHO_T}yes" >&6
20309 cat >>confdefs.h <<\_ACEOF
20310#define HAVE_EXT_HASH_MAP 1
20311_ACEOF
20312
20313 cat >>confdefs.h <<\_ACEOF
20314#define HAVE_GNU_CXX_HASH_MAP 1
20315_ACEOF
20316
20317else
20318 echo "$as_me: failed program was:" >&5
20319sed 's/^/| /' conftest.$ac_ext >&5
20320
20321echo "$as_me:$LINENO: result: no" >&5
20322echo "${ECHO_T}no" >&6
20323fi
ac1cb8d3 20324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20325
20326fi
20327
20328
a848cd7e
SC
20329
20330 ac_ext=c
20331ac_cpp='$CPP $CPPFLAGS'
20332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334ac_compiler_gnu=$ac_cv_c_compiler_gnu
20335
20336fi
20337
20338
20339SEARCH_INCLUDE="\
20340 /usr/local/include \
20341 \
20342 /usr/Motif-2.1/include \
20343 /usr/Motif-1.2/include \
20344 /usr/include/Motif1.2 \
20345 /opt/xpm/include/X11 \
20346 /opt/GBxpm/include/ \
20347 /opt/GBxpm/X11/include/ \
20348 \
20349 /usr/dt/include \
20350 /usr/openwin/include \
20351 \
20352 /usr/include/Xm \
20353 \
20354 /usr/X11R6/include \
20355 /usr/X11R6.4/include \
20356 /usr/X11R5/include \
20357 /usr/X11R4/include \
20358 \
20359 /usr/include/X11R6 \
20360 /usr/include/X11R5 \
20361 /usr/include/X11R4 \
20362 \
20363 /usr/local/X11R6/include \
20364 /usr/local/X11R5/include \
20365 /usr/local/X11R4/include \
20366 \
20367 /usr/local/include/X11R6 \
20368 /usr/local/include/X11R5 \
20369 /usr/local/include/X11R4 \
20370 \
20371 /usr/X11/include \
20372 /usr/include/X11 \
20373 /usr/local/X11/include \
20374 /usr/local/include/X11 \
20375 \
20376 /usr/X386/include \
20377 /usr/x386/include \
20378 /usr/XFree86/include/X11 \
20379 \
20380 X:/XFree86/include \
20381 X:/XFree86/include/X11 \
20382 \
20383 /usr/include/gtk \
20384 /usr/local/include/gtk \
20385 /usr/include/glib \
20386 /usr/local/include/glib \
20387 \
20388 /usr/include/qt \
20389 /usr/local/include/qt \
20390 \
20391 /usr/local/arm/3.3.2/include \
20392 \
20393 /usr/include/windows \
20394 /usr/include/wine \
20395 /usr/local/include/wine \
20396 \
20397 /usr/unsupported/include \
20398 /usr/athena/include \
20399 /usr/local/x11r5/include \
20400 /usr/lpp/Xamples/include \
20401 \
20402 /usr/openwin/share/include"
20403
20404SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20405
20406
20407cat >confcache <<\_ACEOF
20408# This file is a shell script that caches the results of configure
20409# tests run on this system so they can be shared between configure
20410# scripts and configure runs, see configure's option --config-cache.
20411# It is not useful on other systems. If it contains results you don't
20412# want to keep, you may remove or edit it.
20413#
20414# config.status only pays attention to the cache file if you give it
20415# the --recheck option to rerun configure.
20416#
20417# `ac_cv_env_foo' variables (set or unset) will be overridden when
20418# loading this file, other *unset* `ac_cv_foo' will be assigned the
20419# following values.
20420
20421_ACEOF
20422
20423# The following way of writing the cache mishandles newlines in values,
20424# but we know of no workaround that is simple, portable, and efficient.
20425# So, don't put newlines in cache variables' values.
20426# Ultrix sh set writes to stderr and can't be redirected directly,
20427# and sets the high bit in the cache file unless we assign to the vars.
20428{
20429 (set) 2>&1 |
20430 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20431 *ac_space=\ *)
20432 # `set' does not quote correctly, so add quotes (double-quote
20433 # substitution turns \\\\ into \\, and sed turns \\ into \).
20434 sed -n \
ac1cb8d3
VS
20435 "s/'/'\\\\''/g;
20436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20437 ;;
20438 *)
20439 # `set' quotes correctly as required by POSIX, so do not add quotes.
20440 sed -n \
ac1cb8d3 20441 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20442 ;;
20443 esac;
20444} |
20445 sed '
20446 t clear
20447 : clear
20448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20449 t end
20450 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20451 : end' >>confcache
20452if diff $cache_file confcache >/dev/null 2>&1; then :; else
20453 if test -w $cache_file; then
20454 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20455 cat confcache >$cache_file
20456 else
20457 echo "not updating unwritable cache $cache_file"
20458 fi
20459fi
20460rm -f confcache
20461
20462if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20463 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20464echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20465if test "${wx_cv_lib_glibc21+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467else
20468
20469 cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
20475#include <features.h>
20476int
20477main ()
20478{
20479
20480 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20481 #error not glibc2.1
20482 #endif
20483
20484 ;
20485 return 0;
20486}
20487_ACEOF
20488rm -f conftest.$ac_objext
20489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20490 (eval $ac_compile) 2>conftest.er1
a848cd7e 20491 ac_status=$?
ac1cb8d3
VS
20492 grep -v '^ *+' conftest.er1 >conftest.err
20493 rm -f conftest.er1
20494 cat conftest.err >&5
a848cd7e
SC
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } &&
5294a27e 20497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } &&
20503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505 (eval $ac_try) 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509
20510 wx_cv_lib_glibc21=yes
20511
20512else
20513 echo "$as_me: failed program was:" >&5
20514sed 's/^/| /' conftest.$ac_ext >&5
20515
20516
20517 wx_cv_lib_glibc21=no
20518
20519
20520fi
ac1cb8d3 20521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20522
20523fi
20524echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20525echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20526 if test "$wx_cv_lib_glibc21" = "yes"; then
20527 cat >>confdefs.h <<\_ACEOF
20528#define wxHAVE_GLIBC2 1
20529_ACEOF
20530
20531 fi
20532fi
20533
20534if test "x$wx_cv_lib_glibc21" = "xyes"; then
20535 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20536 cat >>confdefs.h <<\_ACEOF
20537#define _GNU_SOURCE 1
20538_ACEOF
20539
20540 fi
20541fi
20542
20543
20544
20545if test "$wxUSE_REGEX" != "no"; then
20546 cat >>confdefs.h <<\_ACEOF
20547#define wxUSE_REGEX 1
20548_ACEOF
20549
20550
20551 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20552 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20553echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20554 wxUSE_REGEX=builtin
20555 fi
20556
20557 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20558 if test "${ac_cv_header_regex_h+set}" = set; then
20559 echo "$as_me:$LINENO: checking for regex.h" >&5
20560echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20561if test "${ac_cv_header_regex_h+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563fi
20564echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20565echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20566else
20567 # Is the header compilable?
20568echo "$as_me:$LINENO: checking regex.h usability" >&5
20569echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20570cat >conftest.$ac_ext <<_ACEOF
20571/* confdefs.h. */
20572_ACEOF
20573cat confdefs.h >>conftest.$ac_ext
20574cat >>conftest.$ac_ext <<_ACEOF
20575/* end confdefs.h. */
20576$ac_includes_default
20577#include <regex.h>
20578_ACEOF
20579rm -f conftest.$ac_objext
20580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20581 (eval $ac_compile) 2>conftest.er1
a848cd7e 20582 ac_status=$?
ac1cb8d3
VS
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
a848cd7e
SC
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
5294a27e 20588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; } &&
20594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 ac_header_compiler=yes
20601else
20602 echo "$as_me: failed program was:" >&5
20603sed 's/^/| /' conftest.$ac_ext >&5
20604
20605ac_header_compiler=no
20606fi
ac1cb8d3 20607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20609echo "${ECHO_T}$ac_header_compiler" >&6
20610
20611# Is the header present?
20612echo "$as_me:$LINENO: checking regex.h presence" >&5
20613echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20614cat >conftest.$ac_ext <<_ACEOF
20615/* confdefs.h. */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
20619/* end confdefs.h. */
20620#include <regex.h>
20621_ACEOF
20622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20624 ac_status=$?
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } >/dev/null; then
20630 if test -s conftest.err; then
20631 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20633 else
20634 ac_cpp_err=
20635 fi
20636else
20637 ac_cpp_err=yes
20638fi
20639if test -z "$ac_cpp_err"; then
20640 ac_header_preproc=yes
20641else
20642 echo "$as_me: failed program was:" >&5
20643sed 's/^/| /' conftest.$ac_ext >&5
20644
20645 ac_header_preproc=no
20646fi
20647rm -f conftest.err conftest.$ac_ext
20648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20649echo "${ECHO_T}$ac_header_preproc" >&6
20650
20651# So? What about this header?
ac1cb8d3
VS
20652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20653 yes:no: )
a848cd7e
SC
20654 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20655echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20656 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20657echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20658 ac_header_preproc=yes
a848cd7e 20659 ;;
ac1cb8d3 20660 no:yes:* )
a848cd7e
SC
20661 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20662echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20663 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20664echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20666echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20668echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20669 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20670echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20671 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20672echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20673 (
20674 cat <<\_ASBOX
ac1cb8d3
VS
20675## ----------------------------------------- ##
20676## Report this to wx-dev@lists.wxwidgets.org ##
20677## ----------------------------------------- ##
a848cd7e
SC
20678_ASBOX
20679 ) |
20680 sed "s/^/$as_me: WARNING: /" >&2
20681 ;;
20682esac
20683echo "$as_me:$LINENO: checking for regex.h" >&5
20684echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20685if test "${ac_cv_header_regex_h+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20687else
20688 ac_cv_header_regex_h=$ac_header_preproc
20689fi
20690echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20691echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20692
20693fi
20694if test $ac_cv_header_regex_h = yes; then
20695
20696for ac_func in regcomp
20697do
20698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20699echo "$as_me:$LINENO: checking for $ac_func" >&5
20700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20701if eval "test \"\${$as_ac_var+set}\" = set"; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20703else
20704 cat >conftest.$ac_ext <<_ACEOF
20705/* confdefs.h. */
20706_ACEOF
20707cat confdefs.h >>conftest.$ac_ext
20708cat >>conftest.$ac_ext <<_ACEOF
20709/* end confdefs.h. */
ac1cb8d3
VS
20710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20712#define $ac_func innocuous_$ac_func
20713
a848cd7e
SC
20714/* System header to define __stub macros and hopefully few prototypes,
20715 which can conflict with char $ac_func (); below.
20716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20717 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20718
a848cd7e
SC
20719#ifdef __STDC__
20720# include <limits.h>
20721#else
20722# include <assert.h>
20723#endif
ac1cb8d3
VS
20724
20725#undef $ac_func
20726
a848cd7e
SC
20727/* Override any gcc2 internal prototype to avoid an error. */
20728#ifdef __cplusplus
20729extern "C"
20730{
20731#endif
20732/* We use char because int might match the return type of a gcc2
20733 builtin and then its argument prototype would still apply. */
20734char $ac_func ();
20735/* The GNU C library defines this for functions which it implements
20736 to always fail with ENOSYS. Some functions are actually named
20737 something starting with __ and the normal name is an alias. */
20738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20739choke me
20740#else
20741char (*f) () = $ac_func;
20742#endif
20743#ifdef __cplusplus
20744}
20745#endif
20746
20747int
20748main ()
20749{
20750return f != $ac_func;
20751 ;
20752 return 0;
20753}
20754_ACEOF
20755rm -f conftest.$ac_objext conftest$ac_exeext
20756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20757 (eval $ac_link) 2>conftest.er1
a848cd7e 20758 ac_status=$?
ac1cb8d3
VS
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
a848cd7e
SC
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
5294a27e 20764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 eval "$as_ac_var=yes"
20777else
20778 echo "$as_me: failed program was:" >&5
20779sed 's/^/| /' conftest.$ac_ext >&5
20780
20781eval "$as_ac_var=no"
20782fi
ac1cb8d3
VS
20783rm -f conftest.err conftest.$ac_objext \
20784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20785fi
20786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20788if test `eval echo '${'$as_ac_var'}'` = yes; then
20789 cat >>confdefs.h <<_ACEOF
20790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20791_ACEOF
20792
20793fi
20794done
20795
20796fi
20797
20798
20799
20800 if test "x$ac_cv_func_regcomp" != "xyes"; then
20801 if test "$wxUSE_REGEX" = "sys" ; then
20802 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20803echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20804 { (exit 1); exit 1; }; }
20805 else
20806 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20807echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20808 wxUSE_REGEX=builtin
20809 fi
20810 else
20811 wxUSE_REGEX=sys
20812 cat >>confdefs.h <<\_ACEOF
20813#define WX_NO_REGEX_ADVANCED 1
20814_ACEOF
20815
20816 fi
20817 fi
20818fi
20819
20820
20821ZLIB_LINK=
20822if test "$wxUSE_ZLIB" != "no" ; then
20823 cat >>confdefs.h <<\_ACEOF
20824#define wxUSE_ZLIB 1
20825_ACEOF
20826
20827
20828 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20829 if test "$USE_DARWIN" = 1; then
20830 system_zlib_h_ok="yes"
20831 else
20832 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20833echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20834if test "${ac_cv_header_zlib_h+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20836else
20837 if test "$cross_compiling" = yes; then
20838 unset ac_cv_header_zlib_h
20839
20840else
20841 cat >conftest.$ac_ext <<_ACEOF
20842/* confdefs.h. */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */
20847
20848 #include <zlib.h>
20849 #include <stdio.h>
20850
20851 int main()
20852 {
20853 FILE *f=fopen("conftestval", "w");
20854 if (!f) exit(1);
20855 fprintf(f, "%s",
20856 ZLIB_VERSION[0] == '1' &&
20857 (ZLIB_VERSION[2] > '1' ||
20858 (ZLIB_VERSION[2] == '1' &&
20859 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20860 exit(0);
20861 }
20862
20863_ACEOF
20864rm -f conftest$ac_exeext
20865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20866 (eval $ac_link) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; }; then
20875 ac_cv_header_zlib_h=`cat conftestval`
20876else
20877 echo "$as_me: program exited with status $ac_status" >&5
20878echo "$as_me: failed program was:" >&5
20879sed 's/^/| /' conftest.$ac_ext >&5
20880
20881( exit $ac_status )
20882ac_cv_header_zlib_h=no
20883fi
ac1cb8d3 20884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20885fi
20886
20887fi
20888echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20889echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20890 if test "${ac_cv_header_zlib_h+set}" = set; then
20891 echo "$as_me:$LINENO: checking for zlib.h" >&5
20892echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20893if test "${ac_cv_header_zlib_h+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895fi
20896echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20897echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20898else
20899 # Is the header compilable?
20900echo "$as_me:$LINENO: checking zlib.h usability" >&5
20901echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20902cat >conftest.$ac_ext <<_ACEOF
20903/* confdefs.h. */
20904_ACEOF
20905cat confdefs.h >>conftest.$ac_ext
20906cat >>conftest.$ac_ext <<_ACEOF
20907/* end confdefs.h. */
20908$ac_includes_default
20909#include <zlib.h>
20910_ACEOF
20911rm -f conftest.$ac_objext
20912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20913 (eval $ac_compile) 2>conftest.er1
a848cd7e 20914 ac_status=$?
ac1cb8d3
VS
20915 grep -v '^ *+' conftest.er1 >conftest.err
20916 rm -f conftest.er1
20917 cat conftest.err >&5
a848cd7e
SC
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } &&
5294a27e 20920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922 (eval $ac_try) 2>&5
20923 ac_status=$?
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; } &&
20926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20928 (eval $ac_try) 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 ac_header_compiler=yes
20933else
20934 echo "$as_me: failed program was:" >&5
20935sed 's/^/| /' conftest.$ac_ext >&5
20936
20937ac_header_compiler=no
20938fi
ac1cb8d3 20939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20941echo "${ECHO_T}$ac_header_compiler" >&6
20942
20943# Is the header present?
20944echo "$as_me:$LINENO: checking zlib.h presence" >&5
20945echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20946cat >conftest.$ac_ext <<_ACEOF
20947/* confdefs.h. */
20948_ACEOF
20949cat confdefs.h >>conftest.$ac_ext
20950cat >>conftest.$ac_ext <<_ACEOF
20951/* end confdefs.h. */
20952#include <zlib.h>
20953_ACEOF
20954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20956 ac_status=$?
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } >/dev/null; then
20962 if test -s conftest.err; then
20963 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20965 else
20966 ac_cpp_err=
20967 fi
20968else
20969 ac_cpp_err=yes
20970fi
20971if test -z "$ac_cpp_err"; then
20972 ac_header_preproc=yes
20973else
20974 echo "$as_me: failed program was:" >&5
20975sed 's/^/| /' conftest.$ac_ext >&5
20976
20977 ac_header_preproc=no
20978fi
20979rm -f conftest.err conftest.$ac_ext
20980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20981echo "${ECHO_T}$ac_header_preproc" >&6
20982
20983# So? What about this header?
ac1cb8d3
VS
20984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20985 yes:no: )
a848cd7e
SC
20986 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20987echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20988 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20989echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20990 ac_header_preproc=yes
a848cd7e 20991 ;;
ac1cb8d3 20992 no:yes:* )
a848cd7e
SC
20993 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20994echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20995 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20996echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20998echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20999 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21000echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21001 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21002echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21003 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21004echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21005 (
21006 cat <<\_ASBOX
ac1cb8d3
VS
21007## ----------------------------------------- ##
21008## Report this to wx-dev@lists.wxwidgets.org ##
21009## ----------------------------------------- ##
a848cd7e
SC
21010_ASBOX
21011 ) |
21012 sed "s/^/$as_me: WARNING: /" >&2
21013 ;;
21014esac
21015echo "$as_me:$LINENO: checking for zlib.h" >&5
21016echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21017if test "${ac_cv_header_zlib_h+set}" = set; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21019else
21020 ac_cv_header_zlib_h=$ac_header_preproc
21021fi
21022echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21023echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21024
21025fi
21026
21027
21028
21029 system_zlib_h_ok=$ac_cv_header_zlib_h
21030 fi
21031
21032 if test "$system_zlib_h_ok" = "yes"; then
21033 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21034echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21035if test "${ac_cv_lib_z_deflate+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037else
21038 ac_check_lib_save_LIBS=$LIBS
21039LIBS="-lz $LIBS"
21040cat >conftest.$ac_ext <<_ACEOF
21041/* confdefs.h. */
21042_ACEOF
21043cat confdefs.h >>conftest.$ac_ext
21044cat >>conftest.$ac_ext <<_ACEOF
21045/* end confdefs.h. */
21046
21047/* Override any gcc2 internal prototype to avoid an error. */
21048#ifdef __cplusplus
21049extern "C"
21050#endif
21051/* We use char because int might match the return type of a gcc2
21052 builtin and then its argument prototype would still apply. */
21053char deflate ();
21054int
21055main ()
21056{
21057deflate ();
21058 ;
21059 return 0;
21060}
21061_ACEOF
21062rm -f conftest.$ac_objext conftest$ac_exeext
21063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21064 (eval $ac_link) 2>conftest.er1
a848cd7e 21065 ac_status=$?
ac1cb8d3
VS
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
a848cd7e
SC
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
5294a27e 21071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_cv_lib_z_deflate=yes
21084else
21085 echo "$as_me: failed program was:" >&5
21086sed 's/^/| /' conftest.$ac_ext >&5
21087
21088ac_cv_lib_z_deflate=no
21089fi
ac1cb8d3
VS
21090rm -f conftest.err conftest.$ac_objext \
21091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21092LIBS=$ac_check_lib_save_LIBS
21093fi
21094echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21095echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21096if test $ac_cv_lib_z_deflate = yes; then
21097 ZLIB_LINK=" -lz"
21098fi
21099
21100 fi
21101
21102 if test "x$ZLIB_LINK" = "x" ; then
21103 if test "$wxUSE_ZLIB" = "sys" ; then
21104 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21105echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21106 { (exit 1); exit 1; }; }
21107 else
21108 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21109echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21110 wxUSE_ZLIB=builtin
21111 fi
21112 else
21113 wxUSE_ZLIB=sys
21114 fi
21115 fi
21116fi
21117
21118
21119PNG_LINK=
21120if test "$wxUSE_LIBPNG" != "no" ; then
21121 cat >>confdefs.h <<\_ACEOF
21122#define wxUSE_LIBPNG 1
21123_ACEOF
21124
21125
21126 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21127 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21128echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21129 wxUSE_LIBPNG=sys
21130 fi
21131
21132 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21133 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21134echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21135 wxUSE_LIBPNG=builtin
21136 fi
21137
21138 if test "$wxUSE_MGL" != 1 ; then
21139 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21140 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21141echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21142if test "${ac_cv_header_png_h+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21144else
21145 if test "$cross_compiling" = yes; then
21146 unset ac_cv_header_png_h
21147
21148else
21149 cat >conftest.$ac_ext <<_ACEOF
21150/* confdefs.h. */
21151_ACEOF
21152cat confdefs.h >>conftest.$ac_ext
21153cat >>conftest.$ac_ext <<_ACEOF
21154/* end confdefs.h. */
21155
21156 #include <png.h>
21157 #include <stdio.h>
21158
21159 int main()
21160 {
21161 FILE *f=fopen("conftestval", "w");
21162 if (!f) exit(1);
21163 fprintf(f, "%s",
21164 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21165 exit(0);
21166 }
21167
21168_ACEOF
21169rm -f conftest$ac_exeext
21170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21171 (eval $ac_link) 2>&5
21172 ac_status=$?
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 ac_cv_header_png_h=`cat conftestval`
21181else
21182 echo "$as_me: program exited with status $ac_status" >&5
21183echo "$as_me: failed program was:" >&5
21184sed 's/^/| /' conftest.$ac_ext >&5
21185
21186( exit $ac_status )
21187ac_cv_header_png_h=no
21188fi
ac1cb8d3 21189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21190fi
21191
21192fi
21193echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21194echo "${ECHO_T}$ac_cv_header_png_h" >&6
21195 if test "${ac_cv_header_png_h+set}" = set; then
21196 echo "$as_me:$LINENO: checking for png.h" >&5
21197echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21198if test "${ac_cv_header_png_h+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200fi
21201echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21202echo "${ECHO_T}$ac_cv_header_png_h" >&6
21203else
21204 # Is the header compilable?
21205echo "$as_me:$LINENO: checking png.h usability" >&5
21206echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21207cat >conftest.$ac_ext <<_ACEOF
21208/* confdefs.h. */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
21212/* end confdefs.h. */
21213$ac_includes_default
21214#include <png.h>
21215_ACEOF
21216rm -f conftest.$ac_objext
21217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21218 (eval $ac_compile) 2>conftest.er1
a848cd7e 21219 ac_status=$?
ac1cb8d3
VS
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
a848cd7e
SC
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
5294a27e 21225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21228 ac_status=$?
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ac_header_compiler=yes
21238else
21239 echo "$as_me: failed program was:" >&5
21240sed 's/^/| /' conftest.$ac_ext >&5
21241
21242ac_header_compiler=no
21243fi
ac1cb8d3 21244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21246echo "${ECHO_T}$ac_header_compiler" >&6
21247
21248# Is the header present?
21249echo "$as_me:$LINENO: checking png.h presence" >&5
21250echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21251cat >conftest.$ac_ext <<_ACEOF
21252/* confdefs.h. */
21253_ACEOF
21254cat confdefs.h >>conftest.$ac_ext
21255cat >>conftest.$ac_ext <<_ACEOF
21256/* end confdefs.h. */
21257#include <png.h>
21258_ACEOF
21259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } >/dev/null; then
21267 if test -s conftest.err; then
21268 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21270 else
21271 ac_cpp_err=
21272 fi
21273else
21274 ac_cpp_err=yes
21275fi
21276if test -z "$ac_cpp_err"; then
21277 ac_header_preproc=yes
21278else
21279 echo "$as_me: failed program was:" >&5
21280sed 's/^/| /' conftest.$ac_ext >&5
21281
21282 ac_header_preproc=no
21283fi
21284rm -f conftest.err conftest.$ac_ext
21285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21286echo "${ECHO_T}$ac_header_preproc" >&6
21287
21288# So? What about this header?
ac1cb8d3
VS
21289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21290 yes:no: )
a848cd7e
SC
21291 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21292echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21293 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21294echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21295 ac_header_preproc=yes
a848cd7e 21296 ;;
ac1cb8d3 21297 no:yes:* )
a848cd7e
SC
21298 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21299echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21300 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21301echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21303echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21305echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21306 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21307echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21308 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21309echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21310 (
21311 cat <<\_ASBOX
ac1cb8d3
VS
21312## ----------------------------------------- ##
21313## Report this to wx-dev@lists.wxwidgets.org ##
21314## ----------------------------------------- ##
a848cd7e
SC
21315_ASBOX
21316 ) |
21317 sed "s/^/$as_me: WARNING: /" >&2
21318 ;;
21319esac
21320echo "$as_me:$LINENO: checking for png.h" >&5
21321echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21322if test "${ac_cv_header_png_h+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324else
21325 ac_cv_header_png_h=$ac_header_preproc
21326fi
21327echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21328echo "${ECHO_T}$ac_cv_header_png_h" >&6
21329
21330fi
21331
21332
21333
21334 if test "$ac_cv_header_png_h" = "yes"; then
21335 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21336echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21337if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339else
21340 ac_check_lib_save_LIBS=$LIBS
21341LIBS="-lpng -lz -lm $LIBS"
21342cat >conftest.$ac_ext <<_ACEOF
21343/* confdefs.h. */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h. */
21348
21349/* Override any gcc2 internal prototype to avoid an error. */
21350#ifdef __cplusplus
21351extern "C"
21352#endif
21353/* We use char because int might match the return type of a gcc2
21354 builtin and then its argument prototype would still apply. */
21355char png_check_sig ();
21356int
21357main ()
21358{
21359png_check_sig ();
21360 ;
21361 return 0;
21362}
21363_ACEOF
21364rm -f conftest.$ac_objext conftest$ac_exeext
21365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21366 (eval $ac_link) 2>conftest.er1
a848cd7e 21367 ac_status=$?
ac1cb8d3
VS
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
a848cd7e
SC
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } &&
5294a27e 21373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; } &&
21379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
21385 ac_cv_lib_png_png_check_sig=yes
21386else
21387 echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
21390ac_cv_lib_png_png_check_sig=no
21391fi
ac1cb8d3
VS
21392rm -f conftest.err conftest.$ac_objext \
21393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21394LIBS=$ac_check_lib_save_LIBS
21395fi
21396echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21397echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21398if test $ac_cv_lib_png_png_check_sig = yes; then
21399 PNG_LINK=" -lpng -lz"
21400fi
21401
21402 fi
21403
21404 if test "x$PNG_LINK" = "x" ; then
21405 if test "$wxUSE_LIBPNG" = "sys" ; then
21406 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21407echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21408 { (exit 1); exit 1; }; }
21409 else
21410 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21411echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21412 wxUSE_LIBPNG=builtin
21413 fi
21414 else
21415 wxUSE_LIBPNG=sys
21416 fi
21417 fi
21418 fi
21419
21420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21421fi
21422
21423
21424JPEG_LINK=
21425if test "$wxUSE_LIBJPEG" != "no" ; then
21426 cat >>confdefs.h <<\_ACEOF
21427#define wxUSE_LIBJPEG 1
21428_ACEOF
21429
21430
21431 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21432 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21433echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21434 wxUSE_LIBJPEG=sys
21435 fi
21436
21437 if test "$wxUSE_MGL" != 1 ; then
21438 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21439 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21440echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21441 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21442 echo $ECHO_N "(cached) $ECHO_C" >&6
21443else
21444 cat >conftest.$ac_ext <<_ACEOF
21445/* confdefs.h. */
21446_ACEOF
21447cat confdefs.h >>conftest.$ac_ext
21448cat >>conftest.$ac_ext <<_ACEOF
21449/* end confdefs.h. */
21450
21451 #undef HAVE_STDLIB_H
21452 #include <stdio.h>
21453 #include <jpeglib.h>
21454
21455int
21456main ()
21457{
21458
21459
21460 ;
21461 return 0;
21462}
21463_ACEOF
21464rm -f conftest.$ac_objext
21465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21466 (eval $ac_compile) 2>conftest.er1
a848cd7e 21467 ac_status=$?
ac1cb8d3
VS
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
a848cd7e
SC
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
5294a27e 21473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; } &&
21479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
21485 ac_cv_header_jpeglib_h=yes
21486else
21487 echo "$as_me: failed program was:" >&5
21488sed 's/^/| /' conftest.$ac_ext >&5
21489
21490ac_cv_header_jpeglib_h=no
21491
21492fi
ac1cb8d3 21493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21494
21495fi
21496
21497 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21498echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21499
21500 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21501 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21502echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21503if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505else
21506 ac_check_lib_save_LIBS=$LIBS
21507LIBS="-ljpeg $LIBS"
21508cat >conftest.$ac_ext <<_ACEOF
21509/* confdefs.h. */
21510_ACEOF
21511cat confdefs.h >>conftest.$ac_ext
21512cat >>conftest.$ac_ext <<_ACEOF
21513/* end confdefs.h. */
21514
21515/* Override any gcc2 internal prototype to avoid an error. */
21516#ifdef __cplusplus
21517extern "C"
21518#endif
21519/* We use char because int might match the return type of a gcc2
21520 builtin and then its argument prototype would still apply. */
21521char jpeg_read_header ();
21522int
21523main ()
21524{
21525jpeg_read_header ();
21526 ;
21527 return 0;
21528}
21529_ACEOF
21530rm -f conftest.$ac_objext conftest$ac_exeext
21531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21532 (eval $ac_link) 2>conftest.er1
a848cd7e 21533 ac_status=$?
ac1cb8d3
VS
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
a848cd7e
SC
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
5294a27e 21539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; } &&
21545 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547 (eval $ac_try) 2>&5
21548 ac_status=$?
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; }; then
21551 ac_cv_lib_jpeg_jpeg_read_header=yes
21552else
21553 echo "$as_me: failed program was:" >&5
21554sed 's/^/| /' conftest.$ac_ext >&5
21555
21556ac_cv_lib_jpeg_jpeg_read_header=no
21557fi
ac1cb8d3
VS
21558rm -f conftest.err conftest.$ac_objext \
21559 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21560LIBS=$ac_check_lib_save_LIBS
21561fi
21562echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21563echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21564if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21565 JPEG_LINK=" -ljpeg"
21566fi
21567
21568 fi
21569
21570 if test "x$JPEG_LINK" = "x" ; then
21571 if test "$wxUSE_LIBJPEG" = "sys" ; then
21572 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21573echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21574 { (exit 1); exit 1; }; }
21575 else
21576 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21577echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21578 wxUSE_LIBJPEG=builtin
21579 fi
21580 else
21581 wxUSE_LIBJPEG=sys
21582 fi
21583 fi
21584 fi
21585fi
21586
21587
21588TIFF_LINK=
21589TIFF_PREREQ_LINKS=-lm
21590if test "$wxUSE_LIBTIFF" != "no" ; then
21591 cat >>confdefs.h <<\_ACEOF
21592#define wxUSE_LIBTIFF 1
21593_ACEOF
21594
21595
21596 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21597 if test "$wxUSE_LIBJPEG" = "sys"; then
21598 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21599 fi
21600 if test "$wxUSE_ZLIB" = "sys"; then
21601 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21602 fi
21603 if test "${ac_cv_header_tiffio_h+set}" = set; then
21604 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21605echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21606if test "${ac_cv_header_tiffio_h+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608fi
21609echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21610echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21611else
21612 # Is the header compilable?
21613echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21614echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21615cat >conftest.$ac_ext <<_ACEOF
21616/* confdefs.h. */
21617_ACEOF
21618cat confdefs.h >>conftest.$ac_ext
21619cat >>conftest.$ac_ext <<_ACEOF
21620/* end confdefs.h. */
21621$ac_includes_default
21622#include <tiffio.h>
21623_ACEOF
21624rm -f conftest.$ac_objext
21625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21626 (eval $ac_compile) 2>conftest.er1
a848cd7e 21627 ac_status=$?
ac1cb8d3
VS
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
a848cd7e
SC
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
5294a27e 21633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; } &&
21639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 ac_header_compiler=yes
21646else
21647 echo "$as_me: failed program was:" >&5
21648sed 's/^/| /' conftest.$ac_ext >&5
21649
21650ac_header_compiler=no
21651fi
ac1cb8d3 21652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21654echo "${ECHO_T}$ac_header_compiler" >&6
21655
21656# Is the header present?
21657echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21658echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21659cat >conftest.$ac_ext <<_ACEOF
21660/* confdefs.h. */
21661_ACEOF
21662cat confdefs.h >>conftest.$ac_ext
21663cat >>conftest.$ac_ext <<_ACEOF
21664/* end confdefs.h. */
21665#include <tiffio.h>
21666_ACEOF
21667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } >/dev/null; then
21675 if test -s conftest.err; then
21676 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21678 else
21679 ac_cpp_err=
21680 fi
21681else
21682 ac_cpp_err=yes
21683fi
21684if test -z "$ac_cpp_err"; then
21685 ac_header_preproc=yes
21686else
21687 echo "$as_me: failed program was:" >&5
21688sed 's/^/| /' conftest.$ac_ext >&5
21689
21690 ac_header_preproc=no
21691fi
21692rm -f conftest.err conftest.$ac_ext
21693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21694echo "${ECHO_T}$ac_header_preproc" >&6
21695
21696# So? What about this header?
ac1cb8d3
VS
21697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21698 yes:no: )
a848cd7e
SC
21699 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21700echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21701 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21702echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21703 ac_header_preproc=yes
a848cd7e 21704 ;;
ac1cb8d3 21705 no:yes:* )
a848cd7e
SC
21706 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21707echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21708 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21709echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21711echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21713echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21714 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21715echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21716 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21717echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21718 (
21719 cat <<\_ASBOX
ac1cb8d3
VS
21720## ----------------------------------------- ##
21721## Report this to wx-dev@lists.wxwidgets.org ##
21722## ----------------------------------------- ##
a848cd7e
SC
21723_ASBOX
21724 ) |
21725 sed "s/^/$as_me: WARNING: /" >&2
21726 ;;
21727esac
21728echo "$as_me:$LINENO: checking for tiffio.h" >&5
21729echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21730if test "${ac_cv_header_tiffio_h+set}" = set; then
21731 echo $ECHO_N "(cached) $ECHO_C" >&6
21732else
21733 ac_cv_header_tiffio_h=$ac_header_preproc
21734fi
21735echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21736echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21737
21738fi
21739if test $ac_cv_header_tiffio_h = yes; then
21740
21741 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21742echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21743if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21745else
21746 ac_check_lib_save_LIBS=$LIBS
21747LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21748cat >conftest.$ac_ext <<_ACEOF
21749/* confdefs.h. */
21750_ACEOF
21751cat confdefs.h >>conftest.$ac_ext
21752cat >>conftest.$ac_ext <<_ACEOF
21753/* end confdefs.h. */
21754
21755/* Override any gcc2 internal prototype to avoid an error. */
21756#ifdef __cplusplus
21757extern "C"
21758#endif
21759/* We use char because int might match the return type of a gcc2
21760 builtin and then its argument prototype would still apply. */
21761char TIFFError ();
21762int
21763main ()
21764{
21765TIFFError ();
21766 ;
21767 return 0;
21768}
21769_ACEOF
21770rm -f conftest.$ac_objext conftest$ac_exeext
21771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21772 (eval $ac_link) 2>conftest.er1
a848cd7e 21773 ac_status=$?
ac1cb8d3
VS
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
a848cd7e
SC
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
5294a27e 21779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 ac_cv_lib_tiff_TIFFError=yes
21792else
21793 echo "$as_me: failed program was:" >&5
21794sed 's/^/| /' conftest.$ac_ext >&5
21795
21796ac_cv_lib_tiff_TIFFError=no
21797fi
ac1cb8d3
VS
21798rm -f conftest.err conftest.$ac_objext \
21799 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21800LIBS=$ac_check_lib_save_LIBS
21801fi
21802echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21803echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21804if test $ac_cv_lib_tiff_TIFFError = yes; then
21805 TIFF_LINK=" -ltiff"
21806fi
21807
21808
21809
21810fi
21811
21812
21813
21814 if test "x$TIFF_LINK" = "x" ; then
21815 if test "$wxUSE_LIBTIFF" = "sys" ; then
21816 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21817echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21818 { (exit 1); exit 1; }; }
21819 else
21820 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21821echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21822 wxUSE_LIBTIFF=builtin
21823 fi
21824 else
21825 wxUSE_LIBTIFF=sys
21826 fi
21827 fi
21828fi
21829
21830
21831if test "$wxUSE_EXPAT" != "no"; then
21832 wxUSE_XML=yes
21833 cat >>confdefs.h <<\_ACEOF
21834#define wxUSE_EXPAT 1
21835_ACEOF
21836
21837 cat >>confdefs.h <<\_ACEOF
21838#define wxUSE_XML 1
21839_ACEOF
21840
21841
21842 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21843 if test "${ac_cv_header_expat_h+set}" = set; then
21844 echo "$as_me:$LINENO: checking for expat.h" >&5
21845echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21846if test "${ac_cv_header_expat_h+set}" = set; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21848fi
21849echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21850echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21851else
21852 # Is the header compilable?
21853echo "$as_me:$LINENO: checking expat.h usability" >&5
21854echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21855cat >conftest.$ac_ext <<_ACEOF
21856/* confdefs.h. */
21857_ACEOF
21858cat confdefs.h >>conftest.$ac_ext
21859cat >>conftest.$ac_ext <<_ACEOF
21860/* end confdefs.h. */
21861$ac_includes_default
21862#include <expat.h>
21863_ACEOF
21864rm -f conftest.$ac_objext
21865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21866 (eval $ac_compile) 2>conftest.er1
a848cd7e 21867 ac_status=$?
ac1cb8d3
VS
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
a848cd7e
SC
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } &&
5294a27e 21873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_header_compiler=yes
21886else
21887 echo "$as_me: failed program was:" >&5
21888sed 's/^/| /' conftest.$ac_ext >&5
21889
21890ac_header_compiler=no
21891fi
ac1cb8d3 21892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21894echo "${ECHO_T}$ac_header_compiler" >&6
21895
21896# Is the header present?
21897echo "$as_me:$LINENO: checking expat.h presence" >&5
21898echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21899cat >conftest.$ac_ext <<_ACEOF
21900/* confdefs.h. */
21901_ACEOF
21902cat confdefs.h >>conftest.$ac_ext
21903cat >>conftest.$ac_ext <<_ACEOF
21904/* end confdefs.h. */
21905#include <expat.h>
21906_ACEOF
21907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21909 ac_status=$?
21910 grep -v '^ *+' conftest.er1 >conftest.err
21911 rm -f conftest.er1
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } >/dev/null; then
21915 if test -s conftest.err; then
21916 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21918 else
21919 ac_cpp_err=
21920 fi
21921else
21922 ac_cpp_err=yes
21923fi
21924if test -z "$ac_cpp_err"; then
21925 ac_header_preproc=yes
21926else
21927 echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930 ac_header_preproc=no
21931fi
21932rm -f conftest.err conftest.$ac_ext
21933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21934echo "${ECHO_T}$ac_header_preproc" >&6
21935
21936# So? What about this header?
ac1cb8d3
VS
21937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21938 yes:no: )
a848cd7e
SC
21939 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21940echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21941 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21942echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21943 ac_header_preproc=yes
a848cd7e 21944 ;;
ac1cb8d3 21945 no:yes:* )
a848cd7e
SC
21946 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21947echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21948 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21949echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21951echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21953echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21954 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21955echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21956 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21957echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21958 (
21959 cat <<\_ASBOX
ac1cb8d3
VS
21960## ----------------------------------------- ##
21961## Report this to wx-dev@lists.wxwidgets.org ##
21962## ----------------------------------------- ##
a848cd7e
SC
21963_ASBOX
21964 ) |
21965 sed "s/^/$as_me: WARNING: /" >&2
21966 ;;
21967esac
21968echo "$as_me:$LINENO: checking for expat.h" >&5
21969echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21970if test "${ac_cv_header_expat_h+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21972else
21973 ac_cv_header_expat_h=$ac_header_preproc
21974fi
21975echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21976echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21977
21978fi
21979if test $ac_cv_header_expat_h = yes; then
21980 found_expat_h=1
21981fi
21982
21983
21984 if test "x$found_expat_h" = "x1"; then
21985 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21986echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21987if test "${wx_cv_expat_is_not_broken+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21989else
21990
21991
21992
21993 ac_ext=cc
21994ac_cpp='$CXXCPP $CPPFLAGS'
21995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21998
21999 cat >conftest.$ac_ext <<_ACEOF
22000/* confdefs.h. */
22001_ACEOF
22002cat confdefs.h >>conftest.$ac_ext
22003cat >>conftest.$ac_ext <<_ACEOF
22004/* end confdefs.h. */
22005#include <expat.h>
22006int
22007main ()
22008{
22009
22010 ;
22011 return 0;
22012}
22013_ACEOF
22014rm -f conftest.$ac_objext
22015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22016 (eval $ac_compile) 2>conftest.er1
a848cd7e 22017 ac_status=$?
ac1cb8d3
VS
22018 grep -v '^ *+' conftest.er1 >conftest.err
22019 rm -f conftest.er1
22020 cat conftest.err >&5
a848cd7e
SC
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } &&
5294a27e 22023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; } &&
22029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 wx_cv_expat_is_not_broken=yes
22036else
22037 echo "$as_me: failed program was:" >&5
22038sed 's/^/| /' conftest.$ac_ext >&5
22039
22040wx_cv_expat_is_not_broken=no
22041
22042fi
ac1cb8d3 22043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22044 ac_ext=c
22045ac_cpp='$CPP $CPPFLAGS'
22046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22048ac_compiler_gnu=$ac_cv_c_compiler_gnu
22049
22050
22051
22052fi
22053echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22054echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22055 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22056 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22057echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22058if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060else
22061 ac_check_lib_save_LIBS=$LIBS
22062LIBS="-lexpat $LIBS"
22063cat >conftest.$ac_ext <<_ACEOF
22064/* confdefs.h. */
22065_ACEOF
22066cat confdefs.h >>conftest.$ac_ext
22067cat >>conftest.$ac_ext <<_ACEOF
22068/* end confdefs.h. */
22069
22070/* Override any gcc2 internal prototype to avoid an error. */
22071#ifdef __cplusplus
22072extern "C"
22073#endif
22074/* We use char because int might match the return type of a gcc2
22075 builtin and then its argument prototype would still apply. */
22076char XML_ParserCreate ();
22077int
22078main ()
22079{
22080XML_ParserCreate ();
22081 ;
22082 return 0;
22083}
22084_ACEOF
22085rm -f conftest.$ac_objext conftest$ac_exeext
22086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22087 (eval $ac_link) 2>conftest.er1
a848cd7e 22088 ac_status=$?
ac1cb8d3
VS
22089 grep -v '^ *+' conftest.er1 >conftest.err
22090 rm -f conftest.er1
22091 cat conftest.err >&5
a848cd7e
SC
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } &&
5294a27e 22094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; } &&
22100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; }; then
22106 ac_cv_lib_expat_XML_ParserCreate=yes
22107else
22108 echo "$as_me: failed program was:" >&5
22109sed 's/^/| /' conftest.$ac_ext >&5
22110
22111ac_cv_lib_expat_XML_ParserCreate=no
22112fi
ac1cb8d3
VS
22113rm -f conftest.err conftest.$ac_objext \
22114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22115LIBS=$ac_check_lib_save_LIBS
22116fi
22117echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22118echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22119if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22120 EXPAT_LINK=" -lexpat"
22121fi
22122
22123 fi
22124 fi
22125 if test "x$EXPAT_LINK" = "x" ; then
22126 if test "$wxUSE_EXPAT" = "sys" ; then
22127 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22128echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22129 { (exit 1); exit 1; }; }
22130 else
22131 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22132echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22133 wxUSE_EXPAT=builtin
22134 fi
22135 else
22136 wxUSE_EXPAT=sys
22137 fi
22138 fi
22139 if test "$wxUSE_EXPAT" = "builtin" ; then
22140
22141
22142subdirs="$subdirs src/expat"
22143
22144 fi
22145fi
22146
22147
22148
22149if test "$wxUSE_LIBMSPACK" != "no"; then
22150
22151 if test "${ac_cv_header_mspack_h+set}" = set; then
22152 echo "$as_me:$LINENO: checking for mspack.h" >&5
22153echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22154if test "${ac_cv_header_mspack_h+set}" = set; then
22155 echo $ECHO_N "(cached) $ECHO_C" >&6
22156fi
22157echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22158echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22159else
22160 # Is the header compilable?
22161echo "$as_me:$LINENO: checking mspack.h usability" >&5
22162echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22163cat >conftest.$ac_ext <<_ACEOF
22164/* confdefs.h. */
22165_ACEOF
22166cat confdefs.h >>conftest.$ac_ext
22167cat >>conftest.$ac_ext <<_ACEOF
22168/* end confdefs.h. */
22169$ac_includes_default
22170#include <mspack.h>
22171_ACEOF
22172rm -f conftest.$ac_objext
22173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22174 (eval $ac_compile) 2>conftest.er1
a848cd7e 22175 ac_status=$?
ac1cb8d3
VS
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
a848cd7e
SC
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } &&
5294a27e 22181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183 (eval $ac_try) 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; } &&
22187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189 (eval $ac_try) 2>&5
22190 ac_status=$?
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); }; }; then
22193 ac_header_compiler=yes
22194else
22195 echo "$as_me: failed program was:" >&5
22196sed 's/^/| /' conftest.$ac_ext >&5
22197
22198ac_header_compiler=no
22199fi
ac1cb8d3 22200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22201echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22202echo "${ECHO_T}$ac_header_compiler" >&6
22203
22204# Is the header present?
22205echo "$as_me:$LINENO: checking mspack.h presence" >&5
22206echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22207cat >conftest.$ac_ext <<_ACEOF
22208/* confdefs.h. */
22209_ACEOF
22210cat confdefs.h >>conftest.$ac_ext
22211cat >>conftest.$ac_ext <<_ACEOF
22212/* end confdefs.h. */
22213#include <mspack.h>
22214_ACEOF
22215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22217 ac_status=$?
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } >/dev/null; then
22223 if test -s conftest.err; then
22224 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22226 else
22227 ac_cpp_err=
22228 fi
22229else
22230 ac_cpp_err=yes
22231fi
22232if test -z "$ac_cpp_err"; then
22233 ac_header_preproc=yes
22234else
22235 echo "$as_me: failed program was:" >&5
22236sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 ac_header_preproc=no
22239fi
22240rm -f conftest.err conftest.$ac_ext
22241echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22242echo "${ECHO_T}$ac_header_preproc" >&6
22243
22244# So? What about this header?
ac1cb8d3
VS
22245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22246 yes:no: )
a848cd7e
SC
22247 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22248echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22249 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22250echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22251 ac_header_preproc=yes
a848cd7e 22252 ;;
ac1cb8d3 22253 no:yes:* )
a848cd7e
SC
22254 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22255echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22256 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22257echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22258 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22259echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22260 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22261echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22262 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22263echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22264 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22265echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22266 (
22267 cat <<\_ASBOX
ac1cb8d3
VS
22268## ----------------------------------------- ##
22269## Report this to wx-dev@lists.wxwidgets.org ##
22270## ----------------------------------------- ##
a848cd7e
SC
22271_ASBOX
22272 ) |
22273 sed "s/^/$as_me: WARNING: /" >&2
22274 ;;
22275esac
22276echo "$as_me:$LINENO: checking for mspack.h" >&5
22277echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22278if test "${ac_cv_header_mspack_h+set}" = set; then
22279 echo $ECHO_N "(cached) $ECHO_C" >&6
22280else
22281 ac_cv_header_mspack_h=$ac_header_preproc
22282fi
22283echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22284echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22285
22286fi
22287if test $ac_cv_header_mspack_h = yes; then
22288 found_mspack_h=1
22289fi
22290
22291
22292 if test "x$found_mspack_h" = "x1"; then
22293 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22294echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22295if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22297else
22298 ac_check_lib_save_LIBS=$LIBS
22299LIBS="-lmspack $LIBS"
22300cat >conftest.$ac_ext <<_ACEOF
22301/* confdefs.h. */
22302_ACEOF
22303cat confdefs.h >>conftest.$ac_ext
22304cat >>conftest.$ac_ext <<_ACEOF
22305/* end confdefs.h. */
22306
22307/* Override any gcc2 internal prototype to avoid an error. */
22308#ifdef __cplusplus
22309extern "C"
22310#endif
22311/* We use char because int might match the return type of a gcc2
22312 builtin and then its argument prototype would still apply. */
22313char mspack_create_chm_decompressor ();
22314int
22315main ()
22316{
22317mspack_create_chm_decompressor ();
22318 ;
22319 return 0;
22320}
22321_ACEOF
22322rm -f conftest.$ac_objext conftest$ac_exeext
22323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22324 (eval $ac_link) 2>conftest.er1
a848cd7e 22325 ac_status=$?
ac1cb8d3
VS
22326 grep -v '^ *+' conftest.er1 >conftest.err
22327 rm -f conftest.er1
22328 cat conftest.err >&5
a848cd7e
SC
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } &&
5294a27e 22331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22334 ac_status=$?
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22344else
22345 echo "$as_me: failed program was:" >&5
22346sed 's/^/| /' conftest.$ac_ext >&5
22347
22348ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22349fi
ac1cb8d3
VS
22350rm -f conftest.err conftest.$ac_objext \
22351 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22352LIBS=$ac_check_lib_save_LIBS
22353fi
22354echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22355echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22356if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22357 MSPACK_LINK=" -lmspack"
22358fi
22359
22360 fi
22361 if test "x$MSPACK_LINK" = "x" ; then
22362 wxUSE_LIBMSPACK=no
22363 else
22364 cat >>confdefs.h <<\_ACEOF
22365#define wxUSE_LIBMSPACK 1
22366_ACEOF
22367
22368 fi
22369fi
22370
22371
22372
22373AFMINSTALL=
22374WIN32INSTALL=
22375
22376TOOLKIT=
22377TOOLKIT_INCLUDE=
22378WIDGET_SET=
22379
22380if test "$USE_WIN32" = 1 ; then
22381
22382for ac_header in w32api.h
22383do
22384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22385if eval "test \"\${$as_ac_Header+set}\" = set"; then
22386 echo "$as_me:$LINENO: checking for $ac_header" >&5
22387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22388if eval "test \"\${$as_ac_Header+set}\" = set"; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22390fi
22391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22393else
22394 # Is the header compilable?
22395echo "$as_me:$LINENO: checking $ac_header usability" >&5
22396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22397cat >conftest.$ac_ext <<_ACEOF
22398/* confdefs.h. */
22399_ACEOF
22400cat confdefs.h >>conftest.$ac_ext
22401cat >>conftest.$ac_ext <<_ACEOF
22402/* end confdefs.h. */
22403$ac_includes_default
22404#include <$ac_header>
22405_ACEOF
22406rm -f conftest.$ac_objext
22407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22408 (eval $ac_compile) 2>conftest.er1
a848cd7e 22409 ac_status=$?
ac1cb8d3
VS
22410 grep -v '^ *+' conftest.er1 >conftest.err
22411 rm -f conftest.er1
22412 cat conftest.err >&5
a848cd7e
SC
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } &&
5294a27e 22415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22418 ac_status=$?
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; } &&
22421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
22427 ac_header_compiler=yes
22428else
22429 echo "$as_me: failed program was:" >&5
22430sed 's/^/| /' conftest.$ac_ext >&5
22431
22432ac_header_compiler=no
22433fi
ac1cb8d3 22434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22436echo "${ECHO_T}$ac_header_compiler" >&6
22437
22438# Is the header present?
22439echo "$as_me:$LINENO: checking $ac_header presence" >&5
22440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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#include <$ac_header>
22448_ACEOF
22449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22451 ac_status=$?
22452 grep -v '^ *+' conftest.er1 >conftest.err
22453 rm -f conftest.er1
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } >/dev/null; then
22457 if test -s conftest.err; then
22458 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22460 else
22461 ac_cpp_err=
22462 fi
22463else
22464 ac_cpp_err=yes
22465fi
22466if test -z "$ac_cpp_err"; then
22467 ac_header_preproc=yes
22468else
22469 echo "$as_me: failed program was:" >&5
22470sed 's/^/| /' conftest.$ac_ext >&5
22471
22472 ac_header_preproc=no
22473fi
22474rm -f conftest.err conftest.$ac_ext
22475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22476echo "${ECHO_T}$ac_header_preproc" >&6
22477
22478# So? What about this header?
ac1cb8d3
VS
22479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22480 yes:no: )
a848cd7e
SC
22481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22484echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22485 ac_header_preproc=yes
a848cd7e 22486 ;;
ac1cb8d3 22487 no:yes:* )
a848cd7e
SC
22488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22491echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22493echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22495echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22497echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22499echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22500 (
22501 cat <<\_ASBOX
ac1cb8d3
VS
22502## ----------------------------------------- ##
22503## Report this to wx-dev@lists.wxwidgets.org ##
22504## ----------------------------------------- ##
a848cd7e
SC
22505_ASBOX
22506 ) |
22507 sed "s/^/$as_me: WARNING: /" >&2
22508 ;;
22509esac
22510echo "$as_me:$LINENO: checking for $ac_header" >&5
22511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22512if eval "test \"\${$as_ac_Header+set}\" = set"; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22514else
ac1cb8d3 22515 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22516fi
22517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22519
22520fi
22521if test `eval echo '${'$as_ac_Header'}'` = yes; then
22522 cat >>confdefs.h <<_ACEOF
22523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22524_ACEOF
22525
22526fi
22527
22528done
22529
22530 if test "${ac_cv_header_windows_h+set}" = set; then
22531 echo "$as_me:$LINENO: checking for windows.h" >&5
22532echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22533if test "${ac_cv_header_windows_h+set}" = set; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22535fi
22536echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22537echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22538else
22539 # Is the header compilable?
22540echo "$as_me:$LINENO: checking windows.h usability" >&5
22541echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22542cat >conftest.$ac_ext <<_ACEOF
22543/* confdefs.h. */
22544_ACEOF
22545cat confdefs.h >>conftest.$ac_ext
22546cat >>conftest.$ac_ext <<_ACEOF
22547/* end confdefs.h. */
22548$ac_includes_default
22549#include <windows.h>
22550_ACEOF
22551rm -f conftest.$ac_objext
22552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22553 (eval $ac_compile) 2>conftest.er1
a848cd7e 22554 ac_status=$?
ac1cb8d3
VS
22555 grep -v '^ *+' conftest.er1 >conftest.err
22556 rm -f conftest.er1
22557 cat conftest.err >&5
a848cd7e
SC
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } &&
5294a27e 22560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; } &&
22566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 ac_header_compiler=yes
22573else
22574 echo "$as_me: failed program was:" >&5
22575sed 's/^/| /' conftest.$ac_ext >&5
22576
22577ac_header_compiler=no
22578fi
ac1cb8d3 22579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22581echo "${ECHO_T}$ac_header_compiler" >&6
22582
22583# Is the header present?
22584echo "$as_me:$LINENO: checking windows.h presence" >&5
22585echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22586cat >conftest.$ac_ext <<_ACEOF
22587/* confdefs.h. */
22588_ACEOF
22589cat confdefs.h >>conftest.$ac_ext
22590cat >>conftest.$ac_ext <<_ACEOF
22591/* end confdefs.h. */
22592#include <windows.h>
22593_ACEOF
22594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22596 ac_status=$?
22597 grep -v '^ *+' conftest.er1 >conftest.err
22598 rm -f conftest.er1
22599 cat conftest.err >&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } >/dev/null; then
22602 if test -s conftest.err; then
22603 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22605 else
22606 ac_cpp_err=
22607 fi
22608else
22609 ac_cpp_err=yes
22610fi
22611if test -z "$ac_cpp_err"; then
22612 ac_header_preproc=yes
22613else
22614 echo "$as_me: failed program was:" >&5
22615sed 's/^/| /' conftest.$ac_ext >&5
22616
22617 ac_header_preproc=no
22618fi
22619rm -f conftest.err conftest.$ac_ext
22620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22621echo "${ECHO_T}$ac_header_preproc" >&6
22622
22623# So? What about this header?
ac1cb8d3
VS
22624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22625 yes:no: )
a848cd7e
SC
22626 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22627echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22628 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22629echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22630 ac_header_preproc=yes
a848cd7e 22631 ;;
ac1cb8d3 22632 no:yes:* )
a848cd7e
SC
22633 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22634echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22635 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22636echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22637 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22638echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22639 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22640echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22641 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22642echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22643 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22644echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22645 (
22646 cat <<\_ASBOX
ac1cb8d3
VS
22647## ----------------------------------------- ##
22648## Report this to wx-dev@lists.wxwidgets.org ##
22649## ----------------------------------------- ##
a848cd7e
SC
22650_ASBOX
22651 ) |
22652 sed "s/^/$as_me: WARNING: /" >&2
22653 ;;
22654esac
22655echo "$as_me:$LINENO: checking for windows.h" >&5
22656echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22657if test "${ac_cv_header_windows_h+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
22659else
22660 ac_cv_header_windows_h=$ac_header_preproc
22661fi
22662echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22663echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22664
22665fi
22666if test $ac_cv_header_windows_h = yes; then
22667 :
22668else
22669
22670 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22671echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22672 { (exit 1); exit 1; }; }
22673
22674fi
22675
22676
22677
22678 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22679
22680 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22681 LIBS="$LIBS -loleacc"
22682 fi
22683
22684 case "${host}" in
22685 *-*-cygwin* )
22686 LIBS="$LIBS -lkernel32 -luser32"
22687 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22688 esac
22689
22690 if test "$wxUSE_ODBC" = "sys" ; then
22691 wxUSE_ODBC = "yes"
22692 fi
22693 if test "$wxUSE_ODBC" = "yes" ; then
22694 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22695 cat >>confdefs.h <<\_ACEOF
22696#define wxUSE_ODBC 1
22697_ACEOF
22698
22699 fi
22700
22701 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22702 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22703
22704 WIN32INSTALL=win32install
22705fi
22706
22707if test "$wxUSE_GUI" = "yes"; then
22708 USE_GUI=1
22709
22710 GUI_TK_LIBRARY=
22711
22712 WXGTK12=
22713 WXGTK127=
22714 WXGTK20=
22715 WXGPE=
22716
207bc66c
RN
22717 if test "$wxUSE_COCOA" = 1 ; then
22718 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22719 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22720echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22721 wxUSE_PRINTING_ARCHITECTURE=no
22722 fi
22723 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22724 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22725echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22726 wxUSE_DRAG_AND_DROP=no
22727 fi
22728 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22729 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22730echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22731 wxUSE_DRAGIMAGE=no
22732 fi
22733 fi
22734
a848cd7e
SC
22735 if test "$wxUSE_MSW" = 1 ; then
22736 TOOLKIT=MSW
22737 GUIDIST=MSW_DIST
22738
ceec2216 22739 case "${host}" in
a848cd7e
SC
22740 *-*-mingw32* )
22741 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22742 esac
22743 fi
22744
22745 if test "$wxUSE_GTK" = 1; then
22746 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22747echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22748
22749 gtk_version_cached=1
22750 if test "${wx_cv_lib_gtk+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22752else
22753
22754 gtk_version_cached=0
22755 echo "$as_me:$LINENO: result: " >&5
22756echo "${ECHO_T}" >&6
22757
22758 GTK_MODULES=
22759 if test "$wxUSE_THREADS" = "yes"; then
22760 GTK_MODULES=gthread
22761 fi
22762
22763 wx_cv_lib_gtk=
22764 if test "x$wxUSE_GTK2" = "xyes"; then
22765 # Check whether --enable-gtktest or --disable-gtktest was given.
22766if test "${enable_gtktest+set}" = set; then
22767 enableval="$enable_gtktest"
22768
22769else
22770 enable_gtktest=yes
22771fi;
22772
22773 pkg_config_args=gtk+-2.0
22774 for module in . $GTK_MODULES
22775 do
22776 case "$module" in
22777 gthread)
22778 pkg_config_args="$pkg_config_args gthread-2.0"
22779 ;;
22780 esac
22781 done
22782
22783 no_gtk=""
22784
22785 # Extract the first word of "pkg-config", so it can be a program name with args.
22786set dummy pkg-config; ac_word=$2
22787echo "$as_me:$LINENO: checking for $ac_word" >&5
22788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22789if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22791else
22792 case $PKG_CONFIG in
22793 [\\/]* | ?:[\\/]*)
22794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22795 ;;
22796 *)
22797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22798for as_dir in $PATH
22799do
22800 IFS=$as_save_IFS
22801 test -z "$as_dir" && as_dir=.
22802 for ac_exec_ext in '' $ac_executable_extensions; do
22803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22804 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22806 break 2
22807 fi
22808done
22809done
22810
22811 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22812 ;;
22813esac
22814fi
22815PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22816
22817if test -n "$PKG_CONFIG"; then
22818 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22819echo "${ECHO_T}$PKG_CONFIG" >&6
22820else
22821 echo "$as_me:$LINENO: result: no" >&5
22822echo "${ECHO_T}no" >&6
22823fi
22824
22825
22826 if test x$PKG_CONFIG != xno ; then
22827 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22828 :
22829 else
c2218763 22830 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22831 no_gtk=yes
22832 PKG_CONFIG=no
22833 fi
22834 else
22835 no_gtk=yes
22836 fi
22837
22838 min_gtk_version=2.0.0
22839 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22840echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22841
22842 if test x$PKG_CONFIG != xno ; then
22843 ## don't try to run the test against uninstalled libtool libs
22844 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22845 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22846 enable_gtktest=no
22847 fi
22848
22849 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22850 :
22851 else
22852 no_gtk=yes
22853 fi
22854 fi
22855
22856 if test x"$no_gtk" = x ; then
22857 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22858 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22859 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22860 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22861 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22862 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22863 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22864 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22865 if test "x$enable_gtktest" = "xyes" ; then
22866 ac_save_CFLAGS="$CFLAGS"
22867 ac_save_LIBS="$LIBS"
22868 CFLAGS="$CFLAGS $GTK_CFLAGS"
22869 LIBS="$GTK_LIBS $LIBS"
22870 rm -f conf.gtktest
22871 if test "$cross_compiling" = yes; then
22872 echo $ac_n "cross compiling; assumed OK... $ac_c"
22873else
22874 cat >conftest.$ac_ext <<_ACEOF
22875/* confdefs.h. */
22876_ACEOF
22877cat confdefs.h >>conftest.$ac_ext
22878cat >>conftest.$ac_ext <<_ACEOF
22879/* end confdefs.h. */
22880
22881#include <gtk/gtk.h>
22882#include <stdio.h>
22883#include <stdlib.h>
22884
22885int
22886main ()
22887{
22888 int major, minor, micro;
22889 char *tmp_version;
22890
22891 system ("touch conf.gtktest");
22892
22893 /* HP/UX 9 (%@#!) writes to sscanf strings */
22894 tmp_version = g_strdup("$min_gtk_version");
22895 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22896 printf("%s, bad version string\n", "$min_gtk_version");
22897 exit(1);
22898 }
22899
22900 if ((gtk_major_version != $gtk_config_major_version) ||
22901 (gtk_minor_version != $gtk_config_minor_version) ||
22902 (gtk_micro_version != $gtk_config_micro_version))
22903 {
22904 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22905 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22906 gtk_major_version, gtk_minor_version, gtk_micro_version);
22907 printf ("*** was found! If pkg-config was correct, then it is best\n");
22908 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22909 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22910 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22911 printf("*** required on your system.\n");
22912 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22913 printf("*** to point to the correct configuration files\n");
22914 }
22915 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22916 (gtk_minor_version != GTK_MINOR_VERSION) ||
22917 (gtk_micro_version != GTK_MICRO_VERSION))
22918 {
22919 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22920 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22921 printf("*** library (version %d.%d.%d)\n",
22922 gtk_major_version, gtk_minor_version, gtk_micro_version);
22923 }
22924 else
22925 {
22926 if ((gtk_major_version > major) ||
22927 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22928 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22929 {
22930 return 0;
22931 }
22932 else
22933 {
22934 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22935 gtk_major_version, gtk_minor_version, gtk_micro_version);
22936 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22937 major, minor, micro);
22938 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22939 printf("***\n");
22940 printf("*** If you have already installed a sufficiently new version, this error\n");
22941 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22942 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22943 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22944 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22945 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22946 printf("*** so that the correct libraries are found at run-time))\n");
22947 }
22948 }
22949 return 1;
22950}
22951
22952_ACEOF
22953rm -f conftest$ac_exeext
22954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22955 (eval $ac_link) 2>&5
22956 ac_status=$?
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; }; then
22964 :
22965else
22966 echo "$as_me: program exited with status $ac_status" >&5
22967echo "$as_me: failed program was:" >&5
22968sed 's/^/| /' conftest.$ac_ext >&5
22969
22970( exit $ac_status )
22971no_gtk=yes
22972fi
ac1cb8d3 22973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22974fi
22975 CFLAGS="$ac_save_CFLAGS"
22976 LIBS="$ac_save_LIBS"
22977 fi
22978 fi
22979 if test "x$no_gtk" = x ; then
22980 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22981echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22982 wx_cv_lib_gtk=2.0
22983 else
22984 echo "$as_me:$LINENO: result: no" >&5
22985echo "${ECHO_T}no" >&6
22986 if test "$PKG_CONFIG" = "no" ; then
22987 echo "*** A new enough version of pkg-config was not found."
22988 echo "*** See http://pkgconfig.sourceforge.net"
22989 else
22990 if test -f conf.gtktest ; then
22991 :
22992 else
22993 echo "*** Could not run GTK+ test program, checking why..."
22994 ac_save_CFLAGS="$CFLAGS"
22995 ac_save_LIBS="$LIBS"
22996 CFLAGS="$CFLAGS $GTK_CFLAGS"
22997 LIBS="$LIBS $GTK_LIBS"
22998 cat >conftest.$ac_ext <<_ACEOF
22999/* confdefs.h. */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h. */
23004
23005#include <gtk/gtk.h>
23006#include <stdio.h>
23007
23008int
23009main ()
23010{
23011 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23012 ;
23013 return 0;
23014}
23015_ACEOF
23016rm -f conftest.$ac_objext conftest$ac_exeext
23017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23018 (eval $ac_link) 2>conftest.er1
a848cd7e 23019 ac_status=$?
ac1cb8d3
VS
23020 grep -v '^ *+' conftest.er1 >conftest.err
23021 rm -f conftest.er1
23022 cat conftest.err >&5
a848cd7e
SC
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } &&
5294a27e 23025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23028 ac_status=$?
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; } &&
23031 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; }; then
23037 echo "*** The test program compiled, but did not run. This usually means"
23038 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23039 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23040 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23041 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23042 echo "*** is required on your system"
23043 echo "***"
23044 echo "*** If you have an old version installed, it is best to remove it, although"
23045 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23046else
23047 echo "$as_me: failed program was:" >&5
23048sed 's/^/| /' conftest.$ac_ext >&5
23049
23050 echo "*** The test program failed to compile or link. See the file config.log for the"
23051 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23052fi
ac1cb8d3
VS
23053rm -f conftest.err conftest.$ac_objext \
23054 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23055 CFLAGS="$ac_save_CFLAGS"
23056 LIBS="$ac_save_LIBS"
23057 fi
23058 fi
23059 GTK_CFLAGS=""
23060 GTK_LIBS=""
23061 :
23062 fi
23063
23064
23065 rm -f conf.gtktest
23066
23067 else
23068
23069# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23070if test "${with_gtk_prefix+set}" = set; then
23071 withval="$with_gtk_prefix"
23072 gtk_config_prefix="$withval"
23073else
23074 gtk_config_prefix=""
23075fi;
23076
23077# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23078if test "${with_gtk_exec_prefix+set}" = set; then
23079 withval="$with_gtk_exec_prefix"
23080 gtk_config_exec_prefix="$withval"
23081else
23082 gtk_config_exec_prefix=""
23083fi;
23084# Check whether --enable-gtktest or --disable-gtktest was given.
23085if test "${enable_gtktest+set}" = set; then
23086 enableval="$enable_gtktest"
23087
23088else
23089 enable_gtktest=yes
23090fi;
23091
23092 for module in . $GTK_MODULES
23093 do
23094 case "$module" in
23095 gthread)
23096 gtk_config_args="$gtk_config_args gthread"
23097 ;;
23098 esac
23099 done
23100
23101 if test x$gtk_config_exec_prefix != x ; then
23102 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23103 if test x${GTK_CONFIG+set} != xset ; then
23104 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23105 fi
23106 fi
23107 if test x$gtk_config_prefix != x ; then
23108 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23109 if test x${GTK_CONFIG+set} != xset ; then
23110 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23111 fi
23112 fi
23113
23114 # Extract the first word of "gtk-config", so it can be a program name with args.
23115set dummy gtk-config; ac_word=$2
23116echo "$as_me:$LINENO: checking for $ac_word" >&5
23117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23118if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23120else
23121 case $GTK_CONFIG in
23122 [\\/]* | ?:[\\/]*)
23123 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23124 ;;
23125 *)
23126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23127for as_dir in $PATH
23128do
23129 IFS=$as_save_IFS
23130 test -z "$as_dir" && as_dir=.
23131 for ac_exec_ext in '' $ac_executable_extensions; do
23132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23133 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23135 break 2
23136 fi
23137done
23138done
23139
23140 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23141 ;;
23142esac
23143fi
23144GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23145
23146if test -n "$GTK_CONFIG"; then
23147 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23148echo "${ECHO_T}$GTK_CONFIG" >&6
23149else
23150 echo "$as_me:$LINENO: result: no" >&5
23151echo "${ECHO_T}no" >&6
23152fi
23153
23154 min_gtk_version=1.2.7
23155 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23156echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23157 no_gtk=""
23158 if test "$GTK_CONFIG" = "no" ; then
23159 no_gtk=yes
23160 else
23161 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23162 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23163 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23165 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23166 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23167 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23168 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23169 if test "x$enable_gtktest" = "xyes" ; then
23170 ac_save_CFLAGS="$CFLAGS"
23171 ac_save_LIBS="$LIBS"
23172 CFLAGS="$CFLAGS $GTK_CFLAGS"
23173 LIBS="$GTK_LIBS $LIBS"
23174 rm -f conf.gtktest
23175 if test "$cross_compiling" = yes; then
23176 echo $ac_n "cross compiling; assumed OK... $ac_c"
23177else
23178 cat >conftest.$ac_ext <<_ACEOF
23179/* confdefs.h. */
23180_ACEOF
23181cat confdefs.h >>conftest.$ac_ext
23182cat >>conftest.$ac_ext <<_ACEOF
23183/* end confdefs.h. */
23184
23185#include <gtk/gtk.h>
23186#include <stdio.h>
23187#include <stdlib.h>
23188
23189int
23190main ()
23191{
23192 int major, minor, micro;
23193 char *tmp_version;
23194
23195 system ("touch conf.gtktest");
23196
23197 /* HP/UX 9 (%@#!) writes to sscanf strings */
23198 tmp_version = g_strdup("$min_gtk_version");
23199 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23200 printf("%s, bad version string\n", "$min_gtk_version");
23201 exit(1);
23202 }
23203
23204 if ((gtk_major_version != $gtk_config_major_version) ||
23205 (gtk_minor_version != $gtk_config_minor_version) ||
23206 (gtk_micro_version != $gtk_config_micro_version))
23207 {
23208 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23209 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23210 gtk_major_version, gtk_minor_version, gtk_micro_version);
23211 printf ("*** was found! If gtk-config was correct, then it is best\n");
23212 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23213 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23214 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23215 printf("*** required on your system.\n");
23216 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23217 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23218 printf("*** before re-running configure\n");
23219 }
23220#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23221 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23222 (gtk_minor_version != GTK_MINOR_VERSION) ||
23223 (gtk_micro_version != GTK_MICRO_VERSION))
23224 {
23225 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23226 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23227 printf("*** library (version %d.%d.%d)\n",
23228 gtk_major_version, gtk_minor_version, gtk_micro_version);
23229 }
23230#endif /* defined (GTK_MAJOR_VERSION) ... */
23231 else
23232 {
23233 if ((gtk_major_version > major) ||
23234 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23235 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23236 {
23237 return 0;
23238 }
23239 else
23240 {
23241 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23242 gtk_major_version, gtk_minor_version, gtk_micro_version);
23243 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23244 major, minor, micro);
23245 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23246 printf("***\n");
23247 printf("*** If you have already installed a sufficiently new version, this error\n");
23248 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23249 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23250 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23251 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23252 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23253 printf("*** so that the correct libraries are found at run-time))\n");
23254 }
23255 }
23256 return 1;
23257}
23258
23259_ACEOF
23260rm -f conftest$ac_exeext
23261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23262 (eval $ac_link) 2>&5
23263 ac_status=$?
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; }; then
23271 :
23272else
23273 echo "$as_me: program exited with status $ac_status" >&5
23274echo "$as_me: failed program was:" >&5
23275sed 's/^/| /' conftest.$ac_ext >&5
23276
23277( exit $ac_status )
23278no_gtk=yes
23279fi
ac1cb8d3 23280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23281fi
23282 CFLAGS="$ac_save_CFLAGS"
23283 LIBS="$ac_save_LIBS"
23284 fi
23285 fi
23286 if test "x$no_gtk" = x ; then
23287 echo "$as_me:$LINENO: result: yes" >&5
23288echo "${ECHO_T}yes" >&6
23289 wx_cv_lib_gtk=1.2.7
23290 else
23291 echo "$as_me:$LINENO: result: no" >&5
23292echo "${ECHO_T}no" >&6
23293 if test "$GTK_CONFIG" = "no" ; then
23294 echo "*** The gtk-config script installed by GTK could not be found"
23295 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23296 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23297 echo "*** full path to gtk-config."
23298 else
23299 if test -f conf.gtktest ; then
23300 :
23301 else
23302 echo "*** Could not run GTK test program, checking why..."
23303 CFLAGS="$CFLAGS $GTK_CFLAGS"
23304 LIBS="$LIBS $GTK_LIBS"
23305 cat >conftest.$ac_ext <<_ACEOF
23306/* confdefs.h. */
23307_ACEOF
23308cat confdefs.h >>conftest.$ac_ext
23309cat >>conftest.$ac_ext <<_ACEOF
23310/* end confdefs.h. */
23311
23312#include <gtk/gtk.h>
23313#include <stdio.h>
23314
23315int
23316main ()
23317{
23318 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23319 ;
23320 return 0;
23321}
23322_ACEOF
23323rm -f conftest.$ac_objext conftest$ac_exeext
23324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23325 (eval $ac_link) 2>conftest.er1
a848cd7e 23326 ac_status=$?
ac1cb8d3
VS
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
a848cd7e
SC
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
5294a27e 23332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23344 echo "*** The test program compiled, but did not run. This usually means"
23345 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23346 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23347 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23348 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23349 echo "*** is required on your system"
23350 echo "***"
23351 echo "*** If you have an old version installed, it is best to remove it, although"
23352 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23353 echo "***"
23354 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23355 echo "*** came with the system with the command"
23356 echo "***"
23357 echo "*** rpm --erase --nodeps gtk gtk-devel"
23358else
23359 echo "$as_me: failed program was:" >&5
23360sed 's/^/| /' conftest.$ac_ext >&5
23361
23362 echo "*** The test program failed to compile or link. See the file config.log for the"
23363 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23364 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23365 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23366fi
ac1cb8d3
VS
23367rm -f conftest.err conftest.$ac_objext \
23368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23369 CFLAGS="$ac_save_CFLAGS"
23370 LIBS="$ac_save_LIBS"
23371 fi
23372 fi
23373 GTK_CFLAGS=""
23374 GTK_LIBS=""
23375 :
23376 fi
23377
23378
23379 rm -f conf.gtktest
23380
23381
23382 if test -z "$wx_cv_lib_gtk"; then
23383
23384# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23385if test "${with_gtk_prefix+set}" = set; then
23386 withval="$with_gtk_prefix"
23387 gtk_config_prefix="$withval"
23388else
23389 gtk_config_prefix=""
23390fi;
23391
23392# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23393if test "${with_gtk_exec_prefix+set}" = set; then
23394 withval="$with_gtk_exec_prefix"
23395 gtk_config_exec_prefix="$withval"
23396else
23397 gtk_config_exec_prefix=""
23398fi;
23399# Check whether --enable-gtktest or --disable-gtktest was given.
23400if test "${enable_gtktest+set}" = set; then
23401 enableval="$enable_gtktest"
23402
23403else
23404 enable_gtktest=yes
23405fi;
23406
23407 for module in . $GTK_MODULES
23408 do
23409 case "$module" in
23410 gthread)
23411 gtk_config_args="$gtk_config_args gthread"
23412 ;;
23413 esac
23414 done
23415
23416 if test x$gtk_config_exec_prefix != x ; then
23417 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23418 if test x${GTK_CONFIG+set} != xset ; then
23419 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23420 fi
23421 fi
23422 if test x$gtk_config_prefix != x ; then
23423 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23424 if test x${GTK_CONFIG+set} != xset ; then
23425 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23426 fi
23427 fi
23428
23429 # Extract the first word of "gtk-config", so it can be a program name with args.
23430set dummy gtk-config; ac_word=$2
23431echo "$as_me:$LINENO: checking for $ac_word" >&5
23432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23433if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23435else
23436 case $GTK_CONFIG in
23437 [\\/]* | ?:[\\/]*)
23438 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23439 ;;
23440 *)
23441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23442for as_dir in $PATH
23443do
23444 IFS=$as_save_IFS
23445 test -z "$as_dir" && as_dir=.
23446 for ac_exec_ext in '' $ac_executable_extensions; do
23447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23448 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23450 break 2
23451 fi
23452done
23453done
23454
23455 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23456 ;;
23457esac
23458fi
23459GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23460
23461if test -n "$GTK_CONFIG"; then
23462 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23463echo "${ECHO_T}$GTK_CONFIG" >&6
23464else
23465 echo "$as_me:$LINENO: result: no" >&5
23466echo "${ECHO_T}no" >&6
23467fi
23468
23469 min_gtk_version=1.2.3
23470 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23471echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23472 no_gtk=""
23473 if test "$GTK_CONFIG" = "no" ; then
23474 no_gtk=yes
23475 else
23476 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23477 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23478 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23480 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23482 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23483 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23484 if test "x$enable_gtktest" = "xyes" ; then
23485 ac_save_CFLAGS="$CFLAGS"
23486 ac_save_LIBS="$LIBS"
23487 CFLAGS="$CFLAGS $GTK_CFLAGS"
23488 LIBS="$GTK_LIBS $LIBS"
23489 rm -f conf.gtktest
23490 if test "$cross_compiling" = yes; then
23491 echo $ac_n "cross compiling; assumed OK... $ac_c"
23492else
23493 cat >conftest.$ac_ext <<_ACEOF
23494/* confdefs.h. */
23495_ACEOF
23496cat confdefs.h >>conftest.$ac_ext
23497cat >>conftest.$ac_ext <<_ACEOF
23498/* end confdefs.h. */
23499
23500#include <gtk/gtk.h>
23501#include <stdio.h>
23502#include <stdlib.h>
23503
23504int
23505main ()
23506{
23507 int major, minor, micro;
23508 char *tmp_version;
23509
23510 system ("touch conf.gtktest");
23511
23512 /* HP/UX 9 (%@#!) writes to sscanf strings */
23513 tmp_version = g_strdup("$min_gtk_version");
23514 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23515 printf("%s, bad version string\n", "$min_gtk_version");
23516 exit(1);
23517 }
23518
23519 if ((gtk_major_version != $gtk_config_major_version) ||
23520 (gtk_minor_version != $gtk_config_minor_version) ||
23521 (gtk_micro_version != $gtk_config_micro_version))
23522 {
23523 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23524 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23525 gtk_major_version, gtk_minor_version, gtk_micro_version);
23526 printf ("*** was found! If gtk-config was correct, then it is best\n");
23527 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23528 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23529 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23530 printf("*** required on your system.\n");
23531 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23532 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23533 printf("*** before re-running configure\n");
23534 }
23535#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23536 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23537 (gtk_minor_version != GTK_MINOR_VERSION) ||
23538 (gtk_micro_version != GTK_MICRO_VERSION))
23539 {
23540 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23541 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23542 printf("*** library (version %d.%d.%d)\n",
23543 gtk_major_version, gtk_minor_version, gtk_micro_version);
23544 }
23545#endif /* defined (GTK_MAJOR_VERSION) ... */
23546 else
23547 {
23548 if ((gtk_major_version > major) ||
23549 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23550 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23551 {
23552 return 0;
23553 }
23554 else
23555 {
23556 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23557 gtk_major_version, gtk_minor_version, gtk_micro_version);
23558 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23559 major, minor, micro);
23560 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23561 printf("***\n");
23562 printf("*** If you have already installed a sufficiently new version, this error\n");
23563 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23564 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23565 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23566 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23567 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23568 printf("*** so that the correct libraries are found at run-time))\n");
23569 }
23570 }
23571 return 1;
23572}
23573
23574_ACEOF
23575rm -f conftest$ac_exeext
23576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23577 (eval $ac_link) 2>&5
23578 ac_status=$?
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 :
23587else
23588 echo "$as_me: program exited with status $ac_status" >&5
23589echo "$as_me: failed program was:" >&5
23590sed 's/^/| /' conftest.$ac_ext >&5
23591
23592( exit $ac_status )
23593no_gtk=yes
23594fi
ac1cb8d3 23595rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23596fi
23597 CFLAGS="$ac_save_CFLAGS"
23598 LIBS="$ac_save_LIBS"
23599 fi
23600 fi
23601 if test "x$no_gtk" = x ; then
23602 echo "$as_me:$LINENO: result: yes" >&5
23603echo "${ECHO_T}yes" >&6
23604 wx_cv_lib_gtk=1.2.3
23605 else
23606 echo "$as_me:$LINENO: result: no" >&5
23607echo "${ECHO_T}no" >&6
23608 if test "$GTK_CONFIG" = "no" ; then
23609 echo "*** The gtk-config script installed by GTK could not be found"
23610 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23611 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23612 echo "*** full path to gtk-config."
23613 else
23614 if test -f conf.gtktest ; then
23615 :
23616 else
23617 echo "*** Could not run GTK test program, checking why..."
23618 CFLAGS="$CFLAGS $GTK_CFLAGS"
23619 LIBS="$LIBS $GTK_LIBS"
23620 cat >conftest.$ac_ext <<_ACEOF
23621/* confdefs.h. */
23622_ACEOF
23623cat confdefs.h >>conftest.$ac_ext
23624cat >>conftest.$ac_ext <<_ACEOF
23625/* end confdefs.h. */
23626
23627#include <gtk/gtk.h>
23628#include <stdio.h>
23629
23630int
23631main ()
23632{
23633 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23634 ;
23635 return 0;
23636}
23637_ACEOF
23638rm -f conftest.$ac_objext conftest$ac_exeext
23639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23640 (eval $ac_link) 2>conftest.er1
a848cd7e 23641 ac_status=$?
ac1cb8d3
VS
23642 grep -v '^ *+' conftest.er1 >conftest.err
23643 rm -f conftest.er1
23644 cat conftest.err >&5
a848cd7e
SC
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
5294a27e 23647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; } &&
23653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23655 (eval $ac_try) 2>&5
23656 ac_status=$?
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); }; }; then
23659 echo "*** The test program compiled, but did not run. This usually means"
23660 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23661 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23662 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23663 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23664 echo "*** is required on your system"
23665 echo "***"
23666 echo "*** If you have an old version installed, it is best to remove it, although"
23667 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23668 echo "***"
23669 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23670 echo "*** came with the system with the command"
23671 echo "***"
23672 echo "*** rpm --erase --nodeps gtk gtk-devel"
23673else
23674 echo "$as_me: failed program was:" >&5
23675sed 's/^/| /' conftest.$ac_ext >&5
23676
23677 echo "*** The test program failed to compile or link. See the file config.log for the"
23678 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23679 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23680 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23681fi
ac1cb8d3
VS
23682rm -f conftest.err conftest.$ac_objext \
23683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23684 CFLAGS="$ac_save_CFLAGS"
23685 LIBS="$ac_save_LIBS"
23686 fi
23687 fi
23688 GTK_CFLAGS=""
23689 GTK_LIBS=""
23690 :
23691 fi
23692
23693
23694 rm -f conf.gtktest
23695
23696 fi
23697 fi
23698
23699 if test -z "$wx_cv_lib_gtk"; then
23700 wx_cv_lib_gtk=none
23701 else
23702 wx_cv_cflags_gtk=$GTK_CFLAGS
23703 wx_cv_libs_gtk=$GTK_LIBS
23704 fi
23705
23706
23707fi
23708
23709
23710 if test "$gtk_version_cached" = 1; then
23711 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23712echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23713 fi
23714
23715 case "$wx_cv_lib_gtk" in
23716 2.0) WXGTK20=1
23717 TOOLKIT_VERSION=2
23718 ;;
23719 1.2.7) WXGTK127=1
23720 WXGTK12=1
23721 ;;
23722 1.2.3) WXGTK12=1
23723 ;;
23724 *) { { echo "$as_me:$LINENO: error:
23725Please check that gtk-config is in path, the directory
23726where GTK+ libraries are installed (returned by
23727'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23728equivalent variable and GTK+ is version 1.2.3 or above.
23729 " >&5
23730echo "$as_me: error:
23731Please check that gtk-config is in path, the directory
23732where GTK+ libraries are installed (returned by
23733'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23734equivalent variable and GTK+ is version 1.2.3 or above.
23735 " >&2;}
23736 { (exit 1); exit 1; }; }
23737 ;;
23738 esac
23739
23740 if test "$WXGTK20" = 1; then
304205f1
VS
23741 save_CFLAGS="$CFLAGS"
23742 save_LIBS="$LIBS"
23743 CFLAGS="$CFLAGS $GTK_CFLAGS"
23744 LIBS="$LIBS $GTK_LIBS"
23745
9755e73b 23746
304205f1
VS
23747for ac_func in pango_font_family_is_monospace
23748do
23749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23750echo "$as_me:$LINENO: checking for $ac_func" >&5
23751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23752if eval "test \"\${$as_ac_var+set}\" = set"; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23754else
23755 cat >conftest.$ac_ext <<_ACEOF
23756/* confdefs.h. */
23757_ACEOF
23758cat confdefs.h >>conftest.$ac_ext
23759cat >>conftest.$ac_ext <<_ACEOF
23760/* end confdefs.h. */
23761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23763#define $ac_func innocuous_$ac_func
23764
23765/* System header to define __stub macros and hopefully few prototypes,
23766 which can conflict with char $ac_func (); below.
23767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23768 <limits.h> exists even on freestanding compilers. */
23769
23770#ifdef __STDC__
23771# include <limits.h>
23772#else
23773# include <assert.h>
23774#endif
23775
23776#undef $ac_func
23777
23778/* Override any gcc2 internal prototype to avoid an error. */
23779#ifdef __cplusplus
23780extern "C"
23781{
23782#endif
23783/* We use char because int might match the return type of a gcc2
23784 builtin and then its argument prototype would still apply. */
23785char $ac_func ();
23786/* The GNU C library defines this for functions which it implements
23787 to always fail with ENOSYS. Some functions are actually named
23788 something starting with __ and the normal name is an alias. */
23789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23790choke me
23791#else
23792char (*f) () = $ac_func;
23793#endif
23794#ifdef __cplusplus
23795}
23796#endif
23797
23798int
23799main ()
23800{
23801return f != $ac_func;
23802 ;
23803 return 0;
23804}
23805_ACEOF
23806rm -f conftest.$ac_objext conftest$ac_exeext
23807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23808 (eval $ac_link) 2>conftest.er1
23809 ac_status=$?
23810 grep -v '^ *+' conftest.er1 >conftest.err
23811 rm -f conftest.er1
23812 cat conftest.err >&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); } &&
5294a27e 23815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; } &&
23821 { ac_try='test -s conftest$ac_exeext'
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; }; then
23827 eval "$as_ac_var=yes"
23828else
23829 echo "$as_me: failed program was:" >&5
23830sed 's/^/| /' conftest.$ac_ext >&5
23831
23832eval "$as_ac_var=no"
23833fi
23834rm -f conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
23836fi
23837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23839if test `eval echo '${'$as_ac_var'}'` = yes; then
23840 cat >>confdefs.h <<_ACEOF
23841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23842_ACEOF
23843
23844fi
23845done
23846
9755e73b
VS
23847
23848 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
23849echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
23850 cat >conftest.$ac_ext <<_ACEOF
23851/* confdefs.h. */
23852_ACEOF
23853cat confdefs.h >>conftest.$ac_ext
23854cat >>conftest.$ac_ext <<_ACEOF
23855/* end confdefs.h. */
23856
23857 #include <gtk/gtk.h>
23858
23859int
23860main ()
23861{
23862
23863 #if !GTK_CHECK_VERSION(2,4,0)
23864 #error "Not GTK+ 2.4"
23865 #endif
23866
23867 ;
23868 return 0;
23869}
23870_ACEOF
23871rm -f conftest.$ac_objext
23872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23873 (eval $ac_compile) 2>conftest.er1
23874 ac_status=$?
23875 grep -v '^ *+' conftest.er1 >conftest.err
23876 rm -f conftest.er1
23877 cat conftest.err >&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } &&
5294a27e 23880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; } &&
23886 { ac_try='test -s conftest.$ac_objext'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892
23893 cat >>confdefs.h <<\_ACEOF
23894#define __WXGTK24__ 1
23895_ACEOF
23896
23897 echo "$as_me:$LINENO: result: yes" >&5
23898echo "${ECHO_T}yes" >&6
23899
23900else
23901 echo "$as_me: failed program was:" >&5
23902sed 's/^/| /' conftest.$ac_ext >&5
23903
23904
23905 echo "$as_me:$LINENO: result: no" >&5
23906echo "${ECHO_T}no" >&6
23907
23908fi
23909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23910
304205f1
VS
23911 CFLAGS="$save_CFLAGS"
23912 LIBS="$save_LIBS"
a848cd7e
SC
23913 else
23914 if test "$wxUSE_UNICODE" = "yes"; then
23915 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23916echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23917 wxUSE_UNICODE=no
23918 fi
23919 fi
23920
23921 if test "$USE_DARWIN" != 1; then
23922
23923for ac_func in poll
23924do
23925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23926echo "$as_me:$LINENO: checking for $ac_func" >&5
23927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23928if eval "test \"\${$as_ac_var+set}\" = set"; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23930else
23931 cat >conftest.$ac_ext <<_ACEOF
23932/* confdefs.h. */
23933_ACEOF
23934cat confdefs.h >>conftest.$ac_ext
23935cat >>conftest.$ac_ext <<_ACEOF
23936/* end confdefs.h. */
ac1cb8d3
VS
23937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23939#define $ac_func innocuous_$ac_func
23940
a848cd7e
SC
23941/* System header to define __stub macros and hopefully few prototypes,
23942 which can conflict with char $ac_func (); below.
23943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23944 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23945
a848cd7e
SC
23946#ifdef __STDC__
23947# include <limits.h>
23948#else
23949# include <assert.h>
23950#endif
ac1cb8d3
VS
23951
23952#undef $ac_func
23953
a848cd7e
SC
23954/* Override any gcc2 internal prototype to avoid an error. */
23955#ifdef __cplusplus
23956extern "C"
23957{
23958#endif
23959/* We use char because int might match the return type of a gcc2
23960 builtin and then its argument prototype would still apply. */
23961char $ac_func ();
23962/* The GNU C library defines this for functions which it implements
23963 to always fail with ENOSYS. Some functions are actually named
23964 something starting with __ and the normal name is an alias. */
23965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23966choke me
23967#else
23968char (*f) () = $ac_func;
23969#endif
23970#ifdef __cplusplus
23971}
23972#endif
23973
23974int
23975main ()
23976{
23977return f != $ac_func;
23978 ;
23979 return 0;
23980}
23981_ACEOF
23982rm -f conftest.$ac_objext conftest$ac_exeext
23983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23984 (eval $ac_link) 2>conftest.er1
a848cd7e 23985 ac_status=$?
ac1cb8d3
VS
23986 grep -v '^ *+' conftest.er1 >conftest.err
23987 rm -f conftest.er1
23988 cat conftest.err >&5
a848cd7e
SC
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } &&
5294a27e 23991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23993 (eval $ac_try) 2>&5
23994 ac_status=$?
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); }; } &&
23997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23999 (eval $ac_try) 2>&5
24000 ac_status=$?
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); }; }; then
24003 eval "$as_ac_var=yes"
24004else
24005 echo "$as_me: failed program was:" >&5
24006sed 's/^/| /' conftest.$ac_ext >&5
24007
24008eval "$as_ac_var=no"
24009fi
ac1cb8d3
VS
24010rm -f conftest.err conftest.$ac_objext \
24011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24012fi
24013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24015if test `eval echo '${'$as_ac_var'}'` = yes; then
24016 cat >>confdefs.h <<_ACEOF
24017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24018_ACEOF
24019
24020fi
24021done
24022
24023 fi
24024
24025 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24026 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24027
24028 AFMINSTALL=afminstall
24029 TOOLKIT=GTK
24030 GUIDIST=GTK_DIST
24031
24032 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24033echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24034if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24036else
24037 ac_check_lib_save_LIBS=$LIBS
24038LIBS="-lgdk $LIBS"
24039cat >conftest.$ac_ext <<_ACEOF
24040/* confdefs.h. */
24041_ACEOF
24042cat confdefs.h >>conftest.$ac_ext
24043cat >>conftest.$ac_ext <<_ACEOF
24044/* end confdefs.h. */
24045
24046/* Override any gcc2 internal prototype to avoid an error. */
24047#ifdef __cplusplus
24048extern "C"
24049#endif
24050/* We use char because int might match the return type of a gcc2
24051 builtin and then its argument prototype would still apply. */
24052char gdk_im_open ();
24053int
24054main ()
24055{
24056gdk_im_open ();
24057 ;
24058 return 0;
24059}
24060_ACEOF
24061rm -f conftest.$ac_objext conftest$ac_exeext
24062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24063 (eval $ac_link) 2>conftest.er1
a848cd7e 24064 ac_status=$?
ac1cb8d3
VS
24065 grep -v '^ *+' conftest.er1 >conftest.err
24066 rm -f conftest.er1
24067 cat conftest.err >&5
a848cd7e
SC
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } &&
5294a27e 24070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24072 (eval $ac_try) 2>&5
24073 ac_status=$?
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); }; } &&
24076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078 (eval $ac_try) 2>&5
24079 ac_status=$?
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); }; }; then
24082 ac_cv_lib_gdk_gdk_im_open=yes
24083else
24084 echo "$as_me: failed program was:" >&5
24085sed 's/^/| /' conftest.$ac_ext >&5
24086
24087ac_cv_lib_gdk_gdk_im_open=no
24088fi
ac1cb8d3
VS
24089rm -f conftest.err conftest.$ac_objext \
24090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24091LIBS=$ac_check_lib_save_LIBS
24092fi
24093echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24094echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24095if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24096 cat >>confdefs.h <<\_ACEOF
24097#define HAVE_XIM 1
24098_ACEOF
24099
24100fi
24101
24102
24103
24104 if test "$wxUSE_GPE" = "yes"; then
24105 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24106echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24107
24108ac_find_libraries=
24109for ac_dir in $SEARCH_LIB /usr/lib;
24110 do
24111 for ac_extension in a so sl dylib; do
24112 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24113 ac_find_libraries=$ac_dir
24114 break 2
24115 fi
24116 done
24117 done
24118
24119 if test "$ac_find_libraries" != "" ; then
24120
24121 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24122 result=$?
24123 if test $result = 0; then
24124 ac_path_to_link=""
24125 else
24126 ac_path_to_link=" -L$ac_find_libraries"
24127 fi
24128
24129 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24130 WXGPE=1
24131 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24132echo "${ECHO_T}found at $ac_find_libraries" >&6
24133 else
24134 echo "$as_me:$LINENO: result: not found" >&5
24135echo "${ECHO_T}not found" >&6
24136 fi
24137
24138 fi
24139 fi
24140
24141 if test "$wxUSE_MGL" = 1; then
24142 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24143echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24144 if test "x$MGL_ROOT" = x ; then
24145 echo "$as_me:$LINENO: result: not found" >&5
24146echo "${ECHO_T}not found" >&6
24147 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24148echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24149 { (exit 1); exit 1; }; }
24150 else
24151 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24152echo "${ECHO_T}$MGL_ROOT" >&6
24153 fi
24154
24155 echo "$as_me:$LINENO: checking for libmgl location" >&5
24156echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24157 case "${host}" in
24158 *-*-linux* )
24159 if test "x$wxUSE_SHARED" = xyes ; then
24160 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24161 else
24162 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24163 fi
24164 ;;
24165 *-pc-msdosdjgpp )
24166 mgl_os_candidates="dos32/dj2"
24167 ;;
24168 *)
24169 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24170echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24171 { (exit 1); exit 1; }; }
24172 esac
24173
24174 mgl_lib_type=""
24175 mgl_os=""
24176
24177 for mgl_os_i in $mgl_os_candidates ; do
24178 if test "x$mgl_os" = x ; then
24179 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24180 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24181 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24182 mgl_lib_type=debug
24183 mgl_os=$mgl_os_i
24184 fi
24185 fi
24186 if test "x$mgl_lib_type" = x ; then
24187 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24188 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24189 mgl_lib_type=release
24190 mgl_os=$mgl_os_i
24191 fi
24192 fi
24193 fi
24194 done
24195
24196 if test "x$mgl_os" = x ; then
24197 echo "$as_me:$LINENO: result: not found" >&5
24198echo "${ECHO_T}not found" >&6
24199 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24200echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24201 { (exit 1); exit 1; }; }
24202 fi
24203 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24204echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24205
24206 wxUSE_UNIVERSAL="yes"
24207
24208 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24209 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24210
24211 AFMINSTALL=afminstall
24212 TOOLKIT=MGL
24213 GUIDIST=MGL_DIST
24214 fi
24215
24216 if test "$wxUSE_MICROWIN" = 1; then
24217 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24218echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24219 if test "x$MICROWINDOWS" = x ; then
24220 echo "$as_me:$LINENO: result: not found" >&5
24221echo "${ECHO_T}not found" >&6
24222 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24223echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24224 { (exit 1); exit 1; }; }
24225 else
24226 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24227echo "${ECHO_T}$MICROWINDOWS" >&6
24228 fi
24229
24230 if test -f $MICROWINDOWS/lib/libmwin.a; then
24231 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24232echo "${ECHO_T}MicroWindows' libraries found." >&6
24233 else
24234 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24235echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24236 { (exit 1); exit 1; }; }
24237 fi
24238
24239 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24240 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24241
24242 wxUSE_UNIVERSAL="yes"
24243
24244 AFMINSTALL=afminstall
24245 TOOLKIT=MICROWIN
24246 GUIDIST=MICROWIN_DIST
24247
24248 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24249 fi
24250
74b84332 24251 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5294a27e
VZ
24252
24253if test "x$ac_path_x_has_been_run" != xyes; then
24254 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24255echo $ECHO_N "checking for X... $ECHO_C" >&6
24256
5294a27e 24257ac_path_x_has_been_run=yes
a848cd7e
SC
24258
24259# Check whether --with-x or --without-x was given.
24260if test "${with_x+set}" = set; then
24261 withval="$with_x"
24262
24263fi;
24264# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24265if test "x$with_x" = xno; then
24266 # The user explicitly disabled X.
24267 have_x=disabled
24268else
24269 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24270 # Both variables are already set.
24271 have_x=yes
24272 else
24273 if test "${ac_cv_have_x+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24275else
24276 # One or both of the vars are not set, and there is no cached value.
24277ac_x_includes=no ac_x_libraries=no
24278rm -fr conftest.dir
24279if mkdir conftest.dir; then
24280 cd conftest.dir
24281 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24282 cat >Imakefile <<'_ACEOF'
24283acfindx:
24284 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24285_ACEOF
24286 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24288 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24289 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24290 for ac_extension in a so sl; do
24291 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24292 test -f $ac_im_libdir/libX11.$ac_extension; then
24293 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24294 fi
24295 done
24296 # Screen out bogus values from the imake configuration. They are
24297 # bogus both because they are the default anyway, and because
24298 # using them would break gcc on systems where it needs fixed includes.
24299 case $ac_im_incroot in
24300 /usr/include) ;;
24301 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24302 esac
24303 case $ac_im_usrlibdir in
24304 /usr/lib | /lib) ;;
24305 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24306 esac
24307 fi
24308 cd ..
24309 rm -fr conftest.dir
24310fi
24311
24312# Standard set of common directories for X headers.
24313# Check X11 before X11Rn because it is often a symlink to the current release.
24314ac_x_header_dirs='
24315/usr/X11/include
24316/usr/X11R6/include
24317/usr/X11R5/include
24318/usr/X11R4/include
24319
24320/usr/include/X11
24321/usr/include/X11R6
24322/usr/include/X11R5
24323/usr/include/X11R4
24324
24325/usr/local/X11/include
24326/usr/local/X11R6/include
24327/usr/local/X11R5/include
24328/usr/local/X11R4/include
24329
24330/usr/local/include/X11
24331/usr/local/include/X11R6
24332/usr/local/include/X11R5
24333/usr/local/include/X11R4
24334
24335/usr/X386/include
24336/usr/x386/include
24337/usr/XFree86/include/X11
24338
24339/usr/include
24340/usr/local/include
24341/usr/unsupported/include
24342/usr/athena/include
24343/usr/local/x11r5/include
24344/usr/lpp/Xamples/include
24345
24346/usr/openwin/include
24347/usr/openwin/share/include'
24348
24349if test "$ac_x_includes" = no; then
5294a27e 24350 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24351 # First, try using that file with no special directory specified.
24352 cat >conftest.$ac_ext <<_ACEOF
24353/* confdefs.h. */
24354_ACEOF
24355cat confdefs.h >>conftest.$ac_ext
24356cat >>conftest.$ac_ext <<_ACEOF
24357/* end confdefs.h. */
24358#include <X11/Intrinsic.h>
24359_ACEOF
24360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24362 ac_status=$?
24363 grep -v '^ *+' conftest.er1 >conftest.err
24364 rm -f conftest.er1
24365 cat conftest.err >&5
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); } >/dev/null; then
24368 if test -s conftest.err; then
24369 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24371 else
24372 ac_cpp_err=
24373 fi
24374else
24375 ac_cpp_err=yes
24376fi
24377if test -z "$ac_cpp_err"; then
24378 # We can compile using X headers with no special include directory.
24379ac_x_includes=
24380else
24381 echo "$as_me: failed program was:" >&5
24382sed 's/^/| /' conftest.$ac_ext >&5
24383
24384 for ac_dir in $ac_x_header_dirs; do
24385 if test -r "$ac_dir/X11/Intrinsic.h"; then
24386 ac_x_includes=$ac_dir
24387 break
24388 fi
24389done
24390fi
24391rm -f conftest.err conftest.$ac_ext
24392fi # $ac_x_includes = no
24393
24394if test "$ac_x_libraries" = no; then
24395 # Check for the libraries.
24396 # See if we find them without any special options.
24397 # Don't add to $LIBS permanently.
24398 ac_save_LIBS=$LIBS
24399 LIBS="-lXt $LIBS"
24400 cat >conftest.$ac_ext <<_ACEOF
24401/* confdefs.h. */
24402_ACEOF
24403cat confdefs.h >>conftest.$ac_ext
24404cat >>conftest.$ac_ext <<_ACEOF
24405/* end confdefs.h. */
24406#include <X11/Intrinsic.h>
24407int
24408main ()
24409{
24410XtMalloc (0)
24411 ;
24412 return 0;
24413}
24414_ACEOF
24415rm -f conftest.$ac_objext conftest$ac_exeext
24416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24417 (eval $ac_link) 2>conftest.er1
a848cd7e 24418 ac_status=$?
ac1cb8d3
VS
24419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
a848cd7e
SC
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } &&
5294a27e 24424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; } &&
24430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432 (eval $ac_try) 2>&5
24433 ac_status=$?
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); }; }; then
24436 LIBS=$ac_save_LIBS
24437# We can link X programs with no special library path.
24438ac_x_libraries=
24439else
24440 echo "$as_me: failed program was:" >&5
24441sed 's/^/| /' conftest.$ac_ext >&5
24442
24443LIBS=$ac_save_LIBS
24444for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24445do
24446 # Don't even attempt the hair of trying to link an X program!
24447 for ac_extension in a so sl; do
24448 if test -r $ac_dir/libXt.$ac_extension; then
24449 ac_x_libraries=$ac_dir
24450 break 2
24451 fi
24452 done
24453done
24454fi
ac1cb8d3
VS
24455rm -f conftest.err conftest.$ac_objext \
24456 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24457fi # $ac_x_libraries = no
24458
24459if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24460 # Didn't find X anywhere. Cache the known absence of X.
24461 ac_cv_have_x="have_x=no"
24462else
24463 # Record where we found X for the cache.
24464 ac_cv_have_x="have_x=yes \
ac1cb8d3 24465 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24466fi
24467fi
24468
24469 fi
24470 eval "$ac_cv_have_x"
24471fi # $with_x != no
24472
24473if test "$have_x" != yes; then
24474 echo "$as_me:$LINENO: result: $have_x" >&5
24475echo "${ECHO_T}$have_x" >&6
24476 no_x=yes
24477else
24478 # If each of the values was on the command line, it overrides each guess.
24479 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24480 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24481 # Update the cache value to reflect the command line values.
24482 ac_cv_have_x="have_x=yes \
24483 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5294a27e
VZ
24484 # It might be that x_includes is empty (headers are found in the
24485 # standard search path. Then output the corresponding message
24486 ac_out_x_includes=$x_includes
24487 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24488 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24489echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24490fi
24491
5294a27e 24492fi
a848cd7e
SC
24493if test "$no_x" = yes; then
24494 # Not all programs may use this symbol, but it does not hurt to define it.
24495
24496cat >>confdefs.h <<\_ACEOF
24497#define X_DISPLAY_MISSING 1
24498_ACEOF
24499
24500 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24501else
24502 if test -n "$x_includes"; then
24503 X_CFLAGS="$X_CFLAGS -I$x_includes"
24504 fi
24505
24506 # It would also be nice to do this for all -L options, not just this one.
24507 if test -n "$x_libraries"; then
24508 X_LIBS="$X_LIBS -L$x_libraries"
24509 # For Solaris; some versions of Sun CC require a space after -R and
24510 # others require no space. Words are not sufficient . . . .
24511 case `(uname -sr) 2>/dev/null` in
24512 "SunOS 5"*)
24513 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24514echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24515 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24516 cat >conftest.$ac_ext <<_ACEOF
24517/* confdefs.h. */
24518_ACEOF
24519cat confdefs.h >>conftest.$ac_ext
24520cat >>conftest.$ac_ext <<_ACEOF
24521/* end confdefs.h. */
24522
24523int
24524main ()
24525{
24526
24527 ;
24528 return 0;
24529}
24530_ACEOF
24531rm -f conftest.$ac_objext conftest$ac_exeext
24532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24533 (eval $ac_link) 2>conftest.er1
a848cd7e 24534 ac_status=$?
ac1cb8d3
VS
24535 grep -v '^ *+' conftest.er1 >conftest.err
24536 rm -f conftest.er1
24537 cat conftest.err >&5
a848cd7e
SC
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); } &&
5294a27e 24540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24542 (eval $ac_try) 2>&5
24543 ac_status=$?
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); }; } &&
24546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; }; then
24552 ac_R_nospace=yes
24553else
24554 echo "$as_me: failed program was:" >&5
24555sed 's/^/| /' conftest.$ac_ext >&5
24556
24557ac_R_nospace=no
24558fi
ac1cb8d3
VS
24559rm -f conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24561 if test $ac_R_nospace = yes; then
24562 echo "$as_me:$LINENO: result: no" >&5
24563echo "${ECHO_T}no" >&6
24564 X_LIBS="$X_LIBS -R$x_libraries"
24565 else
24566 LIBS="$ac_xsave_LIBS -R $x_libraries"
24567 cat >conftest.$ac_ext <<_ACEOF
24568/* confdefs.h. */
24569_ACEOF
24570cat confdefs.h >>conftest.$ac_ext
24571cat >>conftest.$ac_ext <<_ACEOF
24572/* end confdefs.h. */
24573
24574int
24575main ()
24576{
24577
24578 ;
24579 return 0;
24580}
24581_ACEOF
24582rm -f conftest.$ac_objext conftest$ac_exeext
24583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24584 (eval $ac_link) 2>conftest.er1
a848cd7e 24585 ac_status=$?
ac1cb8d3
VS
24586 grep -v '^ *+' conftest.er1 >conftest.err
24587 rm -f conftest.er1
24588 cat conftest.err >&5
a848cd7e
SC
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); } &&
5294a27e 24591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593 (eval $ac_try) 2>&5
24594 ac_status=$?
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; } &&
24597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; }; then
24603 ac_R_space=yes
24604else
24605 echo "$as_me: failed program was:" >&5
24606sed 's/^/| /' conftest.$ac_ext >&5
24607
24608ac_R_space=no
24609fi
ac1cb8d3
VS
24610rm -f conftest.err conftest.$ac_objext \
24611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24612 if test $ac_R_space = yes; then
24613 echo "$as_me:$LINENO: result: yes" >&5
24614echo "${ECHO_T}yes" >&6
24615 X_LIBS="$X_LIBS -R $x_libraries"
24616 else
24617 echo "$as_me:$LINENO: result: neither works" >&5
24618echo "${ECHO_T}neither works" >&6
24619 fi
24620 fi
24621 LIBS=$ac_xsave_LIBS
24622 esac
24623 fi
24624
24625 # Check for system-dependent libraries X programs must link with.
24626 # Do this before checking for the system-independent R6 libraries
24627 # (-lICE), since we may need -lsocket or whatever for X linking.
24628
24629 if test "$ISC" = yes; then
24630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24631 else
24632 # Martyn Johnson says this is needed for Ultrix, if the X
24633 # libraries were built with DECnet support. And Karl Berry says
24634 # the Alpha needs dnet_stub (dnet does not exist).
24635 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24636 cat >conftest.$ac_ext <<_ACEOF
24637/* confdefs.h. */
24638_ACEOF
24639cat confdefs.h >>conftest.$ac_ext
24640cat >>conftest.$ac_ext <<_ACEOF
24641/* end confdefs.h. */
24642
24643/* Override any gcc2 internal prototype to avoid an error. */
24644#ifdef __cplusplus
24645extern "C"
24646#endif
24647/* We use char because int might match the return type of a gcc2
24648 builtin and then its argument prototype would still apply. */
24649char XOpenDisplay ();
24650int
24651main ()
24652{
24653XOpenDisplay ();
24654 ;
24655 return 0;
24656}
24657_ACEOF
24658rm -f conftest.$ac_objext conftest$ac_exeext
24659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24660 (eval $ac_link) 2>conftest.er1
a848cd7e 24661 ac_status=$?
ac1cb8d3
VS
24662 grep -v '^ *+' conftest.er1 >conftest.err
24663 rm -f conftest.er1
24664 cat conftest.err >&5
a848cd7e
SC
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } &&
5294a27e 24667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; } &&
24673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; }; then
24679 :
24680else
24681 echo "$as_me: failed program was:" >&5
24682sed 's/^/| /' conftest.$ac_ext >&5
24683
24684echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24685echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24686if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24688else
24689 ac_check_lib_save_LIBS=$LIBS
24690LIBS="-ldnet $LIBS"
24691cat >conftest.$ac_ext <<_ACEOF
24692/* confdefs.h. */
24693_ACEOF
24694cat confdefs.h >>conftest.$ac_ext
24695cat >>conftest.$ac_ext <<_ACEOF
24696/* end confdefs.h. */
24697
24698/* Override any gcc2 internal prototype to avoid an error. */
24699#ifdef __cplusplus
24700extern "C"
24701#endif
24702/* We use char because int might match the return type of a gcc2
24703 builtin and then its argument prototype would still apply. */
24704char dnet_ntoa ();
24705int
24706main ()
24707{
24708dnet_ntoa ();
24709 ;
24710 return 0;
24711}
24712_ACEOF
24713rm -f conftest.$ac_objext conftest$ac_exeext
24714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24715 (eval $ac_link) 2>conftest.er1
a848cd7e 24716 ac_status=$?
ac1cb8d3
VS
24717 grep -v '^ *+' conftest.er1 >conftest.err
24718 rm -f conftest.er1
24719 cat conftest.err >&5
a848cd7e
SC
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } &&
5294a27e 24722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); }; } &&
24728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730 (eval $ac_try) 2>&5
24731 ac_status=$?
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; }; then
24734 ac_cv_lib_dnet_dnet_ntoa=yes
24735else
24736 echo "$as_me: failed program was:" >&5
24737sed 's/^/| /' conftest.$ac_ext >&5
24738
24739ac_cv_lib_dnet_dnet_ntoa=no
24740fi
ac1cb8d3
VS
24741rm -f conftest.err conftest.$ac_objext \
24742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24743LIBS=$ac_check_lib_save_LIBS
24744fi
24745echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24746echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24747if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24748 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24749fi
24750
24751 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24752 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24753echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24754if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24756else
24757 ac_check_lib_save_LIBS=$LIBS
24758LIBS="-ldnet_stub $LIBS"
24759cat >conftest.$ac_ext <<_ACEOF
24760/* confdefs.h. */
24761_ACEOF
24762cat confdefs.h >>conftest.$ac_ext
24763cat >>conftest.$ac_ext <<_ACEOF
24764/* end confdefs.h. */
24765
24766/* Override any gcc2 internal prototype to avoid an error. */
24767#ifdef __cplusplus
24768extern "C"
24769#endif
24770/* We use char because int might match the return type of a gcc2
24771 builtin and then its argument prototype would still apply. */
24772char dnet_ntoa ();
24773int
24774main ()
24775{
24776dnet_ntoa ();
24777 ;
24778 return 0;
24779}
24780_ACEOF
24781rm -f conftest.$ac_objext conftest$ac_exeext
24782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24783 (eval $ac_link) 2>conftest.er1
a848cd7e 24784 ac_status=$?
ac1cb8d3
VS
24785 grep -v '^ *+' conftest.er1 >conftest.err
24786 rm -f conftest.er1
24787 cat conftest.err >&5
a848cd7e
SC
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } &&
5294a27e 24790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; } &&
24796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; }; then
24802 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24803else
24804 echo "$as_me: failed program was:" >&5
24805sed 's/^/| /' conftest.$ac_ext >&5
24806
24807ac_cv_lib_dnet_stub_dnet_ntoa=no
24808fi
ac1cb8d3
VS
24809rm -f conftest.err conftest.$ac_objext \
24810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24811LIBS=$ac_check_lib_save_LIBS
24812fi
24813echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24814echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24815if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24816 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24817fi
24818
24819 fi
24820fi
ac1cb8d3
VS
24821rm -f conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24823 LIBS="$ac_xsave_LIBS"
24824
24825 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24826 # to get the SysV transport functions.
24827 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24828 # needs -lnsl.
24829 # The nsl library prevents programs from opening the X display
24830 # on Irix 5.2, according to T.E. Dickey.
24831 # The functions gethostbyname, getservbyname, and inet_addr are
24832 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24833 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24834echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24835if test "${ac_cv_func_gethostbyname+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24837else
24838 cat >conftest.$ac_ext <<_ACEOF
24839/* confdefs.h. */
24840_ACEOF
24841cat confdefs.h >>conftest.$ac_ext
24842cat >>conftest.$ac_ext <<_ACEOF
24843/* end confdefs.h. */
ac1cb8d3
VS
24844/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24846#define gethostbyname innocuous_gethostbyname
24847
a848cd7e
SC
24848/* System header to define __stub macros and hopefully few prototypes,
24849 which can conflict with char gethostbyname (); below.
24850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24851 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24852
a848cd7e
SC
24853#ifdef __STDC__
24854# include <limits.h>
24855#else
24856# include <assert.h>
24857#endif
ac1cb8d3
VS
24858
24859#undef gethostbyname
24860
a848cd7e
SC
24861/* Override any gcc2 internal prototype to avoid an error. */
24862#ifdef __cplusplus
24863extern "C"
24864{
24865#endif
24866/* We use char because int might match the return type of a gcc2
24867 builtin and then its argument prototype would still apply. */
24868char gethostbyname ();
24869/* The GNU C library defines this for functions which it implements
24870 to always fail with ENOSYS. Some functions are actually named
24871 something starting with __ and the normal name is an alias. */
24872#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24873choke me
24874#else
24875char (*f) () = gethostbyname;
24876#endif
24877#ifdef __cplusplus
24878}
24879#endif
24880
24881int
24882main ()
24883{
24884return f != gethostbyname;
24885 ;
24886 return 0;
24887}
24888_ACEOF
24889rm -f conftest.$ac_objext conftest$ac_exeext
24890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24891 (eval $ac_link) 2>conftest.er1
a848cd7e 24892 ac_status=$?
ac1cb8d3
VS
24893 grep -v '^ *+' conftest.er1 >conftest.err
24894 rm -f conftest.er1
24895 cat conftest.err >&5
a848cd7e
SC
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } &&
5294a27e 24898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; } &&
24904 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); }; }; then
24910 ac_cv_func_gethostbyname=yes
24911else
24912 echo "$as_me: failed program was:" >&5
24913sed 's/^/| /' conftest.$ac_ext >&5
24914
24915ac_cv_func_gethostbyname=no
24916fi
ac1cb8d3
VS
24917rm -f conftest.err conftest.$ac_objext \
24918 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24919fi
24920echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24921echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24922
24923 if test $ac_cv_func_gethostbyname = no; then
24924 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24925echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24926if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24928else
24929 ac_check_lib_save_LIBS=$LIBS
24930LIBS="-lnsl $LIBS"
24931cat >conftest.$ac_ext <<_ACEOF
24932/* confdefs.h. */
24933_ACEOF
24934cat confdefs.h >>conftest.$ac_ext
24935cat >>conftest.$ac_ext <<_ACEOF
24936/* end confdefs.h. */
24937
24938/* Override any gcc2 internal prototype to avoid an error. */
24939#ifdef __cplusplus
24940extern "C"
24941#endif
24942/* We use char because int might match the return type of a gcc2
24943 builtin and then its argument prototype would still apply. */
24944char gethostbyname ();
24945int
24946main ()
24947{
24948gethostbyname ();
24949 ;
24950 return 0;
24951}
24952_ACEOF
24953rm -f conftest.$ac_objext conftest$ac_exeext
24954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24955 (eval $ac_link) 2>conftest.er1
24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } &&
5294a27e 24962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24964 (eval $ac_try) 2>&5
24965 ac_status=$?
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); }; } &&
24968 { ac_try='test -s conftest$ac_exeext'
24969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970 (eval $ac_try) 2>&5
24971 ac_status=$?
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; }; then
24974 ac_cv_lib_nsl_gethostbyname=yes
24975else
24976 echo "$as_me: failed program was:" >&5
24977sed 's/^/| /' conftest.$ac_ext >&5
24978
24979ac_cv_lib_nsl_gethostbyname=no
24980fi
24981rm -f conftest.err conftest.$ac_objext \
24982 conftest$ac_exeext conftest.$ac_ext
24983LIBS=$ac_check_lib_save_LIBS
24984fi
24985echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24986echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24987if test $ac_cv_lib_nsl_gethostbyname = yes; then
24988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24989fi
24990
24991 if test $ac_cv_lib_nsl_gethostbyname = no; then
24992 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24993echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24994if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24996else
24997 ac_check_lib_save_LIBS=$LIBS
24998LIBS="-lbsd $LIBS"
24999cat >conftest.$ac_ext <<_ACEOF
25000/* confdefs.h. */
25001_ACEOF
25002cat confdefs.h >>conftest.$ac_ext
25003cat >>conftest.$ac_ext <<_ACEOF
25004/* end confdefs.h. */
25005
25006/* Override any gcc2 internal prototype to avoid an error. */
25007#ifdef __cplusplus
25008extern "C"
25009#endif
25010/* We use char because int might match the return type of a gcc2
25011 builtin and then its argument prototype would still apply. */
25012char gethostbyname ();
25013int
25014main ()
25015{
25016gethostbyname ();
25017 ;
25018 return 0;
25019}
25020_ACEOF
25021rm -f conftest.$ac_objext conftest$ac_exeext
25022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25023 (eval $ac_link) 2>conftest.er1
a848cd7e 25024 ac_status=$?
ac1cb8d3
VS
25025 grep -v '^ *+' conftest.er1 >conftest.err
25026 rm -f conftest.er1
25027 cat conftest.err >&5
a848cd7e
SC
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } &&
5294a27e 25030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25035 (exit $ac_status); }; } &&
25036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25038 (eval $ac_try) 2>&5
25039 ac_status=$?
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); }; }; then
25042 ac_cv_lib_bsd_gethostbyname=yes
25043else
25044 echo "$as_me: failed program was:" >&5
25045sed 's/^/| /' conftest.$ac_ext >&5
25046
25047ac_cv_lib_bsd_gethostbyname=no
25048fi
ac1cb8d3
VS
25049rm -f conftest.err conftest.$ac_objext \
25050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25051LIBS=$ac_check_lib_save_LIBS
25052fi
25053echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25054echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25055if test $ac_cv_lib_bsd_gethostbyname = yes; then
25056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25057fi
25058
25059 fi
25060 fi
25061
25062 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25063 # socket/setsockopt and other routines are undefined under SCO ODT
25064 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25065 # on later versions), says Simon Leinen: it contains gethostby*
25066 # variants that don't use the name server (or something). -lsocket
25067 # must be given before -lnsl if both are needed. We assume that
25068 # if connect needs -lnsl, so does gethostbyname.
25069 echo "$as_me:$LINENO: checking for connect" >&5
25070echo $ECHO_N "checking for connect... $ECHO_C" >&6
25071if test "${ac_cv_func_connect+set}" = set; then
25072 echo $ECHO_N "(cached) $ECHO_C" >&6
25073else
25074 cat >conftest.$ac_ext <<_ACEOF
25075/* confdefs.h. */
25076_ACEOF
25077cat confdefs.h >>conftest.$ac_ext
25078cat >>conftest.$ac_ext <<_ACEOF
25079/* end confdefs.h. */
ac1cb8d3
VS
25080/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25082#define connect innocuous_connect
25083
a848cd7e
SC
25084/* System header to define __stub macros and hopefully few prototypes,
25085 which can conflict with char connect (); below.
25086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25087 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25088
a848cd7e
SC
25089#ifdef __STDC__
25090# include <limits.h>
25091#else
25092# include <assert.h>
25093#endif
ac1cb8d3
VS
25094
25095#undef connect
25096
a848cd7e
SC
25097/* Override any gcc2 internal prototype to avoid an error. */
25098#ifdef __cplusplus
25099extern "C"
25100{
25101#endif
25102/* We use char because int might match the return type of a gcc2
25103 builtin and then its argument prototype would still apply. */
25104char connect ();
25105/* The GNU C library defines this for functions which it implements
25106 to always fail with ENOSYS. Some functions are actually named
25107 something starting with __ and the normal name is an alias. */
25108#if defined (__stub_connect) || defined (__stub___connect)
25109choke me
25110#else
25111char (*f) () = connect;
25112#endif
25113#ifdef __cplusplus
25114}
25115#endif
25116
25117int
25118main ()
25119{
25120return f != connect;
25121 ;
25122 return 0;
25123}
25124_ACEOF
25125rm -f conftest.$ac_objext conftest$ac_exeext
25126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25127 (eval $ac_link) 2>conftest.er1
a848cd7e 25128 ac_status=$?
ac1cb8d3
VS
25129 grep -v '^ *+' conftest.er1 >conftest.err
25130 rm -f conftest.er1
25131 cat conftest.err >&5
a848cd7e
SC
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } &&
5294a27e 25134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25137 ac_status=$?
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; } &&
25140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; }; then
25146 ac_cv_func_connect=yes
25147else
25148 echo "$as_me: failed program was:" >&5
25149sed 's/^/| /' conftest.$ac_ext >&5
25150
25151ac_cv_func_connect=no
25152fi
ac1cb8d3
VS
25153rm -f conftest.err conftest.$ac_objext \
25154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25155fi
25156echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25157echo "${ECHO_T}$ac_cv_func_connect" >&6
25158
25159 if test $ac_cv_func_connect = no; then
25160 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25161echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25162if test "${ac_cv_lib_socket_connect+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25164else
25165 ac_check_lib_save_LIBS=$LIBS
25166LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25167cat >conftest.$ac_ext <<_ACEOF
25168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
25173
25174/* Override any gcc2 internal prototype to avoid an error. */
25175#ifdef __cplusplus
25176extern "C"
25177#endif
25178/* We use char because int might match the return type of a gcc2
25179 builtin and then its argument prototype would still apply. */
25180char connect ();
25181int
25182main ()
25183{
25184connect ();
25185 ;
25186 return 0;
25187}
25188_ACEOF
25189rm -f conftest.$ac_objext conftest$ac_exeext
25190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25191 (eval $ac_link) 2>conftest.er1
a848cd7e 25192 ac_status=$?
ac1cb8d3
VS
25193 grep -v '^ *+' conftest.er1 >conftest.err
25194 rm -f conftest.er1
25195 cat conftest.err >&5
a848cd7e
SC
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } &&
5294a27e 25198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; } &&
25204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; }; then
25210 ac_cv_lib_socket_connect=yes
25211else
25212 echo "$as_me: failed program was:" >&5
25213sed 's/^/| /' conftest.$ac_ext >&5
25214
25215ac_cv_lib_socket_connect=no
25216fi
ac1cb8d3
VS
25217rm -f conftest.err conftest.$ac_objext \
25218 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25219LIBS=$ac_check_lib_save_LIBS
25220fi
25221echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25222echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25223if test $ac_cv_lib_socket_connect = yes; then
25224 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25225fi
25226
25227 fi
25228
25229 # Guillermo Gomez says -lposix is necessary on A/UX.
25230 echo "$as_me:$LINENO: checking for remove" >&5
25231echo $ECHO_N "checking for remove... $ECHO_C" >&6
25232if test "${ac_cv_func_remove+set}" = set; then
25233 echo $ECHO_N "(cached) $ECHO_C" >&6
25234else
25235 cat >conftest.$ac_ext <<_ACEOF
25236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
ac1cb8d3
VS
25241/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25243#define remove innocuous_remove
25244
a848cd7e
SC
25245/* System header to define __stub macros and hopefully few prototypes,
25246 which can conflict with char remove (); below.
25247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25248 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25249
a848cd7e
SC
25250#ifdef __STDC__
25251# include <limits.h>
25252#else
25253# include <assert.h>
25254#endif
ac1cb8d3
VS
25255
25256#undef remove
25257
a848cd7e
SC
25258/* Override any gcc2 internal prototype to avoid an error. */
25259#ifdef __cplusplus
25260extern "C"
25261{
25262#endif
25263/* We use char because int might match the return type of a gcc2
25264 builtin and then its argument prototype would still apply. */
25265char remove ();
25266/* The GNU C library defines this for functions which it implements
25267 to always fail with ENOSYS. Some functions are actually named
25268 something starting with __ and the normal name is an alias. */
25269#if defined (__stub_remove) || defined (__stub___remove)
25270choke me
25271#else
25272char (*f) () = remove;
25273#endif
25274#ifdef __cplusplus
25275}
25276#endif
25277
25278int
25279main ()
25280{
25281return f != remove;
25282 ;
25283 return 0;
25284}
25285_ACEOF
25286rm -f conftest.$ac_objext conftest$ac_exeext
25287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25288 (eval $ac_link) 2>conftest.er1
a848cd7e 25289 ac_status=$?
ac1cb8d3
VS
25290 grep -v '^ *+' conftest.er1 >conftest.err
25291 rm -f conftest.er1
25292 cat conftest.err >&5
a848cd7e
SC
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } &&
5294a27e 25295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25298 ac_status=$?
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; } &&
25301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
25307 ac_cv_func_remove=yes
25308else
25309 echo "$as_me: failed program was:" >&5
25310sed 's/^/| /' conftest.$ac_ext >&5
25311
25312ac_cv_func_remove=no
25313fi
ac1cb8d3
VS
25314rm -f conftest.err conftest.$ac_objext \
25315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25316fi
25317echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25318echo "${ECHO_T}$ac_cv_func_remove" >&6
25319
25320 if test $ac_cv_func_remove = no; then
25321 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25322echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25323if test "${ac_cv_lib_posix_remove+set}" = set; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25325else
25326 ac_check_lib_save_LIBS=$LIBS
25327LIBS="-lposix $LIBS"
25328cat >conftest.$ac_ext <<_ACEOF
25329/* confdefs.h. */
25330_ACEOF
25331cat confdefs.h >>conftest.$ac_ext
25332cat >>conftest.$ac_ext <<_ACEOF
25333/* end confdefs.h. */
25334
25335/* Override any gcc2 internal prototype to avoid an error. */
25336#ifdef __cplusplus
25337extern "C"
25338#endif
25339/* We use char because int might match the return type of a gcc2
25340 builtin and then its argument prototype would still apply. */
25341char remove ();
25342int
25343main ()
25344{
25345remove ();
25346 ;
25347 return 0;
25348}
25349_ACEOF
25350rm -f conftest.$ac_objext conftest$ac_exeext
25351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25352 (eval $ac_link) 2>conftest.er1
a848cd7e 25353 ac_status=$?
ac1cb8d3
VS
25354 grep -v '^ *+' conftest.er1 >conftest.err
25355 rm -f conftest.er1
25356 cat conftest.err >&5
a848cd7e
SC
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } &&
5294a27e 25359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25361 (eval $ac_try) 2>&5
25362 ac_status=$?
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); }; } &&
25365 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367 (eval $ac_try) 2>&5
25368 ac_status=$?
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); }; }; then
25371 ac_cv_lib_posix_remove=yes
25372else
25373 echo "$as_me: failed program was:" >&5
25374sed 's/^/| /' conftest.$ac_ext >&5
25375
25376ac_cv_lib_posix_remove=no
25377fi
ac1cb8d3
VS
25378rm -f conftest.err conftest.$ac_objext \
25379 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25380LIBS=$ac_check_lib_save_LIBS
25381fi
25382echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25383echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25384if test $ac_cv_lib_posix_remove = yes; then
25385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25386fi
25387
25388 fi
25389
25390 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25391 echo "$as_me:$LINENO: checking for shmat" >&5
25392echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25393if test "${ac_cv_func_shmat+set}" = set; then
25394 echo $ECHO_N "(cached) $ECHO_C" >&6
25395else
25396 cat >conftest.$ac_ext <<_ACEOF
25397/* confdefs.h. */
25398_ACEOF
25399cat confdefs.h >>conftest.$ac_ext
25400cat >>conftest.$ac_ext <<_ACEOF
25401/* end confdefs.h. */
ac1cb8d3
VS
25402/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25404#define shmat innocuous_shmat
25405
a848cd7e
SC
25406/* System header to define __stub macros and hopefully few prototypes,
25407 which can conflict with char shmat (); below.
25408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25409 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25410
a848cd7e
SC
25411#ifdef __STDC__
25412# include <limits.h>
25413#else
25414# include <assert.h>
25415#endif
ac1cb8d3
VS
25416
25417#undef shmat
25418
a848cd7e
SC
25419/* Override any gcc2 internal prototype to avoid an error. */
25420#ifdef __cplusplus
25421extern "C"
25422{
25423#endif
25424/* We use char because int might match the return type of a gcc2
25425 builtin and then its argument prototype would still apply. */
25426char shmat ();
25427/* The GNU C library defines this for functions which it implements
25428 to always fail with ENOSYS. Some functions are actually named
25429 something starting with __ and the normal name is an alias. */
25430#if defined (__stub_shmat) || defined (__stub___shmat)
25431choke me
25432#else
25433char (*f) () = shmat;
25434#endif
25435#ifdef __cplusplus
25436}
25437#endif
25438
25439int
25440main ()
25441{
25442return f != shmat;
25443 ;
25444 return 0;
25445}
25446_ACEOF
25447rm -f conftest.$ac_objext conftest$ac_exeext
25448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25449 (eval $ac_link) 2>conftest.er1
a848cd7e 25450 ac_status=$?
ac1cb8d3
VS
25451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
a848cd7e
SC
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } &&
5294a27e 25456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458 (eval $ac_try) 2>&5
25459 ac_status=$?
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; } &&
25462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464 (eval $ac_try) 2>&5
25465 ac_status=$?
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; }; then
25468 ac_cv_func_shmat=yes
25469else
25470 echo "$as_me: failed program was:" >&5
25471sed 's/^/| /' conftest.$ac_ext >&5
25472
25473ac_cv_func_shmat=no
25474fi
ac1cb8d3
VS
25475rm -f conftest.err conftest.$ac_objext \
25476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25477fi
25478echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25479echo "${ECHO_T}$ac_cv_func_shmat" >&6
25480
25481 if test $ac_cv_func_shmat = no; then
25482 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25483echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25484if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25485 echo $ECHO_N "(cached) $ECHO_C" >&6
25486else
25487 ac_check_lib_save_LIBS=$LIBS
25488LIBS="-lipc $LIBS"
25489cat >conftest.$ac_ext <<_ACEOF
25490/* confdefs.h. */
25491_ACEOF
25492cat confdefs.h >>conftest.$ac_ext
25493cat >>conftest.$ac_ext <<_ACEOF
25494/* end confdefs.h. */
25495
25496/* Override any gcc2 internal prototype to avoid an error. */
25497#ifdef __cplusplus
25498extern "C"
25499#endif
25500/* We use char because int might match the return type of a gcc2
25501 builtin and then its argument prototype would still apply. */
25502char shmat ();
25503int
25504main ()
25505{
25506shmat ();
25507 ;
25508 return 0;
25509}
25510_ACEOF
25511rm -f conftest.$ac_objext conftest$ac_exeext
25512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25513 (eval $ac_link) 2>conftest.er1
a848cd7e 25514 ac_status=$?
ac1cb8d3
VS
25515 grep -v '^ *+' conftest.er1 >conftest.err
25516 rm -f conftest.er1
25517 cat conftest.err >&5
a848cd7e
SC
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); } &&
5294a27e 25520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522 (eval $ac_try) 2>&5
25523 ac_status=$?
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); }; } &&
25526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; }; then
25532 ac_cv_lib_ipc_shmat=yes
25533else
25534 echo "$as_me: failed program was:" >&5
25535sed 's/^/| /' conftest.$ac_ext >&5
25536
25537ac_cv_lib_ipc_shmat=no
25538fi
ac1cb8d3
VS
25539rm -f conftest.err conftest.$ac_objext \
25540 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25541LIBS=$ac_check_lib_save_LIBS
25542fi
25543echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25544echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25545if test $ac_cv_lib_ipc_shmat = yes; then
25546 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25547fi
25548
25549 fi
25550 fi
25551
25552 # Check for libraries that X11R6 Xt/Xaw programs need.
25553 ac_save_LDFLAGS=$LDFLAGS
25554 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25555 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25556 # check for ICE first), but we must link in the order -lSM -lICE or
25557 # we get undefined symbols. So assume we have SM if we have ICE.
25558 # These have to be linked with before -lX11, unlike the other
25559 # libraries we check for below, so use a different variable.
25560 # John Interrante, Karl Berry
25561 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25562echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25563if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25565else
25566 ac_check_lib_save_LIBS=$LIBS
25567LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25568cat >conftest.$ac_ext <<_ACEOF
25569/* confdefs.h. */
25570_ACEOF
25571cat confdefs.h >>conftest.$ac_ext
25572cat >>conftest.$ac_ext <<_ACEOF
25573/* end confdefs.h. */
25574
25575/* Override any gcc2 internal prototype to avoid an error. */
25576#ifdef __cplusplus
25577extern "C"
25578#endif
25579/* We use char because int might match the return type of a gcc2
25580 builtin and then its argument prototype would still apply. */
25581char IceConnectionNumber ();
25582int
25583main ()
25584{
25585IceConnectionNumber ();
25586 ;
25587 return 0;
25588}
25589_ACEOF
25590rm -f conftest.$ac_objext conftest$ac_exeext
25591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25592 (eval $ac_link) 2>conftest.er1
a848cd7e 25593 ac_status=$?
ac1cb8d3
VS
25594 grep -v '^ *+' conftest.er1 >conftest.err
25595 rm -f conftest.er1
25596 cat conftest.err >&5
a848cd7e
SC
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } &&
5294a27e 25599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; } &&
25605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_cv_lib_ICE_IceConnectionNumber=yes
25612else
25613 echo "$as_me: failed program was:" >&5
25614sed 's/^/| /' conftest.$ac_ext >&5
25615
25616ac_cv_lib_ICE_IceConnectionNumber=no
25617fi
ac1cb8d3
VS
25618rm -f conftest.err conftest.$ac_objext \
25619 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25620LIBS=$ac_check_lib_save_LIBS
25621fi
25622echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25623echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25624if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25625 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25626fi
25627
25628 LDFLAGS=$ac_save_LDFLAGS
25629
25630fi
25631
25632
25633 if test "$no_x" = "yes"; then
25634 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25635echo "$as_me: error: X11 not found" >&2;}
25636 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25637 fi
25638
74b84332
VS
25639 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25640 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25641 AFMINSTALL=afminstall
25642 COMPILED_X_PROGRAM=0
25643
74b84332
VS
25644 fi
25645
25646 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25647 if test "$wxUSE_NANOX" = "yes"; then
25648 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25649echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25650 if test "x$MICROWIN" = x ; then
25651 echo "$as_me:$LINENO: result: not found" >&5
25652echo "${ECHO_T}not found" >&6
25653 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25654echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25655 { (exit 1); exit 1; }; }
25656 else
25657 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25658echo "${ECHO_T}$MICROWIN" >&6
25659 cat >>confdefs.h <<\_ACEOF
25660#define wxUSE_NANOX 1
25661_ACEOF
25662
25663 fi
25664 fi
25665
25666 if test "$wxUSE_UNICODE" = "yes"; then
25667
25668 succeeded=no
25669
25670 if test -z "$PKG_CONFIG"; then
25671 # Extract the first word of "pkg-config", so it can be a program name with args.
25672set dummy pkg-config; ac_word=$2
25673echo "$as_me:$LINENO: checking for $ac_word" >&5
25674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25675if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25676 echo $ECHO_N "(cached) $ECHO_C" >&6
25677else
25678 case $PKG_CONFIG in
25679 [\\/]* | ?:[\\/]*)
25680 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25681 ;;
25682 *)
25683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25684for as_dir in $PATH
25685do
25686 IFS=$as_save_IFS
25687 test -z "$as_dir" && as_dir=.
25688 for ac_exec_ext in '' $ac_executable_extensions; do
25689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25690 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25692 break 2
25693 fi
25694done
25695done
25696
25697 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25698 ;;
25699esac
25700fi
25701PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25702
25703if test -n "$PKG_CONFIG"; then
25704 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25705echo "${ECHO_T}$PKG_CONFIG" >&6
25706else
25707 echo "$as_me:$LINENO: result: no" >&5
25708echo "${ECHO_T}no" >&6
25709fi
25710
25711 fi
25712
25713 if test "$PKG_CONFIG" = "no" ; then
25714 echo "*** The pkg-config script could not be found. Make sure it is"
25715 echo "*** in your path, or set the PKG_CONFIG environment variable"
25716 echo "*** to the full path to pkg-config."
25717 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25718 else
25719 PKG_CONFIG_MIN_VERSION=0.9.0
25720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25721 echo "$as_me:$LINENO: checking for pangox" >&5
25722echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25723
25724 if $PKG_CONFIG --exists "pangox" ; then
25725 echo "$as_me:$LINENO: result: yes" >&5
25726echo "${ECHO_T}yes" >&6
25727 succeeded=yes
25728
25729 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25730echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25731 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25732 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25733echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25734
25735 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25736echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25737 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25738 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25739echo "${ECHO_T}$PANGOX_LIBS" >&6
25740 else
25741 PANGOX_CFLAGS=""
25742 PANGOX_LIBS=""
25743 ## If we have a custom action on failure, don't print errors, but
25744 ## do set a variable so people can do so.
25745 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25746
25747 fi
25748
25749
25750
25751 else
25752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25754 fi
25755 fi
25756
25757 if test $succeeded = yes; then
25758
25759 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25760 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25761
25762 else
25763
25764 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25765echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25766 { (exit 1); exit 1; }; }
25767
25768
25769 fi
25770
25771
25772 succeeded=no
25773
25774 if test -z "$PKG_CONFIG"; then
25775 # Extract the first word of "pkg-config", so it can be a program name with args.
25776set dummy pkg-config; ac_word=$2
25777echo "$as_me:$LINENO: checking for $ac_word" >&5
25778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25779if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25780 echo $ECHO_N "(cached) $ECHO_C" >&6
25781else
25782 case $PKG_CONFIG in
25783 [\\/]* | ?:[\\/]*)
25784 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25785 ;;
25786 *)
25787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25788for as_dir in $PATH
25789do
25790 IFS=$as_save_IFS
25791 test -z "$as_dir" && as_dir=.
25792 for ac_exec_ext in '' $ac_executable_extensions; do
25793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25794 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25796 break 2
25797 fi
25798done
25799done
25800
25801 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25802 ;;
25803esac
25804fi
25805PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25806
25807if test -n "$PKG_CONFIG"; then
25808 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25809echo "${ECHO_T}$PKG_CONFIG" >&6
25810else
25811 echo "$as_me:$LINENO: result: no" >&5
25812echo "${ECHO_T}no" >&6
25813fi
25814
25815 fi
25816
25817 if test "$PKG_CONFIG" = "no" ; then
25818 echo "*** The pkg-config script could not be found. Make sure it is"
25819 echo "*** in your path, or set the PKG_CONFIG environment variable"
25820 echo "*** to the full path to pkg-config."
25821 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25822 else
25823 PKG_CONFIG_MIN_VERSION=0.9.0
25824 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25825 echo "$as_me:$LINENO: checking for pangoft2" >&5
25826echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25827
25828 if $PKG_CONFIG --exists "pangoft2" ; then
25829 echo "$as_me:$LINENO: result: yes" >&5
25830echo "${ECHO_T}yes" >&6
25831 succeeded=yes
25832
25833 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25834echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25835 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25836 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25837echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25838
25839 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25840echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25841 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25842 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25843echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25844 else
25845 PANGOFT2_CFLAGS=""
25846 PANGOFT2_LIBS=""
25847 ## If we have a custom action on failure, don't print errors, but
25848 ## do set a variable so people can do so.
25849 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25850
25851 fi
25852
25853
25854
25855 else
25856 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25857 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25858 fi
25859 fi
25860
25861 if test $succeeded = yes; then
25862
25863 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25864 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25865
25866 else
25867
25868 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25869echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25870 wxUSE_PRINTING_ARCHITECTURE="no"
25871
25872
25873 fi
25874
25875
25876 succeeded=no
25877
25878 if test -z "$PKG_CONFIG"; then
25879 # Extract the first word of "pkg-config", so it can be a program name with args.
25880set dummy pkg-config; ac_word=$2
25881echo "$as_me:$LINENO: checking for $ac_word" >&5
25882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25883if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25884 echo $ECHO_N "(cached) $ECHO_C" >&6
25885else
25886 case $PKG_CONFIG in
25887 [\\/]* | ?:[\\/]*)
25888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25889 ;;
25890 *)
25891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25892for as_dir in $PATH
25893do
25894 IFS=$as_save_IFS
25895 test -z "$as_dir" && as_dir=.
25896 for ac_exec_ext in '' $ac_executable_extensions; do
25897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25900 break 2
25901 fi
25902done
25903done
25904
25905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25906 ;;
25907esac
25908fi
25909PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25910
25911if test -n "$PKG_CONFIG"; then
25912 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25913echo "${ECHO_T}$PKG_CONFIG" >&6
25914else
25915 echo "$as_me:$LINENO: result: no" >&5
25916echo "${ECHO_T}no" >&6
25917fi
25918
25919 fi
25920
25921 if test "$PKG_CONFIG" = "no" ; then
25922 echo "*** The pkg-config script could not be found. Make sure it is"
25923 echo "*** in your path, or set the PKG_CONFIG environment variable"
25924 echo "*** to the full path to pkg-config."
25925 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25926 else
25927 PKG_CONFIG_MIN_VERSION=0.9.0
25928 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25929 echo "$as_me:$LINENO: checking for pangoxft" >&5
25930echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25931
25932 if $PKG_CONFIG --exists "pangoxft" ; then
25933 echo "$as_me:$LINENO: result: yes" >&5
25934echo "${ECHO_T}yes" >&6
25935 succeeded=yes
25936
25937 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25938echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25939 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25940 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25941echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25942
25943 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25944echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25945 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25946 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25947echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25948 else
25949 PANGOXFT_CFLAGS=""
25950 PANGOXFT_LIBS=""
25951 ## If we have a custom action on failure, don't print errors, but
25952 ## do set a variable so people can do so.
25953 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25954
25955 fi
25956
25957
25958
25959 else
25960 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25961 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25962 fi
25963 fi
25964
25965 if test $succeeded = yes; then
25966
4ae1af05
MB
25967 cat >>confdefs.h <<\_ACEOF
25968#define HAVE_PANGO_XFT 1
25969_ACEOF
25970
a848cd7e
SC
25971 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25972 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25973
25974 else
25975
25976 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25977echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25978
25979
25980 fi
25981
304205f1
VS
25982 save_CFLAGS="$CFLAGS"
25983 save_LIBS="$LIBS"
25984 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25985 LIBS="$LIBS $PANGOX_LIBS"
25986
25987for ac_func in pango_font_family_is_monospace
25988do
25989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25990echo "$as_me:$LINENO: checking for $ac_func" >&5
25991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25992if eval "test \"\${$as_ac_var+set}\" = set"; then
25993 echo $ECHO_N "(cached) $ECHO_C" >&6
25994else
25995 cat >conftest.$ac_ext <<_ACEOF
25996/* confdefs.h. */
25997_ACEOF
25998cat confdefs.h >>conftest.$ac_ext
25999cat >>conftest.$ac_ext <<_ACEOF
26000/* end confdefs.h. */
26001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26003#define $ac_func innocuous_$ac_func
26004
26005/* System header to define __stub macros and hopefully few prototypes,
26006 which can conflict with char $ac_func (); below.
26007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26008 <limits.h> exists even on freestanding compilers. */
26009
26010#ifdef __STDC__
26011# include <limits.h>
26012#else
26013# include <assert.h>
26014#endif
26015
26016#undef $ac_func
26017
26018/* Override any gcc2 internal prototype to avoid an error. */
26019#ifdef __cplusplus
26020extern "C"
26021{
26022#endif
26023/* We use char because int might match the return type of a gcc2
26024 builtin and then its argument prototype would still apply. */
26025char $ac_func ();
26026/* The GNU C library defines this for functions which it implements
26027 to always fail with ENOSYS. Some functions are actually named
26028 something starting with __ and the normal name is an alias. */
26029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26030choke me
26031#else
26032char (*f) () = $ac_func;
26033#endif
26034#ifdef __cplusplus
26035}
26036#endif
26037
26038int
26039main ()
26040{
26041return f != $ac_func;
26042 ;
26043 return 0;
26044}
26045_ACEOF
26046rm -f conftest.$ac_objext conftest$ac_exeext
26047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26048 (eval $ac_link) 2>conftest.er1
26049 ac_status=$?
26050 grep -v '^ *+' conftest.er1 >conftest.err
26051 rm -f conftest.er1
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } &&
5294a27e 26055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
26056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057 (eval $ac_try) 2>&5
26058 ac_status=$?
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); }; } &&
26061 { ac_try='test -s conftest$ac_exeext'
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; }; then
26067 eval "$as_ac_var=yes"
26068else
26069 echo "$as_me: failed program was:" >&5
26070sed 's/^/| /' conftest.$ac_ext >&5
26071
26072eval "$as_ac_var=no"
26073fi
26074rm -f conftest.err conftest.$ac_objext \
26075 conftest$ac_exeext conftest.$ac_ext
26076fi
26077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26079if test `eval echo '${'$as_ac_var'}'` = yes; then
26080 cat >>confdefs.h <<_ACEOF
26081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26082_ACEOF
26083
26084fi
26085done
26086
26087 CFLAGS="$save_CFLAGS"
26088 LIBS="$save_LIBS"
a848cd7e
SC
26089 fi
26090
26091 wxUSE_UNIVERSAL="yes"
26092
26093 if test "$wxUSE_NANOX" = "yes"; then
26094 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26095 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"
26096 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26097 else
26098 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26099 fi
26100
a848cd7e
SC
26101 TOOLKIT=X11
26102 GUIDIST=X11_DIST
26103 fi
26104
26105 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26106 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26107echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26108
74b84332
VS
26109ac_find_includes=
26110for ac_dir in $SEARCH_INCLUDE /usr/include;
26111 do
26112 if test -f "$ac_dir/Xm/Xm.h"; then
26113 ac_find_includes=$ac_dir
26114 break
26115 fi
26116 done
a848cd7e 26117
74b84332
VS
26118 if test "$ac_find_includes" != "" ; then
26119 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26120echo "${ECHO_T}found in $ac_find_includes" >&6
26121
26122 if test "x$ac_find_includes" = "x/usr/include"; then
26123 ac_path_to_include=""
26124 else
26125 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26126 result=$?
26127 if test $result = 0; then
26128 ac_path_to_include=""
26129 else
26130 ac_path_to_include=" -I$ac_find_includes"
26131 fi
a848cd7e
SC
26132 fi
26133
74b84332
VS
26134 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26135 else
26136 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26137/* confdefs.h. */
26138_ACEOF
26139cat confdefs.h >>conftest.$ac_ext
26140cat >>conftest.$ac_ext <<_ACEOF
26141/* end confdefs.h. */
26142
74b84332
VS
26143 #include <Xm/Xm.h>
26144
a848cd7e
SC
26145int
26146main ()
26147{
26148
74b84332
VS
26149 int version;
26150 version = xmUseVersion;
26151
a848cd7e
SC
26152 ;
26153 return 0;
26154}
26155_ACEOF
74b84332
VS
26156rm -f conftest.$ac_objext
26157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26158 (eval $ac_compile) 2>conftest.er1
a848cd7e 26159 ac_status=$?
ac1cb8d3
VS
26160 grep -v '^ *+' conftest.er1 >conftest.err
26161 rm -f conftest.er1
26162 cat conftest.err >&5
a848cd7e
SC
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); } &&
5294a27e 26165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26168 ac_status=$?
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; } &&
74b84332 26171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173 (eval $ac_try) 2>&5
26174 ac_status=$?
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; }; then
74b84332
VS
26177
26178 echo "$as_me:$LINENO: result: found in default search path" >&5
26179echo "${ECHO_T}found in default search path" >&6
26180 COMPILED_X_PROGRAM=1
26181
a848cd7e
SC
26182else
26183 echo "$as_me: failed program was:" >&5
26184sed 's/^/| /' conftest.$ac_ext >&5
26185
a848cd7e 26186
74b84332
VS
26187 echo "$as_me:$LINENO: result: no" >&5
26188echo "${ECHO_T}no" >&6
26189 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26190echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26191 { (exit 1); exit 1; }; }
a848cd7e 26192
a848cd7e 26193
a848cd7e 26194fi
74b84332
VS
26195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26196 fi
26197
26198 if test "$COMPILED_X_PROGRAM" = 0; then
26199 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26200echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26201
26202ac_find_libraries=
26203for ac_dir in $SEARCH_LIB /usr/lib;
26204 do
26205 for ac_extension in a so sl dylib; do
26206 if test -f "$ac_dir/libXm.$ac_extension"; then
26207 ac_find_libraries=$ac_dir
26208 break 2
a848cd7e 26209 fi
74b84332
VS
26210 done
26211 done
a848cd7e 26212
74b84332
VS
26213 if test "$ac_find_libraries" != "" ; then
26214 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26215echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26216
74b84332
VS
26217
26218 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26219 result=$?
26220 if test $result = 0; then
26221 ac_path_to_link=""
a848cd7e 26222 else
74b84332
VS
26223 ac_path_to_link=" -L$ac_find_libraries"
26224 fi
26225
26226 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26227 else
26228 save_CFLAGS=$CFLAGS
26229 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26230
26231 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26232/* confdefs.h. */
26233_ACEOF
26234cat confdefs.h >>conftest.$ac_ext
26235cat >>conftest.$ac_ext <<_ACEOF
26236/* end confdefs.h. */
26237
74b84332
VS
26238 #include <Xm/Xm.h>
26239
a848cd7e
SC
26240int
26241main ()
26242{
74b84332
VS
26243
26244 int version;
26245 version = xmUseVersion;
26246
a848cd7e
SC
26247 ;
26248 return 0;
26249}
26250_ACEOF
74b84332
VS
26251rm -f conftest.$ac_objext
26252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26253 (eval $ac_compile) 2>conftest.er1
a848cd7e 26254 ac_status=$?
ac1cb8d3
VS
26255 grep -v '^ *+' conftest.er1 >conftest.err
26256 rm -f conftest.er1
26257 cat conftest.err >&5
a848cd7e
SC
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } &&
5294a27e 26260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26263 ac_status=$?
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; } &&
74b84332 26266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); }; }; then
74b84332
VS
26272
26273 echo "$as_me:$LINENO: result: found in default search path" >&5
26274echo "${ECHO_T}found in default search path" >&6
26275 COMPILED_X_PROGRAM=1
26276
a848cd7e
SC
26277else
26278 echo "$as_me: failed program was:" >&5
26279sed 's/^/| /' conftest.$ac_ext >&5
26280
74b84332
VS
26281
26282 echo "$as_me:$LINENO: result: no" >&5
26283echo "${ECHO_T}no" >&6
26284 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26285echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26286 { (exit 1); exit 1; }; }
26287
26288
26289fi
26290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26291
26292 CFLAGS=$save_CFLAGS
26293 fi
26294 fi
26295
26296 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26297echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26298 libp_link=""
26299 libsm_ice_link=""
26300 libs_found=0
26301 for libp in "" " -lXp"; do
26302 if test "$libs_found" = "0"; then
26303 for libsm_ice in "" " -lSM -lICE"; do
26304 if test "$libs_found" = "0"; then
26305 save_LIBS="$LIBS"
26306 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26307 save_CFLAGS=$CFLAGS
26308 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26309
26310 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26311/* confdefs.h. */
26312_ACEOF
26313cat confdefs.h >>conftest.$ac_ext
26314cat >>conftest.$ac_ext <<_ACEOF
26315/* end confdefs.h. */
26316
74b84332
VS
26317 #include <Xm/Xm.h>
26318 #include <Xm/List.h>
26319
a848cd7e
SC
26320int
26321main ()
26322{
74b84332
VS
26323
26324 XmString string = NULL;
26325 Widget w = NULL;
26326 int position = 0;
26327 XmListAddItem(w, string, position);
26328
a848cd7e
SC
26329 ;
26330 return 0;
26331}
26332_ACEOF
26333rm -f conftest.$ac_objext conftest$ac_exeext
26334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26335 (eval $ac_link) 2>conftest.er1
a848cd7e 26336 ac_status=$?
ac1cb8d3
VS
26337 grep -v '^ *+' conftest.er1 >conftest.err
26338 rm -f conftest.er1
26339 cat conftest.err >&5
a848cd7e
SC
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } &&
5294a27e 26342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); }; } &&
26348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350 (eval $ac_try) 2>&5
26351 ac_status=$?
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); }; }; then
26354
26355 libp_link="$libp"
26356 libsm_ice_link="$libsm_ice"
26357 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26358echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26359 libs_found=1
26360
26361else
26362 echo "$as_me: failed program was:" >&5
26363sed 's/^/| /' conftest.$ac_ext >&5
26364
26365
26366
26367fi
ac1cb8d3
VS
26368rm -f conftest.err conftest.$ac_objext \
26369 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26370
26371 LIBS="$save_LIBS"
26372 CFLAGS=$save_CFLAGS
26373 fi
26374 done
26375 fi
26376 done
26377
26378 if test "$libs_found" = "0"; then
26379 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26380echo "${ECHO_T}can't find the right libraries" >&6
26381 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26382echo "$as_me: error: can't link a simple motif program" >&2;}
26383 { (exit 1); exit 1; }; }
26384 fi
26385
26386 save_CFLAGS=$CFLAGS
26387 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26388 echo "$as_me:$LINENO: checking for Motif 2" >&5
26389echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26390 cat >conftest.$ac_ext <<_ACEOF
26391/* confdefs.h. */
26392_ACEOF
26393cat confdefs.h >>conftest.$ac_ext
26394cat >>conftest.$ac_ext <<_ACEOF
26395/* end confdefs.h. */
26396
26397 #include <Xm/Xm.h>
26398
26399int
26400main ()
26401{
26402
26403 #if XmVersion < 2000
26404 #error "Not Motif 2"
26405 #endif
26406
26407 ;
26408 return 0;
26409}
26410_ACEOF
26411rm -f conftest.$ac_objext
26412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26413 (eval $ac_compile) 2>conftest.er1
a848cd7e 26414 ac_status=$?
ac1cb8d3
VS
26415 grep -v '^ *+' conftest.er1 >conftest.err
26416 rm -f conftest.er1
26417 cat conftest.err >&5
a848cd7e
SC
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } &&
5294a27e 26420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; } &&
26426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; }; then
26432
26433 cat >>confdefs.h <<\_ACEOF
26434#define __WXMOTIF20__ 1
26435_ACEOF
26436
26437 echo "$as_me:$LINENO: result: found" >&5
26438echo "${ECHO_T}found" >&6
26439
26440else
26441 echo "$as_me: failed program was:" >&5
26442sed 's/^/| /' conftest.$ac_ext >&5
26443
26444
26445 cat >>confdefs.h <<\_ACEOF
26446#define __WXMOTIF20__ 0
26447_ACEOF
26448
26449 echo "$as_me:$LINENO: result: not found" >&5
26450echo "${ECHO_T}not found" >&6
26451
26452fi
ac1cb8d3 26453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26454 CFLAGS=$save_CFLAGS
26455
26456 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26457 TOOLKIT=MOTIF
26458 GUIDIST=MOTIF_DIST
26459 fi
26460
74b84332 26461 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26462 if test "$wxUSE_LIBXPM" = "sys"; then
26463 echo "$as_me:$LINENO: checking for Xpm library" >&5
26464echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26465
26466ac_find_libraries=
26467for ac_dir in $SEARCH_LIB /usr/lib;
26468 do
26469 for ac_extension in a so sl dylib; do
26470 if test -f "$ac_dir/libXpm.$ac_extension"; then
26471 ac_find_libraries=$ac_dir
26472 break 2
26473 fi
26474 done
26475 done
26476
26477 if test "$ac_find_libraries" != "" ; then
26478
26479 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26480 result=$?
26481 if test $result = 0; then
26482 ac_path_to_link=""
26483 else
26484 ac_path_to_link=" -L$ac_find_libraries"
26485 fi
26486
26487 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26488 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26489echo "${ECHO_T}found at $ac_find_libraries" >&6
26490
26491 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26492echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26493if test "${wx_cv_x11_xpm_h+set}" = set; then
26494 echo $ECHO_N "(cached) $ECHO_C" >&6
26495else
26496
26497 save_CFLAGS=$CFLAGS
26498 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26499
26500 cat >conftest.$ac_ext <<_ACEOF
26501/* confdefs.h. */
26502_ACEOF
26503cat confdefs.h >>conftest.$ac_ext
26504cat >>conftest.$ac_ext <<_ACEOF
26505/* end confdefs.h. */
26506
26507 #include <X11/xpm.h>
26508
26509int
26510main ()
26511{
26512
26513 int version;
26514 version = XpmLibraryVersion();
26515
26516 ;
26517 return 0;
26518}
26519_ACEOF
26520rm -f conftest.$ac_objext
26521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26522 (eval $ac_compile) 2>conftest.er1
a848cd7e 26523 ac_status=$?
ac1cb8d3
VS
26524 grep -v '^ *+' conftest.er1 >conftest.err
26525 rm -f conftest.er1
26526 cat conftest.err >&5
a848cd7e
SC
26527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528 (exit $ac_status); } &&
5294a27e 26529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26531 (eval $ac_try) 2>&5
26532 ac_status=$?
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); }; } &&
26535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26538 ac_status=$?
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; }; then
26541 wx_cv_x11_xpm_h=yes
26542else
26543 echo "$as_me: failed program was:" >&5
26544sed 's/^/| /' conftest.$ac_ext >&5
26545
26546wx_cv_x11_xpm_h=no
26547
26548fi
ac1cb8d3 26549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26550
26551 CFLAGS=$save_CFLAGS
26552
26553
26554fi
26555echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26556echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26557
26558 if test $wx_cv_x11_xpm_h = "yes"; then
26559 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26560 cat >>confdefs.h <<\_ACEOF
26561#define wxHAVE_LIB_XPM 1
26562_ACEOF
26563
26564 else
26565 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26566echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26567 fi
26568 fi
26569
26570 fi
26571
26572 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26573echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26574if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26576else
26577 ac_check_lib_save_LIBS=$LIBS
26578LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26579cat >conftest.$ac_ext <<_ACEOF
26580/* confdefs.h. */
26581_ACEOF
26582cat confdefs.h >>conftest.$ac_ext
26583cat >>conftest.$ac_ext <<_ACEOF
26584/* end confdefs.h. */
26585
26586/* Override any gcc2 internal prototype to avoid an error. */
26587#ifdef __cplusplus
26588extern "C"
26589#endif
26590/* We use char because int might match the return type of a gcc2
26591 builtin and then its argument prototype would still apply. */
26592char XShapeQueryExtension ();
26593int
26594main ()
26595{
26596XShapeQueryExtension ();
26597 ;
26598 return 0;
26599}
26600_ACEOF
26601rm -f conftest.$ac_objext conftest$ac_exeext
26602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26603 (eval $ac_link) 2>conftest.er1
a848cd7e 26604 ac_status=$?
ac1cb8d3
VS
26605 grep -v '^ *+' conftest.er1 >conftest.err
26606 rm -f conftest.er1
26607 cat conftest.err >&5
a848cd7e
SC
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } &&
5294a27e 26610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612 (eval $ac_try) 2>&5
26613 ac_status=$?
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); }; } &&
26616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618 (eval $ac_try) 2>&5
26619 ac_status=$?
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); }; }; then
26622 ac_cv_lib_Xext_XShapeQueryExtension=yes
26623else
26624 echo "$as_me: failed program was:" >&5
26625sed 's/^/| /' conftest.$ac_ext >&5
26626
26627ac_cv_lib_Xext_XShapeQueryExtension=no
26628fi
ac1cb8d3
VS
26629rm -f conftest.err conftest.$ac_objext \
26630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26631LIBS=$ac_check_lib_save_LIBS
26632fi
26633echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26634echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26635if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26636
26637 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26638 wxHAVE_XEXT_LIB=1
26639
26640fi
26641
26642
26643 if test "$wxHAVE_XEXT_LIB" = 1; then
26644 save_CFLAGS="$CFLAGS"
26645 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26646
26647 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26648echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26649 cat >conftest.$ac_ext <<_ACEOF
26650/* confdefs.h. */
26651_ACEOF
26652cat confdefs.h >>conftest.$ac_ext
26653cat >>conftest.$ac_ext <<_ACEOF
26654/* end confdefs.h. */
26655
26656 #include <X11/Xlib.h>
26657 #include <X11/extensions/shape.h>
26658
26659int
26660main ()
26661{
26662
26663 int dummy1, dummy2;
26664 XShapeQueryExtension((Display*)NULL,
26665 (int*)NULL, (int*)NULL);
26666
26667 ;
26668 return 0;
26669}
26670_ACEOF
26671rm -f conftest.$ac_objext
26672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26673 (eval $ac_compile) 2>conftest.er1
a848cd7e 26674 ac_status=$?
ac1cb8d3
VS
26675 grep -v '^ *+' conftest.er1 >conftest.err
26676 rm -f conftest.er1
26677 cat conftest.err >&5
a848cd7e
SC
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } &&
5294a27e 26680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26682 (eval $ac_try) 2>&5
26683 ac_status=$?
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; } &&
26686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); }; }; then
26692
26693 cat >>confdefs.h <<\_ACEOF
26694#define HAVE_XSHAPE 1
26695_ACEOF
26696
26697 echo "$as_me:$LINENO: result: found" >&5
26698echo "${ECHO_T}found" >&6
26699
26700else
26701 echo "$as_me: failed program was:" >&5
26702sed 's/^/| /' conftest.$ac_ext >&5
26703
26704
26705 echo "$as_me:$LINENO: result: not found" >&5
26706echo "${ECHO_T}not found" >&6
26707
26708fi
ac1cb8d3 26709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26710 CFLAGS="$save_CFLAGS"
26711
26712 fi
26713 fi
26714
26715 if test "$wxUSE_MAC" = 1; then
26716 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26717echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26718 if test "$GCC" = yes; then
26719 echo "$as_me:$LINENO: result: gcc" >&5
26720echo "${ECHO_T}gcc" >&6
26721 CPPFLAGS_PASCAL="-fpascal-strings"
26722 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26723 echo "$as_me:$LINENO: result: xlc" >&5
26724echo "${ECHO_T}xlc" >&6
26725 CPPFLAGS_PASCAL="-qmacpstr"
26726 else
26727 echo "$as_me:$LINENO: result: none" >&5
26728echo "${ECHO_T}none" >&6
26729 fi
26730
1e9e8aba
DE
26731 if test "x$wxUSE_UNIX" = "xyes"; then
26732 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26733 else
26734 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26735 fi
a848cd7e 26736
a848cd7e
SC
26737 TOOLKIT=MAC
26738 GUIDIST=MACX_DIST
dd21ced8 26739 WXBASEPORT="_carbon"
a848cd7e
SC
26740 fi
26741
26742 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26743 TOOLKIT=COCOA
26744 GUIDIST=COCOA_DIST
26745 fi
26746
26747 if test "$wxUSE_PM" = 1; then
26748 TOOLKIT=PM
de59c161
RD
26749 GUIDIST=PM_DIST
26750 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26751echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26752if test "${wx_cv_spbcdata+set}" = set; then
26753 echo $ECHO_N "(cached) $ECHO_C" >&6
26754else
26755
26756 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26757/* confdefs.h. */
26758_ACEOF
26759cat confdefs.h >>conftest.$ac_ext
26760cat >>conftest.$ac_ext <<_ACEOF
26761/* end confdefs.h. */
26762
26763 #define INCL_PM
26764 #include <os2.h>
26765
26766int
26767main ()
26768{
26769
26770 SPBCDATA test;
26771
26772 ;
26773 return 0;
26774}
26775_ACEOF
26776rm -f conftest.$ac_objext
26777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26778 (eval $ac_compile) 2>conftest.er1
de59c161 26779 ac_status=$?
ac1cb8d3
VS
26780 grep -v '^ *+' conftest.er1 >conftest.err
26781 rm -f conftest.er1
26782 cat conftest.err >&5
de59c161
RD
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); } &&
5294a27e 26785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26788 ac_status=$?
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; } &&
26791 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793 (eval $ac_try) 2>&5
26794 ac_status=$?
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); }; }; then
26797 wx_cv_spbcdata=yes
26798else
26799 echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
26802wx_cv_spbcdata=no
26803
26804fi
ac1cb8d3 26805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26806
26807
26808fi
26809echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26810echo "${ECHO_T}$wx_cv_spbcdata" >&6
26811
26812 if test $wx_cv_spbcdata = "yes"; then
26813 cat >>confdefs.h <<\_ACEOF
26814#define HAVE_SPBCDATA 1
26815_ACEOF
26816
26817 fi
a848cd7e
SC
26818 fi
26819
26820 if test "$TOOLKIT" = "PM" ; then
26821 TOOLKIT_DIR="os2"
26822 else
26823 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26824 fi
26825
a848cd7e 26826 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26827 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26828 WIDGET_SET=univ
a848cd7e
SC
26829 fi
26830
26831 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26832 DISTDIR="wx\$(TOOLKIT)"
26833else
26834 USE_GUI=0
26835
26836 TOOLKIT_DIR="base"
26837
26838 if test "$USE_WIN32" = 1 ; then
a848cd7e 26839 TOOLKIT="MSW"
a848cd7e
SC
26840 fi
26841
a848cd7e
SC
26842 GUIDIST="BASE_DIST"
26843 DISTDIR="wxBase"
26844fi
26845
26846
26847
26848
26849IODBC_C_SRC=""
26850
26851
26852if test "$TOOLKIT" != "MSW" ; then
26853
26854 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26855
26856 if test "${ac_cv_header_sql_h+set}" = set; then
26857 echo "$as_me:$LINENO: checking for sql.h" >&5
26858echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26859if test "${ac_cv_header_sql_h+set}" = set; then
26860 echo $ECHO_N "(cached) $ECHO_C" >&6
26861fi
26862echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26863echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26864else
26865 # Is the header compilable?
26866echo "$as_me:$LINENO: checking sql.h usability" >&5
26867echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26868cat >conftest.$ac_ext <<_ACEOF
26869/* confdefs.h. */
26870_ACEOF
26871cat confdefs.h >>conftest.$ac_ext
26872cat >>conftest.$ac_ext <<_ACEOF
26873/* end confdefs.h. */
26874$ac_includes_default
26875#include <sql.h>
26876_ACEOF
26877rm -f conftest.$ac_objext
26878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26879 (eval $ac_compile) 2>conftest.er1
a848cd7e 26880 ac_status=$?
ac1cb8d3
VS
26881 grep -v '^ *+' conftest.er1 >conftest.err
26882 rm -f conftest.er1
26883 cat conftest.err >&5
a848cd7e
SC
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } &&
5294a27e 26886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; } &&
26892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894 (eval $ac_try) 2>&5
26895 ac_status=$?
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); }; }; then
26898 ac_header_compiler=yes
26899else
26900 echo "$as_me: failed program was:" >&5
26901sed 's/^/| /' conftest.$ac_ext >&5
26902
26903ac_header_compiler=no
26904fi
ac1cb8d3 26905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26907echo "${ECHO_T}$ac_header_compiler" >&6
26908
26909# Is the header present?
26910echo "$as_me:$LINENO: checking sql.h presence" >&5
26911echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26912cat >conftest.$ac_ext <<_ACEOF
26913/* confdefs.h. */
26914_ACEOF
26915cat confdefs.h >>conftest.$ac_ext
26916cat >>conftest.$ac_ext <<_ACEOF
26917/* end confdefs.h. */
26918#include <sql.h>
26919_ACEOF
26920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26922 ac_status=$?
26923 grep -v '^ *+' conftest.er1 >conftest.err
26924 rm -f conftest.er1
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } >/dev/null; then
26928 if test -s conftest.err; then
26929 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26931 else
26932 ac_cpp_err=
26933 fi
26934else
26935 ac_cpp_err=yes
26936fi
26937if test -z "$ac_cpp_err"; then
26938 ac_header_preproc=yes
26939else
26940 echo "$as_me: failed program was:" >&5
26941sed 's/^/| /' conftest.$ac_ext >&5
26942
26943 ac_header_preproc=no
26944fi
26945rm -f conftest.err conftest.$ac_ext
26946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26947echo "${ECHO_T}$ac_header_preproc" >&6
26948
26949# So? What about this header?
ac1cb8d3
VS
26950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26951 yes:no: )
a848cd7e
SC
26952 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26953echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26954 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26955echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26956 ac_header_preproc=yes
a848cd7e 26957 ;;
ac1cb8d3 26958 no:yes:* )
a848cd7e
SC
26959 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26960echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26961 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26962echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26963 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26964echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26966echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26967 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26968echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26969 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26970echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26971 (
26972 cat <<\_ASBOX
ac1cb8d3
VS
26973## ----------------------------------------- ##
26974## Report this to wx-dev@lists.wxwidgets.org ##
26975## ----------------------------------------- ##
a848cd7e
SC
26976_ASBOX
26977 ) |
26978 sed "s/^/$as_me: WARNING: /" >&2
26979 ;;
26980esac
26981echo "$as_me:$LINENO: checking for sql.h" >&5
26982echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26983if test "${ac_cv_header_sql_h+set}" = set; then
26984 echo $ECHO_N "(cached) $ECHO_C" >&6
26985else
26986 ac_cv_header_sql_h=$ac_header_preproc
26987fi
26988echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26989echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26990
26991fi
26992if test $ac_cv_header_sql_h = yes; then
26993 found_sql_h=1
26994fi
26995
26996
26997 if test "x$found_sql_h" = "x1" ; then
26998 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26999echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27000if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27001 echo $ECHO_N "(cached) $ECHO_C" >&6
27002else
27003 ac_check_lib_save_LIBS=$LIBS
27004LIBS="-liodbc $LIBS"
27005cat >conftest.$ac_ext <<_ACEOF
27006/* confdefs.h. */
27007_ACEOF
27008cat confdefs.h >>conftest.$ac_ext
27009cat >>conftest.$ac_ext <<_ACEOF
27010/* end confdefs.h. */
27011
27012/* Override any gcc2 internal prototype to avoid an error. */
27013#ifdef __cplusplus
27014extern "C"
27015#endif
27016/* We use char because int might match the return type of a gcc2
27017 builtin and then its argument prototype would still apply. */
27018char SQLAllocEnv ();
27019int
27020main ()
27021{
27022SQLAllocEnv ();
27023 ;
27024 return 0;
27025}
27026_ACEOF
27027rm -f conftest.$ac_objext conftest$ac_exeext
27028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27029 (eval $ac_link) 2>conftest.er1
a848cd7e 27030 ac_status=$?
ac1cb8d3
VS
27031 grep -v '^ *+' conftest.er1 >conftest.err
27032 rm -f conftest.er1
27033 cat conftest.err >&5
a848cd7e
SC
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); } &&
5294a27e 27036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
27042 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 (eval $ac_try) 2>&5
27045 ac_status=$?
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; }; then
27048 ac_cv_lib_iodbc_SQLAllocEnv=yes
27049else
27050 echo "$as_me: failed program was:" >&5
27051sed 's/^/| /' conftest.$ac_ext >&5
27052
27053ac_cv_lib_iodbc_SQLAllocEnv=no
27054fi
ac1cb8d3
VS
27055rm -f conftest.err conftest.$ac_objext \
27056 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27057LIBS=$ac_check_lib_save_LIBS
27058fi
27059echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27060echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27061if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27062 ODBC_LINK=" -liodbc"
27063else
27064
27065 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27066echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27067if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27068 echo $ECHO_N "(cached) $ECHO_C" >&6
27069else
27070 ac_check_lib_save_LIBS=$LIBS
27071LIBS="-lunixodbc $LIBS"
27072cat >conftest.$ac_ext <<_ACEOF
27073/* confdefs.h. */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h. */
27078
27079/* Override any gcc2 internal prototype to avoid an error. */
27080#ifdef __cplusplus
27081extern "C"
27082#endif
27083/* We use char because int might match the return type of a gcc2
27084 builtin and then its argument prototype would still apply. */
27085char SQLAllocEnv ();
27086int
27087main ()
27088{
27089SQLAllocEnv ();
27090 ;
27091 return 0;
27092}
27093_ACEOF
27094rm -f conftest.$ac_objext conftest$ac_exeext
27095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27096 (eval $ac_link) 2>conftest.er1
a848cd7e 27097 ac_status=$?
ac1cb8d3
VS
27098 grep -v '^ *+' conftest.er1 >conftest.err
27099 rm -f conftest.er1
27100 cat conftest.err >&5
a848cd7e
SC
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } &&
5294a27e 27103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 (eval $ac_try) 2>&5
27106 ac_status=$?
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); }; } &&
27109 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111 (eval $ac_try) 2>&5
27112 ac_status=$?
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); }; }; then
27115 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27116else
27117 echo "$as_me: failed program was:" >&5
27118sed 's/^/| /' conftest.$ac_ext >&5
27119
27120ac_cv_lib_unixodbc_SQLAllocEnv=no
27121fi
ac1cb8d3
VS
27122rm -f conftest.err conftest.$ac_objext \
27123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27124LIBS=$ac_check_lib_save_LIBS
27125fi
27126echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27127echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27128if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27129 ODBC_LINK=" -lunixodbc"
27130else
27131
27132 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27133echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27134if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27135 echo $ECHO_N "(cached) $ECHO_C" >&6
27136else
27137 ac_check_lib_save_LIBS=$LIBS
27138LIBS="-lodbc $LIBS"
27139cat >conftest.$ac_ext <<_ACEOF
27140/* confdefs.h. */
27141_ACEOF
27142cat confdefs.h >>conftest.$ac_ext
27143cat >>conftest.$ac_ext <<_ACEOF
27144/* end confdefs.h. */
27145
27146/* Override any gcc2 internal prototype to avoid an error. */
27147#ifdef __cplusplus
27148extern "C"
27149#endif
27150/* We use char because int might match the return type of a gcc2
27151 builtin and then its argument prototype would still apply. */
27152char SQLAllocEnv ();
27153int
27154main ()
27155{
27156SQLAllocEnv ();
27157 ;
27158 return 0;
27159}
27160_ACEOF
27161rm -f conftest.$ac_objext conftest$ac_exeext
27162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27163 (eval $ac_link) 2>conftest.er1
a848cd7e 27164 ac_status=$?
ac1cb8d3
VS
27165 grep -v '^ *+' conftest.er1 >conftest.err
27166 rm -f conftest.er1
27167 cat conftest.err >&5
a848cd7e
SC
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } &&
5294a27e 27170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27172 (eval $ac_try) 2>&5
27173 ac_status=$?
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; } &&
27176 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27178 (eval $ac_try) 2>&5
27179 ac_status=$?
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); }; }; then
27182 ac_cv_lib_odbc_SQLAllocEnv=yes
27183else
27184 echo "$as_me: failed program was:" >&5
27185sed 's/^/| /' conftest.$ac_ext >&5
27186
27187ac_cv_lib_odbc_SQLAllocEnv=no
27188fi
ac1cb8d3
VS
27189rm -f conftest.err conftest.$ac_objext \
27190 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27191LIBS=$ac_check_lib_save_LIBS
27192fi
27193echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27194echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27195if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27196 ODBC_LINK=" -lodbc"
27197fi
27198
27199
27200fi
27201
27202
27203fi
27204
27205 fi
27206 if test "x$ODBC_LINK" = "x" ; then
27207 if test "$wxUSE_ODBC" = "sys" ; then
27208 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27209echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27210 { (exit 1); exit 1; }; }
27211 else
27212 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27213echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27214 wxUSE_ODBC=builtin
27215 fi
27216 else
27217 wxUSE_ODBC=sys
27218 fi
27219 fi
27220 if test "$wxUSE_ODBC" != "no" ; then
27221 cat >>confdefs.h <<\_ACEOF
27222#define wxUSE_ODBC 1
27223_ACEOF
27224
27225 if test "$wxUSE_ODBC" = "builtin" ; then
27226 cat >>confdefs.h <<\_ACEOF
27227#define wxUSE_BUILTIN_IODBC 1
27228_ACEOF
27229
27230 fi
27231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27232
27233 WXODBCFLAG="-D_IODBC_"
27234 fi
27235fi
27236
a848cd7e 27237
01cb68df 27238
a848cd7e 27239if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27240 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27241 echo "$as_me:$LINENO: checking for Xinerama" >&5
27242echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27243
27244ac_find_libraries=
27245for ac_dir in $SEARCH_LIB /usr/lib;
27246 do
27247 for ac_extension in a so sl dylib; do
27248 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27249 ac_find_libraries=$ac_dir
27250 break 2
27251 fi
27252 done
27253 done
27254
27255 if test "$ac_find_libraries" != "" ; then
27256
27257 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27258 result=$?
27259 if test $result = 0; then
27260 ac_path_to_link=""
27261 else
27262 ac_path_to_link=" -L$ac_find_libraries"
27263 fi
27264
27265 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27266 LDFLAGS="$LDFLAGS $ac_path_to_link"
27267 fi
27268 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27269 echo "$as_me:$LINENO: result: yes" >&5
27270echo "${ECHO_T}yes" >&6
27271
27272 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27273echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27274
27275ac_find_libraries=
27276for ac_dir in $SEARCH_LIB /usr/lib;
27277 do
27278 for ac_extension in a so sl dylib; do
27279 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27280 ac_find_libraries=$ac_dir
27281 break 2
27282 fi
27283 done
27284 done
27285
27286 if test "$ac_find_libraries" != "" ; then
27287 echo "$as_me:$LINENO: result: yes" >&5
27288echo "${ECHO_T}yes" >&6
27289
27290for ac_header in X11/extensions/xf86vmode.h
27291do
27292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27293echo "$as_me:$LINENO: checking for $ac_header" >&5
27294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27295if eval "test \"\${$as_ac_Header+set}\" = set"; then
27296 echo $ECHO_N "(cached) $ECHO_C" >&6
27297else
27298 cat >conftest.$ac_ext <<_ACEOF
27299/* confdefs.h. */
27300_ACEOF
27301cat confdefs.h >>conftest.$ac_ext
27302cat >>conftest.$ac_ext <<_ACEOF
27303/* end confdefs.h. */
27304
27305 #if HAVE_X11_XLIB_H
27306 #include <X11/Xlib.h>
27307 #endif
27308
27309
27310#include <$ac_header>
27311_ACEOF
27312rm -f conftest.$ac_objext
27313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27314 (eval $ac_compile) 2>conftest.er1
a848cd7e 27315 ac_status=$?
ac1cb8d3
VS
27316 grep -v '^ *+' conftest.er1 >conftest.err
27317 rm -f conftest.er1
27318 cat conftest.err >&5
a848cd7e
SC
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } &&
5294a27e 27321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27324 ac_status=$?
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; } &&
27327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329 (eval $ac_try) 2>&5
27330 ac_status=$?
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); }; }; then
27333 eval "$as_ac_Header=yes"
27334else
27335 echo "$as_me: failed program was:" >&5
27336sed 's/^/| /' conftest.$ac_ext >&5
27337
27338eval "$as_ac_Header=no"
27339fi
ac1cb8d3 27340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27341fi
27342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27344if test `eval echo '${'$as_ac_Header'}'` = yes; then
27345 cat >>confdefs.h <<_ACEOF
27346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27347_ACEOF
27348
27349 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27350
27351fi
27352
27353done
27354
27355 else
27356 echo "$as_me:$LINENO: result: no" >&5
27357echo "${ECHO_T}no" >&6
27358 fi
27359
27360 else
27361 echo "$as_me:$LINENO: result: no" >&5
27362echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27363 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27364echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27365 wxUSE_DISPLAY="no"
27366 fi
01cb68df
RG
27367 elif test "$wxUSE_MSW" = 1; then
27368
27369
27370for ac_header in multimon.h ddraw.h
27371do
27372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27373echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27375if eval "test \"\${$as_ac_Header+set}\" = set"; then
27376 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27377else
5294a27e 27378 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27379/* confdefs.h. */
27380_ACEOF
27381cat confdefs.h >>conftest.$ac_ext
27382cat >>conftest.$ac_ext <<_ACEOF
27383/* end confdefs.h. */
5294a27e
VZ
27384#include <windows.h>
27385
01cb68df
RG
27386#include <$ac_header>
27387_ACEOF
27388rm -f conftest.$ac_objext
27389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27390 (eval $ac_compile) 2>conftest.er1
01cb68df 27391 ac_status=$?
ac1cb8d3
VS
27392 grep -v '^ *+' conftest.er1 >conftest.err
27393 rm -f conftest.er1
27394 cat conftest.err >&5
01cb68df
RG
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
5294a27e 27397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; } &&
27403 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
5294a27e 27409 eval "$as_ac_Header=yes"
01cb68df
RG
27410else
27411 echo "$as_me: failed program was:" >&5
27412sed 's/^/| /' conftest.$ac_ext >&5
27413
5294a27e 27414eval "$as_ac_Header=no"
01cb68df 27415fi
ac1cb8d3 27416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27417fi
27418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27420if test `eval echo '${'$as_ac_Header'}'` = yes; then
27421 cat >>confdefs.h <<_ACEOF
27422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27423_ACEOF
27424
27425else
27426
5294a27e
VZ
27427 wxUSE_DISPLAY="no"
27428 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27429echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27430
27431fi
27432
27433done
27434
a848cd7e
SC
27435 fi
27436fi
27437
27438
3b57de8b
RL
27439if test "$wxUSE_MEDIACTRL" = "yes"; then
27440 if test "$wxUSE_MSW" = 1; then
27441 wxUSE_DIRECTSHOW="yes"
27442
27443for ac_header in dshow.h
27444do
27445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27446echo "$as_me:$LINENO: checking for $ac_header" >&5
3b57de8b
RL
27447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27448if eval "test \"\${$as_ac_Header+set}\" = set"; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
3b57de8b 27450else
5294a27e 27451 cat >conftest.$ac_ext <<_ACEOF
3b57de8b
RL
27452/* confdefs.h. */
27453_ACEOF
27454cat confdefs.h >>conftest.$ac_ext
27455cat >>conftest.$ac_ext <<_ACEOF
27456/* end confdefs.h. */
5294a27e
VZ
27457#include <windows.h>
27458
3b57de8b
RL
27459#include <$ac_header>
27460_ACEOF
27461rm -f conftest.$ac_objext
27462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27463 (eval $ac_compile) 2>conftest.er1
27464 ac_status=$?
27465 grep -v '^ *+' conftest.er1 >conftest.err
27466 rm -f conftest.er1
27467 cat conftest.err >&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } &&
5294a27e 27470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3b57de8b
RL
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; } &&
27476 { ac_try='test -s conftest.$ac_objext'
27477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478 (eval $ac_try) 2>&5
27479 ac_status=$?
27480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481 (exit $ac_status); }; }; then
5294a27e 27482 eval "$as_ac_Header=yes"
3b57de8b
RL
27483else
27484 echo "$as_me: failed program was:" >&5
27485sed 's/^/| /' conftest.$ac_ext >&5
27486
5294a27e 27487eval "$as_ac_Header=no"
3b57de8b
RL
27488fi
27489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3b57de8b
RL
27490fi
27491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b57de8b
RL
27493if test `eval echo '${'$as_ac_Header'}'` = yes; then
27494 cat >>confdefs.h <<_ACEOF
27495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27496_ACEOF
27497
27498else
27499
5294a27e
VZ
27500 wxUSE_DIRECTSHOW="no"
27501 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
3b57de8b
RL
27502echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27503
27504fi
27505
27506done
27507
27508
27509 if test "$wxUSE_DIRECTSHOW" = "yes"; then
5294a27e 27510 cat >>confdefs.h <<\_ACEOF
3b57de8b
RL
27511#define wxUSE_DIRECTSHOW 1
27512_ACEOF
27513
5294a27e 27514 LIBS="$LIBS -lstrmiids"
a98bf0c0 27515 fi
3b57de8b 27516 fi
7e4a1c28 27517
fa9ad408 27518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
7e4a1c28
RN
27519 cat >>confdefs.h <<\_ACEOF
27520#define wxUSE_MEDIACTRL 1
27521_ACEOF
27522
3b57de8b
RL
27523fi
27524
27525
a848cd7e
SC
27526USE_OPENGL=0
27527if test "$wxUSE_OPENGL" = "yes"; then
27528 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27529 OPENGL_LIBS="-framework OpenGL -framework AGL"
27530 elif test "$wxUSE_MSW" = 1; then
27531 OPENGL_LIBS="-lopengl32 -lglu32"
27532 else
27533
27534
27535ac_find_includes=
27536for ac_dir in $SEARCH_INCLUDE /usr/include;
27537 do
27538 if test -f "$ac_dir/GL/gl.h"; then
27539 ac_find_includes=$ac_dir
27540 break
27541 fi
27542 done
27543
27544 if test "$ac_find_includes" != "" ; then
27545 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27546echo "${ECHO_T}found in $ac_find_includes" >&6
27547
27548 if test "x$ac_find_includes" = "x/usr/include"; then
27549 ac_path_to_include=""
27550 else
27551 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27552 result=$?
27553 if test $result = 0; then
27554 ac_path_to_include=""
27555 else
27556 ac_path_to_include=" -I$ac_find_includes"
27557 fi
27558 fi
27559
27560 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27561 fi
27562
27563 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27564 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27565echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27566if test "${ac_cv_header_GL_gl_h+set}" = set; then
27567 echo $ECHO_N "(cached) $ECHO_C" >&6
27568fi
27569echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27570echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27571else
27572 # Is the header compilable?
27573echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27574echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27575cat >conftest.$ac_ext <<_ACEOF
27576/* confdefs.h. */
27577_ACEOF
27578cat confdefs.h >>conftest.$ac_ext
27579cat >>conftest.$ac_ext <<_ACEOF
27580/* end confdefs.h. */
27581$ac_includes_default
27582#include <GL/gl.h>
27583_ACEOF
27584rm -f conftest.$ac_objext
27585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27586 (eval $ac_compile) 2>conftest.er1
a848cd7e 27587 ac_status=$?
ac1cb8d3
VS
27588 grep -v '^ *+' conftest.er1 >conftest.err
27589 rm -f conftest.er1
27590 cat conftest.err >&5
a848cd7e
SC
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); } &&
5294a27e 27593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27595 (eval $ac_try) 2>&5
27596 ac_status=$?
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; } &&
27599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601 (eval $ac_try) 2>&5
27602 ac_status=$?
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; }; then
27605 ac_header_compiler=yes
27606else
27607 echo "$as_me: failed program was:" >&5
27608sed 's/^/| /' conftest.$ac_ext >&5
27609
27610ac_header_compiler=no
27611fi
ac1cb8d3 27612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27614echo "${ECHO_T}$ac_header_compiler" >&6
27615
27616# Is the header present?
27617echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27618echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27619cat >conftest.$ac_ext <<_ACEOF
27620/* confdefs.h. */
27621_ACEOF
27622cat confdefs.h >>conftest.$ac_ext
27623cat >>conftest.$ac_ext <<_ACEOF
27624/* end confdefs.h. */
27625#include <GL/gl.h>
27626_ACEOF
27627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27629 ac_status=$?
27630 grep -v '^ *+' conftest.er1 >conftest.err
27631 rm -f conftest.er1
27632 cat conftest.err >&5
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); } >/dev/null; then
27635 if test -s conftest.err; then
27636 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27638 else
27639 ac_cpp_err=
27640 fi
27641else
27642 ac_cpp_err=yes
27643fi
27644if test -z "$ac_cpp_err"; then
27645 ac_header_preproc=yes
27646else
27647 echo "$as_me: failed program was:" >&5
27648sed 's/^/| /' conftest.$ac_ext >&5
27649
27650 ac_header_preproc=no
27651fi
27652rm -f conftest.err conftest.$ac_ext
27653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27654echo "${ECHO_T}$ac_header_preproc" >&6
27655
27656# So? What about this header?
ac1cb8d3
VS
27657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27658 yes:no: )
a848cd7e
SC
27659 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27660echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27661 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27662echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27663 ac_header_preproc=yes
a848cd7e 27664 ;;
ac1cb8d3 27665 no:yes:* )
a848cd7e
SC
27666 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27667echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27668 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27669echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27670 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27671echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27672 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27673echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27674 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27675echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27676 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27677echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27678 (
27679 cat <<\_ASBOX
ac1cb8d3
VS
27680## ----------------------------------------- ##
27681## Report this to wx-dev@lists.wxwidgets.org ##
27682## ----------------------------------------- ##
a848cd7e
SC
27683_ASBOX
27684 ) |
27685 sed "s/^/$as_me: WARNING: /" >&2
27686 ;;
27687esac
27688echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27689echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27690if test "${ac_cv_header_GL_gl_h+set}" = set; then
27691 echo $ECHO_N "(cached) $ECHO_C" >&6
27692else
27693 ac_cv_header_GL_gl_h=$ac_header_preproc
27694fi
27695echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27696echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27697
27698fi
27699if test $ac_cv_header_GL_gl_h = yes; then
27700
27701 found_gl=0
27702
27703 echo "$as_me:$LINENO: checking for -lGL" >&5
27704echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27705
27706ac_find_libraries=
27707for ac_dir in $SEARCH_LIB /usr/lib;
27708 do
27709 for ac_extension in a so sl dylib; do
27710 if test -f "$ac_dir/libGL.$ac_extension"; then
27711 ac_find_libraries=$ac_dir
27712 break 2
27713 fi
27714 done
27715 done
27716
27717 if test "$ac_find_libraries" != "" ; then
27718
27719 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27720 result=$?
27721 if test $result = 0; then
27722 ac_path_to_link=""
27723 else
27724 ac_path_to_link=" -L$ac_find_libraries"
27725 fi
27726
27727 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27728 LDFLAGS_GL="$ac_path_to_link"
27729 fi
27730
27731
27732ac_find_libraries=
27733for ac_dir in $SEARCH_LIB /usr/lib;
27734 do
27735 for ac_extension in a so sl dylib; do
27736 if test -f "$ac_dir/libGLU.$ac_extension"; then
27737 ac_find_libraries=$ac_dir
27738 break 2
27739 fi
27740 done
27741 done
27742
27743 if test "$ac_find_libraries" != "" ; then
27744
27745 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27746 result=$?
27747 if test $result = 0; then
27748 ac_path_to_link=""
27749 else
27750 ac_path_to_link=" -L$ac_find_libraries"
27751 fi
27752
27753 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27754 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27755 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27756 fi
27757
27758 found_gl=1
27759 OPENGL_LIBS="-lGL -lGLU"
27760 echo "$as_me:$LINENO: result: yes" >&5
27761echo "${ECHO_T}yes" >&6
27762 fi
27763 fi
27764
27765 if test "$found_gl" != 1; then
27766 echo "$as_me:$LINENO: result: no" >&5
27767echo "${ECHO_T}no" >&6
27768 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27769echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27770
27771ac_find_libraries=
27772for ac_dir in $SEARCH_LIB /usr/lib;
27773 do
27774 for ac_extension in a so sl dylib; do
27775 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27776 ac_find_libraries=$ac_dir
27777 break 2
27778 fi
27779 done
27780 done
27781
27782 if test "$ac_find_libraries" != "" ; then
27783
27784 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27785 result=$?
27786 if test $result = 0; then
27787 ac_path_to_link=""
27788 else
27789 ac_path_to_link=" -L$ac_find_libraries"
27790 fi
27791
27792 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27793 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27794 echo "$as_me:$LINENO: result: yes" >&5
27795echo "${ECHO_T}yes" >&6
27796 else
27797 echo "$as_me:$LINENO: result: no" >&5
27798echo "${ECHO_T}no" >&6
27799 fi
27800 fi
27801
27802fi
27803
27804
27805
27806 if test "x$OPENGL_LIBS" = "x"; then
27807 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27808echo "$as_me: error: OpenGL libraries not available" >&2;}
27809 { (exit 1); exit 1; }; }
27810 fi
27811 fi
27812
27813 if test "$wxUSE_OPENGL" = "yes"; then
27814 USE_OPENGL=1
27815 cat >>confdefs.h <<\_ACEOF
27816#define wxUSE_OPENGL 1
27817_ACEOF
27818
27819 cat >>confdefs.h <<\_ACEOF
27820#define wxUSE_GLCANVAS 1
27821_ACEOF
27822
27823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27824 fi
27825fi
27826
a848cd7e
SC
27827
27828if test -n "$TOOLKIT" ; then
27829 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27830fi
27831
a848cd7e
SC
27832
27833
27834if test "$wxUSE_SHARED" = "yes"; then
27835 case "${host}" in
27836 *-pc-msdosdjgpp )
27837 wxUSE_SHARED=no
27838 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27839echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27840 ;;
27841 esac
27842fi
27843
a848cd7e 27844if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27845
27846
27847 found_versioning=no
27848
27849
27850 if test $found_versioning = no ; then
27851 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27852echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27853if test "${wx_cv_version_script+set}" = set; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27855else
27856
27857 echo "VER_1 { *; };" >conftest.sym
27858 echo "int main() { return 0; }" >conftest.cpp
27859
27860 if { ac_try='
27861 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27862 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
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 if test -s conftest.stderr ; then
27869 wx_cv_version_script=no
27870 else
27871 wx_cv_version_script=yes
27872 fi
27873 else
27874 wx_cv_version_script=no
27875 fi
27876 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27877
27878fi
27879echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27880echo "${ECHO_T}$wx_cv_version_script" >&6
27881 if test $wx_cv_version_script = yes ; then
27882 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27883 fi
27884 fi
27885
27886
27887 case "${host}" in
27888 *-*-linux* | *-*-gnu* )
27889 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27890 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27891 ;;
27892
27893 *-*-solaris2* )
27894 if test "$GCC" = yes ; then
27895 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27896
27897 saveLdflags="$LDFLAGS"
27898 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27899 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27900echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27901 cat >conftest.$ac_ext <<_ACEOF
27902/* confdefs.h. */
27903_ACEOF
27904cat confdefs.h >>conftest.$ac_ext
27905cat >>conftest.$ac_ext <<_ACEOF
27906/* end confdefs.h. */
27907
27908int
27909main ()
27910{
27911
27912 ;
27913 return 0;
27914}
27915_ACEOF
27916rm -f conftest.$ac_objext conftest$ac_exeext
27917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27918 (eval $ac_link) 2>conftest.er1
a848cd7e 27919 ac_status=$?
ac1cb8d3
VS
27920 grep -v '^ *+' conftest.er1 >conftest.err
27921 rm -f conftest.er1
27922 cat conftest.err >&5
a848cd7e
SC
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } &&
5294a27e 27925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927 (eval $ac_try) 2>&5
27928 ac_status=$?
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; } &&
27931 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933 (eval $ac_try) 2>&5
27934 ac_status=$?
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; }; then
27937
27938 echo "$as_me:$LINENO: result: yes" >&5
27939echo "${ECHO_T}yes" >&6
27940 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27941 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27942
27943else
27944 echo "$as_me: failed program was:" >&5
27945sed 's/^/| /' conftest.$ac_ext >&5
27946
27947
27948 echo "$as_me:$LINENO: result: no" >&5
27949echo "${ECHO_T}no" >&6
27950 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27951echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27952 LDFLAGS="$saveLdflags -Wl,-R,/"
27953 cat >conftest.$ac_ext <<_ACEOF
27954/* confdefs.h. */
27955_ACEOF
27956cat confdefs.h >>conftest.$ac_ext
27957cat >>conftest.$ac_ext <<_ACEOF
27958/* end confdefs.h. */
27959
27960int
27961main ()
27962{
27963
27964 ;
27965 return 0;
27966}
27967_ACEOF
27968rm -f conftest.$ac_objext conftest$ac_exeext
27969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27970 (eval $ac_link) 2>conftest.er1
a848cd7e 27971 ac_status=$?
ac1cb8d3
VS
27972 grep -v '^ *+' conftest.er1 >conftest.err
27973 rm -f conftest.er1
27974 cat conftest.err >&5
a848cd7e
SC
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } &&
5294a27e 27977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27979 (eval $ac_try) 2>&5
27980 ac_status=$?
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; } &&
27983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985 (eval $ac_try) 2>&5
27986 ac_status=$?
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; }; then
27989
ffa0583f 27990 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 27991echo "${ECHO_T}yes" >&6
ffa0583f
RL
27992 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27993 WXCONFIG_RPATH="-Wl,-R,\$libdir"
27994
a848cd7e
SC
27995else
27996 echo "$as_me: failed program was:" >&5
27997sed 's/^/| /' conftest.$ac_ext >&5
27998
27999
28000 echo "$as_me:$LINENO: result: no" >&5
28001echo "${ECHO_T}no" >&6
28002
28003fi
ac1cb8d3
VS
28004rm -f conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28006
28007fi
ac1cb8d3
VS
28008rm -f conftest.err conftest.$ac_objext \
28009 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28010 LDFLAGS="$saveLdflags"
28011 else
a848cd7e 28012 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28013 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28014 fi
28015 ;;
28016
28017 powerpc-*-darwin* )
28018 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28019 cat <<EOF >change-install-names
28020#!/bin/sh
28021libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28022inst_cmd="install_name_tool "
28023for i in \${libnames} ; do
28024 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28025done
28026\${inst_cmd} \${3}
28027EOF
28028 chmod +x change-install-names
28029 ;;
28030
28031 *-*-cygwin* | *-*-mingw32* )
28032 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28033 ;;
28034
28035 esac
ceec2216 28036
ffa0583f
RL
28037 if test $wxUSE_RPATH = "no"; then
28038 SAMPLES_RPATH_FLAG=''
28039 SAMPLES_RPATH_POSTLINK=''
28040 WXCONFIG_RPATH=''
28041 fi
28042
28043 SHARED=1
28044
28045else
28046
ceec2216
RL
28047 config_linkage_component="-static"
28048 SHARED=0
ffa0583f 28049
ceec2216 28050fi
a848cd7e 28051
a848cd7e 28052
ceec2216
RL
28053UNICODE=0
28054lib_unicode_suffix=
28055WX_CHARTYPE="ansi"
28056if test "$wxUSE_UNICODE" = "yes"; then
28057 lib_unicode_suffix=u
28058 WX_CHARTYPE="unicode"
28059 UNICODE=1
a848cd7e
SC
28060fi
28061
ceec2216
RL
28062lib_debug_suffix=
28063WX_DEBUGTYPE="release"
28064DEBUG_FLAG=0
28065if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28066 lib_debug_suffix=d
28067 WX_DEBUGTYPE="debug"
28068 DEBUG_FLAG=1
28069fi
a848cd7e 28070
ceec2216
RL
28071WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28072WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28073
ceec2216
RL
28074DEBUG_INFO=0
28075if test "$wxUSE_DEBUG_INFO" = "yes"; then
28076 DEBUG_INFO=1
28077fi
a848cd7e 28078
ceec2216 28079WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28080
ceec2216 28081TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28082
ceec2216 28083TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28084
ceec2216
RL
28085if test "$cross_compiling" = "yes"; then
28086 HOST_SUFFIX="-$host_alias"
28087 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28088 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28089fi
28090
dd21ced8 28091WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28092WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28093
28094
28095
a848cd7e 28096if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28097 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28098 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28099
a848cd7e 28100 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28101
28102 # Extract the first word of "Rez", so it can be a program name with args.
28103set dummy Rez; ac_word=$2
28104echo "$as_me:$LINENO: checking for $ac_word" >&5
28105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28106if test "${ac_cv_prog_RESCOMP+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28108else
28109 if test -n "$RESCOMP"; then
28110 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28111else
28112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28113for as_dir in $PATH
28114do
28115 IFS=$as_save_IFS
28116 test -z "$as_dir" && as_dir=.
28117 for ac_exec_ext in '' $ac_executable_extensions; do
28118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28119 ac_cv_prog_RESCOMP="Rez"
28120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28121 break 2
28122 fi
28123done
28124done
28125
28126 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28127fi
28128fi
28129RESCOMP=$ac_cv_prog_RESCOMP
28130if test -n "$RESCOMP"; then
28131 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28132echo "${ECHO_T}$RESCOMP" >&6
28133else
28134 echo "$as_me:$LINENO: result: no" >&5
28135echo "${ECHO_T}no" >&6
28136fi
28137
28138 # Extract the first word of "DeRez", so it can be a program name with args.
28139set dummy DeRez; ac_word=$2
28140echo "$as_me:$LINENO: checking for $ac_word" >&5
28141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28142if test "${ac_cv_prog_DEREZ+set}" = set; then
28143 echo $ECHO_N "(cached) $ECHO_C" >&6
28144else
28145 if test -n "$DEREZ"; then
28146 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28147else
28148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28149for as_dir in $PATH
28150do
28151 IFS=$as_save_IFS
28152 test -z "$as_dir" && as_dir=.
28153 for ac_exec_ext in '' $ac_executable_extensions; do
28154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28155 ac_cv_prog_DEREZ="DeRez"
28156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28157 break 2
28158 fi
28159done
28160done
28161
28162 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28163fi
28164fi
28165DEREZ=$ac_cv_prog_DEREZ
28166if test -n "$DEREZ"; then
28167 echo "$as_me:$LINENO: result: $DEREZ" >&5
28168echo "${ECHO_T}$DEREZ" >&6
28169else
28170 echo "$as_me:$LINENO: result: no" >&5
28171echo "${ECHO_T}no" >&6
28172fi
28173
28174 # Extract the first word of "SetFile", so it can be a program name with args.
28175set dummy SetFile; ac_word=$2
28176echo "$as_me:$LINENO: checking for $ac_word" >&5
28177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28178if test "${ac_cv_prog_SETFILE+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28180else
28181 if test -n "$SETFILE"; then
28182 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28183else
28184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28185for as_dir in $PATH
28186do
28187 IFS=$as_save_IFS
28188 test -z "$as_dir" && as_dir=.
28189 for ac_exec_ext in '' $ac_executable_extensions; do
28190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28191 ac_cv_prog_SETFILE="SetFile"
28192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28193 break 2
28194 fi
28195done
28196done
28197
28198 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28199fi
28200fi
28201SETFILE=$ac_cv_prog_SETFILE
28202if test -n "$SETFILE"; then
28203 echo "$as_me:$LINENO: result: $SETFILE" >&5
28204echo "${ECHO_T}$SETFILE" >&6
28205else
28206 echo "$as_me:$LINENO: result: no" >&5
28207echo "${ECHO_T}no" >&6
28208fi
28209
28210
28211 MACSETFILE="\$(SETFILE)"
28212
28213 if test "$wxUSE_MAC" = 1; then
28214 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28215
28216 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28217 else
28218 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28219 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28220 fi
28221else
ffa0583f
RL
28222 MACSETFILE="@true"
28223 MACRESWXCONFIG="@true"
a848cd7e
SC
28224
28225 if test "$wxUSE_PM" = 1; then
28226 MACRESCOMP="emxbind -ep"
28227 else
ffa0583f 28228 MACRESCOMP="@true"
a848cd7e
SC
28229 fi
28230fi
28231
28232
28233
28234echo "$as_me:$LINENO: checking for mode_t" >&5
28235echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28236if test "${ac_cv_type_mode_t+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28238else
28239 cat >conftest.$ac_ext <<_ACEOF
28240/* confdefs.h. */
28241_ACEOF
28242cat confdefs.h >>conftest.$ac_ext
28243cat >>conftest.$ac_ext <<_ACEOF
28244/* end confdefs.h. */
28245$ac_includes_default
28246int
28247main ()
28248{
28249if ((mode_t *) 0)
28250 return 0;
28251if (sizeof (mode_t))
28252 return 0;
28253 ;
28254 return 0;
28255}
28256_ACEOF
28257rm -f conftest.$ac_objext
28258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28259 (eval $ac_compile) 2>conftest.er1
a848cd7e 28260 ac_status=$?
ac1cb8d3
VS
28261 grep -v '^ *+' conftest.er1 >conftest.err
28262 rm -f conftest.er1
28263 cat conftest.err >&5
a848cd7e
SC
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); } &&
5294a27e 28266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268 (eval $ac_try) 2>&5
28269 ac_status=$?
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); }; } &&
28272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28274 (eval $ac_try) 2>&5
28275 ac_status=$?
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); }; }; then
28278 ac_cv_type_mode_t=yes
28279else
28280 echo "$as_me: failed program was:" >&5
28281sed 's/^/| /' conftest.$ac_ext >&5
28282
28283ac_cv_type_mode_t=no
28284fi
ac1cb8d3 28285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28286fi
28287echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28288echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28289if test $ac_cv_type_mode_t = yes; then
28290 :
28291else
28292
28293cat >>confdefs.h <<_ACEOF
28294#define mode_t int
28295_ACEOF
28296
28297fi
28298
28299echo "$as_me:$LINENO: checking for off_t" >&5
28300echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28301if test "${ac_cv_type_off_t+set}" = set; then
28302 echo $ECHO_N "(cached) $ECHO_C" >&6
28303else
28304 cat >conftest.$ac_ext <<_ACEOF
28305/* confdefs.h. */
28306_ACEOF
28307cat confdefs.h >>conftest.$ac_ext
28308cat >>conftest.$ac_ext <<_ACEOF
28309/* end confdefs.h. */
28310$ac_includes_default
28311int
28312main ()
28313{
28314if ((off_t *) 0)
28315 return 0;
28316if (sizeof (off_t))
28317 return 0;
28318 ;
28319 return 0;
28320}
28321_ACEOF
28322rm -f conftest.$ac_objext
28323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28324 (eval $ac_compile) 2>conftest.er1
a848cd7e 28325 ac_status=$?
ac1cb8d3
VS
28326 grep -v '^ *+' conftest.er1 >conftest.err
28327 rm -f conftest.er1
28328 cat conftest.err >&5
a848cd7e
SC
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); } &&
5294a27e 28331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333 (eval $ac_try) 2>&5
28334 ac_status=$?
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; } &&
28337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339 (eval $ac_try) 2>&5
28340 ac_status=$?
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; }; then
28343 ac_cv_type_off_t=yes
28344else
28345 echo "$as_me: failed program was:" >&5
28346sed 's/^/| /' conftest.$ac_ext >&5
28347
28348ac_cv_type_off_t=no
28349fi
ac1cb8d3 28350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28351fi
28352echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28353echo "${ECHO_T}$ac_cv_type_off_t" >&6
28354if test $ac_cv_type_off_t = yes; then
28355 :
28356else
28357
28358cat >>confdefs.h <<_ACEOF
28359#define off_t long
28360_ACEOF
28361
28362fi
28363
28364echo "$as_me:$LINENO: checking for pid_t" >&5
28365echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28366if test "${ac_cv_type_pid_t+set}" = set; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28368else
28369 cat >conftest.$ac_ext <<_ACEOF
28370/* confdefs.h. */
28371_ACEOF
28372cat confdefs.h >>conftest.$ac_ext
28373cat >>conftest.$ac_ext <<_ACEOF
28374/* end confdefs.h. */
28375$ac_includes_default
28376int
28377main ()
28378{
28379if ((pid_t *) 0)
28380 return 0;
28381if (sizeof (pid_t))
28382 return 0;
28383 ;
28384 return 0;
28385}
28386_ACEOF
28387rm -f conftest.$ac_objext
28388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28389 (eval $ac_compile) 2>conftest.er1
a848cd7e 28390 ac_status=$?
ac1cb8d3
VS
28391 grep -v '^ *+' conftest.er1 >conftest.err
28392 rm -f conftest.er1
28393 cat conftest.err >&5
a848cd7e
SC
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } &&
5294a27e 28396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398 (eval $ac_try) 2>&5
28399 ac_status=$?
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); }; } &&
28402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404 (eval $ac_try) 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
28408 ac_cv_type_pid_t=yes
28409else
28410 echo "$as_me: failed program was:" >&5
28411sed 's/^/| /' conftest.$ac_ext >&5
28412
28413ac_cv_type_pid_t=no
28414fi
ac1cb8d3 28415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28416fi
28417echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28418echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28419if test $ac_cv_type_pid_t = yes; then
28420 :
28421else
28422
28423cat >>confdefs.h <<_ACEOF
28424#define pid_t int
28425_ACEOF
28426
28427fi
28428
28429echo "$as_me:$LINENO: checking for size_t" >&5
28430echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28431if test "${ac_cv_type_size_t+set}" = set; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28433else
28434 cat >conftest.$ac_ext <<_ACEOF
28435/* confdefs.h. */
28436_ACEOF
28437cat confdefs.h >>conftest.$ac_ext
28438cat >>conftest.$ac_ext <<_ACEOF
28439/* end confdefs.h. */
28440$ac_includes_default
28441int
28442main ()
28443{
28444if ((size_t *) 0)
28445 return 0;
28446if (sizeof (size_t))
28447 return 0;
28448 ;
28449 return 0;
28450}
28451_ACEOF
28452rm -f conftest.$ac_objext
28453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28454 (eval $ac_compile) 2>conftest.er1
a848cd7e 28455 ac_status=$?
ac1cb8d3
VS
28456 grep -v '^ *+' conftest.er1 >conftest.err
28457 rm -f conftest.er1
28458 cat conftest.err >&5
a848cd7e
SC
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } &&
5294a27e 28461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; } &&
28467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469 (eval $ac_try) 2>&5
28470 ac_status=$?
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); }; }; then
28473 ac_cv_type_size_t=yes
28474else
28475 echo "$as_me: failed program was:" >&5
28476sed 's/^/| /' conftest.$ac_ext >&5
28477
28478ac_cv_type_size_t=no
28479fi
ac1cb8d3 28480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28481fi
28482echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28483echo "${ECHO_T}$ac_cv_type_size_t" >&6
28484if test $ac_cv_type_size_t = yes; then
28485 :
28486else
28487
28488cat >>confdefs.h <<_ACEOF
28489#define size_t unsigned
28490_ACEOF
28491
28492fi
28493
28494echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28495echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28496if test "${ac_cv_type_uid_t+set}" = set; then
28497 echo $ECHO_N "(cached) $ECHO_C" >&6
28498else
28499 cat >conftest.$ac_ext <<_ACEOF
28500/* confdefs.h. */
28501_ACEOF
28502cat confdefs.h >>conftest.$ac_ext
28503cat >>conftest.$ac_ext <<_ACEOF
28504/* end confdefs.h. */
28505#include <sys/types.h>
28506
28507_ACEOF
28508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28509 $EGREP "uid_t" >/dev/null 2>&1; then
28510 ac_cv_type_uid_t=yes
28511else
28512 ac_cv_type_uid_t=no
28513fi
28514rm -f conftest*
28515
28516fi
28517echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28518echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28519if test $ac_cv_type_uid_t = no; then
28520
28521cat >>confdefs.h <<\_ACEOF
28522#define uid_t int
28523_ACEOF
28524
28525
28526cat >>confdefs.h <<\_ACEOF
28527#define gid_t int
28528_ACEOF
28529
28530fi
28531
28532
d51253e8
RL
28533echo "$as_me:$LINENO: checking for ssize_t" >&5
28534echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28535if test "${ac_cv_type_ssize_t+set}" = set; then
28536 echo $ECHO_N "(cached) $ECHO_C" >&6
28537else
28538 cat >conftest.$ac_ext <<_ACEOF
28539/* confdefs.h. */
28540_ACEOF
28541cat confdefs.h >>conftest.$ac_ext
28542cat >>conftest.$ac_ext <<_ACEOF
28543/* end confdefs.h. */
28544$ac_includes_default
28545int
28546main ()
28547{
28548if ((ssize_t *) 0)
28549 return 0;
28550if (sizeof (ssize_t))
28551 return 0;
28552 ;
28553 return 0;
28554}
28555_ACEOF
28556rm -f conftest.$ac_objext
28557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28558 (eval $ac_compile) 2>conftest.er1
28559 ac_status=$?
28560 grep -v '^ *+' conftest.er1 >conftest.err
28561 rm -f conftest.er1
28562 cat conftest.err >&5
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); } &&
5294a27e 28565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
28566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567 (eval $ac_try) 2>&5
28568 ac_status=$?
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); }; } &&
28571 { ac_try='test -s conftest.$ac_objext'
28572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573 (eval $ac_try) 2>&5
28574 ac_status=$?
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; }; then
28577 ac_cv_type_ssize_t=yes
28578else
28579 echo "$as_me: failed program was:" >&5
28580sed 's/^/| /' conftest.$ac_ext >&5
28581
28582ac_cv_type_ssize_t=no
28583fi
28584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28585fi
28586echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28587echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28588if test $ac_cv_type_ssize_t = yes; then
28589
28590cat >>confdefs.h <<_ACEOF
28591#define HAVE_SSIZE_T 1
28592_ACEOF
28593
28594
28595fi
28596
28597
a848cd7e
SC
28598
28599
28600ac_ext=cc
28601ac_cpp='$CXXCPP $CPPFLAGS'
28602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28605
28606echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28607echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28608if test "${wx_cv_size_t_is_uint+set}" = set; then
28609 echo $ECHO_N "(cached) $ECHO_C" >&6
28610else
28611
28612 cat >conftest.$ac_ext <<_ACEOF
28613/* confdefs.h. */
28614_ACEOF
28615cat confdefs.h >>conftest.$ac_ext
28616cat >>conftest.$ac_ext <<_ACEOF
28617/* end confdefs.h. */
28618#include <stddef.h>
28619int
28620main ()
28621{
28622
28623 return 0; }
28624
28625 struct Foo { void foo(size_t); void foo(unsigned int); };
28626
28627 int bar() {
28628
28629 ;
28630 return 0;
28631}
28632_ACEOF
28633rm -f conftest.$ac_objext
28634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28635 (eval $ac_compile) 2>conftest.er1
a848cd7e 28636 ac_status=$?
ac1cb8d3
VS
28637 grep -v '^ *+' conftest.er1 >conftest.err
28638 rm -f conftest.er1
28639 cat conftest.err >&5
a848cd7e
SC
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } &&
5294a27e 28642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; } &&
28648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650 (eval $ac_try) 2>&5
28651 ac_status=$?
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; }; then
28654 wx_cv_size_t_is_uint=no
28655else
28656 echo "$as_me: failed program was:" >&5
28657sed 's/^/| /' conftest.$ac_ext >&5
28658
28659wx_cv_size_t_is_uint=yes
28660
28661fi
ac1cb8d3 28662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28663
28664
28665fi
28666echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28667echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28668
28669if test "$wx_cv_size_t_is_uint" = "yes"; then
28670 cat >>confdefs.h <<\_ACEOF
28671#define wxSIZE_T_IS_UINT 1
28672_ACEOF
28673
28674else
28675 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28676echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28677if test "${wx_cv_size_t_is_ulong+set}" = set; then
28678 echo $ECHO_N "(cached) $ECHO_C" >&6
28679else
28680 cat >conftest.$ac_ext <<_ACEOF
28681/* confdefs.h. */
28682_ACEOF
28683cat confdefs.h >>conftest.$ac_ext
28684cat >>conftest.$ac_ext <<_ACEOF
28685/* end confdefs.h. */
28686#include <stddef.h>
28687int
28688main ()
28689{
28690
28691 return 0; }
28692
28693 struct Foo { void foo(size_t); void foo(unsigned long); };
28694
28695 int bar() {
28696
28697 ;
28698 return 0;
28699}
28700_ACEOF
28701rm -f conftest.$ac_objext
28702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28703 (eval $ac_compile) 2>conftest.er1
a848cd7e 28704 ac_status=$?
ac1cb8d3
VS
28705 grep -v '^ *+' conftest.er1 >conftest.err
28706 rm -f conftest.er1
28707 cat conftest.err >&5
a848cd7e
SC
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); } &&
5294a27e 28710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28712 (eval $ac_try) 2>&5
28713 ac_status=$?
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); }; } &&
28716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28722 wx_cv_size_t_is_ulong=no
28723else
28724 echo "$as_me: failed program was:" >&5
28725sed 's/^/| /' conftest.$ac_ext >&5
28726
28727wx_cv_size_t_is_ulong=yes
28728
28729fi
ac1cb8d3 28730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28731
28732fi
28733echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28734echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28735
28736 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28737 cat >>confdefs.h <<\_ACEOF
28738#define wxSIZE_T_IS_ULONG 1
28739_ACEOF
28740
28741 fi
28742fi
28743
28744ac_ext=c
28745ac_cpp='$CPP $CPPFLAGS'
28746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28748ac_compiler_gnu=$ac_cv_c_compiler_gnu
28749
28750
28751
28752echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28753echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28754if test "${wx_cv_struct_pw_gecos+set}" = set; then
28755 echo $ECHO_N "(cached) $ECHO_C" >&6
28756else
28757
28758 cat >conftest.$ac_ext <<_ACEOF
28759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
28764#include <pwd.h>
28765int
28766main ()
28767{
28768
28769 char *p;
28770 struct passwd *pw;
28771 p = pw->pw_gecos;
28772
28773 ;
28774 return 0;
28775}
28776_ACEOF
28777rm -f conftest.$ac_objext
28778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28779 (eval $ac_compile) 2>conftest.er1
a848cd7e 28780 ac_status=$?
ac1cb8d3
VS
28781 grep -v '^ *+' conftest.er1 >conftest.err
28782 rm -f conftest.er1
28783 cat conftest.err >&5
a848cd7e
SC
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); } &&
5294a27e 28786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28788 (eval $ac_try) 2>&5
28789 ac_status=$?
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); }; } &&
28792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794 (eval $ac_try) 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; }; then
28798
28799 wx_cv_struct_pw_gecos=yes
28800
28801else
28802 echo "$as_me: failed program was:" >&5
28803sed 's/^/| /' conftest.$ac_ext >&5
28804
28805
28806 wx_cv_struct_pw_gecos=no
28807
28808
28809fi
ac1cb8d3 28810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28811
28812
28813fi
28814echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28815echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28816
28817if test "$wx_cv_struct_pw_gecos" = "yes"; then
28818 cat >>confdefs.h <<\_ACEOF
28819#define HAVE_PW_GECOS 1
28820_ACEOF
28821
28822fi
28823
28824
28825if test "$wx_cv_sizeof_wchar_t" != "0"; then
28826 cat >>confdefs.h <<\_ACEOF
28827#define wxUSE_WCHAR_T 1
28828_ACEOF
28829
28830
28831 WCSLEN_FOUND=0
28832 WCHAR_LINK=
28833
28834for ac_func in wcslen
28835do
28836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28837echo "$as_me:$LINENO: checking for $ac_func" >&5
28838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28839if eval "test \"\${$as_ac_var+set}\" = set"; then
28840 echo $ECHO_N "(cached) $ECHO_C" >&6
28841else
28842 cat >conftest.$ac_ext <<_ACEOF
28843/* confdefs.h. */
28844_ACEOF
28845cat confdefs.h >>conftest.$ac_ext
28846cat >>conftest.$ac_ext <<_ACEOF
28847/* end confdefs.h. */
ac1cb8d3
VS
28848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28850#define $ac_func innocuous_$ac_func
28851
a848cd7e
SC
28852/* System header to define __stub macros and hopefully few prototypes,
28853 which can conflict with char $ac_func (); below.
28854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28855 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28856
a848cd7e
SC
28857#ifdef __STDC__
28858# include <limits.h>
28859#else
28860# include <assert.h>
28861#endif
ac1cb8d3
VS
28862
28863#undef $ac_func
28864
a848cd7e
SC
28865/* Override any gcc2 internal prototype to avoid an error. */
28866#ifdef __cplusplus
28867extern "C"
28868{
28869#endif
28870/* We use char because int might match the return type of a gcc2
28871 builtin and then its argument prototype would still apply. */
28872char $ac_func ();
28873/* The GNU C library defines this for functions which it implements
28874 to always fail with ENOSYS. Some functions are actually named
28875 something starting with __ and the normal name is an alias. */
28876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28877choke me
28878#else
28879char (*f) () = $ac_func;
28880#endif
28881#ifdef __cplusplus
28882}
28883#endif
28884
28885int
28886main ()
28887{
28888return f != $ac_func;
28889 ;
28890 return 0;
28891}
28892_ACEOF
28893rm -f conftest.$ac_objext conftest$ac_exeext
28894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28895 (eval $ac_link) 2>conftest.er1
a848cd7e 28896 ac_status=$?
ac1cb8d3
VS
28897 grep -v '^ *+' conftest.er1 >conftest.err
28898 rm -f conftest.er1
28899 cat conftest.err >&5
a848cd7e
SC
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); } &&
5294a27e 28902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28905 ac_status=$?
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; } &&
28908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910 (eval $ac_try) 2>&5
28911 ac_status=$?
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; }; then
28914 eval "$as_ac_var=yes"
28915else
28916 echo "$as_me: failed program was:" >&5
28917sed 's/^/| /' conftest.$ac_ext >&5
28918
28919eval "$as_ac_var=no"
28920fi
ac1cb8d3
VS
28921rm -f conftest.err conftest.$ac_objext \
28922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28923fi
28924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28926if test `eval echo '${'$as_ac_var'}'` = yes; then
28927 cat >>confdefs.h <<_ACEOF
28928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28929_ACEOF
28930 WCSLEN_FOUND=1
28931fi
28932done
28933
28934
28935 if test "$WCSLEN_FOUND" = 0; then
28936 if test "$TOOLKIT" = "MSW"; then
28937 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28938echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28939if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28941else
28942 ac_check_lib_save_LIBS=$LIBS
28943LIBS="-lmsvcrt $LIBS"
28944cat >conftest.$ac_ext <<_ACEOF
28945/* confdefs.h. */
28946_ACEOF
28947cat confdefs.h >>conftest.$ac_ext
28948cat >>conftest.$ac_ext <<_ACEOF
28949/* end confdefs.h. */
28950
28951/* Override any gcc2 internal prototype to avoid an error. */
28952#ifdef __cplusplus
28953extern "C"
28954#endif
28955/* We use char because int might match the return type of a gcc2
28956 builtin and then its argument prototype would still apply. */
28957char wcslen ();
28958int
28959main ()
28960{
28961wcslen ();
28962 ;
28963 return 0;
28964}
28965_ACEOF
28966rm -f conftest.$ac_objext conftest$ac_exeext
28967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28968 (eval $ac_link) 2>conftest.er1
a848cd7e 28969 ac_status=$?
ac1cb8d3
VS
28970 grep -v '^ *+' conftest.er1 >conftest.err
28971 rm -f conftest.er1
28972 cat conftest.err >&5
a848cd7e
SC
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); } &&
5294a27e 28975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977 (eval $ac_try) 2>&5
28978 ac_status=$?
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; } &&
28981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983 (eval $ac_try) 2>&5
28984 ac_status=$?
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); }; }; then
28987 ac_cv_lib_msvcrt_wcslen=yes
28988else
28989 echo "$as_me: failed program was:" >&5
28990sed 's/^/| /' conftest.$ac_ext >&5
28991
28992ac_cv_lib_msvcrt_wcslen=no
28993fi
ac1cb8d3
VS
28994rm -f conftest.err conftest.$ac_objext \
28995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28996LIBS=$ac_check_lib_save_LIBS
28997fi
28998echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28999echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29000if test $ac_cv_lib_msvcrt_wcslen = yes; then
29001 WCHAR_OK=1
29002fi
29003
29004 else
29005 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29006echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29007if test "${ac_cv_lib_w_wcslen+set}" = set; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29009else
29010 ac_check_lib_save_LIBS=$LIBS
29011LIBS="-lw $LIBS"
29012cat >conftest.$ac_ext <<_ACEOF
29013/* confdefs.h. */
29014_ACEOF
29015cat confdefs.h >>conftest.$ac_ext
29016cat >>conftest.$ac_ext <<_ACEOF
29017/* end confdefs.h. */
29018
29019/* Override any gcc2 internal prototype to avoid an error. */
29020#ifdef __cplusplus
29021extern "C"
29022#endif
29023/* We use char because int might match the return type of a gcc2
29024 builtin and then its argument prototype would still apply. */
29025char wcslen ();
29026int
29027main ()
29028{
29029wcslen ();
29030 ;
29031 return 0;
29032}
29033_ACEOF
29034rm -f conftest.$ac_objext conftest$ac_exeext
29035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29036 (eval $ac_link) 2>conftest.er1
a848cd7e 29037 ac_status=$?
ac1cb8d3
VS
29038 grep -v '^ *+' conftest.er1 >conftest.err
29039 rm -f conftest.er1
29040 cat conftest.err >&5
a848cd7e
SC
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } &&
5294a27e 29043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29045 (eval $ac_try) 2>&5
29046 ac_status=$?
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; } &&
29049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29051 (eval $ac_try) 2>&5
29052 ac_status=$?
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; }; then
29055 ac_cv_lib_w_wcslen=yes
29056else
29057 echo "$as_me: failed program was:" >&5
29058sed 's/^/| /' conftest.$ac_ext >&5
29059
29060ac_cv_lib_w_wcslen=no
29061fi
ac1cb8d3
VS
29062rm -f conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29064LIBS=$ac_check_lib_save_LIBS
29065fi
29066echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29067echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29068if test $ac_cv_lib_w_wcslen = yes; then
29069
29070 WCHAR_LINK=" -lw"
29071 WCSLEN_FOUND=1
29072
29073fi
29074
29075 fi
29076 fi
29077
29078 if test "$WCSLEN_FOUND" = 1; then
29079 cat >>confdefs.h <<\_ACEOF
29080#define HAVE_WCSLEN 1
29081_ACEOF
29082
29083 fi
29084
473276a9
VS
29085 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29086 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29087 fi
29088
a848cd7e
SC
29089
29090for ac_func in wcsrtombs
29091do
29092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29093echo "$as_me:$LINENO: checking for $ac_func" >&5
29094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29095if eval "test \"\${$as_ac_var+set}\" = set"; then
29096 echo $ECHO_N "(cached) $ECHO_C" >&6
29097else
29098 cat >conftest.$ac_ext <<_ACEOF
29099/* confdefs.h. */
29100_ACEOF
29101cat confdefs.h >>conftest.$ac_ext
29102cat >>conftest.$ac_ext <<_ACEOF
29103/* end confdefs.h. */
ac1cb8d3
VS
29104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29106#define $ac_func innocuous_$ac_func
29107
a848cd7e
SC
29108/* System header to define __stub macros and hopefully few prototypes,
29109 which can conflict with char $ac_func (); below.
29110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29111 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29112
a848cd7e
SC
29113#ifdef __STDC__
29114# include <limits.h>
29115#else
29116# include <assert.h>
29117#endif
ac1cb8d3
VS
29118
29119#undef $ac_func
29120
a848cd7e
SC
29121/* Override any gcc2 internal prototype to avoid an error. */
29122#ifdef __cplusplus
29123extern "C"
29124{
29125#endif
29126/* We use char because int might match the return type of a gcc2
29127 builtin and then its argument prototype would still apply. */
29128char $ac_func ();
29129/* The GNU C library defines this for functions which it implements
29130 to always fail with ENOSYS. Some functions are actually named
29131 something starting with __ and the normal name is an alias. */
29132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29133choke me
29134#else
29135char (*f) () = $ac_func;
29136#endif
29137#ifdef __cplusplus
29138}
29139#endif
29140
29141int
29142main ()
29143{
29144return f != $ac_func;
29145 ;
29146 return 0;
29147}
29148_ACEOF
29149rm -f conftest.$ac_objext conftest$ac_exeext
29150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29151 (eval $ac_link) 2>conftest.er1
a848cd7e 29152 ac_status=$?
ac1cb8d3
VS
29153 grep -v '^ *+' conftest.er1 >conftest.err
29154 rm -f conftest.er1
29155 cat conftest.err >&5
a848cd7e
SC
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } &&
5294a27e 29158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; } &&
29164 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166 (eval $ac_try) 2>&5
29167 ac_status=$?
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; }; then
29170 eval "$as_ac_var=yes"
29171else
29172 echo "$as_me: failed program was:" >&5
29173sed 's/^/| /' conftest.$ac_ext >&5
29174
29175eval "$as_ac_var=no"
29176fi
ac1cb8d3
VS
29177rm -f conftest.err conftest.$ac_objext \
29178 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29179fi
29180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29182if test `eval echo '${'$as_ac_var'}'` = yes; then
29183 cat >>confdefs.h <<_ACEOF
29184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29185_ACEOF
29186
29187fi
29188done
29189
29190else
29191 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29192echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29193fi
29194
29195
29196
29197ac_ext=cc
29198ac_cpp='$CXXCPP $CPPFLAGS'
29199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29202
29203
29204
29205for ac_func in vsnprintf
29206do
29207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29208echo "$as_me:$LINENO: checking for $ac_func" >&5
29209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29210if eval "test \"\${$as_ac_var+set}\" = set"; then
29211 echo $ECHO_N "(cached) $ECHO_C" >&6
29212else
29213 cat >conftest.$ac_ext <<_ACEOF
29214/* confdefs.h. */
29215_ACEOF
29216cat confdefs.h >>conftest.$ac_ext
29217cat >>conftest.$ac_ext <<_ACEOF
29218/* end confdefs.h. */
ac1cb8d3
VS
29219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29221#define $ac_func innocuous_$ac_func
29222
a848cd7e
SC
29223/* System header to define __stub macros and hopefully few prototypes,
29224 which can conflict with char $ac_func (); below.
29225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29226 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29227
a848cd7e
SC
29228#ifdef __STDC__
29229# include <limits.h>
29230#else
29231# include <assert.h>
29232#endif
ac1cb8d3
VS
29233
29234#undef $ac_func
29235
a848cd7e
SC
29236/* Override any gcc2 internal prototype to avoid an error. */
29237#ifdef __cplusplus
29238extern "C"
29239{
29240#endif
29241/* We use char because int might match the return type of a gcc2
29242 builtin and then its argument prototype would still apply. */
29243char $ac_func ();
29244/* The GNU C library defines this for functions which it implements
29245 to always fail with ENOSYS. Some functions are actually named
29246 something starting with __ and the normal name is an alias. */
29247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29248choke me
29249#else
29250char (*f) () = $ac_func;
29251#endif
29252#ifdef __cplusplus
29253}
29254#endif
29255
29256int
29257main ()
29258{
29259return f != $ac_func;
29260 ;
29261 return 0;
29262}
29263_ACEOF
29264rm -f conftest.$ac_objext conftest$ac_exeext
29265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29266 (eval $ac_link) 2>conftest.er1
a848cd7e 29267 ac_status=$?
ac1cb8d3
VS
29268 grep -v '^ *+' conftest.er1 >conftest.err
29269 rm -f conftest.er1
29270 cat conftest.err >&5
a848cd7e
SC
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } &&
5294a27e 29273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275 (eval $ac_try) 2>&5
29276 ac_status=$?
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); }; } &&
29279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29281 (eval $ac_try) 2>&5
29282 ac_status=$?
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; }; then
29285 eval "$as_ac_var=yes"
29286else
29287 echo "$as_me: failed program was:" >&5
29288sed 's/^/| /' conftest.$ac_ext >&5
29289
29290eval "$as_ac_var=no"
29291fi
ac1cb8d3
VS
29292rm -f conftest.err conftest.$ac_objext \
29293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29294fi
29295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29297if test `eval echo '${'$as_ac_var'}'` = yes; then
29298 cat >>confdefs.h <<_ACEOF
29299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29300_ACEOF
29301
29302fi
29303done
29304
29305
29306if test "$ac_cv_func_vsnprintf" = "yes"; then
29307 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29308echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29309if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29311else
29312
29313 cat >conftest.$ac_ext <<_ACEOF
29314/* confdefs.h. */
29315_ACEOF
29316cat confdefs.h >>conftest.$ac_ext
29317cat >>conftest.$ac_ext <<_ACEOF
29318/* end confdefs.h. */
29319
29320 #include <stdio.h>
29321 #include <stdarg.h>
29322
29323int
29324main ()
29325{
29326
29327 char *buf;
29328 va_list ap;
29329 vsnprintf(buf, 10u, "%s", ap);
29330
29331 ;
29332 return 0;
29333}
29334_ACEOF
29335rm -f conftest.$ac_objext
29336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29337 (eval $ac_compile) 2>conftest.er1
a848cd7e 29338 ac_status=$?
ac1cb8d3
VS
29339 grep -v '^ *+' conftest.er1 >conftest.err
29340 rm -f conftest.er1
29341 cat conftest.err >&5
a848cd7e
SC
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); } &&
5294a27e 29344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29346 (eval $ac_try) 2>&5
29347 ac_status=$?
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; } &&
29350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 wx_cv_func_vsnprintf_decl=yes
29357else
29358 echo "$as_me: failed program was:" >&5
29359sed 's/^/| /' conftest.$ac_ext >&5
29360
29361wx_cv_func_vsnprintf_decl=no
29362
29363fi
ac1cb8d3 29364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29365
29366
29367fi
29368echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29369echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29370
29371 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29372 cat >>confdefs.h <<\_ACEOF
29373#define HAVE_VSNPRINTF_DECL 1
29374_ACEOF
29375
29376 fi
29377fi
29378
29379if test "$wxUSE_UNICODE" = yes; then
29380
29381
29382
fbe47c7b
VS
29383
29384
29385
29386for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29387do
29388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29389echo "$as_me:$LINENO: checking for $ac_func" >&5
29390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29391if eval "test \"\${$as_ac_var+set}\" = set"; then
29392 echo $ECHO_N "(cached) $ECHO_C" >&6
29393else
29394 cat >conftest.$ac_ext <<_ACEOF
29395/* confdefs.h. */
29396_ACEOF
29397cat confdefs.h >>conftest.$ac_ext
29398cat >>conftest.$ac_ext <<_ACEOF
29399/* end confdefs.h. */
ac1cb8d3
VS
29400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29402#define $ac_func innocuous_$ac_func
29403
a848cd7e
SC
29404/* System header to define __stub macros and hopefully few prototypes,
29405 which can conflict with char $ac_func (); below.
29406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29408
a848cd7e
SC
29409#ifdef __STDC__
29410# include <limits.h>
29411#else
29412# include <assert.h>
29413#endif
ac1cb8d3
VS
29414
29415#undef $ac_func
29416
a848cd7e
SC
29417/* Override any gcc2 internal prototype to avoid an error. */
29418#ifdef __cplusplus
29419extern "C"
29420{
29421#endif
29422/* We use char because int might match the return type of a gcc2
29423 builtin and then its argument prototype would still apply. */
29424char $ac_func ();
29425/* The GNU C library defines this for functions which it implements
29426 to always fail with ENOSYS. Some functions are actually named
29427 something starting with __ and the normal name is an alias. */
29428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29429choke me
29430#else
29431char (*f) () = $ac_func;
29432#endif
29433#ifdef __cplusplus
29434}
29435#endif
29436
29437int
29438main ()
29439{
29440return f != $ac_func;
29441 ;
29442 return 0;
29443}
29444_ACEOF
29445rm -f conftest.$ac_objext conftest$ac_exeext
29446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29447 (eval $ac_link) 2>conftest.er1
a848cd7e 29448 ac_status=$?
ac1cb8d3
VS
29449 grep -v '^ *+' conftest.er1 >conftest.err
29450 rm -f conftest.er1
29451 cat conftest.err >&5
a848cd7e
SC
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } &&
5294a27e 29454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456 (eval $ac_try) 2>&5
29457 ac_status=$?
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; } &&
29460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462 (eval $ac_try) 2>&5
29463 ac_status=$?
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; }; then
29466 eval "$as_ac_var=yes"
29467else
29468 echo "$as_me: failed program was:" >&5
29469sed 's/^/| /' conftest.$ac_ext >&5
29470
29471eval "$as_ac_var=no"
29472fi
ac1cb8d3
VS
29473rm -f conftest.err conftest.$ac_objext \
29474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29475fi
29476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29478if test `eval echo '${'$as_ac_var'}'` = yes; then
29479 cat >>confdefs.h <<_ACEOF
29480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29481_ACEOF
29482
29483fi
29484done
29485
29486
29487 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29488echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29489 cat >conftest.$ac_ext <<_ACEOF
29490/* confdefs.h. */
29491_ACEOF
29492cat confdefs.h >>conftest.$ac_ext
29493cat >>conftest.$ac_ext <<_ACEOF
29494/* end confdefs.h. */
29495#include <wchar.h>
29496int
29497main ()
29498{
29499&_vsnwprintf;
29500 ;
29501 return 0;
29502}
29503_ACEOF
29504rm -f conftest.$ac_objext
29505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29506 (eval $ac_compile) 2>conftest.er1
a848cd7e 29507 ac_status=$?
ac1cb8d3
VS
29508 grep -v '^ *+' conftest.er1 >conftest.err
29509 rm -f conftest.er1
29510 cat conftest.err >&5
a848cd7e
SC
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); } &&
5294a27e 29513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29516 ac_status=$?
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; } &&
29519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29521 (eval $ac_try) 2>&5
29522 ac_status=$?
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); }; }; then
29525 echo "$as_me:$LINENO: result: yes" >&5
29526echo "${ECHO_T}yes" >&6
29527 cat >>confdefs.h <<\_ACEOF
29528#define HAVE__VSNWPRINTF 1
29529_ACEOF
29530
29531else
29532 echo "$as_me: failed program was:" >&5
29533sed 's/^/| /' conftest.$ac_ext >&5
29534
29535echo "$as_me:$LINENO: result: no" >&5
29536echo "${ECHO_T}no" >&6
29537fi
ac1cb8d3 29538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29539fi
29540
29541ac_ext=c
29542ac_cpp='$CPP $CPPFLAGS'
29543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29545ac_compiler_gnu=$ac_cv_c_compiler_gnu
29546
29547
29548
29549
29550if test "$TOOLKIT" != "MSW"; then
29551
29552
29553
29554
29555ac_ext=cc
29556ac_cpp='$CXXCPP $CPPFLAGS'
29557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29560
29561
29562
29563
29564# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29565if test "${with_libiconv_prefix+set}" = set; then
29566 withval="$with_libiconv_prefix"
29567
29568 for dir in `echo "$withval" | tr : ' '`; do
29569 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29570 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29571 done
29572
29573fi;
29574
29575 echo "$as_me:$LINENO: checking for iconv" >&5
29576echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29577if test "${am_cv_func_iconv+set}" = set; then
29578 echo $ECHO_N "(cached) $ECHO_C" >&6
29579else
29580
29581 am_cv_func_iconv="no, consider installing GNU libiconv"
29582 am_cv_lib_iconv=no
29583 cat >conftest.$ac_ext <<_ACEOF
29584/* confdefs.h. */
29585_ACEOF
29586cat confdefs.h >>conftest.$ac_ext
29587cat >>conftest.$ac_ext <<_ACEOF
29588/* end confdefs.h. */
29589#include <stdlib.h>
29590#include <iconv.h>
29591int
29592main ()
29593{
29594iconv_t cd = iconv_open("","");
29595 iconv(cd,NULL,NULL,NULL,NULL);
29596 iconv_close(cd);
29597 ;
29598 return 0;
29599}
29600_ACEOF
29601rm -f conftest.$ac_objext conftest$ac_exeext
29602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29603 (eval $ac_link) 2>conftest.er1
a848cd7e 29604 ac_status=$?
ac1cb8d3
VS
29605 grep -v '^ *+' conftest.er1 >conftest.err
29606 rm -f conftest.er1
29607 cat conftest.err >&5
a848cd7e
SC
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); } &&
5294a27e 29610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29612 (eval $ac_try) 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; } &&
29616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618 (eval $ac_try) 2>&5
29619 ac_status=$?
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); }; }; then
29622 am_cv_func_iconv=yes
29623else
29624 echo "$as_me: failed program was:" >&5
29625sed 's/^/| /' conftest.$ac_ext >&5
29626
29627fi
ac1cb8d3
VS
29628rm -f conftest.err conftest.$ac_objext \
29629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29630 if test "$am_cv_func_iconv" != yes; then
29631 am_save_LIBS="$LIBS"
29632 LIBS="$LIBS -liconv"
29633 cat >conftest.$ac_ext <<_ACEOF
29634/* confdefs.h. */
29635_ACEOF
29636cat confdefs.h >>conftest.$ac_ext
29637cat >>conftest.$ac_ext <<_ACEOF
29638/* end confdefs.h. */
29639#include <stdlib.h>
29640#include <iconv.h>
29641int
29642main ()
29643{
29644iconv_t cd = iconv_open("","");
29645 iconv(cd,NULL,NULL,NULL,NULL);
29646 iconv_close(cd);
29647 ;
29648 return 0;
29649}
29650_ACEOF
29651rm -f conftest.$ac_objext conftest$ac_exeext
29652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29653 (eval $ac_link) 2>conftest.er1
a848cd7e 29654 ac_status=$?
ac1cb8d3
VS
29655 grep -v '^ *+' conftest.er1 >conftest.err
29656 rm -f conftest.er1
29657 cat conftest.err >&5
a848cd7e
SC
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } &&
5294a27e 29660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662 (eval $ac_try) 2>&5
29663 ac_status=$?
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); }; } &&
29666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29668 (eval $ac_try) 2>&5
29669 ac_status=$?
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); }; }; then
29672 am_cv_lib_iconv=yes
29673 am_cv_func_iconv=yes
29674else
29675 echo "$as_me: failed program was:" >&5
29676sed 's/^/| /' conftest.$ac_ext >&5
29677
29678fi
ac1cb8d3
VS
29679rm -f conftest.err conftest.$ac_objext \
29680 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29681 LIBS="$am_save_LIBS"
29682 fi
29683
29684fi
29685echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29686echo "${ECHO_T}$am_cv_func_iconv" >&6
29687 if test "$am_cv_func_iconv" = yes; then
29688
29689cat >>confdefs.h <<\_ACEOF
29690#define HAVE_ICONV 1
29691_ACEOF
29692
29693 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29694echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29695if test "${wx_cv_func_iconv_const+set}" = set; then
29696 echo $ECHO_N "(cached) $ECHO_C" >&6
29697else
29698 cat >conftest.$ac_ext <<_ACEOF
29699/* confdefs.h. */
29700_ACEOF
29701cat confdefs.h >>conftest.$ac_ext
29702cat >>conftest.$ac_ext <<_ACEOF
29703/* end confdefs.h. */
29704
29705#include <stdlib.h>
29706#include <iconv.h>
29707extern
29708#ifdef __cplusplus
29709"C"
29710#endif
29711#if defined(__STDC__) || defined(__cplusplus)
29712size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29713#else
29714size_t iconv();
29715#endif
29716
29717int
29718main ()
29719{
29720
29721 ;
29722 return 0;
29723}
29724_ACEOF
29725rm -f conftest.$ac_objext
29726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29727 (eval $ac_compile) 2>conftest.er1
a848cd7e 29728 ac_status=$?
ac1cb8d3
VS
29729 grep -v '^ *+' conftest.er1 >conftest.err
29730 rm -f conftest.er1
29731 cat conftest.err >&5
a848cd7e
SC
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
5294a27e 29734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); }; } &&
29740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742 (eval $ac_try) 2>&5
29743 ac_status=$?
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); }; }; then
29746 wx_cv_func_iconv_const="no"
29747else
29748 echo "$as_me: failed program was:" >&5
29749sed 's/^/| /' conftest.$ac_ext >&5
29750
29751wx_cv_func_iconv_const="yes"
29752
29753fi
ac1cb8d3 29754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29755
29756fi
29757echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29758echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29759
29760 iconv_const=
29761 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29762 iconv_const="const"
29763 fi
29764
29765
29766cat >>confdefs.h <<_ACEOF
29767#define ICONV_CONST $iconv_const
29768_ACEOF
29769
29770 fi
29771 LIBICONV=
29772 if test "$am_cv_lib_iconv" = yes; then
29773 LIBICONV="-liconv"
29774 fi
29775
29776
29777LIBS="$LIBICONV $LIBS"
29778ac_ext=c
29779ac_cpp='$CPP $CPPFLAGS'
29780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782ac_compiler_gnu=$ac_cv_c_compiler_gnu
29783
29784
29785if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29786
29787for ac_func in sigaction
29788do
29789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29790echo "$as_me:$LINENO: checking for $ac_func" >&5
29791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29792if eval "test \"\${$as_ac_var+set}\" = set"; then
29793 echo $ECHO_N "(cached) $ECHO_C" >&6
29794else
29795 cat >conftest.$ac_ext <<_ACEOF
29796/* confdefs.h. */
29797_ACEOF
29798cat confdefs.h >>conftest.$ac_ext
29799cat >>conftest.$ac_ext <<_ACEOF
29800/* end confdefs.h. */
ac1cb8d3
VS
29801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29803#define $ac_func innocuous_$ac_func
29804
a848cd7e
SC
29805/* System header to define __stub macros and hopefully few prototypes,
29806 which can conflict with char $ac_func (); below.
29807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29808 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29809
a848cd7e
SC
29810#ifdef __STDC__
29811# include <limits.h>
29812#else
29813# include <assert.h>
29814#endif
ac1cb8d3
VS
29815
29816#undef $ac_func
29817
a848cd7e
SC
29818/* Override any gcc2 internal prototype to avoid an error. */
29819#ifdef __cplusplus
29820extern "C"
29821{
29822#endif
29823/* We use char because int might match the return type of a gcc2
29824 builtin and then its argument prototype would still apply. */
29825char $ac_func ();
29826/* The GNU C library defines this for functions which it implements
29827 to always fail with ENOSYS. Some functions are actually named
29828 something starting with __ and the normal name is an alias. */
29829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29830choke me
29831#else
29832char (*f) () = $ac_func;
29833#endif
29834#ifdef __cplusplus
29835}
29836#endif
29837
29838int
29839main ()
29840{
29841return f != $ac_func;
29842 ;
29843 return 0;
29844}
29845_ACEOF
29846rm -f conftest.$ac_objext conftest$ac_exeext
29847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29848 (eval $ac_link) 2>conftest.er1
a848cd7e 29849 ac_status=$?
ac1cb8d3
VS
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
a848cd7e
SC
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } &&
5294a27e 29855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29857 (eval $ac_try) 2>&5
29858 ac_status=$?
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); }; } &&
29861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29863 (eval $ac_try) 2>&5
29864 ac_status=$?
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); }; }; then
29867 eval "$as_ac_var=yes"
29868else
29869 echo "$as_me: failed program was:" >&5
29870sed 's/^/| /' conftest.$ac_ext >&5
29871
29872eval "$as_ac_var=no"
29873fi
ac1cb8d3
VS
29874rm -f conftest.err conftest.$ac_objext \
29875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29876fi
29877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29879if test `eval echo '${'$as_ac_var'}'` = yes; then
29880 cat >>confdefs.h <<_ACEOF
29881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29882_ACEOF
29883
29884fi
29885done
29886
29887
29888 if test "$ac_cv_func_sigaction" = "no"; then
29889 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29890echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29891 wxUSE_ON_FATAL_EXCEPTION=no
29892 fi
29893
29894 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29895
29896
29897 ac_ext=cc
29898ac_cpp='$CXXCPP $CPPFLAGS'
29899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29902
29903
29904 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29905echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29906if test "${wx_cv_type_sa_handler+set}" = set; then
29907 echo $ECHO_N "(cached) $ECHO_C" >&6
29908else
29909
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#include <signal.h>
29917int
29918main ()
29919{
29920
29921 extern void testSigHandler(int);
29922
29923 struct sigaction sa;
29924 sa.sa_handler = testSigHandler;
29925
29926 ;
29927 return 0;
29928}
29929_ACEOF
29930rm -f conftest.$ac_objext
29931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29932 (eval $ac_compile) 2>conftest.er1
a848cd7e 29933 ac_status=$?
ac1cb8d3
VS
29934 grep -v '^ *+' conftest.er1 >conftest.err
29935 rm -f conftest.er1
29936 cat conftest.err >&5
a848cd7e
SC
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); } &&
5294a27e 29939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29942 ac_status=$?
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; } &&
29945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29948 ac_status=$?
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951
29952 wx_cv_type_sa_handler=int
29953
29954else
29955 echo "$as_me: failed program was:" >&5
29956sed 's/^/| /' conftest.$ac_ext >&5
29957
29958
29959 wx_cv_type_sa_handler=void
29960
29961fi
ac1cb8d3 29962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29963
29964fi
29965echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29966echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29967
29968 ac_ext=c
29969ac_cpp='$CPP $CPPFLAGS'
29970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29972ac_compiler_gnu=$ac_cv_c_compiler_gnu
29973
29974
29975 cat >>confdefs.h <<_ACEOF
29976#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29977_ACEOF
29978
29979 fi
29980fi
29981
29982
29983
29984for ac_func in mkstemp mktemp
29985do
29986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29987echo "$as_me:$LINENO: checking for $ac_func" >&5
29988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29989if eval "test \"\${$as_ac_var+set}\" = set"; then
29990 echo $ECHO_N "(cached) $ECHO_C" >&6
29991else
29992 cat >conftest.$ac_ext <<_ACEOF
29993/* confdefs.h. */
29994_ACEOF
29995cat confdefs.h >>conftest.$ac_ext
29996cat >>conftest.$ac_ext <<_ACEOF
29997/* end confdefs.h. */
ac1cb8d3
VS
29998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30000#define $ac_func innocuous_$ac_func
30001
a848cd7e
SC
30002/* System header to define __stub macros and hopefully few prototypes,
30003 which can conflict with char $ac_func (); below.
30004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30005 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30006
a848cd7e
SC
30007#ifdef __STDC__
30008# include <limits.h>
30009#else
30010# include <assert.h>
30011#endif
ac1cb8d3
VS
30012
30013#undef $ac_func
30014
a848cd7e
SC
30015/* Override any gcc2 internal prototype to avoid an error. */
30016#ifdef __cplusplus
30017extern "C"
30018{
30019#endif
30020/* We use char because int might match the return type of a gcc2
30021 builtin and then its argument prototype would still apply. */
30022char $ac_func ();
30023/* The GNU C library defines this for functions which it implements
30024 to always fail with ENOSYS. Some functions are actually named
30025 something starting with __ and the normal name is an alias. */
30026#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30027choke me
30028#else
30029char (*f) () = $ac_func;
30030#endif
30031#ifdef __cplusplus
30032}
30033#endif
30034
30035int
30036main ()
30037{
30038return f != $ac_func;
30039 ;
30040 return 0;
30041}
30042_ACEOF
30043rm -f conftest.$ac_objext conftest$ac_exeext
30044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30045 (eval $ac_link) 2>conftest.er1
a848cd7e 30046 ac_status=$?
ac1cb8d3
VS
30047 grep -v '^ *+' conftest.er1 >conftest.err
30048 rm -f conftest.er1
30049 cat conftest.err >&5
a848cd7e
SC
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } &&
5294a27e 30052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; } &&
30058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060 (eval $ac_try) 2>&5
30061 ac_status=$?
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; }; then
30064 eval "$as_ac_var=yes"
30065else
30066 echo "$as_me: failed program was:" >&5
30067sed 's/^/| /' conftest.$ac_ext >&5
30068
30069eval "$as_ac_var=no"
30070fi
ac1cb8d3
VS
30071rm -f conftest.err conftest.$ac_objext \
30072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30073fi
30074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30076if test `eval echo '${'$as_ac_var'}'` = yes; then
30077 cat >>confdefs.h <<_ACEOF
30078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30079_ACEOF
30080 break
30081fi
30082done
30083
30084
30085echo "$as_me:$LINENO: checking for statfs" >&5
30086echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30087if test "${wx_cv_func_statfs+set}" = set; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30089else
30090 cat >conftest.$ac_ext <<_ACEOF
30091/* confdefs.h. */
30092_ACEOF
30093cat confdefs.h >>conftest.$ac_ext
30094cat >>conftest.$ac_ext <<_ACEOF
30095/* end confdefs.h. */
30096
30097 #if defined(__BSD__)
30098 #include <sys/param.h>
30099 #include <sys/mount.h>
30100 #else
30101 #include <sys/vfs.h>
30102 #endif
30103
30104int
30105main ()
30106{
30107
30108 long l;
30109 struct statfs fs;
30110 statfs("/", &fs);
30111 l = fs.f_bsize;
30112 l += fs.f_blocks;
30113 l += fs.f_bavail;
30114
30115 ;
30116 return 0;
30117}
30118_ACEOF
30119rm -f conftest.$ac_objext
30120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30121 (eval $ac_compile) 2>conftest.er1
a848cd7e 30122 ac_status=$?
ac1cb8d3
VS
30123 grep -v '^ *+' conftest.er1 >conftest.err
30124 rm -f conftest.er1
30125 cat conftest.err >&5
a848cd7e
SC
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); } &&
5294a27e 30128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30130 (eval $ac_try) 2>&5
30131 ac_status=$?
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); }; } &&
30134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30136 (eval $ac_try) 2>&5
30137 ac_status=$?
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); }; }; then
30140
30141 wx_cv_func_statfs=yes
30142
30143else
30144 echo "$as_me: failed program was:" >&5
30145sed 's/^/| /' conftest.$ac_ext >&5
30146
30147
30148 wx_cv_func_statfs=no
30149
30150
30151fi
ac1cb8d3 30152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30153
30154fi
30155echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30156echo "${ECHO_T}$wx_cv_func_statfs" >&6
30157
30158if test "$wx_cv_func_statfs" = "yes"; then
30159 wx_cv_type_statvfs_t="struct statfs"
30160 cat >>confdefs.h <<\_ACEOF
30161#define HAVE_STATFS 1
30162_ACEOF
30163
30164else
30165 echo "$as_me:$LINENO: checking for statvfs" >&5
30166echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30167if test "${wx_cv_func_statvfs+set}" = set; then
30168 echo $ECHO_N "(cached) $ECHO_C" >&6
30169else
30170 cat >conftest.$ac_ext <<_ACEOF
30171/* confdefs.h. */
30172_ACEOF
30173cat confdefs.h >>conftest.$ac_ext
30174cat >>conftest.$ac_ext <<_ACEOF
30175/* end confdefs.h. */
30176
30177 #include <stddef.h>
30178 #include <sys/statvfs.h>
30179
30180int
30181main ()
30182{
30183
30184 statvfs("/", NULL);
30185
30186 ;
30187 return 0;
30188}
30189_ACEOF
30190rm -f conftest.$ac_objext
30191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30192 (eval $ac_compile) 2>conftest.er1
a848cd7e 30193 ac_status=$?
ac1cb8d3
VS
30194 grep -v '^ *+' conftest.er1 >conftest.err
30195 rm -f conftest.er1
30196 cat conftest.err >&5
a848cd7e
SC
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); } &&
5294a27e 30199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 wx_cv_func_statvfs=yes
30212else
30213 echo "$as_me: failed program was:" >&5
30214sed 's/^/| /' conftest.$ac_ext >&5
30215
30216wx_cv_func_statvfs=no
30217
30218fi
ac1cb8d3 30219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30220
30221fi
30222echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30223echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30224
30225 if test "$wx_cv_func_statvfs" = "yes"; then
30226
30227
30228 ac_ext=cc
30229ac_cpp='$CXXCPP $CPPFLAGS'
30230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30233
30234
30235 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30236echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30237if test "${wx_cv_type_statvfs_t+set}" = set; then
30238 echo $ECHO_N "(cached) $ECHO_C" >&6
30239else
30240 cat >conftest.$ac_ext <<_ACEOF
30241/* confdefs.h. */
30242_ACEOF
30243cat confdefs.h >>conftest.$ac_ext
30244cat >>conftest.$ac_ext <<_ACEOF
30245/* end confdefs.h. */
30246
30247 #include <sys/statvfs.h>
30248
30249int
30250main ()
30251{
30252
30253 long l;
30254 statvfs_t fs;
30255 statvfs("/", &fs);
30256 l = fs.f_bsize;
30257 l += fs.f_blocks;
30258 l += fs.f_bavail;
30259
30260 ;
30261 return 0;
30262}
30263_ACEOF
30264rm -f conftest.$ac_objext
30265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30266 (eval $ac_compile) 2>conftest.er1
a848cd7e 30267 ac_status=$?
ac1cb8d3
VS
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
a848cd7e
SC
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } &&
5294a27e 30273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; } &&
30279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
30285 wx_cv_type_statvfs_t=statvfs_t
30286else
30287 echo "$as_me: failed program was:" >&5
30288sed 's/^/| /' conftest.$ac_ext >&5
30289
30290
30291 cat >conftest.$ac_ext <<_ACEOF
30292/* confdefs.h. */
30293_ACEOF
30294cat confdefs.h >>conftest.$ac_ext
30295cat >>conftest.$ac_ext <<_ACEOF
30296/* end confdefs.h. */
30297
30298 #include <sys/statvfs.h>
30299
30300int
30301main ()
30302{
30303
30304 long l;
30305 struct statvfs fs;
30306 statvfs("/", &fs);
30307 l = fs.f_bsize;
30308 l += fs.f_blocks;
30309 l += fs.f_bavail;
30310
30311 ;
30312 return 0;
30313}
30314_ACEOF
30315rm -f conftest.$ac_objext
30316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30317 (eval $ac_compile) 2>conftest.er1
a848cd7e 30318 ac_status=$?
ac1cb8d3
VS
30319 grep -v '^ *+' conftest.er1 >conftest.err
30320 rm -f conftest.er1
30321 cat conftest.err >&5
a848cd7e
SC
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); } &&
5294a27e 30324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326 (eval $ac_try) 2>&5
30327 ac_status=$?
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); }; } &&
30330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332 (eval $ac_try) 2>&5
30333 ac_status=$?
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); }; }; then
30336 wx_cv_type_statvfs_t="struct statvfs"
30337else
30338 echo "$as_me: failed program was:" >&5
30339sed 's/^/| /' conftest.$ac_ext >&5
30340
30341wx_cv_type_statvfs_t="unknown"
30342
30343fi
ac1cb8d3 30344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30345
30346
30347fi
ac1cb8d3 30348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30349
30350fi
30351echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30352echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30353
30354 ac_ext=c
30355ac_cpp='$CPP $CPPFLAGS'
30356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30358ac_compiler_gnu=$ac_cv_c_compiler_gnu
30359
30360
30361 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30362 cat >>confdefs.h <<\_ACEOF
30363#define HAVE_STATVFS 1
30364_ACEOF
30365
30366 fi
30367 else
30368 wx_cv_type_statvfs_t="unknown"
30369 fi
30370fi
30371
30372if test "$wx_cv_type_statvfs_t" != "unknown"; then
30373 cat >>confdefs.h <<_ACEOF
30374#define WX_STATFS_T $wx_cv_type_statvfs_t
30375_ACEOF
30376
30377else
30378 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30379echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30380fi
30381
30382if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30383
30384
30385for ac_func in fcntl flock
30386do
30387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30388echo "$as_me:$LINENO: checking for $ac_func" >&5
30389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30390if eval "test \"\${$as_ac_var+set}\" = set"; then
30391 echo $ECHO_N "(cached) $ECHO_C" >&6
30392else
30393 cat >conftest.$ac_ext <<_ACEOF
30394/* confdefs.h. */
30395_ACEOF
30396cat confdefs.h >>conftest.$ac_ext
30397cat >>conftest.$ac_ext <<_ACEOF
30398/* end confdefs.h. */
ac1cb8d3
VS
30399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30401#define $ac_func innocuous_$ac_func
30402
a848cd7e
SC
30403/* System header to define __stub macros and hopefully few prototypes,
30404 which can conflict with char $ac_func (); below.
30405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30407
a848cd7e
SC
30408#ifdef __STDC__
30409# include <limits.h>
30410#else
30411# include <assert.h>
30412#endif
ac1cb8d3
VS
30413
30414#undef $ac_func
30415
a848cd7e
SC
30416/* Override any gcc2 internal prototype to avoid an error. */
30417#ifdef __cplusplus
30418extern "C"
30419{
30420#endif
30421/* We use char because int might match the return type of a gcc2
30422 builtin and then its argument prototype would still apply. */
30423char $ac_func ();
30424/* The GNU C library defines this for functions which it implements
30425 to always fail with ENOSYS. Some functions are actually named
30426 something starting with __ and the normal name is an alias. */
30427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30428choke me
30429#else
30430char (*f) () = $ac_func;
30431#endif
30432#ifdef __cplusplus
30433}
30434#endif
30435
30436int
30437main ()
30438{
30439return f != $ac_func;
30440 ;
30441 return 0;
30442}
30443_ACEOF
30444rm -f conftest.$ac_objext conftest$ac_exeext
30445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30446 (eval $ac_link) 2>conftest.er1
a848cd7e 30447 ac_status=$?
ac1cb8d3
VS
30448 grep -v '^ *+' conftest.er1 >conftest.err
30449 rm -f conftest.er1
30450 cat conftest.err >&5
a848cd7e
SC
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); } &&
5294a27e 30453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455 (eval $ac_try) 2>&5
30456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; } &&
30459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30461 (eval $ac_try) 2>&5
30462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
30465 eval "$as_ac_var=yes"
30466else
30467 echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
30470eval "$as_ac_var=no"
30471fi
ac1cb8d3
VS
30472rm -f conftest.err conftest.$ac_objext \
30473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30474fi
30475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30477if test `eval echo '${'$as_ac_var'}'` = yes; then
30478 cat >>confdefs.h <<_ACEOF
30479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30480_ACEOF
30481 break
30482fi
30483done
30484
30485
30486 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30487 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30488echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30489 wxUSE_SNGLINST_CHECKER=no
30490 fi
30491fi
30492
30493
30494for ac_func in timegm
30495do
30496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30497echo "$as_me:$LINENO: checking for $ac_func" >&5
30498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30499if eval "test \"\${$as_ac_var+set}\" = set"; then
30500 echo $ECHO_N "(cached) $ECHO_C" >&6
30501else
30502 cat >conftest.$ac_ext <<_ACEOF
30503/* confdefs.h. */
30504_ACEOF
30505cat confdefs.h >>conftest.$ac_ext
30506cat >>conftest.$ac_ext <<_ACEOF
30507/* end confdefs.h. */
ac1cb8d3
VS
30508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30510#define $ac_func innocuous_$ac_func
30511
a848cd7e
SC
30512/* System header to define __stub macros and hopefully few prototypes,
30513 which can conflict with char $ac_func (); below.
30514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30515 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30516
a848cd7e
SC
30517#ifdef __STDC__
30518# include <limits.h>
30519#else
30520# include <assert.h>
30521#endif
ac1cb8d3
VS
30522
30523#undef $ac_func
30524
a848cd7e
SC
30525/* Override any gcc2 internal prototype to avoid an error. */
30526#ifdef __cplusplus
30527extern "C"
30528{
30529#endif
30530/* We use char because int might match the return type of a gcc2
30531 builtin and then its argument prototype would still apply. */
30532char $ac_func ();
30533/* The GNU C library defines this for functions which it implements
30534 to always fail with ENOSYS. Some functions are actually named
30535 something starting with __ and the normal name is an alias. */
30536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30537choke me
30538#else
30539char (*f) () = $ac_func;
30540#endif
30541#ifdef __cplusplus
30542}
30543#endif
30544
30545int
30546main ()
30547{
30548return f != $ac_func;
30549 ;
30550 return 0;
30551}
30552_ACEOF
30553rm -f conftest.$ac_objext conftest$ac_exeext
30554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30555 (eval $ac_link) 2>conftest.er1
a848cd7e 30556 ac_status=$?
ac1cb8d3
VS
30557 grep -v '^ *+' conftest.er1 >conftest.err
30558 rm -f conftest.er1
30559 cat conftest.err >&5
a848cd7e
SC
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); } &&
5294a27e 30562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30564 (eval $ac_try) 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; } &&
30568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30570 (eval $ac_try) 2>&5
30571 ac_status=$?
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); }; }; then
30574 eval "$as_ac_var=yes"
30575else
30576 echo "$as_me: failed program was:" >&5
30577sed 's/^/| /' conftest.$ac_ext >&5
30578
30579eval "$as_ac_var=no"
30580fi
ac1cb8d3
VS
30581rm -f conftest.err conftest.$ac_objext \
30582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30583fi
30584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30586if test `eval echo '${'$as_ac_var'}'` = yes; then
30587 cat >>confdefs.h <<_ACEOF
30588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30589_ACEOF
30590
30591fi
30592done
30593
30594
30595
30596
30597for ac_func in putenv setenv
30598do
30599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30600echo "$as_me:$LINENO: checking for $ac_func" >&5
30601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30602if eval "test \"\${$as_ac_var+set}\" = set"; then
30603 echo $ECHO_N "(cached) $ECHO_C" >&6
30604else
30605 cat >conftest.$ac_ext <<_ACEOF
30606/* confdefs.h. */
30607_ACEOF
30608cat confdefs.h >>conftest.$ac_ext
30609cat >>conftest.$ac_ext <<_ACEOF
30610/* end confdefs.h. */
ac1cb8d3
VS
30611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30613#define $ac_func innocuous_$ac_func
30614
a848cd7e
SC
30615/* System header to define __stub macros and hopefully few prototypes,
30616 which can conflict with char $ac_func (); below.
30617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30618 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30619
a848cd7e
SC
30620#ifdef __STDC__
30621# include <limits.h>
30622#else
30623# include <assert.h>
30624#endif
ac1cb8d3
VS
30625
30626#undef $ac_func
30627
a848cd7e
SC
30628/* Override any gcc2 internal prototype to avoid an error. */
30629#ifdef __cplusplus
30630extern "C"
30631{
30632#endif
30633/* We use char because int might match the return type of a gcc2
30634 builtin and then its argument prototype would still apply. */
30635char $ac_func ();
30636/* The GNU C library defines this for functions which it implements
30637 to always fail with ENOSYS. Some functions are actually named
30638 something starting with __ and the normal name is an alias. */
30639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30640choke me
30641#else
30642char (*f) () = $ac_func;
30643#endif
30644#ifdef __cplusplus
30645}
30646#endif
30647
30648int
30649main ()
30650{
30651return f != $ac_func;
30652 ;
30653 return 0;
30654}
30655_ACEOF
30656rm -f conftest.$ac_objext conftest$ac_exeext
30657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30658 (eval $ac_link) 2>conftest.er1
a848cd7e 30659 ac_status=$?
ac1cb8d3
VS
30660 grep -v '^ *+' conftest.er1 >conftest.err
30661 rm -f conftest.er1
30662 cat conftest.err >&5
a848cd7e
SC
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); } &&
5294a27e 30665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30667 (eval $ac_try) 2>&5
30668 ac_status=$?
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; } &&
30671 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673 (eval $ac_try) 2>&5
30674 ac_status=$?
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; }; then
30677 eval "$as_ac_var=yes"
30678else
30679 echo "$as_me: failed program was:" >&5
30680sed 's/^/| /' conftest.$ac_ext >&5
30681
30682eval "$as_ac_var=no"
30683fi
ac1cb8d3
VS
30684rm -f conftest.err conftest.$ac_objext \
30685 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30686fi
30687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30688echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30689if test `eval echo '${'$as_ac_var'}'` = yes; then
30690 cat >>confdefs.h <<_ACEOF
30691#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30692_ACEOF
30693 break
30694fi
30695done
30696
30697
30698HAVE_SOME_SLEEP_FUNC=0
30699if test "$USE_BEOS" = 1; then
30700 cat >>confdefs.h <<\_ACEOF
30701#define HAVE_SLEEP 1
30702_ACEOF
30703
30704 HAVE_SOME_SLEEP_FUNC=1
30705fi
30706
30707if test "$USE_DARWIN" = 1; then
30708 cat >>confdefs.h <<\_ACEOF
30709#define HAVE_USLEEP 1
30710_ACEOF
30711
30712 HAVE_SOME_SLEEP_FUNC=1
30713fi
30714
30715if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30716 POSIX4_LINK=
30717
30718for ac_func in nanosleep
30719do
30720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30721echo "$as_me:$LINENO: checking for $ac_func" >&5
30722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30723if eval "test \"\${$as_ac_var+set}\" = set"; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30725else
30726 cat >conftest.$ac_ext <<_ACEOF
30727/* confdefs.h. */
30728_ACEOF
30729cat confdefs.h >>conftest.$ac_ext
30730cat >>conftest.$ac_ext <<_ACEOF
30731/* end confdefs.h. */
ac1cb8d3
VS
30732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30734#define $ac_func innocuous_$ac_func
30735
a848cd7e
SC
30736/* System header to define __stub macros and hopefully few prototypes,
30737 which can conflict with char $ac_func (); below.
30738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30739 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30740
a848cd7e
SC
30741#ifdef __STDC__
30742# include <limits.h>
30743#else
30744# include <assert.h>
30745#endif
ac1cb8d3
VS
30746
30747#undef $ac_func
30748
a848cd7e
SC
30749/* Override any gcc2 internal prototype to avoid an error. */
30750#ifdef __cplusplus
30751extern "C"
30752{
30753#endif
30754/* We use char because int might match the return type of a gcc2
30755 builtin and then its argument prototype would still apply. */
30756char $ac_func ();
30757/* The GNU C library defines this for functions which it implements
30758 to always fail with ENOSYS. Some functions are actually named
30759 something starting with __ and the normal name is an alias. */
30760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30761choke me
30762#else
30763char (*f) () = $ac_func;
30764#endif
30765#ifdef __cplusplus
30766}
30767#endif
30768
30769int
30770main ()
30771{
30772return f != $ac_func;
30773 ;
30774 return 0;
30775}
30776_ACEOF
30777rm -f conftest.$ac_objext conftest$ac_exeext
30778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30779 (eval $ac_link) 2>conftest.er1
a848cd7e 30780 ac_status=$?
ac1cb8d3
VS
30781 grep -v '^ *+' conftest.er1 >conftest.err
30782 rm -f conftest.er1
30783 cat conftest.err >&5
a848cd7e
SC
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } &&
5294a27e 30786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30788 (eval $ac_try) 2>&5
30789 ac_status=$?
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); }; } &&
30792 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30794 (eval $ac_try) 2>&5
30795 ac_status=$?
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); }; }; then
30798 eval "$as_ac_var=yes"
30799else
30800 echo "$as_me: failed program was:" >&5
30801sed 's/^/| /' conftest.$ac_ext >&5
30802
30803eval "$as_ac_var=no"
30804fi
ac1cb8d3
VS
30805rm -f conftest.err conftest.$ac_objext \
30806 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30807fi
30808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30809echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30810if test `eval echo '${'$as_ac_var'}'` = yes; then
30811 cat >>confdefs.h <<_ACEOF
30812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30813_ACEOF
30814 cat >>confdefs.h <<\_ACEOF
30815#define HAVE_NANOSLEEP 1
30816_ACEOF
30817
30818else
30819
30820 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30821echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30822if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30823 echo $ECHO_N "(cached) $ECHO_C" >&6
30824else
30825 ac_check_lib_save_LIBS=$LIBS
30826LIBS="-lposix4 $LIBS"
30827cat >conftest.$ac_ext <<_ACEOF
30828/* confdefs.h. */
30829_ACEOF
30830cat confdefs.h >>conftest.$ac_ext
30831cat >>conftest.$ac_ext <<_ACEOF
30832/* end confdefs.h. */
30833
30834/* Override any gcc2 internal prototype to avoid an error. */
30835#ifdef __cplusplus
30836extern "C"
30837#endif
30838/* We use char because int might match the return type of a gcc2
30839 builtin and then its argument prototype would still apply. */
30840char nanosleep ();
30841int
30842main ()
30843{
30844nanosleep ();
30845 ;
30846 return 0;
30847}
30848_ACEOF
30849rm -f conftest.$ac_objext conftest$ac_exeext
30850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30851 (eval $ac_link) 2>conftest.er1
a848cd7e 30852 ac_status=$?
ac1cb8d3
VS
30853 grep -v '^ *+' conftest.er1 >conftest.err
30854 rm -f conftest.er1
30855 cat conftest.err >&5
a848cd7e
SC
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); } &&
5294a27e 30858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30860 (eval $ac_try) 2>&5
30861 ac_status=$?
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; } &&
30864 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866 (eval $ac_try) 2>&5
30867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
30870 ac_cv_lib_posix4_nanosleep=yes
30871else
30872 echo "$as_me: failed program was:" >&5
30873sed 's/^/| /' conftest.$ac_ext >&5
30874
30875ac_cv_lib_posix4_nanosleep=no
30876fi
ac1cb8d3
VS
30877rm -f conftest.err conftest.$ac_objext \
30878 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30879LIBS=$ac_check_lib_save_LIBS
30880fi
30881echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30882echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30883if test $ac_cv_lib_posix4_nanosleep = yes; then
30884
30885 cat >>confdefs.h <<\_ACEOF
30886#define HAVE_NANOSLEEP 1
30887_ACEOF
30888
30889 POSIX4_LINK=" -lposix4"
30890
30891else
30892
30893
30894for ac_func in usleep
30895do
30896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30897echo "$as_me:$LINENO: checking for $ac_func" >&5
30898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30899if eval "test \"\${$as_ac_var+set}\" = set"; then
30900 echo $ECHO_N "(cached) $ECHO_C" >&6
30901else
30902 cat >conftest.$ac_ext <<_ACEOF
30903/* confdefs.h. */
30904_ACEOF
30905cat confdefs.h >>conftest.$ac_ext
30906cat >>conftest.$ac_ext <<_ACEOF
30907/* end confdefs.h. */
ac1cb8d3
VS
30908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30910#define $ac_func innocuous_$ac_func
30911
a848cd7e
SC
30912/* System header to define __stub macros and hopefully few prototypes,
30913 which can conflict with char $ac_func (); below.
30914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30915 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30916
a848cd7e
SC
30917#ifdef __STDC__
30918# include <limits.h>
30919#else
30920# include <assert.h>
30921#endif
ac1cb8d3
VS
30922
30923#undef $ac_func
30924
a848cd7e
SC
30925/* Override any gcc2 internal prototype to avoid an error. */
30926#ifdef __cplusplus
30927extern "C"
30928{
30929#endif
30930/* We use char because int might match the return type of a gcc2
30931 builtin and then its argument prototype would still apply. */
30932char $ac_func ();
30933/* The GNU C library defines this for functions which it implements
30934 to always fail with ENOSYS. Some functions are actually named
30935 something starting with __ and the normal name is an alias. */
30936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30937choke me
30938#else
30939char (*f) () = $ac_func;
30940#endif
30941#ifdef __cplusplus
30942}
30943#endif
30944
30945int
30946main ()
30947{
30948return f != $ac_func;
30949 ;
30950 return 0;
30951}
30952_ACEOF
30953rm -f conftest.$ac_objext conftest$ac_exeext
30954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30955 (eval $ac_link) 2>conftest.er1
a848cd7e 30956 ac_status=$?
ac1cb8d3
VS
30957 grep -v '^ *+' conftest.er1 >conftest.err
30958 rm -f conftest.er1
30959 cat conftest.err >&5
a848cd7e
SC
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); } &&
5294a27e 30962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; } &&
30968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
30974 eval "$as_ac_var=yes"
30975else
30976 echo "$as_me: failed program was:" >&5
30977sed 's/^/| /' conftest.$ac_ext >&5
30978
30979eval "$as_ac_var=no"
30980fi
ac1cb8d3
VS
30981rm -f conftest.err conftest.$ac_objext \
30982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30983fi
30984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30986if test `eval echo '${'$as_ac_var'}'` = yes; then
30987 cat >>confdefs.h <<_ACEOF
30988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30989_ACEOF
30990 cat >>confdefs.h <<\_ACEOF
30991#define HAVE_USLEEP 1
30992_ACEOF
30993
30994else
30995 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30996echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30997
30998fi
30999done
31000
31001
31002
31003fi
31004
31005
31006
31007fi
31008done
31009
31010fi
31011
31012
31013
31014for ac_func in uname gethostname
31015do
31016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31017echo "$as_me:$LINENO: checking for $ac_func" >&5
31018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31019if eval "test \"\${$as_ac_var+set}\" = set"; then
31020 echo $ECHO_N "(cached) $ECHO_C" >&6
31021else
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. */
ac1cb8d3
VS
31028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31030#define $ac_func innocuous_$ac_func
31031
a848cd7e
SC
31032/* System header to define __stub macros and hopefully few prototypes,
31033 which can conflict with char $ac_func (); below.
31034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31035 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31036
a848cd7e
SC
31037#ifdef __STDC__
31038# include <limits.h>
31039#else
31040# include <assert.h>
31041#endif
ac1cb8d3
VS
31042
31043#undef $ac_func
31044
a848cd7e
SC
31045/* Override any gcc2 internal prototype to avoid an error. */
31046#ifdef __cplusplus
31047extern "C"
31048{
31049#endif
31050/* We use char because int might match the return type of a gcc2
31051 builtin and then its argument prototype would still apply. */
31052char $ac_func ();
31053/* The GNU C library defines this for functions which it implements
31054 to always fail with ENOSYS. Some functions are actually named
31055 something starting with __ and the normal name is an alias. */
31056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31057choke me
31058#else
31059char (*f) () = $ac_func;
31060#endif
31061#ifdef __cplusplus
31062}
31063#endif
31064
31065int
31066main ()
31067{
31068return f != $ac_func;
31069 ;
31070 return 0;
31071}
31072_ACEOF
31073rm -f conftest.$ac_objext conftest$ac_exeext
31074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31075 (eval $ac_link) 2>conftest.er1
a848cd7e 31076 ac_status=$?
ac1cb8d3
VS
31077 grep -v '^ *+' conftest.er1 >conftest.err
31078 rm -f conftest.er1
31079 cat conftest.err >&5
a848cd7e
SC
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); } &&
5294a27e 31082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31084 (eval $ac_try) 2>&5
31085 ac_status=$?
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; } &&
31088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31090 (eval $ac_try) 2>&5
31091 ac_status=$?
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); }; }; then
31094 eval "$as_ac_var=yes"
31095else
31096 echo "$as_me: failed program was:" >&5
31097sed 's/^/| /' conftest.$ac_ext >&5
31098
31099eval "$as_ac_var=no"
31100fi
ac1cb8d3
VS
31101rm -f conftest.err conftest.$ac_objext \
31102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31103fi
31104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31105echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31106if test `eval echo '${'$as_ac_var'}'` = yes; then
31107 cat >>confdefs.h <<_ACEOF
31108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31109_ACEOF
31110 break
31111fi
31112done
31113
31114
31115
31116
31117ac_ext=cc
31118ac_cpp='$CXXCPP $CPPFLAGS'
31119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31122
31123
31124
31125for ac_func in strtok_r
31126do
31127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31128echo "$as_me:$LINENO: checking for $ac_func" >&5
31129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31130if eval "test \"\${$as_ac_var+set}\" = set"; then
31131 echo $ECHO_N "(cached) $ECHO_C" >&6
31132else
31133 cat >conftest.$ac_ext <<_ACEOF
31134/* confdefs.h. */
31135_ACEOF
31136cat confdefs.h >>conftest.$ac_ext
31137cat >>conftest.$ac_ext <<_ACEOF
31138/* end confdefs.h. */
ac1cb8d3
VS
31139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31141#define $ac_func innocuous_$ac_func
31142
a848cd7e
SC
31143/* System header to define __stub macros and hopefully few prototypes,
31144 which can conflict with char $ac_func (); below.
31145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31146 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31147
a848cd7e
SC
31148#ifdef __STDC__
31149# include <limits.h>
31150#else
31151# include <assert.h>
31152#endif
ac1cb8d3
VS
31153
31154#undef $ac_func
31155
a848cd7e
SC
31156/* Override any gcc2 internal prototype to avoid an error. */
31157#ifdef __cplusplus
31158extern "C"
31159{
31160#endif
31161/* We use char because int might match the return type of a gcc2
31162 builtin and then its argument prototype would still apply. */
31163char $ac_func ();
31164/* The GNU C library defines this for functions which it implements
31165 to always fail with ENOSYS. Some functions are actually named
31166 something starting with __ and the normal name is an alias. */
31167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31168choke me
31169#else
31170char (*f) () = $ac_func;
31171#endif
31172#ifdef __cplusplus
31173}
31174#endif
31175
31176int
31177main ()
31178{
31179return f != $ac_func;
31180 ;
31181 return 0;
31182}
31183_ACEOF
31184rm -f conftest.$ac_objext conftest$ac_exeext
31185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31186 (eval $ac_link) 2>conftest.er1
a848cd7e 31187 ac_status=$?
ac1cb8d3
VS
31188 grep -v '^ *+' conftest.er1 >conftest.err
31189 rm -f conftest.er1
31190 cat conftest.err >&5
a848cd7e
SC
31191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192 (exit $ac_status); } &&
5294a27e 31193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31195 (eval $ac_try) 2>&5
31196 ac_status=$?
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); }; } &&
31199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31201 (eval $ac_try) 2>&5
31202 ac_status=$?
31203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204 (exit $ac_status); }; }; then
31205 eval "$as_ac_var=yes"
31206else
31207 echo "$as_me: failed program was:" >&5
31208sed 's/^/| /' conftest.$ac_ext >&5
31209
31210eval "$as_ac_var=no"
31211fi
ac1cb8d3
VS
31212rm -f conftest.err conftest.$ac_objext \
31213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31214fi
31215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31217if test `eval echo '${'$as_ac_var'}'` = yes; then
31218 cat >>confdefs.h <<_ACEOF
31219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31220_ACEOF
31221
31222fi
31223done
31224
31225
31226ac_ext=c
31227ac_cpp='$CPP $CPPFLAGS'
31228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31230ac_compiler_gnu=$ac_cv_c_compiler_gnu
31231
31232
31233INET_LINK=
31234
31235for ac_func in inet_addr
31236do
31237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31238echo "$as_me:$LINENO: checking for $ac_func" >&5
31239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31240if eval "test \"\${$as_ac_var+set}\" = set"; then
31241 echo $ECHO_N "(cached) $ECHO_C" >&6
31242else
31243 cat >conftest.$ac_ext <<_ACEOF
31244/* confdefs.h. */
31245_ACEOF
31246cat confdefs.h >>conftest.$ac_ext
31247cat >>conftest.$ac_ext <<_ACEOF
31248/* end confdefs.h. */
ac1cb8d3
VS
31249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31251#define $ac_func innocuous_$ac_func
31252
a848cd7e
SC
31253/* System header to define __stub macros and hopefully few prototypes,
31254 which can conflict with char $ac_func (); below.
31255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31257
a848cd7e
SC
31258#ifdef __STDC__
31259# include <limits.h>
31260#else
31261# include <assert.h>
31262#endif
ac1cb8d3
VS
31263
31264#undef $ac_func
31265
a848cd7e
SC
31266/* Override any gcc2 internal prototype to avoid an error. */
31267#ifdef __cplusplus
31268extern "C"
31269{
31270#endif
31271/* We use char because int might match the return type of a gcc2
31272 builtin and then its argument prototype would still apply. */
31273char $ac_func ();
31274/* The GNU C library defines this for functions which it implements
31275 to always fail with ENOSYS. Some functions are actually named
31276 something starting with __ and the normal name is an alias. */
31277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31278choke me
31279#else
31280char (*f) () = $ac_func;
31281#endif
31282#ifdef __cplusplus
31283}
31284#endif
31285
31286int
31287main ()
31288{
31289return f != $ac_func;
31290 ;
31291 return 0;
31292}
31293_ACEOF
31294rm -f conftest.$ac_objext conftest$ac_exeext
31295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31296 (eval $ac_link) 2>conftest.er1
a848cd7e 31297 ac_status=$?
ac1cb8d3
VS
31298 grep -v '^ *+' conftest.er1 >conftest.err
31299 rm -f conftest.er1
31300 cat conftest.err >&5
a848cd7e
SC
31301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302 (exit $ac_status); } &&
5294a27e 31303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31305 (eval $ac_try) 2>&5
31306 ac_status=$?
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
31309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31311 (eval $ac_try) 2>&5
31312 ac_status=$?
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); }; }; then
31315 eval "$as_ac_var=yes"
31316else
31317 echo "$as_me: failed program was:" >&5
31318sed 's/^/| /' conftest.$ac_ext >&5
31319
31320eval "$as_ac_var=no"
31321fi
ac1cb8d3
VS
31322rm -f conftest.err conftest.$ac_objext \
31323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31324fi
31325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31327if test `eval echo '${'$as_ac_var'}'` = yes; then
31328 cat >>confdefs.h <<_ACEOF
31329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31330_ACEOF
31331 cat >>confdefs.h <<\_ACEOF
31332#define HAVE_INET_ADDR 1
31333_ACEOF
31334
31335else
31336
31337 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31338echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31339if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31340 echo $ECHO_N "(cached) $ECHO_C" >&6
31341else
31342 ac_check_lib_save_LIBS=$LIBS
31343LIBS="-lnsl $LIBS"
31344cat >conftest.$ac_ext <<_ACEOF
31345/* confdefs.h. */
31346_ACEOF
31347cat confdefs.h >>conftest.$ac_ext
31348cat >>conftest.$ac_ext <<_ACEOF
31349/* end confdefs.h. */
31350
31351/* Override any gcc2 internal prototype to avoid an error. */
31352#ifdef __cplusplus
31353extern "C"
31354#endif
31355/* We use char because int might match the return type of a gcc2
31356 builtin and then its argument prototype would still apply. */
31357char inet_addr ();
31358int
31359main ()
31360{
31361inet_addr ();
31362 ;
31363 return 0;
31364}
31365_ACEOF
31366rm -f conftest.$ac_objext conftest$ac_exeext
31367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31368 (eval $ac_link) 2>conftest.er1
a848cd7e 31369 ac_status=$?
ac1cb8d3
VS
31370 grep -v '^ *+' conftest.er1 >conftest.err
31371 rm -f conftest.er1
31372 cat conftest.err >&5
a848cd7e
SC
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); } &&
5294a27e 31375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31377 (eval $ac_try) 2>&5
31378 ac_status=$?
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380 (exit $ac_status); }; } &&
31381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383 (eval $ac_try) 2>&5
31384 ac_status=$?
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); }; }; then
31387 ac_cv_lib_nsl_inet_addr=yes
31388else
31389 echo "$as_me: failed program was:" >&5
31390sed 's/^/| /' conftest.$ac_ext >&5
31391
31392ac_cv_lib_nsl_inet_addr=no
31393fi
ac1cb8d3
VS
31394rm -f conftest.err conftest.$ac_objext \
31395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31396LIBS=$ac_check_lib_save_LIBS
31397fi
31398echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31399echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31400if test $ac_cv_lib_nsl_inet_addr = yes; then
31401 INET_LINK="nsl"
31402else
31403
31404 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31405echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31406if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31407 echo $ECHO_N "(cached) $ECHO_C" >&6
31408else
31409 ac_check_lib_save_LIBS=$LIBS
31410LIBS="-lresolv $LIBS"
31411cat >conftest.$ac_ext <<_ACEOF
31412/* confdefs.h. */
31413_ACEOF
31414cat confdefs.h >>conftest.$ac_ext
31415cat >>conftest.$ac_ext <<_ACEOF
31416/* end confdefs.h. */
31417
31418/* Override any gcc2 internal prototype to avoid an error. */
31419#ifdef __cplusplus
31420extern "C"
31421#endif
31422/* We use char because int might match the return type of a gcc2
31423 builtin and then its argument prototype would still apply. */
31424char inet_addr ();
31425int
31426main ()
31427{
31428inet_addr ();
31429 ;
31430 return 0;
31431}
31432_ACEOF
31433rm -f conftest.$ac_objext conftest$ac_exeext
31434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31435 (eval $ac_link) 2>conftest.er1
a848cd7e 31436 ac_status=$?
ac1cb8d3
VS
31437 grep -v '^ *+' conftest.er1 >conftest.err
31438 rm -f conftest.er1
31439 cat conftest.err >&5
a848cd7e
SC
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); } &&
5294a27e 31442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31444 (eval $ac_try) 2>&5
31445 ac_status=$?
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; } &&
31448 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31450 (eval $ac_try) 2>&5
31451 ac_status=$?
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; }; then
31454 ac_cv_lib_resolv_inet_addr=yes
31455else
31456 echo "$as_me: failed program was:" >&5
31457sed 's/^/| /' conftest.$ac_ext >&5
31458
31459ac_cv_lib_resolv_inet_addr=no
31460fi
ac1cb8d3
VS
31461rm -f conftest.err conftest.$ac_objext \
31462 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31463LIBS=$ac_check_lib_save_LIBS
31464fi
31465echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31466echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31467if test $ac_cv_lib_resolv_inet_addr = yes; then
31468 INET_LINK="resolv"
31469else
31470
31471 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31472echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31473if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31474 echo $ECHO_N "(cached) $ECHO_C" >&6
31475else
31476 ac_check_lib_save_LIBS=$LIBS
31477LIBS="-lsocket $LIBS"
31478cat >conftest.$ac_ext <<_ACEOF
31479/* confdefs.h. */
31480_ACEOF
31481cat confdefs.h >>conftest.$ac_ext
31482cat >>conftest.$ac_ext <<_ACEOF
31483/* end confdefs.h. */
31484
31485/* Override any gcc2 internal prototype to avoid an error. */
31486#ifdef __cplusplus
31487extern "C"
31488#endif
31489/* We use char because int might match the return type of a gcc2
31490 builtin and then its argument prototype would still apply. */
31491char inet_addr ();
31492int
31493main ()
31494{
31495inet_addr ();
31496 ;
31497 return 0;
31498}
31499_ACEOF
31500rm -f conftest.$ac_objext conftest$ac_exeext
31501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31502 (eval $ac_link) 2>conftest.er1
a848cd7e 31503 ac_status=$?
ac1cb8d3
VS
31504 grep -v '^ *+' conftest.er1 >conftest.err
31505 rm -f conftest.er1
31506 cat conftest.err >&5
a848cd7e
SC
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); } &&
5294a27e 31509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31511 (eval $ac_try) 2>&5
31512 ac_status=$?
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); }; } &&
31515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31517 (eval $ac_try) 2>&5
31518 ac_status=$?
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); }; }; then
31521 ac_cv_lib_socket_inet_addr=yes
31522else
31523 echo "$as_me: failed program was:" >&5
31524sed 's/^/| /' conftest.$ac_ext >&5
31525
31526ac_cv_lib_socket_inet_addr=no
31527fi
ac1cb8d3
VS
31528rm -f conftest.err conftest.$ac_objext \
31529 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31530LIBS=$ac_check_lib_save_LIBS
31531fi
31532echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31533echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31534if test $ac_cv_lib_socket_inet_addr = yes; then
31535 INET_LINK="socket"
31536
31537fi
31538
31539
31540
31541fi
31542
31543
31544
31545fi
31546
31547
31548
31549fi
31550done
31551
31552
31553
31554for ac_func in inet_aton
31555do
31556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31557echo "$as_me:$LINENO: checking for $ac_func" >&5
31558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31559if eval "test \"\${$as_ac_var+set}\" = set"; then
31560 echo $ECHO_N "(cached) $ECHO_C" >&6
31561else
31562 cat >conftest.$ac_ext <<_ACEOF
31563/* confdefs.h. */
31564_ACEOF
31565cat confdefs.h >>conftest.$ac_ext
31566cat >>conftest.$ac_ext <<_ACEOF
31567/* end confdefs.h. */
ac1cb8d3
VS
31568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31570#define $ac_func innocuous_$ac_func
31571
a848cd7e
SC
31572/* System header to define __stub macros and hopefully few prototypes,
31573 which can conflict with char $ac_func (); below.
31574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31575 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31576
a848cd7e
SC
31577#ifdef __STDC__
31578# include <limits.h>
31579#else
31580# include <assert.h>
31581#endif
ac1cb8d3
VS
31582
31583#undef $ac_func
31584
a848cd7e
SC
31585/* Override any gcc2 internal prototype to avoid an error. */
31586#ifdef __cplusplus
31587extern "C"
31588{
31589#endif
31590/* We use char because int might match the return type of a gcc2
31591 builtin and then its argument prototype would still apply. */
31592char $ac_func ();
31593/* The GNU C library defines this for functions which it implements
31594 to always fail with ENOSYS. Some functions are actually named
31595 something starting with __ and the normal name is an alias. */
31596#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31597choke me
31598#else
31599char (*f) () = $ac_func;
31600#endif
31601#ifdef __cplusplus
31602}
31603#endif
31604
31605int
31606main ()
31607{
31608return f != $ac_func;
31609 ;
31610 return 0;
31611}
31612_ACEOF
31613rm -f conftest.$ac_objext conftest$ac_exeext
31614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31615 (eval $ac_link) 2>conftest.er1
a848cd7e 31616 ac_status=$?
ac1cb8d3
VS
31617 grep -v '^ *+' conftest.er1 >conftest.err
31618 rm -f conftest.er1
31619 cat conftest.err >&5
a848cd7e
SC
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); } &&
5294a27e 31622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31624 (eval $ac_try) 2>&5
31625 ac_status=$?
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); }; } &&
31628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31630 (eval $ac_try) 2>&5
31631 ac_status=$?
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); }; }; then
31634 eval "$as_ac_var=yes"
31635else
31636 echo "$as_me: failed program was:" >&5
31637sed 's/^/| /' conftest.$ac_ext >&5
31638
31639eval "$as_ac_var=no"
31640fi
ac1cb8d3
VS
31641rm -f conftest.err conftest.$ac_objext \
31642 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31643fi
31644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31646if test `eval echo '${'$as_ac_var'}'` = yes; then
31647 cat >>confdefs.h <<_ACEOF
31648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31649_ACEOF
31650 cat >>confdefs.h <<\_ACEOF
31651#define HAVE_INET_ATON 1
31652_ACEOF
31653
31654else
31655
31656 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31657echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31658echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31659if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31660 echo $ECHO_N "(cached) $ECHO_C" >&6
31661else
31662 ac_check_lib_save_LIBS=$LIBS
31663LIBS="-l$INET_LINK $LIBS"
31664cat >conftest.$ac_ext <<_ACEOF
31665/* confdefs.h. */
31666_ACEOF
31667cat confdefs.h >>conftest.$ac_ext
31668cat >>conftest.$ac_ext <<_ACEOF
31669/* end confdefs.h. */
31670
31671/* Override any gcc2 internal prototype to avoid an error. */
31672#ifdef __cplusplus
31673extern "C"
31674#endif
31675/* We use char because int might match the return type of a gcc2
31676 builtin and then its argument prototype would still apply. */
31677char inet_aton ();
31678int
31679main ()
31680{
31681inet_aton ();
31682 ;
31683 return 0;
31684}
31685_ACEOF
31686rm -f conftest.$ac_objext conftest$ac_exeext
31687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31688 (eval $ac_link) 2>conftest.er1
a848cd7e 31689 ac_status=$?
ac1cb8d3
VS
31690 grep -v '^ *+' conftest.er1 >conftest.err
31691 rm -f conftest.er1
31692 cat conftest.err >&5
a848cd7e
SC
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); } &&
5294a27e 31695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31697 (eval $ac_try) 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; } &&
31701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31703 (eval $ac_try) 2>&5
31704 ac_status=$?
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); }; }; then
31707 eval "$as_ac_Lib=yes"
31708else
31709 echo "$as_me: failed program was:" >&5
31710sed 's/^/| /' conftest.$ac_ext >&5
31711
31712eval "$as_ac_Lib=no"
31713fi
ac1cb8d3
VS
31714rm -f conftest.err conftest.$ac_objext \
31715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31716LIBS=$ac_check_lib_save_LIBS
31717fi
31718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31719echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31720if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31721 cat >>confdefs.h <<\_ACEOF
31722#define HAVE_INET_ATON 1
31723_ACEOF
31724
31725fi
31726
31727
31728fi
31729done
31730
31731
31732if test "x$INET_LINK" != "x"; then
31733 cat >>confdefs.h <<\_ACEOF
31734#define HAVE_INET_ADDR 1
31735_ACEOF
31736
31737 INET_LINK=" -l$INET_LINK"
31738fi
31739
31740fi
31741
31742
31743
31744EXTRALIBS_ESD=
31745echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31746echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31747if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31748 echo $ECHO_N "(cached) $ECHO_C" >&6
31749else
31750 ac_check_lib_save_LIBS=$LIBS
31751LIBS="-lesd $LIBS"
31752cat >conftest.$ac_ext <<_ACEOF
31753/* confdefs.h. */
31754_ACEOF
31755cat confdefs.h >>conftest.$ac_ext
31756cat >>conftest.$ac_ext <<_ACEOF
31757/* end confdefs.h. */
31758
31759/* Override any gcc2 internal prototype to avoid an error. */
31760#ifdef __cplusplus
31761extern "C"
31762#endif
31763/* We use char because int might match the return type of a gcc2
31764 builtin and then its argument prototype would still apply. */
31765char esd_close ();
31766int
31767main ()
31768{
31769esd_close ();
31770 ;
31771 return 0;
31772}
31773_ACEOF
31774rm -f conftest.$ac_objext conftest$ac_exeext
31775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31776 (eval $ac_link) 2>conftest.er1
a848cd7e 31777 ac_status=$?
ac1cb8d3
VS
31778 grep -v '^ *+' conftest.er1 >conftest.err
31779 rm -f conftest.er1
31780 cat conftest.err >&5
a848cd7e
SC
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); } &&
5294a27e 31783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785 (eval $ac_try) 2>&5
31786 ac_status=$?
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; } &&
31789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31791 (eval $ac_try) 2>&5
31792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; }; then
31795 ac_cv_lib_esd_esd_close=yes
31796else
31797 echo "$as_me: failed program was:" >&5
31798sed 's/^/| /' conftest.$ac_ext >&5
31799
31800ac_cv_lib_esd_esd_close=no
31801fi
ac1cb8d3
VS
31802rm -f conftest.err conftest.$ac_objext \
31803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31804LIBS=$ac_check_lib_save_LIBS
31805fi
31806echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31807echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31808if test $ac_cv_lib_esd_esd_close = yes; then
31809
31810
31811for ac_header in esd.h
31812do
31813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31814if eval "test \"\${$as_ac_Header+set}\" = set"; then
31815 echo "$as_me:$LINENO: checking for $ac_header" >&5
31816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31817if eval "test \"\${$as_ac_Header+set}\" = set"; then
31818 echo $ECHO_N "(cached) $ECHO_C" >&6
31819fi
31820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31822else
31823 # Is the header compilable?
31824echo "$as_me:$LINENO: checking $ac_header usability" >&5
31825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31826cat >conftest.$ac_ext <<_ACEOF
31827/* confdefs.h. */
31828_ACEOF
31829cat confdefs.h >>conftest.$ac_ext
31830cat >>conftest.$ac_ext <<_ACEOF
31831/* end confdefs.h. */
31832$ac_includes_default
31833#include <$ac_header>
31834_ACEOF
31835rm -f conftest.$ac_objext
31836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31837 (eval $ac_compile) 2>conftest.er1
a848cd7e 31838 ac_status=$?
ac1cb8d3
VS
31839 grep -v '^ *+' conftest.er1 >conftest.err
31840 rm -f conftest.er1
31841 cat conftest.err >&5
a848cd7e
SC
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } &&
5294a27e 31844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852 (eval $ac_try) 2>&5
31853 ac_status=$?
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; }; then
31856 ac_header_compiler=yes
31857else
31858 echo "$as_me: failed program was:" >&5
31859sed 's/^/| /' conftest.$ac_ext >&5
31860
31861ac_header_compiler=no
31862fi
ac1cb8d3 31863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31865echo "${ECHO_T}$ac_header_compiler" >&6
31866
31867# Is the header present?
31868echo "$as_me:$LINENO: checking $ac_header presence" >&5
31869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31870cat >conftest.$ac_ext <<_ACEOF
31871/* confdefs.h. */
31872_ACEOF
31873cat confdefs.h >>conftest.$ac_ext
31874cat >>conftest.$ac_ext <<_ACEOF
31875/* end confdefs.h. */
31876#include <$ac_header>
31877_ACEOF
31878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31880 ac_status=$?
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } >/dev/null; then
31886 if test -s conftest.err; then
31887 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31889 else
31890 ac_cpp_err=
31891 fi
31892else
31893 ac_cpp_err=yes
31894fi
31895if test -z "$ac_cpp_err"; then
31896 ac_header_preproc=yes
31897else
31898 echo "$as_me: failed program was:" >&5
31899sed 's/^/| /' conftest.$ac_ext >&5
31900
31901 ac_header_preproc=no
31902fi
31903rm -f conftest.err conftest.$ac_ext
31904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31905echo "${ECHO_T}$ac_header_preproc" >&6
31906
31907# So? What about this header?
ac1cb8d3
VS
31908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31909 yes:no: )
a848cd7e
SC
31910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31914 ac_header_preproc=yes
a848cd7e 31915 ;;
ac1cb8d3 31916 no:yes:* )
a848cd7e
SC
31917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31929 (
31930 cat <<\_ASBOX
ac1cb8d3
VS
31931## ----------------------------------------- ##
31932## Report this to wx-dev@lists.wxwidgets.org ##
31933## ----------------------------------------- ##
a848cd7e
SC
31934_ASBOX
31935 ) |
31936 sed "s/^/$as_me: WARNING: /" >&2
31937 ;;
31938esac
31939echo "$as_me:$LINENO: checking for $ac_header" >&5
31940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31941if eval "test \"\${$as_ac_Header+set}\" = set"; then
31942 echo $ECHO_N "(cached) $ECHO_C" >&6
31943else
ac1cb8d3 31944 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31945fi
31946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31948
31949fi
31950if test `eval echo '${'$as_ac_Header'}'` = yes; then
31951 cat >>confdefs.h <<_ACEOF
31952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31953_ACEOF
31954
31955 EXTRALIBS_ESD="-lesd"
31956
31957fi
31958
31959done
31960
31961
31962fi
31963
31964
31965
31966echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31967echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31968cat >conftest.$ac_ext <<_ACEOF
31969/* confdefs.h. */
31970_ACEOF
31971cat confdefs.h >>conftest.$ac_ext
31972cat >>conftest.$ac_ext <<_ACEOF
31973/* end confdefs.h. */
31974#ifdef __linux__
31975 #include <linux/cdrom.h>
31976 #else
31977 /* For Solaris */
31978 #include <sys/cdio.h>
31979 #endif
31980
31981int
31982main ()
31983{
31984struct cdrom_tocentry entry, old_entry;
31985 ;
31986 return 0;
31987}
31988_ACEOF
31989rm -f conftest.$ac_objext
31990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31991 (eval $ac_compile) 2>conftest.er1
a848cd7e 31992 ac_status=$?
ac1cb8d3
VS
31993 grep -v '^ *+' conftest.er1 >conftest.err
31994 rm -f conftest.er1
31995 cat conftest.err >&5
a848cd7e
SC
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); } &&
5294a27e 31998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32000 (eval $ac_try) 2>&5
32001 ac_status=$?
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); }; } &&
32004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32006 (eval $ac_try) 2>&5
32007 ac_status=$?
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; }; then
32010 echo "$as_me:$LINENO: result: yes" >&5
32011echo "${ECHO_T}yes" >&6
32012 cat >>confdefs.h <<\_ACEOF
32013#define HAVE_KNOWN_CDROM_INTERFACE 1
32014_ACEOF
32015
32016else
32017 echo "$as_me: failed program was:" >&5
32018sed 's/^/| /' conftest.$ac_ext >&5
32019
32020echo "$as_me:$LINENO: result: no" >&5
32021echo "${ECHO_T}no" >&6
32022fi
ac1cb8d3 32023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32024
32025
32026cat >confcache <<\_ACEOF
32027# This file is a shell script that caches the results of configure
32028# tests run on this system so they can be shared between configure
32029# scripts and configure runs, see configure's option --config-cache.
32030# It is not useful on other systems. If it contains results you don't
32031# want to keep, you may remove or edit it.
32032#
32033# config.status only pays attention to the cache file if you give it
32034# the --recheck option to rerun configure.
32035#
32036# `ac_cv_env_foo' variables (set or unset) will be overridden when
32037# loading this file, other *unset* `ac_cv_foo' will be assigned the
32038# following values.
32039
32040_ACEOF
32041
32042# The following way of writing the cache mishandles newlines in values,
32043# but we know of no workaround that is simple, portable, and efficient.
32044# So, don't put newlines in cache variables' values.
32045# Ultrix sh set writes to stderr and can't be redirected directly,
32046# and sets the high bit in the cache file unless we assign to the vars.
32047{
32048 (set) 2>&1 |
32049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32050 *ac_space=\ *)
32051 # `set' does not quote correctly, so add quotes (double-quote
32052 # substitution turns \\\\ into \\, and sed turns \\ into \).
32053 sed -n \
ac1cb8d3
VS
32054 "s/'/'\\\\''/g;
32055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32056 ;;
32057 *)
32058 # `set' quotes correctly as required by POSIX, so do not add quotes.
32059 sed -n \
ac1cb8d3 32060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32061 ;;
32062 esac;
32063} |
32064 sed '
32065 t clear
32066 : clear
32067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32068 t end
32069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32070 : end' >>confcache
32071if diff $cache_file confcache >/dev/null 2>&1; then :; else
32072 if test -w $cache_file; then
32073 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32074 cat confcache >$cache_file
32075 else
32076 echo "not updating unwritable cache $cache_file"
32077 fi
32078fi
32079rm -f confcache
32080
32081
32082CPP_MT_FLAG=
32083if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32084
32085
32086 THREADS_LINK=
32087 THREADS_CFLAGS=
32088
32089 if test "$wxUSE_THREADS" = "yes" ; then
32090 if test "$USE_BEOS" = 1; then
32091 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32092echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32093 wxUSE_THREADS="no"
32094 fi
32095 fi
32096
32097 if test "$wxUSE_THREADS" = "yes" ; then
32098
32099
32100 THREAD_OPTS="-pthread"
32101 case "${host}" in
32102 *-*-solaris2* | *-*-sunos4* )
32103 if test "x$GCC" = "xyes"; then
32104 THREAD_OPTS="-pthreads $THREAD_OPTS"
32105 else
32106 THREAD_OPTS="-mt $THREAD_OPTS"
32107 fi
32108 ;;
32109 *-*-freebsd*)
32110 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32111 ;;
32112 *-*-darwin* | *-*-cygwin* )
32113 THREAD_OPTS=""
32114 ;;
32115 *-*-aix*)
32116 THREAD_OPTS="pthreads"
32117 ;;
32118 *-hp-hpux* )
32119 if test "x$GCC" != "xyes"; then
32120 THREAD_OPTS=""
32121 fi
32122 ;;
32123
32124 *-*-irix* )
32125 if test "x$GCC" = "xyes"; then
32126 THREAD_OPTS=""
32127 fi
32128 ;;
32129
32130 *-*-*UnixWare*)
32131 if test "x$GCC" != "xyes"; then
32132 THREAD_OPTS="-Ethread"
32133 fi
32134 ;;
32135 esac
32136
32137 THREAD_OPTS="$THREAD_OPTS pthread none"
32138
32139 THREADS_OK=no
32140 for flag in $THREAD_OPTS; do
32141 case $flag in
32142 none)
32143 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32144echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32145 ;;
32146
32147 -*)
32148 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32149echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32150 THREADS_CFLAGS="$flag"
32151 ;;
32152
32153 *)
32154 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32155echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32156 THREADS_LINK="-l$flag"
32157 ;;
32158 esac
32159
32160 save_LIBS="$LIBS"
32161 save_CFLAGS="$CFLAGS"
32162 LIBS="$THREADS_LINK $LIBS"
32163 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32164
32165 cat >conftest.$ac_ext <<_ACEOF
32166/* confdefs.h. */
32167_ACEOF
32168cat confdefs.h >>conftest.$ac_ext
32169cat >>conftest.$ac_ext <<_ACEOF
32170/* end confdefs.h. */
32171#include <pthread.h>
32172int
32173main ()
32174{
32175pthread_create(0,0,0,0);
32176 ;
32177 return 0;
32178}
32179_ACEOF
32180rm -f conftest.$ac_objext conftest$ac_exeext
32181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32182 (eval $ac_link) 2>conftest.er1
a848cd7e 32183 ac_status=$?
ac1cb8d3
VS
32184 grep -v '^ *+' conftest.er1 >conftest.err
32185 rm -f conftest.er1
32186 cat conftest.err >&5
a848cd7e
SC
32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188 (exit $ac_status); } &&
5294a27e 32189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32191 (eval $ac_try) 2>&5
32192 ac_status=$?
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); }; } &&
32195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32197 (eval $ac_try) 2>&5
32198 ac_status=$?
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); }; }; then
32201 THREADS_OK=yes
32202else
32203 echo "$as_me: failed program was:" >&5
32204sed 's/^/| /' conftest.$ac_ext >&5
32205
32206fi
ac1cb8d3
VS
32207rm -f conftest.err conftest.$ac_objext \
32208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32209
32210 LIBS="$save_LIBS"
32211 CFLAGS="$save_CFLAGS"
32212
32213 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32214echo "${ECHO_T}$THREADS_OK" >&6
32215 if test "x$THREADS_OK" = "xyes"; then
32216 break;
32217 fi
32218
32219 THREADS_LINK=""
32220 THREADS_CFLAGS=""
32221 done
32222
32223 if test "x$THREADS_OK" != "xyes"; then
32224 wxUSE_THREADS=no
32225 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32226echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32227 else
32228 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32229 LIBS="$THREADS_LINK $LIBS"
32230
32231 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32232echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32233 flag=no
32234 case "${host}" in
32235 *-aix*)
32236 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32237 flag="-D_THREAD_SAFE"
32238 ;;
32239 *-freebsd*)
32240 flag="-D_THREAD_SAFE"
32241 ;;
32242 *-hp-hpux* )
32243 flag="-D_REENTRANT"
32244 if test "x$GCC" != "xyes"; then
32245 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32246
32247 LIBS="$LIBS -lcma"
a848cd7e
SC
32248 fi
32249 ;;
32250 *solaris* | alpha*-osf*)
32251 flag="-D_REENTRANT"
32252 ;;
32253 esac
32254 echo "$as_me:$LINENO: result: ${flag}" >&5
32255echo "${ECHO_T}${flag}" >&6
32256 if test "x$flag" != xno; then
32257 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32258 fi
32259
32260 if test "x$THREADS_CFLAGS" != "x"; then
32261 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32262 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32263 fi
32264 fi
32265 fi
32266
32267 if test "$wxUSE_THREADS" = "yes" ; then
32268
32269for ac_func in thr_setconcurrency
32270do
32271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32272echo "$as_me:$LINENO: checking for $ac_func" >&5
32273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32274if eval "test \"\${$as_ac_var+set}\" = set"; then
32275 echo $ECHO_N "(cached) $ECHO_C" >&6
32276else
32277 cat >conftest.$ac_ext <<_ACEOF
32278/* confdefs.h. */
32279_ACEOF
32280cat confdefs.h >>conftest.$ac_ext
32281cat >>conftest.$ac_ext <<_ACEOF
32282/* end confdefs.h. */
ac1cb8d3
VS
32283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32285#define $ac_func innocuous_$ac_func
32286
a848cd7e
SC
32287/* System header to define __stub macros and hopefully few prototypes,
32288 which can conflict with char $ac_func (); below.
32289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32290 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32291
a848cd7e
SC
32292#ifdef __STDC__
32293# include <limits.h>
32294#else
32295# include <assert.h>
32296#endif
ac1cb8d3
VS
32297
32298#undef $ac_func
32299
a848cd7e
SC
32300/* Override any gcc2 internal prototype to avoid an error. */
32301#ifdef __cplusplus
32302extern "C"
32303{
32304#endif
32305/* We use char because int might match the return type of a gcc2
32306 builtin and then its argument prototype would still apply. */
32307char $ac_func ();
32308/* The GNU C library defines this for functions which it implements
32309 to always fail with ENOSYS. Some functions are actually named
32310 something starting with __ and the normal name is an alias. */
32311#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32312choke me
32313#else
32314char (*f) () = $ac_func;
32315#endif
32316#ifdef __cplusplus
32317}
32318#endif
32319
32320int
32321main ()
32322{
32323return f != $ac_func;
32324 ;
32325 return 0;
32326}
32327_ACEOF
32328rm -f conftest.$ac_objext conftest$ac_exeext
32329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32330 (eval $ac_link) 2>conftest.er1
a848cd7e 32331 ac_status=$?
ac1cb8d3
VS
32332 grep -v '^ *+' conftest.er1 >conftest.err
32333 rm -f conftest.er1
32334 cat conftest.err >&5
a848cd7e
SC
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); } &&
5294a27e 32337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32339 (eval $ac_try) 2>&5
32340 ac_status=$?
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); }; } &&
32343 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32345 (eval $ac_try) 2>&5
32346 ac_status=$?
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); }; }; then
32349 eval "$as_ac_var=yes"
32350else
32351 echo "$as_me: failed program was:" >&5
32352sed 's/^/| /' conftest.$ac_ext >&5
32353
32354eval "$as_ac_var=no"
32355fi
ac1cb8d3
VS
32356rm -f conftest.err conftest.$ac_objext \
32357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32358fi
32359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32360echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32361if test `eval echo '${'$as_ac_var'}'` = yes; then
32362 cat >>confdefs.h <<_ACEOF
32363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32364_ACEOF
32365
32366fi
32367done
32368
32369
32370
32371for ac_header in sched.h
32372do
32373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32374if eval "test \"\${$as_ac_Header+set}\" = set"; then
32375 echo "$as_me:$LINENO: checking for $ac_header" >&5
32376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32377if eval "test \"\${$as_ac_Header+set}\" = set"; then
32378 echo $ECHO_N "(cached) $ECHO_C" >&6
32379fi
32380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32382else
32383 # Is the header compilable?
32384echo "$as_me:$LINENO: checking $ac_header usability" >&5
32385echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32386cat >conftest.$ac_ext <<_ACEOF
32387/* confdefs.h. */
32388_ACEOF
32389cat confdefs.h >>conftest.$ac_ext
32390cat >>conftest.$ac_ext <<_ACEOF
32391/* end confdefs.h. */
32392$ac_includes_default
32393#include <$ac_header>
32394_ACEOF
32395rm -f conftest.$ac_objext
32396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32397 (eval $ac_compile) 2>conftest.er1
a848cd7e 32398 ac_status=$?
ac1cb8d3
VS
32399 grep -v '^ *+' conftest.er1 >conftest.err
32400 rm -f conftest.er1
32401 cat conftest.err >&5
a848cd7e
SC
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); } &&
5294a27e 32404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32406 (eval $ac_try) 2>&5
32407 ac_status=$?
32408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409 (exit $ac_status); }; } &&
32410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32412 (eval $ac_try) 2>&5
32413 ac_status=$?
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); }; }; then
32416 ac_header_compiler=yes
32417else
32418 echo "$as_me: failed program was:" >&5
32419sed 's/^/| /' conftest.$ac_ext >&5
32420
32421ac_header_compiler=no
32422fi
ac1cb8d3 32423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32425echo "${ECHO_T}$ac_header_compiler" >&6
32426
32427# Is the header present?
32428echo "$as_me:$LINENO: checking $ac_header presence" >&5
32429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32430cat >conftest.$ac_ext <<_ACEOF
32431/* confdefs.h. */
32432_ACEOF
32433cat confdefs.h >>conftest.$ac_ext
32434cat >>conftest.$ac_ext <<_ACEOF
32435/* end confdefs.h. */
32436#include <$ac_header>
32437_ACEOF
32438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32440 ac_status=$?
32441 grep -v '^ *+' conftest.er1 >conftest.err
32442 rm -f conftest.er1
32443 cat conftest.err >&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); } >/dev/null; then
32446 if test -s conftest.err; then
32447 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32449 else
32450 ac_cpp_err=
32451 fi
32452else
32453 ac_cpp_err=yes
32454fi
32455if test -z "$ac_cpp_err"; then
32456 ac_header_preproc=yes
32457else
32458 echo "$as_me: failed program was:" >&5
32459sed 's/^/| /' conftest.$ac_ext >&5
32460
32461 ac_header_preproc=no
32462fi
32463rm -f conftest.err conftest.$ac_ext
32464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32465echo "${ECHO_T}$ac_header_preproc" >&6
32466
32467# So? What about this header?
ac1cb8d3
VS
32468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32469 yes:no: )
a848cd7e
SC
32470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32474 ac_header_preproc=yes
a848cd7e 32475 ;;
ac1cb8d3 32476 no:yes:* )
a848cd7e
SC
32477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32489 (
32490 cat <<\_ASBOX
ac1cb8d3
VS
32491## ----------------------------------------- ##
32492## Report this to wx-dev@lists.wxwidgets.org ##
32493## ----------------------------------------- ##
a848cd7e
SC
32494_ASBOX
32495 ) |
32496 sed "s/^/$as_me: WARNING: /" >&2
32497 ;;
32498esac
32499echo "$as_me:$LINENO: checking for $ac_header" >&5
32500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32501if eval "test \"\${$as_ac_Header+set}\" = set"; then
32502 echo $ECHO_N "(cached) $ECHO_C" >&6
32503else
ac1cb8d3 32504 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32505fi
32506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32508
32509fi
32510if test `eval echo '${'$as_ac_Header'}'` = yes; then
32511 cat >>confdefs.h <<_ACEOF
32512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32513_ACEOF
32514
32515fi
32516
32517done
32518
32519 if test "$ac_cv_header_sched_h" = "yes"; then
32520 echo "$as_me:$LINENO: checking for sched_yield" >&5
32521echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32522if test "${ac_cv_func_sched_yield+set}" = set; then
32523 echo $ECHO_N "(cached) $ECHO_C" >&6
32524else
32525 cat >conftest.$ac_ext <<_ACEOF
32526/* confdefs.h. */
32527_ACEOF
32528cat confdefs.h >>conftest.$ac_ext
32529cat >>conftest.$ac_ext <<_ACEOF
32530/* end confdefs.h. */
ac1cb8d3
VS
32531/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32533#define sched_yield innocuous_sched_yield
32534
a848cd7e
SC
32535/* System header to define __stub macros and hopefully few prototypes,
32536 which can conflict with char sched_yield (); below.
32537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32539
a848cd7e
SC
32540#ifdef __STDC__
32541# include <limits.h>
32542#else
32543# include <assert.h>
32544#endif
ac1cb8d3
VS
32545
32546#undef sched_yield
32547
a848cd7e
SC
32548/* Override any gcc2 internal prototype to avoid an error. */
32549#ifdef __cplusplus
32550extern "C"
32551{
32552#endif
32553/* We use char because int might match the return type of a gcc2
32554 builtin and then its argument prototype would still apply. */
32555char sched_yield ();
32556/* The GNU C library defines this for functions which it implements
32557 to always fail with ENOSYS. Some functions are actually named
32558 something starting with __ and the normal name is an alias. */
32559#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32560choke me
32561#else
32562char (*f) () = sched_yield;
32563#endif
32564#ifdef __cplusplus
32565}
32566#endif
32567
32568int
32569main ()
32570{
32571return f != sched_yield;
32572 ;
32573 return 0;
32574}
32575_ACEOF
32576rm -f conftest.$ac_objext conftest$ac_exeext
32577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32578 (eval $ac_link) 2>conftest.er1
a848cd7e 32579 ac_status=$?
ac1cb8d3
VS
32580 grep -v '^ *+' conftest.er1 >conftest.err
32581 rm -f conftest.er1
32582 cat conftest.err >&5
a848cd7e
SC
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); } &&
5294a27e 32585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587 (eval $ac_try) 2>&5
32588 ac_status=$?
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); }; } &&
32591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32593 (eval $ac_try) 2>&5
32594 ac_status=$?
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; }; then
32597 ac_cv_func_sched_yield=yes
32598else
32599 echo "$as_me: failed program was:" >&5
32600sed 's/^/| /' conftest.$ac_ext >&5
32601
32602ac_cv_func_sched_yield=no
32603fi
ac1cb8d3
VS
32604rm -f conftest.err conftest.$ac_objext \
32605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32606fi
32607echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32608echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32609if test $ac_cv_func_sched_yield = yes; then
32610 cat >>confdefs.h <<\_ACEOF
32611#define HAVE_SCHED_YIELD 1
32612_ACEOF
32613
32614else
32615
32616 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32617echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32618if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32619 echo $ECHO_N "(cached) $ECHO_C" >&6
32620else
32621 ac_check_lib_save_LIBS=$LIBS
32622LIBS="-lposix4 $LIBS"
32623cat >conftest.$ac_ext <<_ACEOF
32624/* confdefs.h. */
32625_ACEOF
32626cat confdefs.h >>conftest.$ac_ext
32627cat >>conftest.$ac_ext <<_ACEOF
32628/* end confdefs.h. */
32629
32630/* Override any gcc2 internal prototype to avoid an error. */
32631#ifdef __cplusplus
32632extern "C"
32633#endif
32634/* We use char because int might match the return type of a gcc2
32635 builtin and then its argument prototype would still apply. */
32636char sched_yield ();
32637int
32638main ()
32639{
32640sched_yield ();
32641 ;
32642 return 0;
32643}
32644_ACEOF
32645rm -f conftest.$ac_objext conftest$ac_exeext
32646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32647 (eval $ac_link) 2>conftest.er1
a848cd7e 32648 ac_status=$?
ac1cb8d3
VS
32649 grep -v '^ *+' conftest.er1 >conftest.err
32650 rm -f conftest.er1
32651 cat conftest.err >&5
a848cd7e
SC
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); } &&
5294a27e 32654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656 (eval $ac_try) 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; } &&
32660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32663 ac_status=$?
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; }; then
32666 ac_cv_lib_posix4_sched_yield=yes
32667else
32668 echo "$as_me: failed program was:" >&5
32669sed 's/^/| /' conftest.$ac_ext >&5
32670
32671ac_cv_lib_posix4_sched_yield=no
32672fi
ac1cb8d3
VS
32673rm -f conftest.err conftest.$ac_objext \
32674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32675LIBS=$ac_check_lib_save_LIBS
32676fi
32677echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32678echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32679if test $ac_cv_lib_posix4_sched_yield = yes; then
32680 cat >>confdefs.h <<\_ACEOF
32681#define HAVE_SCHED_YIELD 1
32682_ACEOF
32683 POSIX4_LINK=" -lposix4"
32684else
32685 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32686echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32687
32688fi
32689
32690
32691
32692fi
32693
32694 fi
32695
32696 HAVE_PRIOR_FUNCS=0
32697 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32698echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32699if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32700 echo $ECHO_N "(cached) $ECHO_C" >&6
32701else
32702 cat >conftest.$ac_ext <<_ACEOF
32703/* confdefs.h. */
32704_ACEOF
32705cat confdefs.h >>conftest.$ac_ext
32706cat >>conftest.$ac_ext <<_ACEOF
32707/* end confdefs.h. */
ac1cb8d3
VS
32708/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32710#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32711
a848cd7e
SC
32712/* System header to define __stub macros and hopefully few prototypes,
32713 which can conflict with char pthread_attr_getschedpolicy (); below.
32714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32715 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32716
a848cd7e
SC
32717#ifdef __STDC__
32718# include <limits.h>
32719#else
32720# include <assert.h>
32721#endif
ac1cb8d3
VS
32722
32723#undef pthread_attr_getschedpolicy
32724
a848cd7e
SC
32725/* Override any gcc2 internal prototype to avoid an error. */
32726#ifdef __cplusplus
32727extern "C"
32728{
32729#endif
32730/* We use char because int might match the return type of a gcc2
32731 builtin and then its argument prototype would still apply. */
32732char pthread_attr_getschedpolicy ();
32733/* The GNU C library defines this for functions which it implements
32734 to always fail with ENOSYS. Some functions are actually named
32735 something starting with __ and the normal name is an alias. */
32736#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32737choke me
32738#else
32739char (*f) () = pthread_attr_getschedpolicy;
32740#endif
32741#ifdef __cplusplus
32742}
32743#endif
32744
32745int
32746main ()
32747{
32748return f != pthread_attr_getschedpolicy;
32749 ;
32750 return 0;
32751}
32752_ACEOF
32753rm -f conftest.$ac_objext conftest$ac_exeext
32754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32755 (eval $ac_link) 2>conftest.er1
a848cd7e 32756 ac_status=$?
ac1cb8d3
VS
32757 grep -v '^ *+' conftest.er1 >conftest.err
32758 rm -f conftest.er1
32759 cat conftest.err >&5
a848cd7e
SC
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); } &&
5294a27e 32762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32764 (eval $ac_try) 2>&5
32765 ac_status=$?
32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767 (exit $ac_status); }; } &&
32768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770 (eval $ac_try) 2>&5
32771 ac_status=$?
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); }; }; then
32774 ac_cv_func_pthread_attr_getschedpolicy=yes
32775else
32776 echo "$as_me: failed program was:" >&5
32777sed 's/^/| /' conftest.$ac_ext >&5
32778
32779ac_cv_func_pthread_attr_getschedpolicy=no
32780fi
ac1cb8d3
VS
32781rm -f conftest.err conftest.$ac_objext \
32782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32783fi
32784echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32785echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32786if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32787 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32788echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32789if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32790 echo $ECHO_N "(cached) $ECHO_C" >&6
32791else
32792 cat >conftest.$ac_ext <<_ACEOF
32793/* confdefs.h. */
32794_ACEOF
32795cat confdefs.h >>conftest.$ac_ext
32796cat >>conftest.$ac_ext <<_ACEOF
32797/* end confdefs.h. */
ac1cb8d3
VS
32798/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32800#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32801
a848cd7e
SC
32802/* System header to define __stub macros and hopefully few prototypes,
32803 which can conflict with char pthread_attr_setschedparam (); below.
32804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32805 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32806
a848cd7e
SC
32807#ifdef __STDC__
32808# include <limits.h>
32809#else
32810# include <assert.h>
32811#endif
ac1cb8d3
VS
32812
32813#undef pthread_attr_setschedparam
32814
a848cd7e
SC
32815/* Override any gcc2 internal prototype to avoid an error. */
32816#ifdef __cplusplus
32817extern "C"
32818{
32819#endif
32820/* We use char because int might match the return type of a gcc2
32821 builtin and then its argument prototype would still apply. */
32822char pthread_attr_setschedparam ();
32823/* The GNU C library defines this for functions which it implements
32824 to always fail with ENOSYS. Some functions are actually named
32825 something starting with __ and the normal name is an alias. */
32826#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32827choke me
32828#else
32829char (*f) () = pthread_attr_setschedparam;
32830#endif
32831#ifdef __cplusplus
32832}
32833#endif
32834
32835int
32836main ()
32837{
32838return f != pthread_attr_setschedparam;
32839 ;
32840 return 0;
32841}
32842_ACEOF
32843rm -f conftest.$ac_objext conftest$ac_exeext
32844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32845 (eval $ac_link) 2>conftest.er1
a848cd7e 32846 ac_status=$?
ac1cb8d3
VS
32847 grep -v '^ *+' conftest.er1 >conftest.err
32848 rm -f conftest.er1
32849 cat conftest.err >&5
a848cd7e
SC
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); } &&
5294a27e 32852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32854 (eval $ac_try) 2>&5
32855 ac_status=$?
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); }; } &&
32858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860 (eval $ac_try) 2>&5
32861 ac_status=$?
32862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32864 ac_cv_func_pthread_attr_setschedparam=yes
32865else
32866 echo "$as_me: failed program was:" >&5
32867sed 's/^/| /' conftest.$ac_ext >&5
32868
32869ac_cv_func_pthread_attr_setschedparam=no
32870fi
ac1cb8d3
VS
32871rm -f conftest.err conftest.$ac_objext \
32872 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32873fi
32874echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32875echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32876if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32877 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32878echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32879if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32880 echo $ECHO_N "(cached) $ECHO_C" >&6
32881else
32882 cat >conftest.$ac_ext <<_ACEOF
32883/* confdefs.h. */
32884_ACEOF
32885cat confdefs.h >>conftest.$ac_ext
32886cat >>conftest.$ac_ext <<_ACEOF
32887/* end confdefs.h. */
ac1cb8d3
VS
32888/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32890#define sched_get_priority_max innocuous_sched_get_priority_max
32891
a848cd7e
SC
32892/* System header to define __stub macros and hopefully few prototypes,
32893 which can conflict with char sched_get_priority_max (); below.
32894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32895 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32896
a848cd7e
SC
32897#ifdef __STDC__
32898# include <limits.h>
32899#else
32900# include <assert.h>
32901#endif
ac1cb8d3
VS
32902
32903#undef sched_get_priority_max
32904
a848cd7e
SC
32905/* Override any gcc2 internal prototype to avoid an error. */
32906#ifdef __cplusplus
32907extern "C"
32908{
32909#endif
32910/* We use char because int might match the return type of a gcc2
32911 builtin and then its argument prototype would still apply. */
32912char sched_get_priority_max ();
32913/* The GNU C library defines this for functions which it implements
32914 to always fail with ENOSYS. Some functions are actually named
32915 something starting with __ and the normal name is an alias. */
32916#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32917choke me
32918#else
32919char (*f) () = sched_get_priority_max;
32920#endif
32921#ifdef __cplusplus
32922}
32923#endif
32924
32925int
32926main ()
32927{
32928return f != sched_get_priority_max;
32929 ;
32930 return 0;
32931}
32932_ACEOF
32933rm -f conftest.$ac_objext conftest$ac_exeext
32934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32935 (eval $ac_link) 2>conftest.er1
a848cd7e 32936 ac_status=$?
ac1cb8d3
VS
32937 grep -v '^ *+' conftest.er1 >conftest.err
32938 rm -f conftest.er1
32939 cat conftest.err >&5
a848cd7e
SC
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); } &&
5294a27e 32942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32945 ac_status=$?
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; } &&
32948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950 (eval $ac_try) 2>&5
32951 ac_status=$?
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 ac_cv_func_sched_get_priority_max=yes
32955else
32956 echo "$as_me: failed program was:" >&5
32957sed 's/^/| /' conftest.$ac_ext >&5
32958
32959ac_cv_func_sched_get_priority_max=no
32960fi
ac1cb8d3
VS
32961rm -f conftest.err conftest.$ac_objext \
32962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32963fi
32964echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32965echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32966if test $ac_cv_func_sched_get_priority_max = yes; then
32967 HAVE_PRIOR_FUNCS=1
32968else
32969 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32970echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32971if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32972 echo $ECHO_N "(cached) $ECHO_C" >&6
32973else
32974 ac_check_lib_save_LIBS=$LIBS
32975LIBS="-lposix4 $LIBS"
32976cat >conftest.$ac_ext <<_ACEOF
32977/* confdefs.h. */
32978_ACEOF
32979cat confdefs.h >>conftest.$ac_ext
32980cat >>conftest.$ac_ext <<_ACEOF
32981/* end confdefs.h. */
32982
32983/* Override any gcc2 internal prototype to avoid an error. */
32984#ifdef __cplusplus
32985extern "C"
32986#endif
32987/* We use char because int might match the return type of a gcc2
32988 builtin and then its argument prototype would still apply. */
32989char sched_get_priority_max ();
32990int
32991main ()
32992{
32993sched_get_priority_max ();
32994 ;
32995 return 0;
32996}
32997_ACEOF
32998rm -f conftest.$ac_objext conftest$ac_exeext
32999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33000 (eval $ac_link) 2>conftest.er1
a848cd7e 33001 ac_status=$?
ac1cb8d3
VS
33002 grep -v '^ *+' conftest.er1 >conftest.err
33003 rm -f conftest.er1
33004 cat conftest.err >&5
a848cd7e
SC
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); } &&
5294a27e 33007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33009 (eval $ac_try) 2>&5
33010 ac_status=$?
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; } &&
33013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33015 (eval $ac_try) 2>&5
33016 ac_status=$?
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); }; }; then
33019 ac_cv_lib_posix4_sched_get_priority_max=yes
33020else
33021 echo "$as_me: failed program was:" >&5
33022sed 's/^/| /' conftest.$ac_ext >&5
33023
33024ac_cv_lib_posix4_sched_get_priority_max=no
33025fi
ac1cb8d3
VS
33026rm -f conftest.err conftest.$ac_objext \
33027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33028LIBS=$ac_check_lib_save_LIBS
33029fi
33030echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33031echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33032if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33033
33034 HAVE_PRIOR_FUNCS=1
33035 POSIX4_LINK=" -lposix4"
33036
33037fi
33038
33039
33040fi
33041
33042
33043fi
33044
33045
33046fi
33047
33048
33049 if test "$HAVE_PRIOR_FUNCS" = 1; then
33050 cat >>confdefs.h <<\_ACEOF
33051#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33052_ACEOF
33053
33054 else
33055 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33056echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33057 fi
33058
33059 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33060echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33061if test "${ac_cv_func_pthread_cancel+set}" = set; then
33062 echo $ECHO_N "(cached) $ECHO_C" >&6
33063else
33064 cat >conftest.$ac_ext <<_ACEOF
33065/* confdefs.h. */
33066_ACEOF
33067cat confdefs.h >>conftest.$ac_ext
33068cat >>conftest.$ac_ext <<_ACEOF
33069/* end confdefs.h. */
ac1cb8d3
VS
33070/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33072#define pthread_cancel innocuous_pthread_cancel
33073
a848cd7e
SC
33074/* System header to define __stub macros and hopefully few prototypes,
33075 which can conflict with char pthread_cancel (); below.
33076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33077 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33078
a848cd7e
SC
33079#ifdef __STDC__
33080# include <limits.h>
33081#else
33082# include <assert.h>
33083#endif
ac1cb8d3
VS
33084
33085#undef pthread_cancel
33086
a848cd7e
SC
33087/* Override any gcc2 internal prototype to avoid an error. */
33088#ifdef __cplusplus
33089extern "C"
33090{
33091#endif
33092/* We use char because int might match the return type of a gcc2
33093 builtin and then its argument prototype would still apply. */
33094char pthread_cancel ();
33095/* The GNU C library defines this for functions which it implements
33096 to always fail with ENOSYS. Some functions are actually named
33097 something starting with __ and the normal name is an alias. */
33098#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33099choke me
33100#else
33101char (*f) () = pthread_cancel;
33102#endif
33103#ifdef __cplusplus
33104}
33105#endif
33106
33107int
33108main ()
33109{
33110return f != pthread_cancel;
33111 ;
33112 return 0;
33113}
33114_ACEOF
33115rm -f conftest.$ac_objext conftest$ac_exeext
33116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33117 (eval $ac_link) 2>conftest.er1
a848cd7e 33118 ac_status=$?
ac1cb8d3
VS
33119 grep -v '^ *+' conftest.er1 >conftest.err
33120 rm -f conftest.er1
33121 cat conftest.err >&5
a848cd7e
SC
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); } &&
5294a27e 33124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33126 (eval $ac_try) 2>&5
33127 ac_status=$?
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); }; } &&
33130 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132 (eval $ac_try) 2>&5
33133 ac_status=$?
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); }; }; then
33136 ac_cv_func_pthread_cancel=yes
33137else
33138 echo "$as_me: failed program was:" >&5
33139sed 's/^/| /' conftest.$ac_ext >&5
33140
33141ac_cv_func_pthread_cancel=no
33142fi
ac1cb8d3
VS
33143rm -f conftest.err conftest.$ac_objext \
33144 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33145fi
33146echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33147echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33148if test $ac_cv_func_pthread_cancel = yes; then
33149 cat >>confdefs.h <<\_ACEOF
33150#define HAVE_PTHREAD_CANCEL 1
33151_ACEOF
33152
33153else
33154 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33155echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33156fi
33157
33158
33159
33160
33161 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33162echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33163if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33164 echo $ECHO_N "(cached) $ECHO_C" >&6
33165else
33166
33167 cat >conftest.$ac_ext <<_ACEOF
33168/* confdefs.h. */
33169_ACEOF
33170cat confdefs.h >>conftest.$ac_ext
33171cat >>conftest.$ac_ext <<_ACEOF
33172/* end confdefs.h. */
33173#include <pthread.h>
33174int
33175main ()
33176{
33177
33178 pthread_mutexattr_t attr;
33179 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33180
33181 ;
33182 return 0;
33183}
33184_ACEOF
33185rm -f conftest.$ac_objext
33186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33187 (eval $ac_compile) 2>conftest.er1
a848cd7e 33188 ac_status=$?
ac1cb8d3
VS
33189 grep -v '^ *+' conftest.er1 >conftest.err
33190 rm -f conftest.er1
33191 cat conftest.err >&5
a848cd7e
SC
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); } &&
5294a27e 33194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196 (eval $ac_try) 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; } &&
33200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33202 (eval $ac_try) 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; }; then
33206
33207 wx_cv_type_pthread_mutexattr_t=yes
33208
33209else
33210 echo "$as_me: failed program was:" >&5
33211sed 's/^/| /' conftest.$ac_ext >&5
33212
33213
33214 wx_cv_type_pthread_mutexattr_t=no
33215
33216
33217fi
ac1cb8d3 33218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33219
33220fi
33221echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33222echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33223
33224 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33225 cat >>confdefs.h <<\_ACEOF
33226#define HAVE_PTHREAD_MUTEXATTR_T 1
33227_ACEOF
33228
33229 else
33230 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33231echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33232if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33233 echo $ECHO_N "(cached) $ECHO_C" >&6
33234else
33235
33236 cat >conftest.$ac_ext <<_ACEOF
33237/* confdefs.h. */
33238_ACEOF
33239cat confdefs.h >>conftest.$ac_ext
33240cat >>conftest.$ac_ext <<_ACEOF
33241/* end confdefs.h. */
33242#include <pthread.h>
33243int
33244main ()
33245{
33246
33247 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33248
33249 ;
33250 return 0;
33251}
33252_ACEOF
33253rm -f conftest.$ac_objext
33254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33255 (eval $ac_compile) 2>conftest.er1
a848cd7e 33256 ac_status=$?
ac1cb8d3
VS
33257 grep -v '^ *+' conftest.er1 >conftest.err
33258 rm -f conftest.er1
33259 cat conftest.err >&5
a848cd7e
SC
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); } &&
5294a27e 33262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264 (eval $ac_try) 2>&5
33265 ac_status=$?
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; } &&
33268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270 (eval $ac_try) 2>&5
33271 ac_status=$?
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; }; then
33274
33275 wx_cv_type_pthread_rec_mutex_init=yes
33276
33277else
33278 echo "$as_me: failed program was:" >&5
33279sed 's/^/| /' conftest.$ac_ext >&5
33280
33281
33282 wx_cv_type_pthread_rec_mutex_init=no
33283
33284
33285fi
ac1cb8d3 33286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33287
33288fi
33289echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33290echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33291 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33292 cat >>confdefs.h <<\_ACEOF
33293#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33294_ACEOF
33295
33296 else
33297 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33298echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33299 fi
33300 fi
33301 fi
33302
33303else
33304 if test "$wxUSE_THREADS" = "yes" ; then
33305 case "${host}" in
33306 *-*-mingw32* )
33307 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33308echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33309if test "${wx_cv_cflags_mthread+set}" = set; then
33310 echo $ECHO_N "(cached) $ECHO_C" >&6
33311else
33312
33313 CFLAGS_OLD="$CFLAGS"
33314 CFLAGS="$CFLAGS -mthreads"
33315 cat >conftest.$ac_ext <<_ACEOF
33316/* confdefs.h. */
33317_ACEOF
33318cat confdefs.h >>conftest.$ac_ext
33319cat >>conftest.$ac_ext <<_ACEOF
33320/* end confdefs.h. */
33321
33322int
33323main ()
33324{
33325
33326 ;
33327 return 0;
33328}
33329_ACEOF
33330rm -f conftest.$ac_objext
33331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33332 (eval $ac_compile) 2>conftest.er1
a848cd7e 33333 ac_status=$?
ac1cb8d3
VS
33334 grep -v '^ *+' conftest.er1 >conftest.err
33335 rm -f conftest.er1
33336 cat conftest.err >&5
a848cd7e
SC
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); } &&
5294a27e 33339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33341 (eval $ac_try) 2>&5
33342 ac_status=$?
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; } &&
33345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347 (eval $ac_try) 2>&5
33348 ac_status=$?
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); }; }; then
33351 wx_cv_cflags_mthread=yes
33352else
33353 echo "$as_me: failed program was:" >&5
33354sed 's/^/| /' conftest.$ac_ext >&5
33355
33356wx_cv_cflags_mthread=no
33357
33358fi
ac1cb8d3 33359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33360
33361
33362fi
33363echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33364echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33365
33366 if test "$wx_cv_cflags_mthread" = "yes"; then
33367 CXXFLAGS="$CXXFLAGS -mthreads"
33368 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33369 LDFLAGS="$LDFLAGS -mthreads"
33370 else
33371 CFLAGS="$CFLAGS_OLD"
33372 fi
33373 ;;
33374 *-pc-os2*emx )
33375 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33376 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33377 LDFLAGS="$LDFLAGS -Zmt"
33378 ;;
33379 esac
33380 fi
33381fi
33382
33383if test "$wxUSE_THREADS" = "yes"; then
33384 cat >>confdefs.h <<\_ACEOF
33385#define wxUSE_THREADS 1
33386_ACEOF
33387
33388
33389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33390else
33391 if test "$ac_cv_func_strtok_r" = "yes"; then
33392 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33393echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33394 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33395 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33396 echo "$as_me:$LINENO: result: yes" >&5
33397echo "${ECHO_T}yes" >&6
33398 else
33399 echo "$as_me:$LINENO: result: no" >&5
33400echo "${ECHO_T}no" >&6
33401 fi
33402 fi
33403fi
33404
33405if test "$WXGTK20" = 1 ; then
33406 cat >>confdefs.h <<_ACEOF
33407#define __WXGTK20__ $WXGTK20
33408_ACEOF
33409
33410 WXGTK12=1
33411fi
33412
33413if test "$WXGTK12" = 1 ; then
33414 cat >>confdefs.h <<_ACEOF
33415#define __WXGTK12__ $WXGTK12
33416_ACEOF
33417
33418fi
33419
33420if test "$WXGTK127" = 1 ; then
33421 cat >>confdefs.h <<_ACEOF
33422#define __WXGTK127__ $WXGTK127
33423_ACEOF
33424
33425fi
33426
33427if test "$WXGPE" = 1 ; then
33428 cat >>confdefs.h <<_ACEOF
33429#define __WXGPE__ $WXGPE
33430_ACEOF
33431
33432fi
33433
33434WXDEBUG=
33435
33436if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33437 WXDEBUG="-g"
33438 wxUSE_OPTIMISE=no
33439fi
33440
33441if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33442 wxUSE_DEBUG_INFO=yes
33443 WXDEBUG="-ggdb"
33444fi
33445
33446if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33447 cat >>confdefs.h <<\_ACEOF
33448#define WXDEBUG 1
33449_ACEOF
33450
33451 WXDEBUG_DEFINE="-D__WXDEBUG__"
33452else
33453 if test "$wxUSE_GTK" = 1 ; then
33454 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33455 fi
33456fi
33457
33458if test "$wxUSE_MEM_TRACING" = "yes" ; then
33459 cat >>confdefs.h <<\_ACEOF
33460#define wxUSE_MEMORY_TRACING 1
33461_ACEOF
33462
33463 cat >>confdefs.h <<\_ACEOF
33464#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33465_ACEOF
33466
33467 cat >>confdefs.h <<\_ACEOF
33468#define wxUSE_DEBUG_NEW_ALWAYS 1
33469_ACEOF
33470
33471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33472fi
33473
33474if test "$wxUSE_DMALLOC" = "yes" ; then
33475 DMALLOC_LIBS="-ldmalloc"
33476fi
33477
33478PROFILE=
33479if test "$wxUSE_PROFILE" = "yes" ; then
33480 PROFILE=" -pg"
33481fi
33482
33483CODE_GEN_FLAGS=
33484CODE_GEN_FLAGS_CXX=
33485if test "$GCC" = "yes" ; then
33486 if test "$wxUSE_NO_RTTI" = "yes" ; then
33487 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33488 fi
33489 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33490 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33491 fi
33492 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33493 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33494 fi
33495
33496 case "${host}" in
33497 powerpc*-*-aix* )
33498 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33499 ;;
33500 *-hppa* )
33501 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33502 ;;
33503 esac
33504fi
33505
33506OPTIMISE=
33507if test "$wxUSE_OPTIMISE" = "no" ; then
33508 if test "$GCC" = yes ; then
33509 OPTIMISE="-O0"
33510 fi
33511else
33512 if test "$GCC" = yes ; then
33513 OPTIMISE="-O2"
33514
33515 case "${host}" in
33516 i586-*-*|i686-*-* )
33517 OPTIMISE="${OPTIMISE} "
33518 ;;
33519 esac
33520 else
33521 OPTIMISE="-O"
33522 fi
33523fi
33524
33525
33526if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33527 cat >>confdefs.h <<\_ACEOF
33528#define WXWIN_COMPATIBILITY_2_2 1
33529_ACEOF
33530
33531
33532 WXWIN_COMPATIBILITY_2_4="yes"
33533fi
33534
33535if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33536 cat >>confdefs.h <<\_ACEOF
33537#define WXWIN_COMPATIBILITY_2_4 1
33538_ACEOF
33539
33540fi
33541
33542
33543if test "$wxUSE_GUI" = "yes"; then
33544 cat >>confdefs.h <<\_ACEOF
33545#define wxUSE_GUI 1
33546_ACEOF
33547
33548
33549 else
33550 cat >>confdefs.h <<\_ACEOF
33551#define wxUSE_NOGUI 1
33552_ACEOF
33553
33554fi
33555
33556
33557if test "$wxUSE_UNIX" = "yes"; then
33558 cat >>confdefs.h <<\_ACEOF
33559#define wxUSE_UNIX 1
33560_ACEOF
33561
33562fi
33563
33564
33565if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33566
33567 HAVE_DL_FUNCS=0
33568 HAVE_SHL_FUNCS=0
33569 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33570 if test "$USE_DARWIN" = 1; then
33571 HAVE_DL_FUNCS=1
33572 else
33573
33574for ac_func in dlopen
33575do
33576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33577echo "$as_me:$LINENO: checking for $ac_func" >&5
33578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33579if eval "test \"\${$as_ac_var+set}\" = set"; then
33580 echo $ECHO_N "(cached) $ECHO_C" >&6
33581else
33582 cat >conftest.$ac_ext <<_ACEOF
33583/* confdefs.h. */
33584_ACEOF
33585cat confdefs.h >>conftest.$ac_ext
33586cat >>conftest.$ac_ext <<_ACEOF
33587/* end confdefs.h. */
ac1cb8d3
VS
33588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33590#define $ac_func innocuous_$ac_func
33591
a848cd7e
SC
33592/* System header to define __stub macros and hopefully few prototypes,
33593 which can conflict with char $ac_func (); below.
33594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33595 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33596
a848cd7e
SC
33597#ifdef __STDC__
33598# include <limits.h>
33599#else
33600# include <assert.h>
33601#endif
ac1cb8d3
VS
33602
33603#undef $ac_func
33604
a848cd7e
SC
33605/* Override any gcc2 internal prototype to avoid an error. */
33606#ifdef __cplusplus
33607extern "C"
33608{
33609#endif
33610/* We use char because int might match the return type of a gcc2
33611 builtin and then its argument prototype would still apply. */
33612char $ac_func ();
33613/* The GNU C library defines this for functions which it implements
33614 to always fail with ENOSYS. Some functions are actually named
33615 something starting with __ and the normal name is an alias. */
33616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33617choke me
33618#else
33619char (*f) () = $ac_func;
33620#endif
33621#ifdef __cplusplus
33622}
33623#endif
33624
33625int
33626main ()
33627{
33628return f != $ac_func;
33629 ;
33630 return 0;
33631}
33632_ACEOF
33633rm -f conftest.$ac_objext conftest$ac_exeext
33634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33635 (eval $ac_link) 2>conftest.er1
a848cd7e 33636 ac_status=$?
ac1cb8d3
VS
33637 grep -v '^ *+' conftest.er1 >conftest.err
33638 rm -f conftest.er1
33639 cat conftest.err >&5
a848cd7e
SC
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); } &&
5294a27e 33642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33644 (eval $ac_try) 2>&5
33645 ac_status=$?
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); }; } &&
33648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33650 (eval $ac_try) 2>&5
33651 ac_status=$?
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); }; }; then
33654 eval "$as_ac_var=yes"
33655else
33656 echo "$as_me: failed program was:" >&5
33657sed 's/^/| /' conftest.$ac_ext >&5
33658
33659eval "$as_ac_var=no"
33660fi
ac1cb8d3
VS
33661rm -f conftest.err conftest.$ac_objext \
33662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33663fi
33664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33665echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33666if test `eval echo '${'$as_ac_var'}'` = yes; then
33667 cat >>confdefs.h <<_ACEOF
33668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33669_ACEOF
33670
33671 cat >>confdefs.h <<\_ACEOF
33672#define HAVE_DLOPEN 1
33673_ACEOF
33674
33675 HAVE_DL_FUNCS=1
33676
33677else
33678
33679 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33680echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33681if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33682 echo $ECHO_N "(cached) $ECHO_C" >&6
33683else
33684 ac_check_lib_save_LIBS=$LIBS
33685LIBS="-ldl $LIBS"
33686cat >conftest.$ac_ext <<_ACEOF
33687/* confdefs.h. */
33688_ACEOF
33689cat confdefs.h >>conftest.$ac_ext
33690cat >>conftest.$ac_ext <<_ACEOF
33691/* end confdefs.h. */
33692
33693/* Override any gcc2 internal prototype to avoid an error. */
33694#ifdef __cplusplus
33695extern "C"
33696#endif
33697/* We use char because int might match the return type of a gcc2
33698 builtin and then its argument prototype would still apply. */
33699char dlopen ();
33700int
33701main ()
33702{
33703dlopen ();
33704 ;
33705 return 0;
33706}
33707_ACEOF
33708rm -f conftest.$ac_objext conftest$ac_exeext
33709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33710 (eval $ac_link) 2>conftest.er1
a848cd7e 33711 ac_status=$?
ac1cb8d3
VS
33712 grep -v '^ *+' conftest.er1 >conftest.err
33713 rm -f conftest.er1
33714 cat conftest.err >&5
a848cd7e
SC
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); } &&
5294a27e 33717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33719 (eval $ac_try) 2>&5
33720 ac_status=$?
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); }; } &&
33723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; }; then
33729 ac_cv_lib_dl_dlopen=yes
33730else
33731 echo "$as_me: failed program was:" >&5
33732sed 's/^/| /' conftest.$ac_ext >&5
33733
33734ac_cv_lib_dl_dlopen=no
33735fi
ac1cb8d3
VS
33736rm -f conftest.err conftest.$ac_objext \
33737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33738LIBS=$ac_check_lib_save_LIBS
33739fi
33740echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33741echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33742if test $ac_cv_lib_dl_dlopen = yes; then
33743
33744 cat >>confdefs.h <<\_ACEOF
33745#define HAVE_DLOPEN 1
33746_ACEOF
33747
33748 HAVE_DL_FUNCS=1
33749 DL_LINK=" -ldl$DL_LINK"
33750
33751else
33752
33753
33754for ac_func in shl_load
33755do
33756as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33757echo "$as_me:$LINENO: checking for $ac_func" >&5
33758echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33759if eval "test \"\${$as_ac_var+set}\" = set"; then
33760 echo $ECHO_N "(cached) $ECHO_C" >&6
33761else
33762 cat >conftest.$ac_ext <<_ACEOF
33763/* confdefs.h. */
33764_ACEOF
33765cat confdefs.h >>conftest.$ac_ext
33766cat >>conftest.$ac_ext <<_ACEOF
33767/* end confdefs.h. */
ac1cb8d3
VS
33768/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33770#define $ac_func innocuous_$ac_func
33771
a848cd7e
SC
33772/* System header to define __stub macros and hopefully few prototypes,
33773 which can conflict with char $ac_func (); below.
33774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33775 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33776
a848cd7e
SC
33777#ifdef __STDC__
33778# include <limits.h>
33779#else
33780# include <assert.h>
33781#endif
ac1cb8d3
VS
33782
33783#undef $ac_func
33784
a848cd7e
SC
33785/* Override any gcc2 internal prototype to avoid an error. */
33786#ifdef __cplusplus
33787extern "C"
33788{
33789#endif
33790/* We use char because int might match the return type of a gcc2
33791 builtin and then its argument prototype would still apply. */
33792char $ac_func ();
33793/* The GNU C library defines this for functions which it implements
33794 to always fail with ENOSYS. Some functions are actually named
33795 something starting with __ and the normal name is an alias. */
33796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33797choke me
33798#else
33799char (*f) () = $ac_func;
33800#endif
33801#ifdef __cplusplus
33802}
33803#endif
33804
33805int
33806main ()
33807{
33808return f != $ac_func;
33809 ;
33810 return 0;
33811}
33812_ACEOF
33813rm -f conftest.$ac_objext conftest$ac_exeext
33814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33815 (eval $ac_link) 2>conftest.er1
a848cd7e 33816 ac_status=$?
ac1cb8d3
VS
33817 grep -v '^ *+' conftest.er1 >conftest.err
33818 rm -f conftest.er1
33819 cat conftest.err >&5
a848cd7e
SC
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); } &&
5294a27e 33822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33824 (eval $ac_try) 2>&5
33825 ac_status=$?
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); }; } &&
33828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33830 (eval $ac_try) 2>&5
33831 ac_status=$?
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); }; }; then
33834 eval "$as_ac_var=yes"
33835else
33836 echo "$as_me: failed program was:" >&5
33837sed 's/^/| /' conftest.$ac_ext >&5
33838
33839eval "$as_ac_var=no"
33840fi
ac1cb8d3
VS
33841rm -f conftest.err conftest.$ac_objext \
33842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33843fi
33844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33846if test `eval echo '${'$as_ac_var'}'` = yes; then
33847 cat >>confdefs.h <<_ACEOF
33848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33849_ACEOF
33850
33851 cat >>confdefs.h <<\_ACEOF
33852#define HAVE_SHL_LOAD 1
33853_ACEOF
33854
33855 HAVE_SHL_FUNCS=1
33856
33857else
33858
33859 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33860echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33861if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33862 echo $ECHO_N "(cached) $ECHO_C" >&6
33863else
33864 ac_check_lib_save_LIBS=$LIBS
33865LIBS="-lshl_load $LIBS"
33866cat >conftest.$ac_ext <<_ACEOF
33867/* confdefs.h. */
33868_ACEOF
33869cat confdefs.h >>conftest.$ac_ext
33870cat >>conftest.$ac_ext <<_ACEOF
33871/* end confdefs.h. */
33872
33873/* Override any gcc2 internal prototype to avoid an error. */
33874#ifdef __cplusplus
33875extern "C"
33876#endif
33877/* We use char because int might match the return type of a gcc2
33878 builtin and then its argument prototype would still apply. */
33879char dld ();
33880int
33881main ()
33882{
33883dld ();
33884 ;
33885 return 0;
33886}
33887_ACEOF
33888rm -f conftest.$ac_objext conftest$ac_exeext
33889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33890 (eval $ac_link) 2>conftest.er1
a848cd7e 33891 ac_status=$?
ac1cb8d3
VS
33892 grep -v '^ *+' conftest.er1 >conftest.err
33893 rm -f conftest.er1
33894 cat conftest.err >&5
a848cd7e
SC
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); } &&
5294a27e 33897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899 (eval $ac_try) 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; } &&
33903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33905 (eval $ac_try) 2>&5
33906 ac_status=$?
33907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908 (exit $ac_status); }; }; then
33909 ac_cv_lib_shl_load_dld=yes
33910else
33911 echo "$as_me: failed program was:" >&5
33912sed 's/^/| /' conftest.$ac_ext >&5
33913
33914ac_cv_lib_shl_load_dld=no
33915fi
ac1cb8d3
VS
33916rm -f conftest.err conftest.$ac_objext \
33917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33918LIBS=$ac_check_lib_save_LIBS
33919fi
33920echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33921echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33922if test $ac_cv_lib_shl_load_dld = yes; then
33923
33924 HAVE_SHL_FUNCS=1
33925 DL_LINK=" -ldld$DL_LINK"
33926
33927fi
33928
33929
33930fi
33931done
33932
33933
33934fi
33935
33936
33937fi
33938done
33939
33940
33941 if test "$HAVE_DL_FUNCS" = 1; then
33942
33943for ac_func in dlerror
33944do
33945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33946echo "$as_me:$LINENO: checking for $ac_func" >&5
33947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33948if eval "test \"\${$as_ac_var+set}\" = set"; then
33949 echo $ECHO_N "(cached) $ECHO_C" >&6
33950else
33951 cat >conftest.$ac_ext <<_ACEOF
33952/* confdefs.h. */
33953_ACEOF
33954cat confdefs.h >>conftest.$ac_ext
33955cat >>conftest.$ac_ext <<_ACEOF
33956/* end confdefs.h. */
ac1cb8d3
VS
33957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33959#define $ac_func innocuous_$ac_func
33960
a848cd7e
SC
33961/* System header to define __stub macros and hopefully few prototypes,
33962 which can conflict with char $ac_func (); below.
33963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33964 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33965
a848cd7e
SC
33966#ifdef __STDC__
33967# include <limits.h>
33968#else
33969# include <assert.h>
33970#endif
ac1cb8d3
VS
33971
33972#undef $ac_func
33973
a848cd7e
SC
33974/* Override any gcc2 internal prototype to avoid an error. */
33975#ifdef __cplusplus
33976extern "C"
33977{
33978#endif
33979/* We use char because int might match the return type of a gcc2
33980 builtin and then its argument prototype would still apply. */
33981char $ac_func ();
33982/* The GNU C library defines this for functions which it implements
33983 to always fail with ENOSYS. Some functions are actually named
33984 something starting with __ and the normal name is an alias. */
33985#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33986choke me
33987#else
33988char (*f) () = $ac_func;
33989#endif
33990#ifdef __cplusplus
33991}
33992#endif
33993
33994int
33995main ()
33996{
33997return f != $ac_func;
33998 ;
33999 return 0;
34000}
34001_ACEOF
34002rm -f conftest.$ac_objext conftest$ac_exeext
34003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34004 (eval $ac_link) 2>conftest.er1
a848cd7e 34005 ac_status=$?
ac1cb8d3
VS
34006 grep -v '^ *+' conftest.er1 >conftest.err
34007 rm -f conftest.er1
34008 cat conftest.err >&5
a848cd7e
SC
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); } &&
5294a27e 34011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34013 (eval $ac_try) 2>&5
34014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); }; } &&
34017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019 (eval $ac_try) 2>&5
34020 ac_status=$?
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; }; then
34023 eval "$as_ac_var=yes"
34024else
34025 echo "$as_me: failed program was:" >&5
34026sed 's/^/| /' conftest.$ac_ext >&5
34027
34028eval "$as_ac_var=no"
34029fi
ac1cb8d3
VS
34030rm -f conftest.err conftest.$ac_objext \
34031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34032fi
34033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34034echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34035if test `eval echo '${'$as_ac_var'}'` = yes; then
34036 cat >>confdefs.h <<_ACEOF
34037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34038_ACEOF
34039 cat >>confdefs.h <<\_ACEOF
34040#define HAVE_DLERROR 1
34041_ACEOF
34042
34043else
34044
34045 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34046echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34047if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34048 echo $ECHO_N "(cached) $ECHO_C" >&6
34049else
34050 ac_check_lib_save_LIBS=$LIBS
34051LIBS="-ldl $LIBS"
34052cat >conftest.$ac_ext <<_ACEOF
34053/* confdefs.h. */
34054_ACEOF
34055cat confdefs.h >>conftest.$ac_ext
34056cat >>conftest.$ac_ext <<_ACEOF
34057/* end confdefs.h. */
34058
34059/* Override any gcc2 internal prototype to avoid an error. */
34060#ifdef __cplusplus
34061extern "C"
34062#endif
34063/* We use char because int might match the return type of a gcc2
34064 builtin and then its argument prototype would still apply. */
34065char dlerror ();
34066int
34067main ()
34068{
34069dlerror ();
34070 ;
34071 return 0;
34072}
34073_ACEOF
34074rm -f conftest.$ac_objext conftest$ac_exeext
34075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34076 (eval $ac_link) 2>conftest.er1
a848cd7e 34077 ac_status=$?
ac1cb8d3
VS
34078 grep -v '^ *+' conftest.er1 >conftest.err
34079 rm -f conftest.er1
34080 cat conftest.err >&5
a848cd7e
SC
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); } &&
5294a27e 34083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34085 (eval $ac_try) 2>&5
34086 ac_status=$?
34087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088 (exit $ac_status); }; } &&
34089 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091 (eval $ac_try) 2>&5
34092 ac_status=$?
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094 (exit $ac_status); }; }; then
34095 ac_cv_lib_dl_dlerror=yes
34096else
34097 echo "$as_me: failed program was:" >&5
34098sed 's/^/| /' conftest.$ac_ext >&5
34099
34100ac_cv_lib_dl_dlerror=no
34101fi
ac1cb8d3
VS
34102rm -f conftest.err conftest.$ac_objext \
34103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34104LIBS=$ac_check_lib_save_LIBS
34105fi
34106echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34107echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34108if test $ac_cv_lib_dl_dlerror = yes; then
34109 cat >>confdefs.h <<\_ACEOF
34110#define HAVE_DLERROR 1
34111_ACEOF
34112
34113fi
34114
34115
34116
34117fi
34118done
34119
34120 fi
34121 fi
34122
34123 if test "$HAVE_DL_FUNCS" = 0; then
34124 if test "$HAVE_SHL_FUNCS" = 0; then
34125 if test "$USE_UNIX" = 1; then
34126 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34127echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34128 wxUSE_DYNAMIC_LOADER=no
34129 wxUSE_DYNLIB_CLASS=no
34130 else
34131 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34132echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34133 fi
34134 fi
34135 fi
34136 fi
34137fi
34138
34139if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34140 cat >>confdefs.h <<\_ACEOF
34141#define wxUSE_DYNAMIC_LOADER 1
34142_ACEOF
34143
34144fi
34145if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34146 cat >>confdefs.h <<\_ACEOF
34147#define wxUSE_DYNLIB_CLASS 1
34148_ACEOF
34149
34150fi
34151
34152
34153
34154if test "$wxUSE_PLUGINS" = "yes" ; then
34155 if test "$wxUSE_SHARED" = "no" ; then
34156 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34157echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34158 wxUSE_PLUGINS=no
34159 fi
34160 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34161 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34162echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34163 wxUSE_PLUGINS=no
34164 fi
34165 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34166 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34167echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34168 wxUSE_PLUGINS=no
34169 fi
34170 if test "$wxUSE_PLUGINS" = "yes" ; then
34171 cat >>confdefs.h <<\_ACEOF
34172#define wxUSE_PLUGINS 1
34173_ACEOF
34174
34175 fi
34176fi
34177
34178
34179if test "$wxUSE_STL" = "yes"; then
34180 cat >>confdefs.h <<\_ACEOF
34181#define wxUSE_STL 1
34182_ACEOF
34183
34184fi
34185
34186if test "$wxUSE_APPLE_IEEE" = "yes"; then
34187 cat >>confdefs.h <<\_ACEOF
34188#define wxUSE_APPLE_IEEE 1
34189_ACEOF
34190
34191fi
34192
34193if test "$wxUSE_TIMER" = "yes"; then
34194 cat >>confdefs.h <<\_ACEOF
34195#define wxUSE_TIMER 1
34196_ACEOF
34197
34198fi
34199
34200WITH_PLUGIN_SDL=0
34201if test "$wxUSE_SOUND" = "yes"; then
34202 if test "$USE_UNIX" = "1" ; then
34203
34204for ac_header in sys/soundcard.h
34205do
34206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34207if eval "test \"\${$as_ac_Header+set}\" = set"; then
34208 echo "$as_me:$LINENO: checking for $ac_header" >&5
34209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34210if eval "test \"\${$as_ac_Header+set}\" = set"; then
34211 echo $ECHO_N "(cached) $ECHO_C" >&6
34212fi
34213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34215else
34216 # Is the header compilable?
34217echo "$as_me:$LINENO: checking $ac_header usability" >&5
34218echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34219cat >conftest.$ac_ext <<_ACEOF
34220/* confdefs.h. */
34221_ACEOF
34222cat confdefs.h >>conftest.$ac_ext
34223cat >>conftest.$ac_ext <<_ACEOF
34224/* end confdefs.h. */
34225$ac_includes_default
34226#include <$ac_header>
34227_ACEOF
34228rm -f conftest.$ac_objext
34229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34230 (eval $ac_compile) 2>conftest.er1
a848cd7e 34231 ac_status=$?
ac1cb8d3
VS
34232 grep -v '^ *+' conftest.er1 >conftest.err
34233 rm -f conftest.er1
34234 cat conftest.err >&5
a848cd7e
SC
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); } &&
5294a27e 34237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239 (eval $ac_try) 2>&5
34240 ac_status=$?
34241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242 (exit $ac_status); }; } &&
34243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34245 (eval $ac_try) 2>&5
34246 ac_status=$?
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); }; }; then
34249 ac_header_compiler=yes
34250else
34251 echo "$as_me: failed program was:" >&5
34252sed 's/^/| /' conftest.$ac_ext >&5
34253
34254ac_header_compiler=no
34255fi
ac1cb8d3 34256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34258echo "${ECHO_T}$ac_header_compiler" >&6
34259
34260# Is the header present?
34261echo "$as_me:$LINENO: checking $ac_header presence" >&5
34262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34263cat >conftest.$ac_ext <<_ACEOF
34264/* confdefs.h. */
34265_ACEOF
34266cat confdefs.h >>conftest.$ac_ext
34267cat >>conftest.$ac_ext <<_ACEOF
34268/* end confdefs.h. */
34269#include <$ac_header>
34270_ACEOF
34271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34273 ac_status=$?
34274 grep -v '^ *+' conftest.er1 >conftest.err
34275 rm -f conftest.er1
34276 cat conftest.err >&5
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); } >/dev/null; then
34279 if test -s conftest.err; then
34280 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34282 else
34283 ac_cpp_err=
34284 fi
34285else
34286 ac_cpp_err=yes
34287fi
34288if test -z "$ac_cpp_err"; then
34289 ac_header_preproc=yes
34290else
34291 echo "$as_me: failed program was:" >&5
34292sed 's/^/| /' conftest.$ac_ext >&5
34293
34294 ac_header_preproc=no
34295fi
34296rm -f conftest.err conftest.$ac_ext
34297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34298echo "${ECHO_T}$ac_header_preproc" >&6
34299
34300# So? What about this header?
ac1cb8d3
VS
34301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34302 yes:no: )
a848cd7e
SC
34303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34307 ac_header_preproc=yes
a848cd7e 34308 ;;
ac1cb8d3 34309 no:yes:* )
a848cd7e
SC
34310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34322 (
34323 cat <<\_ASBOX
ac1cb8d3
VS
34324## ----------------------------------------- ##
34325## Report this to wx-dev@lists.wxwidgets.org ##
34326## ----------------------------------------- ##
a848cd7e
SC
34327_ASBOX
34328 ) |
34329 sed "s/^/$as_me: WARNING: /" >&2
34330 ;;
34331esac
34332echo "$as_me:$LINENO: checking for $ac_header" >&5
34333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34334if eval "test \"\${$as_ac_Header+set}\" = set"; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34336else
ac1cb8d3 34337 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34338fi
34339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34341
34342fi
34343if test `eval echo '${'$as_ac_Header'}'` = yes; then
34344 cat >>confdefs.h <<_ACEOF
34345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34346_ACEOF
34347
34348fi
34349
34350done
34351
34352
34353 if test "$wxUSE_LIBSDL" != "no"; then
34354
34355# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34356if test "${with_sdl_prefix+set}" = set; then
34357 withval="$with_sdl_prefix"
34358 sdl_prefix="$withval"
34359else
34360 sdl_prefix=""
34361fi;
34362
34363# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34364if test "${with_sdl_exec_prefix+set}" = set; then
34365 withval="$with_sdl_exec_prefix"
34366 sdl_exec_prefix="$withval"
34367else
34368 sdl_exec_prefix=""
34369fi;
34370# Check whether --enable-sdltest or --disable-sdltest was given.
34371if test "${enable_sdltest+set}" = set; then
34372 enableval="$enable_sdltest"
34373
34374else
34375 enable_sdltest=yes
34376fi;
34377
34378 if test x$sdl_exec_prefix != x ; then
34379 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34380 if test x${SDL_CONFIG+set} != xset ; then
34381 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34382 fi
34383 fi
34384 if test x$sdl_prefix != x ; then
34385 sdl_args="$sdl_args --prefix=$sdl_prefix"
34386 if test x${SDL_CONFIG+set} != xset ; then
34387 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34388 fi
34389 fi
34390
34391
34392 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34393 # Extract the first word of "sdl-config", so it can be a program name with args.
34394set dummy sdl-config; ac_word=$2
34395echo "$as_me:$LINENO: checking for $ac_word" >&5
34396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34397if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34398 echo $ECHO_N "(cached) $ECHO_C" >&6
34399else
34400 case $SDL_CONFIG in
34401 [\\/]* | ?:[\\/]*)
34402 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34403 ;;
34404 *)
34405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34406for as_dir in $PATH
34407do
34408 IFS=$as_save_IFS
34409 test -z "$as_dir" && as_dir=.
34410 for ac_exec_ext in '' $ac_executable_extensions; do
34411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34412 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34414 break 2
34415 fi
34416done
34417done
34418
34419 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34420 ;;
34421esac
34422fi
34423SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34424
34425if test -n "$SDL_CONFIG"; then
34426 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34427echo "${ECHO_T}$SDL_CONFIG" >&6
34428else
34429 echo "$as_me:$LINENO: result: no" >&5
34430echo "${ECHO_T}no" >&6
34431fi
34432
34433 min_sdl_version=1.2.0
34434 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34435echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34436 no_sdl=""
34437 if test "$SDL_CONFIG" = "no" ; then
34438 no_sdl=yes
34439 else
34440 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34441 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34442
34443 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34445 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34447 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34449 if test "x$enable_sdltest" = "xyes" ; then
34450 ac_save_CFLAGS="$CFLAGS"
1e9e8aba 34451 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
34452 ac_save_LIBS="$LIBS"
34453 CFLAGS="$CFLAGS $SDL_CFLAGS"
1e9e8aba 34454 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
34455 LIBS="$LIBS $SDL_LIBS"
34456 rm -f conf.sdltest
34457 if test "$cross_compiling" = yes; then
34458 echo $ac_n "cross compiling; assumed OK... $ac_c"
34459else
34460 cat >conftest.$ac_ext <<_ACEOF
34461/* confdefs.h. */
34462_ACEOF
34463cat confdefs.h >>conftest.$ac_ext
34464cat >>conftest.$ac_ext <<_ACEOF
34465/* end confdefs.h. */
34466
34467#include <stdio.h>
34468#include <stdlib.h>
34469#include <string.h>
34470#include "SDL.h"
34471
34472char*
34473my_strdup (char *str)
34474{
34475 char *new_str;
34476
34477 if (str)
34478 {
34479 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34480 strcpy (new_str, str);
34481 }
34482 else
34483 new_str = NULL;
34484
34485 return new_str;
34486}
34487
34488int main (int argc, char *argv[])
34489{
34490 int major, minor, micro;
34491 char *tmp_version;
34492
34493 /* This hangs on some systems (?)
34494 system ("touch conf.sdltest");
34495 */
34496 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34497
34498 /* HP/UX 9 (%@#!) writes to sscanf strings */
34499 tmp_version = my_strdup("$min_sdl_version");
34500 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34501 printf("%s, bad version string\n", "$min_sdl_version");
34502 exit(1);
34503 }
34504
34505 if (($sdl_major_version > major) ||
34506 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34507 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34508 {
34509 return 0;
34510 }
34511 else
34512 {
34513 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34514 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34515 printf("*** best to upgrade to the required version.\n");
34516 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34517 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34518 printf("*** config.cache before re-running configure\n");
34519 return 1;
34520 }
34521}
34522
34523
34524_ACEOF
34525rm -f conftest$ac_exeext
34526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34527 (eval $ac_link) 2>&5
34528 ac_status=$?
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34532 (eval $ac_try) 2>&5
34533 ac_status=$?
34534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535 (exit $ac_status); }; }; then
34536 :
34537else
34538 echo "$as_me: program exited with status $ac_status" >&5
34539echo "$as_me: failed program was:" >&5
34540sed 's/^/| /' conftest.$ac_ext >&5
34541
34542( exit $ac_status )
34543no_sdl=yes
34544fi
ac1cb8d3 34545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34546fi
34547 CFLAGS="$ac_save_CFLAGS"
1e9e8aba 34548 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
34549 LIBS="$ac_save_LIBS"
34550 fi
34551 fi
34552 if test "x$no_sdl" = x ; then
34553 echo "$as_me:$LINENO: result: yes" >&5
34554echo "${ECHO_T}yes" >&6
34555
34556 EXTRALIBS_SDL="$SDL_LIBS"
34557 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34558 cat >>confdefs.h <<\_ACEOF
34559#define wxUSE_LIBSDL 1
34560_ACEOF
34561
34562
34563 else
34564 echo "$as_me:$LINENO: result: no" >&5
34565echo "${ECHO_T}no" >&6
34566 if test "$SDL_CONFIG" = "no" ; then
34567 echo "*** The sdl-config script installed by SDL could not be found"
34568 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34569 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34570 echo "*** full path to sdl-config."
34571 else
34572 if test -f conf.sdltest ; then
34573 :
34574 else
34575 echo "*** Could not run SDL test program, checking why..."
34576 CFLAGS="$CFLAGS $SDL_CFLAGS"
1e9e8aba 34577 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
34578 LIBS="$LIBS $SDL_LIBS"
34579 cat >conftest.$ac_ext <<_ACEOF
34580/* confdefs.h. */
34581_ACEOF
34582cat confdefs.h >>conftest.$ac_ext
34583cat >>conftest.$ac_ext <<_ACEOF
34584/* end confdefs.h. */
34585
34586#include <stdio.h>
34587#include "SDL.h"
34588
34589int main(int argc, char *argv[])
34590{ return 0; }
34591#undef main
34592#define main K_and_R_C_main
34593
34594int
34595main ()
34596{
34597 return 0;
34598 ;
34599 return 0;
34600}
34601_ACEOF
34602rm -f conftest.$ac_objext conftest$ac_exeext
34603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34604 (eval $ac_link) 2>conftest.er1
a848cd7e 34605 ac_status=$?
ac1cb8d3
VS
34606 grep -v '^ *+' conftest.er1 >conftest.err
34607 rm -f conftest.er1
34608 cat conftest.err >&5
a848cd7e
SC
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); } &&
5294a27e 34611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34613 (eval $ac_try) 2>&5
34614 ac_status=$?
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); }; } &&
34617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619 (eval $ac_try) 2>&5
34620 ac_status=$?
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); }; }; then
34623 echo "*** The test program compiled, but did not run. This usually means"
34624 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34625 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34626 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34627 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34628 echo "*** is required on your system"
34629 echo "***"
34630 echo "*** If you have an old version installed, it is best to remove it, although"
34631 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34632else
34633 echo "$as_me: failed program was:" >&5
34634sed 's/^/| /' conftest.$ac_ext >&5
34635
34636 echo "*** The test program failed to compile or link. See the file config.log for the"
34637 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34638 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34639 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34640fi
ac1cb8d3
VS
34641rm -f conftest.err conftest.$ac_objext \
34642 conftest$ac_exeext conftest.$ac_ext
a848cd7e 34643 CFLAGS="$ac_save_CFLAGS"
1e9e8aba 34644 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
34645 LIBS="$ac_save_LIBS"
34646 fi
34647 fi
34648 SDL_CFLAGS=""
34649 SDL_LIBS=""
34650 wxUSE_LIBSDL="no"
34651 fi
34652
34653
34654 rm -f conf.sdltest
34655
34656 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34657 WITH_PLUGIN_SDL=1
34658 fi
34659 fi
34660 fi
34661
34662 cat >>confdefs.h <<\_ACEOF
34663#define wxUSE_SOUND 1
34664_ACEOF
34665
34666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34667fi
34668
d1c38808
VZ
34669if test "$WXGTK20" = 1; then
34670 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34671 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
34672
34673
34674 succeeded=no
34675
34676 if test -z "$PKG_CONFIG"; then
34677 # Extract the first word of "pkg-config", so it can be a program name with args.
34678set dummy pkg-config; ac_word=$2
34679echo "$as_me:$LINENO: checking for $ac_word" >&5
34680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34681if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34682 echo $ECHO_N "(cached) $ECHO_C" >&6
34683else
34684 case $PKG_CONFIG in
34685 [\\/]* | ?:[\\/]*)
34686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34687 ;;
34688 *)
34689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34690for as_dir in $PATH
34691do
34692 IFS=$as_save_IFS
34693 test -z "$as_dir" && as_dir=.
34694 for ac_exec_ext in '' $ac_executable_extensions; do
34695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34696 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34698 break 2
34699 fi
34700done
34701done
34702
34703 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34704 ;;
34705esac
34706fi
34707PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34708
34709if test -n "$PKG_CONFIG"; then
34710 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34711echo "${ECHO_T}$PKG_CONFIG" >&6
34712else
34713 echo "$as_me:$LINENO: result: no" >&5
34714echo "${ECHO_T}no" >&6
34715fi
34716
34717 fi
34718
34719 if test "$PKG_CONFIG" = "no" ; then
34720 echo "*** The pkg-config script could not be found. Make sure it is"
34721 echo "*** in your path, or set the PKG_CONFIG environment variable"
34722 echo "*** to the full path to pkg-config."
34723 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
34724 else
34725 PKG_CONFIG_MIN_VERSION=0.9.0
34726 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
34727 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
34728echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 34729
ffa762ff 34730 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
34731 echo "$as_me:$LINENO: result: yes" >&5
34732echo "${ECHO_T}yes" >&6
34733 succeeded=yes
34734
34735 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
34736echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 34737 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34738 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
34739echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
34740
34741 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
34742echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 34743 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34744 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
34745echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
34746 else
34747 LIBGNOMEPRINTUI_CFLAGS=""
34748 LIBGNOMEPRINTUI_LIBS=""
34749 ## If we have a custom action on failure, don't print errors, but
34750 ## do set a variable so people can do so.
ffa762ff 34751 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34752
34753 fi
34754
34755
34756
34757 else
34758 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
34759 echo "*** See http://www.freedesktop.org/software/pkgconfig"
34760 fi
34761 fi
34762
34763 if test $succeeded = yes; then
34764
d1c38808
VZ
34765 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
34766 cat >>confdefs.h <<\_ACEOF
34767#define wxUSE_LIBGNOMEPRINT 1
34768_ACEOF
34769
34770
34771 else
34772
34773 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
34774echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
34775 wxUSE_LIBGNOMEPRINT="no"
34776
34777
34778 fi
34779
34780 fi
34781 fi
34782fi
34783
34784
a848cd7e
SC
34785if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34786 cat >>confdefs.h <<\_ACEOF
34787#define wxUSE_CMDLINE_PARSER 1
34788_ACEOF
34789
34790fi
34791
34792if test "$wxUSE_STOPWATCH" = "yes"; then
34793 cat >>confdefs.h <<\_ACEOF
34794#define wxUSE_STOPWATCH 1
34795_ACEOF
34796
34797fi
34798
34799if test "$wxUSE_DATETIME" = "yes"; then
34800 cat >>confdefs.h <<\_ACEOF
34801#define wxUSE_DATETIME 1
34802_ACEOF
34803
34804fi
34805
34806if test "$wxUSE_FILE" = "yes"; then
34807 cat >>confdefs.h <<\_ACEOF
34808#define wxUSE_FILE 1
34809_ACEOF
34810
34811fi
34812
34813if test "$wxUSE_FFILE" = "yes"; then
34814 cat >>confdefs.h <<\_ACEOF
34815#define wxUSE_FFILE 1
34816_ACEOF
34817
34818fi
34819
34820if test "$wxUSE_FILESYSTEM" = "yes"; then
34821 cat >>confdefs.h <<\_ACEOF
34822#define wxUSE_FILESYSTEM 1
34823_ACEOF
34824
34825fi
34826
34827if test "$wxUSE_FS_ZIP" = "yes"; then
34828 cat >>confdefs.h <<\_ACEOF
34829#define wxUSE_FS_ZIP 1
34830_ACEOF
34831
34832fi
34833
34834if test "$wxUSE_ZIPSTREAM" = "yes"; then
34835 cat >>confdefs.h <<\_ACEOF
34836#define wxUSE_ZIPSTREAM 1
34837_ACEOF
34838
34839fi
34840
a848cd7e
SC
34841if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34842 cat >>confdefs.h <<\_ACEOF
34843#define wxUSE_ON_FATAL_EXCEPTION 1
34844_ACEOF
34845
34846fi
34847
34848if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34849 cat >>confdefs.h <<\_ACEOF
34850#define wxUSE_SNGLINST_CHECKER 1
34851_ACEOF
34852
34853fi
34854
34855if test "$wxUSE_BUSYINFO" = "yes"; then
34856 cat >>confdefs.h <<\_ACEOF
34857#define wxUSE_BUSYINFO 1
34858_ACEOF
34859
34860fi
34861
34862if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34863 cat >>confdefs.h <<\_ACEOF
34864#define wxUSE_STD_IOSTREAM 1
34865_ACEOF
34866
34867fi
34868
34869if test "$wxUSE_TEXTBUFFER" = "yes"; then
34870 cat >>confdefs.h <<\_ACEOF
34871#define wxUSE_TEXTBUFFER 1
34872_ACEOF
34873
34874fi
34875
34876if test "$wxUSE_TEXTFILE" = "yes"; then
34877 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34878 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34879echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34880 else
34881 cat >>confdefs.h <<\_ACEOF
34882#define wxUSE_TEXTFILE 1
34883_ACEOF
34884
34885 fi
34886fi
34887
34888if test "$wxUSE_CONFIG" = "yes" ; then
34889 if test "$wxUSE_TEXTFILE" != "yes"; then
34890 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34891echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34892 else
34893 cat >>confdefs.h <<\_ACEOF
34894#define wxUSE_CONFIG 1
34895_ACEOF
34896
34897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34898 fi
34899fi
34900
34901if test "$wxUSE_INTL" = "yes" ; then
34902 if test "$wxUSE_FILE" != "yes"; then
34903 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34904echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34905 else
34906 cat >>confdefs.h <<\_ACEOF
34907#define wxUSE_INTL 1
34908_ACEOF
34909
34910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34911 GUIDIST="$GUIDIST INTL_DIST"
34912 fi
34913fi
34914
34915if test "$wxUSE_LOG" = "yes"; then
34916 cat >>confdefs.h <<\_ACEOF
34917#define wxUSE_LOG 1
34918_ACEOF
34919
34920
34921 if test "$wxUSE_LOGGUI" = "yes"; then
34922 cat >>confdefs.h <<\_ACEOF
34923#define wxUSE_LOGGUI 1
34924_ACEOF
34925
34926 fi
34927
34928 if test "$wxUSE_LOGWINDOW" = "yes"; then
34929 cat >>confdefs.h <<\_ACEOF
34930#define wxUSE_LOGWINDOW 1
34931_ACEOF
34932
34933 fi
34934
34935 if test "$wxUSE_LOGDIALOG" = "yes"; then
34936 cat >>confdefs.h <<\_ACEOF
34937#define wxUSE_LOG_DIALOG 1
34938_ACEOF
34939
34940 fi
34941fi
34942
34943if test "$wxUSE_LONGLONG" = "yes"; then
34944 cat >>confdefs.h <<\_ACEOF
34945#define wxUSE_LONGLONG 1
34946_ACEOF
34947
34948fi
34949
34950if test "$wxUSE_GEOMETRY" = "yes"; then
34951 cat >>confdefs.h <<\_ACEOF
34952#define wxUSE_GEOMETRY 1
34953_ACEOF
34954
34955fi
34956
34957if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34958 cat >>confdefs.h <<\_ACEOF
34959#define wxUSE_DIALUP_MANAGER 1
34960_ACEOF
34961
34962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34963fi
34964
34965if test "$wxUSE_STREAMS" = "yes" ; then
34966 cat >>confdefs.h <<\_ACEOF
34967#define wxUSE_STREAMS 1
34968_ACEOF
34969
34970fi
34971
34972
34973if test "$wxUSE_DATETIME" = "yes"; then
34974
34975for ac_func in strptime
34976do
34977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34978echo "$as_me:$LINENO: checking for $ac_func" >&5
34979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34980if eval "test \"\${$as_ac_var+set}\" = set"; then
34981 echo $ECHO_N "(cached) $ECHO_C" >&6
34982else
34983 cat >conftest.$ac_ext <<_ACEOF
34984/* confdefs.h. */
34985_ACEOF
34986cat confdefs.h >>conftest.$ac_ext
34987cat >>conftest.$ac_ext <<_ACEOF
34988/* end confdefs.h. */
ac1cb8d3
VS
34989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34991#define $ac_func innocuous_$ac_func
34992
a848cd7e
SC
34993/* System header to define __stub macros and hopefully few prototypes,
34994 which can conflict with char $ac_func (); below.
34995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34996 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34997
a848cd7e
SC
34998#ifdef __STDC__
34999# include <limits.h>
35000#else
35001# include <assert.h>
35002#endif
ac1cb8d3
VS
35003
35004#undef $ac_func
35005
a848cd7e
SC
35006/* Override any gcc2 internal prototype to avoid an error. */
35007#ifdef __cplusplus
35008extern "C"
35009{
35010#endif
35011/* We use char because int might match the return type of a gcc2
35012 builtin and then its argument prototype would still apply. */
35013char $ac_func ();
35014/* The GNU C library defines this for functions which it implements
35015 to always fail with ENOSYS. Some functions are actually named
35016 something starting with __ and the normal name is an alias. */
35017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35018choke me
35019#else
35020char (*f) () = $ac_func;
35021#endif
35022#ifdef __cplusplus
35023}
35024#endif
35025
35026int
35027main ()
35028{
35029return f != $ac_func;
35030 ;
35031 return 0;
35032}
35033_ACEOF
35034rm -f conftest.$ac_objext conftest$ac_exeext
35035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35036 (eval $ac_link) 2>conftest.er1
a848cd7e 35037 ac_status=$?
ac1cb8d3
VS
35038 grep -v '^ *+' conftest.er1 >conftest.err
35039 rm -f conftest.er1
35040 cat conftest.err >&5
a848cd7e
SC
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); } &&
5294a27e 35043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35045 (eval $ac_try) 2>&5
35046 ac_status=$?
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); }; } &&
35049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35051 (eval $ac_try) 2>&5
35052 ac_status=$?
35053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054 (exit $ac_status); }; }; then
35055 eval "$as_ac_var=yes"
35056else
35057 echo "$as_me: failed program was:" >&5
35058sed 's/^/| /' conftest.$ac_ext >&5
35059
35060eval "$as_ac_var=no"
35061fi
ac1cb8d3
VS
35062rm -f conftest.err conftest.$ac_objext \
35063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35064fi
35065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35067if test `eval echo '${'$as_ac_var'}'` = yes; then
35068 cat >>confdefs.h <<_ACEOF
35069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35070_ACEOF
35071
35072fi
35073done
35074
35075
35076 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35077echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35078if test "${wx_cv_var_timezone+set}" = set; then
35079 echo $ECHO_N "(cached) $ECHO_C" >&6
35080else
35081
35082 cat >conftest.$ac_ext <<_ACEOF
35083/* confdefs.h. */
35084_ACEOF
35085cat confdefs.h >>conftest.$ac_ext
35086cat >>conftest.$ac_ext <<_ACEOF
35087/* end confdefs.h. */
35088
35089 #include <time.h>
35090
35091int
35092main ()
35093{
35094
35095 int tz;
35096 tz = timezone;
35097
35098 ;
35099 return 0;
35100}
35101_ACEOF
35102rm -f conftest.$ac_objext
35103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35104 (eval $ac_compile) 2>conftest.er1
a848cd7e 35105 ac_status=$?
ac1cb8d3
VS
35106 grep -v '^ *+' conftest.er1 >conftest.err
35107 rm -f conftest.er1
35108 cat conftest.err >&5
a848cd7e
SC
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } &&
5294a27e 35111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; } &&
35117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; }; then
35123
35124 wx_cv_var_timezone=timezone
35125
35126else
35127 echo "$as_me: failed program was:" >&5
35128sed 's/^/| /' conftest.$ac_ext >&5
35129
35130
35131 cat >conftest.$ac_ext <<_ACEOF
35132/* confdefs.h. */
35133_ACEOF
35134cat confdefs.h >>conftest.$ac_ext
35135cat >>conftest.$ac_ext <<_ACEOF
35136/* end confdefs.h. */
35137
35138 #include <time.h>
35139
35140int
35141main ()
35142{
35143
35144 int tz;
35145 tz = _timezone;
35146
35147 ;
35148 return 0;
35149}
35150_ACEOF
35151rm -f conftest.$ac_objext
35152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35153 (eval $ac_compile) 2>conftest.er1
a848cd7e 35154 ac_status=$?
ac1cb8d3
VS
35155 grep -v '^ *+' conftest.er1 >conftest.err
35156 rm -f conftest.er1
35157 cat conftest.err >&5
a848cd7e
SC
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); } &&
5294a27e 35160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35162 (eval $ac_try) 2>&5
35163 ac_status=$?
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); }; } &&
35166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35168 (eval $ac_try) 2>&5
35169 ac_status=$?
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); }; }; then
35172
35173 wx_cv_var_timezone=_timezone
35174
35175else
35176 echo "$as_me: failed program was:" >&5
35177sed 's/^/| /' conftest.$ac_ext >&5
35178
35179
35180 cat >conftest.$ac_ext <<_ACEOF
35181/* confdefs.h. */
35182_ACEOF
35183cat confdefs.h >>conftest.$ac_ext
35184cat >>conftest.$ac_ext <<_ACEOF
35185/* end confdefs.h. */
35186
35187 #include <time.h>
35188
35189int
35190main ()
35191{
35192
35193 int tz;
35194 tz = __timezone;
35195
35196 ;
35197 return 0;
35198}
35199_ACEOF
35200rm -f conftest.$ac_objext
35201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35202 (eval $ac_compile) 2>conftest.er1
a848cd7e 35203 ac_status=$?
ac1cb8d3
VS
35204 grep -v '^ *+' conftest.er1 >conftest.err
35205 rm -f conftest.er1
35206 cat conftest.err >&5
a848cd7e
SC
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } &&
5294a27e 35209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35211 (eval $ac_try) 2>&5
35212 ac_status=$?
35213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214 (exit $ac_status); }; } &&
35215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35217 (eval $ac_try) 2>&5
35218 ac_status=$?
35219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220 (exit $ac_status); }; }; then
35221
35222 wx_cv_var_timezone=__timezone
35223
35224else
35225 echo "$as_me: failed program was:" >&5
35226sed 's/^/| /' conftest.$ac_ext >&5
35227
35228
35229 if test "$USE_DOS" = 0 ; then
35230 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35231echo "$as_me: WARNING: no timezone variable" >&2;}
35232 fi
35233
35234
35235fi
ac1cb8d3 35236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35237
35238
35239fi
ac1cb8d3 35240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35241
35242
35243fi
ac1cb8d3 35244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35245
35246
35247fi
35248echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35249echo "${ECHO_T}$wx_cv_var_timezone" >&6
35250
35251 if test "x$wx_cv_var_timezone" != x ; then
35252 cat >>confdefs.h <<_ACEOF
35253#define WX_TIMEZONE $wx_cv_var_timezone
35254_ACEOF
35255
35256 fi
35257
35258
35259for ac_func in localtime
35260do
35261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35262echo "$as_me:$LINENO: checking for $ac_func" >&5
35263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35264if eval "test \"\${$as_ac_var+set}\" = set"; then
35265 echo $ECHO_N "(cached) $ECHO_C" >&6
35266else
35267 cat >conftest.$ac_ext <<_ACEOF
35268/* confdefs.h. */
35269_ACEOF
35270cat confdefs.h >>conftest.$ac_ext
35271cat >>conftest.$ac_ext <<_ACEOF
35272/* end confdefs.h. */
ac1cb8d3
VS
35273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35275#define $ac_func innocuous_$ac_func
35276
a848cd7e
SC
35277/* System header to define __stub macros and hopefully few prototypes,
35278 which can conflict with char $ac_func (); below.
35279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35280 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35281
a848cd7e
SC
35282#ifdef __STDC__
35283# include <limits.h>
35284#else
35285# include <assert.h>
35286#endif
ac1cb8d3
VS
35287
35288#undef $ac_func
35289
a848cd7e
SC
35290/* Override any gcc2 internal prototype to avoid an error. */
35291#ifdef __cplusplus
35292extern "C"
35293{
35294#endif
35295/* We use char because int might match the return type of a gcc2
35296 builtin and then its argument prototype would still apply. */
35297char $ac_func ();
35298/* The GNU C library defines this for functions which it implements
35299 to always fail with ENOSYS. Some functions are actually named
35300 something starting with __ and the normal name is an alias. */
35301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35302choke me
35303#else
35304char (*f) () = $ac_func;
35305#endif
35306#ifdef __cplusplus
35307}
35308#endif
35309
35310int
35311main ()
35312{
35313return f != $ac_func;
35314 ;
35315 return 0;
35316}
35317_ACEOF
35318rm -f conftest.$ac_objext conftest$ac_exeext
35319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35320 (eval $ac_link) 2>conftest.er1
a848cd7e 35321 ac_status=$?
ac1cb8d3
VS
35322 grep -v '^ *+' conftest.er1 >conftest.err
35323 rm -f conftest.er1
35324 cat conftest.err >&5
a848cd7e
SC
35325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326 (exit $ac_status); } &&
5294a27e 35327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35329 (eval $ac_try) 2>&5
35330 ac_status=$?
35331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332 (exit $ac_status); }; } &&
35333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35335 (eval $ac_try) 2>&5
35336 ac_status=$?
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); }; }; then
35339 eval "$as_ac_var=yes"
35340else
35341 echo "$as_me: failed program was:" >&5
35342sed 's/^/| /' conftest.$ac_ext >&5
35343
35344eval "$as_ac_var=no"
35345fi
ac1cb8d3
VS
35346rm -f conftest.err conftest.$ac_objext \
35347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35348fi
35349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35350echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35351if test `eval echo '${'$as_ac_var'}'` = yes; then
35352 cat >>confdefs.h <<_ACEOF
35353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35354_ACEOF
35355
35356fi
35357done
35358
35359
35360 if test "$ac_cv_func_localtime" = "yes"; then
35361 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35362echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35363if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35364 echo $ECHO_N "(cached) $ECHO_C" >&6
35365else
35366
35367 cat >conftest.$ac_ext <<_ACEOF
35368/* confdefs.h. */
35369_ACEOF
35370cat confdefs.h >>conftest.$ac_ext
35371cat >>conftest.$ac_ext <<_ACEOF
35372/* end confdefs.h. */
35373
35374 #include <time.h>
35375
35376int
35377main ()
35378{
35379
35380 struct tm tm;
35381 tm.tm_gmtoff++;
35382
35383 ;
35384 return 0;
35385}
35386_ACEOF
35387rm -f conftest.$ac_objext
35388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35389 (eval $ac_compile) 2>conftest.er1
a848cd7e 35390 ac_status=$?
ac1cb8d3
VS
35391 grep -v '^ *+' conftest.er1 >conftest.err
35392 rm -f conftest.er1
35393 cat conftest.err >&5
a848cd7e
SC
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); } &&
5294a27e 35396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35398 (eval $ac_try) 2>&5
35399 ac_status=$?
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); }; } &&
35402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35404 (eval $ac_try) 2>&5
35405 ac_status=$?
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); }; }; then
35408
35409 wx_cv_struct_tm_has_gmtoff=yes
35410
35411else
35412 echo "$as_me: failed program was:" >&5
35413sed 's/^/| /' conftest.$ac_ext >&5
35414
35415wx_cv_struct_tm_has_gmtoff=no
35416
35417fi
ac1cb8d3 35418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35419
35420fi
35421echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35422echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35423 fi
35424
35425 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35426 cat >>confdefs.h <<\_ACEOF
35427#define WX_GMTOFF_IN_TM 1
35428_ACEOF
35429
35430 fi
35431
35432
35433
35434for ac_func in gettimeofday ftime
35435do
35436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35437echo "$as_me:$LINENO: checking for $ac_func" >&5
35438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35439if eval "test \"\${$as_ac_var+set}\" = set"; then
35440 echo $ECHO_N "(cached) $ECHO_C" >&6
35441else
35442 cat >conftest.$ac_ext <<_ACEOF
35443/* confdefs.h. */
35444_ACEOF
35445cat confdefs.h >>conftest.$ac_ext
35446cat >>conftest.$ac_ext <<_ACEOF
35447/* end confdefs.h. */
ac1cb8d3
VS
35448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35450#define $ac_func innocuous_$ac_func
35451
a848cd7e
SC
35452/* System header to define __stub macros and hopefully few prototypes,
35453 which can conflict with char $ac_func (); below.
35454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35455 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35456
a848cd7e
SC
35457#ifdef __STDC__
35458# include <limits.h>
35459#else
35460# include <assert.h>
35461#endif
ac1cb8d3
VS
35462
35463#undef $ac_func
35464
a848cd7e
SC
35465/* Override any gcc2 internal prototype to avoid an error. */
35466#ifdef __cplusplus
35467extern "C"
35468{
35469#endif
35470/* We use char because int might match the return type of a gcc2
35471 builtin and then its argument prototype would still apply. */
35472char $ac_func ();
35473/* The GNU C library defines this for functions which it implements
35474 to always fail with ENOSYS. Some functions are actually named
35475 something starting with __ and the normal name is an alias. */
35476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35477choke me
35478#else
35479char (*f) () = $ac_func;
35480#endif
35481#ifdef __cplusplus
35482}
35483#endif
35484
35485int
35486main ()
35487{
35488return f != $ac_func;
35489 ;
35490 return 0;
35491}
35492_ACEOF
35493rm -f conftest.$ac_objext conftest$ac_exeext
35494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35495 (eval $ac_link) 2>conftest.er1
a848cd7e 35496 ac_status=$?
ac1cb8d3
VS
35497 grep -v '^ *+' conftest.er1 >conftest.err
35498 rm -f conftest.er1
35499 cat conftest.err >&5
a848cd7e
SC
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); } &&
5294a27e 35502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35504 (eval $ac_try) 2>&5
35505 ac_status=$?
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); }; } &&
35508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35510 (eval $ac_try) 2>&5
35511 ac_status=$?
35512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513 (exit $ac_status); }; }; then
35514 eval "$as_ac_var=yes"
35515else
35516 echo "$as_me: failed program was:" >&5
35517sed 's/^/| /' conftest.$ac_ext >&5
35518
35519eval "$as_ac_var=no"
35520fi
ac1cb8d3
VS
35521rm -f conftest.err conftest.$ac_objext \
35522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35523fi
35524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35526if test `eval echo '${'$as_ac_var'}'` = yes; then
35527 cat >>confdefs.h <<_ACEOF
35528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35529_ACEOF
35530 break
35531fi
35532done
35533
35534
35535 if test "$ac_cv_func_gettimeofday" = "yes"; then
35536 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35537echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35538if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35539 echo $ECHO_N "(cached) $ECHO_C" >&6
35540else
35541
35542
35543
35544 ac_ext=cc
35545ac_cpp='$CXXCPP $CPPFLAGS'
35546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35549
35550
35551 cat >conftest.$ac_ext <<_ACEOF
35552/* confdefs.h. */
35553_ACEOF
35554cat confdefs.h >>conftest.$ac_ext
35555cat >>conftest.$ac_ext <<_ACEOF
35556/* end confdefs.h. */
35557
35558 #include <sys/time.h>
35559 #include <unistd.h>
35560
35561int
35562main ()
35563{
35564
35565 struct timeval tv;
35566 gettimeofday(&tv, NULL);
35567
35568 ;
35569 return 0;
35570}
35571_ACEOF
35572rm -f conftest.$ac_objext
35573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35574 (eval $ac_compile) 2>conftest.er1
a848cd7e 35575 ac_status=$?
ac1cb8d3
VS
35576 grep -v '^ *+' conftest.er1 >conftest.err
35577 rm -f conftest.er1
35578 cat conftest.err >&5
a848cd7e
SC
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); } &&
5294a27e 35581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35584 ac_status=$?
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; } &&
35587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35589 (eval $ac_try) 2>&5
35590 ac_status=$?
35591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592 (exit $ac_status); }; }; then
35593 wx_cv_func_gettimeofday_has_2_args=yes
35594else
35595 echo "$as_me: failed program was:" >&5
35596sed 's/^/| /' conftest.$ac_ext >&5
35597
35598cat >conftest.$ac_ext <<_ACEOF
35599/* confdefs.h. */
35600_ACEOF
35601cat confdefs.h >>conftest.$ac_ext
35602cat >>conftest.$ac_ext <<_ACEOF
35603/* end confdefs.h. */
35604
35605 #include <sys/time.h>
35606 #include <unistd.h>
35607
35608int
35609main ()
35610{
35611
35612 struct timeval tv;
35613 gettimeofday(&tv);
35614
35615 ;
35616 return 0;
35617}
35618_ACEOF
35619rm -f conftest.$ac_objext
35620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35621 (eval $ac_compile) 2>conftest.er1
a848cd7e 35622 ac_status=$?
ac1cb8d3
VS
35623 grep -v '^ *+' conftest.er1 >conftest.err
35624 rm -f conftest.er1
35625 cat conftest.err >&5
a848cd7e
SC
35626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35627 (exit $ac_status); } &&
5294a27e 35628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35631 ac_status=$?
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; } &&
35634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636 (eval $ac_try) 2>&5
35637 ac_status=$?
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); }; }; then
35640 wx_cv_func_gettimeofday_has_2_args=no
35641else
35642 echo "$as_me: failed program was:" >&5
35643sed 's/^/| /' conftest.$ac_ext >&5
35644
35645
35646 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35647echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35648 wx_cv_func_gettimeofday_has_2_args=unknown
35649
35650
35651fi
ac1cb8d3 35652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35653
35654fi
ac1cb8d3 35655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35656 ac_ext=c
35657ac_cpp='$CPP $CPPFLAGS'
35658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35660ac_compiler_gnu=$ac_cv_c_compiler_gnu
35661
35662
35663fi
35664echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35665echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35666
35667 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35668 cat >>confdefs.h <<\_ACEOF
35669#define WX_GETTIMEOFDAY_NO_TZ 1
35670_ACEOF
35671
35672 fi
35673 fi
35674
35675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35676fi
35677
35678
35679if test "$wxUSE_SOCKETS" = "yes"; then
35680 if test "$wxUSE_MGL" = "1"; then
35681 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35682echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35683 wxUSE_SOCKETS="no"
35684 fi
35685fi
35686
35687if test "$wxUSE_SOCKETS" = "yes"; then
35688 if test "$TOOLKIT" != "MSW"; then
35689 echo "$as_me:$LINENO: checking for socket" >&5
35690echo $ECHO_N "checking for socket... $ECHO_C" >&6
35691if test "${ac_cv_func_socket+set}" = set; then
35692 echo $ECHO_N "(cached) $ECHO_C" >&6
35693else
35694 cat >conftest.$ac_ext <<_ACEOF
35695/* confdefs.h. */
35696_ACEOF
35697cat confdefs.h >>conftest.$ac_ext
35698cat >>conftest.$ac_ext <<_ACEOF
35699/* end confdefs.h. */
ac1cb8d3
VS
35700/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35702#define socket innocuous_socket
35703
a848cd7e
SC
35704/* System header to define __stub macros and hopefully few prototypes,
35705 which can conflict with char socket (); below.
35706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35707 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35708
a848cd7e
SC
35709#ifdef __STDC__
35710# include <limits.h>
35711#else
35712# include <assert.h>
35713#endif
ac1cb8d3
VS
35714
35715#undef socket
35716
a848cd7e
SC
35717/* Override any gcc2 internal prototype to avoid an error. */
35718#ifdef __cplusplus
35719extern "C"
35720{
35721#endif
35722/* We use char because int might match the return type of a gcc2
35723 builtin and then its argument prototype would still apply. */
35724char socket ();
35725/* The GNU C library defines this for functions which it implements
35726 to always fail with ENOSYS. Some functions are actually named
35727 something starting with __ and the normal name is an alias. */
35728#if defined (__stub_socket) || defined (__stub___socket)
35729choke me
35730#else
35731char (*f) () = socket;
35732#endif
35733#ifdef __cplusplus
35734}
35735#endif
35736
35737int
35738main ()
35739{
35740return f != socket;
35741 ;
35742 return 0;
35743}
35744_ACEOF
35745rm -f conftest.$ac_objext conftest$ac_exeext
35746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35747 (eval $ac_link) 2>conftest.er1
a848cd7e 35748 ac_status=$?
ac1cb8d3
VS
35749 grep -v '^ *+' conftest.er1 >conftest.err
35750 rm -f conftest.er1
35751 cat conftest.err >&5
a848cd7e
SC
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } &&
5294a27e 35754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35756 (eval $ac_try) 2>&5
35757 ac_status=$?
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); }; } &&
35760 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762 (eval $ac_try) 2>&5
35763 ac_status=$?
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; }; then
35766 ac_cv_func_socket=yes
35767else
35768 echo "$as_me: failed program was:" >&5
35769sed 's/^/| /' conftest.$ac_ext >&5
35770
35771ac_cv_func_socket=no
35772fi
ac1cb8d3
VS
35773rm -f conftest.err conftest.$ac_objext \
35774 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35775fi
35776echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35777echo "${ECHO_T}$ac_cv_func_socket" >&6
35778if test $ac_cv_func_socket = yes; then
35779 :
35780else
35781
35782 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35783echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35784if test "${ac_cv_lib_socket_socket+set}" = set; then
35785 echo $ECHO_N "(cached) $ECHO_C" >&6
35786else
35787 ac_check_lib_save_LIBS=$LIBS
35788LIBS="-lsocket $LIBS"
35789cat >conftest.$ac_ext <<_ACEOF
35790/* confdefs.h. */
35791_ACEOF
35792cat confdefs.h >>conftest.$ac_ext
35793cat >>conftest.$ac_ext <<_ACEOF
35794/* end confdefs.h. */
35795
35796/* Override any gcc2 internal prototype to avoid an error. */
35797#ifdef __cplusplus
35798extern "C"
35799#endif
35800/* We use char because int might match the return type of a gcc2
35801 builtin and then its argument prototype would still apply. */
35802char socket ();
35803int
35804main ()
35805{
35806socket ();
35807 ;
35808 return 0;
35809}
35810_ACEOF
35811rm -f conftest.$ac_objext conftest$ac_exeext
35812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35813 (eval $ac_link) 2>conftest.er1
a848cd7e 35814 ac_status=$?
ac1cb8d3
VS
35815 grep -v '^ *+' conftest.er1 >conftest.err
35816 rm -f conftest.er1
35817 cat conftest.err >&5
a848cd7e
SC
35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 (exit $ac_status); } &&
5294a27e 35820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35822 (eval $ac_try) 2>&5
35823 ac_status=$?
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); }; } &&
35826 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35828 (eval $ac_try) 2>&5
35829 ac_status=$?
35830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35831 (exit $ac_status); }; }; then
35832 ac_cv_lib_socket_socket=yes
35833else
35834 echo "$as_me: failed program was:" >&5
35835sed 's/^/| /' conftest.$ac_ext >&5
35836
35837ac_cv_lib_socket_socket=no
35838fi
ac1cb8d3
VS
35839rm -f conftest.err conftest.$ac_objext \
35840 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35841LIBS=$ac_check_lib_save_LIBS
35842fi
35843echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35844echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35845if test $ac_cv_lib_socket_socket = yes; then
35846 if test "$INET_LINK" != " -lsocket"; then
35847 INET_LINK="$INET_LINK -lsocket"
35848 fi
35849else
35850
35851 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35852echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35853 wxUSE_SOCKETS=no
35854
35855
35856fi
35857
35858
35859
35860fi
35861
35862 fi
35863fi
35864
35865if test "$wxUSE_SOCKETS" = "yes" ; then
35866 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35867 ac_ext=cc
35868ac_cpp='$CXXCPP $CPPFLAGS'
35869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35872
35873 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35874echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35875if test "${wx_cv_type_getsockname3+set}" = set; then
35876 echo $ECHO_N "(cached) $ECHO_C" >&6
35877else
35878
35879 cat >conftest.$ac_ext <<_ACEOF
35880/* confdefs.h. */
35881_ACEOF
35882cat confdefs.h >>conftest.$ac_ext
35883cat >>conftest.$ac_ext <<_ACEOF
35884/* end confdefs.h. */
35885
35886 #include <sys/types.h>
35887 #include <sys/socket.h>
35888
35889int
35890main ()
35891{
35892
35893 socklen_t len;
35894 getsockname(0, 0, &len);
35895
35896 ;
35897 return 0;
35898}
35899_ACEOF
35900rm -f conftest.$ac_objext
35901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35902 (eval $ac_compile) 2>conftest.er1
a848cd7e 35903 ac_status=$?
ac1cb8d3
VS
35904 grep -v '^ *+' conftest.er1 >conftest.err
35905 rm -f conftest.er1
35906 cat conftest.err >&5
a848cd7e
SC
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } &&
5294a27e 35909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35911 (eval $ac_try) 2>&5
35912 ac_status=$?
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); }; } &&
35915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35917 (eval $ac_try) 2>&5
35918 ac_status=$?
35919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920 (exit $ac_status); }; }; then
35921 wx_cv_type_getsockname3=socklen_t
35922else
35923 echo "$as_me: failed program was:" >&5
35924sed 's/^/| /' conftest.$ac_ext >&5
35925
35926
35927 CFLAGS_OLD="$CFLAGS"
35928 if test "$GCC" = yes ; then
35929 CFLAGS="$CFLAGS -Werror"
35930 fi
35931
35932 cat >conftest.$ac_ext <<_ACEOF
35933/* confdefs.h. */
35934_ACEOF
35935cat confdefs.h >>conftest.$ac_ext
35936cat >>conftest.$ac_ext <<_ACEOF
35937/* end confdefs.h. */
35938
35939 #include <sys/types.h>
35940 #include <sys/socket.h>
35941
35942int
35943main ()
35944{
35945
35946 size_t len;
35947 getsockname(0, 0, &len);
35948
35949 ;
35950 return 0;
35951}
35952_ACEOF
35953rm -f conftest.$ac_objext
35954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35955 (eval $ac_compile) 2>conftest.er1
a848cd7e 35956 ac_status=$?
ac1cb8d3
VS
35957 grep -v '^ *+' conftest.er1 >conftest.err
35958 rm -f conftest.er1
35959 cat conftest.err >&5
a848cd7e
SC
35960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961 (exit $ac_status); } &&
5294a27e 35962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35964 (eval $ac_try) 2>&5
35965 ac_status=$?
35966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); }; } &&
35968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35970 (eval $ac_try) 2>&5
35971 ac_status=$?
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); }; }; then
35974 wx_cv_type_getsockname3=size_t
35975else
35976 echo "$as_me: failed program was:" >&5
35977sed 's/^/| /' conftest.$ac_ext >&5
35978
35979cat >conftest.$ac_ext <<_ACEOF
35980/* confdefs.h. */
35981_ACEOF
35982cat confdefs.h >>conftest.$ac_ext
35983cat >>conftest.$ac_ext <<_ACEOF
35984/* end confdefs.h. */
35985
35986 #include <sys/types.h>
35987 #include <sys/socket.h>
35988
35989int
35990main ()
35991{
35992
35993 int len;
35994 getsockname(0, 0, &len);
35995
35996 ;
35997 return 0;
35998}
35999_ACEOF
36000rm -f conftest.$ac_objext
36001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36002 (eval $ac_compile) 2>conftest.er1
a848cd7e 36003 ac_status=$?
ac1cb8d3
VS
36004 grep -v '^ *+' conftest.er1 >conftest.err
36005 rm -f conftest.er1
36006 cat conftest.err >&5
a848cd7e
SC
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); } &&
5294a27e 36009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36011 (eval $ac_try) 2>&5
36012 ac_status=$?
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); }; } &&
36015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36018 ac_status=$?
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; }; then
36021 wx_cv_type_getsockname3=int
36022else
36023 echo "$as_me: failed program was:" >&5
36024sed 's/^/| /' conftest.$ac_ext >&5
36025
36026wx_cv_type_getsockname3=unknown
36027
36028fi
ac1cb8d3 36029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36030
36031fi
ac1cb8d3 36032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36033
36034 CFLAGS="$CFLAGS_OLD"
36035
36036
36037fi
ac1cb8d3 36038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36039
36040fi
36041echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36042echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36043
36044 if test "$wx_cv_type_getsockname3" = "unknown"; then
36045 wxUSE_SOCKETS=no
36046 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36047echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36048 else
36049 cat >>confdefs.h <<_ACEOF
36050#define SOCKLEN_T $wx_cv_type_getsockname3
36051_ACEOF
36052
36053 fi
4d4ff94c
VZ
36054 ac_ext=c
36055ac_cpp='$CPP $CPPFLAGS'
36056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36058ac_compiler_gnu=$ac_cv_c_compiler_gnu
36059
a848cd7e
SC
36060 fi
36061fi
36062
36063if test "$wxUSE_SOCKETS" = "yes" ; then
36064 cat >>confdefs.h <<\_ACEOF
36065#define wxUSE_SOCKETS 1
36066_ACEOF
36067
36068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36069fi
36070
36071if test "$wxUSE_PROTOCOL" = "yes"; then
36072 if test "$wxUSE_SOCKETS" != "yes"; then
36073 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36074echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36075 wxUSE_PROTOCOL=no
36076 fi
36077fi
36078
36079if test "$wxUSE_PROTOCOL" = "yes"; then
36080 cat >>confdefs.h <<\_ACEOF
36081#define wxUSE_PROTOCOL 1
36082_ACEOF
36083
36084
36085 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36086 cat >>confdefs.h <<\_ACEOF
36087#define wxUSE_PROTOCOL_HTTP 1
36088_ACEOF
36089
36090 fi
36091 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36092 cat >>confdefs.h <<\_ACEOF
36093#define wxUSE_PROTOCOL_FTP 1
36094_ACEOF
36095
36096 fi
36097 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36098 cat >>confdefs.h <<\_ACEOF
36099#define wxUSE_PROTOCOL_FILE 1
36100_ACEOF
36101
36102 fi
36103else
36104 if test "$wxUSE_FS_INET" = "yes"; then
36105 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36106echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36107 wxUSE_FS_INET="no"
36108 fi
36109fi
36110
36111if test "$wxUSE_URL" = "yes"; then
36112 if test "$wxUSE_PROTOCOL" != "yes"; then
36113 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36114echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36115 wxUSE_URL=no
36116 fi
36117 if test "$wxUSE_URL" = "yes"; then
36118 cat >>confdefs.h <<\_ACEOF
36119#define wxUSE_URL 1
36120_ACEOF
36121
36122 fi
36123fi
36124
36125if test "$wxUSE_FS_INET" = "yes"; then
36126 cat >>confdefs.h <<\_ACEOF
36127#define wxUSE_FS_INET 1
36128_ACEOF
36129
36130fi
36131
36132
36133if test "$wxUSE_GUI" = "yes"; then
36134
36135 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36136 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36137echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36138 wxUSE_JOYSTICK=no
36139 fi
36140
36141 if test "$TOOLKIT" != "MSW"; then
36142 if test "$wxUSE_JOYSTICK" = "yes"; then
36143
36144for ac_header in linux/joystick.h
36145do
36146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36147if eval "test \"\${$as_ac_Header+set}\" = set"; then
36148 echo "$as_me:$LINENO: checking for $ac_header" >&5
36149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36150if eval "test \"\${$as_ac_Header+set}\" = set"; then
36151 echo $ECHO_N "(cached) $ECHO_C" >&6
36152fi
36153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36155else
36156 # Is the header compilable?
36157echo "$as_me:$LINENO: checking $ac_header usability" >&5
36158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36159cat >conftest.$ac_ext <<_ACEOF
36160/* confdefs.h. */
36161_ACEOF
36162cat confdefs.h >>conftest.$ac_ext
36163cat >>conftest.$ac_ext <<_ACEOF
36164/* end confdefs.h. */
36165$ac_includes_default
36166#include <$ac_header>
36167_ACEOF
36168rm -f conftest.$ac_objext
36169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36170 (eval $ac_compile) 2>conftest.er1
a848cd7e 36171 ac_status=$?
ac1cb8d3
VS
36172 grep -v '^ *+' conftest.er1 >conftest.err
36173 rm -f conftest.er1
36174 cat conftest.err >&5
a848cd7e
SC
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); } &&
5294a27e 36177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36179 (eval $ac_try) 2>&5
36180 ac_status=$?
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); }; } &&
36183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36185 (eval $ac_try) 2>&5
36186 ac_status=$?
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); }; }; then
36189 ac_header_compiler=yes
36190else
36191 echo "$as_me: failed program was:" >&5
36192sed 's/^/| /' conftest.$ac_ext >&5
36193
36194ac_header_compiler=no
36195fi
ac1cb8d3 36196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36198echo "${ECHO_T}$ac_header_compiler" >&6
36199
36200# Is the header present?
36201echo "$as_me:$LINENO: checking $ac_header presence" >&5
36202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36203cat >conftest.$ac_ext <<_ACEOF
36204/* confdefs.h. */
36205_ACEOF
36206cat confdefs.h >>conftest.$ac_ext
36207cat >>conftest.$ac_ext <<_ACEOF
36208/* end confdefs.h. */
36209#include <$ac_header>
36210_ACEOF
36211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36213 ac_status=$?
36214 grep -v '^ *+' conftest.er1 >conftest.err
36215 rm -f conftest.er1
36216 cat conftest.err >&5
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); } >/dev/null; then
36219 if test -s conftest.err; then
36220 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36222 else
36223 ac_cpp_err=
36224 fi
36225else
36226 ac_cpp_err=yes
36227fi
36228if test -z "$ac_cpp_err"; then
36229 ac_header_preproc=yes
36230else
36231 echo "$as_me: failed program was:" >&5
36232sed 's/^/| /' conftest.$ac_ext >&5
36233
36234 ac_header_preproc=no
36235fi
36236rm -f conftest.err conftest.$ac_ext
36237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36238echo "${ECHO_T}$ac_header_preproc" >&6
36239
36240# So? What about this header?
ac1cb8d3
VS
36241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36242 yes:no: )
a848cd7e
SC
36243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36247 ac_header_preproc=yes
a848cd7e 36248 ;;
ac1cb8d3 36249 no:yes:* )
a848cd7e
SC
36250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36262 (
36263 cat <<\_ASBOX
ac1cb8d3
VS
36264## ----------------------------------------- ##
36265## Report this to wx-dev@lists.wxwidgets.org ##
36266## ----------------------------------------- ##
a848cd7e
SC
36267_ASBOX
36268 ) |
36269 sed "s/^/$as_me: WARNING: /" >&2
36270 ;;
36271esac
36272echo "$as_me:$LINENO: checking for $ac_header" >&5
36273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36274if eval "test \"\${$as_ac_Header+set}\" = set"; then
36275 echo $ECHO_N "(cached) $ECHO_C" >&6
36276else
ac1cb8d3 36277 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36278fi
36279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36281
36282fi
36283if test `eval echo '${'$as_ac_Header'}'` = yes; then
36284 cat >>confdefs.h <<_ACEOF
36285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36286_ACEOF
36287
36288fi
36289
36290done
36291
36292 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36293 wxUSE_JOYSTICK=no
36294 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36295echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36296 fi
36297 fi
36298 fi
36299
36300 if test "$wxUSE_JOYSTICK" = "yes"; then
36301 cat >>confdefs.h <<\_ACEOF
36302#define wxUSE_JOYSTICK 1
36303_ACEOF
36304
36305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36306 fi
36307fi
36308
36309
36310
36311if test "$wxUSE_FONTMAP" = "yes" ; then
36312 cat >>confdefs.h <<\_ACEOF
36313#define wxUSE_FONTMAP 1
36314_ACEOF
36315
36316fi
36317
36318if test "$wxUSE_UNICODE" = "yes" ; then
36319 cat >>confdefs.h <<\_ACEOF
36320#define wxUSE_UNICODE 1
36321_ACEOF
36322
36323
36324 if test "$USE_WIN32" != 1; then
36325 wxUSE_UNICODE_MSLU=no
36326 fi
36327
36328 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36329 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36330echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36331if test "${ac_cv_lib_unicows_main+set}" = set; then
36332 echo $ECHO_N "(cached) $ECHO_C" >&6
36333else
36334 ac_check_lib_save_LIBS=$LIBS
36335LIBS="-lunicows $LIBS"
36336cat >conftest.$ac_ext <<_ACEOF
36337/* confdefs.h. */
36338_ACEOF
36339cat confdefs.h >>conftest.$ac_ext
36340cat >>conftest.$ac_ext <<_ACEOF
36341/* end confdefs.h. */
36342
36343
36344int
36345main ()
36346{
36347main ();
36348 ;
36349 return 0;
36350}
36351_ACEOF
36352rm -f conftest.$ac_objext conftest$ac_exeext
36353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36354 (eval $ac_link) 2>conftest.er1
a848cd7e 36355 ac_status=$?
ac1cb8d3
VS
36356 grep -v '^ *+' conftest.er1 >conftest.err
36357 rm -f conftest.er1
36358 cat conftest.err >&5
a848cd7e
SC
36359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360 (exit $ac_status); } &&
5294a27e 36361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36363 (eval $ac_try) 2>&5
36364 ac_status=$?
36365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366 (exit $ac_status); }; } &&
36367 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36369 (eval $ac_try) 2>&5
36370 ac_status=$?
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); }; }; then
36373 ac_cv_lib_unicows_main=yes
36374else
36375 echo "$as_me: failed program was:" >&5
36376sed 's/^/| /' conftest.$ac_ext >&5
36377
36378ac_cv_lib_unicows_main=no
36379fi
ac1cb8d3
VS
36380rm -f conftest.err conftest.$ac_objext \
36381 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36382LIBS=$ac_check_lib_save_LIBS
36383fi
36384echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36385echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36386if test $ac_cv_lib_unicows_main = yes; then
36387
36388 cat >>confdefs.h <<\_ACEOF
36389#define wxUSE_UNICODE_MSLU 1
36390_ACEOF
36391
36392
36393else
36394
36395 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36396 Applications will only run on Windows NT/2000/XP!" >&5
36397echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36398 Applications will only run on Windows NT/2000/XP!" >&2;}
36399 wxUSE_UNICODE_MSLU=no
36400
36401fi
36402
36403 fi
36404fi
36405
36406if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36407 cat >>confdefs.h <<\_ACEOF
36408#define wxUSE_EXPERIMENTAL_PRINTF 1
36409_ACEOF
36410
36411fi
36412
36413
36414if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36415 cat >>confdefs.h <<\_ACEOF
36416#define wxUSE_POSTSCRIPT 1
36417_ACEOF
36418
36419fi
36420
36421cat >>confdefs.h <<\_ACEOF
36422#define wxUSE_AFM_FOR_POSTSCRIPT 1
36423_ACEOF
36424
36425
36426cat >>confdefs.h <<\_ACEOF
36427#define wxUSE_NORMALIZED_PS_FONTS 1
36428_ACEOF
36429
36430
36431
36432if test "$wxUSE_CONSTRAINTS" = "yes"; then
36433 cat >>confdefs.h <<\_ACEOF
36434#define wxUSE_CONSTRAINTS 1
36435_ACEOF
36436
36437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36438fi
36439
8a7b1113
VZ
36440if test "$wxUSE_MDI" = "yes"; then
36441 cat >>confdefs.h <<\_ACEOF
36442#define wxUSE_MDI 1
36443_ACEOF
36444
36445
36446 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36447 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36448#define wxUSE_MDI_ARCHITECTURE 1
36449_ACEOF
36450
8a7b1113
VZ
36451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36452 fi
a848cd7e
SC
36453fi
36454
36455if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36456 cat >>confdefs.h <<\_ACEOF
36457#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36458_ACEOF
36459
36460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36461 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36463 fi
36464fi
36465
36466if test "$wxUSE_HELP" = "yes"; then
36467 cat >>confdefs.h <<\_ACEOF
36468#define wxUSE_HELP 1
36469_ACEOF
36470
36471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36472
36473 if test "$wxUSE_MSW" = 1; then
36474 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36475 cat >>confdefs.h <<\_ACEOF
36476#define wxUSE_MS_HTML_HELP 1
36477_ACEOF
36478
36479 fi
36480 fi
36481
36482 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36483 if test "$wxUSE_HTML" = "yes"; then
36484 cat >>confdefs.h <<\_ACEOF
36485#define wxUSE_WXHTML_HELP 1
36486_ACEOF
36487
36488 else
36489 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36490echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36491 wxUSE_WXHTML_HELP=no
36492 fi
36493 fi
36494fi
36495
36496if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36497 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36498 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36499echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36500 else
36501 cat >>confdefs.h <<\_ACEOF
36502#define wxUSE_PRINTING_ARCHITECTURE 1
36503_ACEOF
36504
36505 fi
36506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36507fi
36508
36509if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36510 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36511echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36512 { (exit 1); exit 1; }; }
36513fi
36514
36515
36516if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36517 -o "$wxUSE_CLIPBOARD" = "yes" \
36518 -o "$wxUSE_OLE" = "yes" \
36519 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36520
36521for ac_header in ole2.h
36522do
36523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36524if eval "test \"\${$as_ac_Header+set}\" = set"; then
36525 echo "$as_me:$LINENO: checking for $ac_header" >&5
36526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36527if eval "test \"\${$as_ac_Header+set}\" = set"; then
36528 echo $ECHO_N "(cached) $ECHO_C" >&6
36529fi
36530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36532else
36533 # Is the header compilable?
36534echo "$as_me:$LINENO: checking $ac_header usability" >&5
36535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36536cat >conftest.$ac_ext <<_ACEOF
36537/* confdefs.h. */
36538_ACEOF
36539cat confdefs.h >>conftest.$ac_ext
36540cat >>conftest.$ac_ext <<_ACEOF
36541/* end confdefs.h. */
36542$ac_includes_default
36543#include <$ac_header>
36544_ACEOF
36545rm -f conftest.$ac_objext
36546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36547 (eval $ac_compile) 2>conftest.er1
a848cd7e 36548 ac_status=$?
ac1cb8d3
VS
36549 grep -v '^ *+' conftest.er1 >conftest.err
36550 rm -f conftest.er1
36551 cat conftest.err >&5
a848cd7e
SC
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); } &&
5294a27e 36554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36556 (eval $ac_try) 2>&5
36557 ac_status=$?
36558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36559 (exit $ac_status); }; } &&
36560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36562 (eval $ac_try) 2>&5
36563 ac_status=$?
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); }; }; then
36566 ac_header_compiler=yes
36567else
36568 echo "$as_me: failed program was:" >&5
36569sed 's/^/| /' conftest.$ac_ext >&5
36570
36571ac_header_compiler=no
36572fi
ac1cb8d3 36573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36575echo "${ECHO_T}$ac_header_compiler" >&6
36576
36577# Is the header present?
36578echo "$as_me:$LINENO: checking $ac_header presence" >&5
36579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36580cat >conftest.$ac_ext <<_ACEOF
36581/* confdefs.h. */
36582_ACEOF
36583cat confdefs.h >>conftest.$ac_ext
36584cat >>conftest.$ac_ext <<_ACEOF
36585/* end confdefs.h. */
36586#include <$ac_header>
36587_ACEOF
36588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36590 ac_status=$?
36591 grep -v '^ *+' conftest.er1 >conftest.err
36592 rm -f conftest.er1
36593 cat conftest.err >&5
36594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 (exit $ac_status); } >/dev/null; then
36596 if test -s conftest.err; then
36597 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36599 else
36600 ac_cpp_err=
36601 fi
36602else
36603 ac_cpp_err=yes
36604fi
36605if test -z "$ac_cpp_err"; then
36606 ac_header_preproc=yes
36607else
36608 echo "$as_me: failed program was:" >&5
36609sed 's/^/| /' conftest.$ac_ext >&5
36610
36611 ac_header_preproc=no
36612fi
36613rm -f conftest.err conftest.$ac_ext
36614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36615echo "${ECHO_T}$ac_header_preproc" >&6
36616
36617# So? What about this header?
ac1cb8d3
VS
36618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36619 yes:no: )
a848cd7e
SC
36620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36624 ac_header_preproc=yes
a848cd7e 36625 ;;
ac1cb8d3 36626 no:yes:* )
a848cd7e
SC
36627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36639 (
36640 cat <<\_ASBOX
ac1cb8d3
VS
36641## ----------------------------------------- ##
36642## Report this to wx-dev@lists.wxwidgets.org ##
36643## ----------------------------------------- ##
a848cd7e
SC
36644_ASBOX
36645 ) |
36646 sed "s/^/$as_me: WARNING: /" >&2
36647 ;;
36648esac
36649echo "$as_me:$LINENO: checking for $ac_header" >&5
36650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36651if eval "test \"\${$as_ac_Header+set}\" = set"; then
36652 echo $ECHO_N "(cached) $ECHO_C" >&6
36653else
ac1cb8d3 36654 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36655fi
36656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36658
36659fi
36660if test `eval echo '${'$as_ac_Header'}'` = yes; then
36661 cat >>confdefs.h <<_ACEOF
36662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36663_ACEOF
36664
36665fi
36666
36667done
36668
36669
36670 if test "$ac_cv_header_ole2_h" = "yes" ; then
36671 if test "$GCC" = yes ; then
36672
36673
36674 ac_ext=cc
36675ac_cpp='$CXXCPP $CPPFLAGS'
36676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36679
36680
36681 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36682echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36683 cat >conftest.$ac_ext <<_ACEOF
36684/* confdefs.h. */
36685_ACEOF
36686cat confdefs.h >>conftest.$ac_ext
36687cat >>conftest.$ac_ext <<_ACEOF
36688/* end confdefs.h. */
36689#include <windows.h>
36690 #include <ole2.h>
36691int
36692main ()
36693{
36694
36695 ;
36696 return 0;
36697}
36698_ACEOF
36699rm -f conftest.$ac_objext
36700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36701 (eval $ac_compile) 2>conftest.er1
a848cd7e 36702 ac_status=$?
ac1cb8d3
VS
36703 grep -v '^ *+' conftest.er1 >conftest.err
36704 rm -f conftest.er1
36705 cat conftest.err >&5
a848cd7e
SC
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); } &&
5294a27e 36708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710 (eval $ac_try) 2>&5
36711 ac_status=$?
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); }; } &&
36714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36716 (eval $ac_try) 2>&5
36717 ac_status=$?
36718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 (exit $ac_status); }; }; then
36720 echo "$as_me:$LINENO: result: no" >&5
36721echo "${ECHO_T}no" >&6
36722else
36723 echo "$as_me: failed program was:" >&5
36724sed 's/^/| /' conftest.$ac_ext >&5
36725
36726echo "$as_me:$LINENO: result: yes" >&5
36727echo "${ECHO_T}yes" >&6
36728 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36729fi
ac1cb8d3 36730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36731 ac_ext=c
36732ac_cpp='$CPP $CPPFLAGS'
36733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36735ac_compiler_gnu=$ac_cv_c_compiler_gnu
36736
a848cd7e
SC
36737 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36738 if test "$wxUSE_OLE" = "yes" ; then
36739 cat >>confdefs.h <<\_ACEOF
36740#define wxUSE_OLE 1
36741_ACEOF
36742
36743 fi
36744 fi
36745
36746 if test "$wxUSE_DATAOBJ" = "yes" ; then
36747 cat >>confdefs.h <<\_ACEOF
36748#define wxUSE_DATAOBJ 1
36749_ACEOF
36750
36751 fi
36752 else
36753 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36754echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36755
36756 wxUSE_CLIPBOARD=no
36757 wxUSE_DRAG_AND_DROP=no
36758 wxUSE_DATAOBJ=no
36759 wxUSE_OLE=no
36760 fi
36761
36762 if test "$wxUSE_METAFILE" = "yes"; then
36763 cat >>confdefs.h <<\_ACEOF
36764#define wxUSE_METAFILE 1
36765_ACEOF
36766
36767
36768 cat >>confdefs.h <<\_ACEOF
36769#define wxUSE_ENH_METAFILE 1
36770_ACEOF
36771
36772 fi
36773fi
36774
36775if test "$wxUSE_IPC" = "yes"; then
36776 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36777 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36778echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36779 fi
36780
36781 cat >>confdefs.h <<\_ACEOF
36782#define wxUSE_IPC 1
36783_ACEOF
36784
36785fi
36786
36787if test "$wxUSE_CLIPBOARD" = "yes"; then
36788 if test "$wxUSE_MGL" = 1; then
36789 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36790echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36791 wxUSE_CLIPBOARD=no
36792 fi
36793
36794 if test "$wxUSE_CLIPBOARD" = "yes"; then
36795 cat >>confdefs.h <<\_ACEOF
36796#define wxUSE_CLIPBOARD 1
36797_ACEOF
36798
36799
36800 cat >>confdefs.h <<\_ACEOF
36801#define wxUSE_DATAOBJ 1
36802_ACEOF
36803
36804 fi
36805fi
36806
36807if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36808 if test "$wxUSE_GTK" = 1; then
36809 if test "$WXGTK12" != 1; then
36810 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36811echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36812 wxUSE_DRAG_AND_DROP=no
36813 fi
36814 fi
36815
36816 if test "$wxUSE_MOTIF" = 1; then
36817 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36818echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36819 wxUSE_DRAG_AND_DROP=no
36820 fi
36821
36822 if test "$wxUSE_X11" = 1; then
36823 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36824echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36825 wxUSE_DRAG_AND_DROP=no
36826 fi
36827
36828 if test "$wxUSE_MGL" = 1; then
36829 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36830echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36831 wxUSE_DRAG_AND_DROP=no
36832 fi
36833
36834 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36835 cat >>confdefs.h <<\_ACEOF
36836#define wxUSE_DRAG_AND_DROP 1
36837_ACEOF
36838
36839 fi
36840
36841fi
36842
36843if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36845fi
36846
36847if test "$wxUSE_SPLINES" = "yes" ; then
36848 cat >>confdefs.h <<\_ACEOF
36849#define wxUSE_SPLINES 1
36850_ACEOF
36851
36852fi
36853
36854
36855USES_CONTROLS=0
36856if test "$wxUSE_CONTROLS" = "yes"; then
36857 USES_CONTROLS=1
36858fi
36859
36860if test "$wxUSE_ACCEL" = "yes"; then
36861 cat >>confdefs.h <<\_ACEOF
36862#define wxUSE_ACCEL 1
36863_ACEOF
36864
36865 USES_CONTROLS=1
36866fi
36867
36868if test "$wxUSE_BUTTON" = "yes"; then
36869 cat >>confdefs.h <<\_ACEOF
36870#define wxUSE_BUTTON 1
36871_ACEOF
36872
36873 USES_CONTROLS=1
36874fi
36875
36876if test "$wxUSE_BMPBUTTON" = "yes"; then
36877 cat >>confdefs.h <<\_ACEOF
36878#define wxUSE_BMPBUTTON 1
36879_ACEOF
36880
36881 USES_CONTROLS=1
36882fi
36883
36884if test "$wxUSE_CALCTRL" = "yes"; then
36885 cat >>confdefs.h <<\_ACEOF
36886#define wxUSE_CALENDARCTRL 1
36887_ACEOF
36888
36889 USES_CONTROLS=1
36890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36891fi
36892
36893if test "$wxUSE_CARET" = "yes"; then
36894 cat >>confdefs.h <<\_ACEOF
36895#define wxUSE_CARET 1
36896_ACEOF
36897
36898 USES_CONTROLS=1
36899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36900fi
36901
36902if test "$wxUSE_COMBOBOX" = "yes"; then
36903 cat >>confdefs.h <<\_ACEOF
36904#define wxUSE_COMBOBOX 1
36905_ACEOF
36906
36907 USES_CONTROLS=1
36908fi
36909
36910if test "$wxUSE_CHOICE" = "yes"; then
36911 cat >>confdefs.h <<\_ACEOF
36912#define wxUSE_CHOICE 1
36913_ACEOF
36914
36915 USES_CONTROLS=1
36916fi
36917
92bbdbcd
WS
36918if test "$wxUSE_CHOICEBOOK" = "yes"; then
36919 cat >>confdefs.h <<\_ACEOF
36920#define wxUSE_CHOICEBOOK 1
36921_ACEOF
36922
36923 USES_CONTROLS=1
36924fi
36925
a848cd7e
SC
36926if test "$wxUSE_CHECKBOX" = "yes"; then
36927 cat >>confdefs.h <<\_ACEOF
36928#define wxUSE_CHECKBOX 1
36929_ACEOF
36930
36931 USES_CONTROLS=1
36932fi
36933
36934if test "$wxUSE_CHECKLST" = "yes"; then
36935 cat >>confdefs.h <<\_ACEOF
36936#define wxUSE_CHECKLISTBOX 1
36937_ACEOF
36938
36939 USES_CONTROLS=1
36940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36941fi
36942
36943if test "$wxUSE_DISPLAY" = "yes"; then
36944 cat >>confdefs.h <<\_ACEOF
36945#define wxUSE_DISPLAY 1
36946_ACEOF
36947
36948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36949fi
36950
36951if test "$wxUSE_GAUGE" = "yes"; then
36952 cat >>confdefs.h <<\_ACEOF
36953#define wxUSE_GAUGE 1
36954_ACEOF
36955
36956 USES_CONTROLS=1
36957fi
36958
36959if test "$wxUSE_GRID" = "yes"; then
36960 cat >>confdefs.h <<\_ACEOF
36961#define wxUSE_GRID 1
36962_ACEOF
36963
36964 USES_CONTROLS=1
36965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36966fi
36967
36968if test "$wxUSE_IMAGLIST" = "yes"; then
36969 cat >>confdefs.h <<\_ACEOF
36970#define wxUSE_IMAGLIST 1
36971_ACEOF
36972
36973fi
36974
36975if test "$wxUSE_LISTBOOK" = "yes"; then
36976 cat >>confdefs.h <<\_ACEOF
36977#define wxUSE_LISTBOOK 1
36978_ACEOF
36979
36980 USES_CONTROLS=1
36981fi
36982
36983if test "$wxUSE_LISTBOX" = "yes"; then
36984 cat >>confdefs.h <<\_ACEOF
36985#define wxUSE_LISTBOX 1
36986_ACEOF
36987
36988 USES_CONTROLS=1
36989fi
36990
36991if test "$wxUSE_LISTCTRL" = "yes"; then
36992 if test "$wxUSE_IMAGLIST" = "yes"; then
36993 cat >>confdefs.h <<\_ACEOF
36994#define wxUSE_LISTCTRL 1
36995_ACEOF
36996
36997 USES_CONTROLS=1
36998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36999 else
37000 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37001echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37002 fi
37003fi
37004
37005if test "$wxUSE_NOTEBOOK" = "yes"; then
37006 cat >>confdefs.h <<\_ACEOF
37007#define wxUSE_NOTEBOOK 1
37008_ACEOF
37009
37010 USES_CONTROLS=1
37011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37012fi
37013
37014
37015if test "$wxUSE_RADIOBOX" = "yes"; then
37016 cat >>confdefs.h <<\_ACEOF
37017#define wxUSE_RADIOBOX 1
37018_ACEOF
37019
37020 USES_CONTROLS=1
37021fi
37022
37023if test "$wxUSE_RADIOBTN" = "yes"; then
37024 cat >>confdefs.h <<\_ACEOF
37025#define wxUSE_RADIOBTN 1
37026_ACEOF
37027
37028 USES_CONTROLS=1
37029fi
37030
37031if test "$wxUSE_SASH" = "yes"; then
37032 cat >>confdefs.h <<\_ACEOF
37033#define wxUSE_SASH 1
37034_ACEOF
37035
37036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37037fi
37038
37039if test "$wxUSE_SCROLLBAR" = "yes"; then
37040 cat >>confdefs.h <<\_ACEOF
37041#define wxUSE_SCROLLBAR 1
37042_ACEOF
37043
37044 USES_CONTROLS=1
37045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37046fi
37047
37048if test "$wxUSE_SLIDER" = "yes"; then
37049 cat >>confdefs.h <<\_ACEOF
37050#define wxUSE_SLIDER 1
37051_ACEOF
37052
37053 USES_CONTROLS=1
37054fi
37055
37056if test "$wxUSE_SPINBTN" = "yes"; then
37057 cat >>confdefs.h <<\_ACEOF
37058#define wxUSE_SPINBTN 1
37059_ACEOF
37060
37061 USES_CONTROLS=1
37062fi
37063
37064if test "$wxUSE_SPINCTRL" = "yes"; then
37065 cat >>confdefs.h <<\_ACEOF
37066#define wxUSE_SPINCTRL 1
37067_ACEOF
37068
37069 USES_CONTROLS=1
37070fi
37071
37072if test "$wxUSE_SPLITTER" = "yes"; then
37073 cat >>confdefs.h <<\_ACEOF
37074#define wxUSE_SPLITTER 1
37075_ACEOF
37076
37077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37078fi
37079
37080if test "$wxUSE_STATBMP" = "yes"; then
37081 cat >>confdefs.h <<\_ACEOF
37082#define wxUSE_STATBMP 1
37083_ACEOF
37084
37085 USES_CONTROLS=1
37086fi
37087
37088if test "$wxUSE_STATBOX" = "yes"; then
37089 cat >>confdefs.h <<\_ACEOF
37090#define wxUSE_STATBOX 1
37091_ACEOF
37092
37093 USES_CONTROLS=1
37094fi
37095
37096if test "$wxUSE_STATTEXT" = "yes"; then
37097 cat >>confdefs.h <<\_ACEOF
37098#define wxUSE_STATTEXT 1
37099_ACEOF
37100
37101 USES_CONTROLS=1
37102fi
37103
37104if test "$wxUSE_STATLINE" = "yes"; then
37105 cat >>confdefs.h <<\_ACEOF
37106#define wxUSE_STATLINE 1
37107_ACEOF
37108
37109 USES_CONTROLS=1
37110fi
37111
37112if test "$wxUSE_STATUSBAR" = "yes"; then
37113 cat >>confdefs.h <<\_ACEOF
37114#define wxUSE_STATUSBAR 1
37115_ACEOF
37116
37117 USES_CONTROLS=1
37118
37119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37120fi
37121
37122if test "$wxUSE_TABDIALOG" = "yes"; then
37123 cat >>confdefs.h <<\_ACEOF
37124#define wxUSE_TAB_DIALOG 1
37125_ACEOF
37126
37127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37128fi
37129
37130if test "$wxUSE_TEXTCTRL" = "yes"; then
37131 cat >>confdefs.h <<\_ACEOF
37132#define wxUSE_TEXTCTRL 1
37133_ACEOF
37134
37135 USES_CONTROLS=1
37136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37137fi
37138
37139if test "$wxUSE_TOGGLEBTN" = "yes"; then
37140 if test "$wxUSE_COCOA" = 1 ; then
37141 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37142echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37143 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37144 else
37145 if test "$wxUSE_PM" = 1; then
37146 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37147echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37148 wxUSE_TOGGLEBTN=no
37149 fi
a848cd7e
SC
37150 fi
37151 if test "$wxUSE_UNIVERSAL" = "yes"; then
37152 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37153echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37154 wxUSE_TOGGLEBTN=no
37155 fi
37156
37157 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37158 cat >>confdefs.h <<\_ACEOF
37159#define wxUSE_TOGGLEBTN 1
37160_ACEOF
37161
37162 USES_CONTROLS=1
37163 fi
37164fi
37165
37166if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37167 cat >>confdefs.h <<\_ACEOF
37168#define wxUSE_TOOLBAR_SIMPLE 1
37169_ACEOF
37170
37171 wxUSE_TOOLBAR="yes"
37172 USES_CONTROLS=1
37173fi
37174
37175if test "$wxUSE_TOOLBAR" = "yes"; then
37176 cat >>confdefs.h <<\_ACEOF
37177#define wxUSE_TOOLBAR 1
37178_ACEOF
37179
37180 USES_CONTROLS=1
37181
37182 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37183 wxUSE_TOOLBAR_NATIVE="yes"
37184 fi
37185
37186 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37187 cat >>confdefs.h <<\_ACEOF
37188#define wxUSE_TOOLBAR_NATIVE 1
37189_ACEOF
37190
37191 USES_CONTROLS=1
37192 fi
37193
37194 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37195fi
37196
37197if test "$wxUSE_TOOLTIPS" = "yes"; then
37198 if test "$wxUSE_MOTIF" = 1; then
37199 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37200echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37201 else
37202 if test "$wxUSE_UNIVERSAL" = "yes"; then
37203 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37204echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37205 else
37206 cat >>confdefs.h <<\_ACEOF
37207#define wxUSE_TOOLTIPS 1
37208_ACEOF
37209
37210 fi
37211 fi
37212fi
37213
37214if test "$wxUSE_TREECTRL" = "yes"; then
37215 if test "$wxUSE_IMAGLIST" = "yes"; then
37216 cat >>confdefs.h <<\_ACEOF
37217#define wxUSE_TREECTRL 1
37218_ACEOF
37219
37220 USES_CONTROLS=1
37221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37222 else
37223 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37224echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37225 fi
37226fi
37227
37228if test "$wxUSE_POPUPWIN" = "yes"; then
37229 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37230 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37231echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37232 else
37233 if test "$wxUSE_PM" = 1; then
37234 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37235echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37236 else
37237 cat >>confdefs.h <<\_ACEOF
37238#define wxUSE_POPUPWIN 1
37239_ACEOF
37240
37241
37242 USES_CONTROLS=1
37243 fi
37244 fi
37245fi
37246
37247if test "$wxUSE_TIPWINDOW" = "yes"; then
37248 if test "$wxUSE_PM" = 1; then
37249 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37250echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37251 else
37252 cat >>confdefs.h <<\_ACEOF
37253#define wxUSE_TIPWINDOW 1
37254_ACEOF
37255
37256 fi
37257fi
37258
37259if test "$USES_CONTROLS" = 1; then
37260 cat >>confdefs.h <<\_ACEOF
37261#define wxUSE_CONTROLS 1
37262_ACEOF
37263
37264fi
37265
37266
37267if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37268 cat >>confdefs.h <<\_ACEOF
37269#define wxUSE_ACCESSIBILITY 1
37270_ACEOF
37271
37272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37273fi
37274
37275if test "$wxUSE_DRAGIMAGE" = "yes"; then
37276 cat >>confdefs.h <<\_ACEOF
37277#define wxUSE_DRAGIMAGE 1
37278_ACEOF
37279
37280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37281fi
37282
37283if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37284 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37285 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37286echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37287 else
37288 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37289#define wxUSE_EXCEPTIONS 1
37290_ACEOF
37291
07bea8f0
VS
37292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37293 fi
a848cd7e
SC
37294fi
37295
37296USE_HTML=0
37297if test "$wxUSE_HTML" = "yes"; then
37298 cat >>confdefs.h <<\_ACEOF
37299#define wxUSE_HTML 1
37300_ACEOF
37301
37302 USE_HTML=1
37303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37304 if test "$wxUSE_MAC" = 1; then
37305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37306 fi
a848cd7e 37307fi
646b6ec1 37308if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 37309 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
37310 old_CPPFLAGS="$CPPFLAGS"
37311 CPPFLAGS="$CPPFLAGS -x objective-c++"
37312 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37313echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37314if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37315 echo $ECHO_N "(cached) $ECHO_C" >&6
37316else
37317 cat >conftest.$ac_ext <<_ACEOF
37318/* confdefs.h. */
37319_ACEOF
37320cat confdefs.h >>conftest.$ac_ext
37321cat >>conftest.$ac_ext <<_ACEOF
37322/* end confdefs.h. */
37323#include <Carbon/Carbon.h>
37324
37325#include <WebKit/HIWebView.h>
37326_ACEOF
37327rm -f conftest.$ac_objext
37328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37329 (eval $ac_compile) 2>conftest.er1
37330 ac_status=$?
37331 grep -v '^ *+' conftest.er1 >conftest.err
37332 rm -f conftest.er1
37333 cat conftest.err >&5
37334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335 (exit $ac_status); } &&
5294a27e 37336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
37337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37338 (eval $ac_try) 2>&5
37339 ac_status=$?
37340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341 (exit $ac_status); }; } &&
37342 { ac_try='test -s conftest.$ac_objext'
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37345 ac_status=$?
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; }; then
37348 ac_cv_header_WebKit_HIWebView_h=yes
37349else
37350 echo "$as_me: failed program was:" >&5
37351sed 's/^/| /' conftest.$ac_ext >&5
37352
37353ac_cv_header_WebKit_HIWebView_h=no
37354fi
37355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37356fi
37357echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37358echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37359if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37360
37361 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37362#define wxUSE_WEBKIT 1
37363_ACEOF
37364
07bea8f0
VS
37365 WEBKIT_LINK="-framework WebKit"
37366
37367else
37368
37369 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37370echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37371 wxUSE_WEBKIT=no
37372
646b6ec1
VS
37373fi
37374
07bea8f0
VS
37375
37376 CPPFLAGS="$old_CPPFLAGS"
37377 elif test "$wxUSE_COCOA" = 1; then
37378 cat >>confdefs.h <<\_ACEOF
37379#define wxUSE_WEBKIT 1
37380_ACEOF
37381
37382 else
37383 wxUSE_WEBKIT=no
37384 fi
37385fi
37386
9a8f0513
VS
37387USE_XRC=0
37388if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37389 if test "$wxUSE_XML" != "yes"; then
37390 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37391echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37392 wxUSE_XRC=no
37393 else
37394 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37395#define wxUSE_XRC 1
37396_ACEOF
37397
d2ebf0b7
VS
37398 USE_XRC=1
37399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37400 fi
9a8f0513 37401fi
07bea8f0 37402
a848cd7e
SC
37403if test "$wxUSE_MENUS" = "yes"; then
37404 cat >>confdefs.h <<\_ACEOF
37405#define wxUSE_MENUS 1
37406_ACEOF
37407
37408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37409fi
37410
37411if test "$wxUSE_METAFILE" = "yes"; then
37412 cat >>confdefs.h <<\_ACEOF
37413#define wxUSE_METAFILE 1
37414_ACEOF
37415
37416fi
37417
37418if test "$wxUSE_MIMETYPE" = "yes"; then
37419 cat >>confdefs.h <<\_ACEOF
37420#define wxUSE_MIMETYPE 1
37421_ACEOF
37422
37423fi
37424
37425if test "$wxUSE_MINIFRAME" = "yes"; then
37426 cat >>confdefs.h <<\_ACEOF
37427#define wxUSE_MINIFRAME 1
37428_ACEOF
37429
37430 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37431fi
37432
37433if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37434 cat >>confdefs.h <<\_ACEOF
37435#define wxUSE_SYSTEM_OPTIONS 1
37436_ACEOF
37437
37438 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37439 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37441 fi
37442fi
37443
37444
37445if test "$wxUSE_VALIDATORS" = "yes"; then
37446 cat >>confdefs.h <<\_ACEOF
37447#define wxUSE_VALIDATORS 1
37448_ACEOF
37449
37450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37451fi
37452
37453if test "$wxUSE_PALETTE" = "yes" ; then
37454 cat >>confdefs.h <<\_ACEOF
37455#define wxUSE_PALETTE 1
37456_ACEOF
37457
37458fi
37459
37460if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37461 LIBS=" -lunicows $LIBS"
37462fi
37463
37464
37465if test "$wxUSE_IMAGE" = "yes" ; then
37466 cat >>confdefs.h <<\_ACEOF
37467#define wxUSE_IMAGE 1
37468_ACEOF
37469
37470
37471 if test "$wxUSE_GIF" = "yes" ; then
37472 cat >>confdefs.h <<\_ACEOF
37473#define wxUSE_GIF 1
37474_ACEOF
37475
37476 fi
37477
37478 if test "$wxUSE_PCX" = "yes" ; then
37479 cat >>confdefs.h <<\_ACEOF
37480#define wxUSE_PCX 1
37481_ACEOF
37482
37483 fi
37484
37485 if test "$wxUSE_IFF" = "yes" ; then
37486 cat >>confdefs.h <<\_ACEOF
37487#define wxUSE_IFF 1
37488_ACEOF
37489
37490 fi
37491
37492 if test "$wxUSE_PNM" = "yes" ; then
37493 cat >>confdefs.h <<\_ACEOF
37494#define wxUSE_PNM 1
37495_ACEOF
37496
37497 fi
37498
37499 if test "$wxUSE_XPM" = "yes" ; then
37500 cat >>confdefs.h <<\_ACEOF
37501#define wxUSE_XPM 1
37502_ACEOF
37503
37504 fi
37505
37506 if test "$wxUSE_ICO_CUR" = "yes" ; then
37507 cat >>confdefs.h <<\_ACEOF
37508#define wxUSE_ICO_CUR 1
37509_ACEOF
37510
37511 fi
37512fi
37513
37514
37515if test "$wxUSE_CHOICEDLG" = "yes"; then
37516 cat >>confdefs.h <<\_ACEOF
37517#define wxUSE_CHOICEDLG 1
37518_ACEOF
37519
37520fi
37521
37522if test "$wxUSE_COLOURDLG" = "yes"; then
37523 cat >>confdefs.h <<\_ACEOF
37524#define wxUSE_COLOURDLG 1
37525_ACEOF
37526
37527fi
37528
37529if test "$wxUSE_FILEDLG" = "yes"; then
37530 cat >>confdefs.h <<\_ACEOF
37531#define wxUSE_FILEDLG 1
37532_ACEOF
37533
37534fi
37535
37536if test "$wxUSE_FINDREPLDLG" = "yes"; then
37537 cat >>confdefs.h <<\_ACEOF
37538#define wxUSE_FINDREPLDLG 1
37539_ACEOF
37540
37541fi
37542
37543if test "$wxUSE_FONTDLG" = "yes"; then
37544 cat >>confdefs.h <<\_ACEOF
37545#define wxUSE_FONTDLG 1
37546_ACEOF
37547
37548fi
37549
37550if test "$wxUSE_DIRDLG" = "yes"; then
37551 if test "$wxUSE_TREECTRL" != "yes"; then
37552 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37553echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37554 else
37555 cat >>confdefs.h <<\_ACEOF
37556#define wxUSE_DIRDLG 1
37557_ACEOF
37558
37559 fi
37560fi
37561
37562if test "$wxUSE_MSGDLG" = "yes"; then
37563 cat >>confdefs.h <<\_ACEOF
37564#define wxUSE_MSGDLG 1
37565_ACEOF
37566
37567fi
37568
37569if test "$wxUSE_NUMBERDLG" = "yes"; then
37570 cat >>confdefs.h <<\_ACEOF
37571#define wxUSE_NUMBERDLG 1
37572_ACEOF
37573
37574fi
37575
37576if test "$wxUSE_PROGRESSDLG" = "yes"; then
37577 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37578 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37579echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37580 else
37581 cat >>confdefs.h <<\_ACEOF
37582#define wxUSE_PROGRESSDLG 1
37583_ACEOF
37584
37585 fi
37586fi
37587
37588if test "$wxUSE_SPLASH" = "yes"; then
37589 cat >>confdefs.h <<\_ACEOF
37590#define wxUSE_SPLASH 1
37591_ACEOF
37592
2057db16 37593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37594fi
37595
37596if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37597 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37598 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37599echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37600 else
37601 cat >>confdefs.h <<\_ACEOF
37602#define wxUSE_STARTUP_TIPS 1
37603_ACEOF
37604
37605 fi
37606fi
37607
37608if test "$wxUSE_TEXTDLG" = "yes"; then
37609 cat >>confdefs.h <<\_ACEOF
37610#define wxUSE_TEXTDLG 1
37611_ACEOF
37612
37613fi
37614
37615if test "$wxUSE_WIZARDDLG" = "yes"; then
37616 cat >>confdefs.h <<\_ACEOF
37617#define wxUSE_WIZARDDLG 1
37618_ACEOF
37619
37620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37621fi
37622
37623
37624if test "$cross_compiling" = "yes"; then
37625 OSINFO="\"$host\""
37626else
37627 OSINFO=`uname -s -r -m`
37628 OSINFO="\"$OSINFO\""
37629fi
37630
37631cat >>confdefs.h <<_ACEOF
37632#define WXWIN_OS_DESCRIPTION $OSINFO
37633_ACEOF
37634
37635
37636
37637if test "x$prefix" != "xNONE"; then
37638 wxPREFIX=$prefix
37639else
37640 wxPREFIX=$ac_default_prefix
37641fi
37642
37643cat >>confdefs.h <<_ACEOF
37644#define wxINSTALL_PREFIX "$wxPREFIX"
37645_ACEOF
37646
37647
a848cd7e
SC
37648
37649
37650CORE_BASE_LIBS="net base"
37651CORE_GUI_LIBS="adv core"
37652
37653if test "$wxUSE_XML" = "yes" ; then
37654 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37655fi
37656if test "$wxUSE_ODBC" != "no" ; then
37657 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37658 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37659fi
37660if test "$wxUSE_HTML" = "yes" ; then
37661 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37662fi
9a8f0513
VS
37663if test "$wxUSE_XRC" = "yes" ; then
37664 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37665fi
a848cd7e
SC
37666
37667if test "$wxUSE_GUI" != "yes"; then
37668 CORE_GUI_LIBS=""
37669fi
37670
37671
37672
37673
37674
37675
37676
37677
37678if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 37679 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
37680 if test "$USE_DARWIN" = 1; then
37681 LDFLAGS="$LDFLAGS -framework QuickTime"
37682 else
37683 LDFLAGS="$LDFLAGS -lQuickTimeLib"
37684 fi
07bea8f0 37685 fi
5dcf30a0 37686 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
37687 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
37688 else
37689 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 37690 fi
a848cd7e
SC
37691fi
37692if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37693 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37694fi
37695
37696
37697LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37698
37699have_cos=0
37700have_floor=0
37701
37702for ac_func in cos
37703do
37704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37705echo "$as_me:$LINENO: checking for $ac_func" >&5
37706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37707if eval "test \"\${$as_ac_var+set}\" = set"; then
37708 echo $ECHO_N "(cached) $ECHO_C" >&6
37709else
37710 cat >conftest.$ac_ext <<_ACEOF
37711/* confdefs.h. */
37712_ACEOF
37713cat confdefs.h >>conftest.$ac_ext
37714cat >>conftest.$ac_ext <<_ACEOF
37715/* end confdefs.h. */
ac1cb8d3
VS
37716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37718#define $ac_func innocuous_$ac_func
37719
a848cd7e
SC
37720/* System header to define __stub macros and hopefully few prototypes,
37721 which can conflict with char $ac_func (); below.
37722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37723 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37724
a848cd7e
SC
37725#ifdef __STDC__
37726# include <limits.h>
37727#else
37728# include <assert.h>
37729#endif
ac1cb8d3
VS
37730
37731#undef $ac_func
37732
a848cd7e
SC
37733/* Override any gcc2 internal prototype to avoid an error. */
37734#ifdef __cplusplus
37735extern "C"
37736{
37737#endif
37738/* We use char because int might match the return type of a gcc2
37739 builtin and then its argument prototype would still apply. */
37740char $ac_func ();
37741/* The GNU C library defines this for functions which it implements
37742 to always fail with ENOSYS. Some functions are actually named
37743 something starting with __ and the normal name is an alias. */
37744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37745choke me
37746#else
37747char (*f) () = $ac_func;
37748#endif
37749#ifdef __cplusplus
37750}
37751#endif
37752
37753int
37754main ()
37755{
37756return f != $ac_func;
37757 ;
37758 return 0;
37759}
37760_ACEOF
37761rm -f conftest.$ac_objext conftest$ac_exeext
37762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37763 (eval $ac_link) 2>conftest.er1
a848cd7e 37764 ac_status=$?
ac1cb8d3
VS
37765 grep -v '^ *+' conftest.er1 >conftest.err
37766 rm -f conftest.er1
37767 cat conftest.err >&5
a848cd7e
SC
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); } &&
5294a27e 37770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37772 (eval $ac_try) 2>&5
37773 ac_status=$?
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); }; } &&
37776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37778 (eval $ac_try) 2>&5
37779 ac_status=$?
37780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781 (exit $ac_status); }; }; then
37782 eval "$as_ac_var=yes"
37783else
37784 echo "$as_me: failed program was:" >&5
37785sed 's/^/| /' conftest.$ac_ext >&5
37786
37787eval "$as_ac_var=no"
37788fi
ac1cb8d3
VS
37789rm -f conftest.err conftest.$ac_objext \
37790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37791fi
37792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37794if test `eval echo '${'$as_ac_var'}'` = yes; then
37795 cat >>confdefs.h <<_ACEOF
37796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37797_ACEOF
37798 have_cos=1
37799fi
37800done
37801
37802
37803for ac_func in floor
37804do
37805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37806echo "$as_me:$LINENO: checking for $ac_func" >&5
37807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37808if eval "test \"\${$as_ac_var+set}\" = set"; then
37809 echo $ECHO_N "(cached) $ECHO_C" >&6
37810else
37811 cat >conftest.$ac_ext <<_ACEOF
37812/* confdefs.h. */
37813_ACEOF
37814cat confdefs.h >>conftest.$ac_ext
37815cat >>conftest.$ac_ext <<_ACEOF
37816/* end confdefs.h. */
ac1cb8d3
VS
37817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37819#define $ac_func innocuous_$ac_func
37820
a848cd7e
SC
37821/* System header to define __stub macros and hopefully few prototypes,
37822 which can conflict with char $ac_func (); below.
37823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37824 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37825
a848cd7e
SC
37826#ifdef __STDC__
37827# include <limits.h>
37828#else
37829# include <assert.h>
37830#endif
ac1cb8d3
VS
37831
37832#undef $ac_func
37833
a848cd7e
SC
37834/* Override any gcc2 internal prototype to avoid an error. */
37835#ifdef __cplusplus
37836extern "C"
37837{
37838#endif
37839/* We use char because int might match the return type of a gcc2
37840 builtin and then its argument prototype would still apply. */
37841char $ac_func ();
37842/* The GNU C library defines this for functions which it implements
37843 to always fail with ENOSYS. Some functions are actually named
37844 something starting with __ and the normal name is an alias. */
37845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37846choke me
37847#else
37848char (*f) () = $ac_func;
37849#endif
37850#ifdef __cplusplus
37851}
37852#endif
37853
37854int
37855main ()
37856{
37857return f != $ac_func;
37858 ;
37859 return 0;
37860}
37861_ACEOF
37862rm -f conftest.$ac_objext conftest$ac_exeext
37863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37864 (eval $ac_link) 2>conftest.er1
a848cd7e 37865 ac_status=$?
ac1cb8d3
VS
37866 grep -v '^ *+' conftest.er1 >conftest.err
37867 rm -f conftest.er1
37868 cat conftest.err >&5
a848cd7e
SC
37869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870 (exit $ac_status); } &&
5294a27e 37871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37873 (eval $ac_try) 2>&5
37874 ac_status=$?
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); }; } &&
37877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37879 (eval $ac_try) 2>&5
37880 ac_status=$?
37881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); }; }; then
37883 eval "$as_ac_var=yes"
37884else
37885 echo "$as_me: failed program was:" >&5
37886sed 's/^/| /' conftest.$ac_ext >&5
37887
37888eval "$as_ac_var=no"
37889fi
ac1cb8d3
VS
37890rm -f conftest.err conftest.$ac_objext \
37891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37892fi
37893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37895if test `eval echo '${'$as_ac_var'}'` = yes; then
37896 cat >>confdefs.h <<_ACEOF
37897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37898_ACEOF
37899 have_floor=1
37900fi
37901done
37902
37903echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37904echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37905if test "$have_cos" = 1 -a "$have_floor" = 1; then
37906 echo "$as_me:$LINENO: result: yes" >&5
37907echo "${ECHO_T}yes" >&6
37908else
37909 echo "$as_me:$LINENO: result: no" >&5
37910echo "${ECHO_T}no" >&6
37911 LIBS="$LIBS -lm"
37912 # use different functions to avoid configure caching
37913 have_sin=0
37914 have_ceil=0
37915
37916for ac_func in sin
37917do
37918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37919echo "$as_me:$LINENO: checking for $ac_func" >&5
37920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37921if eval "test \"\${$as_ac_var+set}\" = set"; then
37922 echo $ECHO_N "(cached) $ECHO_C" >&6
37923else
37924 cat >conftest.$ac_ext <<_ACEOF
37925/* confdefs.h. */
37926_ACEOF
37927cat confdefs.h >>conftest.$ac_ext
37928cat >>conftest.$ac_ext <<_ACEOF
37929/* end confdefs.h. */
ac1cb8d3
VS
37930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37932#define $ac_func innocuous_$ac_func
37933
a848cd7e
SC
37934/* System header to define __stub macros and hopefully few prototypes,
37935 which can conflict with char $ac_func (); below.
37936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37937 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37938
a848cd7e
SC
37939#ifdef __STDC__
37940# include <limits.h>
37941#else
37942# include <assert.h>
37943#endif
ac1cb8d3
VS
37944
37945#undef $ac_func
37946
a848cd7e
SC
37947/* Override any gcc2 internal prototype to avoid an error. */
37948#ifdef __cplusplus
37949extern "C"
37950{
37951#endif
37952/* We use char because int might match the return type of a gcc2
37953 builtin and then its argument prototype would still apply. */
37954char $ac_func ();
37955/* The GNU C library defines this for functions which it implements
37956 to always fail with ENOSYS. Some functions are actually named
37957 something starting with __ and the normal name is an alias. */
37958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37959choke me
37960#else
37961char (*f) () = $ac_func;
37962#endif
37963#ifdef __cplusplus
37964}
37965#endif
37966
37967int
37968main ()
37969{
37970return f != $ac_func;
37971 ;
37972 return 0;
37973}
37974_ACEOF
37975rm -f conftest.$ac_objext conftest$ac_exeext
37976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37977 (eval $ac_link) 2>conftest.er1
a848cd7e 37978 ac_status=$?
ac1cb8d3
VS
37979 grep -v '^ *+' conftest.er1 >conftest.err
37980 rm -f conftest.er1
37981 cat conftest.err >&5
a848cd7e
SC
37982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983 (exit $ac_status); } &&
5294a27e 37984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37986 (eval $ac_try) 2>&5
37987 ac_status=$?
37988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989 (exit $ac_status); }; } &&
37990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37992 (eval $ac_try) 2>&5
37993 ac_status=$?
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); }; }; then
37996 eval "$as_ac_var=yes"
37997else
37998 echo "$as_me: failed program was:" >&5
37999sed 's/^/| /' conftest.$ac_ext >&5
38000
38001eval "$as_ac_var=no"
38002fi
ac1cb8d3
VS
38003rm -f conftest.err conftest.$ac_objext \
38004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38005fi
38006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38007echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38008if test `eval echo '${'$as_ac_var'}'` = yes; then
38009 cat >>confdefs.h <<_ACEOF
38010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38011_ACEOF
38012 have_sin=1
38013fi
38014done
38015
38016
38017for ac_func in ceil
38018do
38019as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38020echo "$as_me:$LINENO: checking for $ac_func" >&5
38021echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38022if eval "test \"\${$as_ac_var+set}\" = set"; then
38023 echo $ECHO_N "(cached) $ECHO_C" >&6
38024else
38025 cat >conftest.$ac_ext <<_ACEOF
38026/* confdefs.h. */
38027_ACEOF
38028cat confdefs.h >>conftest.$ac_ext
38029cat >>conftest.$ac_ext <<_ACEOF
38030/* end confdefs.h. */
ac1cb8d3
VS
38031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38033#define $ac_func innocuous_$ac_func
38034
a848cd7e
SC
38035/* System header to define __stub macros and hopefully few prototypes,
38036 which can conflict with char $ac_func (); below.
38037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38038 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38039
a848cd7e
SC
38040#ifdef __STDC__
38041# include <limits.h>
38042#else
38043# include <assert.h>
38044#endif
ac1cb8d3
VS
38045
38046#undef $ac_func
38047
a848cd7e
SC
38048/* Override any gcc2 internal prototype to avoid an error. */
38049#ifdef __cplusplus
38050extern "C"
38051{
38052#endif
38053/* We use char because int might match the return type of a gcc2
38054 builtin and then its argument prototype would still apply. */
38055char $ac_func ();
38056/* The GNU C library defines this for functions which it implements
38057 to always fail with ENOSYS. Some functions are actually named
38058 something starting with __ and the normal name is an alias. */
38059#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38060choke me
38061#else
38062char (*f) () = $ac_func;
38063#endif
38064#ifdef __cplusplus
38065}
38066#endif
38067
38068int
38069main ()
38070{
38071return f != $ac_func;
38072 ;
38073 return 0;
38074}
38075_ACEOF
38076rm -f conftest.$ac_objext conftest$ac_exeext
38077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38078 (eval $ac_link) 2>conftest.er1
a848cd7e 38079 ac_status=$?
ac1cb8d3
VS
38080 grep -v '^ *+' conftest.er1 >conftest.err
38081 rm -f conftest.er1
38082 cat conftest.err >&5
a848cd7e
SC
38083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084 (exit $ac_status); } &&
5294a27e 38085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38087 (eval $ac_try) 2>&5
38088 ac_status=$?
38089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38090 (exit $ac_status); }; } &&
38091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38093 (eval $ac_try) 2>&5
38094 ac_status=$?
38095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38096 (exit $ac_status); }; }; then
38097 eval "$as_ac_var=yes"
38098else
38099 echo "$as_me: failed program was:" >&5
38100sed 's/^/| /' conftest.$ac_ext >&5
38101
38102eval "$as_ac_var=no"
38103fi
ac1cb8d3
VS
38104rm -f conftest.err conftest.$ac_objext \
38105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38106fi
38107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38109if test `eval echo '${'$as_ac_var'}'` = yes; then
38110 cat >>confdefs.h <<_ACEOF
38111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38112_ACEOF
38113 have_ceil=1
38114fi
38115done
38116
38117 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38118echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38119 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38120 echo "$as_me:$LINENO: result: yes" >&5
38121echo "${ECHO_T}yes" >&6
38122 else
38123 echo "$as_me:$LINENO: result: no" >&5
38124echo "${ECHO_T}no" >&6
38125 # not sure we should warn the user, crash, etc.
38126 fi
38127fi
38128
38129if test "$wxUSE_GUI" = "yes"; then
38130
38131
38132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38133 drawing dynamic erase event exec font image \
38134 minimal propsize rotate shaped widgets render"
38135
38136 if test "$wxUSE_MONOLITHIC" != "yes"; then
38137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38138 fi
38139else
38140 SAMPLES_SUBDIRS="console"
38141fi
38142
38143
ceec2216 38144INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38145-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38146
38147if test "$GXX" = yes ; then
5294a27e
VZ
38148 CWARNINGS="-Wall"
38149 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
38150 fi
38151
38152EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38153
0c3c69fc 38154CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 38155CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 38156CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
38157
38158
0c3c69fc 38159LIBS=`echo $LIBS`
a848cd7e
SC
38160EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38161EXTRALIBS_XML="$EXPAT_LINK"
38162EXTRALIBS_HTML="$MSPACK_LINK"
38163EXTRALIBS_ODBC="$ODBC_LINK"
38164if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38165 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38166fi
38167if test "$wxUSE_OPENGL" = "yes"; then
38168 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38169fi
38170
38171LDFLAGS="$LDFLAGS $PROFILE"
38172
38173if test "$wxUSE_GTK" = 1; then
38174 WXCONFIG_INCLUDE=
38175else
38176 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38177fi
38178
38179WXCONFIG_EXTRALIBS="$LIBS"
38180
38181if test "$wxUSE_REGEX" = "builtin" ; then
38182 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38183fi
38184if test "$wxUSE_EXPAT" = "builtin" ; then
38185 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38186fi
38187if test "$wxUSE_ODBC" = "builtin" ; then
38188 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38189fi
38190if test "$wxUSE_LIBTIFF" = "builtin" ; then
38191 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38192fi
38193if test "$wxUSE_LIBJPEG" = "builtin" ; then
38194 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38195fi
38196if test "$wxUSE_LIBPNG" = "builtin" ; then
38197 wxconfig_3rdparty="$wxconfig_3rdparty png"
38198fi
38199if test "$wxUSE_ZLIB" = "builtin" ; then
38200 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38201fi
38202if test "$wxUSE_ODBC" = "builtin" ; then
38203 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38204fi
38205
38206for i in $wxconfig_3rdparty ; do
ceec2216 38207 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38208done
38209
38210
38211if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38212 WXUNIV=1
38213else
38214 WXUNIV=0
38215fi
38216
38217
38218
38219
38220
38221
38222
38223
38224
38225if test $wxUSE_MONOLITHIC = "yes" ; then
38226 MONOLITHIC=1
38227else
38228 MONOLITHIC=0
38229fi
38230
38231if test $wxUSE_PLUGINS = "yes" ; then
38232 USE_PLUGINS=1
38233else
38234 USE_PLUGINS=0
38235fi
38236
38237if test $wxUSE_ODBC != "no" ; then
38238 USE_ODBC=1
38239else
38240 USE_ODBC=0
38241fi
38242
38243if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38244 OFFICIAL_BUILD=1
38245else
38246 OFFICIAL_BUILD=0
38247fi
38248
38249
38250
38251
38252
38253
38254
38255
38256
38257
38258
38259
38260
38261
38262
38263
38264
38265
38266
ceec2216 38267
d1c38808 38268
a848cd7e
SC
38269
38270
38271TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38272
38273
38274
38275
38276
38277
38278
38279
4d4ff94c
VZ
38280case "$TOOLKIT" in
38281 GTK)
38282 TOOLKIT_USER="GTK+"
38283 if test "$WXGTK20" = 1; then
38284 TOOLKIT_USER="$TOOLKIT_USER 2"
38285 fi
9a8f0513 38286 ;;
4d4ff94c
VZ
38287
38288 *)
38289 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38290 ;;
4d4ff94c 38291esac
a848cd7e 38292
9a8f0513 38293
1e9e8aba
DE
38294
38295
a848cd7e
SC
38296 if test "x$BAKEFILE_HOST" = "x"; then
38297 BAKEFILE_HOST="${host}"
38298 fi
38299
38300 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38301
38302 if test -n "$ac_tool_prefix"; then
38303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38305echo "$as_me:$LINENO: checking for $ac_word" >&5
38306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38307if test "${ac_cv_prog_RANLIB+set}" = set; then
38308 echo $ECHO_N "(cached) $ECHO_C" >&6
38309else
38310 if test -n "$RANLIB"; then
38311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38312else
38313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38314for as_dir in $PATH
38315do
38316 IFS=$as_save_IFS
38317 test -z "$as_dir" && as_dir=.
38318 for ac_exec_ext in '' $ac_executable_extensions; do
38319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38322 break 2
38323 fi
38324done
38325done
38326
38327fi
38328fi
38329RANLIB=$ac_cv_prog_RANLIB
38330if test -n "$RANLIB"; then
38331 echo "$as_me:$LINENO: result: $RANLIB" >&5
38332echo "${ECHO_T}$RANLIB" >&6
38333else
38334 echo "$as_me:$LINENO: result: no" >&5
38335echo "${ECHO_T}no" >&6
38336fi
38337
38338fi
38339if test -z "$ac_cv_prog_RANLIB"; then
38340 ac_ct_RANLIB=$RANLIB
38341 # Extract the first word of "ranlib", so it can be a program name with args.
38342set dummy ranlib; ac_word=$2
38343echo "$as_me:$LINENO: checking for $ac_word" >&5
38344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38345if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38346 echo $ECHO_N "(cached) $ECHO_C" >&6
38347else
38348 if test -n "$ac_ct_RANLIB"; then
38349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38350else
38351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38352for as_dir in $PATH
38353do
38354 IFS=$as_save_IFS
38355 test -z "$as_dir" && as_dir=.
38356 for ac_exec_ext in '' $ac_executable_extensions; do
38357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38358 ac_cv_prog_ac_ct_RANLIB="ranlib"
38359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38360 break 2
38361 fi
38362done
38363done
38364
38365 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38366fi
38367fi
38368ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38369if test -n "$ac_ct_RANLIB"; then
38370 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38371echo "${ECHO_T}$ac_ct_RANLIB" >&6
38372else
38373 echo "$as_me:$LINENO: result: no" >&5
38374echo "${ECHO_T}no" >&6
38375fi
38376
38377 RANLIB=$ac_ct_RANLIB
38378else
38379 RANLIB="$ac_cv_prog_RANLIB"
38380fi
38381
38382 # Find a good install program. We prefer a C program (faster),
38383# so one script is as good as another. But avoid the broken or
38384# incompatible versions:
38385# SysV /etc/install, /usr/sbin/install
38386# SunOS /usr/etc/install
38387# IRIX /sbin/install
38388# AIX /bin/install
38389# AmigaOS /C/install, which installs bootblocks on floppy discs
38390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38393# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38394# ./install, which can be erroneously created by make from ./install.sh.
38395echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38396echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38397if test -z "$INSTALL"; then
38398if test "${ac_cv_path_install+set}" = set; then
38399 echo $ECHO_N "(cached) $ECHO_C" >&6
38400else
38401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38402for as_dir in $PATH
38403do
38404 IFS=$as_save_IFS
38405 test -z "$as_dir" && as_dir=.
38406 # Account for people who put trailing slashes in PATH elements.
38407case $as_dir/ in
38408 ./ | .// | /cC/* | \
38409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38411 /usr/ucb/* ) ;;
38412 *)
38413 # OSF1 and SCO ODT 3.0 have their own names for install.
38414 # Don't use installbsd from OSF since it installs stuff as root
38415 # by default.
38416 for ac_prog in ginstall scoinst install; do
38417 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38418 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38419 if test $ac_prog = install &&
38420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38421 # AIX install. It has an incompatible calling convention.
38422 :
38423 elif test $ac_prog = install &&
38424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38425 # program-specific install script used by HP pwplus--don't use.
38426 :
38427 else
38428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38429 break 3
38430 fi
38431 fi
a848cd7e
SC
38432 done
38433 done
38434 ;;
38435esac
38436done
38437
38438
38439fi
38440 if test "${ac_cv_path_install+set}" = set; then
38441 INSTALL=$ac_cv_path_install
38442 else
38443 # As a last resort, use the slow shell script. We don't cache a
38444 # path for INSTALL within a source directory, because that will
38445 # break other packages using the cache if that directory is
38446 # removed, or if the path is relative.
38447 INSTALL=$ac_install_sh
38448 fi
38449fi
38450echo "$as_me:$LINENO: result: $INSTALL" >&5
38451echo "${ECHO_T}$INSTALL" >&6
38452
38453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38454# It thinks the first close brace ends the variable substitution.
38455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38456
38457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38458
38459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38460
38461 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38462echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38463LN_S=$as_ln_s
38464if test "$LN_S" = "ln -s"; then
38465 echo "$as_me:$LINENO: result: yes" >&5
38466echo "${ECHO_T}yes" >&6
38467else
38468 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38469echo "${ECHO_T}no, using $LN_S" >&6
38470fi
38471
38472
38473 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38474echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38475set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38476if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38477 echo $ECHO_N "(cached) $ECHO_C" >&6
38478else
38479 cat >conftest.make <<\_ACEOF
38480all:
38481 @echo 'ac_maketemp="$(MAKE)"'
38482_ACEOF
38483# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38484eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38485if test -n "$ac_maketemp"; then
38486 eval ac_cv_prog_make_${ac_make}_set=yes
38487else
38488 eval ac_cv_prog_make_${ac_make}_set=no
38489fi
38490rm -f conftest.make
38491fi
38492if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38493 echo "$as_me:$LINENO: result: yes" >&5
38494echo "${ECHO_T}yes" >&6
38495 SET_MAKE=
38496else
38497 echo "$as_me:$LINENO: result: no" >&5
38498echo "${ECHO_T}no" >&6
38499 SET_MAKE="MAKE=${MAKE-make}"
38500fi
38501
38502
38503
38504 if test -n "$ac_tool_prefix"; then
38505 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38506set dummy ${ac_tool_prefix}ar; ac_word=$2
38507echo "$as_me:$LINENO: checking for $ac_word" >&5
38508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38509if test "${ac_cv_prog_AR+set}" = set; then
38510 echo $ECHO_N "(cached) $ECHO_C" >&6
38511else
38512 if test -n "$AR"; then
38513 ac_cv_prog_AR="$AR" # Let the user override the test.
38514else
38515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38516for as_dir in $PATH
38517do
38518 IFS=$as_save_IFS
38519 test -z "$as_dir" && as_dir=.
38520 for ac_exec_ext in '' $ac_executable_extensions; do
38521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38522 ac_cv_prog_AR="${ac_tool_prefix}ar"
38523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38524 break 2
38525 fi
38526done
38527done
38528
38529fi
38530fi
38531AR=$ac_cv_prog_AR
38532if test -n "$AR"; then
38533 echo "$as_me:$LINENO: result: $AR" >&5
38534echo "${ECHO_T}$AR" >&6
38535else
38536 echo "$as_me:$LINENO: result: no" >&5
38537echo "${ECHO_T}no" >&6
38538fi
38539
38540fi
38541if test -z "$ac_cv_prog_AR"; then
38542 ac_ct_AR=$AR
38543 # Extract the first word of "ar", so it can be a program name with args.
38544set dummy ar; ac_word=$2
38545echo "$as_me:$LINENO: checking for $ac_word" >&5
38546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38547if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38548 echo $ECHO_N "(cached) $ECHO_C" >&6
38549else
38550 if test -n "$ac_ct_AR"; then
38551 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38552else
38553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38554for as_dir in $PATH
38555do
38556 IFS=$as_save_IFS
38557 test -z "$as_dir" && as_dir=.
38558 for ac_exec_ext in '' $ac_executable_extensions; do
38559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38560 ac_cv_prog_ac_ct_AR="ar"
38561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38562 break 2
38563 fi
38564done
38565done
38566
38567 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38568fi
38569fi
38570ac_ct_AR=$ac_cv_prog_ac_ct_AR
38571if test -n "$ac_ct_AR"; then
38572 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38573echo "${ECHO_T}$ac_ct_AR" >&6
38574else
38575 echo "$as_me:$LINENO: result: no" >&5
38576echo "${ECHO_T}no" >&6
38577fi
38578
38579 AR=$ac_ct_AR
38580else
38581 AR="$ac_cv_prog_AR"
38582fi
38583
38584 if test -n "$ac_tool_prefix"; then
38585 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38586set dummy ${ac_tool_prefix}strip; ac_word=$2
38587echo "$as_me:$LINENO: checking for $ac_word" >&5
38588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38589if test "${ac_cv_prog_STRIP+set}" = set; then
38590 echo $ECHO_N "(cached) $ECHO_C" >&6
38591else
38592 if test -n "$STRIP"; then
38593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38594else
38595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38596for as_dir in $PATH
38597do
38598 IFS=$as_save_IFS
38599 test -z "$as_dir" && as_dir=.
38600 for ac_exec_ext in '' $ac_executable_extensions; do
38601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38604 break 2
38605 fi
38606done
38607done
38608
38609fi
38610fi
38611STRIP=$ac_cv_prog_STRIP
38612if test -n "$STRIP"; then
38613 echo "$as_me:$LINENO: result: $STRIP" >&5
38614echo "${ECHO_T}$STRIP" >&6
38615else
38616 echo "$as_me:$LINENO: result: no" >&5
38617echo "${ECHO_T}no" >&6
38618fi
38619
38620fi
38621if test -z "$ac_cv_prog_STRIP"; then
38622 ac_ct_STRIP=$STRIP
38623 # Extract the first word of "strip", so it can be a program name with args.
38624set dummy strip; ac_word=$2
38625echo "$as_me:$LINENO: checking for $ac_word" >&5
38626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38627if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38628 echo $ECHO_N "(cached) $ECHO_C" >&6
38629else
38630 if test -n "$ac_ct_STRIP"; then
38631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38632else
38633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38634for as_dir in $PATH
38635do
38636 IFS=$as_save_IFS
38637 test -z "$as_dir" && as_dir=.
38638 for ac_exec_ext in '' $ac_executable_extensions; do
38639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38640 ac_cv_prog_ac_ct_STRIP="strip"
38641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38642 break 2
38643 fi
38644done
38645done
38646
38647 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38648fi
38649fi
38650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38651if test -n "$ac_ct_STRIP"; then
38652 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38653echo "${ECHO_T}$ac_ct_STRIP" >&6
38654else
38655 echo "$as_me:$LINENO: result: no" >&5
38656echo "${ECHO_T}no" >&6
38657fi
38658
38659 STRIP=$ac_ct_STRIP
38660else
38661 STRIP="$ac_cv_prog_STRIP"
38662fi
38663
38664 if test -n "$ac_tool_prefix"; then
38665 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38666set dummy ${ac_tool_prefix}nm; ac_word=$2
38667echo "$as_me:$LINENO: checking for $ac_word" >&5
38668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38669if test "${ac_cv_prog_NM+set}" = set; then
38670 echo $ECHO_N "(cached) $ECHO_C" >&6
38671else
38672 if test -n "$NM"; then
38673 ac_cv_prog_NM="$NM" # Let the user override the test.
38674else
38675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38676for as_dir in $PATH
38677do
38678 IFS=$as_save_IFS
38679 test -z "$as_dir" && as_dir=.
38680 for ac_exec_ext in '' $ac_executable_extensions; do
38681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38682 ac_cv_prog_NM="${ac_tool_prefix}nm"
38683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38684 break 2
38685 fi
38686done
38687done
38688
38689fi
38690fi
38691NM=$ac_cv_prog_NM
38692if test -n "$NM"; then
38693 echo "$as_me:$LINENO: result: $NM" >&5
38694echo "${ECHO_T}$NM" >&6
38695else
38696 echo "$as_me:$LINENO: result: no" >&5
38697echo "${ECHO_T}no" >&6
38698fi
38699
38700fi
38701if test -z "$ac_cv_prog_NM"; then
38702 ac_ct_NM=$NM
38703 # Extract the first word of "nm", so it can be a program name with args.
38704set dummy nm; ac_word=$2
38705echo "$as_me:$LINENO: checking for $ac_word" >&5
38706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38707if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38708 echo $ECHO_N "(cached) $ECHO_C" >&6
38709else
38710 if test -n "$ac_ct_NM"; then
38711 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38712else
38713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38714for as_dir in $PATH
38715do
38716 IFS=$as_save_IFS
38717 test -z "$as_dir" && as_dir=.
38718 for ac_exec_ext in '' $ac_executable_extensions; do
38719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38720 ac_cv_prog_ac_ct_NM="nm"
38721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38722 break 2
38723 fi
38724done
38725done
38726
38727 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38728fi
38729fi
38730ac_ct_NM=$ac_cv_prog_ac_ct_NM
38731if test -n "$ac_ct_NM"; then
38732 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38733echo "${ECHO_T}$ac_ct_NM" >&6
38734else
38735 echo "$as_me:$LINENO: result: no" >&5
38736echo "${ECHO_T}no" >&6
38737fi
38738
38739 NM=$ac_ct_NM
38740else
38741 NM="$ac_cv_prog_NM"
38742fi
38743
38744
38745 case ${BAKEFILE_HOST} in
38746 *-hp-hpux* )
1e9e8aba 38747 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38748 ;;
38749 *) INSTALL_DIR="$INSTALL -d"
38750 ;;
38751 esac
38752
38753
38754 LDFLAGS_GUI=
38755 case ${BAKEFILE_HOST} in
38756 *-*-cygwin* | *-*-mingw32* )
38757 LDFLAGS_GUI="-mwindows"
38758 esac
38759
38760
38761 fi
38762
38763 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38764echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38765if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38766 echo $ECHO_N "(cached) $ECHO_C" >&6
38767else
38768
38769 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38770 egrep -s GNU > /dev/null); then
38771 bakefile_cv_prog_makeisgnu="yes"
38772 else
38773 bakefile_cv_prog_makeisgnu="no"
38774 fi
38775
38776fi
38777echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38778echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38779
38780 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38781 IF_GNU_MAKE=""
38782 else
38783 IF_GNU_MAKE="#"
38784 fi
38785
38786
38787
38788 PLATFORM_UNIX=0
38789 PLATFORM_WIN32=0
38790 PLATFORM_MSDOS=0
38791 PLATFORM_MAC=0
1e9e8aba 38792 PLATFORM_MACOS=0
a848cd7e
SC
38793 PLATFORM_MACOSX=0
38794 PLATFORM_OS2=0
1e9e8aba 38795 PLATFORM_BEOS=0
a848cd7e
SC
38796
38797 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38798 case "${BAKEFILE_HOST}" in
38799 *-*-cygwin* | *-*-mingw32* )
38800 PLATFORM_WIN32=1
38801 ;;
38802 *-pc-msdosdjgpp )
38803 PLATFORM_MSDOS=1
38804 ;;
38805 *-pc-os2_emx | *-pc-os2-emx )
38806 PLATFORM_OS2=1
38807 ;;
38808 powerpc-*-darwin* )
38809 PLATFORM_MAC=1
38810 PLATFORM_MACOSX=1
38811 ;;
1e9e8aba
DE
38812 *-*-beos* )
38813 PLATFORM_BEOS=1
38814 ;;
38815 powerpc-apple-macos* )
38816 PLATFORM_MAC=1
38817 PLATFORM_MACOS=1
38818 ;;
a848cd7e
SC
38819 * )
38820 PLATFORM_UNIX=1
38821 ;;
38822 esac
38823 else
38824 case "$BAKEFILE_FORCE_PLATFORM" in
38825 win32 )
38826 PLATFORM_WIN32=1
38827 ;;
38828 msdos )
38829 PLATFORM_MSDOS=1
38830 ;;
38831 os2 )
38832 PLATFORM_OS2=1
38833 ;;
38834 darwin )
38835 PLATFORM_MAC=1
38836 PLATFORM_MACOSX=1
38837 ;;
38838 unix )
38839 PLATFORM_UNIX=1
38840 ;;
1e9e8aba
DE
38841 beos )
38842 PLATFORM_BEOS=1
38843 ;;
a848cd7e
SC
38844 * )
38845 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38846echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38847 { (exit 1); exit 1; }; }
38848 ;;
38849 esac
38850 fi
38851
38852
38853
38854
38855
38856
38857
38858
38859
1e9e8aba
DE
38860
38861
a848cd7e
SC
38862 # Check whether --enable-omf or --disable-omf was given.
38863if test "${enable_omf+set}" = set; then
38864 enableval="$enable_omf"
38865 bk_os2_use_omf="$enableval"
38866fi;
38867
38868 case "${BAKEFILE_HOST}" in
38869 *-*-darwin* )
38870 CFLAGS="$CFLAGS -fno-common"
38871 CXXFLAGS="$CXXFLAGS -fno-common"
38872 ;;
38873
38874 *-pc-os2_emx | *-pc-os2-emx )
38875 if test "x$bk_os2_use_omf" = "xyes" ; then
38876 AR=emxomfar
38877 RANLIB=:
38878 LDFLAGS="-Zomf $LDFLAGS"
38879 CFLAGS="-Zomf $CFLAGS"
38880 CXXFLAGS="-Zomf $CXXFLAGS"
38881 OS2_LIBEXT="lib"
38882 else
38883 OS2_LIBEXT="a"
38884 fi
38885 ;;
1e9e8aba
DE
38886
38887 i*86-*-beos* )
38888 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
38889 ;;
a848cd7e
SC
38890 esac
38891
38892
38893 SO_SUFFIX="so"
38894 SO_SUFFIX_MODULE="so"
38895 EXEEXT=""
38896 LIBPREFIX="lib"
38897 LIBEXT=".a"
38898 DLLPREFIX="lib"
38899 DLLPREFIX_MODULE=""
38900 DLLIMP_SUFFIX=""
38901
38902 case "${BAKEFILE_HOST}" in
38903 *-hp-hpux* )
38904 SO_SUFFIX="sl"
38905 SO_SUFFIX_MODULE="sl"
38906 ;;
38907 *-*-aix* )
38908 SO_SUFFIX="a"
38909 SO_SUFFIX_MODULE="a"
38910 ;;
38911 *-*-cygwin* | *-*-mingw32* )
38912 SO_SUFFIX="dll"
38913 SO_SUFFIX_MODULE="dll"
38914 DLLIMP_SUFFIX="dll.a"
38915 EXEEXT=".exe"
38916 DLLPREFIX=""
38917 ;;
38918 *-pc-msdosdjgpp )
38919 EXEEXT=".exe"
38920 DLLPREFIX=""
38921 ;;
38922 *-pc-os2_emx | *-pc-os2-emx )
38923 SO_SUFFIX="dll"
38924 SO_SUFFIX_MODULE="dll"
38925 DLLIMP_SUFFIX=$OS2_LIBEXT
38926 EXEEXT=".exe"
38927 DLLPREFIX=""
38928 LIBPREFIX=""
38929 LIBEXT=".$OS2_LIBEXT"
38930 ;;
38931 powerpc-*-darwin* )
38932 SO_SUFFIX="dylib"
38933 SO_SUFFIX_MODULE="bundle"
38934 ;;
38935 esac
38936
38937 if test "x$DLLIMP_SUFFIX" = "x" ; then
38938 DLLIMP_SUFFIX="$SO_SUFFIX"
38939 fi
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950
1e9e8aba
DE
38951 PIC_FLAG=""
38952 if test "x$GCC" = "xyes"; then
a848cd7e
SC
38953 PIC_FLAG="-fPIC"
38954 fi
38955
1e9e8aba
DE
38956 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
38957 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
38958
a848cd7e
SC
38959 case "${BAKEFILE_HOST}" in
38960 *-hp-hpux* )
1e9e8aba 38961 if test "x$GCC" != "xyes"; then
a848cd7e
SC
38962 LDFLAGS="$LDFLAGS -L/usr/lib"
38963
38964 SHARED_LD_CC="${CC} -b -o"
38965 SHARED_LD_CXX="${CXX} -b -o"
38966 PIC_FLAG="+Z"
38967 fi
38968 ;;
38969
38970 *-*-linux* )
38971 if test "x$GCC" != "xyes"; then
38972 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38973echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38974if test "${bakefile_cv_prog_icc+set}" = set; then
38975 echo $ECHO_N "(cached) $ECHO_C" >&6
38976else
38977
38978 cat >conftest.$ac_ext <<_ACEOF
38979/* confdefs.h. */
38980_ACEOF
38981cat confdefs.h >>conftest.$ac_ext
38982cat >>conftest.$ac_ext <<_ACEOF
38983/* end confdefs.h. */
38984
38985int
38986main ()
38987{
38988
38989 #ifndef __INTEL_COMPILER
38990 #error Not icc
38991 #endif
38992
38993 ;
38994 return 0;
38995}
38996_ACEOF
38997rm -f conftest.$ac_objext
38998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38999 (eval $ac_compile) 2>conftest.er1
a848cd7e 39000 ac_status=$?
ac1cb8d3
VS
39001 grep -v '^ *+' conftest.er1 >conftest.err
39002 rm -f conftest.er1
39003 cat conftest.err >&5
a848cd7e
SC
39004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39005 (exit $ac_status); } &&
5294a27e 39006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39008 (eval $ac_try) 2>&5
39009 ac_status=$?
39010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011 (exit $ac_status); }; } &&
39012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39014 (eval $ac_try) 2>&5
39015 ac_status=$?
39016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017 (exit $ac_status); }; }; then
39018 bakefile_cv_prog_icc=yes
39019else
39020 echo "$as_me: failed program was:" >&5
39021sed 's/^/| /' conftest.$ac_ext >&5
39022
39023bakefile_cv_prog_icc=no
39024
39025fi
ac1cb8d3 39026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39027
39028fi
39029echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39030echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39031 if test "$bakefile_cv_prog_icc" = "yes"; then
39032 PIC_FLAG="-KPIC"
39033 fi
39034 fi
39035 ;;
39036
39037 *-*-solaris2* )
39038 if test "x$GCC" != xyes ; then
39039 SHARED_LD_CC="${CC} -G -o"
39040 SHARED_LD_CXX="${CXX} -G -o"
39041 PIC_FLAG="-KPIC"
39042 fi
39043 ;;
39044
39045 *-*-darwin* )
39046
39047 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39048echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39049if test "${wx_cv_gcc31+set}" = set; then
39050 echo $ECHO_N "(cached) $ECHO_C" >&6
39051else
39052
39053 cat >conftest.$ac_ext <<_ACEOF
39054/* confdefs.h. */
39055_ACEOF
39056cat confdefs.h >>conftest.$ac_ext
39057cat >>conftest.$ac_ext <<_ACEOF
39058/* end confdefs.h. */
39059
39060int
39061main ()
39062{
39063
39064 #if (__GNUC__ < 3) || \
39065 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39066 #error old gcc
39067 #endif
39068
39069 ;
39070 return 0;
39071}
39072_ACEOF
39073rm -f conftest.$ac_objext
39074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39075 (eval $ac_compile) 2>conftest.er1
a848cd7e 39076 ac_status=$?
ac1cb8d3
VS
39077 grep -v '^ *+' conftest.er1 >conftest.err
39078 rm -f conftest.er1
39079 cat conftest.err >&5
a848cd7e
SC
39080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); } &&
5294a27e 39082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39084 (eval $ac_try) 2>&5
39085 ac_status=$?
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); }; } &&
39088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090 (eval $ac_try) 2>&5
39091 ac_status=$?
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); }; }; then
39094
39095 wx_cv_gcc31=yes
39096
39097else
39098 echo "$as_me: failed program was:" >&5
39099sed 's/^/| /' conftest.$ac_ext >&5
39100
39101
39102 wx_cv_gcc31=no
39103
39104
39105fi
ac1cb8d3 39106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39107
39108fi
39109echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39110echo "${ECHO_T}$wx_cv_gcc31" >&6
39111 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39112
39113D='$'
39114cat <<EOF >shared-ld-sh
a848cd7e
SC
39115#!/bin/sh
39116#-----------------------------------------------------------------------------
39117#-- Name: distrib/mac/shared-ld-sh
39118#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39119#-- Author: Gilles Depeyrot
39120#-- Copyright: (c) 2002 Gilles Depeyrot
39121#-- Licence: any use permitted
39122#-----------------------------------------------------------------------------
39123
39124verbose=0
39125args=""
39126objects=""
39127linking_flag="-dynamiclib"
39128
473276a9
VS
39129while test ${D}# -gt 0; do
39130 case ${D}1 in
a848cd7e
SC
39131
39132 -v)
39133 verbose=1
39134 ;;
39135
39136 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39137 # collect these options and values
473276a9 39138 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39139 shift
39140 ;;
39141
39142 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39143 # collect these options
473276a9 39144 args="${D}{args} ${D}1"
a848cd7e
SC
39145 ;;
39146
39147 -dynamiclib|-bundle)
473276a9 39148 linking_flag="${D}1"
a848cd7e
SC
39149 ;;
39150
39151 -*)
473276a9 39152 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39153 exit 1
39154 ;;
39155
39156 *.o | *.a | *.dylib)
39157 # collect object files
473276a9 39158 objects="${D}{objects} ${D}1"
a848cd7e
SC
39159 ;;
39160
39161 *)
473276a9 39162 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39163 exit 1
39164 ;;
39165
39166 esac
39167 shift
39168done
39169
39170#
39171# Link one module containing all the others
39172#
473276a9
VS
39173if test ${D}{verbose} = 1; then
39174 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39175fi
473276a9
VS
39176c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39177status=${D}?
39178if test ${D}{status} != 0; then
39179 exit ${D}{status}
a848cd7e
SC
39180fi
39181
39182#
39183# Link the shared library from the single module created
39184#
473276a9
VS
39185if test ${D}{verbose} = 1; then
39186 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39187fi
473276a9
VS
39188c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39189status=${D}?
39190if test ${D}{status} != 0; then
39191 exit ${D}{status}
a848cd7e
SC
39192fi
39193
39194#
39195# Remove intermediate module
39196#
473276a9 39197rm -f master.${D}${D}.o
a848cd7e
SC
39198
39199exit 0
39200EOF
473276a9 39201
a848cd7e
SC
39202 chmod +x shared-ld-sh
39203
39204 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39205 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39206 SHARED_LD_CXX="$SHARED_LD_CC"
39207 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39208 else
39209 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39210 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39211 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39212 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39213 fi
39214
39215 PIC_FLAG="-dynamic -fPIC"
39216 ;;
39217
39218 *-*-aix* )
39219 if test "x$GCC" != "xyes"; then
39220 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39221set dummy makeC++SharedLib; ac_word=$2
39222echo "$as_me:$LINENO: checking for $ac_word" >&5
39223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39224if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39225 echo $ECHO_N "(cached) $ECHO_C" >&6
39226else
39227 if test -n "$AIX_CXX_LD"; then
39228 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39229else
39230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39231for as_dir in $PATH
39232do
39233 IFS=$as_save_IFS
39234 test -z "$as_dir" && as_dir=.
39235 for ac_exec_ext in '' $ac_executable_extensions; do
39236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39237 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39239 break 2
39240 fi
39241done
39242done
39243
39244 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39245fi
39246fi
39247AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39248if test -n "$AIX_CXX_LD"; then
39249 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39250echo "${ECHO_T}$AIX_CXX_LD" >&6
39251else
39252 echo "$as_me:$LINENO: result: no" >&5
39253echo "${ECHO_T}no" >&6
39254fi
39255
39256 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39257 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39258 fi
39259 ;;
39260
39261 *-*-beos* )
1e9e8aba
DE
39262 SHARED_LD_CC="${LD} -nostart -o"
39263 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
39264 ;;
39265
39266 *-*-irix* )
39267 if test "x$GCC" != "xyes"; then
39268 PIC_FLAG="-KPIC"
39269 fi
39270 ;;
39271
39272 *-*-cygwin* | *-*-mingw32* )
39273 PIC_FLAG=""
1e9e8aba
DE
39274 SHARED_LD_CC="\$(CC) -shared -o"
39275 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
39276 ;;
39277
39278 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39279 SHARED_LD_CC="`pwd`/dllar.sh -o"
39280 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39281 PIC_FLAG=""
473276a9
VS
39282
39283D='$'
39284cat <<EOF >dllar.sh
39285#!/bin/sh
39286#
39287# dllar - a tool to build both a .dll and an .a file
39288# from a set of object (.o) files for EMX/OS2.
39289#
39290# Written by Andrew Zabolotny, bit@freya.etu.ru
39291# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39292#
39293# This script will accept a set of files on the command line.
39294# All the public symbols from the .o files will be exported into
39295# a .DEF file, then linker will be run (through gcc) against them to
39296# build a shared library consisting of all given .o files. All libraries
39297# (.a) will be first decompressed into component .o files then act as
39298# described above. You can optionally give a description (-d "description")
39299# which will be put into .DLL. To see the list of accepted options (as well
39300# as command-line format) simply run this program without options. The .DLL
39301# is built to be imported by name (there is no guarantee that new versions
39302# of the library you build will have same ordinals for same symbols).
39303#
39304# dllar is free software; you can redistribute it and/or modify
39305# it under the terms of the GNU General Public License as published by
39306# the Free Software Foundation; either version 2, or (at your option)
39307# any later version.
39308#
39309# dllar is distributed in the hope that it will be useful,
39310# but WITHOUT ANY WARRANTY; without even the implied warranty of
39311# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39312# GNU General Public License for more details.
39313#
39314# You should have received a copy of the GNU General Public License
39315# along with dllar; see the file COPYING. If not, write to the Free
39316# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39317# 02111-1307, USA.
39318
39319# To successfuly run this program you will need:
39320# - Current drive should have LFN support (HPFS, ext2, network, etc)
39321# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39322# - gcc
39323# (used to build the .dll)
39324# - emxexp
39325# (used to create .def file from .o files)
39326# - emximp
39327# (used to create .a file from .def file)
39328# - GNU text utilites (cat, sort, uniq)
39329# used to process emxexp output
39330# - GNU file utilities (mv, rm)
39331# - GNU sed
39332# - lxlite (optional, see flag below)
39333# (used for general .dll cleanup)
39334#
39335
39336flag_USE_LXLITE=1;
39337
39338#
39339# helper functions
39340# basnam, variant of basename, which does _not_ remove the path, _iff_
39341# second argument (suffix to remove) is given
39342basnam(){
39343 case ${D}# in
39344 1)
1e9e8aba 39345 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
39346 ;;
39347 2)
39348 echo ${D}1 | sed 's/'${D}2'${D}//'
39349 ;;
39350 *)
39351 echo "error in basnam ${D}*"
39352 exit 8
39353 ;;
39354 esac
39355}
39356
39357# Cleanup temporary files and output
39358CleanUp() {
39359 cd ${D}curDir
39360 for i in ${D}inputFiles ; do
39361 case ${D}i in
39362 *!)
39363 rm -rf \`basnam ${D}i !\`
39364 ;;
39365 *)
39366 ;;
39367 esac
39368 done
39369
39370 # Kill result in case of failure as there is just to many stupid make/nmake
39371 # things out there which doesn't do this.
1e9e8aba 39372 if [ ${D}# -eq 0 ]; then
473276a9
VS
39373 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39374 fi
39375}
39376
39377# Print usage and exit script with rc=1.
39378PrintHelp() {
1e9e8aba
DE
39379 echo 'Usage: dllar [-o@<:${utput}:>@ output_file] [-i@<:${mport}:>@ importlib_name]'
39380 echo ' [-d@<:${escription}:>@ "dll descrption"] [-cc "CC"] [-f@<:${lags}:>@ "CFLAGS"]'
39381 echo ' [-ord@<:${inals}:>@] -ex@<:${clude}:>@ "symbol(s)"'
39382 echo ' [-libf@<:${lags}:>@ "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt@<:${dll}:>@] [-nolxl@<:${ite}:>@]'
39383 echo ' [*.o] [*.a]'
473276a9
VS
39384 echo '*> "output_file" should have no extension.'
39385 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39386 echo ' The import library name is derived from this and is set to "name".a,'
39387 echo ' unless overridden by -import'
39388 echo '*> "importlib_name" should have no extension.'
39389 echo ' If it has the .o, or .a extension, it is automatically removed.'
39390 echo ' This name is used as the import library name and may be longer and'
39391 echo ' more descriptive than the DLL name which has to follow the old '
39392 echo ' 8.3 convention of FAT.'
39393 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39394 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39395 echo ' These flags will be put at the start of GCC command line.'
1e9e8aba
DE
39396 echo '*> -ord@<:${inals}:>@ tells dllar to export entries by ordinals. Be careful.'
39397 echo '*> -ex@<:${clude}:>@ defines symbols which will not be exported. You can define'
473276a9
VS
39398 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39399 echo ' If the last character of a symbol is "*", all symbols beginning'
39400 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
1e9e8aba 39401 echo '*> -libf@<:${lags}:>@ can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39402 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
1e9e8aba 39403 echo '*> -nocrt@<:${dll}:>@ switch will disable linking the library against emx''s'
473276a9 39404 echo ' C runtime DLLs.'
1e9e8aba 39405 echo '*> -nolxl@<:${ite}:>@ switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39406 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39407 echo ' unchanged to GCC at the end of command line.'
39408 echo '*> If you create a DLL from a library and you do not specify -o,'
39409 echo ' the basename for DLL and import library will be set to library name,'
39410 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39411 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39412 echo ' library will be renamed into gcc_s.a.'
39413 echo '--------'
39414 echo 'Example:'
39415 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39416 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39417 CleanUp
39418 exit 1
39419}
39420
39421# Execute a command.
39422# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39423# @Uses Whatever CleanUp() uses.
39424doCommand() {
39425 echo "${D}*"
39426 eval ${D}*
39427 rcCmd=${D}?
39428
1e9e8aba 39429 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
39430 echo "command failed, exit code="${D}rcCmd
39431 CleanUp
39432 exit ${D}rcCmd
39433 fi
39434}
39435
39436# main routine
39437# setup globals
39438cmdLine=${D}*
39439outFile=""
39440outimpFile=""
39441inputFiles=""
39442description=""
39443CC=gcc.exe
39444CFLAGS="-s -Zcrtdll"
39445EXTRA_CFLAGS=""
39446EXPORT_BY_ORDINALS=0
39447exclude_symbols=""
39448library_flags=""
39449curDir=\`pwd\`
39450curDirS=curDir
39451case ${D}curDirS in
39452*/)
39453 ;;
39454*)
39455 curDirS=${D}{curDirS}"/"
39456 ;;
39457esac
39458# Parse commandline
39459libsToLink=0
1e9e8aba 39460while [ ${D}1 ]; do
473276a9
VS
39461 case ${D}1 in
39462 -ord*)
39463 EXPORT_BY_ORDINALS=1;
39464 ;;
39465 -o*)
39466 shift
39467 outFile=${D}1
39468 ;;
39469 -i*)
39470 shift
39471 outimpFile=${D}1
39472 ;;
39473 -d*)
39474 shift
39475 description=${D}1
39476 ;;
39477 -f*)
39478 shift
39479 CFLAGS=${D}1
39480 ;;
39481 -c*)
39482 shift
39483 CC=${D}1
39484 ;;
39485 -h*)
39486 PrintHelp
39487 ;;
39488 -ex*)
39489 shift
39490 exclude_symbols=${D}{exclude_symbols}${D}1" "
39491 ;;
39492 -libf*)
39493 shift
39494 library_flags=${D}{library_flags}${D}1" "
39495 ;;
39496 -nocrt*)
39497 CFLAGS="-s"
39498 ;;
39499 -nolxl*)
39500 flag_USE_LXLITE=0
39501 ;;
39502 -* | /*)
39503 case ${D}1 in
39504 -L* | -l*)
39505 libsToLink=1
39506 ;;
39507 *)
39508 ;;
39509 esac
39510 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39511 ;;
39512 *)
39513 found=0;
1e9e8aba 39514 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
39515 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39516 else
39517 for file in ${D}1 ; do
1e9e8aba 39518 if [ -f ${D}file ]; then
473276a9
VS
39519 inputFiles="${D}{inputFiles} ${D}file"
39520 found=1
39521 fi
39522 done
1e9e8aba 39523 if [ ${D}found -eq 0 ]; then
473276a9
VS
39524 echo "ERROR: No file(s) found: "${D}1
39525 exit 8
39526 fi
39527 fi
39528 ;;
39529 esac
39530 shift
39531done # iterate cmdline words
39532
39533#
1e9e8aba 39534if [ -z "${D}inputFiles" ]; then
473276a9
VS
39535 echo "dllar: no input files"
39536 PrintHelp
39537fi
39538
39539# Now extract all .o files from .a files
39540newInputFiles=""
39541for file in ${D}inputFiles ; do
39542 case ${D}file in
39543 *.a | *.lib)
39544 case ${D}file in
39545 *.a)
39546 suffix=".a"
39547 AR="ar"
39548 ;;
39549 *.lib)
39550 suffix=".lib"
39551 AR="emxomfar"
39552 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39553 ;;
39554 *)
39555 ;;
39556 esac
39557 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39558 mkdir ${D}dirname
1e9e8aba 39559 if [ ${D}? -ne 0 ]; then
473276a9
VS
39560 echo "Failed to create subdirectory ./${D}dirname"
39561 CleanUp
39562 exit 8;
39563 fi
39564 # Append '!' to indicate archive
39565 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39566 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39567 cd ${D}curDir
39568 found=0;
39569 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 39570 if [ -f ${D}subfile ]; then
473276a9 39571 found=1
1e9e8aba 39572 if [ -s ${D}subfile ]; then
473276a9
VS
39573 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39574 newInputFiles="${D}newInputFiles ${D}subfile"
39575 fi
39576 fi
39577 done
1e9e8aba
DE
39578 if [ ${D}found -eq 0 ]; then
39579 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
39580 fi
39581 ;;
39582 *)
39583 newInputFiles="${D}{newInputFiles} ${D}file"
39584 ;;
39585 esac
39586done
39587inputFiles="${D}newInputFiles"
39588
39589# Output filename(s).
39590do_backup=0;
1e9e8aba 39591if [ -z ${D}outFile ]; then
473276a9
VS
39592 do_backup=1;
39593 set outFile ${D}inputFiles; outFile=${D}2
39594fi
39595
39596# If it is an archive, remove the '!' and the '_%' suffixes
39597case ${D}outFile in
39598*_%!)
39599 outFile=\`basnam ${D}outFile _%!\`
39600 ;;
39601*)
39602 ;;
39603esac
39604case ${D}outFile in
39605*.dll)
39606 outFile=\`basnam ${D}outFile .dll\`
39607 ;;
39608*.DLL)
39609 outFile=\`basnam ${D}outFile .DLL\`
39610 ;;
39611*.o)
39612 outFile=\`basnam ${D}outFile .o\`
39613 ;;
39614*.obj)
39615 outFile=\`basnam ${D}outFile .obj\`
39616 ;;
39617*.a)
39618 outFile=\`basnam ${D}outFile .a\`
39619 ;;
39620*.lib)
39621 outFile=\`basnam ${D}outFile .lib\`
39622 ;;
39623*)
39624 ;;
39625esac
39626case ${D}outimpFile in
39627*.a)
39628 outimpFile=\`basnam ${D}outimpFile .a\`
39629 ;;
39630*.lib)
39631 outimpFile=\`basnam ${D}outimpFile .lib\`
39632 ;;
39633*)
39634 ;;
39635esac
1e9e8aba 39636if [ -z ${D}outimpFile ]; then
473276a9
VS
39637 outimpFile=${D}outFile
39638fi
39639defFile="${D}{outFile}.def"
39640arcFile="${D}{outimpFile}.a"
39641arcFile2="${D}{outimpFile}.lib"
39642dllFile="${D}outFile"
39643# Add suffix to dllFile later, first we need a version to use as
39644# name in .def file.
39645
1e9e8aba
DE
39646if [ ${D}do_backup -ne 0 ] ; then
39647 if [ -f ${D}arcFile ] ; then
473276a9
VS
39648 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39649 fi
1e9e8aba 39650 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
39651 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39652 fi
39653fi
39654
39655# Extract public symbols from all the object files.
39656tmpdefFile=${D}{defFile}_%
39657rm -f ${D}tmpdefFile
39658for file in ${D}inputFiles ; do
39659 case ${D}file in
39660 *!)
39661 ;;
39662 *)
39663 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39664 ;;
39665 esac
39666done
39667
39668# Create the def file.
39669rm -f ${D}defFile
39670echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39671dllFile="${D}dllFile.dll"
1e9e8aba
DE
39672if [ -n ${D}description ]; then
39673 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
39674fi
39675echo "EXPORTS" >> ${D}defFile
39676
39677doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39678grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39679
39680# Checks if the export is ok or not.
39681for word in ${D}exclude_symbols; do
39682 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39683 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39684done
39685
39686
1e9e8aba
DE
39687if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
39688 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
39689 sed '
39690 N
39691 : loop
1e9e8aba 39692 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
39693 t loop
39694 ' > ${D}{tmpdefFile}%
39695 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39696else
39697 rm -f ${D}{tmpdefFile}%
39698fi
39699cat ${D}tmpdefFile >> ${D}defFile
39700rm -f ${D}tmpdefFile
39701
39702# Do linking, create implib, and apply lxlite.
39703gccCmdl="";
39704for file in ${D}inputFiles ; do
39705 case ${D}file in
39706 *!)
39707 ;;
39708 *)
39709 gccCmdl="${D}gccCmdl ${D}file"
39710 ;;
39711 esac
39712done
39713doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39714touch "${D}{outFile}.dll"
39715
39716doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 39717if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 39718 add_flags="";
1e9e8aba 39719 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
39720 add_flags="-ynd"
39721 fi
39722 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39723fi
39724doCommand "emxomf -s -l ${D}arcFile"
39725
39726# Successful exit.
39727CleanUp 1
39728exit 0
39729EOF
39730
39731 chmod +x dllar.sh
a848cd7e
SC
39732 ;;
39733
1e9e8aba 39734 powerpc-apple-macos* | \
a848cd7e
SC
39735 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39736 *-*-sunos4* | \
39737 *-*-osf* | \
39738 *-*-dgux5* | \
39739 *-*-sysv5* )
39740 ;;
39741
39742 *)
39743 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39744echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39745 { (exit 1); exit 1; }; }
39746 esac
39747
2057db16
VS
39748 if test "x$PIC_FLAG" != "x" ; then
39749 PIC_FLAG="$PIC_FLAG -DPIC"
39750 fi
39751
a848cd7e
SC
39752 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39753 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39754 fi
39755 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39756 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39757 fi
39758
39759
39760
39761
39762
39763
39764
39765
39766 USE_SOVERSION=0
39767 USE_SOVERLINUX=0
39768 USE_SOVERSOLARIS=0
39769 USE_SOSYMLINKS=0
39770 USE_MACVERSION=0
39771 SONAME_FLAG=
39772
39773 case "${BAKEFILE_HOST}" in
39774 *-*-linux* )
39775 SONAME_FLAG="-Wl,-soname,"
39776 USE_SOVERSION=1
39777 USE_SOVERLINUX=1
39778 USE_SOSYMLINKS=1
39779 ;;
39780
5f652d0d
VS
39781 *-*-freebsd* )
39782 SONAME_FLAG="-Wl,-soname,"
39783 USE_SOVERSION=1
39784 USE_SOVERLINUX=1
39785 USE_SOSYMLINKS=1
39786 ;;
39787
a848cd7e
SC
39788 *-*-solaris2* )
39789 SONAME_FLAG="-h "
39790 USE_SOVERSION=1
39791 USE_SOVERSOLARIS=1
39792 USE_SOSYMLINKS=1
39793 ;;
39794
39795 *-*-darwin* )
39796 USE_MACVERSION=1
39797 USE_SOVERSION=1
39798 USE_SOSYMLINKS=1
39799 ;;
39800 esac
39801
39802
39803
39804
39805
39806
39807
39808
39809
39810 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39811echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39812 DEPS_TRACKING=0
39813
39814 if test "x$GCC" = "xyes"; then
39815 DEPSMODE=gcc
39816 DEPS_TRACKING=1
39817 case "${BAKEFILE_HOST}" in
39818 powerpc-*-darwin* )
39819 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39820 ;;
39821 * )
39822 DEPSFLAG_GCC="-MMD"
39823 ;;
39824 esac
39825 echo "$as_me:$LINENO: result: gcc" >&5
39826echo "${ECHO_T}gcc" >&6
39827 else
39828 echo "$as_me:$LINENO: result: none" >&5
39829echo "${ECHO_T}none" >&6
39830 fi
39831
39832 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39833
39834D='$'
39835cat <<EOF >bk-deps
a848cd7e
SC
39836#!/bin/sh
39837
39838# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39839# script. It is used to track C/C++ files dependencies in portable way.
39840#
39841# Permission is given to use this file in any way.
39842
473276a9 39843DEPSMODE=${DEPSMODE}
a848cd7e 39844DEPSDIR=.deps
473276a9 39845DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39846
473276a9 39847mkdir -p ${D}DEPSDIR
a848cd7e 39848
473276a9
VS
39849if test ${D}DEPSMODE = gcc ; then
39850 ${D}* ${D}{DEPSFLAG_GCC}
39851 status=${D}?
39852 if test ${D}{status} != 0 ; then
39853 exit ${D}{status}
a848cd7e
SC
39854 fi
39855 # move created file to the location we want it in:
473276a9
VS
39856 while test ${D}# -gt 0; do
39857 case "${D}1" in
a848cd7e
SC
39858 -o )
39859 shift
473276a9 39860 objfile=${D}1
a848cd7e
SC
39861 ;;
39862 -* )
39863 ;;
39864 * )
473276a9 39865 srcfile=${D}1
a848cd7e
SC
39866 ;;
39867 esac
39868 shift
39869 done
1e9e8aba
DE
39870 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
39871 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
39872 if test -f ${D}depfile ; then
39873 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39874 rm -f ${D}depfile
a848cd7e 39875 else
1e9e8aba 39876 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
39877 if test -f ${D}depfile ; then
39878 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39879 rm -f ${D}depfile
a848cd7e
SC
39880 fi
39881 fi
39882 exit 0
39883else
473276a9
VS
39884 ${D}*
39885 exit ${D}?
a848cd7e
SC
39886fi
39887EOF
473276a9 39888
a848cd7e
SC
39889 chmod +x bk-deps
39890 fi
39891
39892
39893
39894
39895 RESCOMP=
39896 SETFILE=
39897
39898 case ${BAKEFILE_HOST} in
39899 *-*-cygwin* | *-*-mingw32* )
39900 if test "$build" != "$host" ; then
39901 RESCOMP=$host_alias-windres
39902 else
39903 # Extract the first word of "windres", so it can be a program name with args.
39904set dummy windres; ac_word=$2
39905echo "$as_me:$LINENO: checking for $ac_word" >&5
39906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39907if test "${ac_cv_prog_RESCOMP+set}" = set; then
39908 echo $ECHO_N "(cached) $ECHO_C" >&6
39909else
39910 if test -n "$RESCOMP"; then
39911 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39912else
39913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39914for as_dir in $PATH
39915do
39916 IFS=$as_save_IFS
39917 test -z "$as_dir" && as_dir=.
39918 for ac_exec_ext in '' $ac_executable_extensions; do
39919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39920 ac_cv_prog_RESCOMP="windres"
39921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39922 break 2
39923 fi
39924done
39925done
39926
39927 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39928fi
39929fi
39930RESCOMP=$ac_cv_prog_RESCOMP
39931if test -n "$RESCOMP"; then
39932 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39933echo "${ECHO_T}$RESCOMP" >&6
39934else
39935 echo "$as_me:$LINENO: result: no" >&5
39936echo "${ECHO_T}no" >&6
39937fi
39938
39939 fi
39940 ;;
39941
1e9e8aba 39942 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
39943 # Extract the first word of "Rez", so it can be a program name with args.
39944set dummy Rez; ac_word=$2
39945echo "$as_me:$LINENO: checking for $ac_word" >&5
39946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39947if test "${ac_cv_prog_RESCOMP+set}" = set; then
39948 echo $ECHO_N "(cached) $ECHO_C" >&6
39949else
39950 if test -n "$RESCOMP"; then
39951 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39952else
39953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39954for as_dir in $PATH
39955do
39956 IFS=$as_save_IFS
39957 test -z "$as_dir" && as_dir=.
39958 for ac_exec_ext in '' $ac_executable_extensions; do
39959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39960 ac_cv_prog_RESCOMP="Rez"
39961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39962 break 2
39963 fi
39964done
39965done
39966
39967 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39968fi
39969fi
39970RESCOMP=$ac_cv_prog_RESCOMP
39971if test -n "$RESCOMP"; then
39972 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39973echo "${ECHO_T}$RESCOMP" >&6
39974else
39975 echo "$as_me:$LINENO: result: no" >&5
39976echo "${ECHO_T}no" >&6
39977fi
39978
39979 # Extract the first word of "SetFile", so it can be a program name with args.
39980set dummy SetFile; ac_word=$2
39981echo "$as_me:$LINENO: checking for $ac_word" >&5
39982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39983if test "${ac_cv_prog_SETFILE+set}" = set; then
39984 echo $ECHO_N "(cached) $ECHO_C" >&6
39985else
39986 if test -n "$SETFILE"; then
39987 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39988else
39989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39990for as_dir in $PATH
39991do
39992 IFS=$as_save_IFS
39993 test -z "$as_dir" && as_dir=.
39994 for ac_exec_ext in '' $ac_executable_extensions; do
39995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39996 ac_cv_prog_SETFILE="SetFile"
39997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39998 break 2
39999 fi
40000done
40001done
40002
40003 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40004fi
40005fi
40006SETFILE=$ac_cv_prog_SETFILE
40007if test -n "$SETFILE"; then
40008 echo "$as_me:$LINENO: result: $SETFILE" >&5
40009echo "${ECHO_T}$SETFILE" >&6
40010else
40011 echo "$as_me:$LINENO: result: no" >&5
40012echo "${ECHO_T}no" >&6
40013fi
40014
40015 ;;
40016 esac
40017
40018
40019
40020
40021
2057db16 40022 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 40023
dcc1b6ad 40024
9f45f08e 40025BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 40026
646b6ec1 40027
74b84332 40028
a848cd7e
SC
40029 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40030if test "${enable_precomp_headers+set}" = set; then
40031 enableval="$enable_precomp_headers"
40032 bk_use_pch="$enableval"
40033fi;
40034
40035 GCC_PCH=0
40036
40037 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40038 if test "x$GCC" = "xyes"; then
40039 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40040echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40041 cat >conftest.$ac_ext <<_ACEOF
40042/* confdefs.h. */
40043_ACEOF
40044cat confdefs.h >>conftest.$ac_ext
40045cat >>conftest.$ac_ext <<_ACEOF
40046/* end confdefs.h. */
40047
40048int
40049main ()
40050{
40051
40052 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40053 #error "no pch support"
40054 #endif
40055 #if (__GNUC__ < 3)
40056 #error "no pch support"
40057 #endif
40058 #if (__GNUC__ == 3) && \
40059 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40060 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40061 #error "no pch support"
40062 #endif
40063
40064 ;
40065 return 0;
40066}
40067_ACEOF
40068rm -f conftest.$ac_objext
40069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40070 (eval $ac_compile) 2>conftest.er1
a848cd7e 40071 ac_status=$?
ac1cb8d3
VS
40072 grep -v '^ *+' conftest.er1 >conftest.err
40073 rm -f conftest.er1
40074 cat conftest.err >&5
a848cd7e
SC
40075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076 (exit $ac_status); } &&
5294a27e 40077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40079 (eval $ac_try) 2>&5
40080 ac_status=$?
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 (exit $ac_status); }; } &&
40083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40085 (eval $ac_try) 2>&5
40086 ac_status=$?
40087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088 (exit $ac_status); }; }; then
40089
40090 echo "$as_me:$LINENO: result: yes" >&5
40091echo "${ECHO_T}yes" >&6
a848cd7e
SC
40092 GCC_PCH=1
40093
40094else
40095 echo "$as_me: failed program was:" >&5
40096sed 's/^/| /' conftest.$ac_ext >&5
40097
40098
40099 echo "$as_me:$LINENO: result: no" >&5
40100echo "${ECHO_T}no" >&6
40101
40102fi
ac1cb8d3 40103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40104 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40105
40106D='$'
40107cat <<EOF >bk-make-pch
a848cd7e
SC
40108#!/bin/sh
40109
40110# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40111# script. It is used to generated precompiled headers.
40112#
40113# Permission is given to use this file in any way.
40114
1e9e8aba
DE
40115outfile="${D}{1}"
40116header="${D}{2}"
a848cd7e
SC
40117shift
40118shift
40119
40120compiler=
40121headerfile=
1e9e8aba
DE
40122while test ${D}{#} -gt 0; do
40123 case "${D}{1}" in
a848cd7e 40124 -I* )
1e9e8aba
DE
40125 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40126 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40127 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
40128 fi
40129 ;;
40130 esac
1e9e8aba 40131 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
40132 shift
40133done
40134
1e9e8aba
DE
40135if test "x${D}{headerfile}" = "x" ; then
40136 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 40137else
1e9e8aba
DE
40138 if test -f ${D}{outfile} ; then
40139 rm -f ${D}{outfile}
a848cd7e 40140 else
1e9e8aba 40141 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 40142 fi
1e9e8aba 40143 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
40144 mkdir -p .deps
40145 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40146 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40147 exit ${D}{?}
a848cd7e
SC
40148fi
40149EOF
1e9e8aba 40150
a848cd7e
SC
40151 chmod +x bk-make-pch
40152 fi
40153 fi
40154 fi
40155
40156
40157
40158
40159
dcc1b6ad
VS
40160
40161
40162 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40163if test "${enable_precomp_headers+set}" = set; then
40164 enableval="$enable_precomp_headers"
40165 bk_use_pch="$enableval"
40166fi;
40167
40168 GCC_PCH=0
40169
40170 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40171 if test "x$GCC" = "xyes"; then
40172 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40173echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40174 cat >conftest.$ac_ext <<_ACEOF
40175/* confdefs.h. */
40176_ACEOF
40177cat confdefs.h >>conftest.$ac_ext
40178cat >>conftest.$ac_ext <<_ACEOF
40179/* end confdefs.h. */
40180
40181int
40182main ()
40183{
40184
40185 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40186 #error "no pch support"
40187 #endif
40188 #if (__GNUC__ < 3)
40189 #error "no pch support"
40190 #endif
40191 #if (__GNUC__ == 3) && \
40192 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40193 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40194 #error "no pch support"
40195 #endif
40196
40197 ;
40198 return 0;
40199}
40200_ACEOF
40201rm -f conftest.$ac_objext
40202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40203 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40204 ac_status=$?
ac1cb8d3
VS
40205 grep -v '^ *+' conftest.er1 >conftest.err
40206 rm -f conftest.er1
40207 cat conftest.err >&5
dcc1b6ad
VS
40208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209 (exit $ac_status); } &&
5294a27e 40210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40212 (eval $ac_try) 2>&5
40213 ac_status=$?
40214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215 (exit $ac_status); }; } &&
40216 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40218 (eval $ac_try) 2>&5
40219 ac_status=$?
40220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221 (exit $ac_status); }; }; then
40222
40223 echo "$as_me:$LINENO: result: yes" >&5
40224echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
40225 GCC_PCH=1
40226
40227else
40228 echo "$as_me: failed program was:" >&5
40229sed 's/^/| /' conftest.$ac_ext >&5
40230
40231
40232 echo "$as_me:$LINENO: result: no" >&5
40233echo "${ECHO_T}no" >&6
40234
40235fi
ac1cb8d3 40236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad 40237 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40238
40239D='$'
40240cat <<EOF >bk-make-pch
dcc1b6ad
VS
40241#!/bin/sh
40242
40243# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40244# script. It is used to generated precompiled headers.
40245#
40246# Permission is given to use this file in any way.
40247
1e9e8aba
DE
40248outfile="${D}{1}"
40249header="${D}{2}"
dcc1b6ad
VS
40250shift
40251shift
40252
40253compiler=
40254headerfile=
1e9e8aba
DE
40255while test ${D}{#} -gt 0; do
40256 case "${D}{1}" in
dcc1b6ad 40257 -I* )
1e9e8aba
DE
40258 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40259 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40260 headerfile="${D}{incdir}/${D}{header}"
dcc1b6ad
VS
40261 fi
40262 ;;
40263 esac
1e9e8aba 40264 compiler="${D}{compiler} ${D}{1}"
dcc1b6ad
VS
40265 shift
40266done
40267
1e9e8aba
DE
40268if test "x${D}{headerfile}" = "x" ; then
40269 echo "error: can't find header ${D}{header} in include paths" >2
dcc1b6ad 40270else
1e9e8aba
DE
40271 if test -f ${D}{outfile} ; then
40272 rm -f ${D}{outfile}
dcc1b6ad 40273 else
1e9e8aba 40274 mkdir -p \`dirname ${D}{outfile}\`
dcc1b6ad 40275 fi
1e9e8aba 40276 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
dcc1b6ad
VS
40277 mkdir -p .deps
40278 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40279 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40280 exit ${D}{?}
dcc1b6ad
VS
40281fi
40282EOF
1e9e8aba 40283
dcc1b6ad
VS
40284 chmod +x bk-make-pch
40285 fi
40286 fi
40287 fi
40288
40289
40290
a848cd7e
SC
40291 COND_BUILD_DEBUG="#"
40292 if test "x$BUILD" = "xdebug" ; then
40293 COND_BUILD_DEBUG=""
40294 fi
40295
40296 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40297 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40298 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40299 fi
40300
40301 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40302 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40303 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40304 fi
40305
40306 COND_BUILD_DEBUG_UNICODE_0="#"
40307 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40308 COND_BUILD_DEBUG_UNICODE_0=""
40309 fi
40310
40311 COND_BUILD_DEBUG_UNICODE_1="#"
40312 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40313 COND_BUILD_DEBUG_UNICODE_1=""
40314 fi
40315
40316 COND_BUILD_RELEASE="#"
40317 if test "x$BUILD" = "xrelease" ; then
40318 COND_BUILD_RELEASE=""
40319 fi
40320
40321 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40322 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40323 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40324 fi
40325
40326 COND_BUILD_RELEASE_UNICODE_0="#"
40327 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40328 COND_BUILD_RELEASE_UNICODE_0=""
40329 fi
40330
40331 COND_BUILD_RELEASE_UNICODE_1="#"
40332 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40333 COND_BUILD_RELEASE_UNICODE_1=""
40334 fi
40335
40336 COND_DEBUG_FLAG_1="#"
40337 if test "x$DEBUG_FLAG" = "x1" ; then
40338 COND_DEBUG_FLAG_1=""
40339 fi
40340
40341 COND_DEBUG_INFO_0="#"
40342 if test "x$DEBUG_INFO" = "x0" ; then
40343 COND_DEBUG_INFO_0=""
40344 fi
40345
40346 COND_DEBUG_INFO_1="#"
40347 if test "x$DEBUG_INFO" = "x1" ; then
40348 COND_DEBUG_INFO_1=""
40349 fi
40350
40351 COND_DEPS_TRACKING_0="#"
40352 if test "x$DEPS_TRACKING" = "x0" ; then
40353 COND_DEPS_TRACKING_0=""
40354 fi
40355
40356 COND_DEPS_TRACKING_1="#"
40357 if test "x$DEPS_TRACKING" = "x1" ; then
40358 COND_DEPS_TRACKING_1=""
40359 fi
40360
40361 COND_GCC_PCH_1="#"
40362 if test "x$GCC_PCH" = "x1" ; then
40363 COND_GCC_PCH_1=""
40364 fi
40365
40366 COND_MONOLITHIC_0="#"
40367 if test "x$MONOLITHIC" = "x0" ; then
40368 COND_MONOLITHIC_0=""
40369 fi
40370
40371 COND_MONOLITHIC_0_SHARED_0="#"
40372 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40373 COND_MONOLITHIC_0_SHARED_0=""
40374 fi
40375
40376 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40377 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40378 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40379 fi
40380
40381 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40382 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40383 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40384 fi
40385
40386 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40387 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40388 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40389 fi
40390
40391 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40392 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40393 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40394 fi
40395
ceec2216
RL
40396 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40397 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40398 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40399 fi
40400
a848cd7e
SC
40401 COND_MONOLITHIC_0_SHARED_1="#"
40402 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40403 COND_MONOLITHIC_0_SHARED_1=""
40404 fi
40405
40406 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40407 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40408 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40409 fi
40410
40411 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40412 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40413 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40414 fi
40415
40416 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40417 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40418 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40419 fi
40420
40421 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40422 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40423 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40424 fi
40425
ceec2216
RL
40426 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40427 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40428 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40429 fi
40430
a848cd7e
SC
40431 COND_MONOLITHIC_0_USE_ODBC_1="#"
40432 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40433 COND_MONOLITHIC_0_USE_ODBC_1=""
40434 fi
40435
40436 COND_MONOLITHIC_1="#"
40437 if test "x$MONOLITHIC" = "x1" ; then
40438 COND_MONOLITHIC_1=""
40439 fi
40440
40441 COND_MONOLITHIC_1_SHARED_0="#"
40442 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40443 COND_MONOLITHIC_1_SHARED_0=""
40444 fi
40445
40446 COND_MONOLITHIC_1_SHARED_1="#"
40447 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40448 COND_MONOLITHIC_1_SHARED_1=""
40449 fi
40450
40451 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40452 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40453 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40454 fi
40455
40456 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40457 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40458 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40459 fi
40460
40461 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40462 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40463 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40464 fi
40465
40466 COND_PLATFORM_MACOSX_1="#"
40467 if test "x$PLATFORM_MACOSX" = "x1" ; then
40468 COND_PLATFORM_MACOSX_1=""
40469 fi
40470
a30f955f
VS
40471 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40472 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40473 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40474 fi
40475
a848cd7e
SC
40476 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40477 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40478 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40479 fi
40480
40481 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40482 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40483 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40484 fi
40485
40486 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40487 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40488 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40489 fi
40490
fc480dc1
DE
40491 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
40492 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40493 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
40494 fi
40495
1e9e8aba
DE
40496 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40497 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40498 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40499 fi
40500
ebee3cd0
VS
40501 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40502 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40503 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40504 fi
40505
40506 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40507 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40508 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40509 fi
40510
a848cd7e
SC
40511 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40512 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40513 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40514 fi
40515
40516 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40517 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40518 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40519 fi
40520
b48a2016
DE
40521 COND_PLATFORM_MACOS_1="#"
40522 if test "x$PLATFORM_MACOS" = "x1" ; then
40523 COND_PLATFORM_MACOS_1=""
40524 fi
40525
a848cd7e
SC
40526 COND_PLATFORM_MAC_1="#"
40527 if test "x$PLATFORM_MAC" = "x1" ; then
40528 COND_PLATFORM_MAC_1=""
40529 fi
40530
40531 COND_PLATFORM_OS2_1="#"
40532 if test "x$PLATFORM_OS2" = "x1" ; then
40533 COND_PLATFORM_OS2_1=""
40534 fi
40535
40536 COND_PLATFORM_UNIX_0="#"
40537 if test "x$PLATFORM_UNIX" = "x0" ; then
40538 COND_PLATFORM_UNIX_0=""
40539 fi
40540
40541 COND_PLATFORM_UNIX_1="#"
40542 if test "x$PLATFORM_UNIX" = "x1" ; then
40543 COND_PLATFORM_UNIX_1=""
40544 fi
40545
40546 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40547 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40548 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40549 fi
40550
40551 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40552 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40553 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40554 fi
40555
40556 COND_PLATFORM_WIN32_0="#"
40557 if test "x$PLATFORM_WIN32" = "x0" ; then
40558 COND_PLATFORM_WIN32_0=""
40559 fi
40560
40561 COND_PLATFORM_WIN32_1="#"
40562 if test "x$PLATFORM_WIN32" = "x1" ; then
40563 COND_PLATFORM_WIN32_1=""
40564 fi
40565
40566 COND_SHARED_0="#"
40567 if test "x$SHARED" = "x0" ; then
40568 COND_SHARED_0=""
40569 fi
40570
ceec2216
RL
40571 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40572 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40573 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40574 fi
40575
40576 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40577 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40578 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40579 fi
40580
40581 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40582 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40583 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40584 fi
40585
a848cd7e
SC
40586 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40587 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40588 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40589 fi
40590
40591 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40592 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40593 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40594 fi
40595
40596 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40597 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40598 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40599 fi
40600
40601 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40602 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40603 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40604 fi
40605
40606 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40607 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40608 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40609 fi
40610
40611 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40612 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40613 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40614 fi
40615
40616 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40617 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40618 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40619 fi
40620
40621 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40622 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40623 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40624 fi
40625
40626 COND_SHARED_1="#"
40627 if test "x$SHARED" = "x1" ; then
40628 COND_SHARED_1=""
40629 fi
40630
40631 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40632 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40633 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40634 fi
40635
a30f955f
VS
40636 COND_TOOLKIT_="#"
40637 if test "x$TOOLKIT" = "x" ; then
40638 COND_TOOLKIT_=""
40639 fi
40640
a848cd7e
SC
40641 COND_TOOLKIT_COCOA="#"
40642 if test "x$TOOLKIT" = "xCOCOA" ; then
40643 COND_TOOLKIT_COCOA=""
40644 fi
40645
a49baeab
DE
40646 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40647 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40648 COND_TOOLKIT_COCOA_USE_GUI_1=""
40649 fi
40650
a848cd7e
SC
40651 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40652 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40653 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40654 fi
40655
40656 COND_TOOLKIT_GTK="#"
40657 if test "x$TOOLKIT" = "xGTK" ; then
40658 COND_TOOLKIT_GTK=""
40659 fi
40660
40661 COND_TOOLKIT_GTK_USE_GUI_1="#"
40662 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40663 COND_TOOLKIT_GTK_USE_GUI_1=""
40664 fi
40665
40666 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40667 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40668 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40669 fi
40670
40671 COND_TOOLKIT_MAC="#"
40672 if test "x$TOOLKIT" = "xMAC" ; then
40673 COND_TOOLKIT_MAC=""
40674 fi
40675
40676 COND_TOOLKIT_MAC_USE_GUI_1="#"
40677 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40678 COND_TOOLKIT_MAC_USE_GUI_1=""
40679 fi
40680
40681 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40682 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40683 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40684 fi
40685
40686 COND_TOOLKIT_MGL="#"
40687 if test "x$TOOLKIT" = "xMGL" ; then
40688 COND_TOOLKIT_MGL=""
40689 fi
40690
40691 COND_TOOLKIT_MGL_USE_GUI_1="#"
40692 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40693 COND_TOOLKIT_MGL_USE_GUI_1=""
40694 fi
40695
40696 COND_TOOLKIT_MOTIF="#"
40697 if test "x$TOOLKIT" = "xMOTIF" ; then
40698 COND_TOOLKIT_MOTIF=""
40699 fi
40700
40701 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40702 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40703 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40704 fi
40705
40706 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40707 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40708 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40709 fi
40710
40711 COND_TOOLKIT_MSW="#"
40712 if test "x$TOOLKIT" = "xMSW" ; then
40713 COND_TOOLKIT_MSW=""
40714 fi
40715
40716 COND_TOOLKIT_MSW_USE_GUI_1="#"
40717 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40718 COND_TOOLKIT_MSW_USE_GUI_1=""
40719 fi
40720
40721 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40722 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40723 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40724 fi
40725
40726 COND_TOOLKIT_PM="#"
40727 if test "x$TOOLKIT" = "xPM" ; then
40728 COND_TOOLKIT_PM=""
40729 fi
40730
40731 COND_TOOLKIT_PM_USE_GUI_1="#"
40732 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40733 COND_TOOLKIT_PM_USE_GUI_1=""
40734 fi
40735
40736 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40737 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40738 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40739 fi
40740
3fd9c298
DE
40741 COND_TOOLKIT_WINCE="#"
40742 if test "x$TOOLKIT" = "xWINCE" ; then
40743 COND_TOOLKIT_WINCE=""
40744 fi
40745
40746 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40747 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40748 COND_TOOLKIT_WINCE_USE_GUI_1=""
40749 fi
40750
40751 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40752 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40753 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40754 fi
40755
a848cd7e
SC
40756 COND_TOOLKIT_X11="#"
40757 if test "x$TOOLKIT" = "xX11" ; then
40758 COND_TOOLKIT_X11=""
40759 fi
40760
40761 COND_TOOLKIT_X11_USE_GUI_1="#"
40762 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40763 COND_TOOLKIT_X11_USE_GUI_1=""
40764 fi
40765
40766 COND_UNICODE_1="#"
40767 if test "x$UNICODE" = "x1" ; then
40768 COND_UNICODE_1=""
40769 fi
40770
40771 COND_USE_EXCEPTIONS_0="#"
40772 if test "x$USE_EXCEPTIONS" = "x0" ; then
40773 COND_USE_EXCEPTIONS_0=""
40774 fi
40775
40776 COND_USE_EXCEPTIONS_1="#"
40777 if test "x$USE_EXCEPTIONS" = "x1" ; then
40778 COND_USE_EXCEPTIONS_1=""
40779 fi
40780
40781 COND_USE_GUI_0="#"
40782 if test "x$USE_GUI" = "x0" ; then
40783 COND_USE_GUI_0=""
40784 fi
40785
40786 COND_USE_GUI_1="#"
40787 if test "x$USE_GUI" = "x1" ; then
40788 COND_USE_GUI_1=""
40789 fi
40790
40791 COND_USE_GUI_1_WXUNIV_0="#"
40792 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40793 COND_USE_GUI_1_WXUNIV_0=""
40794 fi
40795
40796 COND_USE_GUI_1_WXUNIV_1="#"
40797 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40798 COND_USE_GUI_1_WXUNIV_1=""
40799 fi
40800
40801 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40802 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40803 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40804 fi
40805
40806 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40807 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40808 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40809 fi
40810
40811 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40812 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40813 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40814 fi
40815
ceec2216
RL
40816 COND_USE_ODBC_1="#"
40817 if test "x$USE_ODBC" = "x1" ; then
40818 COND_USE_ODBC_1=""
40819 fi
40820
ffa0583f
RL
40821 COND_USE_OPENGL_1="#"
40822 if test "x$USE_OPENGL" = "x1" ; then
40823 COND_USE_OPENGL_1=""
40824 fi
40825
a848cd7e
SC
40826 COND_USE_PLUGINS_0="#"
40827 if test "x$USE_PLUGINS" = "x0" ; then
40828 COND_USE_PLUGINS_0=""
40829 fi
40830
40831 COND_USE_SOSYMLINKS_1="#"
40832 if test "x$USE_SOSYMLINKS" = "x1" ; then
40833 COND_USE_SOSYMLINKS_1=""
40834 fi
40835
40836 COND_USE_SOVERLINUX_1="#"
40837 if test "x$USE_SOVERLINUX" = "x1" ; then
40838 COND_USE_SOVERLINUX_1=""
40839 fi
40840
40841 COND_USE_SOVERSION_0="#"
40842 if test "x$USE_SOVERSION" = "x0" ; then
40843 COND_USE_SOVERSION_0=""
40844 fi
40845
40846 COND_USE_SOVERSOLARIS_1="#"
40847 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40848 COND_USE_SOVERSOLARIS_1=""
40849 fi
40850
a13a7f89
RL
40851 COND_USE_XRC_1="#"
40852 if test "x$USE_XRC" = "x1" ; then
40853 COND_USE_XRC_1=""
40854 fi
40855
a848cd7e
SC
40856 COND_WITH_PLUGIN_SDL_1="#"
40857 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40858 COND_WITH_PLUGIN_SDL_1=""
40859 fi
40860
a848cd7e
SC
40861 COND_WXUNIV_1="#"
40862 if test "x$WXUNIV" = "x1" ; then
40863 COND_WXUNIV_1=""
40864 fi
40865
40866 COND_WXUSE_EXPAT_BUILTIN="#"
40867 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40868 COND_WXUSE_EXPAT_BUILTIN=""
40869 fi
40870
40871 COND_WXUSE_LIBJPEG_BUILTIN="#"
40872 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40873 COND_WXUSE_LIBJPEG_BUILTIN=""
40874 fi
40875
40876 COND_WXUSE_LIBPNG_BUILTIN="#"
40877 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40878 COND_WXUSE_LIBPNG_BUILTIN=""
40879 fi
40880
40881 COND_WXUSE_LIBTIFF_BUILTIN="#"
40882 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40883 COND_WXUSE_LIBTIFF_BUILTIN=""
40884 fi
40885
40886 COND_WXUSE_ODBC_BUILTIN="#"
40887 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40888 COND_WXUSE_ODBC_BUILTIN=""
40889 fi
40890
40891 COND_WXUSE_REGEX_BUILTIN="#"
40892 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40893 COND_WXUSE_REGEX_BUILTIN=""
40894 fi
40895
40896 COND_WXUSE_ZLIB_BUILTIN="#"
40897 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40898 COND_WXUSE_ZLIB_BUILTIN=""
40899 fi
40900
dcc1b6ad
VS
40901 COND_BUILD_DEBUG="#"
40902 if test "x$BUILD" = "xdebug" ; then
40903 COND_BUILD_DEBUG=""
40904 fi
40905
40906 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40907 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40908 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40909 fi
40910
40911 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40912 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40913 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40914 fi
40915
40916 COND_BUILD_DEBUG_UNICODE_0="#"
40917 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40918 COND_BUILD_DEBUG_UNICODE_0=""
40919 fi
40920
40921 COND_BUILD_DEBUG_UNICODE_1="#"
40922 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40923 COND_BUILD_DEBUG_UNICODE_1=""
40924 fi
40925
40926 COND_BUILD_RELEASE="#"
40927 if test "x$BUILD" = "xrelease" ; then
40928 COND_BUILD_RELEASE=""
40929 fi
40930
40931 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40932 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40933 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40934 fi
40935
40936 COND_BUILD_RELEASE_UNICODE_0="#"
40937 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40938 COND_BUILD_RELEASE_UNICODE_0=""
40939 fi
40940
40941 COND_BUILD_RELEASE_UNICODE_1="#"
40942 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40943 COND_BUILD_RELEASE_UNICODE_1=""
40944 fi
40945
40946 COND_DEBUG_FLAG_1="#"
40947 if test "x$DEBUG_FLAG" = "x1" ; then
40948 COND_DEBUG_FLAG_1=""
40949 fi
40950
40951 COND_DEBUG_INFO_0="#"
40952 if test "x$DEBUG_INFO" = "x0" ; then
40953 COND_DEBUG_INFO_0=""
40954 fi
40955
40956 COND_DEBUG_INFO_1="#"
40957 if test "x$DEBUG_INFO" = "x1" ; then
40958 COND_DEBUG_INFO_1=""
40959 fi
40960
40961 COND_DEPS_TRACKING_0="#"
40962 if test "x$DEPS_TRACKING" = "x0" ; then
40963 COND_DEPS_TRACKING_0=""
40964 fi
40965
40966 COND_DEPS_TRACKING_1="#"
40967 if test "x$DEPS_TRACKING" = "x1" ; then
40968 COND_DEPS_TRACKING_1=""
40969 fi
40970
40971 COND_GCC_PCH_1="#"
40972 if test "x$GCC_PCH" = "x1" ; then
40973 COND_GCC_PCH_1=""
40974 fi
40975
40976 COND_MONOLITHIC_0="#"
40977 if test "x$MONOLITHIC" = "x0" ; then
40978 COND_MONOLITHIC_0=""
40979 fi
40980
40981 COND_MONOLITHIC_0_SHARED_0="#"
40982 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40983 COND_MONOLITHIC_0_SHARED_0=""
40984 fi
40985
40986 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40987 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40988 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40989 fi
40990
6ab3c239
VZ
40991 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
40992 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40993 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
40994 fi
40995
dcc1b6ad
VS
40996 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40997 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40998 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40999 fi
41000
41001 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
41002 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
41003 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
41004 fi
41005
41006 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41007 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41008 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41009 fi
41010
9a8f0513
VS
41011 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41012 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41013 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41014 fi
41015
dcc1b6ad
VS
41016 COND_MONOLITHIC_0_SHARED_1="#"
41017 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41018 COND_MONOLITHIC_0_SHARED_1=""
41019 fi
41020
41021 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41022 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41023 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41024 fi
41025
6ab3c239
VZ
41026 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
41027 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41028 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
41029 fi
41030
dcc1b6ad
VS
41031 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41032 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41033 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41034 fi
41035
41036 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
41037 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
41038 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
41039 fi
41040
41041 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41042 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41043 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41044 fi
41045
9a8f0513
VS
41046 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41047 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41048 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41049 fi
41050
dcc1b6ad
VS
41051 COND_MONOLITHIC_0_USE_ODBC_1="#"
41052 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41053 COND_MONOLITHIC_0_USE_ODBC_1=""
41054 fi
41055
41056 COND_MONOLITHIC_1="#"
41057 if test "x$MONOLITHIC" = "x1" ; then
41058 COND_MONOLITHIC_1=""
41059 fi
41060
41061 COND_MONOLITHIC_1_SHARED_0="#"
41062 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41063 COND_MONOLITHIC_1_SHARED_0=""
41064 fi
41065
41066 COND_MONOLITHIC_1_SHARED_1="#"
41067 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41068 COND_MONOLITHIC_1_SHARED_1=""
41069 fi
41070
41071 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41072 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41073 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41074 fi
41075
41076 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41077 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41078 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41079 fi
41080
41081 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41082 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41083 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41084 fi
41085
41086 COND_PLATFORM_MACOSX_1="#"
41087 if test "x$PLATFORM_MACOSX" = "x1" ; then
41088 COND_PLATFORM_MACOSX_1=""
41089 fi
41090
6ab3c239
VZ
41091 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41092 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41093 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41094 fi
41095
dcc1b6ad
VS
41096 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41097 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41098 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41099 fi
41100
41101 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41102 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41103 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41104 fi
41105
41106 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41107 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41108 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41109 fi
41110
6ab3c239
VZ
41111 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41112 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41113 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41114 fi
41115
41116 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41117 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41118 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41119 fi
41120
9a8f0513
VS
41121 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41122 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41123 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41124 fi
41125
41126 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41127 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41128 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41129 fi
41130
dcc1b6ad
VS
41131 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41132 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41133 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41134 fi
41135
41136 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41137 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41138 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41139 fi
41140
6ab3c239
VZ
41141 COND_PLATFORM_MACOS_1="#"
41142 if test "x$PLATFORM_MACOS" = "x1" ; then
41143 COND_PLATFORM_MACOS_1=""
41144 fi
41145
dcc1b6ad
VS
41146 COND_PLATFORM_MAC_1="#"
41147 if test "x$PLATFORM_MAC" = "x1" ; then
41148 COND_PLATFORM_MAC_1=""
41149 fi
41150
41151 COND_PLATFORM_OS2_1="#"
41152 if test "x$PLATFORM_OS2" = "x1" ; then
41153 COND_PLATFORM_OS2_1=""
41154 fi
41155
41156 COND_PLATFORM_UNIX_0="#"
41157 if test "x$PLATFORM_UNIX" = "x0" ; then
41158 COND_PLATFORM_UNIX_0=""
41159 fi
41160
41161 COND_PLATFORM_UNIX_1="#"
41162 if test "x$PLATFORM_UNIX" = "x1" ; then
41163 COND_PLATFORM_UNIX_1=""
41164 fi
41165
41166 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41167 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41168 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41169 fi
41170
41171 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41172 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41173 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41174 fi
41175
41176 COND_PLATFORM_WIN32_0="#"
41177 if test "x$PLATFORM_WIN32" = "x0" ; then
41178 COND_PLATFORM_WIN32_0=""
41179 fi
41180
41181 COND_PLATFORM_WIN32_1="#"
41182 if test "x$PLATFORM_WIN32" = "x1" ; then
41183 COND_PLATFORM_WIN32_1=""
41184 fi
41185
41186 COND_SHARED_0="#"
41187 if test "x$SHARED" = "x0" ; then
41188 COND_SHARED_0=""
41189 fi
41190
41191 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41192 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41193 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41194 fi
41195
41196 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41197 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41198 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41199 fi
41200
41201 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41202 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41203 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41204 fi
41205
41206 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41207 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41208 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41209 fi
41210
41211 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41212 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41213 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41214 fi
41215
41216 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41217 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41218 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41219 fi
41220
41221 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41222 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41223 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41224 fi
41225
41226 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41227 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41228 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41229 fi
41230
41231 COND_SHARED_1="#"
41232 if test "x$SHARED" = "x1" ; then
41233 COND_SHARED_1=""
41234 fi
41235
41236 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41237 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41238 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41239 fi
41240
6ab3c239
VZ
41241 COND_TOOLKIT_="#"
41242 if test "x$TOOLKIT" = "x" ; then
41243 COND_TOOLKIT_=""
41244 fi
41245
dcc1b6ad
VS
41246 COND_TOOLKIT_COCOA="#"
41247 if test "x$TOOLKIT" = "xCOCOA" ; then
41248 COND_TOOLKIT_COCOA=""
41249 fi
41250
6ab3c239
VZ
41251 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41252 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41253 COND_TOOLKIT_COCOA_USE_GUI_1=""
41254 fi
41255
dcc1b6ad
VS
41256 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41257 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41258 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41259 fi
41260
41261 COND_TOOLKIT_GTK="#"
41262 if test "x$TOOLKIT" = "xGTK" ; then
41263 COND_TOOLKIT_GTK=""
41264 fi
41265
41266 COND_TOOLKIT_GTK_USE_GUI_1="#"
41267 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41268 COND_TOOLKIT_GTK_USE_GUI_1=""
41269 fi
41270
41271 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41272 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41273 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41274 fi
41275
41276 COND_TOOLKIT_MAC="#"
41277 if test "x$TOOLKIT" = "xMAC" ; then
41278 COND_TOOLKIT_MAC=""
41279 fi
41280
41281 COND_TOOLKIT_MAC_USE_GUI_1="#"
41282 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41283 COND_TOOLKIT_MAC_USE_GUI_1=""
41284 fi
41285
41286 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41287 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41288 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41289 fi
41290
9a8f0513
VS
41291 COND_TOOLKIT_MAC_WXUNIV_0="#"
41292 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41293 COND_TOOLKIT_MAC_WXUNIV_0=""
41294 fi
41295
dcc1b6ad
VS
41296 COND_TOOLKIT_MGL="#"
41297 if test "x$TOOLKIT" = "xMGL" ; then
41298 COND_TOOLKIT_MGL=""
41299 fi
41300
41301 COND_TOOLKIT_MGL_USE_GUI_1="#"
41302 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41303 COND_TOOLKIT_MGL_USE_GUI_1=""
41304 fi
41305
41306 COND_TOOLKIT_MOTIF="#"
41307 if test "x$TOOLKIT" = "xMOTIF" ; then
41308 COND_TOOLKIT_MOTIF=""
41309 fi
41310
41311 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41312 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41313 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41314 fi
41315
41316 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41317 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41318 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41319 fi
41320
41321 COND_TOOLKIT_MSW="#"
41322 if test "x$TOOLKIT" = "xMSW" ; then
41323 COND_TOOLKIT_MSW=""
41324 fi
41325
41326 COND_TOOLKIT_MSW_USE_GUI_1="#"
41327 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41328 COND_TOOLKIT_MSW_USE_GUI_1=""
41329 fi
41330
41331 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41332 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41333 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41334 fi
41335
9a8f0513
VS
41336 COND_TOOLKIT_MSW_WXUNIV_0="#"
41337 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41338 COND_TOOLKIT_MSW_WXUNIV_0=""
41339 fi
41340
dcc1b6ad
VS
41341 COND_TOOLKIT_PM="#"
41342 if test "x$TOOLKIT" = "xPM" ; then
41343 COND_TOOLKIT_PM=""
41344 fi
41345
41346 COND_TOOLKIT_PM_USE_GUI_1="#"
41347 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41348 COND_TOOLKIT_PM_USE_GUI_1=""
41349 fi
41350
41351 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41352 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41353 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41354 fi
41355
9a8f0513
VS
41356 COND_TOOLKIT_PM_WXUNIV_0="#"
41357 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41358 COND_TOOLKIT_PM_WXUNIV_0=""
41359 fi
41360
dcc1b6ad
VS
41361 COND_TOOLKIT_WINCE="#"
41362 if test "x$TOOLKIT" = "xWINCE" ; then
41363 COND_TOOLKIT_WINCE=""
41364 fi
41365
41366 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41367 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41368 COND_TOOLKIT_WINCE_USE_GUI_1=""
41369 fi
41370
41371 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41372 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41373 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41374 fi
41375
41376 COND_TOOLKIT_X11="#"
41377 if test "x$TOOLKIT" = "xX11" ; then
41378 COND_TOOLKIT_X11=""
41379 fi
41380
41381 COND_TOOLKIT_X11_USE_GUI_1="#"
41382 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41383 COND_TOOLKIT_X11_USE_GUI_1=""
41384 fi
41385
41386 COND_UNICODE_1="#"
41387 if test "x$UNICODE" = "x1" ; then
41388 COND_UNICODE_1=""
41389 fi
41390
41391 COND_USE_EXCEPTIONS_0="#"
41392 if test "x$USE_EXCEPTIONS" = "x0" ; then
41393 COND_USE_EXCEPTIONS_0=""
41394 fi
41395
41396 COND_USE_EXCEPTIONS_1="#"
41397 if test "x$USE_EXCEPTIONS" = "x1" ; then
41398 COND_USE_EXCEPTIONS_1=""
41399 fi
41400
41401 COND_USE_GUI_0="#"
41402 if test "x$USE_GUI" = "x0" ; then
41403 COND_USE_GUI_0=""
41404 fi
41405
41406 COND_USE_GUI_1="#"
41407 if test "x$USE_GUI" = "x1" ; then
41408 COND_USE_GUI_1=""
41409 fi
41410
41411 COND_USE_GUI_1_WXUNIV_0="#"
41412 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41413 COND_USE_GUI_1_WXUNIV_0=""
41414 fi
41415
41416 COND_USE_GUI_1_WXUNIV_1="#"
41417 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41418 COND_USE_GUI_1_WXUNIV_1=""
41419 fi
41420
41421 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41422 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41423 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41424 fi
41425
41426 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41427 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41428 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41429 fi
41430
41431 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41432 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41433 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41434 fi
41435
41436 COND_USE_ODBC_1="#"
41437 if test "x$USE_ODBC" = "x1" ; then
41438 COND_USE_ODBC_1=""
41439 fi
41440
41441 COND_USE_PLUGINS_0="#"
41442 if test "x$USE_PLUGINS" = "x0" ; then
41443 COND_USE_PLUGINS_0=""
41444 fi
41445
41446 COND_USE_SOSYMLINKS_1="#"
41447 if test "x$USE_SOSYMLINKS" = "x1" ; then
41448 COND_USE_SOSYMLINKS_1=""
41449 fi
41450
41451 COND_USE_SOVERLINUX_1="#"
41452 if test "x$USE_SOVERLINUX" = "x1" ; then
41453 COND_USE_SOVERLINUX_1=""
41454 fi
41455
41456 COND_USE_SOVERSION_0="#"
41457 if test "x$USE_SOVERSION" = "x0" ; then
41458 COND_USE_SOVERSION_0=""
41459 fi
41460
41461 COND_USE_SOVERSOLARIS_1="#"
41462 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41463 COND_USE_SOVERSOLARIS_1=""
41464 fi
41465
6ab3c239
VZ
41466 COND_USE_XRC_1="#"
41467 if test "x$USE_XRC" = "x1" ; then
41468 COND_USE_XRC_1=""
41469 fi
41470
dcc1b6ad
VS
41471 COND_WITH_PLUGIN_SDL_1="#"
41472 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41473 COND_WITH_PLUGIN_SDL_1=""
41474 fi
41475
41476 COND_WXUNIV_1="#"
41477 if test "x$WXUNIV" = "x1" ; then
41478 COND_WXUNIV_1=""
41479 fi
41480
41481 COND_WXUSE_EXPAT_BUILTIN="#"
41482 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41483 COND_WXUSE_EXPAT_BUILTIN=""
41484 fi
41485
41486 COND_WXUSE_LIBJPEG_BUILTIN="#"
41487 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41488 COND_WXUSE_LIBJPEG_BUILTIN=""
41489 fi
41490
41491 COND_WXUSE_LIBPNG_BUILTIN="#"
41492 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41493 COND_WXUSE_LIBPNG_BUILTIN=""
41494 fi
41495
41496 COND_WXUSE_LIBTIFF_BUILTIN="#"
41497 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41498 COND_WXUSE_LIBTIFF_BUILTIN=""
41499 fi
41500
41501 COND_WXUSE_ODBC_BUILTIN="#"
41502 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41503 COND_WXUSE_ODBC_BUILTIN=""
41504 fi
41505
41506 COND_WXUSE_REGEX_BUILTIN="#"
41507 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41508 COND_WXUSE_REGEX_BUILTIN=""
41509 fi
41510
41511 COND_WXUSE_ZLIB_BUILTIN="#"
41512 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41513 COND_WXUSE_ZLIB_BUILTIN=""
41514 fi
41515
a848cd7e
SC
41516
41517
2057db16
VS
41518 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41519 { { 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
41520echo "$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;}
41521 { (exit 1); exit 1; }; }
41522 fi
41523
a848cd7e 41524
ceec2216
RL
41525if test "$wxUSE_SHARED" = "yes"; then
41526
41527 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41528 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41529
41530else
41531
41532 EXE_LINKER="$CXX -o"
41533
41534fi
a848cd7e 41535
74b84332 41536GCC_PRAGMA_FLAGS=""
a848cd7e 41537if test $GCC_PCH = 1 ; then
74b84332 41538 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41539else
41540 case "${host}" in
41541 powerpc-*-darwin* )
74b84332 41542 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41543 ;;
bea8e651 41544 *-*-mingw32* )
1f344abf
VS
41545 if test "$wxUSE_STL" = "yes" -o \
41546 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41547 "$wxUSE_NO_RTTI" != "yes"; then
41548 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41549echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41550 cat >conftest.$ac_ext <<_ACEOF
41551/* confdefs.h. */
41552_ACEOF
41553cat confdefs.h >>conftest.$ac_ext
41554cat >>conftest.$ac_ext <<_ACEOF
41555/* end confdefs.h. */
41556
3314e67b
RR
41557int
41558main ()
41559{
41560#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41561 #error "Not GCC 3.2 or greater"
41562 #endif
41563
41564 ;
41565 return 0;
41566}
41567_ACEOF
41568rm -f conftest.$ac_objext
41569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41570 (eval $ac_compile) 2>conftest.er1
41571 ac_status=$?
41572 grep -v '^ *+' conftest.er1 >conftest.err
41573 rm -f conftest.er1
41574 cat conftest.err >&5
41575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41576 (exit $ac_status); } &&
5294a27e 41577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
41578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41579 (eval $ac_try) 2>&5
41580 ac_status=$?
41581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41582 (exit $ac_status); }; } &&
41583 { ac_try='test -s conftest.$ac_objext'
41584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41585 (eval $ac_try) 2>&5
41586 ac_status=$?
41587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588 (exit $ac_status); }; }; then
41589 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41590 echo "$as_me:$LINENO: result: yes" >&5
41591echo "${ECHO_T}yes" >&6
41592else
41593 echo "$as_me: failed program was:" >&5
41594sed 's/^/| /' conftest.$ac_ext >&5
41595
41596echo "$as_me:$LINENO: result: no" >&5
41597echo "${ECHO_T}no" >&6
41598fi
41599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41600 fi
41601 ;;
41602 *-pc-os2_emx | *-pc-os2-emx )
41603 if test "$wxUSE_STL" = "yes"; then
41604 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41605echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41606 cat >conftest.$ac_ext <<_ACEOF
41607/* confdefs.h. */
41608_ACEOF
41609cat confdefs.h >>conftest.$ac_ext
41610cat >>conftest.$ac_ext <<_ACEOF
41611/* end confdefs.h. */
41612
bea8e651
MB
41613int
41614main ()
41615{
1f344abf 41616#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41617 #error "Not GCC 3.2 or greater"
41618 #endif
41619
41620 ;
41621 return 0;
41622}
41623_ACEOF
41624rm -f conftest.$ac_objext
41625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41626 (eval $ac_compile) 2>conftest.er1
bea8e651 41627 ac_status=$?
ac1cb8d3
VS
41628 grep -v '^ *+' conftest.er1 >conftest.err
41629 rm -f conftest.er1
41630 cat conftest.err >&5
bea8e651
MB
41631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632 (exit $ac_status); } &&
5294a27e 41633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41635 (eval $ac_try) 2>&5
41636 ac_status=$?
41637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638 (exit $ac_status); }; } &&
41639 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41641 (eval $ac_try) 2>&5
41642 ac_status=$?
41643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644 (exit $ac_status); }; }; then
74b84332 41645 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41646 echo "$as_me:$LINENO: result: yes" >&5
41647echo "${ECHO_T}yes" >&6
41648else
41649 echo "$as_me: failed program was:" >&5
41650sed 's/^/| /' conftest.$ac_ext >&5
41651
41652echo "$as_me:$LINENO: result: no" >&5
41653echo "${ECHO_T}no" >&6
41654fi
ac1cb8d3 41655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41656 fi
41657 ;;
a848cd7e
SC
41658 esac
41659fi
74b84332 41660CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41661
41662
41663SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41664
41665
41666
41667
41668
41669
41670
41671
41672
41673
41674
41675
41676
41677
41678
41679
41680
41681
41682
41683
41684
41685
41686
41687
41688
41689
41690
41691
41692
41693
41694
41695
41696
41697
41698
41699
41700
41701
41702
41703
41704
41705
a848cd7e
SC
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
74b84332 41724
a848cd7e
SC
41725
41726
41727echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41728echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41729set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41730if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41731 echo $ECHO_N "(cached) $ECHO_C" >&6
41732else
41733 cat >conftest.make <<\_ACEOF
41734all:
41735 @echo 'ac_maketemp="$(MAKE)"'
41736_ACEOF
41737# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41738eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41739if test -n "$ac_maketemp"; then
41740 eval ac_cv_prog_make_${ac_make}_set=yes
41741else
41742 eval ac_cv_prog_make_${ac_make}_set=no
41743fi
41744rm -f conftest.make
41745fi
41746if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41747 echo "$as_me:$LINENO: result: yes" >&5
41748echo "${ECHO_T}yes" >&6
41749 SET_MAKE=
41750else
41751 echo "$as_me:$LINENO: result: no" >&5
41752echo "${ECHO_T}no" >&6
41753 SET_MAKE="MAKE=${MAKE-make}"
41754fi
41755
41756
a848cd7e 41757
ceec2216
RL
41758 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41759
a848cd7e 41760
ceec2216 41761 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41762
a848cd7e 41763
ceec2216 41764 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41765
ceec2216
RL
41766
41767 ac_config_files="$ac_config_files version-script Makefile"
41768
41769
41770 ac_config_commands="$ac_config_commands wx-config
41771 "
a848cd7e
SC
41772
41773
9103d280
RL
41774
41775
a848cd7e
SC
41776if test "$wxUSE_GUI" = "yes"; then
41777 SUBDIRS="samples demos utils contrib"
41778else SUBDIRS="samples utils"
41779fi
41780
41781
41782
41783# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41784if test "${with_cppunit_prefix+set}" = set; then
41785 withval="$with_cppunit_prefix"
41786 cppunit_config_prefix="$withval"
41787else
41788 cppunit_config_prefix=""
41789fi;
41790
41791# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41792if test "${with_cppunit_exec_prefix+set}" = set; then
41793 withval="$with_cppunit_exec_prefix"
41794 cppunit_config_exec_prefix="$withval"
41795else
41796 cppunit_config_exec_prefix=""
41797fi;
41798
41799 if test x$cppunit_config_exec_prefix != x ; then
41800 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41801 if test x${CPPUNIT_CONFIG+set} != xset ; then
41802 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41803 fi
41804 fi
41805 if test x$cppunit_config_prefix != x ; then
41806 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41807 if test x${CPPUNIT_CONFIG+set} != xset ; then
41808 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41809 fi
41810 fi
41811
41812 # Extract the first word of "cppunit-config", so it can be a program name with args.
41813set dummy cppunit-config; ac_word=$2
41814echo "$as_me:$LINENO: checking for $ac_word" >&5
41815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41816if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41817 echo $ECHO_N "(cached) $ECHO_C" >&6
41818else
41819 case $CPPUNIT_CONFIG in
41820 [\\/]* | ?:[\\/]*)
41821 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41822 ;;
41823 *)
41824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41825for as_dir in $PATH
41826do
41827 IFS=$as_save_IFS
41828 test -z "$as_dir" && as_dir=.
41829 for ac_exec_ext in '' $ac_executable_extensions; do
41830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41831 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41833 break 2
41834 fi
41835done
41836done
41837
41838 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41839 ;;
41840esac
41841fi
41842CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41843
41844if test -n "$CPPUNIT_CONFIG"; then
41845 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41846echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41847else
41848 echo "$as_me:$LINENO: result: no" >&5
41849echo "${ECHO_T}no" >&6
41850fi
41851
41852 cppunit_version_min=1.8.0
41853
41854 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41855echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41856 no_cppunit=""
41857 if test "$CPPUNIT_CONFIG" = "no" ; then
41858 no_cppunit=yes
41859 else
41860 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41861 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41862 cppunit_version=`$CPPUNIT_CONFIG --version`
41863
41864 cppunit_major_version=`echo $cppunit_version | \
41865 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41866 cppunit_minor_version=`echo $cppunit_version | \
41867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41868 cppunit_micro_version=`echo $cppunit_version | \
41869 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41870
41871 cppunit_major_min=`echo $cppunit_version_min | \
41872 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41873 cppunit_minor_min=`echo $cppunit_version_min | \
41874 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41875 cppunit_micro_min=`echo $cppunit_version_min | \
41876 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41877
41878 cppunit_version_proper=`expr \
41879 $cppunit_major_version \> $cppunit_major_min \| \
41880 $cppunit_major_version \= $cppunit_major_min \& \
41881 $cppunit_minor_version \> $cppunit_minor_min \| \
41882 $cppunit_major_version \= $cppunit_major_min \& \
41883 $cppunit_minor_version \= $cppunit_minor_min \& \
41884 $cppunit_micro_version \>= $cppunit_micro_min `
41885
41886 if test "$cppunit_version_proper" = "1" ; then
41887 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41888echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41889 else
41890 echo "$as_me:$LINENO: result: no" >&5
41891echo "${ECHO_T}no" >&6
41892 no_cppunit=yes
41893 fi
41894 fi
41895
41896 if test "x$no_cppunit" = x ; then
c2218763 41897 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41898 else
41899 CPPUNIT_CFLAGS=""
41900 CPPUNIT_LIBS=""
c2218763 41901 :
a848cd7e
SC
41902 fi
41903
41904
41905
41906
41907
41908for subdir in `echo $SUBDIRS`; do
41909 if test -d ${srcdir}/${subdir} ; then
41910 if test "$wxUSE_GUI" = "yes"; then
41911 if test ${subdir} = "samples"; then
41912 makefiles="samples/Makefile.in $makefiles"
41913 for sample in `echo $SAMPLES_SUBDIRS`; do
41914 if test -d $srcdir/samples/$sample; then
41915 makefiles="samples/$sample/Makefile.in $makefiles"
41916 fi
41917 done
41918 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41919 fi
41920 else if test ${subdir} = "samples"; then
41921 makefiles="samples/Makefile.in samples/console/Makefile.in"
41922 elif test ${subdir} = "utils"; then
6537ccf8
VS
41923 makefiles=""
41924 for util in HelpGen tex2rtf ; do
41925 if test -d $srcdir/utils/$util ; then
41926 makefiles="utils/$util/Makefile.in \
41927 utils/$util/src/Makefile.in \
41928 $makefiles"
41929 fi
41930 done
a848cd7e
SC
41931 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41932 fi
41933 fi
41934
41935 for mkin in $makefiles ; do
41936 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41937 ac_config_files="$ac_config_files $mk"
41938
41939 done
41940 fi
41941done
41942
41943
41944cat >confcache <<\_ACEOF
41945# This file is a shell script that caches the results of configure
41946# tests run on this system so they can be shared between configure
41947# scripts and configure runs, see configure's option --config-cache.
41948# It is not useful on other systems. If it contains results you don't
41949# want to keep, you may remove or edit it.
41950#
41951# config.status only pays attention to the cache file if you give it
41952# the --recheck option to rerun configure.
41953#
41954# `ac_cv_env_foo' variables (set or unset) will be overridden when
41955# loading this file, other *unset* `ac_cv_foo' will be assigned the
41956# following values.
41957
41958_ACEOF
41959
41960# The following way of writing the cache mishandles newlines in values,
41961# but we know of no workaround that is simple, portable, and efficient.
41962# So, don't put newlines in cache variables' values.
41963# Ultrix sh set writes to stderr and can't be redirected directly,
41964# and sets the high bit in the cache file unless we assign to the vars.
41965{
41966 (set) 2>&1 |
41967 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41968 *ac_space=\ *)
41969 # `set' does not quote correctly, so add quotes (double-quote
41970 # substitution turns \\\\ into \\, and sed turns \\ into \).
41971 sed -n \
ac1cb8d3
VS
41972 "s/'/'\\\\''/g;
41973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41974 ;;
41975 *)
41976 # `set' quotes correctly as required by POSIX, so do not add quotes.
41977 sed -n \
ac1cb8d3 41978 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41979 ;;
41980 esac;
41981} |
41982 sed '
41983 t clear
41984 : clear
41985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41986 t end
41987 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41988 : end' >>confcache
41989if diff $cache_file confcache >/dev/null 2>&1; then :; else
41990 if test -w $cache_file; then
41991 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41992 cat confcache >$cache_file
41993 else
41994 echo "not updating unwritable cache $cache_file"
41995 fi
41996fi
41997rm -f confcache
41998
41999test "x$prefix" = xNONE && prefix=$ac_default_prefix
42000# Let make expand exec_prefix.
42001test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42002
42003# VPATH may cause trouble with some makes, so we remove $(srcdir),
42004# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42005# trailing colons and then remove the whole line if VPATH becomes empty
42006# (actually we leave an empty line to preserve line numbers).
42007if test "x$srcdir" = x.; then
ac1cb8d3 42008 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42009s/:*\$(srcdir):*/:/;
42010s/:*\${srcdir}:*/:/;
42011s/:*@srcdir@:*/:/;
ac1cb8d3 42012s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42013s/:*$//;
ac1cb8d3 42014s/^[^=]*=[ ]*$//;
a848cd7e
SC
42015}'
42016fi
42017
42018DEFS=-DHAVE_CONFIG_H
42019
42020ac_libobjs=
42021ac_ltlibobjs=
42022for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42023 # 1. Remove the extension, and $U if already installed.
42024 ac_i=`echo "$ac_i" |
ac1cb8d3 42025 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42026 # 2. Add them.
42027 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42028 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42029done
42030LIBOBJS=$ac_libobjs
42031
42032LTLIBOBJS=$ac_ltlibobjs
42033
42034
42035
42036: ${CONFIG_STATUS=./config.status}
42037ac_clean_files_save=$ac_clean_files
42038ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42039{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42040echo "$as_me: creating $CONFIG_STATUS" >&6;}
42041cat >$CONFIG_STATUS <<_ACEOF
42042#! $SHELL
42043# Generated by $as_me.
42044# Run this file to recreate the current configuration.
42045# Compiler output produced by configure, useful for debugging
42046# configure, is in config.log if it exists.
42047
42048debug=false
42049ac_cs_recheck=false
42050ac_cs_silent=false
42051SHELL=\${CONFIG_SHELL-$SHELL}
42052_ACEOF
42053
42054cat >>$CONFIG_STATUS <<\_ACEOF
42055## --------------------- ##
42056## M4sh Initialization. ##
42057## --------------------- ##
42058
42059# Be Bourne compatible
42060if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42061 emulate sh
42062 NULLCMD=:
42063 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42064 # is contrary to our usage. Disable this feature.
42065 alias -g '${1+"$@"}'='"$@"'
42066elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42067 set -o posix
42068fi
ac1cb8d3 42069DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42070
42071# Support unset when possible.
ac1cb8d3 42072if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42073 as_unset=unset
42074else
42075 as_unset=false
42076fi
42077
42078
42079# Work around bugs in pre-3.0 UWIN ksh.
42080$as_unset ENV MAIL MAILPATH
42081PS1='$ '
42082PS2='> '
42083PS4='+ '
42084
42085# NLS nuisances.
42086for as_var in \
42087 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42088 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42089 LC_TELEPHONE LC_TIME
42090do
ac1cb8d3 42091 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42092 eval $as_var=C; export $as_var
42093 else
42094 $as_unset $as_var
42095 fi
42096done
42097
42098# Required to use basename.
42099if expr a : '\(a\)' >/dev/null 2>&1; then
42100 as_expr=expr
42101else
42102 as_expr=false
42103fi
42104
42105if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42106 as_basename=basename
42107else
42108 as_basename=false
42109fi
42110
42111
42112# Name of the executable.
42113as_me=`$as_basename "$0" ||
42114$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42115 X"$0" : 'X\(//\)$' \| \
42116 X"$0" : 'X\(/\)$' \| \
42117 . : '\(.\)' 2>/dev/null ||
42118echo X/"$0" |
42119 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42120 /^X\/\(\/\/\)$/{ s//\1/; q; }
42121 /^X\/\(\/\).*/{ s//\1/; q; }
42122 s/.*/./; q'`
42123
42124
42125# PATH needs CR, and LINENO needs CR and PATH.
42126# Avoid depending upon Character Ranges.
42127as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42129as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42130as_cr_digits='0123456789'
42131as_cr_alnum=$as_cr_Letters$as_cr_digits
42132
42133# The user is always right.
42134if test "${PATH_SEPARATOR+set}" != set; then
42135 echo "#! /bin/sh" >conf$$.sh
42136 echo "exit 0" >>conf$$.sh
42137 chmod +x conf$$.sh
42138 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42139 PATH_SEPARATOR=';'
42140 else
42141 PATH_SEPARATOR=:
42142 fi
42143 rm -f conf$$.sh
42144fi
42145
42146
42147 as_lineno_1=$LINENO
42148 as_lineno_2=$LINENO
42149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42150 test "x$as_lineno_1" != "x$as_lineno_2" &&
42151 test "x$as_lineno_3" = "x$as_lineno_2" || {
42152 # Find who we are. Look in the path if we contain no path at all
42153 # relative or not.
42154 case $0 in
42155 *[\\/]* ) as_myself=$0 ;;
42156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42157for as_dir in $PATH
42158do
42159 IFS=$as_save_IFS
42160 test -z "$as_dir" && as_dir=.
42161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42162done
42163
42164 ;;
42165 esac
42166 # We did not find ourselves, most probably we were run as `sh COMMAND'
42167 # in which case we are not to be found in the path.
42168 if test "x$as_myself" = x; then
42169 as_myself=$0
42170 fi
42171 if test ! -f "$as_myself"; then
42172 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42173echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42174 { (exit 1); exit 1; }; }
42175 fi
42176 case $CONFIG_SHELL in
42177 '')
42178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42179for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42180do
42181 IFS=$as_save_IFS
42182 test -z "$as_dir" && as_dir=.
42183 for as_base in sh bash ksh sh5; do
42184 case $as_dir in
42185 /*)
42186 if ("$as_dir/$as_base" -c '
42187 as_lineno_1=$LINENO
42188 as_lineno_2=$LINENO
42189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42190 test "x$as_lineno_1" != "x$as_lineno_2" &&
42191 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42192 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42193 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42194 CONFIG_SHELL=$as_dir/$as_base
42195 export CONFIG_SHELL
42196 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42197 fi;;
42198 esac
42199 done
42200done
42201;;
42202 esac
42203
42204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42205 # uniformly replaced by the line number. The first 'sed' inserts a
42206 # line-number line before each line; the second 'sed' does the real
42207 # work. The second script uses 'N' to pair each line-number line
42208 # with the numbered line, and appends trailing '-' during
42209 # substitution so that $LINENO is not a special case at line end.
42210 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42211 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42212 sed '=' <$as_myself |
42213 sed '
42214 N
42215 s,$,-,
42216 : loop
42217 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42218 t loop
42219 s,-$,,
42220 s,^['$as_cr_digits']*\n,,
42221 ' >$as_me.lineno &&
42222 chmod +x $as_me.lineno ||
42223 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42224echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42225 { (exit 1); exit 1; }; }
42226
42227 # Don't try to exec as it changes $[0], causing all sort of problems
42228 # (the dirname of $[0] is not the place where we might find the
42229 # original and so on. Autoconf is especially sensible to this).
42230 . ./$as_me.lineno
42231 # Exit status is that of the last command.
42232 exit
42233}
42234
42235
42236case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42237 *c*,-n*) ECHO_N= ECHO_C='
42238' ECHO_T=' ' ;;
42239 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42240 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42241esac
42242
42243if expr a : '\(a\)' >/dev/null 2>&1; then
42244 as_expr=expr
42245else
42246 as_expr=false
42247fi
42248
42249rm -f conf$$ conf$$.exe conf$$.file
42250echo >conf$$.file
42251if ln -s conf$$.file conf$$ 2>/dev/null; then
42252 # We could just check for DJGPP; but this test a) works b) is more generic
42253 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42254 if test -f conf$$.exe; then
42255 # Don't use ln at all; we don't have any links
42256 as_ln_s='cp -p'
42257 else
42258 as_ln_s='ln -s'
42259 fi
42260elif ln conf$$.file conf$$ 2>/dev/null; then
42261 as_ln_s=ln
42262else
42263 as_ln_s='cp -p'
42264fi
42265rm -f conf$$ conf$$.exe conf$$.file
42266
42267if mkdir -p . 2>/dev/null; then
42268 as_mkdir_p=:
42269else
ac1cb8d3 42270 test -d ./-p && rmdir ./-p
a848cd7e
SC
42271 as_mkdir_p=false
42272fi
42273
42274as_executable_p="test -f"
42275
42276# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42277as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42278
42279# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42280as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42281
42282
42283# IFS
42284# We need space, tab and new line, in precisely that order.
42285as_nl='
42286'
42287IFS=" $as_nl"
42288
42289# CDPATH.
42290$as_unset CDPATH
42291
42292exec 6>&1
42293
42294# Open the log real soon, to keep \$[0] and so on meaningful, and to
42295# report actual input values of CONFIG_FILES etc. instead of their
42296# values after options handling. Logging --version etc. is OK.
42297exec 5>>config.log
42298{
42299 echo
42300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42301## Running $as_me. ##
42302_ASBOX
42303} >&5
42304cat >&5 <<_CSEOF
42305
7714864e 42306This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42307generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42308
42309 CONFIG_FILES = $CONFIG_FILES
42310 CONFIG_HEADERS = $CONFIG_HEADERS
42311 CONFIG_LINKS = $CONFIG_LINKS
42312 CONFIG_COMMANDS = $CONFIG_COMMANDS
42313 $ $0 $@
42314
42315_CSEOF
42316echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42317echo >&5
42318_ACEOF
42319
42320# Files that config.status was made for.
42321if test -n "$ac_config_files"; then
42322 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42323fi
42324
42325if test -n "$ac_config_headers"; then
42326 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42327fi
42328
42329if test -n "$ac_config_links"; then
42330 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42331fi
42332
42333if test -n "$ac_config_commands"; then
42334 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42335fi
42336
42337cat >>$CONFIG_STATUS <<\_ACEOF
42338
42339ac_cs_usage="\
42340\`$as_me' instantiates files from templates according to the
42341current configuration.
42342
42343Usage: $0 [OPTIONS] [FILE]...
42344
42345 -h, --help print this help, then exit
42346 -V, --version print version number, then exit
42347 -q, --quiet do not print progress messages
42348 -d, --debug don't remove temporary files
42349 --recheck update $as_me by reconfiguring in the same conditions
42350 --file=FILE[:TEMPLATE]
ac1cb8d3 42351 instantiate the configuration file FILE
a848cd7e 42352 --header=FILE[:TEMPLATE]
ac1cb8d3 42353 instantiate the configuration header FILE
a848cd7e
SC
42354
42355Configuration files:
42356$config_files
42357
42358Configuration headers:
42359$config_headers
42360
42361Configuration commands:
42362$config_commands
42363
42364Report bugs to <bug-autoconf@gnu.org>."
42365_ACEOF
42366
42367cat >>$CONFIG_STATUS <<_ACEOF
42368ac_cs_version="\\
7714864e 42369wxWidgets config.status 2.5.3
ac1cb8d3 42370configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42371 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42372
ac1cb8d3 42373Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42374This config.status script is free software; the Free Software Foundation
42375gives unlimited permission to copy, distribute and modify it."
42376srcdir=$srcdir
42377INSTALL="$INSTALL"
42378_ACEOF
42379
42380cat >>$CONFIG_STATUS <<\_ACEOF
42381# If no file are specified by the user, then we need to provide default
42382# value. By we need to know if files were specified by the user.
42383ac_need_defaults=:
42384while test $# != 0
42385do
42386 case $1 in
42387 --*=*)
42388 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42389 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42390 ac_shift=:
42391 ;;
42392 -*)
42393 ac_option=$1
42394 ac_optarg=$2
42395 ac_shift=shift
42396 ;;
42397 *) # This is not an option, so the user has probably given explicit
42398 # arguments.
42399 ac_option=$1
42400 ac_need_defaults=false;;
42401 esac
42402
42403 case $ac_option in
42404 # Handling of the options.
42405_ACEOF
42406cat >>$CONFIG_STATUS <<\_ACEOF
42407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42408 ac_cs_recheck=: ;;
42409 --version | --vers* | -V )
42410 echo "$ac_cs_version"; exit 0 ;;
42411 --he | --h)
42412 # Conflict between --help and --header
42413 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42414Try \`$0 --help' for more information." >&5
42415echo "$as_me: error: ambiguous option: $1
42416Try \`$0 --help' for more information." >&2;}
42417 { (exit 1); exit 1; }; };;
42418 --help | --hel | -h )
42419 echo "$ac_cs_usage"; exit 0 ;;
42420 --debug | --d* | -d )
42421 debug=: ;;
42422 --file | --fil | --fi | --f )
42423 $ac_shift
42424 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42425 ac_need_defaults=false;;
42426 --header | --heade | --head | --hea )
42427 $ac_shift
42428 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42429 ac_need_defaults=false;;
42430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42431 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42432 ac_cs_silent=: ;;
42433
42434 # This is an error.
42435 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42436Try \`$0 --help' for more information." >&5
42437echo "$as_me: error: unrecognized option: $1
42438Try \`$0 --help' for more information." >&2;}
42439 { (exit 1); exit 1; }; } ;;
42440
42441 *) ac_config_targets="$ac_config_targets $1" ;;
42442
42443 esac
42444 shift
42445done
42446
42447ac_configure_extra_args=
42448
42449if $ac_cs_silent; then
42450 exec 6>/dev/null
42451 ac_configure_extra_args="$ac_configure_extra_args --silent"
42452fi
42453
42454_ACEOF
42455cat >>$CONFIG_STATUS <<_ACEOF
42456if \$ac_cs_recheck; then
42457 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42458 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42459fi
42460
42461_ACEOF
42462
42463cat >>$CONFIG_STATUS <<_ACEOF
42464#
42465# INIT-COMMANDS section.
42466#
42467
ceec2216
RL
42468 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42469 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42470 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42471 LN_S="${LN_S}"
a848cd7e
SC
42472
42473
42474_ACEOF
42475
42476
42477
42478cat >>$CONFIG_STATUS <<\_ACEOF
42479for ac_config_target in $ac_config_targets
42480do
42481 case "$ac_config_target" in
42482 # Handling of arguments.
ceec2216
RL
42483 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42484 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42485 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42486 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42487 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42488 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42489 "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
42490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42491echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42492 { (exit 1); exit 1; }; };;
42493 esac
42494done
42495
42496# If the user did not use the arguments to specify the items to instantiate,
42497# then the envvar interface is used. Set only those that are not.
42498# We use the long form for the default assignment because of an extremely
42499# bizarre bug on SunOS 4.1.3.
42500if $ac_need_defaults; then
42501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42504fi
42505
42506# Have a temporary directory for convenience. Make it in the build tree
42507# simply because there is no reason to put it here, and in addition,
42508# creating and moving files from /tmp can sometimes cause problems.
42509# Create a temporary directory, and hook for its removal unless debugging.
42510$debug ||
42511{
42512 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42513 trap '{ (exit 1); exit 1; }' 1 2 13 15
42514}
42515
42516# Create a (secure) tmp directory for tmp files.
42517
42518{
42519 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42520 test -n "$tmp" && test -d "$tmp"
42521} ||
42522{
42523 tmp=./confstat$$-$RANDOM
42524 (umask 077 && mkdir $tmp)
42525} ||
42526{
42527 echo "$me: cannot create a temporary directory in ." >&2
42528 { (exit 1); exit 1; }
42529}
42530
42531_ACEOF
42532
42533cat >>$CONFIG_STATUS <<_ACEOF
42534
42535#
42536# CONFIG_FILES section.
42537#
42538
42539# No need to generate the scripts if there are no CONFIG_FILES.
42540# This happens for instance when ./config.status config.h
42541if test -n "\$CONFIG_FILES"; then
42542 # Protect against being on the right side of a sed subst in config.status.
42543 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42544 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42545s,@SHELL@,$SHELL,;t t
42546s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42547s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42548s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42549s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42550s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42551s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42552s,@exec_prefix@,$exec_prefix,;t t
42553s,@prefix@,$prefix,;t t
42554s,@program_transform_name@,$program_transform_name,;t t
42555s,@bindir@,$bindir,;t t
42556s,@sbindir@,$sbindir,;t t
42557s,@libexecdir@,$libexecdir,;t t
42558s,@datadir@,$datadir,;t t
42559s,@sysconfdir@,$sysconfdir,;t t
42560s,@sharedstatedir@,$sharedstatedir,;t t
42561s,@localstatedir@,$localstatedir,;t t
42562s,@libdir@,$libdir,;t t
42563s,@includedir@,$includedir,;t t
42564s,@oldincludedir@,$oldincludedir,;t t
42565s,@infodir@,$infodir,;t t
42566s,@mandir@,$mandir,;t t
42567s,@build_alias@,$build_alias,;t t
42568s,@host_alias@,$host_alias,;t t
42569s,@target_alias@,$target_alias,;t t
42570s,@DEFS@,$DEFS,;t t
42571s,@ECHO_C@,$ECHO_C,;t t
42572s,@ECHO_N@,$ECHO_N,;t t
42573s,@ECHO_T@,$ECHO_T,;t t
42574s,@LIBS@,$LIBS,;t t
42575s,@build@,$build,;t t
42576s,@build_cpu@,$build_cpu,;t t
42577s,@build_vendor@,$build_vendor,;t t
42578s,@build_os@,$build_os,;t t
42579s,@host@,$host,;t t
42580s,@host_cpu@,$host_cpu,;t t
42581s,@host_vendor@,$host_vendor,;t t
42582s,@host_os@,$host_os,;t t
42583s,@target@,$target,;t t
42584s,@target_cpu@,$target_cpu,;t t
42585s,@target_vendor@,$target_vendor,;t t
42586s,@target_os@,$target_os,;t t
42587s,@CC@,$CC,;t t
42588s,@CFLAGS@,$CFLAGS,;t t
42589s,@LDFLAGS@,$LDFLAGS,;t t
42590s,@CPPFLAGS@,$CPPFLAGS,;t t
42591s,@ac_ct_CC@,$ac_ct_CC,;t t
42592s,@EXEEXT@,$EXEEXT,;t t
42593s,@OBJEXT@,$OBJEXT,;t t
42594s,@CPP@,$CPP,;t t
42595s,@EGREP@,$EGREP,;t t
42596s,@CXX@,$CXX,;t t
42597s,@CXXFLAGS@,$CXXFLAGS,;t t
42598s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42599s,@RANLIB@,$RANLIB,;t t
42600s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42601s,@AR@,$AR,;t t
42602s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42603s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42604s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42605s,@STRIP@,$STRIP,;t t
42606s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42607s,@LN_S@,$LN_S,;t t
42608s,@CXXCPP@,$CXXCPP,;t t
42609s,@subdirs@,$subdirs,;t t
42610s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42611s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42612s,@GTK_LIBS@,$GTK_LIBS,;t t
42613s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42614s,@X_CFLAGS@,$X_CFLAGS,;t t
42615s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42616s,@X_LIBS@,$X_LIBS,;t t
42617s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42618s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42619s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42620s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42621s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42622s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42623s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42624s,@RESCOMP@,$RESCOMP,;t t
42625s,@DEREZ@,$DEREZ,;t t
42626s,@SETFILE@,$SETFILE,;t t
42627s,@LIBICONV@,$LIBICONV,;t t
42628s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42629s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42630s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42631s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42632s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42633s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42634s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42635s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42636s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42637s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42638s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42639s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42640s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42641s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42642s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42643s,@VENDOR@,$VENDOR,;t t
42644s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42645s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42646s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42647s,@WXUNIV@,$WXUNIV,;t t
42648s,@MONOLITHIC@,$MONOLITHIC,;t t
42649s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42650s,@EXTRALIBS@,$EXTRALIBS,;t t
42651s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42652s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42653s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42654s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42655s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42656s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42657s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42658s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42659s,@UNICODE@,$UNICODE,;t t
42660s,@BUILD@,$BUILD,;t t
42661s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42662s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42663s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42664s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42665s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42666s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42667s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42668s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42669s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42670s,@SET_MAKE@,$SET_MAKE,;t t
42671s,@MAKE_SET@,$MAKE_SET,;t t
42672s,@ac_ct_AR@,$ac_ct_AR,;t t
42673s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42674s,@NM@,$NM,;t t
42675s,@ac_ct_NM@,$ac_ct_NM,;t t
42676s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42677s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42678s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42679s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42680s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42681s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42682s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42683s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42684s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42685s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42686s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42687s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42688s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42689s,@LIBPREFIX@,$LIBPREFIX,;t t
42690s,@LIBEXT@,$LIBEXT,;t t
42691s,@DLLPREFIX@,$DLLPREFIX,;t t
42692s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42693s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42694s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42695s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42696s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42697s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42698s,@PIC_FLAG@,$PIC_FLAG,;t t
42699s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42700s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42701s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42702s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42703s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42704s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42705s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42706s,@GCC_PCH@,$GCC_PCH,;t t
42707s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42708s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42709s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42710s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42711s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42712s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42713s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42714s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42715s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42716s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42717s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42718s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42719s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42720s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42721s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42722s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42723s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42724s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42725s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42726s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42727s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42728s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42729s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42730s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42731s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42732s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42733s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42734s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42735s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42736s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42737s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42738s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42739s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42740s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42741s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42742s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42743s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42744s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42745s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42746s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 42747s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 42748s,@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
42749s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42750s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42751s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42752s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42753s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42754s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42755s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42756s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42757s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42758s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42759s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42760s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42761s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42762s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42763s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42764s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42765s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42766s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42767s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42768s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42769s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42770s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42771s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42772s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42773s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42774s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42775s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42776s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42777s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42778s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42779s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42780s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42781s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42782s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42783s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42784s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42785s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42786s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42787s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42788s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42789s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42790s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42791s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42792s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42793s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42794s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42795s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42796s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42797s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42798s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42799s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42800s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42801s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42802s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42803s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42804s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42805s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42806s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42807s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42808s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42809s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42810s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42811s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42812s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42813s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42814s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42815s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42816s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42817s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42818s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42819s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42820s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42821s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42822s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42823s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42824s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42825s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42826s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42827s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42828s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
6ab3c239
VZ
42829s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
42830s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
9a8f0513
VS
42831s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42832s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42833s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42834s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42835s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42836s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42837s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42838s,@USE_GUI@,$USE_GUI,;t t
42839s,@AFMINSTALL@,$AFMINSTALL,;t t
42840s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42841s,@TOOLKIT@,$TOOLKIT,;t t
42842s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42843s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42844s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42845s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42846s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42847s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42848s,@WIDGET_SET@,$WIDGET_SET,;t t
42849s,@WX_RELEASE@,$WX_RELEASE,;t t
42850s,@WX_VERSION@,$WX_VERSION,;t t
42851s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42852s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42853s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42854s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42855s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42856s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42857s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42858s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42859s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42860s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42861s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42862s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42863s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42864s,@DISTDIR@,$DISTDIR,;t t
42865s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42866s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42867s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42868s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42869s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42870s,@RESFLAGS@,$RESFLAGS,;t t
42871s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42872s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42873s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42874s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42875s,@MACRESCOMP@,$MACRESCOMP,;t t
42876s,@MACSETFILE@,$MACSETFILE,;t t
42877s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42878s,@GCC@,$GCC,;t t
a848cd7e 42879s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42880s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42881s,@LIBOBJS@,$LIBOBJS,;t t
42882s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42883CEOF
42884
42885_ACEOF
42886
42887 cat >>$CONFIG_STATUS <<\_ACEOF
42888 # Split the substitutions into bite-sized pieces for seds with
42889 # small command number limits, like on Digital OSF/1 and HP-UX.
42890 ac_max_sed_lines=48
42891 ac_sed_frag=1 # Number of current file.
42892 ac_beg=1 # First line for current file.
42893 ac_end=$ac_max_sed_lines # Line after last line for current file.
42894 ac_more_lines=:
42895 ac_sed_cmds=
42896 while $ac_more_lines; do
42897 if test $ac_beg -gt 1; then
42898 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42899 else
42900 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42901 fi
42902 if test ! -s $tmp/subs.frag; then
42903 ac_more_lines=false
42904 else
42905 # The purpose of the label and of the branching condition is to
42906 # speed up the sed processing (if there are no `@' at all, there
42907 # is no need to browse any of the substitutions).
42908 # These are the two extra sed commands mentioned above.
42909 (echo ':t
42910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42911 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42912 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42913 else
ac1cb8d3 42914 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42915 fi
42916 ac_sed_frag=`expr $ac_sed_frag + 1`
42917 ac_beg=$ac_end
42918 ac_end=`expr $ac_end + $ac_max_sed_lines`
42919 fi
42920 done
42921 if test -z "$ac_sed_cmds"; then
42922 ac_sed_cmds=cat
42923 fi
42924fi # test -n "$CONFIG_FILES"
42925
42926_ACEOF
42927cat >>$CONFIG_STATUS <<\_ACEOF
42928for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42930 case $ac_file in
42931 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42932 cat >$tmp/stdin
42933 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42935 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42936 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42937 * ) ac_file_in=$ac_file.in ;;
42938 esac
42939
42940 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42941 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42942$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42943 X"$ac_file" : 'X\(//\)[^/]' \| \
42944 X"$ac_file" : 'X\(//\)$' \| \
42945 X"$ac_file" : 'X\(/\)' \| \
42946 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42947echo X"$ac_file" |
42948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42950 /^X\(\/\/\)$/{ s//\1/; q; }
42951 /^X\(\/\).*/{ s//\1/; q; }
42952 s/.*/./; q'`
42953 { if $as_mkdir_p; then
42954 mkdir -p "$ac_dir"
42955 else
42956 as_dir="$ac_dir"
42957 as_dirs=
42958 while test ! -d "$as_dir"; do
42959 as_dirs="$as_dir $as_dirs"
42960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42961$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42962 X"$as_dir" : 'X\(//\)[^/]' \| \
42963 X"$as_dir" : 'X\(//\)$' \| \
42964 X"$as_dir" : 'X\(/\)' \| \
42965 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42966echo X"$as_dir" |
42967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42969 /^X\(\/\/\)$/{ s//\1/; q; }
42970 /^X\(\/\).*/{ s//\1/; q; }
42971 s/.*/./; q'`
42972 done
42973 test ! -n "$as_dirs" || mkdir $as_dirs
42974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42975echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42976 { (exit 1); exit 1; }; }; }
42977
42978 ac_builddir=.
42979
42980if test "$ac_dir" != .; then
42981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42982 # A "../" for each directory in $ac_dir_suffix.
42983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42984else
42985 ac_dir_suffix= ac_top_builddir=
42986fi
42987
42988case $srcdir in
42989 .) # No --srcdir option. We are building in place.
42990 ac_srcdir=.
42991 if test -z "$ac_top_builddir"; then
42992 ac_top_srcdir=.
42993 else
42994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42995 fi ;;
42996 [\\/]* | ?:[\\/]* ) # Absolute path.
42997 ac_srcdir=$srcdir$ac_dir_suffix;
42998 ac_top_srcdir=$srcdir ;;
42999 *) # Relative path.
43000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43002esac
ac1cb8d3
VS
43003
43004# Do not use `cd foo && pwd` to compute absolute paths, because
43005# the directories may not exist.
43006case `pwd` in
43007.) ac_abs_builddir="$ac_dir";;
43008*)
43009 case "$ac_dir" in
43010 .) ac_abs_builddir=`pwd`;;
43011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43013 esac;;
43014esac
43015case $ac_abs_builddir in
43016.) ac_abs_top_builddir=${ac_top_builddir}.;;
43017*)
43018 case ${ac_top_builddir}. in
43019 .) ac_abs_top_builddir=$ac_abs_builddir;;
43020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43022 esac;;
43023esac
43024case $ac_abs_builddir in
43025.) ac_abs_srcdir=$ac_srcdir;;
43026*)
43027 case $ac_srcdir in
43028 .) ac_abs_srcdir=$ac_abs_builddir;;
43029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43031 esac;;
43032esac
43033case $ac_abs_builddir in
43034.) ac_abs_top_srcdir=$ac_top_srcdir;;
43035*)
43036 case $ac_top_srcdir in
43037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43040 esac;;
43041esac
a848cd7e
SC
43042
43043
43044 case $INSTALL in
43045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43046 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43047 esac
43048
a848cd7e
SC
43049 # Let's still pretend it is `configure' which instantiates (i.e., don't
43050 # use $as_me), people would be surprised to read:
43051 # /* config.h. Generated by config.status. */
43052 if test x"$ac_file" = x-; then
43053 configure_input=
43054 else
43055 configure_input="$ac_file. "
43056 fi
43057 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43058 sed 's,.*/,,'` by configure."
a848cd7e
SC
43059
43060 # First look for the input files in the build tree, otherwise in the
43061 # src tree.
43062 ac_file_inputs=`IFS=:
43063 for f in $ac_file_in; do
43064 case $f in
43065 -) echo $tmp/stdin ;;
43066 [\\/$]*)
ac1cb8d3
VS
43067 # Absolute (can't be DOS-style, as IFS=:)
43068 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43069echo "$as_me: error: cannot find input file: $f" >&2;}
43070 { (exit 1); exit 1; }; }
ac1cb8d3 43071 echo "$f";;
a848cd7e 43072 *) # Relative
ac1cb8d3
VS
43073 if test -f "$f"; then
43074 # Build tree
43075 echo "$f"
43076 elif test -f "$srcdir/$f"; then
43077 # Source tree
43078 echo "$srcdir/$f"
43079 else
43080 # /dev/null tree
43081 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43082echo "$as_me: error: cannot find input file: $f" >&2;}
43083 { (exit 1); exit 1; }; }
ac1cb8d3 43084 fi;;
a848cd7e
SC
43085 esac
43086 done` || { (exit 1); exit 1; }
5294a27e
VZ
43087
43088 if test x"$ac_file" != x-; then
43089 { echo "$as_me:$LINENO: creating $ac_file" >&5
43090echo "$as_me: creating $ac_file" >&6;}
43091 rm -f "$ac_file"
43092 fi
a848cd7e
SC
43093_ACEOF
43094cat >>$CONFIG_STATUS <<_ACEOF
43095 sed "$ac_vpsub
43096$extrasub
43097_ACEOF
43098cat >>$CONFIG_STATUS <<\_ACEOF
43099:t
43100/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43101s,@configure_input@,$configure_input,;t t
43102s,@srcdir@,$ac_srcdir,;t t
43103s,@abs_srcdir@,$ac_abs_srcdir,;t t
43104s,@top_srcdir@,$ac_top_srcdir,;t t
43105s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43106s,@builddir@,$ac_builddir,;t t
43107s,@abs_builddir@,$ac_abs_builddir,;t t
43108s,@top_builddir@,$ac_top_builddir,;t t
43109s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43110s,@INSTALL@,$ac_INSTALL,;t t
43111" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43112 rm -f $tmp/stdin
43113 if test x"$ac_file" != x-; then
43114 mv $tmp/out $ac_file
43115 else
43116 cat $tmp/out
43117 rm -f $tmp/out
43118 fi
43119
ceec2216
RL
43120 # Run the commands associated with the file.
43121 case $ac_file in
43122 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43123 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43124 esac
a848cd7e
SC
43125done
43126_ACEOF
43127cat >>$CONFIG_STATUS <<\_ACEOF
43128
43129#
43130# CONFIG_HEADER section.
43131#
43132
43133# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43134# NAME is the cpp macro being defined and VALUE is the value it is being given.
43135#
43136# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43137ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43138ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43139ac_dC=' '
43140ac_dD=',;t'
43141# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43142ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43143ac_uB='$,\1#\2define\3'
43144ac_uC=' '
43145ac_uD=',;t'
43146
43147for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43149 case $ac_file in
43150 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43151 cat >$tmp/stdin
43152 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43153 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43154 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43156 * ) ac_file_in=$ac_file.in ;;
43157 esac
43158
43159 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43160echo "$as_me: creating $ac_file" >&6;}
43161
43162 # First look for the input files in the build tree, otherwise in the
43163 # src tree.
43164 ac_file_inputs=`IFS=:
43165 for f in $ac_file_in; do
43166 case $f in
43167 -) echo $tmp/stdin ;;
43168 [\\/$]*)
ac1cb8d3
VS
43169 # Absolute (can't be DOS-style, as IFS=:)
43170 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43171echo "$as_me: error: cannot find input file: $f" >&2;}
43172 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43173 # Do quote $f, to prevent DOS paths from being IFS'd.
43174 echo "$f";;
a848cd7e 43175 *) # Relative
ac1cb8d3
VS
43176 if test -f "$f"; then
43177 # Build tree
43178 echo "$f"
43179 elif test -f "$srcdir/$f"; then
43180 # Source tree
43181 echo "$srcdir/$f"
43182 else
43183 # /dev/null tree
43184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43185echo "$as_me: error: cannot find input file: $f" >&2;}
43186 { (exit 1); exit 1; }; }
ac1cb8d3 43187 fi;;
a848cd7e
SC
43188 esac
43189 done` || { (exit 1); exit 1; }
43190 # Remove the trailing spaces.
ac1cb8d3 43191 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43192
43193_ACEOF
43194
43195# Transform confdefs.h into two sed scripts, `conftest.defines' and
43196# `conftest.undefs', that substitutes the proper values into
43197# config.h.in to produce config.h. The first handles `#define'
43198# templates, and the second `#undef' templates.
43199# And first: Protect against being on the right side of a sed subst in
43200# config.status. Protect against being in an unquoted here document
43201# in config.status.
43202rm -f conftest.defines conftest.undefs
43203# Using a here document instead of a string reduces the quoting nightmare.
43204# Putting comments in sed scripts is not portable.
43205#
43206# `end' is used to avoid that the second main sed command (meant for
43207# 0-ary CPP macros) applies to n-ary macro definitions.
43208# See the Autoconf documentation for `clear'.
43209cat >confdef2sed.sed <<\_ACEOF
43210s/[\\&,]/\\&/g
43211s,[\\$`],\\&,g
43212t clear
43213: clear
ac1cb8d3 43214s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43215t end
ac1cb8d3 43216s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43217: end
43218_ACEOF
43219# If some macros were called several times there might be several times
43220# the same #defines, which is useless. Nevertheless, we may not want to
43221# sort them, since we want the *last* AC-DEFINE to be honored.
43222uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43223sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43224rm -f confdef2sed.sed
43225
43226# This sed command replaces #undef with comments. This is necessary, for
43227# example, in the case of _POSIX_SOURCE, which is predefined and required
43228# on some systems where configure will not decide to define it.
43229cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43230s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43231_ACEOF
43232
43233# Break up conftest.defines because some shells have a limit on the size
43234# of here documents, and old seds have small limits too (100 cmds).
43235echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43236echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43237echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43238echo ' :' >>$CONFIG_STATUS
43239rm -f conftest.tail
43240while grep . conftest.defines >/dev/null
43241do
43242 # Write a limited-size here document to $tmp/defines.sed.
43243 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43244 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43245 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43246 # Work around the forget-to-reset-the-flag bug.
43247 echo 't clr' >>$CONFIG_STATUS
43248 echo ': clr' >>$CONFIG_STATUS
43249 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43250 echo 'CEOF
43251 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43252 rm -f $tmp/in
43253 mv $tmp/out $tmp/in
43254' >>$CONFIG_STATUS
43255 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43256 rm -f conftest.defines
43257 mv conftest.tail conftest.defines
43258done
43259rm -f conftest.defines
43260echo ' fi # grep' >>$CONFIG_STATUS
43261echo >>$CONFIG_STATUS
43262
43263# Break up conftest.undefs because some shells have a limit on the size
43264# of here documents, and old seds have small limits too (100 cmds).
43265echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43266rm -f conftest.tail
43267while grep . conftest.undefs >/dev/null
43268do
43269 # Write a limited-size here document to $tmp/undefs.sed.
43270 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43271 # Speed up: don't consider the non `#undef'
ac1cb8d3 43272 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43273 # Work around the forget-to-reset-the-flag bug.
43274 echo 't clr' >>$CONFIG_STATUS
43275 echo ': clr' >>$CONFIG_STATUS
43276 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43277 echo 'CEOF
43278 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43279 rm -f $tmp/in
43280 mv $tmp/out $tmp/in
43281' >>$CONFIG_STATUS
43282 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43283 rm -f conftest.undefs
43284 mv conftest.tail conftest.undefs
43285done
43286rm -f conftest.undefs
43287
43288cat >>$CONFIG_STATUS <<\_ACEOF
43289 # Let's still pretend it is `configure' which instantiates (i.e., don't
43290 # use $as_me), people would be surprised to read:
43291 # /* config.h. Generated by config.status. */
43292 if test x"$ac_file" = x-; then
43293 echo "/* Generated by configure. */" >$tmp/config.h
43294 else
43295 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43296 fi
43297 cat $tmp/in >>$tmp/config.h
43298 rm -f $tmp/in
43299 if test x"$ac_file" != x-; then
43300 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43301 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43302echo "$as_me: $ac_file is unchanged" >&6;}
43303 else
43304 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43305$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43306 X"$ac_file" : 'X\(//\)[^/]' \| \
43307 X"$ac_file" : 'X\(//\)$' \| \
43308 X"$ac_file" : 'X\(/\)' \| \
43309 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43310echo X"$ac_file" |
43311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43313 /^X\(\/\/\)$/{ s//\1/; q; }
43314 /^X\(\/\).*/{ s//\1/; q; }
43315 s/.*/./; q'`
43316 { if $as_mkdir_p; then
43317 mkdir -p "$ac_dir"
43318 else
43319 as_dir="$ac_dir"
43320 as_dirs=
43321 while test ! -d "$as_dir"; do
43322 as_dirs="$as_dir $as_dirs"
43323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43324$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43325 X"$as_dir" : 'X\(//\)[^/]' \| \
43326 X"$as_dir" : 'X\(//\)$' \| \
43327 X"$as_dir" : 'X\(/\)' \| \
43328 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43329echo X"$as_dir" |
43330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43332 /^X\(\/\/\)$/{ s//\1/; q; }
43333 /^X\(\/\).*/{ s//\1/; q; }
43334 s/.*/./; q'`
43335 done
43336 test ! -n "$as_dirs" || mkdir $as_dirs
43337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43338echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43339 { (exit 1); exit 1; }; }; }
43340
43341 rm -f $ac_file
43342 mv $tmp/config.h $ac_file
43343 fi
43344 else
43345 cat $tmp/config.h
43346 rm -f $tmp/config.h
43347 fi
43348done
43349_ACEOF
43350cat >>$CONFIG_STATUS <<\_ACEOF
43351
43352#
43353# CONFIG_COMMANDS section.
43354#
43355for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43356 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43357 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43358 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43359$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43360 X"$ac_dest" : 'X\(//\)[^/]' \| \
43361 X"$ac_dest" : 'X\(//\)$' \| \
43362 X"$ac_dest" : 'X\(/\)' \| \
43363 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43364echo X"$ac_dest" |
43365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43367 /^X\(\/\/\)$/{ s//\1/; q; }
43368 /^X\(\/\).*/{ s//\1/; q; }
43369 s/.*/./; q'`
ac1cb8d3
VS
43370 { if $as_mkdir_p; then
43371 mkdir -p "$ac_dir"
43372 else
43373 as_dir="$ac_dir"
43374 as_dirs=
43375 while test ! -d "$as_dir"; do
43376 as_dirs="$as_dir $as_dirs"
43377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43379 X"$as_dir" : 'X\(//\)[^/]' \| \
43380 X"$as_dir" : 'X\(//\)$' \| \
43381 X"$as_dir" : 'X\(/\)' \| \
43382 . : '\(.\)' 2>/dev/null ||
43383echo X"$as_dir" |
43384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43386 /^X\(\/\/\)$/{ s//\1/; q; }
43387 /^X\(\/\).*/{ s//\1/; q; }
43388 s/.*/./; q'`
43389 done
43390 test ! -n "$as_dirs" || mkdir $as_dirs
43391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43392echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43393 { (exit 1); exit 1; }; }; }
43394
a848cd7e
SC
43395 ac_builddir=.
43396
43397if test "$ac_dir" != .; then
43398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43399 # A "../" for each directory in $ac_dir_suffix.
43400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43401else
43402 ac_dir_suffix= ac_top_builddir=
43403fi
43404
43405case $srcdir in
43406 .) # No --srcdir option. We are building in place.
43407 ac_srcdir=.
43408 if test -z "$ac_top_builddir"; then
43409 ac_top_srcdir=.
43410 else
43411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43412 fi ;;
43413 [\\/]* | ?:[\\/]* ) # Absolute path.
43414 ac_srcdir=$srcdir$ac_dir_suffix;
43415 ac_top_srcdir=$srcdir ;;
43416 *) # Relative path.
43417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43419esac
ac1cb8d3
VS
43420
43421# Do not use `cd foo && pwd` to compute absolute paths, because
43422# the directories may not exist.
43423case `pwd` in
43424.) ac_abs_builddir="$ac_dir";;
43425*)
43426 case "$ac_dir" in
43427 .) ac_abs_builddir=`pwd`;;
43428 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43429 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43430 esac;;
43431esac
43432case $ac_abs_builddir in
43433.) ac_abs_top_builddir=${ac_top_builddir}.;;
43434*)
43435 case ${ac_top_builddir}. in
43436 .) ac_abs_top_builddir=$ac_abs_builddir;;
43437 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43438 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43439 esac;;
43440esac
43441case $ac_abs_builddir in
43442.) ac_abs_srcdir=$ac_srcdir;;
43443*)
43444 case $ac_srcdir in
43445 .) ac_abs_srcdir=$ac_abs_builddir;;
43446 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43447 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43448 esac;;
43449esac
43450case $ac_abs_builddir in
43451.) ac_abs_top_srcdir=$ac_top_srcdir;;
43452*)
43453 case $ac_top_srcdir in
43454 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43455 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43456 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43457 esac;;
43458esac
a848cd7e
SC
43459
43460
43461 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43462echo "$as_me: executing $ac_dest commands" >&6;}
43463 case $ac_dest in
ceec2216
RL
43464 wx-config ) rm -f wx-config
43465 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43466 ;;
a848cd7e
SC
43467 esac
43468done
43469_ACEOF
43470
43471cat >>$CONFIG_STATUS <<\_ACEOF
43472
43473{ (exit 0); exit 0; }
43474_ACEOF
43475chmod +x $CONFIG_STATUS
43476ac_clean_files=$ac_clean_files_save
43477
43478
43479# configure is writing to config.log, and then calls config.status.
43480# config.status does its own redirection, appending to config.log.
43481# Unfortunately, on DOS this fails, as config.log is still kept open
43482# by configure, so config.status won't be able to write to it; its
43483# output is simply discarded. So we exec the FD to /dev/null,
43484# effectively closing config.log, so it can be properly (re)opened and
43485# appended to by config.status. When coming back to configure, we
43486# need to make the FD available again.
43487if test "$no_create" != yes; then
43488 ac_cs_success=:
43489 ac_config_status_args=
43490 test "$silent" = yes &&
43491 ac_config_status_args="$ac_config_status_args --quiet"
43492 exec 5>/dev/null
43493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43494 exec 5>>config.log
43495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43496 # would make configure fail if this is the last instruction.
43497 $ac_cs_success || { (exit 1); exit 1; }
43498fi
43499
43500#
43501# CONFIG_SUBDIRS section.
43502#
43503if test "$no_recursion" != yes; then
43504
43505 # Remove --cache-file and --srcdir arguments so they do not pile up.
43506 ac_sub_configure_args=
43507 ac_prev=
43508 for ac_arg in $ac_configure_args; do
43509 if test -n "$ac_prev"; then
43510 ac_prev=
43511 continue
43512 fi
43513 case $ac_arg in
43514 -cache-file | --cache-file | --cache-fil | --cache-fi \
43515 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43516 ac_prev=cache_file ;;
43517 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43518 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43519 | --c=*)
43520 ;;
43521 --config-cache | -C)
43522 ;;
43523 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43524 ac_prev=srcdir ;;
43525 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43526 ;;
43527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43528 ac_prev=prefix ;;
43529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43530 ;;
43531 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43532 esac
43533 done
43534
43535 # Always prepend --prefix to ensure using the same prefix
43536 # in subdir configurations.
43537 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43538
43539 ac_popdir=`pwd`
43540 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43541
43542 # Do not complain, so a configure script can configure whichever
43543 # parts of a large source tree are present.
43544 test -d $srcdir/$ac_dir || continue
43545
43546 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43547echo "$as_me: configuring in $ac_dir" >&6;}
43548 { if $as_mkdir_p; then
43549 mkdir -p "$ac_dir"
43550 else
43551 as_dir="$ac_dir"
43552 as_dirs=
43553 while test ! -d "$as_dir"; do
43554 as_dirs="$as_dir $as_dirs"
43555 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43557 X"$as_dir" : 'X\(//\)[^/]' \| \
43558 X"$as_dir" : 'X\(//\)$' \| \
43559 X"$as_dir" : 'X\(/\)' \| \
43560 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43561echo X"$as_dir" |
43562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43564 /^X\(\/\/\)$/{ s//\1/; q; }
43565 /^X\(\/\).*/{ s//\1/; q; }
43566 s/.*/./; q'`
43567 done
43568 test ! -n "$as_dirs" || mkdir $as_dirs
43569 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43570echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43571 { (exit 1); exit 1; }; }; }
43572
43573 ac_builddir=.
43574
43575if test "$ac_dir" != .; then
43576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43577 # A "../" for each directory in $ac_dir_suffix.
43578 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43579else
43580 ac_dir_suffix= ac_top_builddir=
43581fi
43582
43583case $srcdir in
43584 .) # No --srcdir option. We are building in place.
43585 ac_srcdir=.
43586 if test -z "$ac_top_builddir"; then
43587 ac_top_srcdir=.
43588 else
43589 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43590 fi ;;
43591 [\\/]* | ?:[\\/]* ) # Absolute path.
43592 ac_srcdir=$srcdir$ac_dir_suffix;
43593 ac_top_srcdir=$srcdir ;;
43594 *) # Relative path.
43595 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43596 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43597esac
ac1cb8d3
VS
43598
43599# Do not use `cd foo && pwd` to compute absolute paths, because
43600# the directories may not exist.
43601case `pwd` in
43602.) ac_abs_builddir="$ac_dir";;
43603*)
43604 case "$ac_dir" in
43605 .) ac_abs_builddir=`pwd`;;
43606 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43607 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43608 esac;;
43609esac
43610case $ac_abs_builddir in
43611.) ac_abs_top_builddir=${ac_top_builddir}.;;
43612*)
43613 case ${ac_top_builddir}. in
43614 .) ac_abs_top_builddir=$ac_abs_builddir;;
43615 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43616 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43617 esac;;
43618esac
43619case $ac_abs_builddir in
43620.) ac_abs_srcdir=$ac_srcdir;;
43621*)
43622 case $ac_srcdir in
43623 .) ac_abs_srcdir=$ac_abs_builddir;;
43624 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43625 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43626 esac;;
43627esac
43628case $ac_abs_builddir in
43629.) ac_abs_top_srcdir=$ac_top_srcdir;;
43630*)
43631 case $ac_top_srcdir in
43632 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43633 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43634 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43635 esac;;
43636esac
a848cd7e
SC
43637
43638
43639 cd $ac_dir
43640
43641 # Check for guested configure; otherwise get Cygnus style configure.
43642 if test -f $ac_srcdir/configure.gnu; then
43643 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43644 elif test -f $ac_srcdir/configure; then
43645 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43646 elif test -f $ac_srcdir/configure.in; then
43647 ac_sub_configure=$ac_configure
43648 else
43649 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43650echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43651 ac_sub_configure=
43652 fi
43653
43654 # The recursion is here.
43655 if test -n "$ac_sub_configure"; then
43656 # Make the cache file name correct relative to the subdirectory.
43657 case $cache_file in
43658 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43659 *) # Relative path.
ac1cb8d3 43660 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43661 esac
43662
43663 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43664echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43665 # The eval makes quoting arguments work.
43666 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43667 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43668 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43669echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43670 { (exit 1); exit 1; }; }
43671 fi
43672
5294a27e 43673 cd "$ac_popdir"
a848cd7e
SC
43674 done
43675fi
43676
43677
43678echo
77ffb593 43679echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43680echo ""
4d4ff94c 43681echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43682echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43683
77ffb593
JS
43684echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43685echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43686echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43687
77ffb593
JS
43688echo " What level of wxWidgets compatibility should be enabled?"
43689echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43690echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43691
77ffb593 43692echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43693echo " jpeg ${wxUSE_LIBJPEG-none}"
43694echo " png ${wxUSE_LIBPNG-none}"
43695echo " regex ${wxUSE_REGEX}"
43696echo " tiff ${wxUSE_LIBTIFF-none}"
43697if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43698echo " xpm ${wxUSE_LIBXPM-none}"
43699fi
43700echo " zlib ${wxUSE_ZLIB}"
43701echo " odbc ${wxUSE_ODBC}"
43702echo " expat ${wxUSE_EXPAT}"
43703echo " libmspack ${wxUSE_LIBMSPACK}"
43704echo " sdl ${wxUSE_LIBSDL}"
d1c38808 43705echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}"
a848cd7e
SC
43706
43707echo ""
43708