]> git.saurik.com Git - wxWidgets.git/blame - configure
DMC fix.
[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"
a30f955f 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 PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_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 UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_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_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_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
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
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
9a8f0513 947 --enable-xrc use XRC resources sub-library
a848cd7e
SC
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
8a7b1113 951 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
952 --enable-loggui use standard GUI logger
953 --enable-logwin use wxLogWindow
954 --enable-logdialog use wxLogDialog
646b6ec1 955 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
956 --enable-postscript use wxPostscriptDC device context (default for gtk+)
957 --enable-prologio not available; see contrib
958 --enable-resources not available; see contrib
959 --enable-clipboard use wxClipboard class
960 --enable-dnd use Drag'n'Drop classes
961 --enable-metafile use win32 metafiles
962 --enable-controls use all usual controls
963 --enable-accel use accelerators
964 --enable-button use wxButton class
965 --enable-bmpbutton use wxBitmapButton class
966 --enable-calendar use wxCalendarCtrl class
967 --enable-caret use wxCaret class
968 --enable-checkbox use wxCheckBox class
969 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
970 --enable-choice use wxChoice class
92bbdbcd 971 --enable-choicebook use wxChoicebook class
a848cd7e
SC
972 --enable-combobox use wxComboBox class
973 --enable-display use wxDisplay class
974 --enable-gauge use wxGauge class
975 --enable-grid use wxGrid class
976 --enable-imaglist use wxImageList class
977 --enable-listbook use wxListbook class
978 --enable-listbox use wxListBox class
979 --enable-listctrl use wxListCtrl class
980 --enable-notebook use wxNotebook class
981 --enable-radiobox use wxRadioBox class
982 --enable-radiobtn use wxRadioButton class
983 --enable-sash use wxSashWindow class
984 --enable-scrollbar use wxScrollBar class and scrollable windows
985 --enable-slider use wxSlider class
986 --enable-spinbtn use wxSpinButton class
987 --enable-spinctrl use wxSpinCtrl class
988 --enable-splitter use wxSplitterWindow class
989 --enable-statbmp use wxStaticBitmap class
990 --enable-statbox use wxStaticBox class
991 --enable-statline use wxStaticLine class
992 --enable-stattext use wxStaticText class
993 --enable-statusbar use wxStatusBar class
994 --enable-tabdialog use wxTabControl class
995 --enable-textctrl use wxTextCtrl class
996 --enable-togglebtn use wxToggleButton class
997 --enable-toolbar use wxToolBar class
998 --enable-tbarnative use native wxToolBar class
999 --enable-tbarsmpl use wxToolBarSimple class
1000 --enable-treectrl use wxTreeCtrl class
1001 --enable-tipwindow use wxTipWindow class
1002 --enable-popupwin use wxPopUpWindow class
1003 --enable-commondlg use all common dialogs
1004 --enable-choicedlg use wxChoiceDialog
1005 --enable-coldlg use wxColourDialog
1006 --enable-filedlg use wxFileDialog
1007 --enable-finddlg use wxFindReplaceDialog
1008 --enable-fontdlg use wxFontDialog
1009 --enable-dirdlg use wxDirDialog
1010 --enable-msgdlg use wxMessageDialog
1011 --enable-numberdlg use wxNumberEntryDialog
1012 --enable-splash use wxSplashScreen
1013 --enable-textdlg use wxTextDialog
1014 --enable-tipdlg use startup tips
1015 --enable-progressdlg use wxProgressDialog
1016 --enable-wizarddlg use wxWizard
1017 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1018 --enable-miniframe use wxMiniFrame class
1019 --enable-tooltips use wxToolTip class
1020 --enable-splines use spline drawing code
1021 --enable-validators use wxValidator and derived classes
1022 --enable-busyinfo use wxBusyInfo
1023 --enable-joystick use wxJoystick (Linux only)
1024 --enable-metafiles use wxMetaFile (Windows only)
1025 --enable-dragimage use wxDragImage
1026 --enable-accessibility enable accessibility support
1027 --enable-palette use wxPalette class
1028 --enable-image use wxImage class
1029 --enable-gif use gif images (GIF file format)
1030 --enable-pcx use pcx images (PCX file format)
1031 --enable-iff use iff images (IFF file format)
1032 --enable-pnm use pnm images (PNM file format)
1033 --enable-xpm use xpm images (XPM file format)
1034 --enable-icocur use Windows ICO and CUR formats
77ffb593 1035 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1036 --enable-vendor=VENDOR vendor name (win32 DLL only)
1037 --disable-largefile omit support for large files
1038 --disable-gtktest do not try to compile and run a test GTK+ program
1039 --disable-gtktest Do not try to compile and run a test GTK program
1040 --disable-sdltest Do not try to compile and run a test SDL program
1041 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1042 --disable-precomp-headers
1043 don't use precompiled headers even if compiler can
a848cd7e
SC
1044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gtk use GTK+
1049 --with-motif use Motif/Lesstif
1050 --with-mac use Mac OS X
1051 --with-cocoa use Cocoa
1052 --with-wine use Wine
1053 --with-msw use MS-Windows
1054 --with-pm use OS/2 Presentation Manager
1055 --with-mgl use SciTech MGL
1056 --with-microwin use MicroWindows
1057 --with-x11 use X11
1058 --with-libpng use libpng (PNG image format)
1059 --with-libjpeg use libjpeg (JPEG file format)
1060 --with-libtiff use libtiff (TIFF file format)
1061 --with-libxpm use libxpm (XPM file format)
1062 --with-libmspack use libmspack (CHM help files loading)
1063 --with-sdl use SDL for audio on Unix
1064 --with-opengl use OpenGL (or Mesa)
1065 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1066 --with-regex enable support for wxRegEx class
1067 --with-zlib use zlib for LZW compression
1068 --with-odbc use the IODBC and wxODBC classes
1069 --with-expat enable XML support using expat parser
ceec2216 1070 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1071 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1072 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1073 --with-x use the X Window System
1074 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1075 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1076 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1077 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1078 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1079
1080Some influential environment variables:
dcc1b6ad
VS
1081 CC C compiler command
1082 CFLAGS C compiler flags
1083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1084 nonstandard directory <lib dir>
1085 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1086 headers in a nonstandard directory <include dir>
1087 CPP C preprocessor
1088 CXX C++ compiler command
1089 CXXFLAGS C++ compiler flags
1090 CXXCPP C++ preprocessor
a848cd7e
SC
1091
1092Use these variables to override the choices made by `configure' or to help
1093it to find libraries and programs with nonstandard names/locations.
1094
77ffb593 1095Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1096_ACEOF
1097fi
1098
1099if test "$ac_init_help" = "recursive"; then
1100 # If there are subdirs, report their specific --help.
1101 ac_popdir=`pwd`
1102 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1103 test -d $ac_dir || continue
1104 ac_builddir=.
1105
1106if test "$ac_dir" != .; then
1107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1108 # A "../" for each directory in $ac_dir_suffix.
1109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1110else
1111 ac_dir_suffix= ac_top_builddir=
1112fi
1113
1114case $srcdir in
1115 .) # No --srcdir option. We are building in place.
1116 ac_srcdir=.
1117 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=.
1119 else
1120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1121 fi ;;
1122 [\\/]* | ?:[\\/]* ) # Absolute path.
1123 ac_srcdir=$srcdir$ac_dir_suffix;
1124 ac_top_srcdir=$srcdir ;;
1125 *) # Relative path.
1126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128esac
ac1cb8d3
VS
1129
1130# Do not use `cd foo && pwd` to compute absolute paths, because
1131# the directories may not exist.
1132case `pwd` in
1133.) ac_abs_builddir="$ac_dir";;
1134*)
1135 case "$ac_dir" in
1136 .) ac_abs_builddir=`pwd`;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_builddir=${ac_top_builddir}.;;
1143*)
1144 case ${ac_top_builddir}. in
1145 .) ac_abs_top_builddir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_srcdir=$ac_srcdir;;
1152*)
1153 case $ac_srcdir in
1154 .) ac_abs_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_top_srcdir=$ac_top_srcdir;;
1161*)
1162 case $ac_top_srcdir in
1163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 esac;;
1167esac
a848cd7e
SC
1168
1169 cd $ac_dir
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_srcdir/configure.gnu; then
1172 echo
1173 $SHELL $ac_srcdir/configure.gnu --help=recursive
1174 elif test -f $ac_srcdir/configure; then
1175 echo
1176 $SHELL $ac_srcdir/configure --help=recursive
1177 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1178 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1179 echo
1180 $ac_configure --help
1181 else
1182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 fi
c228d3a4 1184 cd $ac_popdir
a848cd7e
SC
1185 done
1186fi
1187
1188test -n "$ac_init_help" && exit 0
1189if $ac_init_version; then
1190 cat <<\_ACEOF
7714864e 1191wxWidgets configure 2.5.3
ac1cb8d3 1192generated by GNU Autoconf 2.59
a848cd7e 1193
ac1cb8d3 1194Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1195This configure script is free software; the Free Software Foundation
1196gives unlimited permission to copy, distribute and modify it.
1197_ACEOF
1198 exit 0
1199fi
1200exec 5>config.log
1201cat >&5 <<_ACEOF
1202This file contains any messages produced by compilers while
1203running configure, to aid debugging if configure makes a mistake.
1204
7714864e 1205It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1206generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1207
1208 $ $0 $@
1209
1210_ACEOF
1211{
1212cat <<_ASUNAME
1213## --------- ##
1214## Platform. ##
1215## --------- ##
1216
1217hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1218uname -m = `(uname -m) 2>/dev/null || echo unknown`
1219uname -r = `(uname -r) 2>/dev/null || echo unknown`
1220uname -s = `(uname -s) 2>/dev/null || echo unknown`
1221uname -v = `(uname -v) 2>/dev/null || echo unknown`
1222
1223/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1224/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1225
1226/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1227/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1228/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1229hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1230/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1231/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1232/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1233
1234_ASUNAME
1235
1236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1237for as_dir in $PATH
1238do
1239 IFS=$as_save_IFS
1240 test -z "$as_dir" && as_dir=.
1241 echo "PATH: $as_dir"
1242done
1243
1244} >&5
1245
1246cat >&5 <<_ACEOF
1247
1248
1249## ----------- ##
1250## Core tests. ##
1251## ----------- ##
1252
1253_ACEOF
1254
1255
1256# Keep a trace of the command line.
1257# Strip out --no-create and --no-recursion so they do not pile up.
1258# Strip out --silent because we don't want to record it for future runs.
1259# Also quote any args containing shell meta-characters.
1260# Make two passes to allow for proper duplicate-argument suppression.
1261ac_configure_args=
1262ac_configure_args0=
1263ac_configure_args1=
1264ac_sep=
1265ac_must_keep_next=false
1266for ac_pass in 1 2
1267do
1268 for ac_arg
1269 do
1270 case $ac_arg in
1271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 continue ;;
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 esac
1278 case $ac_pass in
1279 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1280 2)
1281 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1282 if test $ac_must_keep_next = true; then
ac1cb8d3 1283 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1284 else
ac1cb8d3
VS
1285 case $ac_arg in
1286 *=* | --config-cache | -C | -disable-* | --disable-* \
1287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1289 | -with-* | --with-* | -without-* | --without-* | --x)
1290 case "$ac_configure_args0 " in
1291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1292 esac
1293 ;;
1294 -* ) ac_must_keep_next=true ;;
1295 esac
a848cd7e
SC
1296 fi
1297 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1298 # Get rid of the leading space.
1299 ac_sep=" "
1300 ;;
1301 esac
1302 done
1303done
1304$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1305$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1306
1307# When interrupted or exit'd, cleanup temporary files, and complete
1308# config.log. We remove comments because anyway the quotes in there
1309# would cause problems or look ugly.
1310# WARNING: Be sure not to use single quotes in there, as some shells,
1311# such as our DU 5.0 friend, will then `close' the trap.
1312trap 'exit_status=$?
1313 # Save into config.log some information that might help in debugging.
1314 {
1315 echo
1316
1317 cat <<\_ASBOX
1318## ---------------- ##
1319## Cache variables. ##
1320## ---------------- ##
1321_ASBOX
1322 echo
1323 # The following way of writing the cache mishandles newlines in values,
1324{
1325 (set) 2>&1 |
1326 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1327 *ac_space=\ *)
1328 sed -n \
ac1cb8d3
VS
1329 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1331 ;;
1332 *)
1333 sed -n \
ac1cb8d3 1334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1335 ;;
1336 esac;
1337}
1338 echo
1339
1340 cat <<\_ASBOX
1341## ----------------- ##
1342## Output variables. ##
1343## ----------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_vars
1347 do
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1350 done | sort
1351 echo
1352
1353 if test -n "$ac_subst_files"; then
1354 cat <<\_ASBOX
1355## ------------- ##
1356## Output files. ##
1357## ------------- ##
1358_ASBOX
1359 echo
1360 for ac_var in $ac_subst_files
1361 do
1362 eval ac_val=$`echo $ac_var`
ac1cb8d3 1363 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1364 done | sort
1365 echo
1366 fi
1367
1368 if test -s confdefs.h; then
1369 cat <<\_ASBOX
1370## ----------- ##
1371## confdefs.h. ##
1372## ----------- ##
1373_ASBOX
1374 echo
1375 sed "/^$/d" confdefs.h | sort
1376 echo
1377 fi
1378 test "$ac_signal" != 0 &&
1379 echo "$as_me: caught signal $ac_signal"
1380 echo "$as_me: exit $exit_status"
1381 } >&5
ac1cb8d3 1382 rm -f core *.core &&
a848cd7e
SC
1383 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1384 exit $exit_status
1385 ' 0
1386for ac_signal in 1 2 13 15; do
1387 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1388done
1389ac_signal=0
1390
1391# confdefs.h avoids OS command line length limits that DEFS can exceed.
1392rm -rf conftest* confdefs.h
1393# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394echo >confdefs.h
1395
1396# Predefined preprocessor variables.
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_NAME "$PACKAGE_NAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_VERSION "$PACKAGE_VERSION"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_STRING "$PACKAGE_STRING"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1420_ACEOF
1421
1422
1423# Let the site file select an alternate cache file if it wants to.
1424# Prefer explicitly selected file to automatically selected ones.
1425if test -z "$CONFIG_SITE"; then
1426 if test "x$prefix" != xNONE; then
1427 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428 else
1429 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430 fi
1431fi
1432for ac_site_file in $CONFIG_SITE; do
1433 if test -r "$ac_site_file"; then
1434 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1435echo "$as_me: loading site script $ac_site_file" >&6;}
1436 sed 's/^/| /' "$ac_site_file" >&5
1437 . "$ac_site_file"
1438 fi
1439done
1440
1441if test -r "$cache_file"; then
1442 # Some versions of bash will fail to source /dev/null (special
1443 # files actually), so we avoid doing that.
1444 if test -f "$cache_file"; then
1445 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1446echo "$as_me: loading cache $cache_file" >&6;}
1447 case $cache_file in
1448 [\\/]* | ?:[\\/]* ) . $cache_file;;
1449 *) . ./$cache_file;;
1450 esac
1451 fi
1452else
1453 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1454echo "$as_me: creating cache $cache_file" >&6;}
1455 >$cache_file
1456fi
1457
1458# Check that the precious variables saved in the cache have kept the same
1459# value.
1460ac_cache_corrupted=false
1461for ac_var in `(set) 2>&1 |
ac1cb8d3 1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1468 set,)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,set)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,);;
1477 *)
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1480echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1482echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1484echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1485 ac_cache_corrupted=:
a848cd7e
SC
1486 fi;;
1487 esac
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1490 case $ac_new_val in
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1494 esac
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498 esac
1499 fi
1500done
1501if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508
1509ac_ext=c
1510ac_cpp='$CPP $CPPFLAGS'
1511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
1515
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
1544ac_aux_dir=
1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1558 fi
1559done
1560if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1564fi
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569# Make sure we can run config.sub.
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1595build=$ac_cv_build
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601echo "$as_me:$LINENO: checking host system type" >&5
1602echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 ac_cv_host_alias=$host_alias
1607test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616echo "${ECHO_T}$ac_cv_host" >&6
1617host=$ac_cv_host
1618host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking target system type" >&5
1624echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_target_alias=$target_alias
1629test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638echo "${ECHO_T}$ac_cv_target" >&6
1639target=$ac_cv_target
1640target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645# The aliases save the names the user supplied, while $host etc.
1646# will get canonicalized.
1647test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1651
1652
1653
ceec2216
RL
1654wx_major_version_number=2
1655wx_minor_version_number=5
7714864e
RL
1656wx_release_number=3
1657wx_subrelease_number=0
a848cd7e 1658
ceec2216
RL
1659WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1660WX_VERSION=$WX_RELEASE.$wx_release_number
1661WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1662
ceec2216 1663WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1664
7714864e 1665WX_CURRENT=3
a848cd7e
SC
1666WX_REVISION=0
1667WX_AGE=0
1668
1669
1670
1671USE_UNIX=1
1672USE_OS2=0
1673USE_WIN32=0
1674USE_DOS=0
1675USE_BEOS=0
1676USE_MAC=0
1677
1678USE_AIX=
1679USE_BSD= USE_DARWIN= USE_FREEBSD=
1680USE_GNU= USE_HPUX=
1681USE_LINUX=
1682USE_NETBSD=
1683USE_OPENBSD=
1684USE_OSF= USE_SGI=
1685USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1686USE_ULTRIX=
1687USE_UNIXWARE=
1688
1689USE_ALPHA=
1690
1691NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1692
1693ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1694
1695DEFAULT_wxUSE_COCOA=0
1696DEFAULT_wxUSE_GTK=0
1697DEFAULT_wxUSE_MAC=0
1698DEFAULT_wxUSE_MGL=0
1699DEFAULT_wxUSE_MICROWIN=0
1700DEFAULT_wxUSE_MOTIF=0
1701DEFAULT_wxUSE_MSW=0
1702DEFAULT_wxUSE_PM=0
1703DEFAULT_wxUSE_X11=0
1704
1705DEFAULT_DEFAULT_wxUSE_COCOA=0
1706DEFAULT_DEFAULT_wxUSE_GTK=0
1707DEFAULT_DEFAULT_wxUSE_MAC=0
1708DEFAULT_DEFAULT_wxUSE_MGL=0
1709DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_DEFAULT_wxUSE_MSW=0
1712DEFAULT_DEFAULT_wxUSE_PM=0
1713DEFAULT_DEFAULT_wxUSE_X11=0
1714
1715PROGRAM_EXT=
1716SO_SUFFIX=so
1717SAMPLES_RPATH_FLAG=
1718SAMPLES_RPATH_POSTLINK=
1719
1720case "${host}" in
1721 *-hp-hpux* )
1722 USE_HPUX=1
1723 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1724 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1725 SO_SUFFIX=sl
1726 cat >>confdefs.h <<\_ACEOF
1727#define __HPUX__ 1
1728_ACEOF
1729
1730 ;;
1731 *-*-linux* )
1732 USE_LINUX=1
1733 cat >>confdefs.h <<\_ACEOF
1734#define __LINUX__ 1
1735_ACEOF
1736
1737 TMP=`uname -m`
1738 if test "x$TMP" = "xalpha"; then
1739 USE_ALPHA=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __ALPHA__ 1
1742_ACEOF
1743
1744 fi
1745 DEFAULT_DEFAULT_wxUSE_GTK=1
1746 ;;
1747 *-*-gnu* | *-*-k*bsd*-gnu )
1748 USE_GNU=1
1749 TMP=`uname -m`
1750 if test "x$TMP" = "xalpha"; then
1751 USE_ALPHA=1
1752 cat >>confdefs.h <<\_ACEOF
1753#define __ALPHA__ 1
1754_ACEOF
1755
1756 fi
1757 DEFAULT_DEFAULT_wxUSE_GTK=1
1758 ;;
1759 *-*-irix5* | *-*-irix6* )
1760 USE_SGI=1
1761 USE_SVR4=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __SGI__ 1
1764_ACEOF
1765
1766 cat >>confdefs.h <<\_ACEOF
1767#define __SVR4__ 1
1768_ACEOF
1769
1770 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1771 ;;
1772 *-*-solaris2* )
1773 USE_SUN=1
1774 USE_SOLARIS=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SUN__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SOLARIS__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SVR4__ 1
1786_ACEOF
1787
1788 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1789 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1790 ;;
1791 *-*-sunos4* )
1792 USE_SUN=1
1793 USE_SUNOS=1
1794 USE_BSD=1
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SUN__ 1
1797_ACEOF
1798
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUNOS__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __BSD__ 1
1805_ACEOF
1806
1807 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1808 ;;
1809 *-*-freebsd*)
1810 USE_BSD=1
1811 USE_FREEBSD=1
1812 cat >>confdefs.h <<\_ACEOF
1813#define __FREEBSD__ 1
1814_ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817#define __BSD__ 1
1818_ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_GTK=1
1821 ;;
1822 *-*-openbsd*)
1823 USE_BSD=1
1824 USE_OPENBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __OPENBSD__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __BSD__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-netbsd*)
1836 USE_BSD=1
1837 USE_NETBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __NETBSD__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __BSD__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-osf* )
1849 USE_ALPHA=1
1850 USE_OSF=1
1851 cat >>confdefs.h <<\_ACEOF
1852#define __ALPHA__ 1
1853_ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856#define __OSF__ 1
1857_ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1860 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1861 ;;
1862 *-*-dgux5* )
1863 USE_ALPHA=1
1864 USE_SVR4=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __SVR4__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 ;;
1875 *-*-sysv5* )
1876 USE_SYSV=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SYSV__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-aix* )
1889 USE_AIX=1
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 SO_SUFFIX=a
1893 cat >>confdefs.h <<\_ACEOF
1894#define __AIX__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SYSV__ 1
1899_ACEOF
1900
1901 cat >>confdefs.h <<\_ACEOF
1902#define __SVR4__ 1
1903_ACEOF
1904
1905 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1906 ;;
1907
1908 *-*-*UnixWare*)
1909 USE_SYSV=1
1910 USE_SVR4=1
1911 USE_UNIXWARE=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __UNIXWARE__ 1
1914_ACEOF
1915
1916 ;;
1917
1918 *-*-cygwin* | *-*-mingw32* )
1919 SO_SUFFIX=dll
1920 PROGRAM_EXT=".exe"
1921 RESCOMP=windres
1922 DEFAULT_DEFAULT_wxUSE_MSW=1
1923 ;;
1924
1925 *-pc-msdosdjgpp )
1926 USE_UNIX=0
1927 USE_DOS=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __DOS__ 1
1930_ACEOF
1931
1932 PROGRAM_EXT=".exe"
1933 DEFAULT_DEFAULT_wxUSE_MGL=1
1934 LIBS="$LIBS -lstdc++"
1935 ;;
1936
1937 *-pc-os2_emx | *-pc-os2-emx )
1938 cat >>confdefs.h <<\_ACEOF
1939#define __EMX__ 1
1940_ACEOF
1941
1942 USE_OS2=1
1943 cat >>confdefs.h <<\_ACEOF
1944#define __OS2__ 1
1945_ACEOF
1946
1947 PROGRAM_EXT=".exe"
1948 DEFAULT_DEFAULT_wxUSE_PM=1
1949 CXX=gcc
1950 LDFLAGS="$LDFLAGS -Zcrtdll"
1951 ac_executable_extensions=".exe"
1952 export ac_executable_extensions
1953 ac_save_IFS="$IFS"
1954 IFS='\\'
1955 ac_TEMP_PATH=
1956 for ac_dir in $PATH; do
1957 IFS=$ac_save_IFS
1958 if test -z "$ac_TEMP_PATH"; then
1959 ac_TEMP_PATH="$ac_dir"
1960 else
1961 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1962 fi
1963 done
1964 export PATH="$ac_TEMP_PATH"
1965 unset ac_TEMP_PATH
1966 ;;
1967
1968 powerpc-*-darwin* )
1969 USE_BSD=1
1970 USE_DARWIN=1
1971 SO_SUFFIX=dylib
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __DARWIN__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __POWERPC__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define TARGET_CARBON 1
1986_ACEOF
1987
1988 DEFAULT_DEFAULT_wxUSE_MAC=1
1989 ;;
1990
1991 *-*-beos* )
1992 USE_BEOS=1
1993 cat >>confdefs.h <<\_ACEOF
1994#define __BEOS__ 1
1995_ACEOF
1996
1997 ;;
1998
1999 *)
2000 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2001echo "$as_me: error: unknown system type ${host}." >&2;}
2002 { (exit 1); exit 1; }; }
2003esac
2004
2005
2006
2007
2008 wx_arg_cache_file="configarg.cache"
2009 echo "loading argument cache $wx_arg_cache_file"
2010 rm -f ${wx_arg_cache_file}.tmp
2011 touch ${wx_arg_cache_file}.tmp
2012 touch ${wx_arg_cache_file}
2013
2014
2015DEBUG_CONFIGURE=0
2016if test $DEBUG_CONFIGURE = 1; then
2017 DEFAULT_wxUSE_UNIVERSAL=no
2018 DEFAULT_wxUSE_STL=no
2019
2020 DEFAULT_wxUSE_NANOX=no
2021
2022 DEFAULT_wxUSE_THREADS=yes
2023
2024 DEFAULT_wxUSE_SHARED=yes
2025 DEFAULT_wxUSE_OPTIMISE=no
2026 DEFAULT_wxUSE_PROFILE=no
2027 DEFAULT_wxUSE_NO_DEPS=no
2028 DEFAULT_wxUSE_NO_RTTI=no
2029 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2030 DEFAULT_wxUSE_PERMISSIVE=no
2031 DEFAULT_wxUSE_DEBUG_FLAG=yes
2032 DEFAULT_wxUSE_DEBUG_INFO=yes
2033 DEFAULT_wxUSE_DEBUG_GDB=yes
2034 DEFAULT_wxUSE_MEM_TRACING=no
2035 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2036 DEFAULT_wxUSE_DMALLOC=no
2037 DEFAULT_wxUSE_APPLE_IEEE=no
2038
2039 DEFAULT_wxUSE_EXCEPTIONS=no
2040 DEFAULT_wxUSE_LOG=yes
2041 DEFAULT_wxUSE_LOGWINDOW=no
2042 DEFAULT_wxUSE_LOGGUI=no
2043 DEFAULT_wxUSE_LOGDIALOG=no
2044
2045 DEFAULT_wxUSE_GUI=yes
2046 DEFAULT_wxUSE_CONTROLS=no
2047
2048 DEFAULT_wxUSE_REGEX=no
2049 DEFAULT_wxUSE_XML=no
2050 DEFAULT_wxUSE_EXPAT=no
2051 DEFAULT_wxUSE_ZLIB=no
2052 DEFAULT_wxUSE_LIBPNG=no
2053 DEFAULT_wxUSE_LIBJPEG=no
2054 DEFAULT_wxUSE_LIBTIFF=no
2055 DEFAULT_wxUSE_LIBXPM=no
2056 DEFAULT_wxUSE_LIBMSPACK=no
2057 DEFAULT_wxUSE_LIBSDL=no
2058 DEFAULT_wxUSE_ODBC=no
2059 DEFAULT_wxUSE_OPENGL=no
2060
2061 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2062 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2063 DEFAULT_wxUSE_STD_IOSTREAM=no
2064 DEFAULT_wxUSE_CMDLINE_PARSER=no
2065 DEFAULT_wxUSE_DATETIME=no
2066 DEFAULT_wxUSE_TIMER=no
2067 DEFAULT_wxUSE_STOPWATCH=no
2068 DEFAULT_wxUSE_FILE=no
2069 DEFAULT_wxUSE_FFILE=no
2070 DEFAULT_wxUSE_TEXTBUFFER=no
2071 DEFAULT_wxUSE_TEXTFILE=no
2072 DEFAULT_wxUSE_SOUND=no
2073 DEFAULT_wxUSE_INTL=no
2074 DEFAULT_wxUSE_CONFIG=no
2075 DEFAULT_wxUSE_FONTMAP=no
2076 DEFAULT_wxUSE_STREAMS=no
2077 DEFAULT_wxUSE_SOCKETS=no
2078 DEFAULT_wxUSE_OLE=no
2079 DEFAULT_wxUSE_DATAOBJ=no
2080 DEFAULT_wxUSE_DIALUP_MANAGER=no
2081 DEFAULT_wxUSE_JOYSTICK=no
2082 DEFAULT_wxUSE_DYNLIB_CLASS=no
2083 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2084 DEFAULT_wxUSE_LONGLONG=no
2085 DEFAULT_wxUSE_GEOMETRY=no
2086
2087 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2088 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2089 DEFAULT_wxUSE_POSTSCRIPT=no
2090
2091 DEFAULT_wxUSE_CLIPBOARD=no
2092 DEFAULT_wxUSE_TOOLTIPS=no
2093 DEFAULT_wxUSE_DRAG_AND_DROP=no
2094 DEFAULT_wxUSE_DRAGIMAGE=no
2095 DEFAULT_wxUSE_SPLINES=no
2096
8a7b1113 2097 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2098 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2099 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2100 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2101
2102 DEFAULT_wxUSE_RESOURCES=no
2103 DEFAULT_wxUSE_CONSTRAINTS=no
2104 DEFAULT_wxUSE_IPC=no
2105 DEFAULT_wxUSE_HELP=no
2106 DEFAULT_wxUSE_MS_HTML_HELP=no
2107 DEFAULT_wxUSE_WXHTML_HELP=no
2108 DEFAULT_wxUSE_TREELAYOUT=no
2109 DEFAULT_wxUSE_METAFILE=no
2110 DEFAULT_wxUSE_MIMETYPE=no
2111 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2112 DEFAULT_wxUSE_PROTOCOL=no
2113 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2114 DEFAULT_wxUSE_PROTOCOL_FTP=no
2115 DEFAULT_wxUSE_PROTOCOL_FILE=no
2116 DEFAULT_wxUSE_URL=no
2117
2118 DEFAULT_wxUSE_COMMONDLGS=no
2119 DEFAULT_wxUSE_CHOICEDLG=no
2120 DEFAULT_wxUSE_COLOURDLG=no
2121 DEFAULT_wxUSE_DIRDLG=no
2122 DEFAULT_wxUSE_FILEDLG=no
2123 DEFAULT_wxUSE_FINDREPLDLG=no
2124 DEFAULT_wxUSE_FONTDLG=no
2125 DEFAULT_wxUSE_MSGDLG=no
2126 DEFAULT_wxUSE_NUMBERDLG=no
2127 DEFAULT_wxUSE_TEXTDLG=no
2128 DEFAULT_wxUSE_SPLASH=no
2129 DEFAULT_wxUSE_STARTUP_TIPS=no
2130 DEFAULT_wxUSE_PROGRESSDLG=no
2131 DEFAULT_wxUSE_WIZARDDLG=no
2132
2133 DEFAULT_wxUSE_MENUS=no
2134 DEFAULT_wxUSE_MINIFRAME=no
2135 DEFAULT_wxUSE_HTML=no
9a8f0513 2136 DEFAULT_wxUSE_XRC=no
646b6ec1 2137 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2138 DEFAULT_wxUSE_FILESYSTEM=no
2139 DEFAULT_wxUSE_FS_INET=no
2140 DEFAULT_wxUSE_FS_ZIP=no
2141 DEFAULT_wxUSE_BUSYINFO=no
2142 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2143 DEFAULT_wxUSE_VALIDATORS=no
2144
2145 DEFAULT_wxUSE_ACCEL=no
2146 DEFAULT_wxUSE_BUTTON=no
2147 DEFAULT_wxUSE_BMPBUTTON=no
2148 DEFAULT_wxUSE_CALCTRL=no
2149 DEFAULT_wxUSE_CARET=no
2150 DEFAULT_wxUSE_CHECKBOX=no
2151 DEFAULT_wxUSE_CHECKLST=no
2152 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2153 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2154 DEFAULT_wxUSE_COMBOBOX=no
2155 DEFAULT_wxUSE_DISPLAY=no
2156 DEFAULT_wxUSE_GAUGE=no
2157 DEFAULT_wxUSE_GRID=no
2158 DEFAULT_wxUSE_IMAGLIST=no
2159 DEFAULT_wxUSE_LISTBOOK=no
2160 DEFAULT_wxUSE_LISTBOX=no
2161 DEFAULT_wxUSE_LISTCTRL=no
2162 DEFAULT_wxUSE_NOTEBOOK=no
2163 DEFAULT_wxUSE_RADIOBOX=no
2164 DEFAULT_wxUSE_RADIOBTN=no
2165 DEFAULT_wxUSE_SASH=no
2166 DEFAULT_wxUSE_SCROLLBAR=no
2167 DEFAULT_wxUSE_SLIDER=no
2168 DEFAULT_wxUSE_SPINBTN=no
2169 DEFAULT_wxUSE_SPINCTRL=no
2170 DEFAULT_wxUSE_SPLITTER=no
2171 DEFAULT_wxUSE_STATBMP=no
2172 DEFAULT_wxUSE_STATBOX=no
2173 DEFAULT_wxUSE_STATLINE=no
2174 DEFAULT_wxUSE_STATTEXT=no
2175 DEFAULT_wxUSE_STATUSBAR=yes
2176 DEFAULT_wxUSE_TABDIALOG=no
2177 DEFAULT_wxUSE_TEXTCTRL=no
2178 DEFAULT_wxUSE_TOGGLEBTN=no
2179 DEFAULT_wxUSE_TOOLBAR=no
2180 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2181 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2182 DEFAULT_wxUSE_TREECTRL=no
2183 DEFAULT_wxUSE_POPUPWIN=no
2184 DEFAULT_wxUSE_TIPWINDOW=no
2185
2186 DEFAULT_wxUSE_UNICODE=no
2187 DEFAULT_wxUSE_UNICODE_MSLU=no
2188 DEFAULT_wxUSE_WCSRTOMBS=no
2189
2190 DEFAULT_wxUSE_PALETTE=no
2191 DEFAULT_wxUSE_IMAGE=no
2192 DEFAULT_wxUSE_GIF=no
2193 DEFAULT_wxUSE_PCX=no
2194 DEFAULT_wxUSE_PNM=no
2195 DEFAULT_wxUSE_IFF=no
2196 DEFAULT_wxUSE_XPM=no
2197 DEFAULT_wxUSE_ICO_CUR=no
2198 DEFAULT_wxUSE_ACCESSIBILITY=no
2199
2200 DEFAULT_wxUSE_MONOLITHIC=no
2201 DEFAULT_wxUSE_PLUGINS=no
2202 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2203else
2204 DEFAULT_wxUSE_UNIVERSAL=no
2205 DEFAULT_wxUSE_STL=no
2206
2207 DEFAULT_wxUSE_NANOX=no
2208
2209 DEFAULT_wxUSE_THREADS=yes
2210
2211 DEFAULT_wxUSE_SHARED=yes
2212 DEFAULT_wxUSE_OPTIMISE=yes
2213 DEFAULT_wxUSE_PROFILE=no
2214 DEFAULT_wxUSE_NO_DEPS=no
2215 DEFAULT_wxUSE_NO_RTTI=no
2216 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2217 DEFAULT_wxUSE_PERMISSIVE=no
2218 DEFAULT_wxUSE_DEBUG_FLAG=no
2219 DEFAULT_wxUSE_DEBUG_INFO=no
2220 DEFAULT_wxUSE_DEBUG_GDB=no
2221 DEFAULT_wxUSE_MEM_TRACING=no
2222 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2223 DEFAULT_wxUSE_DMALLOC=no
2224 DEFAULT_wxUSE_APPLE_IEEE=yes
2225
2226 DEFAULT_wxUSE_EXCEPTIONS=yes
2227 DEFAULT_wxUSE_LOG=yes
2228 DEFAULT_wxUSE_LOGWINDOW=yes
2229 DEFAULT_wxUSE_LOGGUI=yes
2230 DEFAULT_wxUSE_LOGDIALOG=yes
2231
2232 DEFAULT_wxUSE_GUI=yes
2233
2234 DEFAULT_wxUSE_REGEX=yes
2235 DEFAULT_wxUSE_XML=yes
2236 DEFAULT_wxUSE_EXPAT=yes
2237 DEFAULT_wxUSE_ZLIB=yes
2238 DEFAULT_wxUSE_LIBPNG=yes
2239 DEFAULT_wxUSE_LIBJPEG=yes
2240 DEFAULT_wxUSE_LIBTIFF=yes
2241 DEFAULT_wxUSE_LIBXPM=yes
2242 DEFAULT_wxUSE_LIBMSPACK=yes
2243 DEFAULT_wxUSE_LIBSDL=no
2244 DEFAULT_wxUSE_ODBC=no
2245 DEFAULT_wxUSE_OPENGL=no
2246
2247 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2248 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2249 DEFAULT_wxUSE_STD_IOSTREAM=no
2250 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2251 DEFAULT_wxUSE_DATETIME=yes
2252 DEFAULT_wxUSE_TIMER=yes
2253 DEFAULT_wxUSE_STOPWATCH=yes
2254 DEFAULT_wxUSE_FILE=yes
2255 DEFAULT_wxUSE_FFILE=yes
2256 DEFAULT_wxUSE_TEXTBUFFER=yes
2257 DEFAULT_wxUSE_TEXTFILE=yes
2258 DEFAULT_wxUSE_SOUND=yes
2259 DEFAULT_wxUSE_INTL=yes
2260 DEFAULT_wxUSE_CONFIG=yes
2261 DEFAULT_wxUSE_FONTMAP=yes
2262 DEFAULT_wxUSE_STREAMS=yes
2263 DEFAULT_wxUSE_SOCKETS=yes
2264 DEFAULT_wxUSE_OLE=yes
2265 DEFAULT_wxUSE_DATAOBJ=yes
2266 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2267 DEFAULT_wxUSE_JOYSTICK=yes
2268 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2269 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2270 DEFAULT_wxUSE_LONGLONG=yes
2271 DEFAULT_wxUSE_GEOMETRY=yes
2272
2273 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2274 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2275 DEFAULT_wxUSE_POSTSCRIPT=yes
2276
2277 DEFAULT_wxUSE_CLIPBOARD=yes
2278 DEFAULT_wxUSE_TOOLTIPS=yes
2279 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2280 DEFAULT_wxUSE_DRAGIMAGE=yes
2281 DEFAULT_wxUSE_SPLINES=yes
2282
8a7b1113 2283 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2285 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2286 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2287
2288 DEFAULT_wxUSE_RESOURCES=no
2289 DEFAULT_wxUSE_CONSTRAINTS=yes
2290 DEFAULT_wxUSE_IPC=yes
2291 DEFAULT_wxUSE_HELP=yes
2292 DEFAULT_wxUSE_MS_HTML_HELP=yes
2293 DEFAULT_wxUSE_WXHTML_HELP=yes
2294 DEFAULT_wxUSE_TREELAYOUT=yes
2295 DEFAULT_wxUSE_METAFILE=yes
2296 DEFAULT_wxUSE_MIMETYPE=yes
2297 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2298 DEFAULT_wxUSE_PROTOCOL=yes
2299 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2300 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2301 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2302 DEFAULT_wxUSE_URL=yes
2303
2304 DEFAULT_wxUSE_COMMONDLGS=yes
2305 DEFAULT_wxUSE_CHOICEDLG=yes
2306 DEFAULT_wxUSE_COLOURDLG=yes
2307 DEFAULT_wxUSE_DIRDLG=yes
2308 DEFAULT_wxUSE_FILEDLG=yes
2309 DEFAULT_wxUSE_FINDREPLDLG=yes
2310 DEFAULT_wxUSE_FONTDLG=yes
2311 DEFAULT_wxUSE_MSGDLG=yes
2312 DEFAULT_wxUSE_NUMBERDLG=yes
2313 DEFAULT_wxUSE_TEXTDLG=yes
2314 DEFAULT_wxUSE_SPLASH=yes
2315 DEFAULT_wxUSE_STARTUP_TIPS=yes
2316 DEFAULT_wxUSE_PROGRESSDLG=yes
2317 DEFAULT_wxUSE_WIZARDDLG=yes
2318
2319 DEFAULT_wxUSE_MENUS=yes
2320 DEFAULT_wxUSE_MINIFRAME=yes
2321 DEFAULT_wxUSE_HTML=yes
9a8f0513 2322 DEFAULT_wxUSE_XRC=yes
646b6ec1 2323 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2324 DEFAULT_wxUSE_FILESYSTEM=yes
2325 DEFAULT_wxUSE_FS_INET=yes
2326 DEFAULT_wxUSE_FS_ZIP=yes
2327 DEFAULT_wxUSE_BUSYINFO=yes
2328 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2329 DEFAULT_wxUSE_VALIDATORS=yes
2330
2331 DEFAULT_wxUSE_ACCEL=yes
2332 DEFAULT_wxUSE_BUTTON=yes
2333 DEFAULT_wxUSE_BMPBUTTON=yes
2334 DEFAULT_wxUSE_CALCTRL=yes
2335 DEFAULT_wxUSE_CARET=yes
2336 DEFAULT_wxUSE_CHECKBOX=yes
2337 DEFAULT_wxUSE_CHECKLST=yes
2338 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2339 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2340 DEFAULT_wxUSE_COMBOBOX=yes
2341 DEFAULT_wxUSE_DISPLAY=yes
2342 DEFAULT_wxUSE_GAUGE=yes
2343 DEFAULT_wxUSE_GRID=yes
2344 DEFAULT_wxUSE_IMAGLIST=yes
2345 DEFAULT_wxUSE_LISTBOOK=yes
2346 DEFAULT_wxUSE_LISTBOX=yes
2347 DEFAULT_wxUSE_LISTCTRL=yes
2348 DEFAULT_wxUSE_NOTEBOOK=yes
2349 DEFAULT_wxUSE_RADIOBOX=yes
2350 DEFAULT_wxUSE_RADIOBTN=yes
2351 DEFAULT_wxUSE_SASH=yes
2352 DEFAULT_wxUSE_SCROLLBAR=yes
2353 DEFAULT_wxUSE_SLIDER=yes
2354 DEFAULT_wxUSE_SPINBTN=yes
2355 DEFAULT_wxUSE_SPINCTRL=yes
2356 DEFAULT_wxUSE_SPLITTER=yes
2357 DEFAULT_wxUSE_STATBMP=yes
2358 DEFAULT_wxUSE_STATBOX=yes
2359 DEFAULT_wxUSE_STATLINE=yes
2360 DEFAULT_wxUSE_STATTEXT=yes
2361 DEFAULT_wxUSE_STATUSBAR=yes
2362 DEFAULT_wxUSE_TABDIALOG=no
2363 DEFAULT_wxUSE_TEXTCTRL=yes
2364 DEFAULT_wxUSE_TOGGLEBTN=yes
2365 DEFAULT_wxUSE_TOOLBAR=yes
2366 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2367 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2368 DEFAULT_wxUSE_TREECTRL=yes
2369 DEFAULT_wxUSE_POPUPWIN=yes
2370 DEFAULT_wxUSE_TIPWINDOW=yes
2371
2372 DEFAULT_wxUSE_UNICODE=no
2373 DEFAULT_wxUSE_UNICODE_MSLU=yes
2374 DEFAULT_wxUSE_WCSRTOMBS=no
2375
2376 DEFAULT_wxUSE_PALETTE=yes
2377 DEFAULT_wxUSE_IMAGE=yes
2378 DEFAULT_wxUSE_GIF=yes
2379 DEFAULT_wxUSE_PCX=yes
2380 DEFAULT_wxUSE_IFF=no
2381 DEFAULT_wxUSE_PNM=yes
2382 DEFAULT_wxUSE_XPM=yes
2383 DEFAULT_wxUSE_ICO_CUR=yes
2384 DEFAULT_wxUSE_ACCESSIBILITY=no
2385
2386 DEFAULT_wxUSE_MONOLITHIC=no
2387 DEFAULT_wxUSE_PLUGINS=no
2388 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2389
2390 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2391fi
2392
2393
2394
2395for toolkit in `echo $ALL_TOOLKITS`; do
2396 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2397 if test "x$LINE" != "x" ; then
2398 has_toolkit_in_cache=1
2399 eval "DEFAULT_$LINE"
2400 eval "CACHE_$toolkit=1"
2401 fi
2402done
2403
2404
2405
2406 enablestring=
2407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2408echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2409 no_cache=0
2410 # Check whether --enable-gui or --disable-gui was given.
2411if test "${enable_gui+set}" = set; then
2412 enableval="$enable_gui"
2413
2414 if test "$enableval" = yes; then
2415 ac_cv_use_gui='wxUSE_GUI=yes'
2416 else
2417 ac_cv_use_gui='wxUSE_GUI=no'
2418 fi
2419
2420else
2421
2422 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2423 if test "x$LINE" != x ; then
2424 eval "DEFAULT_$LINE"
2425 else
2426 no_cache=1
2427 fi
2428
2429 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2430
2431fi;
2432
2433 eval "$ac_cv_use_gui"
2434 if test "$no_cache" != 1; then
2435 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2436 fi
2437
2438 if test "$wxUSE_GUI" = yes; then
2439 echo "$as_me:$LINENO: result: yes" >&5
2440echo "${ECHO_T}yes" >&6
2441 else
2442 echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6
2444 fi
2445
2446
2447 enablestring=
2448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2449echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2450 no_cache=0
2451 # Check whether --enable-monolithic or --disable-monolithic was given.
2452if test "${enable_monolithic+set}" = set; then
2453 enableval="$enable_monolithic"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2457 else
2458 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2459 fi
2460
2461else
2462
2463 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2471
2472fi;
2473
2474 eval "$ac_cv_use_monolithic"
2475 if test "$no_cache" != 1; then
2476 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2477 fi
2478
2479 if test "$wxUSE_MONOLITHIC" = yes; then
2480 echo "$as_me:$LINENO: result: yes" >&5
2481echo "${ECHO_T}yes" >&6
2482 else
2483 echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6
2485 fi
2486
2487
2488 enablestring=
2489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2490echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2491 no_cache=0
2492 # Check whether --enable-plugins or --disable-plugins was given.
2493if test "${enable_plugins+set}" = set; then
2494 enableval="$enable_plugins"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2498 else
2499 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2500 fi
2501
2502else
2503
2504 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2512
2513fi;
2514
2515 eval "$ac_cv_use_plugins"
2516 if test "$no_cache" != 1; then
2517 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2518 fi
2519
2520 if test "$wxUSE_PLUGINS" = yes; then
2521 echo "$as_me:$LINENO: result: yes" >&5
2522echo "${ECHO_T}yes" >&6
2523 else
2524 echo "$as_me:$LINENO: result: no" >&5
2525echo "${ECHO_T}no" >&6
2526 fi
2527
2528
2529if test "$wxUSE_GUI" = "yes"; then
2530
2531
2532 enablestring=
2533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2534echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2535 no_cache=0
2536 # Check whether --enable-universal or --disable-universal was given.
2537if test "${enable_universal+set}" = set; then
2538 enableval="$enable_universal"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2542 else
2543 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2556
2557fi;
2558
2559 eval "$ac_cv_use_universal"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_UNIVERSAL" = yes; then
2565 echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567 else
2568 echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6
2570 fi
2571
2572
2573# Check whether --with-gtk or --without-gtk was given.
2574if test "${with_gtk+set}" = set; then
2575 withval="$with_gtk"
2576 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-motif or --without-motif was given.
2580if test "${with_motif+set}" = set; then
2581 withval="$with_motif"
2582 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2583fi;
2584
2585# Check whether --with-mac or --without-mac was given.
2586if test "${with_mac+set}" = set; then
2587 withval="$with_mac"
c228d3a4 2588 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2589fi;
2590
2591# Check whether --with-cocoa or --without-cocoa was given.
2592if test "${with_cocoa+set}" = set; then
2593 withval="$with_cocoa"
c228d3a4 2594 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2595fi;
2596
2597# Check whether --with-wine or --without-wine was given.
2598if test "${with_wine+set}" = set; then
2599 withval="$with_wine"
2600 wxUSE_WINE="$withval" CACHE_WINE=1
2601fi;
2602
2603# Check whether --with-msw or --without-msw was given.
2604if test "${with_msw+set}" = set; then
2605 withval="$with_msw"
2606 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-pm or --without-pm was given.
2610if test "${with_pm+set}" = set; then
2611 withval="$with_pm"
2612 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2613fi;
2614
2615# Check whether --with-mgl or --without-mgl was given.
2616if test "${with_mgl+set}" = set; then
2617 withval="$with_mgl"
2618 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621# Check whether --with-microwin or --without-microwin was given.
2622if test "${with_microwin+set}" = set; then
2623 withval="$with_microwin"
2624 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2625fi;
2626
2627# Check whether --with-x11 or --without-x11 was given.
2628if test "${with_x11+set}" = set; then
2629 withval="$with_x11"
2630 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2631fi;
2632
2633 enablestring=
2634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2635echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2636 no_cache=0
2637 # Check whether --enable-nanox or --disable-nanox was given.
2638if test "${enable_nanox+set}" = set; then
2639 enableval="$enable_nanox"
2640
2641 if test "$enableval" = yes; then
2642 ac_cv_use_nanox='wxUSE_NANOX=yes'
2643 else
2644 ac_cv_use_nanox='wxUSE_NANOX=no'
2645 fi
2646
2647else
2648
2649 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2650 if test "x$LINE" != x ; then
2651 eval "DEFAULT_$LINE"
2652 else
2653 no_cache=1
2654 fi
2655
2656 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2657
2658fi;
2659
2660 eval "$ac_cv_use_nanox"
2661 if test "$no_cache" != 1; then
2662 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2663 fi
2664
2665 if test "$wxUSE_NANOX" = yes; then
2666 echo "$as_me:$LINENO: result: yes" >&5
2667echo "${ECHO_T}yes" >&6
2668 else
2669 echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6
2671 fi
2672
2673
2674
2675 enablestring=
2676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2677echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2678 no_cache=0
2679 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2680if test "${enable_gtk2+set}" = set; then
2681 enableval="$enable_gtk2"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2685 else
2686 ac_cv_use_gtk2='wxUSE_GTK2=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2699
2700fi;
2701
2702 eval "$ac_cv_use_gtk2"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_GTK2" = yes; then
2708 echo "$as_me:$LINENO: result: yes" >&5
2709echo "${ECHO_T}yes" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713 fi
2714
2715
2716 enablestring=
2717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2718echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2719 no_cache=0
2720 # Check whether --enable-gpe or --disable-gpe was given.
2721if test "${enable_gpe+set}" = set; then
2722 enableval="$enable_gpe"
2723
2724 if test "$enableval" = yes; then
2725 ac_cv_use_gpe='wxUSE_GPE=yes'
2726 else
2727 ac_cv_use_gpe='wxUSE_GPE=no'
2728 fi
2729
2730else
2731
2732 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2733 if test "x$LINE" != x ; then
2734 eval "DEFAULT_$LINE"
2735 else
2736 no_cache=1
2737 fi
2738
2739 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2740
2741fi;
2742
2743 eval "$ac_cv_use_gpe"
2744 if test "$no_cache" != 1; then
2745 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2746 fi
2747
2748 if test "$wxUSE_GPE" = yes; then
2749 echo "$as_me:$LINENO: result: yes" >&5
2750echo "${ECHO_T}yes" >&6
2751 else
2752 echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6
2754 fi
2755
2756
2757
2758 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2759echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2760 no_cache=0
2761
2762# Check whether --with-libpng or --without-libpng was given.
2763if test "${with_libpng+set}" = set; then
2764 withval="$with_libpng"
2765
2766 if test "$withval" = yes; then
2767 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2768 elif test "$withval" = no; then
2769 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2770 elif test "$withval" = sys; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2772 elif test "$withval" = builtin; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2774 else
2775 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2776echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2777 { (exit 1); exit 1; }; }
2778 fi
2779
2780else
2781
2782 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2790
2791fi;
2792
2793 eval "$ac_cv_use_libpng"
2794 if test "$no_cache" != 1; then
2795 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2796 fi
2797
2798 if test "$wxUSE_LIBPNG" = yes; then
2799 echo "$as_me:$LINENO: result: yes" >&5
2800echo "${ECHO_T}yes" >&6
2801 elif test "$wxUSE_LIBPNG" = no; then
2802 echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804 elif test "$wxUSE_LIBPNG" = sys; then
2805 echo "$as_me:$LINENO: result: system version" >&5
2806echo "${ECHO_T}system version" >&6
2807 elif test "$wxUSE_LIBPNG" = builtin; then
2808 echo "$as_me:$LINENO: result: builtin version" >&5
2809echo "${ECHO_T}builtin version" >&6
2810 else
2811 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2812echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2813 { (exit 1); exit 1; }; }
2814 fi
2815
2816
2817 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2818echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2819 no_cache=0
2820
2821# Check whether --with-libjpeg or --without-libjpeg was given.
2822if test "${with_libjpeg+set}" = set; then
2823 withval="$with_libjpeg"
2824
2825 if test "$withval" = yes; then
2826 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2827 elif test "$withval" = no; then
2828 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2829 elif test "$withval" = sys; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2831 elif test "$withval" = builtin; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2833 else
2834 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2835echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2836 { (exit 1); exit 1; }; }
2837 fi
2838
2839else
2840
2841 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2842 if test "x$LINE" != x ; then
2843 eval "DEFAULT_$LINE"
2844 else
2845 no_cache=1
2846 fi
2847
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2849
2850fi;
2851
2852 eval "$ac_cv_use_libjpeg"
2853 if test "$no_cache" != 1; then
2854 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2855 fi
2856
2857 if test "$wxUSE_LIBJPEG" = yes; then
2858 echo "$as_me:$LINENO: result: yes" >&5
2859echo "${ECHO_T}yes" >&6
2860 elif test "$wxUSE_LIBJPEG" = no; then
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
2863 elif test "$wxUSE_LIBJPEG" = sys; then
2864 echo "$as_me:$LINENO: result: system version" >&5
2865echo "${ECHO_T}system version" >&6
2866 elif test "$wxUSE_LIBJPEG" = builtin; then
2867 echo "$as_me:$LINENO: result: builtin version" >&5
2868echo "${ECHO_T}builtin version" >&6
2869 else
2870 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2871echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2872 { (exit 1); exit 1; }; }
2873 fi
2874
2875
2876 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2877echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2878 no_cache=0
2879
2880# Check whether --with-libtiff or --without-libtiff was given.
2881if test "${with_libtiff+set}" = set; then
2882 withval="$with_libtiff"
2883
2884 if test "$withval" = yes; then
2885 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2886 elif test "$withval" = no; then
2887 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2888 elif test "$withval" = sys; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2890 elif test "$withval" = builtin; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2892 else
2893 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2894echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2895 { (exit 1); exit 1; }; }
2896 fi
2897
2898else
2899
2900 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2908
2909fi;
2910
2911 eval "$ac_cv_use_libtiff"
2912 if test "$no_cache" != 1; then
2913 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2914 fi
2915
2916 if test "$wxUSE_LIBTIFF" = yes; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918echo "${ECHO_T}yes" >&6
2919 elif test "$wxUSE_LIBTIFF" = no; then
2920 echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6
2922 elif test "$wxUSE_LIBTIFF" = sys; then
2923 echo "$as_me:$LINENO: result: system version" >&5
2924echo "${ECHO_T}system version" >&6
2925 elif test "$wxUSE_LIBTIFF" = builtin; then
2926 echo "$as_me:$LINENO: result: builtin version" >&5
2927echo "${ECHO_T}builtin version" >&6
2928 else
2929 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2930echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2931 { (exit 1); exit 1; }; }
2932 fi
2933
2934
2935 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2936echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2937 no_cache=0
2938
2939# Check whether --with-libxpm or --without-libxpm was given.
2940if test "${with_libxpm+set}" = set; then
2941 withval="$with_libxpm"
2942
2943 if test "$withval" = yes; then
2944 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2945 elif test "$withval" = no; then
2946 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2947 elif test "$withval" = sys; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2949 elif test "$withval" = builtin; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2951 else
2952 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2953echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2954 { (exit 1); exit 1; }; }
2955 fi
2956
2957else
2958
2959 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2967
2968fi;
2969
2970 eval "$ac_cv_use_libxpm"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_LIBXPM" = yes; then
2976 echo "$as_me:$LINENO: result: yes" >&5
2977echo "${ECHO_T}yes" >&6
2978 elif test "$wxUSE_LIBXPM" = no; then
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981 elif test "$wxUSE_LIBXPM" = sys; then
2982 echo "$as_me:$LINENO: result: system version" >&5
2983echo "${ECHO_T}system version" >&6
2984 elif test "$wxUSE_LIBXPM" = builtin; then
2985 echo "$as_me:$LINENO: result: builtin version" >&5
2986echo "${ECHO_T}builtin version" >&6
2987 else
2988 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2989echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2990 { (exit 1); exit 1; }; }
2991 fi
2992
2993
2994 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2995echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2996 no_cache=0
2997
2998# Check whether --with-libmspack or --without-libmspack was given.
2999if test "${with_libmspack+set}" = set; then
3000 withval="$with_libmspack"
3001
3002 if test "$withval" = yes; then
3003 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3004 else
3005 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3018
3019fi;
3020
3021 eval "$ac_cv_use_libmspack"
3022 if test "$no_cache" != 1; then
3023 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3024 fi
3025
3026 if test "$wxUSE_LIBMSPACK" = yes; then
3027 echo "$as_me:$LINENO: result: yes" >&5
3028echo "${ECHO_T}yes" >&6
3029 else
3030 echo "$as_me:$LINENO: result: no" >&5
3031echo "${ECHO_T}no" >&6
3032 fi
3033
3034
3035 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3036echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3037 no_cache=0
3038
3039# Check whether --with-sdl or --without-sdl was given.
3040if test "${with_sdl+set}" = set; then
3041 withval="$with_sdl"
3042
3043 if test "$withval" = yes; then
3044 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3045 else
3046 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3047 fi
3048
3049else
3050
3051 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3059
3060fi;
3061
3062 eval "$ac_cv_use_sdl"
3063 if test "$no_cache" != 1; then
3064 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3065 fi
3066
3067 if test "$wxUSE_LIBSDL" = yes; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069echo "${ECHO_T}yes" >&6
3070 else
3071 echo "$as_me:$LINENO: result: no" >&5
3072echo "${ECHO_T}no" >&6
3073 fi
3074
3075
3076 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3077echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3078 no_cache=0
3079
3080# Check whether --with-opengl or --without-opengl was given.
3081if test "${with_opengl+set}" = set; then
3082 withval="$with_opengl"
3083
3084 if test "$withval" = yes; then
3085 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3086 else
3087 ac_cv_use_opengl='wxUSE_OPENGL=no'
3088 fi
3089
3090else
3091
3092 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
3099 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3100
3101fi;
3102
3103 eval "$ac_cv_use_opengl"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_OPENGL" = yes; then
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114 fi
3115
3116
3117fi
3118
3119
3120 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3121echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-dmalloc or --without-dmalloc was given.
3125if test "${with_dmalloc+set}" = set; then
3126 withval="$with_dmalloc"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3130 else
3131 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3144
3145fi;
3146
3147 eval "$ac_cv_use_dmalloc"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_DMALLOC" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161 echo "$as_me:$LINENO: checking for --with-regex" >&5
3162echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3163 no_cache=0
3164
3165# Check whether --with-regex or --without-regex was given.
3166if test "${with_regex+set}" = set; then
3167 withval="$with_regex"
3168
3169 if test "$withval" = yes; then
3170 ac_cv_use_regex='wxUSE_REGEX=yes'
3171 elif test "$withval" = no; then
3172 ac_cv_use_regex='wxUSE_REGEX=no'
3173 elif test "$withval" = sys; then
3174 ac_cv_use_regex='wxUSE_REGEX=sys'
3175 elif test "$withval" = builtin; then
3176 ac_cv_use_regex='wxUSE_REGEX=builtin'
3177 else
3178 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3179echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3193
3194fi;
3195
3196 eval "$ac_cv_use_regex"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_REGEX" = yes; then
3202 echo "$as_me:$LINENO: result: yes" >&5
3203echo "${ECHO_T}yes" >&6
3204 elif test "$wxUSE_REGEX" = no; then
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207 elif test "$wxUSE_REGEX" = sys; then
3208 echo "$as_me:$LINENO: result: system version" >&5
3209echo "${ECHO_T}system version" >&6
3210 elif test "$wxUSE_REGEX" = builtin; then
3211 echo "$as_me:$LINENO: result: builtin version" >&5
3212echo "${ECHO_T}builtin version" >&6
3213 else
3214 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3215echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3216 { (exit 1); exit 1; }; }
3217 fi
3218
3219
3220 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3221echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3222 no_cache=0
3223
3224# Check whether --with-zlib or --without-zlib was given.
3225if test "${with_zlib+set}" = set; then
3226 withval="$with_zlib"
3227
3228 if test "$withval" = yes; then
3229 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3230 elif test "$withval" = no; then
3231 ac_cv_use_zlib='wxUSE_ZLIB=no'
3232 elif test "$withval" = sys; then
3233 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3234 elif test "$withval" = builtin; then
3235 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3236 else
3237 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3238echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3239 { (exit 1); exit 1; }; }
3240 fi
3241
3242else
3243
3244 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3252
3253fi;
3254
3255 eval "$ac_cv_use_zlib"
3256 if test "$no_cache" != 1; then
3257 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3258 fi
3259
3260 if test "$wxUSE_ZLIB" = yes; then
3261 echo "$as_me:$LINENO: result: yes" >&5
3262echo "${ECHO_T}yes" >&6
3263 elif test "$wxUSE_ZLIB" = no; then
3264 echo "$as_me:$LINENO: result: no" >&5
3265echo "${ECHO_T}no" >&6
3266 elif test "$wxUSE_ZLIB" = sys; then
3267 echo "$as_me:$LINENO: result: system version" >&5
3268echo "${ECHO_T}system version" >&6
3269 elif test "$wxUSE_ZLIB" = builtin; then
3270 echo "$as_me:$LINENO: result: builtin version" >&5
3271echo "${ECHO_T}builtin version" >&6
3272 else
3273 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3274echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3275 { (exit 1); exit 1; }; }
3276 fi
3277
3278
3279 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3280echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3281 no_cache=0
3282
3283# Check whether --with-odbc or --without-odbc was given.
3284if test "${with_odbc+set}" = set; then
3285 withval="$with_odbc"
3286
3287 if test "$withval" = yes; then
3288 ac_cv_use_odbc='wxUSE_ODBC=yes'
3289 elif test "$withval" = no; then
3290 ac_cv_use_odbc='wxUSE_ODBC=no'
3291 elif test "$withval" = sys; then
3292 ac_cv_use_odbc='wxUSE_ODBC=sys'
3293 elif test "$withval" = builtin; then
3294 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3295 else
3296 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3297echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3298 { (exit 1); exit 1; }; }
3299 fi
3300
3301else
3302
3303 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3304 if test "x$LINE" != x ; then
3305 eval "DEFAULT_$LINE"
3306 else
3307 no_cache=1
3308 fi
3309
3310 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3311
3312fi;
3313
3314 eval "$ac_cv_use_odbc"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_ODBC" = yes; then
3320 echo "$as_me:$LINENO: result: yes" >&5
3321echo "${ECHO_T}yes" >&6
3322 elif test "$wxUSE_ODBC" = no; then
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325 elif test "$wxUSE_ODBC" = sys; then
3326 echo "$as_me:$LINENO: result: system version" >&5
3327echo "${ECHO_T}system version" >&6
3328 elif test "$wxUSE_ODBC" = builtin; then
3329 echo "$as_me:$LINENO: result: builtin version" >&5
3330echo "${ECHO_T}builtin version" >&6
3331 else
3332 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3333echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3334 { (exit 1); exit 1; }; }
3335 fi
3336
3337
3338 echo "$as_me:$LINENO: checking for --with-expat" >&5
3339echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3340 no_cache=0
3341
3342# Check whether --with-expat or --without-expat was given.
3343if test "${with_expat+set}" = set; then
3344 withval="$with_expat"
3345
3346 if test "$withval" = yes; then
3347 ac_cv_use_expat='wxUSE_EXPAT=yes'
3348 elif test "$withval" = no; then
3349 ac_cv_use_expat='wxUSE_EXPAT=no'
3350 elif test "$withval" = sys; then
3351 ac_cv_use_expat='wxUSE_EXPAT=sys'
3352 elif test "$withval" = builtin; then
3353 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3354 else
3355 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3356echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3357 { (exit 1); exit 1; }; }
3358 fi
3359
3360else
3361
3362 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3363 if test "x$LINE" != x ; then
3364 eval "DEFAULT_$LINE"
3365 else
3366 no_cache=1
3367 fi
3368
3369 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3370
3371fi;
3372
3373 eval "$ac_cv_use_expat"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_EXPAT" = yes; then
3379 echo "$as_me:$LINENO: result: yes" >&5
3380echo "${ECHO_T}yes" >&6
3381 elif test "$wxUSE_EXPAT" = no; then
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
3384 elif test "$wxUSE_EXPAT" = sys; then
3385 echo "$as_me:$LINENO: result: system version" >&5
3386echo "${ECHO_T}system version" >&6
3387 elif test "$wxUSE_EXPAT" = builtin; then
3388 echo "$as_me:$LINENO: result: builtin version" >&5
3389echo "${ECHO_T}builtin version" >&6
3390 else
3391 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3392echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3393 { (exit 1); exit 1; }; }
3394 fi
3395
3396
3397
3398
3399 enablestring=
3400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3401echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3402 no_cache=0
3403 # Check whether --enable-shared or --disable-shared was given.
3404if test "${enable_shared+set}" = set; then
3405 enableval="$enable_shared"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_shared='wxUSE_SHARED=yes'
3409 else
3410 ac_cv_use_shared='wxUSE_SHARED=no'
3411 fi
3412
3413else
3414
3415 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3423
3424fi;
3425
3426 eval "$ac_cv_use_shared"
3427 if test "$no_cache" != 1; then
3428 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3429 fi
3430
3431 if test "$wxUSE_SHARED" = yes; then
3432 echo "$as_me:$LINENO: result: yes" >&5
3433echo "${ECHO_T}yes" >&6
3434 else
3435 echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
3437 fi
3438
3439
3440 enablestring=
3441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3442echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3443 no_cache=0
3444 # Check whether --enable-optimise or --disable-optimise was given.
3445if test "${enable_optimise+set}" = set; then
3446 enableval="$enable_optimise"
3447
3448 if test "$enableval" = yes; then
3449 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3450 else
3451 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3464
3465fi;
3466
3467 eval "$ac_cv_use_optimise"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_OPTIMISE" = yes; then
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478 fi
3479
3480
3481 enablestring=
3482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3483echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3484 no_cache=0
3485 # Check whether --enable-debug or --disable-debug was given.
3486if test "${enable_debug+set}" = set; then
3487 enableval="$enable_debug"
3488
3489 if test "$enableval" = yes; then
3490 ac_cv_use_debug='wxUSE_DEBUG=yes'
3491 else
3492 ac_cv_use_debug='wxUSE_DEBUG=no'
3493 fi
3494
3495else
3496
3497 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3498 if test "x$LINE" != x ; then
3499 eval "DEFAULT_$LINE"
3500 else
3501 no_cache=1
3502 fi
3503
3504 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3505
3506fi;
3507
3508 eval "$ac_cv_use_debug"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_DEBUG" = yes; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515echo "${ECHO_T}yes" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518echo "${ECHO_T}no" >&6
3519 fi
3520
3521
3522 enablestring=
3523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3524echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3525 no_cache=0
3526 # Check whether --enable-stl or --disable-stl was given.
3527if test "${enable_stl+set}" = set; then
3528 enableval="$enable_stl"
3529
3530 if test "$enableval" = yes; then
3531 ac_cv_use_stl='wxUSE_STL=yes'
3532 else
3533 ac_cv_use_stl='wxUSE_STL=no'
3534 fi
3535
3536else
3537
3538 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3546
3547fi;
3548
3549 eval "$ac_cv_use_stl"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_STL" = yes; then
3555 echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6
3557 else
3558 echo "$as_me:$LINENO: result: no" >&5
3559echo "${ECHO_T}no" >&6
3560 fi
3561
3562if test "$USE_OS2" = "1"; then
3563
3564 enablestring=
3565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3566echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3567 no_cache=0
3568 # Check whether --enable-omf or --disable-omf was given.
3569if test "${enable_omf+set}" = set; then
3570 enableval="$enable_omf"
3571
3572 if test "$enableval" = yes; then
3573 ac_cv_use_omf='wxUSE_OMF=yes'
3574 else
3575 ac_cv_use_omf='wxUSE_OMF=no'
3576 fi
3577
3578else
3579
3580 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3581 if test "x$LINE" != x ; then
3582 eval "DEFAULT_$LINE"
3583 else
3584 no_cache=1
3585 fi
3586
3587 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3588
3589fi;
3590
3591 eval "$ac_cv_use_omf"
3592 if test "$no_cache" != 1; then
3593 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3594 fi
3595
3596 if test "$wxUSE_OMF" = yes; then
3597 echo "$as_me:$LINENO: result: yes" >&5
3598echo "${ECHO_T}yes" >&6
3599 else
3600 echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6
3602 fi
3603
3604fi
3605
3606if test "$wxUSE_DEBUG" = "yes"; then
3607 DEFAULT_wxUSE_DEBUG_FLAG=yes
3608 DEFAULT_wxUSE_DEBUG_INFO=yes
3609 BUILD=debug
3610elif test "$wxUSE_DEBUG" = "no"; then
3611 DEFAULT_wxUSE_DEBUG_FLAG=no
3612 DEFAULT_wxUSE_DEBUG_INFO=no
3613 BUILD=release
3614fi
3615
3616
3617 enablestring=
3618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3619echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3620 no_cache=0
3621 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3622if test "${enable_debug_flag+set}" = set; then
3623 enableval="$enable_debug_flag"
3624
3625 if test "$enableval" = yes; then
3626 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3627 else
3628 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3629 fi
3630
3631else
3632
3633 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3634 if test "x$LINE" != x ; then
3635 eval "DEFAULT_$LINE"
3636 else
3637 no_cache=1
3638 fi
3639
3640 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3641
3642fi;
3643
3644 eval "$ac_cv_use_debug_flag"
3645 if test "$no_cache" != 1; then
3646 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3647 fi
3648
3649 if test "$wxUSE_DEBUG_FLAG" = yes; then
3650 echo "$as_me:$LINENO: result: yes" >&5
3651echo "${ECHO_T}yes" >&6
3652 else
3653 echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
3655 fi
3656
3657
3658 enablestring=
3659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3660echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3661 no_cache=0
3662 # Check whether --enable-debug_info or --disable-debug_info was given.
3663if test "${enable_debug_info+set}" = set; then
3664 enableval="$enable_debug_info"
3665
3666 if test "$enableval" = yes; then
3667 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3668 else
3669 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3670 fi
3671
3672else
3673
3674 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3682
3683fi;
3684
3685 eval "$ac_cv_use_debug_info"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_DEBUG_INFO" = yes; then
3691 echo "$as_me:$LINENO: result: yes" >&5
3692echo "${ECHO_T}yes" >&6
3693 else
3694 echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
3696 fi
3697
3698
3699 enablestring=
3700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3701echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3702 no_cache=0
3703 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3704if test "${enable_debug_gdb+set}" = set; then
3705 enableval="$enable_debug_gdb"
3706
3707 if test "$enableval" = yes; then
3708 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3709 else
3710 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3711 fi
3712
3713else
3714
3715 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3716 if test "x$LINE" != x ; then
3717 eval "DEFAULT_$LINE"
3718 else
3719 no_cache=1
3720 fi
3721
3722 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3723
3724fi;
3725
3726 eval "$ac_cv_use_debug_gdb"
3727 if test "$no_cache" != 1; then
3728 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3729 fi
3730
3731 if test "$wxUSE_DEBUG_GDB" = yes; then
3732 echo "$as_me:$LINENO: result: yes" >&5
3733echo "${ECHO_T}yes" >&6
3734 else
3735 echo "$as_me:$LINENO: result: no" >&5
3736echo "${ECHO_T}no" >&6
3737 fi
3738
3739
3740 enablestring=
3741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3742echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3743 no_cache=0
3744 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3745if test "${enable_debug_cntxt+set}" = set; then
3746 enableval="$enable_debug_cntxt"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3750 else
3751 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3764
3765fi;
3766
3767 eval "$ac_cv_use_debug_cntxt"
3768 if test "$no_cache" != 1; then
3769 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3770 fi
3771
3772 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3773 echo "$as_me:$LINENO: result: yes" >&5
3774echo "${ECHO_T}yes" >&6
3775 else
3776 echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6
3778 fi
3779
3780
3781 enablestring=
3782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3783echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3784 no_cache=0
3785 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3786if test "${enable_mem_tracing+set}" = set; then
3787 enableval="$enable_mem_tracing"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3791 else
3792 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3805
3806fi;
3807
3808 eval "$ac_cv_use_mem_tracing"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_MEM_TRACING" = yes; then
3814 echo "$as_me:$LINENO: result: yes" >&5
3815echo "${ECHO_T}yes" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 enablestring=
3823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3824echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3825 no_cache=0
3826 # Check whether --enable-profile or --disable-profile was given.
3827if test "${enable_profile+set}" = set; then
3828 enableval="$enable_profile"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_profile='wxUSE_PROFILE=yes'
3832 else
3833 ac_cv_use_profile='wxUSE_PROFILE=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3846
3847fi;
3848
3849 eval "$ac_cv_use_profile"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_PROFILE" = yes; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863 enablestring=
3864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3865echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3866 no_cache=0
3867 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3868if test "${enable_no_rtti+set}" = set; then
3869 enableval="$enable_no_rtti"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3873 else
3874 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3875 fi
3876
3877else
3878
3879 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3887
3888fi;
3889
3890 eval "$ac_cv_use_no_rtti"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_NO_RTTI" = yes; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897echo "${ECHO_T}yes" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901 fi
3902
3903
3904 enablestring=
3905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3906echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3907 no_cache=0
3908 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3909if test "${enable_no_exceptions+set}" = set; then
3910 enableval="$enable_no_exceptions"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3914 else
3915 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3928
3929fi;
3930
3931 eval "$ac_cv_use_no_exceptions"
3932 if test "$no_cache" != 1; then
3933 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3934 fi
3935
3936 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3937 echo "$as_me:$LINENO: result: yes" >&5
3938echo "${ECHO_T}yes" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941echo "${ECHO_T}no" >&6
3942 fi
3943
3944
3945 enablestring=
3946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3947echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3948 no_cache=0
3949 # Check whether --enable-permissive or --disable-permissive was given.
3950if test "${enable_permissive+set}" = set; then
3951 enableval="$enable_permissive"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3955 else
3956 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3957 fi
3958
3959else
3960
3961 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3969
3970fi;
3971
3972 eval "$ac_cv_use_permissive"
3973 if test "$no_cache" != 1; then
3974 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3975 fi
3976
3977 if test "$wxUSE_PERMISSIVE" = yes; then
3978 echo "$as_me:$LINENO: result: yes" >&5
3979echo "${ECHO_T}yes" >&6
3980 else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983 fi
3984
3985
3986 enablestring=
3987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3988echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3989 no_cache=0
3990 # Check whether --enable-no_deps or --disable-no_deps was given.
3991if test "${enable_no_deps+set}" = set; then
3992 enableval="$enable_no_deps"
3993
3994 if test "$enableval" = yes; then
3995 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3996 else
3997 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3998 fi
3999
4000else
4001
4002 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4010
4011fi;
4012
4013 eval "$ac_cv_use_no_deps"
4014 if test "$no_cache" != 1; then
4015 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4016 fi
4017
4018 if test "$wxUSE_NO_DEPS" = yes; then
4019 echo "$as_me:$LINENO: result: yes" >&5
4020echo "${ECHO_T}yes" >&6
4021 else
4022 echo "$as_me:$LINENO: result: no" >&5
4023echo "${ECHO_T}no" >&6
4024 fi
4025
4026
4027
4028 enablestring=
4029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4030echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4031 no_cache=0
4032 # Check whether --enable-compat22 or --disable-compat22 was given.
4033if test "${enable_compat22+set}" = set; then
4034 enableval="$enable_compat22"
4035
4036 if test "$enableval" = yes; then
4037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4038 else
4039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4040 fi
4041
4042else
4043
4044 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
4051 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4052
4053fi;
4054
4055 eval "$ac_cv_use_compat22"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4061 echo "$as_me:$LINENO: result: yes" >&5
4062echo "${ECHO_T}yes" >&6
4063 else
4064 echo "$as_me:$LINENO: result: no" >&5
4065echo "${ECHO_T}no" >&6
4066 fi
4067
4068
4069 enablestring=disable
4070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4071echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4072 no_cache=0
4073 # Check whether --enable-compat24 or --disable-compat24 was given.
4074if test "${enable_compat24+set}" = set; then
4075 enableval="$enable_compat24"
4076
4077 if test "$enableval" = yes; then
4078 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4079 else
4080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4081 fi
4082
4083else
4084
4085 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4086 if test "x$LINE" != x ; then
4087 eval "DEFAULT_$LINE"
4088 else
4089 no_cache=1
4090 fi
4091
4092 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4093
4094fi;
4095
4096 eval "$ac_cv_use_compat24"
4097 if test "$no_cache" != 1; then
4098 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4099 fi
4100
4101 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4102 echo "$as_me:$LINENO: result: yes" >&5
4103echo "${ECHO_T}yes" >&6
4104 else
4105 echo "$as_me:$LINENO: result: no" >&5
4106echo "${ECHO_T}no" >&6
4107 fi
4108
4109
4110# Check whether --enable-rpath or --disable-rpath was given.
4111if test "${enable_rpath+set}" = set; then
4112 enableval="$enable_rpath"
4113 wxRPATH_DIR="$enableval"
4114fi;
4115
ac1cb8d3 4116if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4117 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4118fi
4119
4120
4121
4122
4123 enablestring=
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4126 no_cache=0
4127 # Check whether --enable-intl or --disable-intl was given.
4128if test "${enable_intl+set}" = set; then
4129 enableval="$enable_intl"
4130
4131 if test "$enableval" = yes; then
4132 ac_cv_use_intl='wxUSE_INTL=yes'
4133 else
4134 ac_cv_use_intl='wxUSE_INTL=no'
4135 fi
4136
4137else
4138
4139 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
4146 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4147
4148fi;
4149
4150 eval "$ac_cv_use_intl"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_INTL" = yes; then
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4167 no_cache=0
4168 # Check whether --enable-config or --disable-config was given.
4169if test "${enable_config+set}" = set; then
4170 enableval="$enable_config"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_config='wxUSE_CONFIG=yes'
4174 else
4175 ac_cv_use_config='wxUSE_CONFIG=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4188
4189fi;
4190
4191 eval "$ac_cv_use_config"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_CONFIG" = yes; then
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-protocols or --disable-protocols was given.
4211if test "${enable_protocols+set}" = set; then
4212 enableval="$enable_protocols"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4216 else
4217 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4230
4231fi;
4232
4233 eval "$ac_cv_use_protocols"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_PROTOCOL" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
4246
4247 enablestring=
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4250 no_cache=0
4251 # Check whether --enable-ftp or --disable-ftp was given.
4252if test "${enable_ftp+set}" = set; then
4253 enableval="$enable_ftp"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4257 else
4258 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4271
4272fi;
4273
4274 eval "$ac_cv_use_ftp"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288 enablestring=
4289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4290echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4291 no_cache=0
4292 # Check whether --enable-http or --disable-http was given.
4293if test "${enable_http+set}" = set; then
4294 enableval="$enable_http"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4298 else
4299 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4300 fi
4301
4302else
4303
4304 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4312
4313fi;
4314
4315 eval "$ac_cv_use_http"
4316 if test "$no_cache" != 1; then
4317 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4318 fi
4319
4320 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4321 echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6
4323 else
4324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
4326 fi
4327
4328
4329 enablestring=
4330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4331echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4332 no_cache=0
4333 # Check whether --enable-fileproto or --disable-fileproto was given.
4334if test "${enable_fileproto+set}" = set; then
4335 enableval="$enable_fileproto"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4339 else
4340 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4341 fi
4342
4343else
4344
4345 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4353
4354fi;
4355
4356 eval "$ac_cv_use_fileproto"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4362 echo "$as_me:$LINENO: result: yes" >&5
4363echo "${ECHO_T}yes" >&6
4364 else
4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367 fi
4368
4369
4370 enablestring=
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4373 no_cache=0
4374 # Check whether --enable-sockets or --disable-sockets was given.
4375if test "${enable_sockets+set}" = set; then
4376 enableval="$enable_sockets"
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4380 else
4381 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4382 fi
4383
4384else
4385
4386 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4394
4395fi;
4396
4397 eval "$ac_cv_use_sockets"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_SOCKETS" = yes; then
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408 fi
4409
4410
4411 enablestring=
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4414 no_cache=0
4415 # Check whether --enable-ole or --disable-ole was given.
4416if test "${enable_ole+set}" = set; then
4417 enableval="$enable_ole"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_ole='wxUSE_OLE=yes'
4421 else
4422 ac_cv_use_ole='wxUSE_OLE=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4435
4436fi;
4437
4438 eval "$ac_cv_use_ole"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_OLE" = yes; then
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
4446 else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449 fi
4450
4451
4452 enablestring=
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4455 no_cache=0
4456 # Check whether --enable-dataobj or --disable-dataobj was given.
4457if test "${enable_dataobj+set}" = set; then
4458 enableval="$enable_dataobj"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4462 else
4463 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4476
4477fi;
4478
4479 eval "$ac_cv_use_dataobj"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_DATAOBJ" = yes; then
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
4487 else
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
4490 fi
4491
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-ipc or --disable-ipc was given.
4499if test "${enable_ipc+set}" = set; then
4500 enableval="$enable_ipc"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_ipc='wxUSE_IPC=yes'
4504 else
4505 ac_cv_use_ipc='wxUSE_IPC=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4518
4519fi;
4520
4521 eval "$ac_cv_use_ipc"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_IPC" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535
4536 enablestring=
4537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4538echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4539 no_cache=0
4540 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4541if test "${enable_apple_ieee+set}" = set; then
4542 enableval="$enable_apple_ieee"
4543
4544 if test "$enableval" = yes; then
4545 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4546 else
4547 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4548 fi
4549
4550else
4551
4552 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4560
4561fi;
4562
4563 eval "$ac_cv_use_apple_ieee"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_APPLE_IEEE" = yes; then
4569 echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574 fi
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4582if test "${enable_catch_segvs+set}" = set; then
4583 enableval="$enable_catch_segvs"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4587 else
4588 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4601
4602fi;
4603
4604 eval "$ac_cv_use_catch_segvs"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618 enablestring=
4619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4620echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4621 no_cache=0
4622 # Check whether --enable-cmdline or --disable-cmdline was given.
4623if test "${enable_cmdline+set}" = set; then
4624 enableval="$enable_cmdline"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4628 else
4629 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4642
4643fi;
4644
4645 eval "$ac_cv_use_cmdline"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4651 echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
4653 else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656 fi
4657
4658
4659 enablestring=
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4662 no_cache=0
4663 # Check whether --enable-datetime or --disable-datetime was given.
4664if test "${enable_datetime+set}" = set; then
4665 enableval="$enable_datetime"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4669 else
4670 ac_cv_use_datetime='wxUSE_DATETIME=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4683
4684fi;
4685
4686 eval "$ac_cv_use_datetime"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_DATETIME" = yes; then
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697 fi
4698
4699
4700 enablestring=
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4703 no_cache=0
4704 # Check whether --enable-dialupman or --disable-dialupman was given.
4705if test "${enable_dialupman+set}" = set; then
4706 enableval="$enable_dialupman"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4710 else
4711 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4712 fi
4713
4714else
4715
4716 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4724
4725fi;
4726
4727 eval "$ac_cv_use_dialupman"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738 fi
4739
4740
4741 enablestring=
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4744 no_cache=0
4745 # Check whether --enable-dynlib or --disable-dynlib was given.
4746if test "${enable_dynlib+set}" = set; then
4747 enableval="$enable_dynlib"
4748
4749 if test "$enableval" = yes; then
4750 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4751 else
4752 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4753 fi
4754
4755else
4756
4757 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4765
4766fi;
4767
4768 eval "$ac_cv_use_dynlib"
4769 if test "$no_cache" != 1; then
4770 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4771 fi
4772
4773 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779 fi
4780
4781
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4787if test "${enable_dynamicloader+set}" = set; then
4788 enableval="$enable_dynamicloader"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4792 else
4793 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4806
4807fi;
4808
4809 eval "$ac_cv_use_dynamicloader"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823 enablestring=
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4826 no_cache=0
4827 # Check whether --enable-exceptions or --disable-exceptions was given.
4828if test "${enable_exceptions+set}" = set; then
4829 enableval="$enable_exceptions"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4833 else
4834 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4847
4848fi;
4849
4850 eval "$ac_cv_use_exceptions"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_EXCEPTIONS" = yes; then
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861 fi
4862
4863
4864 enablestring=
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4867 no_cache=0
4868 # Check whether --enable-ffile or --disable-ffile was given.
4869if test "${enable_ffile+set}" = set; then
4870 enableval="$enable_ffile"
4871
4872 if test "$enableval" = yes; then
4873 ac_cv_use_ffile='wxUSE_FFILE=yes'
4874 else
4875 ac_cv_use_ffile='wxUSE_FFILE=no'
4876 fi
4877
4878else
4879
4880 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4888
4889fi;
4890
4891 eval "$ac_cv_use_ffile"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_FFILE" = yes; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
4902 fi
4903
4904
4905 enablestring=
4906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4907echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4908 no_cache=0
4909 # Check whether --enable-file or --disable-file was given.
4910if test "${enable_file+set}" = set; then
4911 enableval="$enable_file"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_file='wxUSE_FILE=yes'
4915 else
4916 ac_cv_use_file='wxUSE_FILE=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4929
4930fi;
4931
4932 eval "$ac_cv_use_file"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_FILE" = yes; then
4938 echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943 fi
4944
4945
4946 enablestring=
4947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4948echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4949 no_cache=0
4950 # Check whether --enable-filesystem or --disable-filesystem was given.
4951if test "${enable_filesystem+set}" = set; then
4952 enableval="$enable_filesystem"
4953
4954 if test "$enableval" = yes; then
4955 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4956 else
4957 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4958 fi
4959
4960else
4961
4962 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4963 if test "x$LINE" != x ; then
4964 eval "DEFAULT_$LINE"
4965 else
4966 no_cache=1
4967 fi
4968
4969 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4970
4971fi;
4972
4973 eval "$ac_cv_use_filesystem"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_FILESYSTEM" = yes; then
4979 echo "$as_me:$LINENO: result: yes" >&5
4980echo "${ECHO_T}yes" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984 fi
4985
4986
4987 enablestring=
4988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4989echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4990 no_cache=0
4991 # Check whether --enable-fontmap or --disable-fontmap was given.
4992if test "${enable_fontmap+set}" = set; then
4993 enableval="$enable_fontmap"
4994
4995 if test "$enableval" = yes; then
4996 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4997 else
4998 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4999 fi
5000
5001else
5002
5003 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5004 if test "x$LINE" != x ; then
5005 eval "DEFAULT_$LINE"
5006 else
5007 no_cache=1
5008 fi
5009
5010 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5011
5012fi;
5013
5014 eval "$ac_cv_use_fontmap"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_FONTMAP" = yes; then
5020 echo "$as_me:$LINENO: result: yes" >&5
5021echo "${ECHO_T}yes" >&6
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025 fi
5026
5027
5028 enablestring=
5029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5030echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5031 no_cache=0
5032 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5033if test "${enable_fs_inet+set}" = set; then
5034 enableval="$enable_fs_inet"
5035
5036 if test "$enableval" = yes; then
5037 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5038 else
5039 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5040 fi
5041
5042else
5043
5044 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5045 if test "x$LINE" != x ; then
5046 eval "DEFAULT_$LINE"
5047 else
5048 no_cache=1
5049 fi
5050
5051 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5052
5053fi;
5054
5055 eval "$ac_cv_use_fs_inet"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_FS_INET" = yes; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6
5066 fi
5067
5068
5069 enablestring=
5070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5071echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5072 no_cache=0
5073 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5074if test "${enable_fs_zip+set}" = set; then
5075 enableval="$enable_fs_zip"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5079 else
5080 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5093
5094fi;
5095
5096 eval "$ac_cv_use_fs_zip"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_FS_ZIP" = yes; then
5102 echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104 else
5105 echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6
5107 fi
5108
5109
5110 enablestring=
5111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5112echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5113 no_cache=0
5114 # Check whether --enable-geometry or --disable-geometry was given.
5115if test "${enable_geometry+set}" = set; then
5116 enableval="$enable_geometry"
5117
5118 if test "$enableval" = yes; then
5119 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5120 else
5121 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5122 fi
5123
5124else
5125
5126 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5127 if test "x$LINE" != x ; then
5128 eval "DEFAULT_$LINE"
5129 else
5130 no_cache=1
5131 fi
5132
5133 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5134
5135fi;
5136
5137 eval "$ac_cv_use_geometry"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_GEOMETRY" = yes; then
5143 echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
5145 else
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148 fi
5149
5150
5151 enablestring=
5152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5153echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5154 no_cache=0
5155 # Check whether --enable-log or --disable-log was given.
5156if test "${enable_log+set}" = set; then
5157 enableval="$enable_log"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_log='wxUSE_LOG=yes'
5161 else
5162 ac_cv_use_log='wxUSE_LOG=no'
5163 fi
5164
5165else
5166
5167 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5175
5176fi;
5177
5178 eval "$ac_cv_use_log"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_LOG" = yes; then
5184 echo "$as_me:$LINENO: result: yes" >&5
5185echo "${ECHO_T}yes" >&6
5186 else
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189 fi
5190
5191
5192 enablestring=
5193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5194echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5195 no_cache=0
5196 # Check whether --enable-longlong or --disable-longlong was given.
5197if test "${enable_longlong+set}" = set; then
5198 enableval="$enable_longlong"
5199
5200 if test "$enableval" = yes; then
5201 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5202 else
5203 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5204 fi
5205
5206else
5207
5208 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5209 if test "x$LINE" != x ; then
5210 eval "DEFAULT_$LINE"
5211 else
5212 no_cache=1
5213 fi
5214
5215 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5216
5217fi;
5218
5219 eval "$ac_cv_use_longlong"
5220 if test "$no_cache" != 1; then
5221 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5222 fi
5223
5224 if test "$wxUSE_LONGLONG" = yes; then
5225 echo "$as_me:$LINENO: result: yes" >&5
5226echo "${ECHO_T}yes" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230 fi
5231
5232
5233 enablestring=
5234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5235echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5236 no_cache=0
5237 # Check whether --enable-mimetype or --disable-mimetype was given.
5238if test "${enable_mimetype+set}" = set; then
5239 enableval="$enable_mimetype"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5243 else
5244 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5257
5258fi;
5259
5260 eval "$ac_cv_use_mimetype"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_MIMETYPE" = yes; then
5266 echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271 fi
5272
5273
5274 enablestring=
5275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5276echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5277 no_cache=0
5278 # Check whether --enable-mslu or --disable-mslu was given.
5279if test "${enable_mslu+set}" = set; then
5280 enableval="$enable_mslu"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5284 else
5285 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5298
5299fi;
5300
5301 eval "$ac_cv_use_mslu"
5302 if test "$no_cache" != 1; then
5303 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5304 fi
5305
5306 if test "$wxUSE_UNICODE_MSLU" = yes; then
5307 echo "$as_me:$LINENO: result: yes" >&5
5308echo "${ECHO_T}yes" >&6
5309 else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312 fi
5313
5314
5315 enablestring=
5316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5317echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5318 no_cache=0
5319 # Check whether --enable-snglinst or --disable-snglinst was given.
5320if test "${enable_snglinst+set}" = set; then
5321 enableval="$enable_snglinst"
5322
5323 if test "$enableval" = yes; then
5324 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5325 else
5326 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5327 fi
5328
5329else
5330
5331 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5339
5340fi;
5341
5342 eval "$ac_cv_use_snglinst"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5348 echo "$as_me:$LINENO: result: yes" >&5
5349echo "${ECHO_T}yes" >&6
5350 else
5351 echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353 fi
5354
5355
5356 enablestring=
5357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5358echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5359 no_cache=0
5360 # Check whether --enable-streams or --disable-streams was given.
5361if test "${enable_streams+set}" = set; then
5362 enableval="$enable_streams"
5363
5364 if test "$enableval" = yes; then
5365 ac_cv_use_streams='wxUSE_STREAMS=yes'
5366 else
5367 ac_cv_use_streams='wxUSE_STREAMS=no'
5368 fi
5369
5370else
5371
5372 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5380
5381fi;
5382
5383 eval "$ac_cv_use_streams"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_STREAMS" = yes; then
5389 echo "$as_me:$LINENO: result: yes" >&5
5390echo "${ECHO_T}yes" >&6
5391 else
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394 fi
5395
5396
5397 enablestring=
5398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5399echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5400 no_cache=0
5401 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5402if test "${enable_std_iostreams+set}" = set; then
5403 enableval="$enable_std_iostreams"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5407 else
5408 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5421
5422fi;
5423
5424 eval "$ac_cv_use_std_iostreams"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_STD_IOSTREAM" = yes; then
5430 echo "$as_me:$LINENO: result: yes" >&5
5431echo "${ECHO_T}yes" >&6
5432 else
5433 echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435 fi
5436
5437
5438 enablestring=
5439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5440echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5441 no_cache=0
5442 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5443if test "${enable_stopwatch+set}" = set; then
5444 enableval="$enable_stopwatch"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5448 else
5449 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5450 fi
5451
5452else
5453
5454 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5462
5463fi;
5464
5465 eval "$ac_cv_use_stopwatch"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_STOPWATCH" = yes; then
5471 echo "$as_me:$LINENO: result: yes" >&5
5472echo "${ECHO_T}yes" >&6
5473 else
5474 echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6
5476 fi
5477
5478
5479 enablestring=
5480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5481echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5482 no_cache=0
5483 # Check whether --enable-system_options or --disable-system_options was given.
5484if test "${enable_system_options+set}" = set; then
5485 enableval="$enable_system_options"
5486
5487 if test "$enableval" = yes; then
5488 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5489 else
5490 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5491 fi
5492
5493else
5494
5495 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
5502 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5503
5504fi;
5505
5506 eval "$ac_cv_use_system_options"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5512 echo "$as_me:$LINENO: result: yes" >&5
5513echo "${ECHO_T}yes" >&6
5514 else
5515 echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6
5517 fi
5518
5519
5520 enablestring=
5521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5522echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5523 no_cache=0
5524 # Check whether --enable-textbuf or --disable-textbuf was given.
5525if test "${enable_textbuf+set}" = set; then
5526 enableval="$enable_textbuf"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5530 else
5531 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5532 fi
5533
5534else
5535
5536 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5544
5545fi;
5546
5547 eval "$ac_cv_use_textbuf"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_TEXTBUFFER" = yes; then
5553 echo "$as_me:$LINENO: result: yes" >&5
5554echo "${ECHO_T}yes" >&6
5555 else
5556 echo "$as_me:$LINENO: result: no" >&5
5557echo "${ECHO_T}no" >&6
5558 fi
5559
5560
5561 enablestring=
5562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5563echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5564 no_cache=0
5565 # Check whether --enable-textfile or --disable-textfile was given.
5566if test "${enable_textfile+set}" = set; then
5567 enableval="$enable_textfile"
5568
5569 if test "$enableval" = yes; then
5570 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5571 else
5572 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5573 fi
5574
5575else
5576
5577 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
5584 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5585
5586fi;
5587
5588 eval "$ac_cv_use_textfile"
5589 if test "$no_cache" != 1; then
5590 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5591 fi
5592
5593 if test "$wxUSE_TEXTFILE" = yes; then
5594 echo "$as_me:$LINENO: result: yes" >&5
5595echo "${ECHO_T}yes" >&6
5596 else
5597 echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599 fi
5600
5601
5602 enablestring=
5603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5604echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5605 no_cache=0
5606 # Check whether --enable-timer or --disable-timer was given.
5607if test "${enable_timer+set}" = set; then
5608 enableval="$enable_timer"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_timer='wxUSE_TIMER=yes'
5612 else
5613 ac_cv_use_timer='wxUSE_TIMER=no'
5614 fi
5615
5616else
5617
5618 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5626
5627fi;
5628
5629 eval "$ac_cv_use_timer"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_TIMER" = yes; then
5635 echo "$as_me:$LINENO: result: yes" >&5
5636echo "${ECHO_T}yes" >&6
5637 else
5638 echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640 fi
5641
5642
5643 enablestring=
5644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5645echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5646 no_cache=0
5647 # Check whether --enable-unicode or --disable-unicode was given.
5648if test "${enable_unicode+set}" = set; then
5649 enableval="$enable_unicode"
5650
5651 if test "$enableval" = yes; then
5652 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5653 else
5654 ac_cv_use_unicode='wxUSE_UNICODE=no'
5655 fi
5656
5657else
5658
5659 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5667
5668fi;
5669
5670 eval "$ac_cv_use_unicode"
5671 if test "$no_cache" != 1; then
5672 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5673 fi
5674
5675 if test "$wxUSE_UNICODE" = yes; then
5676 echo "$as_me:$LINENO: result: yes" >&5
5677echo "${ECHO_T}yes" >&6
5678 else
5679 echo "$as_me:$LINENO: result: no" >&5
5680echo "${ECHO_T}no" >&6
5681 fi
5682
5683
5684 enablestring=
5685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5686echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5687 no_cache=0
5688 # Check whether --enable-sound or --disable-sound was given.
5689if test "${enable_sound+set}" = set; then
5690 enableval="$enable_sound"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_sound='wxUSE_SOUND=yes'
5694 else
5695 ac_cv_use_sound='wxUSE_SOUND=no'
5696 fi
5697
5698else
5699
5700 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5708
5709fi;
5710
5711 eval "$ac_cv_use_sound"
5712 if test "$no_cache" != 1; then
5713 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5714 fi
5715
5716 if test "$wxUSE_SOUND" = yes; then
5717 echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6
5719 else
5720 echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722 fi
5723
5724
5725 enablestring=
5726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5727echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5728 no_cache=0
5729 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5730if test "${enable_wxprintfv+set}" = set; then
5731 enableval="$enable_wxprintfv"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5735 else
5736 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5737 fi
5738
5739else
5740
5741 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5749
5750fi;
5751
5752 eval "$ac_cv_use_wxprintfv"
5753 if test "$no_cache" != 1; then
5754 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5755 fi
5756
5757 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5758 echo "$as_me:$LINENO: result: yes" >&5
5759echo "${ECHO_T}yes" >&6
5760 else
5761 echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763 fi
5764
5765
5766 enablestring=
5767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5768echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5769 no_cache=0
5770 # Check whether --enable-zipstream or --disable-zipstream was given.
5771if test "${enable_zipstream+set}" = set; then
5772 enableval="$enable_zipstream"
5773
5774 if test "$enableval" = yes; then
5775 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5776 else
5777 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5778 fi
5779
5780else
5781
5782 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5783 if test "x$LINE" != x ; then
5784 eval "DEFAULT_$LINE"
5785 else
5786 no_cache=1
5787 fi
5788
5789 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5790
5791fi;
5792
5793 eval "$ac_cv_use_zipstream"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_ZIPSTREAM" = yes; then
5799 echo "$as_me:$LINENO: result: yes" >&5
5800echo "${ECHO_T}yes" >&6
5801 else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804 fi
5805
5806
a848cd7e
SC
5807
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-url or --disable-url was given.
5813if test "${enable_url+set}" = set; then
5814 enableval="$enable_url"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_url='wxUSE_URL=yes'
5818 else
5819 ac_cv_use_url='wxUSE_URL=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5832
5833fi;
5834
5835 eval "$ac_cv_use_url"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_URL" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
5849 enablestring=
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5852 no_cache=0
5853 # Check whether --enable-protocol or --disable-protocol was given.
5854if test "${enable_protocol+set}" = set; then
5855 enableval="$enable_protocol"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5859 else
5860 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5873
5874fi;
5875
5876 eval "$ac_cv_use_protocol"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_PROTOCOL" = yes; then
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5895if test "${enable_protocol_http+set}" = set; then
5896 enableval="$enable_protocol_http"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5900 else
5901 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5914
5915fi;
5916
5917 eval "$ac_cv_use_protocol_http"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
5931 enablestring=
5932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5933echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5934 no_cache=0
5935 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5936if test "${enable_protocol_ftp+set}" = set; then
5937 enableval="$enable_protocol_ftp"
5938
5939 if test "$enableval" = yes; then
5940 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5941 else
5942 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5943 fi
5944
5945else
5946
5947 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5948 if test "x$LINE" != x ; then
5949 eval "DEFAULT_$LINE"
5950 else
5951 no_cache=1
5952 fi
5953
5954 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5955
5956fi;
5957
5958 eval "$ac_cv_use_protocol_ftp"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965echo "${ECHO_T}yes" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969 fi
5970
5971
5972 enablestring=
5973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5974echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5975 no_cache=0
5976 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5977if test "${enable_protocol_file+set}" = set; then
5978 enableval="$enable_protocol_file"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5982 else
5983 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5996
5997fi;
5998
5999 eval "$ac_cv_use_protocol_file"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6005 echo "$as_me:$LINENO: result: yes" >&5
6006echo "${ECHO_T}yes" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010 fi
6011
6012
6013
6014
6015
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-threads or --disable-threads was given.
6021if test "${enable_threads+set}" = set; then
6022 enableval="$enable_threads"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_threads='wxUSE_THREADS=yes'
6026 else
6027 ac_cv_use_threads='wxUSE_THREADS=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6040
6041fi;
6042
6043 eval "$ac_cv_use_threads"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_THREADS" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
6057if test "$wxUSE_GUI" = "yes"; then
6058
6059
6060
6061 enablestring=
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6064 no_cache=0
6065 # Check whether --enable-docview or --disable-docview was given.
6066if test "${enable_docview+set}" = set; then
6067 enableval="$enable_docview"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6071 else
6072 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${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_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6085
6086fi;
6087
6088 eval "$ac_cv_use_docview"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 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}-help" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6105 no_cache=0
6106 # Check whether --enable-help or --disable-help was given.
6107if test "${enable_help+set}" = set; then
6108 enableval="$enable_help"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_help='wxUSE_HELP=yes'
6112 else
6113 ac_cv_use_help='wxUSE_HELP=no'
6114 fi
6115
6116else
6117
6118 LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6126
6127fi;
6128
6129 eval "$ac_cv_use_help"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_HELP" = 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 enablestring=
6144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6145echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6146 no_cache=0
6147 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6148if test "${enable_mshtmlhelp+set}" = set; then
6149 enableval="$enable_mshtmlhelp"
6150
6151 if test "$enableval" = yes; then
6152 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6153 else
6154 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6155 fi
6156
6157else
6158
6159 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6167
6168fi;
6169
6170 eval "$ac_cv_use_mshtmlhelp"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_MS_HTML_HELP" = yes; then
6176 echo "$as_me:$LINENO: result: yes" >&5
6177echo "${ECHO_T}yes" >&6
6178 else
6179 echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6
6181 fi
6182
6183
6184 enablestring=
6185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6186echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6187 no_cache=0
6188 # Check whether --enable-html or --disable-html was given.
6189if test "${enable_html+set}" = set; then
6190 enableval="$enable_html"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_html='wxUSE_HTML=yes'
6194 else
6195 ac_cv_use_html='wxUSE_HTML=no'
6196 fi
6197
6198else
6199
6200 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6208
6209fi;
6210
6211 eval "$ac_cv_use_html"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_HTML" = yes; then
6217 echo "$as_me:$LINENO: result: yes" >&5
6218echo "${ECHO_T}yes" >&6
6219 else
6220 echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6
6222 fi
6223
6224
6225 enablestring=
6226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6227echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6228 no_cache=0
6229 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6230if test "${enable_htmlhelp+set}" = set; then
6231 enableval="$enable_htmlhelp"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6235 else
6236 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6237 fi
6238
6239else
6240
6241 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6249
6250fi;
6251
6252 eval "$ac_cv_use_htmlhelp"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_WXHTML_HELP" = yes; then
6258 echo "$as_me:$LINENO: result: yes" >&5
6259echo "${ECHO_T}yes" >&6
6260 else
6261 echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6
6263 fi
6264
6265
9a8f0513
VS
6266 enablestring=
6267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6268echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6269 no_cache=0
6270 # Check whether --enable-xrc or --disable-xrc was given.
6271if test "${enable_xrc+set}" = set; then
6272 enableval="$enable_xrc"
6273
6274 if test "$enableval" = yes; then
6275 ac_cv_use_xrc='wxUSE_XRC=yes'
6276 else
6277 ac_cv_use_xrc='wxUSE_XRC=no'
6278 fi
6279
6280else
6281
6282 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6283 if test "x$LINE" != x ; then
6284 eval "DEFAULT_$LINE"
6285 else
6286 no_cache=1
6287 fi
6288
6289 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6290
6291fi;
6292
6293 eval "$ac_cv_use_xrc"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_XRC" = yes; then
6299 echo "$as_me:$LINENO: result: yes" >&5
6300echo "${ECHO_T}yes" >&6
6301 else
6302 echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6
6304 fi
6305
6306
a848cd7e
SC
6307 enablestring=
6308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6309echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6310 no_cache=0
6311 # Check whether --enable-constraints or --disable-constraints was given.
6312if test "${enable_constraints+set}" = set; then
6313 enableval="$enable_constraints"
6314
6315 if test "$enableval" = yes; then
6316 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6317 else
6318 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6319 fi
6320
6321else
6322
6323 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6324 if test "x$LINE" != x ; then
6325 eval "DEFAULT_$LINE"
6326 else
6327 no_cache=1
6328 fi
6329
6330 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6331
6332fi;
6333
6334 eval "$ac_cv_use_constraints"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_CONSTRAINTS" = yes; then
6340 echo "$as_me:$LINENO: result: yes" >&5
6341echo "${ECHO_T}yes" >&6
6342 else
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
6345 fi
6346
6347
6348 enablestring=
6349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6350echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6351 no_cache=0
6352 # Check whether --enable-printarch or --disable-printarch was given.
6353if test "${enable_printarch+set}" = set; then
6354 enableval="$enable_printarch"
6355
6356 if test "$enableval" = yes; then
6357 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6358 else
6359 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6360 fi
6361
6362else
6363
6364 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6365 if test "x$LINE" != x ; then
6366 eval "DEFAULT_$LINE"
6367 else
6368 no_cache=1
6369 fi
6370
6371 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6372
6373fi;
6374
6375 eval "$ac_cv_use_printarch"
6376 if test "$no_cache" != 1; then
6377 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6378 fi
6379
6380 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6381 echo "$as_me:$LINENO: result: yes" >&5
6382echo "${ECHO_T}yes" >&6
6383 else
6384 echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6
6386 fi
6387
6388
6389 enablestring=
6390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6391echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6392 no_cache=0
6393 # Check whether --enable-mdi or --disable-mdi was given.
6394if test "${enable_mdi+set}" = set; then
6395 enableval="$enable_mdi"
6396
6397 if test "$enableval" = yes; then
8a7b1113 6398 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6399 else
8a7b1113 6400 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6401 fi
6402
6403else
6404
8a7b1113 6405 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
8a7b1113 6412 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6413
6414fi;
6415
6416 eval "$ac_cv_use_mdi"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6419 fi
6420
8a7b1113
VZ
6421 if test "$wxUSE_MDI" = yes; then
6422 echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427 fi
6428
6429
6430 enablestring=
6431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6432echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6433 no_cache=0
6434 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6435if test "${enable_mdidoc+set}" = set; then
6436 enableval="$enable_mdidoc"
6437
6438 if test "$enableval" = yes; then
6439 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6440 else
6441 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6442 fi
6443
6444else
6445
6446 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6454
6455fi;
6456
6457 eval "$ac_cv_use_mdidoc"
6458 if test "$no_cache" != 1; then
6459 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6460 fi
6461
a848cd7e
SC
6462 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6463 echo "$as_me:$LINENO: result: yes" >&5
6464echo "${ECHO_T}yes" >&6
6465 else
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
6468 fi
6469
6470
6471 enablestring=
6472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6473echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6474 no_cache=0
6475 # Check whether --enable-loggui or --disable-loggui was given.
6476if test "${enable_loggui+set}" = set; then
6477 enableval="$enable_loggui"
6478
6479 if test "$enableval" = yes; then
6480 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6481 else
6482 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6483 fi
6484
6485else
6486
6487 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6488 if test "x$LINE" != x ; then
6489 eval "DEFAULT_$LINE"
6490 else
6491 no_cache=1
6492 fi
6493
6494 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6495
6496fi;
6497
6498 eval "$ac_cv_use_loggui"
6499 if test "$no_cache" != 1; then
6500 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6501 fi
6502
6503 if test "$wxUSE_LOGGUI" = yes; then
6504 echo "$as_me:$LINENO: result: yes" >&5
6505echo "${ECHO_T}yes" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508echo "${ECHO_T}no" >&6
6509 fi
6510
6511
6512 enablestring=
6513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6514echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6515 no_cache=0
6516 # Check whether --enable-logwin or --disable-logwin was given.
6517if test "${enable_logwin+set}" = set; then
6518 enableval="$enable_logwin"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6522 else
6523 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6536
6537fi;
6538
6539 eval "$ac_cv_use_logwin"
6540 if test "$no_cache" != 1; then
6541 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6542 fi
6543
6544 if test "$wxUSE_LOGWINDOW" = yes; then
6545 echo "$as_me:$LINENO: result: yes" >&5
6546echo "${ECHO_T}yes" >&6
6547 else
6548 echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
6550 fi
6551
6552
6553 enablestring=
6554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6555echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6556 no_cache=0
6557 # Check whether --enable-logdialog or --disable-logdialog was given.
6558if test "${enable_logdialog+set}" = set; then
6559 enableval="$enable_logdialog"
6560
6561 if test "$enableval" = yes; then
6562 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6563 else
6564 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6565 fi
6566
6567else
6568
6569 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6577
6578fi;
6579
6580 eval "$ac_cv_use_logdialog"
6581 if test "$no_cache" != 1; then
6582 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6583 fi
6584
6585 if test "$wxUSE_LOGDIALOG" = yes; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 else
6589 echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591 fi
6592
6593
646b6ec1
VS
6594 enablestring=
6595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6596echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6597 no_cache=0
6598 # Check whether --enable-webkit or --disable-webkit was given.
6599if test "${enable_webkit+set}" = set; then
6600 enableval="$enable_webkit"
6601
6602 if test "$enableval" = yes; then
6603 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6604 else
6605 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6606 fi
6607
6608else
6609
6610 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6611 if test "x$LINE" != x ; then
6612 eval "DEFAULT_$LINE"
6613 else
6614 no_cache=1
6615 fi
6616
6617 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6618
6619fi;
6620
6621 eval "$ac_cv_use_webkit"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_WEBKIT" = yes; then
6627 echo "$as_me:$LINENO: result: yes" >&5
6628echo "${ECHO_T}yes" >&6
6629 else
6630 echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6
6632 fi
6633
6634
a848cd7e
SC
6635
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-postscript or --disable-postscript was given.
6641if test "${enable_postscript+set}" = set; then
6642 enableval="$enable_postscript"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6646 else
6647 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6660
6661fi;
6662
6663 eval "$ac_cv_use_postscript"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_POSTSCRIPT" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677
6678
6679
6680 enablestring=
6681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6682echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6683 no_cache=0
6684 # Check whether --enable-prologio or --disable-prologio was given.
6685if test "${enable_prologio+set}" = set; then
6686 enableval="$enable_prologio"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6690 else
6691 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6692 fi
6693
6694else
6695
6696 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6704
6705fi;
6706
6707 eval "$ac_cv_use_prologio"
6708 if test "$no_cache" != 1; then
6709 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6710 fi
6711
6712 if test "$wxUSE_PROLOGIO" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714echo "${ECHO_T}yes" >&6
6715 else
6716 echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718 fi
6719
6720
6721 enablestring=
6722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6723echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6724 no_cache=0
6725 # Check whether --enable-resources or --disable-resources was given.
6726if test "${enable_resources+set}" = set; then
6727 enableval="$enable_resources"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6731 else
6732 ac_cv_use_resources='wxUSE_RESOURCES=no'
6733 fi
6734
6735else
6736
6737 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6745
6746fi;
6747
6748 eval "$ac_cv_use_resources"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_RESOURCES" = yes; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755echo "${ECHO_T}yes" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759 fi
6760
6761
6762
6763
6764 enablestring=
6765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6766echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6767 no_cache=0
6768 # Check whether --enable-clipboard or --disable-clipboard was given.
6769if test "${enable_clipboard+set}" = set; then
6770 enableval="$enable_clipboard"
6771
6772 if test "$enableval" = yes; then
6773 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6774 else
6775 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6776 fi
6777
6778else
6779
6780 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6788
6789fi;
6790
6791 eval "$ac_cv_use_clipboard"
6792 if test "$no_cache" != 1; then
6793 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6794 fi
6795
6796 if test "$wxUSE_CLIPBOARD" = yes; then
6797 echo "$as_me:$LINENO: result: yes" >&5
6798echo "${ECHO_T}yes" >&6
6799 else
6800 echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6
6802 fi
6803
6804
6805 enablestring=
6806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6807echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6808 no_cache=0
6809 # Check whether --enable-dnd or --disable-dnd was given.
6810if test "${enable_dnd+set}" = set; then
6811 enableval="$enable_dnd"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6815 else
6816 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6829
6830fi;
6831
6832 eval "$ac_cv_use_dnd"
6833 if test "$no_cache" != 1; then
6834 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6835 fi
6836
6837 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6838 echo "$as_me:$LINENO: result: yes" >&5
6839echo "${ECHO_T}yes" >&6
6840 else
6841 echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6
6843 fi
6844
6845
6846 enablestring=
6847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6848echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6849 no_cache=0
6850 # Check whether --enable-metafile or --disable-metafile was given.
6851if test "${enable_metafile+set}" = set; then
6852 enableval="$enable_metafile"
6853
6854 if test "$enableval" = yes; then
6855 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6856 else
6857 ac_cv_use_metafile='wxUSE_METAFILE=no'
6858 fi
6859
6860else
6861
6862 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6863 if test "x$LINE" != x ; then
6864 eval "DEFAULT_$LINE"
6865 else
6866 no_cache=1
6867 fi
6868
6869 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6870
6871fi;
6872
6873 eval "$ac_cv_use_metafile"
6874 if test "$no_cache" != 1; then
6875 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6876 fi
6877
6878 if test "$wxUSE_METAFILE" = yes; then
6879 echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6
6881 else
6882 echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6
6884 fi
6885
6886
6887
6888
6889
6890 enablestring=
6891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6892echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6893 no_cache=0
6894 # Check whether --enable-controls or --disable-controls was given.
6895if test "${enable_controls+set}" = set; then
6896 enableval="$enable_controls"
6897
6898 if test "$enableval" = yes; then
6899 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6900 else
6901 ac_cv_use_controls='wxUSE_CONTROLS=no'
6902 fi
6903
6904else
6905
6906 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6907 if test "x$LINE" != x ; then
6908 eval "DEFAULT_$LINE"
6909 else
6910 no_cache=1
6911 fi
6912
6913 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6914
6915fi;
6916
6917 eval "$ac_cv_use_controls"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_CONTROLS" = yes; then
6923 echo "$as_me:$LINENO: result: yes" >&5
6924echo "${ECHO_T}yes" >&6
6925 else
6926 echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6
6928 fi
6929
6930
6931if test "$wxUSE_CONTROLS" = "yes"; then
6932 DEFAULT_wxUSE_ACCEL=yes
6933 DEFAULT_wxUSE_BMPBUTTON=yes
6934 DEFAULT_wxUSE_BUTTON=yes
6935 DEFAULT_wxUSE_CALCTRL=no
6936 DEFAULT_wxUSE_CARET=yes
6937 DEFAULT_wxUSE_COMBOBOX=yes
6938 DEFAULT_wxUSE_CHECKBOX=yes
6939 DEFAULT_wxUSE_CHECKLISTBOX=yes
6940 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 6941 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
6942 DEFAULT_wxUSE_GAUGE=yes
6943 DEFAULT_wxUSE_GRID=yes
6944 DEFAULT_wxUSE_IMAGLIST=yes
6945 DEFAULT_wxUSE_LISTBOOK=yes
6946 DEFAULT_wxUSE_LISTBOX=yes
6947 DEFAULT_wxUSE_LISTCTRL=yes
6948 DEFAULT_wxUSE_NOTEBOOK=yes
6949 DEFAULT_wxUSE_RADIOBOX=yes
6950 DEFAULT_wxUSE_RADIOBTN=yes
6951 DEFAULT_wxUSE_SASH=yes
6952 DEFAULT_wxUSE_SCROLLBAR=yes
6953 DEFAULT_wxUSE_SLIDER=yes
6954 DEFAULT_wxUSE_SPINBTN=yes
6955 DEFAULT_wxUSE_SPINCTRL=yes
6956 DEFAULT_wxUSE_SPLITTER=yes
6957 DEFAULT_wxUSE_STATBMP=yes
6958 DEFAULT_wxUSE_STATBOX=yes
6959 DEFAULT_wxUSE_STATLINE=yes
6960 DEFAULT_wxUSE_STATUSBAR=yes
6961 DEFAULT_wxUSE_TAB_DIALOG=yes
6962 DEFAULT_wxUSE_TOGGLEBTN=yes
6963 DEFAULT_wxUSE_TOOLBAR=yes
6964 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6965 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6966 DEFAULT_wxUSE_TOOLTIPS=yes
6967 DEFAULT_wxUSE_TREECTRL=yes
6968 DEFAULT_wxUSE_POPUPWIN=yes
6969 DEFAULT_wxUSE_TIPWINDOW=yes
6970elif test "$wxUSE_CONTROLS" = "no"; then
6971 DEFAULT_wxUSE_ACCEL=no
6972 DEFAULT_wxUSE_BMPBUTTON=no
6973 DEFAULT_wxUSE_BUTTON=no
6974 DEFAULT_wxUSE_CALCTRL=no
6975 DEFAULT_wxUSE_CARET=no
6976 DEFAULT_wxUSE_COMBOBOX=no
6977 DEFAULT_wxUSE_CHECKBOX=no
6978 DEFAULT_wxUSE_CHECKLISTBOX=no
6979 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 6980 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
6981 DEFAULT_wxUSE_GAUGE=no
6982 DEFAULT_wxUSE_GRID=no
6983 DEFAULT_wxUSE_IMAGLIST=no
6984 DEFAULT_wxUSE_LISTBOOK=no
6985 DEFAULT_wxUSE_LISTBOX=no
6986 DEFAULT_wxUSE_LISTCTRL=no
6987 DEFAULT_wxUSE_NOTEBOOK=no
6988 DEFAULT_wxUSE_RADIOBOX=no
6989 DEFAULT_wxUSE_RADIOBTN=no
6990 DEFAULT_wxUSE_SASH=no
6991 DEFAULT_wxUSE_SCROLLBAR=no
6992 DEFAULT_wxUSE_SLIDER=no
6993 DEFAULT_wxUSE_SPINBTN=no
6994 DEFAULT_wxUSE_SPINCTRL=no
6995 DEFAULT_wxUSE_SPLITTER=no
6996 DEFAULT_wxUSE_STATBMP=no
6997 DEFAULT_wxUSE_STATBOX=no
6998 DEFAULT_wxUSE_STATLINE=no
6999 DEFAULT_wxUSE_STATUSBAR=no
7000 DEFAULT_wxUSE_TAB_DIALOG=no
7001 DEFAULT_wxUSE_TOGGLEBTN=no
7002 DEFAULT_wxUSE_TOOLBAR=no
7003 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7004 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7005 DEFAULT_wxUSE_TOOLTIPS=no
7006 DEFAULT_wxUSE_TREECTRL=no
7007 DEFAULT_wxUSE_POPUPWIN=no
7008 DEFAULT_wxUSE_TIPWINDOW=no
7009fi
7010
a848cd7e
SC
7011
7012 enablestring=
7013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7014echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7015 no_cache=0
7016 # Check whether --enable-accel or --disable-accel was given.
7017if test "${enable_accel+set}" = set; then
7018 enableval="$enable_accel"
7019
7020 if test "$enableval" = yes; then
7021 ac_cv_use_accel='wxUSE_ACCEL=yes'
7022 else
7023 ac_cv_use_accel='wxUSE_ACCEL=no'
7024 fi
7025
7026else
7027
7028 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7036
7037fi;
7038
7039 eval "$ac_cv_use_accel"
7040 if test "$no_cache" != 1; then
7041 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7042 fi
7043
7044 if test "$wxUSE_ACCEL" = yes; then
7045 echo "$as_me:$LINENO: result: yes" >&5
7046echo "${ECHO_T}yes" >&6
7047 else
7048 echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6
7050 fi
7051
7052
7053 enablestring=
7054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7055echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7056 no_cache=0
7057 # Check whether --enable-button or --disable-button was given.
7058if test "${enable_button+set}" = set; then
7059 enableval="$enable_button"
7060
7061 if test "$enableval" = yes; then
7062 ac_cv_use_button='wxUSE_BUTTON=yes'
7063 else
7064 ac_cv_use_button='wxUSE_BUTTON=no'
7065 fi
7066
7067else
7068
7069 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7070 if test "x$LINE" != x ; then
7071 eval "DEFAULT_$LINE"
7072 else
7073 no_cache=1
7074 fi
7075
7076 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7077
7078fi;
7079
7080 eval "$ac_cv_use_button"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_BUTTON" = yes; then
7086 echo "$as_me:$LINENO: result: yes" >&5
7087echo "${ECHO_T}yes" >&6
7088 else
7089 echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6
7091 fi
7092
7093
7094 enablestring=
7095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7096echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7097 no_cache=0
7098 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7099if test "${enable_bmpbutton+set}" = set; then
7100 enableval="$enable_bmpbutton"
7101
7102 if test "$enableval" = yes; then
7103 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7104 else
7105 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7106 fi
7107
7108else
7109
7110 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7111 if test "x$LINE" != x ; then
7112 eval "DEFAULT_$LINE"
7113 else
7114 no_cache=1
7115 fi
7116
7117 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7118
7119fi;
7120
7121 eval "$ac_cv_use_bmpbutton"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_BMPBUTTON" = yes; then
7127 echo "$as_me:$LINENO: result: yes" >&5
7128echo "${ECHO_T}yes" >&6
7129 else
7130 echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6
7132 fi
7133
7134
7135 enablestring=
7136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7137echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7138 no_cache=0
7139 # Check whether --enable-calendar or --disable-calendar was given.
7140if test "${enable_calendar+set}" = set; then
7141 enableval="$enable_calendar"
7142
7143 if test "$enableval" = yes; then
7144 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7145 else
7146 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7147 fi
7148
7149else
7150
7151 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7152 if test "x$LINE" != x ; then
7153 eval "DEFAULT_$LINE"
7154 else
7155 no_cache=1
7156 fi
7157
7158 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7159
7160fi;
7161
7162 eval "$ac_cv_use_calendar"
7163 if test "$no_cache" != 1; then
7164 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7165 fi
7166
7167 if test "$wxUSE_CALCTRL" = yes; then
7168 echo "$as_me:$LINENO: result: yes" >&5
7169echo "${ECHO_T}yes" >&6
7170 else
7171 echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6
7173 fi
7174
7175
7176 enablestring=
7177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7178echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7179 no_cache=0
7180 # Check whether --enable-caret or --disable-caret was given.
7181if test "${enable_caret+set}" = set; then
7182 enableval="$enable_caret"
7183
7184 if test "$enableval" = yes; then
7185 ac_cv_use_caret='wxUSE_CARET=yes'
7186 else
7187 ac_cv_use_caret='wxUSE_CARET=no'
7188 fi
7189
7190else
7191
7192 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7193 if test "x$LINE" != x ; then
7194 eval "DEFAULT_$LINE"
7195 else
7196 no_cache=1
7197 fi
7198
7199 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7200
7201fi;
7202
7203 eval "$ac_cv_use_caret"
7204 if test "$no_cache" != 1; then
7205 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7206 fi
7207
7208 if test "$wxUSE_CARET" = yes; then
7209 echo "$as_me:$LINENO: result: yes" >&5
7210echo "${ECHO_T}yes" >&6
7211 else
7212 echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6
7214 fi
7215
7216
7217 enablestring=
7218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7219echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7220 no_cache=0
7221 # Check whether --enable-checkbox or --disable-checkbox was given.
7222if test "${enable_checkbox+set}" = set; then
7223 enableval="$enable_checkbox"
7224
7225 if test "$enableval" = yes; then
7226 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7227 else
7228 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7229 fi
7230
7231else
7232
7233 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7234 if test "x$LINE" != x ; then
7235 eval "DEFAULT_$LINE"
7236 else
7237 no_cache=1
7238 fi
7239
7240 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7241
7242fi;
7243
7244 eval "$ac_cv_use_checkbox"
7245 if test "$no_cache" != 1; then
7246 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7247 fi
7248
7249 if test "$wxUSE_CHECKBOX" = yes; then
7250 echo "$as_me:$LINENO: result: yes" >&5
7251echo "${ECHO_T}yes" >&6
7252 else
7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
7255 fi
7256
7257
7258 enablestring=
7259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7260echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7261 no_cache=0
7262 # Check whether --enable-checklst or --disable-checklst was given.
7263if test "${enable_checklst+set}" = set; then
7264 enableval="$enable_checklst"
7265
7266 if test "$enableval" = yes; then
7267 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7268 else
7269 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7270 fi
7271
7272else
7273
7274 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7275 if test "x$LINE" != x ; then
7276 eval "DEFAULT_$LINE"
7277 else
7278 no_cache=1
7279 fi
7280
7281 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7282
7283fi;
7284
7285 eval "$ac_cv_use_checklst"
7286 if test "$no_cache" != 1; then
7287 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7288 fi
7289
7290 if test "$wxUSE_CHECKLST" = yes; then
7291 echo "$as_me:$LINENO: result: yes" >&5
7292echo "${ECHO_T}yes" >&6
7293 else
7294 echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6
7296 fi
7297
7298
7299 enablestring=
7300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7301echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7302 no_cache=0
7303 # Check whether --enable-choice or --disable-choice was given.
7304if test "${enable_choice+set}" = set; then
7305 enableval="$enable_choice"
7306
7307 if test "$enableval" = yes; then
7308 ac_cv_use_choice='wxUSE_CHOICE=yes'
7309 else
7310 ac_cv_use_choice='wxUSE_CHOICE=no'
7311 fi
7312
7313else
7314
7315 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7316 if test "x$LINE" != x ; then
7317 eval "DEFAULT_$LINE"
7318 else
7319 no_cache=1
7320 fi
7321
7322 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7323
7324fi;
7325
7326 eval "$ac_cv_use_choice"
7327 if test "$no_cache" != 1; then
7328 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7329 fi
7330
7331 if test "$wxUSE_CHOICE" = yes; then
7332 echo "$as_me:$LINENO: result: yes" >&5
7333echo "${ECHO_T}yes" >&6
7334 else
7335 echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6
7337 fi
7338
7339
92bbdbcd
WS
7340 enablestring=
7341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7342echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7343 no_cache=0
7344 # Check whether --enable-choicebook or --disable-choicebook was given.
7345if test "${enable_choicebook+set}" = set; then
7346 enableval="$enable_choicebook"
7347
7348 if test "$enableval" = yes; then
7349 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7350 else
7351 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7352 fi
7353
7354else
7355
7356 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7357 if test "x$LINE" != x ; then
7358 eval "DEFAULT_$LINE"
7359 else
7360 no_cache=1
7361 fi
7362
7363 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7364
7365fi;
7366
7367 eval "$ac_cv_use_choicebook"
7368 if test "$no_cache" != 1; then
7369 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7370 fi
7371
7372 if test "$wxUSE_CHOICEBOOK" = yes; then
7373 echo "$as_me:$LINENO: result: yes" >&5
7374echo "${ECHO_T}yes" >&6
7375 else
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
7378 fi
7379
7380
a848cd7e
SC
7381 enablestring=
7382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7383echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7384 no_cache=0
7385 # Check whether --enable-combobox or --disable-combobox was given.
7386if test "${enable_combobox+set}" = set; then
7387 enableval="$enable_combobox"
7388
7389 if test "$enableval" = yes; then
7390 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7391 else
7392 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7393 fi
7394
7395else
7396
7397 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7398 if test "x$LINE" != x ; then
7399 eval "DEFAULT_$LINE"
7400 else
7401 no_cache=1
7402 fi
7403
7404 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7405
7406fi;
7407
7408 eval "$ac_cv_use_combobox"
7409 if test "$no_cache" != 1; then
7410 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7411 fi
7412
7413 if test "$wxUSE_COMBOBOX" = yes; then
7414 echo "$as_me:$LINENO: result: yes" >&5
7415echo "${ECHO_T}yes" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6
7419 fi
7420
7421
7422 enablestring=
7423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7424echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7425 no_cache=0
7426 # Check whether --enable-display or --disable-display was given.
7427if test "${enable_display+set}" = set; then
7428 enableval="$enable_display"
7429
7430 if test "$enableval" = yes; then
7431 ac_cv_use_display='wxUSE_DISPLAY=yes'
7432 else
7433 ac_cv_use_display='wxUSE_DISPLAY=no'
7434 fi
7435
7436else
7437
7438 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7439 if test "x$LINE" != x ; then
7440 eval "DEFAULT_$LINE"
7441 else
7442 no_cache=1
7443 fi
7444
7445 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7446
7447fi;
7448
7449 eval "$ac_cv_use_display"
7450 if test "$no_cache" != 1; then
7451 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7452 fi
7453
7454 if test "$wxUSE_DISPLAY" = yes; then
7455 echo "$as_me:$LINENO: result: yes" >&5
7456echo "${ECHO_T}yes" >&6
7457 else
7458 echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6
7460 fi
7461
7462
7463 enablestring=
7464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7465echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7466 no_cache=0
7467 # Check whether --enable-gauge or --disable-gauge was given.
7468if test "${enable_gauge+set}" = set; then
7469 enableval="$enable_gauge"
7470
7471 if test "$enableval" = yes; then
7472 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7473 else
7474 ac_cv_use_gauge='wxUSE_GAUGE=no'
7475 fi
7476
7477else
7478
7479 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7480 if test "x$LINE" != x ; then
7481 eval "DEFAULT_$LINE"
7482 else
7483 no_cache=1
7484 fi
7485
7486 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7487
7488fi;
7489
7490 eval "$ac_cv_use_gauge"
7491 if test "$no_cache" != 1; then
7492 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7493 fi
7494
7495 if test "$wxUSE_GAUGE" = yes; then
7496 echo "$as_me:$LINENO: result: yes" >&5
7497echo "${ECHO_T}yes" >&6
7498 else
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501 fi
7502
7503
7504 enablestring=
7505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7506echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7507 no_cache=0
7508 # Check whether --enable-grid or --disable-grid was given.
7509if test "${enable_grid+set}" = set; then
7510 enableval="$enable_grid"
7511
7512 if test "$enableval" = yes; then
7513 ac_cv_use_grid='wxUSE_GRID=yes'
7514 else
7515 ac_cv_use_grid='wxUSE_GRID=no'
7516 fi
7517
7518else
7519
7520 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7521 if test "x$LINE" != x ; then
7522 eval "DEFAULT_$LINE"
7523 else
7524 no_cache=1
7525 fi
7526
7527 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7528
7529fi;
7530
7531 eval "$ac_cv_use_grid"
7532 if test "$no_cache" != 1; then
7533 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7534 fi
7535
7536 if test "$wxUSE_GRID" = yes; then
7537 echo "$as_me:$LINENO: result: yes" >&5
7538echo "${ECHO_T}yes" >&6
7539 else
7540 echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6
7542 fi
7543
7544
7545 enablestring=
7546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7547echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7548 no_cache=0
7549 # Check whether --enable-imaglist or --disable-imaglist was given.
7550if test "${enable_imaglist+set}" = set; then
7551 enableval="$enable_imaglist"
7552
7553 if test "$enableval" = yes; then
7554 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7555 else
7556 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7557 fi
7558
7559else
7560
7561 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7562 if test "x$LINE" != x ; then
7563 eval "DEFAULT_$LINE"
7564 else
7565 no_cache=1
7566 fi
7567
7568 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7569
7570fi;
7571
7572 eval "$ac_cv_use_imaglist"
7573 if test "$no_cache" != 1; then
7574 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7575 fi
7576
7577 if test "$wxUSE_IMAGLIST" = yes; then
7578 echo "$as_me:$LINENO: result: yes" >&5
7579echo "${ECHO_T}yes" >&6
7580 else
7581 echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
7583 fi
7584
7585
7586 enablestring=
7587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7588echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7589 no_cache=0
7590 # Check whether --enable-listbook or --disable-listbook was given.
7591if test "${enable_listbook+set}" = set; then
7592 enableval="$enable_listbook"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7596 else
7597 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7598 fi
7599
7600else
7601
7602 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7610
7611fi;
7612
7613 eval "$ac_cv_use_listbook"
7614 if test "$no_cache" != 1; then
7615 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7616 fi
7617
7618 if test "$wxUSE_LISTBOOK" = yes; then
7619 echo "$as_me:$LINENO: result: yes" >&5
7620echo "${ECHO_T}yes" >&6
7621 else
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
7624 fi
7625
7626
7627 enablestring=
7628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7629echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7630 no_cache=0
7631 # Check whether --enable-listbox or --disable-listbox was given.
7632if test "${enable_listbox+set}" = set; then
7633 enableval="$enable_listbox"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7637 else
7638 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7651
7652fi;
7653
7654 eval "$ac_cv_use_listbox"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_LISTBOX" = yes; then
7660 echo "$as_me:$LINENO: result: yes" >&5
7661echo "${ECHO_T}yes" >&6
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665 fi
7666
7667
7668 enablestring=
7669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7670echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7671 no_cache=0
7672 # Check whether --enable-listctrl or --disable-listctrl was given.
7673if test "${enable_listctrl+set}" = set; then
7674 enableval="$enable_listctrl"
7675
7676 if test "$enableval" = yes; then
7677 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7678 else
7679 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7680 fi
7681
7682else
7683
7684 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7685 if test "x$LINE" != x ; then
7686 eval "DEFAULT_$LINE"
7687 else
7688 no_cache=1
7689 fi
7690
7691 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7692
7693fi;
7694
7695 eval "$ac_cv_use_listctrl"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_LISTCTRL" = yes; then
7701 echo "$as_me:$LINENO: result: yes" >&5
7702echo "${ECHO_T}yes" >&6
7703 else
7704 echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706 fi
7707
7708
7709 enablestring=
7710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7711echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7712 no_cache=0
7713 # Check whether --enable-notebook or --disable-notebook was given.
7714if test "${enable_notebook+set}" = set; then
7715 enableval="$enable_notebook"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7719 else
7720 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7721 fi
7722
7723else
7724
7725 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7733
7734fi;
7735
7736 eval "$ac_cv_use_notebook"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_NOTEBOOK" = yes; then
7742 echo "$as_me:$LINENO: result: yes" >&5
7743echo "${ECHO_T}yes" >&6
7744 else
7745 echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747 fi
7748
7749
7750 enablestring=
7751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7752echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7753 no_cache=0
7754 # Check whether --enable-radiobox or --disable-radiobox was given.
7755if test "${enable_radiobox+set}" = set; then
7756 enableval="$enable_radiobox"
7757
7758 if test "$enableval" = yes; then
7759 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7760 else
7761 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7762 fi
7763
7764else
7765
7766 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7774
7775fi;
7776
7777 eval "$ac_cv_use_radiobox"
7778 if test "$no_cache" != 1; then
7779 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7780 fi
7781
7782 if test "$wxUSE_RADIOBOX" = yes; then
7783 echo "$as_me:$LINENO: result: yes" >&5
7784echo "${ECHO_T}yes" >&6
7785 else
7786 echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
7788 fi
7789
7790
7791 enablestring=
7792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7793echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7794 no_cache=0
7795 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7796if test "${enable_radiobtn+set}" = set; then
7797 enableval="$enable_radiobtn"
7798
7799 if test "$enableval" = yes; then
7800 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7801 else
7802 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7803 fi
7804
7805else
7806
7807 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7808 if test "x$LINE" != x ; then
7809 eval "DEFAULT_$LINE"
7810 else
7811 no_cache=1
7812 fi
7813
7814 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7815
7816fi;
7817
7818 eval "$ac_cv_use_radiobtn"
7819 if test "$no_cache" != 1; then
7820 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7821 fi
7822
7823 if test "$wxUSE_RADIOBTN" = yes; then
7824 echo "$as_me:$LINENO: result: yes" >&5
7825echo "${ECHO_T}yes" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
7829 fi
7830
7831
7832 enablestring=
7833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7834echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7835 no_cache=0
7836 # Check whether --enable-sash or --disable-sash was given.
7837if test "${enable_sash+set}" = set; then
7838 enableval="$enable_sash"
7839
7840 if test "$enableval" = yes; then
7841 ac_cv_use_sash='wxUSE_SASH=yes'
7842 else
7843 ac_cv_use_sash='wxUSE_SASH=no'
7844 fi
7845
7846else
7847
7848 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7849 if test "x$LINE" != x ; then
7850 eval "DEFAULT_$LINE"
7851 else
7852 no_cache=1
7853 fi
7854
7855 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7856
7857fi;
7858
7859 eval "$ac_cv_use_sash"
7860 if test "$no_cache" != 1; then
7861 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7862 fi
7863
7864 if test "$wxUSE_SASH" = yes; then
7865 echo "$as_me:$LINENO: result: yes" >&5
7866echo "${ECHO_T}yes" >&6
7867 else
7868 echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6
7870 fi
7871
7872
7873 enablestring=
7874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7875echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7876 no_cache=0
7877 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7878if test "${enable_scrollbar+set}" = set; then
7879 enableval="$enable_scrollbar"
7880
7881 if test "$enableval" = yes; then
7882 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7883 else
7884 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7885 fi
7886
7887else
7888
7889 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7890 if test "x$LINE" != x ; then
7891 eval "DEFAULT_$LINE"
7892 else
7893 no_cache=1
7894 fi
7895
7896 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7897
7898fi;
7899
7900 eval "$ac_cv_use_scrollbar"
7901 if test "$no_cache" != 1; then
7902 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7903 fi
7904
7905 if test "$wxUSE_SCROLLBAR" = yes; then
7906 echo "$as_me:$LINENO: result: yes" >&5
7907echo "${ECHO_T}yes" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911 fi
7912
7913
7914 enablestring=
7915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7916echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7917 no_cache=0
7918 # Check whether --enable-slider or --disable-slider was given.
7919if test "${enable_slider+set}" = set; then
7920 enableval="$enable_slider"
7921
7922 if test "$enableval" = yes; then
7923 ac_cv_use_slider='wxUSE_SLIDER=yes'
7924 else
7925 ac_cv_use_slider='wxUSE_SLIDER=no'
7926 fi
7927
7928else
7929
7930 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7938
7939fi;
7940
7941 eval "$ac_cv_use_slider"
7942 if test "$no_cache" != 1; then
7943 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7944 fi
7945
7946 if test "$wxUSE_SLIDER" = yes; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948echo "${ECHO_T}yes" >&6
7949 else
7950 echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
7952 fi
7953
7954
7955 enablestring=
7956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7957echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7958 no_cache=0
7959 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7960if test "${enable_spinbtn+set}" = set; then
7961 enableval="$enable_spinbtn"
7962
7963 if test "$enableval" = yes; then
7964 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7965 else
7966 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7967 fi
7968
7969else
7970
7971 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7979
7980fi;
7981
7982 eval "$ac_cv_use_spinbtn"
7983 if test "$no_cache" != 1; then
7984 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7985 fi
7986
7987 if test "$wxUSE_SPINBTN" = yes; then
7988 echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
7993 fi
7994
7995
7996 enablestring=
7997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7998echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7999 no_cache=0
8000 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8001if test "${enable_spinctrl+set}" = set; then
8002 enableval="$enable_spinctrl"
8003
8004 if test "$enableval" = yes; then
8005 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8006 else
8007 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8008 fi
8009
8010else
8011
8012 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8013 if test "x$LINE" != x ; then
8014 eval "DEFAULT_$LINE"
8015 else
8016 no_cache=1
8017 fi
8018
8019 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8020
8021fi;
8022
8023 eval "$ac_cv_use_spinctrl"
8024 if test "$no_cache" != 1; then
8025 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8026 fi
8027
8028 if test "$wxUSE_SPINCTRL" = yes; then
8029 echo "$as_me:$LINENO: result: yes" >&5
8030echo "${ECHO_T}yes" >&6
8031 else
8032 echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034 fi
8035
8036
8037 enablestring=
8038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8039echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8040 no_cache=0
8041 # Check whether --enable-splitter or --disable-splitter was given.
8042if test "${enable_splitter+set}" = set; then
8043 enableval="$enable_splitter"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8047 else
8048 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8061
8062fi;
8063
8064 eval "$ac_cv_use_splitter"
8065 if test "$no_cache" != 1; then
8066 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8067 fi
8068
8069 if test "$wxUSE_SPLITTER" = yes; then
8070 echo "$as_me:$LINENO: result: yes" >&5
8071echo "${ECHO_T}yes" >&6
8072 else
8073 echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075 fi
8076
8077
8078 enablestring=
8079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8080echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8081 no_cache=0
8082 # Check whether --enable-statbmp or --disable-statbmp was given.
8083if test "${enable_statbmp+set}" = set; then
8084 enableval="$enable_statbmp"
8085
8086 if test "$enableval" = yes; then
8087 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8088 else
8089 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8090 fi
8091
8092else
8093
8094 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8102
8103fi;
8104
8105 eval "$ac_cv_use_statbmp"
8106 if test "$no_cache" != 1; then
8107 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8108 fi
8109
8110 if test "$wxUSE_STATBMP" = yes; then
8111 echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
8113 else
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116 fi
8117
8118
8119 enablestring=
8120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8121echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8122 no_cache=0
8123 # Check whether --enable-statbox or --disable-statbox was given.
8124if test "${enable_statbox+set}" = set; then
8125 enableval="$enable_statbox"
8126
8127 if test "$enableval" = yes; then
8128 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8129 else
8130 ac_cv_use_statbox='wxUSE_STATBOX=no'
8131 fi
8132
8133else
8134
8135 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8136 if test "x$LINE" != x ; then
8137 eval "DEFAULT_$LINE"
8138 else
8139 no_cache=1
8140 fi
8141
8142 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8143
8144fi;
8145
8146 eval "$ac_cv_use_statbox"
8147 if test "$no_cache" != 1; then
8148 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8149 fi
8150
8151 if test "$wxUSE_STATBOX" = yes; then
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
8154 else
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
8157 fi
8158
8159
8160 enablestring=
8161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8162echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8163 no_cache=0
8164 # Check whether --enable-statline or --disable-statline was given.
8165if test "${enable_statline+set}" = set; then
8166 enableval="$enable_statline"
8167
8168 if test "$enableval" = yes; then
8169 ac_cv_use_statline='wxUSE_STATLINE=yes'
8170 else
8171 ac_cv_use_statline='wxUSE_STATLINE=no'
8172 fi
8173
8174else
8175
8176 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8177 if test "x$LINE" != x ; then
8178 eval "DEFAULT_$LINE"
8179 else
8180 no_cache=1
8181 fi
8182
8183 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8184
8185fi;
8186
8187 eval "$ac_cv_use_statline"
8188 if test "$no_cache" != 1; then
8189 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8190 fi
8191
8192 if test "$wxUSE_STATLINE" = yes; then
8193 echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
8195 else
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
8198 fi
8199
8200
8201 enablestring=
8202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8203echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8204 no_cache=0
8205 # Check whether --enable-stattext or --disable-stattext was given.
8206if test "${enable_stattext+set}" = set; then
8207 enableval="$enable_stattext"
8208
8209 if test "$enableval" = yes; then
8210 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8211 else
8212 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8213 fi
8214
8215else
8216
8217 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8225
8226fi;
8227
8228 eval "$ac_cv_use_stattext"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_STATTEXT" = yes; then
8234 echo "$as_me:$LINENO: result: yes" >&5
8235echo "${ECHO_T}yes" >&6
8236 else
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
8239 fi
8240
8241
8242 enablestring=
8243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8244echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8245 no_cache=0
8246 # Check whether --enable-statusbar or --disable-statusbar was given.
8247if test "${enable_statusbar+set}" = set; then
8248 enableval="$enable_statusbar"
8249
8250 if test "$enableval" = yes; then
8251 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8252 else
8253 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8254 fi
8255
8256else
8257
8258 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8259 if test "x$LINE" != x ; then
8260 eval "DEFAULT_$LINE"
8261 else
8262 no_cache=1
8263 fi
8264
8265 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8266
8267fi;
8268
8269 eval "$ac_cv_use_statusbar"
8270 if test "$no_cache" != 1; then
8271 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8272 fi
8273
8274 if test "$wxUSE_STATUSBAR" = yes; then
8275 echo "$as_me:$LINENO: result: yes" >&5
8276echo "${ECHO_T}yes" >&6
8277 else
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280 fi
8281
8282
8283 enablestring=
8284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8285echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8286 no_cache=0
8287 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8288if test "${enable_tabdialog+set}" = set; then
8289 enableval="$enable_tabdialog"
8290
8291 if test "$enableval" = yes; then
8292 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8293 else
8294 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8295 fi
8296
8297else
8298
8299 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8307
8308fi;
8309
8310 eval "$ac_cv_use_tabdialog"
8311 if test "$no_cache" != 1; then
8312 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8313 fi
8314
8315 if test "$wxUSE_TABDIALOG" = yes; then
8316 echo "$as_me:$LINENO: result: yes" >&5
8317echo "${ECHO_T}yes" >&6
8318 else
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321 fi
8322
8323
8324 enablestring=
8325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8326echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8327 no_cache=0
8328 # Check whether --enable-textctrl or --disable-textctrl was given.
8329if test "${enable_textctrl+set}" = set; then
8330 enableval="$enable_textctrl"
8331
8332 if test "$enableval" = yes; then
8333 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8334 else
8335 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8336 fi
8337
8338else
8339
8340 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8341 if test "x$LINE" != x ; then
8342 eval "DEFAULT_$LINE"
8343 else
8344 no_cache=1
8345 fi
8346
8347 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8348
8349fi;
8350
8351 eval "$ac_cv_use_textctrl"
8352 if test "$no_cache" != 1; then
8353 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8354 fi
8355
8356 if test "$wxUSE_TEXTCTRL" = yes; then
8357 echo "$as_me:$LINENO: result: yes" >&5
8358echo "${ECHO_T}yes" >&6
8359 else
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
8362 fi
8363
8364
8365 enablestring=
8366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8367echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8368 no_cache=0
8369 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8370if test "${enable_togglebtn+set}" = set; then
8371 enableval="$enable_togglebtn"
8372
8373 if test "$enableval" = yes; then
8374 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8375 else
8376 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8377 fi
8378
8379else
8380
8381 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8382 if test "x$LINE" != x ; then
8383 eval "DEFAULT_$LINE"
8384 else
8385 no_cache=1
8386 fi
8387
8388 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8389
8390fi;
8391
8392 eval "$ac_cv_use_togglebtn"
8393 if test "$no_cache" != 1; then
8394 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8395 fi
8396
8397 if test "$wxUSE_TOGGLEBTN" = yes; then
8398 echo "$as_me:$LINENO: result: yes" >&5
8399echo "${ECHO_T}yes" >&6
8400 else
8401 echo "$as_me:$LINENO: result: no" >&5
8402echo "${ECHO_T}no" >&6
8403 fi
8404
8405
8406 enablestring=
8407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8408echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8409 no_cache=0
8410 # Check whether --enable-toolbar or --disable-toolbar was given.
8411if test "${enable_toolbar+set}" = set; then
8412 enableval="$enable_toolbar"
8413
8414 if test "$enableval" = yes; then
8415 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8416 else
8417 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8418 fi
8419
8420else
8421
8422 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8430
8431fi;
8432
8433 eval "$ac_cv_use_toolbar"
8434 if test "$no_cache" != 1; then
8435 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8436 fi
8437
8438 if test "$wxUSE_TOOLBAR" = yes; then
8439 echo "$as_me:$LINENO: result: yes" >&5
8440echo "${ECHO_T}yes" >&6
8441 else
8442 echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
8444 fi
8445
8446
8447 enablestring=
8448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8449echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8450 no_cache=0
8451 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8452if test "${enable_tbarnative+set}" = set; then
8453 enableval="$enable_tbarnative"
8454
8455 if test "$enableval" = yes; then
8456 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8457 else
8458 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8459 fi
8460
8461else
8462
8463 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8464 if test "x$LINE" != x ; then
8465 eval "DEFAULT_$LINE"
8466 else
8467 no_cache=1
8468 fi
8469
8470 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8471
8472fi;
8473
8474 eval "$ac_cv_use_tbarnative"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
8482 else
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
8485 fi
8486
8487
8488 enablestring=
8489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8490echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8491 no_cache=0
8492 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8493if test "${enable_tbarsmpl+set}" = set; then
8494 enableval="$enable_tbarsmpl"
8495
8496 if test "$enableval" = yes; then
8497 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8498 else
8499 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8500 fi
8501
8502else
8503
8504 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8505 if test "x$LINE" != x ; then
8506 eval "DEFAULT_$LINE"
8507 else
8508 no_cache=1
8509 fi
8510
8511 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8512
8513fi;
8514
8515 eval "$ac_cv_use_tbarsmpl"
8516 if test "$no_cache" != 1; then
8517 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8518 fi
8519
8520 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8521 echo "$as_me:$LINENO: result: yes" >&5
8522echo "${ECHO_T}yes" >&6
8523 else
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526 fi
8527
8528
8529 enablestring=
8530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8531echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8532 no_cache=0
8533 # Check whether --enable-treectrl or --disable-treectrl was given.
8534if test "${enable_treectrl+set}" = set; then
8535 enableval="$enable_treectrl"
8536
8537 if test "$enableval" = yes; then
8538 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8539 else
8540 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8541 fi
8542
8543else
8544
8545 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8546 if test "x$LINE" != x ; then
8547 eval "DEFAULT_$LINE"
8548 else
8549 no_cache=1
8550 fi
8551
8552 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8553
8554fi;
8555
8556 eval "$ac_cv_use_treectrl"
8557 if test "$no_cache" != 1; then
8558 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8559 fi
8560
8561 if test "$wxUSE_TREECTRL" = yes; then
8562 echo "$as_me:$LINENO: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
8564 else
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
8567 fi
8568
8569
8570 enablestring=
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8573 no_cache=0
8574 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8575if test "${enable_tipwindow+set}" = set; then
8576 enableval="$enable_tipwindow"
8577
8578 if test "$enableval" = yes; then
8579 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8580 else
8581 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8594
8595fi;
8596
8597 eval "$ac_cv_use_tipwindow"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_TIPWINDOW" = yes; then
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605 else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608 fi
8609
8610
8611 enablestring=
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8614 no_cache=0
8615 # Check whether --enable-popupwin or --disable-popupwin was given.
8616if test "${enable_popupwin+set}" = set; then
8617 enableval="$enable_popupwin"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8621 else
8622 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8635
8636fi;
8637
8638 eval "$ac_cv_use_popupwin"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_POPUPWIN" = yes; then
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
8646 else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649 fi
8650
8651
8652
8653
8654 enablestring=
8655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8656echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8657 no_cache=0
8658 # Check whether --enable-commondlg or --disable-commondlg was given.
8659if test "${enable_commondlg+set}" = set; then
8660 enableval="$enable_commondlg"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8664 else
8665 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8666 fi
8667
8668else
8669
8670 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8678
8679fi;
8680
8681 eval "$ac_cv_use_commondlg"
8682 if test "$no_cache" != 1; then
8683 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8684 fi
8685
8686 if test "$wxUSE_COMMONDLGS" = yes; then
8687 echo "$as_me:$LINENO: result: yes" >&5
8688echo "${ECHO_T}yes" >&6
8689 else
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
8692 fi
8693
8694
8695 enablestring=
8696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8697echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8698 no_cache=0
8699 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8700if test "${enable_choicedlg+set}" = set; then
8701 enableval="$enable_choicedlg"
8702
8703 if test "$enableval" = yes; then
8704 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8705 else
8706 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8707 fi
8708
8709else
8710
8711 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8712 if test "x$LINE" != x ; then
8713 eval "DEFAULT_$LINE"
8714 else
8715 no_cache=1
8716 fi
8717
8718 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8719
8720fi;
8721
8722 eval "$ac_cv_use_choicedlg"
8723 if test "$no_cache" != 1; then
8724 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8725 fi
8726
8727 if test "$wxUSE_CHOICEDLG" = yes; then
8728 echo "$as_me:$LINENO: result: yes" >&5
8729echo "${ECHO_T}yes" >&6
8730 else
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
8733 fi
8734
8735
8736 enablestring=
8737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8738echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8739 no_cache=0
8740 # Check whether --enable-coldlg or --disable-coldlg was given.
8741if test "${enable_coldlg+set}" = set; then
8742 enableval="$enable_coldlg"
8743
8744 if test "$enableval" = yes; then
8745 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8746 else
8747 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8748 fi
8749
8750else
8751
8752 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8753 if test "x$LINE" != x ; then
8754 eval "DEFAULT_$LINE"
8755 else
8756 no_cache=1
8757 fi
8758
8759 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8760
8761fi;
8762
8763 eval "$ac_cv_use_coldlg"
8764 if test "$no_cache" != 1; then
8765 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8766 fi
8767
8768 if test "$wxUSE_COLOURDLG" = yes; then
8769 echo "$as_me:$LINENO: result: yes" >&5
8770echo "${ECHO_T}yes" >&6
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773echo "${ECHO_T}no" >&6
8774 fi
8775
8776
8777 enablestring=
8778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8779echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8780 no_cache=0
8781 # Check whether --enable-filedlg or --disable-filedlg was given.
8782if test "${enable_filedlg+set}" = set; then
8783 enableval="$enable_filedlg"
8784
8785 if test "$enableval" = yes; then
8786 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8787 else
8788 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8789 fi
8790
8791else
8792
8793 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8794 if test "x$LINE" != x ; then
8795 eval "DEFAULT_$LINE"
8796 else
8797 no_cache=1
8798 fi
8799
8800 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8801
8802fi;
8803
8804 eval "$ac_cv_use_filedlg"
8805 if test "$no_cache" != 1; then
8806 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8807 fi
8808
8809 if test "$wxUSE_FILEDLG" = yes; then
8810 echo "$as_me:$LINENO: result: yes" >&5
8811echo "${ECHO_T}yes" >&6
8812 else
8813 echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6
8815 fi
8816
8817
8818 enablestring=
8819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8820echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8821 no_cache=0
8822 # Check whether --enable-finddlg or --disable-finddlg was given.
8823if test "${enable_finddlg+set}" = set; then
8824 enableval="$enable_finddlg"
8825
8826 if test "$enableval" = yes; then
8827 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8828 else
8829 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8830 fi
8831
8832else
8833
8834 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8835 if test "x$LINE" != x ; then
8836 eval "DEFAULT_$LINE"
8837 else
8838 no_cache=1
8839 fi
8840
8841 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8842
8843fi;
8844
8845 eval "$ac_cv_use_finddlg"
8846 if test "$no_cache" != 1; then
8847 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8848 fi
8849
8850 if test "$wxUSE_FINDREPLDLG" = yes; then
8851 echo "$as_me:$LINENO: result: yes" >&5
8852echo "${ECHO_T}yes" >&6
8853 else
8854 echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
8856 fi
8857
8858
8859 enablestring=
8860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8861echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8862 no_cache=0
8863 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8864if test "${enable_fontdlg+set}" = set; then
8865 enableval="$enable_fontdlg"
8866
8867 if test "$enableval" = yes; then
8868 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8869 else
8870 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8871 fi
8872
8873else
8874
8875 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8876 if test "x$LINE" != x ; then
8877 eval "DEFAULT_$LINE"
8878 else
8879 no_cache=1
8880 fi
8881
8882 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8883
8884fi;
8885
8886 eval "$ac_cv_use_fontdlg"
8887 if test "$no_cache" != 1; then
8888 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8889 fi
8890
8891 if test "$wxUSE_FONTDLG" = yes; then
8892 echo "$as_me:$LINENO: result: yes" >&5
8893echo "${ECHO_T}yes" >&6
8894 else
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
8897 fi
8898
8899
8900 enablestring=
8901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8902echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8903 no_cache=0
8904 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8905if test "${enable_dirdlg+set}" = set; then
8906 enableval="$enable_dirdlg"
8907
8908 if test "$enableval" = yes; then
8909 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8910 else
8911 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8912 fi
8913
8914else
8915
8916 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8917 if test "x$LINE" != x ; then
8918 eval "DEFAULT_$LINE"
8919 else
8920 no_cache=1
8921 fi
8922
8923 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8924
8925fi;
8926
8927 eval "$ac_cv_use_dirdlg"
8928 if test "$no_cache" != 1; then
8929 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8930 fi
8931
8932 if test "$wxUSE_DIRDLG" = yes; then
8933 echo "$as_me:$LINENO: result: yes" >&5
8934echo "${ECHO_T}yes" >&6
8935 else
8936 echo "$as_me:$LINENO: result: no" >&5
8937echo "${ECHO_T}no" >&6
8938 fi
8939
8940
8941 enablestring=
8942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8943echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8944 no_cache=0
8945 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8946if test "${enable_msgdlg+set}" = set; then
8947 enableval="$enable_msgdlg"
8948
8949 if test "$enableval" = yes; then
8950 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8951 else
8952 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8953 fi
8954
8955else
8956
8957 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8958 if test "x$LINE" != x ; then
8959 eval "DEFAULT_$LINE"
8960 else
8961 no_cache=1
8962 fi
8963
8964 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8965
8966fi;
8967
8968 eval "$ac_cv_use_msgdlg"
8969 if test "$no_cache" != 1; then
8970 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8971 fi
8972
8973 if test "$wxUSE_MSGDLG" = yes; then
8974 echo "$as_me:$LINENO: result: yes" >&5
8975echo "${ECHO_T}yes" >&6
8976 else
8977 echo "$as_me:$LINENO: result: no" >&5
8978echo "${ECHO_T}no" >&6
8979 fi
8980
8981
8982 enablestring=
8983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8984echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8985 no_cache=0
8986 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8987if test "${enable_numberdlg+set}" = set; then
8988 enableval="$enable_numberdlg"
8989
8990 if test "$enableval" = yes; then
8991 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8992 else
8993 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8994 fi
8995
8996else
8997
8998 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8999 if test "x$LINE" != x ; then
9000 eval "DEFAULT_$LINE"
9001 else
9002 no_cache=1
9003 fi
9004
9005 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9006
9007fi;
9008
9009 eval "$ac_cv_use_numberdlg"
9010 if test "$no_cache" != 1; then
9011 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9012 fi
9013
9014 if test "$wxUSE_NUMBERDLG" = yes; then
9015 echo "$as_me:$LINENO: result: yes" >&5
9016echo "${ECHO_T}yes" >&6
9017 else
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
9020 fi
9021
9022
9023 enablestring=
9024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9025echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9026 no_cache=0
9027 # Check whether --enable-splash or --disable-splash was given.
9028if test "${enable_splash+set}" = set; then
9029 enableval="$enable_splash"
9030
9031 if test "$enableval" = yes; then
9032 ac_cv_use_splash='wxUSE_SPLASH=yes'
9033 else
9034 ac_cv_use_splash='wxUSE_SPLASH=no'
9035 fi
9036
9037else
9038
9039 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9040 if test "x$LINE" != x ; then
9041 eval "DEFAULT_$LINE"
9042 else
9043 no_cache=1
9044 fi
9045
9046 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9047
9048fi;
9049
9050 eval "$ac_cv_use_splash"
9051 if test "$no_cache" != 1; then
9052 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9053 fi
9054
9055 if test "$wxUSE_SPLASH" = yes; then
9056 echo "$as_me:$LINENO: result: yes" >&5
9057echo "${ECHO_T}yes" >&6
9058 else
9059 echo "$as_me:$LINENO: result: no" >&5
9060echo "${ECHO_T}no" >&6
9061 fi
9062
9063
9064 enablestring=
9065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9066echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9067 no_cache=0
9068 # Check whether --enable-textdlg or --disable-textdlg was given.
9069if test "${enable_textdlg+set}" = set; then
9070 enableval="$enable_textdlg"
9071
9072 if test "$enableval" = yes; then
9073 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9074 else
9075 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9076 fi
9077
9078else
9079
9080 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9081 if test "x$LINE" != x ; then
9082 eval "DEFAULT_$LINE"
9083 else
9084 no_cache=1
9085 fi
9086
9087 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9088
9089fi;
9090
9091 eval "$ac_cv_use_textdlg"
9092 if test "$no_cache" != 1; then
9093 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9094 fi
9095
9096 if test "$wxUSE_TEXTDLG" = yes; then
9097 echo "$as_me:$LINENO: result: yes" >&5
9098echo "${ECHO_T}yes" >&6
9099 else
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
9102 fi
9103
9104
9105 enablestring=
9106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9107echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9108 no_cache=0
9109 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9110if test "${enable_tipdlg+set}" = set; then
9111 enableval="$enable_tipdlg"
9112
9113 if test "$enableval" = yes; then
9114 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9115 else
9116 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9117 fi
9118
9119else
9120
9121 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9122 if test "x$LINE" != x ; then
9123 eval "DEFAULT_$LINE"
9124 else
9125 no_cache=1
9126 fi
9127
9128 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9129
9130fi;
9131
9132 eval "$ac_cv_use_tipdlg"
9133 if test "$no_cache" != 1; then
9134 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9135 fi
9136
9137 if test "$wxUSE_STARTUP_TIPS" = yes; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139echo "${ECHO_T}yes" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
9143 fi
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9151if test "${enable_progressdlg+set}" = set; then
9152 enableval="$enable_progressdlg"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9156 else
9157 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9170
9171fi;
9172
9173 eval "$ac_cv_use_progressdlg"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_PROGRESSDLG" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9192if test "${enable_wizarddlg+set}" = set; then
9193 enableval="$enable_wizarddlg"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9197 else
9198 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9211
9212fi;
9213
9214 eval "$ac_cv_use_wizarddlg"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_WIZARDDLG" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228
9229
9230 enablestring=
9231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9232echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9233 no_cache=0
9234 # Check whether --enable-menus or --disable-menus was given.
9235if test "${enable_menus+set}" = set; then
9236 enableval="$enable_menus"
9237
9238 if test "$enableval" = yes; then
9239 ac_cv_use_menus='wxUSE_MENUS=yes'
9240 else
9241 ac_cv_use_menus='wxUSE_MENUS=no'
9242 fi
9243
9244else
9245
9246 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9247 if test "x$LINE" != x ; then
9248 eval "DEFAULT_$LINE"
9249 else
9250 no_cache=1
9251 fi
9252
9253 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9254
9255fi;
9256
9257 eval "$ac_cv_use_menus"
9258 if test "$no_cache" != 1; then
9259 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9260 fi
9261
9262 if test "$wxUSE_MENUS" = yes; then
9263 echo "$as_me:$LINENO: result: yes" >&5
9264echo "${ECHO_T}yes" >&6
9265 else
9266 echo "$as_me:$LINENO: result: no" >&5
9267echo "${ECHO_T}no" >&6
9268 fi
9269
9270
9271 enablestring=
9272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9273echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9274 no_cache=0
9275 # Check whether --enable-miniframe or --disable-miniframe was given.
9276if test "${enable_miniframe+set}" = set; then
9277 enableval="$enable_miniframe"
9278
9279 if test "$enableval" = yes; then
9280 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9281 else
9282 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9283 fi
9284
9285else
9286
9287 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9288 if test "x$LINE" != x ; then
9289 eval "DEFAULT_$LINE"
9290 else
9291 no_cache=1
9292 fi
9293
9294 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9295
9296fi;
9297
9298 eval "$ac_cv_use_miniframe"
9299 if test "$no_cache" != 1; then
9300 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9301 fi
9302
9303 if test "$wxUSE_MINIFRAME" = yes; then
9304 echo "$as_me:$LINENO: result: yes" >&5
9305echo "${ECHO_T}yes" >&6
9306 else
9307 echo "$as_me:$LINENO: result: no" >&5
9308echo "${ECHO_T}no" >&6
9309 fi
9310
9311
9312 enablestring=
9313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9314echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9315 no_cache=0
9316 # Check whether --enable-tooltips or --disable-tooltips was given.
9317if test "${enable_tooltips+set}" = set; then
9318 enableval="$enable_tooltips"
9319
9320 if test "$enableval" = yes; then
9321 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9322 else
9323 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9324 fi
9325
9326else
9327
9328 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9329 if test "x$LINE" != x ; then
9330 eval "DEFAULT_$LINE"
9331 else
9332 no_cache=1
9333 fi
9334
9335 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9336
9337fi;
9338
9339 eval "$ac_cv_use_tooltips"
9340 if test "$no_cache" != 1; then
9341 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9342 fi
9343
9344 if test "$wxUSE_TOOLTIPS" = yes; then
9345 echo "$as_me:$LINENO: result: yes" >&5
9346echo "${ECHO_T}yes" >&6
9347 else
9348 echo "$as_me:$LINENO: result: no" >&5
9349echo "${ECHO_T}no" >&6
9350 fi
9351
9352
9353 enablestring=
9354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9355echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9356 no_cache=0
9357 # Check whether --enable-splines or --disable-splines was given.
9358if test "${enable_splines+set}" = set; then
9359 enableval="$enable_splines"
9360
9361 if test "$enableval" = yes; then
9362 ac_cv_use_splines='wxUSE_SPLINES=yes'
9363 else
9364 ac_cv_use_splines='wxUSE_SPLINES=no'
9365 fi
9366
9367else
9368
9369 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9370 if test "x$LINE" != x ; then
9371 eval "DEFAULT_$LINE"
9372 else
9373 no_cache=1
9374 fi
9375
9376 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9377
9378fi;
9379
9380 eval "$ac_cv_use_splines"
9381 if test "$no_cache" != 1; then
9382 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9383 fi
9384
9385 if test "$wxUSE_SPLINES" = yes; then
9386 echo "$as_me:$LINENO: result: yes" >&5
9387echo "${ECHO_T}yes" >&6
9388 else
9389 echo "$as_me:$LINENO: result: no" >&5
9390echo "${ECHO_T}no" >&6
9391 fi
9392
9393
9394 enablestring=
9395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9396echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9397 no_cache=0
9398 # Check whether --enable-validators or --disable-validators was given.
9399if test "${enable_validators+set}" = set; then
9400 enableval="$enable_validators"
9401
9402 if test "$enableval" = yes; then
9403 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9404 else
9405 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9406 fi
9407
9408else
9409
9410 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9411 if test "x$LINE" != x ; then
9412 eval "DEFAULT_$LINE"
9413 else
9414 no_cache=1
9415 fi
9416
9417 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9418
9419fi;
9420
9421 eval "$ac_cv_use_validators"
9422 if test "$no_cache" != 1; then
9423 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9424 fi
9425
9426 if test "$wxUSE_VALIDATORS" = yes; then
9427 echo "$as_me:$LINENO: result: yes" >&5
9428echo "${ECHO_T}yes" >&6
9429 else
9430 echo "$as_me:$LINENO: result: no" >&5
9431echo "${ECHO_T}no" >&6
9432 fi
9433
9434
9435 enablestring=
9436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9437echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9438 no_cache=0
9439 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9440if test "${enable_busyinfo+set}" = set; then
9441 enableval="$enable_busyinfo"
9442
9443 if test "$enableval" = yes; then
9444 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9445 else
9446 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9447 fi
9448
9449else
9450
9451 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9452 if test "x$LINE" != x ; then
9453 eval "DEFAULT_$LINE"
9454 else
9455 no_cache=1
9456 fi
9457
9458 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9459
9460fi;
9461
9462 eval "$ac_cv_use_busyinfo"
9463 if test "$no_cache" != 1; then
9464 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9465 fi
9466
9467 if test "$wxUSE_BUSYINFO" = yes; then
9468 echo "$as_me:$LINENO: result: yes" >&5
9469echo "${ECHO_T}yes" >&6
9470 else
9471 echo "$as_me:$LINENO: result: no" >&5
9472echo "${ECHO_T}no" >&6
9473 fi
9474
9475
9476 enablestring=
9477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9478echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9479 no_cache=0
9480 # Check whether --enable-joystick or --disable-joystick was given.
9481if test "${enable_joystick+set}" = set; then
9482 enableval="$enable_joystick"
9483
9484 if test "$enableval" = yes; then
9485 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9486 else
9487 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9488 fi
9489
9490else
9491
9492 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9493 if test "x$LINE" != x ; then
9494 eval "DEFAULT_$LINE"
9495 else
9496 no_cache=1
9497 fi
9498
9499 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9500
9501fi;
9502
9503 eval "$ac_cv_use_joystick"
9504 if test "$no_cache" != 1; then
9505 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9506 fi
9507
9508 if test "$wxUSE_JOYSTICK" = yes; then
9509 echo "$as_me:$LINENO: result: yes" >&5
9510echo "${ECHO_T}yes" >&6
9511 else
9512 echo "$as_me:$LINENO: result: no" >&5
9513echo "${ECHO_T}no" >&6
9514 fi
9515
9516
9517 enablestring=
9518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9519echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9520 no_cache=0
9521 # Check whether --enable-metafile or --disable-metafile was given.
9522if test "${enable_metafile+set}" = set; then
9523 enableval="$enable_metafile"
9524
9525 if test "$enableval" = yes; then
9526 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9527 else
9528 ac_cv_use_metafile='wxUSE_METAFILE=no'
9529 fi
9530
9531else
9532
9533 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9534 if test "x$LINE" != x ; then
9535 eval "DEFAULT_$LINE"
9536 else
9537 no_cache=1
9538 fi
9539
9540 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9541
9542fi;
9543
9544 eval "$ac_cv_use_metafile"
9545 if test "$no_cache" != 1; then
9546 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9547 fi
9548
9549 if test "$wxUSE_METAFILE" = yes; then
9550 echo "$as_me:$LINENO: result: yes" >&5
9551echo "${ECHO_T}yes" >&6
9552 else
9553 echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6
9555 fi
9556
9557
9558 enablestring=
9559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9560echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9561 no_cache=0
9562 # Check whether --enable-dragimage or --disable-dragimage was given.
9563if test "${enable_dragimage+set}" = set; then
9564 enableval="$enable_dragimage"
9565
9566 if test "$enableval" = yes; then
9567 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9568 else
9569 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9570 fi
9571
9572else
9573
9574 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9575 if test "x$LINE" != x ; then
9576 eval "DEFAULT_$LINE"
9577 else
9578 no_cache=1
9579 fi
9580
9581 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9582
9583fi;
9584
9585 eval "$ac_cv_use_dragimage"
9586 if test "$no_cache" != 1; then
9587 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9588 fi
9589
9590 if test "$wxUSE_DRAGIMAGE" = yes; then
9591 echo "$as_me:$LINENO: result: yes" >&5
9592echo "${ECHO_T}yes" >&6
9593 else
9594 echo "$as_me:$LINENO: result: no" >&5
9595echo "${ECHO_T}no" >&6
9596 fi
9597
9598
9599 enablestring=
9600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9601echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9602 no_cache=0
9603 # Check whether --enable-accessibility or --disable-accessibility was given.
9604if test "${enable_accessibility+set}" = set; then
9605 enableval="$enable_accessibility"
9606
9607 if test "$enableval" = yes; then
9608 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9609 else
9610 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9611 fi
9612
9613else
9614
9615 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9616 if test "x$LINE" != x ; then
9617 eval "DEFAULT_$LINE"
9618 else
9619 no_cache=1
9620 fi
9621
9622 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9623
9624fi;
9625
9626 eval "$ac_cv_use_accessibility"
9627 if test "$no_cache" != 1; then
9628 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9629 fi
9630
9631 if test "$wxUSE_ACCESSIBILITY" = yes; then
9632 echo "$as_me:$LINENO: result: yes" >&5
9633echo "${ECHO_T}yes" >&6
9634 else
9635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
9637 fi
9638
9639
9640
9641
9642 enablestring=
9643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9644echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9645 no_cache=0
9646 # Check whether --enable-palette or --disable-palette was given.
9647if test "${enable_palette+set}" = set; then
9648 enableval="$enable_palette"
9649
9650 if test "$enableval" = yes; then
9651 ac_cv_use_palette='wxUSE_PALETTE=yes'
9652 else
9653 ac_cv_use_palette='wxUSE_PALETTE=no'
9654 fi
9655
9656else
9657
9658 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9659 if test "x$LINE" != x ; then
9660 eval "DEFAULT_$LINE"
9661 else
9662 no_cache=1
9663 fi
9664
9665 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9666
9667fi;
9668
9669 eval "$ac_cv_use_palette"
9670 if test "$no_cache" != 1; then
9671 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9672 fi
9673
9674 if test "$wxUSE_PALETTE" = yes; then
9675 echo "$as_me:$LINENO: result: yes" >&5
9676echo "${ECHO_T}yes" >&6
9677 else
9678 echo "$as_me:$LINENO: result: no" >&5
9679echo "${ECHO_T}no" >&6
9680 fi
9681
9682
9683 enablestring=
9684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9685echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9686 no_cache=0
9687 # Check whether --enable-image or --disable-image was given.
9688if test "${enable_image+set}" = set; then
9689 enableval="$enable_image"
9690
9691 if test "$enableval" = yes; then
9692 ac_cv_use_image='wxUSE_IMAGE=yes'
9693 else
9694 ac_cv_use_image='wxUSE_IMAGE=no'
9695 fi
9696
9697else
9698
9699 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9700 if test "x$LINE" != x ; then
9701 eval "DEFAULT_$LINE"
9702 else
9703 no_cache=1
9704 fi
9705
9706 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9707
9708fi;
9709
9710 eval "$ac_cv_use_image"
9711 if test "$no_cache" != 1; then
9712 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9713 fi
9714
9715 if test "$wxUSE_IMAGE" = yes; then
9716 echo "$as_me:$LINENO: result: yes" >&5
9717echo "${ECHO_T}yes" >&6
9718 else
9719 echo "$as_me:$LINENO: result: no" >&5
9720echo "${ECHO_T}no" >&6
9721 fi
9722
9723
9724 enablestring=
9725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9726echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9727 no_cache=0
9728 # Check whether --enable-gif or --disable-gif was given.
9729if test "${enable_gif+set}" = set; then
9730 enableval="$enable_gif"
9731
9732 if test "$enableval" = yes; then
9733 ac_cv_use_gif='wxUSE_GIF=yes'
9734 else
9735 ac_cv_use_gif='wxUSE_GIF=no'
9736 fi
9737
9738else
9739
9740 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9741 if test "x$LINE" != x ; then
9742 eval "DEFAULT_$LINE"
9743 else
9744 no_cache=1
9745 fi
9746
9747 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9748
9749fi;
9750
9751 eval "$ac_cv_use_gif"
9752 if test "$no_cache" != 1; then
9753 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9754 fi
9755
9756 if test "$wxUSE_GIF" = yes; then
9757 echo "$as_me:$LINENO: result: yes" >&5
9758echo "${ECHO_T}yes" >&6
9759 else
9760 echo "$as_me:$LINENO: result: no" >&5
9761echo "${ECHO_T}no" >&6
9762 fi
9763
9764
9765 enablestring=
9766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9767echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9768 no_cache=0
9769 # Check whether --enable-pcx or --disable-pcx was given.
9770if test "${enable_pcx+set}" = set; then
9771 enableval="$enable_pcx"
9772
9773 if test "$enableval" = yes; then
9774 ac_cv_use_pcx='wxUSE_PCX=yes'
9775 else
9776 ac_cv_use_pcx='wxUSE_PCX=no'
9777 fi
9778
9779else
9780
9781 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9782 if test "x$LINE" != x ; then
9783 eval "DEFAULT_$LINE"
9784 else
9785 no_cache=1
9786 fi
9787
9788 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9789
9790fi;
9791
9792 eval "$ac_cv_use_pcx"
9793 if test "$no_cache" != 1; then
9794 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9795 fi
9796
9797 if test "$wxUSE_PCX" = yes; then
9798 echo "$as_me:$LINENO: result: yes" >&5
9799echo "${ECHO_T}yes" >&6
9800 else
9801 echo "$as_me:$LINENO: result: no" >&5
9802echo "${ECHO_T}no" >&6
9803 fi
9804
9805
9806 enablestring=
9807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9808echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9809 no_cache=0
9810 # Check whether --enable-iff or --disable-iff was given.
9811if test "${enable_iff+set}" = set; then
9812 enableval="$enable_iff"
9813
9814 if test "$enableval" = yes; then
9815 ac_cv_use_iff='wxUSE_IFF=yes'
9816 else
9817 ac_cv_use_iff='wxUSE_IFF=no'
9818 fi
9819
9820else
9821
9822 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9823 if test "x$LINE" != x ; then
9824 eval "DEFAULT_$LINE"
9825 else
9826 no_cache=1
9827 fi
9828
9829 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9830
9831fi;
9832
9833 eval "$ac_cv_use_iff"
9834 if test "$no_cache" != 1; then
9835 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9836 fi
9837
9838 if test "$wxUSE_IFF" = yes; then
9839 echo "$as_me:$LINENO: result: yes" >&5
9840echo "${ECHO_T}yes" >&6
9841 else
9842 echo "$as_me:$LINENO: result: no" >&5
9843echo "${ECHO_T}no" >&6
9844 fi
9845
9846
9847 enablestring=
9848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9849echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9850 no_cache=0
9851 # Check whether --enable-pnm or --disable-pnm was given.
9852if test "${enable_pnm+set}" = set; then
9853 enableval="$enable_pnm"
9854
9855 if test "$enableval" = yes; then
9856 ac_cv_use_pnm='wxUSE_PNM=yes'
9857 else
9858 ac_cv_use_pnm='wxUSE_PNM=no'
9859 fi
9860
9861else
9862
9863 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9864 if test "x$LINE" != x ; then
9865 eval "DEFAULT_$LINE"
9866 else
9867 no_cache=1
9868 fi
9869
9870 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9871
9872fi;
9873
9874 eval "$ac_cv_use_pnm"
9875 if test "$no_cache" != 1; then
9876 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9877 fi
9878
9879 if test "$wxUSE_PNM" = yes; then
9880 echo "$as_me:$LINENO: result: yes" >&5
9881echo "${ECHO_T}yes" >&6
9882 else
9883 echo "$as_me:$LINENO: result: no" >&5
9884echo "${ECHO_T}no" >&6
9885 fi
9886
9887
9888 enablestring=
9889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9890echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9891 no_cache=0
9892 # Check whether --enable-xpm or --disable-xpm was given.
9893if test "${enable_xpm+set}" = set; then
9894 enableval="$enable_xpm"
9895
9896 if test "$enableval" = yes; then
9897 ac_cv_use_xpm='wxUSE_XPM=yes'
9898 else
9899 ac_cv_use_xpm='wxUSE_XPM=no'
9900 fi
9901
9902else
9903
9904 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9905 if test "x$LINE" != x ; then
9906 eval "DEFAULT_$LINE"
9907 else
9908 no_cache=1
9909 fi
9910
9911 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9912
9913fi;
9914
9915 eval "$ac_cv_use_xpm"
9916 if test "$no_cache" != 1; then
9917 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9918 fi
9919
9920 if test "$wxUSE_XPM" = yes; then
9921 echo "$as_me:$LINENO: result: yes" >&5
9922echo "${ECHO_T}yes" >&6
9923 else
9924 echo "$as_me:$LINENO: result: no" >&5
9925echo "${ECHO_T}no" >&6
9926 fi
9927
9928
9929 enablestring=
9930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9931echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9932 no_cache=0
9933 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9934if test "${enable_ico_cur+set}" = set; then
9935 enableval="$enable_ico_cur"
9936
9937 if test "$enableval" = yes; then
9938 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9939 else
9940 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9941 fi
9942
9943else
9944
9945 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9946 if test "x$LINE" != x ; then
9947 eval "DEFAULT_$LINE"
9948 else
9949 no_cache=1
9950 fi
9951
9952 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9953
9954fi;
9955
9956 eval "$ac_cv_use_ico_cur"
9957 if test "$no_cache" != 1; then
9958 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9959 fi
9960
9961 if test "$wxUSE_ICO_CUR" = yes; then
9962 echo "$as_me:$LINENO: result: yes" >&5
9963echo "${ECHO_T}yes" >&6
9964 else
9965 echo "$as_me:$LINENO: result: no" >&5
9966echo "${ECHO_T}no" >&6
9967 fi
9968
9969
9970fi
9971
9972
9973
ceec2216
RL
9974# Check whether --with-flavour or --without-flavour was given.
9975if test "${with_flavour+set}" = set; then
9976 withval="$with_flavour"
9977 WX_FLAVOUR="$withval"
9978fi;
9979
9980
9981
a848cd7e
SC
9982 enablestring=
9983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9984echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9985 no_cache=0
9986 # Check whether --enable-official_build or --disable-official_build was given.
9987if test "${enable_official_build+set}" = set; then
9988 enableval="$enable_official_build"
9989
9990 if test "$enableval" = yes; then
9991 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9992 else
9993 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9994 fi
9995
9996else
9997
9998 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9999 if test "x$LINE" != x ; then
10000 eval "DEFAULT_$LINE"
10001 else
10002 no_cache=1
10003 fi
10004
10005 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10006
10007fi;
10008
10009 eval "$ac_cv_use_official_build"
10010 if test "$no_cache" != 1; then
10011 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10012 fi
10013
10014 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10015 echo "$as_me:$LINENO: result: yes" >&5
10016echo "${ECHO_T}yes" >&6
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020 fi
10021
10022# Check whether --enable-vendor or --disable-vendor was given.
10023if test "${enable_vendor+set}" = set; then
10024 enableval="$enable_vendor"
10025 VENDOR="$enableval"
10026fi;
10027if test "x$VENDOR" = "x"; then
10028 VENDOR="custom"
10029fi
10030
a848cd7e
SC
10031
10032
10033
10034 echo "saving argument cache $wx_arg_cache_file"
10035 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10036
10037
10038
10039echo "$as_me:$LINENO: checking for toolkit" >&5
10040echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10041
10042# In Wine, we need to default to MSW, not GTK or MOTIF
10043if test "$wxUSE_WINE" = "yes"; then
10044 DEFAULT_DEFAULT_wxUSE_GTK=0
10045 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10046 DEFAULT_DEFAULT_wxUSE_MSW=1
10047 wxUSE_SHARED=no
10048fi
10049
10050if test "$wxUSE_GUI" = "yes"; then
10051
10052 if test "$USE_BEOS" = 1; then
10053 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10054echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10055 { (exit 1); exit 1; }; }
10056 fi
10057
10058 if test "$TOOLKIT_GIVEN" = 1; then
10059 for toolkit in `echo $ALL_TOOLKITS`; do
10060 var=wxUSE_$toolkit
10061 eval "value=\$${var}"
10062 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10063 done
10064 else
10065 for toolkit in `echo $ALL_TOOLKITS`; do
10066 if test "$has_toolkit_in_cache" != 1; then
10067 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10068 else
10069 var=DEFAULT_wxUSE_$toolkit
10070 fi
10071 eval "wxUSE_$toolkit=\$${var}"
10072 done
10073 fi
10074
10075 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10076 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10077 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10078
10079 case "${host}" in
10080 *-pc-os2_emx | *-pc-os2-emx )
10081 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10082 esac
10083
10084 case "$NUM_TOOLKITS" in
10085 1)
10086 ;;
10087 0)
10088 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10089echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10090 { (exit 1); exit 1; }; }
10091 ;;
10092 *)
10093 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10094echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10095 { (exit 1); exit 1; }; }
10096 esac
10097
10098 for toolkit in `echo $ALL_TOOLKITS`; do
10099 var=wxUSE_$toolkit
10100 eval "value=\$${var}"
10101 if test "x$value" != x; then
10102 cache_var=CACHE_$toolkit
10103 eval "cache=\$${cache_var}"
10104 if test "$cache" = 1; then
10105 echo "$var=$value" >> ${wx_arg_cache_file}
10106 fi
10107 if test "$value" = 1; then
10108 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10109 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10110echo "${ECHO_T}$toolkit_echo" >&6
10111 fi
10112 fi
10113 done
10114else
10115 if test "x$host_alias" != "x"; then
10116 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10117echo "${ECHO_T}base ($host_alias hosted) only" >&6
10118 else
10119 echo "$as_me:$LINENO: result: base only" >&5
10120echo "${ECHO_T}base only" >&6
10121 fi
10122fi
10123
10124wants_win32=0
10125doesnt_want_win32=0
10126case "${host}" in
10127 *-*-cygwin*)
10128 if test "$wxUSE_MSW" = 1 ; then
10129 wants_win32=1
10130 else
10131 doesnt_want_win32=1
10132 fi
10133 ;;
10134 *-*-mingw*)
10135 wants_win32=1
10136 ;;
10137esac
10138
10139if test "$wxUSE_WINE" = "yes"; then
10140 wants_win32=1
10141 CC=winegcc
10142 CXX=wineg++
10143 RESCOMP=wrc
10144 LDFLAGS_GUI="-mwindows"
10145fi
10146
10147if test "$wants_win32" = 1 ; then
10148 USE_UNIX=0
10149 USE_WIN32=1
10150 cat >>confdefs.h <<\_ACEOF
10151#define __WIN32__ 1
10152_ACEOF
10153
10154 cat >>confdefs.h <<\_ACEOF
10155#define __WIN95__ 1
10156_ACEOF
10157
10158 cat >>confdefs.h <<\_ACEOF
10159#define __WINDOWS__ 1
10160_ACEOF
10161
10162 cat >>confdefs.h <<\_ACEOF
10163#define __GNUWIN32__ 1
10164_ACEOF
10165
10166 cat >>confdefs.h <<\_ACEOF
10167#define STRICT 1
10168_ACEOF
10169
10170 cat >>confdefs.h <<\_ACEOF
10171#define WINVER 0x0400
10172_ACEOF
10173
10174fi
10175if test "$doesnt_want_win32" = 1 ; then
10176 USE_UNIX=1
10177 USE_WIN32=0
10178fi
10179
10180if test "$USE_UNIX" = 1 ; then
10181 wxUSE_UNIX=yes
10182 cat >>confdefs.h <<\_ACEOF
10183#define __UNIX__ 1
10184_ACEOF
10185
10186fi
10187
10188
10189cat >confcache <<\_ACEOF
10190# This file is a shell script that caches the results of configure
10191# tests run on this system so they can be shared between configure
10192# scripts and configure runs, see configure's option --config-cache.
10193# It is not useful on other systems. If it contains results you don't
10194# want to keep, you may remove or edit it.
10195#
10196# config.status only pays attention to the cache file if you give it
10197# the --recheck option to rerun configure.
10198#
10199# `ac_cv_env_foo' variables (set or unset) will be overridden when
10200# loading this file, other *unset* `ac_cv_foo' will be assigned the
10201# following values.
10202
10203_ACEOF
10204
10205# The following way of writing the cache mishandles newlines in values,
10206# but we know of no workaround that is simple, portable, and efficient.
10207# So, don't put newlines in cache variables' values.
10208# Ultrix sh set writes to stderr and can't be redirected directly,
10209# and sets the high bit in the cache file unless we assign to the vars.
10210{
10211 (set) 2>&1 |
10212 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10213 *ac_space=\ *)
10214 # `set' does not quote correctly, so add quotes (double-quote
10215 # substitution turns \\\\ into \\, and sed turns \\ into \).
10216 sed -n \
ac1cb8d3
VS
10217 "s/'/'\\\\''/g;
10218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10219 ;;
10220 *)
10221 # `set' quotes correctly as required by POSIX, so do not add quotes.
10222 sed -n \
ac1cb8d3 10223 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10224 ;;
10225 esac;
10226} |
10227 sed '
10228 t clear
10229 : clear
10230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10231 t end
10232 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10233 : end' >>confcache
10234if diff $cache_file confcache >/dev/null 2>&1; then :; else
10235 if test -w $cache_file; then
10236 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10237 cat confcache >$cache_file
10238 else
10239 echo "not updating unwritable cache $cache_file"
10240 fi
10241fi
10242rm -f confcache
10243
10244if test "$build" != "$host" ; then
10245 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10246 CC=$host_alias-gcc
10247 CXX=$host_alias-c++
10248 AR=$host_alias-ar
10249 RANLIB=$host_alias-ranlib
10250 DLLTOOL=$host_alias-dlltool
10251 RESCOMP=$host_alias-windres
a848cd7e
SC
10252 STRIP=$host_alias-strip
10253 else
10254 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10255echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10256 { (exit 1); exit 1; }; }
10257 fi
10258fi
10259
10260CFLAGS=${CFLAGS:=}
10261ac_ext=c
10262ac_cpp='$CPP $CPPFLAGS'
10263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265ac_compiler_gnu=$ac_cv_c_compiler_gnu
10266if test -n "$ac_tool_prefix"; then
10267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10268set dummy ${ac_tool_prefix}gcc; ac_word=$2
10269echo "$as_me:$LINENO: checking for $ac_word" >&5
10270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10271if test "${ac_cv_prog_CC+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 if test -n "$CC"; then
10275 ac_cv_prog_CC="$CC" # Let the user override the test.
10276else
10277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278for as_dir in $PATH
10279do
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10284 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 break 2
10287 fi
10288done
10289done
10290
10291fi
10292fi
10293CC=$ac_cv_prog_CC
10294if test -n "$CC"; then
10295 echo "$as_me:$LINENO: result: $CC" >&5
10296echo "${ECHO_T}$CC" >&6
10297else
10298 echo "$as_me:$LINENO: result: no" >&5
10299echo "${ECHO_T}no" >&6
10300fi
10301
10302fi
10303if test -z "$ac_cv_prog_CC"; then
10304 ac_ct_CC=$CC
10305 # Extract the first word of "gcc", so it can be a program name with args.
10306set dummy gcc; ac_word=$2
10307echo "$as_me:$LINENO: checking for $ac_word" >&5
10308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10309if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311else
10312 if test -n "$ac_ct_CC"; then
10313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10314else
10315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316for as_dir in $PATH
10317do
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10322 ac_cv_prog_ac_ct_CC="gcc"
10323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10325 fi
10326done
10327done
10328
10329fi
10330fi
10331ac_ct_CC=$ac_cv_prog_ac_ct_CC
10332if test -n "$ac_ct_CC"; then
10333 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10334echo "${ECHO_T}$ac_ct_CC" >&6
10335else
10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
10338fi
10339
10340 CC=$ac_ct_CC
10341else
10342 CC="$ac_cv_prog_CC"
10343fi
10344
10345if test -z "$CC"; then
10346 if test -n "$ac_tool_prefix"; then
10347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10348set dummy ${ac_tool_prefix}cc; ac_word=$2
10349echo "$as_me:$LINENO: checking for $ac_word" >&5
10350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10351if test "${ac_cv_prog_CC+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353else
10354 if test -n "$CC"; then
10355 ac_cv_prog_CC="$CC" # Let the user override the test.
10356else
10357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in $PATH
10359do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_CC="${ac_tool_prefix}cc"
10365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10367 fi
10368done
10369done
10370
10371fi
10372fi
10373CC=$ac_cv_prog_CC
10374if test -n "$CC"; then
10375 echo "$as_me:$LINENO: result: $CC" >&5
10376echo "${ECHO_T}$CC" >&6
10377else
10378 echo "$as_me:$LINENO: result: no" >&5
10379echo "${ECHO_T}no" >&6
10380fi
10381
10382fi
10383if test -z "$ac_cv_prog_CC"; then
10384 ac_ct_CC=$CC
10385 # Extract the first word of "cc", so it can be a program name with args.
10386set dummy cc; ac_word=$2
10387echo "$as_me:$LINENO: checking for $ac_word" >&5
10388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391else
10392 if test -n "$ac_ct_CC"; then
10393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10394else
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_ac_ct_CC="cc"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406done
10407done
10408
10409fi
10410fi
10411ac_ct_CC=$ac_cv_prog_ac_ct_CC
10412if test -n "$ac_ct_CC"; then
10413 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10414echo "${ECHO_T}$ac_ct_CC" >&6
10415else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418fi
10419
10420 CC=$ac_ct_CC
10421else
10422 CC="$ac_cv_prog_CC"
10423fi
10424
10425fi
10426if test -z "$CC"; then
10427 # Extract the first word of "cc", so it can be a program name with args.
10428set dummy cc; ac_word=$2
10429echo "$as_me:$LINENO: checking for $ac_word" >&5
10430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10431if test "${ac_cv_prog_CC+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433else
10434 if test -n "$CC"; then
10435 ac_cv_prog_CC="$CC" # Let the user override the test.
10436else
10437 ac_prog_rejected=no
10438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439for as_dir in $PATH
10440do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10446 ac_prog_rejected=yes
10447 continue
10448 fi
10449 ac_cv_prog_CC="cc"
10450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 break 2
10452 fi
10453done
10454done
10455
10456if test $ac_prog_rejected = yes; then
10457 # We found a bogon in the path, so make sure we never use it.
10458 set dummy $ac_cv_prog_CC
10459 shift
10460 if test $# != 0; then
10461 # We chose a different compiler from the bogus one.
10462 # However, it has the same basename, so the bogon will be chosen
10463 # first if we set CC to just the basename; use the full file name.
10464 shift
10465 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10466 fi
10467fi
10468fi
10469fi
10470CC=$ac_cv_prog_CC
10471if test -n "$CC"; then
10472 echo "$as_me:$LINENO: result: $CC" >&5
10473echo "${ECHO_T}$CC" >&6
10474else
10475 echo "$as_me:$LINENO: result: no" >&5
10476echo "${ECHO_T}no" >&6
10477fi
10478
10479fi
10480if test -z "$CC"; then
10481 if test -n "$ac_tool_prefix"; then
10482 for ac_prog in cl
10483 do
10484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10486echo "$as_me:$LINENO: checking for $ac_word" >&5
10487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10488if test "${ac_cv_prog_CC+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490else
10491 if test -n "$CC"; then
10492 ac_cv_prog_CC="$CC" # Let the user override the test.
10493else
10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $PATH
10496do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10504 fi
10505done
10506done
10507
10508fi
10509fi
10510CC=$ac_cv_prog_CC
10511if test -n "$CC"; then
10512 echo "$as_me:$LINENO: result: $CC" >&5
10513echo "${ECHO_T}$CC" >&6
10514else
10515 echo "$as_me:$LINENO: result: no" >&5
10516echo "${ECHO_T}no" >&6
10517fi
10518
10519 test -n "$CC" && break
10520 done
10521fi
10522if test -z "$CC"; then
10523 ac_ct_CC=$CC
10524 for ac_prog in cl
10525do
10526 # Extract the first word of "$ac_prog", so it can be a program name with args.
10527set dummy $ac_prog; ac_word=$2
10528echo "$as_me:$LINENO: checking for $ac_word" >&5
10529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533 if test -n "$ac_ct_CC"; then
10534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10535else
10536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10543 ac_cv_prog_ac_ct_CC="$ac_prog"
10544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548done
10549
10550fi
10551fi
10552ac_ct_CC=$ac_cv_prog_ac_ct_CC
10553if test -n "$ac_ct_CC"; then
10554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10555echo "${ECHO_T}$ac_ct_CC" >&6
10556else
10557 echo "$as_me:$LINENO: result: no" >&5
10558echo "${ECHO_T}no" >&6
10559fi
10560
10561 test -n "$ac_ct_CC" && break
10562done
10563
10564 CC=$ac_ct_CC
10565fi
10566
10567fi
10568
10569
10570test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10571See \`config.log' for more details." >&5
10572echo "$as_me: error: no acceptable C compiler found in \$PATH
10573See \`config.log' for more details." >&2;}
10574 { (exit 1); exit 1; }; }
10575
10576# Provide some information about the compiler.
10577echo "$as_me:$LINENO:" \
10578 "checking for C compiler version" >&5
10579ac_compiler=`set X $ac_compile; echo $2`
10580{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10581 (eval $ac_compiler --version </dev/null >&5) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }
10585{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10586 (eval $ac_compiler -v </dev/null >&5) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }
10590{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10591 (eval $ac_compiler -V </dev/null >&5) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }
10595
10596cat >conftest.$ac_ext <<_ACEOF
10597/* confdefs.h. */
10598_ACEOF
10599cat confdefs.h >>conftest.$ac_ext
10600cat >>conftest.$ac_ext <<_ACEOF
10601/* end confdefs.h. */
10602
10603int
10604main ()
10605{
10606
10607 ;
10608 return 0;
10609}
10610_ACEOF
10611ac_clean_files_save=$ac_clean_files
10612ac_clean_files="$ac_clean_files a.out a.exe b.out"
10613# Try to create an executable without -o first, disregard a.out.
10614# It will help us diagnose broken compilers, and finding out an intuition
10615# of exeext.
ac1cb8d3
VS
10616echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10617echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10618ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10619if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10620 (eval $ac_link_default) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; then
10624 # Find the output, starting from the most likely. This scheme is
10625# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10626# resort.
10627
10628# Be careful to initialize this variable, since it used to be cached.
10629# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10630ac_cv_exeext=
10631# b.out is created by i960 compilers.
10632for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10633do
10634 test -f "$ac_file" || continue
10635 case $ac_file in
10636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10637 ;;
a848cd7e 10638 conftest.$ac_ext )
ac1cb8d3
VS
10639 # This is the source file.
10640 ;;
a848cd7e 10641 [ab].out )
ac1cb8d3
VS
10642 # We found the default executable, but exeext='' is most
10643 # certainly right.
10644 break;;
a848cd7e 10645 *.* )
ac1cb8d3
VS
10646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10647 # FIXME: I believe we export ac_cv_exeext for Libtool,
10648 # but it would be cool to find out if it's true. Does anybody
10649 # maintain Libtool? --akim.
10650 export ac_cv_exeext
10651 break;;
a848cd7e 10652 * )
ac1cb8d3 10653 break;;
a848cd7e
SC
10654 esac
10655done
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10661See \`config.log' for more details." >&5
10662echo "$as_me: error: C compiler cannot create executables
10663See \`config.log' for more details." >&2;}
10664 { (exit 77); exit 77; }; }
10665fi
10666
10667ac_exeext=$ac_cv_exeext
10668echo "$as_me:$LINENO: result: $ac_file" >&5
10669echo "${ECHO_T}$ac_file" >&6
10670
10671# Check the compiler produces executables we can run. If not, either
10672# the compiler is broken, or we cross compile.
10673echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10674echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10675# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10676# If not cross compiling, check that we can run a simple program.
10677if test "$cross_compiling" != yes; then
10678 if { ac_try='./$ac_file'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 cross_compiling=no
10685 else
10686 if test "$cross_compiling" = maybe; then
10687 cross_compiling=yes
10688 else
10689 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10690If you meant to cross compile, use \`--host'.
10691See \`config.log' for more details." >&5
10692echo "$as_me: error: cannot run C compiled programs.
10693If you meant to cross compile, use \`--host'.
10694See \`config.log' for more details." >&2;}
10695 { (exit 1); exit 1; }; }
10696 fi
10697 fi
10698fi
10699echo "$as_me:$LINENO: result: yes" >&5
10700echo "${ECHO_T}yes" >&6
10701
10702rm -f a.out a.exe conftest$ac_cv_exeext b.out
10703ac_clean_files=$ac_clean_files_save
10704# Check the compiler produces executables we can run. If not, either
10705# the compiler is broken, or we cross compile.
10706echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10707echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10708echo "$as_me:$LINENO: result: $cross_compiling" >&5
10709echo "${ECHO_T}$cross_compiling" >&6
10710
10711echo "$as_me:$LINENO: checking for suffix of executables" >&5
10712echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10714 (eval $ac_link) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; then
10718 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10719# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10720# work properly (i.e., refer to `conftest.exe'), while it won't with
10721# `rm'.
10722for ac_file in conftest.exe conftest conftest.*; do
10723 test -f "$ac_file" || continue
10724 case $ac_file in
10725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10726 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10727 export ac_cv_exeext
10728 break;;
a848cd7e
SC
10729 * ) break;;
10730 esac
10731done
10732else
10733 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10734See \`config.log' for more details." >&5
10735echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10736See \`config.log' for more details." >&2;}
10737 { (exit 1); exit 1; }; }
10738fi
10739
10740rm -f conftest$ac_cv_exeext
10741echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10742echo "${ECHO_T}$ac_cv_exeext" >&6
10743
10744rm -f conftest.$ac_ext
10745EXEEXT=$ac_cv_exeext
10746ac_exeext=$EXEEXT
10747echo "$as_me:$LINENO: checking for suffix of object files" >&5
10748echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10749if test "${ac_cv_objext+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752 cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h. */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h. */
10758
10759int
10760main ()
10761{
10762
10763 ;
10764 return 0;
10765}
10766_ACEOF
10767rm -f conftest.o conftest.obj
10768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769 (eval $ac_compile) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; then
10773 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10774 case $ac_file in
10775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10777 break;;
10778 esac
10779done
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10785See \`config.log' for more details." >&5
10786echo "$as_me: error: cannot compute suffix of object files: cannot compile
10787See \`config.log' for more details." >&2;}
10788 { (exit 1); exit 1; }; }
10789fi
10790
10791rm -f conftest.$ac_cv_objext conftest.$ac_ext
10792fi
10793echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10794echo "${ECHO_T}$ac_cv_objext" >&6
10795OBJEXT=$ac_cv_objext
10796ac_objext=$OBJEXT
10797echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10798echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10799if test "${ac_cv_c_compiler_gnu+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801else
10802 cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h. */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h. */
10808
10809int
10810main ()
10811{
10812#ifndef __GNUC__
10813 choke me
10814#endif
10815
10816 ;
10817 return 0;
10818}
10819_ACEOF
10820rm -f conftest.$ac_objext
10821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10822 (eval $ac_compile) 2>conftest.er1
a848cd7e 10823 ac_status=$?
ac1cb8d3
VS
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
a848cd7e
SC
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
c228d3a4
RN
10829 { ac_try='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
ac1cb8d3
VS
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_compiler_gnu=yes
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847ac_compiler_gnu=no
10848fi
ac1cb8d3 10849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10850ac_cv_c_compiler_gnu=$ac_compiler_gnu
10851
10852fi
10853echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10854echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10855GCC=`test $ac_compiler_gnu = yes && echo yes`
10856ac_test_CFLAGS=${CFLAGS+set}
10857ac_save_CFLAGS=$CFLAGS
10858CFLAGS="-g"
10859echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10860echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10861if test "${ac_cv_prog_cc_g+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863else
10864 cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h. */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h. */
10870
10871int
10872main ()
10873{
10874
10875 ;
10876 return 0;
10877}
10878_ACEOF
10879rm -f conftest.$ac_objext
10880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10881 (eval $ac_compile) 2>conftest.er1
a848cd7e 10882 ac_status=$?
ac1cb8d3
VS
10883 grep -v '^ *+' conftest.er1 >conftest.err
10884 rm -f conftest.er1
10885 cat conftest.err >&5
a848cd7e
SC
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
c228d3a4
RN
10888 { ac_try='test -z "$ac_c_werror_flag"
10889 || test ! -s conftest.err'
ac1cb8d3
VS
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; } &&
10895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; }; then
10901 ac_cv_prog_cc_g=yes
10902else
10903 echo "$as_me: failed program was:" >&5
10904sed 's/^/| /' conftest.$ac_ext >&5
10905
10906ac_cv_prog_cc_g=no
10907fi
ac1cb8d3 10908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10909fi
10910echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10911echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10912if test "$ac_test_CFLAGS" = set; then
10913 CFLAGS=$ac_save_CFLAGS
10914elif test $ac_cv_prog_cc_g = yes; then
10915 if test "$GCC" = yes; then
10916 CFLAGS="-g -O2"
10917 else
10918 CFLAGS="-g"
10919 fi
10920else
10921 if test "$GCC" = yes; then
10922 CFLAGS="-O2"
10923 else
10924 CFLAGS=
10925 fi
10926fi
10927echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10928echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10929if test "${ac_cv_prog_cc_stdc+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
10932 ac_cv_prog_cc_stdc=no
10933ac_save_CC=$CC
10934cat >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#include <stdarg.h>
10941#include <stdio.h>
10942#include <sys/types.h>
10943#include <sys/stat.h>
10944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10945struct buf { int x; };
10946FILE * (*rcsopen) (struct buf *, struct stat *, int);
10947static char *e (p, i)
10948 char **p;
10949 int i;
10950{
10951 return p[i];
10952}
10953static char *f (char * (*g) (char **, int), char **p, ...)
10954{
10955 char *s;
10956 va_list v;
10957 va_start (v,p);
10958 s = g (p, va_arg (v,int));
10959 va_end (v);
10960 return s;
10961}
ac1cb8d3
VS
10962
10963/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10964 function prototypes and stuff, but not '\xHH' hex character constants.
10965 These don't provoke an error unfortunately, instead are silently treated
10966 as 'x'. The following induces an error, until -std1 is added to get
10967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10968 array size at least. It's necessary to write '\x00'==0 to get something
10969 that's true only with -std1. */
10970int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10971
a848cd7e
SC
10972int test (int i, double x);
10973struct s1 {int (*f) (int a);};
10974struct s2 {int (*f) (double a);};
10975int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10976int argc;
10977char **argv;
10978int
10979main ()
10980{
10981return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10982 ;
10983 return 0;
10984}
10985_ACEOF
10986# Don't try gcc -ansi; that turns off useful extensions and
10987# breaks some systems' header files.
10988# AIX -qlanglvl=ansi
10989# Ultrix and OSF/1 -std1
10990# HP-UX 10.20 and later -Ae
10991# HP-UX older versions -Aa -D_HPUX_SOURCE
10992# SVR4 -Xc -D__EXTENSIONS__
10993for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10994do
10995 CC="$ac_save_CC $ac_arg"
10996 rm -f conftest.$ac_objext
10997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10998 (eval $ac_compile) 2>conftest.er1
a848cd7e 10999 ac_status=$?
ac1cb8d3
VS
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
a848cd7e
SC
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
c228d3a4
RN
11005 { ac_try='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
ac1cb8d3
VS
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_cv_prog_cc_stdc=$ac_arg
11019break
11020else
11021 echo "$as_me: failed program was:" >&5
11022sed 's/^/| /' conftest.$ac_ext >&5
11023
11024fi
ac1cb8d3 11025rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11026done
11027rm -f conftest.$ac_ext conftest.$ac_objext
11028CC=$ac_save_CC
11029
11030fi
11031
11032case "x$ac_cv_prog_cc_stdc" in
11033 x|xno)
11034 echo "$as_me:$LINENO: result: none needed" >&5
11035echo "${ECHO_T}none needed" >&6 ;;
11036 *)
11037 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11038echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11039 CC="$CC $ac_cv_prog_cc_stdc" ;;
11040esac
11041
11042# Some people use a C++ compiler to compile C. Since we use `exit',
11043# in C++ we need to declare it. In case someone uses the same compiler
11044# for both compiling C and C++ we need to have the C++ compiler decide
11045# the declaration of exit, since it's the most demanding environment.
11046cat >conftest.$ac_ext <<_ACEOF
11047#ifndef __cplusplus
11048 choke me
11049#endif
11050_ACEOF
11051rm -f conftest.$ac_objext
11052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11053 (eval $ac_compile) 2>conftest.er1
a848cd7e 11054 ac_status=$?
ac1cb8d3
VS
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
a848cd7e
SC
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
c228d3a4
RN
11060 { ac_try='test -z "$ac_c_werror_flag"
11061 || test ! -s conftest.err'
ac1cb8d3
VS
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; } &&
11067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 for ac_declaration in \
ac1cb8d3 11074 '' \
a848cd7e
SC
11075 'extern "C" void std::exit (int) throw (); using std::exit;' \
11076 'extern "C" void std::exit (int); using std::exit;' \
11077 'extern "C" void exit (int) throw ();' \
11078 'extern "C" void exit (int);' \
11079 'void exit (int);'
11080do
11081 cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
de59c161 11087$ac_declaration
ac1cb8d3 11088#include <stdlib.h>
a848cd7e
SC
11089int
11090main ()
11091{
11092exit (42);
11093 ;
11094 return 0;
11095}
11096_ACEOF
11097rm -f conftest.$ac_objext
11098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11099 (eval $ac_compile) 2>conftest.er1
a848cd7e 11100 ac_status=$?
ac1cb8d3
VS
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
a848cd7e
SC
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } &&
c228d3a4
RN
11106 { ac_try='test -z "$ac_c_werror_flag"
11107 || test ! -s conftest.err'
ac1cb8d3
VS
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 :
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
11124continue
11125fi
ac1cb8d3 11126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11127 cat >conftest.$ac_ext <<_ACEOF
11128/* confdefs.h. */
11129_ACEOF
11130cat confdefs.h >>conftest.$ac_ext
11131cat >>conftest.$ac_ext <<_ACEOF
11132/* end confdefs.h. */
11133$ac_declaration
11134int
11135main ()
11136{
11137exit (42);
11138 ;
11139 return 0;
11140}
11141_ACEOF
11142rm -f conftest.$ac_objext
11143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11144 (eval $ac_compile) 2>conftest.er1
a848cd7e 11145 ac_status=$?
ac1cb8d3
VS
11146 grep -v '^ *+' conftest.er1 >conftest.err
11147 rm -f conftest.er1
11148 cat conftest.err >&5
a848cd7e
SC
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
c228d3a4
RN
11151 { ac_try='test -z "$ac_c_werror_flag"
11152 || test ! -s conftest.err'
ac1cb8d3
VS
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11164 break
11165else
11166 echo "$as_me: failed program was:" >&5
11167sed 's/^/| /' conftest.$ac_ext >&5
11168
11169fi
ac1cb8d3 11170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11171done
11172rm -f conftest*
11173if test -n "$ac_declaration"; then
11174 echo '#ifdef __cplusplus' >>confdefs.h
11175 echo $ac_declaration >>confdefs.h
11176 echo '#endif' >>confdefs.h
11177fi
11178
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183fi
ac1cb8d3 11184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11185ac_ext=c
11186ac_cpp='$CPP $CPPFLAGS'
11187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11189ac_compiler_gnu=$ac_cv_c_compiler_gnu
11190
11191
11192
11193ac_ext=c
11194ac_cpp='$CPP $CPPFLAGS'
11195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11197ac_compiler_gnu=$ac_cv_c_compiler_gnu
11198echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11199echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11200# On Suns, sometimes $CPP names a directory.
11201if test -n "$CPP" && test -d "$CPP"; then
11202 CPP=
11203fi
11204if test -z "$CPP"; then
11205 if test "${ac_cv_prog_CPP+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 # Double quotes because CPP needs to be expanded
11209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11210 do
11211 ac_preproc_ok=false
11212for ac_c_preproc_warn_flag in '' yes
11213do
11214 # Use a header file that comes with gcc, so configuring glibc
11215 # with a fresh cross-compiler works.
11216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11217 # <limits.h> exists even on freestanding compilers.
11218 # On the NeXT, cc -E runs the code through the compiler's parser,
11219 # not just through cpp. "Syntax error" is here to catch this case.
11220 cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226#ifdef __STDC__
11227# include <limits.h>
11228#else
11229# include <assert.h>
11230#endif
ac1cb8d3 11231 Syntax error
a848cd7e
SC
11232_ACEOF
11233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null; then
11241 if test -s conftest.err; then
11242 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11244 else
11245 ac_cpp_err=
11246 fi
11247else
11248 ac_cpp_err=yes
11249fi
11250if test -z "$ac_cpp_err"; then
11251 :
11252else
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 # Broken: fails on valid input.
11257continue
11258fi
11259rm -f conftest.err conftest.$ac_ext
11260
11261 # OK, works on sane cases. Now check whether non-existent headers
11262 # can be detected and how.
11263 cat >conftest.$ac_ext <<_ACEOF
11264/* confdefs.h. */
11265_ACEOF
11266cat confdefs.h >>conftest.$ac_ext
11267cat >>conftest.$ac_ext <<_ACEOF
11268/* end confdefs.h. */
11269#include <ac_nonexistent.h>
11270_ACEOF
11271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } >/dev/null; then
11279 if test -s conftest.err; then
11280 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11282 else
11283 ac_cpp_err=
11284 fi
11285else
11286 ac_cpp_err=yes
11287fi
11288if test -z "$ac_cpp_err"; then
11289 # Broken: success on invalid input.
11290continue
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 # Passes both tests.
11296ac_preproc_ok=:
11297break
11298fi
11299rm -f conftest.err conftest.$ac_ext
11300
11301done
11302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11303rm -f conftest.err conftest.$ac_ext
11304if $ac_preproc_ok; then
11305 break
11306fi
11307
11308 done
11309 ac_cv_prog_CPP=$CPP
11310
11311fi
11312 CPP=$ac_cv_prog_CPP
11313else
11314 ac_cv_prog_CPP=$CPP
11315fi
11316echo "$as_me:$LINENO: result: $CPP" >&5
11317echo "${ECHO_T}$CPP" >&6
11318ac_preproc_ok=false
11319for ac_c_preproc_warn_flag in '' yes
11320do
11321 # Use a header file that comes with gcc, so configuring glibc
11322 # with a fresh cross-compiler works.
11323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11324 # <limits.h> exists even on freestanding compilers.
11325 # On the NeXT, cc -E runs the code through the compiler's parser,
11326 # not just through cpp. "Syntax error" is here to catch this case.
11327 cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333#ifdef __STDC__
11334# include <limits.h>
11335#else
11336# include <assert.h>
11337#endif
ac1cb8d3 11338 Syntax error
a848cd7e
SC
11339_ACEOF
11340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev/null; then
11348 if test -s conftest.err; then
11349 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11351 else
11352 ac_cpp_err=
11353 fi
11354else
11355 ac_cpp_err=yes
11356fi
11357if test -z "$ac_cpp_err"; then
11358 :
11359else
11360 echo "$as_me: failed program was:" >&5
11361sed 's/^/| /' conftest.$ac_ext >&5
11362
11363 # Broken: fails on valid input.
11364continue
11365fi
11366rm -f conftest.err conftest.$ac_ext
11367
11368 # OK, works on sane cases. Now check whether non-existent headers
11369 # can be detected and how.
11370 cat >conftest.$ac_ext <<_ACEOF
11371/* confdefs.h. */
11372_ACEOF
11373cat confdefs.h >>conftest.$ac_ext
11374cat >>conftest.$ac_ext <<_ACEOF
11375/* end confdefs.h. */
11376#include <ac_nonexistent.h>
11377_ACEOF
11378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } >/dev/null; then
11386 if test -s conftest.err; then
11387 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11389 else
11390 ac_cpp_err=
11391 fi
11392else
11393 ac_cpp_err=yes
11394fi
11395if test -z "$ac_cpp_err"; then
11396 # Broken: success on invalid input.
11397continue
11398else
11399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 # Passes both tests.
11403ac_preproc_ok=:
11404break
11405fi
11406rm -f conftest.err conftest.$ac_ext
11407
11408done
11409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11410rm -f conftest.err conftest.$ac_ext
11411if $ac_preproc_ok; then
11412 :
11413else
11414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11415See \`config.log' for more details." >&5
11416echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11417See \`config.log' for more details." >&2;}
11418 { (exit 1); exit 1; }; }
11419fi
11420
11421ac_ext=c
11422ac_cpp='$CPP $CPPFLAGS'
11423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425ac_compiler_gnu=$ac_cv_c_compiler_gnu
11426
11427
11428echo "$as_me:$LINENO: checking for egrep" >&5
11429echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11430if test "${ac_cv_prog_egrep+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432else
11433 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11434 then ac_cv_prog_egrep='grep -E'
11435 else ac_cv_prog_egrep='egrep'
11436 fi
11437fi
11438echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11439echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11440 EGREP=$ac_cv_prog_egrep
11441
11442
11443if test $ac_cv_c_compiler_gnu = yes; then
11444 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11445echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11446if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448else
11449 ac_pattern="Autoconf.*'x'"
11450 cat >conftest.$ac_ext <<_ACEOF
11451/* confdefs.h. */
11452_ACEOF
11453cat confdefs.h >>conftest.$ac_ext
11454cat >>conftest.$ac_ext <<_ACEOF
11455/* end confdefs.h. */
11456#include <sgtty.h>
11457Autoconf TIOCGETP
11458_ACEOF
11459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11461 ac_cv_prog_gcc_traditional=yes
11462else
11463 ac_cv_prog_gcc_traditional=no
11464fi
11465rm -f conftest*
11466
11467
11468 if test $ac_cv_prog_gcc_traditional = no; then
11469 cat >conftest.$ac_ext <<_ACEOF
11470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
11475#include <termio.h>
11476Autoconf TCGETA
11477_ACEOF
11478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11479 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11480 ac_cv_prog_gcc_traditional=yes
11481fi
11482rm -f conftest*
11483
11484 fi
11485fi
11486echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11487echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11488 if test $ac_cv_prog_gcc_traditional = yes; then
11489 CC="$CC -traditional"
11490 fi
11491fi
11492
11493
11494
11495
11496ac_ext=cc
11497ac_cpp='$CXXCPP $CPPFLAGS'
11498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11501
11502
11503CXXFLAGS=${CXXFLAGS:=}
11504ac_ext=cc
11505ac_cpp='$CXXCPP $CPPFLAGS'
11506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11509if test -n "$ac_tool_prefix"; then
11510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11511 do
11512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11513set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11514echo "$as_me:$LINENO: checking for $ac_word" >&5
11515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11516if test "${ac_cv_prog_CXX+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518else
11519 if test -n "$CXX"; then
11520 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11521else
11522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11529 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11532 fi
11533done
11534done
11535
11536fi
11537fi
11538CXX=$ac_cv_prog_CXX
11539if test -n "$CXX"; then
11540 echo "$as_me:$LINENO: result: $CXX" >&5
11541echo "${ECHO_T}$CXX" >&6
11542else
11543 echo "$as_me:$LINENO: result: no" >&5
11544echo "${ECHO_T}no" >&6
11545fi
11546
11547 test -n "$CXX" && break
11548 done
11549fi
11550if test -z "$CXX"; then
11551 ac_ct_CXX=$CXX
11552 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11553do
11554 # Extract the first word of "$ac_prog", so it can be a program name with args.
11555set dummy $ac_prog; ac_word=$2
11556echo "$as_me:$LINENO: checking for $ac_word" >&5
11557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11558if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560else
11561 if test -n "$ac_ct_CXX"; then
11562 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11563else
11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
11566do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_prog_ac_ct_CXX="$ac_prog"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575done
11576done
11577
11578fi
11579fi
11580ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11581if test -n "$ac_ct_CXX"; then
11582 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11583echo "${ECHO_T}$ac_ct_CXX" >&6
11584else
11585 echo "$as_me:$LINENO: result: no" >&5
11586echo "${ECHO_T}no" >&6
11587fi
11588
11589 test -n "$ac_ct_CXX" && break
11590done
11591test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11592
11593 CXX=$ac_ct_CXX
11594fi
11595
11596
11597# Provide some information about the compiler.
11598echo "$as_me:$LINENO:" \
11599 "checking for C++ compiler version" >&5
11600ac_compiler=`set X $ac_compile; echo $2`
11601{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11602 (eval $ac_compiler --version </dev/null >&5) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }
11606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11607 (eval $ac_compiler -v </dev/null >&5) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }
11611{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11612 (eval $ac_compiler -V </dev/null >&5) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }
11616
11617echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11618echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11619if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
11622 cat >conftest.$ac_ext <<_ACEOF
11623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
11628
11629int
11630main ()
11631{
11632#ifndef __GNUC__
11633 choke me
11634#endif
11635
11636 ;
11637 return 0;
11638}
11639_ACEOF
11640rm -f conftest.$ac_objext
11641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11642 (eval $ac_compile) 2>conftest.er1
a848cd7e 11643 ac_status=$?
ac1cb8d3
VS
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
a848cd7e
SC
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
c228d3a4
RN
11649 { ac_try='test -z "$ac_cxx_werror_flag"
11650 || test ! -s conftest.err'
ac1cb8d3
VS
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_compiler_gnu=yes
11663else
11664 echo "$as_me: failed program was:" >&5
11665sed 's/^/| /' conftest.$ac_ext >&5
11666
11667ac_compiler_gnu=no
11668fi
ac1cb8d3 11669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11670ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11671
11672fi
11673echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11674echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11675GXX=`test $ac_compiler_gnu = yes && echo yes`
11676ac_test_CXXFLAGS=${CXXFLAGS+set}
11677ac_save_CXXFLAGS=$CXXFLAGS
11678CXXFLAGS="-g"
11679echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11680echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11681if test "${ac_cv_prog_cxx_g+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690
11691int
11692main ()
11693{
11694
11695 ;
11696 return 0;
11697}
11698_ACEOF
11699rm -f conftest.$ac_objext
11700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11701 (eval $ac_compile) 2>conftest.er1
a848cd7e 11702 ac_status=$?
ac1cb8d3
VS
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
a848cd7e
SC
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
c228d3a4
RN
11708 { ac_try='test -z "$ac_cxx_werror_flag"
11709 || test ! -s conftest.err'
ac1cb8d3
VS
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 ac_cv_prog_cxx_g=yes
11722else
11723 echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726ac_cv_prog_cxx_g=no
11727fi
ac1cb8d3 11728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11729fi
11730echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11731echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11732if test "$ac_test_CXXFLAGS" = set; then
11733 CXXFLAGS=$ac_save_CXXFLAGS
11734elif test $ac_cv_prog_cxx_g = yes; then
11735 if test "$GXX" = yes; then
11736 CXXFLAGS="-g -O2"
11737 else
11738 CXXFLAGS="-g"
11739 fi
11740else
11741 if test "$GXX" = yes; then
11742 CXXFLAGS="-O2"
11743 else
11744 CXXFLAGS=
11745 fi
11746fi
11747for ac_declaration in \
ac1cb8d3 11748 '' \
a848cd7e
SC
11749 'extern "C" void std::exit (int) throw (); using std::exit;' \
11750 'extern "C" void std::exit (int); using std::exit;' \
11751 'extern "C" void exit (int) throw ();' \
11752 'extern "C" void exit (int);' \
11753 'void exit (int);'
11754do
11755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
de59c161 11761$ac_declaration
ac1cb8d3 11762#include <stdlib.h>
a848cd7e
SC
11763int
11764main ()
11765{
11766exit (42);
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext
11772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11773 (eval $ac_compile) 2>conftest.er1
a848cd7e 11774 ac_status=$?
ac1cb8d3
VS
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
a848cd7e
SC
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
c228d3a4
RN
11780 { ac_try='test -z "$ac_cxx_werror_flag"
11781 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 :
11794else
11795 echo "$as_me: failed program was:" >&5
11796sed 's/^/| /' conftest.$ac_ext >&5
11797
11798continue
11799fi
ac1cb8d3 11800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807$ac_declaration
11808int
11809main ()
11810{
11811exit (42);
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext
11817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11818 (eval $ac_compile) 2>conftest.er1
a848cd7e 11819 ac_status=$?
ac1cb8d3
VS
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
a848cd7e
SC
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
c228d3a4
RN
11825 { ac_try='test -z "$ac_cxx_werror_flag"
11826 || test ! -s conftest.err'
ac1cb8d3
VS
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 break
11839else
11840 echo "$as_me: failed program was:" >&5
11841sed 's/^/| /' conftest.$ac_ext >&5
11842
11843fi
ac1cb8d3 11844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11845done
11846rm -f conftest*
11847if test -n "$ac_declaration"; then
11848 echo '#ifdef __cplusplus' >>confdefs.h
11849 echo $ac_declaration >>confdefs.h
11850 echo '#endif' >>confdefs.h
11851fi
11852
11853ac_ext=cc
11854ac_cpp='$CXXCPP $CPPFLAGS'
11855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11858
11859
11860ac_ext=c
11861ac_cpp='$CPP $CPPFLAGS'
11862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11864ac_compiler_gnu=$ac_cv_c_compiler_gnu
11865
11866
a848cd7e
SC
11867if test -n "$ac_tool_prefix"; then
11868 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11869set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11870echo "$as_me:$LINENO: checking for $ac_word" >&5
11871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11872if test "${ac_cv_prog_RANLIB+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874else
11875 if test -n "$RANLIB"; then
11876 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11877else
11878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879for as_dir in $PATH
11880do
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 break 2
11888 fi
11889done
11890done
11891
11892fi
11893fi
11894RANLIB=$ac_cv_prog_RANLIB
11895if test -n "$RANLIB"; then
11896 echo "$as_me:$LINENO: result: $RANLIB" >&5
11897echo "${ECHO_T}$RANLIB" >&6
11898else
11899 echo "$as_me:$LINENO: result: no" >&5
11900echo "${ECHO_T}no" >&6
11901fi
11902
11903fi
11904if test -z "$ac_cv_prog_RANLIB"; then
11905 ac_ct_RANLIB=$RANLIB
11906 # Extract the first word of "ranlib", so it can be a program name with args.
11907set dummy ranlib; ac_word=$2
11908echo "$as_me:$LINENO: checking for $ac_word" >&5
11909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11910if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else
11913 if test -n "$ac_ct_RANLIB"; then
11914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11915else
11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11923 ac_cv_prog_ac_ct_RANLIB="ranlib"
11924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11926 fi
11927done
11928done
11929
11930 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11931fi
11932fi
11933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11934if test -n "$ac_ct_RANLIB"; then
11935 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11936echo "${ECHO_T}$ac_ct_RANLIB" >&6
11937else
11938 echo "$as_me:$LINENO: result: no" >&5
11939echo "${ECHO_T}no" >&6
11940fi
11941
11942 RANLIB=$ac_ct_RANLIB
11943else
11944 RANLIB="$ac_cv_prog_RANLIB"
11945fi
11946
11947
11948# Extract the first word of "ar", so it can be a program name with args.
11949set dummy ar; ac_word=$2
11950echo "$as_me:$LINENO: checking for $ac_word" >&5
11951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11952if test "${ac_cv_prog_AR+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 if test -n "$AR"; then
11956 ac_cv_prog_AR="$AR" # Let the user override the test.
11957else
11958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959for as_dir in $PATH
11960do
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_prog_AR="ar"
11966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11968 fi
11969done
11970done
11971
11972fi
11973fi
11974AR=$ac_cv_prog_AR
11975if test -n "$AR"; then
11976 echo "$as_me:$LINENO: result: $AR" >&5
11977echo "${ECHO_T}$AR" >&6
11978else
11979 echo "$as_me:$LINENO: result: no" >&5
11980echo "${ECHO_T}no" >&6
11981fi
11982
11983if test "x$AR" = "x" ; then
77ffb593
JS
11984 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11985echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11986 { (exit 1); exit 1; }; }
11987fi
11988
11989# Find a good install program. We prefer a C program (faster),
11990# so one script is as good as another. But avoid the broken or
11991# incompatible versions:
11992# SysV /etc/install, /usr/sbin/install
11993# SunOS /usr/etc/install
11994# IRIX /sbin/install
11995# AIX /bin/install
11996# AmigaOS /C/install, which installs bootblocks on floppy discs
11997# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11998# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11999# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12000# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12001# ./install, which can be erroneously created by make from ./install.sh.
12002echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12003echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12004if test -z "$INSTALL"; then
12005if test "${ac_cv_path_install+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009for as_dir in $PATH
12010do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 # Account for people who put trailing slashes in PATH elements.
12014case $as_dir/ in
12015 ./ | .// | /cC/* | \
12016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12018 /usr/ucb/* ) ;;
12019 *)
12020 # OSF1 and SCO ODT 3.0 have their own names for install.
12021 # Don't use installbsd from OSF since it installs stuff as root
12022 # by default.
12023 for ac_prog in ginstall scoinst install; do
12024 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12025 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12026 if test $ac_prog = install &&
12027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12028 # AIX install. It has an incompatible calling convention.
12029 :
12030 elif test $ac_prog = install &&
12031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12032 # program-specific install script used by HP pwplus--don't use.
12033 :
12034 else
12035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12036 break 3
12037 fi
12038 fi
a848cd7e
SC
12039 done
12040 done
12041 ;;
12042esac
12043done
12044
12045
12046fi
12047 if test "${ac_cv_path_install+set}" = set; then
12048 INSTALL=$ac_cv_path_install
12049 else
12050 # As a last resort, use the slow shell script. We don't cache a
12051 # path for INSTALL within a source directory, because that will
12052 # break other packages using the cache if that directory is
12053 # removed, or if the path is relative.
12054 INSTALL=$ac_install_sh
12055 fi
12056fi
12057echo "$as_me:$LINENO: result: $INSTALL" >&5
12058echo "${ECHO_T}$INSTALL" >&6
12059
12060# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12061# It thinks the first close brace ends the variable substitution.
12062test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12063
12064test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12065
12066test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12067
12068
12069case ${INSTALL} in
12070 /* ) # Absolute
12071 ;;
12072 ?:* ) # Drive letter, considered as absolute.
12073 ;;
12074 *)
12075 INSTALL=`pwd`/${INSTALL} ;;
12076esac
12077
a848cd7e
SC
12078
12079case "${host}" in
12080
12081 powerpc-*-darwin* )
12082 INSTALL_PROGRAM="cp -fp"
12083 INSTALL_DATA="cp -fp"
12084 ;;
12085 *)
12086 ;;
12087esac
12088
12089# Extract the first word of "strip", so it can be a program name with args.
12090set dummy strip; ac_word=$2
12091echo "$as_me:$LINENO: checking for $ac_word" >&5
12092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12093if test "${ac_cv_prog_STRIP+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095else
12096 if test -n "$STRIP"; then
12097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12098else
12099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100for as_dir in $PATH
12101do
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_STRIP="strip"
12107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 break 2
12109 fi
12110done
12111done
12112
12113 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12114fi
12115fi
12116STRIP=$ac_cv_prog_STRIP
12117if test -n "$STRIP"; then
12118 echo "$as_me:$LINENO: result: $STRIP" >&5
12119echo "${ECHO_T}$STRIP" >&6
12120else
12121 echo "$as_me:$LINENO: result: no" >&5
12122echo "${ECHO_T}no" >&6
12123fi
12124
12125
12126echo "$as_me:$LINENO: checking if make is GNU make" >&5
12127echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12128if test "${wx_cv_prog_makeisgnu+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12130else
12131
12132 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12133 egrep -s GNU > /dev/null); then
12134 wx_cv_prog_makeisgnu="yes"
12135 else
12136 wx_cv_prog_makeisgnu="no"
12137 fi
12138
12139fi
12140echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12141echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12142
12143if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12144 IF_GNU_MAKE=""
12145else
12146 IF_GNU_MAKE="#"
12147fi
12148
12149
12150
12151if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12152echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12153echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12154if test "${wx_cv_prog_makevpath+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12156else
12157
12158cat - << EOF > confMake
12159check : file
12160 cp \$? \$@
12161 cp \$? final_file
12162EOF
12163
12164if test ! -d sub ; then
12165 mkdir sub
12166fi
12167echo dummy > sub/file
12168${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12169RESULT=$?
12170rm -f sub/file check final_file confMake
12171rmdir sub
12172if test "$RESULT" = 0; then
12173 wx_cv_prog_makevpath="yes"
12174else
12175 wx_cv_prog_makevpath="no"
12176fi
12177
12178fi
12179echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12180echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12181
12182if test "x$wx_cv_prog_makevpath" != "xyes"; then
12183{ { echo "$as_me:$LINENO: error:
12184You need a make-utility that is able to use the variable
12185VPATH correctly.
12186If your version of make does not support VPATH correctly,
12187please install GNU-make (possibly as gmake), and start
12188configure with the following command:
12189export MAKE=gmake; ./configure for sh-type shells
12190setenv MAKE gmake; ./configure for csh-type shells
12191Also please do remember to use gmake in this case every time
12192you are trying to compile.
12193" >&5
12194echo "$as_me: error:
12195You need a make-utility that is able to use the variable
12196VPATH correctly.
12197If your version of make does not support VPATH correctly,
12198please install GNU-make (possibly as gmake), and start
12199configure with the following command:
12200export MAKE=gmake; ./configure for sh-type shells
12201setenv MAKE gmake; ./configure for csh-type shells
12202Also please do remember to use gmake in this case every time
12203you are trying to compile.
12204" >&2;}
12205 { (exit 1); exit 1; }; }
12206fi fi
12207echo "$as_me:$LINENO: checking whether ln -s works" >&5
12208echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12209LN_S=$as_ln_s
12210if test "$LN_S" = "ln -s"; then
12211 echo "$as_me:$LINENO: result: yes" >&5
12212echo "${ECHO_T}yes" >&6
12213else
12214 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12215echo "${ECHO_T}no, using $LN_S" >&6
12216fi
12217
12218
12219
12220case "${host}" in
12221 *-pc-os2_emx | *-pc-os2-emx )
12222 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12223 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12224echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12225if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227else
12228 ac_check_lib_save_LIBS=$LIBS
12229LIBS="-lcExt $LIBS"
12230cat >conftest.$ac_ext <<_ACEOF
12231/* confdefs.h. */
12232_ACEOF
12233cat confdefs.h >>conftest.$ac_ext
12234cat >>conftest.$ac_ext <<_ACEOF
12235/* end confdefs.h. */
12236
12237/* Override any gcc2 internal prototype to avoid an error. */
12238#ifdef __cplusplus
12239extern "C"
12240#endif
12241/* We use char because int might match the return type of a gcc2
12242 builtin and then its argument prototype would still apply. */
12243char drand48 ();
12244int
12245main ()
12246{
12247drand48 ();
12248 ;
12249 return 0;
12250}
12251_ACEOF
12252rm -f conftest.$ac_objext conftest$ac_exeext
12253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12254 (eval $ac_link) 2>conftest.er1
a848cd7e 12255 ac_status=$?
ac1cb8d3
VS
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
a848cd7e
SC
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
c228d3a4
RN
12261 { ac_try='test -z "$ac_c_werror_flag"
12262 || test ! -s conftest.err'
ac1cb8d3
VS
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 ac_cv_lib_cExt_drand48=yes
12275else
12276 echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
12279ac_cv_lib_cExt_drand48=no
12280fi
ac1cb8d3
VS
12281rm -f conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12283LIBS=$ac_check_lib_save_LIBS
12284fi
12285echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12286echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12287if test $ac_cv_lib_cExt_drand48 = yes; then
12288 LIBS="$LIBS -lcExt"
12289fi
12290
12291 else
12292 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12293 fi
12294 echo "$as_me:$LINENO: checking for gcc version" >&5
12295echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12296if test "${wx_cv_gccversion+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306
12307int
12308main ()
12309{
12310
12311 #if (__GNUC__ < 3)
12312 #error old gcc
12313 #endif
12314
12315 ;
12316 return 0;
12317}
12318_ACEOF
12319rm -f conftest.$ac_objext
12320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12321 (eval $ac_compile) 2>conftest.er1
a848cd7e 12322 ac_status=$?
ac1cb8d3
VS
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
a848cd7e
SC
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
c228d3a4
RN
12328 { ac_try='test -z "$ac_c_werror_flag"
12329 || test ! -s conftest.err'
ac1cb8d3
VS
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341
12342 cat >conftest.$ac_ext <<_ACEOF
12343/* confdefs.h. */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h. */
12348
12349int
12350main ()
12351{
12352
12353 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12354 #error intermediate gcc
12355 #endif
12356
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext
12362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12363 (eval $ac_compile) 2>conftest.er1
a848cd7e 12364 ac_status=$?
ac1cb8d3
VS
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
a848cd7e
SC
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
c228d3a4
RN
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
ac1cb8d3
VS
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383
12384 wx_cv_gccversion=Innotek
12385
12386else
12387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390
12391 wx_cv_gccversion=3
12392
12393
12394fi
ac1cb8d3 12395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12396
12397else
12398 echo "$as_me: failed program was:" >&5
12399sed 's/^/| /' conftest.$ac_ext >&5
12400
12401
12402 wx_cv_gccversion=2
12403
12404
12405fi
ac1cb8d3 12406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12407
12408fi
12409echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12410echo "${ECHO_T}$wx_cv_gccversion" >&6
12411 if test "$wx_cv_gccversion" = "2"; then
12412 LIBS="$LIBS -lstdcpp"
12413 LDFLAGS="$LDFLAGS -Zsysv-signals"
12414 else
12415 if test "$wx_cv_gccversion" = "3"; then
12416 LIBS="$LIBS -lstdcxx"
12417 LDFLAGS="$LDFLAGS -Zsysv-signals"
12418 else
12419 LIBS="$LIBS -lstdc++"
12420 fi
12421 fi
12422 if test "$wxUSE_OMF" = "yes"; then
de59c161 12423 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12424 fi
12425 ;;
12426 *)
12427
12428
12429
12430 ac_ext=cc
12431ac_cpp='$CXXCPP $CPPFLAGS'
12432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12435
12436
12437
12438echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12439echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12440if test "${ac_cv_string_strcasecmp+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443
12444 cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
12450
12451 #include <string.h>
12452
12453int
12454main ()
12455{
12456
12457 strcasecmp("foo", "bar");
12458
12459 ;
12460 return 0;
12461}
12462_ACEOF
12463rm -f conftest.$ac_objext conftest$ac_exeext
12464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12465 (eval $ac_link) 2>conftest.er1
a848cd7e 12466 ac_status=$?
ac1cb8d3
VS
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
a848cd7e
SC
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
c228d3a4
RN
12472 { ac_try='test -z "$ac_cxx_werror_flag"
12473 || test ! -s conftest.err'
ac1cb8d3
VS
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 ac_cv_string_strcasecmp=yes
12486else
12487 echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
12489
12490ac_cv_string_strcasecmp=no
12491
12492fi
ac1cb8d3
VS
12493rm -f conftest.err conftest.$ac_objext \
12494 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12495
12496fi
12497echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12498echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12499
12500 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12501 cat >>confdefs.h <<\_ACEOF
12502#define HAVE_STRCASECMP_IN_STRING_H 1
12503_ACEOF
12504
12505 else
12506 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12507echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12508if test "${ac_cv_strings_strcasecmp+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510else
12511
12512 cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518
12519 #include <strings.h>
12520
12521int
12522main ()
12523{
12524
12525 strcasecmp("foo", "bar");
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext conftest$ac_exeext
12532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12533 (eval $ac_link) 2>conftest.er1
a848cd7e 12534 ac_status=$?
ac1cb8d3
VS
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
a848cd7e
SC
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
c228d3a4
RN
12540 { ac_try='test -z "$ac_cxx_werror_flag"
12541 || test ! -s conftest.err'
ac1cb8d3
VS
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_cv_strings_strcasecmp=yes
12554else
12555 echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558ac_cv_strings_strcasecmp=no
12559
12560fi
ac1cb8d3
VS
12561rm -f conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12563
12564fi
12565echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12566echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12567
0c3c69fc 12568 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12569 cat >>confdefs.h <<\_ACEOF
12570#define HAVE_STRCASECMP_IN_STRINGS_H 1
12571_ACEOF
12572
12573 else
12574 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12575echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12576 { (exit 1); exit 1; }; }
12577 fi
12578 fi
12579
12580 ac_ext=c
12581ac_cpp='$CPP $CPPFLAGS'
12582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584ac_compiler_gnu=$ac_cv_c_compiler_gnu
12585
12586 ;;
12587esac
12588
12589
12590echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12591echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12592if test "${ac_cv_header_stdc+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594else
12595 cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601#include <stdlib.h>
12602#include <stdarg.h>
12603#include <string.h>
12604#include <float.h>
12605
12606int
12607main ()
12608{
12609
12610 ;
12611 return 0;
12612}
12613_ACEOF
12614rm -f conftest.$ac_objext
12615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12616 (eval $ac_compile) 2>conftest.er1
a848cd7e 12617 ac_status=$?
ac1cb8d3
VS
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
a848cd7e
SC
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
c228d3a4
RN
12623 { ac_try='test -z "$ac_c_werror_flag"
12624 || test ! -s conftest.err'
ac1cb8d3
VS
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_cv_header_stdc=yes
12637else
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641ac_cv_header_stdc=no
12642fi
ac1cb8d3 12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12644
12645if test $ac_cv_header_stdc = yes; then
12646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12647 cat >conftest.$ac_ext <<_ACEOF
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */
12653#include <string.h>
12654
12655_ACEOF
12656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12657 $EGREP "memchr" >/dev/null 2>&1; then
12658 :
12659else
12660 ac_cv_header_stdc=no
12661fi
12662rm -f conftest*
12663
12664fi
12665
12666if test $ac_cv_header_stdc = yes; then
12667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12668 cat >conftest.$ac_ext <<_ACEOF
12669/* confdefs.h. */
12670_ACEOF
12671cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h. */
12674#include <stdlib.h>
12675
12676_ACEOF
12677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12678 $EGREP "free" >/dev/null 2>&1; then
12679 :
12680else
12681 ac_cv_header_stdc=no
12682fi
12683rm -f conftest*
12684
12685fi
12686
12687if test $ac_cv_header_stdc = yes; then
12688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12689 if test "$cross_compiling" = yes; then
12690 :
12691else
12692 cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698#include <ctype.h>
12699#if ((' ' & 0x0FF) == 0x020)
12700# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12701# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12702#else
12703# define ISLOWER(c) \
ac1cb8d3
VS
12704 (('a' <= (c) && (c) <= 'i') \
12705 || ('j' <= (c) && (c) <= 'r') \
12706 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12707# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12708#endif
12709
12710#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12711int
12712main ()
12713{
12714 int i;
12715 for (i = 0; i < 256; i++)
12716 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12717 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12718 exit(2);
12719 exit (0);
12720}
12721_ACEOF
12722rm -f conftest$ac_exeext
12723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12724 (eval $ac_link) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 :
12734else
12735 echo "$as_me: program exited with status $ac_status" >&5
12736echo "$as_me: failed program was:" >&5
12737sed 's/^/| /' conftest.$ac_ext >&5
12738
12739( exit $ac_status )
12740ac_cv_header_stdc=no
12741fi
ac1cb8d3 12742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12743fi
12744fi
12745fi
12746echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12747echo "${ECHO_T}$ac_cv_header_stdc" >&6
12748if test $ac_cv_header_stdc = yes; then
12749
12750cat >>confdefs.h <<\_ACEOF
12751#define STDC_HEADERS 1
12752_ACEOF
12753
12754fi
12755
12756# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12767 inttypes.h stdint.h unistd.h
a848cd7e
SC
12768do
12769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12770echo "$as_me:$LINENO: checking for $ac_header" >&5
12771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12772if eval "test \"\${$as_ac_Header+set}\" = set"; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774else
12775 cat >conftest.$ac_ext <<_ACEOF
12776/* confdefs.h. */
12777_ACEOF
12778cat confdefs.h >>conftest.$ac_ext
12779cat >>conftest.$ac_ext <<_ACEOF
12780/* end confdefs.h. */
12781$ac_includes_default
12782
12783#include <$ac_header>
12784_ACEOF
12785rm -f conftest.$ac_objext
12786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12787 (eval $ac_compile) 2>conftest.er1
a848cd7e 12788 ac_status=$?
ac1cb8d3
VS
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
a848cd7e
SC
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
c228d3a4
RN
12794 { ac_try='test -z "$ac_c_werror_flag"
12795 || test ! -s conftest.err'
ac1cb8d3
VS
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 eval "$as_ac_Header=yes"
12808else
12809 echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
12812eval "$as_ac_Header=no"
12813fi
ac1cb8d3 12814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12815fi
12816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12818if test `eval echo '${'$as_ac_Header'}'` = yes; then
12819 cat >>confdefs.h <<_ACEOF
12820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12821_ACEOF
12822
12823fi
12824
12825done
12826
12827
12828
12829for ac_header in stdlib.h
12830do
12831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832if eval "test \"\${$as_ac_Header+set}\" = set"; then
12833 echo "$as_me:$LINENO: checking for $ac_header" >&5
12834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12835if eval "test \"\${$as_ac_Header+set}\" = set"; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837fi
12838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12840else
12841 # Is the header compilable?
12842echo "$as_me:$LINENO: checking $ac_header usability" >&5
12843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12844cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850$ac_includes_default
12851#include <$ac_header>
12852_ACEOF
12853rm -f conftest.$ac_objext
12854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12855 (eval $ac_compile) 2>conftest.er1
a848cd7e 12856 ac_status=$?
ac1cb8d3
VS
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
a848cd7e
SC
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
c228d3a4
RN
12862 { ac_try='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
ac1cb8d3
VS
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_header_compiler=yes
12876else
12877 echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880ac_header_compiler=no
12881fi
ac1cb8d3 12882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12883echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12884echo "${ECHO_T}$ac_header_compiler" >&6
12885
12886# Is the header present?
12887echo "$as_me:$LINENO: checking $ac_header presence" >&5
12888echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12889cat >conftest.$ac_ext <<_ACEOF
12890/* confdefs.h. */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h. */
12895#include <$ac_header>
12896_ACEOF
12897if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } >/dev/null; then
12905 if test -s conftest.err; then
12906 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12908 else
12909 ac_cpp_err=
12910 fi
12911else
12912 ac_cpp_err=yes
12913fi
12914if test -z "$ac_cpp_err"; then
12915 ac_header_preproc=yes
12916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 ac_header_preproc=no
12921fi
12922rm -f conftest.err conftest.$ac_ext
12923echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12924echo "${ECHO_T}$ac_header_preproc" >&6
12925
12926# So? What about this header?
ac1cb8d3
VS
12927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12928 yes:no: )
a848cd7e
SC
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12930echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12932echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12933 ac_header_preproc=yes
a848cd7e 12934 ;;
ac1cb8d3 12935 no:yes:* )
a848cd7e
SC
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12937echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12939echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12941echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12943echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12945echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12947echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12948 (
12949 cat <<\_ASBOX
ac1cb8d3
VS
12950## ----------------------------------------- ##
12951## Report this to wx-dev@lists.wxwidgets.org ##
12952## ----------------------------------------- ##
a848cd7e
SC
12953_ASBOX
12954 ) |
12955 sed "s/^/$as_me: WARNING: /" >&2
12956 ;;
12957esac
12958echo "$as_me:$LINENO: checking for $ac_header" >&5
12959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962else
ac1cb8d3 12963 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12964fi
12965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12967
12968fi
12969if test `eval echo '${'$as_ac_Header'}'` = yes; then
12970 cat >>confdefs.h <<_ACEOF
12971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12972_ACEOF
12973
12974fi
12975
12976done
12977
12978
12979for ac_header in malloc.h
12980do
12981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12982if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983 echo "$as_me:$LINENO: checking for $ac_header" >&5
12984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12985if eval "test \"\${$as_ac_Header+set}\" = set"; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987fi
12988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12990else
12991 # Is the header compilable?
12992echo "$as_me:$LINENO: checking $ac_header usability" >&5
12993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12994cat >conftest.$ac_ext <<_ACEOF
12995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
12999/* end confdefs.h. */
13000$ac_includes_default
13001#include <$ac_header>
13002_ACEOF
13003rm -f conftest.$ac_objext
13004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13005 (eval $ac_compile) 2>conftest.er1
a848cd7e 13006 ac_status=$?
ac1cb8d3
VS
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
a848cd7e
SC
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
c228d3a4
RN
13012 { ac_try='test -z "$ac_c_werror_flag"
13013 || test ! -s conftest.err'
ac1cb8d3
VS
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 ac_header_compiler=yes
13026else
13027 echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030ac_header_compiler=no
13031fi
ac1cb8d3 13032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13034echo "${ECHO_T}$ac_header_compiler" >&6
13035
13036# Is the header present?
13037echo "$as_me:$LINENO: checking $ac_header presence" >&5
13038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13039cat >conftest.$ac_ext <<_ACEOF
13040/* confdefs.h. */
13041_ACEOF
13042cat confdefs.h >>conftest.$ac_ext
13043cat >>conftest.$ac_ext <<_ACEOF
13044/* end confdefs.h. */
13045#include <$ac_header>
13046_ACEOF
13047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } >/dev/null; then
13055 if test -s conftest.err; then
13056 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13058 else
13059 ac_cpp_err=
13060 fi
13061else
13062 ac_cpp_err=yes
13063fi
13064if test -z "$ac_cpp_err"; then
13065 ac_header_preproc=yes
13066else
13067 echo "$as_me: failed program was:" >&5
13068sed 's/^/| /' conftest.$ac_ext >&5
13069
13070 ac_header_preproc=no
13071fi
13072rm -f conftest.err conftest.$ac_ext
13073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13074echo "${ECHO_T}$ac_header_preproc" >&6
13075
13076# So? What about this header?
ac1cb8d3
VS
13077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13078 yes:no: )
a848cd7e
SC
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13083 ac_header_preproc=yes
a848cd7e 13084 ;;
ac1cb8d3 13085 no:yes:* )
a848cd7e
SC
13086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13098 (
13099 cat <<\_ASBOX
ac1cb8d3
VS
13100## ----------------------------------------- ##
13101## Report this to wx-dev@lists.wxwidgets.org ##
13102## ----------------------------------------- ##
a848cd7e
SC
13103_ASBOX
13104 ) |
13105 sed "s/^/$as_me: WARNING: /" >&2
13106 ;;
13107esac
13108echo "$as_me:$LINENO: checking for $ac_header" >&5
13109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13110if eval "test \"\${$as_ac_Header+set}\" = set"; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112else
ac1cb8d3 13113 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13114fi
13115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13117
13118fi
13119if test `eval echo '${'$as_ac_Header'}'` = yes; then
13120 cat >>confdefs.h <<_ACEOF
13121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13122_ACEOF
13123
13124fi
13125
13126done
13127
13128
13129for ac_header in unistd.h
13130do
13131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13132if eval "test \"\${$as_ac_Header+set}\" = set"; then
13133 echo "$as_me:$LINENO: checking for $ac_header" >&5
13134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13135if eval "test \"\${$as_ac_Header+set}\" = set"; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13137fi
13138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13140else
13141 # Is the header compilable?
13142echo "$as_me:$LINENO: checking $ac_header usability" >&5
13143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13144cat >conftest.$ac_ext <<_ACEOF
13145/* confdefs.h. */
13146_ACEOF
13147cat confdefs.h >>conftest.$ac_ext
13148cat >>conftest.$ac_ext <<_ACEOF
13149/* end confdefs.h. */
13150$ac_includes_default
13151#include <$ac_header>
13152_ACEOF
13153rm -f conftest.$ac_objext
13154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13155 (eval $ac_compile) 2>conftest.er1
a848cd7e 13156 ac_status=$?
ac1cb8d3
VS
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
a848cd7e
SC
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
c228d3a4
RN
13162 { ac_try='test -z "$ac_c_werror_flag"
13163 || test ! -s conftest.err'
ac1cb8d3
VS
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_header_compiler=yes
13176else
13177 echo "$as_me: failed program was:" >&5
13178sed 's/^/| /' conftest.$ac_ext >&5
13179
13180ac_header_compiler=no
13181fi
ac1cb8d3 13182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13184echo "${ECHO_T}$ac_header_compiler" >&6
13185
13186# Is the header present?
13187echo "$as_me:$LINENO: checking $ac_header presence" >&5
13188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13189cat >conftest.$ac_ext <<_ACEOF
13190/* confdefs.h. */
13191_ACEOF
13192cat confdefs.h >>conftest.$ac_ext
13193cat >>conftest.$ac_ext <<_ACEOF
13194/* end confdefs.h. */
13195#include <$ac_header>
13196_ACEOF
13197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } >/dev/null; then
13205 if test -s conftest.err; then
13206 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13208 else
13209 ac_cpp_err=
13210 fi
13211else
13212 ac_cpp_err=yes
13213fi
13214if test -z "$ac_cpp_err"; then
13215 ac_header_preproc=yes
13216else
13217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
13220 ac_header_preproc=no
13221fi
13222rm -f conftest.err conftest.$ac_ext
13223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13224echo "${ECHO_T}$ac_header_preproc" >&6
13225
13226# So? What about this header?
ac1cb8d3
VS
13227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13228 yes:no: )
a848cd7e
SC
13229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13233 ac_header_preproc=yes
a848cd7e 13234 ;;
ac1cb8d3 13235 no:yes:* )
a848cd7e
SC
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13248 (
13249 cat <<\_ASBOX
ac1cb8d3
VS
13250## ----------------------------------------- ##
13251## Report this to wx-dev@lists.wxwidgets.org ##
13252## ----------------------------------------- ##
a848cd7e
SC
13253_ASBOX
13254 ) |
13255 sed "s/^/$as_me: WARNING: /" >&2
13256 ;;
13257esac
13258echo "$as_me:$LINENO: checking for $ac_header" >&5
13259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13260if eval "test \"\${$as_ac_Header+set}\" = set"; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262else
ac1cb8d3 13263 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13264fi
13265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13267
13268fi
13269if test `eval echo '${'$as_ac_Header'}'` = yes; then
13270 cat >>confdefs.h <<_ACEOF
13271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13272_ACEOF
13273
13274fi
13275
13276done
13277
13278
13279for ac_header in wchar.h
13280do
13281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13282if eval "test \"\${$as_ac_Header+set}\" = set"; then
13283 echo "$as_me:$LINENO: checking for $ac_header" >&5
13284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13285if eval "test \"\${$as_ac_Header+set}\" = set"; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287fi
13288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13290else
13291 # Is the header compilable?
13292echo "$as_me:$LINENO: checking $ac_header usability" >&5
13293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13294cat >conftest.$ac_ext <<_ACEOF
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300$ac_includes_default
13301#include <$ac_header>
13302_ACEOF
13303rm -f conftest.$ac_objext
13304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13305 (eval $ac_compile) 2>conftest.er1
a848cd7e 13306 ac_status=$?
ac1cb8d3
VS
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
a848cd7e
SC
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
c228d3a4
RN
13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
ac1cb8d3
VS
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_header_compiler=yes
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330ac_header_compiler=no
13331fi
ac1cb8d3 13332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13334echo "${ECHO_T}$ac_header_compiler" >&6
13335
13336# Is the header present?
13337echo "$as_me:$LINENO: checking $ac_header presence" >&5
13338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13339cat >conftest.$ac_ext <<_ACEOF
13340/* confdefs.h. */
13341_ACEOF
13342cat confdefs.h >>conftest.$ac_ext
13343cat >>conftest.$ac_ext <<_ACEOF
13344/* end confdefs.h. */
13345#include <$ac_header>
13346_ACEOF
13347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } >/dev/null; then
13355 if test -s conftest.err; then
13356 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13358 else
13359 ac_cpp_err=
13360 fi
13361else
13362 ac_cpp_err=yes
13363fi
13364if test -z "$ac_cpp_err"; then
13365 ac_header_preproc=yes
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 ac_header_preproc=no
13371fi
13372rm -f conftest.err conftest.$ac_ext
13373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13374echo "${ECHO_T}$ac_header_preproc" >&6
13375
13376# So? What about this header?
ac1cb8d3
VS
13377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13378 yes:no: )
a848cd7e
SC
13379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13383 ac_header_preproc=yes
a848cd7e 13384 ;;
ac1cb8d3 13385 no:yes:* )
a848cd7e
SC
13386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13398 (
13399 cat <<\_ASBOX
ac1cb8d3
VS
13400## ----------------------------------------- ##
13401## Report this to wx-dev@lists.wxwidgets.org ##
13402## ----------------------------------------- ##
a848cd7e
SC
13403_ASBOX
13404 ) |
13405 sed "s/^/$as_me: WARNING: /" >&2
13406 ;;
13407esac
13408echo "$as_me:$LINENO: checking for $ac_header" >&5
13409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13410if eval "test \"\${$as_ac_Header+set}\" = set"; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412else
ac1cb8d3 13413 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13414fi
13415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13417
13418fi
13419if test `eval echo '${'$as_ac_Header'}'` = yes; then
13420 cat >>confdefs.h <<_ACEOF
13421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13422_ACEOF
13423
13424fi
13425
13426done
13427
13428
13429if test "$ac_cv_header_wchar_h" != "yes"; then
13430
13431for ac_header in wcstr.h
13432do
13433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434if eval "test \"\${$as_ac_Header+set}\" = set"; then
13435 echo "$as_me:$LINENO: checking for $ac_header" >&5
13436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13437if eval "test \"\${$as_ac_Header+set}\" = set"; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439fi
13440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13442else
13443 # Is the header compilable?
13444echo "$as_me:$LINENO: checking $ac_header usability" >&5
13445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13446cat >conftest.$ac_ext <<_ACEOF
13447/* confdefs.h. */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h. */
13452$ac_includes_default
13453#include <$ac_header>
13454_ACEOF
13455rm -f conftest.$ac_objext
13456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13457 (eval $ac_compile) 2>conftest.er1
a848cd7e 13458 ac_status=$?
ac1cb8d3
VS
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
a848cd7e
SC
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } &&
c228d3a4
RN
13464 { ac_try='test -z "$ac_c_werror_flag"
13465 || test ! -s conftest.err'
ac1cb8d3
VS
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_header_compiler=yes
13478else
13479 echo "$as_me: failed program was:" >&5
13480sed 's/^/| /' conftest.$ac_ext >&5
13481
13482ac_header_compiler=no
13483fi
ac1cb8d3 13484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486echo "${ECHO_T}$ac_header_compiler" >&6
13487
13488# Is the header present?
13489echo "$as_me:$LINENO: checking $ac_header presence" >&5
13490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13491cat >conftest.$ac_ext <<_ACEOF
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497#include <$ac_header>
13498_ACEOF
13499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } >/dev/null; then
13507 if test -s conftest.err; then
13508 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13510 else
13511 ac_cpp_err=
13512 fi
13513else
13514 ac_cpp_err=yes
13515fi
13516if test -z "$ac_cpp_err"; then
13517 ac_header_preproc=yes
13518else
13519 echo "$as_me: failed program was:" >&5
13520sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 ac_header_preproc=no
13523fi
13524rm -f conftest.err conftest.$ac_ext
13525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526echo "${ECHO_T}$ac_header_preproc" >&6
13527
13528# So? What about this header?
ac1cb8d3
VS
13529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530 yes:no: )
a848cd7e
SC
13531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13535 ac_header_preproc=yes
a848cd7e 13536 ;;
ac1cb8d3 13537 no:yes:* )
a848cd7e
SC
13538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13550 (
13551 cat <<\_ASBOX
ac1cb8d3
VS
13552## ----------------------------------------- ##
13553## Report this to wx-dev@lists.wxwidgets.org ##
13554## ----------------------------------------- ##
a848cd7e
SC
13555_ASBOX
13556 ) |
13557 sed "s/^/$as_me: WARNING: /" >&2
13558 ;;
13559esac
13560echo "$as_me:$LINENO: checking for $ac_header" >&5
13561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13562if eval "test \"\${$as_ac_Header+set}\" = set"; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13564else
ac1cb8d3 13565 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13566fi
13567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13569
13570fi
13571if test `eval echo '${'$as_ac_Header'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13574_ACEOF
13575
13576fi
13577
13578done
13579
13580fi
13581
13582
13583for ac_header in fnmatch.h
13584do
13585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13586if eval "test \"\${$as_ac_Header+set}\" = set"; then
13587 echo "$as_me:$LINENO: checking for $ac_header" >&5
13588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13589if eval "test \"\${$as_ac_Header+set}\" = set"; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591fi
13592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13594else
13595 # Is the header compilable?
13596echo "$as_me:$LINENO: checking $ac_header usability" >&5
13597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13598cat >conftest.$ac_ext <<_ACEOF
13599/* confdefs.h. */
13600_ACEOF
13601cat confdefs.h >>conftest.$ac_ext
13602cat >>conftest.$ac_ext <<_ACEOF
13603/* end confdefs.h. */
13604$ac_includes_default
13605#include <$ac_header>
13606_ACEOF
13607rm -f conftest.$ac_objext
13608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13609 (eval $ac_compile) 2>conftest.er1
a848cd7e 13610 ac_status=$?
ac1cb8d3
VS
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
a848cd7e
SC
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
c228d3a4
RN
13616 { ac_try='test -z "$ac_c_werror_flag"
13617 || test ! -s conftest.err'
ac1cb8d3
VS
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_header_compiler=yes
13630else
13631 echo "$as_me: failed program was:" >&5
13632sed 's/^/| /' conftest.$ac_ext >&5
13633
13634ac_header_compiler=no
13635fi
ac1cb8d3 13636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638echo "${ECHO_T}$ac_header_compiler" >&6
13639
13640# Is the header present?
13641echo "$as_me:$LINENO: checking $ac_header presence" >&5
13642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13643cat >conftest.$ac_ext <<_ACEOF
13644/* confdefs.h. */
13645_ACEOF
13646cat confdefs.h >>conftest.$ac_ext
13647cat >>conftest.$ac_ext <<_ACEOF
13648/* end confdefs.h. */
13649#include <$ac_header>
13650_ACEOF
13651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } >/dev/null; then
13659 if test -s conftest.err; then
13660 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13662 else
13663 ac_cpp_err=
13664 fi
13665else
13666 ac_cpp_err=yes
13667fi
13668if test -z "$ac_cpp_err"; then
13669 ac_header_preproc=yes
13670else
13671 echo "$as_me: failed program was:" >&5
13672sed 's/^/| /' conftest.$ac_ext >&5
13673
13674 ac_header_preproc=no
13675fi
13676rm -f conftest.err conftest.$ac_ext
13677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13678echo "${ECHO_T}$ac_header_preproc" >&6
13679
13680# So? What about this header?
ac1cb8d3
VS
13681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13682 yes:no: )
a848cd7e
SC
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13687 ac_header_preproc=yes
a848cd7e 13688 ;;
ac1cb8d3 13689 no:yes:* )
a848cd7e
SC
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13702 (
13703 cat <<\_ASBOX
ac1cb8d3
VS
13704## ----------------------------------------- ##
13705## Report this to wx-dev@lists.wxwidgets.org ##
13706## ----------------------------------------- ##
a848cd7e
SC
13707_ASBOX
13708 ) |
13709 sed "s/^/$as_me: WARNING: /" >&2
13710 ;;
13711esac
13712echo "$as_me:$LINENO: checking for $ac_header" >&5
13713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13714if eval "test \"\${$as_ac_Header+set}\" = set"; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716else
ac1cb8d3 13717 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13718fi
13719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13721
13722fi
13723if test `eval echo '${'$as_ac_Header'}'` = yes; then
13724 cat >>confdefs.h <<_ACEOF
13725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13726_ACEOF
13727
13728fi
13729
13730done
13731
13732
13733if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13734
13735for ac_func in fnmatch
13736do
13737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13738echo "$as_me:$LINENO: checking for $ac_func" >&5
13739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13740if eval "test \"\${$as_ac_var+set}\" = set"; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13742else
13743 cat >conftest.$ac_ext <<_ACEOF
13744/* confdefs.h. */
13745_ACEOF
13746cat confdefs.h >>conftest.$ac_ext
13747cat >>conftest.$ac_ext <<_ACEOF
13748/* end confdefs.h. */
ac1cb8d3
VS
13749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13751#define $ac_func innocuous_$ac_func
13752
a848cd7e
SC
13753/* System header to define __stub macros and hopefully few prototypes,
13754 which can conflict with char $ac_func (); below.
13755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13756 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13757
a848cd7e
SC
13758#ifdef __STDC__
13759# include <limits.h>
13760#else
13761# include <assert.h>
13762#endif
ac1cb8d3
VS
13763
13764#undef $ac_func
13765
a848cd7e
SC
13766/* Override any gcc2 internal prototype to avoid an error. */
13767#ifdef __cplusplus
13768extern "C"
13769{
13770#endif
13771/* We use char because int might match the return type of a gcc2
13772 builtin and then its argument prototype would still apply. */
13773char $ac_func ();
13774/* The GNU C library defines this for functions which it implements
13775 to always fail with ENOSYS. Some functions are actually named
13776 something starting with __ and the normal name is an alias. */
13777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13778choke me
13779#else
13780char (*f) () = $ac_func;
13781#endif
13782#ifdef __cplusplus
13783}
13784#endif
13785
13786int
13787main ()
13788{
13789return f != $ac_func;
13790 ;
13791 return 0;
13792}
13793_ACEOF
13794rm -f conftest.$ac_objext conftest$ac_exeext
13795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13796 (eval $ac_link) 2>conftest.er1
a848cd7e 13797 ac_status=$?
ac1cb8d3
VS
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
a848cd7e
SC
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
c228d3a4
RN
13803 { ac_try='test -z "$ac_c_werror_flag"
13804 || test ! -s conftest.err'
ac1cb8d3
VS
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 eval "$as_ac_var=yes"
13817else
13818 echo "$as_me: failed program was:" >&5
13819sed 's/^/| /' conftest.$ac_ext >&5
13820
13821eval "$as_ac_var=no"
13822fi
ac1cb8d3
VS
13823rm -f conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13825fi
13826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13828if test `eval echo '${'$as_ac_var'}'` = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13831_ACEOF
13832
13833fi
13834done
13835
13836fi
13837
13838
13839for ac_header in langinfo.h
13840do
13841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13842if eval "test \"\${$as_ac_Header+set}\" = set"; then
13843 echo "$as_me:$LINENO: checking for $ac_header" >&5
13844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13845if eval "test \"\${$as_ac_Header+set}\" = set"; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13847fi
13848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13850else
13851 # Is the header compilable?
13852echo "$as_me:$LINENO: checking $ac_header usability" >&5
13853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13854cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
13860$ac_includes_default
13861#include <$ac_header>
13862_ACEOF
13863rm -f conftest.$ac_objext
13864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13865 (eval $ac_compile) 2>conftest.er1
a848cd7e 13866 ac_status=$?
ac1cb8d3
VS
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
a848cd7e
SC
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
c228d3a4
RN
13872 { ac_try='test -z "$ac_c_werror_flag"
13873 || test ! -s conftest.err'
ac1cb8d3
VS
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; } &&
13879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_header_compiler=yes
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
13890ac_header_compiler=no
13891fi
ac1cb8d3 13892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13894echo "${ECHO_T}$ac_header_compiler" >&6
13895
13896# Is the header present?
13897echo "$as_me:$LINENO: checking $ac_header presence" >&5
13898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13899cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905#include <$ac_header>
13906_ACEOF
13907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13909 ac_status=$?
13910 grep -v '^ *+' conftest.er1 >conftest.err
13911 rm -f conftest.er1
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } >/dev/null; then
13915 if test -s conftest.err; then
13916 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13918 else
13919 ac_cpp_err=
13920 fi
13921else
13922 ac_cpp_err=yes
13923fi
13924if test -z "$ac_cpp_err"; then
13925 ac_header_preproc=yes
13926else
13927 echo "$as_me: failed program was:" >&5
13928sed 's/^/| /' conftest.$ac_ext >&5
13929
13930 ac_header_preproc=no
13931fi
13932rm -f conftest.err conftest.$ac_ext
13933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13934echo "${ECHO_T}$ac_header_preproc" >&6
13935
13936# So? What about this header?
ac1cb8d3
VS
13937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13938 yes:no: )
a848cd7e
SC
13939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13943 ac_header_preproc=yes
a848cd7e 13944 ;;
ac1cb8d3 13945 no:yes:* )
a848cd7e
SC
13946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13958 (
13959 cat <<\_ASBOX
ac1cb8d3
VS
13960## ----------------------------------------- ##
13961## Report this to wx-dev@lists.wxwidgets.org ##
13962## ----------------------------------------- ##
a848cd7e
SC
13963_ASBOX
13964 ) |
13965 sed "s/^/$as_me: WARNING: /" >&2
13966 ;;
13967esac
13968echo "$as_me:$LINENO: checking for $ac_header" >&5
13969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13970if eval "test \"\${$as_ac_Header+set}\" = set"; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
ac1cb8d3 13973 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13974fi
13975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13977
13978fi
13979if test `eval echo '${'$as_ac_Header'}'` = yes; then
13980 cat >>confdefs.h <<_ACEOF
13981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13982_ACEOF
13983
13984fi
13985
13986done
13987
13988
13989case "${host}" in
13990 *-pc-os2_emx | *-pc-os2-emx )
13991 if test $ac_cv_header_langinfo_h = "yes"; then
13992 LIBS="$LIBS -lintl"
13993 fi
13994 ;;
13995esac
13996
13997if test "$wxUSE_GUI" = "yes"; then
13998 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13999
14000for ac_header in X11/Xlib.h
14001do
14002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14003if eval "test \"\${$as_ac_Header+set}\" = set"; then
14004 echo "$as_me:$LINENO: checking for $ac_header" >&5
14005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14006if eval "test \"\${$as_ac_Header+set}\" = set"; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14008fi
14009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14011else
14012 # Is the header compilable?
14013echo "$as_me:$LINENO: checking $ac_header usability" >&5
14014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14015cat >conftest.$ac_ext <<_ACEOF
14016/* confdefs.h. */
14017_ACEOF
14018cat confdefs.h >>conftest.$ac_ext
14019cat >>conftest.$ac_ext <<_ACEOF
14020/* end confdefs.h. */
14021$ac_includes_default
14022#include <$ac_header>
14023_ACEOF
14024rm -f conftest.$ac_objext
14025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14026 (eval $ac_compile) 2>conftest.er1
a848cd7e 14027 ac_status=$?
ac1cb8d3
VS
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
a848cd7e
SC
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } &&
c228d3a4
RN
14033 { ac_try='test -z "$ac_c_werror_flag"
14034 || test ! -s conftest.err'
ac1cb8d3
VS
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; } &&
14040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
14046 ac_header_compiler=yes
14047else
14048 echo "$as_me: failed program was:" >&5
14049sed 's/^/| /' conftest.$ac_ext >&5
14050
14051ac_header_compiler=no
14052fi
ac1cb8d3 14053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14054echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14055echo "${ECHO_T}$ac_header_compiler" >&6
14056
14057# Is the header present?
14058echo "$as_me:$LINENO: checking $ac_header presence" >&5
14059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14060cat >conftest.$ac_ext <<_ACEOF
14061/* confdefs.h. */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
14065/* end confdefs.h. */
14066#include <$ac_header>
14067_ACEOF
14068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14070 ac_status=$?
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } >/dev/null; then
14076 if test -s conftest.err; then
14077 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14079 else
14080 ac_cpp_err=
14081 fi
14082else
14083 ac_cpp_err=yes
14084fi
14085if test -z "$ac_cpp_err"; then
14086 ac_header_preproc=yes
14087else
14088 echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
14091 ac_header_preproc=no
14092fi
14093rm -f conftest.err conftest.$ac_ext
14094echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14095echo "${ECHO_T}$ac_header_preproc" >&6
14096
14097# So? What about this header?
ac1cb8d3
VS
14098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14099 yes:no: )
a848cd7e
SC
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14104 ac_header_preproc=yes
a848cd7e 14105 ;;
ac1cb8d3 14106 no:yes:* )
a848cd7e
SC
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14119 (
14120 cat <<\_ASBOX
ac1cb8d3
VS
14121## ----------------------------------------- ##
14122## Report this to wx-dev@lists.wxwidgets.org ##
14123## ----------------------------------------- ##
a848cd7e
SC
14124_ASBOX
14125 ) |
14126 sed "s/^/$as_me: WARNING: /" >&2
14127 ;;
14128esac
14129echo "$as_me:$LINENO: checking for $ac_header" >&5
14130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14131if eval "test \"\${$as_ac_Header+set}\" = set"; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133else
ac1cb8d3 14134 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14135fi
14136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14138
14139fi
14140if test `eval echo '${'$as_ac_Header'}'` = yes; then
14141 cat >>confdefs.h <<_ACEOF
14142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14143_ACEOF
14144
14145fi
14146
14147done
14148
14149
14150for ac_header in X11/XKBlib.h
14151do
14152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14153echo "$as_me:$LINENO: checking for $ac_header" >&5
14154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14155if eval "test \"\${$as_ac_Header+set}\" = set"; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157else
14158 cat >conftest.$ac_ext <<_ACEOF
14159/* confdefs.h. */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */
14164
14165 #if HAVE_X11_XLIB_H
14166 #include <X11/Xlib.h>
14167 #endif
14168
14169
14170#include <$ac_header>
14171_ACEOF
14172rm -f conftest.$ac_objext
14173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14174 (eval $ac_compile) 2>conftest.er1
a848cd7e 14175 ac_status=$?
ac1cb8d3
VS
14176 grep -v '^ *+' conftest.er1 >conftest.err
14177 rm -f conftest.er1
14178 cat conftest.err >&5
a848cd7e
SC
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
c228d3a4
RN
14181 { ac_try='test -z "$ac_c_werror_flag"
14182 || test ! -s conftest.err'
ac1cb8d3
VS
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14194 eval "$as_ac_Header=yes"
14195else
14196 echo "$as_me: failed program was:" >&5
14197sed 's/^/| /' conftest.$ac_ext >&5
14198
14199eval "$as_ac_Header=no"
14200fi
ac1cb8d3 14201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14202fi
14203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14205if test `eval echo '${'$as_ac_Header'}'` = yes; then
14206 cat >>confdefs.h <<_ACEOF
14207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14208_ACEOF
14209
14210fi
14211
14212done
14213
14214 fi
14215fi
14216
14217
14218echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14219echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14220if test "${ac_cv_c_const+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14222else
14223 cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h. */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
14228/* end confdefs.h. */
14229
14230int
14231main ()
14232{
14233/* FIXME: Include the comments suggested by Paul. */
14234#ifndef __cplusplus
14235 /* Ultrix mips cc rejects this. */
14236 typedef int charset[2];
14237 const charset x;
14238 /* SunOS 4.1.1 cc rejects this. */
14239 char const *const *ccp;
14240 char **p;
14241 /* NEC SVR4.0.2 mips cc rejects this. */
14242 struct point {int x, y;};
14243 static struct point const zero = {0,0};
14244 /* AIX XL C 1.02.0.0 rejects this.
14245 It does not let you subtract one const X* pointer from another in
14246 an arm of an if-expression whose if-part is not a constant
14247 expression */
14248 const char *g = "string";
14249 ccp = &g + (g ? g-g : 0);
14250 /* HPUX 7.0 cc rejects these. */
14251 ++ccp;
14252 p = (char**) ccp;
14253 ccp = (char const *const *) p;
14254 { /* SCO 3.2v4 cc rejects this. */
14255 char *t;
14256 char const *s = 0 ? (char *) 0 : (char const *) 0;
14257
14258 *t++ = 0;
14259 }
14260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14261 int x[] = {25, 17};
14262 const int *foo = &x[0];
14263 ++foo;
14264 }
14265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14266 typedef const int *iptr;
14267 iptr p = 0;
14268 ++p;
14269 }
14270 { /* AIX XL C 1.02.0.0 rejects this saying
14271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14272 struct s { int j; const int *ap[3]; };
14273 struct s *b; b->j = 5;
14274 }
14275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14276 const int foo = 10;
14277 }
14278#endif
14279
14280 ;
14281 return 0;
14282}
14283_ACEOF
14284rm -f conftest.$ac_objext
14285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14286 (eval $ac_compile) 2>conftest.er1
a848cd7e 14287 ac_status=$?
ac1cb8d3
VS
14288 grep -v '^ *+' conftest.er1 >conftest.err
14289 rm -f conftest.er1
14290 cat conftest.err >&5
a848cd7e
SC
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
c228d3a4
RN
14293 { ac_try='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
ac1cb8d3
VS
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_cv_c_const=yes
14307else
14308 echo "$as_me: failed program was:" >&5
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
14311ac_cv_c_const=no
14312fi
ac1cb8d3 14313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14314fi
14315echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14316echo "${ECHO_T}$ac_cv_c_const" >&6
14317if test $ac_cv_c_const = no; then
14318
14319cat >>confdefs.h <<\_ACEOF
14320#define const
14321_ACEOF
14322
14323fi
14324
14325echo "$as_me:$LINENO: checking for inline" >&5
14326echo $ECHO_N "checking for inline... $ECHO_C" >&6
14327if test "${ac_cv_c_inline+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14329else
14330 ac_cv_c_inline=no
14331for ac_kw in inline __inline__ __inline; do
14332 cat >conftest.$ac_ext <<_ACEOF
14333/* confdefs.h. */
14334_ACEOF
14335cat confdefs.h >>conftest.$ac_ext
14336cat >>conftest.$ac_ext <<_ACEOF
14337/* end confdefs.h. */
14338#ifndef __cplusplus
14339typedef int foo_t;
14340static $ac_kw foo_t static_foo () {return 0; }
14341$ac_kw foo_t foo () {return 0; }
14342#endif
14343
14344_ACEOF
14345rm -f conftest.$ac_objext
14346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14347 (eval $ac_compile) 2>conftest.er1
a848cd7e 14348 ac_status=$?
ac1cb8d3
VS
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
a848cd7e
SC
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
c228d3a4
RN
14354 { ac_try='test -z "$ac_c_werror_flag"
14355 || test ! -s conftest.err'
ac1cb8d3
VS
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 ac_cv_c_inline=$ac_kw; break
14368else
14369 echo "$as_me: failed program was:" >&5
14370sed 's/^/| /' conftest.$ac_ext >&5
14371
14372fi
ac1cb8d3 14373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14374done
14375
14376fi
14377echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14378echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14379
14380
a848cd7e
SC
14381case $ac_cv_c_inline in
14382 inline | yes) ;;
ac1cb8d3
VS
14383 *)
14384 case $ac_cv_c_inline in
14385 no) ac_val=;;
14386 *) ac_val=$ac_cv_c_inline;;
14387 esac
14388 cat >>confdefs.h <<_ACEOF
14389#ifndef __cplusplus
14390#define inline $ac_val
14391#endif
de59c161 14392_ACEOF
ac1cb8d3 14393 ;;
a848cd7e
SC
14394esac
14395
14396
14397echo "$as_me:$LINENO: checking for char" >&5
14398echo $ECHO_N "checking for char... $ECHO_C" >&6
14399if test "${ac_cv_type_char+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
14402 cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408$ac_includes_default
14409int
14410main ()
14411{
14412if ((char *) 0)
14413 return 0;
14414if (sizeof (char))
14415 return 0;
14416 ;
14417 return 0;
14418}
14419_ACEOF
14420rm -f conftest.$ac_objext
14421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14422 (eval $ac_compile) 2>conftest.er1
a848cd7e 14423 ac_status=$?
ac1cb8d3
VS
14424 grep -v '^ *+' conftest.er1 >conftest.err
14425 rm -f conftest.er1
14426 cat conftest.err >&5
a848cd7e
SC
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
c228d3a4
RN
14429 { ac_try='test -z "$ac_c_werror_flag"
14430 || test ! -s conftest.err'
ac1cb8d3
VS
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 ac_cv_type_char=yes
14443else
14444 echo "$as_me: failed program was:" >&5
14445sed 's/^/| /' conftest.$ac_ext >&5
14446
14447ac_cv_type_char=no
14448fi
ac1cb8d3 14449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14450fi
14451echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14452echo "${ECHO_T}$ac_cv_type_char" >&6
14453
14454echo "$as_me:$LINENO: checking size of char" >&5
14455echo $ECHO_N "checking size of char... $ECHO_C" >&6
14456if test "${ac_cv_sizeof_char+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14458else
14459 if test "$ac_cv_type_char" = yes; then
14460 # The cast to unsigned long works around a bug in the HP C Compiler
14461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14463 # This bug is HP SR number 8606223364.
14464 if test "$cross_compiling" = yes; then
14465 # Depending upon the size, compute the lo and hi bounds.
14466cat >conftest.$ac_ext <<_ACEOF
14467/* confdefs.h. */
14468_ACEOF
14469cat confdefs.h >>conftest.$ac_ext
14470cat >>conftest.$ac_ext <<_ACEOF
14471/* end confdefs.h. */
14472$ac_includes_default
14473int
14474main ()
14475{
14476static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14477test_array [0] = 0
14478
14479 ;
14480 return 0;
14481}
14482_ACEOF
14483rm -f conftest.$ac_objext
14484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14485 (eval $ac_compile) 2>conftest.er1
a848cd7e 14486 ac_status=$?
ac1cb8d3
VS
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
a848cd7e
SC
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
c228d3a4
RN
14492 { ac_try='test -z "$ac_c_werror_flag"
14493 || test ! -s conftest.err'
ac1cb8d3
VS
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; } &&
14499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14505 ac_lo=0 ac_mid=0
14506 while :; do
14507 cat >conftest.$ac_ext <<_ACEOF
14508/* confdefs.h. */
14509_ACEOF
14510cat confdefs.h >>conftest.$ac_ext
14511cat >>conftest.$ac_ext <<_ACEOF
14512/* end confdefs.h. */
14513$ac_includes_default
14514int
14515main ()
14516{
14517static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14518test_array [0] = 0
14519
14520 ;
14521 return 0;
14522}
14523_ACEOF
14524rm -f conftest.$ac_objext
14525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14526 (eval $ac_compile) 2>conftest.er1
a848cd7e 14527 ac_status=$?
ac1cb8d3
VS
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
a848cd7e
SC
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
c228d3a4
RN
14533 { ac_try='test -z "$ac_c_werror_flag"
14534 || test ! -s conftest.err'
ac1cb8d3
VS
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_hi=$ac_mid; break
14547else
14548 echo "$as_me: failed program was:" >&5
14549sed 's/^/| /' conftest.$ac_ext >&5
14550
14551ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14552 if test $ac_lo -le $ac_mid; then
14553 ac_lo= ac_hi=
14554 break
14555 fi
14556 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14557fi
ac1cb8d3 14558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14559 done
14560else
14561 echo "$as_me: failed program was:" >&5
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
14564cat >conftest.$ac_ext <<_ACEOF
14565/* confdefs.h. */
14566_ACEOF
14567cat confdefs.h >>conftest.$ac_ext
14568cat >>conftest.$ac_ext <<_ACEOF
14569/* end confdefs.h. */
14570$ac_includes_default
14571int
14572main ()
14573{
14574static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14575test_array [0] = 0
14576
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581rm -f conftest.$ac_objext
14582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14583 (eval $ac_compile) 2>conftest.er1
a848cd7e 14584 ac_status=$?
ac1cb8d3
VS
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
a848cd7e
SC
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
c228d3a4
RN
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
ac1cb8d3
VS
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_hi=-1 ac_mid=-1
14604 while :; do
14605 cat >conftest.$ac_ext <<_ACEOF
14606/* confdefs.h. */
14607_ACEOF
14608cat confdefs.h >>conftest.$ac_ext
14609cat >>conftest.$ac_ext <<_ACEOF
14610/* end confdefs.h. */
14611$ac_includes_default
14612int
14613main ()
14614{
14615static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14616test_array [0] = 0
14617
14618 ;
14619 return 0;
14620}
14621_ACEOF
14622rm -f conftest.$ac_objext
14623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14624 (eval $ac_compile) 2>conftest.er1
a848cd7e 14625 ac_status=$?
ac1cb8d3
VS
14626 grep -v '^ *+' conftest.er1 >conftest.err
14627 rm -f conftest.er1
14628 cat conftest.err >&5
a848cd7e
SC
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
c228d3a4
RN
14631 { ac_try='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
ac1cb8d3
VS
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_lo=$ac_mid; break
14645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14650 if test $ac_mid -le $ac_hi; then
14651 ac_lo= ac_hi=
14652 break
14653 fi
14654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14655fi
ac1cb8d3 14656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14657 done
14658else
14659 echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
14662ac_lo= ac_hi=
14663fi
ac1cb8d3 14664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14665fi
ac1cb8d3 14666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14667# Binary search between lo and hi bounds.
14668while test "x$ac_lo" != "x$ac_hi"; do
14669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14670 cat >conftest.$ac_ext <<_ACEOF
14671/* confdefs.h. */
14672_ACEOF
14673cat confdefs.h >>conftest.$ac_ext
14674cat >>conftest.$ac_ext <<_ACEOF
14675/* end confdefs.h. */
14676$ac_includes_default
14677int
14678main ()
14679{
14680static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14681test_array [0] = 0
14682
14683 ;
14684 return 0;
14685}
14686_ACEOF
14687rm -f conftest.$ac_objext
14688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14689 (eval $ac_compile) 2>conftest.er1
a848cd7e 14690 ac_status=$?
ac1cb8d3
VS
14691 grep -v '^ *+' conftest.er1 >conftest.err
14692 rm -f conftest.er1
14693 cat conftest.err >&5
a848cd7e
SC
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
c228d3a4
RN
14696 { ac_try='test -z "$ac_c_werror_flag"
14697 || test ! -s conftest.err'
ac1cb8d3
VS
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14700 ac_status=$?
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; } &&
14703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 ac_hi=$ac_mid
14710else
14711 echo "$as_me: failed program was:" >&5
14712sed 's/^/| /' conftest.$ac_ext >&5
14713
14714ac_lo=`expr '(' $ac_mid ')' + 1`
14715fi
ac1cb8d3 14716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14717done
14718case $ac_lo in
14719?*) ac_cv_sizeof_char=$ac_lo;;
14720'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14721See \`config.log' for more details." >&5
14722echo "$as_me: error: cannot compute sizeof (char), 77
14723See \`config.log' for more details." >&2;}
14724 { (exit 1); exit 1; }; } ;;
14725esac
14726else
14727 if test "$cross_compiling" = yes; then
c228d3a4
RN
14728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14729See \`config.log' for more details." >&5
14730echo "$as_me: error: cannot run test program while cross compiling
14731See \`config.log' for more details." >&2;}
a848cd7e
SC
14732 { (exit 1); exit 1; }; }
14733else
14734 cat >conftest.$ac_ext <<_ACEOF
14735/* confdefs.h. */
14736_ACEOF
14737cat confdefs.h >>conftest.$ac_ext
14738cat >>conftest.$ac_ext <<_ACEOF
14739/* end confdefs.h. */
14740$ac_includes_default
14741long longval () { return (long) (sizeof (char)); }
14742unsigned long ulongval () { return (long) (sizeof (char)); }
14743#include <stdio.h>
14744#include <stdlib.h>
14745int
14746main ()
14747{
14748
14749 FILE *f = fopen ("conftest.val", "w");
14750 if (! f)
14751 exit (1);
14752 if (((long) (sizeof (char))) < 0)
14753 {
14754 long i = longval ();
14755 if (i != ((long) (sizeof (char))))
14756 exit (1);
14757 fprintf (f, "%ld\n", i);
14758 }
14759 else
14760 {
14761 unsigned long i = ulongval ();
14762 if (i != ((long) (sizeof (char))))
14763 exit (1);
14764 fprintf (f, "%lu\n", i);
14765 }
14766 exit (ferror (f) || fclose (f) != 0);
14767
14768 ;
14769 return 0;
14770}
14771_ACEOF
14772rm -f conftest$ac_exeext
14773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14774 (eval $ac_link) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 ac_cv_sizeof_char=`cat conftest.val`
14784else
14785 echo "$as_me: program exited with status $ac_status" >&5
14786echo "$as_me: failed program was:" >&5
14787sed 's/^/| /' conftest.$ac_ext >&5
14788
14789( exit $ac_status )
14790{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14791See \`config.log' for more details." >&5
14792echo "$as_me: error: cannot compute sizeof (char), 77
14793See \`config.log' for more details." >&2;}
14794 { (exit 1); exit 1; }; }
14795fi
ac1cb8d3 14796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14797fi
14798fi
14799rm -f conftest.val
14800else
14801 ac_cv_sizeof_char=0
14802fi
14803fi
14804echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14805echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14806cat >>confdefs.h <<_ACEOF
14807#define SIZEOF_CHAR $ac_cv_sizeof_char
14808_ACEOF
14809
14810
14811echo "$as_me:$LINENO: checking for short" >&5
14812echo $ECHO_N "checking for short... $ECHO_C" >&6
14813if test "${ac_cv_type_short+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815else
14816 cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h. */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h. */
14822$ac_includes_default
14823int
14824main ()
14825{
14826if ((short *) 0)
14827 return 0;
14828if (sizeof (short))
14829 return 0;
14830 ;
14831 return 0;
14832}
14833_ACEOF
14834rm -f conftest.$ac_objext
14835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14836 (eval $ac_compile) 2>conftest.er1
a848cd7e 14837 ac_status=$?
ac1cb8d3
VS
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
a848cd7e
SC
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
c228d3a4
RN
14843 { ac_try='test -z "$ac_c_werror_flag"
14844 || test ! -s conftest.err'
ac1cb8d3
VS
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; } &&
14850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_cv_type_short=yes
14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
14861ac_cv_type_short=no
14862fi
ac1cb8d3 14863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14864fi
14865echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14866echo "${ECHO_T}$ac_cv_type_short" >&6
14867
14868echo "$as_me:$LINENO: checking size of short" >&5
14869echo $ECHO_N "checking size of short... $ECHO_C" >&6
14870if test "${ac_cv_sizeof_short+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872else
14873 if test "$ac_cv_type_short" = yes; then
14874 # The cast to unsigned long works around a bug in the HP C Compiler
14875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14877 # This bug is HP SR number 8606223364.
14878 if test "$cross_compiling" = yes; then
14879 # Depending upon the size, compute the lo and hi bounds.
14880cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h. */
14886$ac_includes_default
14887int
14888main ()
14889{
14890static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14891test_array [0] = 0
14892
14893 ;
14894 return 0;
14895}
14896_ACEOF
14897rm -f conftest.$ac_objext
14898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14899 (eval $ac_compile) 2>conftest.er1
a848cd7e 14900 ac_status=$?
ac1cb8d3
VS
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
a848cd7e
SC
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
c228d3a4
RN
14906 { ac_try='test -z "$ac_c_werror_flag"
14907 || test ! -s conftest.err'
ac1cb8d3
VS
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
14919 ac_lo=0 ac_mid=0
14920 while :; do
14921 cat >conftest.$ac_ext <<_ACEOF
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
14926/* end confdefs.h. */
14927$ac_includes_default
14928int
14929main ()
14930{
14931static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14932test_array [0] = 0
14933
14934 ;
14935 return 0;
14936}
14937_ACEOF
14938rm -f conftest.$ac_objext
14939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14940 (eval $ac_compile) 2>conftest.er1
a848cd7e 14941 ac_status=$?
ac1cb8d3
VS
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
a848cd7e
SC
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
c228d3a4
RN
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
ac1cb8d3
VS
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_hi=$ac_mid; break
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
14965ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14966 if test $ac_lo -le $ac_mid; then
14967 ac_lo= ac_hi=
14968 break
14969 fi
14970 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14971fi
ac1cb8d3 14972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14973 done
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978cat >conftest.$ac_ext <<_ACEOF
14979/* confdefs.h. */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h. */
14984$ac_includes_default
14985int
14986main ()
14987{
14988static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14989test_array [0] = 0
14990
14991 ;
14992 return 0;
14993}
14994_ACEOF
14995rm -f conftest.$ac_objext
14996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14997 (eval $ac_compile) 2>conftest.er1
a848cd7e 14998 ac_status=$?
ac1cb8d3
VS
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
a848cd7e
SC
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
c228d3a4
RN
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
ac1cb8d3
VS
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_hi=-1 ac_mid=-1
15018 while :; do
15019 cat >conftest.$ac_ext <<_ACEOF
15020/* confdefs.h. */
15021_ACEOF
15022cat confdefs.h >>conftest.$ac_ext
15023cat >>conftest.$ac_ext <<_ACEOF
15024/* end confdefs.h. */
15025$ac_includes_default
15026int
15027main ()
15028{
15029static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15030test_array [0] = 0
15031
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036rm -f conftest.$ac_objext
15037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15038 (eval $ac_compile) 2>conftest.er1
a848cd7e 15039 ac_status=$?
ac1cb8d3
VS
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
a848cd7e
SC
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
c228d3a4
RN
15045 { ac_try='test -z "$ac_c_werror_flag"
15046 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 ac_lo=$ac_mid; break
15059else
15060 echo "$as_me: failed program was:" >&5
15061sed 's/^/| /' conftest.$ac_ext >&5
15062
15063ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15064 if test $ac_mid -le $ac_hi; then
15065 ac_lo= ac_hi=
15066 break
15067 fi
15068 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15069fi
ac1cb8d3 15070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15071 done
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076ac_lo= ac_hi=
15077fi
ac1cb8d3 15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15079fi
ac1cb8d3 15080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15081# Binary search between lo and hi bounds.
15082while test "x$ac_lo" != "x$ac_hi"; do
15083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15084 cat >conftest.$ac_ext <<_ACEOF
15085/* confdefs.h. */
15086_ACEOF
15087cat confdefs.h >>conftest.$ac_ext
15088cat >>conftest.$ac_ext <<_ACEOF
15089/* end confdefs.h. */
15090$ac_includes_default
15091int
15092main ()
15093{
15094static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15095test_array [0] = 0
15096
15097 ;
15098 return 0;
15099}
15100_ACEOF
15101rm -f conftest.$ac_objext
15102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15103 (eval $ac_compile) 2>conftest.er1
a848cd7e 15104 ac_status=$?
ac1cb8d3
VS
15105 grep -v '^ *+' conftest.er1 >conftest.err
15106 rm -f conftest.er1
15107 cat conftest.err >&5
a848cd7e
SC
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } &&
c228d3a4
RN
15110 { ac_try='test -z "$ac_c_werror_flag"
15111 || test ! -s conftest.err'
ac1cb8d3
VS
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; } &&
15117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; }; then
15123 ac_hi=$ac_mid
15124else
15125 echo "$as_me: failed program was:" >&5
15126sed 's/^/| /' conftest.$ac_ext >&5
15127
15128ac_lo=`expr '(' $ac_mid ')' + 1`
15129fi
ac1cb8d3 15130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15131done
15132case $ac_lo in
15133?*) ac_cv_sizeof_short=$ac_lo;;
15134'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15135See \`config.log' for more details." >&5
15136echo "$as_me: error: cannot compute sizeof (short), 77
15137See \`config.log' for more details." >&2;}
15138 { (exit 1); exit 1; }; } ;;
15139esac
15140else
15141 if test "$cross_compiling" = yes; then
c228d3a4
RN
15142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15143See \`config.log' for more details." >&5
15144echo "$as_me: error: cannot run test program while cross compiling
15145See \`config.log' for more details." >&2;}
a848cd7e
SC
15146 { (exit 1); exit 1; }; }
15147else
15148 cat >conftest.$ac_ext <<_ACEOF
15149/* confdefs.h. */
15150_ACEOF
15151cat confdefs.h >>conftest.$ac_ext
15152cat >>conftest.$ac_ext <<_ACEOF
15153/* end confdefs.h. */
15154$ac_includes_default
15155long longval () { return (long) (sizeof (short)); }
15156unsigned long ulongval () { return (long) (sizeof (short)); }
15157#include <stdio.h>
15158#include <stdlib.h>
15159int
15160main ()
15161{
15162
15163 FILE *f = fopen ("conftest.val", "w");
15164 if (! f)
15165 exit (1);
15166 if (((long) (sizeof (short))) < 0)
15167 {
15168 long i = longval ();
15169 if (i != ((long) (sizeof (short))))
15170 exit (1);
15171 fprintf (f, "%ld\n", i);
15172 }
15173 else
15174 {
15175 unsigned long i = ulongval ();
15176 if (i != ((long) (sizeof (short))))
15177 exit (1);
15178 fprintf (f, "%lu\n", i);
15179 }
15180 exit (ferror (f) || fclose (f) != 0);
15181
15182 ;
15183 return 0;
15184}
15185_ACEOF
15186rm -f conftest$ac_exeext
15187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15188 (eval $ac_link) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 ac_cv_sizeof_short=`cat conftest.val`
15198else
15199 echo "$as_me: program exited with status $ac_status" >&5
15200echo "$as_me: failed program was:" >&5
15201sed 's/^/| /' conftest.$ac_ext >&5
15202
15203( exit $ac_status )
15204{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15205See \`config.log' for more details." >&5
15206echo "$as_me: error: cannot compute sizeof (short), 77
15207See \`config.log' for more details." >&2;}
15208 { (exit 1); exit 1; }; }
15209fi
ac1cb8d3 15210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15211fi
15212fi
15213rm -f conftest.val
15214else
15215 ac_cv_sizeof_short=0
15216fi
15217fi
15218echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15219echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15220cat >>confdefs.h <<_ACEOF
15221#define SIZEOF_SHORT $ac_cv_sizeof_short
15222_ACEOF
15223
15224
15225echo "$as_me:$LINENO: checking for void *" >&5
15226echo $ECHO_N "checking for void *... $ECHO_C" >&6
15227if test "${ac_cv_type_void_p+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229else
15230 cat >conftest.$ac_ext <<_ACEOF
15231/* confdefs.h. */
15232_ACEOF
15233cat confdefs.h >>conftest.$ac_ext
15234cat >>conftest.$ac_ext <<_ACEOF
15235/* end confdefs.h. */
15236$ac_includes_default
15237int
15238main ()
15239{
15240if ((void * *) 0)
15241 return 0;
15242if (sizeof (void *))
15243 return 0;
15244 ;
15245 return 0;
15246}
15247_ACEOF
15248rm -f conftest.$ac_objext
15249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15250 (eval $ac_compile) 2>conftest.er1
a848cd7e 15251 ac_status=$?
ac1cb8d3
VS
15252 grep -v '^ *+' conftest.er1 >conftest.err
15253 rm -f conftest.er1
15254 cat conftest.err >&5
a848cd7e
SC
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
c228d3a4
RN
15257 { ac_try='test -z "$ac_c_werror_flag"
15258 || test ! -s conftest.err'
ac1cb8d3
VS
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_cv_type_void_p=yes
15271else
15272 echo "$as_me: failed program was:" >&5
15273sed 's/^/| /' conftest.$ac_ext >&5
15274
15275ac_cv_type_void_p=no
15276fi
ac1cb8d3 15277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15278fi
15279echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15280echo "${ECHO_T}$ac_cv_type_void_p" >&6
15281
15282echo "$as_me:$LINENO: checking size of void *" >&5
15283echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15284if test "${ac_cv_sizeof_void_p+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286else
15287 if test "$ac_cv_type_void_p" = yes; then
15288 # The cast to unsigned long works around a bug in the HP C Compiler
15289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15291 # This bug is HP SR number 8606223364.
15292 if test "$cross_compiling" = yes; then
15293 # Depending upon the size, compute the lo and hi bounds.
15294cat >conftest.$ac_ext <<_ACEOF
15295/* confdefs.h. */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
15300$ac_includes_default
15301int
15302main ()
15303{
15304static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15305test_array [0] = 0
15306
15307 ;
15308 return 0;
15309}
15310_ACEOF
15311rm -f conftest.$ac_objext
15312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15313 (eval $ac_compile) 2>conftest.er1
a848cd7e 15314 ac_status=$?
ac1cb8d3
VS
15315 grep -v '^ *+' conftest.er1 >conftest.err
15316 rm -f conftest.er1
15317 cat conftest.err >&5
a848cd7e
SC
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
c228d3a4
RN
15320 { ac_try='test -z "$ac_c_werror_flag"
15321 || test ! -s conftest.err'
ac1cb8d3
VS
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_lo=0 ac_mid=0
15334 while :; do
15335 cat >conftest.$ac_ext <<_ACEOF
15336/* confdefs.h. */
15337_ACEOF
15338cat confdefs.h >>conftest.$ac_ext
15339cat >>conftest.$ac_ext <<_ACEOF
15340/* end confdefs.h. */
15341$ac_includes_default
15342int
15343main ()
15344{
15345static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15346test_array [0] = 0
15347
15348 ;
15349 return 0;
15350}
15351_ACEOF
15352rm -f conftest.$ac_objext
15353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15354 (eval $ac_compile) 2>conftest.er1
a848cd7e 15355 ac_status=$?
ac1cb8d3
VS
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
a848cd7e
SC
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
c228d3a4
RN
15361 { ac_try='test -z "$ac_c_werror_flag"
15362 || test ! -s conftest.err'
ac1cb8d3
VS
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; } &&
15368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 ac_hi=$ac_mid; break
15375else
15376 echo "$as_me: failed program was:" >&5
15377sed 's/^/| /' conftest.$ac_ext >&5
15378
15379ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15380 if test $ac_lo -le $ac_mid; then
15381 ac_lo= ac_hi=
15382 break
15383 fi
15384 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15385fi
ac1cb8d3 15386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15387 done
15388else
15389 echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392cat >conftest.$ac_ext <<_ACEOF
15393/* confdefs.h. */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h. */
15398$ac_includes_default
15399int
15400main ()
15401{
15402static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15403test_array [0] = 0
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15411 (eval $ac_compile) 2>conftest.er1
a848cd7e 15412 ac_status=$?
ac1cb8d3
VS
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
a848cd7e
SC
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
c228d3a4
RN
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
ac1cb8d3
VS
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_hi=-1 ac_mid=-1
15432 while :; do
15433 cat >conftest.$ac_ext <<_ACEOF
15434/* confdefs.h. */
15435_ACEOF
15436cat confdefs.h >>conftest.$ac_ext
15437cat >>conftest.$ac_ext <<_ACEOF
15438/* end confdefs.h. */
15439$ac_includes_default
15440int
15441main ()
15442{
15443static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15444test_array [0] = 0
15445
15446 ;
15447 return 0;
15448}
15449_ACEOF
15450rm -f conftest.$ac_objext
15451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15452 (eval $ac_compile) 2>conftest.er1
a848cd7e 15453 ac_status=$?
ac1cb8d3
VS
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
a848cd7e
SC
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
c228d3a4
RN
15459 { ac_try='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
ac1cb8d3
VS
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_lo=$ac_mid; break
15473else
15474 echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15478 if test $ac_mid -le $ac_hi; then
15479 ac_lo= ac_hi=
15480 break
15481 fi
15482 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15483fi
ac1cb8d3 15484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15485 done
15486else
15487 echo "$as_me: failed program was:" >&5
15488sed 's/^/| /' conftest.$ac_ext >&5
15489
15490ac_lo= ac_hi=
15491fi
ac1cb8d3 15492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15493fi
ac1cb8d3 15494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15495# Binary search between lo and hi bounds.
15496while test "x$ac_lo" != "x$ac_hi"; do
15497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15498 cat >conftest.$ac_ext <<_ACEOF
15499/* confdefs.h. */
15500_ACEOF
15501cat confdefs.h >>conftest.$ac_ext
15502cat >>conftest.$ac_ext <<_ACEOF
15503/* end confdefs.h. */
15504$ac_includes_default
15505int
15506main ()
15507{
15508static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15509test_array [0] = 0
15510
15511 ;
15512 return 0;
15513}
15514_ACEOF
15515rm -f conftest.$ac_objext
15516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15517 (eval $ac_compile) 2>conftest.er1
a848cd7e 15518 ac_status=$?
ac1cb8d3
VS
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
a848cd7e
SC
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
c228d3a4
RN
15524 { ac_try='test -z "$ac_c_werror_flag"
15525 || test ! -s conftest.err'
ac1cb8d3
VS
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; } &&
15531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_hi=$ac_mid
15538else
15539 echo "$as_me: failed program was:" >&5
15540sed 's/^/| /' conftest.$ac_ext >&5
15541
15542ac_lo=`expr '(' $ac_mid ')' + 1`
15543fi
ac1cb8d3 15544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15545done
15546case $ac_lo in
15547?*) ac_cv_sizeof_void_p=$ac_lo;;
15548'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15549See \`config.log' for more details." >&5
15550echo "$as_me: error: cannot compute sizeof (void *), 77
15551See \`config.log' for more details." >&2;}
15552 { (exit 1); exit 1; }; } ;;
15553esac
15554else
15555 if test "$cross_compiling" = yes; then
c228d3a4
RN
15556 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15557See \`config.log' for more details." >&5
15558echo "$as_me: error: cannot run test program while cross compiling
15559See \`config.log' for more details." >&2;}
a848cd7e
SC
15560 { (exit 1); exit 1; }; }
15561else
15562 cat >conftest.$ac_ext <<_ACEOF
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
15568$ac_includes_default
15569long longval () { return (long) (sizeof (void *)); }
15570unsigned long ulongval () { return (long) (sizeof (void *)); }
15571#include <stdio.h>
15572#include <stdlib.h>
15573int
15574main ()
15575{
15576
15577 FILE *f = fopen ("conftest.val", "w");
15578 if (! f)
15579 exit (1);
15580 if (((long) (sizeof (void *))) < 0)
15581 {
15582 long i = longval ();
15583 if (i != ((long) (sizeof (void *))))
15584 exit (1);
15585 fprintf (f, "%ld\n", i);
15586 }
15587 else
15588 {
15589 unsigned long i = ulongval ();
15590 if (i != ((long) (sizeof (void *))))
15591 exit (1);
15592 fprintf (f, "%lu\n", i);
15593 }
15594 exit (ferror (f) || fclose (f) != 0);
15595
15596 ;
15597 return 0;
15598}
15599_ACEOF
15600rm -f conftest$ac_exeext
15601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_cv_sizeof_void_p=`cat conftest.val`
15612else
15613 echo "$as_me: program exited with status $ac_status" >&5
15614echo "$as_me: failed program was:" >&5
15615sed 's/^/| /' conftest.$ac_ext >&5
15616
15617( exit $ac_status )
15618{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15619See \`config.log' for more details." >&5
15620echo "$as_me: error: cannot compute sizeof (void *), 77
15621See \`config.log' for more details." >&2;}
15622 { (exit 1); exit 1; }; }
15623fi
ac1cb8d3 15624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15625fi
15626fi
15627rm -f conftest.val
15628else
15629 ac_cv_sizeof_void_p=0
15630fi
15631fi
15632echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15633echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15634cat >>confdefs.h <<_ACEOF
15635#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15636_ACEOF
15637
15638
15639echo "$as_me:$LINENO: checking for int" >&5
15640echo $ECHO_N "checking for int... $ECHO_C" >&6
15641if test "${ac_cv_type_int+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15643else
15644 cat >conftest.$ac_ext <<_ACEOF
15645/* confdefs.h. */
15646_ACEOF
15647cat confdefs.h >>conftest.$ac_ext
15648cat >>conftest.$ac_ext <<_ACEOF
15649/* end confdefs.h. */
15650$ac_includes_default
15651int
15652main ()
15653{
15654if ((int *) 0)
15655 return 0;
15656if (sizeof (int))
15657 return 0;
15658 ;
15659 return 0;
15660}
15661_ACEOF
15662rm -f conftest.$ac_objext
15663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15664 (eval $ac_compile) 2>conftest.er1
a848cd7e 15665 ac_status=$?
ac1cb8d3
VS
15666 grep -v '^ *+' conftest.er1 >conftest.err
15667 rm -f conftest.er1
15668 cat conftest.err >&5
a848cd7e
SC
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
c228d3a4
RN
15671 { ac_try='test -z "$ac_c_werror_flag"
15672 || test ! -s conftest.err'
ac1cb8d3
VS
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15675 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; } &&
15678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; }; then
15684 ac_cv_type_int=yes
15685else
15686 echo "$as_me: failed program was:" >&5
15687sed 's/^/| /' conftest.$ac_ext >&5
15688
15689ac_cv_type_int=no
15690fi
ac1cb8d3 15691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15692fi
15693echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15694echo "${ECHO_T}$ac_cv_type_int" >&6
15695
15696echo "$as_me:$LINENO: checking size of int" >&5
15697echo $ECHO_N "checking size of int... $ECHO_C" >&6
15698if test "${ac_cv_sizeof_int+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700else
15701 if test "$ac_cv_type_int" = yes; then
15702 # The cast to unsigned long works around a bug in the HP C Compiler
15703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15705 # This bug is HP SR number 8606223364.
15706 if test "$cross_compiling" = yes; then
15707 # Depending upon the size, compute the lo and hi bounds.
15708cat >conftest.$ac_ext <<_ACEOF
15709/* confdefs.h. */
15710_ACEOF
15711cat confdefs.h >>conftest.$ac_ext
15712cat >>conftest.$ac_ext <<_ACEOF
15713/* end confdefs.h. */
15714$ac_includes_default
15715int
15716main ()
15717{
15718static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15719test_array [0] = 0
15720
15721 ;
15722 return 0;
15723}
15724_ACEOF
15725rm -f conftest.$ac_objext
15726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15727 (eval $ac_compile) 2>conftest.er1
a848cd7e 15728 ac_status=$?
ac1cb8d3
VS
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
a848cd7e
SC
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
c228d3a4
RN
15734 { ac_try='test -z "$ac_c_werror_flag"
15735 || test ! -s conftest.err'
ac1cb8d3
VS
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 ac_lo=0 ac_mid=0
15748 while :; do
15749 cat >conftest.$ac_ext <<_ACEOF
15750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
15755$ac_includes_default
15756int
15757main ()
15758{
15759static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15760test_array [0] = 0
15761
15762 ;
15763 return 0;
15764}
15765_ACEOF
15766rm -f conftest.$ac_objext
15767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15768 (eval $ac_compile) 2>conftest.er1
a848cd7e 15769 ac_status=$?
ac1cb8d3
VS
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
a848cd7e
SC
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
c228d3a4
RN
15775 { ac_try='test -z "$ac_c_werror_flag"
15776 || test ! -s conftest.err'
ac1cb8d3
VS
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; } &&
15782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_hi=$ac_mid; break
15789else
15790 echo "$as_me: failed program was:" >&5
15791sed 's/^/| /' conftest.$ac_ext >&5
15792
15793ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15794 if test $ac_lo -le $ac_mid; then
15795 ac_lo= ac_hi=
15796 break
15797 fi
15798 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15799fi
ac1cb8d3 15800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15801 done
15802else
15803 echo "$as_me: failed program was:" >&5
15804sed 's/^/| /' conftest.$ac_ext >&5
15805
15806cat >conftest.$ac_ext <<_ACEOF
15807/* confdefs.h. */
15808_ACEOF
15809cat confdefs.h >>conftest.$ac_ext
15810cat >>conftest.$ac_ext <<_ACEOF
15811/* end confdefs.h. */
15812$ac_includes_default
15813int
15814main ()
15815{
15816static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15817test_array [0] = 0
15818
15819 ;
15820 return 0;
15821}
15822_ACEOF
15823rm -f conftest.$ac_objext
15824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15825 (eval $ac_compile) 2>conftest.er1
a848cd7e 15826 ac_status=$?
ac1cb8d3
VS
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
a848cd7e
SC
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
c228d3a4
RN
15832 { ac_try='test -z "$ac_c_werror_flag"
15833 || test ! -s conftest.err'
ac1cb8d3
VS
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_hi=-1 ac_mid=-1
15846 while :; do
15847 cat >conftest.$ac_ext <<_ACEOF
15848/* confdefs.h. */
15849_ACEOF
15850cat confdefs.h >>conftest.$ac_ext
15851cat >>conftest.$ac_ext <<_ACEOF
15852/* end confdefs.h. */
15853$ac_includes_default
15854int
15855main ()
15856{
15857static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15858test_array [0] = 0
15859
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest.$ac_objext
15865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15866 (eval $ac_compile) 2>conftest.er1
a848cd7e 15867 ac_status=$?
ac1cb8d3
VS
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
a848cd7e
SC
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
c228d3a4
RN
15873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
ac1cb8d3
VS
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_lo=$ac_mid; break
15887else
15888 echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15892 if test $ac_mid -le $ac_hi; then
15893 ac_lo= ac_hi=
15894 break
15895 fi
15896 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15897fi
ac1cb8d3 15898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15899 done
15900else
15901 echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904ac_lo= ac_hi=
15905fi
ac1cb8d3 15906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15907fi
ac1cb8d3 15908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15909# Binary search between lo and hi bounds.
15910while test "x$ac_lo" != "x$ac_hi"; do
15911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15912 cat >conftest.$ac_ext <<_ACEOF
15913/* confdefs.h. */
15914_ACEOF
15915cat confdefs.h >>conftest.$ac_ext
15916cat >>conftest.$ac_ext <<_ACEOF
15917/* end confdefs.h. */
15918$ac_includes_default
15919int
15920main ()
15921{
15922static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15923test_array [0] = 0
15924
15925 ;
15926 return 0;
15927}
15928_ACEOF
15929rm -f conftest.$ac_objext
15930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15931 (eval $ac_compile) 2>conftest.er1
a848cd7e 15932 ac_status=$?
ac1cb8d3
VS
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
a848cd7e
SC
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
c228d3a4
RN
15938 { ac_try='test -z "$ac_c_werror_flag"
15939 || test ! -s conftest.err'
ac1cb8d3
VS
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; } &&
15945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15951 ac_hi=$ac_mid
15952else
15953 echo "$as_me: failed program was:" >&5
15954sed 's/^/| /' conftest.$ac_ext >&5
15955
15956ac_lo=`expr '(' $ac_mid ')' + 1`
15957fi
ac1cb8d3 15958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15959done
15960case $ac_lo in
15961?*) ac_cv_sizeof_int=$ac_lo;;
15962'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15963See \`config.log' for more details." >&5
15964echo "$as_me: error: cannot compute sizeof (int), 77
15965See \`config.log' for more details." >&2;}
15966 { (exit 1); exit 1; }; } ;;
15967esac
15968else
15969 if test "$cross_compiling" = yes; then
c228d3a4
RN
15970 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15971See \`config.log' for more details." >&5
15972echo "$as_me: error: cannot run test program while cross compiling
15973See \`config.log' for more details." >&2;}
a848cd7e
SC
15974 { (exit 1); exit 1; }; }
15975else
15976 cat >conftest.$ac_ext <<_ACEOF
15977/* confdefs.h. */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h. */
15982$ac_includes_default
15983long longval () { return (long) (sizeof (int)); }
15984unsigned long ulongval () { return (long) (sizeof (int)); }
15985#include <stdio.h>
15986#include <stdlib.h>
15987int
15988main ()
15989{
15990
15991 FILE *f = fopen ("conftest.val", "w");
15992 if (! f)
15993 exit (1);
15994 if (((long) (sizeof (int))) < 0)
15995 {
15996 long i = longval ();
15997 if (i != ((long) (sizeof (int))))
15998 exit (1);
15999 fprintf (f, "%ld\n", i);
16000 }
16001 else
16002 {
16003 unsigned long i = ulongval ();
16004 if (i != ((long) (sizeof (int))))
16005 exit (1);
16006 fprintf (f, "%lu\n", i);
16007 }
16008 exit (ferror (f) || fclose (f) != 0);
16009
16010 ;
16011 return 0;
16012}
16013_ACEOF
16014rm -f conftest$ac_exeext
16015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 ac_cv_sizeof_int=`cat conftest.val`
16026else
16027 echo "$as_me: program exited with status $ac_status" >&5
16028echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
16031( exit $ac_status )
16032{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16033See \`config.log' for more details." >&5
16034echo "$as_me: error: cannot compute sizeof (int), 77
16035See \`config.log' for more details." >&2;}
16036 { (exit 1); exit 1; }; }
16037fi
ac1cb8d3 16038rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16039fi
16040fi
16041rm -f conftest.val
16042else
16043 ac_cv_sizeof_int=0
16044fi
16045fi
16046echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16047echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16048cat >>confdefs.h <<_ACEOF
16049#define SIZEOF_INT $ac_cv_sizeof_int
16050_ACEOF
16051
16052
16053echo "$as_me:$LINENO: checking for long" >&5
16054echo $ECHO_N "checking for long... $ECHO_C" >&6
16055if test "${ac_cv_type_long+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057else
16058 cat >conftest.$ac_ext <<_ACEOF
16059/* confdefs.h. */
16060_ACEOF
16061cat confdefs.h >>conftest.$ac_ext
16062cat >>conftest.$ac_ext <<_ACEOF
16063/* end confdefs.h. */
16064$ac_includes_default
16065int
16066main ()
16067{
16068if ((long *) 0)
16069 return 0;
16070if (sizeof (long))
16071 return 0;
16072 ;
16073 return 0;
16074}
16075_ACEOF
16076rm -f conftest.$ac_objext
16077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16078 (eval $ac_compile) 2>conftest.er1
a848cd7e 16079 ac_status=$?
ac1cb8d3
VS
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
a848cd7e
SC
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
c228d3a4
RN
16085 { ac_try='test -z "$ac_c_werror_flag"
16086 || test ! -s conftest.err'
ac1cb8d3
VS
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_type_long=yes
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103ac_cv_type_long=no
16104fi
ac1cb8d3 16105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16106fi
16107echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16108echo "${ECHO_T}$ac_cv_type_long" >&6
16109
16110echo "$as_me:$LINENO: checking size of long" >&5
16111echo $ECHO_N "checking size of long... $ECHO_C" >&6
16112if test "${ac_cv_sizeof_long+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114else
16115 if test "$ac_cv_type_long" = yes; then
16116 # The cast to unsigned long works around a bug in the HP C Compiler
16117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16119 # This bug is HP SR number 8606223364.
16120 if test "$cross_compiling" = yes; then
16121 # Depending upon the size, compute the lo and hi bounds.
16122cat >conftest.$ac_ext <<_ACEOF
16123/* confdefs.h. */
16124_ACEOF
16125cat confdefs.h >>conftest.$ac_ext
16126cat >>conftest.$ac_ext <<_ACEOF
16127/* end confdefs.h. */
16128$ac_includes_default
16129int
16130main ()
16131{
16132static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16133test_array [0] = 0
16134
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139rm -f conftest.$ac_objext
16140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16141 (eval $ac_compile) 2>conftest.er1
a848cd7e 16142 ac_status=$?
ac1cb8d3
VS
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
a848cd7e
SC
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
c228d3a4
RN
16148 { ac_try='test -z "$ac_c_werror_flag"
16149 || test ! -s conftest.err'
ac1cb8d3
VS
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; } &&
16155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 ac_lo=0 ac_mid=0
16162 while :; do
16163 cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169$ac_includes_default
16170int
16171main ()
16172{
16173static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16174test_array [0] = 0
16175
16176 ;
16177 return 0;
16178}
16179_ACEOF
16180rm -f conftest.$ac_objext
16181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16182 (eval $ac_compile) 2>conftest.er1
a848cd7e 16183 ac_status=$?
ac1cb8d3
VS
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
a848cd7e
SC
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
c228d3a4
RN
16189 { ac_try='test -z "$ac_c_werror_flag"
16190 || test ! -s conftest.err'
ac1cb8d3
VS
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; }; then
16202 ac_hi=$ac_mid; break
16203else
16204 echo "$as_me: failed program was:" >&5
16205sed 's/^/| /' conftest.$ac_ext >&5
16206
16207ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16208 if test $ac_lo -le $ac_mid; then
16209 ac_lo= ac_hi=
16210 break
16211 fi
16212 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16213fi
ac1cb8d3 16214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16215 done
16216else
16217 echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
16220cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h. */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h. */
16226$ac_includes_default
16227int
16228main ()
16229{
16230static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16231test_array [0] = 0
16232
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16239 (eval $ac_compile) 2>conftest.er1
a848cd7e 16240 ac_status=$?
ac1cb8d3
VS
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
a848cd7e
SC
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
c228d3a4
RN
16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
ac1cb8d3
VS
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_hi=-1 ac_mid=-1
16260 while :; do
16261 cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h. */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h. */
16267$ac_includes_default
16268int
16269main ()
16270{
16271static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16272test_array [0] = 0
16273
16274 ;
16275 return 0;
16276}
16277_ACEOF
16278rm -f conftest.$ac_objext
16279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16280 (eval $ac_compile) 2>conftest.er1
a848cd7e 16281 ac_status=$?
ac1cb8d3
VS
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
a848cd7e
SC
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
c228d3a4
RN
16287 { ac_try='test -z "$ac_c_werror_flag"
16288 || test ! -s conftest.err'
ac1cb8d3
VS
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ac_lo=$ac_mid; break
16301else
16302 echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16306 if test $ac_mid -le $ac_hi; then
16307 ac_lo= ac_hi=
16308 break
16309 fi
16310 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16311fi
ac1cb8d3 16312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16313 done
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318ac_lo= ac_hi=
16319fi
ac1cb8d3 16320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16321fi
ac1cb8d3 16322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16323# Binary search between lo and hi bounds.
16324while test "x$ac_lo" != "x$ac_hi"; do
16325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16326 cat >conftest.$ac_ext <<_ACEOF
16327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
16332$ac_includes_default
16333int
16334main ()
16335{
16336static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16337test_array [0] = 0
16338
16339 ;
16340 return 0;
16341}
16342_ACEOF
16343rm -f conftest.$ac_objext
16344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16345 (eval $ac_compile) 2>conftest.er1
a848cd7e 16346 ac_status=$?
ac1cb8d3
VS
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
16349 cat conftest.err >&5
a848cd7e
SC
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
c228d3a4
RN
16352 { ac_try='test -z "$ac_c_werror_flag"
16353 || test ! -s conftest.err'
ac1cb8d3
VS
16354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355 (eval $ac_try) 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 ac_hi=$ac_mid
16366else
16367 echo "$as_me: failed program was:" >&5
16368sed 's/^/| /' conftest.$ac_ext >&5
16369
16370ac_lo=`expr '(' $ac_mid ')' + 1`
16371fi
ac1cb8d3 16372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16373done
16374case $ac_lo in
16375?*) ac_cv_sizeof_long=$ac_lo;;
16376'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16377See \`config.log' for more details." >&5
16378echo "$as_me: error: cannot compute sizeof (long), 77
16379See \`config.log' for more details." >&2;}
16380 { (exit 1); exit 1; }; } ;;
16381esac
16382else
16383 if test "$cross_compiling" = yes; then
c228d3a4
RN
16384 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16385See \`config.log' for more details." >&5
16386echo "$as_me: error: cannot run test program while cross compiling
16387See \`config.log' for more details." >&2;}
a848cd7e
SC
16388 { (exit 1); exit 1; }; }
16389else
16390 cat >conftest.$ac_ext <<_ACEOF
16391/* confdefs.h. */
16392_ACEOF
16393cat confdefs.h >>conftest.$ac_ext
16394cat >>conftest.$ac_ext <<_ACEOF
16395/* end confdefs.h. */
16396$ac_includes_default
16397long longval () { return (long) (sizeof (long)); }
16398unsigned long ulongval () { return (long) (sizeof (long)); }
16399#include <stdio.h>
16400#include <stdlib.h>
16401int
16402main ()
16403{
16404
16405 FILE *f = fopen ("conftest.val", "w");
16406 if (! f)
16407 exit (1);
16408 if (((long) (sizeof (long))) < 0)
16409 {
16410 long i = longval ();
16411 if (i != ((long) (sizeof (long))))
16412 exit (1);
16413 fprintf (f, "%ld\n", i);
16414 }
16415 else
16416 {
16417 unsigned long i = ulongval ();
16418 if (i != ((long) (sizeof (long))))
16419 exit (1);
16420 fprintf (f, "%lu\n", i);
16421 }
16422 exit (ferror (f) || fclose (f) != 0);
16423
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428rm -f conftest$ac_exeext
16429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430 (eval $ac_link) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 ac_cv_sizeof_long=`cat conftest.val`
16440else
16441 echo "$as_me: program exited with status $ac_status" >&5
16442echo "$as_me: failed program was:" >&5
16443sed 's/^/| /' conftest.$ac_ext >&5
16444
16445( exit $ac_status )
16446{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16447See \`config.log' for more details." >&5
16448echo "$as_me: error: cannot compute sizeof (long), 77
16449See \`config.log' for more details." >&2;}
16450 { (exit 1); exit 1; }; }
16451fi
ac1cb8d3 16452rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16453fi
16454fi
16455rm -f conftest.val
16456else
16457 ac_cv_sizeof_long=0
16458fi
16459fi
16460echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16461echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16462cat >>confdefs.h <<_ACEOF
16463#define SIZEOF_LONG $ac_cv_sizeof_long
16464_ACEOF
16465
16466
16467echo "$as_me:$LINENO: checking for size_t" >&5
16468echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16469if test "${ac_cv_type_size_t+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471else
16472 cat >conftest.$ac_ext <<_ACEOF
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478$ac_includes_default
16479int
16480main ()
16481{
16482if ((size_t *) 0)
16483 return 0;
16484if (sizeof (size_t))
16485 return 0;
16486 ;
16487 return 0;
16488}
16489_ACEOF
16490rm -f conftest.$ac_objext
16491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16492 (eval $ac_compile) 2>conftest.er1
a848cd7e 16493 ac_status=$?
ac1cb8d3
VS
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
a848cd7e
SC
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
c228d3a4
RN
16499 { ac_try='test -z "$ac_c_werror_flag"
16500 || test ! -s conftest.err'
ac1cb8d3
VS
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 ac_cv_type_size_t=yes
16513else
16514 echo "$as_me: failed program was:" >&5
16515sed 's/^/| /' conftest.$ac_ext >&5
16516
16517ac_cv_type_size_t=no
16518fi
ac1cb8d3 16519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16520fi
16521echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16522echo "${ECHO_T}$ac_cv_type_size_t" >&6
16523
16524echo "$as_me:$LINENO: checking size of size_t" >&5
16525echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16526if test "${ac_cv_sizeof_size_t+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528else
16529 if test "$ac_cv_type_size_t" = yes; then
16530 # The cast to unsigned long works around a bug in the HP C Compiler
16531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16533 # This bug is HP SR number 8606223364.
16534 if test "$cross_compiling" = yes; then
16535 # Depending upon the size, compute the lo and hi bounds.
16536cat >conftest.$ac_ext <<_ACEOF
16537/* confdefs.h. */
16538_ACEOF
16539cat confdefs.h >>conftest.$ac_ext
16540cat >>conftest.$ac_ext <<_ACEOF
16541/* end confdefs.h. */
16542$ac_includes_default
16543int
16544main ()
16545{
16546static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16547test_array [0] = 0
16548
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); } &&
c228d3a4
RN
16562 { ac_try='test -z "$ac_c_werror_flag"
16563 || test ! -s conftest.err'
ac1cb8d3
VS
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; } &&
16569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
16575 ac_lo=0 ac_mid=0
16576 while :; do
16577 cat >conftest.$ac_ext <<_ACEOF
16578/* confdefs.h. */
16579_ACEOF
16580cat confdefs.h >>conftest.$ac_ext
16581cat >>conftest.$ac_ext <<_ACEOF
16582/* end confdefs.h. */
16583$ac_includes_default
16584int
16585main ()
16586{
16587static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16588test_array [0] = 0
16589
16590 ;
16591 return 0;
16592}
16593_ACEOF
16594rm -f conftest.$ac_objext
16595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16596 (eval $ac_compile) 2>conftest.er1
a848cd7e 16597 ac_status=$?
ac1cb8d3
VS
16598 grep -v '^ *+' conftest.er1 >conftest.err
16599 rm -f conftest.er1
16600 cat conftest.err >&5
a848cd7e
SC
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
c228d3a4
RN
16603 { ac_try='test -z "$ac_c_werror_flag"
16604 || test ! -s conftest.err'
ac1cb8d3
VS
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_hi=$ac_mid; break
16617else
16618 echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
16621ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16622 if test $ac_lo -le $ac_mid; then
16623 ac_lo= ac_hi=
16624 break
16625 fi
16626 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16627fi
ac1cb8d3 16628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16629 done
16630else
16631 echo "$as_me: failed program was:" >&5
16632sed 's/^/| /' conftest.$ac_ext >&5
16633
16634cat >conftest.$ac_ext <<_ACEOF
16635/* confdefs.h. */
16636_ACEOF
16637cat confdefs.h >>conftest.$ac_ext
16638cat >>conftest.$ac_ext <<_ACEOF
16639/* end confdefs.h. */
16640$ac_includes_default
16641int
16642main ()
16643{
16644static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16645test_array [0] = 0
16646
16647 ;
16648 return 0;
16649}
16650_ACEOF
16651rm -f conftest.$ac_objext
16652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16653 (eval $ac_compile) 2>conftest.er1
a848cd7e 16654 ac_status=$?
ac1cb8d3
VS
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
a848cd7e
SC
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
c228d3a4
RN
16660 { ac_try='test -z "$ac_c_werror_flag"
16661 || test ! -s conftest.err'
ac1cb8d3
VS
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_hi=-1 ac_mid=-1
16674 while :; do
16675 cat >conftest.$ac_ext <<_ACEOF
16676/* confdefs.h. */
16677_ACEOF
16678cat confdefs.h >>conftest.$ac_ext
16679cat >>conftest.$ac_ext <<_ACEOF
16680/* end confdefs.h. */
16681$ac_includes_default
16682int
16683main ()
16684{
16685static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16686test_array [0] = 0
16687
16688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext
16693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16694 (eval $ac_compile) 2>conftest.er1
a848cd7e 16695 ac_status=$?
ac1cb8d3
VS
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
a848cd7e
SC
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
c228d3a4
RN
16701 { ac_try='test -z "$ac_c_werror_flag"
16702 || test ! -s conftest.err'
ac1cb8d3
VS
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; } &&
16708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 ac_lo=$ac_mid; break
16715else
16716 echo "$as_me: failed program was:" >&5
16717sed 's/^/| /' conftest.$ac_ext >&5
16718
16719ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16720 if test $ac_mid -le $ac_hi; then
16721 ac_lo= ac_hi=
16722 break
16723 fi
16724 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16725fi
ac1cb8d3 16726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16727 done
16728else
16729 echo "$as_me: failed program was:" >&5
16730sed 's/^/| /' conftest.$ac_ext >&5
16731
16732ac_lo= ac_hi=
16733fi
ac1cb8d3 16734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16735fi
ac1cb8d3 16736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16737# Binary search between lo and hi bounds.
16738while test "x$ac_lo" != "x$ac_hi"; do
16739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16740 cat >conftest.$ac_ext <<_ACEOF
16741/* confdefs.h. */
16742_ACEOF
16743cat confdefs.h >>conftest.$ac_ext
16744cat >>conftest.$ac_ext <<_ACEOF
16745/* end confdefs.h. */
16746$ac_includes_default
16747int
16748main ()
16749{
16750static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16751test_array [0] = 0
16752
16753 ;
16754 return 0;
16755}
16756_ACEOF
16757rm -f conftest.$ac_objext
16758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16759 (eval $ac_compile) 2>conftest.er1
a848cd7e 16760 ac_status=$?
ac1cb8d3
VS
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
a848cd7e
SC
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
c228d3a4
RN
16766 { ac_try='test -z "$ac_c_werror_flag"
16767 || test ! -s conftest.err'
ac1cb8d3
VS
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; } &&
16773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_hi=$ac_mid
16780else
16781 echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784ac_lo=`expr '(' $ac_mid ')' + 1`
16785fi
ac1cb8d3 16786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16787done
16788case $ac_lo in
16789?*) ac_cv_sizeof_size_t=$ac_lo;;
16790'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16791See \`config.log' for more details." >&5
16792echo "$as_me: error: cannot compute sizeof (size_t), 77
16793See \`config.log' for more details." >&2;}
16794 { (exit 1); exit 1; }; } ;;
16795esac
16796else
16797 if test "$cross_compiling" = yes; then
c228d3a4
RN
16798 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16799See \`config.log' for more details." >&5
16800echo "$as_me: error: cannot run test program while cross compiling
16801See \`config.log' for more details." >&2;}
a848cd7e
SC
16802 { (exit 1); exit 1; }; }
16803else
16804 cat >conftest.$ac_ext <<_ACEOF
16805/* confdefs.h. */
16806_ACEOF
16807cat confdefs.h >>conftest.$ac_ext
16808cat >>conftest.$ac_ext <<_ACEOF
16809/* end confdefs.h. */
16810$ac_includes_default
16811long longval () { return (long) (sizeof (size_t)); }
16812unsigned long ulongval () { return (long) (sizeof (size_t)); }
16813#include <stdio.h>
16814#include <stdlib.h>
16815int
16816main ()
16817{
16818
16819 FILE *f = fopen ("conftest.val", "w");
16820 if (! f)
16821 exit (1);
16822 if (((long) (sizeof (size_t))) < 0)
16823 {
16824 long i = longval ();
16825 if (i != ((long) (sizeof (size_t))))
16826 exit (1);
16827 fprintf (f, "%ld\n", i);
16828 }
16829 else
16830 {
16831 unsigned long i = ulongval ();
16832 if (i != ((long) (sizeof (size_t))))
16833 exit (1);
16834 fprintf (f, "%lu\n", i);
16835 }
16836 exit (ferror (f) || fclose (f) != 0);
16837
16838 ;
16839 return 0;
16840}
16841_ACEOF
16842rm -f conftest$ac_exeext
16843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16844 (eval $ac_link) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_cv_sizeof_size_t=`cat conftest.val`
16854else
16855 echo "$as_me: program exited with status $ac_status" >&5
16856echo "$as_me: failed program was:" >&5
16857sed 's/^/| /' conftest.$ac_ext >&5
16858
16859( exit $ac_status )
16860{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16861See \`config.log' for more details." >&5
16862echo "$as_me: error: cannot compute sizeof (size_t), 77
16863See \`config.log' for more details." >&2;}
16864 { (exit 1); exit 1; }; }
16865fi
ac1cb8d3 16866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16867fi
16868fi
16869rm -f conftest.val
16870else
16871 ac_cv_sizeof_size_t=0
16872fi
16873fi
16874echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16875echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16876cat >>confdefs.h <<_ACEOF
16877#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16878_ACEOF
16879
16880
16881
16882case "${host}" in
16883 arm-*-linux* )
16884 echo "$as_me:$LINENO: checking for long long" >&5
16885echo $ECHO_N "checking for long long... $ECHO_C" >&6
16886if test "${ac_cv_type_long_long+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16888else
16889 cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895$ac_includes_default
16896int
16897main ()
16898{
16899if ((long long *) 0)
16900 return 0;
16901if (sizeof (long long))
16902 return 0;
16903 ;
16904 return 0;
16905}
16906_ACEOF
16907rm -f conftest.$ac_objext
16908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16909 (eval $ac_compile) 2>conftest.er1
a848cd7e 16910 ac_status=$?
ac1cb8d3
VS
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
a848cd7e
SC
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
c228d3a4
RN
16916 { ac_try='test -z "$ac_c_werror_flag"
16917 || test ! -s conftest.err'
ac1cb8d3
VS
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; } &&
16923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_type_long_long=yes
16930else
16931 echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
16934ac_cv_type_long_long=no
16935fi
ac1cb8d3 16936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16937fi
16938echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16939echo "${ECHO_T}$ac_cv_type_long_long" >&6
16940
16941echo "$as_me:$LINENO: checking size of long long" >&5
16942echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16943if test "${ac_cv_sizeof_long_long+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
16946 if test "$ac_cv_type_long_long" = yes; then
16947 # The cast to unsigned long works around a bug in the HP C Compiler
16948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16950 # This bug is HP SR number 8606223364.
16951 if test "$cross_compiling" = yes; then
16952 # Depending upon the size, compute the lo and hi bounds.
16953cat >conftest.$ac_ext <<_ACEOF
16954/* confdefs.h. */
16955_ACEOF
16956cat confdefs.h >>conftest.$ac_ext
16957cat >>conftest.$ac_ext <<_ACEOF
16958/* end confdefs.h. */
16959$ac_includes_default
16960int
16961main ()
16962{
16963static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16964test_array [0] = 0
16965
16966 ;
16967 return 0;
16968}
16969_ACEOF
16970rm -f conftest.$ac_objext
16971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16972 (eval $ac_compile) 2>conftest.er1
a848cd7e 16973 ac_status=$?
ac1cb8d3
VS
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
a848cd7e
SC
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
c228d3a4
RN
16979 { ac_try='test -z "$ac_c_werror_flag"
16980 || test ! -s conftest.err'
ac1cb8d3
VS
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; } &&
16986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16992 ac_lo=0 ac_mid=0
16993 while :; do
16994 cat >conftest.$ac_ext <<_ACEOF
16995/* confdefs.h. */
16996_ACEOF
16997cat confdefs.h >>conftest.$ac_ext
16998cat >>conftest.$ac_ext <<_ACEOF
16999/* end confdefs.h. */
17000$ac_includes_default
17001int
17002main ()
17003{
17004static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17005test_array [0] = 0
17006
17007 ;
17008 return 0;
17009}
17010_ACEOF
17011rm -f conftest.$ac_objext
17012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17013 (eval $ac_compile) 2>conftest.er1
a848cd7e 17014 ac_status=$?
ac1cb8d3
VS
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
a848cd7e
SC
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
c228d3a4
RN
17020 { ac_try='test -z "$ac_c_werror_flag"
17021 || test ! -s conftest.err'
ac1cb8d3
VS
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_hi=$ac_mid; break
17034else
17035 echo "$as_me: failed program was:" >&5
17036sed 's/^/| /' conftest.$ac_ext >&5
17037
17038ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17039 if test $ac_lo -le $ac_mid; then
17040 ac_lo= ac_hi=
17041 break
17042 fi
17043 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17044fi
ac1cb8d3 17045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17046 done
17047else
17048 echo "$as_me: failed program was:" >&5
17049sed 's/^/| /' conftest.$ac_ext >&5
17050
17051cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057$ac_includes_default
17058int
17059main ()
17060{
17061static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17062test_array [0] = 0
17063
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext
17069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17070 (eval $ac_compile) 2>conftest.er1
a848cd7e 17071 ac_status=$?
ac1cb8d3
VS
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
a848cd7e
SC
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
c228d3a4
RN
17077 { ac_try='test -z "$ac_c_werror_flag"
17078 || test ! -s conftest.err'
ac1cb8d3
VS
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_hi=-1 ac_mid=-1
17091 while :; do
17092 cat >conftest.$ac_ext <<_ACEOF
17093/* confdefs.h. */
17094_ACEOF
17095cat confdefs.h >>conftest.$ac_ext
17096cat >>conftest.$ac_ext <<_ACEOF
17097/* end confdefs.h. */
17098$ac_includes_default
17099int
17100main ()
17101{
17102static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17103test_array [0] = 0
17104
17105 ;
17106 return 0;
17107}
17108_ACEOF
17109rm -f conftest.$ac_objext
17110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17111 (eval $ac_compile) 2>conftest.er1
a848cd7e 17112 ac_status=$?
ac1cb8d3
VS
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
a848cd7e
SC
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
c228d3a4
RN
17118 { ac_try='test -z "$ac_c_werror_flag"
17119 || test ! -s conftest.err'
ac1cb8d3
VS
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_lo=$ac_mid; break
17132else
17133 echo "$as_me: failed program was:" >&5
17134sed 's/^/| /' conftest.$ac_ext >&5
17135
17136ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17137 if test $ac_mid -le $ac_hi; then
17138 ac_lo= ac_hi=
17139 break
17140 fi
17141 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17142fi
ac1cb8d3 17143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17144 done
17145else
17146 echo "$as_me: failed program was:" >&5
17147sed 's/^/| /' conftest.$ac_ext >&5
17148
17149ac_lo= ac_hi=
17150fi
ac1cb8d3 17151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17152fi
ac1cb8d3 17153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17154# Binary search between lo and hi bounds.
17155while test "x$ac_lo" != "x$ac_hi"; do
17156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17157 cat >conftest.$ac_ext <<_ACEOF
17158/* confdefs.h. */
17159_ACEOF
17160cat confdefs.h >>conftest.$ac_ext
17161cat >>conftest.$ac_ext <<_ACEOF
17162/* end confdefs.h. */
17163$ac_includes_default
17164int
17165main ()
17166{
17167static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17168test_array [0] = 0
17169
17170 ;
17171 return 0;
17172}
17173_ACEOF
17174rm -f conftest.$ac_objext
17175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17176 (eval $ac_compile) 2>conftest.er1
a848cd7e 17177 ac_status=$?
ac1cb8d3
VS
17178 grep -v '^ *+' conftest.er1 >conftest.err
17179 rm -f conftest.er1
17180 cat conftest.err >&5
a848cd7e
SC
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
c228d3a4
RN
17183 { ac_try='test -z "$ac_c_werror_flag"
17184 || test ! -s conftest.err'
ac1cb8d3
VS
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_hi=$ac_mid
17197else
17198 echo "$as_me: failed program was:" >&5
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
17201ac_lo=`expr '(' $ac_mid ')' + 1`
17202fi
ac1cb8d3 17203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17204done
17205case $ac_lo in
17206?*) ac_cv_sizeof_long_long=$ac_lo;;
17207'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17208See \`config.log' for more details." >&5
17209echo "$as_me: error: cannot compute sizeof (long long), 77
17210See \`config.log' for more details." >&2;}
17211 { (exit 1); exit 1; }; } ;;
17212esac
17213else
17214 if test "$cross_compiling" = yes; then
c228d3a4
RN
17215 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17216See \`config.log' for more details." >&5
17217echo "$as_me: error: cannot run test program while cross compiling
17218See \`config.log' for more details." >&2;}
a848cd7e
SC
17219 { (exit 1); exit 1; }; }
17220else
17221 cat >conftest.$ac_ext <<_ACEOF
17222/* confdefs.h. */
17223_ACEOF
17224cat confdefs.h >>conftest.$ac_ext
17225cat >>conftest.$ac_ext <<_ACEOF
17226/* end confdefs.h. */
17227$ac_includes_default
17228long longval () { return (long) (sizeof (long long)); }
17229unsigned long ulongval () { return (long) (sizeof (long long)); }
17230#include <stdio.h>
17231#include <stdlib.h>
17232int
17233main ()
17234{
17235
17236 FILE *f = fopen ("conftest.val", "w");
17237 if (! f)
17238 exit (1);
17239 if (((long) (sizeof (long long))) < 0)
17240 {
17241 long i = longval ();
17242 if (i != ((long) (sizeof (long long))))
17243 exit (1);
17244 fprintf (f, "%ld\n", i);
17245 }
17246 else
17247 {
17248 unsigned long i = ulongval ();
17249 if (i != ((long) (sizeof (long long))))
17250 exit (1);
17251 fprintf (f, "%lu\n", i);
17252 }
17253 exit (ferror (f) || fclose (f) != 0);
17254
17255 ;
17256 return 0;
17257}
17258_ACEOF
17259rm -f conftest$ac_exeext
17260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261 (eval $ac_link) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_sizeof_long_long=`cat conftest.val`
17271else
17272 echo "$as_me: program exited with status $ac_status" >&5
17273echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276( exit $ac_status )
17277{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17278See \`config.log' for more details." >&5
17279echo "$as_me: error: cannot compute sizeof (long long), 77
17280See \`config.log' for more details." >&2;}
17281 { (exit 1); exit 1; }; }
17282fi
ac1cb8d3 17283rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17284fi
17285fi
17286rm -f conftest.val
17287else
17288 ac_cv_sizeof_long_long=0
17289fi
17290fi
17291echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17292echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17293cat >>confdefs.h <<_ACEOF
17294#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17295_ACEOF
17296
17297
17298 ;;
17299 *-hp-hpux* )
17300 echo "$as_me:$LINENO: checking for long long" >&5
17301echo $ECHO_N "checking for long long... $ECHO_C" >&6
17302if test "${ac_cv_type_long_long+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304else
17305 cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311$ac_includes_default
17312int
17313main ()
17314{
17315if ((long long *) 0)
17316 return 0;
17317if (sizeof (long long))
17318 return 0;
17319 ;
17320 return 0;
17321}
17322_ACEOF
17323rm -f conftest.$ac_objext
17324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17325 (eval $ac_compile) 2>conftest.er1
a848cd7e 17326 ac_status=$?
ac1cb8d3
VS
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
a848cd7e
SC
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
c228d3a4
RN
17332 { ac_try='test -z "$ac_c_werror_flag"
17333 || test ! -s conftest.err'
ac1cb8d3
VS
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17336 ac_status=$?
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; } &&
17339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; }; then
17345 ac_cv_type_long_long=yes
17346else
17347 echo "$as_me: failed program was:" >&5
17348sed 's/^/| /' conftest.$ac_ext >&5
17349
17350ac_cv_type_long_long=no
17351fi
ac1cb8d3 17352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17353fi
17354echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17355echo "${ECHO_T}$ac_cv_type_long_long" >&6
17356
17357echo "$as_me:$LINENO: checking size of long long" >&5
17358echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17359if test "${ac_cv_sizeof_long_long+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361else
17362 if test "$ac_cv_type_long_long" = yes; then
17363 # The cast to unsigned long works around a bug in the HP C Compiler
17364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17366 # This bug is HP SR number 8606223364.
17367 if test "$cross_compiling" = yes; then
17368 # Depending upon the size, compute the lo and hi bounds.
17369cat >conftest.$ac_ext <<_ACEOF
17370/* confdefs.h. */
17371_ACEOF
17372cat confdefs.h >>conftest.$ac_ext
17373cat >>conftest.$ac_ext <<_ACEOF
17374/* end confdefs.h. */
17375$ac_includes_default
17376int
17377main ()
17378{
17379static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17380test_array [0] = 0
17381
17382 ;
17383 return 0;
17384}
17385_ACEOF
17386rm -f conftest.$ac_objext
17387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17388 (eval $ac_compile) 2>conftest.er1
a848cd7e 17389 ac_status=$?
ac1cb8d3
VS
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
a848cd7e
SC
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
c228d3a4
RN
17395 { ac_try='test -z "$ac_c_werror_flag"
17396 || test ! -s conftest.err'
ac1cb8d3
VS
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 ac_lo=0 ac_mid=0
17409 while :; do
17410 cat >conftest.$ac_ext <<_ACEOF
17411/* confdefs.h. */
17412_ACEOF
17413cat confdefs.h >>conftest.$ac_ext
17414cat >>conftest.$ac_ext <<_ACEOF
17415/* end confdefs.h. */
17416$ac_includes_default
17417int
17418main ()
17419{
17420static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17421test_array [0] = 0
17422
17423 ;
17424 return 0;
17425}
17426_ACEOF
17427rm -f conftest.$ac_objext
17428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17429 (eval $ac_compile) 2>conftest.er1
a848cd7e 17430 ac_status=$?
ac1cb8d3
VS
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
a848cd7e
SC
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
c228d3a4
RN
17436 { ac_try='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
ac1cb8d3
VS
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 ac_hi=$ac_mid; break
17450else
17451 echo "$as_me: failed program was:" >&5
17452sed 's/^/| /' conftest.$ac_ext >&5
17453
17454ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17455 if test $ac_lo -le $ac_mid; then
17456 ac_lo= ac_hi=
17457 break
17458 fi
17459 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17460fi
ac1cb8d3 17461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17462 done
17463else
17464 echo "$as_me: failed program was:" >&5
17465sed 's/^/| /' conftest.$ac_ext >&5
17466
17467cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
17473$ac_includes_default
17474int
17475main ()
17476{
17477static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17478test_array [0] = 0
17479
17480 ;
17481 return 0;
17482}
17483_ACEOF
17484rm -f conftest.$ac_objext
17485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17486 (eval $ac_compile) 2>conftest.er1
a848cd7e 17487 ac_status=$?
ac1cb8d3
VS
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
a848cd7e
SC
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
c228d3a4
RN
17493 { ac_try='test -z "$ac_c_werror_flag"
17494 || test ! -s conftest.err'
ac1cb8d3
VS
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_hi=-1 ac_mid=-1
17507 while :; do
17508 cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h. */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h. */
17514$ac_includes_default
17515int
17516main ()
17517{
17518static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17519test_array [0] = 0
17520
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17527 (eval $ac_compile) 2>conftest.er1
a848cd7e 17528 ac_status=$?
ac1cb8d3
VS
17529 grep -v '^ *+' conftest.er1 >conftest.err
17530 rm -f conftest.er1
17531 cat conftest.err >&5
a848cd7e
SC
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
c228d3a4
RN
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
ac1cb8d3
VS
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_lo=$ac_mid; break
17548else
17549 echo "$as_me: failed program was:" >&5
17550sed 's/^/| /' conftest.$ac_ext >&5
17551
17552ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17553 if test $ac_mid -le $ac_hi; then
17554 ac_lo= ac_hi=
17555 break
17556 fi
17557 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17558fi
ac1cb8d3 17559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17560 done
17561else
17562 echo "$as_me: failed program was:" >&5
17563sed 's/^/| /' conftest.$ac_ext >&5
17564
17565ac_lo= ac_hi=
17566fi
ac1cb8d3 17567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17568fi
ac1cb8d3 17569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17570# Binary search between lo and hi bounds.
17571while test "x$ac_lo" != "x$ac_hi"; do
17572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17573 cat >conftest.$ac_ext <<_ACEOF
17574/* confdefs.h. */
17575_ACEOF
17576cat confdefs.h >>conftest.$ac_ext
17577cat >>conftest.$ac_ext <<_ACEOF
17578/* end confdefs.h. */
17579$ac_includes_default
17580int
17581main ()
17582{
17583static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17584test_array [0] = 0
17585
17586 ;
17587 return 0;
17588}
17589_ACEOF
17590rm -f conftest.$ac_objext
17591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17592 (eval $ac_compile) 2>conftest.er1
a848cd7e 17593 ac_status=$?
ac1cb8d3
VS
17594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
a848cd7e
SC
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
c228d3a4
RN
17599 { ac_try='test -z "$ac_c_werror_flag"
17600 || test ! -s conftest.err'
ac1cb8d3
VS
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; } &&
17606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 ac_hi=$ac_mid
17613else
17614 echo "$as_me: failed program was:" >&5
17615sed 's/^/| /' conftest.$ac_ext >&5
17616
17617ac_lo=`expr '(' $ac_mid ')' + 1`
17618fi
ac1cb8d3 17619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17620done
17621case $ac_lo in
17622?*) ac_cv_sizeof_long_long=$ac_lo;;
17623'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17624See \`config.log' for more details." >&5
17625echo "$as_me: error: cannot compute sizeof (long long), 77
17626See \`config.log' for more details." >&2;}
17627 { (exit 1); exit 1; }; } ;;
17628esac
17629else
17630 if test "$cross_compiling" = yes; then
c228d3a4
RN
17631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17632See \`config.log' for more details." >&5
17633echo "$as_me: error: cannot run test program while cross compiling
17634See \`config.log' for more details." >&2;}
a848cd7e
SC
17635 { (exit 1); exit 1; }; }
17636else
17637 cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
17643$ac_includes_default
17644long longval () { return (long) (sizeof (long long)); }
17645unsigned long ulongval () { return (long) (sizeof (long long)); }
17646#include <stdio.h>
17647#include <stdlib.h>
17648int
17649main ()
17650{
17651
17652 FILE *f = fopen ("conftest.val", "w");
17653 if (! f)
17654 exit (1);
17655 if (((long) (sizeof (long long))) < 0)
17656 {
17657 long i = longval ();
17658 if (i != ((long) (sizeof (long long))))
17659 exit (1);
17660 fprintf (f, "%ld\n", i);
17661 }
17662 else
17663 {
17664 unsigned long i = ulongval ();
17665 if (i != ((long) (sizeof (long long))))
17666 exit (1);
17667 fprintf (f, "%lu\n", i);
17668 }
17669 exit (ferror (f) || fclose (f) != 0);
17670
17671 ;
17672 return 0;
17673}
17674_ACEOF
17675rm -f conftest$ac_exeext
17676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17677 (eval $ac_link) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 ac_cv_sizeof_long_long=`cat conftest.val`
17687else
17688 echo "$as_me: program exited with status $ac_status" >&5
17689echo "$as_me: failed program was:" >&5
17690sed 's/^/| /' conftest.$ac_ext >&5
17691
17692( exit $ac_status )
17693{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17694See \`config.log' for more details." >&5
17695echo "$as_me: error: cannot compute sizeof (long long), 77
17696See \`config.log' for more details." >&2;}
17697 { (exit 1); exit 1; }; }
17698fi
ac1cb8d3 17699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17700fi
17701fi
17702rm -f conftest.val
17703else
17704 ac_cv_sizeof_long_long=0
17705fi
17706fi
17707echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17708echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17709cat >>confdefs.h <<_ACEOF
17710#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17711_ACEOF
17712
17713
17714 if test "$ac_cv_sizeof_long_long" != "0"; then
17715 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17716 fi
17717 ;;
17718 * )
17719 echo "$as_me:$LINENO: checking for long long" >&5
17720echo $ECHO_N "checking for long long... $ECHO_C" >&6
17721if test "${ac_cv_type_long_long+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723else
17724 cat >conftest.$ac_ext <<_ACEOF
17725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
17730$ac_includes_default
17731int
17732main ()
17733{
17734if ((long long *) 0)
17735 return 0;
17736if (sizeof (long long))
17737 return 0;
17738 ;
17739 return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext
17743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17744 (eval $ac_compile) 2>conftest.er1
a848cd7e 17745 ac_status=$?
ac1cb8d3
VS
17746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
a848cd7e
SC
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
c228d3a4
RN
17751 { ac_try='test -z "$ac_c_werror_flag"
17752 || test ! -s conftest.err'
ac1cb8d3
VS
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_type_long_long=yes
17765else
17766 echo "$as_me: failed program was:" >&5
17767sed 's/^/| /' conftest.$ac_ext >&5
17768
17769ac_cv_type_long_long=no
17770fi
ac1cb8d3 17771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17772fi
17773echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17774echo "${ECHO_T}$ac_cv_type_long_long" >&6
17775
17776echo "$as_me:$LINENO: checking size of long long" >&5
17777echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17778if test "${ac_cv_sizeof_long_long+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780else
17781 if test "$ac_cv_type_long_long" = yes; then
17782 # The cast to unsigned long works around a bug in the HP C Compiler
17783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17785 # This bug is HP SR number 8606223364.
17786 if test "$cross_compiling" = yes; then
17787 # Depending upon the size, compute the lo and hi bounds.
17788cat >conftest.$ac_ext <<_ACEOF
17789/* confdefs.h. */
17790_ACEOF
17791cat confdefs.h >>conftest.$ac_ext
17792cat >>conftest.$ac_ext <<_ACEOF
17793/* end confdefs.h. */
17794$ac_includes_default
17795int
17796main ()
17797{
17798static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17799test_array [0] = 0
17800
17801 ;
17802 return 0;
17803}
17804_ACEOF
17805rm -f conftest.$ac_objext
17806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17807 (eval $ac_compile) 2>conftest.er1
a848cd7e 17808 ac_status=$?
ac1cb8d3
VS
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
a848cd7e
SC
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
c228d3a4
RN
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
ac1cb8d3
VS
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_lo=0 ac_mid=0
17828 while :; do
17829 cat >conftest.$ac_ext <<_ACEOF
17830/* confdefs.h. */
17831_ACEOF
17832cat confdefs.h >>conftest.$ac_ext
17833cat >>conftest.$ac_ext <<_ACEOF
17834/* end confdefs.h. */
17835$ac_includes_default
17836int
17837main ()
17838{
17839static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17840test_array [0] = 0
17841
17842 ;
17843 return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext
17847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17848 (eval $ac_compile) 2>conftest.er1
a848cd7e 17849 ac_status=$?
ac1cb8d3
VS
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
a848cd7e
SC
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
c228d3a4
RN
17855 { ac_try='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
ac1cb8d3
VS
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_hi=$ac_mid; break
17869else
17870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
17873ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17874 if test $ac_lo -le $ac_mid; then
17875 ac_lo= ac_hi=
17876 break
17877 fi
17878 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17879fi
ac1cb8d3 17880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17881 done
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886cat >conftest.$ac_ext <<_ACEOF
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
17892$ac_includes_default
17893int
17894main ()
17895{
17896static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17897test_array [0] = 0
17898
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903rm -f conftest.$ac_objext
17904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17905 (eval $ac_compile) 2>conftest.er1
a848cd7e 17906 ac_status=$?
ac1cb8d3
VS
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
a848cd7e
SC
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
c228d3a4
RN
17912 { ac_try='test -z "$ac_c_werror_flag"
17913 || test ! -s conftest.err'
ac1cb8d3
VS
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 ac_hi=-1 ac_mid=-1
17926 while :; do
17927 cat >conftest.$ac_ext <<_ACEOF
17928/* confdefs.h. */
17929_ACEOF
17930cat confdefs.h >>conftest.$ac_ext
17931cat >>conftest.$ac_ext <<_ACEOF
17932/* end confdefs.h. */
17933$ac_includes_default
17934int
17935main ()
17936{
17937static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17938test_array [0] = 0
17939
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944rm -f conftest.$ac_objext
17945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17946 (eval $ac_compile) 2>conftest.er1
a848cd7e 17947 ac_status=$?
ac1cb8d3
VS
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
17950 cat conftest.err >&5
a848cd7e
SC
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
c228d3a4
RN
17953 { ac_try='test -z "$ac_c_werror_flag"
17954 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 ac_lo=$ac_mid; break
17967else
17968 echo "$as_me: failed program was:" >&5
17969sed 's/^/| /' conftest.$ac_ext >&5
17970
17971ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17972 if test $ac_mid -le $ac_hi; then
17973 ac_lo= ac_hi=
17974 break
17975 fi
17976 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17977fi
ac1cb8d3 17978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17979 done
17980else
17981 echo "$as_me: failed program was:" >&5
17982sed 's/^/| /' conftest.$ac_ext >&5
17983
17984ac_lo= ac_hi=
17985fi
ac1cb8d3 17986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17987fi
ac1cb8d3 17988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17989# Binary search between lo and hi bounds.
17990while test "x$ac_lo" != "x$ac_hi"; do
17991 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17992 cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h. */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h. */
17998$ac_includes_default
17999int
18000main ()
18001{
18002static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18003test_array [0] = 0
18004
18005 ;
18006 return 0;
18007}
18008_ACEOF
18009rm -f conftest.$ac_objext
18010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18011 (eval $ac_compile) 2>conftest.er1
a848cd7e 18012 ac_status=$?
ac1cb8d3
VS
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
a848cd7e
SC
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
c228d3a4
RN
18018 { ac_try='test -z "$ac_c_werror_flag"
18019 || test ! -s conftest.err'
ac1cb8d3
VS
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_hi=$ac_mid
18032else
18033 echo "$as_me: failed program was:" >&5
18034sed 's/^/| /' conftest.$ac_ext >&5
18035
18036ac_lo=`expr '(' $ac_mid ')' + 1`
18037fi
ac1cb8d3 18038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18039done
18040case $ac_lo in
18041?*) ac_cv_sizeof_long_long=$ac_lo;;
18042'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18043See \`config.log' for more details." >&5
18044echo "$as_me: error: cannot compute sizeof (long long), 77
18045See \`config.log' for more details." >&2;}
18046 { (exit 1); exit 1; }; } ;;
18047esac
18048else
18049 if test "$cross_compiling" = yes; then
c228d3a4
RN
18050 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18051See \`config.log' for more details." >&5
18052echo "$as_me: error: cannot run test program while cross compiling
18053See \`config.log' for more details." >&2;}
a848cd7e
SC
18054 { (exit 1); exit 1; }; }
18055else
18056 cat >conftest.$ac_ext <<_ACEOF
18057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
18062$ac_includes_default
18063long longval () { return (long) (sizeof (long long)); }
18064unsigned long ulongval () { return (long) (sizeof (long long)); }
18065#include <stdio.h>
18066#include <stdlib.h>
18067int
18068main ()
18069{
18070
18071 FILE *f = fopen ("conftest.val", "w");
18072 if (! f)
18073 exit (1);
18074 if (((long) (sizeof (long long))) < 0)
18075 {
18076 long i = longval ();
18077 if (i != ((long) (sizeof (long long))))
18078 exit (1);
18079 fprintf (f, "%ld\n", i);
18080 }
18081 else
18082 {
18083 unsigned long i = ulongval ();
18084 if (i != ((long) (sizeof (long long))))
18085 exit (1);
18086 fprintf (f, "%lu\n", i);
18087 }
18088 exit (ferror (f) || fclose (f) != 0);
18089
18090 ;
18091 return 0;
18092}
18093_ACEOF
18094rm -f conftest$ac_exeext
18095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18096 (eval $ac_link) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18102 ac_status=$?
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; }; then
18105 ac_cv_sizeof_long_long=`cat conftest.val`
18106else
18107 echo "$as_me: program exited with status $ac_status" >&5
18108echo "$as_me: failed program was:" >&5
18109sed 's/^/| /' conftest.$ac_ext >&5
18110
18111( exit $ac_status )
18112{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18113See \`config.log' for more details." >&5
18114echo "$as_me: error: cannot compute sizeof (long long), 77
18115See \`config.log' for more details." >&2;}
18116 { (exit 1); exit 1; }; }
18117fi
ac1cb8d3 18118rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18119fi
18120fi
18121rm -f conftest.val
18122else
18123 ac_cv_sizeof_long_long=0
18124fi
18125fi
18126echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18127echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18128cat >>confdefs.h <<_ACEOF
18129#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18130_ACEOF
18131
18132
18133esac
18134
18135echo "$as_me:$LINENO: checking size of wchar_t" >&5
18136echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18137if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18139else
18140
18141 if test "$cross_compiling" = yes; then
18142
18143 case "${host}" in
18144 *-pc-msdosdjgpp )
18145 wx_cv_sizeof_wchar_t=0
18146 ;;
18147 * )
18148 wx_cv_sizeof_wchar_t=4
18149 ;;
18150 esac
18151
18152
18153else
18154 cat >conftest.$ac_ext <<_ACEOF
18155/* confdefs.h. */
18156_ACEOF
18157cat confdefs.h >>conftest.$ac_ext
18158cat >>conftest.$ac_ext <<_ACEOF
18159/* end confdefs.h. */
18160
18161 /* DJGPP only has fake wchar_t: */
18162 #ifdef __DJGPP__
18163 # error "fake wchar_t"
18164 #endif
18165 #ifdef HAVE_WCHAR_H
18166 # ifdef __CYGWIN__
18167 # include <stddef.h>
18168 # endif
18169 # include <wchar.h>
18170 #endif
18171 #ifdef HAVE_STDLIB_H
18172 # include <stdlib.h>
18173 #endif
18174 #include <stdio.h>
18175 int main()
18176 {
18177 FILE *f=fopen("conftestval", "w");
18178 if (!f) exit(1);
18179 fprintf(f, "%i", sizeof(wchar_t));
18180 exit(0);
18181 }
18182
18183_ACEOF
18184rm -f conftest$ac_exeext
18185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186 (eval $ac_link) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 wx_cv_sizeof_wchar_t=`cat conftestval`
18196else
18197 echo "$as_me: program exited with status $ac_status" >&5
18198echo "$as_me: failed program was:" >&5
18199sed 's/^/| /' conftest.$ac_ext >&5
18200
18201( exit $ac_status )
18202wx_cv_sizeof_wchar_t=0
18203fi
ac1cb8d3 18204rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18205fi
18206
18207fi
18208echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18209echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18210
18211cat >>confdefs.h <<_ACEOF
18212#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18213_ACEOF
18214
18215
ba3d13e1
VZ
18216echo "$as_me:$LINENO: checking for va_copy" >&5
18217echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18218if test "${wx_cv_func_va_copy+set}" = set; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18220else
18221
18222 cat >conftest.$ac_ext <<_ACEOF
18223
18224 #include <stdarg.h>
18225 void foo(char *f, ...)
18226 {
18227 va_list ap1, ap2;
18228 va_start(ap1, f);
18229 va_copy(ap2, ap1);
18230 va_end(ap2);
18231 va_end(ap1);
18232 }
18233_ACEOF
18234rm -f conftest.$ac_objext conftest$ac_exeext
18235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
c228d3a4
RN
18243 { ac_try='test -z "$ac_c_werror_flag"
18244 || test ! -s conftest.err'
ba3d13e1
VZ
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 wx_cv_func_va_copy=yes
18257else
18258 echo "$as_me: failed program was:" >&5
18259sed 's/^/| /' conftest.$ac_ext >&5
18260
18261wx_cv_func_va_copy=no
18262
18263fi
18264rm -f conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266
18267
18268fi
18269echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18270echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18271
18272if test $wx_cv_func_va_copy = "yes"; then
18273 cat >>confdefs.h <<\_ACEOF
18274#define HAVE_VA_COPY 1
18275_ACEOF
18276
18277else
18278 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18279echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18280if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18282else
18283
18284 if test "$cross_compiling" = yes; then
18285 wx_cv_type_va_list_lvalue=yes
18286
18287else
18288 cat >conftest.$ac_ext <<_ACEOF
18289
18290 #include <stdarg.h>
18291 int foo(char *f, ...)
18292 {
18293 va_list ap1, ap2;
18294 va_start(ap1, f);
18295 ap2 = ap1;
18296 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18297 return 1;
18298 va_end(ap2);
18299 va_end(ap1);
18300 return 0;
18301 }
18302 int main()
18303 {
18304 return foo("hi", 17);
18305 }
18306_ACEOF
18307rm -f conftest$ac_exeext
18308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18309 (eval $ac_link) 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 wx_cv_type_va_list_lvalue=yes
18319else
18320 echo "$as_me: program exited with status $ac_status" >&5
18321echo "$as_me: failed program was:" >&5
18322sed 's/^/| /' conftest.$ac_ext >&5
18323
18324( exit $ac_status )
18325wx_cv_type_va_list_lvalue=no
18326fi
18327rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18328fi
18329
18330
18331fi
18332echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18333echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18334
18335 if test $wx_cv_type_va_list_lvalue != "yes"; then
18336 cat >>confdefs.h <<\_ACEOF
18337#define VA_LIST_IS_ARRAY 1
18338_ACEOF
18339
18340 fi
18341fi
18342
a848cd7e
SC
18343# Check whether --enable-largefile or --disable-largefile was given.
18344if test "${enable_largefile+set}" = set; then
18345 enableval="$enable_largefile"
18346
18347fi;
18348if test "$enable_largefile" != no; then
18349 wx_largefile=no
18350
18351 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18352echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18353if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18355else
18356
18357 cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
18363#define _FILE_OFFSET_BITS 64
18364 #include <sys/types.h>
18365int
18366main ()
18367{
18368typedef struct {
18369 unsigned int field: sizeof(off_t) == 8;
18370} wxlf;
18371
18372 ;
18373 return 0;
18374}
18375_ACEOF
18376rm -f conftest.$ac_objext
18377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18378 (eval $ac_compile) 2>conftest.er1
a848cd7e 18379 ac_status=$?
ac1cb8d3
VS
18380 grep -v '^ *+' conftest.er1 >conftest.err
18381 rm -f conftest.er1
18382 cat conftest.err >&5
a848cd7e
SC
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
c228d3a4
RN
18385 { ac_try='test -z "$ac_c_werror_flag"
18386 || test ! -s conftest.err'
ac1cb8d3
VS
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_sys_file_offset_bits=64
18399else
18400 echo "$as_me: failed program was:" >&5
18401sed 's/^/| /' conftest.$ac_ext >&5
18402
18403ac_cv_sys_file_offset_bits=no
18404fi
ac1cb8d3 18405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18406
18407
18408fi
18409echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18410echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18411
18412 if test "$ac_cv_sys_file_offset_bits" != no; then
18413 wx_largefile=yes
18414 cat >>confdefs.h <<_ACEOF
18415#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18416_ACEOF
18417
18418 fi
18419
18420 if test "x$wx_largefile" != "xyes"; then
18421
18422 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18423echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18424if test "${ac_cv_sys_large_files+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18426else
18427
18428 cat >conftest.$ac_ext <<_ACEOF
18429/* confdefs.h. */
18430_ACEOF
18431cat confdefs.h >>conftest.$ac_ext
18432cat >>conftest.$ac_ext <<_ACEOF
18433/* end confdefs.h. */
18434#define _LARGE_FILES 1
18435 #include <sys/types.h>
18436int
18437main ()
18438{
18439typedef struct {
18440 unsigned int field: sizeof(off_t) == 8;
18441} wxlf;
18442
18443 ;
18444 return 0;
18445}
18446_ACEOF
18447rm -f conftest.$ac_objext
18448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18449 (eval $ac_compile) 2>conftest.er1
a848cd7e 18450 ac_status=$?
ac1cb8d3
VS
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
a848cd7e
SC
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
c228d3a4
RN
18456 { ac_try='test -z "$ac_c_werror_flag"
18457 || test ! -s conftest.err'
ac1cb8d3
VS
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_sys_large_files=1
18470else
18471 echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474ac_cv_sys_large_files=no
18475fi
ac1cb8d3 18476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18477
18478
18479fi
18480echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18481echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18482
18483 if test "$ac_cv_sys_large_files" != no; then
18484 wx_largefile=yes
18485 cat >>confdefs.h <<_ACEOF
18486#define _LARGE_FILES $ac_cv_sys_large_files
18487_ACEOF
18488
18489 fi
18490
18491 fi
18492
18493 echo "$as_me:$LINENO: checking if large file support is available" >&5
18494echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18495 if test "x$wx_largefile" = "xyes"; then
18496 cat >>confdefs.h <<\_ACEOF
18497#define HAVE_LARGEFILE_SUPPORT 1
18498_ACEOF
18499
18500 fi
18501 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18502echo "${ECHO_T}$wx_largefile" >&6
18503fi
18504
18505
18506if test "x$wx_largefile" = "xyes"; then
18507 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18508 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18509 else
18510 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18511 fi
18512 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18513fi
18514
18515echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18516echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18517if test "${ac_cv_c_bigendian+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519else
18520 ac_cv_c_bigendian=unknown
18521# See if sys/param.h defines the BYTE_ORDER macro.
18522cat >conftest.$ac_ext <<_ACEOF
18523/* confdefs.h. */
18524_ACEOF
18525cat confdefs.h >>conftest.$ac_ext
18526cat >>conftest.$ac_ext <<_ACEOF
18527/* end confdefs.h. */
18528#include <sys/types.h>
18529#include <sys/param.h>
18530int
18531main ()
18532{
18533
18534#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18535 bogus endian macros
18536#endif
18537 ;
18538 return 0;
18539}
18540_ACEOF
18541rm -f conftest.$ac_objext
18542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18543 (eval $ac_compile) 2>conftest.er1
a848cd7e 18544 ac_status=$?
ac1cb8d3
VS
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
a848cd7e
SC
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
c228d3a4
RN
18550 { ac_try='test -z "$ac_c_werror_flag"
18551 || test ! -s conftest.err'
ac1cb8d3
VS
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 # It does; now see whether it defined to BIG_ENDIAN or not.
18564cat >conftest.$ac_ext <<_ACEOF
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
18570#include <sys/types.h>
18571#include <sys/param.h>
18572int
18573main ()
18574{
18575
18576#if BYTE_ORDER != BIG_ENDIAN
18577 not big endian
18578#endif
18579 ;
18580 return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext
18584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18585 (eval $ac_compile) 2>conftest.er1
a848cd7e 18586 ac_status=$?
ac1cb8d3
VS
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
a848cd7e
SC
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
c228d3a4
RN
18592 { ac_try='test -z "$ac_c_werror_flag"
18593 || test ! -s conftest.err'
ac1cb8d3
VS
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_c_bigendian=yes
18606else
18607 echo "$as_me: failed program was:" >&5
18608sed 's/^/| /' conftest.$ac_ext >&5
18609
18610ac_cv_c_bigendian=no
18611fi
ac1cb8d3 18612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18613else
18614 echo "$as_me: failed program was:" >&5
18615sed 's/^/| /' conftest.$ac_ext >&5
18616
18617fi
ac1cb8d3 18618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18619if test $ac_cv_c_bigendian = unknown; then
18620if test "$cross_compiling" = yes; then
18621 ac_cv_c_bigendian=unknown
18622else
18623 cat >conftest.$ac_ext <<_ACEOF
18624/* confdefs.h. */
18625_ACEOF
18626cat confdefs.h >>conftest.$ac_ext
18627cat >>conftest.$ac_ext <<_ACEOF
18628/* end confdefs.h. */
18629main () {
18630 /* Are we little or big endian? From Harbison&Steele. */
18631 union
18632 {
18633 long l;
18634 char c[sizeof (long)];
18635 } u;
18636 u.l = 1;
18637 exit (u.c[sizeof (long) - 1] == 1);
18638}
18639_ACEOF
18640rm -f conftest$ac_exeext
18641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18642 (eval $ac_link) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_cv_c_bigendian=no
18652else
18653 echo "$as_me: program exited with status $ac_status" >&5
18654echo "$as_me: failed program was:" >&5
18655sed 's/^/| /' conftest.$ac_ext >&5
18656
18657( exit $ac_status )
18658ac_cv_c_bigendian=yes
18659fi
ac1cb8d3 18660rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18661fi
18662fi
18663fi
18664echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18665echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18666if test $ac_cv_c_bigendian = unknown; then
18667 { 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
18668echo "$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;}
18669fi
18670if test $ac_cv_c_bigendian = yes; then
18671 cat >>confdefs.h <<\_ACEOF
18672#define WORDS_BIGENDIAN 1
18673_ACEOF
18674
18675fi
18676
18677
18678ac_ext=cc
18679ac_cpp='$CXXCPP $CPPFLAGS'
18680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18683echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18684echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18685if test -z "$CXXCPP"; then
18686 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18688else
18689 # Double quotes because CXXCPP needs to be expanded
18690 for CXXCPP in "$CXX -E" "/lib/cpp"
18691 do
18692 ac_preproc_ok=false
18693for ac_cxx_preproc_warn_flag in '' yes
18694do
18695 # Use a header file that comes with gcc, so configuring glibc
18696 # with a fresh cross-compiler works.
18697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18698 # <limits.h> exists even on freestanding compilers.
18699 # On the NeXT, cc -E runs the code through the compiler's parser,
18700 # not just through cpp. "Syntax error" is here to catch this case.
18701 cat >conftest.$ac_ext <<_ACEOF
18702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
18707#ifdef __STDC__
18708# include <limits.h>
18709#else
18710# include <assert.h>
18711#endif
ac1cb8d3 18712 Syntax error
a848cd7e
SC
18713_ACEOF
18714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18716 ac_status=$?
18717 grep -v '^ *+' conftest.er1 >conftest.err
18718 rm -f conftest.er1
18719 cat conftest.err >&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } >/dev/null; then
18722 if test -s conftest.err; then
18723 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18724 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18725 else
18726 ac_cpp_err=
18727 fi
18728else
18729 ac_cpp_err=yes
18730fi
18731if test -z "$ac_cpp_err"; then
18732 :
18733else
18734 echo "$as_me: failed program was:" >&5
18735sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 # Broken: fails on valid input.
18738continue
18739fi
18740rm -f conftest.err conftest.$ac_ext
18741
18742 # OK, works on sane cases. Now check whether non-existent headers
18743 # can be detected and how.
18744 cat >conftest.$ac_ext <<_ACEOF
18745/* confdefs.h. */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h. */
18750#include <ac_nonexistent.h>
18751_ACEOF
18752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } >/dev/null; then
18760 if test -s conftest.err; then
18761 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18762 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18763 else
18764 ac_cpp_err=
18765 fi
18766else
18767 ac_cpp_err=yes
18768fi
18769if test -z "$ac_cpp_err"; then
18770 # Broken: success on invalid input.
18771continue
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 # Passes both tests.
18777ac_preproc_ok=:
18778break
18779fi
18780rm -f conftest.err conftest.$ac_ext
18781
18782done
18783# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18784rm -f conftest.err conftest.$ac_ext
18785if $ac_preproc_ok; then
18786 break
18787fi
18788
18789 done
18790 ac_cv_prog_CXXCPP=$CXXCPP
18791
18792fi
18793 CXXCPP=$ac_cv_prog_CXXCPP
18794else
18795 ac_cv_prog_CXXCPP=$CXXCPP
18796fi
18797echo "$as_me:$LINENO: result: $CXXCPP" >&5
18798echo "${ECHO_T}$CXXCPP" >&6
18799ac_preproc_ok=false
18800for ac_cxx_preproc_warn_flag in '' yes
18801do
18802 # Use a header file that comes with gcc, so configuring glibc
18803 # with a fresh cross-compiler works.
18804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18805 # <limits.h> exists even on freestanding compilers.
18806 # On the NeXT, cc -E runs the code through the compiler's parser,
18807 # not just through cpp. "Syntax error" is here to catch this case.
18808 cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h. */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
18813/* end confdefs.h. */
18814#ifdef __STDC__
18815# include <limits.h>
18816#else
18817# include <assert.h>
18818#endif
ac1cb8d3 18819 Syntax error
a848cd7e
SC
18820_ACEOF
18821if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18823 ac_status=$?
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } >/dev/null; then
18829 if test -s conftest.err; then
18830 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18831 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18832 else
18833 ac_cpp_err=
18834 fi
18835else
18836 ac_cpp_err=yes
18837fi
18838if test -z "$ac_cpp_err"; then
18839 :
18840else
18841 echo "$as_me: failed program was:" >&5
18842sed 's/^/| /' conftest.$ac_ext >&5
18843
18844 # Broken: fails on valid input.
18845continue
18846fi
18847rm -f conftest.err conftest.$ac_ext
18848
18849 # OK, works on sane cases. Now check whether non-existent headers
18850 # can be detected and how.
18851 cat >conftest.$ac_ext <<_ACEOF
18852/* confdefs.h. */
18853_ACEOF
18854cat confdefs.h >>conftest.$ac_ext
18855cat >>conftest.$ac_ext <<_ACEOF
18856/* end confdefs.h. */
18857#include <ac_nonexistent.h>
18858_ACEOF
18859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18861 ac_status=$?
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } >/dev/null; then
18867 if test -s conftest.err; then
18868 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18869 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18870 else
18871 ac_cpp_err=
18872 fi
18873else
18874 ac_cpp_err=yes
18875fi
18876if test -z "$ac_cpp_err"; then
18877 # Broken: success on invalid input.
18878continue
18879else
18880 echo "$as_me: failed program was:" >&5
18881sed 's/^/| /' conftest.$ac_ext >&5
18882
18883 # Passes both tests.
18884ac_preproc_ok=:
18885break
18886fi
18887rm -f conftest.err conftest.$ac_ext
18888
18889done
18890# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18891rm -f conftest.err conftest.$ac_ext
18892if $ac_preproc_ok; then
18893 :
18894else
18895 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18896See \`config.log' for more details." >&5
18897echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18898See \`config.log' for more details." >&2;}
18899 { (exit 1); exit 1; }; }
18900fi
18901
18902ac_ext=cc
18903ac_cpp='$CXXCPP $CPPFLAGS'
18904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18907
18908
18909
18910
18911
18912 ac_ext=cc
18913ac_cpp='$CXXCPP $CPPFLAGS'
18914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18917
18918
18919
18920for ac_header in iostream
18921do
18922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18923if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924 echo "$as_me:$LINENO: checking for $ac_header" >&5
18925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18926if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928fi
18929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18931else
18932 # Is the header compilable?
18933echo "$as_me:$LINENO: checking $ac_header usability" >&5
18934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18935cat >conftest.$ac_ext <<_ACEOF
18936/* confdefs.h. */
18937_ACEOF
18938cat confdefs.h >>conftest.$ac_ext
18939cat >>conftest.$ac_ext <<_ACEOF
18940/* end confdefs.h. */
18941$ac_includes_default
18942#include <$ac_header>
18943_ACEOF
18944rm -f conftest.$ac_objext
18945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18946 (eval $ac_compile) 2>conftest.er1
a848cd7e 18947 ac_status=$?
ac1cb8d3
VS
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
a848cd7e
SC
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
c228d3a4
RN
18953 { ac_try='test -z "$ac_cxx_werror_flag"
18954 || test ! -s conftest.err'
ac1cb8d3
VS
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_header_compiler=yes
18967else
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
18971ac_header_compiler=no
18972fi
ac1cb8d3 18973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975echo "${ECHO_T}$ac_header_compiler" >&6
18976
18977# Is the header present?
18978echo "$as_me:$LINENO: checking $ac_header presence" >&5
18979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18980cat >conftest.$ac_ext <<_ACEOF
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986#include <$ac_header>
18987_ACEOF
18988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null; then
18996 if test -s conftest.err; then
18997 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18998 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18999 else
19000 ac_cpp_err=
19001 fi
19002else
19003 ac_cpp_err=yes
19004fi
19005if test -z "$ac_cpp_err"; then
19006 ac_header_preproc=yes
19007else
19008 echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 ac_header_preproc=no
19012fi
19013rm -f conftest.err conftest.$ac_ext
19014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015echo "${ECHO_T}$ac_header_preproc" >&6
19016
19017# So? What about this header?
ac1cb8d3
VS
19018case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19019 yes:no: )
a848cd7e
SC
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19024 ac_header_preproc=yes
a848cd7e 19025 ;;
ac1cb8d3 19026 no:yes:* )
a848cd7e
SC
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19039 (
19040 cat <<\_ASBOX
ac1cb8d3
VS
19041## ----------------------------------------- ##
19042## Report this to wx-dev@lists.wxwidgets.org ##
19043## ----------------------------------------- ##
a848cd7e
SC
19044_ASBOX
19045 ) |
19046 sed "s/^/$as_me: WARNING: /" >&2
19047 ;;
19048esac
19049echo "$as_me:$LINENO: checking for $ac_header" >&5
19050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19051if eval "test \"\${$as_ac_Header+set}\" = set"; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053else
ac1cb8d3 19054 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19055fi
19056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19058
19059fi
19060if test `eval echo '${'$as_ac_Header'}'` = yes; then
19061 cat >>confdefs.h <<_ACEOF
19062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19063_ACEOF
19064
19065fi
19066
19067done
19068
19069
19070 if test "$ac_cv_header_iostream" = "yes" ; then
19071 :
19072 else
19073 cat >>confdefs.h <<\_ACEOF
19074#define wxUSE_IOSTREAMH 1
19075_ACEOF
19076
19077 fi
19078
19079 ac_ext=c
19080ac_cpp='$CPP $CPPFLAGS'
19081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19083ac_compiler_gnu=$ac_cv_c_compiler_gnu
19084
19085
19086
19087
19088 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19089echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19090if test "${wx_cv_cpp_bool+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19092else
19093
19094
19095
19096 ac_ext=cc
19097ac_cpp='$CXXCPP $CPPFLAGS'
19098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19101
19102
19103 cat >conftest.$ac_ext <<_ACEOF
19104/* confdefs.h. */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h. */
19109
19110
19111int
19112main ()
19113{
19114
19115 bool b = true;
19116
19117 return 0;
19118
19119 ;
19120 return 0;
19121}
19122_ACEOF
19123rm -f conftest.$ac_objext
19124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19125 (eval $ac_compile) 2>conftest.er1
a848cd7e 19126 ac_status=$?
ac1cb8d3
VS
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
a848cd7e
SC
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
c228d3a4
RN
19132 { ac_try='test -z "$ac_cxx_werror_flag"
19133 || test ! -s conftest.err'
ac1cb8d3
VS
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145
19146 wx_cv_cpp_bool=yes
19147
19148else
19149 echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
19152
19153 wx_cv_cpp_bool=no
19154
19155
19156fi
ac1cb8d3 19157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19158
19159 ac_ext=c
19160ac_cpp='$CPP $CPPFLAGS'
19161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163ac_compiler_gnu=$ac_cv_c_compiler_gnu
19164
19165
19166fi
19167echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19168echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19169
19170 if test "$wx_cv_cpp_bool" = "yes"; then
19171 cat >>confdefs.h <<\_ACEOF
19172#define HAVE_BOOL 1
19173_ACEOF
19174
19175 fi
19176
19177
19178
19179 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19180echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19181if test "${wx_cv_explicit+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183else
19184
19185
19186
19187 ac_ext=cc
19188ac_cpp='$CXXCPP $CPPFLAGS'
19189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19192
19193
19194 cat >conftest.$ac_ext <<_ACEOF
19195/* confdefs.h. */
19196_ACEOF
19197cat confdefs.h >>conftest.$ac_ext
19198cat >>conftest.$ac_ext <<_ACEOF
19199/* end confdefs.h. */
19200
19201 class Foo { public: explicit Foo(int) {} };
19202
19203int
19204main ()
19205{
19206
19207 return 0;
19208
19209 ;
19210 return 0;
19211}
19212_ACEOF
19213rm -f conftest.$ac_objext
19214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19215 (eval $ac_compile) 2>conftest.er1
a848cd7e 19216 ac_status=$?
ac1cb8d3
VS
19217 grep -v '^ *+' conftest.er1 >conftest.err
19218 rm -f conftest.er1
19219 cat conftest.err >&5
a848cd7e
SC
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
c228d3a4
RN
19222 { ac_try='test -z "$ac_cxx_werror_flag"
19223 || test ! -s conftest.err'
ac1cb8d3
VS
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235
19236 cat >conftest.$ac_ext <<_ACEOF
19237/* confdefs.h. */
19238_ACEOF
19239cat confdefs.h >>conftest.$ac_ext
19240cat >>conftest.$ac_ext <<_ACEOF
19241/* end confdefs.h. */
19242
19243 class Foo { public: explicit Foo(int) {} };
19244 static void TakeFoo(const Foo& foo) { }
19245
19246int
19247main ()
19248{
19249
19250 TakeFoo(17);
19251 return 0;
19252
19253 ;
19254 return 0;
19255}
19256_ACEOF
19257rm -f conftest.$ac_objext
19258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19259 (eval $ac_compile) 2>conftest.er1
a848cd7e 19260 ac_status=$?
ac1cb8d3
VS
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
a848cd7e
SC
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
c228d3a4
RN
19266 { ac_try='test -z "$ac_cxx_werror_flag"
19267 || test ! -s conftest.err'
ac1cb8d3
VS
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 wx_cv_explicit=no
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284wx_cv_explicit=yes
19285
19286fi
ac1cb8d3 19287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19288
19289else
19290 echo "$as_me: failed program was:" >&5
19291sed 's/^/| /' conftest.$ac_ext >&5
19292
19293wx_cv_explicit=no
19294
19295fi
ac1cb8d3 19296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19297
19298 ac_ext=c
19299ac_cpp='$CPP $CPPFLAGS'
19300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302ac_compiler_gnu=$ac_cv_c_compiler_gnu
19303
19304
19305fi
19306echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19307echo "${ECHO_T}$wx_cv_explicit" >&6
19308
19309 if test "$wx_cv_explicit" = "yes"; then
19310 cat >>confdefs.h <<\_ACEOF
19311#define HAVE_EXPLICIT 1
19312_ACEOF
19313
19314 fi
19315
19316
19317echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19318echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19319if test "${ac_cv_cxx_const_cast+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19321else
19322
19323
19324 ac_ext=cc
19325ac_cpp='$CXXCPP $CPPFLAGS'
19326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19329
19330 cat >conftest.$ac_ext <<_ACEOF
19331/* confdefs.h. */
19332_ACEOF
19333cat confdefs.h >>conftest.$ac_ext
19334cat >>conftest.$ac_ext <<_ACEOF
19335/* end confdefs.h. */
19336
19337int
19338main ()
19339{
19340int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19341 ;
19342 return 0;
19343}
19344_ACEOF
19345rm -f conftest.$ac_objext
19346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19347 (eval $ac_compile) 2>conftest.er1
a848cd7e 19348 ac_status=$?
ac1cb8d3
VS
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
a848cd7e
SC
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
c228d3a4
RN
19354 { ac_try='test -z "$ac_cxx_werror_flag"
19355 || test ! -s conftest.err'
ac1cb8d3
VS
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_cxx_const_cast=yes
19368else
19369 echo "$as_me: failed program was:" >&5
19370sed 's/^/| /' conftest.$ac_ext >&5
19371
19372ac_cv_cxx_const_cast=no
19373fi
ac1cb8d3 19374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19375 ac_ext=c
19376ac_cpp='$CPP $CPPFLAGS'
19377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380
19381
19382fi
19383echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19384echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19385if test "$ac_cv_cxx_const_cast" = yes; then
19386
19387cat >>confdefs.h <<\_ACEOF
19388#define HAVE_CONST_CAST
19389_ACEOF
19390
19391fi
19392
7714864e
RL
19393echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19394echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19395if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19397else
19398
19399
19400 ac_ext=cc
19401ac_cpp='$CXXCPP $CPPFLAGS'
19402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19405
19406 cat >conftest.$ac_ext <<_ACEOF
19407/* confdefs.h. */
19408_ACEOF
19409cat confdefs.h >>conftest.$ac_ext
19410cat >>conftest.$ac_ext <<_ACEOF
19411/* end confdefs.h. */
19412#include <typeinfo>
19413class Base { public : Base () {} virtual void f () = 0;};
19414class Derived : public Base { public : Derived () {} virtual void f () {} };
19415class Unrelated { public : Unrelated () {} };
19416int g (Unrelated&) { return 0; }
19417int
19418main ()
19419{
19420
19421Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19422 ;
19423 return 0;
19424}
19425_ACEOF
19426rm -f conftest.$ac_objext
19427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19428 (eval $ac_compile) 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
c228d3a4
RN
19435 { ac_try='test -z "$ac_cxx_werror_flag"
19436 || test ! -s conftest.err'
7714864e
RL
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_cv_cxx_reinterpret_cast=yes
19449else
19450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453ac_cv_cxx_reinterpret_cast=no
19454fi
19455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19456 ac_ext=c
19457ac_cpp='$CPP $CPPFLAGS'
19458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19460ac_compiler_gnu=$ac_cv_c_compiler_gnu
19461
19462
19463fi
19464echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19465echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19466if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19467
19468cat >>confdefs.h <<\_ACEOF
19469#define HAVE_REINTERPRET_CAST
19470_ACEOF
19471
19472fi
19473
a848cd7e
SC
19474echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19475echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19476if test "${ac_cv_cxx_static_cast+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478else
19479
19480
19481 ac_ext=cc
19482ac_cpp='$CXXCPP $CPPFLAGS'
19483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19486
19487 cat >conftest.$ac_ext <<_ACEOF
19488/* confdefs.h. */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h. */
19493#include <typeinfo>
19494class Base { public : Base () {} virtual void f () = 0; };
19495class Derived : public Base { public : Derived () {} virtual void f () {} };
19496int g (Derived&) { return 0; }
19497int
19498main ()
19499{
19500
19501Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19502 ;
19503 return 0;
19504}
19505_ACEOF
19506rm -f conftest.$ac_objext
19507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19508 (eval $ac_compile) 2>conftest.er1
a848cd7e 19509 ac_status=$?
ac1cb8d3
VS
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
a848cd7e
SC
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
c228d3a4
RN
19515 { ac_try='test -z "$ac_cxx_werror_flag"
19516 || test ! -s conftest.err'
ac1cb8d3
VS
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_cxx_static_cast=yes
19529else
19530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533ac_cv_cxx_static_cast=no
19534fi
ac1cb8d3 19535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19536 ac_ext=c
19537ac_cpp='$CPP $CPPFLAGS'
19538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540ac_compiler_gnu=$ac_cv_c_compiler_gnu
19541
19542
19543fi
19544echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19545echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19546if test "$ac_cv_cxx_static_cast" = yes; then
19547
19548cat >>confdefs.h <<\_ACEOF
19549#define HAVE_STATIC_CAST
19550_ACEOF
19551
19552fi
19553
19554
19555if test "$wxUSE_STL" = "yes"; then
19556 ac_ext=cc
19557ac_cpp='$CXXCPP $CPPFLAGS'
19558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19561
19562
19563 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19564echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19565 cat >conftest.$ac_ext <<_ACEOF
19566/* confdefs.h. */
19567_ACEOF
19568cat confdefs.h >>conftest.$ac_ext
19569cat >>conftest.$ac_ext <<_ACEOF
19570/* end confdefs.h. */
19571#include <string>
19572 #include <functional>
19573 #include <algorithm>
19574 #include <vector>
19575 #include <list>
19576int
19577main ()
19578{
19579std::vector<int> moo;
19580 std::list<int> foo;
19581 std::vector<int>::iterator it =
19582 std::find_if(moo.begin(), moo.end(),
19583 std::bind2nd(std::less<int>(), 3));
19584 ;
19585 return 0;
19586}
19587_ACEOF
19588rm -f conftest.$ac_objext
19589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19590 (eval $ac_compile) 2>conftest.er1
a848cd7e 19591 ac_status=$?
ac1cb8d3
VS
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
a848cd7e
SC
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
c228d3a4
RN
19597 { ac_try='test -z "$ac_cxx_werror_flag"
19598 || test ! -s conftest.err'
ac1cb8d3
VS
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; } &&
19604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 echo "$as_me:$LINENO: result: yes" >&5
19611echo "${ECHO_T}yes" >&6
19612else
19613 echo "$as_me: failed program was:" >&5
19614sed 's/^/| /' conftest.$ac_ext >&5
19615
19616echo "$as_me:$LINENO: result: no" >&5
19617echo "${ECHO_T}no" >&6
19618 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19619echo "$as_me: error: Basic STL functionality missing" >&2;}
19620 { (exit 1); exit 1; }; }
19621fi
ac1cb8d3 19622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19623
19624 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19625echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19626 cat >conftest.$ac_ext <<_ACEOF
19627/* confdefs.h. */
19628_ACEOF
19629cat confdefs.h >>conftest.$ac_ext
19630cat >>conftest.$ac_ext <<_ACEOF
19631/* end confdefs.h. */
19632#include <string>
19633int
19634main ()
19635{
19636std::wstring foo;
19637 ;
19638 return 0;
19639}
19640_ACEOF
19641rm -f conftest.$ac_objext
19642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19643 (eval $ac_compile) 2>conftest.er1
a848cd7e 19644 ac_status=$?
ac1cb8d3
VS
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
a848cd7e
SC
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
c228d3a4
RN
19650 { ac_try='test -z "$ac_cxx_werror_flag"
19651 || test ! -s conftest.err'
ac1cb8d3
VS
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 echo "$as_me:$LINENO: result: yes" >&5
19664echo "${ECHO_T}yes" >&6
19665 cat >>confdefs.h <<\_ACEOF
19666#define HAVE_STD_WSTRING 1
19667_ACEOF
19668
19669else
19670 echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
19673echo "$as_me:$LINENO: result: no" >&5
19674echo "${ECHO_T}no" >&6
19675fi
ac1cb8d3 19676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19677
19678 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19679echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19680 cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
19686#include <string>
19687int
19688main ()
19689{
19690std::string foo, bar;
19691 foo.compare(bar);
19692 foo.compare(1, 1, bar);
19693 foo.compare(1, 1, bar, 1, 1);
19694 foo.compare("");
19695 foo.compare(1, 1, "");
19696 foo.compare(1, 1, "", 2);
19697 ;
19698 return 0;
19699}
19700_ACEOF
19701rm -f conftest.$ac_objext
19702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19703 (eval $ac_compile) 2>conftest.er1
a848cd7e 19704 ac_status=$?
ac1cb8d3
VS
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
a848cd7e
SC
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
c228d3a4
RN
19710 { ac_try='test -z "$ac_cxx_werror_flag"
19711 || 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 echo "$as_me:$LINENO: result: yes" >&5
19724echo "${ECHO_T}yes" >&6
19725 cat >>confdefs.h <<\_ACEOF
19726#define HAVE_STD_STRING_COMPARE 1
19727_ACEOF
19728
19729else
19730 echo "$as_me: failed program was:" >&5
19731sed 's/^/| /' conftest.$ac_ext >&5
19732
19733echo "$as_me:$LINENO: result: no" >&5
19734echo "${ECHO_T}no" >&6
19735fi
ac1cb8d3 19736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19737
19738 if test "${ac_cv_header_hash_map+set}" = set; then
19739 echo "$as_me:$LINENO: checking for hash_map" >&5
19740echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19741if test "${ac_cv_header_hash_map+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743fi
19744echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19745echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19746else
19747 # Is the header compilable?
19748echo "$as_me:$LINENO: checking hash_map usability" >&5
19749echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19750cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
19756$ac_includes_default
19757#include <hash_map>
19758_ACEOF
19759rm -f conftest.$ac_objext
19760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19761 (eval $ac_compile) 2>conftest.er1
bdcade0a 19762 ac_status=$?
ac1cb8d3
VS
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
bdcade0a
MB
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
c228d3a4
RN
19768 { ac_try='test -z "$ac_cxx_werror_flag"
19769 || test ! -s conftest.err'
ac1cb8d3
VS
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_header_compiler=yes
19782else
19783 echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
19786ac_header_compiler=no
19787fi
ac1cb8d3 19788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19790echo "${ECHO_T}$ac_header_compiler" >&6
19791
19792# Is the header present?
19793echo "$as_me:$LINENO: checking hash_map presence" >&5
19794echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19795cat >conftest.$ac_ext <<_ACEOF
19796/* confdefs.h. */
19797_ACEOF
19798cat confdefs.h >>conftest.$ac_ext
19799cat >>conftest.$ac_ext <<_ACEOF
19800/* end confdefs.h. */
19801#include <hash_map>
19802_ACEOF
19803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } >/dev/null; then
19811 if test -s conftest.err; then
19812 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19813 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19814 else
19815 ac_cpp_err=
19816 fi
19817else
19818 ac_cpp_err=yes
19819fi
19820if test -z "$ac_cpp_err"; then
19821 ac_header_preproc=yes
19822else
19823 echo "$as_me: failed program was:" >&5
19824sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 ac_header_preproc=no
19827fi
19828rm -f conftest.err conftest.$ac_ext
19829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19830echo "${ECHO_T}$ac_header_preproc" >&6
19831
19832# So? What about this header?
ac1cb8d3
VS
19833case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19834 yes:no: )
bdcade0a
MB
19835 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19836echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19837 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19838echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19839 ac_header_preproc=yes
bdcade0a 19840 ;;
ac1cb8d3 19841 no:yes:* )
bdcade0a
MB
19842 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19843echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19844 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19845echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19847echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19849echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19850 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19851echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19852 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19853echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19854 (
19855 cat <<\_ASBOX
ac1cb8d3
VS
19856## ----------------------------------------- ##
19857## Report this to wx-dev@lists.wxwidgets.org ##
19858## ----------------------------------------- ##
bdcade0a
MB
19859_ASBOX
19860 ) |
19861 sed "s/^/$as_me: WARNING: /" >&2
19862 ;;
19863esac
19864echo "$as_me:$LINENO: checking for hash_map" >&5
19865echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19866if test "${ac_cv_header_hash_map+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19868else
19869 ac_cv_header_hash_map=$ac_header_preproc
19870fi
19871echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19872echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19873
19874fi
19875if test $ac_cv_header_hash_map = yes; then
19876 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19877echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19878 cat >conftest.$ac_ext <<_ACEOF
19879/* confdefs.h. */
19880_ACEOF
19881cat confdefs.h >>conftest.$ac_ext
19882cat >>conftest.$ac_ext <<_ACEOF
19883/* end confdefs.h. */
19884#include <hash_map>
19885 #include <hash_set>
19886int
19887main ()
19888{
19889std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19890 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19891 ;
19892 return 0;
19893}
19894_ACEOF
19895rm -f conftest.$ac_objext
19896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19897 (eval $ac_compile) 2>conftest.er1
bdcade0a 19898 ac_status=$?
ac1cb8d3
VS
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
bdcade0a
MB
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
c228d3a4
RN
19904 { ac_try='test -z "$ac_cxx_werror_flag"
19905 || test ! -s conftest.err'
ac1cb8d3
VS
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19917 echo "$as_me:$LINENO: result: yes" >&5
19918echo "${ECHO_T}yes" >&6
19919 cat >>confdefs.h <<\_ACEOF
19920#define HAVE_HASH_MAP 1
19921_ACEOF
19922
19923 cat >>confdefs.h <<\_ACEOF
19924#define HAVE_STD_HASH_MAP 1
19925_ACEOF
19926
19927else
19928 echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931echo "$as_me:$LINENO: result: no" >&5
19932echo "${ECHO_T}no" >&6
19933fi
ac1cb8d3 19934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19935
19936fi
19937
19938
19939
19940 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19941 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19942echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19943if test "${ac_cv_header_ext_hash_map+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19945fi
19946echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19947echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19948else
19949 # Is the header compilable?
19950echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19951echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19952cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h. */
19958$ac_includes_default
19959#include <ext/hash_map>
19960_ACEOF
19961rm -f conftest.$ac_objext
19962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19963 (eval $ac_compile) 2>conftest.er1
bdcade0a 19964 ac_status=$?
ac1cb8d3
VS
19965 grep -v '^ *+' conftest.er1 >conftest.err
19966 rm -f conftest.er1
19967 cat conftest.err >&5
bdcade0a
MB
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } &&
c228d3a4
RN
19970 { ac_try='test -z "$ac_cxx_werror_flag"
19971 || test ! -s conftest.err'
ac1cb8d3
VS
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; } &&
19977 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 ac_header_compiler=yes
19984else
19985 echo "$as_me: failed program was:" >&5
19986sed 's/^/| /' conftest.$ac_ext >&5
19987
19988ac_header_compiler=no
19989fi
ac1cb8d3 19990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19992echo "${ECHO_T}$ac_header_compiler" >&6
19993
19994# Is the header present?
19995echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19996echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19997cat >conftest.$ac_ext <<_ACEOF
19998/* confdefs.h. */
19999_ACEOF
20000cat confdefs.h >>conftest.$ac_ext
20001cat >>conftest.$ac_ext <<_ACEOF
20002/* end confdefs.h. */
20003#include <ext/hash_map>
20004_ACEOF
20005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } >/dev/null; then
20013 if test -s conftest.err; then
20014 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20015 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20016 else
20017 ac_cpp_err=
20018 fi
20019else
20020 ac_cpp_err=yes
20021fi
20022if test -z "$ac_cpp_err"; then
20023 ac_header_preproc=yes
20024else
20025 echo "$as_me: failed program was:" >&5
20026sed 's/^/| /' conftest.$ac_ext >&5
20027
20028 ac_header_preproc=no
20029fi
20030rm -f conftest.err conftest.$ac_ext
20031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20032echo "${ECHO_T}$ac_header_preproc" >&6
20033
20034# So? What about this header?
ac1cb8d3
VS
20035case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20036 yes:no: )
bdcade0a
MB
20037 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20038echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20039 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20040echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20041 ac_header_preproc=yes
bdcade0a 20042 ;;
ac1cb8d3 20043 no:yes:* )
bdcade0a
MB
20044 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20045echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20046 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20047echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20049echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20050 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20051echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20052 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20053echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20054 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20055echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20056 (
20057 cat <<\_ASBOX
ac1cb8d3
VS
20058## ----------------------------------------- ##
20059## Report this to wx-dev@lists.wxwidgets.org ##
20060## ----------------------------------------- ##
bdcade0a
MB
20061_ASBOX
20062 ) |
20063 sed "s/^/$as_me: WARNING: /" >&2
20064 ;;
20065esac
20066echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20067echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20068if test "${ac_cv_header_ext_hash_map+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20070else
20071 ac_cv_header_ext_hash_map=$ac_header_preproc
20072fi
20073echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20074echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20075
20076fi
20077if test $ac_cv_header_ext_hash_map = yes; then
20078 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20079echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20080 cat >conftest.$ac_ext <<_ACEOF
20081/* confdefs.h. */
20082_ACEOF
20083cat confdefs.h >>conftest.$ac_ext
20084cat >>conftest.$ac_ext <<_ACEOF
20085/* end confdefs.h. */
20086#include <ext/hash_map>
20087 #include <ext/hash_set>
20088int
20089main ()
20090{
20091__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20092 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20093 ;
20094 return 0;
20095}
20096_ACEOF
20097rm -f conftest.$ac_objext
20098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20099 (eval $ac_compile) 2>conftest.er1
bdcade0a 20100 ac_status=$?
ac1cb8d3
VS
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
bdcade0a
MB
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
c228d3a4
RN
20106 { ac_try='test -z "$ac_cxx_werror_flag"
20107 || test ! -s conftest.err'
ac1cb8d3
VS
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; } &&
20113 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 echo "$as_me:$LINENO: result: yes" >&5
20120echo "${ECHO_T}yes" >&6
20121 cat >>confdefs.h <<\_ACEOF
20122#define HAVE_EXT_HASH_MAP 1
20123_ACEOF
20124
20125 cat >>confdefs.h <<\_ACEOF
20126#define HAVE_GNU_CXX_HASH_MAP 1
20127_ACEOF
20128
20129else
20130 echo "$as_me: failed program was:" >&5
20131sed 's/^/| /' conftest.$ac_ext >&5
20132
20133echo "$as_me:$LINENO: result: no" >&5
20134echo "${ECHO_T}no" >&6
20135fi
ac1cb8d3 20136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20137
20138fi
20139
20140
a848cd7e
SC
20141
20142 ac_ext=c
20143ac_cpp='$CPP $CPPFLAGS'
20144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20146ac_compiler_gnu=$ac_cv_c_compiler_gnu
20147
20148fi
20149
20150
20151SEARCH_INCLUDE="\
20152 /usr/local/include \
20153 \
20154 /usr/Motif-2.1/include \
20155 /usr/Motif-1.2/include \
20156 /usr/include/Motif1.2 \
20157 /opt/xpm/include/X11 \
20158 /opt/GBxpm/include/ \
20159 /opt/GBxpm/X11/include/ \
20160 \
20161 /usr/dt/include \
20162 /usr/openwin/include \
20163 \
20164 /usr/include/Xm \
20165 \
20166 /usr/X11R6/include \
20167 /usr/X11R6.4/include \
20168 /usr/X11R5/include \
20169 /usr/X11R4/include \
20170 \
20171 /usr/include/X11R6 \
20172 /usr/include/X11R5 \
20173 /usr/include/X11R4 \
20174 \
20175 /usr/local/X11R6/include \
20176 /usr/local/X11R5/include \
20177 /usr/local/X11R4/include \
20178 \
20179 /usr/local/include/X11R6 \
20180 /usr/local/include/X11R5 \
20181 /usr/local/include/X11R4 \
20182 \
20183 /usr/X11/include \
20184 /usr/include/X11 \
20185 /usr/local/X11/include \
20186 /usr/local/include/X11 \
20187 \
20188 /usr/X386/include \
20189 /usr/x386/include \
20190 /usr/XFree86/include/X11 \
20191 \
20192 X:/XFree86/include \
20193 X:/XFree86/include/X11 \
20194 \
20195 /usr/include/gtk \
20196 /usr/local/include/gtk \
20197 /usr/include/glib \
20198 /usr/local/include/glib \
20199 \
20200 /usr/include/qt \
20201 /usr/local/include/qt \
20202 \
20203 /usr/local/arm/3.3.2/include \
20204 \
20205 /usr/include/windows \
20206 /usr/include/wine \
20207 /usr/local/include/wine \
20208 \
20209 /usr/unsupported/include \
20210 /usr/athena/include \
20211 /usr/local/x11r5/include \
20212 /usr/lpp/Xamples/include \
20213 \
20214 /usr/openwin/share/include"
20215
20216SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20217
20218
20219cat >confcache <<\_ACEOF
20220# This file is a shell script that caches the results of configure
20221# tests run on this system so they can be shared between configure
20222# scripts and configure runs, see configure's option --config-cache.
20223# It is not useful on other systems. If it contains results you don't
20224# want to keep, you may remove or edit it.
20225#
20226# config.status only pays attention to the cache file if you give it
20227# the --recheck option to rerun configure.
20228#
20229# `ac_cv_env_foo' variables (set or unset) will be overridden when
20230# loading this file, other *unset* `ac_cv_foo' will be assigned the
20231# following values.
20232
20233_ACEOF
20234
20235# The following way of writing the cache mishandles newlines in values,
20236# but we know of no workaround that is simple, portable, and efficient.
20237# So, don't put newlines in cache variables' values.
20238# Ultrix sh set writes to stderr and can't be redirected directly,
20239# and sets the high bit in the cache file unless we assign to the vars.
20240{
20241 (set) 2>&1 |
20242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20243 *ac_space=\ *)
20244 # `set' does not quote correctly, so add quotes (double-quote
20245 # substitution turns \\\\ into \\, and sed turns \\ into \).
20246 sed -n \
ac1cb8d3
VS
20247 "s/'/'\\\\''/g;
20248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20249 ;;
20250 *)
20251 # `set' quotes correctly as required by POSIX, so do not add quotes.
20252 sed -n \
ac1cb8d3 20253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20254 ;;
20255 esac;
20256} |
20257 sed '
20258 t clear
20259 : clear
20260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20261 t end
20262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20263 : end' >>confcache
20264if diff $cache_file confcache >/dev/null 2>&1; then :; else
20265 if test -w $cache_file; then
20266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20267 cat confcache >$cache_file
20268 else
20269 echo "not updating unwritable cache $cache_file"
20270 fi
20271fi
20272rm -f confcache
20273
20274if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20275 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20276echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20277if test "${wx_cv_lib_glibc21+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279else
20280
20281 cat >conftest.$ac_ext <<_ACEOF
20282/* confdefs.h. */
20283_ACEOF
20284cat confdefs.h >>conftest.$ac_ext
20285cat >>conftest.$ac_ext <<_ACEOF
20286/* end confdefs.h. */
20287#include <features.h>
20288int
20289main ()
20290{
20291
20292 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20293 #error not glibc2.1
20294 #endif
20295
20296 ;
20297 return 0;
20298}
20299_ACEOF
20300rm -f conftest.$ac_objext
20301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20302 (eval $ac_compile) 2>conftest.er1
a848cd7e 20303 ac_status=$?
ac1cb8d3
VS
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
a848cd7e
SC
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
c228d3a4
RN
20309 { ac_try='test -z "$ac_c_werror_flag"
20310 || test ! -s conftest.err'
ac1cb8d3
VS
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; } &&
20316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322
20323 wx_cv_lib_glibc21=yes
20324
20325else
20326 echo "$as_me: failed program was:" >&5
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
20329
20330 wx_cv_lib_glibc21=no
20331
20332
20333fi
ac1cb8d3 20334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20335
20336fi
20337echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20338echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20339 if test "$wx_cv_lib_glibc21" = "yes"; then
20340 cat >>confdefs.h <<\_ACEOF
20341#define wxHAVE_GLIBC2 1
20342_ACEOF
20343
20344 fi
20345fi
20346
20347if test "x$wx_cv_lib_glibc21" = "xyes"; then
20348 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20349 cat >>confdefs.h <<\_ACEOF
20350#define _GNU_SOURCE 1
20351_ACEOF
20352
20353 fi
20354fi
20355
20356
20357
20358if test "$wxUSE_REGEX" != "no"; then
20359 cat >>confdefs.h <<\_ACEOF
20360#define wxUSE_REGEX 1
20361_ACEOF
20362
20363
20364 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20365 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20366echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20367 wxUSE_REGEX=builtin
20368 fi
20369
20370 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20371 if test "${ac_cv_header_regex_h+set}" = set; then
20372 echo "$as_me:$LINENO: checking for regex.h" >&5
20373echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20374if test "${ac_cv_header_regex_h+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20376fi
20377echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20378echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20379else
20380 # Is the header compilable?
20381echo "$as_me:$LINENO: checking regex.h usability" >&5
20382echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20383cat >conftest.$ac_ext <<_ACEOF
20384/* confdefs.h. */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h. */
20389$ac_includes_default
20390#include <regex.h>
20391_ACEOF
20392rm -f conftest.$ac_objext
20393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20394 (eval $ac_compile) 2>conftest.er1
a848cd7e 20395 ac_status=$?
ac1cb8d3
VS
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
a848cd7e
SC
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } &&
c228d3a4
RN
20401 { ac_try='test -z "$ac_c_werror_flag"
20402 || test ! -s conftest.err'
ac1cb8d3
VS
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; } &&
20408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_header_compiler=yes
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419ac_header_compiler=no
20420fi
ac1cb8d3 20421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20423echo "${ECHO_T}$ac_header_compiler" >&6
20424
20425# Is the header present?
20426echo "$as_me:$LINENO: checking regex.h presence" >&5
20427echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20428cat >conftest.$ac_ext <<_ACEOF
20429/* confdefs.h. */
20430_ACEOF
20431cat confdefs.h >>conftest.$ac_ext
20432cat >>conftest.$ac_ext <<_ACEOF
20433/* end confdefs.h. */
20434#include <regex.h>
20435_ACEOF
20436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } >/dev/null; then
20444 if test -s conftest.err; then
20445 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20447 else
20448 ac_cpp_err=
20449 fi
20450else
20451 ac_cpp_err=yes
20452fi
20453if test -z "$ac_cpp_err"; then
20454 ac_header_preproc=yes
20455else
20456 echo "$as_me: failed program was:" >&5
20457sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_header_preproc=no
20460fi
20461rm -f conftest.err conftest.$ac_ext
20462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20463echo "${ECHO_T}$ac_header_preproc" >&6
20464
20465# So? What about this header?
ac1cb8d3
VS
20466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20467 yes:no: )
a848cd7e
SC
20468 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20469echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20470 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20471echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20472 ac_header_preproc=yes
a848cd7e 20473 ;;
ac1cb8d3 20474 no:yes:* )
a848cd7e
SC
20475 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20476echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20477 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20478echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20480echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20481 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20482echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20483 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20484echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20485 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20486echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20487 (
20488 cat <<\_ASBOX
ac1cb8d3
VS
20489## ----------------------------------------- ##
20490## Report this to wx-dev@lists.wxwidgets.org ##
20491## ----------------------------------------- ##
a848cd7e
SC
20492_ASBOX
20493 ) |
20494 sed "s/^/$as_me: WARNING: /" >&2
20495 ;;
20496esac
20497echo "$as_me:$LINENO: checking for regex.h" >&5
20498echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20499if test "${ac_cv_header_regex_h+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20501else
20502 ac_cv_header_regex_h=$ac_header_preproc
20503fi
20504echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20505echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20506
20507fi
20508if test $ac_cv_header_regex_h = yes; then
20509
20510for ac_func in regcomp
20511do
20512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20513echo "$as_me:$LINENO: checking for $ac_func" >&5
20514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20515if eval "test \"\${$as_ac_var+set}\" = set"; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518 cat >conftest.$ac_ext <<_ACEOF
20519/* confdefs.h. */
20520_ACEOF
20521cat confdefs.h >>conftest.$ac_ext
20522cat >>conftest.$ac_ext <<_ACEOF
20523/* end confdefs.h. */
ac1cb8d3
VS
20524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20526#define $ac_func innocuous_$ac_func
20527
a848cd7e
SC
20528/* System header to define __stub macros and hopefully few prototypes,
20529 which can conflict with char $ac_func (); below.
20530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20531 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20532
a848cd7e
SC
20533#ifdef __STDC__
20534# include <limits.h>
20535#else
20536# include <assert.h>
20537#endif
ac1cb8d3
VS
20538
20539#undef $ac_func
20540
a848cd7e
SC
20541/* Override any gcc2 internal prototype to avoid an error. */
20542#ifdef __cplusplus
20543extern "C"
20544{
20545#endif
20546/* We use char because int might match the return type of a gcc2
20547 builtin and then its argument prototype would still apply. */
20548char $ac_func ();
20549/* The GNU C library defines this for functions which it implements
20550 to always fail with ENOSYS. Some functions are actually named
20551 something starting with __ and the normal name is an alias. */
20552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20553choke me
20554#else
20555char (*f) () = $ac_func;
20556#endif
20557#ifdef __cplusplus
20558}
20559#endif
20560
20561int
20562main ()
20563{
20564return f != $ac_func;
20565 ;
20566 return 0;
20567}
20568_ACEOF
20569rm -f conftest.$ac_objext conftest$ac_exeext
20570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20571 (eval $ac_link) 2>conftest.er1
a848cd7e 20572 ac_status=$?
ac1cb8d3
VS
20573 grep -v '^ *+' conftest.er1 >conftest.err
20574 rm -f conftest.er1
20575 cat conftest.err >&5
a848cd7e
SC
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } &&
c228d3a4
RN
20578 { ac_try='test -z "$ac_c_werror_flag"
20579 || test ! -s conftest.err'
ac1cb8d3
VS
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; } &&
20585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; }; then
20591 eval "$as_ac_var=yes"
20592else
20593 echo "$as_me: failed program was:" >&5
20594sed 's/^/| /' conftest.$ac_ext >&5
20595
20596eval "$as_ac_var=no"
20597fi
ac1cb8d3
VS
20598rm -f conftest.err conftest.$ac_objext \
20599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20600fi
20601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20603if test `eval echo '${'$as_ac_var'}'` = yes; then
20604 cat >>confdefs.h <<_ACEOF
20605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20606_ACEOF
20607
20608fi
20609done
20610
20611fi
20612
20613
20614
20615 if test "x$ac_cv_func_regcomp" != "xyes"; then
20616 if test "$wxUSE_REGEX" = "sys" ; then
20617 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20618echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20619 { (exit 1); exit 1; }; }
20620 else
20621 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20622echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20623 wxUSE_REGEX=builtin
20624 fi
20625 else
20626 wxUSE_REGEX=sys
20627 cat >>confdefs.h <<\_ACEOF
20628#define WX_NO_REGEX_ADVANCED 1
20629_ACEOF
20630
20631 fi
20632 fi
20633fi
20634
20635
20636ZLIB_LINK=
20637if test "$wxUSE_ZLIB" != "no" ; then
20638 cat >>confdefs.h <<\_ACEOF
20639#define wxUSE_ZLIB 1
20640_ACEOF
20641
20642
20643 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20644 if test "$USE_DARWIN" = 1; then
20645 system_zlib_h_ok="yes"
20646 else
20647 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20648echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20649if test "${ac_cv_header_zlib_h+set}" = set; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20651else
20652 if test "$cross_compiling" = yes; then
20653 unset ac_cv_header_zlib_h
20654
20655else
20656 cat >conftest.$ac_ext <<_ACEOF
20657/* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
20662
20663 #include <zlib.h>
20664 #include <stdio.h>
20665
20666 int main()
20667 {
20668 FILE *f=fopen("conftestval", "w");
20669 if (!f) exit(1);
20670 fprintf(f, "%s",
20671 ZLIB_VERSION[0] == '1' &&
20672 (ZLIB_VERSION[2] > '1' ||
20673 (ZLIB_VERSION[2] == '1' &&
20674 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20675 exit(0);
20676 }
20677
20678_ACEOF
20679rm -f conftest$ac_exeext
20680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20681 (eval $ac_link) 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_header_zlib_h=`cat conftestval`
20691else
20692 echo "$as_me: program exited with status $ac_status" >&5
20693echo "$as_me: failed program was:" >&5
20694sed 's/^/| /' conftest.$ac_ext >&5
20695
20696( exit $ac_status )
20697ac_cv_header_zlib_h=no
20698fi
ac1cb8d3 20699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20700fi
20701
20702fi
20703echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20704echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20705 if test "${ac_cv_header_zlib_h+set}" = set; then
20706 echo "$as_me:$LINENO: checking for zlib.h" >&5
20707echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20708if test "${ac_cv_header_zlib_h+set}" = set; then
20709 echo $ECHO_N "(cached) $ECHO_C" >&6
20710fi
20711echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20712echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20713else
20714 # Is the header compilable?
20715echo "$as_me:$LINENO: checking zlib.h usability" >&5
20716echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20717cat >conftest.$ac_ext <<_ACEOF
20718/* confdefs.h. */
20719_ACEOF
20720cat confdefs.h >>conftest.$ac_ext
20721cat >>conftest.$ac_ext <<_ACEOF
20722/* end confdefs.h. */
20723$ac_includes_default
20724#include <zlib.h>
20725_ACEOF
20726rm -f conftest.$ac_objext
20727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20728 (eval $ac_compile) 2>conftest.er1
a848cd7e 20729 ac_status=$?
ac1cb8d3
VS
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
a848cd7e
SC
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } &&
c228d3a4
RN
20735 { ac_try='test -z "$ac_c_werror_flag"
20736 || test ! -s conftest.err'
ac1cb8d3
VS
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_header_compiler=yes
20749else
20750 echo "$as_me: failed program was:" >&5
20751sed 's/^/| /' conftest.$ac_ext >&5
20752
20753ac_header_compiler=no
20754fi
ac1cb8d3 20755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20757echo "${ECHO_T}$ac_header_compiler" >&6
20758
20759# Is the header present?
20760echo "$as_me:$LINENO: checking zlib.h presence" >&5
20761echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20762cat >conftest.$ac_ext <<_ACEOF
20763/* confdefs.h. */
20764_ACEOF
20765cat confdefs.h >>conftest.$ac_ext
20766cat >>conftest.$ac_ext <<_ACEOF
20767/* end confdefs.h. */
20768#include <zlib.h>
20769_ACEOF
20770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20772 ac_status=$?
20773 grep -v '^ *+' conftest.er1 >conftest.err
20774 rm -f conftest.er1
20775 cat conftest.err >&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); } >/dev/null; then
20778 if test -s conftest.err; then
20779 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20781 else
20782 ac_cpp_err=
20783 fi
20784else
20785 ac_cpp_err=yes
20786fi
20787if test -z "$ac_cpp_err"; then
20788 ac_header_preproc=yes
20789else
20790 echo "$as_me: failed program was:" >&5
20791sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_header_preproc=no
20794fi
20795rm -f conftest.err conftest.$ac_ext
20796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20797echo "${ECHO_T}$ac_header_preproc" >&6
20798
20799# So? What about this header?
ac1cb8d3
VS
20800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20801 yes:no: )
a848cd7e
SC
20802 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20803echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20804 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20805echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20806 ac_header_preproc=yes
a848cd7e 20807 ;;
ac1cb8d3 20808 no:yes:* )
a848cd7e
SC
20809 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20810echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20811 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20812echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20813 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20814echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20816echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20817 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20818echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20819 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20820echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20821 (
20822 cat <<\_ASBOX
ac1cb8d3
VS
20823## ----------------------------------------- ##
20824## Report this to wx-dev@lists.wxwidgets.org ##
20825## ----------------------------------------- ##
a848cd7e
SC
20826_ASBOX
20827 ) |
20828 sed "s/^/$as_me: WARNING: /" >&2
20829 ;;
20830esac
20831echo "$as_me:$LINENO: checking for zlib.h" >&5
20832echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20833if test "${ac_cv_header_zlib_h+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20835else
20836 ac_cv_header_zlib_h=$ac_header_preproc
20837fi
20838echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20839echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20840
20841fi
20842
20843
20844
20845 system_zlib_h_ok=$ac_cv_header_zlib_h
20846 fi
20847
20848 if test "$system_zlib_h_ok" = "yes"; then
20849 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20850echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20851if test "${ac_cv_lib_z_deflate+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853else
20854 ac_check_lib_save_LIBS=$LIBS
20855LIBS="-lz $LIBS"
20856cat >conftest.$ac_ext <<_ACEOF
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
20862
20863/* Override any gcc2 internal prototype to avoid an error. */
20864#ifdef __cplusplus
20865extern "C"
20866#endif
20867/* We use char because int might match the return type of a gcc2
20868 builtin and then its argument prototype would still apply. */
20869char deflate ();
20870int
20871main ()
20872{
20873deflate ();
20874 ;
20875 return 0;
20876}
20877_ACEOF
20878rm -f conftest.$ac_objext conftest$ac_exeext
20879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20880 (eval $ac_link) 2>conftest.er1
a848cd7e 20881 ac_status=$?
ac1cb8d3
VS
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
a848cd7e
SC
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
c228d3a4
RN
20887 { ac_try='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
ac1cb8d3
VS
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_cv_lib_z_deflate=yes
20901else
20902 echo "$as_me: failed program was:" >&5
20903sed 's/^/| /' conftest.$ac_ext >&5
20904
20905ac_cv_lib_z_deflate=no
20906fi
ac1cb8d3
VS
20907rm -f conftest.err conftest.$ac_objext \
20908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20909LIBS=$ac_check_lib_save_LIBS
20910fi
20911echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20912echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20913if test $ac_cv_lib_z_deflate = yes; then
20914 ZLIB_LINK=" -lz"
20915fi
20916
20917 fi
20918
20919 if test "x$ZLIB_LINK" = "x" ; then
20920 if test "$wxUSE_ZLIB" = "sys" ; then
20921 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20922echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20923 { (exit 1); exit 1; }; }
20924 else
20925 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20926echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20927 wxUSE_ZLIB=builtin
20928 fi
20929 else
20930 wxUSE_ZLIB=sys
20931 fi
20932 fi
20933fi
20934
20935
20936PNG_LINK=
20937if test "$wxUSE_LIBPNG" != "no" ; then
20938 cat >>confdefs.h <<\_ACEOF
20939#define wxUSE_LIBPNG 1
20940_ACEOF
20941
20942
20943 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20944 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20945echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20946 wxUSE_LIBPNG=sys
20947 fi
20948
20949 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20950 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20951echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20952 wxUSE_LIBPNG=builtin
20953 fi
20954
20955 if test "$wxUSE_MGL" != 1 ; then
20956 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20957 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20958echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20959if test "${ac_cv_header_png_h+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20961else
20962 if test "$cross_compiling" = yes; then
20963 unset ac_cv_header_png_h
20964
20965else
20966 cat >conftest.$ac_ext <<_ACEOF
20967/* confdefs.h. */
20968_ACEOF
20969cat confdefs.h >>conftest.$ac_ext
20970cat >>conftest.$ac_ext <<_ACEOF
20971/* end confdefs.h. */
20972
20973 #include <png.h>
20974 #include <stdio.h>
20975
20976 int main()
20977 {
20978 FILE *f=fopen("conftestval", "w");
20979 if (!f) exit(1);
20980 fprintf(f, "%s",
20981 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20982 exit(0);
20983 }
20984
20985_ACEOF
20986rm -f conftest$ac_exeext
20987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20988 (eval $ac_link) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_cv_header_png_h=`cat conftestval`
20998else
20999 echo "$as_me: program exited with status $ac_status" >&5
21000echo "$as_me: failed program was:" >&5
21001sed 's/^/| /' conftest.$ac_ext >&5
21002
21003( exit $ac_status )
21004ac_cv_header_png_h=no
21005fi
ac1cb8d3 21006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21007fi
21008
21009fi
21010echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21011echo "${ECHO_T}$ac_cv_header_png_h" >&6
21012 if test "${ac_cv_header_png_h+set}" = set; then
21013 echo "$as_me:$LINENO: checking for png.h" >&5
21014echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21015if test "${ac_cv_header_png_h+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017fi
21018echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21019echo "${ECHO_T}$ac_cv_header_png_h" >&6
21020else
21021 # Is the header compilable?
21022echo "$as_me:$LINENO: checking png.h usability" >&5
21023echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21024cat >conftest.$ac_ext <<_ACEOF
21025/* confdefs.h. */
21026_ACEOF
21027cat confdefs.h >>conftest.$ac_ext
21028cat >>conftest.$ac_ext <<_ACEOF
21029/* end confdefs.h. */
21030$ac_includes_default
21031#include <png.h>
21032_ACEOF
21033rm -f conftest.$ac_objext
21034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21035 (eval $ac_compile) 2>conftest.er1
a848cd7e 21036 ac_status=$?
ac1cb8d3
VS
21037 grep -v '^ *+' conftest.er1 >conftest.err
21038 rm -f conftest.er1
21039 cat conftest.err >&5
a848cd7e
SC
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } &&
c228d3a4
RN
21042 { ac_try='test -z "$ac_c_werror_flag"
21043 || test ! -s conftest.err'
ac1cb8d3
VS
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; } &&
21049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21052 ac_status=$?
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; }; then
21055 ac_header_compiler=yes
21056else
21057 echo "$as_me: failed program was:" >&5
21058sed 's/^/| /' conftest.$ac_ext >&5
21059
21060ac_header_compiler=no
21061fi
ac1cb8d3 21062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21064echo "${ECHO_T}$ac_header_compiler" >&6
21065
21066# Is the header present?
21067echo "$as_me:$LINENO: checking png.h presence" >&5
21068echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21069cat >conftest.$ac_ext <<_ACEOF
21070/* confdefs.h. */
21071_ACEOF
21072cat confdefs.h >>conftest.$ac_ext
21073cat >>conftest.$ac_ext <<_ACEOF
21074/* end confdefs.h. */
21075#include <png.h>
21076_ACEOF
21077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } >/dev/null; then
21085 if test -s conftest.err; then
21086 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21088 else
21089 ac_cpp_err=
21090 fi
21091else
21092 ac_cpp_err=yes
21093fi
21094if test -z "$ac_cpp_err"; then
21095 ac_header_preproc=yes
21096else
21097 echo "$as_me: failed program was:" >&5
21098sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 ac_header_preproc=no
21101fi
21102rm -f conftest.err conftest.$ac_ext
21103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21104echo "${ECHO_T}$ac_header_preproc" >&6
21105
21106# So? What about this header?
ac1cb8d3
VS
21107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21108 yes:no: )
a848cd7e
SC
21109 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21110echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21111 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21112echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21113 ac_header_preproc=yes
a848cd7e 21114 ;;
ac1cb8d3 21115 no:yes:* )
a848cd7e
SC
21116 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21117echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21118 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21119echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21121echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21123echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21124 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21125echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21126 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21127echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21128 (
21129 cat <<\_ASBOX
ac1cb8d3
VS
21130## ----------------------------------------- ##
21131## Report this to wx-dev@lists.wxwidgets.org ##
21132## ----------------------------------------- ##
a848cd7e
SC
21133_ASBOX
21134 ) |
21135 sed "s/^/$as_me: WARNING: /" >&2
21136 ;;
21137esac
21138echo "$as_me:$LINENO: checking for png.h" >&5
21139echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21140if test "${ac_cv_header_png_h+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21142else
21143 ac_cv_header_png_h=$ac_header_preproc
21144fi
21145echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21146echo "${ECHO_T}$ac_cv_header_png_h" >&6
21147
21148fi
21149
21150
21151
21152 if test "$ac_cv_header_png_h" = "yes"; then
21153 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21154echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21155if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157else
21158 ac_check_lib_save_LIBS=$LIBS
21159LIBS="-lpng -lz -lm $LIBS"
21160cat >conftest.$ac_ext <<_ACEOF
21161/* confdefs.h. */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h. */
21166
21167/* Override any gcc2 internal prototype to avoid an error. */
21168#ifdef __cplusplus
21169extern "C"
21170#endif
21171/* We use char because int might match the return type of a gcc2
21172 builtin and then its argument prototype would still apply. */
21173char png_check_sig ();
21174int
21175main ()
21176{
21177png_check_sig ();
21178 ;
21179 return 0;
21180}
21181_ACEOF
21182rm -f conftest.$ac_objext conftest$ac_exeext
21183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21184 (eval $ac_link) 2>conftest.er1
a848cd7e 21185 ac_status=$?
ac1cb8d3
VS
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
a848cd7e
SC
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
c228d3a4
RN
21191 { ac_try='test -z "$ac_c_werror_flag"
21192 || test ! -s conftest.err'
ac1cb8d3
VS
21193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194 (eval $ac_try) 2>&5
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); }; } &&
21198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 ac_cv_lib_png_png_check_sig=yes
21205else
21206 echo "$as_me: failed program was:" >&5
21207sed 's/^/| /' conftest.$ac_ext >&5
21208
21209ac_cv_lib_png_png_check_sig=no
21210fi
ac1cb8d3
VS
21211rm -f conftest.err conftest.$ac_objext \
21212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21213LIBS=$ac_check_lib_save_LIBS
21214fi
21215echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21216echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21217if test $ac_cv_lib_png_png_check_sig = yes; then
21218 PNG_LINK=" -lpng -lz"
21219fi
21220
21221 fi
21222
21223 if test "x$PNG_LINK" = "x" ; then
21224 if test "$wxUSE_LIBPNG" = "sys" ; then
21225 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21226echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21227 { (exit 1); exit 1; }; }
21228 else
21229 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21230echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21231 wxUSE_LIBPNG=builtin
21232 fi
21233 else
21234 wxUSE_LIBPNG=sys
21235 fi
21236 fi
21237 fi
21238
21239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21240fi
21241
21242
21243JPEG_LINK=
21244if test "$wxUSE_LIBJPEG" != "no" ; then
21245 cat >>confdefs.h <<\_ACEOF
21246#define wxUSE_LIBJPEG 1
21247_ACEOF
21248
21249
21250 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21251 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21252echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21253 wxUSE_LIBJPEG=sys
21254 fi
21255
21256 if test "$wxUSE_MGL" != 1 ; then
21257 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21258 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21259echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21260 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21262else
21263 cat >conftest.$ac_ext <<_ACEOF
21264/* confdefs.h. */
21265_ACEOF
21266cat confdefs.h >>conftest.$ac_ext
21267cat >>conftest.$ac_ext <<_ACEOF
21268/* end confdefs.h. */
21269
21270 #undef HAVE_STDLIB_H
21271 #include <stdio.h>
21272 #include <jpeglib.h>
21273
21274int
21275main ()
21276{
21277
21278
21279 ;
21280 return 0;
21281}
21282_ACEOF
21283rm -f conftest.$ac_objext
21284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21285 (eval $ac_compile) 2>conftest.er1
a848cd7e 21286 ac_status=$?
ac1cb8d3
VS
21287 grep -v '^ *+' conftest.er1 >conftest.err
21288 rm -f conftest.er1
21289 cat conftest.err >&5
a848cd7e
SC
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } &&
c228d3a4
RN
21292 { ac_try='test -z "$ac_c_werror_flag"
21293 || test ! -s conftest.err'
ac1cb8d3
VS
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; } &&
21299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_cv_header_jpeglib_h=yes
21306else
21307 echo "$as_me: failed program was:" >&5
21308sed 's/^/| /' conftest.$ac_ext >&5
21309
21310ac_cv_header_jpeglib_h=no
21311
21312fi
ac1cb8d3 21313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21314
21315fi
21316
21317 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21318echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21319
21320 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21321 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21322echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21323if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21325else
21326 ac_check_lib_save_LIBS=$LIBS
21327LIBS="-ljpeg $LIBS"
21328cat >conftest.$ac_ext <<_ACEOF
21329/* confdefs.h. */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h. */
21334
21335/* Override any gcc2 internal prototype to avoid an error. */
21336#ifdef __cplusplus
21337extern "C"
21338#endif
21339/* We use char because int might match the return type of a gcc2
21340 builtin and then its argument prototype would still apply. */
21341char jpeg_read_header ();
21342int
21343main ()
21344{
21345jpeg_read_header ();
21346 ;
21347 return 0;
21348}
21349_ACEOF
21350rm -f conftest.$ac_objext conftest$ac_exeext
21351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21352 (eval $ac_link) 2>conftest.er1
a848cd7e 21353 ac_status=$?
ac1cb8d3
VS
21354 grep -v '^ *+' conftest.er1 >conftest.err
21355 rm -f conftest.er1
21356 cat conftest.err >&5
a848cd7e
SC
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } &&
c228d3a4
RN
21359 { ac_try='test -z "$ac_c_werror_flag"
21360 || test ! -s conftest.err'
ac1cb8d3
VS
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; } &&
21366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; }; then
21372 ac_cv_lib_jpeg_jpeg_read_header=yes
21373else
21374 echo "$as_me: failed program was:" >&5
21375sed 's/^/| /' conftest.$ac_ext >&5
21376
21377ac_cv_lib_jpeg_jpeg_read_header=no
21378fi
ac1cb8d3
VS
21379rm -f conftest.err conftest.$ac_objext \
21380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21381LIBS=$ac_check_lib_save_LIBS
21382fi
21383echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21384echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21385if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21386 JPEG_LINK=" -ljpeg"
21387fi
21388
21389 fi
21390
21391 if test "x$JPEG_LINK" = "x" ; then
21392 if test "$wxUSE_LIBJPEG" = "sys" ; then
21393 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21394echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21395 { (exit 1); exit 1; }; }
21396 else
21397 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21398echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21399 wxUSE_LIBJPEG=builtin
21400 fi
21401 else
21402 wxUSE_LIBJPEG=sys
21403 fi
21404 fi
21405 fi
21406fi
21407
21408
21409TIFF_LINK=
21410TIFF_PREREQ_LINKS=-lm
21411if test "$wxUSE_LIBTIFF" != "no" ; then
21412 cat >>confdefs.h <<\_ACEOF
21413#define wxUSE_LIBTIFF 1
21414_ACEOF
21415
21416
21417 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21418 if test "$wxUSE_LIBJPEG" = "sys"; then
21419 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21420 fi
21421 if test "$wxUSE_ZLIB" = "sys"; then
21422 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21423 fi
21424 if test "${ac_cv_header_tiffio_h+set}" = set; then
21425 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21426echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21427if test "${ac_cv_header_tiffio_h+set}" = set; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21429fi
21430echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21431echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21432else
21433 # Is the header compilable?
21434echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21435echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21436cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h. */
21442$ac_includes_default
21443#include <tiffio.h>
21444_ACEOF
21445rm -f conftest.$ac_objext
21446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21447 (eval $ac_compile) 2>conftest.er1
a848cd7e 21448 ac_status=$?
ac1cb8d3
VS
21449 grep -v '^ *+' conftest.er1 >conftest.err
21450 rm -f conftest.er1
21451 cat conftest.err >&5
a848cd7e
SC
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } &&
c228d3a4
RN
21454 { ac_try='test -z "$ac_c_werror_flag"
21455 || test ! -s conftest.err'
ac1cb8d3
VS
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; } &&
21461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 ac_header_compiler=yes
21468else
21469 echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
21472ac_header_compiler=no
21473fi
ac1cb8d3 21474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21476echo "${ECHO_T}$ac_header_compiler" >&6
21477
21478# Is the header present?
21479echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21480echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21481cat >conftest.$ac_ext <<_ACEOF
21482/* confdefs.h. */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h. */
21487#include <tiffio.h>
21488_ACEOF
21489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } >/dev/null; then
21497 if test -s conftest.err; then
21498 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21500 else
21501 ac_cpp_err=
21502 fi
21503else
21504 ac_cpp_err=yes
21505fi
21506if test -z "$ac_cpp_err"; then
21507 ac_header_preproc=yes
21508else
21509 echo "$as_me: failed program was:" >&5
21510sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 ac_header_preproc=no
21513fi
21514rm -f conftest.err conftest.$ac_ext
21515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21516echo "${ECHO_T}$ac_header_preproc" >&6
21517
21518# So? What about this header?
ac1cb8d3
VS
21519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21520 yes:no: )
a848cd7e
SC
21521 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21522echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21523 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21524echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21525 ac_header_preproc=yes
a848cd7e 21526 ;;
ac1cb8d3 21527 no:yes:* )
a848cd7e
SC
21528 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21529echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21530 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21531echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21533echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21535echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21536 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21537echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21538 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21539echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21540 (
21541 cat <<\_ASBOX
ac1cb8d3
VS
21542## ----------------------------------------- ##
21543## Report this to wx-dev@lists.wxwidgets.org ##
21544## ----------------------------------------- ##
a848cd7e
SC
21545_ASBOX
21546 ) |
21547 sed "s/^/$as_me: WARNING: /" >&2
21548 ;;
21549esac
21550echo "$as_me:$LINENO: checking for tiffio.h" >&5
21551echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21552if test "${ac_cv_header_tiffio_h+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554else
21555 ac_cv_header_tiffio_h=$ac_header_preproc
21556fi
21557echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21558echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21559
21560fi
21561if test $ac_cv_header_tiffio_h = yes; then
21562
21563 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21564echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21565if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567else
21568 ac_check_lib_save_LIBS=$LIBS
21569LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21570cat >conftest.$ac_ext <<_ACEOF
21571/* confdefs.h. */
21572_ACEOF
21573cat confdefs.h >>conftest.$ac_ext
21574cat >>conftest.$ac_ext <<_ACEOF
21575/* end confdefs.h. */
21576
21577/* Override any gcc2 internal prototype to avoid an error. */
21578#ifdef __cplusplus
21579extern "C"
21580#endif
21581/* We use char because int might match the return type of a gcc2
21582 builtin and then its argument prototype would still apply. */
21583char TIFFError ();
21584int
21585main ()
21586{
21587TIFFError ();
21588 ;
21589 return 0;
21590}
21591_ACEOF
21592rm -f conftest.$ac_objext conftest$ac_exeext
21593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21594 (eval $ac_link) 2>conftest.er1
a848cd7e 21595 ac_status=$?
ac1cb8d3
VS
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
a848cd7e
SC
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
c228d3a4
RN
21601 { ac_try='test -z "$ac_c_werror_flag"
21602 || test ! -s conftest.err'
ac1cb8d3
VS
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } &&
21608 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 ac_cv_lib_tiff_TIFFError=yes
21615else
21616 echo "$as_me: failed program was:" >&5
21617sed 's/^/| /' conftest.$ac_ext >&5
21618
21619ac_cv_lib_tiff_TIFFError=no
21620fi
ac1cb8d3
VS
21621rm -f conftest.err conftest.$ac_objext \
21622 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21623LIBS=$ac_check_lib_save_LIBS
21624fi
21625echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21626echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21627if test $ac_cv_lib_tiff_TIFFError = yes; then
21628 TIFF_LINK=" -ltiff"
21629fi
21630
21631
21632
21633fi
21634
21635
21636
21637 if test "x$TIFF_LINK" = "x" ; then
21638 if test "$wxUSE_LIBTIFF" = "sys" ; then
21639 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21640echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21641 { (exit 1); exit 1; }; }
21642 else
21643 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21644echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21645 wxUSE_LIBTIFF=builtin
21646 fi
21647 else
21648 wxUSE_LIBTIFF=sys
21649 fi
21650 fi
21651fi
21652
21653
21654if test "$wxUSE_EXPAT" != "no"; then
21655 wxUSE_XML=yes
21656 cat >>confdefs.h <<\_ACEOF
21657#define wxUSE_EXPAT 1
21658_ACEOF
21659
21660 cat >>confdefs.h <<\_ACEOF
21661#define wxUSE_XML 1
21662_ACEOF
21663
21664
21665 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21666 if test "${ac_cv_header_expat_h+set}" = set; then
21667 echo "$as_me:$LINENO: checking for expat.h" >&5
21668echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21669if test "${ac_cv_header_expat_h+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21671fi
21672echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21673echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21674else
21675 # Is the header compilable?
21676echo "$as_me:$LINENO: checking expat.h usability" >&5
21677echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21678cat >conftest.$ac_ext <<_ACEOF
21679/* confdefs.h. */
21680_ACEOF
21681cat confdefs.h >>conftest.$ac_ext
21682cat >>conftest.$ac_ext <<_ACEOF
21683/* end confdefs.h. */
21684$ac_includes_default
21685#include <expat.h>
21686_ACEOF
21687rm -f conftest.$ac_objext
21688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21689 (eval $ac_compile) 2>conftest.er1
a848cd7e 21690 ac_status=$?
ac1cb8d3
VS
21691 grep -v '^ *+' conftest.er1 >conftest.err
21692 rm -f conftest.er1
21693 cat conftest.err >&5
a848cd7e
SC
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } &&
c228d3a4
RN
21696 { ac_try='test -z "$ac_c_werror_flag"
21697 || test ! -s conftest.err'
ac1cb8d3
VS
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; } &&
21703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; }; then
21709 ac_header_compiler=yes
21710else
21711 echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
21714ac_header_compiler=no
21715fi
ac1cb8d3 21716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21718echo "${ECHO_T}$ac_header_compiler" >&6
21719
21720# Is the header present?
21721echo "$as_me:$LINENO: checking expat.h presence" >&5
21722echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21723cat >conftest.$ac_ext <<_ACEOF
21724/* confdefs.h. */
21725_ACEOF
21726cat confdefs.h >>conftest.$ac_ext
21727cat >>conftest.$ac_ext <<_ACEOF
21728/* end confdefs.h. */
21729#include <expat.h>
21730_ACEOF
21731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21733 ac_status=$?
21734 grep -v '^ *+' conftest.er1 >conftest.err
21735 rm -f conftest.er1
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } >/dev/null; then
21739 if test -s conftest.err; then
21740 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21742 else
21743 ac_cpp_err=
21744 fi
21745else
21746 ac_cpp_err=yes
21747fi
21748if test -z "$ac_cpp_err"; then
21749 ac_header_preproc=yes
21750else
21751 echo "$as_me: failed program was:" >&5
21752sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 ac_header_preproc=no
21755fi
21756rm -f conftest.err conftest.$ac_ext
21757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21758echo "${ECHO_T}$ac_header_preproc" >&6
21759
21760# So? What about this header?
ac1cb8d3
VS
21761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21762 yes:no: )
a848cd7e
SC
21763 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21764echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21765 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21766echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21767 ac_header_preproc=yes
a848cd7e 21768 ;;
ac1cb8d3 21769 no:yes:* )
a848cd7e
SC
21770 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21771echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21772 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21773echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21774 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21775echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21776 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21777echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21778 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21779echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21780 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21781echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21782 (
21783 cat <<\_ASBOX
ac1cb8d3
VS
21784## ----------------------------------------- ##
21785## Report this to wx-dev@lists.wxwidgets.org ##
21786## ----------------------------------------- ##
a848cd7e
SC
21787_ASBOX
21788 ) |
21789 sed "s/^/$as_me: WARNING: /" >&2
21790 ;;
21791esac
21792echo "$as_me:$LINENO: checking for expat.h" >&5
21793echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21794if test "${ac_cv_header_expat_h+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796else
21797 ac_cv_header_expat_h=$ac_header_preproc
21798fi
21799echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21800echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21801
21802fi
21803if test $ac_cv_header_expat_h = yes; then
21804 found_expat_h=1
21805fi
21806
21807
21808 if test "x$found_expat_h" = "x1"; then
21809 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21810echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21811if test "${wx_cv_expat_is_not_broken+set}" = set; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21813else
21814
21815
21816
21817 ac_ext=cc
21818ac_cpp='$CXXCPP $CPPFLAGS'
21819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21822
21823 cat >conftest.$ac_ext <<_ACEOF
21824/* confdefs.h. */
21825_ACEOF
21826cat confdefs.h >>conftest.$ac_ext
21827cat >>conftest.$ac_ext <<_ACEOF
21828/* end confdefs.h. */
21829#include <expat.h>
21830int
21831main ()
21832{
21833
21834 ;
21835 return 0;
21836}
21837_ACEOF
21838rm -f conftest.$ac_objext
21839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21840 (eval $ac_compile) 2>conftest.er1
a848cd7e 21841 ac_status=$?
ac1cb8d3
VS
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
a848cd7e
SC
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
c228d3a4
RN
21847 { ac_try='test -z "$ac_cxx_werror_flag"
21848 || test ! -s conftest.err'
ac1cb8d3
VS
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; } &&
21854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 wx_cv_expat_is_not_broken=yes
21861else
21862 echo "$as_me: failed program was:" >&5
21863sed 's/^/| /' conftest.$ac_ext >&5
21864
21865wx_cv_expat_is_not_broken=no
21866
21867fi
ac1cb8d3 21868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21869 ac_ext=c
21870ac_cpp='$CPP $CPPFLAGS'
21871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21873ac_compiler_gnu=$ac_cv_c_compiler_gnu
21874
21875
21876
21877fi
21878echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21879echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21880 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21881 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21882echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21883if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885else
21886 ac_check_lib_save_LIBS=$LIBS
21887LIBS="-lexpat $LIBS"
21888cat >conftest.$ac_ext <<_ACEOF
21889/* confdefs.h. */
21890_ACEOF
21891cat confdefs.h >>conftest.$ac_ext
21892cat >>conftest.$ac_ext <<_ACEOF
21893/* end confdefs.h. */
21894
21895/* Override any gcc2 internal prototype to avoid an error. */
21896#ifdef __cplusplus
21897extern "C"
21898#endif
21899/* We use char because int might match the return type of a gcc2
21900 builtin and then its argument prototype would still apply. */
21901char XML_ParserCreate ();
21902int
21903main ()
21904{
21905XML_ParserCreate ();
21906 ;
21907 return 0;
21908}
21909_ACEOF
21910rm -f conftest.$ac_objext conftest$ac_exeext
21911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21912 (eval $ac_link) 2>conftest.er1
a848cd7e 21913 ac_status=$?
ac1cb8d3
VS
21914 grep -v '^ *+' conftest.er1 >conftest.err
21915 rm -f conftest.er1
21916 cat conftest.err >&5
a848cd7e
SC
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
c228d3a4
RN
21919 { ac_try='test -z "$ac_c_werror_flag"
21920 || test ! -s conftest.err'
ac1cb8d3
VS
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21923 ac_status=$?
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; } &&
21926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932 ac_cv_lib_expat_XML_ParserCreate=yes
21933else
21934 echo "$as_me: failed program was:" >&5
21935sed 's/^/| /' conftest.$ac_ext >&5
21936
21937ac_cv_lib_expat_XML_ParserCreate=no
21938fi
ac1cb8d3
VS
21939rm -f conftest.err conftest.$ac_objext \
21940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21941LIBS=$ac_check_lib_save_LIBS
21942fi
21943echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21944echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21945if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21946 EXPAT_LINK=" -lexpat"
21947fi
21948
21949 fi
21950 fi
21951 if test "x$EXPAT_LINK" = "x" ; then
21952 if test "$wxUSE_EXPAT" = "sys" ; then
21953 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21954echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21955 { (exit 1); exit 1; }; }
21956 else
21957 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21958echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21959 wxUSE_EXPAT=builtin
21960 fi
21961 else
21962 wxUSE_EXPAT=sys
21963 fi
21964 fi
21965 if test "$wxUSE_EXPAT" = "builtin" ; then
21966
21967
21968subdirs="$subdirs src/expat"
21969
21970 fi
21971fi
21972
21973
21974
21975if test "$wxUSE_LIBMSPACK" != "no"; then
21976
21977 if test "${ac_cv_header_mspack_h+set}" = set; then
21978 echo "$as_me:$LINENO: checking for mspack.h" >&5
21979echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21980if test "${ac_cv_header_mspack_h+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982fi
21983echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21984echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21985else
21986 # Is the header compilable?
21987echo "$as_me:$LINENO: checking mspack.h usability" >&5
21988echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21989cat >conftest.$ac_ext <<_ACEOF
21990/* confdefs.h. */
21991_ACEOF
21992cat confdefs.h >>conftest.$ac_ext
21993cat >>conftest.$ac_ext <<_ACEOF
21994/* end confdefs.h. */
21995$ac_includes_default
21996#include <mspack.h>
21997_ACEOF
21998rm -f conftest.$ac_objext
21999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22000 (eval $ac_compile) 2>conftest.er1
a848cd7e 22001 ac_status=$?
ac1cb8d3
VS
22002 grep -v '^ *+' conftest.er1 >conftest.err
22003 rm -f conftest.er1
22004 cat conftest.err >&5
a848cd7e
SC
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
c228d3a4
RN
22007 { ac_try='test -z "$ac_c_werror_flag"
22008 || test ! -s conftest.err'
ac1cb8d3
VS
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 ac_header_compiler=yes
22021else
22022 echo "$as_me: failed program was:" >&5
22023sed 's/^/| /' conftest.$ac_ext >&5
22024
22025ac_header_compiler=no
22026fi
ac1cb8d3 22027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22029echo "${ECHO_T}$ac_header_compiler" >&6
22030
22031# Is the header present?
22032echo "$as_me:$LINENO: checking mspack.h presence" >&5
22033echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22034cat >conftest.$ac_ext <<_ACEOF
22035/* confdefs.h. */
22036_ACEOF
22037cat confdefs.h >>conftest.$ac_ext
22038cat >>conftest.$ac_ext <<_ACEOF
22039/* end confdefs.h. */
22040#include <mspack.h>
22041_ACEOF
22042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22044 ac_status=$?
22045 grep -v '^ *+' conftest.er1 >conftest.err
22046 rm -f conftest.er1
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } >/dev/null; then
22050 if test -s conftest.err; then
22051 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22053 else
22054 ac_cpp_err=
22055 fi
22056else
22057 ac_cpp_err=yes
22058fi
22059if test -z "$ac_cpp_err"; then
22060 ac_header_preproc=yes
22061else
22062 echo "$as_me: failed program was:" >&5
22063sed 's/^/| /' conftest.$ac_ext >&5
22064
22065 ac_header_preproc=no
22066fi
22067rm -f conftest.err conftest.$ac_ext
22068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22069echo "${ECHO_T}$ac_header_preproc" >&6
22070
22071# So? What about this header?
ac1cb8d3
VS
22072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22073 yes:no: )
a848cd7e
SC
22074 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22075echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22076 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22077echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22078 ac_header_preproc=yes
a848cd7e 22079 ;;
ac1cb8d3 22080 no:yes:* )
a848cd7e
SC
22081 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22082echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22083 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22084echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22085 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22086echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22088echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22089 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22090echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22091 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22092echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22093 (
22094 cat <<\_ASBOX
ac1cb8d3
VS
22095## ----------------------------------------- ##
22096## Report this to wx-dev@lists.wxwidgets.org ##
22097## ----------------------------------------- ##
a848cd7e
SC
22098_ASBOX
22099 ) |
22100 sed "s/^/$as_me: WARNING: /" >&2
22101 ;;
22102esac
22103echo "$as_me:$LINENO: checking for mspack.h" >&5
22104echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22105if test "${ac_cv_header_mspack_h+set}" = set; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22107else
22108 ac_cv_header_mspack_h=$ac_header_preproc
22109fi
22110echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22111echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22112
22113fi
22114if test $ac_cv_header_mspack_h = yes; then
22115 found_mspack_h=1
22116fi
22117
22118
22119 if test "x$found_mspack_h" = "x1"; then
22120 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22121echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22122if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124else
22125 ac_check_lib_save_LIBS=$LIBS
22126LIBS="-lmspack $LIBS"
22127cat >conftest.$ac_ext <<_ACEOF
22128/* confdefs.h. */
22129_ACEOF
22130cat confdefs.h >>conftest.$ac_ext
22131cat >>conftest.$ac_ext <<_ACEOF
22132/* end confdefs.h. */
22133
22134/* Override any gcc2 internal prototype to avoid an error. */
22135#ifdef __cplusplus
22136extern "C"
22137#endif
22138/* We use char because int might match the return type of a gcc2
22139 builtin and then its argument prototype would still apply. */
22140char mspack_create_chm_decompressor ();
22141int
22142main ()
22143{
22144mspack_create_chm_decompressor ();
22145 ;
22146 return 0;
22147}
22148_ACEOF
22149rm -f conftest.$ac_objext conftest$ac_exeext
22150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22151 (eval $ac_link) 2>conftest.er1
a848cd7e 22152 ac_status=$?
ac1cb8d3
VS
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
a848cd7e
SC
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } &&
c228d3a4
RN
22158 { ac_try='test -z "$ac_c_werror_flag"
22159 || test ! -s conftest.err'
ac1cb8d3
VS
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; } &&
22165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22172else
22173 echo "$as_me: failed program was:" >&5
22174sed 's/^/| /' conftest.$ac_ext >&5
22175
22176ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22177fi
ac1cb8d3
VS
22178rm -f conftest.err conftest.$ac_objext \
22179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22180LIBS=$ac_check_lib_save_LIBS
22181fi
22182echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22183echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22184if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22185 MSPACK_LINK=" -lmspack"
22186fi
22187
22188 fi
22189 if test "x$MSPACK_LINK" = "x" ; then
22190 wxUSE_LIBMSPACK=no
22191 else
22192 cat >>confdefs.h <<\_ACEOF
22193#define wxUSE_LIBMSPACK 1
22194_ACEOF
22195
22196 fi
22197fi
22198
22199
22200
22201AFMINSTALL=
22202WIN32INSTALL=
22203
22204TOOLKIT=
22205TOOLKIT_INCLUDE=
22206WIDGET_SET=
22207
22208if test "$USE_WIN32" = 1 ; then
22209
22210for ac_header in w32api.h
22211do
22212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22213if eval "test \"\${$as_ac_Header+set}\" = set"; then
22214 echo "$as_me:$LINENO: checking for $ac_header" >&5
22215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22216if eval "test \"\${$as_ac_Header+set}\" = set"; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218fi
22219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22221else
22222 # Is the header compilable?
22223echo "$as_me:$LINENO: checking $ac_header usability" >&5
22224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22225cat >conftest.$ac_ext <<_ACEOF
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
22231$ac_includes_default
22232#include <$ac_header>
22233_ACEOF
22234rm -f conftest.$ac_objext
22235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22236 (eval $ac_compile) 2>conftest.er1
a848cd7e 22237 ac_status=$?
ac1cb8d3
VS
22238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
a848cd7e
SC
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
c228d3a4
RN
22243 { ac_try='test -z "$ac_c_werror_flag"
22244 || test ! -s conftest.err'
ac1cb8d3
VS
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252 (eval $ac_try) 2>&5
22253 ac_status=$?
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); }; }; then
22256 ac_header_compiler=yes
22257else
22258 echo "$as_me: failed program was:" >&5
22259sed 's/^/| /' conftest.$ac_ext >&5
22260
22261ac_header_compiler=no
22262fi
ac1cb8d3 22263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22265echo "${ECHO_T}$ac_header_compiler" >&6
22266
22267# Is the header present?
22268echo "$as_me:$LINENO: checking $ac_header presence" >&5
22269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22270cat >conftest.$ac_ext <<_ACEOF
22271/* confdefs.h. */
22272_ACEOF
22273cat confdefs.h >>conftest.$ac_ext
22274cat >>conftest.$ac_ext <<_ACEOF
22275/* end confdefs.h. */
22276#include <$ac_header>
22277_ACEOF
22278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } >/dev/null; then
22286 if test -s conftest.err; then
22287 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22289 else
22290 ac_cpp_err=
22291 fi
22292else
22293 ac_cpp_err=yes
22294fi
22295if test -z "$ac_cpp_err"; then
22296 ac_header_preproc=yes
22297else
22298 echo "$as_me: failed program was:" >&5
22299sed 's/^/| /' conftest.$ac_ext >&5
22300
22301 ac_header_preproc=no
22302fi
22303rm -f conftest.err conftest.$ac_ext
22304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22305echo "${ECHO_T}$ac_header_preproc" >&6
22306
22307# So? What about this header?
ac1cb8d3
VS
22308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22309 yes:no: )
a848cd7e
SC
22310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22314 ac_header_preproc=yes
a848cd7e 22315 ;;
ac1cb8d3 22316 no:yes:* )
a848cd7e
SC
22317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22329 (
22330 cat <<\_ASBOX
ac1cb8d3
VS
22331## ----------------------------------------- ##
22332## Report this to wx-dev@lists.wxwidgets.org ##
22333## ----------------------------------------- ##
a848cd7e
SC
22334_ASBOX
22335 ) |
22336 sed "s/^/$as_me: WARNING: /" >&2
22337 ;;
22338esac
22339echo "$as_me:$LINENO: checking for $ac_header" >&5
22340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22341if eval "test \"\${$as_ac_Header+set}\" = set"; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343else
ac1cb8d3 22344 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22345fi
22346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22348
22349fi
22350if test `eval echo '${'$as_ac_Header'}'` = yes; then
22351 cat >>confdefs.h <<_ACEOF
22352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22353_ACEOF
22354
22355fi
22356
22357done
22358
22359 if test "${ac_cv_header_windows_h+set}" = set; then
22360 echo "$as_me:$LINENO: checking for windows.h" >&5
22361echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22362if test "${ac_cv_header_windows_h+set}" = set; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22364fi
22365echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22366echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22367else
22368 # Is the header compilable?
22369echo "$as_me:$LINENO: checking windows.h usability" >&5
22370echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22371cat >conftest.$ac_ext <<_ACEOF
22372/* confdefs.h. */
22373_ACEOF
22374cat confdefs.h >>conftest.$ac_ext
22375cat >>conftest.$ac_ext <<_ACEOF
22376/* end confdefs.h. */
22377$ac_includes_default
22378#include <windows.h>
22379_ACEOF
22380rm -f conftest.$ac_objext
22381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22382 (eval $ac_compile) 2>conftest.er1
a848cd7e 22383 ac_status=$?
ac1cb8d3
VS
22384 grep -v '^ *+' conftest.er1 >conftest.err
22385 rm -f conftest.er1
22386 cat conftest.err >&5
a848cd7e
SC
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } &&
c228d3a4
RN
22389 { ac_try='test -z "$ac_c_werror_flag"
22390 || test ! -s conftest.err'
ac1cb8d3
VS
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; } &&
22396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
22402 ac_header_compiler=yes
22403else
22404 echo "$as_me: failed program was:" >&5
22405sed 's/^/| /' conftest.$ac_ext >&5
22406
22407ac_header_compiler=no
22408fi
ac1cb8d3 22409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22411echo "${ECHO_T}$ac_header_compiler" >&6
22412
22413# Is the header present?
22414echo "$as_me:$LINENO: checking windows.h presence" >&5
22415echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22416cat >conftest.$ac_ext <<_ACEOF
22417/* confdefs.h. */
22418_ACEOF
22419cat confdefs.h >>conftest.$ac_ext
22420cat >>conftest.$ac_ext <<_ACEOF
22421/* end confdefs.h. */
22422#include <windows.h>
22423_ACEOF
22424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22426 ac_status=$?
22427 grep -v '^ *+' conftest.er1 >conftest.err
22428 rm -f conftest.er1
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } >/dev/null; then
22432 if test -s conftest.err; then
22433 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22435 else
22436 ac_cpp_err=
22437 fi
22438else
22439 ac_cpp_err=yes
22440fi
22441if test -z "$ac_cpp_err"; then
22442 ac_header_preproc=yes
22443else
22444 echo "$as_me: failed program was:" >&5
22445sed 's/^/| /' conftest.$ac_ext >&5
22446
22447 ac_header_preproc=no
22448fi
22449rm -f conftest.err conftest.$ac_ext
22450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22451echo "${ECHO_T}$ac_header_preproc" >&6
22452
22453# So? What about this header?
ac1cb8d3
VS
22454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22455 yes:no: )
a848cd7e
SC
22456 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22457echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22458 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22459echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22460 ac_header_preproc=yes
a848cd7e 22461 ;;
ac1cb8d3 22462 no:yes:* )
a848cd7e
SC
22463 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22464echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22465 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22466echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22468echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22469 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22470echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22471 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22472echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22473 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22474echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22475 (
22476 cat <<\_ASBOX
ac1cb8d3
VS
22477## ----------------------------------------- ##
22478## Report this to wx-dev@lists.wxwidgets.org ##
22479## ----------------------------------------- ##
a848cd7e
SC
22480_ASBOX
22481 ) |
22482 sed "s/^/$as_me: WARNING: /" >&2
22483 ;;
22484esac
22485echo "$as_me:$LINENO: checking for windows.h" >&5
22486echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22487if test "${ac_cv_header_windows_h+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22489else
22490 ac_cv_header_windows_h=$ac_header_preproc
22491fi
22492echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22493echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22494
22495fi
22496if test $ac_cv_header_windows_h = yes; then
22497 :
22498else
22499
22500 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22501echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22502 { (exit 1); exit 1; }; }
22503
22504fi
22505
22506
22507
22508 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22509
22510 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22511 LIBS="$LIBS -loleacc"
22512 fi
22513
22514 case "${host}" in
22515 *-*-cygwin* )
22516 LIBS="$LIBS -lkernel32 -luser32"
22517 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22518 esac
22519
22520 if test "$wxUSE_ODBC" = "sys" ; then
22521 wxUSE_ODBC = "yes"
22522 fi
22523 if test "$wxUSE_ODBC" = "yes" ; then
22524 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22525 cat >>confdefs.h <<\_ACEOF
22526#define wxUSE_ODBC 1
22527_ACEOF
22528
22529 fi
22530
22531 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22532 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22533
22534 WIN32INSTALL=win32install
22535fi
22536
22537if test "$wxUSE_GUI" = "yes"; then
22538 USE_GUI=1
22539
22540 GUI_TK_LIBRARY=
22541
22542 WXGTK12=
22543 WXGTK127=
22544 WXGTK20=
22545 WXGPE=
22546
207bc66c
RN
22547 if test "$wxUSE_COCOA" = 1 ; then
22548 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22549 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22550echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22551 wxUSE_PRINTING_ARCHITECTURE=no
22552 fi
22553 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22554 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22555echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22556 wxUSE_DRAG_AND_DROP=no
22557 fi
22558 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22559 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22560echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22561 wxUSE_DRAGIMAGE=no
22562 fi
22563 fi
22564
a848cd7e
SC
22565 if test "$wxUSE_MSW" = 1 ; then
22566 TOOLKIT=MSW
22567 GUIDIST=MSW_DIST
22568
ceec2216 22569 case "${host}" in
a848cd7e
SC
22570 *-*-mingw32* )
22571 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22572 esac
22573 fi
22574
22575 if test "$wxUSE_GTK" = 1; then
22576 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22577echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22578
22579 gtk_version_cached=1
22580 if test "${wx_cv_lib_gtk+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22582else
22583
22584 gtk_version_cached=0
22585 echo "$as_me:$LINENO: result: " >&5
22586echo "${ECHO_T}" >&6
22587
22588 GTK_MODULES=
22589 if test "$wxUSE_THREADS" = "yes"; then
22590 GTK_MODULES=gthread
22591 fi
22592
22593 wx_cv_lib_gtk=
22594 if test "x$wxUSE_GTK2" = "xyes"; then
22595 # Check whether --enable-gtktest or --disable-gtktest was given.
22596if test "${enable_gtktest+set}" = set; then
22597 enableval="$enable_gtktest"
22598
22599else
22600 enable_gtktest=yes
22601fi;
22602
22603 pkg_config_args=gtk+-2.0
22604 for module in . $GTK_MODULES
22605 do
22606 case "$module" in
22607 gthread)
22608 pkg_config_args="$pkg_config_args gthread-2.0"
22609 ;;
22610 esac
22611 done
22612
22613 no_gtk=""
22614
22615 # Extract the first word of "pkg-config", so it can be a program name with args.
22616set dummy pkg-config; ac_word=$2
22617echo "$as_me:$LINENO: checking for $ac_word" >&5
22618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22619if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22621else
22622 case $PKG_CONFIG in
22623 [\\/]* | ?:[\\/]*)
22624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22625 ;;
22626 *)
22627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22628for as_dir in $PATH
22629do
22630 IFS=$as_save_IFS
22631 test -z "$as_dir" && as_dir=.
22632 for ac_exec_ext in '' $ac_executable_extensions; do
22633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22636 break 2
22637 fi
22638done
22639done
22640
22641 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22642 ;;
22643esac
22644fi
22645PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22646
22647if test -n "$PKG_CONFIG"; then
22648 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22649echo "${ECHO_T}$PKG_CONFIG" >&6
22650else
22651 echo "$as_me:$LINENO: result: no" >&5
22652echo "${ECHO_T}no" >&6
22653fi
22654
22655
22656 if test x$PKG_CONFIG != xno ; then
22657 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22658 :
22659 else
c2218763 22660 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22661 no_gtk=yes
22662 PKG_CONFIG=no
22663 fi
22664 else
22665 no_gtk=yes
22666 fi
22667
22668 min_gtk_version=2.0.0
22669 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22670echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22671
22672 if test x$PKG_CONFIG != xno ; then
22673 ## don't try to run the test against uninstalled libtool libs
22674 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22675 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22676 enable_gtktest=no
22677 fi
22678
22679 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22680 :
22681 else
22682 no_gtk=yes
22683 fi
22684 fi
22685
22686 if test x"$no_gtk" = x ; then
22687 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22688 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22689 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22690 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22691 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22692 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22693 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22694 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22695 if test "x$enable_gtktest" = "xyes" ; then
22696 ac_save_CFLAGS="$CFLAGS"
22697 ac_save_LIBS="$LIBS"
22698 CFLAGS="$CFLAGS $GTK_CFLAGS"
22699 LIBS="$GTK_LIBS $LIBS"
22700 rm -f conf.gtktest
22701 if test "$cross_compiling" = yes; then
22702 echo $ac_n "cross compiling; assumed OK... $ac_c"
22703else
22704 cat >conftest.$ac_ext <<_ACEOF
22705/* confdefs.h. */
22706_ACEOF
22707cat confdefs.h >>conftest.$ac_ext
22708cat >>conftest.$ac_ext <<_ACEOF
22709/* end confdefs.h. */
22710
22711#include <gtk/gtk.h>
22712#include <stdio.h>
22713#include <stdlib.h>
22714
22715int
22716main ()
22717{
22718 int major, minor, micro;
22719 char *tmp_version;
22720
22721 system ("touch conf.gtktest");
22722
22723 /* HP/UX 9 (%@#!) writes to sscanf strings */
22724 tmp_version = g_strdup("$min_gtk_version");
22725 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22726 printf("%s, bad version string\n", "$min_gtk_version");
22727 exit(1);
22728 }
22729
22730 if ((gtk_major_version != $gtk_config_major_version) ||
22731 (gtk_minor_version != $gtk_config_minor_version) ||
22732 (gtk_micro_version != $gtk_config_micro_version))
22733 {
22734 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22735 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22736 gtk_major_version, gtk_minor_version, gtk_micro_version);
22737 printf ("*** was found! If pkg-config was correct, then it is best\n");
22738 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22739 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22740 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22741 printf("*** required on your system.\n");
22742 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22743 printf("*** to point to the correct configuration files\n");
22744 }
22745 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22746 (gtk_minor_version != GTK_MINOR_VERSION) ||
22747 (gtk_micro_version != GTK_MICRO_VERSION))
22748 {
22749 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22750 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22751 printf("*** library (version %d.%d.%d)\n",
22752 gtk_major_version, gtk_minor_version, gtk_micro_version);
22753 }
22754 else
22755 {
22756 if ((gtk_major_version > major) ||
22757 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22758 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22759 {
22760 return 0;
22761 }
22762 else
22763 {
22764 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22765 gtk_major_version, gtk_minor_version, gtk_micro_version);
22766 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22767 major, minor, micro);
22768 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22769 printf("***\n");
22770 printf("*** If you have already installed a sufficiently new version, this error\n");
22771 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22772 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22773 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22774 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22775 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22776 printf("*** so that the correct libraries are found at run-time))\n");
22777 }
22778 }
22779 return 1;
22780}
22781
22782_ACEOF
22783rm -f conftest$ac_exeext
22784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22785 (eval $ac_link) 2>&5
22786 ac_status=$?
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 :
22795else
22796 echo "$as_me: program exited with status $ac_status" >&5
22797echo "$as_me: failed program was:" >&5
22798sed 's/^/| /' conftest.$ac_ext >&5
22799
22800( exit $ac_status )
22801no_gtk=yes
22802fi
ac1cb8d3 22803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22804fi
22805 CFLAGS="$ac_save_CFLAGS"
22806 LIBS="$ac_save_LIBS"
22807 fi
22808 fi
22809 if test "x$no_gtk" = x ; then
22810 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22811echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22812 wx_cv_lib_gtk=2.0
22813 else
22814 echo "$as_me:$LINENO: result: no" >&5
22815echo "${ECHO_T}no" >&6
22816 if test "$PKG_CONFIG" = "no" ; then
22817 echo "*** A new enough version of pkg-config was not found."
22818 echo "*** See http://pkgconfig.sourceforge.net"
22819 else
22820 if test -f conf.gtktest ; then
22821 :
22822 else
22823 echo "*** Could not run GTK+ test program, checking why..."
22824 ac_save_CFLAGS="$CFLAGS"
22825 ac_save_LIBS="$LIBS"
22826 CFLAGS="$CFLAGS $GTK_CFLAGS"
22827 LIBS="$LIBS $GTK_LIBS"
22828 cat >conftest.$ac_ext <<_ACEOF
22829/* confdefs.h. */
22830_ACEOF
22831cat confdefs.h >>conftest.$ac_ext
22832cat >>conftest.$ac_ext <<_ACEOF
22833/* end confdefs.h. */
22834
22835#include <gtk/gtk.h>
22836#include <stdio.h>
22837
22838int
22839main ()
22840{
22841 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22842 ;
22843 return 0;
22844}
22845_ACEOF
22846rm -f conftest.$ac_objext conftest$ac_exeext
22847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22848 (eval $ac_link) 2>conftest.er1
a848cd7e 22849 ac_status=$?
ac1cb8d3
VS
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
22852 cat conftest.err >&5
a848cd7e
SC
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } &&
c228d3a4
RN
22855 { ac_try='test -z "$ac_c_werror_flag"
22856 || test ! -s conftest.err'
ac1cb8d3
VS
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; } &&
22862 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 (eval $ac_try) 2>&5
22865 ac_status=$?
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 echo "*** The test program compiled, but did not run. This usually means"
22869 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22870 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22871 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22872 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22873 echo "*** is required on your system"
22874 echo "***"
22875 echo "*** If you have an old version installed, it is best to remove it, although"
22876 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22877else
22878 echo "$as_me: failed program was:" >&5
22879sed 's/^/| /' conftest.$ac_ext >&5
22880
22881 echo "*** The test program failed to compile or link. See the file config.log for the"
22882 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22883fi
ac1cb8d3
VS
22884rm -f conftest.err conftest.$ac_objext \
22885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22886 CFLAGS="$ac_save_CFLAGS"
22887 LIBS="$ac_save_LIBS"
22888 fi
22889 fi
22890 GTK_CFLAGS=""
22891 GTK_LIBS=""
22892 :
22893 fi
22894
22895
22896 rm -f conf.gtktest
22897
22898 else
22899
22900# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22901if test "${with_gtk_prefix+set}" = set; then
22902 withval="$with_gtk_prefix"
22903 gtk_config_prefix="$withval"
22904else
22905 gtk_config_prefix=""
22906fi;
22907
22908# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22909if test "${with_gtk_exec_prefix+set}" = set; then
22910 withval="$with_gtk_exec_prefix"
22911 gtk_config_exec_prefix="$withval"
22912else
22913 gtk_config_exec_prefix=""
22914fi;
22915# Check whether --enable-gtktest or --disable-gtktest was given.
22916if test "${enable_gtktest+set}" = set; then
22917 enableval="$enable_gtktest"
22918
22919else
22920 enable_gtktest=yes
22921fi;
22922
22923 for module in . $GTK_MODULES
22924 do
22925 case "$module" in
22926 gthread)
22927 gtk_config_args="$gtk_config_args gthread"
22928 ;;
22929 esac
22930 done
22931
22932 if test x$gtk_config_exec_prefix != x ; then
22933 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22934 if test x${GTK_CONFIG+set} != xset ; then
22935 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22936 fi
22937 fi
22938 if test x$gtk_config_prefix != x ; then
22939 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22940 if test x${GTK_CONFIG+set} != xset ; then
22941 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22942 fi
22943 fi
22944
22945 # Extract the first word of "gtk-config", so it can be a program name with args.
22946set dummy gtk-config; ac_word=$2
22947echo "$as_me:$LINENO: checking for $ac_word" >&5
22948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22949if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22951else
22952 case $GTK_CONFIG in
22953 [\\/]* | ?:[\\/]*)
22954 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22955 ;;
22956 *)
22957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22958for as_dir in $PATH
22959do
22960 IFS=$as_save_IFS
22961 test -z "$as_dir" && as_dir=.
22962 for ac_exec_ext in '' $ac_executable_extensions; do
22963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22964 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22966 break 2
22967 fi
22968done
22969done
22970
22971 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22972 ;;
22973esac
22974fi
22975GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22976
22977if test -n "$GTK_CONFIG"; then
22978 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22979echo "${ECHO_T}$GTK_CONFIG" >&6
22980else
22981 echo "$as_me:$LINENO: result: no" >&5
22982echo "${ECHO_T}no" >&6
22983fi
22984
22985 min_gtk_version=1.2.7
22986 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22987echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22988 no_gtk=""
22989 if test "$GTK_CONFIG" = "no" ; then
22990 no_gtk=yes
22991 else
22992 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22993 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22994 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22995 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22996 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22997 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22998 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23000 if test "x$enable_gtktest" = "xyes" ; then
23001 ac_save_CFLAGS="$CFLAGS"
23002 ac_save_LIBS="$LIBS"
23003 CFLAGS="$CFLAGS $GTK_CFLAGS"
23004 LIBS="$GTK_LIBS $LIBS"
23005 rm -f conf.gtktest
23006 if test "$cross_compiling" = yes; then
23007 echo $ac_n "cross compiling; assumed OK... $ac_c"
23008else
23009 cat >conftest.$ac_ext <<_ACEOF
23010/* confdefs.h. */
23011_ACEOF
23012cat confdefs.h >>conftest.$ac_ext
23013cat >>conftest.$ac_ext <<_ACEOF
23014/* end confdefs.h. */
23015
23016#include <gtk/gtk.h>
23017#include <stdio.h>
23018#include <stdlib.h>
23019
23020int
23021main ()
23022{
23023 int major, minor, micro;
23024 char *tmp_version;
23025
23026 system ("touch conf.gtktest");
23027
23028 /* HP/UX 9 (%@#!) writes to sscanf strings */
23029 tmp_version = g_strdup("$min_gtk_version");
23030 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23031 printf("%s, bad version string\n", "$min_gtk_version");
23032 exit(1);
23033 }
23034
23035 if ((gtk_major_version != $gtk_config_major_version) ||
23036 (gtk_minor_version != $gtk_config_minor_version) ||
23037 (gtk_micro_version != $gtk_config_micro_version))
23038 {
23039 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23040 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23041 gtk_major_version, gtk_minor_version, gtk_micro_version);
23042 printf ("*** was found! If gtk-config was correct, then it is best\n");
23043 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23044 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23045 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23046 printf("*** required on your system.\n");
23047 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23048 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23049 printf("*** before re-running configure\n");
23050 }
23051#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23052 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23053 (gtk_minor_version != GTK_MINOR_VERSION) ||
23054 (gtk_micro_version != GTK_MICRO_VERSION))
23055 {
23056 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23057 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23058 printf("*** library (version %d.%d.%d)\n",
23059 gtk_major_version, gtk_minor_version, gtk_micro_version);
23060 }
23061#endif /* defined (GTK_MAJOR_VERSION) ... */
23062 else
23063 {
23064 if ((gtk_major_version > major) ||
23065 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23066 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23067 {
23068 return 0;
23069 }
23070 else
23071 {
23072 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23073 gtk_major_version, gtk_minor_version, gtk_micro_version);
23074 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23075 major, minor, micro);
23076 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23077 printf("***\n");
23078 printf("*** If you have already installed a sufficiently new version, this error\n");
23079 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23080 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23081 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23082 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23083 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23084 printf("*** so that the correct libraries are found at run-time))\n");
23085 }
23086 }
23087 return 1;
23088}
23089
23090_ACEOF
23091rm -f conftest$ac_exeext
23092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23093 (eval $ac_link) 2>&5
23094 ac_status=$?
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; }; then
23102 :
23103else
23104 echo "$as_me: program exited with status $ac_status" >&5
23105echo "$as_me: failed program was:" >&5
23106sed 's/^/| /' conftest.$ac_ext >&5
23107
23108( exit $ac_status )
23109no_gtk=yes
23110fi
ac1cb8d3 23111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23112fi
23113 CFLAGS="$ac_save_CFLAGS"
23114 LIBS="$ac_save_LIBS"
23115 fi
23116 fi
23117 if test "x$no_gtk" = x ; then
23118 echo "$as_me:$LINENO: result: yes" >&5
23119echo "${ECHO_T}yes" >&6
23120 wx_cv_lib_gtk=1.2.7
23121 else
23122 echo "$as_me:$LINENO: result: no" >&5
23123echo "${ECHO_T}no" >&6
23124 if test "$GTK_CONFIG" = "no" ; then
23125 echo "*** The gtk-config script installed by GTK could not be found"
23126 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23127 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23128 echo "*** full path to gtk-config."
23129 else
23130 if test -f conf.gtktest ; then
23131 :
23132 else
23133 echo "*** Could not run GTK test program, checking why..."
23134 CFLAGS="$CFLAGS $GTK_CFLAGS"
23135 LIBS="$LIBS $GTK_LIBS"
23136 cat >conftest.$ac_ext <<_ACEOF
23137/* confdefs.h. */
23138_ACEOF
23139cat confdefs.h >>conftest.$ac_ext
23140cat >>conftest.$ac_ext <<_ACEOF
23141/* end confdefs.h. */
23142
23143#include <gtk/gtk.h>
23144#include <stdio.h>
23145
23146int
23147main ()
23148{
23149 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23150 ;
23151 return 0;
23152}
23153_ACEOF
23154rm -f conftest.$ac_objext conftest$ac_exeext
23155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23156 (eval $ac_link) 2>conftest.er1
a848cd7e 23157 ac_status=$?
ac1cb8d3
VS
23158 grep -v '^ *+' conftest.er1 >conftest.err
23159 rm -f conftest.er1
23160 cat conftest.err >&5
a848cd7e
SC
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } &&
c228d3a4
RN
23163 { ac_try='test -z "$ac_c_werror_flag"
23164 || test ! -s conftest.err'
ac1cb8d3
VS
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; } &&
23170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; }; then
23176 echo "*** The test program compiled, but did not run. This usually means"
23177 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23178 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23179 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23180 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23181 echo "*** is required on your system"
23182 echo "***"
23183 echo "*** If you have an old version installed, it is best to remove it, although"
23184 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23185 echo "***"
23186 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23187 echo "*** came with the system with the command"
23188 echo "***"
23189 echo "*** rpm --erase --nodeps gtk gtk-devel"
23190else
23191 echo "$as_me: failed program was:" >&5
23192sed 's/^/| /' conftest.$ac_ext >&5
23193
23194 echo "*** The test program failed to compile or link. See the file config.log for the"
23195 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23196 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23197 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23198fi
ac1cb8d3
VS
23199rm -f conftest.err conftest.$ac_objext \
23200 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23201 CFLAGS="$ac_save_CFLAGS"
23202 LIBS="$ac_save_LIBS"
23203 fi
23204 fi
23205 GTK_CFLAGS=""
23206 GTK_LIBS=""
23207 :
23208 fi
23209
23210
23211 rm -f conf.gtktest
23212
23213
23214 if test -z "$wx_cv_lib_gtk"; then
23215
23216# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23217if test "${with_gtk_prefix+set}" = set; then
23218 withval="$with_gtk_prefix"
23219 gtk_config_prefix="$withval"
23220else
23221 gtk_config_prefix=""
23222fi;
23223
23224# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23225if test "${with_gtk_exec_prefix+set}" = set; then
23226 withval="$with_gtk_exec_prefix"
23227 gtk_config_exec_prefix="$withval"
23228else
23229 gtk_config_exec_prefix=""
23230fi;
23231# Check whether --enable-gtktest or --disable-gtktest was given.
23232if test "${enable_gtktest+set}" = set; then
23233 enableval="$enable_gtktest"
23234
23235else
23236 enable_gtktest=yes
23237fi;
23238
23239 for module in . $GTK_MODULES
23240 do
23241 case "$module" in
23242 gthread)
23243 gtk_config_args="$gtk_config_args gthread"
23244 ;;
23245 esac
23246 done
23247
23248 if test x$gtk_config_exec_prefix != x ; then
23249 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23250 if test x${GTK_CONFIG+set} != xset ; then
23251 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23252 fi
23253 fi
23254 if test x$gtk_config_prefix != x ; then
23255 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23256 if test x${GTK_CONFIG+set} != xset ; then
23257 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23258 fi
23259 fi
23260
23261 # Extract the first word of "gtk-config", so it can be a program name with args.
23262set dummy gtk-config; ac_word=$2
23263echo "$as_me:$LINENO: checking for $ac_word" >&5
23264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23265if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23266 echo $ECHO_N "(cached) $ECHO_C" >&6
23267else
23268 case $GTK_CONFIG in
23269 [\\/]* | ?:[\\/]*)
23270 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23271 ;;
23272 *)
23273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23274for as_dir in $PATH
23275do
23276 IFS=$as_save_IFS
23277 test -z "$as_dir" && as_dir=.
23278 for ac_exec_ext in '' $ac_executable_extensions; do
23279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23280 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23282 break 2
23283 fi
23284done
23285done
23286
23287 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23288 ;;
23289esac
23290fi
23291GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23292
23293if test -n "$GTK_CONFIG"; then
23294 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23295echo "${ECHO_T}$GTK_CONFIG" >&6
23296else
23297 echo "$as_me:$LINENO: result: no" >&5
23298echo "${ECHO_T}no" >&6
23299fi
23300
23301 min_gtk_version=1.2.3
23302 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23303echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23304 no_gtk=""
23305 if test "$GTK_CONFIG" = "no" ; then
23306 no_gtk=yes
23307 else
23308 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23309 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23310 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23312 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23313 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23314 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23315 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23316 if test "x$enable_gtktest" = "xyes" ; then
23317 ac_save_CFLAGS="$CFLAGS"
23318 ac_save_LIBS="$LIBS"
23319 CFLAGS="$CFLAGS $GTK_CFLAGS"
23320 LIBS="$GTK_LIBS $LIBS"
23321 rm -f conf.gtktest
23322 if test "$cross_compiling" = yes; then
23323 echo $ac_n "cross compiling; assumed OK... $ac_c"
23324else
23325 cat >conftest.$ac_ext <<_ACEOF
23326/* confdefs.h. */
23327_ACEOF
23328cat confdefs.h >>conftest.$ac_ext
23329cat >>conftest.$ac_ext <<_ACEOF
23330/* end confdefs.h. */
23331
23332#include <gtk/gtk.h>
23333#include <stdio.h>
23334#include <stdlib.h>
23335
23336int
23337main ()
23338{
23339 int major, minor, micro;
23340 char *tmp_version;
23341
23342 system ("touch conf.gtktest");
23343
23344 /* HP/UX 9 (%@#!) writes to sscanf strings */
23345 tmp_version = g_strdup("$min_gtk_version");
23346 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23347 printf("%s, bad version string\n", "$min_gtk_version");
23348 exit(1);
23349 }
23350
23351 if ((gtk_major_version != $gtk_config_major_version) ||
23352 (gtk_minor_version != $gtk_config_minor_version) ||
23353 (gtk_micro_version != $gtk_config_micro_version))
23354 {
23355 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23356 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23357 gtk_major_version, gtk_minor_version, gtk_micro_version);
23358 printf ("*** was found! If gtk-config was correct, then it is best\n");
23359 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23360 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23361 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23362 printf("*** required on your system.\n");
23363 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23364 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23365 printf("*** before re-running configure\n");
23366 }
23367#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23368 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23369 (gtk_minor_version != GTK_MINOR_VERSION) ||
23370 (gtk_micro_version != GTK_MICRO_VERSION))
23371 {
23372 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23373 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23374 printf("*** library (version %d.%d.%d)\n",
23375 gtk_major_version, gtk_minor_version, gtk_micro_version);
23376 }
23377#endif /* defined (GTK_MAJOR_VERSION) ... */
23378 else
23379 {
23380 if ((gtk_major_version > major) ||
23381 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23382 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23383 {
23384 return 0;
23385 }
23386 else
23387 {
23388 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23389 gtk_major_version, gtk_minor_version, gtk_micro_version);
23390 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23391 major, minor, micro);
23392 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23393 printf("***\n");
23394 printf("*** If you have already installed a sufficiently new version, this error\n");
23395 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23396 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23397 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23398 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23399 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23400 printf("*** so that the correct libraries are found at run-time))\n");
23401 }
23402 }
23403 return 1;
23404}
23405
23406_ACEOF
23407rm -f conftest$ac_exeext
23408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23409 (eval $ac_link) 2>&5
23410 ac_status=$?
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; }; then
23418 :
23419else
23420 echo "$as_me: program exited with status $ac_status" >&5
23421echo "$as_me: failed program was:" >&5
23422sed 's/^/| /' conftest.$ac_ext >&5
23423
23424( exit $ac_status )
23425no_gtk=yes
23426fi
ac1cb8d3 23427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23428fi
23429 CFLAGS="$ac_save_CFLAGS"
23430 LIBS="$ac_save_LIBS"
23431 fi
23432 fi
23433 if test "x$no_gtk" = x ; then
23434 echo "$as_me:$LINENO: result: yes" >&5
23435echo "${ECHO_T}yes" >&6
23436 wx_cv_lib_gtk=1.2.3
23437 else
23438 echo "$as_me:$LINENO: result: no" >&5
23439echo "${ECHO_T}no" >&6
23440 if test "$GTK_CONFIG" = "no" ; then
23441 echo "*** The gtk-config script installed by GTK could not be found"
23442 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23443 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23444 echo "*** full path to gtk-config."
23445 else
23446 if test -f conf.gtktest ; then
23447 :
23448 else
23449 echo "*** Could not run GTK test program, checking why..."
23450 CFLAGS="$CFLAGS $GTK_CFLAGS"
23451 LIBS="$LIBS $GTK_LIBS"
23452 cat >conftest.$ac_ext <<_ACEOF
23453/* confdefs.h. */
23454_ACEOF
23455cat confdefs.h >>conftest.$ac_ext
23456cat >>conftest.$ac_ext <<_ACEOF
23457/* end confdefs.h. */
23458
23459#include <gtk/gtk.h>
23460#include <stdio.h>
23461
23462int
23463main ()
23464{
23465 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23466 ;
23467 return 0;
23468}
23469_ACEOF
23470rm -f conftest.$ac_objext conftest$ac_exeext
23471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23472 (eval $ac_link) 2>conftest.er1
a848cd7e 23473 ac_status=$?
ac1cb8d3
VS
23474 grep -v '^ *+' conftest.er1 >conftest.err
23475 rm -f conftest.er1
23476 cat conftest.err >&5
a848cd7e
SC
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } &&
c228d3a4
RN
23479 { ac_try='test -z "$ac_c_werror_flag"
23480 || test ! -s conftest.err'
ac1cb8d3
VS
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23483 ac_status=$?
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; } &&
23486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492 echo "*** The test program compiled, but did not run. This usually means"
23493 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23494 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23495 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23496 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23497 echo "*** is required on your system"
23498 echo "***"
23499 echo "*** If you have an old version installed, it is best to remove it, although"
23500 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23501 echo "***"
23502 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23503 echo "*** came with the system with the command"
23504 echo "***"
23505 echo "*** rpm --erase --nodeps gtk gtk-devel"
23506else
23507 echo "$as_me: failed program was:" >&5
23508sed 's/^/| /' conftest.$ac_ext >&5
23509
23510 echo "*** The test program failed to compile or link. See the file config.log for the"
23511 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23512 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23513 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23514fi
ac1cb8d3
VS
23515rm -f conftest.err conftest.$ac_objext \
23516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23517 CFLAGS="$ac_save_CFLAGS"
23518 LIBS="$ac_save_LIBS"
23519 fi
23520 fi
23521 GTK_CFLAGS=""
23522 GTK_LIBS=""
23523 :
23524 fi
23525
23526
23527 rm -f conf.gtktest
23528
23529 fi
23530 fi
23531
23532 if test -z "$wx_cv_lib_gtk"; then
23533 wx_cv_lib_gtk=none
23534 else
23535 wx_cv_cflags_gtk=$GTK_CFLAGS
23536 wx_cv_libs_gtk=$GTK_LIBS
23537 fi
23538
23539
23540fi
23541
23542
23543 if test "$gtk_version_cached" = 1; then
23544 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23545echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23546 fi
23547
23548 case "$wx_cv_lib_gtk" in
23549 2.0) WXGTK20=1
23550 TOOLKIT_VERSION=2
23551 ;;
23552 1.2.7) WXGTK127=1
23553 WXGTK12=1
23554 ;;
23555 1.2.3) WXGTK12=1
23556 ;;
23557 *) { { echo "$as_me:$LINENO: error:
23558Please check that gtk-config is in path, the directory
23559where GTK+ libraries are installed (returned by
23560'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23561equivalent variable and GTK+ is version 1.2.3 or above.
23562 " >&5
23563echo "$as_me: error:
23564Please check that gtk-config is in path, the directory
23565where GTK+ libraries are installed (returned by
23566'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23567equivalent variable and GTK+ is version 1.2.3 or above.
23568 " >&2;}
23569 { (exit 1); exit 1; }; }
23570 ;;
23571 esac
23572
23573 if test "$WXGTK20" = 1; then
23574 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23575
23576 succeeded=no
23577
23578 if test -z "$PKG_CONFIG"; then
23579 # Extract the first word of "pkg-config", so it can be a program name with args.
23580set dummy pkg-config; ac_word=$2
23581echo "$as_me:$LINENO: checking for $ac_word" >&5
23582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23583if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23584 echo $ECHO_N "(cached) $ECHO_C" >&6
23585else
23586 case $PKG_CONFIG in
23587 [\\/]* | ?:[\\/]*)
23588 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23589 ;;
23590 *)
23591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23592for as_dir in $PATH
23593do
23594 IFS=$as_save_IFS
23595 test -z "$as_dir" && as_dir=.
23596 for ac_exec_ext in '' $ac_executable_extensions; do
23597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23598 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23600 break 2
23601 fi
23602done
23603done
23604
23605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23606 ;;
23607esac
23608fi
23609PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23610
23611if test -n "$PKG_CONFIG"; then
23612 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23613echo "${ECHO_T}$PKG_CONFIG" >&6
23614else
23615 echo "$as_me:$LINENO: result: no" >&5
23616echo "${ECHO_T}no" >&6
23617fi
23618
23619 fi
23620
23621 if test "$PKG_CONFIG" = "no" ; then
23622 echo "*** The pkg-config script could not be found. Make sure it is"
23623 echo "*** in your path, or set the PKG_CONFIG environment variable"
23624 echo "*** to the full path to pkg-config."
23625 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23626 else
23627 PKG_CONFIG_MIN_VERSION=0.9.0
23628 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23629 echo "$as_me:$LINENO: checking for pangoft2" >&5
23630echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23631
23632 if $PKG_CONFIG --exists "pangoft2" ; then
23633 echo "$as_me:$LINENO: result: yes" >&5
23634echo "${ECHO_T}yes" >&6
23635 succeeded=yes
23636
23637 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23638echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23639 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23640 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23641echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23642
23643 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23644echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23645 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23646 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23647echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23648 else
23649 PANGOFT2_CFLAGS=""
23650 PANGOFT2_LIBS=""
23651 ## If we have a custom action on failure, don't print errors, but
23652 ## do set a variable so people can do so.
23653 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23654
23655 fi
23656
23657
23658
23659 else
23660 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23661 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23662 fi
23663 fi
23664
23665 if test $succeeded = yes; then
23666
23667 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
ceec2216
RL
23668 # FIXME: GTK_LIBS already has a lot of what this is
23669 # about to add, but we go ahead and just add
23670 # it all again anyway.
23671 # This is not a good way to manage things. And simply
23672 # uniq'ing the list later is hardly better.
a848cd7e
SC
23673 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23674
23675 else
23676
23677 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23678echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23679 wxUSE_PRINTING_ARCHITECTURE="no"
23680
23681
23682 fi
23683
23684 fi
304205f1
VS
23685
23686 save_CFLAGS="$CFLAGS"
23687 save_LIBS="$LIBS"
23688 CFLAGS="$CFLAGS $GTK_CFLAGS"
23689 LIBS="$LIBS $GTK_LIBS"
23690
23691for ac_func in pango_font_family_is_monospace
23692do
23693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23694echo "$as_me:$LINENO: checking for $ac_func" >&5
23695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23696if eval "test \"\${$as_ac_var+set}\" = set"; then
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
23698else
23699 cat >conftest.$ac_ext <<_ACEOF
23700/* confdefs.h. */
23701_ACEOF
23702cat confdefs.h >>conftest.$ac_ext
23703cat >>conftest.$ac_ext <<_ACEOF
23704/* end confdefs.h. */
23705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23707#define $ac_func innocuous_$ac_func
23708
23709/* System header to define __stub macros and hopefully few prototypes,
23710 which can conflict with char $ac_func (); below.
23711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23712 <limits.h> exists even on freestanding compilers. */
23713
23714#ifdef __STDC__
23715# include <limits.h>
23716#else
23717# include <assert.h>
23718#endif
23719
23720#undef $ac_func
23721
23722/* Override any gcc2 internal prototype to avoid an error. */
23723#ifdef __cplusplus
23724extern "C"
23725{
23726#endif
23727/* We use char because int might match the return type of a gcc2
23728 builtin and then its argument prototype would still apply. */
23729char $ac_func ();
23730/* The GNU C library defines this for functions which it implements
23731 to always fail with ENOSYS. Some functions are actually named
23732 something starting with __ and the normal name is an alias. */
23733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23734choke me
23735#else
23736char (*f) () = $ac_func;
23737#endif
23738#ifdef __cplusplus
23739}
23740#endif
23741
23742int
23743main ()
23744{
23745return f != $ac_func;
23746 ;
23747 return 0;
23748}
23749_ACEOF
23750rm -f conftest.$ac_objext conftest$ac_exeext
23751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23752 (eval $ac_link) 2>conftest.er1
23753 ac_status=$?
23754 grep -v '^ *+' conftest.er1 >conftest.err
23755 rm -f conftest.er1
23756 cat conftest.err >&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); } &&
c228d3a4
RN
23759 { ac_try='test -z "$ac_c_werror_flag"
23760 || test ! -s conftest.err'
304205f1
VS
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; } &&
23766 { ac_try='test -s conftest$ac_exeext'
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 eval "$as_ac_var=yes"
23773else
23774 echo "$as_me: failed program was:" >&5
23775sed 's/^/| /' conftest.$ac_ext >&5
23776
23777eval "$as_ac_var=no"
23778fi
23779rm -f conftest.err conftest.$ac_objext \
23780 conftest$ac_exeext conftest.$ac_ext
23781fi
23782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23783echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23784if test `eval echo '${'$as_ac_var'}'` = yes; then
23785 cat >>confdefs.h <<_ACEOF
23786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23787_ACEOF
23788
23789fi
23790done
23791
23792 CFLAGS="$save_CFLAGS"
23793 LIBS="$save_LIBS"
a848cd7e
SC
23794 else
23795 if test "$wxUSE_UNICODE" = "yes"; then
23796 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23797echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23798 wxUSE_UNICODE=no
23799 fi
23800 fi
23801
23802 if test "$USE_DARWIN" != 1; then
23803
23804for ac_func in poll
23805do
23806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23807echo "$as_me:$LINENO: checking for $ac_func" >&5
23808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23809if eval "test \"\${$as_ac_var+set}\" = set"; then
23810 echo $ECHO_N "(cached) $ECHO_C" >&6
23811else
23812 cat >conftest.$ac_ext <<_ACEOF
23813/* confdefs.h. */
23814_ACEOF
23815cat confdefs.h >>conftest.$ac_ext
23816cat >>conftest.$ac_ext <<_ACEOF
23817/* end confdefs.h. */
ac1cb8d3
VS
23818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23820#define $ac_func innocuous_$ac_func
23821
a848cd7e
SC
23822/* System header to define __stub macros and hopefully few prototypes,
23823 which can conflict with char $ac_func (); below.
23824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23825 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23826
a848cd7e
SC
23827#ifdef __STDC__
23828# include <limits.h>
23829#else
23830# include <assert.h>
23831#endif
ac1cb8d3
VS
23832
23833#undef $ac_func
23834
a848cd7e
SC
23835/* Override any gcc2 internal prototype to avoid an error. */
23836#ifdef __cplusplus
23837extern "C"
23838{
23839#endif
23840/* We use char because int might match the return type of a gcc2
23841 builtin and then its argument prototype would still apply. */
23842char $ac_func ();
23843/* The GNU C library defines this for functions which it implements
23844 to always fail with ENOSYS. Some functions are actually named
23845 something starting with __ and the normal name is an alias. */
23846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23847choke me
23848#else
23849char (*f) () = $ac_func;
23850#endif
23851#ifdef __cplusplus
23852}
23853#endif
23854
23855int
23856main ()
23857{
23858return f != $ac_func;
23859 ;
23860 return 0;
23861}
23862_ACEOF
23863rm -f conftest.$ac_objext conftest$ac_exeext
23864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23865 (eval $ac_link) 2>conftest.er1
a848cd7e 23866 ac_status=$?
ac1cb8d3
VS
23867 grep -v '^ *+' conftest.er1 >conftest.err
23868 rm -f conftest.er1
23869 cat conftest.err >&5
a848cd7e
SC
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } &&
c228d3a4
RN
23872 { ac_try='test -z "$ac_c_werror_flag"
23873 || test ! -s conftest.err'
ac1cb8d3
VS
23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; } &&
23879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881 (eval $ac_try) 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; }; then
23885 eval "$as_ac_var=yes"
23886else
23887 echo "$as_me: failed program was:" >&5
23888sed 's/^/| /' conftest.$ac_ext >&5
23889
23890eval "$as_ac_var=no"
23891fi
ac1cb8d3
VS
23892rm -f conftest.err conftest.$ac_objext \
23893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23894fi
23895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23896echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23897if test `eval echo '${'$as_ac_var'}'` = yes; then
23898 cat >>confdefs.h <<_ACEOF
23899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23900_ACEOF
23901
23902fi
23903done
23904
23905 fi
23906
23907 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23908 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23909
23910 AFMINSTALL=afminstall
23911 TOOLKIT=GTK
23912 GUIDIST=GTK_DIST
23913
23914 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23915echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23916if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23918else
23919 ac_check_lib_save_LIBS=$LIBS
23920LIBS="-lgdk $LIBS"
23921cat >conftest.$ac_ext <<_ACEOF
23922/* confdefs.h. */
23923_ACEOF
23924cat confdefs.h >>conftest.$ac_ext
23925cat >>conftest.$ac_ext <<_ACEOF
23926/* end confdefs.h. */
23927
23928/* Override any gcc2 internal prototype to avoid an error. */
23929#ifdef __cplusplus
23930extern "C"
23931#endif
23932/* We use char because int might match the return type of a gcc2
23933 builtin and then its argument prototype would still apply. */
23934char gdk_im_open ();
23935int
23936main ()
23937{
23938gdk_im_open ();
23939 ;
23940 return 0;
23941}
23942_ACEOF
23943rm -f conftest.$ac_objext conftest$ac_exeext
23944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23945 (eval $ac_link) 2>conftest.er1
a848cd7e 23946 ac_status=$?
ac1cb8d3
VS
23947 grep -v '^ *+' conftest.er1 >conftest.err
23948 rm -f conftest.er1
23949 cat conftest.err >&5
a848cd7e
SC
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } &&
c228d3a4
RN
23952 { ac_try='test -z "$ac_c_werror_flag"
23953 || test ! -s conftest.err'
ac1cb8d3
VS
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23956 ac_status=$?
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; } &&
23959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961 (eval $ac_try) 2>&5
23962 ac_status=$?
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; }; then
23965 ac_cv_lib_gdk_gdk_im_open=yes
23966else
23967 echo "$as_me: failed program was:" >&5
23968sed 's/^/| /' conftest.$ac_ext >&5
23969
23970ac_cv_lib_gdk_gdk_im_open=no
23971fi
ac1cb8d3
VS
23972rm -f conftest.err conftest.$ac_objext \
23973 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23974LIBS=$ac_check_lib_save_LIBS
23975fi
23976echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23977echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23978if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23979 cat >>confdefs.h <<\_ACEOF
23980#define HAVE_XIM 1
23981_ACEOF
23982
23983fi
23984
23985
23986
23987 if test "$wxUSE_GPE" = "yes"; then
23988 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23989echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23990
23991ac_find_libraries=
23992for ac_dir in $SEARCH_LIB /usr/lib;
23993 do
23994 for ac_extension in a so sl dylib; do
23995 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23996 ac_find_libraries=$ac_dir
23997 break 2
23998 fi
23999 done
24000 done
24001
24002 if test "$ac_find_libraries" != "" ; then
24003
24004 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24005 result=$?
24006 if test $result = 0; then
24007 ac_path_to_link=""
24008 else
24009 ac_path_to_link=" -L$ac_find_libraries"
24010 fi
24011
24012 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24013 WXGPE=1
24014 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24015echo "${ECHO_T}found at $ac_find_libraries" >&6
24016 else
24017 echo "$as_me:$LINENO: result: not found" >&5
24018echo "${ECHO_T}not found" >&6
24019 fi
24020
24021 fi
24022 fi
24023
24024 if test "$wxUSE_MGL" = 1; then
24025 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24026echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24027 if test "x$MGL_ROOT" = x ; then
24028 echo "$as_me:$LINENO: result: not found" >&5
24029echo "${ECHO_T}not found" >&6
24030 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24031echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24032 { (exit 1); exit 1; }; }
24033 else
24034 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24035echo "${ECHO_T}$MGL_ROOT" >&6
24036 fi
24037
24038 echo "$as_me:$LINENO: checking for libmgl location" >&5
24039echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24040 case "${host}" in
24041 *-*-linux* )
24042 if test "x$wxUSE_SHARED" = xyes ; then
24043 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24044 else
24045 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24046 fi
24047 ;;
24048 *-pc-msdosdjgpp )
24049 mgl_os_candidates="dos32/dj2"
24050 ;;
24051 *)
24052 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24053echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24054 { (exit 1); exit 1; }; }
24055 esac
24056
24057 mgl_lib_type=""
24058 mgl_os=""
24059
24060 for mgl_os_i in $mgl_os_candidates ; do
24061 if test "x$mgl_os" = x ; then
24062 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24063 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24064 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24065 mgl_lib_type=debug
24066 mgl_os=$mgl_os_i
24067 fi
24068 fi
24069 if test "x$mgl_lib_type" = x ; then
24070 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24071 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24072 mgl_lib_type=release
24073 mgl_os=$mgl_os_i
24074 fi
24075 fi
24076 fi
24077 done
24078
24079 if test "x$mgl_os" = x ; then
24080 echo "$as_me:$LINENO: result: not found" >&5
24081echo "${ECHO_T}not found" >&6
24082 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24083echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24084 { (exit 1); exit 1; }; }
24085 fi
24086 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24087echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24088
24089 wxUSE_UNIVERSAL="yes"
24090
24091 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24092 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24093
24094 AFMINSTALL=afminstall
24095 TOOLKIT=MGL
24096 GUIDIST=MGL_DIST
24097 fi
24098
24099 if test "$wxUSE_MICROWIN" = 1; then
24100 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24101echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24102 if test "x$MICROWINDOWS" = x ; then
24103 echo "$as_me:$LINENO: result: not found" >&5
24104echo "${ECHO_T}not found" >&6
24105 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24106echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24107 { (exit 1); exit 1; }; }
24108 else
24109 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24110echo "${ECHO_T}$MICROWINDOWS" >&6
24111 fi
24112
24113 if test -f $MICROWINDOWS/lib/libmwin.a; then
24114 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24115echo "${ECHO_T}MicroWindows' libraries found." >&6
24116 else
24117 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24118echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24119 { (exit 1); exit 1; }; }
24120 fi
24121
24122 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24123 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24124
24125 wxUSE_UNIVERSAL="yes"
24126
24127 AFMINSTALL=afminstall
24128 TOOLKIT=MICROWIN
24129 GUIDIST=MICROWIN_DIST
24130
24131 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24132 fi
24133
74b84332 24134 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c228d3a4 24135 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24136echo $ECHO_N "checking for X... $ECHO_C" >&6
24137
24138
24139# Check whether --with-x or --without-x was given.
24140if test "${with_x+set}" = set; then
24141 withval="$with_x"
24142
24143fi;
24144# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24145if test "x$with_x" = xno; then
24146 # The user explicitly disabled X.
24147 have_x=disabled
24148else
24149 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24150 # Both variables are already set.
24151 have_x=yes
24152 else
24153 if test "${ac_cv_have_x+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155else
24156 # One or both of the vars are not set, and there is no cached value.
24157ac_x_includes=no ac_x_libraries=no
24158rm -fr conftest.dir
24159if mkdir conftest.dir; then
24160 cd conftest.dir
24161 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24162 cat >Imakefile <<'_ACEOF'
24163acfindx:
24164 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24165_ACEOF
24166 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24168 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24169 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24170 for ac_extension in a so sl; do
24171 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24172 test -f $ac_im_libdir/libX11.$ac_extension; then
24173 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24174 fi
24175 done
24176 # Screen out bogus values from the imake configuration. They are
24177 # bogus both because they are the default anyway, and because
24178 # using them would break gcc on systems where it needs fixed includes.
24179 case $ac_im_incroot in
24180 /usr/include) ;;
24181 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24182 esac
24183 case $ac_im_usrlibdir in
24184 /usr/lib | /lib) ;;
24185 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24186 esac
24187 fi
24188 cd ..
24189 rm -fr conftest.dir
24190fi
24191
24192# Standard set of common directories for X headers.
24193# Check X11 before X11Rn because it is often a symlink to the current release.
24194ac_x_header_dirs='
24195/usr/X11/include
24196/usr/X11R6/include
24197/usr/X11R5/include
24198/usr/X11R4/include
24199
24200/usr/include/X11
24201/usr/include/X11R6
24202/usr/include/X11R5
24203/usr/include/X11R4
24204
24205/usr/local/X11/include
24206/usr/local/X11R6/include
24207/usr/local/X11R5/include
24208/usr/local/X11R4/include
24209
24210/usr/local/include/X11
24211/usr/local/include/X11R6
24212/usr/local/include/X11R5
24213/usr/local/include/X11R4
24214
24215/usr/X386/include
24216/usr/x386/include
24217/usr/XFree86/include/X11
24218
24219/usr/include
24220/usr/local/include
24221/usr/unsupported/include
24222/usr/athena/include
24223/usr/local/x11r5/include
24224/usr/lpp/Xamples/include
24225
24226/usr/openwin/include
24227/usr/openwin/share/include'
24228
24229if test "$ac_x_includes" = no; then
c228d3a4 24230 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24231 # First, try using that file with no special directory specified.
24232 cat >conftest.$ac_ext <<_ACEOF
24233/* confdefs.h. */
24234_ACEOF
24235cat confdefs.h >>conftest.$ac_ext
24236cat >>conftest.$ac_ext <<_ACEOF
24237/* end confdefs.h. */
24238#include <X11/Intrinsic.h>
24239_ACEOF
24240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24242 ac_status=$?
24243 grep -v '^ *+' conftest.er1 >conftest.err
24244 rm -f conftest.er1
24245 cat conftest.err >&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } >/dev/null; then
24248 if test -s conftest.err; then
24249 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24251 else
24252 ac_cpp_err=
24253 fi
24254else
24255 ac_cpp_err=yes
24256fi
24257if test -z "$ac_cpp_err"; then
24258 # We can compile using X headers with no special include directory.
24259ac_x_includes=
24260else
24261 echo "$as_me: failed program was:" >&5
24262sed 's/^/| /' conftest.$ac_ext >&5
24263
24264 for ac_dir in $ac_x_header_dirs; do
24265 if test -r "$ac_dir/X11/Intrinsic.h"; then
24266 ac_x_includes=$ac_dir
24267 break
24268 fi
24269done
24270fi
24271rm -f conftest.err conftest.$ac_ext
24272fi # $ac_x_includes = no
24273
24274if test "$ac_x_libraries" = no; then
24275 # Check for the libraries.
24276 # See if we find them without any special options.
24277 # Don't add to $LIBS permanently.
24278 ac_save_LIBS=$LIBS
24279 LIBS="-lXt $LIBS"
24280 cat >conftest.$ac_ext <<_ACEOF
24281/* confdefs.h. */
24282_ACEOF
24283cat confdefs.h >>conftest.$ac_ext
24284cat >>conftest.$ac_ext <<_ACEOF
24285/* end confdefs.h. */
24286#include <X11/Intrinsic.h>
24287int
24288main ()
24289{
24290XtMalloc (0)
24291 ;
24292 return 0;
24293}
24294_ACEOF
24295rm -f conftest.$ac_objext conftest$ac_exeext
24296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24297 (eval $ac_link) 2>conftest.er1
a848cd7e 24298 ac_status=$?
ac1cb8d3
VS
24299 grep -v '^ *+' conftest.er1 >conftest.err
24300 rm -f conftest.er1
24301 cat conftest.err >&5
a848cd7e
SC
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } &&
c228d3a4
RN
24304 { ac_try='test -z "$ac_c_werror_flag"
24305 || test ! -s conftest.err'
ac1cb8d3
VS
24306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307 (eval $ac_try) 2>&5
24308 ac_status=$?
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; } &&
24311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24314 ac_status=$?
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; }; then
24317 LIBS=$ac_save_LIBS
24318# We can link X programs with no special library path.
24319ac_x_libraries=
24320else
24321 echo "$as_me: failed program was:" >&5
24322sed 's/^/| /' conftest.$ac_ext >&5
24323
24324LIBS=$ac_save_LIBS
24325for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24326do
24327 # Don't even attempt the hair of trying to link an X program!
24328 for ac_extension in a so sl; do
24329 if test -r $ac_dir/libXt.$ac_extension; then
24330 ac_x_libraries=$ac_dir
24331 break 2
24332 fi
24333 done
24334done
24335fi
ac1cb8d3
VS
24336rm -f conftest.err conftest.$ac_objext \
24337 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24338fi # $ac_x_libraries = no
24339
24340if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24341 # Didn't find X anywhere. Cache the known absence of X.
24342 ac_cv_have_x="have_x=no"
24343else
24344 # Record where we found X for the cache.
24345 ac_cv_have_x="have_x=yes \
ac1cb8d3 24346 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24347fi
24348fi
24349
24350 fi
24351 eval "$ac_cv_have_x"
24352fi # $with_x != no
24353
24354if test "$have_x" != yes; then
24355 echo "$as_me:$LINENO: result: $have_x" >&5
24356echo "${ECHO_T}$have_x" >&6
24357 no_x=yes
24358else
24359 # If each of the values was on the command line, it overrides each guess.
24360 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24361 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24362 # Update the cache value to reflect the command line values.
24363 ac_cv_have_x="have_x=yes \
24364 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c228d3a4
RN
24365 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24366echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24367fi
24368
24369if test "$no_x" = yes; then
24370 # Not all programs may use this symbol, but it does not hurt to define it.
24371
24372cat >>confdefs.h <<\_ACEOF
24373#define X_DISPLAY_MISSING 1
24374_ACEOF
24375
24376 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24377else
24378 if test -n "$x_includes"; then
24379 X_CFLAGS="$X_CFLAGS -I$x_includes"
24380 fi
24381
24382 # It would also be nice to do this for all -L options, not just this one.
24383 if test -n "$x_libraries"; then
24384 X_LIBS="$X_LIBS -L$x_libraries"
24385 # For Solaris; some versions of Sun CC require a space after -R and
24386 # others require no space. Words are not sufficient . . . .
24387 case `(uname -sr) 2>/dev/null` in
24388 "SunOS 5"*)
24389 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24390echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24391 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24392 cat >conftest.$ac_ext <<_ACEOF
24393/* confdefs.h. */
24394_ACEOF
24395cat confdefs.h >>conftest.$ac_ext
24396cat >>conftest.$ac_ext <<_ACEOF
24397/* end confdefs.h. */
24398
24399int
24400main ()
24401{
24402
24403 ;
24404 return 0;
24405}
24406_ACEOF
24407rm -f conftest.$ac_objext conftest$ac_exeext
24408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24409 (eval $ac_link) 2>conftest.er1
a848cd7e 24410 ac_status=$?
ac1cb8d3
VS
24411 grep -v '^ *+' conftest.er1 >conftest.err
24412 rm -f conftest.er1
24413 cat conftest.err >&5
a848cd7e
SC
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); } &&
c228d3a4
RN
24416 { ac_try='test -z "$ac_c_werror_flag"
24417 || test ! -s conftest.err'
ac1cb8d3
VS
24418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24419 (eval $ac_try) 2>&5
24420 ac_status=$?
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); }; } &&
24423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425 (eval $ac_try) 2>&5
24426 ac_status=$?
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); }; }; then
24429 ac_R_nospace=yes
24430else
24431 echo "$as_me: failed program was:" >&5
24432sed 's/^/| /' conftest.$ac_ext >&5
24433
24434ac_R_nospace=no
24435fi
ac1cb8d3
VS
24436rm -f conftest.err conftest.$ac_objext \
24437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24438 if test $ac_R_nospace = yes; then
24439 echo "$as_me:$LINENO: result: no" >&5
24440echo "${ECHO_T}no" >&6
24441 X_LIBS="$X_LIBS -R$x_libraries"
24442 else
24443 LIBS="$ac_xsave_LIBS -R $x_libraries"
24444 cat >conftest.$ac_ext <<_ACEOF
24445/* confdefs.h. */
24446_ACEOF
24447cat confdefs.h >>conftest.$ac_ext
24448cat >>conftest.$ac_ext <<_ACEOF
24449/* end confdefs.h. */
24450
24451int
24452main ()
24453{
24454
24455 ;
24456 return 0;
24457}
24458_ACEOF
24459rm -f conftest.$ac_objext conftest$ac_exeext
24460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24461 (eval $ac_link) 2>conftest.er1
a848cd7e 24462 ac_status=$?
ac1cb8d3
VS
24463 grep -v '^ *+' conftest.er1 >conftest.err
24464 rm -f conftest.er1
24465 cat conftest.err >&5
a848cd7e
SC
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } &&
c228d3a4
RN
24468 { ac_try='test -z "$ac_c_werror_flag"
24469 || test ! -s conftest.err'
ac1cb8d3
VS
24470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); }; } &&
24475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477 (eval $ac_try) 2>&5
24478 ac_status=$?
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; }; then
24481 ac_R_space=yes
24482else
24483 echo "$as_me: failed program was:" >&5
24484sed 's/^/| /' conftest.$ac_ext >&5
24485
24486ac_R_space=no
24487fi
ac1cb8d3
VS
24488rm -f conftest.err conftest.$ac_objext \
24489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24490 if test $ac_R_space = yes; then
24491 echo "$as_me:$LINENO: result: yes" >&5
24492echo "${ECHO_T}yes" >&6
24493 X_LIBS="$X_LIBS -R $x_libraries"
24494 else
24495 echo "$as_me:$LINENO: result: neither works" >&5
24496echo "${ECHO_T}neither works" >&6
24497 fi
24498 fi
24499 LIBS=$ac_xsave_LIBS
24500 esac
24501 fi
24502
24503 # Check for system-dependent libraries X programs must link with.
24504 # Do this before checking for the system-independent R6 libraries
24505 # (-lICE), since we may need -lsocket or whatever for X linking.
24506
24507 if test "$ISC" = yes; then
24508 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24509 else
24510 # Martyn Johnson says this is needed for Ultrix, if the X
24511 # libraries were built with DECnet support. And Karl Berry says
24512 # the Alpha needs dnet_stub (dnet does not exist).
24513 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24514 cat >conftest.$ac_ext <<_ACEOF
24515/* confdefs.h. */
24516_ACEOF
24517cat confdefs.h >>conftest.$ac_ext
24518cat >>conftest.$ac_ext <<_ACEOF
24519/* end confdefs.h. */
24520
24521/* Override any gcc2 internal prototype to avoid an error. */
24522#ifdef __cplusplus
24523extern "C"
24524#endif
24525/* We use char because int might match the return type of a gcc2
24526 builtin and then its argument prototype would still apply. */
24527char XOpenDisplay ();
24528int
24529main ()
24530{
24531XOpenDisplay ();
24532 ;
24533 return 0;
24534}
24535_ACEOF
24536rm -f conftest.$ac_objext conftest$ac_exeext
24537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24538 (eval $ac_link) 2>conftest.er1
a848cd7e 24539 ac_status=$?
ac1cb8d3
VS
24540 grep -v '^ *+' conftest.er1 >conftest.err
24541 rm -f conftest.er1
24542 cat conftest.err >&5
a848cd7e
SC
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } &&
c228d3a4
RN
24545 { ac_try='test -z "$ac_c_werror_flag"
24546 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
24552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; }; then
24558 :
24559else
24560 echo "$as_me: failed program was:" >&5
24561sed 's/^/| /' conftest.$ac_ext >&5
24562
24563echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24564echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24565if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24566 echo $ECHO_N "(cached) $ECHO_C" >&6
24567else
24568 ac_check_lib_save_LIBS=$LIBS
24569LIBS="-ldnet $LIBS"
24570cat >conftest.$ac_ext <<_ACEOF
24571/* confdefs.h. */
24572_ACEOF
24573cat confdefs.h >>conftest.$ac_ext
24574cat >>conftest.$ac_ext <<_ACEOF
24575/* end confdefs.h. */
24576
24577/* Override any gcc2 internal prototype to avoid an error. */
24578#ifdef __cplusplus
24579extern "C"
24580#endif
24581/* We use char because int might match the return type of a gcc2
24582 builtin and then its argument prototype would still apply. */
24583char dnet_ntoa ();
24584int
24585main ()
24586{
24587dnet_ntoa ();
24588 ;
24589 return 0;
24590}
24591_ACEOF
24592rm -f conftest.$ac_objext conftest$ac_exeext
24593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24594 (eval $ac_link) 2>conftest.er1
a848cd7e 24595 ac_status=$?
ac1cb8d3
VS
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
a848cd7e
SC
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } &&
c228d3a4
RN
24601 { ac_try='test -z "$ac_c_werror_flag"
24602 || test ! -s conftest.err'
ac1cb8d3
VS
24603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604 (eval $ac_try) 2>&5
24605 ac_status=$?
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; } &&
24608 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; }; then
24614 ac_cv_lib_dnet_dnet_ntoa=yes
24615else
24616 echo "$as_me: failed program was:" >&5
24617sed 's/^/| /' conftest.$ac_ext >&5
24618
24619ac_cv_lib_dnet_dnet_ntoa=no
24620fi
ac1cb8d3
VS
24621rm -f conftest.err conftest.$ac_objext \
24622 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24623LIBS=$ac_check_lib_save_LIBS
24624fi
24625echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24626echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24627if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24628 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24629fi
24630
24631 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24632 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24633echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24634if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24636else
24637 ac_check_lib_save_LIBS=$LIBS
24638LIBS="-ldnet_stub $LIBS"
24639cat >conftest.$ac_ext <<_ACEOF
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
24645
24646/* Override any gcc2 internal prototype to avoid an error. */
24647#ifdef __cplusplus
24648extern "C"
24649#endif
24650/* We use char because int might match the return type of a gcc2
24651 builtin and then its argument prototype would still apply. */
24652char dnet_ntoa ();
24653int
24654main ()
24655{
24656dnet_ntoa ();
24657 ;
24658 return 0;
24659}
24660_ACEOF
24661rm -f conftest.$ac_objext conftest$ac_exeext
24662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24663 (eval $ac_link) 2>conftest.er1
a848cd7e 24664 ac_status=$?
ac1cb8d3
VS
24665 grep -v '^ *+' conftest.er1 >conftest.err
24666 rm -f conftest.er1
24667 cat conftest.err >&5
a848cd7e
SC
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } &&
c228d3a4
RN
24670 { ac_try='test -z "$ac_c_werror_flag"
24671 || test ! -s conftest.err'
ac1cb8d3
VS
24672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; } &&
24677 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; }; then
24683 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24684else
24685 echo "$as_me: failed program was:" >&5
24686sed 's/^/| /' conftest.$ac_ext >&5
24687
24688ac_cv_lib_dnet_stub_dnet_ntoa=no
24689fi
ac1cb8d3
VS
24690rm -f conftest.err conftest.$ac_objext \
24691 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24692LIBS=$ac_check_lib_save_LIBS
24693fi
24694echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24695echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24696if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24697 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24698fi
24699
24700 fi
24701fi
ac1cb8d3
VS
24702rm -f conftest.err conftest.$ac_objext \
24703 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24704 LIBS="$ac_xsave_LIBS"
24705
24706 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24707 # to get the SysV transport functions.
24708 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24709 # needs -lnsl.
24710 # The nsl library prevents programs from opening the X display
24711 # on Irix 5.2, according to T.E. Dickey.
24712 # The functions gethostbyname, getservbyname, and inet_addr are
24713 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24714 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24715echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24716if test "${ac_cv_func_gethostbyname+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24718else
24719 cat >conftest.$ac_ext <<_ACEOF
24720/* confdefs.h. */
24721_ACEOF
24722cat confdefs.h >>conftest.$ac_ext
24723cat >>conftest.$ac_ext <<_ACEOF
24724/* end confdefs.h. */
ac1cb8d3
VS
24725/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24727#define gethostbyname innocuous_gethostbyname
24728
a848cd7e
SC
24729/* System header to define __stub macros and hopefully few prototypes,
24730 which can conflict with char gethostbyname (); below.
24731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24732 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24733
a848cd7e
SC
24734#ifdef __STDC__
24735# include <limits.h>
24736#else
24737# include <assert.h>
24738#endif
ac1cb8d3
VS
24739
24740#undef gethostbyname
24741
a848cd7e
SC
24742/* Override any gcc2 internal prototype to avoid an error. */
24743#ifdef __cplusplus
24744extern "C"
24745{
24746#endif
24747/* We use char because int might match the return type of a gcc2
24748 builtin and then its argument prototype would still apply. */
24749char gethostbyname ();
24750/* The GNU C library defines this for functions which it implements
24751 to always fail with ENOSYS. Some functions are actually named
24752 something starting with __ and the normal name is an alias. */
24753#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24754choke me
24755#else
24756char (*f) () = gethostbyname;
24757#endif
24758#ifdef __cplusplus
24759}
24760#endif
24761
24762int
24763main ()
24764{
24765return f != gethostbyname;
24766 ;
24767 return 0;
24768}
24769_ACEOF
24770rm -f conftest.$ac_objext conftest$ac_exeext
24771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24772 (eval $ac_link) 2>conftest.er1
a848cd7e 24773 ac_status=$?
ac1cb8d3
VS
24774 grep -v '^ *+' conftest.er1 >conftest.err
24775 rm -f conftest.er1
24776 cat conftest.err >&5
a848cd7e
SC
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
c228d3a4
RN
24779 { ac_try='test -z "$ac_c_werror_flag"
24780 || test ! -s conftest.err'
ac1cb8d3
VS
24781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); }; } &&
24786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; }; then
24792 ac_cv_func_gethostbyname=yes
24793else
24794 echo "$as_me: failed program was:" >&5
24795sed 's/^/| /' conftest.$ac_ext >&5
24796
24797ac_cv_func_gethostbyname=no
24798fi
ac1cb8d3
VS
24799rm -f conftest.err conftest.$ac_objext \
24800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24801fi
24802echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24803echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24804
24805 if test $ac_cv_func_gethostbyname = no; then
24806 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24807echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24808if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24810else
24811 ac_check_lib_save_LIBS=$LIBS
24812LIBS="-lnsl $LIBS"
24813cat >conftest.$ac_ext <<_ACEOF
24814/* confdefs.h. */
24815_ACEOF
24816cat confdefs.h >>conftest.$ac_ext
24817cat >>conftest.$ac_ext <<_ACEOF
24818/* end confdefs.h. */
24819
24820/* Override any gcc2 internal prototype to avoid an error. */
24821#ifdef __cplusplus
24822extern "C"
24823#endif
24824/* We use char because int might match the return type of a gcc2
24825 builtin and then its argument prototype would still apply. */
24826char gethostbyname ();
24827int
24828main ()
24829{
24830gethostbyname ();
24831 ;
24832 return 0;
24833}
24834_ACEOF
24835rm -f conftest.$ac_objext conftest$ac_exeext
24836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24837 (eval $ac_link) 2>conftest.er1
24838 ac_status=$?
24839 grep -v '^ *+' conftest.er1 >conftest.err
24840 rm -f conftest.er1
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } &&
c228d3a4
RN
24844 { ac_try='test -z "$ac_c_werror_flag"
24845 || test ! -s conftest.err'
ac1cb8d3
VS
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } &&
24851 { ac_try='test -s conftest$ac_exeext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 ac_cv_lib_nsl_gethostbyname=yes
24858else
24859 echo "$as_me: failed program was:" >&5
24860sed 's/^/| /' conftest.$ac_ext >&5
24861
24862ac_cv_lib_nsl_gethostbyname=no
24863fi
24864rm -f conftest.err conftest.$ac_objext \
24865 conftest$ac_exeext conftest.$ac_ext
24866LIBS=$ac_check_lib_save_LIBS
24867fi
24868echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24869echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24870if test $ac_cv_lib_nsl_gethostbyname = yes; then
24871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24872fi
24873
24874 if test $ac_cv_lib_nsl_gethostbyname = no; then
24875 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24876echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24877if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24879else
24880 ac_check_lib_save_LIBS=$LIBS
24881LIBS="-lbsd $LIBS"
24882cat >conftest.$ac_ext <<_ACEOF
24883/* confdefs.h. */
24884_ACEOF
24885cat confdefs.h >>conftest.$ac_ext
24886cat >>conftest.$ac_ext <<_ACEOF
24887/* end confdefs.h. */
24888
24889/* Override any gcc2 internal prototype to avoid an error. */
24890#ifdef __cplusplus
24891extern "C"
24892#endif
24893/* We use char because int might match the return type of a gcc2
24894 builtin and then its argument prototype would still apply. */
24895char gethostbyname ();
24896int
24897main ()
24898{
24899gethostbyname ();
24900 ;
24901 return 0;
24902}
24903_ACEOF
24904rm -f conftest.$ac_objext conftest$ac_exeext
24905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24906 (eval $ac_link) 2>conftest.er1
a848cd7e 24907 ac_status=$?
ac1cb8d3
VS
24908 grep -v '^ *+' conftest.er1 >conftest.err
24909 rm -f conftest.er1
24910 cat conftest.err >&5
a848cd7e
SC
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } &&
c228d3a4
RN
24913 { ac_try='test -z "$ac_c_werror_flag"
24914 || test ! -s conftest.err'
a848cd7e
SC
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24917 ac_status=$?
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24919 (exit $ac_status); }; } &&
24920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926 ac_cv_lib_bsd_gethostbyname=yes
24927else
24928 echo "$as_me: failed program was:" >&5
24929sed 's/^/| /' conftest.$ac_ext >&5
24930
24931ac_cv_lib_bsd_gethostbyname=no
24932fi
ac1cb8d3
VS
24933rm -f conftest.err conftest.$ac_objext \
24934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24935LIBS=$ac_check_lib_save_LIBS
24936fi
24937echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24938echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24939if test $ac_cv_lib_bsd_gethostbyname = yes; then
24940 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24941fi
24942
24943 fi
24944 fi
24945
24946 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24947 # socket/setsockopt and other routines are undefined under SCO ODT
24948 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24949 # on later versions), says Simon Leinen: it contains gethostby*
24950 # variants that don't use the name server (or something). -lsocket
24951 # must be given before -lnsl if both are needed. We assume that
24952 # if connect needs -lnsl, so does gethostbyname.
24953 echo "$as_me:$LINENO: checking for connect" >&5
24954echo $ECHO_N "checking for connect... $ECHO_C" >&6
24955if test "${ac_cv_func_connect+set}" = set; then
24956 echo $ECHO_N "(cached) $ECHO_C" >&6
24957else
24958 cat >conftest.$ac_ext <<_ACEOF
24959/* confdefs.h. */
24960_ACEOF
24961cat confdefs.h >>conftest.$ac_ext
24962cat >>conftest.$ac_ext <<_ACEOF
24963/* end confdefs.h. */
ac1cb8d3
VS
24964/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24966#define connect innocuous_connect
24967
a848cd7e
SC
24968/* System header to define __stub macros and hopefully few prototypes,
24969 which can conflict with char connect (); below.
24970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24971 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24972
a848cd7e
SC
24973#ifdef __STDC__
24974# include <limits.h>
24975#else
24976# include <assert.h>
24977#endif
ac1cb8d3
VS
24978
24979#undef connect
24980
a848cd7e
SC
24981/* Override any gcc2 internal prototype to avoid an error. */
24982#ifdef __cplusplus
24983extern "C"
24984{
24985#endif
24986/* We use char because int might match the return type of a gcc2
24987 builtin and then its argument prototype would still apply. */
24988char connect ();
24989/* The GNU C library defines this for functions which it implements
24990 to always fail with ENOSYS. Some functions are actually named
24991 something starting with __ and the normal name is an alias. */
24992#if defined (__stub_connect) || defined (__stub___connect)
24993choke me
24994#else
24995char (*f) () = connect;
24996#endif
24997#ifdef __cplusplus
24998}
24999#endif
25000
25001int
25002main ()
25003{
25004return f != connect;
25005 ;
25006 return 0;
25007}
25008_ACEOF
25009rm -f conftest.$ac_objext conftest$ac_exeext
25010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25011 (eval $ac_link) 2>conftest.er1
a848cd7e 25012 ac_status=$?
ac1cb8d3
VS
25013 grep -v '^ *+' conftest.er1 >conftest.err
25014 rm -f conftest.er1
25015 cat conftest.err >&5
a848cd7e
SC
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
c228d3a4
RN
25018 { ac_try='test -z "$ac_c_werror_flag"
25019 || test ! -s conftest.err'
ac1cb8d3
VS
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25022 ac_status=$?
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
25025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 ac_cv_func_connect=yes
25032else
25033 echo "$as_me: failed program was:" >&5
25034sed 's/^/| /' conftest.$ac_ext >&5
25035
25036ac_cv_func_connect=no
25037fi
ac1cb8d3
VS
25038rm -f conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25040fi
25041echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25042echo "${ECHO_T}$ac_cv_func_connect" >&6
25043
25044 if test $ac_cv_func_connect = no; then
25045 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25046echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25047if test "${ac_cv_lib_socket_connect+set}" = set; then
25048 echo $ECHO_N "(cached) $ECHO_C" >&6
25049else
25050 ac_check_lib_save_LIBS=$LIBS
25051LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25052cat >conftest.$ac_ext <<_ACEOF
25053/* confdefs.h. */
25054_ACEOF
25055cat confdefs.h >>conftest.$ac_ext
25056cat >>conftest.$ac_ext <<_ACEOF
25057/* end confdefs.h. */
25058
25059/* Override any gcc2 internal prototype to avoid an error. */
25060#ifdef __cplusplus
25061extern "C"
25062#endif
25063/* We use char because int might match the return type of a gcc2
25064 builtin and then its argument prototype would still apply. */
25065char connect ();
25066int
25067main ()
25068{
25069connect ();
25070 ;
25071 return 0;
25072}
25073_ACEOF
25074rm -f conftest.$ac_objext conftest$ac_exeext
25075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25076 (eval $ac_link) 2>conftest.er1
a848cd7e 25077 ac_status=$?
ac1cb8d3
VS
25078 grep -v '^ *+' conftest.er1 >conftest.err
25079 rm -f conftest.er1
25080 cat conftest.err >&5
a848cd7e
SC
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } &&
c228d3a4
RN
25083 { ac_try='test -z "$ac_c_werror_flag"
25084 || test ! -s conftest.err'
ac1cb8d3
VS
25085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086 (eval $ac_try) 2>&5
25087 ac_status=$?
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; } &&
25090 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092 (eval $ac_try) 2>&5
25093 ac_status=$?
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; }; then
25096 ac_cv_lib_socket_connect=yes
25097else
25098 echo "$as_me: failed program was:" >&5
25099sed 's/^/| /' conftest.$ac_ext >&5
25100
25101ac_cv_lib_socket_connect=no
25102fi
ac1cb8d3
VS
25103rm -f conftest.err conftest.$ac_objext \
25104 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25105LIBS=$ac_check_lib_save_LIBS
25106fi
25107echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25108echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25109if test $ac_cv_lib_socket_connect = yes; then
25110 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25111fi
25112
25113 fi
25114
25115 # Guillermo Gomez says -lposix is necessary on A/UX.
25116 echo "$as_me:$LINENO: checking for remove" >&5
25117echo $ECHO_N "checking for remove... $ECHO_C" >&6
25118if test "${ac_cv_func_remove+set}" = set; then
25119 echo $ECHO_N "(cached) $ECHO_C" >&6
25120else
25121 cat >conftest.$ac_ext <<_ACEOF
25122/* confdefs.h. */
25123_ACEOF
25124cat confdefs.h >>conftest.$ac_ext
25125cat >>conftest.$ac_ext <<_ACEOF
25126/* end confdefs.h. */
ac1cb8d3
VS
25127/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25129#define remove innocuous_remove
25130
a848cd7e
SC
25131/* System header to define __stub macros and hopefully few prototypes,
25132 which can conflict with char remove (); below.
25133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25134 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25135
a848cd7e
SC
25136#ifdef __STDC__
25137# include <limits.h>
25138#else
25139# include <assert.h>
25140#endif
ac1cb8d3
VS
25141
25142#undef remove
25143
a848cd7e
SC
25144/* Override any gcc2 internal prototype to avoid an error. */
25145#ifdef __cplusplus
25146extern "C"
25147{
25148#endif
25149/* We use char because int might match the return type of a gcc2
25150 builtin and then its argument prototype would still apply. */
25151char remove ();
25152/* The GNU C library defines this for functions which it implements
25153 to always fail with ENOSYS. Some functions are actually named
25154 something starting with __ and the normal name is an alias. */
25155#if defined (__stub_remove) || defined (__stub___remove)
25156choke me
25157#else
25158char (*f) () = remove;
25159#endif
25160#ifdef __cplusplus
25161}
25162#endif
25163
25164int
25165main ()
25166{
25167return f != remove;
25168 ;
25169 return 0;
25170}
25171_ACEOF
25172rm -f conftest.$ac_objext conftest$ac_exeext
25173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25174 (eval $ac_link) 2>conftest.er1
a848cd7e 25175 ac_status=$?
ac1cb8d3
VS
25176 grep -v '^ *+' conftest.er1 >conftest.err
25177 rm -f conftest.er1
25178 cat conftest.err >&5
a848cd7e
SC
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } &&
c228d3a4
RN
25181 { ac_try='test -z "$ac_c_werror_flag"
25182 || test ! -s conftest.err'
ac1cb8d3
VS
25183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184 (eval $ac_try) 2>&5
25185 ac_status=$?
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); }; } &&
25188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190 (eval $ac_try) 2>&5
25191 ac_status=$?
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); }; }; then
25194 ac_cv_func_remove=yes
25195else
25196 echo "$as_me: failed program was:" >&5
25197sed 's/^/| /' conftest.$ac_ext >&5
25198
25199ac_cv_func_remove=no
25200fi
ac1cb8d3
VS
25201rm -f conftest.err conftest.$ac_objext \
25202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25203fi
25204echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25205echo "${ECHO_T}$ac_cv_func_remove" >&6
25206
25207 if test $ac_cv_func_remove = no; then
25208 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25209echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25210if test "${ac_cv_lib_posix_remove+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25212else
25213 ac_check_lib_save_LIBS=$LIBS
25214LIBS="-lposix $LIBS"
25215cat >conftest.$ac_ext <<_ACEOF
25216/* confdefs.h. */
25217_ACEOF
25218cat confdefs.h >>conftest.$ac_ext
25219cat >>conftest.$ac_ext <<_ACEOF
25220/* end confdefs.h. */
25221
25222/* Override any gcc2 internal prototype to avoid an error. */
25223#ifdef __cplusplus
25224extern "C"
25225#endif
25226/* We use char because int might match the return type of a gcc2
25227 builtin and then its argument prototype would still apply. */
25228char remove ();
25229int
25230main ()
25231{
25232remove ();
25233 ;
25234 return 0;
25235}
25236_ACEOF
25237rm -f conftest.$ac_objext conftest$ac_exeext
25238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25239 (eval $ac_link) 2>conftest.er1
a848cd7e 25240 ac_status=$?
ac1cb8d3
VS
25241 grep -v '^ *+' conftest.er1 >conftest.err
25242 rm -f conftest.er1
25243 cat conftest.err >&5
a848cd7e
SC
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); } &&
c228d3a4
RN
25246 { ac_try='test -z "$ac_c_werror_flag"
25247 || test ! -s conftest.err'
ac1cb8d3
VS
25248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249 (eval $ac_try) 2>&5
25250 ac_status=$?
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; } &&
25253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 ac_cv_lib_posix_remove=yes
25260else
25261 echo "$as_me: failed program was:" >&5
25262sed 's/^/| /' conftest.$ac_ext >&5
25263
25264ac_cv_lib_posix_remove=no
25265fi
ac1cb8d3
VS
25266rm -f conftest.err conftest.$ac_objext \
25267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25268LIBS=$ac_check_lib_save_LIBS
25269fi
25270echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25271echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25272if test $ac_cv_lib_posix_remove = yes; then
25273 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25274fi
25275
25276 fi
25277
25278 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25279 echo "$as_me:$LINENO: checking for shmat" >&5
25280echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25281if test "${ac_cv_func_shmat+set}" = set; then
25282 echo $ECHO_N "(cached) $ECHO_C" >&6
25283else
25284 cat >conftest.$ac_ext <<_ACEOF
25285/* confdefs.h. */
25286_ACEOF
25287cat confdefs.h >>conftest.$ac_ext
25288cat >>conftest.$ac_ext <<_ACEOF
25289/* end confdefs.h. */
ac1cb8d3
VS
25290/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25292#define shmat innocuous_shmat
25293
a848cd7e
SC
25294/* System header to define __stub macros and hopefully few prototypes,
25295 which can conflict with char shmat (); below.
25296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25297 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25298
a848cd7e
SC
25299#ifdef __STDC__
25300# include <limits.h>
25301#else
25302# include <assert.h>
25303#endif
ac1cb8d3
VS
25304
25305#undef shmat
25306
a848cd7e
SC
25307/* Override any gcc2 internal prototype to avoid an error. */
25308#ifdef __cplusplus
25309extern "C"
25310{
25311#endif
25312/* We use char because int might match the return type of a gcc2
25313 builtin and then its argument prototype would still apply. */
25314char shmat ();
25315/* The GNU C library defines this for functions which it implements
25316 to always fail with ENOSYS. Some functions are actually named
25317 something starting with __ and the normal name is an alias. */
25318#if defined (__stub_shmat) || defined (__stub___shmat)
25319choke me
25320#else
25321char (*f) () = shmat;
25322#endif
25323#ifdef __cplusplus
25324}
25325#endif
25326
25327int
25328main ()
25329{
25330return f != shmat;
25331 ;
25332 return 0;
25333}
25334_ACEOF
25335rm -f conftest.$ac_objext conftest$ac_exeext
25336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25337 (eval $ac_link) 2>conftest.er1
a848cd7e 25338 ac_status=$?
ac1cb8d3
VS
25339 grep -v '^ *+' conftest.er1 >conftest.err
25340 rm -f conftest.er1
25341 cat conftest.err >&5
a848cd7e
SC
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } &&
c228d3a4
RN
25344 { ac_try='test -z "$ac_c_werror_flag"
25345 || test ! -s conftest.err'
ac1cb8d3
VS
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; } &&
25351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357 ac_cv_func_shmat=yes
25358else
25359 echo "$as_me: failed program was:" >&5
25360sed 's/^/| /' conftest.$ac_ext >&5
25361
25362ac_cv_func_shmat=no
25363fi
ac1cb8d3
VS
25364rm -f conftest.err conftest.$ac_objext \
25365 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25366fi
25367echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25368echo "${ECHO_T}$ac_cv_func_shmat" >&6
25369
25370 if test $ac_cv_func_shmat = no; then
25371 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25372echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25373if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25374 echo $ECHO_N "(cached) $ECHO_C" >&6
25375else
25376 ac_check_lib_save_LIBS=$LIBS
25377LIBS="-lipc $LIBS"
25378cat >conftest.$ac_ext <<_ACEOF
25379/* confdefs.h. */
25380_ACEOF
25381cat confdefs.h >>conftest.$ac_ext
25382cat >>conftest.$ac_ext <<_ACEOF
25383/* end confdefs.h. */
25384
25385/* Override any gcc2 internal prototype to avoid an error. */
25386#ifdef __cplusplus
25387extern "C"
25388#endif
25389/* We use char because int might match the return type of a gcc2
25390 builtin and then its argument prototype would still apply. */
25391char shmat ();
25392int
25393main ()
25394{
25395shmat ();
25396 ;
25397 return 0;
25398}
25399_ACEOF
25400rm -f conftest.$ac_objext conftest$ac_exeext
25401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25402 (eval $ac_link) 2>conftest.er1
a848cd7e 25403 ac_status=$?
ac1cb8d3
VS
25404 grep -v '^ *+' conftest.er1 >conftest.err
25405 rm -f conftest.er1
25406 cat conftest.err >&5
a848cd7e
SC
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } &&
c228d3a4
RN
25409 { ac_try='test -z "$ac_c_werror_flag"
25410 || test ! -s conftest.err'
ac1cb8d3
VS
25411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25412 (eval $ac_try) 2>&5
25413 ac_status=$?
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); }; } &&
25416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25419 ac_status=$?
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); }; }; then
25422 ac_cv_lib_ipc_shmat=yes
25423else
25424 echo "$as_me: failed program was:" >&5
25425sed 's/^/| /' conftest.$ac_ext >&5
25426
25427ac_cv_lib_ipc_shmat=no
25428fi
ac1cb8d3
VS
25429rm -f conftest.err conftest.$ac_objext \
25430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25431LIBS=$ac_check_lib_save_LIBS
25432fi
25433echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25434echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25435if test $ac_cv_lib_ipc_shmat = yes; then
25436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25437fi
25438
25439 fi
25440 fi
25441
25442 # Check for libraries that X11R6 Xt/Xaw programs need.
25443 ac_save_LDFLAGS=$LDFLAGS
25444 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25445 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25446 # check for ICE first), but we must link in the order -lSM -lICE or
25447 # we get undefined symbols. So assume we have SM if we have ICE.
25448 # These have to be linked with before -lX11, unlike the other
25449 # libraries we check for below, so use a different variable.
25450 # John Interrante, Karl Berry
25451 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25452echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25453if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25454 echo $ECHO_N "(cached) $ECHO_C" >&6
25455else
25456 ac_check_lib_save_LIBS=$LIBS
25457LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25458cat >conftest.$ac_ext <<_ACEOF
25459/* confdefs.h. */
25460_ACEOF
25461cat confdefs.h >>conftest.$ac_ext
25462cat >>conftest.$ac_ext <<_ACEOF
25463/* end confdefs.h. */
25464
25465/* Override any gcc2 internal prototype to avoid an error. */
25466#ifdef __cplusplus
25467extern "C"
25468#endif
25469/* We use char because int might match the return type of a gcc2
25470 builtin and then its argument prototype would still apply. */
25471char IceConnectionNumber ();
25472int
25473main ()
25474{
25475IceConnectionNumber ();
25476 ;
25477 return 0;
25478}
25479_ACEOF
25480rm -f conftest.$ac_objext conftest$ac_exeext
25481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25482 (eval $ac_link) 2>conftest.er1
a848cd7e 25483 ac_status=$?
ac1cb8d3
VS
25484 grep -v '^ *+' conftest.er1 >conftest.err
25485 rm -f conftest.er1
25486 cat conftest.err >&5
a848cd7e
SC
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } &&
c228d3a4
RN
25489 { ac_try='test -z "$ac_c_werror_flag"
25490 || test ! -s conftest.err'
ac1cb8d3
VS
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25493 ac_status=$?
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; } &&
25496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25499 ac_status=$?
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; }; then
25502 ac_cv_lib_ICE_IceConnectionNumber=yes
25503else
25504 echo "$as_me: failed program was:" >&5
25505sed 's/^/| /' conftest.$ac_ext >&5
25506
25507ac_cv_lib_ICE_IceConnectionNumber=no
25508fi
ac1cb8d3
VS
25509rm -f conftest.err conftest.$ac_objext \
25510 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25511LIBS=$ac_check_lib_save_LIBS
25512fi
25513echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25514echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25515if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25516 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25517fi
25518
25519 LDFLAGS=$ac_save_LDFLAGS
25520
25521fi
25522
25523
25524 if test "$no_x" = "yes"; then
25525 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25526echo "$as_me: error: X11 not found" >&2;}
25527 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25528 fi
25529
74b84332
VS
25530 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25531 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25532 AFMINSTALL=afminstall
25533 COMPILED_X_PROGRAM=0
25534
74b84332
VS
25535 fi
25536
25537 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25538 if test "$wxUSE_NANOX" = "yes"; then
25539 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25540echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25541 if test "x$MICROWIN" = x ; then
25542 echo "$as_me:$LINENO: result: not found" >&5
25543echo "${ECHO_T}not found" >&6
25544 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25545echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25546 { (exit 1); exit 1; }; }
25547 else
25548 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25549echo "${ECHO_T}$MICROWIN" >&6
25550 cat >>confdefs.h <<\_ACEOF
25551#define wxUSE_NANOX 1
25552_ACEOF
25553
25554 fi
25555 fi
25556
25557 if test "$wxUSE_UNICODE" = "yes"; then
25558
25559 succeeded=no
25560
25561 if test -z "$PKG_CONFIG"; then
25562 # Extract the first word of "pkg-config", so it can be a program name with args.
25563set dummy pkg-config; ac_word=$2
25564echo "$as_me:$LINENO: checking for $ac_word" >&5
25565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25566if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25568else
25569 case $PKG_CONFIG in
25570 [\\/]* | ?:[\\/]*)
25571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25572 ;;
25573 *)
25574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25575for as_dir in $PATH
25576do
25577 IFS=$as_save_IFS
25578 test -z "$as_dir" && as_dir=.
25579 for ac_exec_ext in '' $ac_executable_extensions; do
25580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25583 break 2
25584 fi
25585done
25586done
25587
25588 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25589 ;;
25590esac
25591fi
25592PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25593
25594if test -n "$PKG_CONFIG"; then
25595 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25596echo "${ECHO_T}$PKG_CONFIG" >&6
25597else
25598 echo "$as_me:$LINENO: result: no" >&5
25599echo "${ECHO_T}no" >&6
25600fi
25601
25602 fi
25603
25604 if test "$PKG_CONFIG" = "no" ; then
25605 echo "*** The pkg-config script could not be found. Make sure it is"
25606 echo "*** in your path, or set the PKG_CONFIG environment variable"
25607 echo "*** to the full path to pkg-config."
25608 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25609 else
25610 PKG_CONFIG_MIN_VERSION=0.9.0
25611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25612 echo "$as_me:$LINENO: checking for pangox" >&5
25613echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25614
25615 if $PKG_CONFIG --exists "pangox" ; then
25616 echo "$as_me:$LINENO: result: yes" >&5
25617echo "${ECHO_T}yes" >&6
25618 succeeded=yes
25619
25620 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25621echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25622 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25623 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25624echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25625
25626 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25627echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25628 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25629 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25630echo "${ECHO_T}$PANGOX_LIBS" >&6
25631 else
25632 PANGOX_CFLAGS=""
25633 PANGOX_LIBS=""
25634 ## If we have a custom action on failure, don't print errors, but
25635 ## do set a variable so people can do so.
25636 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25637
25638 fi
25639
25640
25641
25642 else
25643 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25644 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25645 fi
25646 fi
25647
25648 if test $succeeded = yes; then
25649
25650 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25651 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25652
25653 else
25654
25655 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25656echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25657 { (exit 1); exit 1; }; }
25658
25659
25660 fi
25661
25662
25663 succeeded=no
25664
25665 if test -z "$PKG_CONFIG"; then
25666 # Extract the first word of "pkg-config", so it can be a program name with args.
25667set dummy pkg-config; ac_word=$2
25668echo "$as_me:$LINENO: checking for $ac_word" >&5
25669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25670if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25671 echo $ECHO_N "(cached) $ECHO_C" >&6
25672else
25673 case $PKG_CONFIG in
25674 [\\/]* | ?:[\\/]*)
25675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25676 ;;
25677 *)
25678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25679for as_dir in $PATH
25680do
25681 IFS=$as_save_IFS
25682 test -z "$as_dir" && as_dir=.
25683 for ac_exec_ext in '' $ac_executable_extensions; do
25684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25687 break 2
25688 fi
25689done
25690done
25691
25692 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25693 ;;
25694esac
25695fi
25696PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25697
25698if test -n "$PKG_CONFIG"; then
25699 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25700echo "${ECHO_T}$PKG_CONFIG" >&6
25701else
25702 echo "$as_me:$LINENO: result: no" >&5
25703echo "${ECHO_T}no" >&6
25704fi
25705
25706 fi
25707
25708 if test "$PKG_CONFIG" = "no" ; then
25709 echo "*** The pkg-config script could not be found. Make sure it is"
25710 echo "*** in your path, or set the PKG_CONFIG environment variable"
25711 echo "*** to the full path to pkg-config."
25712 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25713 else
25714 PKG_CONFIG_MIN_VERSION=0.9.0
25715 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25716 echo "$as_me:$LINENO: checking for pangoft2" >&5
25717echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25718
25719 if $PKG_CONFIG --exists "pangoft2" ; then
25720 echo "$as_me:$LINENO: result: yes" >&5
25721echo "${ECHO_T}yes" >&6
25722 succeeded=yes
25723
25724 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25725echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25726 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25727 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25728echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25729
25730 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25731echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25732 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25733 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25734echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25735 else
25736 PANGOFT2_CFLAGS=""
25737 PANGOFT2_LIBS=""
25738 ## If we have a custom action on failure, don't print errors, but
25739 ## do set a variable so people can do so.
25740 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25741
25742 fi
25743
25744
25745
25746 else
25747 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25748 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25749 fi
25750 fi
25751
25752 if test $succeeded = yes; then
25753
25754 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25755 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25756
25757 else
25758
25759 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25760echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25761 wxUSE_PRINTING_ARCHITECTURE="no"
25762
25763
25764 fi
25765
25766
25767 succeeded=no
25768
25769 if test -z "$PKG_CONFIG"; then
25770 # Extract the first word of "pkg-config", so it can be a program name with args.
25771set dummy pkg-config; ac_word=$2
25772echo "$as_me:$LINENO: checking for $ac_word" >&5
25773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25774if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25775 echo $ECHO_N "(cached) $ECHO_C" >&6
25776else
25777 case $PKG_CONFIG in
25778 [\\/]* | ?:[\\/]*)
25779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25780 ;;
25781 *)
25782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25783for as_dir in $PATH
25784do
25785 IFS=$as_save_IFS
25786 test -z "$as_dir" && as_dir=.
25787 for ac_exec_ext in '' $ac_executable_extensions; do
25788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25789 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25791 break 2
25792 fi
25793done
25794done
25795
25796 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25797 ;;
25798esac
25799fi
25800PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25801
25802if test -n "$PKG_CONFIG"; then
25803 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25804echo "${ECHO_T}$PKG_CONFIG" >&6
25805else
25806 echo "$as_me:$LINENO: result: no" >&5
25807echo "${ECHO_T}no" >&6
25808fi
25809
25810 fi
25811
25812 if test "$PKG_CONFIG" = "no" ; then
25813 echo "*** The pkg-config script could not be found. Make sure it is"
25814 echo "*** in your path, or set the PKG_CONFIG environment variable"
25815 echo "*** to the full path to pkg-config."
25816 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25817 else
25818 PKG_CONFIG_MIN_VERSION=0.9.0
25819 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25820 echo "$as_me:$LINENO: checking for pangoxft" >&5
25821echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25822
25823 if $PKG_CONFIG --exists "pangoxft" ; then
25824 echo "$as_me:$LINENO: result: yes" >&5
25825echo "${ECHO_T}yes" >&6
25826 succeeded=yes
25827
25828 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25829echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25830 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25831 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25832echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25833
25834 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25835echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25836 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25837 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25838echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25839 else
25840 PANGOXFT_CFLAGS=""
25841 PANGOXFT_LIBS=""
25842 ## If we have a custom action on failure, don't print errors, but
25843 ## do set a variable so people can do so.
25844 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25845
25846 fi
25847
25848
25849
25850 else
25851 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25852 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25853 fi
25854 fi
25855
25856 if test $succeeded = yes; then
25857
25858 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25859 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25860
25861 else
25862
25863 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25864echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25865
25866
25867 fi
25868
304205f1
VS
25869 save_CFLAGS="$CFLAGS"
25870 save_LIBS="$LIBS"
25871 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25872 LIBS="$LIBS $PANGOX_LIBS"
25873
25874for ac_func in pango_font_family_is_monospace
25875do
25876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25877echo "$as_me:$LINENO: checking for $ac_func" >&5
25878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25879if eval "test \"\${$as_ac_var+set}\" = set"; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25881else
25882 cat >conftest.$ac_ext <<_ACEOF
25883/* confdefs.h. */
25884_ACEOF
25885cat confdefs.h >>conftest.$ac_ext
25886cat >>conftest.$ac_ext <<_ACEOF
25887/* end confdefs.h. */
25888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25890#define $ac_func innocuous_$ac_func
25891
25892/* System header to define __stub macros and hopefully few prototypes,
25893 which can conflict with char $ac_func (); below.
25894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25895 <limits.h> exists even on freestanding compilers. */
25896
25897#ifdef __STDC__
25898# include <limits.h>
25899#else
25900# include <assert.h>
25901#endif
25902
25903#undef $ac_func
25904
25905/* Override any gcc2 internal prototype to avoid an error. */
25906#ifdef __cplusplus
25907extern "C"
25908{
25909#endif
25910/* We use char because int might match the return type of a gcc2
25911 builtin and then its argument prototype would still apply. */
25912char $ac_func ();
25913/* The GNU C library defines this for functions which it implements
25914 to always fail with ENOSYS. Some functions are actually named
25915 something starting with __ and the normal name is an alias. */
25916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25917choke me
25918#else
25919char (*f) () = $ac_func;
25920#endif
25921#ifdef __cplusplus
25922}
25923#endif
25924
25925int
25926main ()
25927{
25928return f != $ac_func;
25929 ;
25930 return 0;
25931}
25932_ACEOF
25933rm -f conftest.$ac_objext conftest$ac_exeext
25934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25935 (eval $ac_link) 2>conftest.er1
25936 ac_status=$?
25937 grep -v '^ *+' conftest.er1 >conftest.err
25938 rm -f conftest.er1
25939 cat conftest.err >&5
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); } &&
c228d3a4
RN
25942 { ac_try='test -z "$ac_c_werror_flag"
25943 || test ! -s conftest.err'
304205f1
VS
25944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25945 (eval $ac_try) 2>&5
25946 ac_status=$?
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); }; } &&
25949 { ac_try='test -s conftest$ac_exeext'
25950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951 (eval $ac_try) 2>&5
25952 ac_status=$?
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); }; }; then
25955 eval "$as_ac_var=yes"
25956else
25957 echo "$as_me: failed program was:" >&5
25958sed 's/^/| /' conftest.$ac_ext >&5
25959
25960eval "$as_ac_var=no"
25961fi
25962rm -f conftest.err conftest.$ac_objext \
25963 conftest$ac_exeext conftest.$ac_ext
25964fi
25965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25966echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25967if test `eval echo '${'$as_ac_var'}'` = yes; then
25968 cat >>confdefs.h <<_ACEOF
25969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25970_ACEOF
25971
25972fi
25973done
25974
25975 CFLAGS="$save_CFLAGS"
25976 LIBS="$save_LIBS"
a848cd7e
SC
25977 fi
25978
25979 wxUSE_UNIVERSAL="yes"
25980
25981 if test "$wxUSE_NANOX" = "yes"; then
25982 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25983 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"
25984 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25985 else
25986 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25987 fi
25988
a848cd7e
SC
25989 TOOLKIT=X11
25990 GUIDIST=X11_DIST
25991 fi
25992
25993 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25994 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25995echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25996
74b84332
VS
25997ac_find_includes=
25998for ac_dir in $SEARCH_INCLUDE /usr/include;
25999 do
26000 if test -f "$ac_dir/Xm/Xm.h"; then
26001 ac_find_includes=$ac_dir
26002 break
26003 fi
26004 done
a848cd7e 26005
74b84332
VS
26006 if test "$ac_find_includes" != "" ; then
26007 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26008echo "${ECHO_T}found in $ac_find_includes" >&6
26009
26010 if test "x$ac_find_includes" = "x/usr/include"; then
26011 ac_path_to_include=""
26012 else
26013 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26014 result=$?
26015 if test $result = 0; then
26016 ac_path_to_include=""
26017 else
26018 ac_path_to_include=" -I$ac_find_includes"
26019 fi
a848cd7e
SC
26020 fi
26021
74b84332
VS
26022 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26023 else
26024 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26025/* confdefs.h. */
26026_ACEOF
26027cat confdefs.h >>conftest.$ac_ext
26028cat >>conftest.$ac_ext <<_ACEOF
26029/* end confdefs.h. */
26030
74b84332
VS
26031 #include <Xm/Xm.h>
26032
a848cd7e
SC
26033int
26034main ()
26035{
26036
74b84332
VS
26037 int version;
26038 version = xmUseVersion;
26039
a848cd7e
SC
26040 ;
26041 return 0;
26042}
26043_ACEOF
74b84332
VS
26044rm -f conftest.$ac_objext
26045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26046 (eval $ac_compile) 2>conftest.er1
a848cd7e 26047 ac_status=$?
ac1cb8d3
VS
26048 grep -v '^ *+' conftest.er1 >conftest.err
26049 rm -f conftest.er1
26050 cat conftest.err >&5
a848cd7e
SC
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } &&
c228d3a4
RN
26053 { ac_try='test -z "$ac_c_werror_flag"
26054 || test ! -s conftest.err'
ac1cb8d3
VS
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; } &&
74b84332 26060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062 (eval $ac_try) 2>&5
26063 ac_status=$?
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; }; then
74b84332
VS
26066
26067 echo "$as_me:$LINENO: result: found in default search path" >&5
26068echo "${ECHO_T}found in default search path" >&6
26069 COMPILED_X_PROGRAM=1
26070
a848cd7e
SC
26071else
26072 echo "$as_me: failed program was:" >&5
26073sed 's/^/| /' conftest.$ac_ext >&5
26074
a848cd7e 26075
74b84332
VS
26076 echo "$as_me:$LINENO: result: no" >&5
26077echo "${ECHO_T}no" >&6
26078 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26079echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26080 { (exit 1); exit 1; }; }
a848cd7e 26081
a848cd7e 26082
a848cd7e 26083fi
74b84332
VS
26084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26085 fi
26086
26087 if test "$COMPILED_X_PROGRAM" = 0; then
26088 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26089echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26090
26091ac_find_libraries=
26092for ac_dir in $SEARCH_LIB /usr/lib;
26093 do
26094 for ac_extension in a so sl dylib; do
26095 if test -f "$ac_dir/libXm.$ac_extension"; then
26096 ac_find_libraries=$ac_dir
26097 break 2
a848cd7e 26098 fi
74b84332
VS
26099 done
26100 done
a848cd7e 26101
74b84332
VS
26102 if test "$ac_find_libraries" != "" ; then
26103 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26104echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26105
74b84332
VS
26106
26107 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26108 result=$?
26109 if test $result = 0; then
26110 ac_path_to_link=""
a848cd7e 26111 else
74b84332
VS
26112 ac_path_to_link=" -L$ac_find_libraries"
26113 fi
26114
26115 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26116 else
26117 save_CFLAGS=$CFLAGS
26118 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26119
26120 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26121/* confdefs.h. */
26122_ACEOF
26123cat confdefs.h >>conftest.$ac_ext
26124cat >>conftest.$ac_ext <<_ACEOF
26125/* end confdefs.h. */
26126
74b84332
VS
26127 #include <Xm/Xm.h>
26128
a848cd7e
SC
26129int
26130main ()
26131{
74b84332
VS
26132
26133 int version;
26134 version = xmUseVersion;
26135
a848cd7e
SC
26136 ;
26137 return 0;
26138}
26139_ACEOF
74b84332
VS
26140rm -f conftest.$ac_objext
26141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26142 (eval $ac_compile) 2>conftest.er1
a848cd7e 26143 ac_status=$?
ac1cb8d3
VS
26144 grep -v '^ *+' conftest.er1 >conftest.err
26145 rm -f conftest.er1
26146 cat conftest.err >&5
a848cd7e
SC
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); } &&
c228d3a4
RN
26149 { ac_try='test -z "$ac_c_werror_flag"
26150 || test ! -s conftest.err'
ac1cb8d3
VS
26151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); }; } &&
74b84332 26156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158 (eval $ac_try) 2>&5
26159 ac_status=$?
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); }; }; then
74b84332
VS
26162
26163 echo "$as_me:$LINENO: result: found in default search path" >&5
26164echo "${ECHO_T}found in default search path" >&6
26165 COMPILED_X_PROGRAM=1
26166
a848cd7e
SC
26167else
26168 echo "$as_me: failed program was:" >&5
26169sed 's/^/| /' conftest.$ac_ext >&5
26170
74b84332
VS
26171
26172 echo "$as_me:$LINENO: result: no" >&5
26173echo "${ECHO_T}no" >&6
26174 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26175echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26176 { (exit 1); exit 1; }; }
26177
26178
26179fi
26180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26181
26182 CFLAGS=$save_CFLAGS
26183 fi
26184 fi
26185
26186 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26187echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26188 libp_link=""
26189 libsm_ice_link=""
26190 libs_found=0
26191 for libp in "" " -lXp"; do
26192 if test "$libs_found" = "0"; then
26193 for libsm_ice in "" " -lSM -lICE"; do
26194 if test "$libs_found" = "0"; then
26195 save_LIBS="$LIBS"
26196 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26197 save_CFLAGS=$CFLAGS
26198 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26199
26200 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26201/* confdefs.h. */
26202_ACEOF
26203cat confdefs.h >>conftest.$ac_ext
26204cat >>conftest.$ac_ext <<_ACEOF
26205/* end confdefs.h. */
26206
74b84332
VS
26207 #include <Xm/Xm.h>
26208 #include <Xm/List.h>
26209
a848cd7e
SC
26210int
26211main ()
26212{
74b84332
VS
26213
26214 XmString string = NULL;
26215 Widget w = NULL;
26216 int position = 0;
26217 XmListAddItem(w, string, position);
26218
a848cd7e
SC
26219 ;
26220 return 0;
26221}
26222_ACEOF
26223rm -f conftest.$ac_objext conftest$ac_exeext
26224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26225 (eval $ac_link) 2>conftest.er1
a848cd7e 26226 ac_status=$?
ac1cb8d3
VS
26227 grep -v '^ *+' conftest.er1 >conftest.err
26228 rm -f conftest.er1
26229 cat conftest.err >&5
a848cd7e
SC
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); } &&
c228d3a4
RN
26232 { ac_try='test -z "$ac_c_werror_flag"
26233 || test ! -s conftest.err'
ac1cb8d3
VS
26234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; } &&
26239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26242 ac_status=$?
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; }; then
26245
26246 libp_link="$libp"
26247 libsm_ice_link="$libsm_ice"
26248 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26249echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26250 libs_found=1
26251
26252else
26253 echo "$as_me: failed program was:" >&5
26254sed 's/^/| /' conftest.$ac_ext >&5
26255
26256
26257
26258fi
ac1cb8d3
VS
26259rm -f conftest.err conftest.$ac_objext \
26260 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26261
26262 LIBS="$save_LIBS"
26263 CFLAGS=$save_CFLAGS
26264 fi
26265 done
26266 fi
26267 done
26268
26269 if test "$libs_found" = "0"; then
26270 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26271echo "${ECHO_T}can't find the right libraries" >&6
26272 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26273echo "$as_me: error: can't link a simple motif program" >&2;}
26274 { (exit 1); exit 1; }; }
26275 fi
26276
26277 save_CFLAGS=$CFLAGS
26278 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26279 echo "$as_me:$LINENO: checking for Motif 2" >&5
26280echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26281 cat >conftest.$ac_ext <<_ACEOF
26282/* confdefs.h. */
26283_ACEOF
26284cat confdefs.h >>conftest.$ac_ext
26285cat >>conftest.$ac_ext <<_ACEOF
26286/* end confdefs.h. */
26287
26288 #include <Xm/Xm.h>
26289
26290int
26291main ()
26292{
26293
26294 #if XmVersion < 2000
26295 #error "Not Motif 2"
26296 #endif
26297
26298 ;
26299 return 0;
26300}
26301_ACEOF
26302rm -f conftest.$ac_objext
26303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26304 (eval $ac_compile) 2>conftest.er1
a848cd7e 26305 ac_status=$?
ac1cb8d3
VS
26306 grep -v '^ *+' conftest.er1 >conftest.err
26307 rm -f conftest.er1
26308 cat conftest.err >&5
a848cd7e
SC
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); } &&
c228d3a4
RN
26311 { ac_try='test -z "$ac_c_werror_flag"
26312 || test ! -s conftest.err'
ac1cb8d3
VS
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; } &&
26318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324
26325 cat >>confdefs.h <<\_ACEOF
26326#define __WXMOTIF20__ 1
26327_ACEOF
26328
26329 echo "$as_me:$LINENO: result: found" >&5
26330echo "${ECHO_T}found" >&6
26331
26332else
26333 echo "$as_me: failed program was:" >&5
26334sed 's/^/| /' conftest.$ac_ext >&5
26335
26336
26337 cat >>confdefs.h <<\_ACEOF
26338#define __WXMOTIF20__ 0
26339_ACEOF
26340
26341 echo "$as_me:$LINENO: result: not found" >&5
26342echo "${ECHO_T}not found" >&6
26343
26344fi
ac1cb8d3 26345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26346 CFLAGS=$save_CFLAGS
26347
26348 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26349 TOOLKIT=MOTIF
26350 GUIDIST=MOTIF_DIST
26351 fi
26352
74b84332 26353 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26354 if test "$wxUSE_LIBXPM" = "sys"; then
26355 echo "$as_me:$LINENO: checking for Xpm library" >&5
26356echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26357
26358ac_find_libraries=
26359for ac_dir in $SEARCH_LIB /usr/lib;
26360 do
26361 for ac_extension in a so sl dylib; do
26362 if test -f "$ac_dir/libXpm.$ac_extension"; then
26363 ac_find_libraries=$ac_dir
26364 break 2
26365 fi
26366 done
26367 done
26368
26369 if test "$ac_find_libraries" != "" ; then
26370
26371 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26372 result=$?
26373 if test $result = 0; then
26374 ac_path_to_link=""
26375 else
26376 ac_path_to_link=" -L$ac_find_libraries"
26377 fi
26378
26379 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26380 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26381echo "${ECHO_T}found at $ac_find_libraries" >&6
26382
26383 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26384echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26385if test "${wx_cv_x11_xpm_h+set}" = set; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388
26389 save_CFLAGS=$CFLAGS
26390 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26391
26392 cat >conftest.$ac_ext <<_ACEOF
26393/* confdefs.h. */
26394_ACEOF
26395cat confdefs.h >>conftest.$ac_ext
26396cat >>conftest.$ac_ext <<_ACEOF
26397/* end confdefs.h. */
26398
26399 #include <X11/xpm.h>
26400
26401int
26402main ()
26403{
26404
26405 int version;
26406 version = XpmLibraryVersion();
26407
26408 ;
26409 return 0;
26410}
26411_ACEOF
26412rm -f conftest.$ac_objext
26413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26414 (eval $ac_compile) 2>conftest.er1
a848cd7e 26415 ac_status=$?
ac1cb8d3
VS
26416 grep -v '^ *+' conftest.er1 >conftest.err
26417 rm -f conftest.er1
26418 cat conftest.err >&5
a848cd7e
SC
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); } &&
c228d3a4
RN
26421 { ac_try='test -z "$ac_c_werror_flag"
26422 || test ! -s conftest.err'
ac1cb8d3
VS
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; } &&
26428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430 (eval $ac_try) 2>&5
26431 ac_status=$?
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); }; }; then
26434 wx_cv_x11_xpm_h=yes
26435else
26436 echo "$as_me: failed program was:" >&5
26437sed 's/^/| /' conftest.$ac_ext >&5
26438
26439wx_cv_x11_xpm_h=no
26440
26441fi
ac1cb8d3 26442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26443
26444 CFLAGS=$save_CFLAGS
26445
26446
26447fi
26448echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26449echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26450
26451 if test $wx_cv_x11_xpm_h = "yes"; then
26452 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26453 cat >>confdefs.h <<\_ACEOF
26454#define wxHAVE_LIB_XPM 1
26455_ACEOF
26456
26457 else
26458 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26459echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26460 fi
26461 fi
26462
26463 fi
26464
26465 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26466echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26467if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26468 echo $ECHO_N "(cached) $ECHO_C" >&6
26469else
26470 ac_check_lib_save_LIBS=$LIBS
26471LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26472cat >conftest.$ac_ext <<_ACEOF
26473/* confdefs.h. */
26474_ACEOF
26475cat confdefs.h >>conftest.$ac_ext
26476cat >>conftest.$ac_ext <<_ACEOF
26477/* end confdefs.h. */
26478
26479/* Override any gcc2 internal prototype to avoid an error. */
26480#ifdef __cplusplus
26481extern "C"
26482#endif
26483/* We use char because int might match the return type of a gcc2
26484 builtin and then its argument prototype would still apply. */
26485char XShapeQueryExtension ();
26486int
26487main ()
26488{
26489XShapeQueryExtension ();
26490 ;
26491 return 0;
26492}
26493_ACEOF
26494rm -f conftest.$ac_objext conftest$ac_exeext
26495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26496 (eval $ac_link) 2>conftest.er1
a848cd7e 26497 ac_status=$?
ac1cb8d3
VS
26498 grep -v '^ *+' conftest.er1 >conftest.err
26499 rm -f conftest.er1
26500 cat conftest.err >&5
a848cd7e
SC
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); } &&
c228d3a4
RN
26503 { ac_try='test -z "$ac_c_werror_flag"
26504 || test ! -s conftest.err'
ac1cb8d3
VS
26505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506 (eval $ac_try) 2>&5
26507 ac_status=$?
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); }; } &&
26510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; }; then
26516 ac_cv_lib_Xext_XShapeQueryExtension=yes
26517else
26518 echo "$as_me: failed program was:" >&5
26519sed 's/^/| /' conftest.$ac_ext >&5
26520
26521ac_cv_lib_Xext_XShapeQueryExtension=no
26522fi
ac1cb8d3
VS
26523rm -f conftest.err conftest.$ac_objext \
26524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26525LIBS=$ac_check_lib_save_LIBS
26526fi
26527echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26528echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26529if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26530
26531 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26532 wxHAVE_XEXT_LIB=1
26533
26534fi
26535
26536
26537 if test "$wxHAVE_XEXT_LIB" = 1; then
26538 save_CFLAGS="$CFLAGS"
26539 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26540
26541 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26542echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26543 cat >conftest.$ac_ext <<_ACEOF
26544/* confdefs.h. */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h. */
26549
26550 #include <X11/Xlib.h>
26551 #include <X11/extensions/shape.h>
26552
26553int
26554main ()
26555{
26556
26557 int dummy1, dummy2;
26558 XShapeQueryExtension((Display*)NULL,
26559 (int*)NULL, (int*)NULL);
26560
26561 ;
26562 return 0;
26563}
26564_ACEOF
26565rm -f conftest.$ac_objext
26566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26567 (eval $ac_compile) 2>conftest.er1
a848cd7e 26568 ac_status=$?
ac1cb8d3
VS
26569 grep -v '^ *+' conftest.er1 >conftest.err
26570 rm -f conftest.er1
26571 cat conftest.err >&5
a848cd7e
SC
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } &&
c228d3a4
RN
26574 { ac_try='test -z "$ac_c_werror_flag"
26575 || test ! -s conftest.err'
ac1cb8d3
VS
26576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577 (eval $ac_try) 2>&5
26578 ac_status=$?
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); }; } &&
26581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; }; then
26587
26588 cat >>confdefs.h <<\_ACEOF
26589#define HAVE_XSHAPE 1
26590_ACEOF
26591
26592 echo "$as_me:$LINENO: result: found" >&5
26593echo "${ECHO_T}found" >&6
26594
26595else
26596 echo "$as_me: failed program was:" >&5
26597sed 's/^/| /' conftest.$ac_ext >&5
26598
26599
26600 echo "$as_me:$LINENO: result: not found" >&5
26601echo "${ECHO_T}not found" >&6
26602
26603fi
ac1cb8d3 26604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26605 CFLAGS="$save_CFLAGS"
26606
26607 fi
26608 fi
26609
26610 if test "$wxUSE_MAC" = 1; then
26611 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26612echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26613 if test "$GCC" = yes; then
26614 echo "$as_me:$LINENO: result: gcc" >&5
26615echo "${ECHO_T}gcc" >&6
26616 CPPFLAGS_PASCAL="-fpascal-strings"
26617 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26618 echo "$as_me:$LINENO: result: xlc" >&5
26619echo "${ECHO_T}xlc" >&6
26620 CPPFLAGS_PASCAL="-qmacpstr"
26621 else
26622 echo "$as_me:$LINENO: result: none" >&5
26623echo "${ECHO_T}none" >&6
26624 fi
26625
26626 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26627
a848cd7e
SC
26628 TOOLKIT=MAC
26629 GUIDIST=MACX_DIST
dd21ced8 26630 WXBASEPORT="_carbon"
a848cd7e
SC
26631 fi
26632
26633 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26634 TOOLKIT=COCOA
26635 GUIDIST=COCOA_DIST
26636 fi
26637
26638 if test "$wxUSE_PM" = 1; then
26639 TOOLKIT=PM
de59c161
RD
26640 GUIDIST=PM_DIST
26641 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26642echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26643if test "${wx_cv_spbcdata+set}" = set; then
26644 echo $ECHO_N "(cached) $ECHO_C" >&6
26645else
26646
26647 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26648/* confdefs.h. */
26649_ACEOF
26650cat confdefs.h >>conftest.$ac_ext
26651cat >>conftest.$ac_ext <<_ACEOF
26652/* end confdefs.h. */
26653
26654 #define INCL_PM
26655 #include <os2.h>
26656
26657int
26658main ()
26659{
26660
26661 SPBCDATA test;
26662
26663 ;
26664 return 0;
26665}
26666_ACEOF
26667rm -f conftest.$ac_objext
26668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26669 (eval $ac_compile) 2>conftest.er1
de59c161 26670 ac_status=$?
ac1cb8d3
VS
26671 grep -v '^ *+' conftest.er1 >conftest.err
26672 rm -f conftest.er1
26673 cat conftest.err >&5
de59c161
RD
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } &&
c228d3a4
RN
26676 { ac_try='test -z "$ac_c_werror_flag"
26677 || test ! -s conftest.err'
ac1cb8d3
VS
26678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679 (eval $ac_try) 2>&5
26680 ac_status=$?
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; } &&
26683 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; }; then
26689 wx_cv_spbcdata=yes
26690else
26691 echo "$as_me: failed program was:" >&5
26692sed 's/^/| /' conftest.$ac_ext >&5
26693
26694wx_cv_spbcdata=no
26695
26696fi
ac1cb8d3 26697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26698
26699
26700fi
26701echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26702echo "${ECHO_T}$wx_cv_spbcdata" >&6
26703
26704 if test $wx_cv_spbcdata = "yes"; then
26705 cat >>confdefs.h <<\_ACEOF
26706#define HAVE_SPBCDATA 1
26707_ACEOF
26708
26709 fi
a848cd7e
SC
26710 fi
26711
26712 if test "$TOOLKIT" = "PM" ; then
26713 TOOLKIT_DIR="os2"
26714 else
26715 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26716 fi
26717
a848cd7e 26718 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26719 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26720 WIDGET_SET=univ
a848cd7e
SC
26721 fi
26722
26723 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26724 DISTDIR="wx\$(TOOLKIT)"
26725else
26726 USE_GUI=0
26727
26728 TOOLKIT_DIR="base"
26729
26730 if test "$USE_WIN32" = 1 ; then
a848cd7e 26731 TOOLKIT="MSW"
a848cd7e
SC
26732 fi
26733
a848cd7e
SC
26734 GUIDIST="BASE_DIST"
26735 DISTDIR="wxBase"
26736fi
26737
26738
26739
26740
26741IODBC_C_SRC=""
26742
26743
26744if test "$TOOLKIT" != "MSW" ; then
26745
26746 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26747
26748 if test "${ac_cv_header_sql_h+set}" = set; then
26749 echo "$as_me:$LINENO: checking for sql.h" >&5
26750echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26751if test "${ac_cv_header_sql_h+set}" = set; then
26752 echo $ECHO_N "(cached) $ECHO_C" >&6
26753fi
26754echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26755echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26756else
26757 # Is the header compilable?
26758echo "$as_me:$LINENO: checking sql.h usability" >&5
26759echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26760cat >conftest.$ac_ext <<_ACEOF
26761/* confdefs.h. */
26762_ACEOF
26763cat confdefs.h >>conftest.$ac_ext
26764cat >>conftest.$ac_ext <<_ACEOF
26765/* end confdefs.h. */
26766$ac_includes_default
26767#include <sql.h>
26768_ACEOF
26769rm -f conftest.$ac_objext
26770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26771 (eval $ac_compile) 2>conftest.er1
a848cd7e 26772 ac_status=$?
ac1cb8d3
VS
26773 grep -v '^ *+' conftest.er1 >conftest.err
26774 rm -f conftest.er1
26775 cat conftest.err >&5
a848cd7e
SC
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); } &&
c228d3a4
RN
26778 { ac_try='test -z "$ac_c_werror_flag"
26779 || test ! -s conftest.err'
ac1cb8d3
VS
26780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26781 (eval $ac_try) 2>&5
26782 ac_status=$?
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); }; } &&
26785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787 (eval $ac_try) 2>&5
26788 ac_status=$?
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); }; }; then
26791 ac_header_compiler=yes
26792else
26793 echo "$as_me: failed program was:" >&5
26794sed 's/^/| /' conftest.$ac_ext >&5
26795
26796ac_header_compiler=no
26797fi
ac1cb8d3 26798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26799echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26800echo "${ECHO_T}$ac_header_compiler" >&6
26801
26802# Is the header present?
26803echo "$as_me:$LINENO: checking sql.h presence" >&5
26804echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26805cat >conftest.$ac_ext <<_ACEOF
26806/* confdefs.h. */
26807_ACEOF
26808cat confdefs.h >>conftest.$ac_ext
26809cat >>conftest.$ac_ext <<_ACEOF
26810/* end confdefs.h. */
26811#include <sql.h>
26812_ACEOF
26813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26815 ac_status=$?
26816 grep -v '^ *+' conftest.er1 >conftest.err
26817 rm -f conftest.er1
26818 cat conftest.err >&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } >/dev/null; then
26821 if test -s conftest.err; then
26822 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26824 else
26825 ac_cpp_err=
26826 fi
26827else
26828 ac_cpp_err=yes
26829fi
26830if test -z "$ac_cpp_err"; then
26831 ac_header_preproc=yes
26832else
26833 echo "$as_me: failed program was:" >&5
26834sed 's/^/| /' conftest.$ac_ext >&5
26835
26836 ac_header_preproc=no
26837fi
26838rm -f conftest.err conftest.$ac_ext
26839echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26840echo "${ECHO_T}$ac_header_preproc" >&6
26841
26842# So? What about this header?
ac1cb8d3
VS
26843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26844 yes:no: )
a848cd7e
SC
26845 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26846echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26847 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26848echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26849 ac_header_preproc=yes
a848cd7e 26850 ;;
ac1cb8d3 26851 no:yes:* )
a848cd7e
SC
26852 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26853echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26854 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26855echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26856 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26857echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26858 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26859echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26860 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26861echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26862 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26863echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26864 (
26865 cat <<\_ASBOX
ac1cb8d3
VS
26866## ----------------------------------------- ##
26867## Report this to wx-dev@lists.wxwidgets.org ##
26868## ----------------------------------------- ##
a848cd7e
SC
26869_ASBOX
26870 ) |
26871 sed "s/^/$as_me: WARNING: /" >&2
26872 ;;
26873esac
26874echo "$as_me:$LINENO: checking for sql.h" >&5
26875echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26876if test "${ac_cv_header_sql_h+set}" = set; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26878else
26879 ac_cv_header_sql_h=$ac_header_preproc
26880fi
26881echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26882echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26883
26884fi
26885if test $ac_cv_header_sql_h = yes; then
26886 found_sql_h=1
26887fi
26888
26889
26890 if test "x$found_sql_h" = "x1" ; then
26891 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26892echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26893if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895else
26896 ac_check_lib_save_LIBS=$LIBS
26897LIBS="-liodbc $LIBS"
26898cat >conftest.$ac_ext <<_ACEOF
26899/* confdefs.h. */
26900_ACEOF
26901cat confdefs.h >>conftest.$ac_ext
26902cat >>conftest.$ac_ext <<_ACEOF
26903/* end confdefs.h. */
26904
26905/* Override any gcc2 internal prototype to avoid an error. */
26906#ifdef __cplusplus
26907extern "C"
26908#endif
26909/* We use char because int might match the return type of a gcc2
26910 builtin and then its argument prototype would still apply. */
26911char SQLAllocEnv ();
26912int
26913main ()
26914{
26915SQLAllocEnv ();
26916 ;
26917 return 0;
26918}
26919_ACEOF
26920rm -f conftest.$ac_objext conftest$ac_exeext
26921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26922 (eval $ac_link) 2>conftest.er1
a848cd7e 26923 ac_status=$?
ac1cb8d3
VS
26924 grep -v '^ *+' conftest.er1 >conftest.err
26925 rm -f conftest.er1
26926 cat conftest.err >&5
a848cd7e
SC
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } &&
c228d3a4
RN
26929 { ac_try='test -z "$ac_c_werror_flag"
26930 || test ! -s conftest.err'
ac1cb8d3
VS
26931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932 (eval $ac_try) 2>&5
26933 ac_status=$?
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); }; } &&
26936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938 (eval $ac_try) 2>&5
26939 ac_status=$?
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); }; }; then
26942 ac_cv_lib_iodbc_SQLAllocEnv=yes
26943else
26944 echo "$as_me: failed program was:" >&5
26945sed 's/^/| /' conftest.$ac_ext >&5
26946
26947ac_cv_lib_iodbc_SQLAllocEnv=no
26948fi
ac1cb8d3
VS
26949rm -f conftest.err conftest.$ac_objext \
26950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26951LIBS=$ac_check_lib_save_LIBS
26952fi
26953echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26954echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26955if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26956 ODBC_LINK=" -liodbc"
26957else
26958
26959 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26960echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26961if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26962 echo $ECHO_N "(cached) $ECHO_C" >&6
26963else
26964 ac_check_lib_save_LIBS=$LIBS
26965LIBS="-lunixodbc $LIBS"
26966cat >conftest.$ac_ext <<_ACEOF
26967/* confdefs.h. */
26968_ACEOF
26969cat confdefs.h >>conftest.$ac_ext
26970cat >>conftest.$ac_ext <<_ACEOF
26971/* end confdefs.h. */
26972
26973/* Override any gcc2 internal prototype to avoid an error. */
26974#ifdef __cplusplus
26975extern "C"
26976#endif
26977/* We use char because int might match the return type of a gcc2
26978 builtin and then its argument prototype would still apply. */
26979char SQLAllocEnv ();
26980int
26981main ()
26982{
26983SQLAllocEnv ();
26984 ;
26985 return 0;
26986}
26987_ACEOF
26988rm -f conftest.$ac_objext conftest$ac_exeext
26989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26990 (eval $ac_link) 2>conftest.er1
a848cd7e 26991 ac_status=$?
ac1cb8d3
VS
26992 grep -v '^ *+' conftest.er1 >conftest.err
26993 rm -f conftest.er1
26994 cat conftest.err >&5
a848cd7e
SC
26995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); } &&
c228d3a4
RN
26997 { ac_try='test -z "$ac_c_werror_flag"
26998 || test ! -s conftest.err'
ac1cb8d3
VS
26999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000 (eval $ac_try) 2>&5
27001 ac_status=$?
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); }; } &&
27004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27006 (eval $ac_try) 2>&5
27007 ac_status=$?
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; }; then
27010 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27011else
27012 echo "$as_me: failed program was:" >&5
27013sed 's/^/| /' conftest.$ac_ext >&5
27014
27015ac_cv_lib_unixodbc_SQLAllocEnv=no
27016fi
ac1cb8d3
VS
27017rm -f conftest.err conftest.$ac_objext \
27018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27019LIBS=$ac_check_lib_save_LIBS
27020fi
27021echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27022echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27023if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27024 ODBC_LINK=" -lunixodbc"
27025else
27026
27027 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27028echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27029if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
27031else
27032 ac_check_lib_save_LIBS=$LIBS
27033LIBS="-lodbc $LIBS"
27034cat >conftest.$ac_ext <<_ACEOF
27035/* confdefs.h. */
27036_ACEOF
27037cat confdefs.h >>conftest.$ac_ext
27038cat >>conftest.$ac_ext <<_ACEOF
27039/* end confdefs.h. */
27040
27041/* Override any gcc2 internal prototype to avoid an error. */
27042#ifdef __cplusplus
27043extern "C"
27044#endif
27045/* We use char because int might match the return type of a gcc2
27046 builtin and then its argument prototype would still apply. */
27047char SQLAllocEnv ();
27048int
27049main ()
27050{
27051SQLAllocEnv ();
27052 ;
27053 return 0;
27054}
27055_ACEOF
27056rm -f conftest.$ac_objext conftest$ac_exeext
27057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27058 (eval $ac_link) 2>conftest.er1
a848cd7e 27059 ac_status=$?
ac1cb8d3
VS
27060 grep -v '^ *+' conftest.er1 >conftest.err
27061 rm -f conftest.er1
27062 cat conftest.err >&5
a848cd7e
SC
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } &&
c228d3a4
RN
27065 { ac_try='test -z "$ac_c_werror_flag"
27066 || test ! -s conftest.err'
ac1cb8d3
VS
27067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068 (eval $ac_try) 2>&5
27069 ac_status=$?
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; } &&
27072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074 (eval $ac_try) 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
27078 ac_cv_lib_odbc_SQLAllocEnv=yes
27079else
27080 echo "$as_me: failed program was:" >&5
27081sed 's/^/| /' conftest.$ac_ext >&5
27082
27083ac_cv_lib_odbc_SQLAllocEnv=no
27084fi
ac1cb8d3
VS
27085rm -f conftest.err conftest.$ac_objext \
27086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27087LIBS=$ac_check_lib_save_LIBS
27088fi
27089echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27090echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27091if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27092 ODBC_LINK=" -lodbc"
27093fi
27094
27095
27096fi
27097
27098
27099fi
27100
27101 fi
27102 if test "x$ODBC_LINK" = "x" ; then
27103 if test "$wxUSE_ODBC" = "sys" ; then
27104 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27105echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27106 { (exit 1); exit 1; }; }
27107 else
27108 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27109echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27110 wxUSE_ODBC=builtin
27111 fi
27112 else
27113 wxUSE_ODBC=sys
27114 fi
27115 fi
27116 if test "$wxUSE_ODBC" != "no" ; then
27117 cat >>confdefs.h <<\_ACEOF
27118#define wxUSE_ODBC 1
27119_ACEOF
27120
27121 if test "$wxUSE_ODBC" = "builtin" ; then
27122 cat >>confdefs.h <<\_ACEOF
27123#define wxUSE_BUILTIN_IODBC 1
27124_ACEOF
27125
27126 fi
27127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27128
27129 WXODBCFLAG="-D_IODBC_"
27130 fi
27131fi
27132
a848cd7e 27133
01cb68df 27134
a848cd7e 27135if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27136 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27137 echo "$as_me:$LINENO: checking for Xinerama" >&5
27138echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27139
27140ac_find_libraries=
27141for ac_dir in $SEARCH_LIB /usr/lib;
27142 do
27143 for ac_extension in a so sl dylib; do
27144 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27145 ac_find_libraries=$ac_dir
27146 break 2
27147 fi
27148 done
27149 done
27150
27151 if test "$ac_find_libraries" != "" ; then
27152
27153 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27154 result=$?
27155 if test $result = 0; then
27156 ac_path_to_link=""
27157 else
27158 ac_path_to_link=" -L$ac_find_libraries"
27159 fi
27160
27161 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27162 LDFLAGS="$LDFLAGS $ac_path_to_link"
27163 fi
27164 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27165 echo "$as_me:$LINENO: result: yes" >&5
27166echo "${ECHO_T}yes" >&6
27167
27168 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27169echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27170
27171ac_find_libraries=
27172for ac_dir in $SEARCH_LIB /usr/lib;
27173 do
27174 for ac_extension in a so sl dylib; do
27175 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27176 ac_find_libraries=$ac_dir
27177 break 2
27178 fi
27179 done
27180 done
27181
27182 if test "$ac_find_libraries" != "" ; then
27183 echo "$as_me:$LINENO: result: yes" >&5
27184echo "${ECHO_T}yes" >&6
27185
27186for ac_header in X11/extensions/xf86vmode.h
27187do
27188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27189echo "$as_me:$LINENO: checking for $ac_header" >&5
27190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27191if eval "test \"\${$as_ac_Header+set}\" = set"; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
27194 cat >conftest.$ac_ext <<_ACEOF
27195/* confdefs.h. */
27196_ACEOF
27197cat confdefs.h >>conftest.$ac_ext
27198cat >>conftest.$ac_ext <<_ACEOF
27199/* end confdefs.h. */
27200
27201 #if HAVE_X11_XLIB_H
27202 #include <X11/Xlib.h>
27203 #endif
27204
27205
27206#include <$ac_header>
27207_ACEOF
27208rm -f conftest.$ac_objext
27209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27210 (eval $ac_compile) 2>conftest.er1
a848cd7e 27211 ac_status=$?
ac1cb8d3
VS
27212 grep -v '^ *+' conftest.er1 >conftest.err
27213 rm -f conftest.er1
27214 cat conftest.err >&5
a848cd7e
SC
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } &&
c228d3a4
RN
27217 { ac_try='test -z "$ac_c_werror_flag"
27218 || test ! -s conftest.err'
ac1cb8d3
VS
27219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27220 (eval $ac_try) 2>&5
27221 ac_status=$?
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; } &&
27224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27226 (eval $ac_try) 2>&5
27227 ac_status=$?
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); }; }; then
27230 eval "$as_ac_Header=yes"
27231else
27232 echo "$as_me: failed program was:" >&5
27233sed 's/^/| /' conftest.$ac_ext >&5
27234
27235eval "$as_ac_Header=no"
27236fi
ac1cb8d3 27237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27238fi
27239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27241if test `eval echo '${'$as_ac_Header'}'` = yes; then
27242 cat >>confdefs.h <<_ACEOF
27243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27244_ACEOF
27245
27246 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27247
27248fi
27249
27250done
27251
27252 else
27253 echo "$as_me:$LINENO: result: no" >&5
27254echo "${ECHO_T}no" >&6
27255 fi
27256
27257 else
27258 echo "$as_me:$LINENO: result: no" >&5
27259echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27260 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27261echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27262 wxUSE_DISPLAY="no"
27263 fi
01cb68df
RG
27264 elif test "$wxUSE_MSW" = 1; then
27265
27266
27267for ac_header in multimon.h ddraw.h
27268do
27269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27270if eval "test \"\${$as_ac_Header+set}\" = set"; then
27271 echo "$as_me:$LINENO: checking for $ac_header" >&5
27272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27273if eval "test \"\${$as_ac_Header+set}\" = set"; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
27275fi
27276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27278else
27279 # Is the header compilable?
27280echo "$as_me:$LINENO: checking $ac_header usability" >&5
27281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27282cat >conftest.$ac_ext <<_ACEOF
27283/* confdefs.h. */
27284_ACEOF
27285cat confdefs.h >>conftest.$ac_ext
27286cat >>conftest.$ac_ext <<_ACEOF
27287/* end confdefs.h. */
27288$ac_includes_default
27289#include <$ac_header>
27290_ACEOF
27291rm -f conftest.$ac_objext
27292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27293 (eval $ac_compile) 2>conftest.er1
01cb68df 27294 ac_status=$?
ac1cb8d3
VS
27295 grep -v '^ *+' conftest.er1 >conftest.err
27296 rm -f conftest.er1
27297 cat conftest.err >&5
01cb68df
RG
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
c228d3a4
RN
27300 { ac_try='test -z "$ac_c_werror_flag"
27301 || test ! -s conftest.err'
ac1cb8d3
VS
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; } &&
27307 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; }; then
27313 ac_header_compiler=yes
27314else
27315 echo "$as_me: failed program was:" >&5
27316sed 's/^/| /' conftest.$ac_ext >&5
27317
27318ac_header_compiler=no
27319fi
ac1cb8d3 27320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27322echo "${ECHO_T}$ac_header_compiler" >&6
27323
27324# Is the header present?
27325echo "$as_me:$LINENO: checking $ac_header presence" >&5
27326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27327cat >conftest.$ac_ext <<_ACEOF
27328/* confdefs.h. */
27329_ACEOF
27330cat confdefs.h >>conftest.$ac_ext
27331cat >>conftest.$ac_ext <<_ACEOF
27332/* end confdefs.h. */
27333#include <$ac_header>
27334_ACEOF
27335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27337 ac_status=$?
27338 grep -v '^ *+' conftest.er1 >conftest.err
27339 rm -f conftest.er1
27340 cat conftest.err >&5
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); } >/dev/null; then
27343 if test -s conftest.err; then
27344 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27346 else
27347 ac_cpp_err=
27348 fi
27349else
27350 ac_cpp_err=yes
27351fi
27352if test -z "$ac_cpp_err"; then
27353 ac_header_preproc=yes
27354else
27355 echo "$as_me: failed program was:" >&5
27356sed 's/^/| /' conftest.$ac_ext >&5
27357
27358 ac_header_preproc=no
27359fi
27360rm -f conftest.err conftest.$ac_ext
27361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27362echo "${ECHO_T}$ac_header_preproc" >&6
27363
27364# So? What about this header?
ac1cb8d3
VS
27365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27366 yes:no: )
01cb68df
RG
27367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27371 ac_header_preproc=yes
01cb68df 27372 ;;
ac1cb8d3 27373 no:yes:* )
01cb68df
RG
27374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27386 (
27387 cat <<\_ASBOX
ac1cb8d3
VS
27388## ----------------------------------------- ##
27389## Report this to wx-dev@lists.wxwidgets.org ##
27390## ----------------------------------------- ##
01cb68df
RG
27391_ASBOX
27392 ) |
27393 sed "s/^/$as_me: WARNING: /" >&2
27394 ;;
27395esac
27396echo "$as_me:$LINENO: checking for $ac_header" >&5
27397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27398if eval "test \"\${$as_ac_Header+set}\" = set"; then
27399 echo $ECHO_N "(cached) $ECHO_C" >&6
27400else
ac1cb8d3 27401 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27402fi
27403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27405
27406fi
27407if test `eval echo '${'$as_ac_Header'}'` = yes; then
27408 cat >>confdefs.h <<_ACEOF
27409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27410_ACEOF
27411
27412else
27413
27414 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27415 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27416echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27417
27418fi
27419
27420done
27421
a848cd7e
SC
27422 fi
27423fi
27424
27425
27426USE_OPENGL=0
27427if test "$wxUSE_OPENGL" = "yes"; then
27428 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27429 OPENGL_LIBS="-framework OpenGL -framework AGL"
27430 elif test "$wxUSE_MSW" = 1; then
27431 OPENGL_LIBS="-lopengl32 -lglu32"
27432 else
27433
27434
27435ac_find_includes=
27436for ac_dir in $SEARCH_INCLUDE /usr/include;
27437 do
27438 if test -f "$ac_dir/GL/gl.h"; then
27439 ac_find_includes=$ac_dir
27440 break
27441 fi
27442 done
27443
27444 if test "$ac_find_includes" != "" ; then
27445 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27446echo "${ECHO_T}found in $ac_find_includes" >&6
27447
27448 if test "x$ac_find_includes" = "x/usr/include"; then
27449 ac_path_to_include=""
27450 else
27451 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27452 result=$?
27453 if test $result = 0; then
27454 ac_path_to_include=""
27455 else
27456 ac_path_to_include=" -I$ac_find_includes"
27457 fi
27458 fi
27459
27460 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27461 fi
27462
27463 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27464 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27465echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27466if test "${ac_cv_header_GL_gl_h+set}" = set; then
27467 echo $ECHO_N "(cached) $ECHO_C" >&6
27468fi
27469echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27470echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27471else
27472 # Is the header compilable?
27473echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27474echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27475cat >conftest.$ac_ext <<_ACEOF
27476/* confdefs.h. */
27477_ACEOF
27478cat confdefs.h >>conftest.$ac_ext
27479cat >>conftest.$ac_ext <<_ACEOF
27480/* end confdefs.h. */
27481$ac_includes_default
27482#include <GL/gl.h>
27483_ACEOF
27484rm -f conftest.$ac_objext
27485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27486 (eval $ac_compile) 2>conftest.er1
a848cd7e 27487 ac_status=$?
ac1cb8d3
VS
27488 grep -v '^ *+' conftest.er1 >conftest.err
27489 rm -f conftest.er1
27490 cat conftest.err >&5
a848cd7e
SC
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } &&
c228d3a4
RN
27493 { ac_try='test -z "$ac_c_werror_flag"
27494 || test ! -s conftest.err'
ac1cb8d3
VS
27495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27496 (eval $ac_try) 2>&5
27497 ac_status=$?
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); }; } &&
27500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502 (eval $ac_try) 2>&5
27503 ac_status=$?
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; }; then
27506 ac_header_compiler=yes
27507else
27508 echo "$as_me: failed program was:" >&5
27509sed 's/^/| /' conftest.$ac_ext >&5
27510
27511ac_header_compiler=no
27512fi
ac1cb8d3 27513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27514echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27515echo "${ECHO_T}$ac_header_compiler" >&6
27516
27517# Is the header present?
27518echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27519echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27520cat >conftest.$ac_ext <<_ACEOF
27521/* confdefs.h. */
27522_ACEOF
27523cat confdefs.h >>conftest.$ac_ext
27524cat >>conftest.$ac_ext <<_ACEOF
27525/* end confdefs.h. */
27526#include <GL/gl.h>
27527_ACEOF
27528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27530 ac_status=$?
27531 grep -v '^ *+' conftest.er1 >conftest.err
27532 rm -f conftest.er1
27533 cat conftest.err >&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } >/dev/null; then
27536 if test -s conftest.err; then
27537 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27539 else
27540 ac_cpp_err=
27541 fi
27542else
27543 ac_cpp_err=yes
27544fi
27545if test -z "$ac_cpp_err"; then
27546 ac_header_preproc=yes
27547else
27548 echo "$as_me: failed program was:" >&5
27549sed 's/^/| /' conftest.$ac_ext >&5
27550
27551 ac_header_preproc=no
27552fi
27553rm -f conftest.err conftest.$ac_ext
27554echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27555echo "${ECHO_T}$ac_header_preproc" >&6
27556
27557# So? What about this header?
ac1cb8d3
VS
27558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27559 yes:no: )
a848cd7e
SC
27560 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27561echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27562 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27563echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27564 ac_header_preproc=yes
a848cd7e 27565 ;;
ac1cb8d3 27566 no:yes:* )
a848cd7e
SC
27567 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27568echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27569 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27570echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27572echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27574echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27575 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27576echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27577 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27578echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27579 (
27580 cat <<\_ASBOX
ac1cb8d3
VS
27581## ----------------------------------------- ##
27582## Report this to wx-dev@lists.wxwidgets.org ##
27583## ----------------------------------------- ##
a848cd7e
SC
27584_ASBOX
27585 ) |
27586 sed "s/^/$as_me: WARNING: /" >&2
27587 ;;
27588esac
27589echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27590echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27591if test "${ac_cv_header_GL_gl_h+set}" = set; then
27592 echo $ECHO_N "(cached) $ECHO_C" >&6
27593else
27594 ac_cv_header_GL_gl_h=$ac_header_preproc
27595fi
27596echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27597echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27598
27599fi
27600if test $ac_cv_header_GL_gl_h = yes; then
27601
27602 found_gl=0
27603
27604 echo "$as_me:$LINENO: checking for -lGL" >&5
27605echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27606
27607ac_find_libraries=
27608for ac_dir in $SEARCH_LIB /usr/lib;
27609 do
27610 for ac_extension in a so sl dylib; do
27611 if test -f "$ac_dir/libGL.$ac_extension"; then
27612 ac_find_libraries=$ac_dir
27613 break 2
27614 fi
27615 done
27616 done
27617
27618 if test "$ac_find_libraries" != "" ; then
27619
27620 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27621 result=$?
27622 if test $result = 0; then
27623 ac_path_to_link=""
27624 else
27625 ac_path_to_link=" -L$ac_find_libraries"
27626 fi
27627
27628 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27629 LDFLAGS_GL="$ac_path_to_link"
27630 fi
27631
27632
27633ac_find_libraries=
27634for ac_dir in $SEARCH_LIB /usr/lib;
27635 do
27636 for ac_extension in a so sl dylib; do
27637 if test -f "$ac_dir/libGLU.$ac_extension"; then
27638 ac_find_libraries=$ac_dir
27639 break 2
27640 fi
27641 done
27642 done
27643
27644 if test "$ac_find_libraries" != "" ; then
27645
27646 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27647 result=$?
27648 if test $result = 0; then
27649 ac_path_to_link=""
27650 else
27651 ac_path_to_link=" -L$ac_find_libraries"
27652 fi
27653
27654 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27655 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27656 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27657 fi
27658
27659 found_gl=1
27660 OPENGL_LIBS="-lGL -lGLU"
27661 echo "$as_me:$LINENO: result: yes" >&5
27662echo "${ECHO_T}yes" >&6
27663 fi
27664 fi
27665
27666 if test "$found_gl" != 1; then
27667 echo "$as_me:$LINENO: result: no" >&5
27668echo "${ECHO_T}no" >&6
27669 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27670echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27671
27672ac_find_libraries=
27673for ac_dir in $SEARCH_LIB /usr/lib;
27674 do
27675 for ac_extension in a so sl dylib; do
27676 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27677 ac_find_libraries=$ac_dir
27678 break 2
27679 fi
27680 done
27681 done
27682
27683 if test "$ac_find_libraries" != "" ; then
27684
27685 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27686 result=$?
27687 if test $result = 0; then
27688 ac_path_to_link=""
27689 else
27690 ac_path_to_link=" -L$ac_find_libraries"
27691 fi
27692
27693 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27694 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27695 echo "$as_me:$LINENO: result: yes" >&5
27696echo "${ECHO_T}yes" >&6
27697 else
27698 echo "$as_me:$LINENO: result: no" >&5
27699echo "${ECHO_T}no" >&6
27700 fi
27701 fi
27702
27703fi
27704
27705
27706
27707 if test "x$OPENGL_LIBS" = "x"; then
27708 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27709echo "$as_me: error: OpenGL libraries not available" >&2;}
27710 { (exit 1); exit 1; }; }
27711 fi
27712 fi
27713
27714 if test "$wxUSE_OPENGL" = "yes"; then
27715 USE_OPENGL=1
27716 cat >>confdefs.h <<\_ACEOF
27717#define wxUSE_OPENGL 1
27718_ACEOF
27719
27720 cat >>confdefs.h <<\_ACEOF
27721#define wxUSE_GLCANVAS 1
27722_ACEOF
27723
27724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27725 fi
27726fi
27727
a848cd7e
SC
27728
27729if test -n "$TOOLKIT" ; then
27730 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27731fi
27732
a848cd7e
SC
27733
27734
27735if test "$wxUSE_SHARED" = "yes"; then
27736 case "${host}" in
27737 *-pc-msdosdjgpp )
27738 wxUSE_SHARED=no
27739 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27740echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27741 ;;
27742 esac
27743fi
27744
a848cd7e 27745if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27746
27747
27748 found_versioning=no
27749
27750
27751 if test $found_versioning = no ; then
27752 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27753echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27754if test "${wx_cv_version_script+set}" = set; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27756else
27757
27758 echo "VER_1 { *; };" >conftest.sym
27759 echo "int main() { return 0; }" >conftest.cpp
27760
27761 if { ac_try='
27762 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27763 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27765 (eval $ac_try) 2>&5
27766 ac_status=$?
27767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768 (exit $ac_status); }; } ; then
27769 if test -s conftest.stderr ; then
27770 wx_cv_version_script=no
27771 else
27772 wx_cv_version_script=yes
27773 fi
27774 else
27775 wx_cv_version_script=no
27776 fi
27777 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27778
27779fi
27780echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27781echo "${ECHO_T}$wx_cv_version_script" >&6
27782 if test $wx_cv_version_script = yes ; then
27783 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27784 fi
27785 fi
27786
27787
27788 case "${host}" in
27789 *-*-linux* | *-*-gnu* )
27790 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27791 ;;
27792
27793 *-*-solaris2* )
27794 if test "$GCC" = yes ; then
27795 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27796
27797 saveLdflags="$LDFLAGS"
27798 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27799 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27800echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27801 cat >conftest.$ac_ext <<_ACEOF
27802/* confdefs.h. */
27803_ACEOF
27804cat confdefs.h >>conftest.$ac_ext
27805cat >>conftest.$ac_ext <<_ACEOF
27806/* end confdefs.h. */
27807
27808int
27809main ()
27810{
27811
27812 ;
27813 return 0;
27814}
27815_ACEOF
27816rm -f conftest.$ac_objext conftest$ac_exeext
27817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27818 (eval $ac_link) 2>conftest.er1
a848cd7e 27819 ac_status=$?
ac1cb8d3
VS
27820 grep -v '^ *+' conftest.er1 >conftest.err
27821 rm -f conftest.er1
27822 cat conftest.err >&5
a848cd7e
SC
27823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27824 (exit $ac_status); } &&
c228d3a4
RN
27825 { ac_try='test -z "$ac_c_werror_flag"
27826 || test ! -s conftest.err'
ac1cb8d3
VS
27827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27828 (eval $ac_try) 2>&5
27829 ac_status=$?
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); }; } &&
27832 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27834 (eval $ac_try) 2>&5
27835 ac_status=$?
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); }; }; then
27838
27839 echo "$as_me:$LINENO: result: yes" >&5
27840echo "${ECHO_T}yes" >&6
27841 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27842
27843else
27844 echo "$as_me: failed program was:" >&5
27845sed 's/^/| /' conftest.$ac_ext >&5
27846
27847
27848 echo "$as_me:$LINENO: result: no" >&5
27849echo "${ECHO_T}no" >&6
27850 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27851echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27852 LDFLAGS="$saveLdflags -Wl,-R,/"
27853 cat >conftest.$ac_ext <<_ACEOF
27854/* confdefs.h. */
27855_ACEOF
27856cat confdefs.h >>conftest.$ac_ext
27857cat >>conftest.$ac_ext <<_ACEOF
27858/* end confdefs.h. */
27859
27860int
27861main ()
27862{
27863
27864 ;
27865 return 0;
27866}
27867_ACEOF
27868rm -f conftest.$ac_objext conftest$ac_exeext
27869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27870 (eval $ac_link) 2>conftest.er1
a848cd7e 27871 ac_status=$?
ac1cb8d3
VS
27872 grep -v '^ *+' conftest.er1 >conftest.err
27873 rm -f conftest.er1
27874 cat conftest.err >&5
a848cd7e
SC
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } &&
c228d3a4
RN
27877 { ac_try='test -z "$ac_c_werror_flag"
27878 || test ! -s conftest.err'
ac1cb8d3
VS
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27881 ac_status=$?
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; } &&
27884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886 (eval $ac_try) 2>&5
27887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; }; then
27890
27891 echo "$as_me:$LINENO: result: yes" >&5
27892echo "${ECHO_T}yes" >&6
27893 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27894else
27895 echo "$as_me: failed program was:" >&5
27896sed 's/^/| /' conftest.$ac_ext >&5
27897
27898
27899 echo "$as_me:$LINENO: result: no" >&5
27900echo "${ECHO_T}no" >&6
27901
27902fi
ac1cb8d3
VS
27903rm -f conftest.err conftest.$ac_objext \
27904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27905
27906fi
ac1cb8d3
VS
27907rm -f conftest.err conftest.$ac_objext \
27908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27909 LDFLAGS="$saveLdflags"
27910 else
a848cd7e
SC
27911 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27912 fi
27913 ;;
27914
27915 powerpc-*-darwin* )
27916 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27917 cat <<EOF >change-install-names
27918#!/bin/sh
27919libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27920inst_cmd="install_name_tool "
27921for i in \${libnames} ; do
27922 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27923done
27924\${inst_cmd} \${3}
27925EOF
27926 chmod +x change-install-names
27927 ;;
27928
27929 *-*-cygwin* | *-*-mingw32* )
27930 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27931 ;;
27932
27933 esac
ceec2216
RL
27934fi
27935
27936if test "$wxUSE_SHARED" = "no"; then
27937 config_linkage_component="-static"
27938 SHARED=0
27939else
27940 SHARED=1
27941fi
a848cd7e 27942
a848cd7e 27943
ceec2216
RL
27944UNICODE=0
27945lib_unicode_suffix=
27946WX_CHARTYPE="ansi"
27947if test "$wxUSE_UNICODE" = "yes"; then
27948 lib_unicode_suffix=u
27949 WX_CHARTYPE="unicode"
27950 UNICODE=1
a848cd7e
SC
27951fi
27952
ceec2216
RL
27953lib_debug_suffix=
27954WX_DEBUGTYPE="release"
27955DEBUG_FLAG=0
27956if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27957 lib_debug_suffix=d
27958 WX_DEBUGTYPE="debug"
27959 DEBUG_FLAG=1
27960fi
a848cd7e 27961
ceec2216
RL
27962WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27963WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27964
ceec2216
RL
27965DEBUG_INFO=0
27966if test "$wxUSE_DEBUG_INFO" = "yes"; then
27967 DEBUG_INFO=1
27968fi
a848cd7e 27969
ceec2216 27970WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 27971
ceec2216 27972TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 27973
ceec2216 27974TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 27975
ceec2216
RL
27976if test "$cross_compiling" = "yes"; then
27977 HOST_SUFFIX="-$host_alias"
27978 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
27979 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
27980fi
27981
dd21ced8 27982WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
27983WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
27984
27985
27986
a848cd7e 27987if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
ceec2216
RL
27988 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r"
27989 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc"
27990
a848cd7e 27991 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
27992
27993 # Extract the first word of "Rez", so it can be a program name with args.
27994set dummy Rez; ac_word=$2
27995echo "$as_me:$LINENO: checking for $ac_word" >&5
27996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27997if test "${ac_cv_prog_RESCOMP+set}" = set; then
27998 echo $ECHO_N "(cached) $ECHO_C" >&6
27999else
28000 if test -n "$RESCOMP"; then
28001 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28002else
28003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28004for as_dir in $PATH
28005do
28006 IFS=$as_save_IFS
28007 test -z "$as_dir" && as_dir=.
28008 for ac_exec_ext in '' $ac_executable_extensions; do
28009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28010 ac_cv_prog_RESCOMP="Rez"
28011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28012 break 2
28013 fi
28014done
28015done
28016
28017 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28018fi
28019fi
28020RESCOMP=$ac_cv_prog_RESCOMP
28021if test -n "$RESCOMP"; then
28022 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28023echo "${ECHO_T}$RESCOMP" >&6
28024else
28025 echo "$as_me:$LINENO: result: no" >&5
28026echo "${ECHO_T}no" >&6
28027fi
28028
28029 # Extract the first word of "DeRez", so it can be a program name with args.
28030set dummy DeRez; ac_word=$2
28031echo "$as_me:$LINENO: checking for $ac_word" >&5
28032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28033if test "${ac_cv_prog_DEREZ+set}" = set; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
28035else
28036 if test -n "$DEREZ"; then
28037 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28038else
28039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28040for as_dir in $PATH
28041do
28042 IFS=$as_save_IFS
28043 test -z "$as_dir" && as_dir=.
28044 for ac_exec_ext in '' $ac_executable_extensions; do
28045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28046 ac_cv_prog_DEREZ="DeRez"
28047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28048 break 2
28049 fi
28050done
28051done
28052
28053 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28054fi
28055fi
28056DEREZ=$ac_cv_prog_DEREZ
28057if test -n "$DEREZ"; then
28058 echo "$as_me:$LINENO: result: $DEREZ" >&5
28059echo "${ECHO_T}$DEREZ" >&6
28060else
28061 echo "$as_me:$LINENO: result: no" >&5
28062echo "${ECHO_T}no" >&6
28063fi
28064
28065 # Extract the first word of "SetFile", so it can be a program name with args.
28066set dummy SetFile; ac_word=$2
28067echo "$as_me:$LINENO: checking for $ac_word" >&5
28068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28069if test "${ac_cv_prog_SETFILE+set}" = set; then
28070 echo $ECHO_N "(cached) $ECHO_C" >&6
28071else
28072 if test -n "$SETFILE"; then
28073 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28074else
28075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28076for as_dir in $PATH
28077do
28078 IFS=$as_save_IFS
28079 test -z "$as_dir" && as_dir=.
28080 for ac_exec_ext in '' $ac_executable_extensions; do
28081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28082 ac_cv_prog_SETFILE="SetFile"
28083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28084 break 2
28085 fi
28086done
28087done
28088
28089 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28090fi
28091fi
28092SETFILE=$ac_cv_prog_SETFILE
28093if test -n "$SETFILE"; then
28094 echo "$as_me:$LINENO: result: $SETFILE" >&5
28095echo "${ECHO_T}$SETFILE" >&6
28096else
28097 echo "$as_me:$LINENO: result: no" >&5
28098echo "${ECHO_T}no" >&6
28099fi
28100
28101
28102 MACSETFILE="\$(SETFILE)"
28103
28104 if test "$wxUSE_MAC" = 1; then
28105 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28106
28107 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28108 else
28109 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28110 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28111 fi
28112else
28113 MACSETFILE="@#"
28114 MACRESWXCONFIG="#"
28115
28116 if test "$wxUSE_PM" = 1; then
28117 MACRESCOMP="emxbind -ep"
28118 else
28119 MACRESCOMP="@#"
28120 fi
28121fi
28122
28123
28124
28125echo "$as_me:$LINENO: checking for mode_t" >&5
28126echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28127if test "${ac_cv_type_mode_t+set}" = set; then
28128 echo $ECHO_N "(cached) $ECHO_C" >&6
28129else
28130 cat >conftest.$ac_ext <<_ACEOF
28131/* confdefs.h. */
28132_ACEOF
28133cat confdefs.h >>conftest.$ac_ext
28134cat >>conftest.$ac_ext <<_ACEOF
28135/* end confdefs.h. */
28136$ac_includes_default
28137int
28138main ()
28139{
28140if ((mode_t *) 0)
28141 return 0;
28142if (sizeof (mode_t))
28143 return 0;
28144 ;
28145 return 0;
28146}
28147_ACEOF
28148rm -f conftest.$ac_objext
28149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28150 (eval $ac_compile) 2>conftest.er1
a848cd7e 28151 ac_status=$?
ac1cb8d3
VS
28152 grep -v '^ *+' conftest.er1 >conftest.err
28153 rm -f conftest.er1
28154 cat conftest.err >&5
a848cd7e
SC
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } &&
c228d3a4
RN
28157 { ac_try='test -z "$ac_c_werror_flag"
28158 || test ! -s conftest.err'
ac1cb8d3
VS
28159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160 (eval $ac_try) 2>&5
28161 ac_status=$?
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
28164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166 (eval $ac_try) 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; }; then
28170 ac_cv_type_mode_t=yes
28171else
28172 echo "$as_me: failed program was:" >&5
28173sed 's/^/| /' conftest.$ac_ext >&5
28174
28175ac_cv_type_mode_t=no
28176fi
ac1cb8d3 28177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28178fi
28179echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28180echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28181if test $ac_cv_type_mode_t = yes; then
28182 :
28183else
28184
28185cat >>confdefs.h <<_ACEOF
28186#define mode_t int
28187_ACEOF
28188
28189fi
28190
28191echo "$as_me:$LINENO: checking for off_t" >&5
28192echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28193if test "${ac_cv_type_off_t+set}" = set; then
28194 echo $ECHO_N "(cached) $ECHO_C" >&6
28195else
28196 cat >conftest.$ac_ext <<_ACEOF
28197/* confdefs.h. */
28198_ACEOF
28199cat confdefs.h >>conftest.$ac_ext
28200cat >>conftest.$ac_ext <<_ACEOF
28201/* end confdefs.h. */
28202$ac_includes_default
28203int
28204main ()
28205{
28206if ((off_t *) 0)
28207 return 0;
28208if (sizeof (off_t))
28209 return 0;
28210 ;
28211 return 0;
28212}
28213_ACEOF
28214rm -f conftest.$ac_objext
28215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28216 (eval $ac_compile) 2>conftest.er1
a848cd7e 28217 ac_status=$?
ac1cb8d3
VS
28218 grep -v '^ *+' conftest.er1 >conftest.err
28219 rm -f conftest.er1
28220 cat conftest.err >&5
a848cd7e
SC
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); } &&
c228d3a4
RN
28223 { ac_try='test -z "$ac_c_werror_flag"
28224 || test ! -s conftest.err'
ac1cb8d3
VS
28225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28226 (eval $ac_try) 2>&5
28227 ac_status=$?
28228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); }; } &&
28230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232 (eval $ac_try) 2>&5
28233 ac_status=$?
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); }; }; then
28236 ac_cv_type_off_t=yes
28237else
28238 echo "$as_me: failed program was:" >&5
28239sed 's/^/| /' conftest.$ac_ext >&5
28240
28241ac_cv_type_off_t=no
28242fi
ac1cb8d3 28243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28244fi
28245echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28246echo "${ECHO_T}$ac_cv_type_off_t" >&6
28247if test $ac_cv_type_off_t = yes; then
28248 :
28249else
28250
28251cat >>confdefs.h <<_ACEOF
28252#define off_t long
28253_ACEOF
28254
28255fi
28256
28257echo "$as_me:$LINENO: checking for pid_t" >&5
28258echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28259if test "${ac_cv_type_pid_t+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28261else
28262 cat >conftest.$ac_ext <<_ACEOF
28263/* confdefs.h. */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h. */
28268$ac_includes_default
28269int
28270main ()
28271{
28272if ((pid_t *) 0)
28273 return 0;
28274if (sizeof (pid_t))
28275 return 0;
28276 ;
28277 return 0;
28278}
28279_ACEOF
28280rm -f conftest.$ac_objext
28281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28282 (eval $ac_compile) 2>conftest.er1
a848cd7e 28283 ac_status=$?
ac1cb8d3
VS
28284 grep -v '^ *+' conftest.er1 >conftest.err
28285 rm -f conftest.er1
28286 cat conftest.err >&5
a848cd7e
SC
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); } &&
c228d3a4
RN
28289 { ac_try='test -z "$ac_c_werror_flag"
28290 || test ! -s conftest.err'
ac1cb8d3
VS
28291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28292 (eval $ac_try) 2>&5
28293 ac_status=$?
28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); }; } &&
28296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298 (eval $ac_try) 2>&5
28299 ac_status=$?
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); }; }; then
28302 ac_cv_type_pid_t=yes
28303else
28304 echo "$as_me: failed program was:" >&5
28305sed 's/^/| /' conftest.$ac_ext >&5
28306
28307ac_cv_type_pid_t=no
28308fi
ac1cb8d3 28309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28310fi
28311echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28312echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28313if test $ac_cv_type_pid_t = yes; then
28314 :
28315else
28316
28317cat >>confdefs.h <<_ACEOF
28318#define pid_t int
28319_ACEOF
28320
28321fi
28322
28323echo "$as_me:$LINENO: checking for size_t" >&5
28324echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28325if test "${ac_cv_type_size_t+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328 cat >conftest.$ac_ext <<_ACEOF
28329/* confdefs.h. */
28330_ACEOF
28331cat confdefs.h >>conftest.$ac_ext
28332cat >>conftest.$ac_ext <<_ACEOF
28333/* end confdefs.h. */
28334$ac_includes_default
28335int
28336main ()
28337{
28338if ((size_t *) 0)
28339 return 0;
28340if (sizeof (size_t))
28341 return 0;
28342 ;
28343 return 0;
28344}
28345_ACEOF
28346rm -f conftest.$ac_objext
28347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28348 (eval $ac_compile) 2>conftest.er1
a848cd7e 28349 ac_status=$?
ac1cb8d3
VS
28350 grep -v '^ *+' conftest.er1 >conftest.err
28351 rm -f conftest.er1
28352 cat conftest.err >&5
a848cd7e
SC
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } &&
c228d3a4
RN
28355 { ac_try='test -z "$ac_c_werror_flag"
28356 || test ! -s conftest.err'
ac1cb8d3
VS
28357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28359 ac_status=$?
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; } &&
28362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
28368 ac_cv_type_size_t=yes
28369else
28370 echo "$as_me: failed program was:" >&5
28371sed 's/^/| /' conftest.$ac_ext >&5
28372
28373ac_cv_type_size_t=no
28374fi
ac1cb8d3 28375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28376fi
28377echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28378echo "${ECHO_T}$ac_cv_type_size_t" >&6
28379if test $ac_cv_type_size_t = yes; then
28380 :
28381else
28382
28383cat >>confdefs.h <<_ACEOF
28384#define size_t unsigned
28385_ACEOF
28386
28387fi
28388
28389echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28390echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28391if test "${ac_cv_type_uid_t+set}" = set; then
28392 echo $ECHO_N "(cached) $ECHO_C" >&6
28393else
28394 cat >conftest.$ac_ext <<_ACEOF
28395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
28400#include <sys/types.h>
28401
28402_ACEOF
28403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28404 $EGREP "uid_t" >/dev/null 2>&1; then
28405 ac_cv_type_uid_t=yes
28406else
28407 ac_cv_type_uid_t=no
28408fi
28409rm -f conftest*
28410
28411fi
28412echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28413echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28414if test $ac_cv_type_uid_t = no; then
28415
28416cat >>confdefs.h <<\_ACEOF
28417#define uid_t int
28418_ACEOF
28419
28420
28421cat >>confdefs.h <<\_ACEOF
28422#define gid_t int
28423_ACEOF
28424
28425fi
28426
28427
28428
28429
28430ac_ext=cc
28431ac_cpp='$CXXCPP $CPPFLAGS'
28432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28435
28436echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28437echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28438if test "${wx_cv_size_t_is_uint+set}" = set; then
28439 echo $ECHO_N "(cached) $ECHO_C" >&6
28440else
28441
28442 cat >conftest.$ac_ext <<_ACEOF
28443/* confdefs.h. */
28444_ACEOF
28445cat confdefs.h >>conftest.$ac_ext
28446cat >>conftest.$ac_ext <<_ACEOF
28447/* end confdefs.h. */
28448#include <stddef.h>
28449int
28450main ()
28451{
28452
28453 return 0; }
28454
28455 struct Foo { void foo(size_t); void foo(unsigned int); };
28456
28457 int bar() {
28458
28459 ;
28460 return 0;
28461}
28462_ACEOF
28463rm -f conftest.$ac_objext
28464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28465 (eval $ac_compile) 2>conftest.er1
a848cd7e 28466 ac_status=$?
ac1cb8d3
VS
28467 grep -v '^ *+' conftest.er1 >conftest.err
28468 rm -f conftest.er1
28469 cat conftest.err >&5
a848cd7e
SC
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } &&
c228d3a4
RN
28472 { ac_try='test -z "$ac_cxx_werror_flag"
28473 || test ! -s conftest.err'
ac1cb8d3
VS
28474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28475 (eval $ac_try) 2>&5
28476 ac_status=$?
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); }; } &&
28479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28481 (eval $ac_try) 2>&5
28482 ac_status=$?
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); }; }; then
28485 wx_cv_size_t_is_uint=no
28486else
28487 echo "$as_me: failed program was:" >&5
28488sed 's/^/| /' conftest.$ac_ext >&5
28489
28490wx_cv_size_t_is_uint=yes
28491
28492fi
ac1cb8d3 28493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28494
28495
28496fi
28497echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28498echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28499
28500if test "$wx_cv_size_t_is_uint" = "yes"; then
28501 cat >>confdefs.h <<\_ACEOF
28502#define wxSIZE_T_IS_UINT 1
28503_ACEOF
28504
28505else
28506 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28507echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28508if test "${wx_cv_size_t_is_ulong+set}" = set; then
28509 echo $ECHO_N "(cached) $ECHO_C" >&6
28510else
28511 cat >conftest.$ac_ext <<_ACEOF
28512/* confdefs.h. */
28513_ACEOF
28514cat confdefs.h >>conftest.$ac_ext
28515cat >>conftest.$ac_ext <<_ACEOF
28516/* end confdefs.h. */
28517#include <stddef.h>
28518int
28519main ()
28520{
28521
28522 return 0; }
28523
28524 struct Foo { void foo(size_t); void foo(unsigned long); };
28525
28526 int bar() {
28527
28528 ;
28529 return 0;
28530}
28531_ACEOF
28532rm -f conftest.$ac_objext
28533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28534 (eval $ac_compile) 2>conftest.er1
a848cd7e 28535 ac_status=$?
ac1cb8d3
VS
28536 grep -v '^ *+' conftest.er1 >conftest.err
28537 rm -f conftest.er1
28538 cat conftest.err >&5
a848cd7e
SC
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); } &&
c228d3a4
RN
28541 { ac_try='test -z "$ac_cxx_werror_flag"
28542 || test ! -s conftest.err'
ac1cb8d3
VS
28543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544 (eval $ac_try) 2>&5
28545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; } &&
28548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28550 (eval $ac_try) 2>&5
28551 ac_status=$?
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; }; then
28554 wx_cv_size_t_is_ulong=no
28555else
28556 echo "$as_me: failed program was:" >&5
28557sed 's/^/| /' conftest.$ac_ext >&5
28558
28559wx_cv_size_t_is_ulong=yes
28560
28561fi
ac1cb8d3 28562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28563
28564fi
28565echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28566echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28567
28568 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28569 cat >>confdefs.h <<\_ACEOF
28570#define wxSIZE_T_IS_ULONG 1
28571_ACEOF
28572
28573 fi
28574fi
28575
28576ac_ext=c
28577ac_cpp='$CPP $CPPFLAGS'
28578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28580ac_compiler_gnu=$ac_cv_c_compiler_gnu
28581
28582
28583
28584echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28585echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28586if test "${wx_cv_struct_pw_gecos+set}" = set; then
28587 echo $ECHO_N "(cached) $ECHO_C" >&6
28588else
28589
28590 cat >conftest.$ac_ext <<_ACEOF
28591/* confdefs.h. */
28592_ACEOF
28593cat confdefs.h >>conftest.$ac_ext
28594cat >>conftest.$ac_ext <<_ACEOF
28595/* end confdefs.h. */
28596#include <pwd.h>
28597int
28598main ()
28599{
28600
28601 char *p;
28602 struct passwd *pw;
28603 p = pw->pw_gecos;
28604
28605 ;
28606 return 0;
28607}
28608_ACEOF
28609rm -f conftest.$ac_objext
28610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28611 (eval $ac_compile) 2>conftest.er1
a848cd7e 28612 ac_status=$?
ac1cb8d3
VS
28613 grep -v '^ *+' conftest.er1 >conftest.err
28614 rm -f conftest.er1
28615 cat conftest.err >&5
a848cd7e
SC
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } &&
c228d3a4
RN
28618 { ac_try='test -z "$ac_c_werror_flag"
28619 || test ! -s conftest.err'
ac1cb8d3
VS
28620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28621 (eval $ac_try) 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; } &&
28625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; }; then
28631
28632 wx_cv_struct_pw_gecos=yes
28633
28634else
28635 echo "$as_me: failed program was:" >&5
28636sed 's/^/| /' conftest.$ac_ext >&5
28637
28638
28639 wx_cv_struct_pw_gecos=no
28640
28641
28642fi
ac1cb8d3 28643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28644
28645
28646fi
28647echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28648echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28649
28650if test "$wx_cv_struct_pw_gecos" = "yes"; then
28651 cat >>confdefs.h <<\_ACEOF
28652#define HAVE_PW_GECOS 1
28653_ACEOF
28654
28655fi
28656
28657
28658if test "$wx_cv_sizeof_wchar_t" != "0"; then
28659 cat >>confdefs.h <<\_ACEOF
28660#define wxUSE_WCHAR_T 1
28661_ACEOF
28662
28663
28664 WCSLEN_FOUND=0
28665 WCHAR_LINK=
28666
28667for ac_func in wcslen
28668do
28669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28670echo "$as_me:$LINENO: checking for $ac_func" >&5
28671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28672if eval "test \"\${$as_ac_var+set}\" = set"; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28674else
28675 cat >conftest.$ac_ext <<_ACEOF
28676/* confdefs.h. */
28677_ACEOF
28678cat confdefs.h >>conftest.$ac_ext
28679cat >>conftest.$ac_ext <<_ACEOF
28680/* end confdefs.h. */
ac1cb8d3
VS
28681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28683#define $ac_func innocuous_$ac_func
28684
a848cd7e
SC
28685/* System header to define __stub macros and hopefully few prototypes,
28686 which can conflict with char $ac_func (); below.
28687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28688 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28689
a848cd7e
SC
28690#ifdef __STDC__
28691# include <limits.h>
28692#else
28693# include <assert.h>
28694#endif
ac1cb8d3
VS
28695
28696#undef $ac_func
28697
a848cd7e
SC
28698/* Override any gcc2 internal prototype to avoid an error. */
28699#ifdef __cplusplus
28700extern "C"
28701{
28702#endif
28703/* We use char because int might match the return type of a gcc2
28704 builtin and then its argument prototype would still apply. */
28705char $ac_func ();
28706/* The GNU C library defines this for functions which it implements
28707 to always fail with ENOSYS. Some functions are actually named
28708 something starting with __ and the normal name is an alias. */
28709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28710choke me
28711#else
28712char (*f) () = $ac_func;
28713#endif
28714#ifdef __cplusplus
28715}
28716#endif
28717
28718int
28719main ()
28720{
28721return f != $ac_func;
28722 ;
28723 return 0;
28724}
28725_ACEOF
28726rm -f conftest.$ac_objext conftest$ac_exeext
28727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28728 (eval $ac_link) 2>conftest.er1
a848cd7e 28729 ac_status=$?
ac1cb8d3
VS
28730 grep -v '^ *+' conftest.er1 >conftest.err
28731 rm -f conftest.er1
28732 cat conftest.err >&5
a848cd7e
SC
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } &&
c228d3a4
RN
28735 { ac_try='test -z "$ac_c_werror_flag"
28736 || test ! -s conftest.err'
ac1cb8d3
VS
28737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738 (eval $ac_try) 2>&5
28739 ac_status=$?
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; } &&
28742 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; }; then
28748 eval "$as_ac_var=yes"
28749else
28750 echo "$as_me: failed program was:" >&5
28751sed 's/^/| /' conftest.$ac_ext >&5
28752
28753eval "$as_ac_var=no"
28754fi
ac1cb8d3
VS
28755rm -f conftest.err conftest.$ac_objext \
28756 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28757fi
28758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28760if test `eval echo '${'$as_ac_var'}'` = yes; then
28761 cat >>confdefs.h <<_ACEOF
28762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28763_ACEOF
28764 WCSLEN_FOUND=1
28765fi
28766done
28767
28768
28769 if test "$WCSLEN_FOUND" = 0; then
28770 if test "$TOOLKIT" = "MSW"; then
28771 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28772echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28773if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28775else
28776 ac_check_lib_save_LIBS=$LIBS
28777LIBS="-lmsvcrt $LIBS"
28778cat >conftest.$ac_ext <<_ACEOF
28779/* confdefs.h. */
28780_ACEOF
28781cat confdefs.h >>conftest.$ac_ext
28782cat >>conftest.$ac_ext <<_ACEOF
28783/* end confdefs.h. */
28784
28785/* Override any gcc2 internal prototype to avoid an error. */
28786#ifdef __cplusplus
28787extern "C"
28788#endif
28789/* We use char because int might match the return type of a gcc2
28790 builtin and then its argument prototype would still apply. */
28791char wcslen ();
28792int
28793main ()
28794{
28795wcslen ();
28796 ;
28797 return 0;
28798}
28799_ACEOF
28800rm -f conftest.$ac_objext conftest$ac_exeext
28801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28802 (eval $ac_link) 2>conftest.er1
a848cd7e 28803 ac_status=$?
ac1cb8d3
VS
28804 grep -v '^ *+' conftest.er1 >conftest.err
28805 rm -f conftest.er1
28806 cat conftest.err >&5
a848cd7e
SC
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); } &&
c228d3a4
RN
28809 { ac_try='test -z "$ac_c_werror_flag"
28810 || test ! -s conftest.err'
ac1cb8d3
VS
28811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812 (eval $ac_try) 2>&5
28813 ac_status=$?
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); }; } &&
28816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818 (eval $ac_try) 2>&5
28819 ac_status=$?
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; }; then
28822 ac_cv_lib_msvcrt_wcslen=yes
28823else
28824 echo "$as_me: failed program was:" >&5
28825sed 's/^/| /' conftest.$ac_ext >&5
28826
28827ac_cv_lib_msvcrt_wcslen=no
28828fi
ac1cb8d3
VS
28829rm -f conftest.err conftest.$ac_objext \
28830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28831LIBS=$ac_check_lib_save_LIBS
28832fi
28833echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28834echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28835if test $ac_cv_lib_msvcrt_wcslen = yes; then
28836 WCHAR_OK=1
28837fi
28838
28839 else
28840 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28841echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28842if test "${ac_cv_lib_w_wcslen+set}" = set; then
28843 echo $ECHO_N "(cached) $ECHO_C" >&6
28844else
28845 ac_check_lib_save_LIBS=$LIBS
28846LIBS="-lw $LIBS"
28847cat >conftest.$ac_ext <<_ACEOF
28848/* confdefs.h. */
28849_ACEOF
28850cat confdefs.h >>conftest.$ac_ext
28851cat >>conftest.$ac_ext <<_ACEOF
28852/* end confdefs.h. */
28853
28854/* Override any gcc2 internal prototype to avoid an error. */
28855#ifdef __cplusplus
28856extern "C"
28857#endif
28858/* We use char because int might match the return type of a gcc2
28859 builtin and then its argument prototype would still apply. */
28860char wcslen ();
28861int
28862main ()
28863{
28864wcslen ();
28865 ;
28866 return 0;
28867}
28868_ACEOF
28869rm -f conftest.$ac_objext conftest$ac_exeext
28870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28871 (eval $ac_link) 2>conftest.er1
a848cd7e 28872 ac_status=$?
ac1cb8d3
VS
28873 grep -v '^ *+' conftest.er1 >conftest.err
28874 rm -f conftest.er1
28875 cat conftest.err >&5
a848cd7e
SC
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } &&
c228d3a4
RN
28878 { ac_try='test -z "$ac_c_werror_flag"
28879 || test ! -s conftest.err'
ac1cb8d3
VS
28880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28882 ac_status=$?
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; } &&
28885 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28887 (eval $ac_try) 2>&5
28888 ac_status=$?
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); }; }; then
28891 ac_cv_lib_w_wcslen=yes
28892else
28893 echo "$as_me: failed program was:" >&5
28894sed 's/^/| /' conftest.$ac_ext >&5
28895
28896ac_cv_lib_w_wcslen=no
28897fi
ac1cb8d3
VS
28898rm -f conftest.err conftest.$ac_objext \
28899 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28900LIBS=$ac_check_lib_save_LIBS
28901fi
28902echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28903echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28904if test $ac_cv_lib_w_wcslen = yes; then
28905
28906 WCHAR_LINK=" -lw"
28907 WCSLEN_FOUND=1
28908
28909fi
28910
28911 fi
28912 fi
28913
28914 if test "$WCSLEN_FOUND" = 1; then
28915 cat >>confdefs.h <<\_ACEOF
28916#define HAVE_WCSLEN 1
28917_ACEOF
28918
28919 fi
28920
473276a9
VS
28921 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28922 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28923 fi
28924
a848cd7e
SC
28925
28926for ac_func in wcsrtombs
28927do
28928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28929echo "$as_me:$LINENO: checking for $ac_func" >&5
28930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28931if eval "test \"\${$as_ac_var+set}\" = set"; then
28932 echo $ECHO_N "(cached) $ECHO_C" >&6
28933else
28934 cat >conftest.$ac_ext <<_ACEOF
28935/* confdefs.h. */
28936_ACEOF
28937cat confdefs.h >>conftest.$ac_ext
28938cat >>conftest.$ac_ext <<_ACEOF
28939/* end confdefs.h. */
ac1cb8d3
VS
28940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28942#define $ac_func innocuous_$ac_func
28943
a848cd7e
SC
28944/* System header to define __stub macros and hopefully few prototypes,
28945 which can conflict with char $ac_func (); below.
28946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28947 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28948
a848cd7e
SC
28949#ifdef __STDC__
28950# include <limits.h>
28951#else
28952# include <assert.h>
28953#endif
ac1cb8d3
VS
28954
28955#undef $ac_func
28956
a848cd7e
SC
28957/* Override any gcc2 internal prototype to avoid an error. */
28958#ifdef __cplusplus
28959extern "C"
28960{
28961#endif
28962/* We use char because int might match the return type of a gcc2
28963 builtin and then its argument prototype would still apply. */
28964char $ac_func ();
28965/* The GNU C library defines this for functions which it implements
28966 to always fail with ENOSYS. Some functions are actually named
28967 something starting with __ and the normal name is an alias. */
28968#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28969choke me
28970#else
28971char (*f) () = $ac_func;
28972#endif
28973#ifdef __cplusplus
28974}
28975#endif
28976
28977int
28978main ()
28979{
28980return f != $ac_func;
28981 ;
28982 return 0;
28983}
28984_ACEOF
28985rm -f conftest.$ac_objext conftest$ac_exeext
28986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28987 (eval $ac_link) 2>conftest.er1
a848cd7e 28988 ac_status=$?
ac1cb8d3
VS
28989 grep -v '^ *+' conftest.er1 >conftest.err
28990 rm -f conftest.er1
28991 cat conftest.err >&5
a848cd7e
SC
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); } &&
c228d3a4
RN
28994 { ac_try='test -z "$ac_c_werror_flag"
28995 || test ! -s conftest.err'
ac1cb8d3
VS
28996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28997 (eval $ac_try) 2>&5
28998 ac_status=$?
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; } &&
29001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29003 (eval $ac_try) 2>&5
29004 ac_status=$?
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); }; }; then
29007 eval "$as_ac_var=yes"
29008else
29009 echo "$as_me: failed program was:" >&5
29010sed 's/^/| /' conftest.$ac_ext >&5
29011
29012eval "$as_ac_var=no"
29013fi
ac1cb8d3
VS
29014rm -f conftest.err conftest.$ac_objext \
29015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29016fi
29017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29019if test `eval echo '${'$as_ac_var'}'` = yes; then
29020 cat >>confdefs.h <<_ACEOF
29021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29022_ACEOF
29023
29024fi
29025done
29026
29027else
29028 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29029echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29030fi
29031
29032
29033
29034ac_ext=cc
29035ac_cpp='$CXXCPP $CPPFLAGS'
29036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29039
29040
29041
29042for ac_func in vsnprintf
29043do
29044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29045echo "$as_me:$LINENO: checking for $ac_func" >&5
29046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29047if eval "test \"\${$as_ac_var+set}\" = set"; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29049else
29050 cat >conftest.$ac_ext <<_ACEOF
29051/* confdefs.h. */
29052_ACEOF
29053cat confdefs.h >>conftest.$ac_ext
29054cat >>conftest.$ac_ext <<_ACEOF
29055/* end confdefs.h. */
ac1cb8d3
VS
29056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29058#define $ac_func innocuous_$ac_func
29059
a848cd7e
SC
29060/* System header to define __stub macros and hopefully few prototypes,
29061 which can conflict with char $ac_func (); below.
29062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29063 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29064
a848cd7e
SC
29065#ifdef __STDC__
29066# include <limits.h>
29067#else
29068# include <assert.h>
29069#endif
ac1cb8d3
VS
29070
29071#undef $ac_func
29072
a848cd7e
SC
29073/* Override any gcc2 internal prototype to avoid an error. */
29074#ifdef __cplusplus
29075extern "C"
29076{
29077#endif
29078/* We use char because int might match the return type of a gcc2
29079 builtin and then its argument prototype would still apply. */
29080char $ac_func ();
29081/* The GNU C library defines this for functions which it implements
29082 to always fail with ENOSYS. Some functions are actually named
29083 something starting with __ and the normal name is an alias. */
29084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29085choke me
29086#else
29087char (*f) () = $ac_func;
29088#endif
29089#ifdef __cplusplus
29090}
29091#endif
29092
29093int
29094main ()
29095{
29096return f != $ac_func;
29097 ;
29098 return 0;
29099}
29100_ACEOF
29101rm -f conftest.$ac_objext conftest$ac_exeext
29102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29103 (eval $ac_link) 2>conftest.er1
a848cd7e 29104 ac_status=$?
ac1cb8d3
VS
29105 grep -v '^ *+' conftest.er1 >conftest.err
29106 rm -f conftest.er1
29107 cat conftest.err >&5
a848cd7e
SC
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); } &&
c228d3a4
RN
29110 { ac_try='test -z "$ac_cxx_werror_flag"
29111 || test ! -s conftest.err'
ac1cb8d3
VS
29112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29113 (eval $ac_try) 2>&5
29114 ac_status=$?
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; } &&
29117 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119 (eval $ac_try) 2>&5
29120 ac_status=$?
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; }; then
29123 eval "$as_ac_var=yes"
29124else
29125 echo "$as_me: failed program was:" >&5
29126sed 's/^/| /' conftest.$ac_ext >&5
29127
29128eval "$as_ac_var=no"
29129fi
ac1cb8d3
VS
29130rm -f conftest.err conftest.$ac_objext \
29131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29132fi
29133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29135if test `eval echo '${'$as_ac_var'}'` = yes; then
29136 cat >>confdefs.h <<_ACEOF
29137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29138_ACEOF
29139
29140fi
29141done
29142
29143
29144if test "$ac_cv_func_vsnprintf" = "yes"; then
29145 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29146echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29147if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29149else
29150
29151 cat >conftest.$ac_ext <<_ACEOF
29152/* confdefs.h. */
29153_ACEOF
29154cat confdefs.h >>conftest.$ac_ext
29155cat >>conftest.$ac_ext <<_ACEOF
29156/* end confdefs.h. */
29157
29158 #include <stdio.h>
29159 #include <stdarg.h>
29160
29161int
29162main ()
29163{
29164
29165 char *buf;
29166 va_list ap;
29167 vsnprintf(buf, 10u, "%s", ap);
29168
29169 ;
29170 return 0;
29171}
29172_ACEOF
29173rm -f conftest.$ac_objext
29174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29175 (eval $ac_compile) 2>conftest.er1
a848cd7e 29176 ac_status=$?
ac1cb8d3
VS
29177 grep -v '^ *+' conftest.er1 >conftest.err
29178 rm -f conftest.er1
29179 cat conftest.err >&5
a848cd7e
SC
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); } &&
c228d3a4
RN
29182 { ac_try='test -z "$ac_cxx_werror_flag"
29183 || test ! -s conftest.err'
ac1cb8d3
VS
29184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185 (eval $ac_try) 2>&5
29186 ac_status=$?
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; } &&
29189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191 (eval $ac_try) 2>&5
29192 ac_status=$?
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; }; then
29195 wx_cv_func_vsnprintf_decl=yes
29196else
29197 echo "$as_me: failed program was:" >&5
29198sed 's/^/| /' conftest.$ac_ext >&5
29199
29200wx_cv_func_vsnprintf_decl=no
29201
29202fi
ac1cb8d3 29203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29204
29205
29206fi
29207echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29208echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29209
29210 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29211 cat >>confdefs.h <<\_ACEOF
29212#define HAVE_VSNPRINTF_DECL 1
29213_ACEOF
29214
29215 fi
29216fi
29217
29218if test "$wxUSE_UNICODE" = yes; then
29219
29220
29221
fbe47c7b
VS
29222
29223
29224
29225for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29226do
29227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29228echo "$as_me:$LINENO: checking for $ac_func" >&5
29229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29230if eval "test \"\${$as_ac_var+set}\" = set"; then
29231 echo $ECHO_N "(cached) $ECHO_C" >&6
29232else
29233 cat >conftest.$ac_ext <<_ACEOF
29234/* confdefs.h. */
29235_ACEOF
29236cat confdefs.h >>conftest.$ac_ext
29237cat >>conftest.$ac_ext <<_ACEOF
29238/* end confdefs.h. */
ac1cb8d3
VS
29239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29241#define $ac_func innocuous_$ac_func
29242
a848cd7e
SC
29243/* System header to define __stub macros and hopefully few prototypes,
29244 which can conflict with char $ac_func (); below.
29245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29246 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29247
a848cd7e
SC
29248#ifdef __STDC__
29249# include <limits.h>
29250#else
29251# include <assert.h>
29252#endif
ac1cb8d3
VS
29253
29254#undef $ac_func
29255
a848cd7e
SC
29256/* Override any gcc2 internal prototype to avoid an error. */
29257#ifdef __cplusplus
29258extern "C"
29259{
29260#endif
29261/* We use char because int might match the return type of a gcc2
29262 builtin and then its argument prototype would still apply. */
29263char $ac_func ();
29264/* The GNU C library defines this for functions which it implements
29265 to always fail with ENOSYS. Some functions are actually named
29266 something starting with __ and the normal name is an alias. */
29267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29268choke me
29269#else
29270char (*f) () = $ac_func;
29271#endif
29272#ifdef __cplusplus
29273}
29274#endif
29275
29276int
29277main ()
29278{
29279return f != $ac_func;
29280 ;
29281 return 0;
29282}
29283_ACEOF
29284rm -f conftest.$ac_objext conftest$ac_exeext
29285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29286 (eval $ac_link) 2>conftest.er1
a848cd7e 29287 ac_status=$?
ac1cb8d3
VS
29288 grep -v '^ *+' conftest.er1 >conftest.err
29289 rm -f conftest.er1
29290 cat conftest.err >&5
a848cd7e
SC
29291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 (exit $ac_status); } &&
c228d3a4
RN
29293 { ac_try='test -z "$ac_cxx_werror_flag"
29294 || test ! -s conftest.err'
ac1cb8d3
VS
29295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29296 (eval $ac_try) 2>&5
29297 ac_status=$?
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; } &&
29300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29302 (eval $ac_try) 2>&5
29303 ac_status=$?
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; }; then
29306 eval "$as_ac_var=yes"
29307else
29308 echo "$as_me: failed program was:" >&5
29309sed 's/^/| /' conftest.$ac_ext >&5
29310
29311eval "$as_ac_var=no"
29312fi
ac1cb8d3
VS
29313rm -f conftest.err conftest.$ac_objext \
29314 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29315fi
29316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29318if test `eval echo '${'$as_ac_var'}'` = yes; then
29319 cat >>confdefs.h <<_ACEOF
29320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29321_ACEOF
29322
29323fi
29324done
29325
29326
29327 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29328echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29329 cat >conftest.$ac_ext <<_ACEOF
29330/* confdefs.h. */
29331_ACEOF
29332cat confdefs.h >>conftest.$ac_ext
29333cat >>conftest.$ac_ext <<_ACEOF
29334/* end confdefs.h. */
29335#include <wchar.h>
29336int
29337main ()
29338{
29339&_vsnwprintf;
29340 ;
29341 return 0;
29342}
29343_ACEOF
29344rm -f conftest.$ac_objext
29345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29346 (eval $ac_compile) 2>conftest.er1
a848cd7e 29347 ac_status=$?
ac1cb8d3
VS
29348 grep -v '^ *+' conftest.er1 >conftest.err
29349 rm -f conftest.er1
29350 cat conftest.err >&5
a848cd7e
SC
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); } &&
c228d3a4
RN
29353 { ac_try='test -z "$ac_cxx_werror_flag"
29354 || test ! -s conftest.err'
ac1cb8d3
VS
29355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356 (eval $ac_try) 2>&5
29357 ac_status=$?
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; } &&
29360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29362 (eval $ac_try) 2>&5
29363 ac_status=$?
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); }; }; then
29366 echo "$as_me:$LINENO: result: yes" >&5
29367echo "${ECHO_T}yes" >&6
29368 cat >>confdefs.h <<\_ACEOF
29369#define HAVE__VSNWPRINTF 1
29370_ACEOF
29371
29372else
29373 echo "$as_me: failed program was:" >&5
29374sed 's/^/| /' conftest.$ac_ext >&5
29375
29376echo "$as_me:$LINENO: result: no" >&5
29377echo "${ECHO_T}no" >&6
29378fi
ac1cb8d3 29379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29380fi
29381
29382ac_ext=c
29383ac_cpp='$CPP $CPPFLAGS'
29384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29386ac_compiler_gnu=$ac_cv_c_compiler_gnu
29387
29388
29389
29390
29391if test "$TOOLKIT" != "MSW"; then
29392
29393
29394
29395
29396ac_ext=cc
29397ac_cpp='$CXXCPP $CPPFLAGS'
29398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29401
29402
29403
29404
29405# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29406if test "${with_libiconv_prefix+set}" = set; then
29407 withval="$with_libiconv_prefix"
29408
29409 for dir in `echo "$withval" | tr : ' '`; do
29410 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29411 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29412 done
29413
29414fi;
29415
29416 echo "$as_me:$LINENO: checking for iconv" >&5
29417echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29418if test "${am_cv_func_iconv+set}" = set; then
29419 echo $ECHO_N "(cached) $ECHO_C" >&6
29420else
29421
29422 am_cv_func_iconv="no, consider installing GNU libiconv"
29423 am_cv_lib_iconv=no
29424 cat >conftest.$ac_ext <<_ACEOF
29425/* confdefs.h. */
29426_ACEOF
29427cat confdefs.h >>conftest.$ac_ext
29428cat >>conftest.$ac_ext <<_ACEOF
29429/* end confdefs.h. */
29430#include <stdlib.h>
29431#include <iconv.h>
29432int
29433main ()
29434{
29435iconv_t cd = iconv_open("","");
29436 iconv(cd,NULL,NULL,NULL,NULL);
29437 iconv_close(cd);
29438 ;
29439 return 0;
29440}
29441_ACEOF
29442rm -f conftest.$ac_objext conftest$ac_exeext
29443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29444 (eval $ac_link) 2>conftest.er1
a848cd7e 29445 ac_status=$?
ac1cb8d3
VS
29446 grep -v '^ *+' conftest.er1 >conftest.err
29447 rm -f conftest.er1
29448 cat conftest.err >&5
a848cd7e
SC
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); } &&
c228d3a4
RN
29451 { ac_try='test -z "$ac_cxx_werror_flag"
29452 || test ! -s conftest.err'
ac1cb8d3
VS
29453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29454 (eval $ac_try) 2>&5
29455 ac_status=$?
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); }; } &&
29458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460 (eval $ac_try) 2>&5
29461 ac_status=$?
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); }; }; then
29464 am_cv_func_iconv=yes
29465else
29466 echo "$as_me: failed program was:" >&5
29467sed 's/^/| /' conftest.$ac_ext >&5
29468
29469fi
ac1cb8d3
VS
29470rm -f conftest.err conftest.$ac_objext \
29471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29472 if test "$am_cv_func_iconv" != yes; then
29473 am_save_LIBS="$LIBS"
29474 LIBS="$LIBS -liconv"
29475 cat >conftest.$ac_ext <<_ACEOF
29476/* confdefs.h. */
29477_ACEOF
29478cat confdefs.h >>conftest.$ac_ext
29479cat >>conftest.$ac_ext <<_ACEOF
29480/* end confdefs.h. */
29481#include <stdlib.h>
29482#include <iconv.h>
29483int
29484main ()
29485{
29486iconv_t cd = iconv_open("","");
29487 iconv(cd,NULL,NULL,NULL,NULL);
29488 iconv_close(cd);
29489 ;
29490 return 0;
29491}
29492_ACEOF
29493rm -f conftest.$ac_objext conftest$ac_exeext
29494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29495 (eval $ac_link) 2>conftest.er1
a848cd7e 29496 ac_status=$?
ac1cb8d3
VS
29497 grep -v '^ *+' conftest.er1 >conftest.err
29498 rm -f conftest.er1
29499 cat conftest.err >&5
a848cd7e
SC
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); } &&
c228d3a4
RN
29502 { ac_try='test -z "$ac_cxx_werror_flag"
29503 || test ! -s conftest.err'
ac1cb8d3
VS
29504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505 (eval $ac_try) 2>&5
29506 ac_status=$?
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); }; } &&
29509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29511 (eval $ac_try) 2>&5
29512 ac_status=$?
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); }; }; then
29515 am_cv_lib_iconv=yes
29516 am_cv_func_iconv=yes
29517else
29518 echo "$as_me: failed program was:" >&5
29519sed 's/^/| /' conftest.$ac_ext >&5
29520
29521fi
ac1cb8d3
VS
29522rm -f conftest.err conftest.$ac_objext \
29523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29524 LIBS="$am_save_LIBS"
29525 fi
29526
29527fi
29528echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29529echo "${ECHO_T}$am_cv_func_iconv" >&6
29530 if test "$am_cv_func_iconv" = yes; then
29531
29532cat >>confdefs.h <<\_ACEOF
29533#define HAVE_ICONV 1
29534_ACEOF
29535
29536 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29537echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29538if test "${wx_cv_func_iconv_const+set}" = set; then
29539 echo $ECHO_N "(cached) $ECHO_C" >&6
29540else
29541 cat >conftest.$ac_ext <<_ACEOF
29542/* confdefs.h. */
29543_ACEOF
29544cat confdefs.h >>conftest.$ac_ext
29545cat >>conftest.$ac_ext <<_ACEOF
29546/* end confdefs.h. */
29547
29548#include <stdlib.h>
29549#include <iconv.h>
29550extern
29551#ifdef __cplusplus
29552"C"
29553#endif
29554#if defined(__STDC__) || defined(__cplusplus)
29555size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29556#else
29557size_t iconv();
29558#endif
29559
29560int
29561main ()
29562{
29563
29564 ;
29565 return 0;
29566}
29567_ACEOF
29568rm -f conftest.$ac_objext
29569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29570 (eval $ac_compile) 2>conftest.er1
a848cd7e 29571 ac_status=$?
ac1cb8d3
VS
29572 grep -v '^ *+' conftest.er1 >conftest.err
29573 rm -f conftest.er1
29574 cat conftest.err >&5
a848cd7e
SC
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); } &&
c228d3a4
RN
29577 { ac_try='test -z "$ac_cxx_werror_flag"
29578 || test ! -s conftest.err'
ac1cb8d3
VS
29579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29580 (eval $ac_try) 2>&5
29581 ac_status=$?
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; } &&
29584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; }; then
29590 wx_cv_func_iconv_const="no"
29591else
29592 echo "$as_me: failed program was:" >&5
29593sed 's/^/| /' conftest.$ac_ext >&5
29594
29595wx_cv_func_iconv_const="yes"
29596
29597fi
ac1cb8d3 29598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29599
29600fi
29601echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29602echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29603
29604 iconv_const=
29605 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29606 iconv_const="const"
29607 fi
29608
29609
29610cat >>confdefs.h <<_ACEOF
29611#define ICONV_CONST $iconv_const
29612_ACEOF
29613
29614 fi
29615 LIBICONV=
29616 if test "$am_cv_lib_iconv" = yes; then
29617 LIBICONV="-liconv"
29618 fi
29619
29620
29621LIBS="$LIBICONV $LIBS"
29622ac_ext=c
29623ac_cpp='$CPP $CPPFLAGS'
29624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29626ac_compiler_gnu=$ac_cv_c_compiler_gnu
29627
29628
29629if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29630
29631for ac_func in sigaction
29632do
29633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29634echo "$as_me:$LINENO: checking for $ac_func" >&5
29635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29636if eval "test \"\${$as_ac_var+set}\" = set"; then
29637 echo $ECHO_N "(cached) $ECHO_C" >&6
29638else
29639 cat >conftest.$ac_ext <<_ACEOF
29640/* confdefs.h. */
29641_ACEOF
29642cat confdefs.h >>conftest.$ac_ext
29643cat >>conftest.$ac_ext <<_ACEOF
29644/* end confdefs.h. */
ac1cb8d3
VS
29645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29647#define $ac_func innocuous_$ac_func
29648
a848cd7e
SC
29649/* System header to define __stub macros and hopefully few prototypes,
29650 which can conflict with char $ac_func (); below.
29651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29652 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29653
a848cd7e
SC
29654#ifdef __STDC__
29655# include <limits.h>
29656#else
29657# include <assert.h>
29658#endif
ac1cb8d3
VS
29659
29660#undef $ac_func
29661
a848cd7e
SC
29662/* Override any gcc2 internal prototype to avoid an error. */
29663#ifdef __cplusplus
29664extern "C"
29665{
29666#endif
29667/* We use char because int might match the return type of a gcc2
29668 builtin and then its argument prototype would still apply. */
29669char $ac_func ();
29670/* The GNU C library defines this for functions which it implements
29671 to always fail with ENOSYS. Some functions are actually named
29672 something starting with __ and the normal name is an alias. */
29673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29674choke me
29675#else
29676char (*f) () = $ac_func;
29677#endif
29678#ifdef __cplusplus
29679}
29680#endif
29681
29682int
29683main ()
29684{
29685return f != $ac_func;
29686 ;
29687 return 0;
29688}
29689_ACEOF
29690rm -f conftest.$ac_objext conftest$ac_exeext
29691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29692 (eval $ac_link) 2>conftest.er1
a848cd7e 29693 ac_status=$?
ac1cb8d3
VS
29694 grep -v '^ *+' conftest.er1 >conftest.err
29695 rm -f conftest.er1
29696 cat conftest.err >&5
a848cd7e
SC
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); } &&
c228d3a4
RN
29699 { ac_try='test -z "$ac_c_werror_flag"
29700 || test ! -s conftest.err'
ac1cb8d3
VS
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; } &&
29706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708 (eval $ac_try) 2>&5
29709 ac_status=$?
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); }; }; then
29712 eval "$as_ac_var=yes"
29713else
29714 echo "$as_me: failed program was:" >&5
29715sed 's/^/| /' conftest.$ac_ext >&5
29716
29717eval "$as_ac_var=no"
29718fi
ac1cb8d3
VS
29719rm -f conftest.err conftest.$ac_objext \
29720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29721fi
29722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29724if test `eval echo '${'$as_ac_var'}'` = yes; then
29725 cat >>confdefs.h <<_ACEOF
29726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29727_ACEOF
29728
29729fi
29730done
29731
29732
29733 if test "$ac_cv_func_sigaction" = "no"; then
29734 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29735echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29736 wxUSE_ON_FATAL_EXCEPTION=no
29737 fi
29738
29739 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29740
29741
29742 ac_ext=cc
29743ac_cpp='$CXXCPP $CPPFLAGS'
29744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29747
29748
29749 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29750echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29751if test "${wx_cv_type_sa_handler+set}" = set; then
29752 echo $ECHO_N "(cached) $ECHO_C" >&6
29753else
29754
29755 cat >conftest.$ac_ext <<_ACEOF
29756/* confdefs.h. */
29757_ACEOF
29758cat confdefs.h >>conftest.$ac_ext
29759cat >>conftest.$ac_ext <<_ACEOF
29760/* end confdefs.h. */
29761#include <signal.h>
29762int
29763main ()
29764{
29765
29766 extern void testSigHandler(int);
29767
29768 struct sigaction sa;
29769 sa.sa_handler = testSigHandler;
29770
29771 ;
29772 return 0;
29773}
29774_ACEOF
29775rm -f conftest.$ac_objext
29776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29777 (eval $ac_compile) 2>conftest.er1
a848cd7e 29778 ac_status=$?
ac1cb8d3
VS
29779 grep -v '^ *+' conftest.er1 >conftest.err
29780 rm -f conftest.er1
29781 cat conftest.err >&5
a848cd7e
SC
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } &&
c228d3a4
RN
29784 { ac_try='test -z "$ac_cxx_werror_flag"
29785 || test ! -s conftest.err'
ac1cb8d3
VS
29786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; } &&
29791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29793 (eval $ac_try) 2>&5
29794 ac_status=$?
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); }; }; then
29797
29798 wx_cv_type_sa_handler=int
29799
29800else
29801 echo "$as_me: failed program was:" >&5
29802sed 's/^/| /' conftest.$ac_ext >&5
29803
29804
29805 wx_cv_type_sa_handler=void
29806
29807fi
ac1cb8d3 29808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29809
29810fi
29811echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29812echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29813
29814 ac_ext=c
29815ac_cpp='$CPP $CPPFLAGS'
29816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29818ac_compiler_gnu=$ac_cv_c_compiler_gnu
29819
29820
29821 cat >>confdefs.h <<_ACEOF
29822#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29823_ACEOF
29824
29825 fi
29826fi
29827
29828
29829
29830for ac_func in mkstemp mktemp
29831do
29832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29833echo "$as_me:$LINENO: checking for $ac_func" >&5
29834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29835if eval "test \"\${$as_ac_var+set}\" = set"; then
29836 echo $ECHO_N "(cached) $ECHO_C" >&6
29837else
29838 cat >conftest.$ac_ext <<_ACEOF
29839/* confdefs.h. */
29840_ACEOF
29841cat confdefs.h >>conftest.$ac_ext
29842cat >>conftest.$ac_ext <<_ACEOF
29843/* end confdefs.h. */
ac1cb8d3
VS
29844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29846#define $ac_func innocuous_$ac_func
29847
a848cd7e
SC
29848/* System header to define __stub macros and hopefully few prototypes,
29849 which can conflict with char $ac_func (); below.
29850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29851 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29852
a848cd7e
SC
29853#ifdef __STDC__
29854# include <limits.h>
29855#else
29856# include <assert.h>
29857#endif
ac1cb8d3
VS
29858
29859#undef $ac_func
29860
a848cd7e
SC
29861/* Override any gcc2 internal prototype to avoid an error. */
29862#ifdef __cplusplus
29863extern "C"
29864{
29865#endif
29866/* We use char because int might match the return type of a gcc2
29867 builtin and then its argument prototype would still apply. */
29868char $ac_func ();
29869/* The GNU C library defines this for functions which it implements
29870 to always fail with ENOSYS. Some functions are actually named
29871 something starting with __ and the normal name is an alias. */
29872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29873choke me
29874#else
29875char (*f) () = $ac_func;
29876#endif
29877#ifdef __cplusplus
29878}
29879#endif
29880
29881int
29882main ()
29883{
29884return f != $ac_func;
29885 ;
29886 return 0;
29887}
29888_ACEOF
29889rm -f conftest.$ac_objext conftest$ac_exeext
29890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29891 (eval $ac_link) 2>conftest.er1
a848cd7e 29892 ac_status=$?
ac1cb8d3
VS
29893 grep -v '^ *+' conftest.er1 >conftest.err
29894 rm -f conftest.er1
29895 cat conftest.err >&5
a848cd7e
SC
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); } &&
c228d3a4
RN
29898 { ac_try='test -z "$ac_c_werror_flag"
29899 || test ! -s conftest.err'
ac1cb8d3
VS
29900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901 (eval $ac_try) 2>&5
29902 ac_status=$?
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; } &&
29905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907 (eval $ac_try) 2>&5
29908 ac_status=$?
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; }; then
29911 eval "$as_ac_var=yes"
29912else
29913 echo "$as_me: failed program was:" >&5
29914sed 's/^/| /' conftest.$ac_ext >&5
29915
29916eval "$as_ac_var=no"
29917fi
ac1cb8d3
VS
29918rm -f conftest.err conftest.$ac_objext \
29919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29920fi
29921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29923if test `eval echo '${'$as_ac_var'}'` = yes; then
29924 cat >>confdefs.h <<_ACEOF
29925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29926_ACEOF
29927 break
29928fi
29929done
29930
29931
29932echo "$as_me:$LINENO: checking for statfs" >&5
29933echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29934if test "${wx_cv_func_statfs+set}" = set; then
29935 echo $ECHO_N "(cached) $ECHO_C" >&6
29936else
29937 cat >conftest.$ac_ext <<_ACEOF
29938/* confdefs.h. */
29939_ACEOF
29940cat confdefs.h >>conftest.$ac_ext
29941cat >>conftest.$ac_ext <<_ACEOF
29942/* end confdefs.h. */
29943
29944 #if defined(__BSD__)
29945 #include <sys/param.h>
29946 #include <sys/mount.h>
29947 #else
29948 #include <sys/vfs.h>
29949 #endif
29950
29951int
29952main ()
29953{
29954
29955 long l;
29956 struct statfs fs;
29957 statfs("/", &fs);
29958 l = fs.f_bsize;
29959 l += fs.f_blocks;
29960 l += fs.f_bavail;
29961
29962 ;
29963 return 0;
29964}
29965_ACEOF
29966rm -f conftest.$ac_objext
29967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29968 (eval $ac_compile) 2>conftest.er1
a848cd7e 29969 ac_status=$?
ac1cb8d3
VS
29970 grep -v '^ *+' conftest.er1 >conftest.err
29971 rm -f conftest.er1
29972 cat conftest.err >&5
a848cd7e
SC
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } &&
c228d3a4
RN
29975 { ac_try='test -z "$ac_c_werror_flag"
29976 || test ! -s conftest.err'
ac1cb8d3
VS
29977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978 (eval $ac_try) 2>&5
29979 ac_status=$?
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; } &&
29982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984 (eval $ac_try) 2>&5
29985 ac_status=$?
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; }; then
29988
29989 wx_cv_func_statfs=yes
29990
29991else
29992 echo "$as_me: failed program was:" >&5
29993sed 's/^/| /' conftest.$ac_ext >&5
29994
29995
29996 wx_cv_func_statfs=no
29997
29998
29999fi
ac1cb8d3 30000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30001
30002fi
30003echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30004echo "${ECHO_T}$wx_cv_func_statfs" >&6
30005
30006if test "$wx_cv_func_statfs" = "yes"; then
30007 wx_cv_type_statvfs_t="struct statfs"
30008 cat >>confdefs.h <<\_ACEOF
30009#define HAVE_STATFS 1
30010_ACEOF
30011
30012else
30013 echo "$as_me:$LINENO: checking for statvfs" >&5
30014echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30015if test "${wx_cv_func_statvfs+set}" = set; then
30016 echo $ECHO_N "(cached) $ECHO_C" >&6
30017else
30018 cat >conftest.$ac_ext <<_ACEOF
30019/* confdefs.h. */
30020_ACEOF
30021cat confdefs.h >>conftest.$ac_ext
30022cat >>conftest.$ac_ext <<_ACEOF
30023/* end confdefs.h. */
30024
30025 #include <stddef.h>
30026 #include <sys/statvfs.h>
30027
30028int
30029main ()
30030{
30031
30032 statvfs("/", NULL);
30033
30034 ;
30035 return 0;
30036}
30037_ACEOF
30038rm -f conftest.$ac_objext
30039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30040 (eval $ac_compile) 2>conftest.er1
a848cd7e 30041 ac_status=$?
ac1cb8d3
VS
30042 grep -v '^ *+' conftest.er1 >conftest.err
30043 rm -f conftest.er1
30044 cat conftest.err >&5
a848cd7e
SC
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); } &&
c228d3a4
RN
30047 { ac_try='test -z "$ac_c_werror_flag"
30048 || test ! -s conftest.err'
ac1cb8d3
VS
30049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; } &&
30054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 wx_cv_func_statvfs=yes
30061else
30062 echo "$as_me: failed program was:" >&5
30063sed 's/^/| /' conftest.$ac_ext >&5
30064
30065wx_cv_func_statvfs=no
30066
30067fi
ac1cb8d3 30068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30069
30070fi
30071echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30072echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30073
30074 if test "$wx_cv_func_statvfs" = "yes"; then
30075
30076
30077 ac_ext=cc
30078ac_cpp='$CXXCPP $CPPFLAGS'
30079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30082
30083
30084 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30085echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30086if test "${wx_cv_type_statvfs_t+set}" = set; then
30087 echo $ECHO_N "(cached) $ECHO_C" >&6
30088else
30089 cat >conftest.$ac_ext <<_ACEOF
30090/* confdefs.h. */
30091_ACEOF
30092cat confdefs.h >>conftest.$ac_ext
30093cat >>conftest.$ac_ext <<_ACEOF
30094/* end confdefs.h. */
30095
30096 #include <sys/statvfs.h>
30097
30098int
30099main ()
30100{
30101
30102 long l;
30103 statvfs_t fs;
30104 statvfs("/", &fs);
30105 l = fs.f_bsize;
30106 l += fs.f_blocks;
30107 l += fs.f_bavail;
30108
30109 ;
30110 return 0;
30111}
30112_ACEOF
30113rm -f conftest.$ac_objext
30114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30115 (eval $ac_compile) 2>conftest.er1
a848cd7e 30116 ac_status=$?
ac1cb8d3
VS
30117 grep -v '^ *+' conftest.er1 >conftest.err
30118 rm -f conftest.er1
30119 cat conftest.err >&5
a848cd7e
SC
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); } &&
c228d3a4
RN
30122 { ac_try='test -z "$ac_cxx_werror_flag"
30123 || test ! -s conftest.err'
ac1cb8d3
VS
30124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30125 (eval $ac_try) 2>&5
30126 ac_status=$?
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; } &&
30129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30131 (eval $ac_try) 2>&5
30132 ac_status=$?
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; }; then
30135 wx_cv_type_statvfs_t=statvfs_t
30136else
30137 echo "$as_me: failed program was:" >&5
30138sed 's/^/| /' conftest.$ac_ext >&5
30139
30140
30141 cat >conftest.$ac_ext <<_ACEOF
30142/* confdefs.h. */
30143_ACEOF
30144cat confdefs.h >>conftest.$ac_ext
30145cat >>conftest.$ac_ext <<_ACEOF
30146/* end confdefs.h. */
30147
30148 #include <sys/statvfs.h>
30149
30150int
30151main ()
30152{
30153
30154 long l;
30155 struct statvfs fs;
30156 statvfs("/", &fs);
30157 l = fs.f_bsize;
30158 l += fs.f_blocks;
30159 l += fs.f_bavail;
30160
30161 ;
30162 return 0;
30163}
30164_ACEOF
30165rm -f conftest.$ac_objext
30166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30167 (eval $ac_compile) 2>conftest.er1
a848cd7e 30168 ac_status=$?
ac1cb8d3
VS
30169 grep -v '^ *+' conftest.er1 >conftest.err
30170 rm -f conftest.er1
30171 cat conftest.err >&5
a848cd7e
SC
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
c228d3a4
RN
30174 { ac_try='test -z "$ac_cxx_werror_flag"
30175 || test ! -s conftest.err'
ac1cb8d3
VS
30176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177 (eval $ac_try) 2>&5
30178 ac_status=$?
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); }; } &&
30181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30183 (eval $ac_try) 2>&5
30184 ac_status=$?
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); }; }; then
30187 wx_cv_type_statvfs_t="struct statvfs"
30188else
30189 echo "$as_me: failed program was:" >&5
30190sed 's/^/| /' conftest.$ac_ext >&5
30191
30192wx_cv_type_statvfs_t="unknown"
30193
30194fi
ac1cb8d3 30195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30196
30197
30198fi
ac1cb8d3 30199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30200
30201fi
30202echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30203echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30204
30205 ac_ext=c
30206ac_cpp='$CPP $CPPFLAGS'
30207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30209ac_compiler_gnu=$ac_cv_c_compiler_gnu
30210
30211
30212 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30213 cat >>confdefs.h <<\_ACEOF
30214#define HAVE_STATVFS 1
30215_ACEOF
30216
30217 fi
30218 else
30219 wx_cv_type_statvfs_t="unknown"
30220 fi
30221fi
30222
30223if test "$wx_cv_type_statvfs_t" != "unknown"; then
30224 cat >>confdefs.h <<_ACEOF
30225#define WX_STATFS_T $wx_cv_type_statvfs_t
30226_ACEOF
30227
30228else
30229 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30230echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30231fi
30232
30233if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30234
30235
30236for ac_func in fcntl flock
30237do
30238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30239echo "$as_me:$LINENO: checking for $ac_func" >&5
30240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30241if eval "test \"\${$as_ac_var+set}\" = set"; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30243else
30244 cat >conftest.$ac_ext <<_ACEOF
30245/* confdefs.h. */
30246_ACEOF
30247cat confdefs.h >>conftest.$ac_ext
30248cat >>conftest.$ac_ext <<_ACEOF
30249/* end confdefs.h. */
ac1cb8d3
VS
30250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30252#define $ac_func innocuous_$ac_func
30253
a848cd7e
SC
30254/* System header to define __stub macros and hopefully few prototypes,
30255 which can conflict with char $ac_func (); below.
30256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30257 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30258
a848cd7e
SC
30259#ifdef __STDC__
30260# include <limits.h>
30261#else
30262# include <assert.h>
30263#endif
ac1cb8d3
VS
30264
30265#undef $ac_func
30266
a848cd7e
SC
30267/* Override any gcc2 internal prototype to avoid an error. */
30268#ifdef __cplusplus
30269extern "C"
30270{
30271#endif
30272/* We use char because int might match the return type of a gcc2
30273 builtin and then its argument prototype would still apply. */
30274char $ac_func ();
30275/* The GNU C library defines this for functions which it implements
30276 to always fail with ENOSYS. Some functions are actually named
30277 something starting with __ and the normal name is an alias. */
30278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30279choke me
30280#else
30281char (*f) () = $ac_func;
30282#endif
30283#ifdef __cplusplus
30284}
30285#endif
30286
30287int
30288main ()
30289{
30290return f != $ac_func;
30291 ;
30292 return 0;
30293}
30294_ACEOF
30295rm -f conftest.$ac_objext conftest$ac_exeext
30296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30297 (eval $ac_link) 2>conftest.er1
a848cd7e 30298 ac_status=$?
ac1cb8d3
VS
30299 grep -v '^ *+' conftest.er1 >conftest.err
30300 rm -f conftest.er1
30301 cat conftest.err >&5
a848cd7e
SC
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } &&
c228d3a4
RN
30304 { ac_try='test -z "$ac_c_werror_flag"
30305 || test ! -s conftest.err'
ac1cb8d3
VS
30306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30307 (eval $ac_try) 2>&5
30308 ac_status=$?
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; } &&
30311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30313 (eval $ac_try) 2>&5
30314 ac_status=$?
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; }; then
30317 eval "$as_ac_var=yes"
30318else
30319 echo "$as_me: failed program was:" >&5
30320sed 's/^/| /' conftest.$ac_ext >&5
30321
30322eval "$as_ac_var=no"
30323fi
ac1cb8d3
VS
30324rm -f conftest.err conftest.$ac_objext \
30325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30326fi
30327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30329if test `eval echo '${'$as_ac_var'}'` = yes; then
30330 cat >>confdefs.h <<_ACEOF
30331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30332_ACEOF
30333 break
30334fi
30335done
30336
30337
30338 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30339 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30340echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30341 wxUSE_SNGLINST_CHECKER=no
30342 fi
30343fi
30344
30345
30346for ac_func in timegm
30347do
30348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30349echo "$as_me:$LINENO: checking for $ac_func" >&5
30350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30351if eval "test \"\${$as_ac_var+set}\" = set"; then
30352 echo $ECHO_N "(cached) $ECHO_C" >&6
30353else
30354 cat >conftest.$ac_ext <<_ACEOF
30355/* confdefs.h. */
30356_ACEOF
30357cat confdefs.h >>conftest.$ac_ext
30358cat >>conftest.$ac_ext <<_ACEOF
30359/* end confdefs.h. */
ac1cb8d3
VS
30360/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30362#define $ac_func innocuous_$ac_func
30363
a848cd7e
SC
30364/* System header to define __stub macros and hopefully few prototypes,
30365 which can conflict with char $ac_func (); below.
30366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30367 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30368
a848cd7e
SC
30369#ifdef __STDC__
30370# include <limits.h>
30371#else
30372# include <assert.h>
30373#endif
ac1cb8d3
VS
30374
30375#undef $ac_func
30376
a848cd7e
SC
30377/* Override any gcc2 internal prototype to avoid an error. */
30378#ifdef __cplusplus
30379extern "C"
30380{
30381#endif
30382/* We use char because int might match the return type of a gcc2
30383 builtin and then its argument prototype would still apply. */
30384char $ac_func ();
30385/* The GNU C library defines this for functions which it implements
30386 to always fail with ENOSYS. Some functions are actually named
30387 something starting with __ and the normal name is an alias. */
30388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30389choke me
30390#else
30391char (*f) () = $ac_func;
30392#endif
30393#ifdef __cplusplus
30394}
30395#endif
30396
30397int
30398main ()
30399{
30400return f != $ac_func;
30401 ;
30402 return 0;
30403}
30404_ACEOF
30405rm -f conftest.$ac_objext conftest$ac_exeext
30406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30407 (eval $ac_link) 2>conftest.er1
a848cd7e 30408 ac_status=$?
ac1cb8d3
VS
30409 grep -v '^ *+' conftest.er1 >conftest.err
30410 rm -f conftest.er1
30411 cat conftest.err >&5
a848cd7e
SC
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); } &&
c228d3a4
RN
30414 { ac_try='test -z "$ac_c_werror_flag"
30415 || test ! -s conftest.err'
ac1cb8d3
VS
30416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30417 (eval $ac_try) 2>&5
30418 ac_status=$?
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); }; } &&
30421 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30423 (eval $ac_try) 2>&5
30424 ac_status=$?
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); }; }; then
30427 eval "$as_ac_var=yes"
30428else
30429 echo "$as_me: failed program was:" >&5
30430sed 's/^/| /' conftest.$ac_ext >&5
30431
30432eval "$as_ac_var=no"
30433fi
ac1cb8d3
VS
30434rm -f conftest.err conftest.$ac_objext \
30435 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30436fi
30437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30438echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30439if test `eval echo '${'$as_ac_var'}'` = yes; then
30440 cat >>confdefs.h <<_ACEOF
30441#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30442_ACEOF
30443
30444fi
30445done
30446
30447
30448
30449
30450for ac_func in putenv setenv
30451do
30452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30453echo "$as_me:$LINENO: checking for $ac_func" >&5
30454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30455if eval "test \"\${$as_ac_var+set}\" = set"; then
30456 echo $ECHO_N "(cached) $ECHO_C" >&6
30457else
30458 cat >conftest.$ac_ext <<_ACEOF
30459/* confdefs.h. */
30460_ACEOF
30461cat confdefs.h >>conftest.$ac_ext
30462cat >>conftest.$ac_ext <<_ACEOF
30463/* end confdefs.h. */
ac1cb8d3
VS
30464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30466#define $ac_func innocuous_$ac_func
30467
a848cd7e
SC
30468/* System header to define __stub macros and hopefully few prototypes,
30469 which can conflict with char $ac_func (); below.
30470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30471 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30472
a848cd7e
SC
30473#ifdef __STDC__
30474# include <limits.h>
30475#else
30476# include <assert.h>
30477#endif
ac1cb8d3
VS
30478
30479#undef $ac_func
30480
a848cd7e
SC
30481/* Override any gcc2 internal prototype to avoid an error. */
30482#ifdef __cplusplus
30483extern "C"
30484{
30485#endif
30486/* We use char because int might match the return type of a gcc2
30487 builtin and then its argument prototype would still apply. */
30488char $ac_func ();
30489/* The GNU C library defines this for functions which it implements
30490 to always fail with ENOSYS. Some functions are actually named
30491 something starting with __ and the normal name is an alias. */
30492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30493choke me
30494#else
30495char (*f) () = $ac_func;
30496#endif
30497#ifdef __cplusplus
30498}
30499#endif
30500
30501int
30502main ()
30503{
30504return f != $ac_func;
30505 ;
30506 return 0;
30507}
30508_ACEOF
30509rm -f conftest.$ac_objext conftest$ac_exeext
30510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30511 (eval $ac_link) 2>conftest.er1
a848cd7e 30512 ac_status=$?
ac1cb8d3
VS
30513 grep -v '^ *+' conftest.er1 >conftest.err
30514 rm -f conftest.er1
30515 cat conftest.err >&5
a848cd7e
SC
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); } &&
c228d3a4
RN
30518 { ac_try='test -z "$ac_c_werror_flag"
30519 || test ! -s conftest.err'
ac1cb8d3
VS
30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521 (eval $ac_try) 2>&5
30522 ac_status=$?
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; } &&
30525 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30527 (eval $ac_try) 2>&5
30528 ac_status=$?
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; }; then
30531 eval "$as_ac_var=yes"
30532else
30533 echo "$as_me: failed program was:" >&5
30534sed 's/^/| /' conftest.$ac_ext >&5
30535
30536eval "$as_ac_var=no"
30537fi
ac1cb8d3
VS
30538rm -f conftest.err conftest.$ac_objext \
30539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30540fi
30541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30542echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30543if test `eval echo '${'$as_ac_var'}'` = yes; then
30544 cat >>confdefs.h <<_ACEOF
30545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30546_ACEOF
30547 break
30548fi
30549done
30550
30551
30552HAVE_SOME_SLEEP_FUNC=0
30553if test "$USE_BEOS" = 1; then
30554 cat >>confdefs.h <<\_ACEOF
30555#define HAVE_SLEEP 1
30556_ACEOF
30557
30558 HAVE_SOME_SLEEP_FUNC=1
30559fi
30560
30561if test "$USE_DARWIN" = 1; then
30562 cat >>confdefs.h <<\_ACEOF
30563#define HAVE_USLEEP 1
30564_ACEOF
30565
30566 HAVE_SOME_SLEEP_FUNC=1
30567fi
30568
30569if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30570 POSIX4_LINK=
30571
30572for ac_func in nanosleep
30573do
30574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30575echo "$as_me:$LINENO: checking for $ac_func" >&5
30576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30577if eval "test \"\${$as_ac_var+set}\" = set"; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30579else
30580 cat >conftest.$ac_ext <<_ACEOF
30581/* confdefs.h. */
30582_ACEOF
30583cat confdefs.h >>conftest.$ac_ext
30584cat >>conftest.$ac_ext <<_ACEOF
30585/* end confdefs.h. */
ac1cb8d3
VS
30586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30588#define $ac_func innocuous_$ac_func
30589
a848cd7e
SC
30590/* System header to define __stub macros and hopefully few prototypes,
30591 which can conflict with char $ac_func (); below.
30592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30593 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30594
a848cd7e
SC
30595#ifdef __STDC__
30596# include <limits.h>
30597#else
30598# include <assert.h>
30599#endif
ac1cb8d3
VS
30600
30601#undef $ac_func
30602
a848cd7e
SC
30603/* Override any gcc2 internal prototype to avoid an error. */
30604#ifdef __cplusplus
30605extern "C"
30606{
30607#endif
30608/* We use char because int might match the return type of a gcc2
30609 builtin and then its argument prototype would still apply. */
30610char $ac_func ();
30611/* The GNU C library defines this for functions which it implements
30612 to always fail with ENOSYS. Some functions are actually named
30613 something starting with __ and the normal name is an alias. */
30614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30615choke me
30616#else
30617char (*f) () = $ac_func;
30618#endif
30619#ifdef __cplusplus
30620}
30621#endif
30622
30623int
30624main ()
30625{
30626return f != $ac_func;
30627 ;
30628 return 0;
30629}
30630_ACEOF
30631rm -f conftest.$ac_objext conftest$ac_exeext
30632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30633 (eval $ac_link) 2>conftest.er1
a848cd7e 30634 ac_status=$?
ac1cb8d3
VS
30635 grep -v '^ *+' conftest.er1 >conftest.err
30636 rm -f conftest.er1
30637 cat conftest.err >&5
a848cd7e
SC
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); } &&
c228d3a4
RN
30640 { ac_try='test -z "$ac_c_werror_flag"
30641 || test ! -s conftest.err'
ac1cb8d3
VS
30642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30643 (eval $ac_try) 2>&5
30644 ac_status=$?
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); }; } &&
30647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649 (eval $ac_try) 2>&5
30650 ac_status=$?
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); }; }; then
30653 eval "$as_ac_var=yes"
30654else
30655 echo "$as_me: failed program was:" >&5
30656sed 's/^/| /' conftest.$ac_ext >&5
30657
30658eval "$as_ac_var=no"
30659fi
ac1cb8d3
VS
30660rm -f conftest.err conftest.$ac_objext \
30661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30662fi
30663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30665if test `eval echo '${'$as_ac_var'}'` = yes; then
30666 cat >>confdefs.h <<_ACEOF
30667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30668_ACEOF
30669 cat >>confdefs.h <<\_ACEOF
30670#define HAVE_NANOSLEEP 1
30671_ACEOF
30672
30673else
30674
30675 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30676echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30677if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30678 echo $ECHO_N "(cached) $ECHO_C" >&6
30679else
30680 ac_check_lib_save_LIBS=$LIBS
30681LIBS="-lposix4 $LIBS"
30682cat >conftest.$ac_ext <<_ACEOF
30683/* confdefs.h. */
30684_ACEOF
30685cat confdefs.h >>conftest.$ac_ext
30686cat >>conftest.$ac_ext <<_ACEOF
30687/* end confdefs.h. */
30688
30689/* Override any gcc2 internal prototype to avoid an error. */
30690#ifdef __cplusplus
30691extern "C"
30692#endif
30693/* We use char because int might match the return type of a gcc2
30694 builtin and then its argument prototype would still apply. */
30695char nanosleep ();
30696int
30697main ()
30698{
30699nanosleep ();
30700 ;
30701 return 0;
30702}
30703_ACEOF
30704rm -f conftest.$ac_objext conftest$ac_exeext
30705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30706 (eval $ac_link) 2>conftest.er1
a848cd7e 30707 ac_status=$?
ac1cb8d3
VS
30708 grep -v '^ *+' conftest.er1 >conftest.err
30709 rm -f conftest.er1
30710 cat conftest.err >&5
a848cd7e
SC
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } &&
c228d3a4
RN
30713 { ac_try='test -z "$ac_c_werror_flag"
30714 || test ! -s conftest.err'
ac1cb8d3
VS
30715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30716 (eval $ac_try) 2>&5
30717 ac_status=$?
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; } &&
30720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30722 (eval $ac_try) 2>&5
30723 ac_status=$?
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; }; then
30726 ac_cv_lib_posix4_nanosleep=yes
30727else
30728 echo "$as_me: failed program was:" >&5
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
30731ac_cv_lib_posix4_nanosleep=no
30732fi
ac1cb8d3
VS
30733rm -f conftest.err conftest.$ac_objext \
30734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30735LIBS=$ac_check_lib_save_LIBS
30736fi
30737echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30738echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30739if test $ac_cv_lib_posix4_nanosleep = yes; then
30740
30741 cat >>confdefs.h <<\_ACEOF
30742#define HAVE_NANOSLEEP 1
30743_ACEOF
30744
30745 POSIX4_LINK=" -lposix4"
30746
30747else
30748
30749
30750for ac_func in usleep
30751do
30752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30753echo "$as_me:$LINENO: checking for $ac_func" >&5
30754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30755if eval "test \"\${$as_ac_var+set}\" = set"; then
30756 echo $ECHO_N "(cached) $ECHO_C" >&6
30757else
30758 cat >conftest.$ac_ext <<_ACEOF
30759/* confdefs.h. */
30760_ACEOF
30761cat confdefs.h >>conftest.$ac_ext
30762cat >>conftest.$ac_ext <<_ACEOF
30763/* end confdefs.h. */
ac1cb8d3
VS
30764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30766#define $ac_func innocuous_$ac_func
30767
a848cd7e
SC
30768/* System header to define __stub macros and hopefully few prototypes,
30769 which can conflict with char $ac_func (); below.
30770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30771 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30772
a848cd7e
SC
30773#ifdef __STDC__
30774# include <limits.h>
30775#else
30776# include <assert.h>
30777#endif
ac1cb8d3
VS
30778
30779#undef $ac_func
30780
a848cd7e
SC
30781/* Override any gcc2 internal prototype to avoid an error. */
30782#ifdef __cplusplus
30783extern "C"
30784{
30785#endif
30786/* We use char because int might match the return type of a gcc2
30787 builtin and then its argument prototype would still apply. */
30788char $ac_func ();
30789/* The GNU C library defines this for functions which it implements
30790 to always fail with ENOSYS. Some functions are actually named
30791 something starting with __ and the normal name is an alias. */
30792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30793choke me
30794#else
30795char (*f) () = $ac_func;
30796#endif
30797#ifdef __cplusplus
30798}
30799#endif
30800
30801int
30802main ()
30803{
30804return f != $ac_func;
30805 ;
30806 return 0;
30807}
30808_ACEOF
30809rm -f conftest.$ac_objext conftest$ac_exeext
30810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30811 (eval $ac_link) 2>conftest.er1
a848cd7e 30812 ac_status=$?
ac1cb8d3
VS
30813 grep -v '^ *+' conftest.er1 >conftest.err
30814 rm -f conftest.er1
30815 cat conftest.err >&5
a848cd7e
SC
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } &&
c228d3a4
RN
30818 { ac_try='test -z "$ac_c_werror_flag"
30819 || test ! -s conftest.err'
ac1cb8d3
VS
30820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30821 (eval $ac_try) 2>&5
30822 ac_status=$?
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); }; } &&
30825 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827 (eval $ac_try) 2>&5
30828 ac_status=$?
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
30831 eval "$as_ac_var=yes"
30832else
30833 echo "$as_me: failed program was:" >&5
30834sed 's/^/| /' conftest.$ac_ext >&5
30835
30836eval "$as_ac_var=no"
30837fi
ac1cb8d3
VS
30838rm -f conftest.err conftest.$ac_objext \
30839 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30840fi
30841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30843if test `eval echo '${'$as_ac_var'}'` = yes; then
30844 cat >>confdefs.h <<_ACEOF
30845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30846_ACEOF
30847 cat >>confdefs.h <<\_ACEOF
30848#define HAVE_USLEEP 1
30849_ACEOF
30850
30851else
30852 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30853echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30854
30855fi
30856done
30857
30858
30859
30860fi
30861
30862
30863
30864fi
30865done
30866
30867fi
30868
30869
30870
30871for ac_func in uname gethostname
30872do
30873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30874echo "$as_me:$LINENO: checking for $ac_func" >&5
30875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30876if eval "test \"\${$as_ac_var+set}\" = set"; then
30877 echo $ECHO_N "(cached) $ECHO_C" >&6
30878else
30879 cat >conftest.$ac_ext <<_ACEOF
30880/* confdefs.h. */
30881_ACEOF
30882cat confdefs.h >>conftest.$ac_ext
30883cat >>conftest.$ac_ext <<_ACEOF
30884/* end confdefs.h. */
ac1cb8d3
VS
30885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30887#define $ac_func innocuous_$ac_func
30888
a848cd7e
SC
30889/* System header to define __stub macros and hopefully few prototypes,
30890 which can conflict with char $ac_func (); below.
30891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30893
a848cd7e
SC
30894#ifdef __STDC__
30895# include <limits.h>
30896#else
30897# include <assert.h>
30898#endif
ac1cb8d3
VS
30899
30900#undef $ac_func
30901
a848cd7e
SC
30902/* Override any gcc2 internal prototype to avoid an error. */
30903#ifdef __cplusplus
30904extern "C"
30905{
30906#endif
30907/* We use char because int might match the return type of a gcc2
30908 builtin and then its argument prototype would still apply. */
30909char $ac_func ();
30910/* The GNU C library defines this for functions which it implements
30911 to always fail with ENOSYS. Some functions are actually named
30912 something starting with __ and the normal name is an alias. */
30913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30914choke me
30915#else
30916char (*f) () = $ac_func;
30917#endif
30918#ifdef __cplusplus
30919}
30920#endif
30921
30922int
30923main ()
30924{
30925return f != $ac_func;
30926 ;
30927 return 0;
30928}
30929_ACEOF
30930rm -f conftest.$ac_objext conftest$ac_exeext
30931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30932 (eval $ac_link) 2>conftest.er1
a848cd7e 30933 ac_status=$?
ac1cb8d3
VS
30934 grep -v '^ *+' conftest.er1 >conftest.err
30935 rm -f conftest.er1
30936 cat conftest.err >&5
a848cd7e
SC
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); } &&
c228d3a4
RN
30939 { ac_try='test -z "$ac_c_werror_flag"
30940 || test ! -s conftest.err'
ac1cb8d3
VS
30941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942 (eval $ac_try) 2>&5
30943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; } &&
30946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30948 (eval $ac_try) 2>&5
30949 ac_status=$?
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; }; then
30952 eval "$as_ac_var=yes"
30953else
30954 echo "$as_me: failed program was:" >&5
30955sed 's/^/| /' conftest.$ac_ext >&5
30956
30957eval "$as_ac_var=no"
30958fi
ac1cb8d3
VS
30959rm -f conftest.err conftest.$ac_objext \
30960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30961fi
30962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30964if test `eval echo '${'$as_ac_var'}'` = yes; then
30965 cat >>confdefs.h <<_ACEOF
30966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30967_ACEOF
30968 break
30969fi
30970done
30971
30972
30973
30974
30975ac_ext=cc
30976ac_cpp='$CXXCPP $CPPFLAGS'
30977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30980
30981
30982
30983for ac_func in strtok_r
30984do
30985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30986echo "$as_me:$LINENO: checking for $ac_func" >&5
30987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30988if eval "test \"\${$as_ac_var+set}\" = set"; then
30989 echo $ECHO_N "(cached) $ECHO_C" >&6
30990else
30991 cat >conftest.$ac_ext <<_ACEOF
30992/* confdefs.h. */
30993_ACEOF
30994cat confdefs.h >>conftest.$ac_ext
30995cat >>conftest.$ac_ext <<_ACEOF
30996/* end confdefs.h. */
ac1cb8d3
VS
30997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30999#define $ac_func innocuous_$ac_func
31000
a848cd7e
SC
31001/* System header to define __stub macros and hopefully few prototypes,
31002 which can conflict with char $ac_func (); below.
31003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31004 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31005
a848cd7e
SC
31006#ifdef __STDC__
31007# include <limits.h>
31008#else
31009# include <assert.h>
31010#endif
ac1cb8d3
VS
31011
31012#undef $ac_func
31013
a848cd7e
SC
31014/* Override any gcc2 internal prototype to avoid an error. */
31015#ifdef __cplusplus
31016extern "C"
31017{
31018#endif
31019/* We use char because int might match the return type of a gcc2
31020 builtin and then its argument prototype would still apply. */
31021char $ac_func ();
31022/* The GNU C library defines this for functions which it implements
31023 to always fail with ENOSYS. Some functions are actually named
31024 something starting with __ and the normal name is an alias. */
31025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31026choke me
31027#else
31028char (*f) () = $ac_func;
31029#endif
31030#ifdef __cplusplus
31031}
31032#endif
31033
31034int
31035main ()
31036{
31037return f != $ac_func;
31038 ;
31039 return 0;
31040}
31041_ACEOF
31042rm -f conftest.$ac_objext conftest$ac_exeext
31043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31044 (eval $ac_link) 2>conftest.er1
a848cd7e 31045 ac_status=$?
ac1cb8d3
VS
31046 grep -v '^ *+' conftest.er1 >conftest.err
31047 rm -f conftest.er1
31048 cat conftest.err >&5
a848cd7e
SC
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); } &&
c228d3a4
RN
31051 { ac_try='test -z "$ac_cxx_werror_flag"
31052 || test ! -s conftest.err'
ac1cb8d3
VS
31053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054 (eval $ac_try) 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060 (eval $ac_try) 2>&5
31061 ac_status=$?
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
31064 eval "$as_ac_var=yes"
31065else
31066 echo "$as_me: failed program was:" >&5
31067sed 's/^/| /' conftest.$ac_ext >&5
31068
31069eval "$as_ac_var=no"
31070fi
ac1cb8d3
VS
31071rm -f conftest.err conftest.$ac_objext \
31072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31073fi
31074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31076if test `eval echo '${'$as_ac_var'}'` = yes; then
31077 cat >>confdefs.h <<_ACEOF
31078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31079_ACEOF
31080
31081fi
31082done
31083
31084
31085ac_ext=c
31086ac_cpp='$CPP $CPPFLAGS'
31087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31089ac_compiler_gnu=$ac_cv_c_compiler_gnu
31090
31091
31092INET_LINK=
31093
31094for ac_func in inet_addr
31095do
31096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31097echo "$as_me:$LINENO: checking for $ac_func" >&5
31098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31099if eval "test \"\${$as_ac_var+set}\" = set"; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31101else
31102 cat >conftest.$ac_ext <<_ACEOF
31103/* confdefs.h. */
31104_ACEOF
31105cat confdefs.h >>conftest.$ac_ext
31106cat >>conftest.$ac_ext <<_ACEOF
31107/* end confdefs.h. */
ac1cb8d3
VS
31108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31110#define $ac_func innocuous_$ac_func
31111
a848cd7e
SC
31112/* System header to define __stub macros and hopefully few prototypes,
31113 which can conflict with char $ac_func (); below.
31114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31115 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31116
a848cd7e
SC
31117#ifdef __STDC__
31118# include <limits.h>
31119#else
31120# include <assert.h>
31121#endif
ac1cb8d3
VS
31122
31123#undef $ac_func
31124
a848cd7e
SC
31125/* Override any gcc2 internal prototype to avoid an error. */
31126#ifdef __cplusplus
31127extern "C"
31128{
31129#endif
31130/* We use char because int might match the return type of a gcc2
31131 builtin and then its argument prototype would still apply. */
31132char $ac_func ();
31133/* The GNU C library defines this for functions which it implements
31134 to always fail with ENOSYS. Some functions are actually named
31135 something starting with __ and the normal name is an alias. */
31136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31137choke me
31138#else
31139char (*f) () = $ac_func;
31140#endif
31141#ifdef __cplusplus
31142}
31143#endif
31144
31145int
31146main ()
31147{
31148return f != $ac_func;
31149 ;
31150 return 0;
31151}
31152_ACEOF
31153rm -f conftest.$ac_objext conftest$ac_exeext
31154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31155 (eval $ac_link) 2>conftest.er1
a848cd7e 31156 ac_status=$?
ac1cb8d3
VS
31157 grep -v '^ *+' conftest.er1 >conftest.err
31158 rm -f conftest.er1
31159 cat conftest.err >&5
a848cd7e
SC
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); } &&
c228d3a4
RN
31162 { ac_try='test -z "$ac_c_werror_flag"
31163 || test ! -s conftest.err'
ac1cb8d3
VS
31164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31165 (eval $ac_try) 2>&5
31166 ac_status=$?
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); }; } &&
31169 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31171 (eval $ac_try) 2>&5
31172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; }; then
31175 eval "$as_ac_var=yes"
31176else
31177 echo "$as_me: failed program was:" >&5
31178sed 's/^/| /' conftest.$ac_ext >&5
31179
31180eval "$as_ac_var=no"
31181fi
ac1cb8d3
VS
31182rm -f conftest.err conftest.$ac_objext \
31183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31184fi
31185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31187if test `eval echo '${'$as_ac_var'}'` = yes; then
31188 cat >>confdefs.h <<_ACEOF
31189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31190_ACEOF
31191 cat >>confdefs.h <<\_ACEOF
31192#define HAVE_INET_ADDR 1
31193_ACEOF
31194
31195else
31196
31197 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31198echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31199if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31200 echo $ECHO_N "(cached) $ECHO_C" >&6
31201else
31202 ac_check_lib_save_LIBS=$LIBS
31203LIBS="-lnsl $LIBS"
31204cat >conftest.$ac_ext <<_ACEOF
31205/* confdefs.h. */
31206_ACEOF
31207cat confdefs.h >>conftest.$ac_ext
31208cat >>conftest.$ac_ext <<_ACEOF
31209/* end confdefs.h. */
31210
31211/* Override any gcc2 internal prototype to avoid an error. */
31212#ifdef __cplusplus
31213extern "C"
31214#endif
31215/* We use char because int might match the return type of a gcc2
31216 builtin and then its argument prototype would still apply. */
31217char inet_addr ();
31218int
31219main ()
31220{
31221inet_addr ();
31222 ;
31223 return 0;
31224}
31225_ACEOF
31226rm -f conftest.$ac_objext conftest$ac_exeext
31227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31228 (eval $ac_link) 2>conftest.er1
a848cd7e 31229 ac_status=$?
ac1cb8d3
VS
31230 grep -v '^ *+' conftest.er1 >conftest.err
31231 rm -f conftest.er1
31232 cat conftest.err >&5
a848cd7e
SC
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); } &&
c228d3a4
RN
31235 { ac_try='test -z "$ac_c_werror_flag"
31236 || test ! -s conftest.err'
ac1cb8d3
VS
31237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31238 (eval $ac_try) 2>&5
31239 ac_status=$?
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; } &&
31242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31244 (eval $ac_try) 2>&5
31245 ac_status=$?
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); }; }; then
31248 ac_cv_lib_nsl_inet_addr=yes
31249else
31250 echo "$as_me: failed program was:" >&5
31251sed 's/^/| /' conftest.$ac_ext >&5
31252
31253ac_cv_lib_nsl_inet_addr=no
31254fi
ac1cb8d3
VS
31255rm -f conftest.err conftest.$ac_objext \
31256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31257LIBS=$ac_check_lib_save_LIBS
31258fi
31259echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31260echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31261if test $ac_cv_lib_nsl_inet_addr = yes; then
31262 INET_LINK="nsl"
31263else
31264
31265 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31266echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31267if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31268 echo $ECHO_N "(cached) $ECHO_C" >&6
31269else
31270 ac_check_lib_save_LIBS=$LIBS
31271LIBS="-lresolv $LIBS"
31272cat >conftest.$ac_ext <<_ACEOF
31273/* confdefs.h. */
31274_ACEOF
31275cat confdefs.h >>conftest.$ac_ext
31276cat >>conftest.$ac_ext <<_ACEOF
31277/* end confdefs.h. */
31278
31279/* Override any gcc2 internal prototype to avoid an error. */
31280#ifdef __cplusplus
31281extern "C"
31282#endif
31283/* We use char because int might match the return type of a gcc2
31284 builtin and then its argument prototype would still apply. */
31285char inet_addr ();
31286int
31287main ()
31288{
31289inet_addr ();
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); } &&
c228d3a4
RN
31303 { ac_try='test -z "$ac_c_werror_flag"
31304 || test ! -s conftest.err'
ac1cb8d3
VS
31305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31306 (eval $ac_try) 2>&5
31307 ac_status=$?
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); }; } &&
31310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31312 (eval $ac_try) 2>&5
31313 ac_status=$?
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; }; then
31316 ac_cv_lib_resolv_inet_addr=yes
31317else
31318 echo "$as_me: failed program was:" >&5
31319sed 's/^/| /' conftest.$ac_ext >&5
31320
31321ac_cv_lib_resolv_inet_addr=no
31322fi
ac1cb8d3
VS
31323rm -f conftest.err conftest.$ac_objext \
31324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31325LIBS=$ac_check_lib_save_LIBS
31326fi
31327echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31328echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31329if test $ac_cv_lib_resolv_inet_addr = yes; then
31330 INET_LINK="resolv"
31331else
31332
31333 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31334echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31335if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31336 echo $ECHO_N "(cached) $ECHO_C" >&6
31337else
31338 ac_check_lib_save_LIBS=$LIBS
31339LIBS="-lsocket $LIBS"
31340cat >conftest.$ac_ext <<_ACEOF
31341/* confdefs.h. */
31342_ACEOF
31343cat confdefs.h >>conftest.$ac_ext
31344cat >>conftest.$ac_ext <<_ACEOF
31345/* end confdefs.h. */
31346
31347/* Override any gcc2 internal prototype to avoid an error. */
31348#ifdef __cplusplus
31349extern "C"
31350#endif
31351/* We use char because int might match the return type of a gcc2
31352 builtin and then its argument prototype would still apply. */
31353char inet_addr ();
31354int
31355main ()
31356{
31357inet_addr ();
31358 ;
31359 return 0;
31360}
31361_ACEOF
31362rm -f conftest.$ac_objext conftest$ac_exeext
31363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31364 (eval $ac_link) 2>conftest.er1
a848cd7e 31365 ac_status=$?
ac1cb8d3
VS
31366 grep -v '^ *+' conftest.er1 >conftest.err
31367 rm -f conftest.er1
31368 cat conftest.err >&5
a848cd7e
SC
31369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370 (exit $ac_status); } &&
c228d3a4
RN
31371 { ac_try='test -z "$ac_c_werror_flag"
31372 || test ! -s conftest.err'
ac1cb8d3
VS
31373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31374 (eval $ac_try) 2>&5
31375 ac_status=$?
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; } &&
31378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380 (eval $ac_try) 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; }; then
31384 ac_cv_lib_socket_inet_addr=yes
31385else
31386 echo "$as_me: failed program was:" >&5
31387sed 's/^/| /' conftest.$ac_ext >&5
31388
31389ac_cv_lib_socket_inet_addr=no
31390fi
ac1cb8d3
VS
31391rm -f conftest.err conftest.$ac_objext \
31392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31393LIBS=$ac_check_lib_save_LIBS
31394fi
31395echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31396echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31397if test $ac_cv_lib_socket_inet_addr = yes; then
31398 INET_LINK="socket"
31399
31400fi
31401
31402
31403
31404fi
31405
31406
31407
31408fi
31409
31410
31411
31412fi
31413done
31414
31415
31416
31417for ac_func in inet_aton
31418do
31419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31420echo "$as_me:$LINENO: checking for $ac_func" >&5
31421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31422if eval "test \"\${$as_ac_var+set}\" = set"; then
31423 echo $ECHO_N "(cached) $ECHO_C" >&6
31424else
31425 cat >conftest.$ac_ext <<_ACEOF
31426/* confdefs.h. */
31427_ACEOF
31428cat confdefs.h >>conftest.$ac_ext
31429cat >>conftest.$ac_ext <<_ACEOF
31430/* end confdefs.h. */
ac1cb8d3
VS
31431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31433#define $ac_func innocuous_$ac_func
31434
a848cd7e
SC
31435/* System header to define __stub macros and hopefully few prototypes,
31436 which can conflict with char $ac_func (); below.
31437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31438 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31439
a848cd7e
SC
31440#ifdef __STDC__
31441# include <limits.h>
31442#else
31443# include <assert.h>
31444#endif
ac1cb8d3
VS
31445
31446#undef $ac_func
31447
a848cd7e
SC
31448/* Override any gcc2 internal prototype to avoid an error. */
31449#ifdef __cplusplus
31450extern "C"
31451{
31452#endif
31453/* We use char because int might match the return type of a gcc2
31454 builtin and then its argument prototype would still apply. */
31455char $ac_func ();
31456/* The GNU C library defines this for functions which it implements
31457 to always fail with ENOSYS. Some functions are actually named
31458 something starting with __ and the normal name is an alias. */
31459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31460choke me
31461#else
31462char (*f) () = $ac_func;
31463#endif
31464#ifdef __cplusplus
31465}
31466#endif
31467
31468int
31469main ()
31470{
31471return f != $ac_func;
31472 ;
31473 return 0;
31474}
31475_ACEOF
31476rm -f conftest.$ac_objext conftest$ac_exeext
31477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31478 (eval $ac_link) 2>conftest.er1
a848cd7e 31479 ac_status=$?
ac1cb8d3
VS
31480 grep -v '^ *+' conftest.er1 >conftest.err
31481 rm -f conftest.er1
31482 cat conftest.err >&5
a848cd7e
SC
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); } &&
c228d3a4
RN
31485 { ac_try='test -z "$ac_c_werror_flag"
31486 || test ! -s conftest.err'
ac1cb8d3
VS
31487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31488 (eval $ac_try) 2>&5
31489 ac_status=$?
31490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); }; } &&
31492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31494 (eval $ac_try) 2>&5
31495 ac_status=$?
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); }; }; then
31498 eval "$as_ac_var=yes"
31499else
31500 echo "$as_me: failed program was:" >&5
31501sed 's/^/| /' conftest.$ac_ext >&5
31502
31503eval "$as_ac_var=no"
31504fi
ac1cb8d3
VS
31505rm -f conftest.err conftest.$ac_objext \
31506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31507fi
31508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31510if test `eval echo '${'$as_ac_var'}'` = yes; then
31511 cat >>confdefs.h <<_ACEOF
31512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31513_ACEOF
31514 cat >>confdefs.h <<\_ACEOF
31515#define HAVE_INET_ATON 1
31516_ACEOF
31517
31518else
31519
31520 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31521echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31522echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31523if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31524 echo $ECHO_N "(cached) $ECHO_C" >&6
31525else
31526 ac_check_lib_save_LIBS=$LIBS
31527LIBS="-l$INET_LINK $LIBS"
31528cat >conftest.$ac_ext <<_ACEOF
31529/* confdefs.h. */
31530_ACEOF
31531cat confdefs.h >>conftest.$ac_ext
31532cat >>conftest.$ac_ext <<_ACEOF
31533/* end confdefs.h. */
31534
31535/* Override any gcc2 internal prototype to avoid an error. */
31536#ifdef __cplusplus
31537extern "C"
31538#endif
31539/* We use char because int might match the return type of a gcc2
31540 builtin and then its argument prototype would still apply. */
31541char inet_aton ();
31542int
31543main ()
31544{
31545inet_aton ();
31546 ;
31547 return 0;
31548}
31549_ACEOF
31550rm -f conftest.$ac_objext conftest$ac_exeext
31551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31552 (eval $ac_link) 2>conftest.er1
a848cd7e 31553 ac_status=$?
ac1cb8d3
VS
31554 grep -v '^ *+' conftest.er1 >conftest.err
31555 rm -f conftest.er1
31556 cat conftest.err >&5
a848cd7e
SC
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); } &&
c228d3a4
RN
31559 { ac_try='test -z "$ac_c_werror_flag"
31560 || test ! -s conftest.err'
ac1cb8d3
VS
31561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562 (eval $ac_try) 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; } &&
31566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31569 ac_status=$?
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; }; then
31572 eval "$as_ac_Lib=yes"
31573else
31574 echo "$as_me: failed program was:" >&5
31575sed 's/^/| /' conftest.$ac_ext >&5
31576
31577eval "$as_ac_Lib=no"
31578fi
ac1cb8d3
VS
31579rm -f conftest.err conftest.$ac_objext \
31580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31581LIBS=$ac_check_lib_save_LIBS
31582fi
31583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31584echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31585if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31586 cat >>confdefs.h <<\_ACEOF
31587#define HAVE_INET_ATON 1
31588_ACEOF
31589
31590fi
31591
31592
31593fi
31594done
31595
31596
31597if test "x$INET_LINK" != "x"; then
31598 cat >>confdefs.h <<\_ACEOF
31599#define HAVE_INET_ADDR 1
31600_ACEOF
31601
31602 INET_LINK=" -l$INET_LINK"
31603fi
31604
31605fi
31606
31607
31608
31609EXTRALIBS_ESD=
31610echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31611echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31612if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31613 echo $ECHO_N "(cached) $ECHO_C" >&6
31614else
31615 ac_check_lib_save_LIBS=$LIBS
31616LIBS="-lesd $LIBS"
31617cat >conftest.$ac_ext <<_ACEOF
31618/* confdefs.h. */
31619_ACEOF
31620cat confdefs.h >>conftest.$ac_ext
31621cat >>conftest.$ac_ext <<_ACEOF
31622/* end confdefs.h. */
31623
31624/* Override any gcc2 internal prototype to avoid an error. */
31625#ifdef __cplusplus
31626extern "C"
31627#endif
31628/* We use char because int might match the return type of a gcc2
31629 builtin and then its argument prototype would still apply. */
31630char esd_close ();
31631int
31632main ()
31633{
31634esd_close ();
31635 ;
31636 return 0;
31637}
31638_ACEOF
31639rm -f conftest.$ac_objext conftest$ac_exeext
31640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31641 (eval $ac_link) 2>conftest.er1
a848cd7e 31642 ac_status=$?
ac1cb8d3
VS
31643 grep -v '^ *+' conftest.er1 >conftest.err
31644 rm -f conftest.er1
31645 cat conftest.err >&5
a848cd7e
SC
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); } &&
c228d3a4
RN
31648 { ac_try='test -z "$ac_c_werror_flag"
31649 || test ! -s conftest.err'
ac1cb8d3
VS
31650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31651 (eval $ac_try) 2>&5
31652 ac_status=$?
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); }; } &&
31655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657 (eval $ac_try) 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; }; then
31661 ac_cv_lib_esd_esd_close=yes
31662else
31663 echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
31666ac_cv_lib_esd_esd_close=no
31667fi
ac1cb8d3
VS
31668rm -f conftest.err conftest.$ac_objext \
31669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31670LIBS=$ac_check_lib_save_LIBS
31671fi
31672echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31673echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31674if test $ac_cv_lib_esd_esd_close = yes; then
31675
31676
31677for ac_header in esd.h
31678do
31679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31680if eval "test \"\${$as_ac_Header+set}\" = set"; then
31681 echo "$as_me:$LINENO: checking for $ac_header" >&5
31682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31683if eval "test \"\${$as_ac_Header+set}\" = set"; then
31684 echo $ECHO_N "(cached) $ECHO_C" >&6
31685fi
31686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31688else
31689 # Is the header compilable?
31690echo "$as_me:$LINENO: checking $ac_header usability" >&5
31691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31692cat >conftest.$ac_ext <<_ACEOF
31693/* confdefs.h. */
31694_ACEOF
31695cat confdefs.h >>conftest.$ac_ext
31696cat >>conftest.$ac_ext <<_ACEOF
31697/* end confdefs.h. */
31698$ac_includes_default
31699#include <$ac_header>
31700_ACEOF
31701rm -f conftest.$ac_objext
31702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31703 (eval $ac_compile) 2>conftest.er1
a848cd7e 31704 ac_status=$?
ac1cb8d3
VS
31705 grep -v '^ *+' conftest.er1 >conftest.err
31706 rm -f conftest.er1
31707 cat conftest.err >&5
a848cd7e
SC
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } &&
c228d3a4
RN
31710 { ac_try='test -z "$ac_c_werror_flag"
31711 || test ! -s conftest.err'
ac1cb8d3
VS
31712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713 (eval $ac_try) 2>&5
31714 ac_status=$?
31715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); }; } &&
31717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31719 (eval $ac_try) 2>&5
31720 ac_status=$?
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); }; }; then
31723 ac_header_compiler=yes
31724else
31725 echo "$as_me: failed program was:" >&5
31726sed 's/^/| /' conftest.$ac_ext >&5
31727
31728ac_header_compiler=no
31729fi
ac1cb8d3 31730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31732echo "${ECHO_T}$ac_header_compiler" >&6
31733
31734# Is the header present?
31735echo "$as_me:$LINENO: checking $ac_header presence" >&5
31736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31737cat >conftest.$ac_ext <<_ACEOF
31738/* confdefs.h. */
31739_ACEOF
31740cat confdefs.h >>conftest.$ac_ext
31741cat >>conftest.$ac_ext <<_ACEOF
31742/* end confdefs.h. */
31743#include <$ac_header>
31744_ACEOF
31745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31747 ac_status=$?
31748 grep -v '^ *+' conftest.er1 >conftest.err
31749 rm -f conftest.er1
31750 cat conftest.err >&5
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); } >/dev/null; then
31753 if test -s conftest.err; then
31754 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31756 else
31757 ac_cpp_err=
31758 fi
31759else
31760 ac_cpp_err=yes
31761fi
31762if test -z "$ac_cpp_err"; then
31763 ac_header_preproc=yes
31764else
31765 echo "$as_me: failed program was:" >&5
31766sed 's/^/| /' conftest.$ac_ext >&5
31767
31768 ac_header_preproc=no
31769fi
31770rm -f conftest.err conftest.$ac_ext
31771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31772echo "${ECHO_T}$ac_header_preproc" >&6
31773
31774# So? What about this header?
ac1cb8d3
VS
31775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31776 yes:no: )
a848cd7e
SC
31777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31781 ac_header_preproc=yes
a848cd7e 31782 ;;
ac1cb8d3 31783 no:yes:* )
a848cd7e
SC
31784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31796 (
31797 cat <<\_ASBOX
ac1cb8d3
VS
31798## ----------------------------------------- ##
31799## Report this to wx-dev@lists.wxwidgets.org ##
31800## ----------------------------------------- ##
a848cd7e
SC
31801_ASBOX
31802 ) |
31803 sed "s/^/$as_me: WARNING: /" >&2
31804 ;;
31805esac
31806echo "$as_me:$LINENO: checking for $ac_header" >&5
31807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31808if eval "test \"\${$as_ac_Header+set}\" = set"; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31810else
ac1cb8d3 31811 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31812fi
31813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31815
31816fi
31817if test `eval echo '${'$as_ac_Header'}'` = yes; then
31818 cat >>confdefs.h <<_ACEOF
31819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31820_ACEOF
31821
31822 EXTRALIBS_ESD="-lesd"
31823
31824fi
31825
31826done
31827
31828
31829fi
31830
31831
31832
31833echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31834echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31835cat >conftest.$ac_ext <<_ACEOF
31836/* confdefs.h. */
31837_ACEOF
31838cat confdefs.h >>conftest.$ac_ext
31839cat >>conftest.$ac_ext <<_ACEOF
31840/* end confdefs.h. */
31841#ifdef __linux__
31842 #include <linux/cdrom.h>
31843 #else
31844 /* For Solaris */
31845 #include <sys/cdio.h>
31846 #endif
31847
31848int
31849main ()
31850{
31851struct cdrom_tocentry entry, old_entry;
31852 ;
31853 return 0;
31854}
31855_ACEOF
31856rm -f conftest.$ac_objext
31857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31858 (eval $ac_compile) 2>conftest.er1
a848cd7e 31859 ac_status=$?
ac1cb8d3
VS
31860 grep -v '^ *+' conftest.er1 >conftest.err
31861 rm -f conftest.er1
31862 cat conftest.err >&5
a848cd7e
SC
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); } &&
c228d3a4
RN
31865 { ac_try='test -z "$ac_c_werror_flag"
31866 || test ! -s conftest.err'
ac1cb8d3
VS
31867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868 (eval $ac_try) 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; } &&
31872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874 (eval $ac_try) 2>&5
31875 ac_status=$?
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); }; }; then
31878 echo "$as_me:$LINENO: result: yes" >&5
31879echo "${ECHO_T}yes" >&6
31880 cat >>confdefs.h <<\_ACEOF
31881#define HAVE_KNOWN_CDROM_INTERFACE 1
31882_ACEOF
31883
31884else
31885 echo "$as_me: failed program was:" >&5
31886sed 's/^/| /' conftest.$ac_ext >&5
31887
31888echo "$as_me:$LINENO: result: no" >&5
31889echo "${ECHO_T}no" >&6
31890fi
ac1cb8d3 31891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31892
31893
31894cat >confcache <<\_ACEOF
31895# This file is a shell script that caches the results of configure
31896# tests run on this system so they can be shared between configure
31897# scripts and configure runs, see configure's option --config-cache.
31898# It is not useful on other systems. If it contains results you don't
31899# want to keep, you may remove or edit it.
31900#
31901# config.status only pays attention to the cache file if you give it
31902# the --recheck option to rerun configure.
31903#
31904# `ac_cv_env_foo' variables (set or unset) will be overridden when
31905# loading this file, other *unset* `ac_cv_foo' will be assigned the
31906# following values.
31907
31908_ACEOF
31909
31910# The following way of writing the cache mishandles newlines in values,
31911# but we know of no workaround that is simple, portable, and efficient.
31912# So, don't put newlines in cache variables' values.
31913# Ultrix sh set writes to stderr and can't be redirected directly,
31914# and sets the high bit in the cache file unless we assign to the vars.
31915{
31916 (set) 2>&1 |
31917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31918 *ac_space=\ *)
31919 # `set' does not quote correctly, so add quotes (double-quote
31920 # substitution turns \\\\ into \\, and sed turns \\ into \).
31921 sed -n \
ac1cb8d3
VS
31922 "s/'/'\\\\''/g;
31923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31924 ;;
31925 *)
31926 # `set' quotes correctly as required by POSIX, so do not add quotes.
31927 sed -n \
ac1cb8d3 31928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31929 ;;
31930 esac;
31931} |
31932 sed '
31933 t clear
31934 : clear
31935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31936 t end
31937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31938 : end' >>confcache
31939if diff $cache_file confcache >/dev/null 2>&1; then :; else
31940 if test -w $cache_file; then
31941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31942 cat confcache >$cache_file
31943 else
31944 echo "not updating unwritable cache $cache_file"
31945 fi
31946fi
31947rm -f confcache
31948
31949
31950CPP_MT_FLAG=
31951if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31952
31953
31954 THREADS_LINK=
31955 THREADS_CFLAGS=
31956
31957 if test "$wxUSE_THREADS" = "yes" ; then
31958 if test "$USE_BEOS" = 1; then
31959 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31960echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31961 wxUSE_THREADS="no"
31962 fi
31963 fi
31964
31965 if test "$wxUSE_THREADS" = "yes" ; then
31966
31967
31968 THREAD_OPTS="-pthread"
31969 case "${host}" in
31970 *-*-solaris2* | *-*-sunos4* )
31971 if test "x$GCC" = "xyes"; then
31972 THREAD_OPTS="-pthreads $THREAD_OPTS"
31973 else
31974 THREAD_OPTS="-mt $THREAD_OPTS"
31975 fi
31976 ;;
31977 *-*-freebsd*)
31978 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31979 ;;
31980 *-*-darwin* | *-*-cygwin* )
31981 THREAD_OPTS=""
31982 ;;
31983 *-*-aix*)
31984 THREAD_OPTS="pthreads"
31985 ;;
31986 *-hp-hpux* )
31987 if test "x$GCC" != "xyes"; then
31988 THREAD_OPTS=""
31989 fi
31990 ;;
31991
31992 *-*-irix* )
31993 if test "x$GCC" = "xyes"; then
31994 THREAD_OPTS=""
31995 fi
31996 ;;
31997
31998 *-*-*UnixWare*)
31999 if test "x$GCC" != "xyes"; then
32000 THREAD_OPTS="-Ethread"
32001 fi
32002 ;;
32003 esac
32004
32005 THREAD_OPTS="$THREAD_OPTS pthread none"
32006
32007 THREADS_OK=no
32008 for flag in $THREAD_OPTS; do
32009 case $flag in
32010 none)
32011 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32012echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32013 ;;
32014
32015 -*)
32016 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32017echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32018 THREADS_CFLAGS="$flag"
32019 ;;
32020
32021 *)
32022 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32023echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32024 THREADS_LINK="-l$flag"
32025 ;;
32026 esac
32027
32028 save_LIBS="$LIBS"
32029 save_CFLAGS="$CFLAGS"
32030 LIBS="$THREADS_LINK $LIBS"
32031 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32032
32033 cat >conftest.$ac_ext <<_ACEOF
32034/* confdefs.h. */
32035_ACEOF
32036cat confdefs.h >>conftest.$ac_ext
32037cat >>conftest.$ac_ext <<_ACEOF
32038/* end confdefs.h. */
32039#include <pthread.h>
32040int
32041main ()
32042{
32043pthread_create(0,0,0,0);
32044 ;
32045 return 0;
32046}
32047_ACEOF
32048rm -f conftest.$ac_objext conftest$ac_exeext
32049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32050 (eval $ac_link) 2>conftest.er1
a848cd7e 32051 ac_status=$?
ac1cb8d3
VS
32052 grep -v '^ *+' conftest.er1 >conftest.err
32053 rm -f conftest.er1
32054 cat conftest.err >&5
a848cd7e
SC
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); } &&
c228d3a4
RN
32057 { ac_try='test -z "$ac_c_werror_flag"
32058 || test ! -s conftest.err'
ac1cb8d3
VS
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32061 ac_status=$?
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; } &&
32064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070 THREADS_OK=yes
32071else
32072 echo "$as_me: failed program was:" >&5
32073sed 's/^/| /' conftest.$ac_ext >&5
32074
32075fi
ac1cb8d3
VS
32076rm -f conftest.err conftest.$ac_objext \
32077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32078
32079 LIBS="$save_LIBS"
32080 CFLAGS="$save_CFLAGS"
32081
32082 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32083echo "${ECHO_T}$THREADS_OK" >&6
32084 if test "x$THREADS_OK" = "xyes"; then
32085 break;
32086 fi
32087
32088 THREADS_LINK=""
32089 THREADS_CFLAGS=""
32090 done
32091
32092 if test "x$THREADS_OK" != "xyes"; then
32093 wxUSE_THREADS=no
32094 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32095echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32096 else
32097 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32098 LIBS="$THREADS_LINK $LIBS"
32099
32100 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32101echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32102 flag=no
32103 case "${host}" in
32104 *-aix*)
32105 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32106 flag="-D_THREAD_SAFE"
32107 ;;
32108 *-freebsd*)
32109 flag="-D_THREAD_SAFE"
32110 ;;
32111 *-hp-hpux* )
32112 flag="-D_REENTRANT"
32113 if test "x$GCC" != "xyes"; then
32114 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32115
32116 LIBS="$LIBS -lcma"
a848cd7e
SC
32117 fi
32118 ;;
32119 *solaris* | alpha*-osf*)
32120 flag="-D_REENTRANT"
32121 ;;
32122 esac
32123 echo "$as_me:$LINENO: result: ${flag}" >&5
32124echo "${ECHO_T}${flag}" >&6
32125 if test "x$flag" != xno; then
32126 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32127 fi
32128
32129 if test "x$THREADS_CFLAGS" != "x"; then
32130 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32131 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32132 fi
32133 fi
32134 fi
32135
32136 if test "$wxUSE_THREADS" = "yes" ; then
32137
32138for ac_func in thr_setconcurrency
32139do
32140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32141echo "$as_me:$LINENO: checking for $ac_func" >&5
32142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32143if eval "test \"\${$as_ac_var+set}\" = set"; then
32144 echo $ECHO_N "(cached) $ECHO_C" >&6
32145else
32146 cat >conftest.$ac_ext <<_ACEOF
32147/* confdefs.h. */
32148_ACEOF
32149cat confdefs.h >>conftest.$ac_ext
32150cat >>conftest.$ac_ext <<_ACEOF
32151/* end confdefs.h. */
ac1cb8d3
VS
32152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32154#define $ac_func innocuous_$ac_func
32155
a848cd7e
SC
32156/* System header to define __stub macros and hopefully few prototypes,
32157 which can conflict with char $ac_func (); below.
32158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32159 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32160
a848cd7e
SC
32161#ifdef __STDC__
32162# include <limits.h>
32163#else
32164# include <assert.h>
32165#endif
ac1cb8d3
VS
32166
32167#undef $ac_func
32168
a848cd7e
SC
32169/* Override any gcc2 internal prototype to avoid an error. */
32170#ifdef __cplusplus
32171extern "C"
32172{
32173#endif
32174/* We use char because int might match the return type of a gcc2
32175 builtin and then its argument prototype would still apply. */
32176char $ac_func ();
32177/* The GNU C library defines this for functions which it implements
32178 to always fail with ENOSYS. Some functions are actually named
32179 something starting with __ and the normal name is an alias. */
32180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32181choke me
32182#else
32183char (*f) () = $ac_func;
32184#endif
32185#ifdef __cplusplus
32186}
32187#endif
32188
32189int
32190main ()
32191{
32192return f != $ac_func;
32193 ;
32194 return 0;
32195}
32196_ACEOF
32197rm -f conftest.$ac_objext conftest$ac_exeext
32198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32199 (eval $ac_link) 2>conftest.er1
a848cd7e 32200 ac_status=$?
ac1cb8d3
VS
32201 grep -v '^ *+' conftest.er1 >conftest.err
32202 rm -f conftest.er1
32203 cat conftest.err >&5
a848cd7e
SC
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); } &&
c228d3a4
RN
32206 { ac_try='test -z "$ac_c_werror_flag"
32207 || test ! -s conftest.err'
ac1cb8d3
VS
32208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32209 (eval $ac_try) 2>&5
32210 ac_status=$?
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); }; } &&
32213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32215 (eval $ac_try) 2>&5
32216 ac_status=$?
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); }; }; then
32219 eval "$as_ac_var=yes"
32220else
32221 echo "$as_me: failed program was:" >&5
32222sed 's/^/| /' conftest.$ac_ext >&5
32223
32224eval "$as_ac_var=no"
32225fi
ac1cb8d3
VS
32226rm -f conftest.err conftest.$ac_objext \
32227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32228fi
32229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32231if test `eval echo '${'$as_ac_var'}'` = yes; then
32232 cat >>confdefs.h <<_ACEOF
32233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32234_ACEOF
32235
32236fi
32237done
32238
32239
32240
32241for ac_header in sched.h
32242do
32243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32244if eval "test \"\${$as_ac_Header+set}\" = set"; then
32245 echo "$as_me:$LINENO: checking for $ac_header" >&5
32246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32247if eval "test \"\${$as_ac_Header+set}\" = set"; then
32248 echo $ECHO_N "(cached) $ECHO_C" >&6
32249fi
32250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32252else
32253 # Is the header compilable?
32254echo "$as_me:$LINENO: checking $ac_header usability" >&5
32255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32256cat >conftest.$ac_ext <<_ACEOF
32257/* confdefs.h. */
32258_ACEOF
32259cat confdefs.h >>conftest.$ac_ext
32260cat >>conftest.$ac_ext <<_ACEOF
32261/* end confdefs.h. */
32262$ac_includes_default
32263#include <$ac_header>
32264_ACEOF
32265rm -f conftest.$ac_objext
32266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32267 (eval $ac_compile) 2>conftest.er1
a848cd7e 32268 ac_status=$?
ac1cb8d3
VS
32269 grep -v '^ *+' conftest.er1 >conftest.err
32270 rm -f conftest.er1
32271 cat conftest.err >&5
a848cd7e
SC
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } &&
c228d3a4
RN
32274 { ac_try='test -z "$ac_c_werror_flag"
32275 || test ! -s conftest.err'
ac1cb8d3
VS
32276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277 (eval $ac_try) 2>&5
32278 ac_status=$?
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; } &&
32281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283 (eval $ac_try) 2>&5
32284 ac_status=$?
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; }; then
32287 ac_header_compiler=yes
32288else
32289 echo "$as_me: failed program was:" >&5
32290sed 's/^/| /' conftest.$ac_ext >&5
32291
32292ac_header_compiler=no
32293fi
ac1cb8d3 32294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32296echo "${ECHO_T}$ac_header_compiler" >&6
32297
32298# Is the header present?
32299echo "$as_me:$LINENO: checking $ac_header presence" >&5
32300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32301cat >conftest.$ac_ext <<_ACEOF
32302/* confdefs.h. */
32303_ACEOF
32304cat confdefs.h >>conftest.$ac_ext
32305cat >>conftest.$ac_ext <<_ACEOF
32306/* end confdefs.h. */
32307#include <$ac_header>
32308_ACEOF
32309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32311 ac_status=$?
32312 grep -v '^ *+' conftest.er1 >conftest.err
32313 rm -f conftest.er1
32314 cat conftest.err >&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } >/dev/null; then
32317 if test -s conftest.err; then
32318 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32320 else
32321 ac_cpp_err=
32322 fi
32323else
32324 ac_cpp_err=yes
32325fi
32326if test -z "$ac_cpp_err"; then
32327 ac_header_preproc=yes
32328else
32329 echo "$as_me: failed program was:" >&5
32330sed 's/^/| /' conftest.$ac_ext >&5
32331
32332 ac_header_preproc=no
32333fi
32334rm -f conftest.err conftest.$ac_ext
32335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32336echo "${ECHO_T}$ac_header_preproc" >&6
32337
32338# So? What about this header?
ac1cb8d3
VS
32339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32340 yes:no: )
a848cd7e
SC
32341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32345 ac_header_preproc=yes
a848cd7e 32346 ;;
ac1cb8d3 32347 no:yes:* )
a848cd7e
SC
32348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32360 (
32361 cat <<\_ASBOX
ac1cb8d3
VS
32362## ----------------------------------------- ##
32363## Report this to wx-dev@lists.wxwidgets.org ##
32364## ----------------------------------------- ##
a848cd7e
SC
32365_ASBOX
32366 ) |
32367 sed "s/^/$as_me: WARNING: /" >&2
32368 ;;
32369esac
32370echo "$as_me:$LINENO: checking for $ac_header" >&5
32371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32372if eval "test \"\${$as_ac_Header+set}\" = set"; then
32373 echo $ECHO_N "(cached) $ECHO_C" >&6
32374else
ac1cb8d3 32375 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32376fi
32377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32379
32380fi
32381if test `eval echo '${'$as_ac_Header'}'` = yes; then
32382 cat >>confdefs.h <<_ACEOF
32383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32384_ACEOF
32385
32386fi
32387
32388done
32389
32390 if test "$ac_cv_header_sched_h" = "yes"; then
32391 echo "$as_me:$LINENO: checking for sched_yield" >&5
32392echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32393if test "${ac_cv_func_sched_yield+set}" = set; then
32394 echo $ECHO_N "(cached) $ECHO_C" >&6
32395else
32396 cat >conftest.$ac_ext <<_ACEOF
32397/* confdefs.h. */
32398_ACEOF
32399cat confdefs.h >>conftest.$ac_ext
32400cat >>conftest.$ac_ext <<_ACEOF
32401/* end confdefs.h. */
ac1cb8d3
VS
32402/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32404#define sched_yield innocuous_sched_yield
32405
a848cd7e
SC
32406/* System header to define __stub macros and hopefully few prototypes,
32407 which can conflict with char sched_yield (); below.
32408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32409 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32410
a848cd7e
SC
32411#ifdef __STDC__
32412# include <limits.h>
32413#else
32414# include <assert.h>
32415#endif
ac1cb8d3
VS
32416
32417#undef sched_yield
32418
a848cd7e
SC
32419/* Override any gcc2 internal prototype to avoid an error. */
32420#ifdef __cplusplus
32421extern "C"
32422{
32423#endif
32424/* We use char because int might match the return type of a gcc2
32425 builtin and then its argument prototype would still apply. */
32426char sched_yield ();
32427/* The GNU C library defines this for functions which it implements
32428 to always fail with ENOSYS. Some functions are actually named
32429 something starting with __ and the normal name is an alias. */
32430#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32431choke me
32432#else
32433char (*f) () = sched_yield;
32434#endif
32435#ifdef __cplusplus
32436}
32437#endif
32438
32439int
32440main ()
32441{
32442return f != sched_yield;
32443 ;
32444 return 0;
32445}
32446_ACEOF
32447rm -f conftest.$ac_objext conftest$ac_exeext
32448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32449 (eval $ac_link) 2>conftest.er1
a848cd7e 32450 ac_status=$?
ac1cb8d3
VS
32451 grep -v '^ *+' conftest.er1 >conftest.err
32452 rm -f conftest.er1
32453 cat conftest.err >&5
a848cd7e
SC
32454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455 (exit $ac_status); } &&
c228d3a4
RN
32456 { ac_try='test -z "$ac_c_werror_flag"
32457 || test ! -s conftest.err'
ac1cb8d3
VS
32458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32459 (eval $ac_try) 2>&5
32460 ac_status=$?
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); }; } &&
32463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32465 (eval $ac_try) 2>&5
32466 ac_status=$?
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; }; then
32469 ac_cv_func_sched_yield=yes
32470else
32471 echo "$as_me: failed program was:" >&5
32472sed 's/^/| /' conftest.$ac_ext >&5
32473
32474ac_cv_func_sched_yield=no
32475fi
ac1cb8d3
VS
32476rm -f conftest.err conftest.$ac_objext \
32477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32478fi
32479echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32480echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32481if test $ac_cv_func_sched_yield = yes; then
32482 cat >>confdefs.h <<\_ACEOF
32483#define HAVE_SCHED_YIELD 1
32484_ACEOF
32485
32486else
32487
32488 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32489echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32490if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32491 echo $ECHO_N "(cached) $ECHO_C" >&6
32492else
32493 ac_check_lib_save_LIBS=$LIBS
32494LIBS="-lposix4 $LIBS"
32495cat >conftest.$ac_ext <<_ACEOF
32496/* confdefs.h. */
32497_ACEOF
32498cat confdefs.h >>conftest.$ac_ext
32499cat >>conftest.$ac_ext <<_ACEOF
32500/* end confdefs.h. */
32501
32502/* Override any gcc2 internal prototype to avoid an error. */
32503#ifdef __cplusplus
32504extern "C"
32505#endif
32506/* We use char because int might match the return type of a gcc2
32507 builtin and then its argument prototype would still apply. */
32508char sched_yield ();
32509int
32510main ()
32511{
32512sched_yield ();
32513 ;
32514 return 0;
32515}
32516_ACEOF
32517rm -f conftest.$ac_objext conftest$ac_exeext
32518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32519 (eval $ac_link) 2>conftest.er1
a848cd7e 32520 ac_status=$?
ac1cb8d3
VS
32521 grep -v '^ *+' conftest.er1 >conftest.err
32522 rm -f conftest.er1
32523 cat conftest.err >&5
a848cd7e
SC
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); } &&
c228d3a4
RN
32526 { ac_try='test -z "$ac_c_werror_flag"
32527 || test ! -s conftest.err'
ac1cb8d3
VS
32528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32529 (eval $ac_try) 2>&5
32530 ac_status=$?
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); }; } &&
32533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32535 (eval $ac_try) 2>&5
32536 ac_status=$?
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; }; then
32539 ac_cv_lib_posix4_sched_yield=yes
32540else
32541 echo "$as_me: failed program was:" >&5
32542sed 's/^/| /' conftest.$ac_ext >&5
32543
32544ac_cv_lib_posix4_sched_yield=no
32545fi
ac1cb8d3
VS
32546rm -f conftest.err conftest.$ac_objext \
32547 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32548LIBS=$ac_check_lib_save_LIBS
32549fi
32550echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32551echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32552if test $ac_cv_lib_posix4_sched_yield = yes; then
32553 cat >>confdefs.h <<\_ACEOF
32554#define HAVE_SCHED_YIELD 1
32555_ACEOF
32556 POSIX4_LINK=" -lposix4"
32557else
32558 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32559echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32560
32561fi
32562
32563
32564
32565fi
32566
32567 fi
32568
32569 HAVE_PRIOR_FUNCS=0
32570 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32571echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32572if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32573 echo $ECHO_N "(cached) $ECHO_C" >&6
32574else
32575 cat >conftest.$ac_ext <<_ACEOF
32576/* confdefs.h. */
32577_ACEOF
32578cat confdefs.h >>conftest.$ac_ext
32579cat >>conftest.$ac_ext <<_ACEOF
32580/* end confdefs.h. */
ac1cb8d3
VS
32581/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32583#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32584
a848cd7e
SC
32585/* System header to define __stub macros and hopefully few prototypes,
32586 which can conflict with char pthread_attr_getschedpolicy (); below.
32587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32588 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32589
a848cd7e
SC
32590#ifdef __STDC__
32591# include <limits.h>
32592#else
32593# include <assert.h>
32594#endif
ac1cb8d3
VS
32595
32596#undef pthread_attr_getschedpolicy
32597
a848cd7e
SC
32598/* Override any gcc2 internal prototype to avoid an error. */
32599#ifdef __cplusplus
32600extern "C"
32601{
32602#endif
32603/* We use char because int might match the return type of a gcc2
32604 builtin and then its argument prototype would still apply. */
32605char pthread_attr_getschedpolicy ();
32606/* The GNU C library defines this for functions which it implements
32607 to always fail with ENOSYS. Some functions are actually named
32608 something starting with __ and the normal name is an alias. */
32609#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32610choke me
32611#else
32612char (*f) () = pthread_attr_getschedpolicy;
32613#endif
32614#ifdef __cplusplus
32615}
32616#endif
32617
32618int
32619main ()
32620{
32621return f != pthread_attr_getschedpolicy;
32622 ;
32623 return 0;
32624}
32625_ACEOF
32626rm -f conftest.$ac_objext conftest$ac_exeext
32627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32628 (eval $ac_link) 2>conftest.er1
a848cd7e 32629 ac_status=$?
ac1cb8d3
VS
32630 grep -v '^ *+' conftest.er1 >conftest.err
32631 rm -f conftest.er1
32632 cat conftest.err >&5
a848cd7e
SC
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); } &&
c228d3a4
RN
32635 { ac_try='test -z "$ac_c_werror_flag"
32636 || test ! -s conftest.err'
ac1cb8d3
VS
32637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32638 (eval $ac_try) 2>&5
32639 ac_status=$?
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); }; } &&
32642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32644 (eval $ac_try) 2>&5
32645 ac_status=$?
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); }; }; then
32648 ac_cv_func_pthread_attr_getschedpolicy=yes
32649else
32650 echo "$as_me: failed program was:" >&5
32651sed 's/^/| /' conftest.$ac_ext >&5
32652
32653ac_cv_func_pthread_attr_getschedpolicy=no
32654fi
ac1cb8d3
VS
32655rm -f conftest.err conftest.$ac_objext \
32656 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32657fi
32658echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32659echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32660if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32661 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32662echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32663if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32664 echo $ECHO_N "(cached) $ECHO_C" >&6
32665else
32666 cat >conftest.$ac_ext <<_ACEOF
32667/* confdefs.h. */
32668_ACEOF
32669cat confdefs.h >>conftest.$ac_ext
32670cat >>conftest.$ac_ext <<_ACEOF
32671/* end confdefs.h. */
ac1cb8d3
VS
32672/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32674#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32675
a848cd7e
SC
32676/* System header to define __stub macros and hopefully few prototypes,
32677 which can conflict with char pthread_attr_setschedparam (); below.
32678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32679 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32680
a848cd7e
SC
32681#ifdef __STDC__
32682# include <limits.h>
32683#else
32684# include <assert.h>
32685#endif
ac1cb8d3
VS
32686
32687#undef pthread_attr_setschedparam
32688
a848cd7e
SC
32689/* Override any gcc2 internal prototype to avoid an error. */
32690#ifdef __cplusplus
32691extern "C"
32692{
32693#endif
32694/* We use char because int might match the return type of a gcc2
32695 builtin and then its argument prototype would still apply. */
32696char pthread_attr_setschedparam ();
32697/* The GNU C library defines this for functions which it implements
32698 to always fail with ENOSYS. Some functions are actually named
32699 something starting with __ and the normal name is an alias. */
32700#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32701choke me
32702#else
32703char (*f) () = pthread_attr_setschedparam;
32704#endif
32705#ifdef __cplusplus
32706}
32707#endif
32708
32709int
32710main ()
32711{
32712return f != pthread_attr_setschedparam;
32713 ;
32714 return 0;
32715}
32716_ACEOF
32717rm -f conftest.$ac_objext conftest$ac_exeext
32718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32719 (eval $ac_link) 2>conftest.er1
a848cd7e 32720 ac_status=$?
ac1cb8d3
VS
32721 grep -v '^ *+' conftest.er1 >conftest.err
32722 rm -f conftest.er1
32723 cat conftest.err >&5
a848cd7e
SC
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); } &&
c228d3a4
RN
32726 { ac_try='test -z "$ac_c_werror_flag"
32727 || test ! -s conftest.err'
ac1cb8d3
VS
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32730 ac_status=$?
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; } &&
32733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32735 (eval $ac_try) 2>&5
32736 ac_status=$?
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; }; then
32739 ac_cv_func_pthread_attr_setschedparam=yes
32740else
32741 echo "$as_me: failed program was:" >&5
32742sed 's/^/| /' conftest.$ac_ext >&5
32743
32744ac_cv_func_pthread_attr_setschedparam=no
32745fi
ac1cb8d3
VS
32746rm -f conftest.err conftest.$ac_objext \
32747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32748fi
32749echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32750echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32751if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32752 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32753echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32754if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32755 echo $ECHO_N "(cached) $ECHO_C" >&6
32756else
32757 cat >conftest.$ac_ext <<_ACEOF
32758/* confdefs.h. */
32759_ACEOF
32760cat confdefs.h >>conftest.$ac_ext
32761cat >>conftest.$ac_ext <<_ACEOF
32762/* end confdefs.h. */
ac1cb8d3
VS
32763/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32765#define sched_get_priority_max innocuous_sched_get_priority_max
32766
a848cd7e
SC
32767/* System header to define __stub macros and hopefully few prototypes,
32768 which can conflict with char sched_get_priority_max (); below.
32769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32770 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32771
a848cd7e
SC
32772#ifdef __STDC__
32773# include <limits.h>
32774#else
32775# include <assert.h>
32776#endif
ac1cb8d3
VS
32777
32778#undef sched_get_priority_max
32779
a848cd7e
SC
32780/* Override any gcc2 internal prototype to avoid an error. */
32781#ifdef __cplusplus
32782extern "C"
32783{
32784#endif
32785/* We use char because int might match the return type of a gcc2
32786 builtin and then its argument prototype would still apply. */
32787char sched_get_priority_max ();
32788/* The GNU C library defines this for functions which it implements
32789 to always fail with ENOSYS. Some functions are actually named
32790 something starting with __ and the normal name is an alias. */
32791#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32792choke me
32793#else
32794char (*f) () = sched_get_priority_max;
32795#endif
32796#ifdef __cplusplus
32797}
32798#endif
32799
32800int
32801main ()
32802{
32803return f != sched_get_priority_max;
32804 ;
32805 return 0;
32806}
32807_ACEOF
32808rm -f conftest.$ac_objext conftest$ac_exeext
32809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32810 (eval $ac_link) 2>conftest.er1
a848cd7e 32811 ac_status=$?
ac1cb8d3
VS
32812 grep -v '^ *+' conftest.er1 >conftest.err
32813 rm -f conftest.er1
32814 cat conftest.err >&5
a848cd7e
SC
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); } &&
c228d3a4
RN
32817 { ac_try='test -z "$ac_c_werror_flag"
32818 || test ! -s conftest.err'
ac1cb8d3
VS
32819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32820 (eval $ac_try) 2>&5
32821 ac_status=$?
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); }; } &&
32824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32826 (eval $ac_try) 2>&5
32827 ac_status=$?
32828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829 (exit $ac_status); }; }; then
32830 ac_cv_func_sched_get_priority_max=yes
32831else
32832 echo "$as_me: failed program was:" >&5
32833sed 's/^/| /' conftest.$ac_ext >&5
32834
32835ac_cv_func_sched_get_priority_max=no
32836fi
ac1cb8d3
VS
32837rm -f conftest.err conftest.$ac_objext \
32838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32839fi
32840echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32841echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32842if test $ac_cv_func_sched_get_priority_max = yes; then
32843 HAVE_PRIOR_FUNCS=1
32844else
32845 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32846echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32847if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32848 echo $ECHO_N "(cached) $ECHO_C" >&6
32849else
32850 ac_check_lib_save_LIBS=$LIBS
32851LIBS="-lposix4 $LIBS"
32852cat >conftest.$ac_ext <<_ACEOF
32853/* confdefs.h. */
32854_ACEOF
32855cat confdefs.h >>conftest.$ac_ext
32856cat >>conftest.$ac_ext <<_ACEOF
32857/* end confdefs.h. */
32858
32859/* Override any gcc2 internal prototype to avoid an error. */
32860#ifdef __cplusplus
32861extern "C"
32862#endif
32863/* We use char because int might match the return type of a gcc2
32864 builtin and then its argument prototype would still apply. */
32865char sched_get_priority_max ();
32866int
32867main ()
32868{
32869sched_get_priority_max ();
32870 ;
32871 return 0;
32872}
32873_ACEOF
32874rm -f conftest.$ac_objext conftest$ac_exeext
32875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32876 (eval $ac_link) 2>conftest.er1
a848cd7e 32877 ac_status=$?
ac1cb8d3
VS
32878 grep -v '^ *+' conftest.er1 >conftest.err
32879 rm -f conftest.er1
32880 cat conftest.err >&5
a848cd7e
SC
32881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882 (exit $ac_status); } &&
c228d3a4
RN
32883 { ac_try='test -z "$ac_c_werror_flag"
32884 || test ! -s conftest.err'
ac1cb8d3
VS
32885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886 (eval $ac_try) 2>&5
32887 ac_status=$?
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; } &&
32890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32892 (eval $ac_try) 2>&5
32893 ac_status=$?
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); }; }; then
32896 ac_cv_lib_posix4_sched_get_priority_max=yes
32897else
32898 echo "$as_me: failed program was:" >&5
32899sed 's/^/| /' conftest.$ac_ext >&5
32900
32901ac_cv_lib_posix4_sched_get_priority_max=no
32902fi
ac1cb8d3
VS
32903rm -f conftest.err conftest.$ac_objext \
32904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32905LIBS=$ac_check_lib_save_LIBS
32906fi
32907echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32908echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32909if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32910
32911 HAVE_PRIOR_FUNCS=1
32912 POSIX4_LINK=" -lposix4"
32913
32914fi
32915
32916
32917fi
32918
32919
32920fi
32921
32922
32923fi
32924
32925
32926 if test "$HAVE_PRIOR_FUNCS" = 1; then
32927 cat >>confdefs.h <<\_ACEOF
32928#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32929_ACEOF
32930
32931 else
32932 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32933echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32934 fi
32935
32936 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32937echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32938if test "${ac_cv_func_pthread_cancel+set}" = set; then
32939 echo $ECHO_N "(cached) $ECHO_C" >&6
32940else
32941 cat >conftest.$ac_ext <<_ACEOF
32942/* confdefs.h. */
32943_ACEOF
32944cat confdefs.h >>conftest.$ac_ext
32945cat >>conftest.$ac_ext <<_ACEOF
32946/* end confdefs.h. */
ac1cb8d3
VS
32947/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32949#define pthread_cancel innocuous_pthread_cancel
32950
a848cd7e
SC
32951/* System header to define __stub macros and hopefully few prototypes,
32952 which can conflict with char pthread_cancel (); below.
32953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32954 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32955
a848cd7e
SC
32956#ifdef __STDC__
32957# include <limits.h>
32958#else
32959# include <assert.h>
32960#endif
ac1cb8d3
VS
32961
32962#undef pthread_cancel
32963
a848cd7e
SC
32964/* Override any gcc2 internal prototype to avoid an error. */
32965#ifdef __cplusplus
32966extern "C"
32967{
32968#endif
32969/* We use char because int might match the return type of a gcc2
32970 builtin and then its argument prototype would still apply. */
32971char pthread_cancel ();
32972/* The GNU C library defines this for functions which it implements
32973 to always fail with ENOSYS. Some functions are actually named
32974 something starting with __ and the normal name is an alias. */
32975#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32976choke me
32977#else
32978char (*f) () = pthread_cancel;
32979#endif
32980#ifdef __cplusplus
32981}
32982#endif
32983
32984int
32985main ()
32986{
32987return f != pthread_cancel;
32988 ;
32989 return 0;
32990}
32991_ACEOF
32992rm -f conftest.$ac_objext conftest$ac_exeext
32993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32994 (eval $ac_link) 2>conftest.er1
a848cd7e 32995 ac_status=$?
ac1cb8d3
VS
32996 grep -v '^ *+' conftest.er1 >conftest.err
32997 rm -f conftest.er1
32998 cat conftest.err >&5
a848cd7e
SC
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); } &&
c228d3a4
RN
33001 { ac_try='test -z "$ac_c_werror_flag"
33002 || test ! -s conftest.err'
ac1cb8d3
VS
33003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33004 (eval $ac_try) 2>&5
33005 ac_status=$?
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); }; } &&
33008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010 (eval $ac_try) 2>&5
33011 ac_status=$?
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; }; then
33014 ac_cv_func_pthread_cancel=yes
33015else
33016 echo "$as_me: failed program was:" >&5
33017sed 's/^/| /' conftest.$ac_ext >&5
33018
33019ac_cv_func_pthread_cancel=no
33020fi
ac1cb8d3
VS
33021rm -f conftest.err conftest.$ac_objext \
33022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33023fi
33024echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33025echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33026if test $ac_cv_func_pthread_cancel = yes; then
33027 cat >>confdefs.h <<\_ACEOF
33028#define HAVE_PTHREAD_CANCEL 1
33029_ACEOF
33030
33031else
33032 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33033echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33034fi
33035
33036
33037
33038
33039 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33040echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33041if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33042 echo $ECHO_N "(cached) $ECHO_C" >&6
33043else
33044
33045 cat >conftest.$ac_ext <<_ACEOF
33046/* confdefs.h. */
33047_ACEOF
33048cat confdefs.h >>conftest.$ac_ext
33049cat >>conftest.$ac_ext <<_ACEOF
33050/* end confdefs.h. */
33051#include <pthread.h>
33052int
33053main ()
33054{
33055
33056 pthread_mutexattr_t attr;
33057 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33058
33059 ;
33060 return 0;
33061}
33062_ACEOF
33063rm -f conftest.$ac_objext
33064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33065 (eval $ac_compile) 2>conftest.er1
a848cd7e 33066 ac_status=$?
ac1cb8d3
VS
33067 grep -v '^ *+' conftest.er1 >conftest.err
33068 rm -f conftest.er1
33069 cat conftest.err >&5
a848cd7e
SC
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); } &&
c228d3a4
RN
33072 { ac_try='test -z "$ac_c_werror_flag"
33073 || test ! -s conftest.err'
ac1cb8d3
VS
33074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33075 (eval $ac_try) 2>&5
33076 ac_status=$?
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; } &&
33079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081 (eval $ac_try) 2>&5
33082 ac_status=$?
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); }; }; then
33085
33086 wx_cv_type_pthread_mutexattr_t=yes
33087
33088else
33089 echo "$as_me: failed program was:" >&5
33090sed 's/^/| /' conftest.$ac_ext >&5
33091
33092
33093 wx_cv_type_pthread_mutexattr_t=no
33094
33095
33096fi
ac1cb8d3 33097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33098
33099fi
33100echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33101echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33102
33103 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33104 cat >>confdefs.h <<\_ACEOF
33105#define HAVE_PTHREAD_MUTEXATTR_T 1
33106_ACEOF
33107
33108 else
33109 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33110echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33111if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33112 echo $ECHO_N "(cached) $ECHO_C" >&6
33113else
33114
33115 cat >conftest.$ac_ext <<_ACEOF
33116/* confdefs.h. */
33117_ACEOF
33118cat confdefs.h >>conftest.$ac_ext
33119cat >>conftest.$ac_ext <<_ACEOF
33120/* end confdefs.h. */
33121#include <pthread.h>
33122int
33123main ()
33124{
33125
33126 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33127
33128 ;
33129 return 0;
33130}
33131_ACEOF
33132rm -f conftest.$ac_objext
33133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33134 (eval $ac_compile) 2>conftest.er1
a848cd7e 33135 ac_status=$?
ac1cb8d3
VS
33136 grep -v '^ *+' conftest.er1 >conftest.err
33137 rm -f conftest.er1
33138 cat conftest.err >&5
a848cd7e
SC
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } &&
c228d3a4
RN
33141 { ac_try='test -z "$ac_c_werror_flag"
33142 || test ! -s conftest.err'
ac1cb8d3
VS
33143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33144 (eval $ac_try) 2>&5
33145 ac_status=$?
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; } &&
33148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33150 (eval $ac_try) 2>&5
33151 ac_status=$?
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); }; }; then
33154
33155 wx_cv_type_pthread_rec_mutex_init=yes
33156
33157else
33158 echo "$as_me: failed program was:" >&5
33159sed 's/^/| /' conftest.$ac_ext >&5
33160
33161
33162 wx_cv_type_pthread_rec_mutex_init=no
33163
33164
33165fi
ac1cb8d3 33166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33167
33168fi
33169echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33170echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33171 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33172 cat >>confdefs.h <<\_ACEOF
33173#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33174_ACEOF
33175
33176 else
33177 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33178echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33179 fi
33180 fi
33181 fi
33182
33183else
33184 if test "$wxUSE_THREADS" = "yes" ; then
33185 case "${host}" in
33186 *-*-mingw32* )
33187 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33188echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33189if test "${wx_cv_cflags_mthread+set}" = set; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33191else
33192
33193 CFLAGS_OLD="$CFLAGS"
33194 CFLAGS="$CFLAGS -mthreads"
33195 cat >conftest.$ac_ext <<_ACEOF
33196/* confdefs.h. */
33197_ACEOF
33198cat confdefs.h >>conftest.$ac_ext
33199cat >>conftest.$ac_ext <<_ACEOF
33200/* end confdefs.h. */
33201
33202int
33203main ()
33204{
33205
33206 ;
33207 return 0;
33208}
33209_ACEOF
33210rm -f conftest.$ac_objext
33211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33212 (eval $ac_compile) 2>conftest.er1
a848cd7e 33213 ac_status=$?
ac1cb8d3
VS
33214 grep -v '^ *+' conftest.er1 >conftest.err
33215 rm -f conftest.er1
33216 cat conftest.err >&5
a848cd7e
SC
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); } &&
c228d3a4
RN
33219 { ac_try='test -z "$ac_c_werror_flag"
33220 || test ! -s conftest.err'
ac1cb8d3
VS
33221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33222 (eval $ac_try) 2>&5
33223 ac_status=$?
33224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); }; } &&
33226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33228 (eval $ac_try) 2>&5
33229 ac_status=$?
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); }; }; then
33232 wx_cv_cflags_mthread=yes
33233else
33234 echo "$as_me: failed program was:" >&5
33235sed 's/^/| /' conftest.$ac_ext >&5
33236
33237wx_cv_cflags_mthread=no
33238
33239fi
ac1cb8d3 33240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33241
33242
33243fi
33244echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33245echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33246
33247 if test "$wx_cv_cflags_mthread" = "yes"; then
33248 CXXFLAGS="$CXXFLAGS -mthreads"
33249 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33250 LDFLAGS="$LDFLAGS -mthreads"
33251 else
33252 CFLAGS="$CFLAGS_OLD"
33253 fi
33254 ;;
33255 *-pc-os2*emx )
33256 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33257 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33258 LDFLAGS="$LDFLAGS -Zmt"
33259 ;;
33260 esac
33261 fi
33262fi
33263
33264if test "$wxUSE_THREADS" = "yes"; then
33265 cat >>confdefs.h <<\_ACEOF
33266#define wxUSE_THREADS 1
33267_ACEOF
33268
33269
33270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33271else
33272 if test "$ac_cv_func_strtok_r" = "yes"; then
33273 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33274echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33275 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33276 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33277 echo "$as_me:$LINENO: result: yes" >&5
33278echo "${ECHO_T}yes" >&6
33279 else
33280 echo "$as_me:$LINENO: result: no" >&5
33281echo "${ECHO_T}no" >&6
33282 fi
33283 fi
33284fi
33285
33286if test "$WXGTK20" = 1 ; then
33287 cat >>confdefs.h <<_ACEOF
33288#define __WXGTK20__ $WXGTK20
33289_ACEOF
33290
33291 WXGTK12=1
33292fi
33293
33294if test "$WXGTK12" = 1 ; then
33295 cat >>confdefs.h <<_ACEOF
33296#define __WXGTK12__ $WXGTK12
33297_ACEOF
33298
33299fi
33300
33301if test "$WXGTK127" = 1 ; then
33302 cat >>confdefs.h <<_ACEOF
33303#define __WXGTK127__ $WXGTK127
33304_ACEOF
33305
33306fi
33307
33308if test "$WXGPE" = 1 ; then
33309 cat >>confdefs.h <<_ACEOF
33310#define __WXGPE__ $WXGPE
33311_ACEOF
33312
33313fi
33314
33315WXDEBUG=
33316
33317if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33318 WXDEBUG="-g"
33319 wxUSE_OPTIMISE=no
33320fi
33321
33322if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33323 wxUSE_DEBUG_INFO=yes
33324 WXDEBUG="-ggdb"
33325fi
33326
33327if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33328 cat >>confdefs.h <<\_ACEOF
33329#define WXDEBUG 1
33330_ACEOF
33331
33332 WXDEBUG_DEFINE="-D__WXDEBUG__"
33333else
33334 if test "$wxUSE_GTK" = 1 ; then
33335 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33336 fi
33337fi
33338
33339if test "$wxUSE_MEM_TRACING" = "yes" ; then
33340 cat >>confdefs.h <<\_ACEOF
33341#define wxUSE_MEMORY_TRACING 1
33342_ACEOF
33343
33344 cat >>confdefs.h <<\_ACEOF
33345#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33346_ACEOF
33347
33348 cat >>confdefs.h <<\_ACEOF
33349#define wxUSE_DEBUG_NEW_ALWAYS 1
33350_ACEOF
33351
33352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33353fi
33354
33355if test "$wxUSE_DMALLOC" = "yes" ; then
33356 DMALLOC_LIBS="-ldmalloc"
33357fi
33358
33359PROFILE=
33360if test "$wxUSE_PROFILE" = "yes" ; then
33361 PROFILE=" -pg"
33362fi
33363
33364CODE_GEN_FLAGS=
33365CODE_GEN_FLAGS_CXX=
33366if test "$GCC" = "yes" ; then
33367 if test "$wxUSE_NO_RTTI" = "yes" ; then
33368 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33369 fi
33370 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33371 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33372 fi
33373 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33374 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33375 fi
33376
33377 case "${host}" in
33378 powerpc*-*-aix* )
33379 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33380 ;;
33381 *-hppa* )
33382 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33383 ;;
33384 esac
33385fi
33386
33387OPTIMISE=
33388if test "$wxUSE_OPTIMISE" = "no" ; then
33389 if test "$GCC" = yes ; then
33390 OPTIMISE="-O0"
33391 fi
33392else
33393 if test "$GCC" = yes ; then
33394 OPTIMISE="-O2"
33395
33396 case "${host}" in
33397 i586-*-*|i686-*-* )
33398 OPTIMISE="${OPTIMISE} "
33399 ;;
33400 esac
33401 else
33402 OPTIMISE="-O"
33403 fi
33404fi
33405
33406
33407if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33408 cat >>confdefs.h <<\_ACEOF
33409#define WXWIN_COMPATIBILITY_2_2 1
33410_ACEOF
33411
33412
33413 WXWIN_COMPATIBILITY_2_4="yes"
33414fi
33415
33416if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33417 cat >>confdefs.h <<\_ACEOF
33418#define WXWIN_COMPATIBILITY_2_4 1
33419_ACEOF
33420
33421fi
33422
33423
33424if test "$wxUSE_GUI" = "yes"; then
33425 cat >>confdefs.h <<\_ACEOF
33426#define wxUSE_GUI 1
33427_ACEOF
33428
33429
33430 else
33431 cat >>confdefs.h <<\_ACEOF
33432#define wxUSE_NOGUI 1
33433_ACEOF
33434
33435fi
33436
33437
33438if test "$wxUSE_UNIX" = "yes"; then
33439 cat >>confdefs.h <<\_ACEOF
33440#define wxUSE_UNIX 1
33441_ACEOF
33442
33443fi
33444
33445
33446if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33447
33448 HAVE_DL_FUNCS=0
33449 HAVE_SHL_FUNCS=0
33450 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33451 if test "$USE_DARWIN" = 1; then
33452 HAVE_DL_FUNCS=1
33453 else
33454
33455for ac_func in dlopen
33456do
33457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33458echo "$as_me:$LINENO: checking for $ac_func" >&5
33459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33460if eval "test \"\${$as_ac_var+set}\" = set"; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
33462else
33463 cat >conftest.$ac_ext <<_ACEOF
33464/* confdefs.h. */
33465_ACEOF
33466cat confdefs.h >>conftest.$ac_ext
33467cat >>conftest.$ac_ext <<_ACEOF
33468/* end confdefs.h. */
ac1cb8d3
VS
33469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33471#define $ac_func innocuous_$ac_func
33472
a848cd7e
SC
33473/* System header to define __stub macros and hopefully few prototypes,
33474 which can conflict with char $ac_func (); below.
33475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33476 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33477
a848cd7e
SC
33478#ifdef __STDC__
33479# include <limits.h>
33480#else
33481# include <assert.h>
33482#endif
ac1cb8d3
VS
33483
33484#undef $ac_func
33485
a848cd7e
SC
33486/* Override any gcc2 internal prototype to avoid an error. */
33487#ifdef __cplusplus
33488extern "C"
33489{
33490#endif
33491/* We use char because int might match the return type of a gcc2
33492 builtin and then its argument prototype would still apply. */
33493char $ac_func ();
33494/* The GNU C library defines this for functions which it implements
33495 to always fail with ENOSYS. Some functions are actually named
33496 something starting with __ and the normal name is an alias. */
33497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33498choke me
33499#else
33500char (*f) () = $ac_func;
33501#endif
33502#ifdef __cplusplus
33503}
33504#endif
33505
33506int
33507main ()
33508{
33509return f != $ac_func;
33510 ;
33511 return 0;
33512}
33513_ACEOF
33514rm -f conftest.$ac_objext conftest$ac_exeext
33515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33516 (eval $ac_link) 2>conftest.er1
a848cd7e 33517 ac_status=$?
ac1cb8d3
VS
33518 grep -v '^ *+' conftest.er1 >conftest.err
33519 rm -f conftest.er1
33520 cat conftest.err >&5
a848cd7e
SC
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); } &&
c228d3a4
RN
33523 { ac_try='test -z "$ac_c_werror_flag"
33524 || test ! -s conftest.err'
ac1cb8d3
VS
33525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526 (eval $ac_try) 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; } &&
33530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532 (eval $ac_try) 2>&5
33533 ac_status=$?
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); }; }; then
33536 eval "$as_ac_var=yes"
33537else
33538 echo "$as_me: failed program was:" >&5
33539sed 's/^/| /' conftest.$ac_ext >&5
33540
33541eval "$as_ac_var=no"
33542fi
ac1cb8d3
VS
33543rm -f conftest.err conftest.$ac_objext \
33544 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33545fi
33546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33548if test `eval echo '${'$as_ac_var'}'` = yes; then
33549 cat >>confdefs.h <<_ACEOF
33550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33551_ACEOF
33552
33553 cat >>confdefs.h <<\_ACEOF
33554#define HAVE_DLOPEN 1
33555_ACEOF
33556
33557 HAVE_DL_FUNCS=1
33558
33559else
33560
33561 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33562echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33563if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33564 echo $ECHO_N "(cached) $ECHO_C" >&6
33565else
33566 ac_check_lib_save_LIBS=$LIBS
33567LIBS="-ldl $LIBS"
33568cat >conftest.$ac_ext <<_ACEOF
33569/* confdefs.h. */
33570_ACEOF
33571cat confdefs.h >>conftest.$ac_ext
33572cat >>conftest.$ac_ext <<_ACEOF
33573/* end confdefs.h. */
33574
33575/* Override any gcc2 internal prototype to avoid an error. */
33576#ifdef __cplusplus
33577extern "C"
33578#endif
33579/* We use char because int might match the return type of a gcc2
33580 builtin and then its argument prototype would still apply. */
33581char dlopen ();
33582int
33583main ()
33584{
33585dlopen ();
33586 ;
33587 return 0;
33588}
33589_ACEOF
33590rm -f conftest.$ac_objext conftest$ac_exeext
33591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33592 (eval $ac_link) 2>conftest.er1
a848cd7e 33593 ac_status=$?
ac1cb8d3
VS
33594 grep -v '^ *+' conftest.er1 >conftest.err
33595 rm -f conftest.er1
33596 cat conftest.err >&5
a848cd7e
SC
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } &&
c228d3a4
RN
33599 { ac_try='test -z "$ac_c_werror_flag"
33600 || test ! -s conftest.err'
ac1cb8d3
VS
33601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33602 (eval $ac_try) 2>&5
33603 ac_status=$?
33604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605 (exit $ac_status); }; } &&
33606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33608 (eval $ac_try) 2>&5
33609 ac_status=$?
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); }; }; then
33612 ac_cv_lib_dl_dlopen=yes
33613else
33614 echo "$as_me: failed program was:" >&5
33615sed 's/^/| /' conftest.$ac_ext >&5
33616
33617ac_cv_lib_dl_dlopen=no
33618fi
ac1cb8d3
VS
33619rm -f conftest.err conftest.$ac_objext \
33620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33621LIBS=$ac_check_lib_save_LIBS
33622fi
33623echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33624echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33625if test $ac_cv_lib_dl_dlopen = yes; then
33626
33627 cat >>confdefs.h <<\_ACEOF
33628#define HAVE_DLOPEN 1
33629_ACEOF
33630
33631 HAVE_DL_FUNCS=1
33632 DL_LINK=" -ldl$DL_LINK"
33633
33634else
33635
33636
33637for ac_func in shl_load
33638do
33639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33640echo "$as_me:$LINENO: checking for $ac_func" >&5
33641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33642if eval "test \"\${$as_ac_var+set}\" = set"; then
33643 echo $ECHO_N "(cached) $ECHO_C" >&6
33644else
33645 cat >conftest.$ac_ext <<_ACEOF
33646/* confdefs.h. */
33647_ACEOF
33648cat confdefs.h >>conftest.$ac_ext
33649cat >>conftest.$ac_ext <<_ACEOF
33650/* end confdefs.h. */
ac1cb8d3
VS
33651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33653#define $ac_func innocuous_$ac_func
33654
a848cd7e
SC
33655/* System header to define __stub macros and hopefully few prototypes,
33656 which can conflict with char $ac_func (); below.
33657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33658 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33659
a848cd7e
SC
33660#ifdef __STDC__
33661# include <limits.h>
33662#else
33663# include <assert.h>
33664#endif
ac1cb8d3
VS
33665
33666#undef $ac_func
33667
a848cd7e
SC
33668/* Override any gcc2 internal prototype to avoid an error. */
33669#ifdef __cplusplus
33670extern "C"
33671{
33672#endif
33673/* We use char because int might match the return type of a gcc2
33674 builtin and then its argument prototype would still apply. */
33675char $ac_func ();
33676/* The GNU C library defines this for functions which it implements
33677 to always fail with ENOSYS. Some functions are actually named
33678 something starting with __ and the normal name is an alias. */
33679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33680choke me
33681#else
33682char (*f) () = $ac_func;
33683#endif
33684#ifdef __cplusplus
33685}
33686#endif
33687
33688int
33689main ()
33690{
33691return f != $ac_func;
33692 ;
33693 return 0;
33694}
33695_ACEOF
33696rm -f conftest.$ac_objext conftest$ac_exeext
33697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33698 (eval $ac_link) 2>conftest.er1
a848cd7e 33699 ac_status=$?
ac1cb8d3
VS
33700 grep -v '^ *+' conftest.er1 >conftest.err
33701 rm -f conftest.er1
33702 cat conftest.err >&5
a848cd7e
SC
33703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33704 (exit $ac_status); } &&
c228d3a4
RN
33705 { ac_try='test -z "$ac_c_werror_flag"
33706 || test ! -s conftest.err'
ac1cb8d3
VS
33707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33708 (eval $ac_try) 2>&5
33709 ac_status=$?
33710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711 (exit $ac_status); }; } &&
33712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33714 (eval $ac_try) 2>&5
33715 ac_status=$?
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); }; }; then
33718 eval "$as_ac_var=yes"
33719else
33720 echo "$as_me: failed program was:" >&5
33721sed 's/^/| /' conftest.$ac_ext >&5
33722
33723eval "$as_ac_var=no"
33724fi
ac1cb8d3
VS
33725rm -f conftest.err conftest.$ac_objext \
33726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33727fi
33728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33730if test `eval echo '${'$as_ac_var'}'` = yes; then
33731 cat >>confdefs.h <<_ACEOF
33732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33733_ACEOF
33734
33735 cat >>confdefs.h <<\_ACEOF
33736#define HAVE_SHL_LOAD 1
33737_ACEOF
33738
33739 HAVE_SHL_FUNCS=1
33740
33741else
33742
33743 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33744echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33745if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33746 echo $ECHO_N "(cached) $ECHO_C" >&6
33747else
33748 ac_check_lib_save_LIBS=$LIBS
33749LIBS="-lshl_load $LIBS"
33750cat >conftest.$ac_ext <<_ACEOF
33751/* confdefs.h. */
33752_ACEOF
33753cat confdefs.h >>conftest.$ac_ext
33754cat >>conftest.$ac_ext <<_ACEOF
33755/* end confdefs.h. */
33756
33757/* Override any gcc2 internal prototype to avoid an error. */
33758#ifdef __cplusplus
33759extern "C"
33760#endif
33761/* We use char because int might match the return type of a gcc2
33762 builtin and then its argument prototype would still apply. */
33763char dld ();
33764int
33765main ()
33766{
33767dld ();
33768 ;
33769 return 0;
33770}
33771_ACEOF
33772rm -f conftest.$ac_objext conftest$ac_exeext
33773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33774 (eval $ac_link) 2>conftest.er1
a848cd7e 33775 ac_status=$?
ac1cb8d3
VS
33776 grep -v '^ *+' conftest.er1 >conftest.err
33777 rm -f conftest.er1
33778 cat conftest.err >&5
a848cd7e
SC
33779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780 (exit $ac_status); } &&
c228d3a4
RN
33781 { ac_try='test -z "$ac_c_werror_flag"
33782 || test ! -s conftest.err'
ac1cb8d3
VS
33783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33784 (eval $ac_try) 2>&5
33785 ac_status=$?
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); }; } &&
33788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33790 (eval $ac_try) 2>&5
33791 ac_status=$?
33792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793 (exit $ac_status); }; }; then
33794 ac_cv_lib_shl_load_dld=yes
33795else
33796 echo "$as_me: failed program was:" >&5
33797sed 's/^/| /' conftest.$ac_ext >&5
33798
33799ac_cv_lib_shl_load_dld=no
33800fi
ac1cb8d3
VS
33801rm -f conftest.err conftest.$ac_objext \
33802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33803LIBS=$ac_check_lib_save_LIBS
33804fi
33805echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33806echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33807if test $ac_cv_lib_shl_load_dld = yes; then
33808
33809 HAVE_SHL_FUNCS=1
33810 DL_LINK=" -ldld$DL_LINK"
33811
33812fi
33813
33814
33815fi
33816done
33817
33818
33819fi
33820
33821
33822fi
33823done
33824
33825
33826 if test "$HAVE_DL_FUNCS" = 1; then
33827
33828for ac_func in dlerror
33829do
33830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33831echo "$as_me:$LINENO: checking for $ac_func" >&5
33832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33833if eval "test \"\${$as_ac_var+set}\" = set"; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33835else
33836 cat >conftest.$ac_ext <<_ACEOF
33837/* confdefs.h. */
33838_ACEOF
33839cat confdefs.h >>conftest.$ac_ext
33840cat >>conftest.$ac_ext <<_ACEOF
33841/* end confdefs.h. */
ac1cb8d3
VS
33842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33844#define $ac_func innocuous_$ac_func
33845
a848cd7e
SC
33846/* System header to define __stub macros and hopefully few prototypes,
33847 which can conflict with char $ac_func (); below.
33848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33849 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33850
a848cd7e
SC
33851#ifdef __STDC__
33852# include <limits.h>
33853#else
33854# include <assert.h>
33855#endif
ac1cb8d3
VS
33856
33857#undef $ac_func
33858
a848cd7e
SC
33859/* Override any gcc2 internal prototype to avoid an error. */
33860#ifdef __cplusplus
33861extern "C"
33862{
33863#endif
33864/* We use char because int might match the return type of a gcc2
33865 builtin and then its argument prototype would still apply. */
33866char $ac_func ();
33867/* The GNU C library defines this for functions which it implements
33868 to always fail with ENOSYS. Some functions are actually named
33869 something starting with __ and the normal name is an alias. */
33870#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33871choke me
33872#else
33873char (*f) () = $ac_func;
33874#endif
33875#ifdef __cplusplus
33876}
33877#endif
33878
33879int
33880main ()
33881{
33882return f != $ac_func;
33883 ;
33884 return 0;
33885}
33886_ACEOF
33887rm -f conftest.$ac_objext conftest$ac_exeext
33888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33889 (eval $ac_link) 2>conftest.er1
a848cd7e 33890 ac_status=$?
ac1cb8d3
VS
33891 grep -v '^ *+' conftest.er1 >conftest.err
33892 rm -f conftest.er1
33893 cat conftest.err >&5
a848cd7e
SC
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } &&
c228d3a4
RN
33896 { ac_try='test -z "$ac_c_werror_flag"
33897 || 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 eval "$as_ac_var=yes"
33910else
33911 echo "$as_me: failed program was:" >&5
33912sed 's/^/| /' conftest.$ac_ext >&5
33913
33914eval "$as_ac_var=no"
33915fi
ac1cb8d3
VS
33916rm -f conftest.err conftest.$ac_objext \
33917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33918fi
33919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33921if test `eval echo '${'$as_ac_var'}'` = yes; then
33922 cat >>confdefs.h <<_ACEOF
33923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33924_ACEOF
33925 cat >>confdefs.h <<\_ACEOF
33926#define HAVE_DLERROR 1
33927_ACEOF
33928
33929else
33930
33931 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33932echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33933if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33934 echo $ECHO_N "(cached) $ECHO_C" >&6
33935else
33936 ac_check_lib_save_LIBS=$LIBS
33937LIBS="-ldl $LIBS"
33938cat >conftest.$ac_ext <<_ACEOF
33939/* confdefs.h. */
33940_ACEOF
33941cat confdefs.h >>conftest.$ac_ext
33942cat >>conftest.$ac_ext <<_ACEOF
33943/* end confdefs.h. */
33944
33945/* Override any gcc2 internal prototype to avoid an error. */
33946#ifdef __cplusplus
33947extern "C"
33948#endif
33949/* We use char because int might match the return type of a gcc2
33950 builtin and then its argument prototype would still apply. */
33951char dlerror ();
33952int
33953main ()
33954{
33955dlerror ();
33956 ;
33957 return 0;
33958}
33959_ACEOF
33960rm -f conftest.$ac_objext conftest$ac_exeext
33961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33962 (eval $ac_link) 2>conftest.er1
a848cd7e 33963 ac_status=$?
ac1cb8d3
VS
33964 grep -v '^ *+' conftest.er1 >conftest.err
33965 rm -f conftest.er1
33966 cat conftest.err >&5
a848cd7e
SC
33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968 (exit $ac_status); } &&
c228d3a4
RN
33969 { ac_try='test -z "$ac_c_werror_flag"
33970 || test ! -s conftest.err'
ac1cb8d3
VS
33971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33972 (eval $ac_try) 2>&5
33973 ac_status=$?
33974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975 (exit $ac_status); }; } &&
33976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33978 (eval $ac_try) 2>&5
33979 ac_status=$?
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; }; then
33982 ac_cv_lib_dl_dlerror=yes
33983else
33984 echo "$as_me: failed program was:" >&5
33985sed 's/^/| /' conftest.$ac_ext >&5
33986
33987ac_cv_lib_dl_dlerror=no
33988fi
ac1cb8d3
VS
33989rm -f conftest.err conftest.$ac_objext \
33990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33991LIBS=$ac_check_lib_save_LIBS
33992fi
33993echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33994echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33995if test $ac_cv_lib_dl_dlerror = yes; then
33996 cat >>confdefs.h <<\_ACEOF
33997#define HAVE_DLERROR 1
33998_ACEOF
33999
34000fi
34001
34002
34003
34004fi
34005done
34006
34007 fi
34008 fi
34009
34010 if test "$HAVE_DL_FUNCS" = 0; then
34011 if test "$HAVE_SHL_FUNCS" = 0; then
34012 if test "$USE_UNIX" = 1; then
34013 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34014echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34015 wxUSE_DYNAMIC_LOADER=no
34016 wxUSE_DYNLIB_CLASS=no
34017 else
34018 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34019echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34020 fi
34021 fi
34022 fi
34023 fi
34024fi
34025
34026if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34027 cat >>confdefs.h <<\_ACEOF
34028#define wxUSE_DYNAMIC_LOADER 1
34029_ACEOF
34030
34031fi
34032if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34033 cat >>confdefs.h <<\_ACEOF
34034#define wxUSE_DYNLIB_CLASS 1
34035_ACEOF
34036
34037fi
34038
34039
34040
34041if test "$wxUSE_PLUGINS" = "yes" ; then
34042 if test "$wxUSE_SHARED" = "no" ; then
34043 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34044echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34045 wxUSE_PLUGINS=no
34046 fi
34047 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34048 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34049echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34050 wxUSE_PLUGINS=no
34051 fi
34052 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34053 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34054echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34055 wxUSE_PLUGINS=no
34056 fi
34057 if test "$wxUSE_PLUGINS" = "yes" ; then
34058 cat >>confdefs.h <<\_ACEOF
34059#define wxUSE_PLUGINS 1
34060_ACEOF
34061
34062 fi
34063fi
34064
34065
34066if test "$wxUSE_STL" = "yes"; then
34067 cat >>confdefs.h <<\_ACEOF
34068#define wxUSE_STL 1
34069_ACEOF
34070
34071fi
34072
34073if test "$wxUSE_APPLE_IEEE" = "yes"; then
34074 cat >>confdefs.h <<\_ACEOF
34075#define wxUSE_APPLE_IEEE 1
34076_ACEOF
34077
34078fi
34079
34080if test "$wxUSE_TIMER" = "yes"; then
34081 cat >>confdefs.h <<\_ACEOF
34082#define wxUSE_TIMER 1
34083_ACEOF
34084
34085fi
34086
34087WITH_PLUGIN_SDL=0
34088if test "$wxUSE_SOUND" = "yes"; then
34089 if test "$USE_UNIX" = "1" ; then
34090
34091for ac_header in sys/soundcard.h
34092do
34093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34094if eval "test \"\${$as_ac_Header+set}\" = set"; then
34095 echo "$as_me:$LINENO: checking for $ac_header" >&5
34096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34097if eval "test \"\${$as_ac_Header+set}\" = set"; then
34098 echo $ECHO_N "(cached) $ECHO_C" >&6
34099fi
34100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34102else
34103 # Is the header compilable?
34104echo "$as_me:$LINENO: checking $ac_header usability" >&5
34105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34106cat >conftest.$ac_ext <<_ACEOF
34107/* confdefs.h. */
34108_ACEOF
34109cat confdefs.h >>conftest.$ac_ext
34110cat >>conftest.$ac_ext <<_ACEOF
34111/* end confdefs.h. */
34112$ac_includes_default
34113#include <$ac_header>
34114_ACEOF
34115rm -f conftest.$ac_objext
34116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34117 (eval $ac_compile) 2>conftest.er1
a848cd7e 34118 ac_status=$?
ac1cb8d3
VS
34119 grep -v '^ *+' conftest.er1 >conftest.err
34120 rm -f conftest.er1
34121 cat conftest.err >&5
a848cd7e
SC
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); } &&
c228d3a4
RN
34124 { ac_try='test -z "$ac_c_werror_flag"
34125 || test ! -s conftest.err'
ac1cb8d3
VS
34126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127 (eval $ac_try) 2>&5
34128 ac_status=$?
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); }; } &&
34131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34133 (eval $ac_try) 2>&5
34134 ac_status=$?
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); }; }; then
34137 ac_header_compiler=yes
34138else
34139 echo "$as_me: failed program was:" >&5
34140sed 's/^/| /' conftest.$ac_ext >&5
34141
34142ac_header_compiler=no
34143fi
ac1cb8d3 34144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34145echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34146echo "${ECHO_T}$ac_header_compiler" >&6
34147
34148# Is the header present?
34149echo "$as_me:$LINENO: checking $ac_header presence" >&5
34150echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34151cat >conftest.$ac_ext <<_ACEOF
34152/* confdefs.h. */
34153_ACEOF
34154cat confdefs.h >>conftest.$ac_ext
34155cat >>conftest.$ac_ext <<_ACEOF
34156/* end confdefs.h. */
34157#include <$ac_header>
34158_ACEOF
34159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34161 ac_status=$?
34162 grep -v '^ *+' conftest.er1 >conftest.err
34163 rm -f conftest.er1
34164 cat conftest.err >&5
34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166 (exit $ac_status); } >/dev/null; then
34167 if test -s conftest.err; then
34168 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34170 else
34171 ac_cpp_err=
34172 fi
34173else
34174 ac_cpp_err=yes
34175fi
34176if test -z "$ac_cpp_err"; then
34177 ac_header_preproc=yes
34178else
34179 echo "$as_me: failed program was:" >&5
34180sed 's/^/| /' conftest.$ac_ext >&5
34181
34182 ac_header_preproc=no
34183fi
34184rm -f conftest.err conftest.$ac_ext
34185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34186echo "${ECHO_T}$ac_header_preproc" >&6
34187
34188# So? What about this header?
ac1cb8d3
VS
34189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34190 yes:no: )
a848cd7e
SC
34191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34195 ac_header_preproc=yes
a848cd7e 34196 ;;
ac1cb8d3 34197 no:yes:* )
a848cd7e
SC
34198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34205echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34210 (
34211 cat <<\_ASBOX
ac1cb8d3
VS
34212## ----------------------------------------- ##
34213## Report this to wx-dev@lists.wxwidgets.org ##
34214## ----------------------------------------- ##
a848cd7e
SC
34215_ASBOX
34216 ) |
34217 sed "s/^/$as_me: WARNING: /" >&2
34218 ;;
34219esac
34220echo "$as_me:$LINENO: checking for $ac_header" >&5
34221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34222if eval "test \"\${$as_ac_Header+set}\" = set"; then
34223 echo $ECHO_N "(cached) $ECHO_C" >&6
34224else
ac1cb8d3 34225 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34226fi
34227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34229
34230fi
34231if test `eval echo '${'$as_ac_Header'}'` = yes; then
34232 cat >>confdefs.h <<_ACEOF
34233#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34234_ACEOF
34235
34236fi
34237
34238done
34239
34240
34241 if test "$wxUSE_LIBSDL" != "no"; then
34242
34243# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34244if test "${with_sdl_prefix+set}" = set; then
34245 withval="$with_sdl_prefix"
34246 sdl_prefix="$withval"
34247else
34248 sdl_prefix=""
34249fi;
34250
34251# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34252if test "${with_sdl_exec_prefix+set}" = set; then
34253 withval="$with_sdl_exec_prefix"
34254 sdl_exec_prefix="$withval"
34255else
34256 sdl_exec_prefix=""
34257fi;
34258# Check whether --enable-sdltest or --disable-sdltest was given.
34259if test "${enable_sdltest+set}" = set; then
34260 enableval="$enable_sdltest"
34261
34262else
34263 enable_sdltest=yes
34264fi;
34265
34266 if test x$sdl_exec_prefix != x ; then
34267 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34268 if test x${SDL_CONFIG+set} != xset ; then
34269 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34270 fi
34271 fi
34272 if test x$sdl_prefix != x ; then
34273 sdl_args="$sdl_args --prefix=$sdl_prefix"
34274 if test x${SDL_CONFIG+set} != xset ; then
34275 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34276 fi
34277 fi
34278
34279
34280 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34281 # Extract the first word of "sdl-config", so it can be a program name with args.
34282set dummy sdl-config; ac_word=$2
34283echo "$as_me:$LINENO: checking for $ac_word" >&5
34284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34285if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34286 echo $ECHO_N "(cached) $ECHO_C" >&6
34287else
34288 case $SDL_CONFIG in
34289 [\\/]* | ?:[\\/]*)
34290 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34291 ;;
34292 *)
34293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34294for as_dir in $PATH
34295do
34296 IFS=$as_save_IFS
34297 test -z "$as_dir" && as_dir=.
34298 for ac_exec_ext in '' $ac_executable_extensions; do
34299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34300 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34302 break 2
34303 fi
34304done
34305done
34306
34307 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34308 ;;
34309esac
34310fi
34311SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34312
34313if test -n "$SDL_CONFIG"; then
34314 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34315echo "${ECHO_T}$SDL_CONFIG" >&6
34316else
34317 echo "$as_me:$LINENO: result: no" >&5
34318echo "${ECHO_T}no" >&6
34319fi
34320
34321 min_sdl_version=1.2.0
34322 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34323echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34324 no_sdl=""
34325 if test "$SDL_CONFIG" = "no" ; then
34326 no_sdl=yes
34327 else
34328 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34329 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34330
34331 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34332 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34333 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34334 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34335 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34336 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34337 if test "x$enable_sdltest" = "xyes" ; then
34338 ac_save_CFLAGS="$CFLAGS"
34339 ac_save_LIBS="$LIBS"
34340 CFLAGS="$CFLAGS $SDL_CFLAGS"
34341 LIBS="$LIBS $SDL_LIBS"
34342 rm -f conf.sdltest
34343 if test "$cross_compiling" = yes; then
34344 echo $ac_n "cross compiling; assumed OK... $ac_c"
34345else
34346 cat >conftest.$ac_ext <<_ACEOF
34347/* confdefs.h. */
34348_ACEOF
34349cat confdefs.h >>conftest.$ac_ext
34350cat >>conftest.$ac_ext <<_ACEOF
34351/* end confdefs.h. */
34352
34353#include <stdio.h>
34354#include <stdlib.h>
34355#include <string.h>
34356#include "SDL.h"
34357
34358char*
34359my_strdup (char *str)
34360{
34361 char *new_str;
34362
34363 if (str)
34364 {
34365 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34366 strcpy (new_str, str);
34367 }
34368 else
34369 new_str = NULL;
34370
34371 return new_str;
34372}
34373
34374int main (int argc, char *argv[])
34375{
34376 int major, minor, micro;
34377 char *tmp_version;
34378
34379 /* This hangs on some systems (?)
34380 system ("touch conf.sdltest");
34381 */
34382 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34383
34384 /* HP/UX 9 (%@#!) writes to sscanf strings */
34385 tmp_version = my_strdup("$min_sdl_version");
34386 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34387 printf("%s, bad version string\n", "$min_sdl_version");
34388 exit(1);
34389 }
34390
34391 if (($sdl_major_version > major) ||
34392 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34393 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34394 {
34395 return 0;
34396 }
34397 else
34398 {
34399 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34400 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34401 printf("*** best to upgrade to the required version.\n");
34402 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34403 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34404 printf("*** config.cache before re-running configure\n");
34405 return 1;
34406 }
34407}
34408
34409
34410_ACEOF
34411rm -f conftest$ac_exeext
34412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34413 (eval $ac_link) 2>&5
34414 ac_status=$?
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34418 (eval $ac_try) 2>&5
34419 ac_status=$?
34420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421 (exit $ac_status); }; }; then
34422 :
34423else
34424 echo "$as_me: program exited with status $ac_status" >&5
34425echo "$as_me: failed program was:" >&5
34426sed 's/^/| /' conftest.$ac_ext >&5
34427
34428( exit $ac_status )
34429no_sdl=yes
34430fi
ac1cb8d3 34431rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34432fi
34433 CFLAGS="$ac_save_CFLAGS"
34434 LIBS="$ac_save_LIBS"
34435 fi
34436 fi
34437 if test "x$no_sdl" = x ; then
34438 echo "$as_me:$LINENO: result: yes" >&5
34439echo "${ECHO_T}yes" >&6
34440
34441 EXTRALIBS_SDL="$SDL_LIBS"
34442 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34443 cat >>confdefs.h <<\_ACEOF
34444#define wxUSE_LIBSDL 1
34445_ACEOF
34446
34447
34448 else
34449 echo "$as_me:$LINENO: result: no" >&5
34450echo "${ECHO_T}no" >&6
34451 if test "$SDL_CONFIG" = "no" ; then
34452 echo "*** The sdl-config script installed by SDL could not be found"
34453 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34454 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34455 echo "*** full path to sdl-config."
34456 else
34457 if test -f conf.sdltest ; then
34458 :
34459 else
34460 echo "*** Could not run SDL test program, checking why..."
34461 CFLAGS="$CFLAGS $SDL_CFLAGS"
34462 LIBS="$LIBS $SDL_LIBS"
34463 cat >conftest.$ac_ext <<_ACEOF
34464/* confdefs.h. */
34465_ACEOF
34466cat confdefs.h >>conftest.$ac_ext
34467cat >>conftest.$ac_ext <<_ACEOF
34468/* end confdefs.h. */
34469
34470#include <stdio.h>
34471#include "SDL.h"
34472
34473int main(int argc, char *argv[])
34474{ return 0; }
34475#undef main
34476#define main K_and_R_C_main
34477
34478int
34479main ()
34480{
34481 return 0;
34482 ;
34483 return 0;
34484}
34485_ACEOF
34486rm -f conftest.$ac_objext conftest$ac_exeext
34487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34488 (eval $ac_link) 2>conftest.er1
a848cd7e 34489 ac_status=$?
ac1cb8d3
VS
34490 grep -v '^ *+' conftest.er1 >conftest.err
34491 rm -f conftest.er1
34492 cat conftest.err >&5
a848cd7e
SC
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); } &&
c228d3a4
RN
34495 { ac_try='test -z "$ac_c_werror_flag"
34496 || test ! -s conftest.err'
ac1cb8d3
VS
34497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34498 (eval $ac_try) 2>&5
34499 ac_status=$?
34500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501 (exit $ac_status); }; } &&
34502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34504 (eval $ac_try) 2>&5
34505 ac_status=$?
34506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507 (exit $ac_status); }; }; then
34508 echo "*** The test program compiled, but did not run. This usually means"
34509 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34510 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34511 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34512 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34513 echo "*** is required on your system"
34514 echo "***"
34515 echo "*** If you have an old version installed, it is best to remove it, although"
34516 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34517else
34518 echo "$as_me: failed program was:" >&5
34519sed 's/^/| /' conftest.$ac_ext >&5
34520
34521 echo "*** The test program failed to compile or link. See the file config.log for the"
34522 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34523 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34524 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34525fi
ac1cb8d3
VS
34526rm -f conftest.err conftest.$ac_objext \
34527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34528 CFLAGS="$ac_save_CFLAGS"
34529 LIBS="$ac_save_LIBS"
34530 fi
34531 fi
34532 SDL_CFLAGS=""
34533 SDL_LIBS=""
34534 wxUSE_LIBSDL="no"
34535 fi
34536
34537
34538 rm -f conf.sdltest
34539
34540 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34541 WITH_PLUGIN_SDL=1
34542 fi
34543 fi
34544 fi
34545
34546 cat >>confdefs.h <<\_ACEOF
34547#define wxUSE_SOUND 1
34548_ACEOF
34549
34550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34551fi
34552
34553if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34554 cat >>confdefs.h <<\_ACEOF
34555#define wxUSE_CMDLINE_PARSER 1
34556_ACEOF
34557
34558fi
34559
34560if test "$wxUSE_STOPWATCH" = "yes"; then
34561 cat >>confdefs.h <<\_ACEOF
34562#define wxUSE_STOPWATCH 1
34563_ACEOF
34564
34565fi
34566
34567if test "$wxUSE_DATETIME" = "yes"; then
34568 cat >>confdefs.h <<\_ACEOF
34569#define wxUSE_DATETIME 1
34570_ACEOF
34571
34572fi
34573
34574if test "$wxUSE_FILE" = "yes"; then
34575 cat >>confdefs.h <<\_ACEOF
34576#define wxUSE_FILE 1
34577_ACEOF
34578
34579fi
34580
34581if test "$wxUSE_FFILE" = "yes"; then
34582 cat >>confdefs.h <<\_ACEOF
34583#define wxUSE_FFILE 1
34584_ACEOF
34585
34586fi
34587
34588if test "$wxUSE_FILESYSTEM" = "yes"; then
34589 cat >>confdefs.h <<\_ACEOF
34590#define wxUSE_FILESYSTEM 1
34591_ACEOF
34592
34593fi
34594
34595if test "$wxUSE_FS_ZIP" = "yes"; then
34596 cat >>confdefs.h <<\_ACEOF
34597#define wxUSE_FS_ZIP 1
34598_ACEOF
34599
34600fi
34601
34602if test "$wxUSE_ZIPSTREAM" = "yes"; then
34603 cat >>confdefs.h <<\_ACEOF
34604#define wxUSE_ZIPSTREAM 1
34605_ACEOF
34606
34607fi
34608
a848cd7e
SC
34609if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34610 cat >>confdefs.h <<\_ACEOF
34611#define wxUSE_ON_FATAL_EXCEPTION 1
34612_ACEOF
34613
34614fi
34615
34616if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34617 cat >>confdefs.h <<\_ACEOF
34618#define wxUSE_SNGLINST_CHECKER 1
34619_ACEOF
34620
34621fi
34622
34623if test "$wxUSE_BUSYINFO" = "yes"; then
34624 cat >>confdefs.h <<\_ACEOF
34625#define wxUSE_BUSYINFO 1
34626_ACEOF
34627
34628fi
34629
34630if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34631 cat >>confdefs.h <<\_ACEOF
34632#define wxUSE_STD_IOSTREAM 1
34633_ACEOF
34634
34635fi
34636
34637if test "$wxUSE_TEXTBUFFER" = "yes"; then
34638 cat >>confdefs.h <<\_ACEOF
34639#define wxUSE_TEXTBUFFER 1
34640_ACEOF
34641
34642fi
34643
34644if test "$wxUSE_TEXTFILE" = "yes"; then
34645 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34646 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34647echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34648 else
34649 cat >>confdefs.h <<\_ACEOF
34650#define wxUSE_TEXTFILE 1
34651_ACEOF
34652
34653 fi
34654fi
34655
34656if test "$wxUSE_CONFIG" = "yes" ; then
34657 if test "$wxUSE_TEXTFILE" != "yes"; then
34658 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34659echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34660 else
34661 cat >>confdefs.h <<\_ACEOF
34662#define wxUSE_CONFIG 1
34663_ACEOF
34664
34665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34666 fi
34667fi
34668
34669if test "$wxUSE_INTL" = "yes" ; then
34670 if test "$wxUSE_FILE" != "yes"; then
34671 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34672echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34673 else
34674 cat >>confdefs.h <<\_ACEOF
34675#define wxUSE_INTL 1
34676_ACEOF
34677
34678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34679 GUIDIST="$GUIDIST INTL_DIST"
34680 fi
34681fi
34682
34683if test "$wxUSE_LOG" = "yes"; then
34684 cat >>confdefs.h <<\_ACEOF
34685#define wxUSE_LOG 1
34686_ACEOF
34687
34688
34689 if test "$wxUSE_LOGGUI" = "yes"; then
34690 cat >>confdefs.h <<\_ACEOF
34691#define wxUSE_LOGGUI 1
34692_ACEOF
34693
34694 fi
34695
34696 if test "$wxUSE_LOGWINDOW" = "yes"; then
34697 cat >>confdefs.h <<\_ACEOF
34698#define wxUSE_LOGWINDOW 1
34699_ACEOF
34700
34701 fi
34702
34703 if test "$wxUSE_LOGDIALOG" = "yes"; then
34704 cat >>confdefs.h <<\_ACEOF
34705#define wxUSE_LOG_DIALOG 1
34706_ACEOF
34707
34708 fi
34709fi
34710
34711if test "$wxUSE_LONGLONG" = "yes"; then
34712 cat >>confdefs.h <<\_ACEOF
34713#define wxUSE_LONGLONG 1
34714_ACEOF
34715
34716fi
34717
34718if test "$wxUSE_GEOMETRY" = "yes"; then
34719 cat >>confdefs.h <<\_ACEOF
34720#define wxUSE_GEOMETRY 1
34721_ACEOF
34722
34723fi
34724
34725if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34726 cat >>confdefs.h <<\_ACEOF
34727#define wxUSE_DIALUP_MANAGER 1
34728_ACEOF
34729
34730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34731fi
34732
34733if test "$wxUSE_STREAMS" = "yes" ; then
34734 cat >>confdefs.h <<\_ACEOF
34735#define wxUSE_STREAMS 1
34736_ACEOF
34737
34738fi
34739
34740
34741if test "$wxUSE_DATETIME" = "yes"; then
34742
34743for ac_func in strptime
34744do
34745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34746echo "$as_me:$LINENO: checking for $ac_func" >&5
34747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34748if eval "test \"\${$as_ac_var+set}\" = set"; then
34749 echo $ECHO_N "(cached) $ECHO_C" >&6
34750else
34751 cat >conftest.$ac_ext <<_ACEOF
34752/* confdefs.h. */
34753_ACEOF
34754cat confdefs.h >>conftest.$ac_ext
34755cat >>conftest.$ac_ext <<_ACEOF
34756/* end confdefs.h. */
ac1cb8d3
VS
34757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34759#define $ac_func innocuous_$ac_func
34760
a848cd7e
SC
34761/* System header to define __stub macros and hopefully few prototypes,
34762 which can conflict with char $ac_func (); below.
34763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34765
a848cd7e
SC
34766#ifdef __STDC__
34767# include <limits.h>
34768#else
34769# include <assert.h>
34770#endif
ac1cb8d3
VS
34771
34772#undef $ac_func
34773
a848cd7e
SC
34774/* Override any gcc2 internal prototype to avoid an error. */
34775#ifdef __cplusplus
34776extern "C"
34777{
34778#endif
34779/* We use char because int might match the return type of a gcc2
34780 builtin and then its argument prototype would still apply. */
34781char $ac_func ();
34782/* The GNU C library defines this for functions which it implements
34783 to always fail with ENOSYS. Some functions are actually named
34784 something starting with __ and the normal name is an alias. */
34785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34786choke me
34787#else
34788char (*f) () = $ac_func;
34789#endif
34790#ifdef __cplusplus
34791}
34792#endif
34793
34794int
34795main ()
34796{
34797return f != $ac_func;
34798 ;
34799 return 0;
34800}
34801_ACEOF
34802rm -f conftest.$ac_objext conftest$ac_exeext
34803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34804 (eval $ac_link) 2>conftest.er1
a848cd7e 34805 ac_status=$?
ac1cb8d3
VS
34806 grep -v '^ *+' conftest.er1 >conftest.err
34807 rm -f conftest.er1
34808 cat conftest.err >&5
a848cd7e
SC
34809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34810 (exit $ac_status); } &&
c228d3a4
RN
34811 { ac_try='test -z "$ac_c_werror_flag"
34812 || test ! -s conftest.err'
ac1cb8d3
VS
34813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34814 (eval $ac_try) 2>&5
34815 ac_status=$?
34816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34817 (exit $ac_status); }; } &&
34818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34820 (eval $ac_try) 2>&5
34821 ac_status=$?
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); }; }; then
34824 eval "$as_ac_var=yes"
34825else
34826 echo "$as_me: failed program was:" >&5
34827sed 's/^/| /' conftest.$ac_ext >&5
34828
34829eval "$as_ac_var=no"
34830fi
ac1cb8d3
VS
34831rm -f conftest.err conftest.$ac_objext \
34832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34833fi
34834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34836if test `eval echo '${'$as_ac_var'}'` = yes; then
34837 cat >>confdefs.h <<_ACEOF
34838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34839_ACEOF
34840
34841fi
34842done
34843
34844
34845 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34846echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34847if test "${wx_cv_var_timezone+set}" = set; then
34848 echo $ECHO_N "(cached) $ECHO_C" >&6
34849else
34850
34851 cat >conftest.$ac_ext <<_ACEOF
34852/* confdefs.h. */
34853_ACEOF
34854cat confdefs.h >>conftest.$ac_ext
34855cat >>conftest.$ac_ext <<_ACEOF
34856/* end confdefs.h. */
34857
34858 #include <time.h>
34859
34860int
34861main ()
34862{
34863
34864 int tz;
34865 tz = timezone;
34866
34867 ;
34868 return 0;
34869}
34870_ACEOF
34871rm -f conftest.$ac_objext
34872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34873 (eval $ac_compile) 2>conftest.er1
a848cd7e 34874 ac_status=$?
ac1cb8d3
VS
34875 grep -v '^ *+' conftest.er1 >conftest.err
34876 rm -f conftest.er1
34877 cat conftest.err >&5
a848cd7e
SC
34878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879 (exit $ac_status); } &&
c228d3a4
RN
34880 { ac_try='test -z "$ac_c_werror_flag"
34881 || test ! -s conftest.err'
ac1cb8d3
VS
34882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34883 (eval $ac_try) 2>&5
34884 ac_status=$?
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); }; } &&
34887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34889 (eval $ac_try) 2>&5
34890 ac_status=$?
34891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892 (exit $ac_status); }; }; then
34893
34894 wx_cv_var_timezone=timezone
34895
34896else
34897 echo "$as_me: failed program was:" >&5
34898sed 's/^/| /' conftest.$ac_ext >&5
34899
34900
34901 cat >conftest.$ac_ext <<_ACEOF
34902/* confdefs.h. */
34903_ACEOF
34904cat confdefs.h >>conftest.$ac_ext
34905cat >>conftest.$ac_ext <<_ACEOF
34906/* end confdefs.h. */
34907
34908 #include <time.h>
34909
34910int
34911main ()
34912{
34913
34914 int tz;
34915 tz = _timezone;
34916
34917 ;
34918 return 0;
34919}
34920_ACEOF
34921rm -f conftest.$ac_objext
34922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34923 (eval $ac_compile) 2>conftest.er1
a848cd7e 34924 ac_status=$?
ac1cb8d3
VS
34925 grep -v '^ *+' conftest.er1 >conftest.err
34926 rm -f conftest.er1
34927 cat conftest.err >&5
a848cd7e
SC
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); } &&
c228d3a4
RN
34930 { ac_try='test -z "$ac_c_werror_flag"
34931 || test ! -s conftest.err'
ac1cb8d3
VS
34932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34933 (eval $ac_try) 2>&5
34934 ac_status=$?
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); }; } &&
34937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34939 (eval $ac_try) 2>&5
34940 ac_status=$?
34941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942 (exit $ac_status); }; }; then
34943
34944 wx_cv_var_timezone=_timezone
34945
34946else
34947 echo "$as_me: failed program was:" >&5
34948sed 's/^/| /' conftest.$ac_ext >&5
34949
34950
34951 cat >conftest.$ac_ext <<_ACEOF
34952/* confdefs.h. */
34953_ACEOF
34954cat confdefs.h >>conftest.$ac_ext
34955cat >>conftest.$ac_ext <<_ACEOF
34956/* end confdefs.h. */
34957
34958 #include <time.h>
34959
34960int
34961main ()
34962{
34963
34964 int tz;
34965 tz = __timezone;
34966
34967 ;
34968 return 0;
34969}
34970_ACEOF
34971rm -f conftest.$ac_objext
34972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34973 (eval $ac_compile) 2>conftest.er1
a848cd7e 34974 ac_status=$?
ac1cb8d3
VS
34975 grep -v '^ *+' conftest.er1 >conftest.err
34976 rm -f conftest.er1
34977 cat conftest.err >&5
a848cd7e
SC
34978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979 (exit $ac_status); } &&
c228d3a4
RN
34980 { ac_try='test -z "$ac_c_werror_flag"
34981 || test ! -s conftest.err'
ac1cb8d3
VS
34982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34983 (eval $ac_try) 2>&5
34984 ac_status=$?
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); }; } &&
34987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34989 (eval $ac_try) 2>&5
34990 ac_status=$?
34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992 (exit $ac_status); }; }; then
34993
34994 wx_cv_var_timezone=__timezone
34995
34996else
34997 echo "$as_me: failed program was:" >&5
34998sed 's/^/| /' conftest.$ac_ext >&5
34999
35000
35001 if test "$USE_DOS" = 0 ; then
35002 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35003echo "$as_me: WARNING: no timezone variable" >&2;}
35004 fi
35005
35006
35007fi
ac1cb8d3 35008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35009
35010
35011fi
ac1cb8d3 35012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35013
35014
35015fi
ac1cb8d3 35016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35017
35018
35019fi
35020echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35021echo "${ECHO_T}$wx_cv_var_timezone" >&6
35022
35023 if test "x$wx_cv_var_timezone" != x ; then
35024 cat >>confdefs.h <<_ACEOF
35025#define WX_TIMEZONE $wx_cv_var_timezone
35026_ACEOF
35027
35028 fi
35029
35030
35031for ac_func in localtime
35032do
35033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35034echo "$as_me:$LINENO: checking for $ac_func" >&5
35035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35036if eval "test \"\${$as_ac_var+set}\" = set"; then
35037 echo $ECHO_N "(cached) $ECHO_C" >&6
35038else
35039 cat >conftest.$ac_ext <<_ACEOF
35040/* confdefs.h. */
35041_ACEOF
35042cat confdefs.h >>conftest.$ac_ext
35043cat >>conftest.$ac_ext <<_ACEOF
35044/* end confdefs.h. */
ac1cb8d3
VS
35045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35047#define $ac_func innocuous_$ac_func
35048
a848cd7e
SC
35049/* System header to define __stub macros and hopefully few prototypes,
35050 which can conflict with char $ac_func (); below.
35051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35053
a848cd7e
SC
35054#ifdef __STDC__
35055# include <limits.h>
35056#else
35057# include <assert.h>
35058#endif
ac1cb8d3
VS
35059
35060#undef $ac_func
35061
a848cd7e
SC
35062/* Override any gcc2 internal prototype to avoid an error. */
35063#ifdef __cplusplus
35064extern "C"
35065{
35066#endif
35067/* We use char because int might match the return type of a gcc2
35068 builtin and then its argument prototype would still apply. */
35069char $ac_func ();
35070/* The GNU C library defines this for functions which it implements
35071 to always fail with ENOSYS. Some functions are actually named
35072 something starting with __ and the normal name is an alias. */
35073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35074choke me
35075#else
35076char (*f) () = $ac_func;
35077#endif
35078#ifdef __cplusplus
35079}
35080#endif
35081
35082int
35083main ()
35084{
35085return f != $ac_func;
35086 ;
35087 return 0;
35088}
35089_ACEOF
35090rm -f conftest.$ac_objext conftest$ac_exeext
35091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35092 (eval $ac_link) 2>conftest.er1
a848cd7e 35093 ac_status=$?
ac1cb8d3
VS
35094 grep -v '^ *+' conftest.er1 >conftest.err
35095 rm -f conftest.er1
35096 cat conftest.err >&5
a848cd7e
SC
35097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098 (exit $ac_status); } &&
c228d3a4
RN
35099 { ac_try='test -z "$ac_c_werror_flag"
35100 || test ! -s conftest.err'
ac1cb8d3
VS
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
35103 ac_status=$?
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; } &&
35106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; }; then
35112 eval "$as_ac_var=yes"
35113else
35114 echo "$as_me: failed program was:" >&5
35115sed 's/^/| /' conftest.$ac_ext >&5
35116
35117eval "$as_ac_var=no"
35118fi
ac1cb8d3
VS
35119rm -f conftest.err conftest.$ac_objext \
35120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35121fi
35122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35124if test `eval echo '${'$as_ac_var'}'` = yes; then
35125 cat >>confdefs.h <<_ACEOF
35126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35127_ACEOF
35128
35129fi
35130done
35131
35132
35133 if test "$ac_cv_func_localtime" = "yes"; then
35134 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35135echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35136if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35137 echo $ECHO_N "(cached) $ECHO_C" >&6
35138else
35139
35140 cat >conftest.$ac_ext <<_ACEOF
35141/* confdefs.h. */
35142_ACEOF
35143cat confdefs.h >>conftest.$ac_ext
35144cat >>conftest.$ac_ext <<_ACEOF
35145/* end confdefs.h. */
35146
35147 #include <time.h>
35148
35149int
35150main ()
35151{
35152
35153 struct tm tm;
35154 tm.tm_gmtoff++;
35155
35156 ;
35157 return 0;
35158}
35159_ACEOF
35160rm -f conftest.$ac_objext
35161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35162 (eval $ac_compile) 2>conftest.er1
a848cd7e 35163 ac_status=$?
ac1cb8d3
VS
35164 grep -v '^ *+' conftest.er1 >conftest.err
35165 rm -f conftest.er1
35166 cat conftest.err >&5
a848cd7e
SC
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); } &&
c228d3a4
RN
35169 { ac_try='test -z "$ac_c_werror_flag"
35170 || test ! -s conftest.err'
ac1cb8d3
VS
35171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35172 (eval $ac_try) 2>&5
35173 ac_status=$?
35174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175 (exit $ac_status); }; } &&
35176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35178 (eval $ac_try) 2>&5
35179 ac_status=$?
35180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); }; }; then
35182
35183 wx_cv_struct_tm_has_gmtoff=yes
35184
35185else
35186 echo "$as_me: failed program was:" >&5
35187sed 's/^/| /' conftest.$ac_ext >&5
35188
35189wx_cv_struct_tm_has_gmtoff=no
35190
35191fi
ac1cb8d3 35192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35193
35194fi
35195echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35196echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35197 fi
35198
35199 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35200 cat >>confdefs.h <<\_ACEOF
35201#define WX_GMTOFF_IN_TM 1
35202_ACEOF
35203
35204 fi
35205
35206
35207
35208for ac_func in gettimeofday ftime
35209do
35210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35211echo "$as_me:$LINENO: checking for $ac_func" >&5
35212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35213if eval "test \"\${$as_ac_var+set}\" = set"; then
35214 echo $ECHO_N "(cached) $ECHO_C" >&6
35215else
35216 cat >conftest.$ac_ext <<_ACEOF
35217/* confdefs.h. */
35218_ACEOF
35219cat confdefs.h >>conftest.$ac_ext
35220cat >>conftest.$ac_ext <<_ACEOF
35221/* end confdefs.h. */
ac1cb8d3
VS
35222/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35224#define $ac_func innocuous_$ac_func
35225
a848cd7e
SC
35226/* System header to define __stub macros and hopefully few prototypes,
35227 which can conflict with char $ac_func (); below.
35228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35229 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35230
a848cd7e
SC
35231#ifdef __STDC__
35232# include <limits.h>
35233#else
35234# include <assert.h>
35235#endif
ac1cb8d3
VS
35236
35237#undef $ac_func
35238
a848cd7e
SC
35239/* Override any gcc2 internal prototype to avoid an error. */
35240#ifdef __cplusplus
35241extern "C"
35242{
35243#endif
35244/* We use char because int might match the return type of a gcc2
35245 builtin and then its argument prototype would still apply. */
35246char $ac_func ();
35247/* The GNU C library defines this for functions which it implements
35248 to always fail with ENOSYS. Some functions are actually named
35249 something starting with __ and the normal name is an alias. */
35250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35251choke me
35252#else
35253char (*f) () = $ac_func;
35254#endif
35255#ifdef __cplusplus
35256}
35257#endif
35258
35259int
35260main ()
35261{
35262return f != $ac_func;
35263 ;
35264 return 0;
35265}
35266_ACEOF
35267rm -f conftest.$ac_objext conftest$ac_exeext
35268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35269 (eval $ac_link) 2>conftest.er1
a848cd7e 35270 ac_status=$?
ac1cb8d3
VS
35271 grep -v '^ *+' conftest.er1 >conftest.err
35272 rm -f conftest.er1
35273 cat conftest.err >&5
a848cd7e
SC
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); } &&
c228d3a4
RN
35276 { ac_try='test -z "$ac_c_werror_flag"
35277 || test ! -s conftest.err'
ac1cb8d3
VS
35278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35279 (eval $ac_try) 2>&5
35280 ac_status=$?
35281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35282 (exit $ac_status); }; } &&
35283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35285 (eval $ac_try) 2>&5
35286 ac_status=$?
35287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288 (exit $ac_status); }; }; then
35289 eval "$as_ac_var=yes"
35290else
35291 echo "$as_me: failed program was:" >&5
35292sed 's/^/| /' conftest.$ac_ext >&5
35293
35294eval "$as_ac_var=no"
35295fi
ac1cb8d3
VS
35296rm -f conftest.err conftest.$ac_objext \
35297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35298fi
35299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35300echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35301if test `eval echo '${'$as_ac_var'}'` = yes; then
35302 cat >>confdefs.h <<_ACEOF
35303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35304_ACEOF
35305 break
35306fi
35307done
35308
35309
35310 if test "$ac_cv_func_gettimeofday" = "yes"; then
35311 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35312echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35313if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35314 echo $ECHO_N "(cached) $ECHO_C" >&6
35315else
35316
35317
35318
35319 ac_ext=cc
35320ac_cpp='$CXXCPP $CPPFLAGS'
35321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35324
35325
35326 cat >conftest.$ac_ext <<_ACEOF
35327/* confdefs.h. */
35328_ACEOF
35329cat confdefs.h >>conftest.$ac_ext
35330cat >>conftest.$ac_ext <<_ACEOF
35331/* end confdefs.h. */
35332
35333 #include <sys/time.h>
35334 #include <unistd.h>
35335
35336int
35337main ()
35338{
35339
35340 struct timeval tv;
35341 gettimeofday(&tv, NULL);
35342
35343 ;
35344 return 0;
35345}
35346_ACEOF
35347rm -f conftest.$ac_objext
35348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35349 (eval $ac_compile) 2>conftest.er1
a848cd7e 35350 ac_status=$?
ac1cb8d3
VS
35351 grep -v '^ *+' conftest.er1 >conftest.err
35352 rm -f conftest.er1
35353 cat conftest.err >&5
a848cd7e
SC
35354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355 (exit $ac_status); } &&
c228d3a4
RN
35356 { ac_try='test -z "$ac_cxx_werror_flag"
35357 || test ! -s conftest.err'
ac1cb8d3
VS
35358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35359 (eval $ac_try) 2>&5
35360 ac_status=$?
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); }; } &&
35363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35365 (eval $ac_try) 2>&5
35366 ac_status=$?
35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368 (exit $ac_status); }; }; then
35369 wx_cv_func_gettimeofday_has_2_args=yes
35370else
35371 echo "$as_me: failed program was:" >&5
35372sed 's/^/| /' conftest.$ac_ext >&5
35373
35374cat >conftest.$ac_ext <<_ACEOF
35375/* confdefs.h. */
35376_ACEOF
35377cat confdefs.h >>conftest.$ac_ext
35378cat >>conftest.$ac_ext <<_ACEOF
35379/* end confdefs.h. */
35380
35381 #include <sys/time.h>
35382 #include <unistd.h>
35383
35384int
35385main ()
35386{
35387
35388 struct timeval tv;
35389 gettimeofday(&tv);
35390
35391 ;
35392 return 0;
35393}
35394_ACEOF
35395rm -f conftest.$ac_objext
35396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35397 (eval $ac_compile) 2>conftest.er1
a848cd7e 35398 ac_status=$?
ac1cb8d3
VS
35399 grep -v '^ *+' conftest.er1 >conftest.err
35400 rm -f conftest.er1
35401 cat conftest.err >&5
a848cd7e
SC
35402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403 (exit $ac_status); } &&
c228d3a4
RN
35404 { ac_try='test -z "$ac_cxx_werror_flag"
35405 || test ! -s conftest.err'
ac1cb8d3
VS
35406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35407 (eval $ac_try) 2>&5
35408 ac_status=$?
35409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410 (exit $ac_status); }; } &&
35411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35413 (eval $ac_try) 2>&5
35414 ac_status=$?
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); }; }; then
35417 wx_cv_func_gettimeofday_has_2_args=no
35418else
35419 echo "$as_me: failed program was:" >&5
35420sed 's/^/| /' conftest.$ac_ext >&5
35421
35422
35423 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35424echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35425 wx_cv_func_gettimeofday_has_2_args=unknown
35426
35427
35428fi
ac1cb8d3 35429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35430
35431fi
ac1cb8d3 35432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35433 ac_ext=c
35434ac_cpp='$CPP $CPPFLAGS'
35435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35437ac_compiler_gnu=$ac_cv_c_compiler_gnu
35438
35439
35440fi
35441echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35442echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35443
35444 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35445 cat >>confdefs.h <<\_ACEOF
35446#define WX_GETTIMEOFDAY_NO_TZ 1
35447_ACEOF
35448
35449 fi
35450 fi
35451
35452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35453fi
35454
35455
35456if test "$wxUSE_SOCKETS" = "yes"; then
35457 if test "$wxUSE_MGL" = "1"; then
35458 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35459echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35460 wxUSE_SOCKETS="no"
35461 fi
35462fi
35463
35464if test "$wxUSE_SOCKETS" = "yes"; then
35465 if test "$TOOLKIT" != "MSW"; then
35466 echo "$as_me:$LINENO: checking for socket" >&5
35467echo $ECHO_N "checking for socket... $ECHO_C" >&6
35468if test "${ac_cv_func_socket+set}" = set; then
35469 echo $ECHO_N "(cached) $ECHO_C" >&6
35470else
35471 cat >conftest.$ac_ext <<_ACEOF
35472/* confdefs.h. */
35473_ACEOF
35474cat confdefs.h >>conftest.$ac_ext
35475cat >>conftest.$ac_ext <<_ACEOF
35476/* end confdefs.h. */
ac1cb8d3
VS
35477/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35479#define socket innocuous_socket
35480
a848cd7e
SC
35481/* System header to define __stub macros and hopefully few prototypes,
35482 which can conflict with char socket (); below.
35483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35484 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35485
a848cd7e
SC
35486#ifdef __STDC__
35487# include <limits.h>
35488#else
35489# include <assert.h>
35490#endif
ac1cb8d3
VS
35491
35492#undef socket
35493
a848cd7e
SC
35494/* Override any gcc2 internal prototype to avoid an error. */
35495#ifdef __cplusplus
35496extern "C"
35497{
35498#endif
35499/* We use char because int might match the return type of a gcc2
35500 builtin and then its argument prototype would still apply. */
35501char socket ();
35502/* The GNU C library defines this for functions which it implements
35503 to always fail with ENOSYS. Some functions are actually named
35504 something starting with __ and the normal name is an alias. */
35505#if defined (__stub_socket) || defined (__stub___socket)
35506choke me
35507#else
35508char (*f) () = socket;
35509#endif
35510#ifdef __cplusplus
35511}
35512#endif
35513
35514int
35515main ()
35516{
35517return f != socket;
35518 ;
35519 return 0;
35520}
35521_ACEOF
35522rm -f conftest.$ac_objext conftest$ac_exeext
35523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35524 (eval $ac_link) 2>conftest.er1
a848cd7e 35525 ac_status=$?
ac1cb8d3
VS
35526 grep -v '^ *+' conftest.er1 >conftest.err
35527 rm -f conftest.er1
35528 cat conftest.err >&5
a848cd7e
SC
35529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35530 (exit $ac_status); } &&
c228d3a4
RN
35531 { ac_try='test -z "$ac_c_werror_flag"
35532 || test ! -s conftest.err'
ac1cb8d3
VS
35533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35534 (eval $ac_try) 2>&5
35535 ac_status=$?
35536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537 (exit $ac_status); }; } &&
35538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35540 (eval $ac_try) 2>&5
35541 ac_status=$?
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); }; }; then
35544 ac_cv_func_socket=yes
35545else
35546 echo "$as_me: failed program was:" >&5
35547sed 's/^/| /' conftest.$ac_ext >&5
35548
35549ac_cv_func_socket=no
35550fi
ac1cb8d3
VS
35551rm -f conftest.err conftest.$ac_objext \
35552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35553fi
35554echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35555echo "${ECHO_T}$ac_cv_func_socket" >&6
35556if test $ac_cv_func_socket = yes; then
35557 :
35558else
35559
35560 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35561echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35562if test "${ac_cv_lib_socket_socket+set}" = set; then
35563 echo $ECHO_N "(cached) $ECHO_C" >&6
35564else
35565 ac_check_lib_save_LIBS=$LIBS
35566LIBS="-lsocket $LIBS"
35567cat >conftest.$ac_ext <<_ACEOF
35568/* confdefs.h. */
35569_ACEOF
35570cat confdefs.h >>conftest.$ac_ext
35571cat >>conftest.$ac_ext <<_ACEOF
35572/* end confdefs.h. */
35573
35574/* Override any gcc2 internal prototype to avoid an error. */
35575#ifdef __cplusplus
35576extern "C"
35577#endif
35578/* We use char because int might match the return type of a gcc2
35579 builtin and then its argument prototype would still apply. */
35580char socket ();
35581int
35582main ()
35583{
35584socket ();
35585 ;
35586 return 0;
35587}
35588_ACEOF
35589rm -f conftest.$ac_objext conftest$ac_exeext
35590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35591 (eval $ac_link) 2>conftest.er1
a848cd7e 35592 ac_status=$?
ac1cb8d3
VS
35593 grep -v '^ *+' conftest.er1 >conftest.err
35594 rm -f conftest.er1
35595 cat conftest.err >&5
a848cd7e
SC
35596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597 (exit $ac_status); } &&
c228d3a4
RN
35598 { ac_try='test -z "$ac_c_werror_flag"
35599 || test ! -s conftest.err'
ac1cb8d3
VS
35600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35601 (eval $ac_try) 2>&5
35602 ac_status=$?
35603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); }; } &&
35605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35607 (eval $ac_try) 2>&5
35608 ac_status=$?
35609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610 (exit $ac_status); }; }; then
35611 ac_cv_lib_socket_socket=yes
35612else
35613 echo "$as_me: failed program was:" >&5
35614sed 's/^/| /' conftest.$ac_ext >&5
35615
35616ac_cv_lib_socket_socket=no
35617fi
ac1cb8d3
VS
35618rm -f conftest.err conftest.$ac_objext \
35619 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35620LIBS=$ac_check_lib_save_LIBS
35621fi
35622echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35623echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35624if test $ac_cv_lib_socket_socket = yes; then
35625 if test "$INET_LINK" != " -lsocket"; then
35626 INET_LINK="$INET_LINK -lsocket"
35627 fi
35628else
35629
35630 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35631echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35632 wxUSE_SOCKETS=no
35633
35634
35635fi
35636
35637
35638
35639fi
35640
35641 fi
35642fi
35643
35644if test "$wxUSE_SOCKETS" = "yes" ; then
35645 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35646 ac_ext=cc
35647ac_cpp='$CXXCPP $CPPFLAGS'
35648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35651
35652 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35653echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35654if test "${wx_cv_type_getsockname3+set}" = set; then
35655 echo $ECHO_N "(cached) $ECHO_C" >&6
35656else
35657
35658 cat >conftest.$ac_ext <<_ACEOF
35659/* confdefs.h. */
35660_ACEOF
35661cat confdefs.h >>conftest.$ac_ext
35662cat >>conftest.$ac_ext <<_ACEOF
35663/* end confdefs.h. */
35664
35665 #include <sys/types.h>
35666 #include <sys/socket.h>
35667
35668int
35669main ()
35670{
35671
35672 socklen_t len;
35673 getsockname(0, 0, &len);
35674
35675 ;
35676 return 0;
35677}
35678_ACEOF
35679rm -f conftest.$ac_objext
35680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35681 (eval $ac_compile) 2>conftest.er1
a848cd7e 35682 ac_status=$?
ac1cb8d3
VS
35683 grep -v '^ *+' conftest.er1 >conftest.err
35684 rm -f conftest.er1
35685 cat conftest.err >&5
a848cd7e
SC
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); } &&
c228d3a4
RN
35688 { ac_try='test -z "$ac_cxx_werror_flag"
35689 || test ! -s conftest.err'
ac1cb8d3
VS
35690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35691 (eval $ac_try) 2>&5
35692 ac_status=$?
35693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694 (exit $ac_status); }; } &&
35695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35697 (eval $ac_try) 2>&5
35698 ac_status=$?
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); }; }; then
35701 wx_cv_type_getsockname3=socklen_t
35702else
35703 echo "$as_me: failed program was:" >&5
35704sed 's/^/| /' conftest.$ac_ext >&5
35705
35706
35707 CFLAGS_OLD="$CFLAGS"
35708 if test "$GCC" = yes ; then
35709 CFLAGS="$CFLAGS -Werror"
35710 fi
35711
35712 cat >conftest.$ac_ext <<_ACEOF
35713/* confdefs.h. */
35714_ACEOF
35715cat confdefs.h >>conftest.$ac_ext
35716cat >>conftest.$ac_ext <<_ACEOF
35717/* end confdefs.h. */
35718
35719 #include <sys/types.h>
35720 #include <sys/socket.h>
35721
35722int
35723main ()
35724{
35725
35726 size_t len;
35727 getsockname(0, 0, &len);
35728
35729 ;
35730 return 0;
35731}
35732_ACEOF
35733rm -f conftest.$ac_objext
35734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35735 (eval $ac_compile) 2>conftest.er1
a848cd7e 35736 ac_status=$?
ac1cb8d3
VS
35737 grep -v '^ *+' conftest.er1 >conftest.err
35738 rm -f conftest.er1
35739 cat conftest.err >&5
a848cd7e
SC
35740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35741 (exit $ac_status); } &&
c228d3a4
RN
35742 { ac_try='test -z "$ac_cxx_werror_flag"
35743 || test ! -s conftest.err'
ac1cb8d3
VS
35744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35745 (eval $ac_try) 2>&5
35746 ac_status=$?
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); }; } &&
35749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35751 (eval $ac_try) 2>&5
35752 ac_status=$?
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); }; }; then
35755 wx_cv_type_getsockname3=size_t
35756else
35757 echo "$as_me: failed program was:" >&5
35758sed 's/^/| /' conftest.$ac_ext >&5
35759
35760cat >conftest.$ac_ext <<_ACEOF
35761/* confdefs.h. */
35762_ACEOF
35763cat confdefs.h >>conftest.$ac_ext
35764cat >>conftest.$ac_ext <<_ACEOF
35765/* end confdefs.h. */
35766
35767 #include <sys/types.h>
35768 #include <sys/socket.h>
35769
35770int
35771main ()
35772{
35773
35774 int len;
35775 getsockname(0, 0, &len);
35776
35777 ;
35778 return 0;
35779}
35780_ACEOF
35781rm -f conftest.$ac_objext
35782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35783 (eval $ac_compile) 2>conftest.er1
a848cd7e 35784 ac_status=$?
ac1cb8d3
VS
35785 grep -v '^ *+' conftest.er1 >conftest.err
35786 rm -f conftest.er1
35787 cat conftest.err >&5
a848cd7e
SC
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } &&
c228d3a4
RN
35790 { ac_try='test -z "$ac_cxx_werror_flag"
35791 || test ! -s conftest.err'
ac1cb8d3
VS
35792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35793 (eval $ac_try) 2>&5
35794 ac_status=$?
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); }; } &&
35797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799 (eval $ac_try) 2>&5
35800 ac_status=$?
35801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); }; }; then
35803 wx_cv_type_getsockname3=int
35804else
35805 echo "$as_me: failed program was:" >&5
35806sed 's/^/| /' conftest.$ac_ext >&5
35807
35808wx_cv_type_getsockname3=unknown
35809
35810fi
ac1cb8d3 35811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35812
35813fi
ac1cb8d3 35814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35815
35816 CFLAGS="$CFLAGS_OLD"
35817
35818
35819fi
ac1cb8d3 35820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35821
35822fi
35823echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35824echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35825
35826 if test "$wx_cv_type_getsockname3" = "unknown"; then
35827 wxUSE_SOCKETS=no
35828 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35829echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35830 else
35831 cat >>confdefs.h <<_ACEOF
35832#define SOCKLEN_T $wx_cv_type_getsockname3
35833_ACEOF
35834
35835 fi
4d4ff94c
VZ
35836 ac_ext=c
35837ac_cpp='$CPP $CPPFLAGS'
35838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35840ac_compiler_gnu=$ac_cv_c_compiler_gnu
35841
a848cd7e
SC
35842 fi
35843fi
35844
35845if test "$wxUSE_SOCKETS" = "yes" ; then
35846 cat >>confdefs.h <<\_ACEOF
35847#define wxUSE_SOCKETS 1
35848_ACEOF
35849
35850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35851fi
35852
35853if test "$wxUSE_PROTOCOL" = "yes"; then
35854 if test "$wxUSE_SOCKETS" != "yes"; then
35855 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35856echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35857 wxUSE_PROTOCOL=no
35858 fi
35859fi
35860
35861if test "$wxUSE_PROTOCOL" = "yes"; then
35862 cat >>confdefs.h <<\_ACEOF
35863#define wxUSE_PROTOCOL 1
35864_ACEOF
35865
35866
35867 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35868 cat >>confdefs.h <<\_ACEOF
35869#define wxUSE_PROTOCOL_HTTP 1
35870_ACEOF
35871
35872 fi
35873 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35874 cat >>confdefs.h <<\_ACEOF
35875#define wxUSE_PROTOCOL_FTP 1
35876_ACEOF
35877
35878 fi
35879 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35880 cat >>confdefs.h <<\_ACEOF
35881#define wxUSE_PROTOCOL_FILE 1
35882_ACEOF
35883
35884 fi
35885else
35886 if test "$wxUSE_FS_INET" = "yes"; then
35887 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35888echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35889 wxUSE_FS_INET="no"
35890 fi
35891fi
35892
35893if test "$wxUSE_URL" = "yes"; then
35894 if test "$wxUSE_PROTOCOL" != "yes"; then
35895 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35896echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35897 wxUSE_URL=no
35898 fi
35899 if test "$wxUSE_URL" = "yes"; then
35900 cat >>confdefs.h <<\_ACEOF
35901#define wxUSE_URL 1
35902_ACEOF
35903
35904 fi
35905fi
35906
35907if test "$wxUSE_FS_INET" = "yes"; then
35908 cat >>confdefs.h <<\_ACEOF
35909#define wxUSE_FS_INET 1
35910_ACEOF
35911
35912fi
35913
35914
35915if test "$wxUSE_GUI" = "yes"; then
35916
35917 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35918 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35919echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35920 wxUSE_JOYSTICK=no
35921 fi
35922
35923 if test "$TOOLKIT" != "MSW"; then
35924 if test "$wxUSE_JOYSTICK" = "yes"; then
35925
35926for ac_header in linux/joystick.h
35927do
35928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35929if eval "test \"\${$as_ac_Header+set}\" = set"; then
35930 echo "$as_me:$LINENO: checking for $ac_header" >&5
35931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35932if eval "test \"\${$as_ac_Header+set}\" = set"; then
35933 echo $ECHO_N "(cached) $ECHO_C" >&6
35934fi
35935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35937else
35938 # Is the header compilable?
35939echo "$as_me:$LINENO: checking $ac_header usability" >&5
35940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35941cat >conftest.$ac_ext <<_ACEOF
35942/* confdefs.h. */
35943_ACEOF
35944cat confdefs.h >>conftest.$ac_ext
35945cat >>conftest.$ac_ext <<_ACEOF
35946/* end confdefs.h. */
35947$ac_includes_default
35948#include <$ac_header>
35949_ACEOF
35950rm -f conftest.$ac_objext
35951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35952 (eval $ac_compile) 2>conftest.er1
a848cd7e 35953 ac_status=$?
ac1cb8d3
VS
35954 grep -v '^ *+' conftest.er1 >conftest.err
35955 rm -f conftest.er1
35956 cat conftest.err >&5
a848cd7e
SC
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); } &&
c228d3a4
RN
35959 { ac_try='test -z "$ac_c_werror_flag"
35960 || test ! -s conftest.err'
ac1cb8d3
VS
35961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962 (eval $ac_try) 2>&5
35963 ac_status=$?
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); }; } &&
35966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35968 (eval $ac_try) 2>&5
35969 ac_status=$?
35970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971 (exit $ac_status); }; }; then
35972 ac_header_compiler=yes
35973else
35974 echo "$as_me: failed program was:" >&5
35975sed 's/^/| /' conftest.$ac_ext >&5
35976
35977ac_header_compiler=no
35978fi
ac1cb8d3 35979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35981echo "${ECHO_T}$ac_header_compiler" >&6
35982
35983# Is the header present?
35984echo "$as_me:$LINENO: checking $ac_header presence" >&5
35985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35986cat >conftest.$ac_ext <<_ACEOF
35987/* confdefs.h. */
35988_ACEOF
35989cat confdefs.h >>conftest.$ac_ext
35990cat >>conftest.$ac_ext <<_ACEOF
35991/* end confdefs.h. */
35992#include <$ac_header>
35993_ACEOF
35994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35996 ac_status=$?
35997 grep -v '^ *+' conftest.er1 >conftest.err
35998 rm -f conftest.er1
35999 cat conftest.err >&5
36000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001 (exit $ac_status); } >/dev/null; then
36002 if test -s conftest.err; then
36003 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36005 else
36006 ac_cpp_err=
36007 fi
36008else
36009 ac_cpp_err=yes
36010fi
36011if test -z "$ac_cpp_err"; then
36012 ac_header_preproc=yes
36013else
36014 echo "$as_me: failed program was:" >&5
36015sed 's/^/| /' conftest.$ac_ext >&5
36016
36017 ac_header_preproc=no
36018fi
36019rm -f conftest.err conftest.$ac_ext
36020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36021echo "${ECHO_T}$ac_header_preproc" >&6
36022
36023# So? What about this header?
ac1cb8d3
VS
36024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36025 yes:no: )
a848cd7e
SC
36026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36030 ac_header_preproc=yes
a848cd7e 36031 ;;
ac1cb8d3 36032 no:yes:* )
a848cd7e
SC
36033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36045 (
36046 cat <<\_ASBOX
ac1cb8d3
VS
36047## ----------------------------------------- ##
36048## Report this to wx-dev@lists.wxwidgets.org ##
36049## ----------------------------------------- ##
a848cd7e
SC
36050_ASBOX
36051 ) |
36052 sed "s/^/$as_me: WARNING: /" >&2
36053 ;;
36054esac
36055echo "$as_me:$LINENO: checking for $ac_header" >&5
36056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36057if eval "test \"\${$as_ac_Header+set}\" = set"; then
36058 echo $ECHO_N "(cached) $ECHO_C" >&6
36059else
ac1cb8d3 36060 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36061fi
36062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36064
36065fi
36066if test `eval echo '${'$as_ac_Header'}'` = yes; then
36067 cat >>confdefs.h <<_ACEOF
36068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36069_ACEOF
36070
36071fi
36072
36073done
36074
36075 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36076 wxUSE_JOYSTICK=no
36077 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36078echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36079 fi
36080 fi
36081 fi
36082
36083 if test "$wxUSE_JOYSTICK" = "yes"; then
36084 cat >>confdefs.h <<\_ACEOF
36085#define wxUSE_JOYSTICK 1
36086_ACEOF
36087
36088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36089 fi
36090fi
36091
36092
36093
36094if test "$wxUSE_FONTMAP" = "yes" ; then
36095 cat >>confdefs.h <<\_ACEOF
36096#define wxUSE_FONTMAP 1
36097_ACEOF
36098
36099fi
36100
36101if test "$wxUSE_UNICODE" = "yes" ; then
36102 cat >>confdefs.h <<\_ACEOF
36103#define wxUSE_UNICODE 1
36104_ACEOF
36105
36106
36107 if test "$USE_WIN32" != 1; then
36108 wxUSE_UNICODE_MSLU=no
36109 fi
36110
36111 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36112 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36113echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36114if test "${ac_cv_lib_unicows_main+set}" = set; then
36115 echo $ECHO_N "(cached) $ECHO_C" >&6
36116else
36117 ac_check_lib_save_LIBS=$LIBS
36118LIBS="-lunicows $LIBS"
36119cat >conftest.$ac_ext <<_ACEOF
36120/* confdefs.h. */
36121_ACEOF
36122cat confdefs.h >>conftest.$ac_ext
36123cat >>conftest.$ac_ext <<_ACEOF
36124/* end confdefs.h. */
36125
36126
36127int
36128main ()
36129{
36130main ();
36131 ;
36132 return 0;
36133}
36134_ACEOF
36135rm -f conftest.$ac_objext conftest$ac_exeext
36136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36137 (eval $ac_link) 2>conftest.er1
a848cd7e 36138 ac_status=$?
ac1cb8d3
VS
36139 grep -v '^ *+' conftest.er1 >conftest.err
36140 rm -f conftest.er1
36141 cat conftest.err >&5
a848cd7e
SC
36142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); } &&
c228d3a4
RN
36144 { ac_try='test -z "$ac_c_werror_flag"
36145 || test ! -s conftest.err'
ac1cb8d3
VS
36146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36147 (eval $ac_try) 2>&5
36148 ac_status=$?
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); }; } &&
36151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36153 (eval $ac_try) 2>&5
36154 ac_status=$?
36155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156 (exit $ac_status); }; }; then
36157 ac_cv_lib_unicows_main=yes
36158else
36159 echo "$as_me: failed program was:" >&5
36160sed 's/^/| /' conftest.$ac_ext >&5
36161
36162ac_cv_lib_unicows_main=no
36163fi
ac1cb8d3
VS
36164rm -f conftest.err conftest.$ac_objext \
36165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36166LIBS=$ac_check_lib_save_LIBS
36167fi
36168echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36169echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36170if test $ac_cv_lib_unicows_main = yes; then
36171
36172 cat >>confdefs.h <<\_ACEOF
36173#define wxUSE_UNICODE_MSLU 1
36174_ACEOF
36175
36176
36177else
36178
36179 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36180 Applications will only run on Windows NT/2000/XP!" >&5
36181echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36182 Applications will only run on Windows NT/2000/XP!" >&2;}
36183 wxUSE_UNICODE_MSLU=no
36184
36185fi
36186
36187 fi
36188fi
36189
36190if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36191 cat >>confdefs.h <<\_ACEOF
36192#define wxUSE_EXPERIMENTAL_PRINTF 1
36193_ACEOF
36194
36195fi
36196
36197
36198if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36199 cat >>confdefs.h <<\_ACEOF
36200#define wxUSE_POSTSCRIPT 1
36201_ACEOF
36202
36203fi
36204
36205cat >>confdefs.h <<\_ACEOF
36206#define wxUSE_AFM_FOR_POSTSCRIPT 1
36207_ACEOF
36208
36209
36210cat >>confdefs.h <<\_ACEOF
36211#define wxUSE_NORMALIZED_PS_FONTS 1
36212_ACEOF
36213
36214
36215
36216if test "$wxUSE_CONSTRAINTS" = "yes"; then
36217 cat >>confdefs.h <<\_ACEOF
36218#define wxUSE_CONSTRAINTS 1
36219_ACEOF
36220
36221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36222fi
36223
8a7b1113
VZ
36224if test "$wxUSE_MDI" = "yes"; then
36225 cat >>confdefs.h <<\_ACEOF
36226#define wxUSE_MDI 1
36227_ACEOF
36228
36229
36230 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36231 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36232#define wxUSE_MDI_ARCHITECTURE 1
36233_ACEOF
36234
8a7b1113
VZ
36235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36236 fi
a848cd7e
SC
36237fi
36238
36239if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36240 cat >>confdefs.h <<\_ACEOF
36241#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36242_ACEOF
36243
36244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36245 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36247 fi
36248fi
36249
36250if test "$wxUSE_HELP" = "yes"; then
36251 cat >>confdefs.h <<\_ACEOF
36252#define wxUSE_HELP 1
36253_ACEOF
36254
36255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36256
36257 if test "$wxUSE_MSW" = 1; then
36258 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36259 cat >>confdefs.h <<\_ACEOF
36260#define wxUSE_MS_HTML_HELP 1
36261_ACEOF
36262
36263 fi
36264 fi
36265
36266 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36267 if test "$wxUSE_HTML" = "yes"; then
36268 cat >>confdefs.h <<\_ACEOF
36269#define wxUSE_WXHTML_HELP 1
36270_ACEOF
36271
36272 else
36273 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36274echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36275 wxUSE_WXHTML_HELP=no
36276 fi
36277 fi
36278fi
36279
36280if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36281 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36282 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36283echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36284 else
36285 cat >>confdefs.h <<\_ACEOF
36286#define wxUSE_PRINTING_ARCHITECTURE 1
36287_ACEOF
36288
36289 fi
36290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36291fi
36292
36293if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36294 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36295echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36296 { (exit 1); exit 1; }; }
36297fi
36298
36299
36300if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36301 -o "$wxUSE_CLIPBOARD" = "yes" \
36302 -o "$wxUSE_OLE" = "yes" \
36303 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36304
36305for ac_header in ole2.h
36306do
36307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36308if eval "test \"\${$as_ac_Header+set}\" = set"; then
36309 echo "$as_me:$LINENO: checking for $ac_header" >&5
36310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36311if eval "test \"\${$as_ac_Header+set}\" = set"; then
36312 echo $ECHO_N "(cached) $ECHO_C" >&6
36313fi
36314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36316else
36317 # Is the header compilable?
36318echo "$as_me:$LINENO: checking $ac_header usability" >&5
36319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36320cat >conftest.$ac_ext <<_ACEOF
36321/* confdefs.h. */
36322_ACEOF
36323cat confdefs.h >>conftest.$ac_ext
36324cat >>conftest.$ac_ext <<_ACEOF
36325/* end confdefs.h. */
36326$ac_includes_default
36327#include <$ac_header>
36328_ACEOF
36329rm -f conftest.$ac_objext
36330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36331 (eval $ac_compile) 2>conftest.er1
a848cd7e 36332 ac_status=$?
ac1cb8d3
VS
36333 grep -v '^ *+' conftest.er1 >conftest.err
36334 rm -f conftest.er1
36335 cat conftest.err >&5
a848cd7e
SC
36336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36337 (exit $ac_status); } &&
c228d3a4
RN
36338 { ac_try='test -z "$ac_c_werror_flag"
36339 || test ! -s conftest.err'
ac1cb8d3
VS
36340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36341 (eval $ac_try) 2>&5
36342 ac_status=$?
36343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36344 (exit $ac_status); }; } &&
36345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36347 (eval $ac_try) 2>&5
36348 ac_status=$?
36349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36350 (exit $ac_status); }; }; then
36351 ac_header_compiler=yes
36352else
36353 echo "$as_me: failed program was:" >&5
36354sed 's/^/| /' conftest.$ac_ext >&5
36355
36356ac_header_compiler=no
36357fi
ac1cb8d3 36358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36360echo "${ECHO_T}$ac_header_compiler" >&6
36361
36362# Is the header present?
36363echo "$as_me:$LINENO: checking $ac_header presence" >&5
36364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36365cat >conftest.$ac_ext <<_ACEOF
36366/* confdefs.h. */
36367_ACEOF
36368cat confdefs.h >>conftest.$ac_ext
36369cat >>conftest.$ac_ext <<_ACEOF
36370/* end confdefs.h. */
36371#include <$ac_header>
36372_ACEOF
36373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36375 ac_status=$?
36376 grep -v '^ *+' conftest.er1 >conftest.err
36377 rm -f conftest.er1
36378 cat conftest.err >&5
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); } >/dev/null; then
36381 if test -s conftest.err; then
36382 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36384 else
36385 ac_cpp_err=
36386 fi
36387else
36388 ac_cpp_err=yes
36389fi
36390if test -z "$ac_cpp_err"; then
36391 ac_header_preproc=yes
36392else
36393 echo "$as_me: failed program was:" >&5
36394sed 's/^/| /' conftest.$ac_ext >&5
36395
36396 ac_header_preproc=no
36397fi
36398rm -f conftest.err conftest.$ac_ext
36399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36400echo "${ECHO_T}$ac_header_preproc" >&6
36401
36402# So? What about this header?
ac1cb8d3
VS
36403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36404 yes:no: )
a848cd7e
SC
36405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36409 ac_header_preproc=yes
a848cd7e 36410 ;;
ac1cb8d3 36411 no:yes:* )
a848cd7e
SC
36412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36424 (
36425 cat <<\_ASBOX
ac1cb8d3
VS
36426## ----------------------------------------- ##
36427## Report this to wx-dev@lists.wxwidgets.org ##
36428## ----------------------------------------- ##
a848cd7e
SC
36429_ASBOX
36430 ) |
36431 sed "s/^/$as_me: WARNING: /" >&2
36432 ;;
36433esac
36434echo "$as_me:$LINENO: checking for $ac_header" >&5
36435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36436if eval "test \"\${$as_ac_Header+set}\" = set"; then
36437 echo $ECHO_N "(cached) $ECHO_C" >&6
36438else
ac1cb8d3 36439 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36440fi
36441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36443
36444fi
36445if test `eval echo '${'$as_ac_Header'}'` = yes; then
36446 cat >>confdefs.h <<_ACEOF
36447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36448_ACEOF
36449
36450fi
36451
36452done
36453
36454
36455 if test "$ac_cv_header_ole2_h" = "yes" ; then
36456 if test "$GCC" = yes ; then
36457
36458
36459 ac_ext=cc
36460ac_cpp='$CXXCPP $CPPFLAGS'
36461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36464
36465
36466 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36467echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36468 cat >conftest.$ac_ext <<_ACEOF
36469/* confdefs.h. */
36470_ACEOF
36471cat confdefs.h >>conftest.$ac_ext
36472cat >>conftest.$ac_ext <<_ACEOF
36473/* end confdefs.h. */
36474#include <windows.h>
36475 #include <ole2.h>
36476int
36477main ()
36478{
36479
36480 ;
36481 return 0;
36482}
36483_ACEOF
36484rm -f conftest.$ac_objext
36485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36486 (eval $ac_compile) 2>conftest.er1
a848cd7e 36487 ac_status=$?
ac1cb8d3
VS
36488 grep -v '^ *+' conftest.er1 >conftest.err
36489 rm -f conftest.er1
36490 cat conftest.err >&5
a848cd7e
SC
36491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 (exit $ac_status); } &&
c228d3a4
RN
36493 { ac_try='test -z "$ac_cxx_werror_flag"
36494 || test ! -s conftest.err'
ac1cb8d3
VS
36495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36496 (eval $ac_try) 2>&5
36497 ac_status=$?
36498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499 (exit $ac_status); }; } &&
36500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36502 (eval $ac_try) 2>&5
36503 ac_status=$?
36504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505 (exit $ac_status); }; }; then
36506 echo "$as_me:$LINENO: result: no" >&5
36507echo "${ECHO_T}no" >&6
36508else
36509 echo "$as_me: failed program was:" >&5
36510sed 's/^/| /' conftest.$ac_ext >&5
36511
36512echo "$as_me:$LINENO: result: yes" >&5
36513echo "${ECHO_T}yes" >&6
36514 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36515fi
ac1cb8d3 36516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36517 ac_ext=c
36518ac_cpp='$CPP $CPPFLAGS'
36519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36521ac_compiler_gnu=$ac_cv_c_compiler_gnu
36522
a848cd7e
SC
36523 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36524 if test "$wxUSE_OLE" = "yes" ; then
36525 cat >>confdefs.h <<\_ACEOF
36526#define wxUSE_OLE 1
36527_ACEOF
36528
36529 fi
36530 fi
36531
36532 if test "$wxUSE_DATAOBJ" = "yes" ; then
36533 cat >>confdefs.h <<\_ACEOF
36534#define wxUSE_DATAOBJ 1
36535_ACEOF
36536
36537 fi
36538 else
36539 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36540echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36541
36542 wxUSE_CLIPBOARD=no
36543 wxUSE_DRAG_AND_DROP=no
36544 wxUSE_DATAOBJ=no
36545 wxUSE_OLE=no
36546 fi
36547
36548 if test "$wxUSE_METAFILE" = "yes"; then
36549 cat >>confdefs.h <<\_ACEOF
36550#define wxUSE_METAFILE 1
36551_ACEOF
36552
36553
36554 cat >>confdefs.h <<\_ACEOF
36555#define wxUSE_ENH_METAFILE 1
36556_ACEOF
36557
36558 fi
36559fi
36560
36561if test "$wxUSE_IPC" = "yes"; then
36562 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36563 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36564echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36565 fi
36566
36567 cat >>confdefs.h <<\_ACEOF
36568#define wxUSE_IPC 1
36569_ACEOF
36570
36571fi
36572
36573if test "$wxUSE_CLIPBOARD" = "yes"; then
36574 if test "$wxUSE_MGL" = 1; then
36575 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36576echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36577 wxUSE_CLIPBOARD=no
36578 fi
36579
36580 if test "$wxUSE_CLIPBOARD" = "yes"; then
36581 cat >>confdefs.h <<\_ACEOF
36582#define wxUSE_CLIPBOARD 1
36583_ACEOF
36584
36585
36586 cat >>confdefs.h <<\_ACEOF
36587#define wxUSE_DATAOBJ 1
36588_ACEOF
36589
36590 fi
36591fi
36592
36593if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36594 if test "$wxUSE_GTK" = 1; then
36595 if test "$WXGTK12" != 1; then
36596 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36597echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36598 wxUSE_DRAG_AND_DROP=no
36599 fi
36600 fi
36601
36602 if test "$wxUSE_MOTIF" = 1; then
36603 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36604echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36605 wxUSE_DRAG_AND_DROP=no
36606 fi
36607
36608 if test "$wxUSE_X11" = 1; then
36609 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36610echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36611 wxUSE_DRAG_AND_DROP=no
36612 fi
36613
36614 if test "$wxUSE_MGL" = 1; then
36615 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36616echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36617 wxUSE_DRAG_AND_DROP=no
36618 fi
36619
36620 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36621 cat >>confdefs.h <<\_ACEOF
36622#define wxUSE_DRAG_AND_DROP 1
36623_ACEOF
36624
36625 fi
36626
36627fi
36628
36629if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36631fi
36632
36633if test "$wxUSE_SPLINES" = "yes" ; then
36634 cat >>confdefs.h <<\_ACEOF
36635#define wxUSE_SPLINES 1
36636_ACEOF
36637
36638fi
36639
36640
36641USES_CONTROLS=0
36642if test "$wxUSE_CONTROLS" = "yes"; then
36643 USES_CONTROLS=1
36644fi
36645
36646if test "$wxUSE_ACCEL" = "yes"; then
36647 cat >>confdefs.h <<\_ACEOF
36648#define wxUSE_ACCEL 1
36649_ACEOF
36650
36651 USES_CONTROLS=1
36652fi
36653
36654if test "$wxUSE_BUTTON" = "yes"; then
36655 cat >>confdefs.h <<\_ACEOF
36656#define wxUSE_BUTTON 1
36657_ACEOF
36658
36659 USES_CONTROLS=1
36660fi
36661
36662if test "$wxUSE_BMPBUTTON" = "yes"; then
36663 cat >>confdefs.h <<\_ACEOF
36664#define wxUSE_BMPBUTTON 1
36665_ACEOF
36666
36667 USES_CONTROLS=1
36668fi
36669
36670if test "$wxUSE_CALCTRL" = "yes"; then
36671 cat >>confdefs.h <<\_ACEOF
36672#define wxUSE_CALENDARCTRL 1
36673_ACEOF
36674
36675 USES_CONTROLS=1
36676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36677fi
36678
36679if test "$wxUSE_CARET" = "yes"; then
36680 cat >>confdefs.h <<\_ACEOF
36681#define wxUSE_CARET 1
36682_ACEOF
36683
36684 USES_CONTROLS=1
36685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36686fi
36687
36688if test "$wxUSE_COMBOBOX" = "yes"; then
36689 cat >>confdefs.h <<\_ACEOF
36690#define wxUSE_COMBOBOX 1
36691_ACEOF
36692
36693 USES_CONTROLS=1
36694fi
36695
36696if test "$wxUSE_CHOICE" = "yes"; then
36697 cat >>confdefs.h <<\_ACEOF
36698#define wxUSE_CHOICE 1
36699_ACEOF
36700
36701 USES_CONTROLS=1
36702fi
36703
92bbdbcd
WS
36704if test "$wxUSE_CHOICEBOOK" = "yes"; then
36705 cat >>confdefs.h <<\_ACEOF
36706#define wxUSE_CHOICEBOOK 1
36707_ACEOF
36708
36709 USES_CONTROLS=1
36710fi
36711
a848cd7e
SC
36712if test "$wxUSE_CHECKBOX" = "yes"; then
36713 cat >>confdefs.h <<\_ACEOF
36714#define wxUSE_CHECKBOX 1
36715_ACEOF
36716
36717 USES_CONTROLS=1
36718fi
36719
36720if test "$wxUSE_CHECKLST" = "yes"; then
36721 cat >>confdefs.h <<\_ACEOF
36722#define wxUSE_CHECKLISTBOX 1
36723_ACEOF
36724
36725 USES_CONTROLS=1
36726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36727fi
36728
36729if test "$wxUSE_DISPLAY" = "yes"; then
36730 cat >>confdefs.h <<\_ACEOF
36731#define wxUSE_DISPLAY 1
36732_ACEOF
36733
36734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36735fi
36736
36737if test "$wxUSE_GAUGE" = "yes"; then
36738 cat >>confdefs.h <<\_ACEOF
36739#define wxUSE_GAUGE 1
36740_ACEOF
36741
36742 USES_CONTROLS=1
36743fi
36744
36745if test "$wxUSE_GRID" = "yes"; then
36746 cat >>confdefs.h <<\_ACEOF
36747#define wxUSE_GRID 1
36748_ACEOF
36749
36750 USES_CONTROLS=1
36751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36752fi
36753
36754if test "$wxUSE_IMAGLIST" = "yes"; then
36755 cat >>confdefs.h <<\_ACEOF
36756#define wxUSE_IMAGLIST 1
36757_ACEOF
36758
36759fi
36760
36761if test "$wxUSE_LISTBOOK" = "yes"; then
36762 cat >>confdefs.h <<\_ACEOF
36763#define wxUSE_LISTBOOK 1
36764_ACEOF
36765
36766 USES_CONTROLS=1
36767fi
36768
36769if test "$wxUSE_LISTBOX" = "yes"; then
36770 cat >>confdefs.h <<\_ACEOF
36771#define wxUSE_LISTBOX 1
36772_ACEOF
36773
36774 USES_CONTROLS=1
36775fi
36776
36777if test "$wxUSE_LISTCTRL" = "yes"; then
36778 if test "$wxUSE_IMAGLIST" = "yes"; then
36779 cat >>confdefs.h <<\_ACEOF
36780#define wxUSE_LISTCTRL 1
36781_ACEOF
36782
36783 USES_CONTROLS=1
36784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36785 else
36786 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36787echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36788 fi
36789fi
36790
36791if test "$wxUSE_NOTEBOOK" = "yes"; then
36792 cat >>confdefs.h <<\_ACEOF
36793#define wxUSE_NOTEBOOK 1
36794_ACEOF
36795
36796 USES_CONTROLS=1
36797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36798fi
36799
36800
36801if test "$wxUSE_RADIOBOX" = "yes"; then
36802 cat >>confdefs.h <<\_ACEOF
36803#define wxUSE_RADIOBOX 1
36804_ACEOF
36805
36806 USES_CONTROLS=1
36807fi
36808
36809if test "$wxUSE_RADIOBTN" = "yes"; then
36810 cat >>confdefs.h <<\_ACEOF
36811#define wxUSE_RADIOBTN 1
36812_ACEOF
36813
36814 USES_CONTROLS=1
36815fi
36816
36817if test "$wxUSE_SASH" = "yes"; then
36818 cat >>confdefs.h <<\_ACEOF
36819#define wxUSE_SASH 1
36820_ACEOF
36821
36822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36823fi
36824
36825if test "$wxUSE_SCROLLBAR" = "yes"; then
36826 cat >>confdefs.h <<\_ACEOF
36827#define wxUSE_SCROLLBAR 1
36828_ACEOF
36829
36830 USES_CONTROLS=1
36831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36832fi
36833
36834if test "$wxUSE_SLIDER" = "yes"; then
36835 cat >>confdefs.h <<\_ACEOF
36836#define wxUSE_SLIDER 1
36837_ACEOF
36838
36839 USES_CONTROLS=1
36840fi
36841
36842if test "$wxUSE_SPINBTN" = "yes"; then
36843 cat >>confdefs.h <<\_ACEOF
36844#define wxUSE_SPINBTN 1
36845_ACEOF
36846
36847 USES_CONTROLS=1
36848fi
36849
36850if test "$wxUSE_SPINCTRL" = "yes"; then
36851 cat >>confdefs.h <<\_ACEOF
36852#define wxUSE_SPINCTRL 1
36853_ACEOF
36854
36855 USES_CONTROLS=1
36856fi
36857
36858if test "$wxUSE_SPLITTER" = "yes"; then
36859 cat >>confdefs.h <<\_ACEOF
36860#define wxUSE_SPLITTER 1
36861_ACEOF
36862
36863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36864fi
36865
36866if test "$wxUSE_STATBMP" = "yes"; then
36867 cat >>confdefs.h <<\_ACEOF
36868#define wxUSE_STATBMP 1
36869_ACEOF
36870
36871 USES_CONTROLS=1
36872fi
36873
36874if test "$wxUSE_STATBOX" = "yes"; then
36875 cat >>confdefs.h <<\_ACEOF
36876#define wxUSE_STATBOX 1
36877_ACEOF
36878
36879 USES_CONTROLS=1
36880fi
36881
36882if test "$wxUSE_STATTEXT" = "yes"; then
36883 cat >>confdefs.h <<\_ACEOF
36884#define wxUSE_STATTEXT 1
36885_ACEOF
36886
36887 USES_CONTROLS=1
36888fi
36889
36890if test "$wxUSE_STATLINE" = "yes"; then
36891 cat >>confdefs.h <<\_ACEOF
36892#define wxUSE_STATLINE 1
36893_ACEOF
36894
36895 USES_CONTROLS=1
36896fi
36897
36898if test "$wxUSE_STATUSBAR" = "yes"; then
36899 cat >>confdefs.h <<\_ACEOF
36900#define wxUSE_STATUSBAR 1
36901_ACEOF
36902
36903 USES_CONTROLS=1
36904
36905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36906fi
36907
36908if test "$wxUSE_TABDIALOG" = "yes"; then
36909 cat >>confdefs.h <<\_ACEOF
36910#define wxUSE_TAB_DIALOG 1
36911_ACEOF
36912
36913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36914fi
36915
36916if test "$wxUSE_TEXTCTRL" = "yes"; then
36917 cat >>confdefs.h <<\_ACEOF
36918#define wxUSE_TEXTCTRL 1
36919_ACEOF
36920
36921 USES_CONTROLS=1
36922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36923fi
36924
36925if test "$wxUSE_TOGGLEBTN" = "yes"; then
36926 if test "$wxUSE_COCOA" = 1 ; then
36927 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36928echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36929 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36930 else
36931 if test "$wxUSE_PM" = 1; then
36932 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36933echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36934 wxUSE_TOGGLEBTN=no
36935 fi
a848cd7e
SC
36936 fi
36937 if test "$wxUSE_UNIVERSAL" = "yes"; then
36938 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36939echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36940 wxUSE_TOGGLEBTN=no
36941 fi
36942
36943 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36944 cat >>confdefs.h <<\_ACEOF
36945#define wxUSE_TOGGLEBTN 1
36946_ACEOF
36947
36948 USES_CONTROLS=1
36949 fi
36950fi
36951
36952if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36953 cat >>confdefs.h <<\_ACEOF
36954#define wxUSE_TOOLBAR_SIMPLE 1
36955_ACEOF
36956
36957 wxUSE_TOOLBAR="yes"
36958 USES_CONTROLS=1
36959fi
36960
36961if test "$wxUSE_TOOLBAR" = "yes"; then
36962 cat >>confdefs.h <<\_ACEOF
36963#define wxUSE_TOOLBAR 1
36964_ACEOF
36965
36966 USES_CONTROLS=1
36967
36968 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36969 wxUSE_TOOLBAR_NATIVE="yes"
36970 fi
36971
36972 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36973 cat >>confdefs.h <<\_ACEOF
36974#define wxUSE_TOOLBAR_NATIVE 1
36975_ACEOF
36976
36977 USES_CONTROLS=1
36978 fi
36979
36980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36981fi
36982
36983if test "$wxUSE_TOOLTIPS" = "yes"; then
36984 if test "$wxUSE_MOTIF" = 1; then
36985 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36986echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36987 else
36988 if test "$wxUSE_UNIVERSAL" = "yes"; then
36989 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36990echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36991 else
36992 cat >>confdefs.h <<\_ACEOF
36993#define wxUSE_TOOLTIPS 1
36994_ACEOF
36995
36996 fi
36997 fi
36998fi
36999
37000if test "$wxUSE_TREECTRL" = "yes"; then
37001 if test "$wxUSE_IMAGLIST" = "yes"; then
37002 cat >>confdefs.h <<\_ACEOF
37003#define wxUSE_TREECTRL 1
37004_ACEOF
37005
37006 USES_CONTROLS=1
37007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37008 else
37009 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37010echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37011 fi
37012fi
37013
37014if test "$wxUSE_POPUPWIN" = "yes"; then
37015 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37016 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37017echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37018 else
37019 if test "$wxUSE_PM" = 1; then
37020 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37021echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37022 else
37023 cat >>confdefs.h <<\_ACEOF
37024#define wxUSE_POPUPWIN 1
37025_ACEOF
37026
37027
37028 USES_CONTROLS=1
37029 fi
37030 fi
37031fi
37032
37033if test "$wxUSE_TIPWINDOW" = "yes"; then
37034 if test "$wxUSE_PM" = 1; then
37035 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37036echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37037 else
37038 cat >>confdefs.h <<\_ACEOF
37039#define wxUSE_TIPWINDOW 1
37040_ACEOF
37041
37042 fi
37043fi
37044
37045if test "$USES_CONTROLS" = 1; then
37046 cat >>confdefs.h <<\_ACEOF
37047#define wxUSE_CONTROLS 1
37048_ACEOF
37049
37050fi
37051
37052
37053if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37054 cat >>confdefs.h <<\_ACEOF
37055#define wxUSE_ACCESSIBILITY 1
37056_ACEOF
37057
37058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37059fi
37060
37061if test "$wxUSE_DRAGIMAGE" = "yes"; then
37062 cat >>confdefs.h <<\_ACEOF
37063#define wxUSE_DRAGIMAGE 1
37064_ACEOF
37065
37066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37067fi
37068
37069if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37070 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37071 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37072echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37073 else
37074 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37075#define wxUSE_EXCEPTIONS 1
37076_ACEOF
37077
07bea8f0
VS
37078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37079 fi
a848cd7e
SC
37080fi
37081
37082USE_HTML=0
37083if test "$wxUSE_HTML" = "yes"; then
37084 cat >>confdefs.h <<\_ACEOF
37085#define wxUSE_HTML 1
37086_ACEOF
37087
37088 USE_HTML=1
37089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37090 if test "$wxUSE_MAC" = 1; then
37091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37092 fi
a848cd7e 37093fi
646b6ec1 37094if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
37095 if test "$wxUSE_MAC" = 1; then
37096 old_CPPFLAGS="$CPPFLAGS"
37097 CPPFLAGS="$CPPFLAGS -x objective-c++"
37098 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37099echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37100if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37101 echo $ECHO_N "(cached) $ECHO_C" >&6
37102else
37103 cat >conftest.$ac_ext <<_ACEOF
37104/* confdefs.h. */
37105_ACEOF
37106cat confdefs.h >>conftest.$ac_ext
37107cat >>conftest.$ac_ext <<_ACEOF
37108/* end confdefs.h. */
37109#include <Carbon/Carbon.h>
37110
37111#include <WebKit/HIWebView.h>
37112_ACEOF
37113rm -f conftest.$ac_objext
37114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37115 (eval $ac_compile) 2>conftest.er1
37116 ac_status=$?
37117 grep -v '^ *+' conftest.er1 >conftest.err
37118 rm -f conftest.er1
37119 cat conftest.err >&5
37120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121 (exit $ac_status); } &&
c228d3a4
RN
37122 { ac_try='test -z "$ac_c_werror_flag"
37123 || test ! -s conftest.err'
07bea8f0
VS
37124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37125 (eval $ac_try) 2>&5
37126 ac_status=$?
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); }; } &&
37129 { ac_try='test -s conftest.$ac_objext'
37130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37131 (eval $ac_try) 2>&5
37132 ac_status=$?
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); }; }; then
37135 ac_cv_header_WebKit_HIWebView_h=yes
37136else
37137 echo "$as_me: failed program was:" >&5
37138sed 's/^/| /' conftest.$ac_ext >&5
37139
37140ac_cv_header_WebKit_HIWebView_h=no
37141fi
37142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37143fi
37144echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37145echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37146if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37147
37148 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37149#define wxUSE_WEBKIT 1
37150_ACEOF
37151
07bea8f0
VS
37152 WEBKIT_LINK="-framework WebKit"
37153
37154else
37155
37156 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37157echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37158 wxUSE_WEBKIT=no
37159
646b6ec1
VS
37160fi
37161
07bea8f0
VS
37162
37163 CPPFLAGS="$old_CPPFLAGS"
37164 elif test "$wxUSE_COCOA" = 1; then
37165 cat >>confdefs.h <<\_ACEOF
37166#define wxUSE_WEBKIT 1
37167_ACEOF
37168
37169 else
37170 wxUSE_WEBKIT=no
37171 fi
37172fi
37173
9a8f0513
VS
37174USE_XRC=0
37175if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37176 if test "$wxUSE_XML" != "yes"; then
37177 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37178echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37179 wxUSE_XRC=no
37180 else
37181 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37182#define wxUSE_XRC 1
37183_ACEOF
37184
d2ebf0b7
VS
37185 USE_XRC=1
37186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37187 fi
9a8f0513 37188fi
07bea8f0 37189
a848cd7e
SC
37190if test "$wxUSE_MENUS" = "yes"; then
37191 cat >>confdefs.h <<\_ACEOF
37192#define wxUSE_MENUS 1
37193_ACEOF
37194
37195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37196fi
37197
37198if test "$wxUSE_METAFILE" = "yes"; then
37199 cat >>confdefs.h <<\_ACEOF
37200#define wxUSE_METAFILE 1
37201_ACEOF
37202
37203fi
37204
37205if test "$wxUSE_MIMETYPE" = "yes"; then
37206 cat >>confdefs.h <<\_ACEOF
37207#define wxUSE_MIMETYPE 1
37208_ACEOF
37209
37210fi
37211
37212if test "$wxUSE_MINIFRAME" = "yes"; then
37213 cat >>confdefs.h <<\_ACEOF
37214#define wxUSE_MINIFRAME 1
37215_ACEOF
37216
37217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37218fi
37219
37220if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37221 cat >>confdefs.h <<\_ACEOF
37222#define wxUSE_SYSTEM_OPTIONS 1
37223_ACEOF
37224
37225 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37226 "$TOOLKIT" = "MOTIF"; then
37227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37228 fi
37229fi
37230
37231
37232if test "$wxUSE_VALIDATORS" = "yes"; then
37233 cat >>confdefs.h <<\_ACEOF
37234#define wxUSE_VALIDATORS 1
37235_ACEOF
37236
37237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37238fi
37239
37240if test "$wxUSE_PALETTE" = "yes" ; then
37241 cat >>confdefs.h <<\_ACEOF
37242#define wxUSE_PALETTE 1
37243_ACEOF
37244
37245fi
37246
37247if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37248 LIBS=" -lunicows $LIBS"
37249fi
37250
37251
37252if test "$wxUSE_IMAGE" = "yes" ; then
37253 cat >>confdefs.h <<\_ACEOF
37254#define wxUSE_IMAGE 1
37255_ACEOF
37256
37257
37258 if test "$wxUSE_GIF" = "yes" ; then
37259 cat >>confdefs.h <<\_ACEOF
37260#define wxUSE_GIF 1
37261_ACEOF
37262
37263 fi
37264
37265 if test "$wxUSE_PCX" = "yes" ; then
37266 cat >>confdefs.h <<\_ACEOF
37267#define wxUSE_PCX 1
37268_ACEOF
37269
37270 fi
37271
37272 if test "$wxUSE_IFF" = "yes" ; then
37273 cat >>confdefs.h <<\_ACEOF
37274#define wxUSE_IFF 1
37275_ACEOF
37276
37277 fi
37278
37279 if test "$wxUSE_PNM" = "yes" ; then
37280 cat >>confdefs.h <<\_ACEOF
37281#define wxUSE_PNM 1
37282_ACEOF
37283
37284 fi
37285
37286 if test "$wxUSE_XPM" = "yes" ; then
37287 cat >>confdefs.h <<\_ACEOF
37288#define wxUSE_XPM 1
37289_ACEOF
37290
37291 fi
37292
37293 if test "$wxUSE_ICO_CUR" = "yes" ; then
37294 cat >>confdefs.h <<\_ACEOF
37295#define wxUSE_ICO_CUR 1
37296_ACEOF
37297
37298 fi
37299fi
37300
37301
37302if test "$wxUSE_CHOICEDLG" = "yes"; then
37303 cat >>confdefs.h <<\_ACEOF
37304#define wxUSE_CHOICEDLG 1
37305_ACEOF
37306
37307fi
37308
37309if test "$wxUSE_COLOURDLG" = "yes"; then
37310 cat >>confdefs.h <<\_ACEOF
37311#define wxUSE_COLOURDLG 1
37312_ACEOF
37313
37314fi
37315
37316if test "$wxUSE_FILEDLG" = "yes"; then
37317 cat >>confdefs.h <<\_ACEOF
37318#define wxUSE_FILEDLG 1
37319_ACEOF
37320
37321fi
37322
37323if test "$wxUSE_FINDREPLDLG" = "yes"; then
37324 cat >>confdefs.h <<\_ACEOF
37325#define wxUSE_FINDREPLDLG 1
37326_ACEOF
37327
37328fi
37329
37330if test "$wxUSE_FONTDLG" = "yes"; then
37331 cat >>confdefs.h <<\_ACEOF
37332#define wxUSE_FONTDLG 1
37333_ACEOF
37334
37335fi
37336
37337if test "$wxUSE_DIRDLG" = "yes"; then
37338 if test "$wxUSE_TREECTRL" != "yes"; then
37339 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37340echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37341 else
37342 cat >>confdefs.h <<\_ACEOF
37343#define wxUSE_DIRDLG 1
37344_ACEOF
37345
37346 fi
37347fi
37348
37349if test "$wxUSE_MSGDLG" = "yes"; then
37350 cat >>confdefs.h <<\_ACEOF
37351#define wxUSE_MSGDLG 1
37352_ACEOF
37353
37354fi
37355
37356if test "$wxUSE_NUMBERDLG" = "yes"; then
37357 cat >>confdefs.h <<\_ACEOF
37358#define wxUSE_NUMBERDLG 1
37359_ACEOF
37360
37361fi
37362
37363if test "$wxUSE_PROGRESSDLG" = "yes"; then
37364 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37365 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37366echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37367 else
37368 cat >>confdefs.h <<\_ACEOF
37369#define wxUSE_PROGRESSDLG 1
37370_ACEOF
37371
37372 fi
37373fi
37374
37375if test "$wxUSE_SPLASH" = "yes"; then
37376 cat >>confdefs.h <<\_ACEOF
37377#define wxUSE_SPLASH 1
37378_ACEOF
37379
2057db16 37380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37381fi
37382
37383if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37384 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37385 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37386echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37387 else
37388 cat >>confdefs.h <<\_ACEOF
37389#define wxUSE_STARTUP_TIPS 1
37390_ACEOF
37391
37392 fi
37393fi
37394
37395if test "$wxUSE_TEXTDLG" = "yes"; then
37396 cat >>confdefs.h <<\_ACEOF
37397#define wxUSE_TEXTDLG 1
37398_ACEOF
37399
37400fi
37401
37402if test "$wxUSE_WIZARDDLG" = "yes"; then
37403 cat >>confdefs.h <<\_ACEOF
37404#define wxUSE_WIZARDDLG 1
37405_ACEOF
37406
37407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37408fi
37409
37410
37411if test "$cross_compiling" = "yes"; then
37412 OSINFO="\"$host\""
37413else
37414 OSINFO=`uname -s -r -m`
37415 OSINFO="\"$OSINFO\""
37416fi
37417
37418cat >>confdefs.h <<_ACEOF
37419#define WXWIN_OS_DESCRIPTION $OSINFO
37420_ACEOF
37421
37422
37423
37424if test "x$prefix" != "xNONE"; then
37425 wxPREFIX=$prefix
37426else
37427 wxPREFIX=$ac_default_prefix
37428fi
37429
37430cat >>confdefs.h <<_ACEOF
37431#define wxINSTALL_PREFIX "$wxPREFIX"
37432_ACEOF
37433
37434
a848cd7e
SC
37435
37436
37437CORE_BASE_LIBS="net base"
37438CORE_GUI_LIBS="adv core"
37439
37440if test "$wxUSE_XML" = "yes" ; then
37441 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37442fi
37443if test "$wxUSE_ODBC" != "no" ; then
37444 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37445 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37446fi
37447if test "$wxUSE_HTML" = "yes" ; then
37448 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37449fi
9a8f0513
VS
37450if test "$wxUSE_XRC" = "yes" ; then
37451 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37452fi
a848cd7e
SC
37453
37454if test "$wxUSE_GUI" != "yes"; then
37455 CORE_GUI_LIBS=""
37456fi
37457
37458
37459
37460
37461
37462
37463
37464
37465if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37466 if test "$wxUSE_SOUND" = "yes"; then
37467 LDFLAGS="$LDFLAGS -framework QuickTime"
37468 fi
5dcf30a0
RN
37469 if test "$USE_DARWIN" = 1; then
37470 LDFLAGS="$LDFLAGS -framework IOKit"
37471 fi
07bea8f0 37472 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37473fi
37474if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37475 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37476fi
37477
37478
37479LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37480
37481have_cos=0
37482have_floor=0
37483
37484for ac_func in cos
37485do
37486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37487echo "$as_me:$LINENO: checking for $ac_func" >&5
37488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37489if eval "test \"\${$as_ac_var+set}\" = set"; then
37490 echo $ECHO_N "(cached) $ECHO_C" >&6
37491else
37492 cat >conftest.$ac_ext <<_ACEOF
37493/* confdefs.h. */
37494_ACEOF
37495cat confdefs.h >>conftest.$ac_ext
37496cat >>conftest.$ac_ext <<_ACEOF
37497/* end confdefs.h. */
ac1cb8d3
VS
37498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37500#define $ac_func innocuous_$ac_func
37501
a848cd7e
SC
37502/* System header to define __stub macros and hopefully few prototypes,
37503 which can conflict with char $ac_func (); below.
37504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37505 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37506
a848cd7e
SC
37507#ifdef __STDC__
37508# include <limits.h>
37509#else
37510# include <assert.h>
37511#endif
ac1cb8d3
VS
37512
37513#undef $ac_func
37514
a848cd7e
SC
37515/* Override any gcc2 internal prototype to avoid an error. */
37516#ifdef __cplusplus
37517extern "C"
37518{
37519#endif
37520/* We use char because int might match the return type of a gcc2
37521 builtin and then its argument prototype would still apply. */
37522char $ac_func ();
37523/* The GNU C library defines this for functions which it implements
37524 to always fail with ENOSYS. Some functions are actually named
37525 something starting with __ and the normal name is an alias. */
37526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37527choke me
37528#else
37529char (*f) () = $ac_func;
37530#endif
37531#ifdef __cplusplus
37532}
37533#endif
37534
37535int
37536main ()
37537{
37538return f != $ac_func;
37539 ;
37540 return 0;
37541}
37542_ACEOF
37543rm -f conftest.$ac_objext conftest$ac_exeext
37544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37545 (eval $ac_link) 2>conftest.er1
a848cd7e 37546 ac_status=$?
ac1cb8d3
VS
37547 grep -v '^ *+' conftest.er1 >conftest.err
37548 rm -f conftest.er1
37549 cat conftest.err >&5
a848cd7e
SC
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); } &&
c228d3a4
RN
37552 { ac_try='test -z "$ac_c_werror_flag"
37553 || test ! -s conftest.err'
ac1cb8d3
VS
37554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37555 (eval $ac_try) 2>&5
37556 ac_status=$?
37557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); }; } &&
37559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37561 (eval $ac_try) 2>&5
37562 ac_status=$?
37563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564 (exit $ac_status); }; }; then
37565 eval "$as_ac_var=yes"
37566else
37567 echo "$as_me: failed program was:" >&5
37568sed 's/^/| /' conftest.$ac_ext >&5
37569
37570eval "$as_ac_var=no"
37571fi
ac1cb8d3
VS
37572rm -f conftest.err conftest.$ac_objext \
37573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37574fi
37575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37576echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37577if test `eval echo '${'$as_ac_var'}'` = yes; then
37578 cat >>confdefs.h <<_ACEOF
37579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37580_ACEOF
37581 have_cos=1
37582fi
37583done
37584
37585
37586for ac_func in floor
37587do
37588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37589echo "$as_me:$LINENO: checking for $ac_func" >&5
37590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37591if eval "test \"\${$as_ac_var+set}\" = set"; then
37592 echo $ECHO_N "(cached) $ECHO_C" >&6
37593else
37594 cat >conftest.$ac_ext <<_ACEOF
37595/* confdefs.h. */
37596_ACEOF
37597cat confdefs.h >>conftest.$ac_ext
37598cat >>conftest.$ac_ext <<_ACEOF
37599/* end confdefs.h. */
ac1cb8d3
VS
37600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37602#define $ac_func innocuous_$ac_func
37603
a848cd7e
SC
37604/* System header to define __stub macros and hopefully few prototypes,
37605 which can conflict with char $ac_func (); below.
37606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37607 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37608
a848cd7e
SC
37609#ifdef __STDC__
37610# include <limits.h>
37611#else
37612# include <assert.h>
37613#endif
ac1cb8d3
VS
37614
37615#undef $ac_func
37616
a848cd7e
SC
37617/* Override any gcc2 internal prototype to avoid an error. */
37618#ifdef __cplusplus
37619extern "C"
37620{
37621#endif
37622/* We use char because int might match the return type of a gcc2
37623 builtin and then its argument prototype would still apply. */
37624char $ac_func ();
37625/* The GNU C library defines this for functions which it implements
37626 to always fail with ENOSYS. Some functions are actually named
37627 something starting with __ and the normal name is an alias. */
37628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37629choke me
37630#else
37631char (*f) () = $ac_func;
37632#endif
37633#ifdef __cplusplus
37634}
37635#endif
37636
37637int
37638main ()
37639{
37640return f != $ac_func;
37641 ;
37642 return 0;
37643}
37644_ACEOF
37645rm -f conftest.$ac_objext conftest$ac_exeext
37646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37647 (eval $ac_link) 2>conftest.er1
a848cd7e 37648 ac_status=$?
ac1cb8d3
VS
37649 grep -v '^ *+' conftest.er1 >conftest.err
37650 rm -f conftest.er1
37651 cat conftest.err >&5
a848cd7e
SC
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); } &&
c228d3a4
RN
37654 { ac_try='test -z "$ac_c_werror_flag"
37655 || test ! -s conftest.err'
ac1cb8d3
VS
37656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37657 (eval $ac_try) 2>&5
37658 ac_status=$?
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); }; } &&
37661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663 (eval $ac_try) 2>&5
37664 ac_status=$?
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); }; }; then
37667 eval "$as_ac_var=yes"
37668else
37669 echo "$as_me: failed program was:" >&5
37670sed 's/^/| /' conftest.$ac_ext >&5
37671
37672eval "$as_ac_var=no"
37673fi
ac1cb8d3
VS
37674rm -f conftest.err conftest.$ac_objext \
37675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37676fi
37677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37679if test `eval echo '${'$as_ac_var'}'` = yes; then
37680 cat >>confdefs.h <<_ACEOF
37681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37682_ACEOF
37683 have_floor=1
37684fi
37685done
37686
37687echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37688echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37689if test "$have_cos" = 1 -a "$have_floor" = 1; then
37690 echo "$as_me:$LINENO: result: yes" >&5
37691echo "${ECHO_T}yes" >&6
37692else
37693 echo "$as_me:$LINENO: result: no" >&5
37694echo "${ECHO_T}no" >&6
37695 LIBS="$LIBS -lm"
37696 # use different functions to avoid configure caching
37697 have_sin=0
37698 have_ceil=0
37699
37700for ac_func in sin
37701do
37702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37703echo "$as_me:$LINENO: checking for $ac_func" >&5
37704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37705if eval "test \"\${$as_ac_var+set}\" = set"; then
37706 echo $ECHO_N "(cached) $ECHO_C" >&6
37707else
37708 cat >conftest.$ac_ext <<_ACEOF
37709/* confdefs.h. */
37710_ACEOF
37711cat confdefs.h >>conftest.$ac_ext
37712cat >>conftest.$ac_ext <<_ACEOF
37713/* end confdefs.h. */
ac1cb8d3
VS
37714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37716#define $ac_func innocuous_$ac_func
37717
a848cd7e
SC
37718/* System header to define __stub macros and hopefully few prototypes,
37719 which can conflict with char $ac_func (); below.
37720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37721 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37722
a848cd7e
SC
37723#ifdef __STDC__
37724# include <limits.h>
37725#else
37726# include <assert.h>
37727#endif
ac1cb8d3
VS
37728
37729#undef $ac_func
37730
a848cd7e
SC
37731/* Override any gcc2 internal prototype to avoid an error. */
37732#ifdef __cplusplus
37733extern "C"
37734{
37735#endif
37736/* We use char because int might match the return type of a gcc2
37737 builtin and then its argument prototype would still apply. */
37738char $ac_func ();
37739/* The GNU C library defines this for functions which it implements
37740 to always fail with ENOSYS. Some functions are actually named
37741 something starting with __ and the normal name is an alias. */
37742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37743choke me
37744#else
37745char (*f) () = $ac_func;
37746#endif
37747#ifdef __cplusplus
37748}
37749#endif
37750
37751int
37752main ()
37753{
37754return f != $ac_func;
37755 ;
37756 return 0;
37757}
37758_ACEOF
37759rm -f conftest.$ac_objext conftest$ac_exeext
37760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37761 (eval $ac_link) 2>conftest.er1
a848cd7e 37762 ac_status=$?
ac1cb8d3
VS
37763 grep -v '^ *+' conftest.er1 >conftest.err
37764 rm -f conftest.er1
37765 cat conftest.err >&5
a848cd7e
SC
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); } &&
c228d3a4
RN
37768 { ac_try='test -z "$ac_c_werror_flag"
37769 || test ! -s conftest.err'
ac1cb8d3
VS
37770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37771 (eval $ac_try) 2>&5
37772 ac_status=$?
37773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774 (exit $ac_status); }; } &&
37775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37777 (eval $ac_try) 2>&5
37778 ac_status=$?
37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780 (exit $ac_status); }; }; then
37781 eval "$as_ac_var=yes"
37782else
37783 echo "$as_me: failed program was:" >&5
37784sed 's/^/| /' conftest.$ac_ext >&5
37785
37786eval "$as_ac_var=no"
37787fi
ac1cb8d3
VS
37788rm -f conftest.err conftest.$ac_objext \
37789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37790fi
37791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37793if test `eval echo '${'$as_ac_var'}'` = yes; then
37794 cat >>confdefs.h <<_ACEOF
37795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37796_ACEOF
37797 have_sin=1
37798fi
37799done
37800
37801
37802for ac_func in ceil
37803do
37804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37805echo "$as_me:$LINENO: checking for $ac_func" >&5
37806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37807if eval "test \"\${$as_ac_var+set}\" = set"; then
37808 echo $ECHO_N "(cached) $ECHO_C" >&6
37809else
37810 cat >conftest.$ac_ext <<_ACEOF
37811/* confdefs.h. */
37812_ACEOF
37813cat confdefs.h >>conftest.$ac_ext
37814cat >>conftest.$ac_ext <<_ACEOF
37815/* end confdefs.h. */
ac1cb8d3
VS
37816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37818#define $ac_func innocuous_$ac_func
37819
a848cd7e
SC
37820/* System header to define __stub macros and hopefully few prototypes,
37821 which can conflict with char $ac_func (); below.
37822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37823 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37824
a848cd7e
SC
37825#ifdef __STDC__
37826# include <limits.h>
37827#else
37828# include <assert.h>
37829#endif
ac1cb8d3
VS
37830
37831#undef $ac_func
37832
a848cd7e
SC
37833/* Override any gcc2 internal prototype to avoid an error. */
37834#ifdef __cplusplus
37835extern "C"
37836{
37837#endif
37838/* We use char because int might match the return type of a gcc2
37839 builtin and then its argument prototype would still apply. */
37840char $ac_func ();
37841/* The GNU C library defines this for functions which it implements
37842 to always fail with ENOSYS. Some functions are actually named
37843 something starting with __ and the normal name is an alias. */
37844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37845choke me
37846#else
37847char (*f) () = $ac_func;
37848#endif
37849#ifdef __cplusplus
37850}
37851#endif
37852
37853int
37854main ()
37855{
37856return f != $ac_func;
37857 ;
37858 return 0;
37859}
37860_ACEOF
37861rm -f conftest.$ac_objext conftest$ac_exeext
37862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37863 (eval $ac_link) 2>conftest.er1
a848cd7e 37864 ac_status=$?
ac1cb8d3
VS
37865 grep -v '^ *+' conftest.er1 >conftest.err
37866 rm -f conftest.er1
37867 cat conftest.err >&5
a848cd7e
SC
37868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869 (exit $ac_status); } &&
c228d3a4
RN
37870 { ac_try='test -z "$ac_c_werror_flag"
37871 || 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_ceil=1
37900fi
37901done
37902
37903 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37904echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37905 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37906 echo "$as_me:$LINENO: result: yes" >&5
37907echo "${ECHO_T}yes" >&6
37908 else
37909 echo "$as_me:$LINENO: result: no" >&5
37910echo "${ECHO_T}no" >&6
37911 # not sure we should warn the user, crash, etc.
37912 fi
37913fi
37914
37915if test "$wxUSE_GUI" = "yes"; then
37916
37917
37918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37919 drawing dynamic erase event exec font image \
37920 minimal propsize rotate shaped widgets render"
37921
37922 if test "$wxUSE_MONOLITHIC" != "yes"; then
37923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37924 fi
37925else
37926 SAMPLES_SUBDIRS="console"
37927fi
37928
37929
ceec2216 37930INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
37931-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37932
37933if test "$GXX" = yes ; then
37934 CXXWARNINGS="-Wall"
37935 fi
37936
37937EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37938
0c3c69fc
VS
37939CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37940CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37941CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37942
37943
0c3c69fc 37944LIBS=`echo $LIBS`
a848cd7e
SC
37945EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37946EXTRALIBS_XML="$EXPAT_LINK"
37947EXTRALIBS_HTML="$MSPACK_LINK"
37948EXTRALIBS_ODBC="$ODBC_LINK"
37949if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37950 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37951fi
37952if test "$wxUSE_OPENGL" = "yes"; then
37953 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37954fi
37955
37956LDFLAGS="$LDFLAGS $PROFILE"
37957
37958if test "$wxUSE_GTK" = 1; then
37959 WXCONFIG_INCLUDE=
37960else
37961 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37962fi
37963
37964WXCONFIG_EXTRALIBS="$LIBS"
37965
37966if test "$wxUSE_REGEX" = "builtin" ; then
37967 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37968fi
37969if test "$wxUSE_EXPAT" = "builtin" ; then
37970 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37971fi
37972if test "$wxUSE_ODBC" = "builtin" ; then
37973 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37974fi
37975if test "$wxUSE_LIBTIFF" = "builtin" ; then
37976 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37977fi
37978if test "$wxUSE_LIBJPEG" = "builtin" ; then
37979 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37980fi
37981if test "$wxUSE_LIBPNG" = "builtin" ; then
37982 wxconfig_3rdparty="$wxconfig_3rdparty png"
37983fi
37984if test "$wxUSE_ZLIB" = "builtin" ; then
37985 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37986fi
37987if test "$wxUSE_ODBC" = "builtin" ; then
37988 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37989fi
37990
37991for i in $wxconfig_3rdparty ; do
ceec2216 37992 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
37993done
37994
37995
37996if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37997 WXUNIV=1
37998else
37999 WXUNIV=0
38000fi
38001
38002
38003
38004
38005
38006
38007
38008
38009
38010if test $wxUSE_MONOLITHIC = "yes" ; then
38011 MONOLITHIC=1
38012else
38013 MONOLITHIC=0
38014fi
38015
38016if test $wxUSE_PLUGINS = "yes" ; then
38017 USE_PLUGINS=1
38018else
38019 USE_PLUGINS=0
38020fi
38021
38022if test $wxUSE_ODBC != "no" ; then
38023 USE_ODBC=1
38024else
38025 USE_ODBC=0
38026fi
38027
38028if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38029 OFFICIAL_BUILD=1
38030else
38031 OFFICIAL_BUILD=0
38032fi
38033
38034
38035
38036
38037
38038
38039
38040
38041
38042
38043
38044
38045
38046
38047
38048
38049
38050
38051
ceec2216 38052
a848cd7e
SC
38053
38054
38055TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38056
38057
38058
38059
38060
38061
38062
38063
4d4ff94c
VZ
38064case "$TOOLKIT" in
38065 GTK)
38066 TOOLKIT_USER="GTK+"
38067 if test "$WXGTK20" = 1; then
38068 TOOLKIT_USER="$TOOLKIT_USER 2"
38069 fi
9a8f0513 38070 ;;
4d4ff94c
VZ
38071
38072 *)
38073 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38074 ;;
4d4ff94c 38075esac
a848cd7e 38076
9a8f0513 38077
a848cd7e
SC
38078 if test "x$BAKEFILE_HOST" = "x"; then
38079 BAKEFILE_HOST="${host}"
38080 fi
38081
38082 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38083
38084 if test -n "$ac_tool_prefix"; then
38085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38086set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38087echo "$as_me:$LINENO: checking for $ac_word" >&5
38088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38089if test "${ac_cv_prog_RANLIB+set}" = set; then
38090 echo $ECHO_N "(cached) $ECHO_C" >&6
38091else
38092 if test -n "$RANLIB"; then
38093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38094else
38095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38096for as_dir in $PATH
38097do
38098 IFS=$as_save_IFS
38099 test -z "$as_dir" && as_dir=.
38100 for ac_exec_ext in '' $ac_executable_extensions; do
38101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38104 break 2
38105 fi
38106done
38107done
38108
38109fi
38110fi
38111RANLIB=$ac_cv_prog_RANLIB
38112if test -n "$RANLIB"; then
38113 echo "$as_me:$LINENO: result: $RANLIB" >&5
38114echo "${ECHO_T}$RANLIB" >&6
38115else
38116 echo "$as_me:$LINENO: result: no" >&5
38117echo "${ECHO_T}no" >&6
38118fi
38119
38120fi
38121if test -z "$ac_cv_prog_RANLIB"; then
38122 ac_ct_RANLIB=$RANLIB
38123 # Extract the first word of "ranlib", so it can be a program name with args.
38124set dummy ranlib; ac_word=$2
38125echo "$as_me:$LINENO: checking for $ac_word" >&5
38126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38127if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38128 echo $ECHO_N "(cached) $ECHO_C" >&6
38129else
38130 if test -n "$ac_ct_RANLIB"; then
38131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38132else
38133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38134for as_dir in $PATH
38135do
38136 IFS=$as_save_IFS
38137 test -z "$as_dir" && as_dir=.
38138 for ac_exec_ext in '' $ac_executable_extensions; do
38139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38140 ac_cv_prog_ac_ct_RANLIB="ranlib"
38141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38142 break 2
38143 fi
38144done
38145done
38146
38147 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38148fi
38149fi
38150ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38151if test -n "$ac_ct_RANLIB"; then
38152 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38153echo "${ECHO_T}$ac_ct_RANLIB" >&6
38154else
38155 echo "$as_me:$LINENO: result: no" >&5
38156echo "${ECHO_T}no" >&6
38157fi
38158
38159 RANLIB=$ac_ct_RANLIB
38160else
38161 RANLIB="$ac_cv_prog_RANLIB"
38162fi
38163
38164 # Find a good install program. We prefer a C program (faster),
38165# so one script is as good as another. But avoid the broken or
38166# incompatible versions:
38167# SysV /etc/install, /usr/sbin/install
38168# SunOS /usr/etc/install
38169# IRIX /sbin/install
38170# AIX /bin/install
38171# AmigaOS /C/install, which installs bootblocks on floppy discs
38172# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38173# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38174# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38175# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38176# ./install, which can be erroneously created by make from ./install.sh.
38177echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38178echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38179if test -z "$INSTALL"; then
38180if test "${ac_cv_path_install+set}" = set; then
38181 echo $ECHO_N "(cached) $ECHO_C" >&6
38182else
38183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38184for as_dir in $PATH
38185do
38186 IFS=$as_save_IFS
38187 test -z "$as_dir" && as_dir=.
38188 # Account for people who put trailing slashes in PATH elements.
38189case $as_dir/ in
38190 ./ | .// | /cC/* | \
38191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38192 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38193 /usr/ucb/* ) ;;
38194 *)
38195 # OSF1 and SCO ODT 3.0 have their own names for install.
38196 # Don't use installbsd from OSF since it installs stuff as root
38197 # by default.
38198 for ac_prog in ginstall scoinst install; do
38199 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38200 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38201 if test $ac_prog = install &&
38202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38203 # AIX install. It has an incompatible calling convention.
38204 :
38205 elif test $ac_prog = install &&
38206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38207 # program-specific install script used by HP pwplus--don't use.
38208 :
38209 else
38210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38211 break 3
38212 fi
38213 fi
a848cd7e
SC
38214 done
38215 done
38216 ;;
38217esac
38218done
38219
38220
38221fi
38222 if test "${ac_cv_path_install+set}" = set; then
38223 INSTALL=$ac_cv_path_install
38224 else
38225 # As a last resort, use the slow shell script. We don't cache a
38226 # path for INSTALL within a source directory, because that will
38227 # break other packages using the cache if that directory is
38228 # removed, or if the path is relative.
38229 INSTALL=$ac_install_sh
38230 fi
38231fi
38232echo "$as_me:$LINENO: result: $INSTALL" >&5
38233echo "${ECHO_T}$INSTALL" >&6
38234
38235# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38236# It thinks the first close brace ends the variable substitution.
38237test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38238
38239test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38240
38241test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38242
38243 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38244echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38245LN_S=$as_ln_s
38246if test "$LN_S" = "ln -s"; then
38247 echo "$as_me:$LINENO: result: yes" >&5
38248echo "${ECHO_T}yes" >&6
38249else
38250 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38251echo "${ECHO_T}no, using $LN_S" >&6
38252fi
38253
38254
38255 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38256echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38257set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38258if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38259 echo $ECHO_N "(cached) $ECHO_C" >&6
38260else
38261 cat >conftest.make <<\_ACEOF
38262all:
38263 @echo 'ac_maketemp="$(MAKE)"'
38264_ACEOF
38265# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38266eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38267if test -n "$ac_maketemp"; then
38268 eval ac_cv_prog_make_${ac_make}_set=yes
38269else
38270 eval ac_cv_prog_make_${ac_make}_set=no
38271fi
38272rm -f conftest.make
38273fi
38274if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38275 echo "$as_me:$LINENO: result: yes" >&5
38276echo "${ECHO_T}yes" >&6
38277 SET_MAKE=
38278else
38279 echo "$as_me:$LINENO: result: no" >&5
38280echo "${ECHO_T}no" >&6
38281 SET_MAKE="MAKE=${MAKE-make}"
38282fi
38283
38284
38285
38286 if test -n "$ac_tool_prefix"; then
38287 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38288set dummy ${ac_tool_prefix}ar; ac_word=$2
38289echo "$as_me:$LINENO: checking for $ac_word" >&5
38290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38291if test "${ac_cv_prog_AR+set}" = set; then
38292 echo $ECHO_N "(cached) $ECHO_C" >&6
38293else
38294 if test -n "$AR"; then
38295 ac_cv_prog_AR="$AR" # Let the user override the test.
38296else
38297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38298for as_dir in $PATH
38299do
38300 IFS=$as_save_IFS
38301 test -z "$as_dir" && as_dir=.
38302 for ac_exec_ext in '' $ac_executable_extensions; do
38303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38304 ac_cv_prog_AR="${ac_tool_prefix}ar"
38305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38306 break 2
38307 fi
38308done
38309done
38310
38311fi
38312fi
38313AR=$ac_cv_prog_AR
38314if test -n "$AR"; then
38315 echo "$as_me:$LINENO: result: $AR" >&5
38316echo "${ECHO_T}$AR" >&6
38317else
38318 echo "$as_me:$LINENO: result: no" >&5
38319echo "${ECHO_T}no" >&6
38320fi
38321
38322fi
38323if test -z "$ac_cv_prog_AR"; then
38324 ac_ct_AR=$AR
38325 # Extract the first word of "ar", so it can be a program name with args.
38326set dummy ar; ac_word=$2
38327echo "$as_me:$LINENO: checking for $ac_word" >&5
38328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38329if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38330 echo $ECHO_N "(cached) $ECHO_C" >&6
38331else
38332 if test -n "$ac_ct_AR"; then
38333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38334else
38335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38336for as_dir in $PATH
38337do
38338 IFS=$as_save_IFS
38339 test -z "$as_dir" && as_dir=.
38340 for ac_exec_ext in '' $ac_executable_extensions; do
38341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38342 ac_cv_prog_ac_ct_AR="ar"
38343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38344 break 2
38345 fi
38346done
38347done
38348
38349 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38350fi
38351fi
38352ac_ct_AR=$ac_cv_prog_ac_ct_AR
38353if test -n "$ac_ct_AR"; then
38354 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38355echo "${ECHO_T}$ac_ct_AR" >&6
38356else
38357 echo "$as_me:$LINENO: result: no" >&5
38358echo "${ECHO_T}no" >&6
38359fi
38360
38361 AR=$ac_ct_AR
38362else
38363 AR="$ac_cv_prog_AR"
38364fi
38365
38366 if test -n "$ac_tool_prefix"; then
38367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38368set dummy ${ac_tool_prefix}strip; ac_word=$2
38369echo "$as_me:$LINENO: checking for $ac_word" >&5
38370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38371if test "${ac_cv_prog_STRIP+set}" = set; then
38372 echo $ECHO_N "(cached) $ECHO_C" >&6
38373else
38374 if test -n "$STRIP"; then
38375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38376else
38377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38378for as_dir in $PATH
38379do
38380 IFS=$as_save_IFS
38381 test -z "$as_dir" && as_dir=.
38382 for ac_exec_ext in '' $ac_executable_extensions; do
38383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38384 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38386 break 2
38387 fi
38388done
38389done
38390
38391fi
38392fi
38393STRIP=$ac_cv_prog_STRIP
38394if test -n "$STRIP"; then
38395 echo "$as_me:$LINENO: result: $STRIP" >&5
38396echo "${ECHO_T}$STRIP" >&6
38397else
38398 echo "$as_me:$LINENO: result: no" >&5
38399echo "${ECHO_T}no" >&6
38400fi
38401
38402fi
38403if test -z "$ac_cv_prog_STRIP"; then
38404 ac_ct_STRIP=$STRIP
38405 # Extract the first word of "strip", so it can be a program name with args.
38406set dummy strip; ac_word=$2
38407echo "$as_me:$LINENO: checking for $ac_word" >&5
38408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38409if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38410 echo $ECHO_N "(cached) $ECHO_C" >&6
38411else
38412 if test -n "$ac_ct_STRIP"; then
38413 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38414else
38415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38416for as_dir in $PATH
38417do
38418 IFS=$as_save_IFS
38419 test -z "$as_dir" && as_dir=.
38420 for ac_exec_ext in '' $ac_executable_extensions; do
38421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38422 ac_cv_prog_ac_ct_STRIP="strip"
38423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38424 break 2
38425 fi
38426done
38427done
38428
38429 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38430fi
38431fi
38432ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38433if test -n "$ac_ct_STRIP"; then
38434 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38435echo "${ECHO_T}$ac_ct_STRIP" >&6
38436else
38437 echo "$as_me:$LINENO: result: no" >&5
38438echo "${ECHO_T}no" >&6
38439fi
38440
38441 STRIP=$ac_ct_STRIP
38442else
38443 STRIP="$ac_cv_prog_STRIP"
38444fi
38445
38446 if test -n "$ac_tool_prefix"; then
38447 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38448set dummy ${ac_tool_prefix}nm; ac_word=$2
38449echo "$as_me:$LINENO: checking for $ac_word" >&5
38450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38451if test "${ac_cv_prog_NM+set}" = set; then
38452 echo $ECHO_N "(cached) $ECHO_C" >&6
38453else
38454 if test -n "$NM"; then
38455 ac_cv_prog_NM="$NM" # Let the user override the test.
38456else
38457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38458for as_dir in $PATH
38459do
38460 IFS=$as_save_IFS
38461 test -z "$as_dir" && as_dir=.
38462 for ac_exec_ext in '' $ac_executable_extensions; do
38463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38464 ac_cv_prog_NM="${ac_tool_prefix}nm"
38465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38466 break 2
38467 fi
38468done
38469done
38470
38471fi
38472fi
38473NM=$ac_cv_prog_NM
38474if test -n "$NM"; then
38475 echo "$as_me:$LINENO: result: $NM" >&5
38476echo "${ECHO_T}$NM" >&6
38477else
38478 echo "$as_me:$LINENO: result: no" >&5
38479echo "${ECHO_T}no" >&6
38480fi
38481
38482fi
38483if test -z "$ac_cv_prog_NM"; then
38484 ac_ct_NM=$NM
38485 # Extract the first word of "nm", so it can be a program name with args.
38486set dummy nm; ac_word=$2
38487echo "$as_me:$LINENO: checking for $ac_word" >&5
38488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38489if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38490 echo $ECHO_N "(cached) $ECHO_C" >&6
38491else
38492 if test -n "$ac_ct_NM"; then
38493 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38494else
38495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38496for as_dir in $PATH
38497do
38498 IFS=$as_save_IFS
38499 test -z "$as_dir" && as_dir=.
38500 for ac_exec_ext in '' $ac_executable_extensions; do
38501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38502 ac_cv_prog_ac_ct_NM="nm"
38503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38504 break 2
38505 fi
38506done
38507done
38508
38509 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38510fi
38511fi
38512ac_ct_NM=$ac_cv_prog_ac_ct_NM
38513if test -n "$ac_ct_NM"; then
38514 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38515echo "${ECHO_T}$ac_ct_NM" >&6
38516else
38517 echo "$as_me:$LINENO: result: no" >&5
38518echo "${ECHO_T}no" >&6
38519fi
38520
38521 NM=$ac_ct_NM
38522else
38523 NM="$ac_cv_prog_NM"
38524fi
38525
38526
38527 case ${BAKEFILE_HOST} in
38528 *-hp-hpux* )
a30f955f 38529 INSTALL_DIR="mkdir"
a848cd7e
SC
38530 ;;
38531 *) INSTALL_DIR="$INSTALL -d"
38532 ;;
38533 esac
38534
38535
38536 LDFLAGS_GUI=
38537 case ${BAKEFILE_HOST} in
38538 *-*-cygwin* | *-*-mingw32* )
38539 LDFLAGS_GUI="-mwindows"
38540 esac
38541
38542
38543 fi
38544
38545 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38546echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38547if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38548 echo $ECHO_N "(cached) $ECHO_C" >&6
38549else
38550
38551 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38552 egrep -s GNU > /dev/null); then
38553 bakefile_cv_prog_makeisgnu="yes"
38554 else
38555 bakefile_cv_prog_makeisgnu="no"
38556 fi
38557
38558fi
38559echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38560echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38561
38562 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38563 IF_GNU_MAKE=""
38564 else
38565 IF_GNU_MAKE="#"
38566 fi
38567
38568
38569
38570 PLATFORM_UNIX=0
38571 PLATFORM_WIN32=0
38572 PLATFORM_MSDOS=0
38573 PLATFORM_MAC=0
38574 PLATFORM_MACOSX=0
38575 PLATFORM_OS2=0
38576
38577 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38578 case "${BAKEFILE_HOST}" in
38579 *-*-cygwin* | *-*-mingw32* )
38580 PLATFORM_WIN32=1
38581 ;;
38582 *-pc-msdosdjgpp )
38583 PLATFORM_MSDOS=1
38584 ;;
38585 *-pc-os2_emx | *-pc-os2-emx )
38586 PLATFORM_OS2=1
38587 ;;
38588 powerpc-*-darwin* )
38589 PLATFORM_MAC=1
38590 PLATFORM_MACOSX=1
38591 ;;
38592 * )
38593 PLATFORM_UNIX=1
38594 ;;
38595 esac
38596 else
38597 case "$BAKEFILE_FORCE_PLATFORM" in
38598 win32 )
38599 PLATFORM_WIN32=1
38600 ;;
38601 msdos )
38602 PLATFORM_MSDOS=1
38603 ;;
38604 os2 )
38605 PLATFORM_OS2=1
38606 ;;
38607 darwin )
38608 PLATFORM_MAC=1
38609 PLATFORM_MACOSX=1
38610 ;;
38611 unix )
38612 PLATFORM_UNIX=1
38613 ;;
38614 * )
38615 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38616echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38617 { (exit 1); exit 1; }; }
38618 ;;
38619 esac
38620 fi
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630 # Check whether --enable-omf or --disable-omf was given.
38631if test "${enable_omf+set}" = set; then
38632 enableval="$enable_omf"
38633 bk_os2_use_omf="$enableval"
38634fi;
38635
38636 case "${BAKEFILE_HOST}" in
38637 *-*-darwin* )
38638 CFLAGS="$CFLAGS -fno-common"
38639 CXXFLAGS="$CXXFLAGS -fno-common"
38640 ;;
38641
38642 *-pc-os2_emx | *-pc-os2-emx )
38643 if test "x$bk_os2_use_omf" = "xyes" ; then
38644 AR=emxomfar
38645 RANLIB=:
38646 LDFLAGS="-Zomf $LDFLAGS"
38647 CFLAGS="-Zomf $CFLAGS"
38648 CXXFLAGS="-Zomf $CXXFLAGS"
38649 OS2_LIBEXT="lib"
38650 else
38651 OS2_LIBEXT="a"
38652 fi
38653 ;;
38654 esac
38655
38656
38657 SO_SUFFIX="so"
38658 SO_SUFFIX_MODULE="so"
38659 EXEEXT=""
38660 LIBPREFIX="lib"
38661 LIBEXT=".a"
38662 DLLPREFIX="lib"
38663 DLLPREFIX_MODULE=""
38664 DLLIMP_SUFFIX=""
38665
38666 case "${BAKEFILE_HOST}" in
38667 *-hp-hpux* )
38668 SO_SUFFIX="sl"
38669 SO_SUFFIX_MODULE="sl"
38670 ;;
38671 *-*-aix* )
38672 SO_SUFFIX="a"
38673 SO_SUFFIX_MODULE="a"
38674 ;;
38675 *-*-cygwin* | *-*-mingw32* )
38676 SO_SUFFIX="dll"
38677 SO_SUFFIX_MODULE="dll"
38678 DLLIMP_SUFFIX="dll.a"
38679 EXEEXT=".exe"
38680 DLLPREFIX=""
38681 ;;
38682 *-pc-msdosdjgpp )
38683 EXEEXT=".exe"
38684 DLLPREFIX=""
38685 ;;
38686 *-pc-os2_emx | *-pc-os2-emx )
38687 SO_SUFFIX="dll"
38688 SO_SUFFIX_MODULE="dll"
38689 DLLIMP_SUFFIX=$OS2_LIBEXT
38690 EXEEXT=".exe"
38691 DLLPREFIX=""
38692 LIBPREFIX=""
38693 LIBEXT=".$OS2_LIBEXT"
38694 ;;
38695 powerpc-*-darwin* )
38696 SO_SUFFIX="dylib"
38697 SO_SUFFIX_MODULE="bundle"
38698 ;;
38699 esac
38700
38701 if test "x$DLLIMP_SUFFIX" = "x" ; then
38702 DLLIMP_SUFFIX="$SO_SUFFIX"
38703 fi
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714
38715 SHARED_LD_CC="\$(CC) -shared -o"
38716 SHARED_LD_CXX="\$(CXX) -shared -o"
38717
38718 if test "x$GCC" = "xyes"; then
38719 PIC_FLAG="-fPIC"
38720 fi
38721
38722 case "${BAKEFILE_HOST}" in
38723 *-hp-hpux* )
38724 if test "x$GCC" = "xyes"; then
38725 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38726 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38727 else
38728 LDFLAGS="$LDFLAGS -L/usr/lib"
38729
38730 SHARED_LD_CC="${CC} -b -o"
38731 SHARED_LD_CXX="${CXX} -b -o"
38732 PIC_FLAG="+Z"
38733 fi
38734 ;;
38735
38736 *-*-linux* )
38737 if test "x$GCC" != "xyes"; then
38738 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38739echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38740if test "${bakefile_cv_prog_icc+set}" = set; then
38741 echo $ECHO_N "(cached) $ECHO_C" >&6
38742else
38743
38744 cat >conftest.$ac_ext <<_ACEOF
38745/* confdefs.h. */
38746_ACEOF
38747cat confdefs.h >>conftest.$ac_ext
38748cat >>conftest.$ac_ext <<_ACEOF
38749/* end confdefs.h. */
38750
38751int
38752main ()
38753{
38754
38755 #ifndef __INTEL_COMPILER
38756 #error Not icc
38757 #endif
38758
38759 ;
38760 return 0;
38761}
38762_ACEOF
38763rm -f conftest.$ac_objext
38764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38765 (eval $ac_compile) 2>conftest.er1
a848cd7e 38766 ac_status=$?
ac1cb8d3
VS
38767 grep -v '^ *+' conftest.er1 >conftest.err
38768 rm -f conftest.er1
38769 cat conftest.err >&5
a848cd7e
SC
38770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38771 (exit $ac_status); } &&
c228d3a4
RN
38772 { ac_try='test -z "$ac_c_werror_flag"
38773 || test ! -s conftest.err'
ac1cb8d3
VS
38774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38775 (eval $ac_try) 2>&5
38776 ac_status=$?
38777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38778 (exit $ac_status); }; } &&
38779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38781 (eval $ac_try) 2>&5
38782 ac_status=$?
38783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38784 (exit $ac_status); }; }; then
38785 bakefile_cv_prog_icc=yes
38786else
38787 echo "$as_me: failed program was:" >&5
38788sed 's/^/| /' conftest.$ac_ext >&5
38789
38790bakefile_cv_prog_icc=no
38791
38792fi
ac1cb8d3 38793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38794
38795fi
38796echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38797echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38798 if test "$bakefile_cv_prog_icc" = "yes"; then
38799 PIC_FLAG="-KPIC"
38800 fi
38801 fi
38802 ;;
38803
38804 *-*-solaris2* )
38805 if test "x$GCC" != xyes ; then
38806 SHARED_LD_CC="${CC} -G -o"
38807 SHARED_LD_CXX="${CXX} -G -o"
38808 PIC_FLAG="-KPIC"
38809 fi
38810 ;;
38811
38812 *-*-darwin* )
38813
38814 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38815echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38816if test "${wx_cv_gcc31+set}" = set; then
38817 echo $ECHO_N "(cached) $ECHO_C" >&6
38818else
38819
38820 cat >conftest.$ac_ext <<_ACEOF
38821/* confdefs.h. */
38822_ACEOF
38823cat confdefs.h >>conftest.$ac_ext
38824cat >>conftest.$ac_ext <<_ACEOF
38825/* end confdefs.h. */
38826
38827int
38828main ()
38829{
38830
38831 #if (__GNUC__ < 3) || \
38832 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38833 #error old gcc
38834 #endif
38835
38836 ;
38837 return 0;
38838}
38839_ACEOF
38840rm -f conftest.$ac_objext
38841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38842 (eval $ac_compile) 2>conftest.er1
a848cd7e 38843 ac_status=$?
ac1cb8d3
VS
38844 grep -v '^ *+' conftest.er1 >conftest.err
38845 rm -f conftest.er1
38846 cat conftest.err >&5
a848cd7e
SC
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); } &&
c228d3a4
RN
38849 { ac_try='test -z "$ac_c_werror_flag"
38850 || test ! -s conftest.err'
ac1cb8d3
VS
38851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852 (eval $ac_try) 2>&5
38853 ac_status=$?
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); }; } &&
38856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38858 (eval $ac_try) 2>&5
38859 ac_status=$?
38860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861 (exit $ac_status); }; }; then
38862
38863 wx_cv_gcc31=yes
38864
38865else
38866 echo "$as_me: failed program was:" >&5
38867sed 's/^/| /' conftest.$ac_ext >&5
38868
38869
38870 wx_cv_gcc31=no
38871
38872
38873fi
ac1cb8d3 38874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38875
38876fi
38877echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38878echo "${ECHO_T}$wx_cv_gcc31" >&6
38879 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38880
38881D='$'
38882cat <<EOF >shared-ld-sh
a848cd7e
SC
38883#!/bin/sh
38884#-----------------------------------------------------------------------------
38885#-- Name: distrib/mac/shared-ld-sh
38886#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38887#-- Author: Gilles Depeyrot
38888#-- Copyright: (c) 2002 Gilles Depeyrot
38889#-- Licence: any use permitted
38890#-----------------------------------------------------------------------------
38891
38892verbose=0
38893args=""
38894objects=""
38895linking_flag="-dynamiclib"
38896
473276a9
VS
38897while test ${D}# -gt 0; do
38898 case ${D}1 in
a848cd7e
SC
38899
38900 -v)
38901 verbose=1
38902 ;;
38903
38904 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38905 # collect these options and values
473276a9 38906 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38907 shift
38908 ;;
38909
38910 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38911 # collect these options
473276a9 38912 args="${D}{args} ${D}1"
a848cd7e
SC
38913 ;;
38914
38915 -dynamiclib|-bundle)
473276a9 38916 linking_flag="${D}1"
a848cd7e
SC
38917 ;;
38918
38919 -*)
473276a9 38920 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38921 exit 1
38922 ;;
38923
38924 *.o | *.a | *.dylib)
38925 # collect object files
473276a9 38926 objects="${D}{objects} ${D}1"
a848cd7e
SC
38927 ;;
38928
38929 *)
473276a9 38930 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38931 exit 1
38932 ;;
38933
38934 esac
38935 shift
38936done
38937
38938#
38939# Link one module containing all the others
38940#
473276a9
VS
38941if test ${D}{verbose} = 1; then
38942 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38943fi
473276a9
VS
38944c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38945status=${D}?
38946if test ${D}{status} != 0; then
38947 exit ${D}{status}
a848cd7e
SC
38948fi
38949
38950#
38951# Link the shared library from the single module created
38952#
473276a9
VS
38953if test ${D}{verbose} = 1; then
38954 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38955fi
473276a9
VS
38956c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38957status=${D}?
38958if test ${D}{status} != 0; then
38959 exit ${D}{status}
a848cd7e
SC
38960fi
38961
38962#
38963# Remove intermediate module
38964#
473276a9 38965rm -f master.${D}${D}.o
a848cd7e
SC
38966
38967exit 0
38968EOF
473276a9 38969
a848cd7e
SC
38970 chmod +x shared-ld-sh
38971
38972 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38973 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38974 SHARED_LD_CXX="$SHARED_LD_CC"
38975 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38976 else
38977 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38978 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38979 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38980 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38981 fi
38982
38983 PIC_FLAG="-dynamic -fPIC"
38984 ;;
38985
38986 *-*-aix* )
38987 if test "x$GCC" != "xyes"; then
38988 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38989set dummy makeC++SharedLib; ac_word=$2
38990echo "$as_me:$LINENO: checking for $ac_word" >&5
38991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38992if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38993 echo $ECHO_N "(cached) $ECHO_C" >&6
38994else
38995 if test -n "$AIX_CXX_LD"; then
38996 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38997else
38998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38999for as_dir in $PATH
39000do
39001 IFS=$as_save_IFS
39002 test -z "$as_dir" && as_dir=.
39003 for ac_exec_ext in '' $ac_executable_extensions; do
39004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39005 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39007 break 2
39008 fi
39009done
39010done
39011
39012 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39013fi
39014fi
39015AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39016if test -n "$AIX_CXX_LD"; then
39017 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39018echo "${ECHO_T}$AIX_CXX_LD" >&6
39019else
39020 echo "$as_me:$LINENO: result: no" >&5
39021echo "${ECHO_T}no" >&6
39022fi
39023
39024 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39025 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39026 fi
39027 ;;
39028
39029 *-*-beos* )
39030 SHARED_LD_CC="${LD} -shared -o"
39031 SHARED_LD_CXX="${LD} -shared -o"
39032 ;;
39033
39034 *-*-irix* )
39035 if test "x$GCC" != "xyes"; then
39036 PIC_FLAG="-KPIC"
39037 fi
39038 ;;
39039
39040 *-*-cygwin* | *-*-mingw32* )
39041 PIC_FLAG=""
39042 ;;
39043
39044 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39045 SHARED_LD_CC="`pwd`/dllar.sh -o"
39046 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39047 PIC_FLAG=""
473276a9
VS
39048
39049D='$'
39050cat <<EOF >dllar.sh
39051#!/bin/sh
39052#
39053# dllar - a tool to build both a .dll and an .a file
39054# from a set of object (.o) files for EMX/OS2.
39055#
39056# Written by Andrew Zabolotny, bit@freya.etu.ru
39057# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39058#
39059# This script will accept a set of files on the command line.
39060# All the public symbols from the .o files will be exported into
39061# a .DEF file, then linker will be run (through gcc) against them to
39062# build a shared library consisting of all given .o files. All libraries
39063# (.a) will be first decompressed into component .o files then act as
39064# described above. You can optionally give a description (-d "description")
39065# which will be put into .DLL. To see the list of accepted options (as well
39066# as command-line format) simply run this program without options. The .DLL
39067# is built to be imported by name (there is no guarantee that new versions
39068# of the library you build will have same ordinals for same symbols).
39069#
39070# dllar is free software; you can redistribute it and/or modify
39071# it under the terms of the GNU General Public License as published by
39072# the Free Software Foundation; either version 2, or (at your option)
39073# any later version.
39074#
39075# dllar is distributed in the hope that it will be useful,
39076# but WITHOUT ANY WARRANTY; without even the implied warranty of
39077# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39078# GNU General Public License for more details.
39079#
39080# You should have received a copy of the GNU General Public License
39081# along with dllar; see the file COPYING. If not, write to the Free
39082# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39083# 02111-1307, USA.
39084
39085# To successfuly run this program you will need:
39086# - Current drive should have LFN support (HPFS, ext2, network, etc)
39087# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39088# - gcc
39089# (used to build the .dll)
39090# - emxexp
39091# (used to create .def file from .o files)
39092# - emximp
39093# (used to create .a file from .def file)
39094# - GNU text utilites (cat, sort, uniq)
39095# used to process emxexp output
39096# - GNU file utilities (mv, rm)
39097# - GNU sed
39098# - lxlite (optional, see flag below)
39099# (used for general .dll cleanup)
39100#
39101
39102flag_USE_LXLITE=1;
39103
39104#
39105# helper functions
39106# basnam, variant of basename, which does _not_ remove the path, _iff_
39107# second argument (suffix to remove) is given
39108basnam(){
39109 case ${D}# in
39110 1)
39111 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39112 ;;
39113 2)
39114 echo ${D}1 | sed 's/'${D}2'${D}//'
39115 ;;
39116 *)
39117 echo "error in basnam ${D}*"
39118 exit 8
39119 ;;
39120 esac
39121}
39122
39123# Cleanup temporary files and output
39124CleanUp() {
39125 cd ${D}curDir
39126 for i in ${D}inputFiles ; do
39127 case ${D}i in
39128 *!)
39129 rm -rf \`basnam ${D}i !\`
39130 ;;
39131 *)
39132 ;;
39133 esac
39134 done
39135
39136 # Kill result in case of failure as there is just to many stupid make/nmake
39137 # things out there which doesn't do this.
2057db16 39138 if [] ${D}# -eq 0 []; then
473276a9
VS
39139 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39140 fi
39141}
39142
39143# Print usage and exit script with rc=1.
39144PrintHelp() {
2057db16
VS
39145 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
39146 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
39147 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
39148 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
39149 echo ' []*.o[] []*.a[]'
473276a9
VS
39150 echo '*> "output_file" should have no extension.'
39151 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39152 echo ' The import library name is derived from this and is set to "name".a,'
39153 echo ' unless overridden by -import'
39154 echo '*> "importlib_name" should have no extension.'
39155 echo ' If it has the .o, or .a extension, it is automatically removed.'
39156 echo ' This name is used as the import library name and may be longer and'
39157 echo ' more descriptive than the DLL name which has to follow the old '
39158 echo ' 8.3 convention of FAT.'
39159 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39160 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39161 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
39162 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
39163 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
39164 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39165 echo ' If the last character of a symbol is "*", all symbols beginning'
39166 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 39167 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39168 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 39169 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 39170 echo ' C runtime DLLs.'
2057db16 39171 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39172 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39173 echo ' unchanged to GCC at the end of command line.'
39174 echo '*> If you create a DLL from a library and you do not specify -o,'
39175 echo ' the basename for DLL and import library will be set to library name,'
39176 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39177 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39178 echo ' library will be renamed into gcc_s.a.'
39179 echo '--------'
39180 echo 'Example:'
39181 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39182 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39183 CleanUp
39184 exit 1
39185}
39186
39187# Execute a command.
39188# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39189# @Uses Whatever CleanUp() uses.
39190doCommand() {
39191 echo "${D}*"
39192 eval ${D}*
39193 rcCmd=${D}?
39194
2057db16 39195 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
39196 echo "command failed, exit code="${D}rcCmd
39197 CleanUp
39198 exit ${D}rcCmd
39199 fi
39200}
39201
39202# main routine
39203# setup globals
39204cmdLine=${D}*
39205outFile=""
39206outimpFile=""
39207inputFiles=""
39208description=""
39209CC=gcc.exe
39210CFLAGS="-s -Zcrtdll"
39211EXTRA_CFLAGS=""
39212EXPORT_BY_ORDINALS=0
39213exclude_symbols=""
39214library_flags=""
39215curDir=\`pwd\`
39216curDirS=curDir
39217case ${D}curDirS in
39218*/)
39219 ;;
39220*)
39221 curDirS=${D}{curDirS}"/"
39222 ;;
39223esac
39224# Parse commandline
39225libsToLink=0
2057db16 39226while [] ${D}1 []; do
473276a9
VS
39227 case ${D}1 in
39228 -ord*)
39229 EXPORT_BY_ORDINALS=1;
39230 ;;
39231 -o*)
39232 shift
39233 outFile=${D}1
39234 ;;
39235 -i*)
39236 shift
39237 outimpFile=${D}1
39238 ;;
39239 -d*)
39240 shift
39241 description=${D}1
39242 ;;
39243 -f*)
39244 shift
39245 CFLAGS=${D}1
39246 ;;
39247 -c*)
39248 shift
39249 CC=${D}1
39250 ;;
39251 -h*)
39252 PrintHelp
39253 ;;
39254 -ex*)
39255 shift
39256 exclude_symbols=${D}{exclude_symbols}${D}1" "
39257 ;;
39258 -libf*)
39259 shift
39260 library_flags=${D}{library_flags}${D}1" "
39261 ;;
39262 -nocrt*)
39263 CFLAGS="-s"
39264 ;;
39265 -nolxl*)
39266 flag_USE_LXLITE=0
39267 ;;
39268 -* | /*)
39269 case ${D}1 in
39270 -L* | -l*)
39271 libsToLink=1
39272 ;;
39273 *)
39274 ;;
39275 esac
39276 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39277 ;;
39278 *)
39279 found=0;
2057db16 39280 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39281 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39282 else
39283 for file in ${D}1 ; do
2057db16 39284 if [] -f ${D}file []; then
473276a9
VS
39285 inputFiles="${D}{inputFiles} ${D}file"
39286 found=1
39287 fi
39288 done
2057db16 39289 if [] ${D}found -eq 0 []; then
473276a9
VS
39290 echo "ERROR: No file(s) found: "${D}1
39291 exit 8
39292 fi
39293 fi
39294 ;;
39295 esac
39296 shift
39297done # iterate cmdline words
39298
39299#
2057db16 39300if [] -z "${D}inputFiles" []; then
473276a9
VS
39301 echo "dllar: no input files"
39302 PrintHelp
39303fi
39304
39305# Now extract all .o files from .a files
39306newInputFiles=""
39307for file in ${D}inputFiles ; do
39308 case ${D}file in
39309 *.a | *.lib)
39310 case ${D}file in
39311 *.a)
39312 suffix=".a"
39313 AR="ar"
39314 ;;
39315 *.lib)
39316 suffix=".lib"
39317 AR="emxomfar"
39318 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39319 ;;
39320 *)
39321 ;;
39322 esac
39323 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39324 mkdir ${D}dirname
2057db16 39325 if [] ${D}? -ne 0 []; then
473276a9
VS
39326 echo "Failed to create subdirectory ./${D}dirname"
39327 CleanUp
39328 exit 8;
39329 fi
39330 # Append '!' to indicate archive
39331 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39332 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39333 cd ${D}curDir
39334 found=0;
39335 for subfile in ${D}dirname/*.o* ; do
2057db16 39336 if [] -f ${D}subfile []; then
473276a9 39337 found=1
2057db16 39338 if [] -s ${D}subfile []; then
473276a9
VS
39339 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39340 newInputFiles="${D}newInputFiles ${D}subfile"
39341 fi
39342 fi
39343 done
2057db16 39344 if [] ${D}found -eq 0 []; then
473276a9
VS
39345 echo "WARNING: there are no files in archive \'${D}file\'"
39346 fi
39347 ;;
39348 *)
39349 newInputFiles="${D}{newInputFiles} ${D}file"
39350 ;;
39351 esac
39352done
39353inputFiles="${D}newInputFiles"
39354
39355# Output filename(s).
39356do_backup=0;
2057db16 39357if [] -z ${D}outFile []; then
473276a9
VS
39358 do_backup=1;
39359 set outFile ${D}inputFiles; outFile=${D}2
39360fi
39361
39362# If it is an archive, remove the '!' and the '_%' suffixes
39363case ${D}outFile in
39364*_%!)
39365 outFile=\`basnam ${D}outFile _%!\`
39366 ;;
39367*)
39368 ;;
39369esac
39370case ${D}outFile in
39371*.dll)
39372 outFile=\`basnam ${D}outFile .dll\`
39373 ;;
39374*.DLL)
39375 outFile=\`basnam ${D}outFile .DLL\`
39376 ;;
39377*.o)
39378 outFile=\`basnam ${D}outFile .o\`
39379 ;;
39380*.obj)
39381 outFile=\`basnam ${D}outFile .obj\`
39382 ;;
39383*.a)
39384 outFile=\`basnam ${D}outFile .a\`
39385 ;;
39386*.lib)
39387 outFile=\`basnam ${D}outFile .lib\`
39388 ;;
39389*)
39390 ;;
39391esac
39392case ${D}outimpFile in
39393*.a)
39394 outimpFile=\`basnam ${D}outimpFile .a\`
39395 ;;
39396*.lib)
39397 outimpFile=\`basnam ${D}outimpFile .lib\`
39398 ;;
39399*)
39400 ;;
39401esac
2057db16 39402if [] -z ${D}outimpFile []; then
473276a9
VS
39403 outimpFile=${D}outFile
39404fi
39405defFile="${D}{outFile}.def"
39406arcFile="${D}{outimpFile}.a"
39407arcFile2="${D}{outimpFile}.lib"
39408dllFile="${D}outFile"
39409# Add suffix to dllFile later, first we need a version to use as
39410# name in .def file.
39411
2057db16
VS
39412if [] ${D}do_backup -ne 0 [] ; then
39413 if [] -f ${D}arcFile [] ; then
473276a9
VS
39414 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39415 fi
2057db16 39416 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39417 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39418 fi
39419fi
39420
39421# Extract public symbols from all the object files.
39422tmpdefFile=${D}{defFile}_%
39423rm -f ${D}tmpdefFile
39424for file in ${D}inputFiles ; do
39425 case ${D}file in
39426 *!)
39427 ;;
39428 *)
39429 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39430 ;;
39431 esac
39432done
39433
39434# Create the def file.
39435rm -f ${D}defFile
39436echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39437dllFile="${D}dllFile.dll"
2057db16 39438if [] -n ${D}description []; then
473276a9
VS
39439 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39440fi
39441echo "EXPORTS" >> ${D}defFile
39442
39443doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39444grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39445
39446# Checks if the export is ok or not.
39447for word in ${D}exclude_symbols; do
39448 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39449 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39450done
39451
39452
2057db16 39453if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39454 sed "=" < ${D}tmpdefFile | \
39455 sed '
39456 N
39457 : loop
2057db16 39458 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39459 t loop
39460 ' > ${D}{tmpdefFile}%
39461 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39462else
39463 rm -f ${D}{tmpdefFile}%
39464fi
39465cat ${D}tmpdefFile >> ${D}defFile
39466rm -f ${D}tmpdefFile
39467
39468# Do linking, create implib, and apply lxlite.
39469gccCmdl="";
39470for file in ${D}inputFiles ; do
39471 case ${D}file in
39472 *!)
39473 ;;
39474 *)
39475 gccCmdl="${D}gccCmdl ${D}file"
39476 ;;
39477 esac
39478done
39479doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39480touch "${D}{outFile}.dll"
39481
39482doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39483if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39484 add_flags="";
2057db16 39485 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39486 add_flags="-ynd"
39487 fi
39488 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39489fi
39490doCommand "emxomf -s -l ${D}arcFile"
39491
39492# Successful exit.
39493CleanUp 1
39494exit 0
39495EOF
39496
39497 chmod +x dllar.sh
a848cd7e
SC
39498 ;;
39499
39500 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39501 *-*-sunos4* | \
39502 *-*-osf* | \
39503 *-*-dgux5* | \
39504 *-*-sysv5* )
39505 ;;
39506
39507 *)
39508 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39509echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39510 { (exit 1); exit 1; }; }
39511 esac
39512
2057db16
VS
39513 if test "x$PIC_FLAG" != "x" ; then
39514 PIC_FLAG="$PIC_FLAG -DPIC"
39515 fi
39516
a848cd7e
SC
39517 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39518 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39519 fi
39520 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39521 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39522 fi
39523
39524
39525
39526
39527
39528
39529
39530
39531 USE_SOVERSION=0
39532 USE_SOVERLINUX=0
39533 USE_SOVERSOLARIS=0
39534 USE_SOSYMLINKS=0
39535 USE_MACVERSION=0
39536 SONAME_FLAG=
39537
39538 case "${BAKEFILE_HOST}" in
39539 *-*-linux* )
39540 SONAME_FLAG="-Wl,-soname,"
39541 USE_SOVERSION=1
39542 USE_SOVERLINUX=1
39543 USE_SOSYMLINKS=1
39544 ;;
39545
39546 *-*-solaris2* )
39547 SONAME_FLAG="-h "
39548 USE_SOVERSION=1
39549 USE_SOVERSOLARIS=1
39550 USE_SOSYMLINKS=1
39551 ;;
39552
39553 *-*-darwin* )
39554 USE_MACVERSION=1
39555 USE_SOVERSION=1
39556 USE_SOSYMLINKS=1
39557 ;;
39558 esac
39559
39560
39561
39562
39563
39564
39565
39566
39567
39568 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39569echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39570 DEPS_TRACKING=0
39571
39572 if test "x$GCC" = "xyes"; then
39573 DEPSMODE=gcc
39574 DEPS_TRACKING=1
39575 case "${BAKEFILE_HOST}" in
39576 powerpc-*-darwin* )
39577 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39578 ;;
39579 * )
39580 DEPSFLAG_GCC="-MMD"
39581 ;;
39582 esac
39583 echo "$as_me:$LINENO: result: gcc" >&5
39584echo "${ECHO_T}gcc" >&6
39585 else
39586 echo "$as_me:$LINENO: result: none" >&5
39587echo "${ECHO_T}none" >&6
39588 fi
39589
39590 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39591
39592D='$'
39593cat <<EOF >bk-deps
a848cd7e
SC
39594#!/bin/sh
39595
39596# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39597# script. It is used to track C/C++ files dependencies in portable way.
39598#
39599# Permission is given to use this file in any way.
39600
473276a9 39601DEPSMODE=${DEPSMODE}
a848cd7e 39602DEPSDIR=.deps
473276a9 39603DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39604
473276a9 39605mkdir -p ${D}DEPSDIR
a848cd7e 39606
473276a9
VS
39607if test ${D}DEPSMODE = gcc ; then
39608 ${D}* ${D}{DEPSFLAG_GCC}
39609 status=${D}?
39610 if test ${D}{status} != 0 ; then
39611 exit ${D}{status}
a848cd7e
SC
39612 fi
39613 # move created file to the location we want it in:
473276a9
VS
39614 while test ${D}# -gt 0; do
39615 case "${D}1" in
a848cd7e
SC
39616 -o )
39617 shift
473276a9 39618 objfile=${D}1
a848cd7e
SC
39619 ;;
39620 -* )
39621 ;;
39622 * )
473276a9 39623 srcfile=${D}1
a848cd7e
SC
39624 ;;
39625 esac
39626 shift
39627 done
473276a9
VS
39628 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39629 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39630 if test -f ${D}depfile ; then
39631 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39632 rm -f ${D}depfile
a848cd7e 39633 else
473276a9
VS
39634 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39635 if test -f ${D}depfile ; then
39636 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39637 rm -f ${D}depfile
a848cd7e
SC
39638 fi
39639 fi
39640 exit 0
39641else
473276a9
VS
39642 ${D}*
39643 exit ${D}?
a848cd7e
SC
39644fi
39645EOF
473276a9 39646
a848cd7e
SC
39647 chmod +x bk-deps
39648 fi
39649
39650
39651
39652
39653 RESCOMP=
39654 SETFILE=
39655
39656 case ${BAKEFILE_HOST} in
39657 *-*-cygwin* | *-*-mingw32* )
39658 if test "$build" != "$host" ; then
39659 RESCOMP=$host_alias-windres
39660 else
39661 # Extract the first word of "windres", so it can be a program name with args.
39662set dummy windres; ac_word=$2
39663echo "$as_me:$LINENO: checking for $ac_word" >&5
39664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39665if test "${ac_cv_prog_RESCOMP+set}" = set; then
39666 echo $ECHO_N "(cached) $ECHO_C" >&6
39667else
39668 if test -n "$RESCOMP"; then
39669 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39670else
39671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39672for as_dir in $PATH
39673do
39674 IFS=$as_save_IFS
39675 test -z "$as_dir" && as_dir=.
39676 for ac_exec_ext in '' $ac_executable_extensions; do
39677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39678 ac_cv_prog_RESCOMP="windres"
39679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39680 break 2
39681 fi
39682done
39683done
39684
39685 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39686fi
39687fi
39688RESCOMP=$ac_cv_prog_RESCOMP
39689if test -n "$RESCOMP"; then
39690 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39691echo "${ECHO_T}$RESCOMP" >&6
39692else
39693 echo "$as_me:$LINENO: result: no" >&5
39694echo "${ECHO_T}no" >&6
39695fi
39696
39697 fi
39698 ;;
39699
39700 *-*-darwin* )
39701 # Extract the first word of "Rez", so it can be a program name with args.
39702set dummy Rez; ac_word=$2
39703echo "$as_me:$LINENO: checking for $ac_word" >&5
39704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39705if test "${ac_cv_prog_RESCOMP+set}" = set; then
39706 echo $ECHO_N "(cached) $ECHO_C" >&6
39707else
39708 if test -n "$RESCOMP"; then
39709 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39710else
39711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39712for as_dir in $PATH
39713do
39714 IFS=$as_save_IFS
39715 test -z "$as_dir" && as_dir=.
39716 for ac_exec_ext in '' $ac_executable_extensions; do
39717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39718 ac_cv_prog_RESCOMP="Rez"
39719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39720 break 2
39721 fi
39722done
39723done
39724
39725 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39726fi
39727fi
39728RESCOMP=$ac_cv_prog_RESCOMP
39729if test -n "$RESCOMP"; then
39730 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39731echo "${ECHO_T}$RESCOMP" >&6
39732else
39733 echo "$as_me:$LINENO: result: no" >&5
39734echo "${ECHO_T}no" >&6
39735fi
39736
39737 # Extract the first word of "SetFile", so it can be a program name with args.
39738set dummy SetFile; ac_word=$2
39739echo "$as_me:$LINENO: checking for $ac_word" >&5
39740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39741if test "${ac_cv_prog_SETFILE+set}" = set; then
39742 echo $ECHO_N "(cached) $ECHO_C" >&6
39743else
39744 if test -n "$SETFILE"; then
39745 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39746else
39747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39748for as_dir in $PATH
39749do
39750 IFS=$as_save_IFS
39751 test -z "$as_dir" && as_dir=.
39752 for ac_exec_ext in '' $ac_executable_extensions; do
39753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39754 ac_cv_prog_SETFILE="SetFile"
39755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39756 break 2
39757 fi
39758done
39759done
39760
39761 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39762fi
39763fi
39764SETFILE=$ac_cv_prog_SETFILE
39765if test -n "$SETFILE"; then
39766 echo "$as_me:$LINENO: result: $SETFILE" >&5
39767echo "${ECHO_T}$SETFILE" >&6
39768else
39769 echo "$as_me:$LINENO: result: no" >&5
39770echo "${ECHO_T}no" >&6
39771fi
39772
39773 ;;
39774 esac
39775
39776
39777
39778
39779
2057db16 39780 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39781
dcc1b6ad 39782
ceec2216 39783
f7e98dee
RN
39784
39785
9f45f08e 39786BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39787
646b6ec1 39788
74b84332 39789
a848cd7e
SC
39790 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39791if test "${enable_precomp_headers+set}" = set; then
39792 enableval="$enable_precomp_headers"
39793 bk_use_pch="$enableval"
39794fi;
39795
39796 GCC_PCH=0
39797
39798 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39799 if test "x$GCC" = "xyes"; then
39800 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39801echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39802 cat >conftest.$ac_ext <<_ACEOF
39803/* confdefs.h. */
39804_ACEOF
39805cat confdefs.h >>conftest.$ac_ext
39806cat >>conftest.$ac_ext <<_ACEOF
39807/* end confdefs.h. */
39808
39809int
39810main ()
39811{
39812
39813 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39814 #error "no pch support"
39815 #endif
39816 #if (__GNUC__ < 3)
39817 #error "no pch support"
39818 #endif
39819 #if (__GNUC__ == 3) && \
39820 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39821 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39822 #error "no pch support"
39823 #endif
39824
39825 ;
39826 return 0;
39827}
39828_ACEOF
39829rm -f conftest.$ac_objext
39830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39831 (eval $ac_compile) 2>conftest.er1
a848cd7e 39832 ac_status=$?
ac1cb8d3
VS
39833 grep -v '^ *+' conftest.er1 >conftest.err
39834 rm -f conftest.er1
39835 cat conftest.err >&5
a848cd7e
SC
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); } &&
c228d3a4
RN
39838 { ac_try='test -z "$ac_c_werror_flag"
39839 || test ! -s conftest.err'
ac1cb8d3
VS
39840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39841 (eval $ac_try) 2>&5
39842 ac_status=$?
39843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844 (exit $ac_status); }; } &&
39845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847 (eval $ac_try) 2>&5
39848 ac_status=$?
39849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850 (exit $ac_status); }; }; then
39851
39852 echo "$as_me:$LINENO: result: yes" >&5
39853echo "${ECHO_T}yes" >&6
a848cd7e
SC
39854 GCC_PCH=1
39855
39856else
39857 echo "$as_me: failed program was:" >&5
39858sed 's/^/| /' conftest.$ac_ext >&5
39859
39860
39861 echo "$as_me:$LINENO: result: no" >&5
39862echo "${ECHO_T}no" >&6
39863
39864fi
ac1cb8d3 39865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39866 if test $GCC_PCH = 1 ; then
39867 cat <<EOF >bk-make-pch
39868#!/bin/sh
39869
39870# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39871# script. It is used to generated precompiled headers.
39872#
39873# Permission is given to use this file in any way.
39874
39875outfile="\${1}"
39876header="\${2}"
39877shift
39878shift
39879
39880compiler=
39881headerfile=
39882while test \${#} -gt 0; do
39883 case "\${1}" in
39884 -I* )
39885 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39886 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39887 headerfile="\${incdir}/\${header}"
39888 fi
39889 ;;
39890 esac
39891 compiler="\${compiler} \${1}"
39892 shift
39893done
39894
39895if test "x\${headerfile}" = "x" ; then
39896 echo "error: can't find header \${header} in include paths" >2
39897else
39898 if test -f \${outfile} ; then
39899 rm -f \${outfile}
39900 else
39901 mkdir -p \`dirname \${outfile}\`
39902 fi
39903 depsfile=".deps/\`basename \${outfile}\`.d"
39904 mkdir -p .deps
39905 # can do this because gcc is >= 3.4:
39906 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39907 exit \${?}
39908fi
39909EOF
39910 chmod +x bk-make-pch
39911 fi
39912 fi
39913 fi
39914
39915
39916
39917
39918
dcc1b6ad
VS
39919
39920
39921 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39922if test "${enable_precomp_headers+set}" = set; then
39923 enableval="$enable_precomp_headers"
39924 bk_use_pch="$enableval"
39925fi;
39926
39927 GCC_PCH=0
39928
39929 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39930 if test "x$GCC" = "xyes"; then
39931 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39932echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39933 cat >conftest.$ac_ext <<_ACEOF
39934/* confdefs.h. */
39935_ACEOF
39936cat confdefs.h >>conftest.$ac_ext
39937cat >>conftest.$ac_ext <<_ACEOF
39938/* end confdefs.h. */
39939
39940int
39941main ()
39942{
39943
39944 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39945 #error "no pch support"
39946 #endif
39947 #if (__GNUC__ < 3)
39948 #error "no pch support"
39949 #endif
39950 #if (__GNUC__ == 3) && \
39951 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39952 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39953 #error "no pch support"
39954 #endif
39955
39956 ;
39957 return 0;
39958}
39959_ACEOF
39960rm -f conftest.$ac_objext
39961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39962 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39963 ac_status=$?
ac1cb8d3
VS
39964 grep -v '^ *+' conftest.er1 >conftest.err
39965 rm -f conftest.er1
39966 cat conftest.err >&5
dcc1b6ad
VS
39967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39968 (exit $ac_status); } &&
c228d3a4
RN
39969 { ac_try='test -z "$ac_c_werror_flag"
39970 || test ! -s conftest.err'
ac1cb8d3
VS
39971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39972 (eval $ac_try) 2>&5
39973 ac_status=$?
39974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39975 (exit $ac_status); }; } &&
39976 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39978 (eval $ac_try) 2>&5
39979 ac_status=$?
39980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981 (exit $ac_status); }; }; then
39982
39983 echo "$as_me:$LINENO: result: yes" >&5
39984echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39985 GCC_PCH=1
39986
39987else
39988 echo "$as_me: failed program was:" >&5
39989sed 's/^/| /' conftest.$ac_ext >&5
39990
39991
39992 echo "$as_me:$LINENO: result: no" >&5
39993echo "${ECHO_T}no" >&6
39994
39995fi
ac1cb8d3 39996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39997 if test $GCC_PCH = 1 ; then
39998 cat <<EOF >bk-make-pch
39999#!/bin/sh
40000
40001# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40002# script. It is used to generated precompiled headers.
40003#
40004# Permission is given to use this file in any way.
40005
40006outfile="\${1}"
40007header="\${2}"
40008shift
40009shift
40010
40011compiler=
40012headerfile=
40013while test \${#} -gt 0; do
40014 case "\${1}" in
40015 -I* )
40016 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40017 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40018 headerfile="\${incdir}/\${header}"
40019 fi
40020 ;;
40021 esac
40022 compiler="\${compiler} \${1}"
40023 shift
40024done
40025
40026if test "x\${headerfile}" = "x" ; then
40027 echo "error: can't find header \${header} in include paths" >2
40028else
40029 if test -f \${outfile} ; then
40030 rm -f \${outfile}
40031 else
40032 mkdir -p \`dirname \${outfile}\`
40033 fi
40034 depsfile=".deps/\`basename \${outfile}\`.d"
40035 mkdir -p .deps
40036 # can do this because gcc is >= 3.4:
40037 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40038 exit \${?}
40039fi
40040EOF
40041 chmod +x bk-make-pch
40042 fi
40043 fi
40044 fi
40045
40046
40047
a848cd7e
SC
40048 COND_BUILD_DEBUG="#"
40049 if test "x$BUILD" = "xdebug" ; then
40050 COND_BUILD_DEBUG=""
40051 fi
40052
40053 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40054 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40055 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40056 fi
40057
40058 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40059 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40060 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40061 fi
40062
40063 COND_BUILD_DEBUG_UNICODE_0="#"
40064 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40065 COND_BUILD_DEBUG_UNICODE_0=""
40066 fi
40067
40068 COND_BUILD_DEBUG_UNICODE_1="#"
40069 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40070 COND_BUILD_DEBUG_UNICODE_1=""
40071 fi
40072
40073 COND_BUILD_RELEASE="#"
40074 if test "x$BUILD" = "xrelease" ; then
40075 COND_BUILD_RELEASE=""
40076 fi
40077
40078 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40079 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40080 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40081 fi
40082
40083 COND_BUILD_RELEASE_UNICODE_0="#"
40084 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40085 COND_BUILD_RELEASE_UNICODE_0=""
40086 fi
40087
40088 COND_BUILD_RELEASE_UNICODE_1="#"
40089 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40090 COND_BUILD_RELEASE_UNICODE_1=""
40091 fi
40092
40093 COND_DEBUG_FLAG_1="#"
40094 if test "x$DEBUG_FLAG" = "x1" ; then
40095 COND_DEBUG_FLAG_1=""
40096 fi
40097
40098 COND_DEBUG_INFO_0="#"
40099 if test "x$DEBUG_INFO" = "x0" ; then
40100 COND_DEBUG_INFO_0=""
40101 fi
40102
40103 COND_DEBUG_INFO_1="#"
40104 if test "x$DEBUG_INFO" = "x1" ; then
40105 COND_DEBUG_INFO_1=""
40106 fi
40107
40108 COND_DEPS_TRACKING_0="#"
40109 if test "x$DEPS_TRACKING" = "x0" ; then
40110 COND_DEPS_TRACKING_0=""
40111 fi
40112
40113 COND_DEPS_TRACKING_1="#"
40114 if test "x$DEPS_TRACKING" = "x1" ; then
40115 COND_DEPS_TRACKING_1=""
40116 fi
40117
40118 COND_GCC_PCH_1="#"
40119 if test "x$GCC_PCH" = "x1" ; then
40120 COND_GCC_PCH_1=""
40121 fi
40122
40123 COND_MONOLITHIC_0="#"
40124 if test "x$MONOLITHIC" = "x0" ; then
40125 COND_MONOLITHIC_0=""
40126 fi
40127
40128 COND_MONOLITHIC_0_SHARED_0="#"
40129 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40130 COND_MONOLITHIC_0_SHARED_0=""
40131 fi
40132
40133 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40134 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40135 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40136 fi
40137
40138 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40139 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40140 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40141 fi
40142
40143 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40144 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40145 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40146 fi
40147
40148 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40149 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40150 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40151 fi
40152
ceec2216
RL
40153 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40154 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40155 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40156 fi
40157
a848cd7e
SC
40158 COND_MONOLITHIC_0_SHARED_1="#"
40159 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40160 COND_MONOLITHIC_0_SHARED_1=""
40161 fi
40162
40163 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40164 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40165 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40166 fi
40167
40168 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40169 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40170 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40171 fi
40172
40173 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40174 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40175 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40176 fi
40177
40178 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40179 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40180 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40181 fi
40182
ceec2216
RL
40183 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40184 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40185 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40186 fi
40187
a848cd7e
SC
40188 COND_MONOLITHIC_0_USE_ODBC_1="#"
40189 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40190 COND_MONOLITHIC_0_USE_ODBC_1=""
40191 fi
40192
40193 COND_MONOLITHIC_1="#"
40194 if test "x$MONOLITHIC" = "x1" ; then
40195 COND_MONOLITHIC_1=""
40196 fi
40197
40198 COND_MONOLITHIC_1_SHARED_0="#"
40199 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40200 COND_MONOLITHIC_1_SHARED_0=""
40201 fi
40202
40203 COND_MONOLITHIC_1_SHARED_1="#"
40204 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40205 COND_MONOLITHIC_1_SHARED_1=""
40206 fi
40207
40208 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40209 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40210 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40211 fi
40212
40213 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40214 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40215 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40216 fi
40217
40218 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40219 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40220 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40221 fi
40222
40223 COND_PLATFORM_MACOSX_1="#"
40224 if test "x$PLATFORM_MACOSX" = "x1" ; then
40225 COND_PLATFORM_MACOSX_1=""
40226 fi
40227
a30f955f
VS
40228 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40229 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40230 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40231 fi
40232
a848cd7e
SC
40233 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40234 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40235 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40236 fi
40237
40238 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40239 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40240 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40241 fi
40242
40243 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40244 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40245 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40246 fi
40247
ebee3cd0
VS
40248 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40249 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40250 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40251 fi
40252
40253 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40254 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40255 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40256 fi
40257
a848cd7e
SC
40258 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40259 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40260 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40261 fi
40262
40263 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40264 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40265 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40266 fi
40267
40268 COND_PLATFORM_MAC_1="#"
40269 if test "x$PLATFORM_MAC" = "x1" ; then
40270 COND_PLATFORM_MAC_1=""
40271 fi
40272
40273 COND_PLATFORM_OS2_1="#"
40274 if test "x$PLATFORM_OS2" = "x1" ; then
40275 COND_PLATFORM_OS2_1=""
40276 fi
40277
40278 COND_PLATFORM_UNIX_0="#"
40279 if test "x$PLATFORM_UNIX" = "x0" ; then
40280 COND_PLATFORM_UNIX_0=""
40281 fi
40282
40283 COND_PLATFORM_UNIX_1="#"
40284 if test "x$PLATFORM_UNIX" = "x1" ; then
40285 COND_PLATFORM_UNIX_1=""
40286 fi
40287
40288 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40289 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40290 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40291 fi
40292
40293 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40294 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40295 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40296 fi
40297
40298 COND_PLATFORM_WIN32_0="#"
40299 if test "x$PLATFORM_WIN32" = "x0" ; then
40300 COND_PLATFORM_WIN32_0=""
40301 fi
40302
40303 COND_PLATFORM_WIN32_1="#"
40304 if test "x$PLATFORM_WIN32" = "x1" ; then
40305 COND_PLATFORM_WIN32_1=""
40306 fi
40307
40308 COND_SHARED_0="#"
40309 if test "x$SHARED" = "x0" ; then
40310 COND_SHARED_0=""
40311 fi
40312
ceec2216
RL
40313 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40314 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40315 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40316 fi
40317
40318 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40319 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40320 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40321 fi
40322
40323 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40324 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40325 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40326 fi
40327
a848cd7e
SC
40328 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40329 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40330 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40331 fi
40332
40333 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40334 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40335 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40336 fi
40337
40338 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40339 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40340 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40341 fi
40342
40343 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40344 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40345 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40346 fi
40347
40348 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40349 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40350 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40351 fi
40352
40353 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40354 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40355 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40356 fi
40357
40358 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40359 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40360 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40361 fi
40362
40363 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40364 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40365 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40366 fi
40367
40368 COND_SHARED_1="#"
40369 if test "x$SHARED" = "x1" ; then
40370 COND_SHARED_1=""
40371 fi
40372
40373 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40374 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40375 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40376 fi
40377
a30f955f
VS
40378 COND_TOOLKIT_="#"
40379 if test "x$TOOLKIT" = "x" ; then
40380 COND_TOOLKIT_=""
40381 fi
40382
a848cd7e
SC
40383 COND_TOOLKIT_COCOA="#"
40384 if test "x$TOOLKIT" = "xCOCOA" ; then
40385 COND_TOOLKIT_COCOA=""
40386 fi
40387
40388 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40389 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40390 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40391 fi
40392
40393 COND_TOOLKIT_GTK="#"
40394 if test "x$TOOLKIT" = "xGTK" ; then
40395 COND_TOOLKIT_GTK=""
40396 fi
40397
40398 COND_TOOLKIT_GTK_USE_GUI_1="#"
40399 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40400 COND_TOOLKIT_GTK_USE_GUI_1=""
40401 fi
40402
40403 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40404 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40405 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40406 fi
40407
40408 COND_TOOLKIT_MAC="#"
40409 if test "x$TOOLKIT" = "xMAC" ; then
40410 COND_TOOLKIT_MAC=""
40411 fi
40412
40413 COND_TOOLKIT_MAC_USE_GUI_1="#"
40414 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40415 COND_TOOLKIT_MAC_USE_GUI_1=""
40416 fi
40417
40418 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40419 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40420 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40421 fi
40422
40423 COND_TOOLKIT_MGL="#"
40424 if test "x$TOOLKIT" = "xMGL" ; then
40425 COND_TOOLKIT_MGL=""
40426 fi
40427
40428 COND_TOOLKIT_MGL_USE_GUI_1="#"
40429 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40430 COND_TOOLKIT_MGL_USE_GUI_1=""
40431 fi
40432
40433 COND_TOOLKIT_MOTIF="#"
40434 if test "x$TOOLKIT" = "xMOTIF" ; then
40435 COND_TOOLKIT_MOTIF=""
40436 fi
40437
40438 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40439 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40440 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40441 fi
40442
40443 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40444 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40445 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40446 fi
40447
40448 COND_TOOLKIT_MSW="#"
40449 if test "x$TOOLKIT" = "xMSW" ; then
40450 COND_TOOLKIT_MSW=""
40451 fi
40452
40453 COND_TOOLKIT_MSW_USE_GUI_1="#"
40454 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40455 COND_TOOLKIT_MSW_USE_GUI_1=""
40456 fi
40457
40458 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40459 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40460 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40461 fi
40462
40463 COND_TOOLKIT_PM="#"
40464 if test "x$TOOLKIT" = "xPM" ; then
40465 COND_TOOLKIT_PM=""
40466 fi
40467
40468 COND_TOOLKIT_PM_USE_GUI_1="#"
40469 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40470 COND_TOOLKIT_PM_USE_GUI_1=""
40471 fi
40472
40473 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40474 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40475 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40476 fi
40477
3fd9c298
DE
40478 COND_TOOLKIT_WINCE="#"
40479 if test "x$TOOLKIT" = "xWINCE" ; then
40480 COND_TOOLKIT_WINCE=""
40481 fi
40482
40483 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40484 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40485 COND_TOOLKIT_WINCE_USE_GUI_1=""
40486 fi
40487
40488 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40489 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40490 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40491 fi
40492
a848cd7e
SC
40493 COND_TOOLKIT_X11="#"
40494 if test "x$TOOLKIT" = "xX11" ; then
40495 COND_TOOLKIT_X11=""
40496 fi
40497
40498 COND_TOOLKIT_X11_USE_GUI_1="#"
40499 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40500 COND_TOOLKIT_X11_USE_GUI_1=""
40501 fi
40502
40503 COND_UNICODE_1="#"
40504 if test "x$UNICODE" = "x1" ; then
40505 COND_UNICODE_1=""
40506 fi
40507
40508 COND_USE_EXCEPTIONS_0="#"
40509 if test "x$USE_EXCEPTIONS" = "x0" ; then
40510 COND_USE_EXCEPTIONS_0=""
40511 fi
40512
40513 COND_USE_EXCEPTIONS_1="#"
40514 if test "x$USE_EXCEPTIONS" = "x1" ; then
40515 COND_USE_EXCEPTIONS_1=""
40516 fi
40517
40518 COND_USE_GUI_0="#"
40519 if test "x$USE_GUI" = "x0" ; then
40520 COND_USE_GUI_0=""
40521 fi
40522
40523 COND_USE_GUI_1="#"
40524 if test "x$USE_GUI" = "x1" ; then
40525 COND_USE_GUI_1=""
40526 fi
40527
40528 COND_USE_GUI_1_WXUNIV_0="#"
40529 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40530 COND_USE_GUI_1_WXUNIV_0=""
40531 fi
40532
40533 COND_USE_GUI_1_WXUNIV_1="#"
40534 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40535 COND_USE_GUI_1_WXUNIV_1=""
40536 fi
40537
40538 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40539 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40540 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40541 fi
40542
40543 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40544 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40545 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40546 fi
40547
40548 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40549 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40550 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40551 fi
40552
ceec2216
RL
40553 COND_USE_ODBC_1="#"
40554 if test "x$USE_ODBC" = "x1" ; then
40555 COND_USE_ODBC_1=""
40556 fi
40557
a848cd7e
SC
40558 COND_USE_PLUGINS_0="#"
40559 if test "x$USE_PLUGINS" = "x0" ; then
40560 COND_USE_PLUGINS_0=""
40561 fi
40562
40563 COND_USE_SOSYMLINKS_1="#"
40564 if test "x$USE_SOSYMLINKS" = "x1" ; then
40565 COND_USE_SOSYMLINKS_1=""
40566 fi
40567
40568 COND_USE_SOVERLINUX_1="#"
40569 if test "x$USE_SOVERLINUX" = "x1" ; then
40570 COND_USE_SOVERLINUX_1=""
40571 fi
40572
40573 COND_USE_SOVERSION_0="#"
40574 if test "x$USE_SOVERSION" = "x0" ; then
40575 COND_USE_SOVERSION_0=""
40576 fi
40577
40578 COND_USE_SOVERSOLARIS_1="#"
40579 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40580 COND_USE_SOVERSOLARIS_1=""
40581 fi
40582
a13a7f89
RL
40583 COND_USE_XRC_1="#"
40584 if test "x$USE_XRC" = "x1" ; then
40585 COND_USE_XRC_1=""
40586 fi
40587
a848cd7e
SC
40588 COND_WITH_PLUGIN_SDL_1="#"
40589 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40590 COND_WITH_PLUGIN_SDL_1=""
40591 fi
40592
a848cd7e
SC
40593 COND_WXUNIV_1="#"
40594 if test "x$WXUNIV" = "x1" ; then
40595 COND_WXUNIV_1=""
40596 fi
40597
40598 COND_WXUSE_EXPAT_BUILTIN="#"
40599 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40600 COND_WXUSE_EXPAT_BUILTIN=""
40601 fi
40602
40603 COND_WXUSE_LIBJPEG_BUILTIN="#"
40604 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40605 COND_WXUSE_LIBJPEG_BUILTIN=""
40606 fi
40607
40608 COND_WXUSE_LIBPNG_BUILTIN="#"
40609 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40610 COND_WXUSE_LIBPNG_BUILTIN=""
40611 fi
40612
40613 COND_WXUSE_LIBTIFF_BUILTIN="#"
40614 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40615 COND_WXUSE_LIBTIFF_BUILTIN=""
40616 fi
40617
40618 COND_WXUSE_ODBC_BUILTIN="#"
40619 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40620 COND_WXUSE_ODBC_BUILTIN=""
40621 fi
40622
40623 COND_WXUSE_REGEX_BUILTIN="#"
40624 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40625 COND_WXUSE_REGEX_BUILTIN=""
40626 fi
40627
40628 COND_WXUSE_ZLIB_BUILTIN="#"
40629 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40630 COND_WXUSE_ZLIB_BUILTIN=""
40631 fi
40632
dcc1b6ad
VS
40633 COND_BUILD_DEBUG="#"
40634 if test "x$BUILD" = "xdebug" ; then
40635 COND_BUILD_DEBUG=""
40636 fi
40637
40638 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40639 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40640 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40641 fi
40642
40643 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40644 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40645 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40646 fi
40647
40648 COND_BUILD_DEBUG_UNICODE_0="#"
40649 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40650 COND_BUILD_DEBUG_UNICODE_0=""
40651 fi
40652
40653 COND_BUILD_DEBUG_UNICODE_1="#"
40654 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40655 COND_BUILD_DEBUG_UNICODE_1=""
40656 fi
40657
40658 COND_BUILD_RELEASE="#"
40659 if test "x$BUILD" = "xrelease" ; then
40660 COND_BUILD_RELEASE=""
40661 fi
40662
40663 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40664 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40665 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40666 fi
40667
40668 COND_BUILD_RELEASE_UNICODE_0="#"
40669 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40670 COND_BUILD_RELEASE_UNICODE_0=""
40671 fi
40672
40673 COND_BUILD_RELEASE_UNICODE_1="#"
40674 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40675 COND_BUILD_RELEASE_UNICODE_1=""
40676 fi
40677
40678 COND_DEBUG_FLAG_1="#"
40679 if test "x$DEBUG_FLAG" = "x1" ; then
40680 COND_DEBUG_FLAG_1=""
40681 fi
40682
40683 COND_DEBUG_INFO_0="#"
40684 if test "x$DEBUG_INFO" = "x0" ; then
40685 COND_DEBUG_INFO_0=""
40686 fi
40687
40688 COND_DEBUG_INFO_1="#"
40689 if test "x$DEBUG_INFO" = "x1" ; then
40690 COND_DEBUG_INFO_1=""
40691 fi
40692
40693 COND_DEPS_TRACKING_0="#"
40694 if test "x$DEPS_TRACKING" = "x0" ; then
40695 COND_DEPS_TRACKING_0=""
40696 fi
40697
40698 COND_DEPS_TRACKING_1="#"
40699 if test "x$DEPS_TRACKING" = "x1" ; then
40700 COND_DEPS_TRACKING_1=""
40701 fi
40702
40703 COND_GCC_PCH_1="#"
40704 if test "x$GCC_PCH" = "x1" ; then
40705 COND_GCC_PCH_1=""
40706 fi
40707
40708 COND_MONOLITHIC_0="#"
40709 if test "x$MONOLITHIC" = "x0" ; then
40710 COND_MONOLITHIC_0=""
40711 fi
40712
40713 COND_MONOLITHIC_0_SHARED_0="#"
40714 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40715 COND_MONOLITHIC_0_SHARED_0=""
40716 fi
40717
40718 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40719 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40720 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40721 fi
40722
40723 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40724 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40725 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40726 fi
40727
40728 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40729 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40730 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40731 fi
40732
40733 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40734 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40735 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40736 fi
40737
9a8f0513
VS
40738 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40739 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40740 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40741 fi
40742
dcc1b6ad
VS
40743 COND_MONOLITHIC_0_SHARED_1="#"
40744 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40745 COND_MONOLITHIC_0_SHARED_1=""
40746 fi
40747
40748 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40749 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40750 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40751 fi
40752
40753 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40754 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40755 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40756 fi
40757
40758 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40759 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40760 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40761 fi
40762
40763 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40764 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40765 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40766 fi
40767
9a8f0513
VS
40768 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40769 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40770 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40771 fi
40772
dcc1b6ad
VS
40773 COND_MONOLITHIC_0_USE_ODBC_1="#"
40774 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40775 COND_MONOLITHIC_0_USE_ODBC_1=""
40776 fi
40777
40778 COND_MONOLITHIC_1="#"
40779 if test "x$MONOLITHIC" = "x1" ; then
40780 COND_MONOLITHIC_1=""
40781 fi
40782
40783 COND_MONOLITHIC_1_SHARED_0="#"
40784 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40785 COND_MONOLITHIC_1_SHARED_0=""
40786 fi
40787
40788 COND_MONOLITHIC_1_SHARED_1="#"
40789 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40790 COND_MONOLITHIC_1_SHARED_1=""
40791 fi
40792
40793 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40794 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40795 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40796 fi
40797
40798 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40799 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40800 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40801 fi
40802
40803 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40804 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40805 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40806 fi
40807
40808 COND_PLATFORM_MACOSX_1="#"
40809 if test "x$PLATFORM_MACOSX" = "x1" ; then
40810 COND_PLATFORM_MACOSX_1=""
40811 fi
40812
40813 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40814 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40815 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40816 fi
40817
40818 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40819 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40820 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40821 fi
40822
40823 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40824 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40825 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40826 fi
40827
9a8f0513
VS
40828 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40829 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40830 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40831 fi
40832
40833 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40834 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40835 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40836 fi
40837
dcc1b6ad
VS
40838 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40839 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40840 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40841 fi
40842
40843 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40844 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40845 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40846 fi
40847
40848 COND_PLATFORM_MAC_1="#"
40849 if test "x$PLATFORM_MAC" = "x1" ; then
40850 COND_PLATFORM_MAC_1=""
40851 fi
40852
40853 COND_PLATFORM_OS2_1="#"
40854 if test "x$PLATFORM_OS2" = "x1" ; then
40855 COND_PLATFORM_OS2_1=""
40856 fi
40857
40858 COND_PLATFORM_UNIX_0="#"
40859 if test "x$PLATFORM_UNIX" = "x0" ; then
40860 COND_PLATFORM_UNIX_0=""
40861 fi
40862
40863 COND_PLATFORM_UNIX_1="#"
40864 if test "x$PLATFORM_UNIX" = "x1" ; then
40865 COND_PLATFORM_UNIX_1=""
40866 fi
40867
40868 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40869 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40870 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40871 fi
40872
40873 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40874 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40875 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40876 fi
40877
40878 COND_PLATFORM_WIN32_0="#"
40879 if test "x$PLATFORM_WIN32" = "x0" ; then
40880 COND_PLATFORM_WIN32_0=""
40881 fi
40882
40883 COND_PLATFORM_WIN32_1="#"
40884 if test "x$PLATFORM_WIN32" = "x1" ; then
40885 COND_PLATFORM_WIN32_1=""
40886 fi
40887
40888 COND_SHARED_0="#"
40889 if test "x$SHARED" = "x0" ; then
40890 COND_SHARED_0=""
40891 fi
40892
40893 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40894 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40895 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40896 fi
40897
40898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40899 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40900 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40901 fi
40902
40903 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40904 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40905 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40906 fi
40907
40908 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40909 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40910 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40911 fi
40912
40913 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40914 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40915 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40916 fi
40917
40918 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40919 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40920 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40921 fi
40922
40923 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40924 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40925 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40926 fi
40927
40928 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40929 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40930 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40931 fi
40932
40933 COND_SHARED_1="#"
40934 if test "x$SHARED" = "x1" ; then
40935 COND_SHARED_1=""
40936 fi
40937
40938 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40939 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40940 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40941 fi
40942
40943 COND_TOOLKIT_COCOA="#"
40944 if test "x$TOOLKIT" = "xCOCOA" ; then
40945 COND_TOOLKIT_COCOA=""
40946 fi
40947
40948 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40949 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40950 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40951 fi
40952
40953 COND_TOOLKIT_GTK="#"
40954 if test "x$TOOLKIT" = "xGTK" ; then
40955 COND_TOOLKIT_GTK=""
40956 fi
40957
40958 COND_TOOLKIT_GTK_USE_GUI_1="#"
40959 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40960 COND_TOOLKIT_GTK_USE_GUI_1=""
40961 fi
40962
40963 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40964 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40965 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40966 fi
40967
40968 COND_TOOLKIT_MAC="#"
40969 if test "x$TOOLKIT" = "xMAC" ; then
40970 COND_TOOLKIT_MAC=""
40971 fi
40972
40973 COND_TOOLKIT_MAC_USE_GUI_1="#"
40974 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40975 COND_TOOLKIT_MAC_USE_GUI_1=""
40976 fi
40977
40978 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40979 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40980 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40981 fi
40982
9a8f0513
VS
40983 COND_TOOLKIT_MAC_WXUNIV_0="#"
40984 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40985 COND_TOOLKIT_MAC_WXUNIV_0=""
40986 fi
40987
dcc1b6ad
VS
40988 COND_TOOLKIT_MGL="#"
40989 if test "x$TOOLKIT" = "xMGL" ; then
40990 COND_TOOLKIT_MGL=""
40991 fi
40992
40993 COND_TOOLKIT_MGL_USE_GUI_1="#"
40994 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40995 COND_TOOLKIT_MGL_USE_GUI_1=""
40996 fi
40997
40998 COND_TOOLKIT_MOTIF="#"
40999 if test "x$TOOLKIT" = "xMOTIF" ; then
41000 COND_TOOLKIT_MOTIF=""
41001 fi
41002
41003 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41004 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41005 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41006 fi
41007
41008 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41009 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41010 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41011 fi
41012
41013 COND_TOOLKIT_MSW="#"
41014 if test "x$TOOLKIT" = "xMSW" ; then
41015 COND_TOOLKIT_MSW=""
41016 fi
41017
41018 COND_TOOLKIT_MSW_USE_GUI_1="#"
41019 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41020 COND_TOOLKIT_MSW_USE_GUI_1=""
41021 fi
41022
41023 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41024 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41025 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41026 fi
41027
9a8f0513
VS
41028 COND_TOOLKIT_MSW_WXUNIV_0="#"
41029 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41030 COND_TOOLKIT_MSW_WXUNIV_0=""
41031 fi
41032
dcc1b6ad
VS
41033 COND_TOOLKIT_PM="#"
41034 if test "x$TOOLKIT" = "xPM" ; then
41035 COND_TOOLKIT_PM=""
41036 fi
41037
41038 COND_TOOLKIT_PM_USE_GUI_1="#"
41039 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41040 COND_TOOLKIT_PM_USE_GUI_1=""
41041 fi
41042
41043 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41044 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41045 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41046 fi
41047
9a8f0513
VS
41048 COND_TOOLKIT_PM_WXUNIV_0="#"
41049 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41050 COND_TOOLKIT_PM_WXUNIV_0=""
41051 fi
41052
dcc1b6ad
VS
41053 COND_TOOLKIT_WINCE="#"
41054 if test "x$TOOLKIT" = "xWINCE" ; then
41055 COND_TOOLKIT_WINCE=""
41056 fi
41057
41058 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41059 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41060 COND_TOOLKIT_WINCE_USE_GUI_1=""
41061 fi
41062
41063 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41064 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41065 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41066 fi
41067
41068 COND_TOOLKIT_X11="#"
41069 if test "x$TOOLKIT" = "xX11" ; then
41070 COND_TOOLKIT_X11=""
41071 fi
41072
41073 COND_TOOLKIT_X11_USE_GUI_1="#"
41074 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41075 COND_TOOLKIT_X11_USE_GUI_1=""
41076 fi
41077
41078 COND_UNICODE_1="#"
41079 if test "x$UNICODE" = "x1" ; then
41080 COND_UNICODE_1=""
41081 fi
41082
41083 COND_USE_EXCEPTIONS_0="#"
41084 if test "x$USE_EXCEPTIONS" = "x0" ; then
41085 COND_USE_EXCEPTIONS_0=""
41086 fi
41087
41088 COND_USE_EXCEPTIONS_1="#"
41089 if test "x$USE_EXCEPTIONS" = "x1" ; then
41090 COND_USE_EXCEPTIONS_1=""
41091 fi
41092
41093 COND_USE_GUI_0="#"
41094 if test "x$USE_GUI" = "x0" ; then
41095 COND_USE_GUI_0=""
41096 fi
41097
41098 COND_USE_GUI_1="#"
41099 if test "x$USE_GUI" = "x1" ; then
41100 COND_USE_GUI_1=""
41101 fi
41102
41103 COND_USE_GUI_1_WXUNIV_0="#"
41104 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41105 COND_USE_GUI_1_WXUNIV_0=""
41106 fi
41107
41108 COND_USE_GUI_1_WXUNIV_1="#"
41109 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41110 COND_USE_GUI_1_WXUNIV_1=""
41111 fi
41112
41113 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41114 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41115 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41116 fi
41117
41118 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41119 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41120 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41121 fi
41122
41123 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41124 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41125 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41126 fi
41127
41128 COND_USE_ODBC_1="#"
41129 if test "x$USE_ODBC" = "x1" ; then
41130 COND_USE_ODBC_1=""
41131 fi
41132
41133 COND_USE_PLUGINS_0="#"
41134 if test "x$USE_PLUGINS" = "x0" ; then
41135 COND_USE_PLUGINS_0=""
41136 fi
41137
41138 COND_USE_SOSYMLINKS_1="#"
41139 if test "x$USE_SOSYMLINKS" = "x1" ; then
41140 COND_USE_SOSYMLINKS_1=""
41141 fi
41142
41143 COND_USE_SOVERLINUX_1="#"
41144 if test "x$USE_SOVERLINUX" = "x1" ; then
41145 COND_USE_SOVERLINUX_1=""
41146 fi
41147
41148 COND_USE_SOVERSION_0="#"
41149 if test "x$USE_SOVERSION" = "x0" ; then
41150 COND_USE_SOVERSION_0=""
41151 fi
41152
41153 COND_USE_SOVERSOLARIS_1="#"
41154 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41155 COND_USE_SOVERSOLARIS_1=""
41156 fi
41157
41158 COND_WITH_PLUGIN_SDL_1="#"
41159 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41160 COND_WITH_PLUGIN_SDL_1=""
41161 fi
41162
41163 COND_WXUNIV_1="#"
41164 if test "x$WXUNIV" = "x1" ; then
41165 COND_WXUNIV_1=""
41166 fi
41167
41168 COND_WXUSE_EXPAT_BUILTIN="#"
41169 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41170 COND_WXUSE_EXPAT_BUILTIN=""
41171 fi
41172
41173 COND_WXUSE_LIBJPEG_BUILTIN="#"
41174 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41175 COND_WXUSE_LIBJPEG_BUILTIN=""
41176 fi
41177
41178 COND_WXUSE_LIBPNG_BUILTIN="#"
41179 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41180 COND_WXUSE_LIBPNG_BUILTIN=""
41181 fi
41182
41183 COND_WXUSE_LIBTIFF_BUILTIN="#"
41184 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41185 COND_WXUSE_LIBTIFF_BUILTIN=""
41186 fi
41187
41188 COND_WXUSE_ODBC_BUILTIN="#"
41189 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41190 COND_WXUSE_ODBC_BUILTIN=""
41191 fi
41192
41193 COND_WXUSE_REGEX_BUILTIN="#"
41194 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41195 COND_WXUSE_REGEX_BUILTIN=""
41196 fi
41197
41198 COND_WXUSE_ZLIB_BUILTIN="#"
41199 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41200 COND_WXUSE_ZLIB_BUILTIN=""
41201 fi
41202
a848cd7e
SC
41203
41204
2057db16
VS
41205 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41206 { { 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
41207echo "$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;}
41208 { (exit 1); exit 1; }; }
41209 fi
41210
a848cd7e 41211
ceec2216
RL
41212if test "$wxUSE_SHARED" = "yes"; then
41213
41214 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41215 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41216
41217else
41218
41219 EXE_LINKER="$CXX -o"
41220
41221fi
a848cd7e 41222
74b84332 41223GCC_PRAGMA_FLAGS=""
a848cd7e 41224if test $GCC_PCH = 1 ; then
74b84332 41225 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41226else
41227 case "${host}" in
41228 powerpc-*-darwin* )
74b84332 41229 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41230 ;;
bea8e651 41231 *-*-mingw32* )
1f344abf
VS
41232 if test "$wxUSE_STL" = "yes" -o \
41233 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41234 "$wxUSE_NO_RTTI" != "yes"; then
41235 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41236echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41237 cat >conftest.$ac_ext <<_ACEOF
41238/* confdefs.h. */
41239_ACEOF
41240cat confdefs.h >>conftest.$ac_ext
41241cat >>conftest.$ac_ext <<_ACEOF
41242/* end confdefs.h. */
41243
41244int
41245main ()
41246{
1f344abf 41247#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41248 #error "Not GCC 3.2 or greater"
41249 #endif
41250
41251 ;
41252 return 0;
41253}
41254_ACEOF
41255rm -f conftest.$ac_objext
41256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41257 (eval $ac_compile) 2>conftest.er1
bea8e651 41258 ac_status=$?
ac1cb8d3
VS
41259 grep -v '^ *+' conftest.er1 >conftest.err
41260 rm -f conftest.er1
41261 cat conftest.err >&5
bea8e651
MB
41262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41263 (exit $ac_status); } &&
c228d3a4
RN
41264 { ac_try='test -z "$ac_c_werror_flag"
41265 || test ! -s conftest.err'
ac1cb8d3
VS
41266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41267 (eval $ac_try) 2>&5
41268 ac_status=$?
41269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41270 (exit $ac_status); }; } &&
41271 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41273 (eval $ac_try) 2>&5
41274 ac_status=$?
41275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41276 (exit $ac_status); }; }; then
74b84332 41277 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41278 echo "$as_me:$LINENO: result: yes" >&5
41279echo "${ECHO_T}yes" >&6
41280else
41281 echo "$as_me: failed program was:" >&5
41282sed 's/^/| /' conftest.$ac_ext >&5
41283
41284echo "$as_me:$LINENO: result: no" >&5
41285echo "${ECHO_T}no" >&6
41286fi
ac1cb8d3 41287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41288 fi
41289 ;;
a848cd7e
SC
41290 esac
41291fi
74b84332 41292CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41293
41294
41295SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
a848cd7e
SC
41338
41339
41340
41341
41342
41343
41344
41345
41346
41347
41348
41349
41350
41351
41352
41353
41354
41355
74b84332 41356
a848cd7e
SC
41357
41358
41359echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41360echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41361set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41362if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41363 echo $ECHO_N "(cached) $ECHO_C" >&6
41364else
41365 cat >conftest.make <<\_ACEOF
41366all:
41367 @echo 'ac_maketemp="$(MAKE)"'
41368_ACEOF
41369# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41370eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41371if test -n "$ac_maketemp"; then
41372 eval ac_cv_prog_make_${ac_make}_set=yes
41373else
41374 eval ac_cv_prog_make_${ac_make}_set=no
41375fi
41376rm -f conftest.make
41377fi
41378if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41379 echo "$as_me:$LINENO: result: yes" >&5
41380echo "${ECHO_T}yes" >&6
41381 SET_MAKE=
41382else
41383 echo "$as_me:$LINENO: result: no" >&5
41384echo "${ECHO_T}no" >&6
41385 SET_MAKE="MAKE=${MAKE-make}"
41386fi
41387
41388
a848cd7e 41389
ceec2216
RL
41390 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41391
a848cd7e 41392
ceec2216 41393 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41394
a848cd7e 41395
ceec2216 41396 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41397
ceec2216
RL
41398
41399 ac_config_files="$ac_config_files version-script Makefile"
41400
41401
41402 ac_config_commands="$ac_config_commands wx-config
41403 "
a848cd7e
SC
41404
41405
9103d280
RL
41406
41407
a848cd7e
SC
41408if test "$wxUSE_GUI" = "yes"; then
41409 SUBDIRS="samples demos utils contrib"
41410else SUBDIRS="samples utils"
41411fi
41412
41413
41414
41415# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41416if test "${with_cppunit_prefix+set}" = set; then
41417 withval="$with_cppunit_prefix"
41418 cppunit_config_prefix="$withval"
41419else
41420 cppunit_config_prefix=""
41421fi;
41422
41423# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41424if test "${with_cppunit_exec_prefix+set}" = set; then
41425 withval="$with_cppunit_exec_prefix"
41426 cppunit_config_exec_prefix="$withval"
41427else
41428 cppunit_config_exec_prefix=""
41429fi;
41430
41431 if test x$cppunit_config_exec_prefix != x ; then
41432 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41433 if test x${CPPUNIT_CONFIG+set} != xset ; then
41434 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41435 fi
41436 fi
41437 if test x$cppunit_config_prefix != x ; then
41438 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41439 if test x${CPPUNIT_CONFIG+set} != xset ; then
41440 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41441 fi
41442 fi
41443
41444 # Extract the first word of "cppunit-config", so it can be a program name with args.
41445set dummy cppunit-config; ac_word=$2
41446echo "$as_me:$LINENO: checking for $ac_word" >&5
41447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41448if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41449 echo $ECHO_N "(cached) $ECHO_C" >&6
41450else
41451 case $CPPUNIT_CONFIG in
41452 [\\/]* | ?:[\\/]*)
41453 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41454 ;;
41455 *)
41456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41457for as_dir in $PATH
41458do
41459 IFS=$as_save_IFS
41460 test -z "$as_dir" && as_dir=.
41461 for ac_exec_ext in '' $ac_executable_extensions; do
41462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41463 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41465 break 2
41466 fi
41467done
41468done
41469
41470 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41471 ;;
41472esac
41473fi
41474CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41475
41476if test -n "$CPPUNIT_CONFIG"; then
41477 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41478echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41479else
41480 echo "$as_me:$LINENO: result: no" >&5
41481echo "${ECHO_T}no" >&6
41482fi
41483
41484 cppunit_version_min=1.8.0
41485
41486 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41487echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41488 no_cppunit=""
41489 if test "$CPPUNIT_CONFIG" = "no" ; then
41490 no_cppunit=yes
41491 else
41492 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41493 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41494 cppunit_version=`$CPPUNIT_CONFIG --version`
41495
41496 cppunit_major_version=`echo $cppunit_version | \
41497 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41498 cppunit_minor_version=`echo $cppunit_version | \
41499 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41500 cppunit_micro_version=`echo $cppunit_version | \
41501 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41502
41503 cppunit_major_min=`echo $cppunit_version_min | \
41504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41505 cppunit_minor_min=`echo $cppunit_version_min | \
41506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41507 cppunit_micro_min=`echo $cppunit_version_min | \
41508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41509
41510 cppunit_version_proper=`expr \
41511 $cppunit_major_version \> $cppunit_major_min \| \
41512 $cppunit_major_version \= $cppunit_major_min \& \
41513 $cppunit_minor_version \> $cppunit_minor_min \| \
41514 $cppunit_major_version \= $cppunit_major_min \& \
41515 $cppunit_minor_version \= $cppunit_minor_min \& \
41516 $cppunit_micro_version \>= $cppunit_micro_min `
41517
41518 if test "$cppunit_version_proper" = "1" ; then
41519 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41520echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41521 else
41522 echo "$as_me:$LINENO: result: no" >&5
41523echo "${ECHO_T}no" >&6
41524 no_cppunit=yes
41525 fi
41526 fi
41527
41528 if test "x$no_cppunit" = x ; then
c2218763 41529 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41530 else
41531 CPPUNIT_CFLAGS=""
41532 CPPUNIT_LIBS=""
c2218763 41533 :
a848cd7e
SC
41534 fi
41535
41536
41537
41538
41539
41540for subdir in `echo $SUBDIRS`; do
41541 if test -d ${srcdir}/${subdir} ; then
41542 if test "$wxUSE_GUI" = "yes"; then
41543 if test ${subdir} = "samples"; then
41544 makefiles="samples/Makefile.in $makefiles"
41545 for sample in `echo $SAMPLES_SUBDIRS`; do
41546 if test -d $srcdir/samples/$sample; then
41547 makefiles="samples/$sample/Makefile.in $makefiles"
41548 fi
41549 done
41550 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41551 fi
41552 else if test ${subdir} = "samples"; then
41553 makefiles="samples/Makefile.in samples/console/Makefile.in"
41554 elif test ${subdir} = "utils"; then
41555 makefiles="utils/HelpGen/Makefile.in \
41556 utils/HelpGen/src/Makefile.in \
41557 utils/tex2rtf/Makefile.in \
41558 utils/tex2rtf/src/Makefile.in"
41559 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41560 fi
41561 fi
41562
41563 for mkin in $makefiles ; do
41564 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41565 ac_config_files="$ac_config_files $mk"
41566
41567 done
41568 fi
41569done
41570
41571
41572cat >confcache <<\_ACEOF
41573# This file is a shell script that caches the results of configure
41574# tests run on this system so they can be shared between configure
41575# scripts and configure runs, see configure's option --config-cache.
41576# It is not useful on other systems. If it contains results you don't
41577# want to keep, you may remove or edit it.
41578#
41579# config.status only pays attention to the cache file if you give it
41580# the --recheck option to rerun configure.
41581#
41582# `ac_cv_env_foo' variables (set or unset) will be overridden when
41583# loading this file, other *unset* `ac_cv_foo' will be assigned the
41584# following values.
41585
41586_ACEOF
41587
41588# The following way of writing the cache mishandles newlines in values,
41589# but we know of no workaround that is simple, portable, and efficient.
41590# So, don't put newlines in cache variables' values.
41591# Ultrix sh set writes to stderr and can't be redirected directly,
41592# and sets the high bit in the cache file unless we assign to the vars.
41593{
41594 (set) 2>&1 |
41595 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41596 *ac_space=\ *)
41597 # `set' does not quote correctly, so add quotes (double-quote
41598 # substitution turns \\\\ into \\, and sed turns \\ into \).
41599 sed -n \
ac1cb8d3
VS
41600 "s/'/'\\\\''/g;
41601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41602 ;;
41603 *)
41604 # `set' quotes correctly as required by POSIX, so do not add quotes.
41605 sed -n \
ac1cb8d3 41606 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41607 ;;
41608 esac;
41609} |
41610 sed '
41611 t clear
41612 : clear
41613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41614 t end
41615 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41616 : end' >>confcache
41617if diff $cache_file confcache >/dev/null 2>&1; then :; else
41618 if test -w $cache_file; then
41619 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41620 cat confcache >$cache_file
41621 else
41622 echo "not updating unwritable cache $cache_file"
41623 fi
41624fi
41625rm -f confcache
41626
41627test "x$prefix" = xNONE && prefix=$ac_default_prefix
41628# Let make expand exec_prefix.
41629test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41630
41631# VPATH may cause trouble with some makes, so we remove $(srcdir),
41632# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41633# trailing colons and then remove the whole line if VPATH becomes empty
41634# (actually we leave an empty line to preserve line numbers).
41635if test "x$srcdir" = x.; then
ac1cb8d3 41636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41637s/:*\$(srcdir):*/:/;
41638s/:*\${srcdir}:*/:/;
41639s/:*@srcdir@:*/:/;
ac1cb8d3 41640s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41641s/:*$//;
ac1cb8d3 41642s/^[^=]*=[ ]*$//;
a848cd7e
SC
41643}'
41644fi
41645
41646DEFS=-DHAVE_CONFIG_H
41647
41648ac_libobjs=
41649ac_ltlibobjs=
41650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41651 # 1. Remove the extension, and $U if already installed.
41652 ac_i=`echo "$ac_i" |
ac1cb8d3 41653 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41654 # 2. Add them.
41655 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41656 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41657done
41658LIBOBJS=$ac_libobjs
41659
41660LTLIBOBJS=$ac_ltlibobjs
41661
41662
41663
41664: ${CONFIG_STATUS=./config.status}
41665ac_clean_files_save=$ac_clean_files
41666ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41667{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41668echo "$as_me: creating $CONFIG_STATUS" >&6;}
41669cat >$CONFIG_STATUS <<_ACEOF
41670#! $SHELL
41671# Generated by $as_me.
41672# Run this file to recreate the current configuration.
41673# Compiler output produced by configure, useful for debugging
41674# configure, is in config.log if it exists.
41675
41676debug=false
41677ac_cs_recheck=false
41678ac_cs_silent=false
41679SHELL=\${CONFIG_SHELL-$SHELL}
41680_ACEOF
41681
41682cat >>$CONFIG_STATUS <<\_ACEOF
41683## --------------------- ##
41684## M4sh Initialization. ##
41685## --------------------- ##
41686
41687# Be Bourne compatible
41688if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41689 emulate sh
41690 NULLCMD=:
41691 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41692 # is contrary to our usage. Disable this feature.
41693 alias -g '${1+"$@"}'='"$@"'
41694elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41695 set -o posix
41696fi
ac1cb8d3 41697DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41698
41699# Support unset when possible.
ac1cb8d3 41700if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41701 as_unset=unset
41702else
41703 as_unset=false
41704fi
41705
41706
41707# Work around bugs in pre-3.0 UWIN ksh.
41708$as_unset ENV MAIL MAILPATH
41709PS1='$ '
41710PS2='> '
41711PS4='+ '
41712
41713# NLS nuisances.
41714for as_var in \
41715 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41716 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41717 LC_TELEPHONE LC_TIME
41718do
ac1cb8d3 41719 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41720 eval $as_var=C; export $as_var
41721 else
41722 $as_unset $as_var
41723 fi
41724done
41725
41726# Required to use basename.
41727if expr a : '\(a\)' >/dev/null 2>&1; then
41728 as_expr=expr
41729else
41730 as_expr=false
41731fi
41732
41733if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41734 as_basename=basename
41735else
41736 as_basename=false
41737fi
41738
41739
41740# Name of the executable.
41741as_me=`$as_basename "$0" ||
41742$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41743 X"$0" : 'X\(//\)$' \| \
41744 X"$0" : 'X\(/\)$' \| \
41745 . : '\(.\)' 2>/dev/null ||
41746echo X/"$0" |
41747 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41748 /^X\/\(\/\/\)$/{ s//\1/; q; }
41749 /^X\/\(\/\).*/{ s//\1/; q; }
41750 s/.*/./; q'`
41751
41752
41753# PATH needs CR, and LINENO needs CR and PATH.
41754# Avoid depending upon Character Ranges.
41755as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41756as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41757as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41758as_cr_digits='0123456789'
41759as_cr_alnum=$as_cr_Letters$as_cr_digits
41760
41761# The user is always right.
41762if test "${PATH_SEPARATOR+set}" != set; then
41763 echo "#! /bin/sh" >conf$$.sh
41764 echo "exit 0" >>conf$$.sh
41765 chmod +x conf$$.sh
41766 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41767 PATH_SEPARATOR=';'
41768 else
41769 PATH_SEPARATOR=:
41770 fi
41771 rm -f conf$$.sh
41772fi
41773
41774
41775 as_lineno_1=$LINENO
41776 as_lineno_2=$LINENO
41777 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41778 test "x$as_lineno_1" != "x$as_lineno_2" &&
41779 test "x$as_lineno_3" = "x$as_lineno_2" || {
41780 # Find who we are. Look in the path if we contain no path at all
41781 # relative or not.
41782 case $0 in
41783 *[\\/]* ) as_myself=$0 ;;
41784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41785for as_dir in $PATH
41786do
41787 IFS=$as_save_IFS
41788 test -z "$as_dir" && as_dir=.
41789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41790done
41791
41792 ;;
41793 esac
41794 # We did not find ourselves, most probably we were run as `sh COMMAND'
41795 # in which case we are not to be found in the path.
41796 if test "x$as_myself" = x; then
41797 as_myself=$0
41798 fi
41799 if test ! -f "$as_myself"; then
41800 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41801echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41802 { (exit 1); exit 1; }; }
41803 fi
41804 case $CONFIG_SHELL in
41805 '')
41806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41807for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41808do
41809 IFS=$as_save_IFS
41810 test -z "$as_dir" && as_dir=.
41811 for as_base in sh bash ksh sh5; do
41812 case $as_dir in
41813 /*)
41814 if ("$as_dir/$as_base" -c '
41815 as_lineno_1=$LINENO
41816 as_lineno_2=$LINENO
41817 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41818 test "x$as_lineno_1" != "x$as_lineno_2" &&
41819 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41820 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41821 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41822 CONFIG_SHELL=$as_dir/$as_base
41823 export CONFIG_SHELL
41824 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41825 fi;;
41826 esac
41827 done
41828done
41829;;
41830 esac
41831
41832 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41833 # uniformly replaced by the line number. The first 'sed' inserts a
41834 # line-number line before each line; the second 'sed' does the real
41835 # work. The second script uses 'N' to pair each line-number line
41836 # with the numbered line, and appends trailing '-' during
41837 # substitution so that $LINENO is not a special case at line end.
41838 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41839 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41840 sed '=' <$as_myself |
41841 sed '
41842 N
41843 s,$,-,
41844 : loop
41845 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41846 t loop
41847 s,-$,,
41848 s,^['$as_cr_digits']*\n,,
41849 ' >$as_me.lineno &&
41850 chmod +x $as_me.lineno ||
41851 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41852echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41853 { (exit 1); exit 1; }; }
41854
41855 # Don't try to exec as it changes $[0], causing all sort of problems
41856 # (the dirname of $[0] is not the place where we might find the
41857 # original and so on. Autoconf is especially sensible to this).
41858 . ./$as_me.lineno
41859 # Exit status is that of the last command.
41860 exit
41861}
41862
41863
41864case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41865 *c*,-n*) ECHO_N= ECHO_C='
41866' ECHO_T=' ' ;;
41867 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41868 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41869esac
41870
41871if expr a : '\(a\)' >/dev/null 2>&1; then
41872 as_expr=expr
41873else
41874 as_expr=false
41875fi
41876
41877rm -f conf$$ conf$$.exe conf$$.file
41878echo >conf$$.file
41879if ln -s conf$$.file conf$$ 2>/dev/null; then
41880 # We could just check for DJGPP; but this test a) works b) is more generic
41881 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41882 if test -f conf$$.exe; then
41883 # Don't use ln at all; we don't have any links
41884 as_ln_s='cp -p'
41885 else
41886 as_ln_s='ln -s'
41887 fi
41888elif ln conf$$.file conf$$ 2>/dev/null; then
41889 as_ln_s=ln
41890else
41891 as_ln_s='cp -p'
41892fi
41893rm -f conf$$ conf$$.exe conf$$.file
41894
41895if mkdir -p . 2>/dev/null; then
41896 as_mkdir_p=:
41897else
ac1cb8d3 41898 test -d ./-p && rmdir ./-p
a848cd7e
SC
41899 as_mkdir_p=false
41900fi
41901
41902as_executable_p="test -f"
41903
41904# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41905as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41906
41907# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41908as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41909
41910
41911# IFS
41912# We need space, tab and new line, in precisely that order.
41913as_nl='
41914'
41915IFS=" $as_nl"
41916
41917# CDPATH.
41918$as_unset CDPATH
41919
41920exec 6>&1
41921
41922# Open the log real soon, to keep \$[0] and so on meaningful, and to
41923# report actual input values of CONFIG_FILES etc. instead of their
41924# values after options handling. Logging --version etc. is OK.
41925exec 5>>config.log
41926{
41927 echo
41928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41929## Running $as_me. ##
41930_ASBOX
41931} >&5
41932cat >&5 <<_CSEOF
41933
7714864e 41934This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 41935generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41936
41937 CONFIG_FILES = $CONFIG_FILES
41938 CONFIG_HEADERS = $CONFIG_HEADERS
41939 CONFIG_LINKS = $CONFIG_LINKS
41940 CONFIG_COMMANDS = $CONFIG_COMMANDS
41941 $ $0 $@
41942
41943_CSEOF
41944echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41945echo >&5
41946_ACEOF
41947
41948# Files that config.status was made for.
41949if test -n "$ac_config_files"; then
41950 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41951fi
41952
41953if test -n "$ac_config_headers"; then
41954 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41955fi
41956
41957if test -n "$ac_config_links"; then
41958 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41959fi
41960
41961if test -n "$ac_config_commands"; then
41962 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41963fi
41964
41965cat >>$CONFIG_STATUS <<\_ACEOF
41966
41967ac_cs_usage="\
41968\`$as_me' instantiates files from templates according to the
41969current configuration.
41970
41971Usage: $0 [OPTIONS] [FILE]...
41972
41973 -h, --help print this help, then exit
41974 -V, --version print version number, then exit
41975 -q, --quiet do not print progress messages
41976 -d, --debug don't remove temporary files
41977 --recheck update $as_me by reconfiguring in the same conditions
41978 --file=FILE[:TEMPLATE]
ac1cb8d3 41979 instantiate the configuration file FILE
a848cd7e 41980 --header=FILE[:TEMPLATE]
ac1cb8d3 41981 instantiate the configuration header FILE
a848cd7e
SC
41982
41983Configuration files:
41984$config_files
41985
41986Configuration headers:
41987$config_headers
41988
41989Configuration commands:
41990$config_commands
41991
41992Report bugs to <bug-autoconf@gnu.org>."
41993_ACEOF
41994
41995cat >>$CONFIG_STATUS <<_ACEOF
41996ac_cs_version="\\
7714864e 41997wxWidgets config.status 2.5.3
ac1cb8d3 41998configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41999 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42000
ac1cb8d3 42001Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42002This config.status script is free software; the Free Software Foundation
42003gives unlimited permission to copy, distribute and modify it."
42004srcdir=$srcdir
42005INSTALL="$INSTALL"
42006_ACEOF
42007
42008cat >>$CONFIG_STATUS <<\_ACEOF
42009# If no file are specified by the user, then we need to provide default
42010# value. By we need to know if files were specified by the user.
42011ac_need_defaults=:
42012while test $# != 0
42013do
42014 case $1 in
42015 --*=*)
42016 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42017 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42018 ac_shift=:
42019 ;;
42020 -*)
42021 ac_option=$1
42022 ac_optarg=$2
42023 ac_shift=shift
42024 ;;
42025 *) # This is not an option, so the user has probably given explicit
42026 # arguments.
42027 ac_option=$1
42028 ac_need_defaults=false;;
42029 esac
42030
42031 case $ac_option in
42032 # Handling of the options.
42033_ACEOF
42034cat >>$CONFIG_STATUS <<\_ACEOF
42035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42036 ac_cs_recheck=: ;;
42037 --version | --vers* | -V )
42038 echo "$ac_cs_version"; exit 0 ;;
42039 --he | --h)
42040 # Conflict between --help and --header
42041 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42042Try \`$0 --help' for more information." >&5
42043echo "$as_me: error: ambiguous option: $1
42044Try \`$0 --help' for more information." >&2;}
42045 { (exit 1); exit 1; }; };;
42046 --help | --hel | -h )
42047 echo "$ac_cs_usage"; exit 0 ;;
42048 --debug | --d* | -d )
42049 debug=: ;;
42050 --file | --fil | --fi | --f )
42051 $ac_shift
42052 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42053 ac_need_defaults=false;;
42054 --header | --heade | --head | --hea )
42055 $ac_shift
42056 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42057 ac_need_defaults=false;;
42058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42060 ac_cs_silent=: ;;
42061
42062 # This is an error.
42063 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42064Try \`$0 --help' for more information." >&5
42065echo "$as_me: error: unrecognized option: $1
42066Try \`$0 --help' for more information." >&2;}
42067 { (exit 1); exit 1; }; } ;;
42068
42069 *) ac_config_targets="$ac_config_targets $1" ;;
42070
42071 esac
42072 shift
42073done
42074
42075ac_configure_extra_args=
42076
42077if $ac_cs_silent; then
42078 exec 6>/dev/null
42079 ac_configure_extra_args="$ac_configure_extra_args --silent"
42080fi
42081
42082_ACEOF
42083cat >>$CONFIG_STATUS <<_ACEOF
42084if \$ac_cs_recheck; then
42085 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42086 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42087fi
42088
42089_ACEOF
42090
42091cat >>$CONFIG_STATUS <<_ACEOF
42092#
42093# INIT-COMMANDS section.
42094#
42095
ceec2216
RL
42096 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42097 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42098 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42099 LN_S="${LN_S}"
a848cd7e
SC
42100
42101
42102_ACEOF
42103
42104
42105
42106cat >>$CONFIG_STATUS <<\_ACEOF
42107for ac_config_target in $ac_config_targets
42108do
42109 case "$ac_config_target" in
42110 # Handling of arguments.
ceec2216
RL
42111 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42112 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42113 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42114 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42115 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42116 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42117 "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
42118 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42119echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42120 { (exit 1); exit 1; }; };;
42121 esac
42122done
42123
42124# If the user did not use the arguments to specify the items to instantiate,
42125# then the envvar interface is used. Set only those that are not.
42126# We use the long form for the default assignment because of an extremely
42127# bizarre bug on SunOS 4.1.3.
42128if $ac_need_defaults; then
42129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42132fi
42133
42134# Have a temporary directory for convenience. Make it in the build tree
42135# simply because there is no reason to put it here, and in addition,
42136# creating and moving files from /tmp can sometimes cause problems.
42137# Create a temporary directory, and hook for its removal unless debugging.
42138$debug ||
42139{
42140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42141 trap '{ (exit 1); exit 1; }' 1 2 13 15
42142}
42143
42144# Create a (secure) tmp directory for tmp files.
42145
42146{
42147 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42148 test -n "$tmp" && test -d "$tmp"
42149} ||
42150{
42151 tmp=./confstat$$-$RANDOM
42152 (umask 077 && mkdir $tmp)
42153} ||
42154{
42155 echo "$me: cannot create a temporary directory in ." >&2
42156 { (exit 1); exit 1; }
42157}
42158
42159_ACEOF
42160
42161cat >>$CONFIG_STATUS <<_ACEOF
42162
42163#
42164# CONFIG_FILES section.
42165#
42166
42167# No need to generate the scripts if there are no CONFIG_FILES.
42168# This happens for instance when ./config.status config.h
42169if test -n "\$CONFIG_FILES"; then
42170 # Protect against being on the right side of a sed subst in config.status.
42171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42173s,@SHELL@,$SHELL,;t t
42174s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42175s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42176s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42177s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42178s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42179s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42180s,@exec_prefix@,$exec_prefix,;t t
42181s,@prefix@,$prefix,;t t
42182s,@program_transform_name@,$program_transform_name,;t t
42183s,@bindir@,$bindir,;t t
42184s,@sbindir@,$sbindir,;t t
42185s,@libexecdir@,$libexecdir,;t t
42186s,@datadir@,$datadir,;t t
42187s,@sysconfdir@,$sysconfdir,;t t
42188s,@sharedstatedir@,$sharedstatedir,;t t
42189s,@localstatedir@,$localstatedir,;t t
42190s,@libdir@,$libdir,;t t
42191s,@includedir@,$includedir,;t t
42192s,@oldincludedir@,$oldincludedir,;t t
42193s,@infodir@,$infodir,;t t
42194s,@mandir@,$mandir,;t t
42195s,@build_alias@,$build_alias,;t t
42196s,@host_alias@,$host_alias,;t t
42197s,@target_alias@,$target_alias,;t t
42198s,@DEFS@,$DEFS,;t t
42199s,@ECHO_C@,$ECHO_C,;t t
42200s,@ECHO_N@,$ECHO_N,;t t
42201s,@ECHO_T@,$ECHO_T,;t t
42202s,@LIBS@,$LIBS,;t t
42203s,@build@,$build,;t t
42204s,@build_cpu@,$build_cpu,;t t
42205s,@build_vendor@,$build_vendor,;t t
42206s,@build_os@,$build_os,;t t
42207s,@host@,$host,;t t
42208s,@host_cpu@,$host_cpu,;t t
42209s,@host_vendor@,$host_vendor,;t t
42210s,@host_os@,$host_os,;t t
42211s,@target@,$target,;t t
42212s,@target_cpu@,$target_cpu,;t t
42213s,@target_vendor@,$target_vendor,;t t
42214s,@target_os@,$target_os,;t t
42215s,@CC@,$CC,;t t
42216s,@CFLAGS@,$CFLAGS,;t t
42217s,@LDFLAGS@,$LDFLAGS,;t t
42218s,@CPPFLAGS@,$CPPFLAGS,;t t
42219s,@ac_ct_CC@,$ac_ct_CC,;t t
42220s,@EXEEXT@,$EXEEXT,;t t
42221s,@OBJEXT@,$OBJEXT,;t t
42222s,@CPP@,$CPP,;t t
42223s,@EGREP@,$EGREP,;t t
42224s,@CXX@,$CXX,;t t
42225s,@CXXFLAGS@,$CXXFLAGS,;t t
42226s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42227s,@RANLIB@,$RANLIB,;t t
42228s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42229s,@AR@,$AR,;t t
42230s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42231s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42232s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42233s,@STRIP@,$STRIP,;t t
42234s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42235s,@LN_S@,$LN_S,;t t
42236s,@CXXCPP@,$CXXCPP,;t t
42237s,@subdirs@,$subdirs,;t t
42238s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42239s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42240s,@GTK_LIBS@,$GTK_LIBS,;t t
42241s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42242s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42243s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42244s,@X_CFLAGS@,$X_CFLAGS,;t t
42245s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42246s,@X_LIBS@,$X_LIBS,;t t
42247s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42248s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42249s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42250s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42251s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42252s,@RESCOMP@,$RESCOMP,;t t
42253s,@DEREZ@,$DEREZ,;t t
42254s,@SETFILE@,$SETFILE,;t t
42255s,@LIBICONV@,$LIBICONV,;t t
42256s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42257s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42258s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42259s,@SDL_LIBS@,$SDL_LIBS,;t t
42260s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42261s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42262s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42263s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42264s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42265s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42266s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42267s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42268s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42269s,@VENDOR@,$VENDOR,;t t
42270s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42271s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42272s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42273s,@WXUNIV@,$WXUNIV,;t t
42274s,@MONOLITHIC@,$MONOLITHIC,;t t
42275s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42276s,@EXTRALIBS@,$EXTRALIBS,;t t
42277s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42278s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42279s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42280s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42281s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42282s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42283s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42284s,@UNICODE@,$UNICODE,;t t
42285s,@BUILD@,$BUILD,;t t
42286s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42287s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42288s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42289s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42290s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42291s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42292s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42293s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42294s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42295s,@SET_MAKE@,$SET_MAKE,;t t
42296s,@MAKE_SET@,$MAKE_SET,;t t
42297s,@ac_ct_AR@,$ac_ct_AR,;t t
42298s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42299s,@NM@,$NM,;t t
42300s,@ac_ct_NM@,$ac_ct_NM,;t t
42301s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42302s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42303s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42304s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42305s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42306s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42307s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42308s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42309s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42310s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42311s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42312s,@LIBPREFIX@,$LIBPREFIX,;t t
42313s,@LIBEXT@,$LIBEXT,;t t
42314s,@DLLPREFIX@,$DLLPREFIX,;t t
42315s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42316s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42317s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42318s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42319s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42320s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42321s,@PIC_FLAG@,$PIC_FLAG,;t t
42322s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42323s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42324s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42325s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42326s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42327s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42328s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42329s,@GCC_PCH@,$GCC_PCH,;t t
42330s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42331s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42332s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42333s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42334s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42335s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42336s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42337s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42338s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42339s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42340s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42341s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42342s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42343s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42344s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42345s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42346s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42347s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42348s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42349s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42350s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42351s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42352s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42353s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42354s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42355s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42356s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42357s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42358s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42359s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42360s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42361s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42362s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42363s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42364s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42365s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42366s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42367s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42368s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42369s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42370s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42371s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42372s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42373s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42374s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42375s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42376s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42377s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42378s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42379s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42380s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42381s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42382s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42383s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42384s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42385s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42386s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42387s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42388s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42389s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42390s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42391s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42392s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42393s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42394s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42395s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42396s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e
SC
42397s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42398s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42399s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42400s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42401s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42402s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42403s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42404s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42405s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42406s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42407s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42408s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42409s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42410s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42411s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42412s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42413s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42414s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42415s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42416s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42417s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42418s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42419s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42420s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42421s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42422s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42423s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42424s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42425s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42426s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42427s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42428s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42429s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42430s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42431s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
42432s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42433s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42434s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42435s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42436s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42437s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42438s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42439s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42440s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42441s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42442s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42443s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42444s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42445s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42446s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42447s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42448s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42449s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42450s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42451s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42452s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42453s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42454s,@USE_GUI@,$USE_GUI,;t t
42455s,@AFMINSTALL@,$AFMINSTALL,;t t
42456s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42457s,@TOOLKIT@,$TOOLKIT,;t t
42458s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42459s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42460s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42461s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42462s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42463s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42464s,@WIDGET_SET@,$WIDGET_SET,;t t
42465s,@WX_RELEASE@,$WX_RELEASE,;t t
42466s,@WX_VERSION@,$WX_VERSION,;t t
42467s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42468s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42469s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42470s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42471s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42472s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42473s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42474s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42475s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42476s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42477s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42478s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42479s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42480s,@DISTDIR@,$DISTDIR,;t t
42481s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42482s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42483s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42484s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42485s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42486s,@RESFLAGS@,$RESFLAGS,;t t
42487s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42488s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42489s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42490s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42491s,@MACRESCOMP@,$MACRESCOMP,;t t
42492s,@MACSETFILE@,$MACSETFILE,;t t
42493s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42494s,@GCC@,$GCC,;t t
a848cd7e 42495s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42496s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42497s,@LIBOBJS@,$LIBOBJS,;t t
42498s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42499CEOF
42500
42501_ACEOF
42502
42503 cat >>$CONFIG_STATUS <<\_ACEOF
42504 # Split the substitutions into bite-sized pieces for seds with
42505 # small command number limits, like on Digital OSF/1 and HP-UX.
42506 ac_max_sed_lines=48
42507 ac_sed_frag=1 # Number of current file.
42508 ac_beg=1 # First line for current file.
42509 ac_end=$ac_max_sed_lines # Line after last line for current file.
42510 ac_more_lines=:
42511 ac_sed_cmds=
42512 while $ac_more_lines; do
42513 if test $ac_beg -gt 1; then
42514 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42515 else
42516 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42517 fi
42518 if test ! -s $tmp/subs.frag; then
42519 ac_more_lines=false
42520 else
42521 # The purpose of the label and of the branching condition is to
42522 # speed up the sed processing (if there are no `@' at all, there
42523 # is no need to browse any of the substitutions).
42524 # These are the two extra sed commands mentioned above.
42525 (echo ':t
42526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42527 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42528 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42529 else
ac1cb8d3 42530 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42531 fi
42532 ac_sed_frag=`expr $ac_sed_frag + 1`
42533 ac_beg=$ac_end
42534 ac_end=`expr $ac_end + $ac_max_sed_lines`
42535 fi
42536 done
42537 if test -z "$ac_sed_cmds"; then
42538 ac_sed_cmds=cat
42539 fi
42540fi # test -n "$CONFIG_FILES"
42541
42542_ACEOF
42543cat >>$CONFIG_STATUS <<\_ACEOF
42544for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42546 case $ac_file in
42547 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42548 cat >$tmp/stdin
42549 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42551 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42552 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42553 * ) ac_file_in=$ac_file.in ;;
42554 esac
42555
42556 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42557 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42558$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42559 X"$ac_file" : 'X\(//\)[^/]' \| \
42560 X"$ac_file" : 'X\(//\)$' \| \
42561 X"$ac_file" : 'X\(/\)' \| \
42562 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42563echo X"$ac_file" |
42564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42566 /^X\(\/\/\)$/{ s//\1/; q; }
42567 /^X\(\/\).*/{ s//\1/; q; }
42568 s/.*/./; q'`
42569 { if $as_mkdir_p; then
42570 mkdir -p "$ac_dir"
42571 else
42572 as_dir="$ac_dir"
42573 as_dirs=
42574 while test ! -d "$as_dir"; do
42575 as_dirs="$as_dir $as_dirs"
42576 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42578 X"$as_dir" : 'X\(//\)[^/]' \| \
42579 X"$as_dir" : 'X\(//\)$' \| \
42580 X"$as_dir" : 'X\(/\)' \| \
42581 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42582echo X"$as_dir" |
42583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42585 /^X\(\/\/\)$/{ s//\1/; q; }
42586 /^X\(\/\).*/{ s//\1/; q; }
42587 s/.*/./; q'`
42588 done
42589 test ! -n "$as_dirs" || mkdir $as_dirs
42590 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42591echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42592 { (exit 1); exit 1; }; }; }
42593
42594 ac_builddir=.
42595
42596if test "$ac_dir" != .; then
42597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42598 # A "../" for each directory in $ac_dir_suffix.
42599 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42600else
42601 ac_dir_suffix= ac_top_builddir=
42602fi
42603
42604case $srcdir in
42605 .) # No --srcdir option. We are building in place.
42606 ac_srcdir=.
42607 if test -z "$ac_top_builddir"; then
42608 ac_top_srcdir=.
42609 else
42610 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42611 fi ;;
42612 [\\/]* | ?:[\\/]* ) # Absolute path.
42613 ac_srcdir=$srcdir$ac_dir_suffix;
42614 ac_top_srcdir=$srcdir ;;
42615 *) # Relative path.
42616 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42617 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42618esac
ac1cb8d3
VS
42619
42620# Do not use `cd foo && pwd` to compute absolute paths, because
42621# the directories may not exist.
42622case `pwd` in
42623.) ac_abs_builddir="$ac_dir";;
42624*)
42625 case "$ac_dir" in
42626 .) ac_abs_builddir=`pwd`;;
42627 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42628 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42629 esac;;
42630esac
42631case $ac_abs_builddir in
42632.) ac_abs_top_builddir=${ac_top_builddir}.;;
42633*)
42634 case ${ac_top_builddir}. in
42635 .) ac_abs_top_builddir=$ac_abs_builddir;;
42636 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42637 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42638 esac;;
42639esac
42640case $ac_abs_builddir in
42641.) ac_abs_srcdir=$ac_srcdir;;
42642*)
42643 case $ac_srcdir in
42644 .) ac_abs_srcdir=$ac_abs_builddir;;
42645 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42646 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42647 esac;;
42648esac
42649case $ac_abs_builddir in
42650.) ac_abs_top_srcdir=$ac_top_srcdir;;
42651*)
42652 case $ac_top_srcdir in
42653 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42654 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42655 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42656 esac;;
42657esac
a848cd7e
SC
42658
42659
42660 case $INSTALL in
42661 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42662 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42663 esac
42664
c228d3a4
RN
42665 if test x"$ac_file" != x-; then
42666 { echo "$as_me:$LINENO: creating $ac_file" >&5
42667echo "$as_me: creating $ac_file" >&6;}
42668 rm -f "$ac_file"
42669 fi
a848cd7e
SC
42670 # Let's still pretend it is `configure' which instantiates (i.e., don't
42671 # use $as_me), people would be surprised to read:
42672 # /* config.h. Generated by config.status. */
42673 if test x"$ac_file" = x-; then
42674 configure_input=
42675 else
42676 configure_input="$ac_file. "
42677 fi
42678 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42679 sed 's,.*/,,'` by configure."
a848cd7e
SC
42680
42681 # First look for the input files in the build tree, otherwise in the
42682 # src tree.
42683 ac_file_inputs=`IFS=:
42684 for f in $ac_file_in; do
42685 case $f in
42686 -) echo $tmp/stdin ;;
42687 [\\/$]*)
ac1cb8d3
VS
42688 # Absolute (can't be DOS-style, as IFS=:)
42689 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42690echo "$as_me: error: cannot find input file: $f" >&2;}
42691 { (exit 1); exit 1; }; }
ac1cb8d3 42692 echo "$f";;
a848cd7e 42693 *) # Relative
ac1cb8d3
VS
42694 if test -f "$f"; then
42695 # Build tree
42696 echo "$f"
42697 elif test -f "$srcdir/$f"; then
42698 # Source tree
42699 echo "$srcdir/$f"
42700 else
42701 # /dev/null tree
42702 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42703echo "$as_me: error: cannot find input file: $f" >&2;}
42704 { (exit 1); exit 1; }; }
ac1cb8d3 42705 fi;;
a848cd7e
SC
42706 esac
42707 done` || { (exit 1); exit 1; }
42708_ACEOF
42709cat >>$CONFIG_STATUS <<_ACEOF
42710 sed "$ac_vpsub
42711$extrasub
42712_ACEOF
42713cat >>$CONFIG_STATUS <<\_ACEOF
42714:t
42715/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42716s,@configure_input@,$configure_input,;t t
42717s,@srcdir@,$ac_srcdir,;t t
42718s,@abs_srcdir@,$ac_abs_srcdir,;t t
42719s,@top_srcdir@,$ac_top_srcdir,;t t
42720s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42721s,@builddir@,$ac_builddir,;t t
42722s,@abs_builddir@,$ac_abs_builddir,;t t
42723s,@top_builddir@,$ac_top_builddir,;t t
42724s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42725s,@INSTALL@,$ac_INSTALL,;t t
42726" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42727 rm -f $tmp/stdin
42728 if test x"$ac_file" != x-; then
42729 mv $tmp/out $ac_file
42730 else
42731 cat $tmp/out
42732 rm -f $tmp/out
42733 fi
42734
ceec2216
RL
42735 # Run the commands associated with the file.
42736 case $ac_file in
42737 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42738 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42739 esac
a848cd7e
SC
42740done
42741_ACEOF
42742cat >>$CONFIG_STATUS <<\_ACEOF
42743
42744#
42745# CONFIG_HEADER section.
42746#
42747
42748# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42749# NAME is the cpp macro being defined and VALUE is the value it is being given.
42750#
42751# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42752ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42753ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42754ac_dC=' '
42755ac_dD=',;t'
42756# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42757ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42758ac_uB='$,\1#\2define\3'
42759ac_uC=' '
42760ac_uD=',;t'
42761
42762for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42763 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42764 case $ac_file in
42765 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42766 cat >$tmp/stdin
42767 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42769 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42771 * ) ac_file_in=$ac_file.in ;;
42772 esac
42773
42774 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42775echo "$as_me: creating $ac_file" >&6;}
42776
42777 # First look for the input files in the build tree, otherwise in the
42778 # src tree.
42779 ac_file_inputs=`IFS=:
42780 for f in $ac_file_in; do
42781 case $f in
42782 -) echo $tmp/stdin ;;
42783 [\\/$]*)
ac1cb8d3
VS
42784 # Absolute (can't be DOS-style, as IFS=:)
42785 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42786echo "$as_me: error: cannot find input file: $f" >&2;}
42787 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42788 # Do quote $f, to prevent DOS paths from being IFS'd.
42789 echo "$f";;
a848cd7e 42790 *) # Relative
ac1cb8d3
VS
42791 if test -f "$f"; then
42792 # Build tree
42793 echo "$f"
42794 elif test -f "$srcdir/$f"; then
42795 # Source tree
42796 echo "$srcdir/$f"
42797 else
42798 # /dev/null tree
42799 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42800echo "$as_me: error: cannot find input file: $f" >&2;}
42801 { (exit 1); exit 1; }; }
ac1cb8d3 42802 fi;;
a848cd7e
SC
42803 esac
42804 done` || { (exit 1); exit 1; }
42805 # Remove the trailing spaces.
ac1cb8d3 42806 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42807
42808_ACEOF
42809
42810# Transform confdefs.h into two sed scripts, `conftest.defines' and
42811# `conftest.undefs', that substitutes the proper values into
42812# config.h.in to produce config.h. The first handles `#define'
42813# templates, and the second `#undef' templates.
42814# And first: Protect against being on the right side of a sed subst in
42815# config.status. Protect against being in an unquoted here document
42816# in config.status.
42817rm -f conftest.defines conftest.undefs
42818# Using a here document instead of a string reduces the quoting nightmare.
42819# Putting comments in sed scripts is not portable.
42820#
42821# `end' is used to avoid that the second main sed command (meant for
42822# 0-ary CPP macros) applies to n-ary macro definitions.
42823# See the Autoconf documentation for `clear'.
42824cat >confdef2sed.sed <<\_ACEOF
42825s/[\\&,]/\\&/g
42826s,[\\$`],\\&,g
42827t clear
42828: clear
ac1cb8d3 42829s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42830t end
ac1cb8d3 42831s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42832: end
42833_ACEOF
42834# If some macros were called several times there might be several times
42835# the same #defines, which is useless. Nevertheless, we may not want to
42836# sort them, since we want the *last* AC-DEFINE to be honored.
42837uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42838sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42839rm -f confdef2sed.sed
42840
42841# This sed command replaces #undef with comments. This is necessary, for
42842# example, in the case of _POSIX_SOURCE, which is predefined and required
42843# on some systems where configure will not decide to define it.
42844cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42845s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42846_ACEOF
42847
42848# Break up conftest.defines because some shells have a limit on the size
42849# of here documents, and old seds have small limits too (100 cmds).
42850echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42851echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42852echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42853echo ' :' >>$CONFIG_STATUS
42854rm -f conftest.tail
42855while grep . conftest.defines >/dev/null
42856do
42857 # Write a limited-size here document to $tmp/defines.sed.
42858 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42859 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42860 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42861 # Work around the forget-to-reset-the-flag bug.
42862 echo 't clr' >>$CONFIG_STATUS
42863 echo ': clr' >>$CONFIG_STATUS
42864 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42865 echo 'CEOF
42866 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42867 rm -f $tmp/in
42868 mv $tmp/out $tmp/in
42869' >>$CONFIG_STATUS
42870 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42871 rm -f conftest.defines
42872 mv conftest.tail conftest.defines
42873done
42874rm -f conftest.defines
42875echo ' fi # grep' >>$CONFIG_STATUS
42876echo >>$CONFIG_STATUS
42877
42878# Break up conftest.undefs because some shells have a limit on the size
42879# of here documents, and old seds have small limits too (100 cmds).
42880echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42881rm -f conftest.tail
42882while grep . conftest.undefs >/dev/null
42883do
42884 # Write a limited-size here document to $tmp/undefs.sed.
42885 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42886 # Speed up: don't consider the non `#undef'
ac1cb8d3 42887 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42888 # Work around the forget-to-reset-the-flag bug.
42889 echo 't clr' >>$CONFIG_STATUS
42890 echo ': clr' >>$CONFIG_STATUS
42891 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42892 echo 'CEOF
42893 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42894 rm -f $tmp/in
42895 mv $tmp/out $tmp/in
42896' >>$CONFIG_STATUS
42897 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42898 rm -f conftest.undefs
42899 mv conftest.tail conftest.undefs
42900done
42901rm -f conftest.undefs
42902
42903cat >>$CONFIG_STATUS <<\_ACEOF
42904 # Let's still pretend it is `configure' which instantiates (i.e., don't
42905 # use $as_me), people would be surprised to read:
42906 # /* config.h. Generated by config.status. */
42907 if test x"$ac_file" = x-; then
42908 echo "/* Generated by configure. */" >$tmp/config.h
42909 else
42910 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42911 fi
42912 cat $tmp/in >>$tmp/config.h
42913 rm -f $tmp/in
42914 if test x"$ac_file" != x-; then
42915 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42916 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42917echo "$as_me: $ac_file is unchanged" >&6;}
42918 else
42919 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42920$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42921 X"$ac_file" : 'X\(//\)[^/]' \| \
42922 X"$ac_file" : 'X\(//\)$' \| \
42923 X"$ac_file" : 'X\(/\)' \| \
42924 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42925echo X"$ac_file" |
42926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42928 /^X\(\/\/\)$/{ s//\1/; q; }
42929 /^X\(\/\).*/{ s//\1/; q; }
42930 s/.*/./; q'`
42931 { if $as_mkdir_p; then
42932 mkdir -p "$ac_dir"
42933 else
42934 as_dir="$ac_dir"
42935 as_dirs=
42936 while test ! -d "$as_dir"; do
42937 as_dirs="$as_dir $as_dirs"
42938 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42939$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42940 X"$as_dir" : 'X\(//\)[^/]' \| \
42941 X"$as_dir" : 'X\(//\)$' \| \
42942 X"$as_dir" : 'X\(/\)' \| \
42943 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42944echo X"$as_dir" |
42945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42947 /^X\(\/\/\)$/{ s//\1/; q; }
42948 /^X\(\/\).*/{ s//\1/; q; }
42949 s/.*/./; q'`
42950 done
42951 test ! -n "$as_dirs" || mkdir $as_dirs
42952 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42953echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42954 { (exit 1); exit 1; }; }; }
42955
42956 rm -f $ac_file
42957 mv $tmp/config.h $ac_file
42958 fi
42959 else
42960 cat $tmp/config.h
42961 rm -f $tmp/config.h
42962 fi
42963done
42964_ACEOF
42965cat >>$CONFIG_STATUS <<\_ACEOF
42966
42967#
42968# CONFIG_COMMANDS section.
42969#
42970for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42971 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42972 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42973 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42974$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42975 X"$ac_dest" : 'X\(//\)[^/]' \| \
42976 X"$ac_dest" : 'X\(//\)$' \| \
42977 X"$ac_dest" : 'X\(/\)' \| \
42978 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42979echo X"$ac_dest" |
42980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42982 /^X\(\/\/\)$/{ s//\1/; q; }
42983 /^X\(\/\).*/{ s//\1/; q; }
42984 s/.*/./; q'`
ac1cb8d3
VS
42985 { if $as_mkdir_p; then
42986 mkdir -p "$ac_dir"
42987 else
42988 as_dir="$ac_dir"
42989 as_dirs=
42990 while test ! -d "$as_dir"; do
42991 as_dirs="$as_dir $as_dirs"
42992 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42993$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42994 X"$as_dir" : 'X\(//\)[^/]' \| \
42995 X"$as_dir" : 'X\(//\)$' \| \
42996 X"$as_dir" : 'X\(/\)' \| \
42997 . : '\(.\)' 2>/dev/null ||
42998echo X"$as_dir" |
42999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43001 /^X\(\/\/\)$/{ s//\1/; q; }
43002 /^X\(\/\).*/{ s//\1/; q; }
43003 s/.*/./; q'`
43004 done
43005 test ! -n "$as_dirs" || mkdir $as_dirs
43006 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43007echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43008 { (exit 1); exit 1; }; }; }
43009
a848cd7e
SC
43010 ac_builddir=.
43011
43012if test "$ac_dir" != .; then
43013 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43014 # A "../" for each directory in $ac_dir_suffix.
43015 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43016else
43017 ac_dir_suffix= ac_top_builddir=
43018fi
43019
43020case $srcdir in
43021 .) # No --srcdir option. We are building in place.
43022 ac_srcdir=.
43023 if test -z "$ac_top_builddir"; then
43024 ac_top_srcdir=.
43025 else
43026 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43027 fi ;;
43028 [\\/]* | ?:[\\/]* ) # Absolute path.
43029 ac_srcdir=$srcdir$ac_dir_suffix;
43030 ac_top_srcdir=$srcdir ;;
43031 *) # Relative path.
43032 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43033 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43034esac
ac1cb8d3
VS
43035
43036# Do not use `cd foo && pwd` to compute absolute paths, because
43037# the directories may not exist.
43038case `pwd` in
43039.) ac_abs_builddir="$ac_dir";;
43040*)
43041 case "$ac_dir" in
43042 .) ac_abs_builddir=`pwd`;;
43043 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43044 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43045 esac;;
43046esac
43047case $ac_abs_builddir in
43048.) ac_abs_top_builddir=${ac_top_builddir}.;;
43049*)
43050 case ${ac_top_builddir}. in
43051 .) ac_abs_top_builddir=$ac_abs_builddir;;
43052 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43053 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43054 esac;;
43055esac
43056case $ac_abs_builddir in
43057.) ac_abs_srcdir=$ac_srcdir;;
43058*)
43059 case $ac_srcdir in
43060 .) ac_abs_srcdir=$ac_abs_builddir;;
43061 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43062 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43063 esac;;
43064esac
43065case $ac_abs_builddir in
43066.) ac_abs_top_srcdir=$ac_top_srcdir;;
43067*)
43068 case $ac_top_srcdir in
43069 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43070 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43071 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43072 esac;;
43073esac
a848cd7e
SC
43074
43075
43076 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43077echo "$as_me: executing $ac_dest commands" >&6;}
43078 case $ac_dest in
ceec2216
RL
43079 wx-config ) rm -f wx-config
43080 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43081 ;;
a848cd7e
SC
43082 esac
43083done
43084_ACEOF
43085
43086cat >>$CONFIG_STATUS <<\_ACEOF
43087
43088{ (exit 0); exit 0; }
43089_ACEOF
43090chmod +x $CONFIG_STATUS
43091ac_clean_files=$ac_clean_files_save
43092
43093
43094# configure is writing to config.log, and then calls config.status.
43095# config.status does its own redirection, appending to config.log.
43096# Unfortunately, on DOS this fails, as config.log is still kept open
43097# by configure, so config.status won't be able to write to it; its
43098# output is simply discarded. So we exec the FD to /dev/null,
43099# effectively closing config.log, so it can be properly (re)opened and
43100# appended to by config.status. When coming back to configure, we
43101# need to make the FD available again.
43102if test "$no_create" != yes; then
43103 ac_cs_success=:
43104 ac_config_status_args=
43105 test "$silent" = yes &&
43106 ac_config_status_args="$ac_config_status_args --quiet"
43107 exec 5>/dev/null
43108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43109 exec 5>>config.log
43110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43111 # would make configure fail if this is the last instruction.
43112 $ac_cs_success || { (exit 1); exit 1; }
43113fi
43114
43115#
43116# CONFIG_SUBDIRS section.
43117#
43118if test "$no_recursion" != yes; then
43119
43120 # Remove --cache-file and --srcdir arguments so they do not pile up.
43121 ac_sub_configure_args=
43122 ac_prev=
43123 for ac_arg in $ac_configure_args; do
43124 if test -n "$ac_prev"; then
43125 ac_prev=
43126 continue
43127 fi
43128 case $ac_arg in
43129 -cache-file | --cache-file | --cache-fil | --cache-fi \
43130 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43131 ac_prev=cache_file ;;
43132 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43133 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43134 | --c=*)
43135 ;;
43136 --config-cache | -C)
43137 ;;
43138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43139 ac_prev=srcdir ;;
43140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43141 ;;
43142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43143 ac_prev=prefix ;;
43144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43145 ;;
43146 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43147 esac
43148 done
43149
43150 # Always prepend --prefix to ensure using the same prefix
43151 # in subdir configurations.
43152 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43153
43154 ac_popdir=`pwd`
43155 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43156
43157 # Do not complain, so a configure script can configure whichever
43158 # parts of a large source tree are present.
43159 test -d $srcdir/$ac_dir || continue
43160
43161 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43162echo "$as_me: configuring in $ac_dir" >&6;}
43163 { if $as_mkdir_p; then
43164 mkdir -p "$ac_dir"
43165 else
43166 as_dir="$ac_dir"
43167 as_dirs=
43168 while test ! -d "$as_dir"; do
43169 as_dirs="$as_dir $as_dirs"
43170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43172 X"$as_dir" : 'X\(//\)[^/]' \| \
43173 X"$as_dir" : 'X\(//\)$' \| \
43174 X"$as_dir" : 'X\(/\)' \| \
43175 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43176echo X"$as_dir" |
43177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43179 /^X\(\/\/\)$/{ s//\1/; q; }
43180 /^X\(\/\).*/{ s//\1/; q; }
43181 s/.*/./; q'`
43182 done
43183 test ! -n "$as_dirs" || mkdir $as_dirs
43184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43185echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43186 { (exit 1); exit 1; }; }; }
43187
43188 ac_builddir=.
43189
43190if test "$ac_dir" != .; then
43191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43192 # A "../" for each directory in $ac_dir_suffix.
43193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43194else
43195 ac_dir_suffix= ac_top_builddir=
43196fi
43197
43198case $srcdir in
43199 .) # No --srcdir option. We are building in place.
43200 ac_srcdir=.
43201 if test -z "$ac_top_builddir"; then
43202 ac_top_srcdir=.
43203 else
43204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43205 fi ;;
43206 [\\/]* | ?:[\\/]* ) # Absolute path.
43207 ac_srcdir=$srcdir$ac_dir_suffix;
43208 ac_top_srcdir=$srcdir ;;
43209 *) # Relative path.
43210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43211 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43212esac
ac1cb8d3
VS
43213
43214# Do not use `cd foo && pwd` to compute absolute paths, because
43215# the directories may not exist.
43216case `pwd` in
43217.) ac_abs_builddir="$ac_dir";;
43218*)
43219 case "$ac_dir" in
43220 .) ac_abs_builddir=`pwd`;;
43221 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43222 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43223 esac;;
43224esac
43225case $ac_abs_builddir in
43226.) ac_abs_top_builddir=${ac_top_builddir}.;;
43227*)
43228 case ${ac_top_builddir}. in
43229 .) ac_abs_top_builddir=$ac_abs_builddir;;
43230 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43231 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43232 esac;;
43233esac
43234case $ac_abs_builddir in
43235.) ac_abs_srcdir=$ac_srcdir;;
43236*)
43237 case $ac_srcdir in
43238 .) ac_abs_srcdir=$ac_abs_builddir;;
43239 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43240 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43241 esac;;
43242esac
43243case $ac_abs_builddir in
43244.) ac_abs_top_srcdir=$ac_top_srcdir;;
43245*)
43246 case $ac_top_srcdir in
43247 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43248 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43249 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43250 esac;;
43251esac
a848cd7e
SC
43252
43253
43254 cd $ac_dir
43255
43256 # Check for guested configure; otherwise get Cygnus style configure.
43257 if test -f $ac_srcdir/configure.gnu; then
43258 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43259 elif test -f $ac_srcdir/configure; then
43260 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43261 elif test -f $ac_srcdir/configure.in; then
43262 ac_sub_configure=$ac_configure
43263 else
43264 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43265echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43266 ac_sub_configure=
43267 fi
43268
43269 # The recursion is here.
43270 if test -n "$ac_sub_configure"; then
43271 # Make the cache file name correct relative to the subdirectory.
43272 case $cache_file in
43273 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43274 *) # Relative path.
ac1cb8d3 43275 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43276 esac
43277
43278 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43279echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43280 # The eval makes quoting arguments work.
43281 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43282 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43283 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43284echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43285 { (exit 1); exit 1; }; }
43286 fi
43287
c228d3a4 43288 cd $ac_popdir
a848cd7e
SC
43289 done
43290fi
43291
43292
43293echo
77ffb593 43294echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43295echo ""
4d4ff94c 43296echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43297echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43298
77ffb593
JS
43299echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43300echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43301echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43302
77ffb593
JS
43303echo " What level of wxWidgets compatibility should be enabled?"
43304echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43305echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43306
77ffb593 43307echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43308echo " jpeg ${wxUSE_LIBJPEG-none}"
43309echo " png ${wxUSE_LIBPNG-none}"
43310echo " regex ${wxUSE_REGEX}"
43311echo " tiff ${wxUSE_LIBTIFF-none}"
43312if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43313echo " xpm ${wxUSE_LIBXPM-none}"
43314fi
43315echo " zlib ${wxUSE_ZLIB}"
43316echo " odbc ${wxUSE_ODBC}"
43317echo " expat ${wxUSE_EXPAT}"
43318echo " libmspack ${wxUSE_LIBMSPACK}"
43319echo " sdl ${wxUSE_LIBSDL}"
43320
43321echo ""
43322