]> git.saurik.com Git - wxWidgets.git/blame - configure
compilation 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"
1e9e8aba 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
3b57de8b 934 --enable-mediactrl use wxMediaCtrl class
77ffb593 935 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 936 --enable-zipstream use wxZipInputStream
a848cd7e
SC
937 --enable-url use wxURL class
938 --enable-protocol use wxProtocol class
939 --enable-protocol-http HTTP support in wxProtocol
940 --enable-protocol-ftp FTP support in wxProtocol
941 --enable-protocol-file FILE support in wxProtocol
942 --enable-threads use threads
943 --enable-docview use document view architecture
944 --enable-help use help subsystem
945 --enable-mshtmlhelp use MS HTML Help (win32)
946 --enable-html use wxHTML sub-library
947 --enable-htmlhelp use wxHTML-based help
9a8f0513 948 --enable-xrc use XRC resources sub-library
a848cd7e
SC
949 --enable-constraints use layout-constraints system
950 --enable-printarch use printing architecture
951 --enable-mdi use multiple document interface architecture
8a7b1113 952 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
953 --enable-loggui use standard GUI logger
954 --enable-logwin use wxLogWindow
955 --enable-logdialog use wxLogDialog
646b6ec1 956 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
957 --enable-postscript use wxPostscriptDC device context (default for gtk+)
958 --enable-prologio not available; see contrib
959 --enable-resources not available; see contrib
960 --enable-clipboard use wxClipboard class
961 --enable-dnd use Drag'n'Drop classes
962 --enable-metafile use win32 metafiles
963 --enable-controls use all usual controls
964 --enable-accel use accelerators
965 --enable-button use wxButton class
966 --enable-bmpbutton use wxBitmapButton class
967 --enable-calendar use wxCalendarCtrl class
968 --enable-caret use wxCaret class
969 --enable-checkbox use wxCheckBox class
970 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
971 --enable-choice use wxChoice class
92bbdbcd 972 --enable-choicebook use wxChoicebook class
a848cd7e
SC
973 --enable-combobox use wxComboBox class
974 --enable-display use wxDisplay class
975 --enable-gauge use wxGauge class
976 --enable-grid use wxGrid class
977 --enable-imaglist use wxImageList class
978 --enable-listbook use wxListbook class
979 --enable-listbox use wxListBox class
980 --enable-listctrl use wxListCtrl class
981 --enable-notebook use wxNotebook class
982 --enable-radiobox use wxRadioBox class
983 --enable-radiobtn use wxRadioButton class
984 --enable-sash use wxSashWindow class
985 --enable-scrollbar use wxScrollBar class and scrollable windows
986 --enable-slider use wxSlider class
987 --enable-spinbtn use wxSpinButton class
988 --enable-spinctrl use wxSpinCtrl class
989 --enable-splitter use wxSplitterWindow class
990 --enable-statbmp use wxStaticBitmap class
991 --enable-statbox use wxStaticBox class
992 --enable-statline use wxStaticLine class
993 --enable-stattext use wxStaticText class
994 --enable-statusbar use wxStatusBar class
995 --enable-tabdialog use wxTabControl class
996 --enable-textctrl use wxTextCtrl class
997 --enable-togglebtn use wxToggleButton class
998 --enable-toolbar use wxToolBar class
999 --enable-tbarnative use native wxToolBar class
1000 --enable-tbarsmpl use wxToolBarSimple class
1001 --enable-treectrl use wxTreeCtrl class
1002 --enable-tipwindow use wxTipWindow class
1003 --enable-popupwin use wxPopUpWindow class
1004 --enable-commondlg use all common dialogs
1005 --enable-choicedlg use wxChoiceDialog
1006 --enable-coldlg use wxColourDialog
1007 --enable-filedlg use wxFileDialog
1008 --enable-finddlg use wxFindReplaceDialog
1009 --enable-fontdlg use wxFontDialog
1010 --enable-dirdlg use wxDirDialog
1011 --enable-msgdlg use wxMessageDialog
1012 --enable-numberdlg use wxNumberEntryDialog
1013 --enable-splash use wxSplashScreen
1014 --enable-textdlg use wxTextDialog
1015 --enable-tipdlg use startup tips
1016 --enable-progressdlg use wxProgressDialog
1017 --enable-wizarddlg use wxWizard
1018 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1019 --enable-miniframe use wxMiniFrame class
1020 --enable-tooltips use wxToolTip class
1021 --enable-splines use spline drawing code
1022 --enable-validators use wxValidator and derived classes
1023 --enable-busyinfo use wxBusyInfo
1024 --enable-joystick use wxJoystick (Linux only)
1025 --enable-metafiles use wxMetaFile (Windows only)
1026 --enable-dragimage use wxDragImage
1027 --enable-accessibility enable accessibility support
1028 --enable-palette use wxPalette class
1029 --enable-image use wxImage class
1030 --enable-gif use gif images (GIF file format)
1031 --enable-pcx use pcx images (PCX file format)
1032 --enable-iff use iff images (IFF file format)
1033 --enable-pnm use pnm images (PNM file format)
1034 --enable-xpm use xpm images (XPM file format)
1035 --enable-icocur use Windows ICO and CUR formats
77ffb593 1036 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1037 --enable-vendor=VENDOR vendor name (win32 DLL only)
1038 --disable-largefile omit support for large files
1039 --disable-gtktest do not try to compile and run a test GTK+ program
1040 --disable-gtktest Do not try to compile and run a test GTK program
1041 --disable-sdltest Do not try to compile and run a test SDL program
1042 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1043 --disable-precomp-headers
1044 don't use precompiled headers even if compiler can
a848cd7e
SC
1045
1046Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gtk use GTK+
1050 --with-motif use Motif/Lesstif
1051 --with-mac use Mac OS X
1052 --with-cocoa use Cocoa
1053 --with-wine use Wine
1054 --with-msw use MS-Windows
1055 --with-pm use OS/2 Presentation Manager
1056 --with-mgl use SciTech MGL
1057 --with-microwin use MicroWindows
1058 --with-x11 use X11
1059 --with-libpng use libpng (PNG image format)
1060 --with-libjpeg use libjpeg (JPEG file format)
1061 --with-libtiff use libtiff (TIFF file format)
1062 --with-libxpm use libxpm (XPM file format)
1063 --with-libmspack use libmspack (CHM help files loading)
1064 --with-sdl use SDL for audio on Unix
d51253e8 1065 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1066 --with-opengl use OpenGL (or Mesa)
1067 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1068 --with-regex enable support for wxRegEx class
1069 --with-zlib use zlib for LZW compression
1070 --with-odbc use the IODBC and wxODBC classes
1071 --with-expat enable XML support using expat parser
ceec2216 1072 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1073 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1074 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1075 --with-x use the X Window System
1076 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1077 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1078 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1079 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1080 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1081
1082Some influential environment variables:
dcc1b6ad
VS
1083 CC C compiler command
1084 CFLAGS C compiler flags
1085 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1086 nonstandard directory <lib dir>
1087 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1088 headers in a nonstandard directory <include dir>
1089 CPP C preprocessor
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CXXCPP C++ preprocessor
a848cd7e
SC
1093
1094Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations.
1096
77ffb593 1097Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1098_ACEOF
1099fi
1100
1101if test "$ac_init_help" = "recursive"; then
1102 # If there are subdirs, report their specific --help.
1103 ac_popdir=`pwd`
1104 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1105 test -d $ac_dir || continue
1106 ac_builddir=.
1107
1108if test "$ac_dir" != .; then
1109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1110 # A "../" for each directory in $ac_dir_suffix.
1111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1112else
1113 ac_dir_suffix= ac_top_builddir=
1114fi
1115
1116case $srcdir in
1117 .) # No --srcdir option. We are building in place.
1118 ac_srcdir=.
1119 if test -z "$ac_top_builddir"; then
1120 ac_top_srcdir=.
1121 else
1122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1123 fi ;;
1124 [\\/]* | ?:[\\/]* ) # Absolute path.
1125 ac_srcdir=$srcdir$ac_dir_suffix;
1126 ac_top_srcdir=$srcdir ;;
1127 *) # Relative path.
1128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1130esac
ac1cb8d3
VS
1131
1132# Do not use `cd foo && pwd` to compute absolute paths, because
1133# the directories may not exist.
1134case `pwd` in
1135.) ac_abs_builddir="$ac_dir";;
1136*)
1137 case "$ac_dir" in
1138 .) ac_abs_builddir=`pwd`;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_builddir=${ac_top_builddir}.;;
1145*)
1146 case ${ac_top_builddir}. in
1147 .) ac_abs_top_builddir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_srcdir=$ac_srcdir;;
1154*)
1155 case $ac_srcdir in
1156 .) ac_abs_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_srcdir=$ac_top_srcdir;;
1163*)
1164 case $ac_top_srcdir in
1165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1168 esac;;
1169esac
a848cd7e
SC
1170
1171 cd $ac_dir
1172 # Check for guested configure; otherwise get Cygnus style configure.
1173 if test -f $ac_srcdir/configure.gnu; then
1174 echo
1175 $SHELL $ac_srcdir/configure.gnu --help=recursive
1176 elif test -f $ac_srcdir/configure; then
1177 echo
1178 $SHELL $ac_srcdir/configure --help=recursive
1179 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1180 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1181 echo
1182 $ac_configure --help
1183 else
1184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1185 fi
fc480dc1 1186 cd $ac_popdir
a848cd7e
SC
1187 done
1188fi
1189
1190test -n "$ac_init_help" && exit 0
1191if $ac_init_version; then
1192 cat <<\_ACEOF
7714864e 1193wxWidgets configure 2.5.3
ac1cb8d3 1194generated by GNU Autoconf 2.59
a848cd7e 1195
ac1cb8d3 1196Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1197This configure script is free software; the Free Software Foundation
1198gives unlimited permission to copy, distribute and modify it.
1199_ACEOF
1200 exit 0
1201fi
1202exec 5>config.log
1203cat >&5 <<_ACEOF
1204This file contains any messages produced by compilers while
1205running configure, to aid debugging if configure makes a mistake.
1206
7714864e 1207It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1208generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1209
1210 $ $0 $@
1211
1212_ACEOF
1213{
1214cat <<_ASUNAME
1215## --------- ##
1216## Platform. ##
1217## --------- ##
1218
1219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1220uname -m = `(uname -m) 2>/dev/null || echo unknown`
1221uname -r = `(uname -r) 2>/dev/null || echo unknown`
1222uname -s = `(uname -s) 2>/dev/null || echo unknown`
1223uname -v = `(uname -v) 2>/dev/null || echo unknown`
1224
1225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1227
1228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1231hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1235
1236_ASUNAME
1237
1238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1239for as_dir in $PATH
1240do
1241 IFS=$as_save_IFS
1242 test -z "$as_dir" && as_dir=.
1243 echo "PATH: $as_dir"
1244done
1245
1246} >&5
1247
1248cat >&5 <<_ACEOF
1249
1250
1251## ----------- ##
1252## Core tests. ##
1253## ----------- ##
1254
1255_ACEOF
1256
1257
1258# Keep a trace of the command line.
1259# Strip out --no-create and --no-recursion so they do not pile up.
1260# Strip out --silent because we don't want to record it for future runs.
1261# Also quote any args containing shell meta-characters.
1262# Make two passes to allow for proper duplicate-argument suppression.
1263ac_configure_args=
1264ac_configure_args0=
1265ac_configure_args1=
1266ac_sep=
1267ac_must_keep_next=false
1268for ac_pass in 1 2
1269do
1270 for ac_arg
1271 do
1272 case $ac_arg in
1273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1276 continue ;;
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 esac
1280 case $ac_pass in
1281 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1282 2)
1283 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1284 if test $ac_must_keep_next = true; then
ac1cb8d3 1285 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1286 else
ac1cb8d3
VS
1287 case $ac_arg in
1288 *=* | --config-cache | -C | -disable-* | --disable-* \
1289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1291 | -with-* | --with-* | -without-* | --without-* | --x)
1292 case "$ac_configure_args0 " in
1293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1294 esac
1295 ;;
1296 -* ) ac_must_keep_next=true ;;
1297 esac
a848cd7e
SC
1298 fi
1299 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1300 # Get rid of the leading space.
1301 ac_sep=" "
1302 ;;
1303 esac
1304 done
1305done
1306$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1307$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1308
1309# When interrupted or exit'd, cleanup temporary files, and complete
1310# config.log. We remove comments because anyway the quotes in there
1311# would cause problems or look ugly.
1312# WARNING: Be sure not to use single quotes in there, as some shells,
1313# such as our DU 5.0 friend, will then `close' the trap.
1314trap 'exit_status=$?
1315 # Save into config.log some information that might help in debugging.
1316 {
1317 echo
1318
1319 cat <<\_ASBOX
1320## ---------------- ##
1321## Cache variables. ##
1322## ---------------- ##
1323_ASBOX
1324 echo
1325 # The following way of writing the cache mishandles newlines in values,
1326{
1327 (set) 2>&1 |
1328 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1329 *ac_space=\ *)
1330 sed -n \
ac1cb8d3
VS
1331 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1333 ;;
1334 *)
1335 sed -n \
ac1cb8d3 1336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1337 ;;
1338 esac;
1339}
1340 echo
1341
1342 cat <<\_ASBOX
1343## ----------------- ##
1344## Output variables. ##
1345## ----------------- ##
1346_ASBOX
1347 echo
1348 for ac_var in $ac_subst_vars
1349 do
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1352 done | sort
1353 echo
1354
1355 if test -n "$ac_subst_files"; then
1356 cat <<\_ASBOX
1357## ------------- ##
1358## Output files. ##
1359## ------------- ##
1360_ASBOX
1361 echo
1362 for ac_var in $ac_subst_files
1363 do
1364 eval ac_val=$`echo $ac_var`
ac1cb8d3 1365 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1366 done | sort
1367 echo
1368 fi
1369
1370 if test -s confdefs.h; then
1371 cat <<\_ASBOX
1372## ----------- ##
1373## confdefs.h. ##
1374## ----------- ##
1375_ASBOX
1376 echo
1377 sed "/^$/d" confdefs.h | sort
1378 echo
1379 fi
1380 test "$ac_signal" != 0 &&
1381 echo "$as_me: caught signal $ac_signal"
1382 echo "$as_me: exit $exit_status"
1383 } >&5
ac1cb8d3 1384 rm -f core *.core &&
a848cd7e
SC
1385 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1386 exit $exit_status
1387 ' 0
1388for ac_signal in 1 2 13 15; do
1389 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1390done
1391ac_signal=0
1392
1393# confdefs.h avoids OS command line length limits that DEFS can exceed.
1394rm -rf conftest* confdefs.h
1395# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1396echo >confdefs.h
1397
1398# Predefined preprocessor variables.
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_NAME "$PACKAGE_NAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_VERSION "$PACKAGE_VERSION"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_STRING "$PACKAGE_STRING"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422_ACEOF
1423
1424
1425# Let the site file select an alternate cache file if it wants to.
1426# Prefer explicitly selected file to automatically selected ones.
1427if test -z "$CONFIG_SITE"; then
1428 if test "x$prefix" != xNONE; then
1429 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1430 else
1431 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1432 fi
1433fi
1434for ac_site_file in $CONFIG_SITE; do
1435 if test -r "$ac_site_file"; then
1436 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1437echo "$as_me: loading site script $ac_site_file" >&6;}
1438 sed 's/^/| /' "$ac_site_file" >&5
1439 . "$ac_site_file"
1440 fi
1441done
1442
1443if test -r "$cache_file"; then
1444 # Some versions of bash will fail to source /dev/null (special
1445 # files actually), so we avoid doing that.
1446 if test -f "$cache_file"; then
1447 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1448echo "$as_me: loading cache $cache_file" >&6;}
1449 case $cache_file in
1450 [\\/]* | ?:[\\/]* ) . $cache_file;;
1451 *) . ./$cache_file;;
1452 esac
1453 fi
1454else
1455 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1456echo "$as_me: creating cache $cache_file" >&6;}
1457 >$cache_file
1458fi
1459
1460# Check that the precious variables saved in the cache have kept the same
1461# value.
1462ac_cache_corrupted=false
1463for ac_var in `(set) 2>&1 |
ac1cb8d3 1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1470 set,)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,set)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,);;
1479 *)
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1482echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1484echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1486echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1487 ac_cache_corrupted=:
a848cd7e
SC
1488 fi;;
1489 esac
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1492 case $ac_new_val in
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1496 esac
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 esac
1501 fi
1502done
1503if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510
1511ac_ext=c
1512ac_cpp='$CPP $CPPFLAGS'
1513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546ac_aux_dir=
1547for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1548 if test -f $ac_dir/install-sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install-sh -c"
1551 break
1552 elif test -f $ac_dir/install.sh; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/install.sh -c"
1555 break
1556 elif test -f $ac_dir/shtool; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 break
1560 fi
1561done
1562if test -z "$ac_aux_dir"; then
1563 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1564echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1565 { (exit 1); exit 1; }; }
1566fi
1567ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1568ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1569ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570
1571# Make sure we can run config.sub.
1572$ac_config_sub sun4 >/dev/null 2>&1 ||
1573 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1574echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577echo "$as_me:$LINENO: checking build system type" >&5
1578echo $ECHO_N "checking build system type... $ECHO_C" >&6
1579if test "${ac_cv_build+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 ac_cv_build_alias=$build_alias
1583test -z "$ac_cv_build_alias" &&
1584 ac_cv_build_alias=`$ac_config_guess`
1585test -z "$ac_cv_build_alias" &&
1586 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1587echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1588 { (exit 1); exit 1; }; }
1589ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1596echo "${ECHO_T}$ac_cv_build" >&6
1597build=$ac_cv_build
1598build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603echo "$as_me:$LINENO: checking host system type" >&5
1604echo $ECHO_N "checking host system type... $ECHO_C" >&6
1605if test "${ac_cv_host+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 ac_cv_host_alias=$host_alias
1609test -z "$ac_cv_host_alias" &&
1610 ac_cv_host_alias=$ac_cv_build_alias
1611ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1613echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1615
1616fi
1617echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1618echo "${ECHO_T}$ac_cv_host" >&6
1619host=$ac_cv_host
1620host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625echo "$as_me:$LINENO: checking target system type" >&5
1626echo $ECHO_N "checking target system type... $ECHO_C" >&6
1627if test "${ac_cv_target+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_target_alias=$target_alias
1631test "x$ac_cv_target_alias" = "x" &&
1632 ac_cv_target_alias=$ac_cv_host_alias
1633ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1640echo "${ECHO_T}$ac_cv_target" >&6
1641target=$ac_cv_target
1642target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647# The aliases save the names the user supplied, while $host etc.
1648# will get canonicalized.
1649test -n "$target_alias" &&
1650 test "$program_prefix$program_suffix$program_transform_name" = \
1651 NONENONEs,x,x, &&
1652 program_prefix=${target_alias}-
1653
1654
1655
ceec2216
RL
1656wx_major_version_number=2
1657wx_minor_version_number=5
7714864e 1658wx_release_number=3
0210f373 1659wx_subrelease_number=3
a848cd7e 1660
ceec2216
RL
1661WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1662WX_VERSION=$WX_RELEASE.$wx_release_number
1663WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1664
ceec2216 1665WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1666
e653e181 1667WX_CURRENT=3
a848cd7e 1668WX_REVISION=0
0210f373 1669WX_AGE=3
a848cd7e
SC
1670
1671
1672
1673USE_UNIX=1
1674USE_OS2=0
1675USE_WIN32=0
1676USE_DOS=0
1677USE_BEOS=0
1678USE_MAC=0
1679
1680USE_AIX=
1681USE_BSD= USE_DARWIN= USE_FREEBSD=
1682USE_GNU= USE_HPUX=
1683USE_LINUX=
1684USE_NETBSD=
1685USE_OPENBSD=
1686USE_OSF= USE_SGI=
1687USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1688USE_ULTRIX=
1689USE_UNIXWARE=
1690
1691USE_ALPHA=
1692
1693NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1694
1695ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1696
1697DEFAULT_wxUSE_COCOA=0
1698DEFAULT_wxUSE_GTK=0
1699DEFAULT_wxUSE_MAC=0
1700DEFAULT_wxUSE_MGL=0
1701DEFAULT_wxUSE_MICROWIN=0
1702DEFAULT_wxUSE_MOTIF=0
1703DEFAULT_wxUSE_MSW=0
1704DEFAULT_wxUSE_PM=0
1705DEFAULT_wxUSE_X11=0
1706
1707DEFAULT_DEFAULT_wxUSE_COCOA=0
1708DEFAULT_DEFAULT_wxUSE_GTK=0
1709DEFAULT_DEFAULT_wxUSE_MAC=0
1710DEFAULT_DEFAULT_wxUSE_MGL=0
1711DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_DEFAULT_wxUSE_MSW=0
1714DEFAULT_DEFAULT_wxUSE_PM=0
1715DEFAULT_DEFAULT_wxUSE_X11=0
1716
1717PROGRAM_EXT=
1718SO_SUFFIX=so
1719SAMPLES_RPATH_FLAG=
1720SAMPLES_RPATH_POSTLINK=
1721
1722case "${host}" in
1723 *-hp-hpux* )
1724 USE_HPUX=1
1725 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1726 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1727 SO_SUFFIX=sl
1728 cat >>confdefs.h <<\_ACEOF
1729#define __HPUX__ 1
1730_ACEOF
1731
1732 ;;
1733 *-*-linux* )
1734 USE_LINUX=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __LINUX__ 1
1737_ACEOF
1738
1739 TMP=`uname -m`
1740 if test "x$TMP" = "xalpha"; then
1741 USE_ALPHA=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __ALPHA__ 1
1744_ACEOF
1745
1746 fi
1747 DEFAULT_DEFAULT_wxUSE_GTK=1
1748 ;;
1749 *-*-gnu* | *-*-k*bsd*-gnu )
1750 USE_GNU=1
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-irix5* | *-*-irix6* )
1762 USE_SGI=1
1763 USE_SVR4=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __SGI__ 1
1766_ACEOF
1767
1768 cat >>confdefs.h <<\_ACEOF
1769#define __SVR4__ 1
1770_ACEOF
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1773 ;;
1774 *-*-solaris2* )
1775 USE_SUN=1
1776 USE_SOLARIS=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SUN__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SOLARIS__ 1
1784_ACEOF
1785
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SVR4__ 1
1788_ACEOF
1789
1790 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1791 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1792 ;;
1793 *-*-sunos4* )
1794 USE_SUN=1
1795 USE_SUNOS=1
1796 USE_BSD=1
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SUN__ 1
1799_ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SUNOS__ 1
1803_ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806#define __BSD__ 1
1807_ACEOF
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1810 ;;
1811 *-*-freebsd*)
1812 USE_BSD=1
1813 USE_FREEBSD=1
1814 cat >>confdefs.h <<\_ACEOF
1815#define __FREEBSD__ 1
1816_ACEOF
1817
1818 cat >>confdefs.h <<\_ACEOF
1819#define __BSD__ 1
1820_ACEOF
1821
1822 DEFAULT_DEFAULT_wxUSE_GTK=1
1823 ;;
1824 *-*-openbsd*)
1825 USE_BSD=1
1826 USE_OPENBSD=1
1827 cat >>confdefs.h <<\_ACEOF
1828#define __OPENBSD__ 1
1829_ACEOF
1830
1831 cat >>confdefs.h <<\_ACEOF
1832#define __BSD__ 1
1833_ACEOF
1834
1835 DEFAULT_DEFAULT_wxUSE_GTK=1
1836 ;;
1837 *-*-netbsd*)
1838 USE_BSD=1
1839 USE_NETBSD=1
1840 cat >>confdefs.h <<\_ACEOF
1841#define __NETBSD__ 1
1842_ACEOF
1843
1844 cat >>confdefs.h <<\_ACEOF
1845#define __BSD__ 1
1846_ACEOF
1847
1848 DEFAULT_DEFAULT_wxUSE_GTK=1
1849 ;;
1850 *-*-osf* )
1851 USE_ALPHA=1
1852 USE_OSF=1
1853 cat >>confdefs.h <<\_ACEOF
1854#define __ALPHA__ 1
1855_ACEOF
1856
1857 cat >>confdefs.h <<\_ACEOF
1858#define __OSF__ 1
1859_ACEOF
1860
1861 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1862 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1863 ;;
1864 *-*-dgux5* )
1865 USE_ALPHA=1
1866 USE_SVR4=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __ALPHA__ 1
1869_ACEOF
1870
1871 cat >>confdefs.h <<\_ACEOF
1872#define __SVR4__ 1
1873_ACEOF
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 ;;
1877 *-*-sysv5* )
1878 USE_SYSV=1
1879 USE_SVR4=1
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SYSV__ 1
1882_ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885#define __SVR4__ 1
1886_ACEOF
1887
1888 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1889 ;;
1890 *-*-aix* )
1891 USE_AIX=1
1892 USE_SYSV=1
1893 USE_SVR4=1
1894 SO_SUFFIX=a
1895 cat >>confdefs.h <<\_ACEOF
1896#define __AIX__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SYSV__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909
1910 *-*-*UnixWare*)
1911 USE_SYSV=1
1912 USE_SVR4=1
1913 USE_UNIXWARE=1
1914 cat >>confdefs.h <<\_ACEOF
1915#define __UNIXWARE__ 1
1916_ACEOF
1917
1918 ;;
1919
1920 *-*-cygwin* | *-*-mingw32* )
1921 SO_SUFFIX=dll
1922 PROGRAM_EXT=".exe"
1923 RESCOMP=windres
1924 DEFAULT_DEFAULT_wxUSE_MSW=1
1925 ;;
1926
1927 *-pc-msdosdjgpp )
1928 USE_UNIX=0
1929 USE_DOS=1
1930 cat >>confdefs.h <<\_ACEOF
1931#define __DOS__ 1
1932_ACEOF
1933
1934 PROGRAM_EXT=".exe"
1935 DEFAULT_DEFAULT_wxUSE_MGL=1
1936 LIBS="$LIBS -lstdc++"
1937 ;;
1938
1939 *-pc-os2_emx | *-pc-os2-emx )
1940 cat >>confdefs.h <<\_ACEOF
1941#define __EMX__ 1
1942_ACEOF
1943
1944 USE_OS2=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __OS2__ 1
1947_ACEOF
1948
1949 PROGRAM_EXT=".exe"
1950 DEFAULT_DEFAULT_wxUSE_PM=1
1951 CXX=gcc
1952 LDFLAGS="$LDFLAGS -Zcrtdll"
1953 ac_executable_extensions=".exe"
1954 export ac_executable_extensions
1955 ac_save_IFS="$IFS"
1956 IFS='\\'
1957 ac_TEMP_PATH=
1958 for ac_dir in $PATH; do
1959 IFS=$ac_save_IFS
1960 if test -z "$ac_TEMP_PATH"; then
1961 ac_TEMP_PATH="$ac_dir"
1962 else
1963 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1964 fi
1965 done
1966 export PATH="$ac_TEMP_PATH"
1967 unset ac_TEMP_PATH
1968 ;;
1969
1970 powerpc-*-darwin* )
1971 USE_BSD=1
1972 USE_DARWIN=1
1973 SO_SUFFIX=dylib
1974 cat >>confdefs.h <<\_ACEOF
1975#define __BSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __DARWIN__ 1
1980_ACEOF
1981
1982 cat >>confdefs.h <<\_ACEOF
1983#define __POWERPC__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define TARGET_CARBON 1
1988_ACEOF
1989
1990 DEFAULT_DEFAULT_wxUSE_MAC=1
1991 ;;
1e9e8aba
DE
1992 powerpc-apple-macos* )
1993 USE_UNIX=0
1994 ac_cv_c_bigendian=yes
1995 SO_SUFFIX=shlib
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
1997 ;;
a848cd7e
SC
1998
1999 *-*-beos* )
2000 USE_BEOS=1
2001 cat >>confdefs.h <<\_ACEOF
2002#define __BEOS__ 1
2003_ACEOF
2004
2005 ;;
2006
2007 *)
2008 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2009echo "$as_me: error: unknown system type ${host}." >&2;}
2010 { (exit 1); exit 1; }; }
2011esac
2012
2013
2014
2015
2016 wx_arg_cache_file="configarg.cache"
2017 echo "loading argument cache $wx_arg_cache_file"
2018 rm -f ${wx_arg_cache_file}.tmp
2019 touch ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}
2021
2022
2023DEBUG_CONFIGURE=0
2024if test $DEBUG_CONFIGURE = 1; then
2025 DEFAULT_wxUSE_UNIVERSAL=no
2026 DEFAULT_wxUSE_STL=no
2027
2028 DEFAULT_wxUSE_NANOX=no
2029
2030 DEFAULT_wxUSE_THREADS=yes
2031
2032 DEFAULT_wxUSE_SHARED=yes
2033 DEFAULT_wxUSE_OPTIMISE=no
2034 DEFAULT_wxUSE_PROFILE=no
2035 DEFAULT_wxUSE_NO_DEPS=no
2036 DEFAULT_wxUSE_NO_RTTI=no
2037 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2038 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2039 DEFAULT_wxUSE_PERMISSIVE=no
2040 DEFAULT_wxUSE_DEBUG_FLAG=yes
2041 DEFAULT_wxUSE_DEBUG_INFO=yes
2042 DEFAULT_wxUSE_DEBUG_GDB=yes
2043 DEFAULT_wxUSE_MEM_TRACING=no
2044 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2045 DEFAULT_wxUSE_DMALLOC=no
2046 DEFAULT_wxUSE_APPLE_IEEE=no
2047
2048 DEFAULT_wxUSE_EXCEPTIONS=no
2049 DEFAULT_wxUSE_LOG=yes
2050 DEFAULT_wxUSE_LOGWINDOW=no
2051 DEFAULT_wxUSE_LOGGUI=no
2052 DEFAULT_wxUSE_LOGDIALOG=no
2053
2054 DEFAULT_wxUSE_GUI=yes
2055 DEFAULT_wxUSE_CONTROLS=no
2056
2057 DEFAULT_wxUSE_REGEX=no
2058 DEFAULT_wxUSE_XML=no
2059 DEFAULT_wxUSE_EXPAT=no
2060 DEFAULT_wxUSE_ZLIB=no
2061 DEFAULT_wxUSE_LIBPNG=no
2062 DEFAULT_wxUSE_LIBJPEG=no
2063 DEFAULT_wxUSE_LIBTIFF=no
2064 DEFAULT_wxUSE_LIBXPM=no
2065 DEFAULT_wxUSE_LIBMSPACK=no
2066 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2067 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2068 DEFAULT_wxUSE_ODBC=no
2069 DEFAULT_wxUSE_OPENGL=no
2070
2071 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2072 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2073 DEFAULT_wxUSE_STD_IOSTREAM=no
2074 DEFAULT_wxUSE_CMDLINE_PARSER=no
2075 DEFAULT_wxUSE_DATETIME=no
2076 DEFAULT_wxUSE_TIMER=no
2077 DEFAULT_wxUSE_STOPWATCH=no
2078 DEFAULT_wxUSE_FILE=no
2079 DEFAULT_wxUSE_FFILE=no
2080 DEFAULT_wxUSE_TEXTBUFFER=no
2081 DEFAULT_wxUSE_TEXTFILE=no
2082 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2083 DEFAULT_wxUSE_MEDIACTRL=no
2084 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2085 DEFAULT_wxUSE_INTL=no
2086 DEFAULT_wxUSE_CONFIG=no
2087 DEFAULT_wxUSE_FONTMAP=no
2088 DEFAULT_wxUSE_STREAMS=no
2089 DEFAULT_wxUSE_SOCKETS=no
2090 DEFAULT_wxUSE_OLE=no
2091 DEFAULT_wxUSE_DATAOBJ=no
2092 DEFAULT_wxUSE_DIALUP_MANAGER=no
2093 DEFAULT_wxUSE_JOYSTICK=no
2094 DEFAULT_wxUSE_DYNLIB_CLASS=no
2095 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2096 DEFAULT_wxUSE_LONGLONG=no
2097 DEFAULT_wxUSE_GEOMETRY=no
2098
2099 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2100 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2101 DEFAULT_wxUSE_POSTSCRIPT=no
2102
2103 DEFAULT_wxUSE_CLIPBOARD=no
2104 DEFAULT_wxUSE_TOOLTIPS=no
2105 DEFAULT_wxUSE_DRAG_AND_DROP=no
2106 DEFAULT_wxUSE_DRAGIMAGE=no
2107 DEFAULT_wxUSE_SPLINES=no
2108
8a7b1113 2109 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2110 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2111 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2112 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2113
2114 DEFAULT_wxUSE_RESOURCES=no
2115 DEFAULT_wxUSE_CONSTRAINTS=no
2116 DEFAULT_wxUSE_IPC=no
2117 DEFAULT_wxUSE_HELP=no
2118 DEFAULT_wxUSE_MS_HTML_HELP=no
2119 DEFAULT_wxUSE_WXHTML_HELP=no
2120 DEFAULT_wxUSE_TREELAYOUT=no
2121 DEFAULT_wxUSE_METAFILE=no
2122 DEFAULT_wxUSE_MIMETYPE=no
2123 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2124 DEFAULT_wxUSE_PROTOCOL=no
2125 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2126 DEFAULT_wxUSE_PROTOCOL_FTP=no
2127 DEFAULT_wxUSE_PROTOCOL_FILE=no
2128 DEFAULT_wxUSE_URL=no
2129
2130 DEFAULT_wxUSE_COMMONDLGS=no
2131 DEFAULT_wxUSE_CHOICEDLG=no
2132 DEFAULT_wxUSE_COLOURDLG=no
2133 DEFAULT_wxUSE_DIRDLG=no
2134 DEFAULT_wxUSE_FILEDLG=no
2135 DEFAULT_wxUSE_FINDREPLDLG=no
2136 DEFAULT_wxUSE_FONTDLG=no
2137 DEFAULT_wxUSE_MSGDLG=no
2138 DEFAULT_wxUSE_NUMBERDLG=no
2139 DEFAULT_wxUSE_TEXTDLG=no
2140 DEFAULT_wxUSE_SPLASH=no
2141 DEFAULT_wxUSE_STARTUP_TIPS=no
2142 DEFAULT_wxUSE_PROGRESSDLG=no
2143 DEFAULT_wxUSE_WIZARDDLG=no
2144
2145 DEFAULT_wxUSE_MENUS=no
2146 DEFAULT_wxUSE_MINIFRAME=no
2147 DEFAULT_wxUSE_HTML=no
9a8f0513 2148 DEFAULT_wxUSE_XRC=no
646b6ec1 2149 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2150 DEFAULT_wxUSE_FILESYSTEM=no
2151 DEFAULT_wxUSE_FS_INET=no
2152 DEFAULT_wxUSE_FS_ZIP=no
2153 DEFAULT_wxUSE_BUSYINFO=no
2154 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2155 DEFAULT_wxUSE_VALIDATORS=no
2156
2157 DEFAULT_wxUSE_ACCEL=no
2158 DEFAULT_wxUSE_BUTTON=no
2159 DEFAULT_wxUSE_BMPBUTTON=no
2160 DEFAULT_wxUSE_CALCTRL=no
2161 DEFAULT_wxUSE_CARET=no
2162 DEFAULT_wxUSE_CHECKBOX=no
2163 DEFAULT_wxUSE_CHECKLST=no
2164 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2165 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2166 DEFAULT_wxUSE_COMBOBOX=no
2167 DEFAULT_wxUSE_DISPLAY=no
2168 DEFAULT_wxUSE_GAUGE=no
2169 DEFAULT_wxUSE_GRID=no
2170 DEFAULT_wxUSE_IMAGLIST=no
2171 DEFAULT_wxUSE_LISTBOOK=no
2172 DEFAULT_wxUSE_LISTBOX=no
2173 DEFAULT_wxUSE_LISTCTRL=no
2174 DEFAULT_wxUSE_NOTEBOOK=no
2175 DEFAULT_wxUSE_RADIOBOX=no
2176 DEFAULT_wxUSE_RADIOBTN=no
2177 DEFAULT_wxUSE_SASH=no
2178 DEFAULT_wxUSE_SCROLLBAR=no
2179 DEFAULT_wxUSE_SLIDER=no
2180 DEFAULT_wxUSE_SPINBTN=no
2181 DEFAULT_wxUSE_SPINCTRL=no
2182 DEFAULT_wxUSE_SPLITTER=no
2183 DEFAULT_wxUSE_STATBMP=no
2184 DEFAULT_wxUSE_STATBOX=no
2185 DEFAULT_wxUSE_STATLINE=no
2186 DEFAULT_wxUSE_STATTEXT=no
2187 DEFAULT_wxUSE_STATUSBAR=yes
2188 DEFAULT_wxUSE_TABDIALOG=no
2189 DEFAULT_wxUSE_TEXTCTRL=no
2190 DEFAULT_wxUSE_TOGGLEBTN=no
2191 DEFAULT_wxUSE_TOOLBAR=no
2192 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2193 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2194 DEFAULT_wxUSE_TREECTRL=no
2195 DEFAULT_wxUSE_POPUPWIN=no
2196 DEFAULT_wxUSE_TIPWINDOW=no
2197
2198 DEFAULT_wxUSE_UNICODE=no
2199 DEFAULT_wxUSE_UNICODE_MSLU=no
2200 DEFAULT_wxUSE_WCSRTOMBS=no
2201
2202 DEFAULT_wxUSE_PALETTE=no
2203 DEFAULT_wxUSE_IMAGE=no
2204 DEFAULT_wxUSE_GIF=no
2205 DEFAULT_wxUSE_PCX=no
2206 DEFAULT_wxUSE_PNM=no
2207 DEFAULT_wxUSE_IFF=no
2208 DEFAULT_wxUSE_XPM=no
2209 DEFAULT_wxUSE_ICO_CUR=no
2210 DEFAULT_wxUSE_ACCESSIBILITY=no
2211
2212 DEFAULT_wxUSE_MONOLITHIC=no
2213 DEFAULT_wxUSE_PLUGINS=no
2214 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2215else
2216 DEFAULT_wxUSE_UNIVERSAL=no
2217 DEFAULT_wxUSE_STL=no
2218
2219 DEFAULT_wxUSE_NANOX=no
2220
2221 DEFAULT_wxUSE_THREADS=yes
2222
2223 DEFAULT_wxUSE_SHARED=yes
2224 DEFAULT_wxUSE_OPTIMISE=yes
2225 DEFAULT_wxUSE_PROFILE=no
2226 DEFAULT_wxUSE_NO_DEPS=no
2227 DEFAULT_wxUSE_NO_RTTI=no
2228 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2229 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2230 DEFAULT_wxUSE_PERMISSIVE=no
2231 DEFAULT_wxUSE_DEBUG_FLAG=no
2232 DEFAULT_wxUSE_DEBUG_INFO=no
2233 DEFAULT_wxUSE_DEBUG_GDB=no
2234 DEFAULT_wxUSE_MEM_TRACING=no
2235 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2236 DEFAULT_wxUSE_DMALLOC=no
2237 DEFAULT_wxUSE_APPLE_IEEE=yes
2238
2239 DEFAULT_wxUSE_EXCEPTIONS=yes
2240 DEFAULT_wxUSE_LOG=yes
2241 DEFAULT_wxUSE_LOGWINDOW=yes
2242 DEFAULT_wxUSE_LOGGUI=yes
2243 DEFAULT_wxUSE_LOGDIALOG=yes
2244
2245 DEFAULT_wxUSE_GUI=yes
2246
2247 DEFAULT_wxUSE_REGEX=yes
2248 DEFAULT_wxUSE_XML=yes
2249 DEFAULT_wxUSE_EXPAT=yes
2250 DEFAULT_wxUSE_ZLIB=yes
2251 DEFAULT_wxUSE_LIBPNG=yes
2252 DEFAULT_wxUSE_LIBJPEG=yes
2253 DEFAULT_wxUSE_LIBTIFF=yes
2254 DEFAULT_wxUSE_LIBXPM=yes
2255 DEFAULT_wxUSE_LIBMSPACK=yes
2256 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2257 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2258 DEFAULT_wxUSE_ODBC=no
2259 DEFAULT_wxUSE_OPENGL=no
2260
2261 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2262 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2263 DEFAULT_wxUSE_STD_IOSTREAM=no
2264 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2265 DEFAULT_wxUSE_DATETIME=yes
2266 DEFAULT_wxUSE_TIMER=yes
2267 DEFAULT_wxUSE_STOPWATCH=yes
2268 DEFAULT_wxUSE_FILE=yes
2269 DEFAULT_wxUSE_FFILE=yes
2270 DEFAULT_wxUSE_TEXTBUFFER=yes
2271 DEFAULT_wxUSE_TEXTFILE=yes
2272 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2273 DEFAULT_wxUSE_MEDIACTRL=no
2274 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2275 DEFAULT_wxUSE_INTL=yes
2276 DEFAULT_wxUSE_CONFIG=yes
2277 DEFAULT_wxUSE_FONTMAP=yes
2278 DEFAULT_wxUSE_STREAMS=yes
2279 DEFAULT_wxUSE_SOCKETS=yes
2280 DEFAULT_wxUSE_OLE=yes
2281 DEFAULT_wxUSE_DATAOBJ=yes
2282 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2283 DEFAULT_wxUSE_JOYSTICK=yes
2284 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2285 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2286 DEFAULT_wxUSE_LONGLONG=yes
2287 DEFAULT_wxUSE_GEOMETRY=yes
2288
2289 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2290 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2291 DEFAULT_wxUSE_POSTSCRIPT=yes
2292
2293 DEFAULT_wxUSE_CLIPBOARD=yes
2294 DEFAULT_wxUSE_TOOLTIPS=yes
2295 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2296 DEFAULT_wxUSE_DRAGIMAGE=yes
2297 DEFAULT_wxUSE_SPLINES=yes
2298
8a7b1113 2299 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2300 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2301 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2302 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2303
2304 DEFAULT_wxUSE_RESOURCES=no
2305 DEFAULT_wxUSE_CONSTRAINTS=yes
2306 DEFAULT_wxUSE_IPC=yes
2307 DEFAULT_wxUSE_HELP=yes
2308 DEFAULT_wxUSE_MS_HTML_HELP=yes
2309 DEFAULT_wxUSE_WXHTML_HELP=yes
2310 DEFAULT_wxUSE_TREELAYOUT=yes
2311 DEFAULT_wxUSE_METAFILE=yes
2312 DEFAULT_wxUSE_MIMETYPE=yes
2313 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2314 DEFAULT_wxUSE_PROTOCOL=yes
2315 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2316 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2317 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2318 DEFAULT_wxUSE_URL=yes
2319
2320 DEFAULT_wxUSE_COMMONDLGS=yes
2321 DEFAULT_wxUSE_CHOICEDLG=yes
2322 DEFAULT_wxUSE_COLOURDLG=yes
2323 DEFAULT_wxUSE_DIRDLG=yes
2324 DEFAULT_wxUSE_FILEDLG=yes
2325 DEFAULT_wxUSE_FINDREPLDLG=yes
2326 DEFAULT_wxUSE_FONTDLG=yes
2327 DEFAULT_wxUSE_MSGDLG=yes
2328 DEFAULT_wxUSE_NUMBERDLG=yes
2329 DEFAULT_wxUSE_TEXTDLG=yes
2330 DEFAULT_wxUSE_SPLASH=yes
2331 DEFAULT_wxUSE_STARTUP_TIPS=yes
2332 DEFAULT_wxUSE_PROGRESSDLG=yes
2333 DEFAULT_wxUSE_WIZARDDLG=yes
2334
2335 DEFAULT_wxUSE_MENUS=yes
2336 DEFAULT_wxUSE_MINIFRAME=yes
2337 DEFAULT_wxUSE_HTML=yes
9a8f0513 2338 DEFAULT_wxUSE_XRC=yes
646b6ec1 2339 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2340 DEFAULT_wxUSE_FILESYSTEM=yes
2341 DEFAULT_wxUSE_FS_INET=yes
2342 DEFAULT_wxUSE_FS_ZIP=yes
2343 DEFAULT_wxUSE_BUSYINFO=yes
2344 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2345 DEFAULT_wxUSE_VALIDATORS=yes
2346
2347 DEFAULT_wxUSE_ACCEL=yes
2348 DEFAULT_wxUSE_BUTTON=yes
2349 DEFAULT_wxUSE_BMPBUTTON=yes
2350 DEFAULT_wxUSE_CALCTRL=yes
2351 DEFAULT_wxUSE_CARET=yes
2352 DEFAULT_wxUSE_CHECKBOX=yes
2353 DEFAULT_wxUSE_CHECKLST=yes
2354 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2355 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_COMBOBOX=yes
2357 DEFAULT_wxUSE_DISPLAY=yes
2358 DEFAULT_wxUSE_GAUGE=yes
2359 DEFAULT_wxUSE_GRID=yes
2360 DEFAULT_wxUSE_IMAGLIST=yes
2361 DEFAULT_wxUSE_LISTBOOK=yes
2362 DEFAULT_wxUSE_LISTBOX=yes
2363 DEFAULT_wxUSE_LISTCTRL=yes
2364 DEFAULT_wxUSE_NOTEBOOK=yes
2365 DEFAULT_wxUSE_RADIOBOX=yes
2366 DEFAULT_wxUSE_RADIOBTN=yes
2367 DEFAULT_wxUSE_SASH=yes
2368 DEFAULT_wxUSE_SCROLLBAR=yes
2369 DEFAULT_wxUSE_SLIDER=yes
2370 DEFAULT_wxUSE_SPINBTN=yes
2371 DEFAULT_wxUSE_SPINCTRL=yes
2372 DEFAULT_wxUSE_SPLITTER=yes
2373 DEFAULT_wxUSE_STATBMP=yes
2374 DEFAULT_wxUSE_STATBOX=yes
2375 DEFAULT_wxUSE_STATLINE=yes
2376 DEFAULT_wxUSE_STATTEXT=yes
2377 DEFAULT_wxUSE_STATUSBAR=yes
2378 DEFAULT_wxUSE_TABDIALOG=no
2379 DEFAULT_wxUSE_TEXTCTRL=yes
2380 DEFAULT_wxUSE_TOGGLEBTN=yes
2381 DEFAULT_wxUSE_TOOLBAR=yes
2382 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2383 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2384 DEFAULT_wxUSE_TREECTRL=yes
2385 DEFAULT_wxUSE_POPUPWIN=yes
2386 DEFAULT_wxUSE_TIPWINDOW=yes
2387
2388 DEFAULT_wxUSE_UNICODE=no
2389 DEFAULT_wxUSE_UNICODE_MSLU=yes
2390 DEFAULT_wxUSE_WCSRTOMBS=no
2391
2392 DEFAULT_wxUSE_PALETTE=yes
2393 DEFAULT_wxUSE_IMAGE=yes
2394 DEFAULT_wxUSE_GIF=yes
2395 DEFAULT_wxUSE_PCX=yes
2396 DEFAULT_wxUSE_IFF=no
2397 DEFAULT_wxUSE_PNM=yes
2398 DEFAULT_wxUSE_XPM=yes
2399 DEFAULT_wxUSE_ICO_CUR=yes
2400 DEFAULT_wxUSE_ACCESSIBILITY=no
2401
2402 DEFAULT_wxUSE_MONOLITHIC=no
2403 DEFAULT_wxUSE_PLUGINS=no
2404 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2405
2406 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2407fi
2408
2409
2410
2411for toolkit in `echo $ALL_TOOLKITS`; do
2412 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2413 if test "x$LINE" != "x" ; then
2414 has_toolkit_in_cache=1
2415 eval "DEFAULT_$LINE"
2416 eval "CACHE_$toolkit=1"
2417 fi
2418done
2419
2420
2421
2422 enablestring=
2423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2424echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2425 no_cache=0
2426 # Check whether --enable-gui or --disable-gui was given.
2427if test "${enable_gui+set}" = set; then
2428 enableval="$enable_gui"
2429
2430 if test "$enableval" = yes; then
2431 ac_cv_use_gui='wxUSE_GUI=yes'
2432 else
2433 ac_cv_use_gui='wxUSE_GUI=no'
2434 fi
2435
2436else
2437
2438 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2446
2447fi;
2448
2449 eval "$ac_cv_use_gui"
2450 if test "$no_cache" != 1; then
2451 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2452 fi
2453
2454 if test "$wxUSE_GUI" = yes; then
2455 echo "$as_me:$LINENO: result: yes" >&5
2456echo "${ECHO_T}yes" >&6
2457 else
2458 echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6
2460 fi
2461
2462
2463 enablestring=
2464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2465echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2466 no_cache=0
2467 # Check whether --enable-monolithic or --disable-monolithic was given.
2468if test "${enable_monolithic+set}" = set; then
2469 enableval="$enable_monolithic"
2470
2471 if test "$enableval" = yes; then
2472 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2473 else
2474 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2475 fi
2476
2477else
2478
2479 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2480 if test "x$LINE" != x ; then
2481 eval "DEFAULT_$LINE"
2482 else
2483 no_cache=1
2484 fi
2485
2486 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2487
2488fi;
2489
2490 eval "$ac_cv_use_monolithic"
2491 if test "$no_cache" != 1; then
2492 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2493 fi
2494
2495 if test "$wxUSE_MONOLITHIC" = yes; then
2496 echo "$as_me:$LINENO: result: yes" >&5
2497echo "${ECHO_T}yes" >&6
2498 else
2499 echo "$as_me:$LINENO: result: no" >&5
2500echo "${ECHO_T}no" >&6
2501 fi
2502
2503
2504 enablestring=
2505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2506echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2507 no_cache=0
2508 # Check whether --enable-plugins or --disable-plugins was given.
2509if test "${enable_plugins+set}" = set; then
2510 enableval="$enable_plugins"
2511
2512 if test "$enableval" = yes; then
2513 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2514 else
2515 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2516 fi
2517
2518else
2519
2520 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2521 if test "x$LINE" != x ; then
2522 eval "DEFAULT_$LINE"
2523 else
2524 no_cache=1
2525 fi
2526
2527 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2528
2529fi;
2530
2531 eval "$ac_cv_use_plugins"
2532 if test "$no_cache" != 1; then
2533 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2534 fi
2535
2536 if test "$wxUSE_PLUGINS" = yes; then
2537 echo "$as_me:$LINENO: result: yes" >&5
2538echo "${ECHO_T}yes" >&6
2539 else
2540 echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6
2542 fi
2543
2544
2545if test "$wxUSE_GUI" = "yes"; then
2546
2547
2548 enablestring=
2549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2550echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2551 no_cache=0
2552 # Check whether --enable-universal or --disable-universal was given.
2553if test "${enable_universal+set}" = set; then
2554 enableval="$enable_universal"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2558 else
2559 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2560 fi
2561
2562else
2563
2564 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2572
2573fi;
2574
2575 eval "$ac_cv_use_universal"
2576 if test "$no_cache" != 1; then
2577 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2578 fi
2579
2580 if test "$wxUSE_UNIVERSAL" = yes; then
2581 echo "$as_me:$LINENO: result: yes" >&5
2582echo "${ECHO_T}yes" >&6
2583 else
2584 echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6
2586 fi
2587
2588
2589# Check whether --with-gtk or --without-gtk was given.
2590if test "${with_gtk+set}" = set; then
2591 withval="$with_gtk"
2592 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2593fi;
2594
2595# Check whether --with-motif or --without-motif was given.
2596if test "${with_motif+set}" = set; then
2597 withval="$with_motif"
2598 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2599fi;
2600
2601# Check whether --with-mac or --without-mac was given.
2602if test "${with_mac+set}" = set; then
2603 withval="$with_mac"
c228d3a4 2604 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2605fi;
2606
2607# Check whether --with-cocoa or --without-cocoa was given.
2608if test "${with_cocoa+set}" = set; then
2609 withval="$with_cocoa"
c228d3a4 2610 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2611fi;
2612
2613# Check whether --with-wine or --without-wine was given.
2614if test "${with_wine+set}" = set; then
2615 withval="$with_wine"
2616 wxUSE_WINE="$withval" CACHE_WINE=1
2617fi;
2618
2619# Check whether --with-msw or --without-msw was given.
2620if test "${with_msw+set}" = set; then
2621 withval="$with_msw"
2622 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-pm or --without-pm was given.
2626if test "${with_pm+set}" = set; then
2627 withval="$with_pm"
2628 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631# Check whether --with-mgl or --without-mgl was given.
2632if test "${with_mgl+set}" = set; then
2633 withval="$with_mgl"
2634 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2635fi;
2636
2637# Check whether --with-microwin or --without-microwin was given.
2638if test "${with_microwin+set}" = set; then
2639 withval="$with_microwin"
2640 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2641fi;
2642
2643# Check whether --with-x11 or --without-x11 was given.
2644if test "${with_x11+set}" = set; then
2645 withval="$with_x11"
2646 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649 enablestring=
2650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2651echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2652 no_cache=0
2653 # Check whether --enable-nanox or --disable-nanox was given.
2654if test "${enable_nanox+set}" = set; then
2655 enableval="$enable_nanox"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_nanox='wxUSE_NANOX=yes'
2659 else
2660 ac_cv_use_nanox='wxUSE_NANOX=no'
2661 fi
2662
2663else
2664
2665 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2673
2674fi;
2675
2676 eval "$ac_cv_use_nanox"
2677 if test "$no_cache" != 1; then
2678 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2679 fi
2680
2681 if test "$wxUSE_NANOX" = yes; then
2682 echo "$as_me:$LINENO: result: yes" >&5
2683echo "${ECHO_T}yes" >&6
2684 else
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
2687 fi
2688
2689
2690
2691 enablestring=
2692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2693echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2694 no_cache=0
2695 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2696if test "${enable_gtk2+set}" = set; then
2697 enableval="$enable_gtk2"
2698
2699 if test "$enableval" = yes; then
2700 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2701 else
2702 ac_cv_use_gtk2='wxUSE_GTK2=no'
2703 fi
2704
2705else
2706
2707 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2715
2716fi;
2717
2718 eval "$ac_cv_use_gtk2"
2719 if test "$no_cache" != 1; then
2720 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2721 fi
2722
2723 if test "$wxUSE_GTK2" = yes; then
2724 echo "$as_me:$LINENO: result: yes" >&5
2725echo "${ECHO_T}yes" >&6
2726 else
2727 echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6
2729 fi
2730
2731
2732 enablestring=
2733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2734echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2735 no_cache=0
2736 # Check whether --enable-gpe or --disable-gpe was given.
2737if test "${enable_gpe+set}" = set; then
2738 enableval="$enable_gpe"
2739
2740 if test "$enableval" = yes; then
2741 ac_cv_use_gpe='wxUSE_GPE=yes'
2742 else
2743 ac_cv_use_gpe='wxUSE_GPE=no'
2744 fi
2745
2746else
2747
2748 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2756
2757fi;
2758
2759 eval "$ac_cv_use_gpe"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_GPE" = yes; then
2765 echo "$as_me:$LINENO: result: yes" >&5
2766echo "${ECHO_T}yes" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6
2770 fi
2771
2772
2773
2774 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2775echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2776 no_cache=0
2777
2778# Check whether --with-libpng or --without-libpng was given.
2779if test "${with_libpng+set}" = set; then
2780 withval="$with_libpng"
2781
2782 if test "$withval" = yes; then
2783 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2784 elif test "$withval" = no; then
2785 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2786 elif test "$withval" = sys; then
2787 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2788 elif test "$withval" = builtin; then
2789 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2790 else
2791 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2792echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2793 { (exit 1); exit 1; }; }
2794 fi
2795
2796else
2797
2798 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2806
2807fi;
2808
2809 eval "$ac_cv_use_libpng"
2810 if test "$no_cache" != 1; then
2811 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2812 fi
2813
2814 if test "$wxUSE_LIBPNG" = yes; then
2815 echo "$as_me:$LINENO: result: yes" >&5
2816echo "${ECHO_T}yes" >&6
2817 elif test "$wxUSE_LIBPNG" = no; then
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
2820 elif test "$wxUSE_LIBPNG" = sys; then
2821 echo "$as_me:$LINENO: result: system version" >&5
2822echo "${ECHO_T}system version" >&6
2823 elif test "$wxUSE_LIBPNG" = builtin; then
2824 echo "$as_me:$LINENO: result: builtin version" >&5
2825echo "${ECHO_T}builtin version" >&6
2826 else
2827 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2828echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2829 { (exit 1); exit 1; }; }
2830 fi
2831
2832
2833 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2834echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2835 no_cache=0
2836
2837# Check whether --with-libjpeg or --without-libjpeg was given.
2838if test "${with_libjpeg+set}" = set; then
2839 withval="$with_libjpeg"
2840
2841 if test "$withval" = yes; then
2842 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2843 elif test "$withval" = no; then
2844 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2845 elif test "$withval" = sys; then
2846 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2847 elif test "$withval" = builtin; then
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2849 else
2850 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2851echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2852 { (exit 1); exit 1; }; }
2853 fi
2854
2855else
2856
2857 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2865
2866fi;
2867
2868 eval "$ac_cv_use_libjpeg"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_LIBJPEG" = yes; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875echo "${ECHO_T}yes" >&6
2876 elif test "$wxUSE_LIBJPEG" = no; then
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879 elif test "$wxUSE_LIBJPEG" = sys; then
2880 echo "$as_me:$LINENO: result: system version" >&5
2881echo "${ECHO_T}system version" >&6
2882 elif test "$wxUSE_LIBJPEG" = builtin; then
2883 echo "$as_me:$LINENO: result: builtin version" >&5
2884echo "${ECHO_T}builtin version" >&6
2885 else
2886 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2887echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2888 { (exit 1); exit 1; }; }
2889 fi
2890
2891
2892 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2893echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2894 no_cache=0
2895
2896# Check whether --with-libtiff or --without-libtiff was given.
2897if test "${with_libtiff+set}" = set; then
2898 withval="$with_libtiff"
2899
2900 if test "$withval" = yes; then
2901 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2902 elif test "$withval" = no; then
2903 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2904 elif test "$withval" = sys; then
2905 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2906 elif test "$withval" = builtin; then
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2908 else
2909 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2910echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2911 { (exit 1); exit 1; }; }
2912 fi
2913
2914else
2915
2916 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2917 if test "x$LINE" != x ; then
2918 eval "DEFAULT_$LINE"
2919 else
2920 no_cache=1
2921 fi
2922
2923 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2924
2925fi;
2926
2927 eval "$ac_cv_use_libtiff"
2928 if test "$no_cache" != 1; then
2929 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2930 fi
2931
2932 if test "$wxUSE_LIBTIFF" = yes; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
2935 elif test "$wxUSE_LIBTIFF" = no; then
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
2938 elif test "$wxUSE_LIBTIFF" = sys; then
2939 echo "$as_me:$LINENO: result: system version" >&5
2940echo "${ECHO_T}system version" >&6
2941 elif test "$wxUSE_LIBTIFF" = builtin; then
2942 echo "$as_me:$LINENO: result: builtin version" >&5
2943echo "${ECHO_T}builtin version" >&6
2944 else
2945 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2946echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2947 { (exit 1); exit 1; }; }
2948 fi
2949
2950
2951 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2952echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2953 no_cache=0
2954
2955# Check whether --with-libxpm or --without-libxpm was given.
2956if test "${with_libxpm+set}" = set; then
2957 withval="$with_libxpm"
2958
2959 if test "$withval" = yes; then
2960 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2961 elif test "$withval" = no; then
2962 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2963 elif test "$withval" = sys; then
2964 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2965 elif test "$withval" = builtin; then
2966 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2967 else
2968 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2969echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2970 { (exit 1); exit 1; }; }
2971 fi
2972
2973else
2974
2975 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2983
2984fi;
2985
2986 eval "$ac_cv_use_libxpm"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_LIBXPM" = yes; then
2992 echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6
2994 elif test "$wxUSE_LIBXPM" = no; then
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997 elif test "$wxUSE_LIBXPM" = sys; then
2998 echo "$as_me:$LINENO: result: system version" >&5
2999echo "${ECHO_T}system version" >&6
3000 elif test "$wxUSE_LIBXPM" = builtin; then
3001 echo "$as_me:$LINENO: result: builtin version" >&5
3002echo "${ECHO_T}builtin version" >&6
3003 else
3004 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3005echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008
3009
3010 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3011echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3012 no_cache=0
3013
3014# Check whether --with-libmspack or --without-libmspack was given.
3015if test "${with_libmspack+set}" = set; then
3016 withval="$with_libmspack"
3017
3018 if test "$withval" = yes; then
3019 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3020 else
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3022 fi
3023
3024else
3025
3026 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3034
3035fi;
3036
3037 eval "$ac_cv_use_libmspack"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_LIBMSPACK" = yes; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044echo "${ECHO_T}yes" >&6
3045 else
3046 echo "$as_me:$LINENO: result: no" >&5
3047echo "${ECHO_T}no" >&6
3048 fi
3049
3050
3051 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3052echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3053 no_cache=0
3054
3055# Check whether --with-sdl or --without-sdl was given.
3056if test "${with_sdl+set}" = set; then
3057 withval="$with_sdl"
3058
3059 if test "$withval" = yes; then
3060 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3061 else
3062 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3063 fi
3064
3065else
3066
3067 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3068 if test "x$LINE" != x ; then
3069 eval "DEFAULT_$LINE"
3070 else
3071 no_cache=1
3072 fi
3073
3074 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3075
3076fi;
3077
3078 eval "$ac_cv_use_sdl"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_LIBSDL" = yes; then
3084 echo "$as_me:$LINENO: result: yes" >&5
3085echo "${ECHO_T}yes" >&6
3086 else
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
3089 fi
3090
3091
d1c38808
VZ
3092 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3093echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3094 no_cache=0
3095
3096# Check whether --with-gnomeprint or --without-gnomeprint was given.
3097if test "${with_gnomeprint+set}" = set; then
3098 withval="$with_gnomeprint"
3099
3100 if test "$withval" = yes; then
3101 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3102 else
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3104 fi
3105
3106else
3107
3108 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3109 if test "x$LINE" != x ; then
3110 eval "DEFAULT_$LINE"
3111 else
3112 no_cache=1
3113 fi
3114
3115 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3116
3117fi;
3118
3119 eval "$ac_cv_use_gnomeprint"
3120 if test "$no_cache" != 1; then
3121 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3122 fi
3123
3124 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3125 echo "$as_me:$LINENO: result: yes" >&5
3126echo "${ECHO_T}yes" >&6
3127 else
3128 echo "$as_me:$LINENO: result: no" >&5
3129echo "${ECHO_T}no" >&6
3130 fi
3131
3132
a848cd7e
SC
3133 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3134echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3135 no_cache=0
3136
3137# Check whether --with-opengl or --without-opengl was given.
3138if test "${with_opengl+set}" = set; then
3139 withval="$with_opengl"
3140
3141 if test "$withval" = yes; then
3142 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3143 else
3144 ac_cv_use_opengl='wxUSE_OPENGL=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3157
3158fi;
3159
3160 eval "$ac_cv_use_opengl"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_OPENGL" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 fi
3172
3173
3174fi
3175
3176
3177 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3178echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3179 no_cache=0
3180
3181# Check whether --with-dmalloc or --without-dmalloc was given.
3182if test "${with_dmalloc+set}" = set; then
3183 withval="$with_dmalloc"
3184
3185 if test "$withval" = yes; then
3186 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3187 else
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3189 fi
3190
3191else
3192
3193 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3194 if test "x$LINE" != x ; then
3195 eval "DEFAULT_$LINE"
3196 else
3197 no_cache=1
3198 fi
3199
3200 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3201
3202fi;
3203
3204 eval "$ac_cv_use_dmalloc"
3205 if test "$no_cache" != 1; then
3206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3207 fi
3208
3209 if test "$wxUSE_DMALLOC" = yes; then
3210 echo "$as_me:$LINENO: result: yes" >&5
3211echo "${ECHO_T}yes" >&6
3212 else
3213 echo "$as_me:$LINENO: result: no" >&5
3214echo "${ECHO_T}no" >&6
3215 fi
3216
3217
3218 echo "$as_me:$LINENO: checking for --with-regex" >&5
3219echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3220 no_cache=0
3221
3222# Check whether --with-regex or --without-regex was given.
3223if test "${with_regex+set}" = set; then
3224 withval="$with_regex"
3225
3226 if test "$withval" = yes; then
3227 ac_cv_use_regex='wxUSE_REGEX=yes'
3228 elif test "$withval" = no; then
3229 ac_cv_use_regex='wxUSE_REGEX=no'
3230 elif test "$withval" = sys; then
3231 ac_cv_use_regex='wxUSE_REGEX=sys'
3232 elif test "$withval" = builtin; then
3233 ac_cv_use_regex='wxUSE_REGEX=builtin'
3234 else
3235 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3236echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3237 { (exit 1); exit 1; }; }
3238 fi
3239
3240else
3241
3242 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3250
3251fi;
3252
3253 eval "$ac_cv_use_regex"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_REGEX" = yes; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260echo "${ECHO_T}yes" >&6
3261 elif test "$wxUSE_REGEX" = no; then
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264 elif test "$wxUSE_REGEX" = sys; then
3265 echo "$as_me:$LINENO: result: system version" >&5
3266echo "${ECHO_T}system version" >&6
3267 elif test "$wxUSE_REGEX" = builtin; then
3268 echo "$as_me:$LINENO: result: builtin version" >&5
3269echo "${ECHO_T}builtin version" >&6
3270 else
3271 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3272echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3273 { (exit 1); exit 1; }; }
3274 fi
3275
3276
3277 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3278echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3279 no_cache=0
3280
3281# Check whether --with-zlib or --without-zlib was given.
3282if test "${with_zlib+set}" = set; then
3283 withval="$with_zlib"
3284
3285 if test "$withval" = yes; then
3286 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3287 elif test "$withval" = no; then
3288 ac_cv_use_zlib='wxUSE_ZLIB=no'
3289 elif test "$withval" = sys; then
3290 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3291 elif test "$withval" = builtin; then
3292 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3293 else
3294 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3295echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3296 { (exit 1); exit 1; }; }
3297 fi
3298
3299else
3300
3301 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3302 if test "x$LINE" != x ; then
3303 eval "DEFAULT_$LINE"
3304 else
3305 no_cache=1
3306 fi
3307
3308 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3309
3310fi;
3311
3312 eval "$ac_cv_use_zlib"
3313 if test "$no_cache" != 1; then
3314 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3315 fi
3316
3317 if test "$wxUSE_ZLIB" = yes; then
3318 echo "$as_me:$LINENO: result: yes" >&5
3319echo "${ECHO_T}yes" >&6
3320 elif test "$wxUSE_ZLIB" = no; then
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323 elif test "$wxUSE_ZLIB" = sys; then
3324 echo "$as_me:$LINENO: result: system version" >&5
3325echo "${ECHO_T}system version" >&6
3326 elif test "$wxUSE_ZLIB" = builtin; then
3327 echo "$as_me:$LINENO: result: builtin version" >&5
3328echo "${ECHO_T}builtin version" >&6
3329 else
3330 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3331echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3332 { (exit 1); exit 1; }; }
3333 fi
3334
3335
3336 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3337echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3338 no_cache=0
3339
3340# Check whether --with-odbc or --without-odbc was given.
3341if test "${with_odbc+set}" = set; then
3342 withval="$with_odbc"
3343
3344 if test "$withval" = yes; then
3345 ac_cv_use_odbc='wxUSE_ODBC=yes'
3346 elif test "$withval" = no; then
3347 ac_cv_use_odbc='wxUSE_ODBC=no'
3348 elif test "$withval" = sys; then
3349 ac_cv_use_odbc='wxUSE_ODBC=sys'
3350 elif test "$withval" = builtin; then
3351 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3352 else
3353 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3354echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3355 { (exit 1); exit 1; }; }
3356 fi
3357
3358else
3359
3360 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3361 if test "x$LINE" != x ; then
3362 eval "DEFAULT_$LINE"
3363 else
3364 no_cache=1
3365 fi
3366
3367 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3368
3369fi;
3370
3371 eval "$ac_cv_use_odbc"
3372 if test "$no_cache" != 1; then
3373 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3374 fi
3375
3376 if test "$wxUSE_ODBC" = yes; then
3377 echo "$as_me:$LINENO: result: yes" >&5
3378echo "${ECHO_T}yes" >&6
3379 elif test "$wxUSE_ODBC" = no; then
3380 echo "$as_me:$LINENO: result: no" >&5
3381echo "${ECHO_T}no" >&6
3382 elif test "$wxUSE_ODBC" = sys; then
3383 echo "$as_me:$LINENO: result: system version" >&5
3384echo "${ECHO_T}system version" >&6
3385 elif test "$wxUSE_ODBC" = builtin; then
3386 echo "$as_me:$LINENO: result: builtin version" >&5
3387echo "${ECHO_T}builtin version" >&6
3388 else
3389 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3390echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3391 { (exit 1); exit 1; }; }
3392 fi
3393
3394
3395 echo "$as_me:$LINENO: checking for --with-expat" >&5
3396echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3397 no_cache=0
3398
3399# Check whether --with-expat or --without-expat was given.
3400if test "${with_expat+set}" = set; then
3401 withval="$with_expat"
3402
3403 if test "$withval" = yes; then
3404 ac_cv_use_expat='wxUSE_EXPAT=yes'
3405 elif test "$withval" = no; then
3406 ac_cv_use_expat='wxUSE_EXPAT=no'
3407 elif test "$withval" = sys; then
3408 ac_cv_use_expat='wxUSE_EXPAT=sys'
3409 elif test "$withval" = builtin; then
3410 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3411 else
3412 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3413echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3414 { (exit 1); exit 1; }; }
3415 fi
3416
3417else
3418
3419 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3427
3428fi;
3429
3430 eval "$ac_cv_use_expat"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_EXPAT" = yes; then
3436 echo "$as_me:$LINENO: result: yes" >&5
3437echo "${ECHO_T}yes" >&6
3438 elif test "$wxUSE_EXPAT" = no; then
3439 echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441 elif test "$wxUSE_EXPAT" = sys; then
3442 echo "$as_me:$LINENO: result: system version" >&5
3443echo "${ECHO_T}system version" >&6
3444 elif test "$wxUSE_EXPAT" = builtin; then
3445 echo "$as_me:$LINENO: result: builtin version" >&5
3446echo "${ECHO_T}builtin version" >&6
3447 else
3448 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3449echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3450 { (exit 1); exit 1; }; }
3451 fi
3452
3453
3454
3455
3456 enablestring=
3457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3458echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3459 no_cache=0
3460 # Check whether --enable-shared or --disable-shared was given.
3461if test "${enable_shared+set}" = set; then
3462 enableval="$enable_shared"
3463
3464 if test "$enableval" = yes; then
3465 ac_cv_use_shared='wxUSE_SHARED=yes'
3466 else
3467 ac_cv_use_shared='wxUSE_SHARED=no'
3468 fi
3469
3470else
3471
3472 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3473 if test "x$LINE" != x ; then
3474 eval "DEFAULT_$LINE"
3475 else
3476 no_cache=1
3477 fi
3478
3479 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3480
3481fi;
3482
3483 eval "$ac_cv_use_shared"
3484 if test "$no_cache" != 1; then
3485 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3486 fi
3487
3488 if test "$wxUSE_SHARED" = yes; then
3489 echo "$as_me:$LINENO: result: yes" >&5
3490echo "${ECHO_T}yes" >&6
3491 else
3492 echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494 fi
3495
3496
3497 enablestring=
3498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3499echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3500 no_cache=0
3501 # Check whether --enable-optimise or --disable-optimise was given.
3502if test "${enable_optimise+set}" = set; then
3503 enableval="$enable_optimise"
3504
3505 if test "$enableval" = yes; then
3506 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3507 else
3508 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3509 fi
3510
3511else
3512
3513 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3514 if test "x$LINE" != x ; then
3515 eval "DEFAULT_$LINE"
3516 else
3517 no_cache=1
3518 fi
3519
3520 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3521
3522fi;
3523
3524 eval "$ac_cv_use_optimise"
3525 if test "$no_cache" != 1; then
3526 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3527 fi
3528
3529 if test "$wxUSE_OPTIMISE" = yes; then
3530 echo "$as_me:$LINENO: result: yes" >&5
3531echo "${ECHO_T}yes" >&6
3532 else
3533 echo "$as_me:$LINENO: result: no" >&5
3534echo "${ECHO_T}no" >&6
3535 fi
3536
3537
3538 enablestring=
3539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3540echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3541 no_cache=0
3542 # Check whether --enable-debug or --disable-debug was given.
3543if test "${enable_debug+set}" = set; then
3544 enableval="$enable_debug"
3545
3546 if test "$enableval" = yes; then
3547 ac_cv_use_debug='wxUSE_DEBUG=yes'
3548 else
3549 ac_cv_use_debug='wxUSE_DEBUG=no'
3550 fi
3551
3552else
3553
3554 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3555 if test "x$LINE" != x ; then
3556 eval "DEFAULT_$LINE"
3557 else
3558 no_cache=1
3559 fi
3560
3561 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3562
3563fi;
3564
3565 eval "$ac_cv_use_debug"
3566 if test "$no_cache" != 1; then
3567 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3568 fi
3569
3570 if test "$wxUSE_DEBUG" = yes; then
3571 echo "$as_me:$LINENO: result: yes" >&5
3572echo "${ECHO_T}yes" >&6
3573 else
3574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
3576 fi
3577
3578
3579 enablestring=
3580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3581echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3582 no_cache=0
3583 # Check whether --enable-stl or --disable-stl was given.
3584if test "${enable_stl+set}" = set; then
3585 enableval="$enable_stl"
3586
3587 if test "$enableval" = yes; then
3588 ac_cv_use_stl='wxUSE_STL=yes'
3589 else
3590 ac_cv_use_stl='wxUSE_STL=no'
3591 fi
3592
3593else
3594
3595 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3596 if test "x$LINE" != x ; then
3597 eval "DEFAULT_$LINE"
3598 else
3599 no_cache=1
3600 fi
3601
3602 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3603
3604fi;
3605
3606 eval "$ac_cv_use_stl"
3607 if test "$no_cache" != 1; then
3608 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3609 fi
3610
3611 if test "$wxUSE_STL" = yes; then
3612 echo "$as_me:$LINENO: result: yes" >&5
3613echo "${ECHO_T}yes" >&6
3614 else
3615 echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6
3617 fi
3618
3619if test "$USE_OS2" = "1"; then
3620
3621 enablestring=
3622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3623echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3624 no_cache=0
3625 # Check whether --enable-omf or --disable-omf was given.
3626if test "${enable_omf+set}" = set; then
3627 enableval="$enable_omf"
3628
3629 if test "$enableval" = yes; then
3630 ac_cv_use_omf='wxUSE_OMF=yes'
3631 else
3632 ac_cv_use_omf='wxUSE_OMF=no'
3633 fi
3634
3635else
3636
3637 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3638 if test "x$LINE" != x ; then
3639 eval "DEFAULT_$LINE"
3640 else
3641 no_cache=1
3642 fi
3643
3644 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3645
3646fi;
3647
3648 eval "$ac_cv_use_omf"
3649 if test "$no_cache" != 1; then
3650 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3651 fi
3652
3653 if test "$wxUSE_OMF" = yes; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no" >&5
3658echo "${ECHO_T}no" >&6
3659 fi
3660
3661fi
3662
3663if test "$wxUSE_DEBUG" = "yes"; then
3664 DEFAULT_wxUSE_DEBUG_FLAG=yes
3665 DEFAULT_wxUSE_DEBUG_INFO=yes
3666 BUILD=debug
3667elif test "$wxUSE_DEBUG" = "no"; then
3668 DEFAULT_wxUSE_DEBUG_FLAG=no
3669 DEFAULT_wxUSE_DEBUG_INFO=no
3670 BUILD=release
3671fi
3672
3673
3674 enablestring=
3675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3676echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3677 no_cache=0
3678 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3679if test "${enable_debug_flag+set}" = set; then
3680 enableval="$enable_debug_flag"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3684 else
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3698
3699fi;
3700
3701 eval "$ac_cv_use_debug_flag"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_DEBUG_FLAG" = yes; then
3707 echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712 fi
3713
3714
3715 enablestring=
3716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3717echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3718 no_cache=0
3719 # Check whether --enable-debug_info or --disable-debug_info was given.
3720if test "${enable_debug_info+set}" = set; then
3721 enableval="$enable_debug_info"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3725 else
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3739
3740fi;
3741
3742 eval "$ac_cv_use_debug_info"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DEBUG_INFO" = yes; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752echo "${ECHO_T}no" >&6
3753 fi
3754
3755
3756 enablestring=
3757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3758echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3759 no_cache=0
3760 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3761if test "${enable_debug_gdb+set}" = set; then
3762 enableval="$enable_debug_gdb"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3766 else
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3768 fi
3769
3770else
3771
3772 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3780
3781fi;
3782
3783 eval "$ac_cv_use_debug_gdb"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_DEBUG_GDB" = yes; then
3789 echo "$as_me:$LINENO: result: yes" >&5
3790echo "${ECHO_T}yes" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794 fi
3795
3796
3797 enablestring=
3798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3799echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3800 no_cache=0
3801 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3802if test "${enable_debug_cntxt+set}" = set; then
3803 enableval="$enable_debug_cntxt"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3807 else
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3809 fi
3810
3811else
3812
3813 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3821
3822fi;
3823
3824 eval "$ac_cv_use_debug_cntxt"
3825 if test "$no_cache" != 1; then
3826 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3827 fi
3828
3829 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831echo "${ECHO_T}yes" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834echo "${ECHO_T}no" >&6
3835 fi
3836
3837
3838 enablestring=
3839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3840echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3841 no_cache=0
3842 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3843if test "${enable_mem_tracing+set}" = set; then
3844 enableval="$enable_mem_tracing"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3848 else
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3850 fi
3851
3852else
3853
3854 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3862
3863fi;
3864
3865 eval "$ac_cv_use_mem_tracing"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_MEM_TRACING" = yes; then
3871 echo "$as_me:$LINENO: result: yes" >&5
3872echo "${ECHO_T}yes" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876 fi
3877
3878
3879 enablestring=
3880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3881echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3882 no_cache=0
3883 # Check whether --enable-profile or --disable-profile was given.
3884if test "${enable_profile+set}" = set; then
3885 enableval="$enable_profile"
3886
3887 if test "$enableval" = yes; then
3888 ac_cv_use_profile='wxUSE_PROFILE=yes'
3889 else
3890 ac_cv_use_profile='wxUSE_PROFILE=no'
3891 fi
3892
3893else
3894
3895 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3903
3904fi;
3905
3906 eval "$ac_cv_use_profile"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_PROFILE" = yes; then
3912 echo "$as_me:$LINENO: result: yes" >&5
3913echo "${ECHO_T}yes" >&6
3914 else
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
3917 fi
3918
3919
3920 enablestring=
3921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3922echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3923 no_cache=0
3924 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3925if test "${enable_no_rtti+set}" = set; then
3926 enableval="$enable_no_rtti"
3927
3928 if test "$enableval" = yes; then
3929 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3930 else
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3932 fi
3933
3934else
3935
3936 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3944
3945fi;
3946
3947 eval "$ac_cv_use_no_rtti"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_NO_RTTI" = yes; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954echo "${ECHO_T}yes" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
3958 fi
3959
3960
3961 enablestring=
3962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3963echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3964 no_cache=0
3965 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3966if test "${enable_no_exceptions+set}" = set; then
3967 enableval="$enable_no_exceptions"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3971 else
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3973 fi
3974
3975else
3976
3977 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3985
3986fi;
3987
3988 eval "$ac_cv_use_no_exceptions"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3994 echo "$as_me:$LINENO: result: yes" >&5
3995echo "${ECHO_T}yes" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998echo "${ECHO_T}no" >&6
3999 fi
4000
4001
4002 enablestring=
4003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4004echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4005 no_cache=0
4006 # Check whether --enable-permissive or --disable-permissive was given.
4007if test "${enable_permissive+set}" = set; then
4008 enableval="$enable_permissive"
4009
4010 if test "$enableval" = yes; then
4011 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4012 else
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4014 fi
4015
4016else
4017
4018 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4019 if test "x$LINE" != x ; then
4020 eval "DEFAULT_$LINE"
4021 else
4022 no_cache=1
4023 fi
4024
4025 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4026
4027fi;
4028
4029 eval "$ac_cv_use_permissive"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_PERMISSIVE" = yes; then
4035 echo "$as_me:$LINENO: result: yes" >&5
4036echo "${ECHO_T}yes" >&6
4037 else
4038 echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6
4040 fi
4041
4042
4043 enablestring=
4044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4045echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4046 no_cache=0
4047 # Check whether --enable-no_deps or --disable-no_deps was given.
4048if test "${enable_no_deps+set}" = set; then
4049 enableval="$enable_no_deps"
4050
4051 if test "$enableval" = yes; then
4052 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4053 else
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4055 fi
4056
4057else
4058
4059 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4067
4068fi;
4069
4070 eval "$ac_cv_use_no_deps"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_NO_DEPS" = yes; then
4076 echo "$as_me:$LINENO: result: yes" >&5
4077echo "${ECHO_T}yes" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080echo "${ECHO_T}no" >&6
4081 fi
4082
4083
4084
4085 enablestring=
4086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4087echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4088 no_cache=0
4089 # Check whether --enable-compat22 or --disable-compat22 was given.
4090if test "${enable_compat22+set}" = set; then
4091 enableval="$enable_compat22"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4095 else
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4097 fi
4098
4099else
4100
4101 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4109
4110fi;
4111
4112 eval "$ac_cv_use_compat22"
4113 if test "$no_cache" != 1; then
4114 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4115 fi
4116
4117 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4118 echo "$as_me:$LINENO: result: yes" >&5
4119echo "${ECHO_T}yes" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123 fi
4124
4125
4126 enablestring=disable
4127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4128echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4129 no_cache=0
4130 # Check whether --enable-compat24 or --disable-compat24 was given.
4131if test "${enable_compat24+set}" = set; then
4132 enableval="$enable_compat24"
4133
4134 if test "$enableval" = yes; then
4135 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4136 else
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4138 fi
4139
4140else
4141
4142 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
4149 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4150
4151fi;
4152
4153 eval "$ac_cv_use_compat24"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4159 echo "$as_me:$LINENO: result: yes" >&5
4160echo "${ECHO_T}yes" >&6
4161 else
4162 echo "$as_me:$LINENO: result: no" >&5
4163echo "${ECHO_T}no" >&6
4164 fi
4165
4166
ffa0583f
RL
4167
4168 enablestring=
4169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4170echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4171 no_cache=0
4172 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4173if test "${enable_rpath+set}" = set; then
4174 enableval="$enable_rpath"
ffa0583f
RL
4175
4176 if test "$enableval" = yes; then
4177 ac_cv_use_rpath='wxUSE_RPATH=yes'
4178 else
4179 ac_cv_use_rpath='wxUSE_RPATH=no'
4180 fi
4181
4182else
4183
4184 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4185 if test "x$LINE" != x ; then
4186 eval "DEFAULT_$LINE"
4187 else
4188 no_cache=1
4189 fi
4190
4191 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4192
a848cd7e
SC
4193fi;
4194
ffa0583f
RL
4195 eval "$ac_cv_use_rpath"
4196 if test "$no_cache" != 1; then
4197 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4198 fi
4199
4200 if test "$wxUSE_RPATH" = yes; then
4201 echo "$as_me:$LINENO: result: yes" >&5
4202echo "${ECHO_T}yes" >&6
4203 else
4204 echo "$as_me:$LINENO: result: no" >&5
4205echo "${ECHO_T}no" >&6
4206 fi
4207
a848cd7e
SC
4208
4209
4210
4211
4212 enablestring=
4213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4214echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4215 no_cache=0
4216 # Check whether --enable-intl or --disable-intl was given.
4217if test "${enable_intl+set}" = set; then
4218 enableval="$enable_intl"
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_intl='wxUSE_INTL=yes'
4222 else
4223 ac_cv_use_intl='wxUSE_INTL=no'
4224 fi
4225
4226else
4227
4228 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4236
4237fi;
4238
4239 eval "$ac_cv_use_intl"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_INTL" = yes; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247 else
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250 fi
4251
4252
4253 enablestring=
4254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4255echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4256 no_cache=0
4257 # Check whether --enable-config or --disable-config was given.
4258if test "${enable_config+set}" = set; then
4259 enableval="$enable_config"
4260
4261 if test "$enableval" = yes; then
4262 ac_cv_use_config='wxUSE_CONFIG=yes'
4263 else
4264 ac_cv_use_config='wxUSE_CONFIG=no'
4265 fi
4266
4267else
4268
4269 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4277
4278fi;
4279
4280 eval "$ac_cv_use_config"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_CONFIG" = yes; then
4286 echo "$as_me:$LINENO: result: yes" >&5
4287echo "${ECHO_T}yes" >&6
4288 else
4289 echo "$as_me:$LINENO: result: no" >&5
4290echo "${ECHO_T}no" >&6
4291 fi
4292
4293
4294
4295 enablestring=
4296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4297echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4298 no_cache=0
4299 # Check whether --enable-protocols or --disable-protocols was given.
4300if test "${enable_protocols+set}" = set; then
4301 enableval="$enable_protocols"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4305 else
4306 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4307 fi
4308
4309else
4310
4311 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4319
4320fi;
4321
4322 eval "$ac_cv_use_protocols"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_PROTOCOL" = yes; then
4328 echo "$as_me:$LINENO: result: yes" >&5
4329echo "${ECHO_T}yes" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333 fi
4334
4335
4336 enablestring=
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4338echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4339 no_cache=0
4340 # Check whether --enable-ftp or --disable-ftp was given.
4341if test "${enable_ftp+set}" = set; then
4342 enableval="$enable_ftp"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4346 else
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4360
4361fi;
4362
4363 eval "$ac_cv_use_ftp"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374 fi
4375
4376
4377 enablestring=
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4379echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4380 no_cache=0
4381 # Check whether --enable-http or --disable-http was given.
4382if test "${enable_http+set}" = set; then
4383 enableval="$enable_http"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4387 else
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4401
4402fi;
4403
4404 eval "$ac_cv_use_http"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411echo "${ECHO_T}yes" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415 fi
4416
4417
4418 enablestring=
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4421 no_cache=0
4422 # Check whether --enable-fileproto or --disable-fileproto was given.
4423if test "${enable_fileproto+set}" = set; then
4424 enableval="$enable_fileproto"
4425
4426 if test "$enableval" = yes; then
4427 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4428 else
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4430 fi
4431
4432else
4433
4434 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
4441 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4442
4443fi;
4444
4445 eval "$ac_cv_use_fileproto"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452echo "${ECHO_T}yes" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
4456 fi
4457
4458
4459 enablestring=
4460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4461echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4462 no_cache=0
4463 # Check whether --enable-sockets or --disable-sockets was given.
4464if test "${enable_sockets+set}" = set; then
4465 enableval="$enable_sockets"
4466
4467 if test "$enableval" = yes; then
4468 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4469 else
4470 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4471 fi
4472
4473else
4474
4475 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4483
4484fi;
4485
4486 eval "$ac_cv_use_sockets"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SOCKETS" = yes; then
4492 echo "$as_me:$LINENO: result: yes" >&5
4493echo "${ECHO_T}yes" >&6
4494 else
4495 echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
4497 fi
4498
4499
4500 enablestring=
4501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4502echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4503 no_cache=0
4504 # Check whether --enable-ole or --disable-ole was given.
4505if test "${enable_ole+set}" = set; then
4506 enableval="$enable_ole"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_ole='wxUSE_OLE=yes'
4510 else
4511 ac_cv_use_ole='wxUSE_OLE=no'
4512 fi
4513
4514else
4515
4516 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4524
4525fi;
4526
4527 eval "$ac_cv_use_ole"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_OLE" = yes; then
4533 echo "$as_me:$LINENO: result: yes" >&5
4534echo "${ECHO_T}yes" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6
4538 fi
4539
4540
4541 enablestring=
4542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4543echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4544 no_cache=0
4545 # Check whether --enable-dataobj or --disable-dataobj was given.
4546if test "${enable_dataobj+set}" = set; then
4547 enableval="$enable_dataobj"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4551 else
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4565
4566fi;
4567
4568 eval "$ac_cv_use_dataobj"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_DATAOBJ" = yes; then
4574 echo "$as_me:$LINENO: result: yes" >&5
4575echo "${ECHO_T}yes" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
4579 fi
4580
4581
4582
4583 enablestring=
4584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4585echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4586 no_cache=0
4587 # Check whether --enable-ipc or --disable-ipc was given.
4588if test "${enable_ipc+set}" = set; then
4589 enableval="$enable_ipc"
4590
4591 if test "$enableval" = yes; then
4592 ac_cv_use_ipc='wxUSE_IPC=yes'
4593 else
4594 ac_cv_use_ipc='wxUSE_IPC=no'
4595 fi
4596
4597else
4598
4599 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4600 if test "x$LINE" != x ; then
4601 eval "DEFAULT_$LINE"
4602 else
4603 no_cache=1
4604 fi
4605
4606 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4607
4608fi;
4609
4610 eval "$ac_cv_use_ipc"
4611 if test "$no_cache" != 1; then
4612 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4613 fi
4614
4615 if test "$wxUSE_IPC" = yes; then
4616 echo "$as_me:$LINENO: result: yes" >&5
4617echo "${ECHO_T}yes" >&6
4618 else
4619 echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
4621 fi
4622
4623
4624
4625 enablestring=
4626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4627echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4628 no_cache=0
4629 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4630if test "${enable_apple_ieee+set}" = set; then
4631 enableval="$enable_apple_ieee"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4635 else
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4637 fi
4638
4639else
4640
4641 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4649
4650fi;
4651
4652 eval "$ac_cv_use_apple_ieee"
4653 if test "$no_cache" != 1; then
4654 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4655 fi
4656
4657 if test "$wxUSE_APPLE_IEEE" = yes; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
4660 else
4661 echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6
4663 fi
4664
4665
4666 enablestring=
4667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4668echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4669 no_cache=0
4670 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4671if test "${enable_catch_segvs+set}" = set; then
4672 enableval="$enable_catch_segvs"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4676 else
4677 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4678 fi
4679
4680else
4681
4682 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4690
4691fi;
4692
4693 eval "$ac_cv_use_catch_segvs"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4699 echo "$as_me:$LINENO: result: yes" >&5
4700echo "${ECHO_T}yes" >&6
4701 else
4702 echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704 fi
4705
4706
4707 enablestring=
4708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4709echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4710 no_cache=0
4711 # Check whether --enable-cmdline or --disable-cmdline was given.
4712if test "${enable_cmdline+set}" = set; then
4713 enableval="$enable_cmdline"
4714
4715 if test "$enableval" = yes; then
4716 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4717 else
4718 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4719 fi
4720
4721else
4722
4723 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4724 if test "x$LINE" != x ; then
4725 eval "DEFAULT_$LINE"
4726 else
4727 no_cache=1
4728 fi
4729
4730 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4731
4732fi;
4733
4734 eval "$ac_cv_use_cmdline"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4737 fi
4738
4739 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4740 echo "$as_me:$LINENO: result: yes" >&5
4741echo "${ECHO_T}yes" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
4745 fi
4746
4747
4748 enablestring=
4749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4750echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4751 no_cache=0
4752 # Check whether --enable-datetime or --disable-datetime was given.
4753if test "${enable_datetime+set}" = set; then
4754 enableval="$enable_datetime"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4758 else
4759 ac_cv_use_datetime='wxUSE_DATETIME=no'
4760 fi
4761
4762else
4763
4764 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4772
4773fi;
4774
4775 eval "$ac_cv_use_datetime"
4776 if test "$no_cache" != 1; then
4777 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4778 fi
4779
4780 if test "$wxUSE_DATETIME" = yes; then
4781 echo "$as_me:$LINENO: result: yes" >&5
4782echo "${ECHO_T}yes" >&6
4783 else
4784 echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
4786 fi
4787
4788
4789 enablestring=
4790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4791echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4792 no_cache=0
4793 # Check whether --enable-dialupman or --disable-dialupman was given.
4794if test "${enable_dialupman+set}" = set; then
4795 enableval="$enable_dialupman"
4796
4797 if test "$enableval" = yes; then
4798 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4799 else
4800 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4801 fi
4802
4803else
4804
4805 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
4812 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4813
4814fi;
4815
4816 eval "$ac_cv_use_dialupman"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4822 echo "$as_me:$LINENO: result: yes" >&5
4823echo "${ECHO_T}yes" >&6
4824 else
4825 echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6
4827 fi
4828
4829
4830 enablestring=
4831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4832echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4833 no_cache=0
4834 # Check whether --enable-dynlib or --disable-dynlib was given.
4835if test "${enable_dynlib+set}" = set; then
4836 enableval="$enable_dynlib"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4840 else
4841 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4842 fi
4843
4844else
4845
4846 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4854
4855fi;
4856
4857 eval "$ac_cv_use_dynlib"
4858 if test "$no_cache" != 1; then
4859 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4860 fi
4861
4862 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4863 echo "$as_me:$LINENO: result: yes" >&5
4864echo "${ECHO_T}yes" >&6
4865 else
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868 fi
4869
4870
4871 enablestring=
4872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4873echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4874 no_cache=0
4875 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4876if test "${enable_dynamicloader+set}" = set; then
4877 enableval="$enable_dynamicloader"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4881 else
4882 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4883 fi
4884
4885else
4886
4887 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4895
4896fi;
4897
4898 eval "$ac_cv_use_dynamicloader"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905echo "${ECHO_T}yes" >&6
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6
4909 fi
4910
4911
4912 enablestring=
4913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4914echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4915 no_cache=0
4916 # Check whether --enable-exceptions or --disable-exceptions was given.
4917if test "${enable_exceptions+set}" = set; then
4918 enableval="$enable_exceptions"
4919
4920 if test "$enableval" = yes; then
4921 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4922 else
4923 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4924 fi
4925
4926else
4927
4928 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4936
4937fi;
4938
4939 eval "$ac_cv_use_exceptions"
4940 if test "$no_cache" != 1; then
4941 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4942 fi
4943
4944 if test "$wxUSE_EXCEPTIONS" = yes; then
4945 echo "$as_me:$LINENO: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6
4950 fi
4951
4952
4953 enablestring=
4954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4955echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4956 no_cache=0
4957 # Check whether --enable-ffile or --disable-ffile was given.
4958if test "${enable_ffile+set}" = set; then
4959 enableval="$enable_ffile"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_ffile='wxUSE_FFILE=yes'
4963 else
4964 ac_cv_use_ffile='wxUSE_FFILE=no'
4965 fi
4966
4967else
4968
4969 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4977
4978fi;
4979
4980 eval "$ac_cv_use_ffile"
4981 if test "$no_cache" != 1; then
4982 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4983 fi
4984
4985 if test "$wxUSE_FFILE" = yes; then
4986 echo "$as_me:$LINENO: result: yes" >&5
4987echo "${ECHO_T}yes" >&6
4988 else
4989 echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
4991 fi
4992
4993
4994 enablestring=
4995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4996echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4997 no_cache=0
4998 # Check whether --enable-file or --disable-file was given.
4999if test "${enable_file+set}" = set; then
5000 enableval="$enable_file"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_file='wxUSE_FILE=yes'
5004 else
5005 ac_cv_use_file='wxUSE_FILE=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5018
5019fi;
5020
5021 eval "$ac_cv_use_file"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_FILE" = yes; then
5027 echo "$as_me:$LINENO: result: yes" >&5
5028echo "${ECHO_T}yes" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032 fi
5033
5034
5035 enablestring=
5036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5037echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5038 no_cache=0
5039 # Check whether --enable-filesystem or --disable-filesystem was given.
5040if test "${enable_filesystem+set}" = set; then
5041 enableval="$enable_filesystem"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5045 else
5046 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5047 fi
5048
5049else
5050
5051 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5059
5060fi;
5061
5062 eval "$ac_cv_use_filesystem"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_FILESYSTEM" = yes; then
5068 echo "$as_me:$LINENO: result: yes" >&5
5069echo "${ECHO_T}yes" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073 fi
5074
5075
5076 enablestring=
5077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5078echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5079 no_cache=0
5080 # Check whether --enable-fontmap or --disable-fontmap was given.
5081if test "${enable_fontmap+set}" = set; then
5082 enableval="$enable_fontmap"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5086 else
5087 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5088 fi
5089
5090else
5091
5092 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5100
5101fi;
5102
5103 eval "$ac_cv_use_fontmap"
5104 if test "$no_cache" != 1; then
5105 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5106 fi
5107
5108 if test "$wxUSE_FONTMAP" = yes; then
5109 echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114 fi
5115
5116
5117 enablestring=
5118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5119echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5120 no_cache=0
5121 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5122if test "${enable_fs_inet+set}" = set; then
5123 enableval="$enable_fs_inet"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5127 else
5128 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5129 fi
5130
5131else
5132
5133 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5141
5142fi;
5143
5144 eval "$ac_cv_use_fs_inet"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_FS_INET" = yes; then
5150 echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152 else
5153 echo "$as_me:$LINENO: result: no" >&5
5154echo "${ECHO_T}no" >&6
5155 fi
5156
5157
5158 enablestring=
5159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5160echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5161 no_cache=0
5162 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5163if test "${enable_fs_zip+set}" = set; then
5164 enableval="$enable_fs_zip"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5168 else
5169 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5182
5183fi;
5184
5185 eval "$ac_cv_use_fs_zip"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_FS_ZIP" = yes; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192echo "${ECHO_T}yes" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196 fi
5197
5198
5199 enablestring=
5200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5201echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5202 no_cache=0
5203 # Check whether --enable-geometry or --disable-geometry was given.
5204if test "${enable_geometry+set}" = set; then
5205 enableval="$enable_geometry"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5209 else
5210 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5211 fi
5212
5213else
5214
5215 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5223
5224fi;
5225
5226 eval "$ac_cv_use_geometry"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_GEOMETRY" = yes; then
5232 echo "$as_me:$LINENO: result: yes" >&5
5233echo "${ECHO_T}yes" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237 fi
5238
5239
5240 enablestring=
5241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5242echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5243 no_cache=0
5244 # Check whether --enable-log or --disable-log was given.
5245if test "${enable_log+set}" = set; then
5246 enableval="$enable_log"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_log='wxUSE_LOG=yes'
5250 else
5251 ac_cv_use_log='wxUSE_LOG=no'
5252 fi
5253
5254else
5255
5256 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5264
5265fi;
5266
5267 eval "$ac_cv_use_log"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_LOG" = yes; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
5278 fi
5279
5280
5281 enablestring=
5282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5283echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5284 no_cache=0
5285 # Check whether --enable-longlong or --disable-longlong was given.
5286if test "${enable_longlong+set}" = set; then
5287 enableval="$enable_longlong"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5291 else
5292 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5305
5306fi;
5307
5308 eval "$ac_cv_use_longlong"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_LONGLONG" = yes; then
5314 echo "$as_me:$LINENO: result: yes" >&5
5315echo "${ECHO_T}yes" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319 fi
5320
5321
5322 enablestring=
5323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5324echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5325 no_cache=0
5326 # Check whether --enable-mimetype or --disable-mimetype was given.
5327if test "${enable_mimetype+set}" = set; then
5328 enableval="$enable_mimetype"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5332 else
5333 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5334 fi
5335
5336else
5337
5338 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5346
5347fi;
5348
5349 eval "$ac_cv_use_mimetype"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_MIMETYPE" = yes; then
5355 echo "$as_me:$LINENO: result: yes" >&5
5356echo "${ECHO_T}yes" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360 fi
5361
5362
5363 enablestring=
5364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5365echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5366 no_cache=0
5367 # Check whether --enable-mslu or --disable-mslu was given.
5368if test "${enable_mslu+set}" = set; then
5369 enableval="$enable_mslu"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5373 else
5374 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5375 fi
5376
5377else
5378
5379 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5387
5388fi;
5389
5390 eval "$ac_cv_use_mslu"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_UNICODE_MSLU" = yes; then
5396 echo "$as_me:$LINENO: result: yes" >&5
5397echo "${ECHO_T}yes" >&6
5398 else
5399 echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401 fi
5402
5403
5404 enablestring=
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5406echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5407 no_cache=0
5408 # Check whether --enable-snglinst or --disable-snglinst was given.
5409if test "${enable_snglinst+set}" = set; then
5410 enableval="$enable_snglinst"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5414 else
5415 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5416 fi
5417
5418else
5419
5420 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5428
5429fi;
5430
5431 eval "$ac_cv_use_snglinst"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5437 echo "$as_me:$LINENO: result: yes" >&5
5438echo "${ECHO_T}yes" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441echo "${ECHO_T}no" >&6
5442 fi
5443
5444
5445 enablestring=
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5447echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5448 no_cache=0
5449 # Check whether --enable-streams or --disable-streams was given.
5450if test "${enable_streams+set}" = set; then
5451 enableval="$enable_streams"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_streams='wxUSE_STREAMS=yes'
5455 else
5456 ac_cv_use_streams='wxUSE_STREAMS=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5469
5470fi;
5471
5472 eval "$ac_cv_use_streams"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_STREAMS" = yes; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479echo "${ECHO_T}yes" >&6
5480 else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483 fi
5484
5485
5486 enablestring=
5487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5488echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5489 no_cache=0
5490 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5491if test "${enable_std_iostreams+set}" = set; then
5492 enableval="$enable_std_iostreams"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5496 else
5497 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5510
5511fi;
5512
5513 eval "$ac_cv_use_std_iostreams"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_STD_IOSTREAM" = yes; then
5519 echo "$as_me:$LINENO: result: yes" >&5
5520echo "${ECHO_T}yes" >&6
5521 else
5522 echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524 fi
5525
5526
5527 enablestring=
5528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5529echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5530 no_cache=0
5531 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5532if test "${enable_stopwatch+set}" = set; then
5533 enableval="$enable_stopwatch"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5537 else
5538 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5539 fi
5540
5541else
5542
5543 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5551
5552fi;
5553
5554 eval "$ac_cv_use_stopwatch"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_STOPWATCH" = yes; then
5560 echo "$as_me:$LINENO: result: yes" >&5
5561echo "${ECHO_T}yes" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565 fi
5566
5567
5568 enablestring=
5569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5570echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5571 no_cache=0
5572 # Check whether --enable-system_options or --disable-system_options was given.
5573if test "${enable_system_options+set}" = set; then
5574 enableval="$enable_system_options"
5575
5576 if test "$enableval" = yes; then
5577 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5578 else
5579 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5580 fi
5581
5582else
5583
5584 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5585 if test "x$LINE" != x ; then
5586 eval "DEFAULT_$LINE"
5587 else
5588 no_cache=1
5589 fi
5590
5591 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5592
5593fi;
5594
5595 eval "$ac_cv_use_system_options"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5601 echo "$as_me:$LINENO: result: yes" >&5
5602echo "${ECHO_T}yes" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606 fi
5607
5608
5609 enablestring=
5610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5611echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5612 no_cache=0
5613 # Check whether --enable-textbuf or --disable-textbuf was given.
5614if test "${enable_textbuf+set}" = set; then
5615 enableval="$enable_textbuf"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5619 else
5620 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5621 fi
5622
5623else
5624
5625 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5633
5634fi;
5635
5636 eval "$ac_cv_use_textbuf"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_TEXTBUFFER" = yes; then
5642 echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647 fi
5648
5649
5650 enablestring=
5651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5652echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5653 no_cache=0
5654 # Check whether --enable-textfile or --disable-textfile was given.
5655if test "${enable_textfile+set}" = set; then
5656 enableval="$enable_textfile"
5657
5658 if test "$enableval" = yes; then
5659 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5660 else
5661 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5662 fi
5663
5664else
5665
5666 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 else
5670 no_cache=1
5671 fi
5672
5673 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5674
5675fi;
5676
5677 eval "$ac_cv_use_textfile"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_TEXTFILE" = yes; then
5683 echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5688 fi
5689
5690
5691 enablestring=
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5693echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5694 no_cache=0
5695 # Check whether --enable-timer or --disable-timer was given.
5696if test "${enable_timer+set}" = set; then
5697 enableval="$enable_timer"
5698
5699 if test "$enableval" = yes; then
5700 ac_cv_use_timer='wxUSE_TIMER=yes'
5701 else
5702 ac_cv_use_timer='wxUSE_TIMER=no'
5703 fi
5704
5705else
5706
5707 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5715
5716fi;
5717
5718 eval "$ac_cv_use_timer"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_TIMER" = yes; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729 fi
5730
5731
5732 enablestring=
5733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5734echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5735 no_cache=0
5736 # Check whether --enable-unicode or --disable-unicode was given.
5737if test "${enable_unicode+set}" = set; then
5738 enableval="$enable_unicode"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5742 else
5743 ac_cv_use_unicode='wxUSE_UNICODE=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5756
5757fi;
5758
5759 eval "$ac_cv_use_unicode"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_UNICODE" = yes; then
5765 echo "$as_me:$LINENO: result: yes" >&5
5766echo "${ECHO_T}yes" >&6
5767 else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770 fi
5771
5772
5773 enablestring=
5774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5775echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5776 no_cache=0
5777 # Check whether --enable-sound or --disable-sound was given.
5778if test "${enable_sound+set}" = set; then
5779 enableval="$enable_sound"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_sound='wxUSE_SOUND=yes'
5783 else
5784 ac_cv_use_sound='wxUSE_SOUND=no'
5785 fi
5786
5787else
5788
5789 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5797
5798fi;
5799
5800 eval "$ac_cv_use_sound"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_SOUND" = yes; then
5806 echo "$as_me:$LINENO: result: yes" >&5
5807echo "${ECHO_T}yes" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811 fi
5812
5813
3b57de8b
RL
5814 enablestring=
5815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5816echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5817 no_cache=0
5818 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5819if test "${enable_mediactrl+set}" = set; then
5820 enableval="$enable_mediactrl"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5824 else
5825 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5838
5839fi;
5840
5841 eval "$ac_cv_use_mediactrl"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_MEDIACTRL" = yes; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848echo "${ECHO_T}yes" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852 fi
5853
5854
a848cd7e
SC
5855 enablestring=
5856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5857echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5858 no_cache=0
5859 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5860if test "${enable_wxprintfv+set}" = set; then
5861 enableval="$enable_wxprintfv"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5865 else
5866 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5867 fi
5868
5869else
5870
5871 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5879
5880fi;
5881
5882 eval "$ac_cv_use_wxprintfv"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5888 echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893 fi
5894
5895
5896 enablestring=
5897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5898echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5899 no_cache=0
5900 # Check whether --enable-zipstream or --disable-zipstream was given.
5901if test "${enable_zipstream+set}" = set; then
5902 enableval="$enable_zipstream"
5903
5904 if test "$enableval" = yes; then
5905 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5906 else
5907 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5908 fi
5909
5910else
5911
5912 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5913 if test "x$LINE" != x ; then
5914 eval "DEFAULT_$LINE"
5915 else
5916 no_cache=1
5917 fi
5918
5919 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5920
5921fi;
5922
5923 eval "$ac_cv_use_zipstream"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_ZIPSTREAM" = yes; then
5929 echo "$as_me:$LINENO: result: yes" >&5
5930echo "${ECHO_T}yes" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934 fi
5935
5936
a848cd7e
SC
5937
5938 enablestring=
5939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5940echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5941 no_cache=0
5942 # Check whether --enable-url or --disable-url was given.
5943if test "${enable_url+set}" = set; then
5944 enableval="$enable_url"
5945
5946 if test "$enableval" = yes; then
5947 ac_cv_use_url='wxUSE_URL=yes'
5948 else
5949 ac_cv_use_url='wxUSE_URL=no'
5950 fi
5951
5952else
5953
5954 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5955 if test "x$LINE" != x ; then
5956 eval "DEFAULT_$LINE"
5957 else
5958 no_cache=1
5959 fi
5960
5961 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5962
5963fi;
5964
5965 eval "$ac_cv_use_url"
5966 if test "$no_cache" != 1; then
5967 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5968 fi
5969
5970 if test "$wxUSE_URL" = yes; then
5971 echo "$as_me:$LINENO: result: yes" >&5
5972echo "${ECHO_T}yes" >&6
5973 else
5974 echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6
5976 fi
5977
5978
5979 enablestring=
5980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5981echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5982 no_cache=0
5983 # Check whether --enable-protocol or --disable-protocol was given.
5984if test "${enable_protocol+set}" = set; then
5985 enableval="$enable_protocol"
5986
5987 if test "$enableval" = yes; then
5988 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5989 else
5990 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5991 fi
5992
5993else
5994
5995 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5996 if test "x$LINE" != x ; then
5997 eval "DEFAULT_$LINE"
5998 else
5999 no_cache=1
6000 fi
6001
6002 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6003
6004fi;
6005
6006 eval "$ac_cv_use_protocol"
6007 if test "$no_cache" != 1; then
6008 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6009 fi
6010
6011 if test "$wxUSE_PROTOCOL" = yes; then
6012 echo "$as_me:$LINENO: result: yes" >&5
6013echo "${ECHO_T}yes" >&6
6014 else
6015 echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6
6017 fi
6018
6019
6020 enablestring=
6021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6022echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6023 no_cache=0
6024 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6025if test "${enable_protocol_http+set}" = set; then
6026 enableval="$enable_protocol_http"
6027
6028 if test "$enableval" = yes; then
6029 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6030 else
6031 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6032 fi
6033
6034else
6035
6036 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6044
6045fi;
6046
6047 eval "$ac_cv_use_protocol_http"
6048 if test "$no_cache" != 1; then
6049 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6050 fi
6051
6052 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6053 echo "$as_me:$LINENO: result: yes" >&5
6054echo "${ECHO_T}yes" >&6
6055 else
6056 echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058 fi
6059
6060
6061 enablestring=
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6064 no_cache=0
6065 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6066if test "${enable_protocol_ftp+set}" = set; then
6067 enableval="$enable_protocol_ftp"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6071 else
6072 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6085
6086fi;
6087
6088 eval "$ac_cv_use_protocol_ftp"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6094 echo "$as_me:$LINENO: result: yes" >&5
6095echo "${ECHO_T}yes" >&6
6096 else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099 fi
6100
6101
6102 enablestring=
6103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6105 no_cache=0
6106 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6107if test "${enable_protocol_file+set}" = set; then
6108 enableval="$enable_protocol_file"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6112 else
6113 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6114 fi
6115
6116else
6117
6118 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6126
6127fi;
6128
6129 eval "$ac_cv_use_protocol_file"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6135 echo "$as_me:$LINENO: result: yes" >&5
6136echo "${ECHO_T}yes" >&6
6137 else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140 fi
6141
6142
6143
6144
6145
6146 enablestring=
6147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6148echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6149 no_cache=0
6150 # Check whether --enable-threads or --disable-threads was given.
6151if test "${enable_threads+set}" = set; then
6152 enableval="$enable_threads"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_threads='wxUSE_THREADS=yes'
6156 else
6157 ac_cv_use_threads='wxUSE_THREADS=no'
6158 fi
6159
6160else
6161
6162 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6170
6171fi;
6172
6173 eval "$ac_cv_use_threads"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_THREADS" = yes; then
6179 echo "$as_me:$LINENO: result: yes" >&5
6180echo "${ECHO_T}yes" >&6
6181 else
6182 echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
6184 fi
6185
6186
6187if test "$wxUSE_GUI" = "yes"; then
6188
6189
6190
6191 enablestring=
6192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6193echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6194 no_cache=0
6195 # Check whether --enable-docview or --disable-docview was given.
6196if test "${enable_docview+set}" = set; then
6197 enableval="$enable_docview"
6198
6199 if test "$enableval" = yes; then
6200 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6201 else
6202 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6203 fi
6204
6205else
6206
6207 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6208 if test "x$LINE" != x ; then
6209 eval "DEFAULT_$LINE"
6210 else
6211 no_cache=1
6212 fi
6213
6214 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6215
6216fi;
6217
6218 eval "$ac_cv_use_docview"
6219 if test "$no_cache" != 1; then
6220 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6221 fi
6222
6223 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6224 echo "$as_me:$LINENO: result: yes" >&5
6225echo "${ECHO_T}yes" >&6
6226 else
6227 echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229 fi
6230
6231
6232 enablestring=
6233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6234echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6235 no_cache=0
6236 # Check whether --enable-help or --disable-help was given.
6237if test "${enable_help+set}" = set; then
6238 enableval="$enable_help"
6239
6240 if test "$enableval" = yes; then
6241 ac_cv_use_help='wxUSE_HELP=yes'
6242 else
6243 ac_cv_use_help='wxUSE_HELP=no'
6244 fi
6245
6246else
6247
6248 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
6255 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6256
6257fi;
6258
6259 eval "$ac_cv_use_help"
6260 if test "$no_cache" != 1; then
6261 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6262 fi
6263
6264 if test "$wxUSE_HELP" = yes; then
6265 echo "$as_me:$LINENO: result: yes" >&5
6266echo "${ECHO_T}yes" >&6
6267 else
6268 echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
6270 fi
6271
6272
6273 enablestring=
6274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6275echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6276 no_cache=0
6277 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6278if test "${enable_mshtmlhelp+set}" = set; then
6279 enableval="$enable_mshtmlhelp"
6280
6281 if test "$enableval" = yes; then
6282 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6283 else
6284 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6285 fi
6286
6287else
6288
6289 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6290 if test "x$LINE" != x ; then
6291 eval "DEFAULT_$LINE"
6292 else
6293 no_cache=1
6294 fi
6295
6296 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6297
6298fi;
6299
6300 eval "$ac_cv_use_mshtmlhelp"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_MS_HTML_HELP" = yes; then
6306 echo "$as_me:$LINENO: result: yes" >&5
6307echo "${ECHO_T}yes" >&6
6308 else
6309 echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311 fi
6312
6313
6314 enablestring=
6315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6316echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6317 no_cache=0
6318 # Check whether --enable-html or --disable-html was given.
6319if test "${enable_html+set}" = set; then
6320 enableval="$enable_html"
6321
6322 if test "$enableval" = yes; then
6323 ac_cv_use_html='wxUSE_HTML=yes'
6324 else
6325 ac_cv_use_html='wxUSE_HTML=no'
6326 fi
6327
6328else
6329
6330 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6331 if test "x$LINE" != x ; then
6332 eval "DEFAULT_$LINE"
6333 else
6334 no_cache=1
6335 fi
6336
6337 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6338
6339fi;
6340
6341 eval "$ac_cv_use_html"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_HTML" = yes; then
6347 echo "$as_me:$LINENO: result: yes" >&5
6348echo "${ECHO_T}yes" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
6352 fi
6353
6354
6355 enablestring=
6356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6357echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6358 no_cache=0
6359 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6360if test "${enable_htmlhelp+set}" = set; then
6361 enableval="$enable_htmlhelp"
6362
6363 if test "$enableval" = yes; then
6364 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6365 else
6366 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6367 fi
6368
6369else
6370
6371 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6372 if test "x$LINE" != x ; then
6373 eval "DEFAULT_$LINE"
6374 else
6375 no_cache=1
6376 fi
6377
6378 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6379
6380fi;
6381
6382 eval "$ac_cv_use_htmlhelp"
6383 if test "$no_cache" != 1; then
6384 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6385 fi
6386
6387 if test "$wxUSE_WXHTML_HELP" = yes; then
6388 echo "$as_me:$LINENO: result: yes" >&5
6389echo "${ECHO_T}yes" >&6
6390 else
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393 fi
6394
6395
9a8f0513
VS
6396 enablestring=
6397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6398echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6399 no_cache=0
6400 # Check whether --enable-xrc or --disable-xrc was given.
6401if test "${enable_xrc+set}" = set; then
6402 enableval="$enable_xrc"
6403
6404 if test "$enableval" = yes; then
6405 ac_cv_use_xrc='wxUSE_XRC=yes'
6406 else
6407 ac_cv_use_xrc='wxUSE_XRC=no'
6408 fi
6409
6410else
6411
6412 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6413 if test "x$LINE" != x ; then
6414 eval "DEFAULT_$LINE"
6415 else
6416 no_cache=1
6417 fi
6418
6419 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6420
6421fi;
6422
6423 eval "$ac_cv_use_xrc"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_XRC" = yes; then
6429 echo "$as_me:$LINENO: result: yes" >&5
6430echo "${ECHO_T}yes" >&6
6431 else
6432 echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6
6434 fi
6435
6436
a848cd7e
SC
6437 enablestring=
6438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6439echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6440 no_cache=0
6441 # Check whether --enable-constraints or --disable-constraints was given.
6442if test "${enable_constraints+set}" = set; then
6443 enableval="$enable_constraints"
6444
6445 if test "$enableval" = yes; then
6446 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6447 else
6448 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6449 fi
6450
6451else
6452
6453 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6461
6462fi;
6463
6464 eval "$ac_cv_use_constraints"
6465 if test "$no_cache" != 1; then
6466 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6467 fi
6468
6469 if test "$wxUSE_CONSTRAINTS" = yes; then
6470 echo "$as_me:$LINENO: result: yes" >&5
6471echo "${ECHO_T}yes" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
6475 fi
6476
6477
6478 enablestring=
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6480echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6481 no_cache=0
6482 # Check whether --enable-printarch or --disable-printarch was given.
6483if test "${enable_printarch+set}" = set; then
6484 enableval="$enable_printarch"
6485
6486 if test "$enableval" = yes; then
6487 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6488 else
6489 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6490 fi
6491
6492else
6493
6494 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6502
6503fi;
6504
6505 eval "$ac_cv_use_printarch"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6511 echo "$as_me:$LINENO: result: yes" >&5
6512echo "${ECHO_T}yes" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516 fi
6517
6518
6519 enablestring=
6520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6521echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6522 no_cache=0
6523 # Check whether --enable-mdi or --disable-mdi was given.
6524if test "${enable_mdi+set}" = set; then
6525 enableval="$enable_mdi"
6526
6527 if test "$enableval" = yes; then
8a7b1113 6528 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6529 else
8a7b1113 6530 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6531 fi
6532
6533else
6534
8a7b1113 6535 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6536 if test "x$LINE" != x ; then
6537 eval "DEFAULT_$LINE"
6538 else
6539 no_cache=1
6540 fi
6541
8a7b1113 6542 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6543
6544fi;
6545
6546 eval "$ac_cv_use_mdi"
6547 if test "$no_cache" != 1; then
6548 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6549 fi
6550
8a7b1113
VZ
6551 if test "$wxUSE_MDI" = yes; then
6552 echo "$as_me:$LINENO: result: yes" >&5
6553echo "${ECHO_T}yes" >&6
6554 else
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557 fi
6558
6559
6560 enablestring=
6561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6562echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6563 no_cache=0
6564 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6565if test "${enable_mdidoc+set}" = set; then
6566 enableval="$enable_mdidoc"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6570 else
6571 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6572 fi
6573
6574else
6575
6576 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6584
6585fi;
6586
6587 eval "$ac_cv_use_mdidoc"
6588 if test "$no_cache" != 1; then
6589 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6590 fi
6591
a848cd7e
SC
6592 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6593 echo "$as_me:$LINENO: result: yes" >&5
6594echo "${ECHO_T}yes" >&6
6595 else
6596 echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6
6598 fi
6599
6600
6601 enablestring=
6602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6603echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6604 no_cache=0
6605 # Check whether --enable-loggui or --disable-loggui was given.
6606if test "${enable_loggui+set}" = set; then
6607 enableval="$enable_loggui"
6608
6609 if test "$enableval" = yes; then
6610 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6611 else
6612 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6613 fi
6614
6615else
6616
6617 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6618 if test "x$LINE" != x ; then
6619 eval "DEFAULT_$LINE"
6620 else
6621 no_cache=1
6622 fi
6623
6624 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6625
6626fi;
6627
6628 eval "$ac_cv_use_loggui"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_LOGGUI" = yes; then
6634 echo "$as_me:$LINENO: result: yes" >&5
6635echo "${ECHO_T}yes" >&6
6636 else
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
6639 fi
6640
6641
6642 enablestring=
6643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6644echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6645 no_cache=0
6646 # Check whether --enable-logwin or --disable-logwin was given.
6647if test "${enable_logwin+set}" = set; then
6648 enableval="$enable_logwin"
6649
6650 if test "$enableval" = yes; then
6651 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6652 else
6653 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6654 fi
6655
6656else
6657
6658 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6659 if test "x$LINE" != x ; then
6660 eval "DEFAULT_$LINE"
6661 else
6662 no_cache=1
6663 fi
6664
6665 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6666
6667fi;
6668
6669 eval "$ac_cv_use_logwin"
6670 if test "$no_cache" != 1; then
6671 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6672 fi
6673
6674 if test "$wxUSE_LOGWINDOW" = yes; then
6675 echo "$as_me:$LINENO: result: yes" >&5
6676echo "${ECHO_T}yes" >&6
6677 else
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680 fi
6681
6682
6683 enablestring=
6684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6685echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6686 no_cache=0
6687 # Check whether --enable-logdialog or --disable-logdialog was given.
6688if test "${enable_logdialog+set}" = set; then
6689 enableval="$enable_logdialog"
6690
6691 if test "$enableval" = yes; then
6692 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6693 else
6694 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6695 fi
6696
6697else
6698
6699 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6700 if test "x$LINE" != x ; then
6701 eval "DEFAULT_$LINE"
6702 else
6703 no_cache=1
6704 fi
6705
6706 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6707
6708fi;
6709
6710 eval "$ac_cv_use_logdialog"
6711 if test "$no_cache" != 1; then
6712 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6713 fi
6714
6715 if test "$wxUSE_LOGDIALOG" = yes; then
6716 echo "$as_me:$LINENO: result: yes" >&5
6717echo "${ECHO_T}yes" >&6
6718 else
6719 echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6
6721 fi
6722
6723
646b6ec1
VS
6724 enablestring=
6725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6726echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6727 no_cache=0
6728 # Check whether --enable-webkit or --disable-webkit was given.
6729if test "${enable_webkit+set}" = set; then
6730 enableval="$enable_webkit"
6731
6732 if test "$enableval" = yes; then
6733 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6734 else
6735 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6736 fi
6737
6738else
6739
6740 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6748
6749fi;
6750
6751 eval "$ac_cv_use_webkit"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_WEBKIT" = yes; then
6757 echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6
6759 else
6760 echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
6762 fi
6763
6764
a848cd7e
SC
6765
6766 enablestring=
6767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6768echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6769 no_cache=0
6770 # Check whether --enable-postscript or --disable-postscript was given.
6771if test "${enable_postscript+set}" = set; then
6772 enableval="$enable_postscript"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6776 else
6777 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6790
6791fi;
6792
6793 eval "$ac_cv_use_postscript"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_POSTSCRIPT" = yes; then
6799 echo "$as_me:$LINENO: result: yes" >&5
6800echo "${ECHO_T}yes" >&6
6801 else
6802 echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6
6804 fi
6805
6806
6807
6808
6809
6810 enablestring=
6811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6812echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6813 no_cache=0
6814 # Check whether --enable-prologio or --disable-prologio was given.
6815if test "${enable_prologio+set}" = set; then
6816 enableval="$enable_prologio"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6820 else
6821 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6834
6835fi;
6836
6837 eval "$ac_cv_use_prologio"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_PROLOGIO" = yes; then
6843 echo "$as_me:$LINENO: result: yes" >&5
6844echo "${ECHO_T}yes" >&6
6845 else
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
6848 fi
6849
6850
6851 enablestring=
6852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6853echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6854 no_cache=0
6855 # Check whether --enable-resources or --disable-resources was given.
6856if test "${enable_resources+set}" = set; then
6857 enableval="$enable_resources"
6858
6859 if test "$enableval" = yes; then
6860 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6861 else
6862 ac_cv_use_resources='wxUSE_RESOURCES=no'
6863 fi
6864
6865else
6866
6867 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6868 if test "x$LINE" != x ; then
6869 eval "DEFAULT_$LINE"
6870 else
6871 no_cache=1
6872 fi
6873
6874 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6875
6876fi;
6877
6878 eval "$ac_cv_use_resources"
6879 if test "$no_cache" != 1; then
6880 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6881 fi
6882
6883 if test "$wxUSE_RESOURCES" = yes; then
6884 echo "$as_me:$LINENO: result: yes" >&5
6885echo "${ECHO_T}yes" >&6
6886 else
6887 echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
6889 fi
6890
6891
6892
6893
6894 enablestring=
6895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6896echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6897 no_cache=0
6898 # Check whether --enable-clipboard or --disable-clipboard was given.
6899if test "${enable_clipboard+set}" = set; then
6900 enableval="$enable_clipboard"
6901
6902 if test "$enableval" = yes; then
6903 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6904 else
6905 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6906 fi
6907
6908else
6909
6910 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6911 if test "x$LINE" != x ; then
6912 eval "DEFAULT_$LINE"
6913 else
6914 no_cache=1
6915 fi
6916
6917 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6918
6919fi;
6920
6921 eval "$ac_cv_use_clipboard"
6922 if test "$no_cache" != 1; then
6923 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6924 fi
6925
6926 if test "$wxUSE_CLIPBOARD" = yes; then
6927 echo "$as_me:$LINENO: result: yes" >&5
6928echo "${ECHO_T}yes" >&6
6929 else
6930 echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6
6932 fi
6933
6934
6935 enablestring=
6936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6937echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6938 no_cache=0
6939 # Check whether --enable-dnd or --disable-dnd was given.
6940if test "${enable_dnd+set}" = set; then
6941 enableval="$enable_dnd"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6945 else
6946 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6947 fi
6948
6949else
6950
6951 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6959
6960fi;
6961
6962 eval "$ac_cv_use_dnd"
6963 if test "$no_cache" != 1; then
6964 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6965 fi
6966
6967 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
6970 else
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
6973 fi
6974
6975
6976 enablestring=
6977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6978echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6979 no_cache=0
6980 # Check whether --enable-metafile or --disable-metafile was given.
6981if test "${enable_metafile+set}" = set; then
6982 enableval="$enable_metafile"
6983
6984 if test "$enableval" = yes; then
6985 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6986 else
6987 ac_cv_use_metafile='wxUSE_METAFILE=no'
6988 fi
6989
6990else
6991
6992 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7000
7001fi;
7002
7003 eval "$ac_cv_use_metafile"
7004 if test "$no_cache" != 1; then
7005 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7006 fi
7007
7008 if test "$wxUSE_METAFILE" = yes; then
7009 echo "$as_me:$LINENO: result: yes" >&5
7010echo "${ECHO_T}yes" >&6
7011 else
7012 echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
7014 fi
7015
7016
7017
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-controls or --disable-controls was given.
7025if test "${enable_controls+set}" = set; then
7026 enableval="$enable_controls"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7030 else
7031 ac_cv_use_controls='wxUSE_CONTROLS=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7044
7045fi;
7046
7047 eval "$ac_cv_use_controls"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_CONTROLS" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061if test "$wxUSE_CONTROLS" = "yes"; then
7062 DEFAULT_wxUSE_ACCEL=yes
7063 DEFAULT_wxUSE_BMPBUTTON=yes
7064 DEFAULT_wxUSE_BUTTON=yes
7065 DEFAULT_wxUSE_CALCTRL=no
7066 DEFAULT_wxUSE_CARET=yes
7067 DEFAULT_wxUSE_COMBOBOX=yes
7068 DEFAULT_wxUSE_CHECKBOX=yes
7069 DEFAULT_wxUSE_CHECKLISTBOX=yes
7070 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7071 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7072 DEFAULT_wxUSE_GAUGE=yes
7073 DEFAULT_wxUSE_GRID=yes
7074 DEFAULT_wxUSE_IMAGLIST=yes
7075 DEFAULT_wxUSE_LISTBOOK=yes
7076 DEFAULT_wxUSE_LISTBOX=yes
7077 DEFAULT_wxUSE_LISTCTRL=yes
7078 DEFAULT_wxUSE_NOTEBOOK=yes
7079 DEFAULT_wxUSE_RADIOBOX=yes
7080 DEFAULT_wxUSE_RADIOBTN=yes
7081 DEFAULT_wxUSE_SASH=yes
7082 DEFAULT_wxUSE_SCROLLBAR=yes
7083 DEFAULT_wxUSE_SLIDER=yes
7084 DEFAULT_wxUSE_SPINBTN=yes
7085 DEFAULT_wxUSE_SPINCTRL=yes
7086 DEFAULT_wxUSE_SPLITTER=yes
7087 DEFAULT_wxUSE_STATBMP=yes
7088 DEFAULT_wxUSE_STATBOX=yes
7089 DEFAULT_wxUSE_STATLINE=yes
7090 DEFAULT_wxUSE_STATUSBAR=yes
7091 DEFAULT_wxUSE_TAB_DIALOG=yes
7092 DEFAULT_wxUSE_TOGGLEBTN=yes
7093 DEFAULT_wxUSE_TOOLBAR=yes
7094 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7095 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7096 DEFAULT_wxUSE_TOOLTIPS=yes
7097 DEFAULT_wxUSE_TREECTRL=yes
7098 DEFAULT_wxUSE_POPUPWIN=yes
7099 DEFAULT_wxUSE_TIPWINDOW=yes
7100elif test "$wxUSE_CONTROLS" = "no"; then
7101 DEFAULT_wxUSE_ACCEL=no
7102 DEFAULT_wxUSE_BMPBUTTON=no
7103 DEFAULT_wxUSE_BUTTON=no
7104 DEFAULT_wxUSE_CALCTRL=no
7105 DEFAULT_wxUSE_CARET=no
7106 DEFAULT_wxUSE_COMBOBOX=no
7107 DEFAULT_wxUSE_CHECKBOX=no
7108 DEFAULT_wxUSE_CHECKLISTBOX=no
7109 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7110 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7111 DEFAULT_wxUSE_GAUGE=no
7112 DEFAULT_wxUSE_GRID=no
7113 DEFAULT_wxUSE_IMAGLIST=no
7114 DEFAULT_wxUSE_LISTBOOK=no
7115 DEFAULT_wxUSE_LISTBOX=no
7116 DEFAULT_wxUSE_LISTCTRL=no
7117 DEFAULT_wxUSE_NOTEBOOK=no
7118 DEFAULT_wxUSE_RADIOBOX=no
7119 DEFAULT_wxUSE_RADIOBTN=no
7120 DEFAULT_wxUSE_SASH=no
7121 DEFAULT_wxUSE_SCROLLBAR=no
7122 DEFAULT_wxUSE_SLIDER=no
7123 DEFAULT_wxUSE_SPINBTN=no
7124 DEFAULT_wxUSE_SPINCTRL=no
7125 DEFAULT_wxUSE_SPLITTER=no
7126 DEFAULT_wxUSE_STATBMP=no
7127 DEFAULT_wxUSE_STATBOX=no
7128 DEFAULT_wxUSE_STATLINE=no
7129 DEFAULT_wxUSE_STATUSBAR=no
7130 DEFAULT_wxUSE_TAB_DIALOG=no
7131 DEFAULT_wxUSE_TOGGLEBTN=no
7132 DEFAULT_wxUSE_TOOLBAR=no
7133 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7134 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7135 DEFAULT_wxUSE_TOOLTIPS=no
7136 DEFAULT_wxUSE_TREECTRL=no
7137 DEFAULT_wxUSE_POPUPWIN=no
7138 DEFAULT_wxUSE_TIPWINDOW=no
7139fi
7140
a848cd7e
SC
7141
7142 enablestring=
7143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7144echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7145 no_cache=0
7146 # Check whether --enable-accel or --disable-accel was given.
7147if test "${enable_accel+set}" = set; then
7148 enableval="$enable_accel"
7149
7150 if test "$enableval" = yes; then
7151 ac_cv_use_accel='wxUSE_ACCEL=yes'
7152 else
7153 ac_cv_use_accel='wxUSE_ACCEL=no'
7154 fi
7155
7156else
7157
7158 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7159 if test "x$LINE" != x ; then
7160 eval "DEFAULT_$LINE"
7161 else
7162 no_cache=1
7163 fi
7164
7165 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7166
7167fi;
7168
7169 eval "$ac_cv_use_accel"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_ACCEL" = yes; then
7175 echo "$as_me:$LINENO: result: yes" >&5
7176echo "${ECHO_T}yes" >&6
7177 else
7178 echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180 fi
7181
7182
7183 enablestring=
7184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7185echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7186 no_cache=0
7187 # Check whether --enable-button or --disable-button was given.
7188if test "${enable_button+set}" = set; then
7189 enableval="$enable_button"
7190
7191 if test "$enableval" = yes; then
7192 ac_cv_use_button='wxUSE_BUTTON=yes'
7193 else
7194 ac_cv_use_button='wxUSE_BUTTON=no'
7195 fi
7196
7197else
7198
7199 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7207
7208fi;
7209
7210 eval "$ac_cv_use_button"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7213 fi
7214
7215 if test "$wxUSE_BUTTON" = yes; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217echo "${ECHO_T}yes" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221 fi
7222
7223
7224 enablestring=
7225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7226echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7227 no_cache=0
7228 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7229if test "${enable_bmpbutton+set}" = set; then
7230 enableval="$enable_bmpbutton"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7234 else
7235 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7236 fi
7237
7238else
7239
7240 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7248
7249fi;
7250
7251 eval "$ac_cv_use_bmpbutton"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7254 fi
7255
7256 if test "$wxUSE_BMPBUTTON" = yes; then
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262 fi
7263
7264
7265 enablestring=
7266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7267echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7268 no_cache=0
7269 # Check whether --enable-calendar or --disable-calendar was given.
7270if test "${enable_calendar+set}" = set; then
7271 enableval="$enable_calendar"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7275 else
7276 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7277 fi
7278
7279else
7280
7281 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7289
7290fi;
7291
7292 eval "$ac_cv_use_calendar"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_CALCTRL" = yes; then
7298 echo "$as_me:$LINENO: result: yes" >&5
7299echo "${ECHO_T}yes" >&6
7300 else
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303 fi
7304
7305
7306 enablestring=
7307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7308echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7309 no_cache=0
7310 # Check whether --enable-caret or --disable-caret was given.
7311if test "${enable_caret+set}" = set; then
7312 enableval="$enable_caret"
7313
7314 if test "$enableval" = yes; then
7315 ac_cv_use_caret='wxUSE_CARET=yes'
7316 else
7317 ac_cv_use_caret='wxUSE_CARET=no'
7318 fi
7319
7320else
7321
7322 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7323 if test "x$LINE" != x ; then
7324 eval "DEFAULT_$LINE"
7325 else
7326 no_cache=1
7327 fi
7328
7329 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7330
7331fi;
7332
7333 eval "$ac_cv_use_caret"
7334 if test "$no_cache" != 1; then
7335 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7336 fi
7337
7338 if test "$wxUSE_CARET" = yes; then
7339 echo "$as_me:$LINENO: result: yes" >&5
7340echo "${ECHO_T}yes" >&6
7341 else
7342 echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344 fi
7345
7346
7347 enablestring=
7348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7349echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7350 no_cache=0
7351 # Check whether --enable-checkbox or --disable-checkbox was given.
7352if test "${enable_checkbox+set}" = set; then
7353 enableval="$enable_checkbox"
7354
7355 if test "$enableval" = yes; then
7356 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7357 else
7358 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7359 fi
7360
7361else
7362
7363 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7364 if test "x$LINE" != x ; then
7365 eval "DEFAULT_$LINE"
7366 else
7367 no_cache=1
7368 fi
7369
7370 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7371
7372fi;
7373
7374 eval "$ac_cv_use_checkbox"
7375 if test "$no_cache" != 1; then
7376 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7377 fi
7378
7379 if test "$wxUSE_CHECKBOX" = yes; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381echo "${ECHO_T}yes" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385 fi
7386
7387
7388 enablestring=
7389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7390echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7391 no_cache=0
7392 # Check whether --enable-checklst or --disable-checklst was given.
7393if test "${enable_checklst+set}" = set; then
7394 enableval="$enable_checklst"
7395
7396 if test "$enableval" = yes; then
7397 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7398 else
7399 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7400 fi
7401
7402else
7403
7404 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
7411 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7412
7413fi;
7414
7415 eval "$ac_cv_use_checklst"
7416 if test "$no_cache" != 1; then
7417 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7418 fi
7419
7420 if test "$wxUSE_CHECKLST" = yes; then
7421 echo "$as_me:$LINENO: result: yes" >&5
7422echo "${ECHO_T}yes" >&6
7423 else
7424 echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
7426 fi
7427
7428
7429 enablestring=
7430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7431echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7432 no_cache=0
7433 # Check whether --enable-choice or --disable-choice was given.
7434if test "${enable_choice+set}" = set; then
7435 enableval="$enable_choice"
7436
7437 if test "$enableval" = yes; then
7438 ac_cv_use_choice='wxUSE_CHOICE=yes'
7439 else
7440 ac_cv_use_choice='wxUSE_CHOICE=no'
7441 fi
7442
7443else
7444
7445 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7446 if test "x$LINE" != x ; then
7447 eval "DEFAULT_$LINE"
7448 else
7449 no_cache=1
7450 fi
7451
7452 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7453
7454fi;
7455
7456 eval "$ac_cv_use_choice"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_CHOICE" = yes; then
7462 echo "$as_me:$LINENO: result: yes" >&5
7463echo "${ECHO_T}yes" >&6
7464 else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467 fi
7468
7469
92bbdbcd
WS
7470 enablestring=
7471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7472echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7473 no_cache=0
7474 # Check whether --enable-choicebook or --disable-choicebook was given.
7475if test "${enable_choicebook+set}" = set; then
7476 enableval="$enable_choicebook"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7480 else
7481 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7494
7495fi;
7496
7497 eval "$ac_cv_use_choicebook"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_CHOICEBOOK" = yes; then
7503 echo "$as_me:$LINENO: result: yes" >&5
7504echo "${ECHO_T}yes" >&6
7505 else
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508 fi
7509
7510
a848cd7e
SC
7511 enablestring=
7512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7513echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7514 no_cache=0
7515 # Check whether --enable-combobox or --disable-combobox was given.
7516if test "${enable_combobox+set}" = set; then
7517 enableval="$enable_combobox"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7521 else
7522 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7523 fi
7524
7525else
7526
7527 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7535
7536fi;
7537
7538 eval "$ac_cv_use_combobox"
7539 if test "$no_cache" != 1; then
7540 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7541 fi
7542
7543 if test "$wxUSE_COMBOBOX" = yes; then
7544 echo "$as_me:$LINENO: result: yes" >&5
7545echo "${ECHO_T}yes" >&6
7546 else
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549 fi
7550
7551
7552 enablestring=
7553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7554echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7555 no_cache=0
7556 # Check whether --enable-display or --disable-display was given.
7557if test "${enable_display+set}" = set; then
7558 enableval="$enable_display"
7559
7560 if test "$enableval" = yes; then
7561 ac_cv_use_display='wxUSE_DISPLAY=yes'
7562 else
7563 ac_cv_use_display='wxUSE_DISPLAY=no'
7564 fi
7565
7566else
7567
7568 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7576
7577fi;
7578
7579 eval "$ac_cv_use_display"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_DISPLAY" = yes; then
7585 echo "$as_me:$LINENO: result: yes" >&5
7586echo "${ECHO_T}yes" >&6
7587 else
7588 echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
7590 fi
7591
7592
7593 enablestring=
7594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7595echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7596 no_cache=0
7597 # Check whether --enable-gauge or --disable-gauge was given.
7598if test "${enable_gauge+set}" = set; then
7599 enableval="$enable_gauge"
7600
7601 if test "$enableval" = yes; then
7602 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7603 else
7604 ac_cv_use_gauge='wxUSE_GAUGE=no'
7605 fi
7606
7607else
7608
7609 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7617
7618fi;
7619
7620 eval "$ac_cv_use_gauge"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_GAUGE" = yes; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627echo "${ECHO_T}yes" >&6
7628 else
7629 echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6
7631 fi
7632
7633
7634 enablestring=
7635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7636echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7637 no_cache=0
7638 # Check whether --enable-grid or --disable-grid was given.
7639if test "${enable_grid+set}" = set; then
7640 enableval="$enable_grid"
7641
7642 if test "$enableval" = yes; then
7643 ac_cv_use_grid='wxUSE_GRID=yes'
7644 else
7645 ac_cv_use_grid='wxUSE_GRID=no'
7646 fi
7647
7648else
7649
7650 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7651 if test "x$LINE" != x ; then
7652 eval "DEFAULT_$LINE"
7653 else
7654 no_cache=1
7655 fi
7656
7657 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7658
7659fi;
7660
7661 eval "$ac_cv_use_grid"
7662 if test "$no_cache" != 1; then
7663 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7664 fi
7665
7666 if test "$wxUSE_GRID" = yes; then
7667 echo "$as_me:$LINENO: result: yes" >&5
7668echo "${ECHO_T}yes" >&6
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
7672 fi
7673
7674
7675 enablestring=
7676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7677echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7678 no_cache=0
7679 # Check whether --enable-imaglist or --disable-imaglist was given.
7680if test "${enable_imaglist+set}" = set; then
7681 enableval="$enable_imaglist"
7682
7683 if test "$enableval" = yes; then
7684 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7685 else
7686 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7687 fi
7688
7689else
7690
7691 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7692 if test "x$LINE" != x ; then
7693 eval "DEFAULT_$LINE"
7694 else
7695 no_cache=1
7696 fi
7697
7698 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7699
7700fi;
7701
7702 eval "$ac_cv_use_imaglist"
7703 if test "$no_cache" != 1; then
7704 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7705 fi
7706
7707 if test "$wxUSE_IMAGLIST" = yes; then
7708 echo "$as_me:$LINENO: result: yes" >&5
7709echo "${ECHO_T}yes" >&6
7710 else
7711 echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
7713 fi
7714
7715
7716 enablestring=
7717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7718echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7719 no_cache=0
7720 # Check whether --enable-listbook or --disable-listbook was given.
7721if test "${enable_listbook+set}" = set; then
7722 enableval="$enable_listbook"
7723
7724 if test "$enableval" = yes; then
7725 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7726 else
7727 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7728 fi
7729
7730else
7731
7732 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7733 if test "x$LINE" != x ; then
7734 eval "DEFAULT_$LINE"
7735 else
7736 no_cache=1
7737 fi
7738
7739 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7740
7741fi;
7742
7743 eval "$ac_cv_use_listbook"
7744 if test "$no_cache" != 1; then
7745 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7746 fi
7747
7748 if test "$wxUSE_LISTBOOK" = yes; then
7749 echo "$as_me:$LINENO: result: yes" >&5
7750echo "${ECHO_T}yes" >&6
7751 else
7752 echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754 fi
7755
7756
7757 enablestring=
7758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7759echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7760 no_cache=0
7761 # Check whether --enable-listbox or --disable-listbox was given.
7762if test "${enable_listbox+set}" = set; then
7763 enableval="$enable_listbox"
7764
7765 if test "$enableval" = yes; then
7766 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7767 else
7768 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7769 fi
7770
7771else
7772
7773 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
7775 eval "DEFAULT_$LINE"
7776 else
7777 no_cache=1
7778 fi
7779
7780 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7781
7782fi;
7783
7784 eval "$ac_cv_use_listbox"
7785 if test "$no_cache" != 1; then
7786 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7787 fi
7788
7789 if test "$wxUSE_LISTBOX" = yes; then
7790 echo "$as_me:$LINENO: result: yes" >&5
7791echo "${ECHO_T}yes" >&6
7792 else
7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
7795 fi
7796
7797
7798 enablestring=
7799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7800echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7801 no_cache=0
7802 # Check whether --enable-listctrl or --disable-listctrl was given.
7803if test "${enable_listctrl+set}" = set; then
7804 enableval="$enable_listctrl"
7805
7806 if test "$enableval" = yes; then
7807 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7808 else
7809 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7810 fi
7811
7812else
7813
7814 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7815 if test "x$LINE" != x ; then
7816 eval "DEFAULT_$LINE"
7817 else
7818 no_cache=1
7819 fi
7820
7821 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7822
7823fi;
7824
7825 eval "$ac_cv_use_listctrl"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_LISTCTRL" = yes; then
7831 echo "$as_me:$LINENO: result: yes" >&5
7832echo "${ECHO_T}yes" >&6
7833 else
7834 echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6
7836 fi
7837
7838
7839 enablestring=
7840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7841echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7842 no_cache=0
7843 # Check whether --enable-notebook or --disable-notebook was given.
7844if test "${enable_notebook+set}" = set; then
7845 enableval="$enable_notebook"
7846
7847 if test "$enableval" = yes; then
7848 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7849 else
7850 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7851 fi
7852
7853else
7854
7855 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7863
7864fi;
7865
7866 eval "$ac_cv_use_notebook"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_NOTEBOOK" = yes; then
7872 echo "$as_me:$LINENO: result: yes" >&5
7873echo "${ECHO_T}yes" >&6
7874 else
7875 echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6
7877 fi
7878
7879
7880 enablestring=
7881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7882echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7883 no_cache=0
7884 # Check whether --enable-radiobox or --disable-radiobox was given.
7885if test "${enable_radiobox+set}" = set; then
7886 enableval="$enable_radiobox"
7887
7888 if test "$enableval" = yes; then
7889 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7890 else
7891 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7892 fi
7893
7894else
7895
7896 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7897 if test "x$LINE" != x ; then
7898 eval "DEFAULT_$LINE"
7899 else
7900 no_cache=1
7901 fi
7902
7903 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7904
7905fi;
7906
7907 eval "$ac_cv_use_radiobox"
7908 if test "$no_cache" != 1; then
7909 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7910 fi
7911
7912 if test "$wxUSE_RADIOBOX" = yes; then
7913 echo "$as_me:$LINENO: result: yes" >&5
7914echo "${ECHO_T}yes" >&6
7915 else
7916 echo "$as_me:$LINENO: result: no" >&5
7917echo "${ECHO_T}no" >&6
7918 fi
7919
7920
7921 enablestring=
7922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7923echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7924 no_cache=0
7925 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7926if test "${enable_radiobtn+set}" = set; then
7927 enableval="$enable_radiobtn"
7928
7929 if test "$enableval" = yes; then
7930 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7931 else
7932 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7933 fi
7934
7935else
7936
7937 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7938 if test "x$LINE" != x ; then
7939 eval "DEFAULT_$LINE"
7940 else
7941 no_cache=1
7942 fi
7943
7944 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7945
7946fi;
7947
7948 eval "$ac_cv_use_radiobtn"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_RADIOBTN" = yes; then
7954 echo "$as_me:$LINENO: result: yes" >&5
7955echo "${ECHO_T}yes" >&6
7956 else
7957 echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6
7959 fi
7960
7961
7962 enablestring=
7963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7964echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7965 no_cache=0
7966 # Check whether --enable-sash or --disable-sash was given.
7967if test "${enable_sash+set}" = set; then
7968 enableval="$enable_sash"
7969
7970 if test "$enableval" = yes; then
7971 ac_cv_use_sash='wxUSE_SASH=yes'
7972 else
7973 ac_cv_use_sash='wxUSE_SASH=no'
7974 fi
7975
7976else
7977
7978 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7979 if test "x$LINE" != x ; then
7980 eval "DEFAULT_$LINE"
7981 else
7982 no_cache=1
7983 fi
7984
7985 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7986
7987fi;
7988
7989 eval "$ac_cv_use_sash"
7990 if test "$no_cache" != 1; then
7991 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7992 fi
7993
7994 if test "$wxUSE_SASH" = yes; then
7995 echo "$as_me:$LINENO: result: yes" >&5
7996echo "${ECHO_T}yes" >&6
7997 else
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
8000 fi
8001
8002
8003 enablestring=
8004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8005echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8006 no_cache=0
8007 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8008if test "${enable_scrollbar+set}" = set; then
8009 enableval="$enable_scrollbar"
8010
8011 if test "$enableval" = yes; then
8012 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8013 else
8014 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8015 fi
8016
8017else
8018
8019 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8020 if test "x$LINE" != x ; then
8021 eval "DEFAULT_$LINE"
8022 else
8023 no_cache=1
8024 fi
8025
8026 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8027
8028fi;
8029
8030 eval "$ac_cv_use_scrollbar"
8031 if test "$no_cache" != 1; then
8032 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8033 fi
8034
8035 if test "$wxUSE_SCROLLBAR" = yes; then
8036 echo "$as_me:$LINENO: result: yes" >&5
8037echo "${ECHO_T}yes" >&6
8038 else
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
8041 fi
8042
8043
8044 enablestring=
8045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8046echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8047 no_cache=0
8048 # Check whether --enable-slider or --disable-slider was given.
8049if test "${enable_slider+set}" = set; then
8050 enableval="$enable_slider"
8051
8052 if test "$enableval" = yes; then
8053 ac_cv_use_slider='wxUSE_SLIDER=yes'
8054 else
8055 ac_cv_use_slider='wxUSE_SLIDER=no'
8056 fi
8057
8058else
8059
8060 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8061 if test "x$LINE" != x ; then
8062 eval "DEFAULT_$LINE"
8063 else
8064 no_cache=1
8065 fi
8066
8067 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8068
8069fi;
8070
8071 eval "$ac_cv_use_slider"
8072 if test "$no_cache" != 1; then
8073 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8074 fi
8075
8076 if test "$wxUSE_SLIDER" = yes; then
8077 echo "$as_me:$LINENO: result: yes" >&5
8078echo "${ECHO_T}yes" >&6
8079 else
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
8082 fi
8083
8084
8085 enablestring=
8086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8087echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8088 no_cache=0
8089 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8090if test "${enable_spinbtn+set}" = set; then
8091 enableval="$enable_spinbtn"
8092
8093 if test "$enableval" = yes; then
8094 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8095 else
8096 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8097 fi
8098
8099else
8100
8101 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8102 if test "x$LINE" != x ; then
8103 eval "DEFAULT_$LINE"
8104 else
8105 no_cache=1
8106 fi
8107
8108 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8109
8110fi;
8111
8112 eval "$ac_cv_use_spinbtn"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_SPINBTN" = yes; then
8118 echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
8120 else
8121 echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6
8123 fi
8124
8125
8126 enablestring=
8127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8128echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8129 no_cache=0
8130 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8131if test "${enable_spinctrl+set}" = set; then
8132 enableval="$enable_spinctrl"
8133
8134 if test "$enableval" = yes; then
8135 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8136 else
8137 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8138 fi
8139
8140else
8141
8142 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8143 if test "x$LINE" != x ; then
8144 eval "DEFAULT_$LINE"
8145 else
8146 no_cache=1
8147 fi
8148
8149 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8150
8151fi;
8152
8153 eval "$ac_cv_use_spinctrl"
8154 if test "$no_cache" != 1; then
8155 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8156 fi
8157
8158 if test "$wxUSE_SPINCTRL" = yes; then
8159 echo "$as_me:$LINENO: result: yes" >&5
8160echo "${ECHO_T}yes" >&6
8161 else
8162 echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
8164 fi
8165
8166
8167 enablestring=
8168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8169echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8170 no_cache=0
8171 # Check whether --enable-splitter or --disable-splitter was given.
8172if test "${enable_splitter+set}" = set; then
8173 enableval="$enable_splitter"
8174
8175 if test "$enableval" = yes; then
8176 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8177 else
8178 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8179 fi
8180
8181else
8182
8183 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8184 if test "x$LINE" != x ; then
8185 eval "DEFAULT_$LINE"
8186 else
8187 no_cache=1
8188 fi
8189
8190 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8191
8192fi;
8193
8194 eval "$ac_cv_use_splitter"
8195 if test "$no_cache" != 1; then
8196 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8197 fi
8198
8199 if test "$wxUSE_SPLITTER" = yes; then
8200 echo "$as_me:$LINENO: result: yes" >&5
8201echo "${ECHO_T}yes" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204echo "${ECHO_T}no" >&6
8205 fi
8206
8207
8208 enablestring=
8209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8210echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8211 no_cache=0
8212 # Check whether --enable-statbmp or --disable-statbmp was given.
8213if test "${enable_statbmp+set}" = set; then
8214 enableval="$enable_statbmp"
8215
8216 if test "$enableval" = yes; then
8217 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8218 else
8219 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8220 fi
8221
8222else
8223
8224 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8225 if test "x$LINE" != x ; then
8226 eval "DEFAULT_$LINE"
8227 else
8228 no_cache=1
8229 fi
8230
8231 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8232
8233fi;
8234
8235 eval "$ac_cv_use_statbmp"
8236 if test "$no_cache" != 1; then
8237 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8238 fi
8239
8240 if test "$wxUSE_STATBMP" = yes; then
8241 echo "$as_me:$LINENO: result: yes" >&5
8242echo "${ECHO_T}yes" >&6
8243 else
8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
8246 fi
8247
8248
8249 enablestring=
8250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8251echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8252 no_cache=0
8253 # Check whether --enable-statbox or --disable-statbox was given.
8254if test "${enable_statbox+set}" = set; then
8255 enableval="$enable_statbox"
8256
8257 if test "$enableval" = yes; then
8258 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8259 else
8260 ac_cv_use_statbox='wxUSE_STATBOX=no'
8261 fi
8262
8263else
8264
8265 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8266 if test "x$LINE" != x ; then
8267 eval "DEFAULT_$LINE"
8268 else
8269 no_cache=1
8270 fi
8271
8272 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8273
8274fi;
8275
8276 eval "$ac_cv_use_statbox"
8277 if test "$no_cache" != 1; then
8278 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8279 fi
8280
8281 if test "$wxUSE_STATBOX" = yes; then
8282 echo "$as_me:$LINENO: result: yes" >&5
8283echo "${ECHO_T}yes" >&6
8284 else
8285 echo "$as_me:$LINENO: result: no" >&5
8286echo "${ECHO_T}no" >&6
8287 fi
8288
8289
8290 enablestring=
8291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8292echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8293 no_cache=0
8294 # Check whether --enable-statline or --disable-statline was given.
8295if test "${enable_statline+set}" = set; then
8296 enableval="$enable_statline"
8297
8298 if test "$enableval" = yes; then
8299 ac_cv_use_statline='wxUSE_STATLINE=yes'
8300 else
8301 ac_cv_use_statline='wxUSE_STATLINE=no'
8302 fi
8303
8304else
8305
8306 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8307 if test "x$LINE" != x ; then
8308 eval "DEFAULT_$LINE"
8309 else
8310 no_cache=1
8311 fi
8312
8313 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8314
8315fi;
8316
8317 eval "$ac_cv_use_statline"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_STATLINE" = yes; then
8323 echo "$as_me:$LINENO: result: yes" >&5
8324echo "${ECHO_T}yes" >&6
8325 else
8326 echo "$as_me:$LINENO: result: no" >&5
8327echo "${ECHO_T}no" >&6
8328 fi
8329
8330
8331 enablestring=
8332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8333echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8334 no_cache=0
8335 # Check whether --enable-stattext or --disable-stattext was given.
8336if test "${enable_stattext+set}" = set; then
8337 enableval="$enable_stattext"
8338
8339 if test "$enableval" = yes; then
8340 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8341 else
8342 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8343 fi
8344
8345else
8346
8347 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8348 if test "x$LINE" != x ; then
8349 eval "DEFAULT_$LINE"
8350 else
8351 no_cache=1
8352 fi
8353
8354 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8355
8356fi;
8357
8358 eval "$ac_cv_use_stattext"
8359 if test "$no_cache" != 1; then
8360 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8361 fi
8362
8363 if test "$wxUSE_STATTEXT" = yes; then
8364 echo "$as_me:$LINENO: result: yes" >&5
8365echo "${ECHO_T}yes" >&6
8366 else
8367 echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6
8369 fi
8370
8371
8372 enablestring=
8373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8374echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8375 no_cache=0
8376 # Check whether --enable-statusbar or --disable-statusbar was given.
8377if test "${enable_statusbar+set}" = set; then
8378 enableval="$enable_statusbar"
8379
8380 if test "$enableval" = yes; then
8381 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8382 else
8383 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8384 fi
8385
8386else
8387
8388 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8389 if test "x$LINE" != x ; then
8390 eval "DEFAULT_$LINE"
8391 else
8392 no_cache=1
8393 fi
8394
8395 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8396
8397fi;
8398
8399 eval "$ac_cv_use_statusbar"
8400 if test "$no_cache" != 1; then
8401 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8402 fi
8403
8404 if test "$wxUSE_STATUSBAR" = yes; then
8405 echo "$as_me:$LINENO: result: yes" >&5
8406echo "${ECHO_T}yes" >&6
8407 else
8408 echo "$as_me:$LINENO: result: no" >&5
8409echo "${ECHO_T}no" >&6
8410 fi
8411
8412
8413 enablestring=
8414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8415echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8416 no_cache=0
8417 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8418if test "${enable_tabdialog+set}" = set; then
8419 enableval="$enable_tabdialog"
8420
8421 if test "$enableval" = yes; then
8422 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8423 else
8424 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8425 fi
8426
8427else
8428
8429 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8430 if test "x$LINE" != x ; then
8431 eval "DEFAULT_$LINE"
8432 else
8433 no_cache=1
8434 fi
8435
8436 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8437
8438fi;
8439
8440 eval "$ac_cv_use_tabdialog"
8441 if test "$no_cache" != 1; then
8442 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8443 fi
8444
8445 if test "$wxUSE_TABDIALOG" = yes; then
8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
8448 else
8449 echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6
8451 fi
8452
8453
8454 enablestring=
8455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8456echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8457 no_cache=0
8458 # Check whether --enable-textctrl or --disable-textctrl was given.
8459if test "${enable_textctrl+set}" = set; then
8460 enableval="$enable_textctrl"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8464 else
8465 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8466 fi
8467
8468else
8469
8470 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8478
8479fi;
8480
8481 eval "$ac_cv_use_textctrl"
8482 if test "$no_cache" != 1; then
8483 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8484 fi
8485
8486 if test "$wxUSE_TEXTCTRL" = yes; then
8487 echo "$as_me:$LINENO: result: yes" >&5
8488echo "${ECHO_T}yes" >&6
8489 else
8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
8492 fi
8493
8494
8495 enablestring=
8496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8497echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8498 no_cache=0
8499 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8500if test "${enable_togglebtn+set}" = set; then
8501 enableval="$enable_togglebtn"
8502
8503 if test "$enableval" = yes; then
8504 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8505 else
8506 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8507 fi
8508
8509else
8510
8511 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8512 if test "x$LINE" != x ; then
8513 eval "DEFAULT_$LINE"
8514 else
8515 no_cache=1
8516 fi
8517
8518 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8519
8520fi;
8521
8522 eval "$ac_cv_use_togglebtn"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_TOGGLEBTN" = yes; then
8528 echo "$as_me:$LINENO: result: yes" >&5
8529echo "${ECHO_T}yes" >&6
8530 else
8531 echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6
8533 fi
8534
8535
8536 enablestring=
8537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8538echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8539 no_cache=0
8540 # Check whether --enable-toolbar or --disable-toolbar was given.
8541if test "${enable_toolbar+set}" = set; then
8542 enableval="$enable_toolbar"
8543
8544 if test "$enableval" = yes; then
8545 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8546 else
8547 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8548 fi
8549
8550else
8551
8552 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8553 if test "x$LINE" != x ; then
8554 eval "DEFAULT_$LINE"
8555 else
8556 no_cache=1
8557 fi
8558
8559 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8560
8561fi;
8562
8563 eval "$ac_cv_use_toolbar"
8564 if test "$no_cache" != 1; then
8565 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8566 fi
8567
8568 if test "$wxUSE_TOOLBAR" = yes; then
8569 echo "$as_me:$LINENO: result: yes" >&5
8570echo "${ECHO_T}yes" >&6
8571 else
8572 echo "$as_me:$LINENO: result: no" >&5
8573echo "${ECHO_T}no" >&6
8574 fi
8575
8576
8577 enablestring=
8578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8579echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8580 no_cache=0
8581 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8582if test "${enable_tbarnative+set}" = set; then
8583 enableval="$enable_tbarnative"
8584
8585 if test "$enableval" = yes; then
8586 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8587 else
8588 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8589 fi
8590
8591else
8592
8593 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8594 if test "x$LINE" != x ; then
8595 eval "DEFAULT_$LINE"
8596 else
8597 no_cache=1
8598 fi
8599
8600 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8601
8602fi;
8603
8604 eval "$ac_cv_use_tbarnative"
8605 if test "$no_cache" != 1; then
8606 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8607 fi
8608
8609 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611echo "${ECHO_T}yes" >&6
8612 else
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
8615 fi
8616
8617
8618 enablestring=
8619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8620echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8621 no_cache=0
8622 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8623if test "${enable_tbarsmpl+set}" = set; then
8624 enableval="$enable_tbarsmpl"
8625
8626 if test "$enableval" = yes; then
8627 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8628 else
8629 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8630 fi
8631
8632else
8633
8634 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8642
8643fi;
8644
8645 eval "$ac_cv_use_tbarsmpl"
8646 if test "$no_cache" != 1; then
8647 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8648 fi
8649
8650 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8651 echo "$as_me:$LINENO: result: yes" >&5
8652echo "${ECHO_T}yes" >&6
8653 else
8654 echo "$as_me:$LINENO: result: no" >&5
8655echo "${ECHO_T}no" >&6
8656 fi
8657
8658
8659 enablestring=
8660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8661echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8662 no_cache=0
8663 # Check whether --enable-treectrl or --disable-treectrl was given.
8664if test "${enable_treectrl+set}" = set; then
8665 enableval="$enable_treectrl"
8666
8667 if test "$enableval" = yes; then
8668 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8669 else
8670 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8671 fi
8672
8673else
8674
8675 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8676 if test "x$LINE" != x ; then
8677 eval "DEFAULT_$LINE"
8678 else
8679 no_cache=1
8680 fi
8681
8682 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8683
8684fi;
8685
8686 eval "$ac_cv_use_treectrl"
8687 if test "$no_cache" != 1; then
8688 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8689 fi
8690
8691 if test "$wxUSE_TREECTRL" = yes; then
8692 echo "$as_me:$LINENO: result: yes" >&5
8693echo "${ECHO_T}yes" >&6
8694 else
8695 echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6
8697 fi
8698
8699
8700 enablestring=
8701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8702echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8703 no_cache=0
8704 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8705if test "${enable_tipwindow+set}" = set; then
8706 enableval="$enable_tipwindow"
8707
8708 if test "$enableval" = yes; then
8709 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8710 else
8711 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8712 fi
8713
8714else
8715
8716 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8717 if test "x$LINE" != x ; then
8718 eval "DEFAULT_$LINE"
8719 else
8720 no_cache=1
8721 fi
8722
8723 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8724
8725fi;
8726
8727 eval "$ac_cv_use_tipwindow"
8728 if test "$no_cache" != 1; then
8729 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8730 fi
8731
8732 if test "$wxUSE_TIPWINDOW" = yes; then
8733 echo "$as_me:$LINENO: result: yes" >&5
8734echo "${ECHO_T}yes" >&6
8735 else
8736 echo "$as_me:$LINENO: result: no" >&5
8737echo "${ECHO_T}no" >&6
8738 fi
8739
8740
8741 enablestring=
8742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8743echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8744 no_cache=0
8745 # Check whether --enable-popupwin or --disable-popupwin was given.
8746if test "${enable_popupwin+set}" = set; then
8747 enableval="$enable_popupwin"
8748
8749 if test "$enableval" = yes; then
8750 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8751 else
8752 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8753 fi
8754
8755else
8756
8757 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8758 if test "x$LINE" != x ; then
8759 eval "DEFAULT_$LINE"
8760 else
8761 no_cache=1
8762 fi
8763
8764 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8765
8766fi;
8767
8768 eval "$ac_cv_use_popupwin"
8769 if test "$no_cache" != 1; then
8770 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8771 fi
8772
8773 if test "$wxUSE_POPUPWIN" = yes; then
8774 echo "$as_me:$LINENO: result: yes" >&5
8775echo "${ECHO_T}yes" >&6
8776 else
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
8779 fi
8780
8781
8782
8783
8784 enablestring=
8785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8786echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8787 no_cache=0
8788 # Check whether --enable-commondlg or --disable-commondlg was given.
8789if test "${enable_commondlg+set}" = set; then
8790 enableval="$enable_commondlg"
8791
8792 if test "$enableval" = yes; then
8793 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8794 else
8795 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8796 fi
8797
8798else
8799
8800 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8801 if test "x$LINE" != x ; then
8802 eval "DEFAULT_$LINE"
8803 else
8804 no_cache=1
8805 fi
8806
8807 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8808
8809fi;
8810
8811 eval "$ac_cv_use_commondlg"
8812 if test "$no_cache" != 1; then
8813 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8814 fi
8815
8816 if test "$wxUSE_COMMONDLGS" = yes; then
8817 echo "$as_me:$LINENO: result: yes" >&5
8818echo "${ECHO_T}yes" >&6
8819 else
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
8822 fi
8823
8824
8825 enablestring=
8826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8827echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8828 no_cache=0
8829 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8830if test "${enable_choicedlg+set}" = set; then
8831 enableval="$enable_choicedlg"
8832
8833 if test "$enableval" = yes; then
8834 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8835 else
8836 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8837 fi
8838
8839else
8840
8841 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8842 if test "x$LINE" != x ; then
8843 eval "DEFAULT_$LINE"
8844 else
8845 no_cache=1
8846 fi
8847
8848 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8849
8850fi;
8851
8852 eval "$ac_cv_use_choicedlg"
8853 if test "$no_cache" != 1; then
8854 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8855 fi
8856
8857 if test "$wxUSE_CHOICEDLG" = yes; then
8858 echo "$as_me:$LINENO: result: yes" >&5
8859echo "${ECHO_T}yes" >&6
8860 else
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863 fi
8864
8865
8866 enablestring=
8867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8868echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8869 no_cache=0
8870 # Check whether --enable-coldlg or --disable-coldlg was given.
8871if test "${enable_coldlg+set}" = set; then
8872 enableval="$enable_coldlg"
8873
8874 if test "$enableval" = yes; then
8875 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8876 else
8877 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8878 fi
8879
8880else
8881
8882 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8883 if test "x$LINE" != x ; then
8884 eval "DEFAULT_$LINE"
8885 else
8886 no_cache=1
8887 fi
8888
8889 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8890
8891fi;
8892
8893 eval "$ac_cv_use_coldlg"
8894 if test "$no_cache" != 1; then
8895 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8896 fi
8897
8898 if test "$wxUSE_COLOURDLG" = yes; then
8899 echo "$as_me:$LINENO: result: yes" >&5
8900echo "${ECHO_T}yes" >&6
8901 else
8902 echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
8904 fi
8905
8906
8907 enablestring=
8908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8909echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8910 no_cache=0
8911 # Check whether --enable-filedlg or --disable-filedlg was given.
8912if test "${enable_filedlg+set}" = set; then
8913 enableval="$enable_filedlg"
8914
8915 if test "$enableval" = yes; then
8916 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8917 else
8918 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8919 fi
8920
8921else
8922
8923 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8924 if test "x$LINE" != x ; then
8925 eval "DEFAULT_$LINE"
8926 else
8927 no_cache=1
8928 fi
8929
8930 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8931
8932fi;
8933
8934 eval "$ac_cv_use_filedlg"
8935 if test "$no_cache" != 1; then
8936 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8937 fi
8938
8939 if test "$wxUSE_FILEDLG" = yes; then
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
8942 else
8943 echo "$as_me:$LINENO: result: no" >&5
8944echo "${ECHO_T}no" >&6
8945 fi
8946
8947
8948 enablestring=
8949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8950echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8951 no_cache=0
8952 # Check whether --enable-finddlg or --disable-finddlg was given.
8953if test "${enable_finddlg+set}" = set; then
8954 enableval="$enable_finddlg"
8955
8956 if test "$enableval" = yes; then
8957 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8958 else
8959 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8960 fi
8961
8962else
8963
8964 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8965 if test "x$LINE" != x ; then
8966 eval "DEFAULT_$LINE"
8967 else
8968 no_cache=1
8969 fi
8970
8971 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8972
8973fi;
8974
8975 eval "$ac_cv_use_finddlg"
8976 if test "$no_cache" != 1; then
8977 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8978 fi
8979
8980 if test "$wxUSE_FINDREPLDLG" = yes; then
8981 echo "$as_me:$LINENO: result: yes" >&5
8982echo "${ECHO_T}yes" >&6
8983 else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986 fi
8987
8988
8989 enablestring=
8990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8991echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8992 no_cache=0
8993 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8994if test "${enable_fontdlg+set}" = set; then
8995 enableval="$enable_fontdlg"
8996
8997 if test "$enableval" = yes; then
8998 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8999 else
9000 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9001 fi
9002
9003else
9004
9005 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9006 if test "x$LINE" != x ; then
9007 eval "DEFAULT_$LINE"
9008 else
9009 no_cache=1
9010 fi
9011
9012 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9013
9014fi;
9015
9016 eval "$ac_cv_use_fontdlg"
9017 if test "$no_cache" != 1; then
9018 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9019 fi
9020
9021 if test "$wxUSE_FONTDLG" = yes; then
9022 echo "$as_me:$LINENO: result: yes" >&5
9023echo "${ECHO_T}yes" >&6
9024 else
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
9027 fi
9028
9029
9030 enablestring=
9031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9032echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9033 no_cache=0
9034 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9035if test "${enable_dirdlg+set}" = set; then
9036 enableval="$enable_dirdlg"
9037
9038 if test "$enableval" = yes; then
9039 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9040 else
9041 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9042 fi
9043
9044else
9045
9046 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9047 if test "x$LINE" != x ; then
9048 eval "DEFAULT_$LINE"
9049 else
9050 no_cache=1
9051 fi
9052
9053 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9054
9055fi;
9056
9057 eval "$ac_cv_use_dirdlg"
9058 if test "$no_cache" != 1; then
9059 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9060 fi
9061
9062 if test "$wxUSE_DIRDLG" = yes; then
9063 echo "$as_me:$LINENO: result: yes" >&5
9064echo "${ECHO_T}yes" >&6
9065 else
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
9068 fi
9069
9070
9071 enablestring=
9072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9073echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9074 no_cache=0
9075 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9076if test "${enable_msgdlg+set}" = set; then
9077 enableval="$enable_msgdlg"
9078
9079 if test "$enableval" = yes; then
9080 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9081 else
9082 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9083 fi
9084
9085else
9086
9087 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9088 if test "x$LINE" != x ; then
9089 eval "DEFAULT_$LINE"
9090 else
9091 no_cache=1
9092 fi
9093
9094 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9095
9096fi;
9097
9098 eval "$ac_cv_use_msgdlg"
9099 if test "$no_cache" != 1; then
9100 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9101 fi
9102
9103 if test "$wxUSE_MSGDLG" = yes; then
9104 echo "$as_me:$LINENO: result: yes" >&5
9105echo "${ECHO_T}yes" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109 fi
9110
9111
9112 enablestring=
9113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9114echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9115 no_cache=0
9116 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9117if test "${enable_numberdlg+set}" = set; then
9118 enableval="$enable_numberdlg"
9119
9120 if test "$enableval" = yes; then
9121 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9122 else
9123 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9124 fi
9125
9126else
9127
9128 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9129 if test "x$LINE" != x ; then
9130 eval "DEFAULT_$LINE"
9131 else
9132 no_cache=1
9133 fi
9134
9135 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9136
9137fi;
9138
9139 eval "$ac_cv_use_numberdlg"
9140 if test "$no_cache" != 1; then
9141 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9142 fi
9143
9144 if test "$wxUSE_NUMBERDLG" = yes; then
9145 echo "$as_me:$LINENO: result: yes" >&5
9146echo "${ECHO_T}yes" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150 fi
9151
9152
9153 enablestring=
9154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9155echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9156 no_cache=0
9157 # Check whether --enable-splash or --disable-splash was given.
9158if test "${enable_splash+set}" = set; then
9159 enableval="$enable_splash"
9160
9161 if test "$enableval" = yes; then
9162 ac_cv_use_splash='wxUSE_SPLASH=yes'
9163 else
9164 ac_cv_use_splash='wxUSE_SPLASH=no'
9165 fi
9166
9167else
9168
9169 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9170 if test "x$LINE" != x ; then
9171 eval "DEFAULT_$LINE"
9172 else
9173 no_cache=1
9174 fi
9175
9176 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9177
9178fi;
9179
9180 eval "$ac_cv_use_splash"
9181 if test "$no_cache" != 1; then
9182 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9183 fi
9184
9185 if test "$wxUSE_SPLASH" = yes; then
9186 echo "$as_me:$LINENO: result: yes" >&5
9187echo "${ECHO_T}yes" >&6
9188 else
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
9191 fi
9192
9193
9194 enablestring=
9195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9196echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9197 no_cache=0
9198 # Check whether --enable-textdlg or --disable-textdlg was given.
9199if test "${enable_textdlg+set}" = set; then
9200 enableval="$enable_textdlg"
9201
9202 if test "$enableval" = yes; then
9203 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9204 else
9205 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9206 fi
9207
9208else
9209
9210 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9211 if test "x$LINE" != x ; then
9212 eval "DEFAULT_$LINE"
9213 else
9214 no_cache=1
9215 fi
9216
9217 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9218
9219fi;
9220
9221 eval "$ac_cv_use_textdlg"
9222 if test "$no_cache" != 1; then
9223 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9224 fi
9225
9226 if test "$wxUSE_TEXTDLG" = yes; then
9227 echo "$as_me:$LINENO: result: yes" >&5
9228echo "${ECHO_T}yes" >&6
9229 else
9230 echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
9232 fi
9233
9234
9235 enablestring=
9236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9237echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9238 no_cache=0
9239 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9240if test "${enable_tipdlg+set}" = set; then
9241 enableval="$enable_tipdlg"
9242
9243 if test "$enableval" = yes; then
9244 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9245 else
9246 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9247 fi
9248
9249else
9250
9251 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9252 if test "x$LINE" != x ; then
9253 eval "DEFAULT_$LINE"
9254 else
9255 no_cache=1
9256 fi
9257
9258 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9259
9260fi;
9261
9262 eval "$ac_cv_use_tipdlg"
9263 if test "$no_cache" != 1; then
9264 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9265 fi
9266
9267 if test "$wxUSE_STARTUP_TIPS" = yes; then
9268 echo "$as_me:$LINENO: result: yes" >&5
9269echo "${ECHO_T}yes" >&6
9270 else
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
9273 fi
9274
9275
9276 enablestring=
9277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9278echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9279 no_cache=0
9280 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9281if test "${enable_progressdlg+set}" = set; then
9282 enableval="$enable_progressdlg"
9283
9284 if test "$enableval" = yes; then
9285 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9286 else
9287 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9288 fi
9289
9290else
9291
9292 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9293 if test "x$LINE" != x ; then
9294 eval "DEFAULT_$LINE"
9295 else
9296 no_cache=1
9297 fi
9298
9299 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9300
9301fi;
9302
9303 eval "$ac_cv_use_progressdlg"
9304 if test "$no_cache" != 1; then
9305 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9306 fi
9307
9308 if test "$wxUSE_PROGRESSDLG" = yes; then
9309 echo "$as_me:$LINENO: result: yes" >&5
9310echo "${ECHO_T}yes" >&6
9311 else
9312 echo "$as_me:$LINENO: result: no" >&5
9313echo "${ECHO_T}no" >&6
9314 fi
9315
9316
9317 enablestring=
9318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9319echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9320 no_cache=0
9321 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9322if test "${enable_wizarddlg+set}" = set; then
9323 enableval="$enable_wizarddlg"
9324
9325 if test "$enableval" = yes; then
9326 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9327 else
9328 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9329 fi
9330
9331else
9332
9333 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9334 if test "x$LINE" != x ; then
9335 eval "DEFAULT_$LINE"
9336 else
9337 no_cache=1
9338 fi
9339
9340 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9341
9342fi;
9343
9344 eval "$ac_cv_use_wizarddlg"
9345 if test "$no_cache" != 1; then
9346 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9347 fi
9348
9349 if test "$wxUSE_WIZARDDLG" = yes; then
9350 echo "$as_me:$LINENO: result: yes" >&5
9351echo "${ECHO_T}yes" >&6
9352 else
9353 echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6
9355 fi
9356
9357
9358
9359
9360 enablestring=
9361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9362echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9363 no_cache=0
9364 # Check whether --enable-menus or --disable-menus was given.
9365if test "${enable_menus+set}" = set; then
9366 enableval="$enable_menus"
9367
9368 if test "$enableval" = yes; then
9369 ac_cv_use_menus='wxUSE_MENUS=yes'
9370 else
9371 ac_cv_use_menus='wxUSE_MENUS=no'
9372 fi
9373
9374else
9375
9376 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9377 if test "x$LINE" != x ; then
9378 eval "DEFAULT_$LINE"
9379 else
9380 no_cache=1
9381 fi
9382
9383 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9384
9385fi;
9386
9387 eval "$ac_cv_use_menus"
9388 if test "$no_cache" != 1; then
9389 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9390 fi
9391
9392 if test "$wxUSE_MENUS" = yes; then
9393 echo "$as_me:$LINENO: result: yes" >&5
9394echo "${ECHO_T}yes" >&6
9395 else
9396 echo "$as_me:$LINENO: result: no" >&5
9397echo "${ECHO_T}no" >&6
9398 fi
9399
9400
9401 enablestring=
9402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9403echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9404 no_cache=0
9405 # Check whether --enable-miniframe or --disable-miniframe was given.
9406if test "${enable_miniframe+set}" = set; then
9407 enableval="$enable_miniframe"
9408
9409 if test "$enableval" = yes; then
9410 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9411 else
9412 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9413 fi
9414
9415else
9416
9417 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9418 if test "x$LINE" != x ; then
9419 eval "DEFAULT_$LINE"
9420 else
9421 no_cache=1
9422 fi
9423
9424 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9425
9426fi;
9427
9428 eval "$ac_cv_use_miniframe"
9429 if test "$no_cache" != 1; then
9430 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9431 fi
9432
9433 if test "$wxUSE_MINIFRAME" = yes; then
9434 echo "$as_me:$LINENO: result: yes" >&5
9435echo "${ECHO_T}yes" >&6
9436 else
9437 echo "$as_me:$LINENO: result: no" >&5
9438echo "${ECHO_T}no" >&6
9439 fi
9440
9441
9442 enablestring=
9443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9444echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9445 no_cache=0
9446 # Check whether --enable-tooltips or --disable-tooltips was given.
9447if test "${enable_tooltips+set}" = set; then
9448 enableval="$enable_tooltips"
9449
9450 if test "$enableval" = yes; then
9451 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9452 else
9453 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9454 fi
9455
9456else
9457
9458 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9459 if test "x$LINE" != x ; then
9460 eval "DEFAULT_$LINE"
9461 else
9462 no_cache=1
9463 fi
9464
9465 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9466
9467fi;
9468
9469 eval "$ac_cv_use_tooltips"
9470 if test "$no_cache" != 1; then
9471 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9472 fi
9473
9474 if test "$wxUSE_TOOLTIPS" = yes; then
9475 echo "$as_me:$LINENO: result: yes" >&5
9476echo "${ECHO_T}yes" >&6
9477 else
9478 echo "$as_me:$LINENO: result: no" >&5
9479echo "${ECHO_T}no" >&6
9480 fi
9481
9482
9483 enablestring=
9484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9485echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9486 no_cache=0
9487 # Check whether --enable-splines or --disable-splines was given.
9488if test "${enable_splines+set}" = set; then
9489 enableval="$enable_splines"
9490
9491 if test "$enableval" = yes; then
9492 ac_cv_use_splines='wxUSE_SPLINES=yes'
9493 else
9494 ac_cv_use_splines='wxUSE_SPLINES=no'
9495 fi
9496
9497else
9498
9499 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9500 if test "x$LINE" != x ; then
9501 eval "DEFAULT_$LINE"
9502 else
9503 no_cache=1
9504 fi
9505
9506 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9507
9508fi;
9509
9510 eval "$ac_cv_use_splines"
9511 if test "$no_cache" != 1; then
9512 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9513 fi
9514
9515 if test "$wxUSE_SPLINES" = yes; then
9516 echo "$as_me:$LINENO: result: yes" >&5
9517echo "${ECHO_T}yes" >&6
9518 else
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
9521 fi
9522
9523
9524 enablestring=
9525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9526echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9527 no_cache=0
9528 # Check whether --enable-validators or --disable-validators was given.
9529if test "${enable_validators+set}" = set; then
9530 enableval="$enable_validators"
9531
9532 if test "$enableval" = yes; then
9533 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9534 else
9535 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9536 fi
9537
9538else
9539
9540 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9541 if test "x$LINE" != x ; then
9542 eval "DEFAULT_$LINE"
9543 else
9544 no_cache=1
9545 fi
9546
9547 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9548
9549fi;
9550
9551 eval "$ac_cv_use_validators"
9552 if test "$no_cache" != 1; then
9553 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9554 fi
9555
9556 if test "$wxUSE_VALIDATORS" = yes; then
9557 echo "$as_me:$LINENO: result: yes" >&5
9558echo "${ECHO_T}yes" >&6
9559 else
9560 echo "$as_me:$LINENO: result: no" >&5
9561echo "${ECHO_T}no" >&6
9562 fi
9563
9564
9565 enablestring=
9566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9567echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9568 no_cache=0
9569 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9570if test "${enable_busyinfo+set}" = set; then
9571 enableval="$enable_busyinfo"
9572
9573 if test "$enableval" = yes; then
9574 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9575 else
9576 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9577 fi
9578
9579else
9580
9581 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9582 if test "x$LINE" != x ; then
9583 eval "DEFAULT_$LINE"
9584 else
9585 no_cache=1
9586 fi
9587
9588 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9589
9590fi;
9591
9592 eval "$ac_cv_use_busyinfo"
9593 if test "$no_cache" != 1; then
9594 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9595 fi
9596
9597 if test "$wxUSE_BUSYINFO" = yes; then
9598 echo "$as_me:$LINENO: result: yes" >&5
9599echo "${ECHO_T}yes" >&6
9600 else
9601 echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
9603 fi
9604
9605
9606 enablestring=
9607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9608echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9609 no_cache=0
9610 # Check whether --enable-joystick or --disable-joystick was given.
9611if test "${enable_joystick+set}" = set; then
9612 enableval="$enable_joystick"
9613
9614 if test "$enableval" = yes; then
9615 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9616 else
9617 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9618 fi
9619
9620else
9621
9622 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9623 if test "x$LINE" != x ; then
9624 eval "DEFAULT_$LINE"
9625 else
9626 no_cache=1
9627 fi
9628
9629 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9630
9631fi;
9632
9633 eval "$ac_cv_use_joystick"
9634 if test "$no_cache" != 1; then
9635 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9636 fi
9637
9638 if test "$wxUSE_JOYSTICK" = yes; then
9639 echo "$as_me:$LINENO: result: yes" >&5
9640echo "${ECHO_T}yes" >&6
9641 else
9642 echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
9644 fi
9645
9646
9647 enablestring=
9648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9649echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9650 no_cache=0
9651 # Check whether --enable-metafile or --disable-metafile was given.
9652if test "${enable_metafile+set}" = set; then
9653 enableval="$enable_metafile"
9654
9655 if test "$enableval" = yes; then
9656 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9657 else
9658 ac_cv_use_metafile='wxUSE_METAFILE=no'
9659 fi
9660
9661else
9662
9663 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9664 if test "x$LINE" != x ; then
9665 eval "DEFAULT_$LINE"
9666 else
9667 no_cache=1
9668 fi
9669
9670 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9671
9672fi;
9673
9674 eval "$ac_cv_use_metafile"
9675 if test "$no_cache" != 1; then
9676 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9677 fi
9678
9679 if test "$wxUSE_METAFILE" = yes; then
9680 echo "$as_me:$LINENO: result: yes" >&5
9681echo "${ECHO_T}yes" >&6
9682 else
9683 echo "$as_me:$LINENO: result: no" >&5
9684echo "${ECHO_T}no" >&6
9685 fi
9686
9687
9688 enablestring=
9689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9690echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9691 no_cache=0
9692 # Check whether --enable-dragimage or --disable-dragimage was given.
9693if test "${enable_dragimage+set}" = set; then
9694 enableval="$enable_dragimage"
9695
9696 if test "$enableval" = yes; then
9697 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9698 else
9699 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9700 fi
9701
9702else
9703
9704 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9705 if test "x$LINE" != x ; then
9706 eval "DEFAULT_$LINE"
9707 else
9708 no_cache=1
9709 fi
9710
9711 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9712
9713fi;
9714
9715 eval "$ac_cv_use_dragimage"
9716 if test "$no_cache" != 1; then
9717 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9718 fi
9719
9720 if test "$wxUSE_DRAGIMAGE" = yes; then
9721 echo "$as_me:$LINENO: result: yes" >&5
9722echo "${ECHO_T}yes" >&6
9723 else
9724 echo "$as_me:$LINENO: result: no" >&5
9725echo "${ECHO_T}no" >&6
9726 fi
9727
9728
9729 enablestring=
9730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9731echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9732 no_cache=0
9733 # Check whether --enable-accessibility or --disable-accessibility was given.
9734if test "${enable_accessibility+set}" = set; then
9735 enableval="$enable_accessibility"
9736
9737 if test "$enableval" = yes; then
9738 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9739 else
9740 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9741 fi
9742
9743else
9744
9745 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9746 if test "x$LINE" != x ; then
9747 eval "DEFAULT_$LINE"
9748 else
9749 no_cache=1
9750 fi
9751
9752 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9753
9754fi;
9755
9756 eval "$ac_cv_use_accessibility"
9757 if test "$no_cache" != 1; then
9758 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9759 fi
9760
9761 if test "$wxUSE_ACCESSIBILITY" = yes; then
9762 echo "$as_me:$LINENO: result: yes" >&5
9763echo "${ECHO_T}yes" >&6
9764 else
9765 echo "$as_me:$LINENO: result: no" >&5
9766echo "${ECHO_T}no" >&6
9767 fi
9768
9769
9770
9771
9772 enablestring=
9773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9774echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9775 no_cache=0
9776 # Check whether --enable-palette or --disable-palette was given.
9777if test "${enable_palette+set}" = set; then
9778 enableval="$enable_palette"
9779
9780 if test "$enableval" = yes; then
9781 ac_cv_use_palette='wxUSE_PALETTE=yes'
9782 else
9783 ac_cv_use_palette='wxUSE_PALETTE=no'
9784 fi
9785
9786else
9787
9788 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9789 if test "x$LINE" != x ; then
9790 eval "DEFAULT_$LINE"
9791 else
9792 no_cache=1
9793 fi
9794
9795 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9796
9797fi;
9798
9799 eval "$ac_cv_use_palette"
9800 if test "$no_cache" != 1; then
9801 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9802 fi
9803
9804 if test "$wxUSE_PALETTE" = yes; then
9805 echo "$as_me:$LINENO: result: yes" >&5
9806echo "${ECHO_T}yes" >&6
9807 else
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9810 fi
9811
9812
9813 enablestring=
9814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9815echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9816 no_cache=0
9817 # Check whether --enable-image or --disable-image was given.
9818if test "${enable_image+set}" = set; then
9819 enableval="$enable_image"
9820
9821 if test "$enableval" = yes; then
9822 ac_cv_use_image='wxUSE_IMAGE=yes'
9823 else
9824 ac_cv_use_image='wxUSE_IMAGE=no'
9825 fi
9826
9827else
9828
9829 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9830 if test "x$LINE" != x ; then
9831 eval "DEFAULT_$LINE"
9832 else
9833 no_cache=1
9834 fi
9835
9836 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9837
9838fi;
9839
9840 eval "$ac_cv_use_image"
9841 if test "$no_cache" != 1; then
9842 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9843 fi
9844
9845 if test "$wxUSE_IMAGE" = yes; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847echo "${ECHO_T}yes" >&6
9848 else
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
9851 fi
9852
9853
9854 enablestring=
9855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9856echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9857 no_cache=0
9858 # Check whether --enable-gif or --disable-gif was given.
9859if test "${enable_gif+set}" = set; then
9860 enableval="$enable_gif"
9861
9862 if test "$enableval" = yes; then
9863 ac_cv_use_gif='wxUSE_GIF=yes'
9864 else
9865 ac_cv_use_gif='wxUSE_GIF=no'
9866 fi
9867
9868else
9869
9870 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9871 if test "x$LINE" != x ; then
9872 eval "DEFAULT_$LINE"
9873 else
9874 no_cache=1
9875 fi
9876
9877 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9878
9879fi;
9880
9881 eval "$ac_cv_use_gif"
9882 if test "$no_cache" != 1; then
9883 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9884 fi
9885
9886 if test "$wxUSE_GIF" = yes; then
9887 echo "$as_me:$LINENO: result: yes" >&5
9888echo "${ECHO_T}yes" >&6
9889 else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892 fi
9893
9894
9895 enablestring=
9896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9897echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9898 no_cache=0
9899 # Check whether --enable-pcx or --disable-pcx was given.
9900if test "${enable_pcx+set}" = set; then
9901 enableval="$enable_pcx"
9902
9903 if test "$enableval" = yes; then
9904 ac_cv_use_pcx='wxUSE_PCX=yes'
9905 else
9906 ac_cv_use_pcx='wxUSE_PCX=no'
9907 fi
9908
9909else
9910
9911 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9912 if test "x$LINE" != x ; then
9913 eval "DEFAULT_$LINE"
9914 else
9915 no_cache=1
9916 fi
9917
9918 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9919
9920fi;
9921
9922 eval "$ac_cv_use_pcx"
9923 if test "$no_cache" != 1; then
9924 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9925 fi
9926
9927 if test "$wxUSE_PCX" = yes; then
9928 echo "$as_me:$LINENO: result: yes" >&5
9929echo "${ECHO_T}yes" >&6
9930 else
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
9933 fi
9934
9935
9936 enablestring=
9937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9938echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9939 no_cache=0
9940 # Check whether --enable-iff or --disable-iff was given.
9941if test "${enable_iff+set}" = set; then
9942 enableval="$enable_iff"
9943
9944 if test "$enableval" = yes; then
9945 ac_cv_use_iff='wxUSE_IFF=yes'
9946 else
9947 ac_cv_use_iff='wxUSE_IFF=no'
9948 fi
9949
9950else
9951
9952 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9953 if test "x$LINE" != x ; then
9954 eval "DEFAULT_$LINE"
9955 else
9956 no_cache=1
9957 fi
9958
9959 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9960
9961fi;
9962
9963 eval "$ac_cv_use_iff"
9964 if test "$no_cache" != 1; then
9965 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9966 fi
9967
9968 if test "$wxUSE_IFF" = yes; then
9969 echo "$as_me:$LINENO: result: yes" >&5
9970echo "${ECHO_T}yes" >&6
9971 else
9972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
9974 fi
9975
9976
9977 enablestring=
9978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9979echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9980 no_cache=0
9981 # Check whether --enable-pnm or --disable-pnm was given.
9982if test "${enable_pnm+set}" = set; then
9983 enableval="$enable_pnm"
9984
9985 if test "$enableval" = yes; then
9986 ac_cv_use_pnm='wxUSE_PNM=yes'
9987 else
9988 ac_cv_use_pnm='wxUSE_PNM=no'
9989 fi
9990
9991else
9992
9993 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9994 if test "x$LINE" != x ; then
9995 eval "DEFAULT_$LINE"
9996 else
9997 no_cache=1
9998 fi
9999
10000 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10001
10002fi;
10003
10004 eval "$ac_cv_use_pnm"
10005 if test "$no_cache" != 1; then
10006 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10007 fi
10008
10009 if test "$wxUSE_PNM" = yes; then
10010 echo "$as_me:$LINENO: result: yes" >&5
10011echo "${ECHO_T}yes" >&6
10012 else
10013 echo "$as_me:$LINENO: result: no" >&5
10014echo "${ECHO_T}no" >&6
10015 fi
10016
10017
10018 enablestring=
10019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10020echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10021 no_cache=0
10022 # Check whether --enable-xpm or --disable-xpm was given.
10023if test "${enable_xpm+set}" = set; then
10024 enableval="$enable_xpm"
10025
10026 if test "$enableval" = yes; then
10027 ac_cv_use_xpm='wxUSE_XPM=yes'
10028 else
10029 ac_cv_use_xpm='wxUSE_XPM=no'
10030 fi
10031
10032else
10033
10034 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10035 if test "x$LINE" != x ; then
10036 eval "DEFAULT_$LINE"
10037 else
10038 no_cache=1
10039 fi
10040
10041 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10042
10043fi;
10044
10045 eval "$ac_cv_use_xpm"
10046 if test "$no_cache" != 1; then
10047 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10048 fi
10049
10050 if test "$wxUSE_XPM" = yes; then
10051 echo "$as_me:$LINENO: result: yes" >&5
10052echo "${ECHO_T}yes" >&6
10053 else
10054 echo "$as_me:$LINENO: result: no" >&5
10055echo "${ECHO_T}no" >&6
10056 fi
10057
10058
10059 enablestring=
10060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10061echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10062 no_cache=0
10063 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10064if test "${enable_ico_cur+set}" = set; then
10065 enableval="$enable_ico_cur"
10066
10067 if test "$enableval" = yes; then
10068 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10069 else
10070 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10071 fi
10072
10073else
10074
10075 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10076 if test "x$LINE" != x ; then
10077 eval "DEFAULT_$LINE"
10078 else
10079 no_cache=1
10080 fi
10081
10082 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10083
10084fi;
10085
10086 eval "$ac_cv_use_ico_cur"
10087 if test "$no_cache" != 1; then
10088 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10089 fi
10090
10091 if test "$wxUSE_ICO_CUR" = yes; then
10092 echo "$as_me:$LINENO: result: yes" >&5
10093echo "${ECHO_T}yes" >&6
10094 else
10095 echo "$as_me:$LINENO: result: no" >&5
10096echo "${ECHO_T}no" >&6
10097 fi
10098
10099
10100fi
10101
10102
10103
ceec2216
RL
10104# Check whether --with-flavour or --without-flavour was given.
10105if test "${with_flavour+set}" = set; then
10106 withval="$with_flavour"
10107 WX_FLAVOUR="$withval"
10108fi;
10109
10110
10111
a848cd7e
SC
10112 enablestring=
10113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10114echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10115 no_cache=0
10116 # Check whether --enable-official_build or --disable-official_build was given.
10117if test "${enable_official_build+set}" = set; then
10118 enableval="$enable_official_build"
10119
10120 if test "$enableval" = yes; then
10121 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10122 else
10123 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10124 fi
10125
10126else
10127
10128 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10129 if test "x$LINE" != x ; then
10130 eval "DEFAULT_$LINE"
10131 else
10132 no_cache=1
10133 fi
10134
10135 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10136
10137fi;
10138
10139 eval "$ac_cv_use_official_build"
10140 if test "$no_cache" != 1; then
10141 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10142 fi
10143
10144 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10145 echo "$as_me:$LINENO: result: yes" >&5
10146echo "${ECHO_T}yes" >&6
10147 else
10148 echo "$as_me:$LINENO: result: no" >&5
10149echo "${ECHO_T}no" >&6
10150 fi
10151
10152# Check whether --enable-vendor or --disable-vendor was given.
10153if test "${enable_vendor+set}" = set; then
10154 enableval="$enable_vendor"
10155 VENDOR="$enableval"
10156fi;
10157if test "x$VENDOR" = "x"; then
10158 VENDOR="custom"
10159fi
10160
a848cd7e
SC
10161
10162
10163
10164 echo "saving argument cache $wx_arg_cache_file"
10165 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10166
10167
10168
10169echo "$as_me:$LINENO: checking for toolkit" >&5
10170echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10171
10172# In Wine, we need to default to MSW, not GTK or MOTIF
10173if test "$wxUSE_WINE" = "yes"; then
10174 DEFAULT_DEFAULT_wxUSE_GTK=0
10175 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10176 DEFAULT_DEFAULT_wxUSE_MSW=1
10177 wxUSE_SHARED=no
10178fi
10179
10180if test "$wxUSE_GUI" = "yes"; then
10181
10182 if test "$USE_BEOS" = 1; then
10183 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10184echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10185 { (exit 1); exit 1; }; }
10186 fi
10187
10188 if test "$TOOLKIT_GIVEN" = 1; then
10189 for toolkit in `echo $ALL_TOOLKITS`; do
10190 var=wxUSE_$toolkit
10191 eval "value=\$${var}"
10192 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10193 done
10194 else
10195 for toolkit in `echo $ALL_TOOLKITS`; do
10196 if test "$has_toolkit_in_cache" != 1; then
10197 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10198 else
10199 var=DEFAULT_wxUSE_$toolkit
10200 fi
10201 eval "wxUSE_$toolkit=\$${var}"
10202 done
10203 fi
10204
10205 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10206 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10207 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10208
10209 case "${host}" in
10210 *-pc-os2_emx | *-pc-os2-emx )
10211 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10212 esac
10213
10214 case "$NUM_TOOLKITS" in
10215 1)
10216 ;;
10217 0)
10218 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10219echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10220 { (exit 1); exit 1; }; }
10221 ;;
10222 *)
10223 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10224echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10225 { (exit 1); exit 1; }; }
10226 esac
10227
10228 for toolkit in `echo $ALL_TOOLKITS`; do
10229 var=wxUSE_$toolkit
10230 eval "value=\$${var}"
10231 if test "x$value" != x; then
10232 cache_var=CACHE_$toolkit
10233 eval "cache=\$${cache_var}"
10234 if test "$cache" = 1; then
10235 echo "$var=$value" >> ${wx_arg_cache_file}
10236 fi
10237 if test "$value" = 1; then
10238 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10239 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10240echo "${ECHO_T}$toolkit_echo" >&6
10241 fi
10242 fi
10243 done
10244else
10245 if test "x$host_alias" != "x"; then
10246 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10247echo "${ECHO_T}base ($host_alias hosted) only" >&6
10248 else
10249 echo "$as_me:$LINENO: result: base only" >&5
10250echo "${ECHO_T}base only" >&6
10251 fi
10252fi
10253
10254wants_win32=0
10255doesnt_want_win32=0
10256case "${host}" in
10257 *-*-cygwin*)
10258 if test "$wxUSE_MSW" = 1 ; then
10259 wants_win32=1
10260 else
10261 doesnt_want_win32=1
10262 fi
10263 ;;
10264 *-*-mingw*)
10265 wants_win32=1
10266 ;;
10267esac
10268
10269if test "$wxUSE_WINE" = "yes"; then
10270 wants_win32=1
10271 CC=winegcc
10272 CXX=wineg++
10273 RESCOMP=wrc
10274 LDFLAGS_GUI="-mwindows"
10275fi
10276
10277if test "$wants_win32" = 1 ; then
10278 USE_UNIX=0
10279 USE_WIN32=1
10280 cat >>confdefs.h <<\_ACEOF
10281#define __WIN32__ 1
10282_ACEOF
10283
10284 cat >>confdefs.h <<\_ACEOF
10285#define __WIN95__ 1
10286_ACEOF
10287
10288 cat >>confdefs.h <<\_ACEOF
10289#define __WINDOWS__ 1
10290_ACEOF
10291
10292 cat >>confdefs.h <<\_ACEOF
10293#define __GNUWIN32__ 1
10294_ACEOF
10295
10296 cat >>confdefs.h <<\_ACEOF
10297#define STRICT 1
10298_ACEOF
10299
10300 cat >>confdefs.h <<\_ACEOF
10301#define WINVER 0x0400
10302_ACEOF
10303
10304fi
10305if test "$doesnt_want_win32" = 1 ; then
10306 USE_UNIX=1
10307 USE_WIN32=0
10308fi
10309
10310if test "$USE_UNIX" = 1 ; then
10311 wxUSE_UNIX=yes
10312 cat >>confdefs.h <<\_ACEOF
10313#define __UNIX__ 1
10314_ACEOF
10315
10316fi
10317
10318
10319cat >confcache <<\_ACEOF
10320# This file is a shell script that caches the results of configure
10321# tests run on this system so they can be shared between configure
10322# scripts and configure runs, see configure's option --config-cache.
10323# It is not useful on other systems. If it contains results you don't
10324# want to keep, you may remove or edit it.
10325#
10326# config.status only pays attention to the cache file if you give it
10327# the --recheck option to rerun configure.
10328#
10329# `ac_cv_env_foo' variables (set or unset) will be overridden when
10330# loading this file, other *unset* `ac_cv_foo' will be assigned the
10331# following values.
10332
10333_ACEOF
10334
10335# The following way of writing the cache mishandles newlines in values,
10336# but we know of no workaround that is simple, portable, and efficient.
10337# So, don't put newlines in cache variables' values.
10338# Ultrix sh set writes to stderr and can't be redirected directly,
10339# and sets the high bit in the cache file unless we assign to the vars.
10340{
10341 (set) 2>&1 |
10342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10343 *ac_space=\ *)
10344 # `set' does not quote correctly, so add quotes (double-quote
10345 # substitution turns \\\\ into \\, and sed turns \\ into \).
10346 sed -n \
ac1cb8d3
VS
10347 "s/'/'\\\\''/g;
10348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10349 ;;
10350 *)
10351 # `set' quotes correctly as required by POSIX, so do not add quotes.
10352 sed -n \
ac1cb8d3 10353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10354 ;;
10355 esac;
10356} |
10357 sed '
10358 t clear
10359 : clear
10360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10361 t end
10362 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10363 : end' >>confcache
10364if diff $cache_file confcache >/dev/null 2>&1; then :; else
10365 if test -w $cache_file; then
10366 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10367 cat confcache >$cache_file
10368 else
10369 echo "not updating unwritable cache $cache_file"
10370 fi
10371fi
10372rm -f confcache
10373
10374if test "$build" != "$host" ; then
1e9e8aba 10375 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10376 CC=$host_alias-gcc
10377 CXX=$host_alias-c++
10378 AR=$host_alias-ar
10379 RANLIB=$host_alias-ranlib
10380 DLLTOOL=$host_alias-dlltool
10381 RESCOMP=$host_alias-windres
a848cd7e 10382 STRIP=$host_alias-strip
1e9e8aba
DE
10383 elif test "x$CC" '!=' "x"; then
10384 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10385 else
10386 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10387echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10388 { (exit 1); exit 1; }; }
10389 fi
10390fi
10391
10392CFLAGS=${CFLAGS:=}
10393ac_ext=c
10394ac_cpp='$CPP $CPPFLAGS'
10395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397ac_compiler_gnu=$ac_cv_c_compiler_gnu
10398if test -n "$ac_tool_prefix"; then
10399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10400set dummy ${ac_tool_prefix}gcc; ac_word=$2
10401echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10403if test "${ac_cv_prog_CC+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 if test -n "$CC"; then
10407 ac_cv_prog_CC="$CC" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
10422
10423fi
10424fi
10425CC=$ac_cv_prog_CC
10426if test -n "$CC"; then
10427 echo "$as_me:$LINENO: result: $CC" >&5
10428echo "${ECHO_T}$CC" >&6
10429else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432fi
10433
10434fi
10435if test -z "$ac_cv_prog_CC"; then
10436 ac_ct_CC=$CC
10437 # Extract the first word of "gcc", so it can be a program name with args.
10438set dummy gcc; ac_word=$2
10439echo "$as_me:$LINENO: checking for $ac_word" >&5
10440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444 if test -n "$ac_ct_CC"; then
10445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10446else
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_ac_ct_CC="gcc"
10455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10457 fi
10458done
10459done
10460
10461fi
10462fi
10463ac_ct_CC=$ac_cv_prog_ac_ct_CC
10464if test -n "$ac_ct_CC"; then
10465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10466echo "${ECHO_T}$ac_ct_CC" >&6
10467else
10468 echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
10470fi
10471
10472 CC=$ac_ct_CC
10473else
10474 CC="$ac_cv_prog_CC"
10475fi
10476
10477if test -z "$CC"; then
10478 if test -n "$ac_tool_prefix"; then
10479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10480set dummy ${ac_tool_prefix}cc; ac_word=$2
10481echo "$as_me:$LINENO: checking for $ac_word" >&5
10482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10483if test "${ac_cv_prog_CC+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 if test -n "$CC"; then
10487 ac_cv_prog_CC="$CC" # Let the user override the test.
10488else
10489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $PATH
10491do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_CC="${ac_tool_prefix}cc"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10499 fi
10500done
10501done
10502
10503fi
10504fi
10505CC=$ac_cv_prog_CC
10506if test -n "$CC"; then
10507 echo "$as_me:$LINENO: result: $CC" >&5
10508echo "${ECHO_T}$CC" >&6
10509else
10510 echo "$as_me:$LINENO: result: no" >&5
10511echo "${ECHO_T}no" >&6
10512fi
10513
10514fi
10515if test -z "$ac_cv_prog_CC"; then
10516 ac_ct_CC=$CC
10517 # Extract the first word of "cc", so it can be a program name with args.
10518set dummy cc; ac_word=$2
10519echo "$as_me:$LINENO: checking for $ac_word" >&5
10520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523else
10524 if test -n "$ac_ct_CC"; then
10525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10526else
10527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528for as_dir in $PATH
10529do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_prog_ac_ct_CC="cc"
10535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538done
10539done
10540
10541fi
10542fi
10543ac_ct_CC=$ac_cv_prog_ac_ct_CC
10544if test -n "$ac_ct_CC"; then
10545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10546echo "${ECHO_T}$ac_ct_CC" >&6
10547else
10548 echo "$as_me:$LINENO: result: no" >&5
10549echo "${ECHO_T}no" >&6
10550fi
10551
10552 CC=$ac_ct_CC
10553else
10554 CC="$ac_cv_prog_CC"
10555fi
10556
10557fi
10558if test -z "$CC"; then
10559 # Extract the first word of "cc", so it can be a program name with args.
10560set dummy cc; ac_word=$2
10561echo "$as_me:$LINENO: checking for $ac_word" >&5
10562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10563if test "${ac_cv_prog_CC+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566 if test -n "$CC"; then
10567 ac_cv_prog_CC="$CC" # Let the user override the test.
10568else
10569 ac_prog_rejected=no
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10578 ac_prog_rejected=yes
10579 continue
10580 fi
10581 ac_cv_prog_CC="cc"
10582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585done
10586done
10587
10588if test $ac_prog_rejected = yes; then
10589 # We found a bogon in the path, so make sure we never use it.
10590 set dummy $ac_cv_prog_CC
10591 shift
10592 if test $# != 0; then
10593 # We chose a different compiler from the bogus one.
10594 # However, it has the same basename, so the bogon will be chosen
10595 # first if we set CC to just the basename; use the full file name.
10596 shift
10597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10598 fi
10599fi
10600fi
10601fi
10602CC=$ac_cv_prog_CC
10603if test -n "$CC"; then
10604 echo "$as_me:$LINENO: result: $CC" >&5
10605echo "${ECHO_T}$CC" >&6
10606else
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
10609fi
10610
10611fi
10612if test -z "$CC"; then
10613 if test -n "$ac_tool_prefix"; then
10614 for ac_prog in cl
10615 do
10616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10618echo "$as_me:$LINENO: checking for $ac_word" >&5
10619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10620if test "${ac_cv_prog_CC+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 if test -n "$CC"; then
10624 ac_cv_prog_CC="$CC" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639
10640fi
10641fi
10642CC=$ac_cv_prog_CC
10643if test -n "$CC"; then
10644 echo "$as_me:$LINENO: result: $CC" >&5
10645echo "${ECHO_T}$CC" >&6
10646else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649fi
10650
10651 test -n "$CC" && break
10652 done
10653fi
10654if test -z "$CC"; then
10655 ac_ct_CC=$CC
10656 for ac_prog in cl
10657do
10658 # Extract the first word of "$ac_prog", so it can be a program name with args.
10659set dummy $ac_prog; ac_word=$2
10660echo "$as_me:$LINENO: checking for $ac_word" >&5
10661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 if test -n "$ac_ct_CC"; then
10666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10667else
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_prog_ac_ct_CC="$ac_prog"
10676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680done
10681
10682fi
10683fi
10684ac_ct_CC=$ac_cv_prog_ac_ct_CC
10685if test -n "$ac_ct_CC"; then
10686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10687echo "${ECHO_T}$ac_ct_CC" >&6
10688else
10689 echo "$as_me:$LINENO: result: no" >&5
10690echo "${ECHO_T}no" >&6
10691fi
10692
10693 test -n "$ac_ct_CC" && break
10694done
10695
10696 CC=$ac_ct_CC
10697fi
10698
10699fi
10700
10701
10702test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10703See \`config.log' for more details." >&5
10704echo "$as_me: error: no acceptable C compiler found in \$PATH
10705See \`config.log' for more details." >&2;}
10706 { (exit 1); exit 1; }; }
10707
10708# Provide some information about the compiler.
10709echo "$as_me:$LINENO:" \
10710 "checking for C compiler version" >&5
10711ac_compiler=`set X $ac_compile; echo $2`
10712{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10713 (eval $ac_compiler --version </dev/null >&5) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }
10717{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10718 (eval $ac_compiler -v </dev/null >&5) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
10722{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10723 (eval $ac_compiler -V </dev/null >&5) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }
10727
10728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734
10735int
10736main ()
10737{
10738
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743ac_clean_files_save=$ac_clean_files
10744ac_clean_files="$ac_clean_files a.out a.exe b.out"
10745# Try to create an executable without -o first, disregard a.out.
10746# It will help us diagnose broken compilers, and finding out an intuition
10747# of exeext.
ac1cb8d3
VS
10748echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10749echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10750ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10751if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10752 (eval $ac_link_default) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; then
10756 # Find the output, starting from the most likely. This scheme is
10757# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10758# resort.
10759
10760# Be careful to initialize this variable, since it used to be cached.
10761# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10762ac_cv_exeext=
10763# b.out is created by i960 compilers.
10764for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10765do
10766 test -f "$ac_file" || continue
10767 case $ac_file in
10768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10769 ;;
a848cd7e 10770 conftest.$ac_ext )
ac1cb8d3
VS
10771 # This is the source file.
10772 ;;
a848cd7e 10773 [ab].out )
ac1cb8d3
VS
10774 # We found the default executable, but exeext='' is most
10775 # certainly right.
10776 break;;
a848cd7e 10777 *.* )
ac1cb8d3
VS
10778 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10779 # FIXME: I believe we export ac_cv_exeext for Libtool,
10780 # but it would be cool to find out if it's true. Does anybody
10781 # maintain Libtool? --akim.
10782 export ac_cv_exeext
10783 break;;
a848cd7e 10784 * )
ac1cb8d3 10785 break;;
a848cd7e
SC
10786 esac
10787done
10788else
10789 echo "$as_me: failed program was:" >&5
10790sed 's/^/| /' conftest.$ac_ext >&5
10791
10792{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: C compiler cannot create executables
10795See \`config.log' for more details." >&2;}
10796 { (exit 77); exit 77; }; }
10797fi
10798
10799ac_exeext=$ac_cv_exeext
10800echo "$as_me:$LINENO: result: $ac_file" >&5
10801echo "${ECHO_T}$ac_file" >&6
10802
10803# Check the compiler produces executables we can run. If not, either
10804# the compiler is broken, or we cross compile.
10805echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10806echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10807# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10808# If not cross compiling, check that we can run a simple program.
10809if test "$cross_compiling" != yes; then
10810 if { ac_try='./$ac_file'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 cross_compiling=no
10817 else
10818 if test "$cross_compiling" = maybe; then
10819 cross_compiling=yes
10820 else
10821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10822If you meant to cross compile, use \`--host'.
10823See \`config.log' for more details." >&5
10824echo "$as_me: error: cannot run C compiled programs.
10825If you meant to cross compile, use \`--host'.
10826See \`config.log' for more details." >&2;}
10827 { (exit 1); exit 1; }; }
10828 fi
10829 fi
10830fi
10831echo "$as_me:$LINENO: result: yes" >&5
10832echo "${ECHO_T}yes" >&6
10833
10834rm -f a.out a.exe conftest$ac_cv_exeext b.out
10835ac_clean_files=$ac_clean_files_save
10836# Check the compiler produces executables we can run. If not, either
10837# the compiler is broken, or we cross compile.
10838echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10839echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10840echo "$as_me:$LINENO: result: $cross_compiling" >&5
10841echo "${ECHO_T}$cross_compiling" >&6
10842
10843echo "$as_me:$LINENO: checking for suffix of executables" >&5
10844echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; then
10850 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10851# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10852# work properly (i.e., refer to `conftest.exe'), while it won't with
10853# `rm'.
10854for ac_file in conftest.exe conftest conftest.*; do
10855 test -f "$ac_file" || continue
10856 case $ac_file in
10857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10859 export ac_cv_exeext
10860 break;;
a848cd7e
SC
10861 * ) break;;
10862 esac
10863done
10864else
10865 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10866See \`config.log' for more details." >&5
10867echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10868See \`config.log' for more details." >&2;}
10869 { (exit 1); exit 1; }; }
10870fi
10871
10872rm -f conftest$ac_cv_exeext
10873echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10874echo "${ECHO_T}$ac_cv_exeext" >&6
10875
10876rm -f conftest.$ac_ext
10877EXEEXT=$ac_cv_exeext
10878ac_exeext=$EXEEXT
10879echo "$as_me:$LINENO: checking for suffix of object files" >&5
10880echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10881if test "${ac_cv_objext+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 cat >conftest.$ac_ext <<_ACEOF
10885/* confdefs.h. */
10886_ACEOF
10887cat confdefs.h >>conftest.$ac_ext
10888cat >>conftest.$ac_ext <<_ACEOF
10889/* end confdefs.h. */
10890
10891int
10892main ()
10893{
10894
10895 ;
10896 return 0;
10897}
10898_ACEOF
10899rm -f conftest.o conftest.obj
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; then
10905 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10906 case $ac_file in
10907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10909 break;;
10910 esac
10911done
10912else
10913 echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
10915
10916{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10917See \`config.log' for more details." >&5
10918echo "$as_me: error: cannot compute suffix of object files: cannot compile
10919See \`config.log' for more details." >&2;}
10920 { (exit 1); exit 1; }; }
10921fi
10922
10923rm -f conftest.$ac_cv_objext conftest.$ac_ext
10924fi
10925echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10926echo "${ECHO_T}$ac_cv_objext" >&6
10927OBJEXT=$ac_cv_objext
10928ac_objext=$OBJEXT
10929echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10930echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10931if test "${ac_cv_c_compiler_gnu+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933else
10934 cat >conftest.$ac_ext <<_ACEOF
10935/* confdefs.h. */
10936_ACEOF
10937cat confdefs.h >>conftest.$ac_ext
10938cat >>conftest.$ac_ext <<_ACEOF
10939/* end confdefs.h. */
10940
10941int
10942main ()
10943{
10944#ifndef __GNUC__
10945 choke me
10946#endif
10947
10948 ;
10949 return 0;
10950}
10951_ACEOF
10952rm -f conftest.$ac_objext
10953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10954 (eval $ac_compile) 2>conftest.er1
a848cd7e 10955 ac_status=$?
ac1cb8d3
VS
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
a848cd7e
SC
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
fc480dc1
DE
10961 { ac_try='test -z "$ac_c_werror_flag"
10962 || test ! -s conftest.err'
ac1cb8d3
VS
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_compiler_gnu=yes
10975else
10976 echo "$as_me: failed program was:" >&5
10977sed 's/^/| /' conftest.$ac_ext >&5
10978
10979ac_compiler_gnu=no
10980fi
ac1cb8d3 10981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10982ac_cv_c_compiler_gnu=$ac_compiler_gnu
10983
10984fi
10985echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10986echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10987GCC=`test $ac_compiler_gnu = yes && echo yes`
10988ac_test_CFLAGS=${CFLAGS+set}
10989ac_save_CFLAGS=$CFLAGS
10990CFLAGS="-g"
10991echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10992echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10993if test "${ac_cv_prog_cc_g+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995else
10996 cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h. */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h. */
11002
11003int
11004main ()
11005{
11006
11007 ;
11008 return 0;
11009}
11010_ACEOF
11011rm -f conftest.$ac_objext
11012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11013 (eval $ac_compile) 2>conftest.er1
a848cd7e 11014 ac_status=$?
ac1cb8d3
VS
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
a848cd7e
SC
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
fc480dc1
DE
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
ac1cb8d3
VS
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_prog_cc_g=yes
11034else
11035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038ac_cv_prog_cc_g=no
11039fi
ac1cb8d3 11040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11041fi
11042echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11043echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11044if test "$ac_test_CFLAGS" = set; then
11045 CFLAGS=$ac_save_CFLAGS
11046elif test $ac_cv_prog_cc_g = yes; then
11047 if test "$GCC" = yes; then
11048 CFLAGS="-g -O2"
11049 else
11050 CFLAGS="-g"
11051 fi
11052else
11053 if test "$GCC" = yes; then
11054 CFLAGS="-O2"
11055 else
11056 CFLAGS=
11057 fi
11058fi
11059echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11060echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11061if test "${ac_cv_prog_cc_stdc+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063else
11064 ac_cv_prog_cc_stdc=no
11065ac_save_CC=$CC
11066cat >conftest.$ac_ext <<_ACEOF
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
11071/* end confdefs.h. */
11072#include <stdarg.h>
11073#include <stdio.h>
11074#include <sys/types.h>
11075#include <sys/stat.h>
11076/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11077struct buf { int x; };
11078FILE * (*rcsopen) (struct buf *, struct stat *, int);
11079static char *e (p, i)
11080 char **p;
11081 int i;
11082{
11083 return p[i];
11084}
11085static char *f (char * (*g) (char **, int), char **p, ...)
11086{
11087 char *s;
11088 va_list v;
11089 va_start (v,p);
11090 s = g (p, va_arg (v,int));
11091 va_end (v);
11092 return s;
11093}
ac1cb8d3
VS
11094
11095/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11096 function prototypes and stuff, but not '\xHH' hex character constants.
11097 These don't provoke an error unfortunately, instead are silently treated
11098 as 'x'. The following induces an error, until -std1 is added to get
11099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11100 array size at least. It's necessary to write '\x00'==0 to get something
11101 that's true only with -std1. */
11102int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11103
a848cd7e
SC
11104int test (int i, double x);
11105struct s1 {int (*f) (int a);};
11106struct s2 {int (*f) (double a);};
11107int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11108int argc;
11109char **argv;
11110int
11111main ()
11112{
11113return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11114 ;
11115 return 0;
11116}
11117_ACEOF
11118# Don't try gcc -ansi; that turns off useful extensions and
11119# breaks some systems' header files.
11120# AIX -qlanglvl=ansi
11121# Ultrix and OSF/1 -std1
11122# HP-UX 10.20 and later -Ae
11123# HP-UX older versions -Aa -D_HPUX_SOURCE
11124# SVR4 -Xc -D__EXTENSIONS__
11125for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11126do
11127 CC="$ac_save_CC $ac_arg"
11128 rm -f conftest.$ac_objext
11129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11130 (eval $ac_compile) 2>conftest.er1
a848cd7e 11131 ac_status=$?
ac1cb8d3
VS
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
a848cd7e
SC
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
fc480dc1
DE
11137 { ac_try='test -z "$ac_c_werror_flag"
11138 || test ! -s conftest.err'
ac1cb8d3
VS
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_prog_cc_stdc=$ac_arg
11151break
11152else
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156fi
ac1cb8d3 11157rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11158done
11159rm -f conftest.$ac_ext conftest.$ac_objext
11160CC=$ac_save_CC
11161
11162fi
11163
11164case "x$ac_cv_prog_cc_stdc" in
11165 x|xno)
11166 echo "$as_me:$LINENO: result: none needed" >&5
11167echo "${ECHO_T}none needed" >&6 ;;
11168 *)
11169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11170echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11171 CC="$CC $ac_cv_prog_cc_stdc" ;;
11172esac
11173
11174# Some people use a C++ compiler to compile C. Since we use `exit',
11175# in C++ we need to declare it. In case someone uses the same compiler
11176# for both compiling C and C++ we need to have the C++ compiler decide
11177# the declaration of exit, since it's the most demanding environment.
11178cat >conftest.$ac_ext <<_ACEOF
11179#ifndef __cplusplus
11180 choke me
11181#endif
11182_ACEOF
11183rm -f conftest.$ac_objext
11184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11185 (eval $ac_compile) 2>conftest.er1
a848cd7e 11186 ac_status=$?
ac1cb8d3
VS
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
a848cd7e
SC
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
fc480dc1
DE
11192 { ac_try='test -z "$ac_c_werror_flag"
11193 || test ! -s conftest.err'
ac1cb8d3
VS
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 for ac_declaration in \
ac1cb8d3 11206 '' \
a848cd7e
SC
11207 'extern "C" void std::exit (int) throw (); using std::exit;' \
11208 'extern "C" void std::exit (int); using std::exit;' \
11209 'extern "C" void exit (int) throw ();' \
11210 'extern "C" void exit (int);' \
11211 'void exit (int);'
11212do
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
de59c161 11219$ac_declaration
ac1cb8d3 11220#include <stdlib.h>
a848cd7e
SC
11221int
11222main ()
11223{
11224exit (42);
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.$ac_objext
11230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11231 (eval $ac_compile) 2>conftest.er1
a848cd7e 11232 ac_status=$?
ac1cb8d3
VS
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
a848cd7e
SC
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
fc480dc1
DE
11238 { ac_try='test -z "$ac_c_werror_flag"
11239 || test ! -s conftest.err'
ac1cb8d3
VS
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 :
11252else
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256continue
11257fi
ac1cb8d3 11258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11259 cat >conftest.$ac_ext <<_ACEOF
11260/* confdefs.h. */
11261_ACEOF
11262cat confdefs.h >>conftest.$ac_ext
11263cat >>conftest.$ac_ext <<_ACEOF
11264/* end confdefs.h. */
11265$ac_declaration
11266int
11267main ()
11268{
11269exit (42);
11270 ;
11271 return 0;
11272}
11273_ACEOF
11274rm -f conftest.$ac_objext
11275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11276 (eval $ac_compile) 2>conftest.er1
a848cd7e 11277 ac_status=$?
ac1cb8d3
VS
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
a848cd7e
SC
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
fc480dc1
DE
11283 { ac_try='test -z "$ac_c_werror_flag"
11284 || test ! -s conftest.err'
ac1cb8d3
VS
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; } &&
11290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 break
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301fi
ac1cb8d3 11302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11303done
11304rm -f conftest*
11305if test -n "$ac_declaration"; then
11306 echo '#ifdef __cplusplus' >>confdefs.h
11307 echo $ac_declaration >>confdefs.h
11308 echo '#endif' >>confdefs.h
11309fi
11310
11311else
11312 echo "$as_me: failed program was:" >&5
11313sed 's/^/| /' conftest.$ac_ext >&5
11314
11315fi
ac1cb8d3 11316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11317ac_ext=c
11318ac_cpp='$CPP $CPPFLAGS'
11319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11321ac_compiler_gnu=$ac_cv_c_compiler_gnu
11322
11323
11324
11325ac_ext=c
11326ac_cpp='$CPP $CPPFLAGS'
11327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329ac_compiler_gnu=$ac_cv_c_compiler_gnu
11330echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11331echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11332# On Suns, sometimes $CPP names a directory.
11333if test -n "$CPP" && test -d "$CPP"; then
11334 CPP=
11335fi
11336if test -z "$CPP"; then
11337 if test "${ac_cv_prog_CPP+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 # Double quotes because CPP needs to be expanded
11341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11342 do
11343 ac_preproc_ok=false
11344for ac_c_preproc_warn_flag in '' yes
11345do
11346 # Use a header file that comes with gcc, so configuring glibc
11347 # with a fresh cross-compiler works.
11348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11349 # <limits.h> exists even on freestanding compilers.
11350 # On the NeXT, cc -E runs the code through the compiler's parser,
11351 # not just through cpp. "Syntax error" is here to catch this case.
11352 cat >conftest.$ac_ext <<_ACEOF
11353/* confdefs.h. */
11354_ACEOF
11355cat confdefs.h >>conftest.$ac_ext
11356cat >>conftest.$ac_ext <<_ACEOF
11357/* end confdefs.h. */
11358#ifdef __STDC__
11359# include <limits.h>
11360#else
11361# include <assert.h>
11362#endif
ac1cb8d3 11363 Syntax error
a848cd7e
SC
11364_ACEOF
11365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } >/dev/null; then
11373 if test -s conftest.err; then
11374 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11376 else
11377 ac_cpp_err=
11378 fi
11379else
11380 ac_cpp_err=yes
11381fi
11382if test -z "$ac_cpp_err"; then
11383 :
11384else
11385 echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 # Broken: fails on valid input.
11389continue
11390fi
11391rm -f conftest.err conftest.$ac_ext
11392
11393 # OK, works on sane cases. Now check whether non-existent headers
11394 # can be detected and how.
11395 cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
11401#include <ac_nonexistent.h>
11402_ACEOF
11403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } >/dev/null; then
11411 if test -s conftest.err; then
11412 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11414 else
11415 ac_cpp_err=
11416 fi
11417else
11418 ac_cpp_err=yes
11419fi
11420if test -z "$ac_cpp_err"; then
11421 # Broken: success on invalid input.
11422continue
11423else
11424 echo "$as_me: failed program was:" >&5
11425sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 # Passes both tests.
11428ac_preproc_ok=:
11429break
11430fi
11431rm -f conftest.err conftest.$ac_ext
11432
11433done
11434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11435rm -f conftest.err conftest.$ac_ext
11436if $ac_preproc_ok; then
11437 break
11438fi
11439
11440 done
11441 ac_cv_prog_CPP=$CPP
11442
11443fi
11444 CPP=$ac_cv_prog_CPP
11445else
11446 ac_cv_prog_CPP=$CPP
11447fi
11448echo "$as_me:$LINENO: result: $CPP" >&5
11449echo "${ECHO_T}$CPP" >&6
11450ac_preproc_ok=false
11451for ac_c_preproc_warn_flag in '' yes
11452do
11453 # Use a header file that comes with gcc, so configuring glibc
11454 # with a fresh cross-compiler works.
11455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11456 # <limits.h> exists even on freestanding compilers.
11457 # On the NeXT, cc -E runs the code through the compiler's parser,
11458 # not just through cpp. "Syntax error" is here to catch this case.
11459 cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
11465#ifdef __STDC__
11466# include <limits.h>
11467#else
11468# include <assert.h>
11469#endif
ac1cb8d3 11470 Syntax error
a848cd7e
SC
11471_ACEOF
11472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11474 ac_status=$?
11475 grep -v '^ *+' conftest.er1 >conftest.err
11476 rm -f conftest.er1
11477 cat conftest.err >&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); } >/dev/null; then
11480 if test -s conftest.err; then
11481 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11483 else
11484 ac_cpp_err=
11485 fi
11486else
11487 ac_cpp_err=yes
11488fi
11489if test -z "$ac_cpp_err"; then
11490 :
11491else
11492 echo "$as_me: failed program was:" >&5
11493sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 # Broken: fails on valid input.
11496continue
11497fi
11498rm -f conftest.err conftest.$ac_ext
11499
11500 # OK, works on sane cases. Now check whether non-existent headers
11501 # can be detected and how.
11502 cat >conftest.$ac_ext <<_ACEOF
11503/* confdefs.h. */
11504_ACEOF
11505cat confdefs.h >>conftest.$ac_ext
11506cat >>conftest.$ac_ext <<_ACEOF
11507/* end confdefs.h. */
11508#include <ac_nonexistent.h>
11509_ACEOF
11510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } >/dev/null; then
11518 if test -s conftest.err; then
11519 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11521 else
11522 ac_cpp_err=
11523 fi
11524else
11525 ac_cpp_err=yes
11526fi
11527if test -z "$ac_cpp_err"; then
11528 # Broken: success on invalid input.
11529continue
11530else
11531 echo "$as_me: failed program was:" >&5
11532sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 # Passes both tests.
11535ac_preproc_ok=:
11536break
11537fi
11538rm -f conftest.err conftest.$ac_ext
11539
11540done
11541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11542rm -f conftest.err conftest.$ac_ext
11543if $ac_preproc_ok; then
11544 :
11545else
11546 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11547See \`config.log' for more details." >&5
11548echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11549See \`config.log' for more details." >&2;}
11550 { (exit 1); exit 1; }; }
11551fi
11552
11553ac_ext=c
11554ac_cpp='$CPP $CPPFLAGS'
11555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558
11559
11560echo "$as_me:$LINENO: checking for egrep" >&5
11561echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11562if test "${ac_cv_prog_egrep+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11566 then ac_cv_prog_egrep='grep -E'
11567 else ac_cv_prog_egrep='egrep'
11568 fi
11569fi
11570echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11571echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11572 EGREP=$ac_cv_prog_egrep
11573
11574
11575if test $ac_cv_c_compiler_gnu = yes; then
11576 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11577echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11578if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581 ac_pattern="Autoconf.*'x'"
11582 cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h. */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h. */
11588#include <sgtty.h>
11589Autoconf TIOCGETP
11590_ACEOF
11591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11592 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11593 ac_cv_prog_gcc_traditional=yes
11594else
11595 ac_cv_prog_gcc_traditional=no
11596fi
11597rm -f conftest*
11598
11599
11600 if test $ac_cv_prog_gcc_traditional = no; then
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607#include <termio.h>
11608Autoconf TCGETA
11609_ACEOF
11610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11611 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11612 ac_cv_prog_gcc_traditional=yes
11613fi
11614rm -f conftest*
11615
11616 fi
11617fi
11618echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11619echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11620 if test $ac_cv_prog_gcc_traditional = yes; then
11621 CC="$CC -traditional"
11622 fi
11623fi
11624
11625
11626
11627
11628ac_ext=cc
11629ac_cpp='$CXXCPP $CPPFLAGS'
11630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11633
11634
11635CXXFLAGS=${CXXFLAGS:=}
11636ac_ext=cc
11637ac_cpp='$CXXCPP $CPPFLAGS'
11638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11641if test -n "$ac_tool_prefix"; then
11642 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11643 do
11644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11646echo "$as_me:$LINENO: checking for $ac_word" >&5
11647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11648if test "${ac_cv_prog_CXX+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 if test -n "$CXX"; then
11652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11653else
11654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
11656do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11664 fi
11665done
11666done
11667
11668fi
11669fi
11670CXX=$ac_cv_prog_CXX
11671if test -n "$CXX"; then
11672 echo "$as_me:$LINENO: result: $CXX" >&5
11673echo "${ECHO_T}$CXX" >&6
11674else
11675 echo "$as_me:$LINENO: result: no" >&5
11676echo "${ECHO_T}no" >&6
11677fi
11678
11679 test -n "$CXX" && break
11680 done
11681fi
11682if test -z "$CXX"; then
11683 ac_ct_CXX=$CXX
11684 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11685do
11686 # Extract the first word of "$ac_prog", so it can be a program name with args.
11687set dummy $ac_prog; ac_word=$2
11688echo "$as_me:$LINENO: checking for $ac_word" >&5
11689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11690if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692else
11693 if test -n "$ac_ct_CXX"; then
11694 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11695else
11696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11703 ac_cv_prog_ac_ct_CXX="$ac_prog"
11704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707done
11708done
11709
11710fi
11711fi
11712ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11713if test -n "$ac_ct_CXX"; then
11714 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11715echo "${ECHO_T}$ac_ct_CXX" >&6
11716else
11717 echo "$as_me:$LINENO: result: no" >&5
11718echo "${ECHO_T}no" >&6
11719fi
11720
11721 test -n "$ac_ct_CXX" && break
11722done
11723test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11724
11725 CXX=$ac_ct_CXX
11726fi
11727
11728
11729# Provide some information about the compiler.
11730echo "$as_me:$LINENO:" \
11731 "checking for C++ compiler version" >&5
11732ac_compiler=`set X $ac_compile; echo $2`
11733{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11734 (eval $ac_compiler --version </dev/null >&5) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }
11738{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11739 (eval $ac_compiler -v </dev/null >&5) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }
11743{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11744 (eval $ac_compiler -V </dev/null >&5) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }
11748
11749echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11750echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11751if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
11760
11761int
11762main ()
11763{
11764#ifndef __GNUC__
11765 choke me
11766#endif
11767
11768 ;
11769 return 0;
11770}
11771_ACEOF
11772rm -f conftest.$ac_objext
11773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11774 (eval $ac_compile) 2>conftest.er1
a848cd7e 11775 ac_status=$?
ac1cb8d3
VS
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
a848cd7e
SC
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
fc480dc1
DE
11781 { ac_try='test -z "$ac_cxx_werror_flag"
11782 || test ! -s conftest.err'
ac1cb8d3
VS
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 ac_compiler_gnu=yes
11795else
11796 echo "$as_me: failed program was:" >&5
11797sed 's/^/| /' conftest.$ac_ext >&5
11798
11799ac_compiler_gnu=no
11800fi
ac1cb8d3 11801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11802ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11803
11804fi
11805echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11806echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11807GXX=`test $ac_compiler_gnu = yes && echo yes`
11808ac_test_CXXFLAGS=${CXXFLAGS+set}
11809ac_save_CXXFLAGS=$CXXFLAGS
11810CXXFLAGS="-g"
11811echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11812echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11813if test "${ac_cv_prog_cxx_g+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11815else
11816 cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
11822
11823int
11824main ()
11825{
11826
11827 ;
11828 return 0;
11829}
11830_ACEOF
11831rm -f conftest.$ac_objext
11832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11833 (eval $ac_compile) 2>conftest.er1
a848cd7e 11834 ac_status=$?
ac1cb8d3
VS
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
a848cd7e
SC
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
fc480dc1
DE
11840 { ac_try='test -z "$ac_cxx_werror_flag"
11841 || test ! -s conftest.err'
ac1cb8d3
VS
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 ac_cv_prog_cxx_g=yes
11854else
11855 echo "$as_me: failed program was:" >&5
11856sed 's/^/| /' conftest.$ac_ext >&5
11857
11858ac_cv_prog_cxx_g=no
11859fi
ac1cb8d3 11860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11861fi
11862echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11863echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11864if test "$ac_test_CXXFLAGS" = set; then
11865 CXXFLAGS=$ac_save_CXXFLAGS
11866elif test $ac_cv_prog_cxx_g = yes; then
11867 if test "$GXX" = yes; then
11868 CXXFLAGS="-g -O2"
11869 else
11870 CXXFLAGS="-g"
11871 fi
11872else
11873 if test "$GXX" = yes; then
11874 CXXFLAGS="-O2"
11875 else
11876 CXXFLAGS=
11877 fi
11878fi
11879for ac_declaration in \
ac1cb8d3 11880 '' \
a848cd7e
SC
11881 'extern "C" void std::exit (int) throw (); using std::exit;' \
11882 'extern "C" void std::exit (int); using std::exit;' \
11883 'extern "C" void exit (int) throw ();' \
11884 'extern "C" void exit (int);' \
11885 'void exit (int);'
11886do
11887 cat >conftest.$ac_ext <<_ACEOF
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
de59c161 11893$ac_declaration
ac1cb8d3 11894#include <stdlib.h>
a848cd7e
SC
11895int
11896main ()
11897{
11898exit (42);
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest.$ac_objext
11904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11905 (eval $ac_compile) 2>conftest.er1
a848cd7e 11906 ac_status=$?
ac1cb8d3
VS
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
a848cd7e
SC
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
fc480dc1
DE
11912 { ac_try='test -z "$ac_cxx_werror_flag"
11913 || test ! -s conftest.err'
ac1cb8d3
VS
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 :
11926else
11927 echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930continue
11931fi
ac1cb8d3 11932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11933 cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
11939$ac_declaration
11940int
11941main ()
11942{
11943exit (42);
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext
11949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11950 (eval $ac_compile) 2>conftest.er1
a848cd7e 11951 ac_status=$?
ac1cb8d3
VS
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
a848cd7e
SC
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
fc480dc1
DE
11957 { ac_try='test -z "$ac_cxx_werror_flag"
11958 || test ! -s conftest.err'
ac1cb8d3
VS
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 break
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
11975fi
ac1cb8d3 11976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11977done
11978rm -f conftest*
11979if test -n "$ac_declaration"; then
11980 echo '#ifdef __cplusplus' >>confdefs.h
11981 echo $ac_declaration >>confdefs.h
11982 echo '#endif' >>confdefs.h
11983fi
11984
11985ac_ext=cc
11986ac_cpp='$CXXCPP $CPPFLAGS'
11987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11990
11991
11992ac_ext=c
11993ac_cpp='$CPP $CPPFLAGS'
11994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11996ac_compiler_gnu=$ac_cv_c_compiler_gnu
11997
11998
a848cd7e
SC
11999if test -n "$ac_tool_prefix"; then
12000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12001set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12002echo "$as_me:$LINENO: checking for $ac_word" >&5
12003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12004if test "${ac_cv_prog_RANLIB+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006else
12007 if test -n "$RANLIB"; then
12008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12009else
12010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011for as_dir in $PATH
12012do
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 break 2
12020 fi
12021done
12022done
12023
12024fi
12025fi
12026RANLIB=$ac_cv_prog_RANLIB
12027if test -n "$RANLIB"; then
12028 echo "$as_me:$LINENO: result: $RANLIB" >&5
12029echo "${ECHO_T}$RANLIB" >&6
12030else
12031 echo "$as_me:$LINENO: result: no" >&5
12032echo "${ECHO_T}no" >&6
12033fi
12034
12035fi
12036if test -z "$ac_cv_prog_RANLIB"; then
12037 ac_ct_RANLIB=$RANLIB
12038 # Extract the first word of "ranlib", so it can be a program name with args.
12039set dummy ranlib; ac_word=$2
12040echo "$as_me:$LINENO: checking for $ac_word" >&5
12041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12042if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044else
12045 if test -n "$ac_ct_RANLIB"; then
12046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12047else
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_ac_ct_RANLIB="ranlib"
12056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059done
12060done
12061
12062 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12063fi
12064fi
12065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12066if test -n "$ac_ct_RANLIB"; then
12067 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12068echo "${ECHO_T}$ac_ct_RANLIB" >&6
12069else
12070 echo "$as_me:$LINENO: result: no" >&5
12071echo "${ECHO_T}no" >&6
12072fi
12073
12074 RANLIB=$ac_ct_RANLIB
12075else
12076 RANLIB="$ac_cv_prog_RANLIB"
12077fi
12078
12079
12080# Extract the first word of "ar", so it can be a program name with args.
12081set dummy ar; ac_word=$2
12082echo "$as_me:$LINENO: checking for $ac_word" >&5
12083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12084if test "${ac_cv_prog_AR+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087 if test -n "$AR"; then
12088 ac_cv_prog_AR="$AR" # Let the user override the test.
12089else
12090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091for as_dir in $PATH
12092do
12093 IFS=$as_save_IFS
12094 test -z "$as_dir" && as_dir=.
12095 for ac_exec_ext in '' $ac_executable_extensions; do
12096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12097 ac_cv_prog_AR="ar"
12098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12099 break 2
12100 fi
12101done
12102done
12103
12104fi
12105fi
12106AR=$ac_cv_prog_AR
12107if test -n "$AR"; then
12108 echo "$as_me:$LINENO: result: $AR" >&5
12109echo "${ECHO_T}$AR" >&6
12110else
12111 echo "$as_me:$LINENO: result: no" >&5
12112echo "${ECHO_T}no" >&6
12113fi
12114
12115if test "x$AR" = "x" ; then
77ffb593
JS
12116 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12117echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12118 { (exit 1); exit 1; }; }
12119fi
12120
12121# Find a good install program. We prefer a C program (faster),
12122# so one script is as good as another. But avoid the broken or
12123# incompatible versions:
12124# SysV /etc/install, /usr/sbin/install
12125# SunOS /usr/etc/install
12126# IRIX /sbin/install
12127# AIX /bin/install
12128# AmigaOS /C/install, which installs bootblocks on floppy discs
12129# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12130# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12131# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12132# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12133# ./install, which can be erroneously created by make from ./install.sh.
12134echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12135echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12136if test -z "$INSTALL"; then
12137if test "${ac_cv_path_install+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 # Account for people who put trailing slashes in PATH elements.
12146case $as_dir/ in
12147 ./ | .// | /cC/* | \
12148 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12149 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12150 /usr/ucb/* ) ;;
12151 *)
12152 # OSF1 and SCO ODT 3.0 have their own names for install.
12153 # Don't use installbsd from OSF since it installs stuff as root
12154 # by default.
12155 for ac_prog in ginstall scoinst install; do
12156 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12157 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12158 if test $ac_prog = install &&
12159 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12160 # AIX install. It has an incompatible calling convention.
12161 :
12162 elif test $ac_prog = install &&
12163 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12164 # program-specific install script used by HP pwplus--don't use.
12165 :
12166 else
12167 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12168 break 3
12169 fi
12170 fi
a848cd7e
SC
12171 done
12172 done
12173 ;;
12174esac
12175done
12176
12177
12178fi
12179 if test "${ac_cv_path_install+set}" = set; then
12180 INSTALL=$ac_cv_path_install
12181 else
12182 # As a last resort, use the slow shell script. We don't cache a
12183 # path for INSTALL within a source directory, because that will
12184 # break other packages using the cache if that directory is
12185 # removed, or if the path is relative.
12186 INSTALL=$ac_install_sh
12187 fi
12188fi
12189echo "$as_me:$LINENO: result: $INSTALL" >&5
12190echo "${ECHO_T}$INSTALL" >&6
12191
12192# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12193# It thinks the first close brace ends the variable substitution.
12194test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12195
12196test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12197
12198test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12199
12200
12201case ${INSTALL} in
12202 /* ) # Absolute
12203 ;;
12204 ?:* ) # Drive letter, considered as absolute.
12205 ;;
12206 *)
12207 INSTALL=`pwd`/${INSTALL} ;;
12208esac
12209
a848cd7e
SC
12210
12211case "${host}" in
12212
12213 powerpc-*-darwin* )
12214 INSTALL_PROGRAM="cp -fp"
12215 INSTALL_DATA="cp -fp"
12216 ;;
12217 *)
12218 ;;
12219esac
12220
12221# Extract the first word of "strip", so it can be a program name with args.
12222set dummy strip; ac_word=$2
12223echo "$as_me:$LINENO: checking for $ac_word" >&5
12224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12225if test "${ac_cv_prog_STRIP+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227else
12228 if test -n "$STRIP"; then
12229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12230else
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238 ac_cv_prog_STRIP="strip"
12239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12241 fi
12242done
12243done
12244
12245 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12246fi
12247fi
12248STRIP=$ac_cv_prog_STRIP
12249if test -n "$STRIP"; then
12250 echo "$as_me:$LINENO: result: $STRIP" >&5
12251echo "${ECHO_T}$STRIP" >&6
12252else
12253 echo "$as_me:$LINENO: result: no" >&5
12254echo "${ECHO_T}no" >&6
12255fi
12256
12257
12258echo "$as_me:$LINENO: checking if make is GNU make" >&5
12259echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12260if test "${wx_cv_prog_makeisgnu+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263
12264 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12265 egrep -s GNU > /dev/null); then
12266 wx_cv_prog_makeisgnu="yes"
12267 else
12268 wx_cv_prog_makeisgnu="no"
12269 fi
12270
12271fi
12272echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12273echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12274
12275if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12276 IF_GNU_MAKE=""
12277else
12278 IF_GNU_MAKE="#"
12279fi
12280
12281
12282
12283if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12284echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12285echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12286if test "${wx_cv_prog_makevpath+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12288else
12289
12290cat - << EOF > confMake
12291check : file
12292 cp \$? \$@
12293 cp \$? final_file
12294EOF
12295
12296if test ! -d sub ; then
12297 mkdir sub
12298fi
12299echo dummy > sub/file
12300${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12301RESULT=$?
12302rm -f sub/file check final_file confMake
12303rmdir sub
12304if test "$RESULT" = 0; then
12305 wx_cv_prog_makevpath="yes"
12306else
12307 wx_cv_prog_makevpath="no"
12308fi
12309
12310fi
12311echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12312echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12313
12314if test "x$wx_cv_prog_makevpath" != "xyes"; then
12315{ { echo "$as_me:$LINENO: error:
12316You need a make-utility that is able to use the variable
12317VPATH correctly.
12318If your version of make does not support VPATH correctly,
12319please install GNU-make (possibly as gmake), and start
12320configure with the following command:
12321export MAKE=gmake; ./configure for sh-type shells
12322setenv MAKE gmake; ./configure for csh-type shells
12323Also please do remember to use gmake in this case every time
12324you are trying to compile.
12325" >&5
12326echo "$as_me: error:
12327You need a make-utility that is able to use the variable
12328VPATH correctly.
12329If your version of make does not support VPATH correctly,
12330please install GNU-make (possibly as gmake), and start
12331configure with the following command:
12332export MAKE=gmake; ./configure for sh-type shells
12333setenv MAKE gmake; ./configure for csh-type shells
12334Also please do remember to use gmake in this case every time
12335you are trying to compile.
12336" >&2;}
12337 { (exit 1); exit 1; }; }
12338fi fi
12339echo "$as_me:$LINENO: checking whether ln -s works" >&5
12340echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12341LN_S=$as_ln_s
12342if test "$LN_S" = "ln -s"; then
12343 echo "$as_me:$LINENO: result: yes" >&5
12344echo "${ECHO_T}yes" >&6
12345else
12346 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12347echo "${ECHO_T}no, using $LN_S" >&6
12348fi
12349
12350
12351
12352case "${host}" in
12353 *-pc-os2_emx | *-pc-os2-emx )
12354 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12355 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12356echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12357if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12359else
12360 ac_check_lib_save_LIBS=$LIBS
12361LIBS="-lcExt $LIBS"
12362cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h. */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
12367/* end confdefs.h. */
12368
12369/* Override any gcc2 internal prototype to avoid an error. */
12370#ifdef __cplusplus
12371extern "C"
12372#endif
12373/* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12375char drand48 ();
12376int
12377main ()
12378{
12379drand48 ();
12380 ;
12381 return 0;
12382}
12383_ACEOF
12384rm -f conftest.$ac_objext conftest$ac_exeext
12385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12386 (eval $ac_link) 2>conftest.er1
a848cd7e 12387 ac_status=$?
ac1cb8d3
VS
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
a848cd7e
SC
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
fc480dc1
DE
12393 { ac_try='test -z "$ac_c_werror_flag"
12394 || test ! -s conftest.err'
ac1cb8d3
VS
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_lib_cExt_drand48=yes
12407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411ac_cv_lib_cExt_drand48=no
12412fi
ac1cb8d3
VS
12413rm -f conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12415LIBS=$ac_check_lib_save_LIBS
12416fi
12417echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12418echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12419if test $ac_cv_lib_cExt_drand48 = yes; then
12420 LIBS="$LIBS -lcExt"
12421fi
12422
12423 else
12424 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12425 fi
12426 echo "$as_me:$LINENO: checking for gcc version" >&5
12427echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12428if test "${wx_cv_gccversion+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431
12432 cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h. */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h. */
12438
12439int
12440main ()
12441{
12442
12443 #if (__GNUC__ < 3)
12444 #error old gcc
12445 #endif
12446
12447 ;
12448 return 0;
12449}
12450_ACEOF
12451rm -f conftest.$ac_objext
12452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12453 (eval $ac_compile) 2>conftest.er1
a848cd7e 12454 ac_status=$?
ac1cb8d3
VS
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
a848cd7e
SC
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
fc480dc1
DE
12460 { ac_try='test -z "$ac_c_werror_flag"
12461 || test ! -s conftest.err'
ac1cb8d3
VS
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473
12474 cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480
12481int
12482main ()
12483{
12484
12485 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12486 #error intermediate gcc
12487 #endif
12488
12489 ;
12490 return 0;
12491}
12492_ACEOF
12493rm -f conftest.$ac_objext
12494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12495 (eval $ac_compile) 2>conftest.er1
a848cd7e 12496 ac_status=$?
ac1cb8d3
VS
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
a848cd7e
SC
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
fc480dc1
DE
12502 { ac_try='test -z "$ac_c_werror_flag"
12503 || test ! -s conftest.err'
ac1cb8d3
VS
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515
12516 wx_cv_gccversion=Innotek
12517
12518else
12519 echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522
12523 wx_cv_gccversion=3
12524
12525
12526fi
ac1cb8d3 12527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12528
12529else
12530 echo "$as_me: failed program was:" >&5
12531sed 's/^/| /' conftest.$ac_ext >&5
12532
12533
12534 wx_cv_gccversion=2
12535
12536
12537fi
ac1cb8d3 12538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12539
12540fi
12541echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12542echo "${ECHO_T}$wx_cv_gccversion" >&6
12543 if test "$wx_cv_gccversion" = "2"; then
12544 LIBS="$LIBS -lstdcpp"
12545 LDFLAGS="$LDFLAGS -Zsysv-signals"
12546 else
12547 if test "$wx_cv_gccversion" = "3"; then
12548 LIBS="$LIBS -lstdcxx"
12549 LDFLAGS="$LDFLAGS -Zsysv-signals"
12550 else
12551 LIBS="$LIBS -lstdc++"
12552 fi
12553 fi
12554 if test "$wxUSE_OMF" = "yes"; then
de59c161 12555 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12556 fi
12557 ;;
12558 *)
12559
12560
12561
12562 ac_ext=cc
12563ac_cpp='$CXXCPP $CPPFLAGS'
12564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12567
12568
12569
12570echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12571echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12572if test "${ac_cv_string_strcasecmp+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574else
12575
12576 cat >conftest.$ac_ext <<_ACEOF
12577/* confdefs.h. */
12578_ACEOF
12579cat confdefs.h >>conftest.$ac_ext
12580cat >>conftest.$ac_ext <<_ACEOF
12581/* end confdefs.h. */
12582
12583 #include <string.h>
12584
12585int
12586main ()
12587{
12588
12589 strcasecmp("foo", "bar");
12590
12591 ;
12592 return 0;
12593}
12594_ACEOF
12595rm -f conftest.$ac_objext conftest$ac_exeext
12596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12597 (eval $ac_link) 2>conftest.er1
a848cd7e 12598 ac_status=$?
ac1cb8d3
VS
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
a848cd7e
SC
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
fc480dc1
DE
12604 { ac_try='test -z "$ac_cxx_werror_flag"
12605 || test ! -s conftest.err'
ac1cb8d3
VS
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_cv_string_strcasecmp=yes
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622ac_cv_string_strcasecmp=no
12623
12624fi
ac1cb8d3
VS
12625rm -f conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12627
12628fi
12629echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12630echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12631
12632 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12633 cat >>confdefs.h <<\_ACEOF
12634#define HAVE_STRCASECMP_IN_STRING_H 1
12635_ACEOF
12636
12637 else
12638 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12639echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12640if test "${ac_cv_strings_strcasecmp+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643
12644 cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650
12651 #include <strings.h>
12652
12653int
12654main ()
12655{
12656
12657 strcasecmp("foo", "bar");
12658
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext conftest$ac_exeext
12664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12665 (eval $ac_link) 2>conftest.er1
a848cd7e 12666 ac_status=$?
ac1cb8d3
VS
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
a848cd7e
SC
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
fc480dc1
DE
12672 { ac_try='test -z "$ac_cxx_werror_flag"
12673 || test ! -s conftest.err'
ac1cb8d3
VS
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_strings_strcasecmp=yes
12686else
12687 echo "$as_me: failed program was:" >&5
12688sed 's/^/| /' conftest.$ac_ext >&5
12689
12690ac_cv_strings_strcasecmp=no
12691
12692fi
ac1cb8d3
VS
12693rm -f conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12695
12696fi
12697echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12698echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12699
0c3c69fc 12700 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12701 cat >>confdefs.h <<\_ACEOF
12702#define HAVE_STRCASECMP_IN_STRINGS_H 1
12703_ACEOF
12704
12705 else
12706 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12707echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12708 { (exit 1); exit 1; }; }
12709 fi
12710 fi
12711
12712 ac_ext=c
12713ac_cpp='$CPP $CPPFLAGS'
12714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716ac_compiler_gnu=$ac_cv_c_compiler_gnu
12717
12718 ;;
12719esac
12720
12721
12722echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12723echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12724if test "${ac_cv_header_stdc+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
12733#include <stdlib.h>
12734#include <stdarg.h>
12735#include <string.h>
12736#include <float.h>
12737
12738int
12739main ()
12740{
12741
12742 ;
12743 return 0;
12744}
12745_ACEOF
12746rm -f conftest.$ac_objext
12747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12748 (eval $ac_compile) 2>conftest.er1
a848cd7e 12749 ac_status=$?
ac1cb8d3
VS
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
a848cd7e
SC
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
fc480dc1
DE
12755 { ac_try='test -z "$ac_c_werror_flag"
12756 || test ! -s conftest.err'
ac1cb8d3
VS
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_cv_header_stdc=yes
12769else
12770 echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773ac_cv_header_stdc=no
12774fi
ac1cb8d3 12775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12776
12777if test $ac_cv_header_stdc = yes; then
12778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12779 cat >conftest.$ac_ext <<_ACEOF
12780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
12785#include <string.h>
12786
12787_ACEOF
12788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12789 $EGREP "memchr" >/dev/null 2>&1; then
12790 :
12791else
12792 ac_cv_header_stdc=no
12793fi
12794rm -f conftest*
12795
12796fi
12797
12798if test $ac_cv_header_stdc = yes; then
12799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12800 cat >conftest.$ac_ext <<_ACEOF
12801/* confdefs.h. */
12802_ACEOF
12803cat confdefs.h >>conftest.$ac_ext
12804cat >>conftest.$ac_ext <<_ACEOF
12805/* end confdefs.h. */
12806#include <stdlib.h>
12807
12808_ACEOF
12809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12810 $EGREP "free" >/dev/null 2>&1; then
12811 :
12812else
12813 ac_cv_header_stdc=no
12814fi
12815rm -f conftest*
12816
12817fi
12818
12819if test $ac_cv_header_stdc = yes; then
12820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12821 if test "$cross_compiling" = yes; then
12822 :
12823else
12824 cat >conftest.$ac_ext <<_ACEOF
12825/* confdefs.h. */
12826_ACEOF
12827cat confdefs.h >>conftest.$ac_ext
12828cat >>conftest.$ac_ext <<_ACEOF
12829/* end confdefs.h. */
12830#include <ctype.h>
12831#if ((' ' & 0x0FF) == 0x020)
12832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12834#else
12835# define ISLOWER(c) \
ac1cb8d3
VS
12836 (('a' <= (c) && (c) <= 'i') \
12837 || ('j' <= (c) && (c) <= 'r') \
12838 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12840#endif
12841
12842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12843int
12844main ()
12845{
12846 int i;
12847 for (i = 0; i < 256; i++)
12848 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12849 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12850 exit(2);
12851 exit (0);
12852}
12853_ACEOF
12854rm -f conftest$ac_exeext
12855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 :
12866else
12867 echo "$as_me: program exited with status $ac_status" >&5
12868echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871( exit $ac_status )
12872ac_cv_header_stdc=no
12873fi
ac1cb8d3 12874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12875fi
12876fi
12877fi
12878echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12879echo "${ECHO_T}$ac_cv_header_stdc" >&6
12880if test $ac_cv_header_stdc = yes; then
12881
12882cat >>confdefs.h <<\_ACEOF
12883#define STDC_HEADERS 1
12884_ACEOF
12885
12886fi
12887
12888# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12899 inttypes.h stdint.h unistd.h
a848cd7e
SC
12900do
12901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12902echo "$as_me:$LINENO: checking for $ac_header" >&5
12903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12904if eval "test \"\${$as_ac_Header+set}\" = set"; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906else
12907 cat >conftest.$ac_ext <<_ACEOF
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
12913$ac_includes_default
12914
12915#include <$ac_header>
12916_ACEOF
12917rm -f conftest.$ac_objext
12918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12919 (eval $ac_compile) 2>conftest.er1
a848cd7e 12920 ac_status=$?
ac1cb8d3
VS
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
a848cd7e
SC
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } &&
fc480dc1
DE
12926 { ac_try='test -z "$ac_c_werror_flag"
12927 || test ! -s conftest.err'
ac1cb8d3
VS
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; } &&
12933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 eval "$as_ac_Header=yes"
12940else
12941 echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
12944eval "$as_ac_Header=no"
12945fi
ac1cb8d3 12946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12947fi
12948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12950if test `eval echo '${'$as_ac_Header'}'` = yes; then
12951 cat >>confdefs.h <<_ACEOF
12952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12953_ACEOF
12954
12955fi
12956
12957done
12958
12959
12960
12961for ac_header in stdlib.h
12962do
12963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12964if eval "test \"\${$as_ac_Header+set}\" = set"; then
12965 echo "$as_me:$LINENO: checking for $ac_header" >&5
12966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12967if eval "test \"\${$as_ac_Header+set}\" = set"; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969fi
12970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12972else
12973 # Is the header compilable?
12974echo "$as_me:$LINENO: checking $ac_header usability" >&5
12975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12976cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982$ac_includes_default
12983#include <$ac_header>
12984_ACEOF
12985rm -f conftest.$ac_objext
12986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12987 (eval $ac_compile) 2>conftest.er1
a848cd7e 12988 ac_status=$?
ac1cb8d3
VS
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
a848cd7e
SC
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
fc480dc1
DE
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
ac1cb8d3
VS
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_header_compiler=yes
13008else
13009 echo "$as_me: failed program was:" >&5
13010sed 's/^/| /' conftest.$ac_ext >&5
13011
13012ac_header_compiler=no
13013fi
ac1cb8d3 13014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13016echo "${ECHO_T}$ac_header_compiler" >&6
13017
13018# Is the header present?
13019echo "$as_me:$LINENO: checking $ac_header presence" >&5
13020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13021cat >conftest.$ac_ext <<_ACEOF
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
13027#include <$ac_header>
13028_ACEOF
13029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } >/dev/null; then
13037 if test -s conftest.err; then
13038 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13040 else
13041 ac_cpp_err=
13042 fi
13043else
13044 ac_cpp_err=yes
13045fi
13046if test -z "$ac_cpp_err"; then
13047 ac_header_preproc=yes
13048else
13049 echo "$as_me: failed program was:" >&5
13050sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 ac_header_preproc=no
13053fi
13054rm -f conftest.err conftest.$ac_ext
13055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13056echo "${ECHO_T}$ac_header_preproc" >&6
13057
13058# So? What about this header?
ac1cb8d3
VS
13059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13060 yes:no: )
a848cd7e
SC
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13065 ac_header_preproc=yes
a848cd7e 13066 ;;
ac1cb8d3 13067 no:yes:* )
a848cd7e
SC
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13080 (
13081 cat <<\_ASBOX
ac1cb8d3
VS
13082## ----------------------------------------- ##
13083## Report this to wx-dev@lists.wxwidgets.org ##
13084## ----------------------------------------- ##
a848cd7e
SC
13085_ASBOX
13086 ) |
13087 sed "s/^/$as_me: WARNING: /" >&2
13088 ;;
13089esac
13090echo "$as_me:$LINENO: checking for $ac_header" >&5
13091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13092if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
ac1cb8d3 13095 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13096fi
13097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13099
13100fi
13101if test `eval echo '${'$as_ac_Header'}'` = yes; then
13102 cat >>confdefs.h <<_ACEOF
13103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13104_ACEOF
13105
13106fi
13107
13108done
13109
13110
13111for ac_header in malloc.h
13112do
13113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13114if eval "test \"\${$as_ac_Header+set}\" = set"; then
13115 echo "$as_me:$LINENO: checking for $ac_header" >&5
13116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13117if eval "test \"\${$as_ac_Header+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119fi
13120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13122else
13123 # Is the header compilable?
13124echo "$as_me:$LINENO: checking $ac_header usability" >&5
13125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13126cat >conftest.$ac_ext <<_ACEOF
13127/* confdefs.h. */
13128_ACEOF
13129cat confdefs.h >>conftest.$ac_ext
13130cat >>conftest.$ac_ext <<_ACEOF
13131/* end confdefs.h. */
13132$ac_includes_default
13133#include <$ac_header>
13134_ACEOF
13135rm -f conftest.$ac_objext
13136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13137 (eval $ac_compile) 2>conftest.er1
a848cd7e 13138 ac_status=$?
ac1cb8d3
VS
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
a848cd7e
SC
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
fc480dc1
DE
13144 { ac_try='test -z "$ac_c_werror_flag"
13145 || test ! -s conftest.err'
ac1cb8d3
VS
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_header_compiler=yes
13158else
13159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162ac_header_compiler=no
13163fi
ac1cb8d3 13164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13166echo "${ECHO_T}$ac_header_compiler" >&6
13167
13168# Is the header present?
13169echo "$as_me:$LINENO: checking $ac_header presence" >&5
13170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13171cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177#include <$ac_header>
13178_ACEOF
13179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13181 ac_status=$?
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } >/dev/null; then
13187 if test -s conftest.err; then
13188 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13190 else
13191 ac_cpp_err=
13192 fi
13193else
13194 ac_cpp_err=yes
13195fi
13196if test -z "$ac_cpp_err"; then
13197 ac_header_preproc=yes
13198else
13199 echo "$as_me: failed program was:" >&5
13200sed 's/^/| /' conftest.$ac_ext >&5
13201
13202 ac_header_preproc=no
13203fi
13204rm -f conftest.err conftest.$ac_ext
13205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13206echo "${ECHO_T}$ac_header_preproc" >&6
13207
13208# So? What about this header?
ac1cb8d3
VS
13209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13210 yes:no: )
a848cd7e
SC
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13215 ac_header_preproc=yes
a848cd7e 13216 ;;
ac1cb8d3 13217 no:yes:* )
a848cd7e
SC
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13230 (
13231 cat <<\_ASBOX
ac1cb8d3
VS
13232## ----------------------------------------- ##
13233## Report this to wx-dev@lists.wxwidgets.org ##
13234## ----------------------------------------- ##
a848cd7e
SC
13235_ASBOX
13236 ) |
13237 sed "s/^/$as_me: WARNING: /" >&2
13238 ;;
13239esac
13240echo "$as_me:$LINENO: checking for $ac_header" >&5
13241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13242if eval "test \"\${$as_ac_Header+set}\" = set"; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244else
ac1cb8d3 13245 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13246fi
13247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13249
13250fi
13251if test `eval echo '${'$as_ac_Header'}'` = yes; then
13252 cat >>confdefs.h <<_ACEOF
13253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13254_ACEOF
13255
13256fi
13257
13258done
13259
13260
13261for ac_header in unistd.h
13262do
13263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13264if eval "test \"\${$as_ac_Header+set}\" = set"; then
13265 echo "$as_me:$LINENO: checking for $ac_header" >&5
13266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13267if eval "test \"\${$as_ac_Header+set}\" = set"; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269fi
13270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13272else
13273 # Is the header compilable?
13274echo "$as_me:$LINENO: checking $ac_header usability" >&5
13275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13276cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h. */
13282$ac_includes_default
13283#include <$ac_header>
13284_ACEOF
13285rm -f conftest.$ac_objext
13286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13287 (eval $ac_compile) 2>conftest.er1
a848cd7e 13288 ac_status=$?
ac1cb8d3
VS
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
a848cd7e
SC
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
fc480dc1
DE
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
ac1cb8d3
VS
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_header_compiler=yes
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312ac_header_compiler=no
13313fi
ac1cb8d3 13314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13316echo "${ECHO_T}$ac_header_compiler" >&6
13317
13318# Is the header present?
13319echo "$as_me:$LINENO: checking $ac_header presence" >&5
13320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13321cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
13327#include <$ac_header>
13328_ACEOF
13329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } >/dev/null; then
13337 if test -s conftest.err; then
13338 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13340 else
13341 ac_cpp_err=
13342 fi
13343else
13344 ac_cpp_err=yes
13345fi
13346if test -z "$ac_cpp_err"; then
13347 ac_header_preproc=yes
13348else
13349 echo "$as_me: failed program was:" >&5
13350sed 's/^/| /' conftest.$ac_ext >&5
13351
13352 ac_header_preproc=no
13353fi
13354rm -f conftest.err conftest.$ac_ext
13355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13356echo "${ECHO_T}$ac_header_preproc" >&6
13357
13358# So? What about this header?
ac1cb8d3
VS
13359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13360 yes:no: )
a848cd7e
SC
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13365 ac_header_preproc=yes
a848cd7e 13366 ;;
ac1cb8d3 13367 no:yes:* )
a848cd7e
SC
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13380 (
13381 cat <<\_ASBOX
ac1cb8d3
VS
13382## ----------------------------------------- ##
13383## Report this to wx-dev@lists.wxwidgets.org ##
13384## ----------------------------------------- ##
a848cd7e
SC
13385_ASBOX
13386 ) |
13387 sed "s/^/$as_me: WARNING: /" >&2
13388 ;;
13389esac
13390echo "$as_me:$LINENO: checking for $ac_header" >&5
13391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13392if eval "test \"\${$as_ac_Header+set}\" = set"; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
ac1cb8d3 13395 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13396fi
13397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13399
13400fi
13401if test `eval echo '${'$as_ac_Header'}'` = yes; then
13402 cat >>confdefs.h <<_ACEOF
13403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13404_ACEOF
13405
13406fi
13407
13408done
13409
13410
13411for ac_header in wchar.h
13412do
13413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13414if eval "test \"\${$as_ac_Header+set}\" = set"; then
13415 echo "$as_me:$LINENO: checking for $ac_header" >&5
13416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13417if eval "test \"\${$as_ac_Header+set}\" = set"; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419fi
13420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13422else
13423 # Is the header compilable?
13424echo "$as_me:$LINENO: checking $ac_header usability" >&5
13425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13426cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432$ac_includes_default
13433#include <$ac_header>
13434_ACEOF
13435rm -f conftest.$ac_objext
13436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13437 (eval $ac_compile) 2>conftest.er1
a848cd7e 13438 ac_status=$?
ac1cb8d3
VS
13439 grep -v '^ *+' conftest.er1 >conftest.err
13440 rm -f conftest.er1
13441 cat conftest.err >&5
a848cd7e
SC
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
fc480dc1
DE
13444 { ac_try='test -z "$ac_c_werror_flag"
13445 || test ! -s conftest.err'
ac1cb8d3
VS
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_header_compiler=yes
13458else
13459 echo "$as_me: failed program was:" >&5
13460sed 's/^/| /' conftest.$ac_ext >&5
13461
13462ac_header_compiler=no
13463fi
ac1cb8d3 13464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13466echo "${ECHO_T}$ac_header_compiler" >&6
13467
13468# Is the header present?
13469echo "$as_me:$LINENO: checking $ac_header presence" >&5
13470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13471cat >conftest.$ac_ext <<_ACEOF
13472/* confdefs.h. */
13473_ACEOF
13474cat confdefs.h >>conftest.$ac_ext
13475cat >>conftest.$ac_ext <<_ACEOF
13476/* end confdefs.h. */
13477#include <$ac_header>
13478_ACEOF
13479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null; then
13487 if test -s conftest.err; then
13488 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13490 else
13491 ac_cpp_err=
13492 fi
13493else
13494 ac_cpp_err=yes
13495fi
13496if test -z "$ac_cpp_err"; then
13497 ac_header_preproc=yes
13498else
13499 echo "$as_me: failed program was:" >&5
13500sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 ac_header_preproc=no
13503fi
13504rm -f conftest.err conftest.$ac_ext
13505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13506echo "${ECHO_T}$ac_header_preproc" >&6
13507
13508# So? What about this header?
ac1cb8d3
VS
13509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13510 yes:no: )
a848cd7e
SC
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13515 ac_header_preproc=yes
a848cd7e 13516 ;;
ac1cb8d3 13517 no:yes:* )
a848cd7e
SC
13518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13530 (
13531 cat <<\_ASBOX
ac1cb8d3
VS
13532## ----------------------------------------- ##
13533## Report this to wx-dev@lists.wxwidgets.org ##
13534## ----------------------------------------- ##
a848cd7e
SC
13535_ASBOX
13536 ) |
13537 sed "s/^/$as_me: WARNING: /" >&2
13538 ;;
13539esac
13540echo "$as_me:$LINENO: checking for $ac_header" >&5
13541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13542if eval "test \"\${$as_ac_Header+set}\" = set"; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
ac1cb8d3 13545 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13546fi
13547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13549
13550fi
13551if test `eval echo '${'$as_ac_Header'}'` = yes; then
13552 cat >>confdefs.h <<_ACEOF
13553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13554_ACEOF
13555
13556fi
13557
13558done
13559
13560
13561if test "$ac_cv_header_wchar_h" != "yes"; then
13562
13563for ac_header in wcstr.h
13564do
13565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13566if eval "test \"\${$as_ac_Header+set}\" = set"; then
13567 echo "$as_me:$LINENO: checking for $ac_header" >&5
13568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13569if eval "test \"\${$as_ac_Header+set}\" = set"; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571fi
13572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13574else
13575 # Is the header compilable?
13576echo "$as_me:$LINENO: checking $ac_header usability" >&5
13577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13578cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
13584$ac_includes_default
13585#include <$ac_header>
13586_ACEOF
13587rm -f conftest.$ac_objext
13588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13589 (eval $ac_compile) 2>conftest.er1
a848cd7e 13590 ac_status=$?
ac1cb8d3
VS
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
a848cd7e
SC
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
fc480dc1
DE
13596 { ac_try='test -z "$ac_c_werror_flag"
13597 || test ! -s conftest.err'
ac1cb8d3
VS
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_header_compiler=yes
13610else
13611 echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
13614ac_header_compiler=no
13615fi
ac1cb8d3 13616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13618echo "${ECHO_T}$ac_header_compiler" >&6
13619
13620# Is the header present?
13621echo "$as_me:$LINENO: checking $ac_header presence" >&5
13622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13623cat >conftest.$ac_ext <<_ACEOF
13624/* confdefs.h. */
13625_ACEOF
13626cat confdefs.h >>conftest.$ac_ext
13627cat >>conftest.$ac_ext <<_ACEOF
13628/* end confdefs.h. */
13629#include <$ac_header>
13630_ACEOF
13631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13633 ac_status=$?
13634 grep -v '^ *+' conftest.er1 >conftest.err
13635 rm -f conftest.er1
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } >/dev/null; then
13639 if test -s conftest.err; then
13640 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13642 else
13643 ac_cpp_err=
13644 fi
13645else
13646 ac_cpp_err=yes
13647fi
13648if test -z "$ac_cpp_err"; then
13649 ac_header_preproc=yes
13650else
13651 echo "$as_me: failed program was:" >&5
13652sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 ac_header_preproc=no
13655fi
13656rm -f conftest.err conftest.$ac_ext
13657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13658echo "${ECHO_T}$ac_header_preproc" >&6
13659
13660# So? What about this header?
ac1cb8d3
VS
13661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13662 yes:no: )
a848cd7e
SC
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13667 ac_header_preproc=yes
a848cd7e 13668 ;;
ac1cb8d3 13669 no:yes:* )
a848cd7e
SC
13670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13682 (
13683 cat <<\_ASBOX
ac1cb8d3
VS
13684## ----------------------------------------- ##
13685## Report this to wx-dev@lists.wxwidgets.org ##
13686## ----------------------------------------- ##
a848cd7e
SC
13687_ASBOX
13688 ) |
13689 sed "s/^/$as_me: WARNING: /" >&2
13690 ;;
13691esac
13692echo "$as_me:$LINENO: checking for $ac_header" >&5
13693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13694if eval "test \"\${$as_ac_Header+set}\" = set"; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
ac1cb8d3 13697 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13698fi
13699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13701
13702fi
13703if test `eval echo '${'$as_ac_Header'}'` = yes; then
13704 cat >>confdefs.h <<_ACEOF
13705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13706_ACEOF
13707
13708fi
13709
13710done
13711
13712fi
13713
13714
13715for ac_header in fnmatch.h
13716do
13717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13718if eval "test \"\${$as_ac_Header+set}\" = set"; then
13719 echo "$as_me:$LINENO: checking for $ac_header" >&5
13720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13721if eval "test \"\${$as_ac_Header+set}\" = set"; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723fi
13724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13726else
13727 # Is the header compilable?
13728echo "$as_me:$LINENO: checking $ac_header usability" >&5
13729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13730cat >conftest.$ac_ext <<_ACEOF
13731/* confdefs.h. */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
13735/* end confdefs.h. */
13736$ac_includes_default
13737#include <$ac_header>
13738_ACEOF
13739rm -f conftest.$ac_objext
13740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13741 (eval $ac_compile) 2>conftest.er1
a848cd7e 13742 ac_status=$?
ac1cb8d3
VS
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
a848cd7e
SC
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
fc480dc1
DE
13748 { ac_try='test -z "$ac_c_werror_flag"
13749 || test ! -s conftest.err'
ac1cb8d3
VS
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; } &&
13755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_header_compiler=yes
13762else
13763 echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766ac_header_compiler=no
13767fi
ac1cb8d3 13768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13770echo "${ECHO_T}$ac_header_compiler" >&6
13771
13772# Is the header present?
13773echo "$as_me:$LINENO: checking $ac_header presence" >&5
13774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13775cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h. */
13781#include <$ac_header>
13782_ACEOF
13783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } >/dev/null; then
13791 if test -s conftest.err; then
13792 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13794 else
13795 ac_cpp_err=
13796 fi
13797else
13798 ac_cpp_err=yes
13799fi
13800if test -z "$ac_cpp_err"; then
13801 ac_header_preproc=yes
13802else
13803 echo "$as_me: failed program was:" >&5
13804sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 ac_header_preproc=no
13807fi
13808rm -f conftest.err conftest.$ac_ext
13809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13810echo "${ECHO_T}$ac_header_preproc" >&6
13811
13812# So? What about this header?
ac1cb8d3
VS
13813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13814 yes:no: )
a848cd7e
SC
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13819 ac_header_preproc=yes
a848cd7e 13820 ;;
ac1cb8d3 13821 no:yes:* )
a848cd7e
SC
13822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13834 (
13835 cat <<\_ASBOX
ac1cb8d3
VS
13836## ----------------------------------------- ##
13837## Report this to wx-dev@lists.wxwidgets.org ##
13838## ----------------------------------------- ##
a848cd7e
SC
13839_ASBOX
13840 ) |
13841 sed "s/^/$as_me: WARNING: /" >&2
13842 ;;
13843esac
13844echo "$as_me:$LINENO: checking for $ac_header" >&5
13845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13846if eval "test \"\${$as_ac_Header+set}\" = set"; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848else
ac1cb8d3 13849 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13850fi
13851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13853
13854fi
13855if test `eval echo '${'$as_ac_Header'}'` = yes; then
13856 cat >>confdefs.h <<_ACEOF
13857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858_ACEOF
13859
13860fi
13861
13862done
13863
13864
13865if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13866
13867for ac_func in fnmatch
13868do
13869as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13870echo "$as_me:$LINENO: checking for $ac_func" >&5
13871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13872if eval "test \"\${$as_ac_var+set}\" = set"; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874else
13875 cat >conftest.$ac_ext <<_ACEOF
13876/* confdefs.h. */
13877_ACEOF
13878cat confdefs.h >>conftest.$ac_ext
13879cat >>conftest.$ac_ext <<_ACEOF
13880/* end confdefs.h. */
ac1cb8d3
VS
13881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13883#define $ac_func innocuous_$ac_func
13884
a848cd7e
SC
13885/* System header to define __stub macros and hopefully few prototypes,
13886 which can conflict with char $ac_func (); below.
13887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13889
a848cd7e
SC
13890#ifdef __STDC__
13891# include <limits.h>
13892#else
13893# include <assert.h>
13894#endif
ac1cb8d3
VS
13895
13896#undef $ac_func
13897
a848cd7e
SC
13898/* Override any gcc2 internal prototype to avoid an error. */
13899#ifdef __cplusplus
13900extern "C"
13901{
13902#endif
13903/* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905char $ac_func ();
13906/* The GNU C library defines this for functions which it implements
13907 to always fail with ENOSYS. Some functions are actually named
13908 something starting with __ and the normal name is an alias. */
13909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13910choke me
13911#else
13912char (*f) () = $ac_func;
13913#endif
13914#ifdef __cplusplus
13915}
13916#endif
13917
13918int
13919main ()
13920{
13921return f != $ac_func;
13922 ;
13923 return 0;
13924}
13925_ACEOF
13926rm -f conftest.$ac_objext conftest$ac_exeext
13927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13928 (eval $ac_link) 2>conftest.er1
a848cd7e 13929 ac_status=$?
ac1cb8d3
VS
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
a848cd7e
SC
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
fc480dc1
DE
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
ac1cb8d3
VS
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 eval "$as_ac_var=yes"
13949else
13950 echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
13952
13953eval "$as_ac_var=no"
13954fi
ac1cb8d3
VS
13955rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13957fi
13958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13960if test `eval echo '${'$as_ac_var'}'` = yes; then
13961 cat >>confdefs.h <<_ACEOF
13962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13963_ACEOF
13964
13965fi
13966done
13967
13968fi
13969
13970
13971for ac_header in langinfo.h
13972do
13973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13974if eval "test \"\${$as_ac_Header+set}\" = set"; then
13975 echo "$as_me:$LINENO: checking for $ac_header" >&5
13976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13977if eval "test \"\${$as_ac_Header+set}\" = set"; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979fi
13980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13982else
13983 # Is the header compilable?
13984echo "$as_me:$LINENO: checking $ac_header usability" >&5
13985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13986cat >conftest.$ac_ext <<_ACEOF
13987/* confdefs.h. */
13988_ACEOF
13989cat confdefs.h >>conftest.$ac_ext
13990cat >>conftest.$ac_ext <<_ACEOF
13991/* end confdefs.h. */
13992$ac_includes_default
13993#include <$ac_header>
13994_ACEOF
13995rm -f conftest.$ac_objext
13996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13997 (eval $ac_compile) 2>conftest.er1
a848cd7e 13998 ac_status=$?
ac1cb8d3
VS
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
a848cd7e
SC
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
fc480dc1
DE
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
ac1cb8d3
VS
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_header_compiler=yes
14018else
14019 echo "$as_me: failed program was:" >&5
14020sed 's/^/| /' conftest.$ac_ext >&5
14021
14022ac_header_compiler=no
14023fi
ac1cb8d3 14024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14026echo "${ECHO_T}$ac_header_compiler" >&6
14027
14028# Is the header present?
14029echo "$as_me:$LINENO: checking $ac_header presence" >&5
14030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14031cat >conftest.$ac_ext <<_ACEOF
14032/* confdefs.h. */
14033_ACEOF
14034cat confdefs.h >>conftest.$ac_ext
14035cat >>conftest.$ac_ext <<_ACEOF
14036/* end confdefs.h. */
14037#include <$ac_header>
14038_ACEOF
14039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } >/dev/null; then
14047 if test -s conftest.err; then
14048 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14050 else
14051 ac_cpp_err=
14052 fi
14053else
14054 ac_cpp_err=yes
14055fi
14056if test -z "$ac_cpp_err"; then
14057 ac_header_preproc=yes
14058else
14059 echo "$as_me: failed program was:" >&5
14060sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_header_preproc=no
14063fi
14064rm -f conftest.err conftest.$ac_ext
14065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14066echo "${ECHO_T}$ac_header_preproc" >&6
14067
14068# So? What about this header?
ac1cb8d3
VS
14069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14070 yes:no: )
a848cd7e
SC
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14075 ac_header_preproc=yes
a848cd7e 14076 ;;
ac1cb8d3 14077 no:yes:* )
a848cd7e
SC
14078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14090 (
14091 cat <<\_ASBOX
ac1cb8d3
VS
14092## ----------------------------------------- ##
14093## Report this to wx-dev@lists.wxwidgets.org ##
14094## ----------------------------------------- ##
a848cd7e
SC
14095_ASBOX
14096 ) |
14097 sed "s/^/$as_me: WARNING: /" >&2
14098 ;;
14099esac
14100echo "$as_me:$LINENO: checking for $ac_header" >&5
14101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14102if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104else
ac1cb8d3 14105 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14106fi
14107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14109
14110fi
14111if test `eval echo '${'$as_ac_Header'}'` = yes; then
14112 cat >>confdefs.h <<_ACEOF
14113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14114_ACEOF
14115
14116fi
14117
14118done
14119
14120
14121case "${host}" in
14122 *-pc-os2_emx | *-pc-os2-emx )
14123 if test $ac_cv_header_langinfo_h = "yes"; then
14124 LIBS="$LIBS -lintl"
14125 fi
14126 ;;
14127esac
14128
14129if test "$wxUSE_GUI" = "yes"; then
14130 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14131
14132for ac_header in X11/Xlib.h
14133do
14134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14135if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo "$as_me:$LINENO: checking for $ac_header" >&5
14137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140fi
14141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143else
14144 # Is the header compilable?
14145echo "$as_me:$LINENO: checking $ac_header usability" >&5
14146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14147cat >conftest.$ac_ext <<_ACEOF
14148/* confdefs.h. */
14149_ACEOF
14150cat confdefs.h >>conftest.$ac_ext
14151cat >>conftest.$ac_ext <<_ACEOF
14152/* end confdefs.h. */
14153$ac_includes_default
14154#include <$ac_header>
14155_ACEOF
14156rm -f conftest.$ac_objext
14157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14158 (eval $ac_compile) 2>conftest.er1
a848cd7e 14159 ac_status=$?
ac1cb8d3
VS
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
a848cd7e
SC
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
fc480dc1
DE
14165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
ac1cb8d3
VS
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_header_compiler=yes
14179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183ac_header_compiler=no
14184fi
ac1cb8d3 14185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14187echo "${ECHO_T}$ac_header_compiler" >&6
14188
14189# Is the header present?
14190echo "$as_me:$LINENO: checking $ac_header presence" >&5
14191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14192cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
14198#include <$ac_header>
14199_ACEOF
14200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } >/dev/null; then
14208 if test -s conftest.err; then
14209 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14211 else
14212 ac_cpp_err=
14213 fi
14214else
14215 ac_cpp_err=yes
14216fi
14217if test -z "$ac_cpp_err"; then
14218 ac_header_preproc=yes
14219else
14220 echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 ac_header_preproc=no
14224fi
14225rm -f conftest.err conftest.$ac_ext
14226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14227echo "${ECHO_T}$ac_header_preproc" >&6
14228
14229# So? What about this header?
ac1cb8d3
VS
14230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14231 yes:no: )
a848cd7e
SC
14232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14236 ac_header_preproc=yes
a848cd7e 14237 ;;
ac1cb8d3 14238 no:yes:* )
a848cd7e
SC
14239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14251 (
14252 cat <<\_ASBOX
ac1cb8d3
VS
14253## ----------------------------------------- ##
14254## Report this to wx-dev@lists.wxwidgets.org ##
14255## ----------------------------------------- ##
a848cd7e
SC
14256_ASBOX
14257 ) |
14258 sed "s/^/$as_me: WARNING: /" >&2
14259 ;;
14260esac
14261echo "$as_me:$LINENO: checking for $ac_header" >&5
14262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14263if eval "test \"\${$as_ac_Header+set}\" = set"; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
ac1cb8d3 14266 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14267fi
14268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14270
14271fi
14272if test `eval echo '${'$as_ac_Header'}'` = yes; then
14273 cat >>confdefs.h <<_ACEOF
14274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14275_ACEOF
14276
14277fi
14278
14279done
14280
14281
14282for ac_header in X11/XKBlib.h
14283do
14284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14285echo "$as_me:$LINENO: checking for $ac_header" >&5
14286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14287if eval "test \"\${$as_ac_Header+set}\" = set"; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289else
14290 cat >conftest.$ac_ext <<_ACEOF
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
14295/* end confdefs.h. */
14296
14297 #if HAVE_X11_XLIB_H
14298 #include <X11/Xlib.h>
14299 #endif
14300
14301
14302#include <$ac_header>
14303_ACEOF
14304rm -f conftest.$ac_objext
14305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14306 (eval $ac_compile) 2>conftest.er1
a848cd7e 14307 ac_status=$?
ac1cb8d3
VS
14308 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1
14310 cat conftest.err >&5
a848cd7e
SC
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
fc480dc1
DE
14313 { ac_try='test -z "$ac_c_werror_flag"
14314 || test ! -s conftest.err'
ac1cb8d3
VS
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 eval "$as_ac_Header=yes"
14327else
14328 echo "$as_me: failed program was:" >&5
14329sed 's/^/| /' conftest.$ac_ext >&5
14330
14331eval "$as_ac_Header=no"
14332fi
ac1cb8d3 14333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14334fi
14335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14337if test `eval echo '${'$as_ac_Header'}'` = yes; then
14338 cat >>confdefs.h <<_ACEOF
14339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14340_ACEOF
14341
14342fi
14343
14344done
14345
14346 fi
14347fi
14348
14349
14350echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14351echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14352if test "${ac_cv_c_const+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354else
14355 cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
14361
14362int
14363main ()
14364{
14365/* FIXME: Include the comments suggested by Paul. */
14366#ifndef __cplusplus
14367 /* Ultrix mips cc rejects this. */
14368 typedef int charset[2];
14369 const charset x;
14370 /* SunOS 4.1.1 cc rejects this. */
14371 char const *const *ccp;
14372 char **p;
14373 /* NEC SVR4.0.2 mips cc rejects this. */
14374 struct point {int x, y;};
14375 static struct point const zero = {0,0};
14376 /* AIX XL C 1.02.0.0 rejects this.
14377 It does not let you subtract one const X* pointer from another in
14378 an arm of an if-expression whose if-part is not a constant
14379 expression */
14380 const char *g = "string";
14381 ccp = &g + (g ? g-g : 0);
14382 /* HPUX 7.0 cc rejects these. */
14383 ++ccp;
14384 p = (char**) ccp;
14385 ccp = (char const *const *) p;
14386 { /* SCO 3.2v4 cc rejects this. */
14387 char *t;
14388 char const *s = 0 ? (char *) 0 : (char const *) 0;
14389
14390 *t++ = 0;
14391 }
14392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14393 int x[] = {25, 17};
14394 const int *foo = &x[0];
14395 ++foo;
14396 }
14397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14398 typedef const int *iptr;
14399 iptr p = 0;
14400 ++p;
14401 }
14402 { /* AIX XL C 1.02.0.0 rejects this saying
14403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14404 struct s { int j; const int *ap[3]; };
14405 struct s *b; b->j = 5;
14406 }
14407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14408 const int foo = 10;
14409 }
14410#endif
14411
14412 ;
14413 return 0;
14414}
14415_ACEOF
14416rm -f conftest.$ac_objext
14417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14418 (eval $ac_compile) 2>conftest.er1
a848cd7e 14419 ac_status=$?
ac1cb8d3
VS
14420 grep -v '^ *+' conftest.er1 >conftest.err
14421 rm -f conftest.er1
14422 cat conftest.err >&5
a848cd7e
SC
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
fc480dc1
DE
14425 { ac_try='test -z "$ac_c_werror_flag"
14426 || test ! -s conftest.err'
ac1cb8d3
VS
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 ac_cv_c_const=yes
14439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443ac_cv_c_const=no
14444fi
ac1cb8d3 14445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14446fi
14447echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14448echo "${ECHO_T}$ac_cv_c_const" >&6
14449if test $ac_cv_c_const = no; then
14450
14451cat >>confdefs.h <<\_ACEOF
14452#define const
14453_ACEOF
14454
14455fi
14456
14457echo "$as_me:$LINENO: checking for inline" >&5
14458echo $ECHO_N "checking for inline... $ECHO_C" >&6
14459if test "${ac_cv_c_inline+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14461else
14462 ac_cv_c_inline=no
14463for ac_kw in inline __inline__ __inline; do
14464 cat >conftest.$ac_ext <<_ACEOF
14465/* confdefs.h. */
14466_ACEOF
14467cat confdefs.h >>conftest.$ac_ext
14468cat >>conftest.$ac_ext <<_ACEOF
14469/* end confdefs.h. */
14470#ifndef __cplusplus
14471typedef int foo_t;
14472static $ac_kw foo_t static_foo () {return 0; }
14473$ac_kw foo_t foo () {return 0; }
14474#endif
14475
14476_ACEOF
14477rm -f conftest.$ac_objext
14478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14479 (eval $ac_compile) 2>conftest.er1
a848cd7e 14480 ac_status=$?
ac1cb8d3
VS
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
a848cd7e
SC
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
fc480dc1
DE
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
ac1cb8d3
VS
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14499 ac_cv_c_inline=$ac_kw; break
14500else
14501 echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
14504fi
ac1cb8d3 14505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14506done
14507
14508fi
14509echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14510echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14511
14512
a848cd7e
SC
14513case $ac_cv_c_inline in
14514 inline | yes) ;;
ac1cb8d3
VS
14515 *)
14516 case $ac_cv_c_inline in
14517 no) ac_val=;;
14518 *) ac_val=$ac_cv_c_inline;;
14519 esac
14520 cat >>confdefs.h <<_ACEOF
14521#ifndef __cplusplus
14522#define inline $ac_val
14523#endif
de59c161 14524_ACEOF
ac1cb8d3 14525 ;;
a848cd7e
SC
14526esac
14527
14528
14529echo "$as_me:$LINENO: checking for char" >&5
14530echo $ECHO_N "checking for char... $ECHO_C" >&6
14531if test "${ac_cv_type_char+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14533else
14534 cat >conftest.$ac_ext <<_ACEOF
14535/* confdefs.h. */
14536_ACEOF
14537cat confdefs.h >>conftest.$ac_ext
14538cat >>conftest.$ac_ext <<_ACEOF
14539/* end confdefs.h. */
14540$ac_includes_default
14541int
14542main ()
14543{
14544if ((char *) 0)
14545 return 0;
14546if (sizeof (char))
14547 return 0;
14548 ;
14549 return 0;
14550}
14551_ACEOF
14552rm -f conftest.$ac_objext
14553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14554 (eval $ac_compile) 2>conftest.er1
a848cd7e 14555 ac_status=$?
ac1cb8d3
VS
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
a848cd7e
SC
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
fc480dc1
DE
14561 { ac_try='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
ac1cb8d3
VS
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_type_char=yes
14575else
14576 echo "$as_me: failed program was:" >&5
14577sed 's/^/| /' conftest.$ac_ext >&5
14578
14579ac_cv_type_char=no
14580fi
ac1cb8d3 14581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14582fi
14583echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14584echo "${ECHO_T}$ac_cv_type_char" >&6
14585
14586echo "$as_me:$LINENO: checking size of char" >&5
14587echo $ECHO_N "checking size of char... $ECHO_C" >&6
14588if test "${ac_cv_sizeof_char+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590else
14591 if test "$ac_cv_type_char" = yes; then
14592 # The cast to unsigned long works around a bug in the HP C Compiler
14593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14595 # This bug is HP SR number 8606223364.
14596 if test "$cross_compiling" = yes; then
14597 # Depending upon the size, compute the lo and hi bounds.
14598cat >conftest.$ac_ext <<_ACEOF
14599/* confdefs.h. */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h. */
14604$ac_includes_default
14605int
14606main ()
14607{
14608static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14609test_array [0] = 0
14610
14611 ;
14612 return 0;
14613}
14614_ACEOF
14615rm -f conftest.$ac_objext
14616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14617 (eval $ac_compile) 2>conftest.er1
a848cd7e 14618 ac_status=$?
ac1cb8d3
VS
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
a848cd7e
SC
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
fc480dc1
DE
14624 { ac_try='test -z "$ac_c_werror_flag"
14625 || test ! -s conftest.err'
ac1cb8d3
VS
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_lo=0 ac_mid=0
14638 while :; do
14639 cat >conftest.$ac_ext <<_ACEOF
14640/* confdefs.h. */
14641_ACEOF
14642cat confdefs.h >>conftest.$ac_ext
14643cat >>conftest.$ac_ext <<_ACEOF
14644/* end confdefs.h. */
14645$ac_includes_default
14646int
14647main ()
14648{
14649static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14650test_array [0] = 0
14651
14652 ;
14653 return 0;
14654}
14655_ACEOF
14656rm -f conftest.$ac_objext
14657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14658 (eval $ac_compile) 2>conftest.er1
a848cd7e 14659 ac_status=$?
ac1cb8d3
VS
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
a848cd7e
SC
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } &&
fc480dc1
DE
14665 { ac_try='test -z "$ac_c_werror_flag"
14666 || test ! -s conftest.err'
ac1cb8d3
VS
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; } &&
14672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_hi=$ac_mid; break
14679else
14680 echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14684 if test $ac_lo -le $ac_mid; then
14685 ac_lo= ac_hi=
14686 break
14687 fi
14688 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14689fi
ac1cb8d3 14690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14691 done
14692else
14693 echo "$as_me: failed program was:" >&5
14694sed 's/^/| /' conftest.$ac_ext >&5
14695
14696cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702$ac_includes_default
14703int
14704main ()
14705{
14706static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14707test_array [0] = 0
14708
14709 ;
14710 return 0;
14711}
14712_ACEOF
14713rm -f conftest.$ac_objext
14714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14715 (eval $ac_compile) 2>conftest.er1
a848cd7e 14716 ac_status=$?
ac1cb8d3
VS
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
a848cd7e
SC
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
fc480dc1
DE
14722 { ac_try='test -z "$ac_c_werror_flag"
14723 || test ! -s conftest.err'
ac1cb8d3
VS
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; } &&
14729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735 ac_hi=-1 ac_mid=-1
14736 while :; do
14737 cat >conftest.$ac_ext <<_ACEOF
14738/* confdefs.h. */
14739_ACEOF
14740cat confdefs.h >>conftest.$ac_ext
14741cat >>conftest.$ac_ext <<_ACEOF
14742/* end confdefs.h. */
14743$ac_includes_default
14744int
14745main ()
14746{
14747static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14748test_array [0] = 0
14749
14750 ;
14751 return 0;
14752}
14753_ACEOF
14754rm -f conftest.$ac_objext
14755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14756 (eval $ac_compile) 2>conftest.er1
a848cd7e 14757 ac_status=$?
ac1cb8d3
VS
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
a848cd7e
SC
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
fc480dc1
DE
14763 { ac_try='test -z "$ac_c_werror_flag"
14764 || test ! -s conftest.err'
ac1cb8d3
VS
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; } &&
14770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 ac_lo=$ac_mid; break
14777else
14778 echo "$as_me: failed program was:" >&5
14779sed 's/^/| /' conftest.$ac_ext >&5
14780
14781ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14782 if test $ac_mid -le $ac_hi; then
14783 ac_lo= ac_hi=
14784 break
14785 fi
14786 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14787fi
ac1cb8d3 14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14789 done
14790else
14791 echo "$as_me: failed program was:" >&5
14792sed 's/^/| /' conftest.$ac_ext >&5
14793
14794ac_lo= ac_hi=
14795fi
ac1cb8d3 14796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14797fi
ac1cb8d3 14798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14799# Binary search between lo and hi bounds.
14800while test "x$ac_lo" != "x$ac_hi"; do
14801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14802 cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808$ac_includes_default
14809int
14810main ()
14811{
14812static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14813test_array [0] = 0
14814
14815 ;
14816 return 0;
14817}
14818_ACEOF
14819rm -f conftest.$ac_objext
14820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14821 (eval $ac_compile) 2>conftest.er1
a848cd7e 14822 ac_status=$?
ac1cb8d3
VS
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
a848cd7e
SC
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
fc480dc1
DE
14828 { ac_try='test -z "$ac_c_werror_flag"
14829 || test ! -s conftest.err'
ac1cb8d3
VS
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_hi=$ac_mid
14842else
14843 echo "$as_me: failed program was:" >&5
14844sed 's/^/| /' conftest.$ac_ext >&5
14845
14846ac_lo=`expr '(' $ac_mid ')' + 1`
14847fi
ac1cb8d3 14848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14849done
14850case $ac_lo in
14851?*) ac_cv_sizeof_char=$ac_lo;;
14852'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14853See \`config.log' for more details." >&5
14854echo "$as_me: error: cannot compute sizeof (char), 77
14855See \`config.log' for more details." >&2;}
14856 { (exit 1); exit 1; }; } ;;
14857esac
14858else
14859 if test "$cross_compiling" = yes; then
fc480dc1
DE
14860 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14861See \`config.log' for more details." >&5
14862echo "$as_me: error: cannot run test program while cross compiling
14863See \`config.log' for more details." >&2;}
a848cd7e
SC
14864 { (exit 1); exit 1; }; }
14865else
14866 cat >conftest.$ac_ext <<_ACEOF
14867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
14872$ac_includes_default
14873long longval () { return (long) (sizeof (char)); }
14874unsigned long ulongval () { return (long) (sizeof (char)); }
14875#include <stdio.h>
14876#include <stdlib.h>
14877int
14878main ()
14879{
14880
14881 FILE *f = fopen ("conftest.val", "w");
14882 if (! f)
14883 exit (1);
14884 if (((long) (sizeof (char))) < 0)
14885 {
14886 long i = longval ();
14887 if (i != ((long) (sizeof (char))))
14888 exit (1);
14889 fprintf (f, "%ld\n", i);
14890 }
14891 else
14892 {
14893 unsigned long i = ulongval ();
14894 if (i != ((long) (sizeof (char))))
14895 exit (1);
14896 fprintf (f, "%lu\n", i);
14897 }
14898 exit (ferror (f) || fclose (f) != 0);
14899
14900 ;
14901 return 0;
14902}
14903_ACEOF
14904rm -f conftest$ac_exeext
14905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906 (eval $ac_link) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_cv_sizeof_char=`cat conftest.val`
14916else
14917 echo "$as_me: program exited with status $ac_status" >&5
14918echo "$as_me: failed program was:" >&5
14919sed 's/^/| /' conftest.$ac_ext >&5
14920
14921( exit $ac_status )
14922{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14923See \`config.log' for more details." >&5
14924echo "$as_me: error: cannot compute sizeof (char), 77
14925See \`config.log' for more details." >&2;}
14926 { (exit 1); exit 1; }; }
14927fi
ac1cb8d3 14928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14929fi
14930fi
14931rm -f conftest.val
14932else
14933 ac_cv_sizeof_char=0
14934fi
14935fi
14936echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14937echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14938cat >>confdefs.h <<_ACEOF
14939#define SIZEOF_CHAR $ac_cv_sizeof_char
14940_ACEOF
14941
14942
14943echo "$as_me:$LINENO: checking for short" >&5
14944echo $ECHO_N "checking for short... $ECHO_C" >&6
14945if test "${ac_cv_type_short+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947else
14948 cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954$ac_includes_default
14955int
14956main ()
14957{
14958if ((short *) 0)
14959 return 0;
14960if (sizeof (short))
14961 return 0;
14962 ;
14963 return 0;
14964}
14965_ACEOF
14966rm -f conftest.$ac_objext
14967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14968 (eval $ac_compile) 2>conftest.er1
a848cd7e 14969 ac_status=$?
ac1cb8d3
VS
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
a848cd7e
SC
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
fc480dc1
DE
14975 { ac_try='test -z "$ac_c_werror_flag"
14976 || test ! -s conftest.err'
ac1cb8d3
VS
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_cv_type_short=yes
14989else
14990 echo "$as_me: failed program was:" >&5
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
14993ac_cv_type_short=no
14994fi
ac1cb8d3 14995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14996fi
14997echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14998echo "${ECHO_T}$ac_cv_type_short" >&6
14999
15000echo "$as_me:$LINENO: checking size of short" >&5
15001echo $ECHO_N "checking size of short... $ECHO_C" >&6
15002if test "${ac_cv_sizeof_short+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004else
15005 if test "$ac_cv_type_short" = yes; then
15006 # The cast to unsigned long works around a bug in the HP C Compiler
15007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15009 # This bug is HP SR number 8606223364.
15010 if test "$cross_compiling" = yes; then
15011 # Depending upon the size, compute the lo and hi bounds.
15012cat >conftest.$ac_ext <<_ACEOF
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
15018$ac_includes_default
15019int
15020main ()
15021{
15022static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15023test_array [0] = 0
15024
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15031 (eval $ac_compile) 2>conftest.er1
a848cd7e 15032 ac_status=$?
ac1cb8d3
VS
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
a848cd7e
SC
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
fc480dc1
DE
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
ac1cb8d3
VS
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_lo=0 ac_mid=0
15052 while :; do
15053 cat >conftest.$ac_ext <<_ACEOF
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
15058/* end confdefs.h. */
15059$ac_includes_default
15060int
15061main ()
15062{
15063static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15064test_array [0] = 0
15065
15066 ;
15067 return 0;
15068}
15069_ACEOF
15070rm -f conftest.$ac_objext
15071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15072 (eval $ac_compile) 2>conftest.er1
a848cd7e 15073 ac_status=$?
ac1cb8d3
VS
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
a848cd7e
SC
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
fc480dc1
DE
15079 { ac_try='test -z "$ac_c_werror_flag"
15080 || test ! -s conftest.err'
ac1cb8d3
VS
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; } &&
15086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_hi=$ac_mid; break
15093else
15094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15098 if test $ac_lo -le $ac_mid; then
15099 ac_lo= ac_hi=
15100 break
15101 fi
15102 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15103fi
ac1cb8d3 15104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15105 done
15106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117int
15118main ()
15119{
15120static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15121test_array [0] = 0
15122
15123 ;
15124 return 0;
15125}
15126_ACEOF
15127rm -f conftest.$ac_objext
15128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15129 (eval $ac_compile) 2>conftest.er1
a848cd7e 15130 ac_status=$?
ac1cb8d3
VS
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
a848cd7e
SC
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
fc480dc1
DE
15136 { ac_try='test -z "$ac_c_werror_flag"
15137 || test ! -s conftest.err'
ac1cb8d3
VS
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 ac_hi=-1 ac_mid=-1
15150 while :; do
15151 cat >conftest.$ac_ext <<_ACEOF
15152/* confdefs.h. */
15153_ACEOF
15154cat confdefs.h >>conftest.$ac_ext
15155cat >>conftest.$ac_ext <<_ACEOF
15156/* end confdefs.h. */
15157$ac_includes_default
15158int
15159main ()
15160{
15161static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15162test_array [0] = 0
15163
15164 ;
15165 return 0;
15166}
15167_ACEOF
15168rm -f conftest.$ac_objext
15169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15170 (eval $ac_compile) 2>conftest.er1
a848cd7e 15171 ac_status=$?
ac1cb8d3
VS
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
a848cd7e
SC
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
fc480dc1
DE
15177 { ac_try='test -z "$ac_c_werror_flag"
15178 || test ! -s conftest.err'
ac1cb8d3
VS
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_lo=$ac_mid; break
15191else
15192 echo "$as_me: failed program was:" >&5
15193sed 's/^/| /' conftest.$ac_ext >&5
15194
15195ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15196 if test $ac_mid -le $ac_hi; then
15197 ac_lo= ac_hi=
15198 break
15199 fi
15200 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15201fi
ac1cb8d3 15202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15203 done
15204else
15205 echo "$as_me: failed program was:" >&5
15206sed 's/^/| /' conftest.$ac_ext >&5
15207
15208ac_lo= ac_hi=
15209fi
ac1cb8d3 15210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15211fi
ac1cb8d3 15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15213# Binary search between lo and hi bounds.
15214while test "x$ac_lo" != "x$ac_hi"; do
15215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15216 cat >conftest.$ac_ext <<_ACEOF
15217/* confdefs.h. */
15218_ACEOF
15219cat confdefs.h >>conftest.$ac_ext
15220cat >>conftest.$ac_ext <<_ACEOF
15221/* end confdefs.h. */
15222$ac_includes_default
15223int
15224main ()
15225{
15226static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15227test_array [0] = 0
15228
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233rm -f conftest.$ac_objext
15234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15235 (eval $ac_compile) 2>conftest.er1
a848cd7e 15236 ac_status=$?
ac1cb8d3
VS
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
a848cd7e
SC
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
fc480dc1
DE
15242 { ac_try='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
ac1cb8d3
VS
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_hi=$ac_mid
15256else
15257 echo "$as_me: failed program was:" >&5
15258sed 's/^/| /' conftest.$ac_ext >&5
15259
15260ac_lo=`expr '(' $ac_mid ')' + 1`
15261fi
ac1cb8d3 15262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15263done
15264case $ac_lo in
15265?*) ac_cv_sizeof_short=$ac_lo;;
15266'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15267See \`config.log' for more details." >&5
15268echo "$as_me: error: cannot compute sizeof (short), 77
15269See \`config.log' for more details." >&2;}
15270 { (exit 1); exit 1; }; } ;;
15271esac
15272else
15273 if test "$cross_compiling" = yes; then
fc480dc1
DE
15274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15275See \`config.log' for more details." >&5
15276echo "$as_me: error: cannot run test program while cross compiling
15277See \`config.log' for more details." >&2;}
a848cd7e
SC
15278 { (exit 1); exit 1; }; }
15279else
15280 cat >conftest.$ac_ext <<_ACEOF
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
15286$ac_includes_default
15287long longval () { return (long) (sizeof (short)); }
15288unsigned long ulongval () { return (long) (sizeof (short)); }
15289#include <stdio.h>
15290#include <stdlib.h>
15291int
15292main ()
15293{
15294
15295 FILE *f = fopen ("conftest.val", "w");
15296 if (! f)
15297 exit (1);
15298 if (((long) (sizeof (short))) < 0)
15299 {
15300 long i = longval ();
15301 if (i != ((long) (sizeof (short))))
15302 exit (1);
15303 fprintf (f, "%ld\n", i);
15304 }
15305 else
15306 {
15307 unsigned long i = ulongval ();
15308 if (i != ((long) (sizeof (short))))
15309 exit (1);
15310 fprintf (f, "%lu\n", i);
15311 }
15312 exit (ferror (f) || fclose (f) != 0);
15313
15314 ;
15315 return 0;
15316}
15317_ACEOF
15318rm -f conftest$ac_exeext
15319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320 (eval $ac_link) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_cv_sizeof_short=`cat conftest.val`
15330else
15331 echo "$as_me: program exited with status $ac_status" >&5
15332echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335( exit $ac_status )
15336{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15337See \`config.log' for more details." >&5
15338echo "$as_me: error: cannot compute sizeof (short), 77
15339See \`config.log' for more details." >&2;}
15340 { (exit 1); exit 1; }; }
15341fi
ac1cb8d3 15342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15343fi
15344fi
15345rm -f conftest.val
15346else
15347 ac_cv_sizeof_short=0
15348fi
15349fi
15350echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15351echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15352cat >>confdefs.h <<_ACEOF
15353#define SIZEOF_SHORT $ac_cv_sizeof_short
15354_ACEOF
15355
15356
15357echo "$as_me:$LINENO: checking for void *" >&5
15358echo $ECHO_N "checking for void *... $ECHO_C" >&6
15359if test "${ac_cv_type_void_p+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15361else
15362 cat >conftest.$ac_ext <<_ACEOF
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
15368$ac_includes_default
15369int
15370main ()
15371{
15372if ((void * *) 0)
15373 return 0;
15374if (sizeof (void *))
15375 return 0;
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380rm -f conftest.$ac_objext
15381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15382 (eval $ac_compile) 2>conftest.er1
a848cd7e 15383 ac_status=$?
ac1cb8d3
VS
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
a848cd7e
SC
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
fc480dc1
DE
15389 { ac_try='test -z "$ac_c_werror_flag"
15390 || test ! -s conftest.err'
ac1cb8d3
VS
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_cv_type_void_p=yes
15403else
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407ac_cv_type_void_p=no
15408fi
ac1cb8d3 15409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15410fi
15411echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15412echo "${ECHO_T}$ac_cv_type_void_p" >&6
15413
15414echo "$as_me:$LINENO: checking size of void *" >&5
15415echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15416if test "${ac_cv_sizeof_void_p+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418else
15419 if test "$ac_cv_type_void_p" = yes; then
15420 # The cast to unsigned long works around a bug in the HP C Compiler
15421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15423 # This bug is HP SR number 8606223364.
15424 if test "$cross_compiling" = yes; then
15425 # Depending upon the size, compute the lo and hi bounds.
15426cat >conftest.$ac_ext <<_ACEOF
15427/* confdefs.h. */
15428_ACEOF
15429cat confdefs.h >>conftest.$ac_ext
15430cat >>conftest.$ac_ext <<_ACEOF
15431/* end confdefs.h. */
15432$ac_includes_default
15433int
15434main ()
15435{
15436static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15437test_array [0] = 0
15438
15439 ;
15440 return 0;
15441}
15442_ACEOF
15443rm -f conftest.$ac_objext
15444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15445 (eval $ac_compile) 2>conftest.er1
a848cd7e 15446 ac_status=$?
ac1cb8d3
VS
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
a848cd7e
SC
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
fc480dc1
DE
15452 { ac_try='test -z "$ac_c_werror_flag"
15453 || test ! -s conftest.err'
ac1cb8d3
VS
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; } &&
15459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_lo=0 ac_mid=0
15466 while :; do
15467 cat >conftest.$ac_ext <<_ACEOF
15468/* confdefs.h. */
15469_ACEOF
15470cat confdefs.h >>conftest.$ac_ext
15471cat >>conftest.$ac_ext <<_ACEOF
15472/* end confdefs.h. */
15473$ac_includes_default
15474int
15475main ()
15476{
15477static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15478test_array [0] = 0
15479
15480 ;
15481 return 0;
15482}
15483_ACEOF
15484rm -f conftest.$ac_objext
15485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15486 (eval $ac_compile) 2>conftest.er1
a848cd7e 15487 ac_status=$?
ac1cb8d3
VS
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
a848cd7e
SC
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
fc480dc1
DE
15493 { ac_try='test -z "$ac_c_werror_flag"
15494 || test ! -s conftest.err'
ac1cb8d3
VS
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_hi=$ac_mid; break
15507else
15508 echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15512 if test $ac_lo -le $ac_mid; then
15513 ac_lo= ac_hi=
15514 break
15515 fi
15516 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15517fi
ac1cb8d3 15518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15519 done
15520else
15521 echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524cat >conftest.$ac_ext <<_ACEOF
15525/* confdefs.h. */
15526_ACEOF
15527cat confdefs.h >>conftest.$ac_ext
15528cat >>conftest.$ac_ext <<_ACEOF
15529/* end confdefs.h. */
15530$ac_includes_default
15531int
15532main ()
15533{
15534static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15535test_array [0] = 0
15536
15537 ;
15538 return 0;
15539}
15540_ACEOF
15541rm -f conftest.$ac_objext
15542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15543 (eval $ac_compile) 2>conftest.er1
a848cd7e 15544 ac_status=$?
ac1cb8d3
VS
15545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -f conftest.er1
15547 cat conftest.err >&5
a848cd7e
SC
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
fc480dc1
DE
15550 { ac_try='test -z "$ac_c_werror_flag"
15551 || test ! -s conftest.err'
ac1cb8d3
VS
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 ac_hi=-1 ac_mid=-1
15564 while :; do
15565 cat >conftest.$ac_ext <<_ACEOF
15566/* confdefs.h. */
15567_ACEOF
15568cat confdefs.h >>conftest.$ac_ext
15569cat >>conftest.$ac_ext <<_ACEOF
15570/* end confdefs.h. */
15571$ac_includes_default
15572int
15573main ()
15574{
15575static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15576test_array [0] = 0
15577
15578 ;
15579 return 0;
15580}
15581_ACEOF
15582rm -f conftest.$ac_objext
15583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15584 (eval $ac_compile) 2>conftest.er1
a848cd7e 15585 ac_status=$?
ac1cb8d3
VS
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
a848cd7e
SC
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
fc480dc1
DE
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
ac1cb8d3
VS
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_lo=$ac_mid; break
15605else
15606 echo "$as_me: failed program was:" >&5
15607sed 's/^/| /' conftest.$ac_ext >&5
15608
15609ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15610 if test $ac_mid -le $ac_hi; then
15611 ac_lo= ac_hi=
15612 break
15613 fi
15614 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15615fi
ac1cb8d3 15616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15617 done
15618else
15619 echo "$as_me: failed program was:" >&5
15620sed 's/^/| /' conftest.$ac_ext >&5
15621
15622ac_lo= ac_hi=
15623fi
ac1cb8d3 15624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15625fi
ac1cb8d3 15626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15627# Binary search between lo and hi bounds.
15628while test "x$ac_lo" != "x$ac_hi"; do
15629 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15630 cat >conftest.$ac_ext <<_ACEOF
15631/* confdefs.h. */
15632_ACEOF
15633cat confdefs.h >>conftest.$ac_ext
15634cat >>conftest.$ac_ext <<_ACEOF
15635/* end confdefs.h. */
15636$ac_includes_default
15637int
15638main ()
15639{
15640static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15641test_array [0] = 0
15642
15643 ;
15644 return 0;
15645}
15646_ACEOF
15647rm -f conftest.$ac_objext
15648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15649 (eval $ac_compile) 2>conftest.er1
a848cd7e 15650 ac_status=$?
ac1cb8d3
VS
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
a848cd7e
SC
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
fc480dc1
DE
15656 { ac_try='test -z "$ac_c_werror_flag"
15657 || test ! -s conftest.err'
ac1cb8d3
VS
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15669 ac_hi=$ac_mid
15670else
15671 echo "$as_me: failed program was:" >&5
15672sed 's/^/| /' conftest.$ac_ext >&5
15673
15674ac_lo=`expr '(' $ac_mid ')' + 1`
15675fi
ac1cb8d3 15676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15677done
15678case $ac_lo in
15679?*) ac_cv_sizeof_void_p=$ac_lo;;
15680'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15681See \`config.log' for more details." >&5
15682echo "$as_me: error: cannot compute sizeof (void *), 77
15683See \`config.log' for more details." >&2;}
15684 { (exit 1); exit 1; }; } ;;
15685esac
15686else
15687 if test "$cross_compiling" = yes; then
fc480dc1
DE
15688 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15689See \`config.log' for more details." >&5
15690echo "$as_me: error: cannot run test program while cross compiling
15691See \`config.log' for more details." >&2;}
a848cd7e
SC
15692 { (exit 1); exit 1; }; }
15693else
15694 cat >conftest.$ac_ext <<_ACEOF
15695/* confdefs.h. */
15696_ACEOF
15697cat confdefs.h >>conftest.$ac_ext
15698cat >>conftest.$ac_ext <<_ACEOF
15699/* end confdefs.h. */
15700$ac_includes_default
15701long longval () { return (long) (sizeof (void *)); }
15702unsigned long ulongval () { return (long) (sizeof (void *)); }
15703#include <stdio.h>
15704#include <stdlib.h>
15705int
15706main ()
15707{
15708
15709 FILE *f = fopen ("conftest.val", "w");
15710 if (! f)
15711 exit (1);
15712 if (((long) (sizeof (void *))) < 0)
15713 {
15714 long i = longval ();
15715 if (i != ((long) (sizeof (void *))))
15716 exit (1);
15717 fprintf (f, "%ld\n", i);
15718 }
15719 else
15720 {
15721 unsigned long i = ulongval ();
15722 if (i != ((long) (sizeof (void *))))
15723 exit (1);
15724 fprintf (f, "%lu\n", i);
15725 }
15726 exit (ferror (f) || fclose (f) != 0);
15727
15728 ;
15729 return 0;
15730}
15731_ACEOF
15732rm -f conftest$ac_exeext
15733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734 (eval $ac_link) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_cv_sizeof_void_p=`cat conftest.val`
15744else
15745 echo "$as_me: program exited with status $ac_status" >&5
15746echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749( exit $ac_status )
15750{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15751See \`config.log' for more details." >&5
15752echo "$as_me: error: cannot compute sizeof (void *), 77
15753See \`config.log' for more details." >&2;}
15754 { (exit 1); exit 1; }; }
15755fi
ac1cb8d3 15756rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15757fi
15758fi
15759rm -f conftest.val
15760else
15761 ac_cv_sizeof_void_p=0
15762fi
15763fi
15764echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15765echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15766cat >>confdefs.h <<_ACEOF
15767#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15768_ACEOF
15769
15770
15771echo "$as_me:$LINENO: checking for int" >&5
15772echo $ECHO_N "checking for int... $ECHO_C" >&6
15773if test "${ac_cv_type_int+set}" = set; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15775else
15776 cat >conftest.$ac_ext <<_ACEOF
15777/* confdefs.h. */
15778_ACEOF
15779cat confdefs.h >>conftest.$ac_ext
15780cat >>conftest.$ac_ext <<_ACEOF
15781/* end confdefs.h. */
15782$ac_includes_default
15783int
15784main ()
15785{
15786if ((int *) 0)
15787 return 0;
15788if (sizeof (int))
15789 return 0;
15790 ;
15791 return 0;
15792}
15793_ACEOF
15794rm -f conftest.$ac_objext
15795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15796 (eval $ac_compile) 2>conftest.er1
a848cd7e 15797 ac_status=$?
ac1cb8d3
VS
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
a848cd7e
SC
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
fc480dc1
DE
15803 { ac_try='test -z "$ac_c_werror_flag"
15804 || test ! -s conftest.err'
ac1cb8d3
VS
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_cv_type_int=yes
15817else
15818 echo "$as_me: failed program was:" >&5
15819sed 's/^/| /' conftest.$ac_ext >&5
15820
15821ac_cv_type_int=no
15822fi
ac1cb8d3 15823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15824fi
15825echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15826echo "${ECHO_T}$ac_cv_type_int" >&6
15827
15828echo "$as_me:$LINENO: checking size of int" >&5
15829echo $ECHO_N "checking size of int... $ECHO_C" >&6
15830if test "${ac_cv_sizeof_int+set}" = set; then
15831 echo $ECHO_N "(cached) $ECHO_C" >&6
15832else
15833 if test "$ac_cv_type_int" = yes; then
15834 # The cast to unsigned long works around a bug in the HP C Compiler
15835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15837 # This bug is HP SR number 8606223364.
15838 if test "$cross_compiling" = yes; then
15839 # Depending upon the size, compute the lo and hi bounds.
15840cat >conftest.$ac_ext <<_ACEOF
15841/* confdefs.h. */
15842_ACEOF
15843cat confdefs.h >>conftest.$ac_ext
15844cat >>conftest.$ac_ext <<_ACEOF
15845/* end confdefs.h. */
15846$ac_includes_default
15847int
15848main ()
15849{
15850static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15851test_array [0] = 0
15852
15853 ;
15854 return 0;
15855}
15856_ACEOF
15857rm -f conftest.$ac_objext
15858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15859 (eval $ac_compile) 2>conftest.er1
a848cd7e 15860 ac_status=$?
ac1cb8d3
VS
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
a848cd7e
SC
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
fc480dc1
DE
15866 { ac_try='test -z "$ac_c_werror_flag"
15867 || test ! -s conftest.err'
ac1cb8d3
VS
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_lo=0 ac_mid=0
15880 while :; do
15881 cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887$ac_includes_default
15888int
15889main ()
15890{
15891static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15892test_array [0] = 0
15893
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext
15899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15900 (eval $ac_compile) 2>conftest.er1
a848cd7e 15901 ac_status=$?
ac1cb8d3
VS
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
a848cd7e
SC
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
fc480dc1
DE
15907 { ac_try='test -z "$ac_c_werror_flag"
15908 || test ! -s conftest.err'
ac1cb8d3
VS
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_hi=$ac_mid; break
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15926 if test $ac_lo -le $ac_mid; then
15927 ac_lo= ac_hi=
15928 break
15929 fi
15930 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15931fi
ac1cb8d3 15932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15933 done
15934else
15935 echo "$as_me: failed program was:" >&5
15936sed 's/^/| /' conftest.$ac_ext >&5
15937
15938cat >conftest.$ac_ext <<_ACEOF
15939/* confdefs.h. */
15940_ACEOF
15941cat confdefs.h >>conftest.$ac_ext
15942cat >>conftest.$ac_ext <<_ACEOF
15943/* end confdefs.h. */
15944$ac_includes_default
15945int
15946main ()
15947{
15948static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15949test_array [0] = 0
15950
15951 ;
15952 return 0;
15953}
15954_ACEOF
15955rm -f conftest.$ac_objext
15956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15957 (eval $ac_compile) 2>conftest.er1
a848cd7e 15958 ac_status=$?
ac1cb8d3
VS
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
a848cd7e
SC
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
fc480dc1
DE
15964 { ac_try='test -z "$ac_c_werror_flag"
15965 || test ! -s conftest.err'
ac1cb8d3
VS
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } &&
15971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977 ac_hi=-1 ac_mid=-1
15978 while :; do
15979 cat >conftest.$ac_ext <<_ACEOF
15980/* confdefs.h. */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h. */
15985$ac_includes_default
15986int
15987main ()
15988{
15989static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15990test_array [0] = 0
15991
15992 ;
15993 return 0;
15994}
15995_ACEOF
15996rm -f conftest.$ac_objext
15997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15998 (eval $ac_compile) 2>conftest.er1
a848cd7e 15999 ac_status=$?
ac1cb8d3
VS
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
a848cd7e
SC
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } &&
fc480dc1
DE
16005 { ac_try='test -z "$ac_c_werror_flag"
16006 || test ! -s conftest.err'
ac1cb8d3
VS
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; } &&
16012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_lo=$ac_mid; break
16019else
16020 echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16024 if test $ac_mid -le $ac_hi; then
16025 ac_lo= ac_hi=
16026 break
16027 fi
16028 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16029fi
ac1cb8d3 16030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16031 done
16032else
16033 echo "$as_me: failed program was:" >&5
16034sed 's/^/| /' conftest.$ac_ext >&5
16035
16036ac_lo= ac_hi=
16037fi
ac1cb8d3 16038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16039fi
ac1cb8d3 16040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16041# Binary search between lo and hi bounds.
16042while test "x$ac_lo" != "x$ac_hi"; do
16043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16044 cat >conftest.$ac_ext <<_ACEOF
16045/* confdefs.h. */
16046_ACEOF
16047cat confdefs.h >>conftest.$ac_ext
16048cat >>conftest.$ac_ext <<_ACEOF
16049/* end confdefs.h. */
16050$ac_includes_default
16051int
16052main ()
16053{
16054static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16055test_array [0] = 0
16056
16057 ;
16058 return 0;
16059}
16060_ACEOF
16061rm -f conftest.$ac_objext
16062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16063 (eval $ac_compile) 2>conftest.er1
a848cd7e 16064 ac_status=$?
ac1cb8d3
VS
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
a848cd7e
SC
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
fc480dc1
DE
16070 { ac_try='test -z "$ac_c_werror_flag"
16071 || test ! -s conftest.err'
ac1cb8d3
VS
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_hi=$ac_mid
16084else
16085 echo "$as_me: failed program was:" >&5
16086sed 's/^/| /' conftest.$ac_ext >&5
16087
16088ac_lo=`expr '(' $ac_mid ')' + 1`
16089fi
ac1cb8d3 16090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16091done
16092case $ac_lo in
16093?*) ac_cv_sizeof_int=$ac_lo;;
16094'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16095See \`config.log' for more details." >&5
16096echo "$as_me: error: cannot compute sizeof (int), 77
16097See \`config.log' for more details." >&2;}
16098 { (exit 1); exit 1; }; } ;;
16099esac
16100else
16101 if test "$cross_compiling" = yes; then
fc480dc1
DE
16102 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16103See \`config.log' for more details." >&5
16104echo "$as_me: error: cannot run test program while cross compiling
16105See \`config.log' for more details." >&2;}
a848cd7e
SC
16106 { (exit 1); exit 1; }; }
16107else
16108 cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h. */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h. */
16114$ac_includes_default
16115long longval () { return (long) (sizeof (int)); }
16116unsigned long ulongval () { return (long) (sizeof (int)); }
16117#include <stdio.h>
16118#include <stdlib.h>
16119int
16120main ()
16121{
16122
16123 FILE *f = fopen ("conftest.val", "w");
16124 if (! f)
16125 exit (1);
16126 if (((long) (sizeof (int))) < 0)
16127 {
16128 long i = longval ();
16129 if (i != ((long) (sizeof (int))))
16130 exit (1);
16131 fprintf (f, "%ld\n", i);
16132 }
16133 else
16134 {
16135 unsigned long i = ulongval ();
16136 if (i != ((long) (sizeof (int))))
16137 exit (1);
16138 fprintf (f, "%lu\n", i);
16139 }
16140 exit (ferror (f) || fclose (f) != 0);
16141
16142 ;
16143 return 0;
16144}
16145_ACEOF
16146rm -f conftest$ac_exeext
16147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148 (eval $ac_link) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_cv_sizeof_int=`cat conftest.val`
16158else
16159 echo "$as_me: program exited with status $ac_status" >&5
16160echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
16163( exit $ac_status )
16164{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16165See \`config.log' for more details." >&5
16166echo "$as_me: error: cannot compute sizeof (int), 77
16167See \`config.log' for more details." >&2;}
16168 { (exit 1); exit 1; }; }
16169fi
ac1cb8d3 16170rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16171fi
16172fi
16173rm -f conftest.val
16174else
16175 ac_cv_sizeof_int=0
16176fi
16177fi
16178echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16179echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16180cat >>confdefs.h <<_ACEOF
16181#define SIZEOF_INT $ac_cv_sizeof_int
16182_ACEOF
16183
16184
16185echo "$as_me:$LINENO: checking for long" >&5
16186echo $ECHO_N "checking for long... $ECHO_C" >&6
16187if test "${ac_cv_type_long+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189else
16190 cat >conftest.$ac_ext <<_ACEOF
16191/* confdefs.h. */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h. */
16196$ac_includes_default
16197int
16198main ()
16199{
16200if ((long *) 0)
16201 return 0;
16202if (sizeof (long))
16203 return 0;
16204 ;
16205 return 0;
16206}
16207_ACEOF
16208rm -f conftest.$ac_objext
16209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16210 (eval $ac_compile) 2>conftest.er1
a848cd7e 16211 ac_status=$?
ac1cb8d3
VS
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
a848cd7e
SC
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
fc480dc1
DE
16217 { ac_try='test -z "$ac_c_werror_flag"
16218 || test ! -s conftest.err'
ac1cb8d3
VS
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; } &&
16224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_cv_type_long=yes
16231else
16232 echo "$as_me: failed program was:" >&5
16233sed 's/^/| /' conftest.$ac_ext >&5
16234
16235ac_cv_type_long=no
16236fi
ac1cb8d3 16237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16238fi
16239echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16240echo "${ECHO_T}$ac_cv_type_long" >&6
16241
16242echo "$as_me:$LINENO: checking size of long" >&5
16243echo $ECHO_N "checking size of long... $ECHO_C" >&6
16244if test "${ac_cv_sizeof_long+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246else
16247 if test "$ac_cv_type_long" = yes; then
16248 # The cast to unsigned long works around a bug in the HP C Compiler
16249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16251 # This bug is HP SR number 8606223364.
16252 if test "$cross_compiling" = yes; then
16253 # Depending upon the size, compute the lo and hi bounds.
16254cat >conftest.$ac_ext <<_ACEOF
16255/* confdefs.h. */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h. */
16260$ac_includes_default
16261int
16262main ()
16263{
16264static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16265test_array [0] = 0
16266
16267 ;
16268 return 0;
16269}
16270_ACEOF
16271rm -f conftest.$ac_objext
16272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16273 (eval $ac_compile) 2>conftest.er1
a848cd7e 16274 ac_status=$?
ac1cb8d3
VS
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
a848cd7e
SC
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
fc480dc1
DE
16280 { ac_try='test -z "$ac_c_werror_flag"
16281 || test ! -s conftest.err'
ac1cb8d3
VS
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_lo=0 ac_mid=0
16294 while :; do
16295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16306test_array [0] = 0
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext
16313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16314 (eval $ac_compile) 2>conftest.er1
a848cd7e 16315 ac_status=$?
ac1cb8d3
VS
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
a848cd7e
SC
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
fc480dc1
DE
16321 { ac_try='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
ac1cb8d3
VS
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_hi=$ac_mid; break
16335else
16336 echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16340 if test $ac_lo -le $ac_mid; then
16341 ac_lo= ac_hi=
16342 break
16343 fi
16344 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16345fi
ac1cb8d3 16346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16347 done
16348else
16349 echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352cat >conftest.$ac_ext <<_ACEOF
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358$ac_includes_default
16359int
16360main ()
16361{
16362static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16363test_array [0] = 0
16364
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369rm -f conftest.$ac_objext
16370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16371 (eval $ac_compile) 2>conftest.er1
a848cd7e 16372 ac_status=$?
ac1cb8d3
VS
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
a848cd7e
SC
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
fc480dc1
DE
16378 { ac_try='test -z "$ac_c_werror_flag"
16379 || test ! -s conftest.err'
ac1cb8d3
VS
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_hi=-1 ac_mid=-1
16392 while :; do
16393 cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
16399$ac_includes_default
16400int
16401main ()
16402{
16403static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16404test_array [0] = 0
16405
16406 ;
16407 return 0;
16408}
16409_ACEOF
16410rm -f conftest.$ac_objext
16411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16412 (eval $ac_compile) 2>conftest.er1
a848cd7e 16413 ac_status=$?
ac1cb8d3
VS
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
a848cd7e
SC
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
fc480dc1
DE
16419 { ac_try='test -z "$ac_c_werror_flag"
16420 || test ! -s conftest.err'
ac1cb8d3
VS
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_lo=$ac_mid; break
16433else
16434 echo "$as_me: failed program was:" >&5
16435sed 's/^/| /' conftest.$ac_ext >&5
16436
16437ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16438 if test $ac_mid -le $ac_hi; then
16439 ac_lo= ac_hi=
16440 break
16441 fi
16442 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16443fi
ac1cb8d3 16444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16445 done
16446else
16447 echo "$as_me: failed program was:" >&5
16448sed 's/^/| /' conftest.$ac_ext >&5
16449
16450ac_lo= ac_hi=
16451fi
ac1cb8d3 16452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16453fi
ac1cb8d3 16454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16455# Binary search between lo and hi bounds.
16456while test "x$ac_lo" != "x$ac_hi"; do
16457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16458 cat >conftest.$ac_ext <<_ACEOF
16459/* confdefs.h. */
16460_ACEOF
16461cat confdefs.h >>conftest.$ac_ext
16462cat >>conftest.$ac_ext <<_ACEOF
16463/* end confdefs.h. */
16464$ac_includes_default
16465int
16466main ()
16467{
16468static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16469test_array [0] = 0
16470
16471 ;
16472 return 0;
16473}
16474_ACEOF
16475rm -f conftest.$ac_objext
16476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16477 (eval $ac_compile) 2>conftest.er1
a848cd7e 16478 ac_status=$?
ac1cb8d3
VS
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
a848cd7e
SC
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
fc480dc1
DE
16484 { ac_try='test -z "$ac_c_werror_flag"
16485 || test ! -s conftest.err'
ac1cb8d3
VS
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; } &&
16491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_hi=$ac_mid
16498else
16499 echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502ac_lo=`expr '(' $ac_mid ')' + 1`
16503fi
ac1cb8d3 16504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16505done
16506case $ac_lo in
16507?*) ac_cv_sizeof_long=$ac_lo;;
16508'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16509See \`config.log' for more details." >&5
16510echo "$as_me: error: cannot compute sizeof (long), 77
16511See \`config.log' for more details." >&2;}
16512 { (exit 1); exit 1; }; } ;;
16513esac
16514else
16515 if test "$cross_compiling" = yes; then
fc480dc1
DE
16516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16517See \`config.log' for more details." >&5
16518echo "$as_me: error: cannot run test program while cross compiling
16519See \`config.log' for more details." >&2;}
a848cd7e
SC
16520 { (exit 1); exit 1; }; }
16521else
16522 cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529long longval () { return (long) (sizeof (long)); }
16530unsigned long ulongval () { return (long) (sizeof (long)); }
16531#include <stdio.h>
16532#include <stdlib.h>
16533int
16534main ()
16535{
16536
16537 FILE *f = fopen ("conftest.val", "w");
16538 if (! f)
16539 exit (1);
16540 if (((long) (sizeof (long))) < 0)
16541 {
16542 long i = longval ();
16543 if (i != ((long) (sizeof (long))))
16544 exit (1);
16545 fprintf (f, "%ld\n", i);
16546 }
16547 else
16548 {
16549 unsigned long i = ulongval ();
16550 if (i != ((long) (sizeof (long))))
16551 exit (1);
16552 fprintf (f, "%lu\n", i);
16553 }
16554 exit (ferror (f) || fclose (f) != 0);
16555
16556 ;
16557 return 0;
16558}
16559_ACEOF
16560rm -f conftest$ac_exeext
16561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562 (eval $ac_link) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_sizeof_long=`cat conftest.val`
16572else
16573 echo "$as_me: program exited with status $ac_status" >&5
16574echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
16576
16577( exit $ac_status )
16578{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16579See \`config.log' for more details." >&5
16580echo "$as_me: error: cannot compute sizeof (long), 77
16581See \`config.log' for more details." >&2;}
16582 { (exit 1); exit 1; }; }
16583fi
ac1cb8d3 16584rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16585fi
16586fi
16587rm -f conftest.val
16588else
16589 ac_cv_sizeof_long=0
16590fi
16591fi
16592echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16593echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16594cat >>confdefs.h <<_ACEOF
16595#define SIZEOF_LONG $ac_cv_sizeof_long
16596_ACEOF
16597
16598
16599echo "$as_me:$LINENO: checking for size_t" >&5
16600echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16601if test "${ac_cv_type_size_t+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603else
16604 cat >conftest.$ac_ext <<_ACEOF
16605/* confdefs.h. */
16606_ACEOF
16607cat confdefs.h >>conftest.$ac_ext
16608cat >>conftest.$ac_ext <<_ACEOF
16609/* end confdefs.h. */
16610$ac_includes_default
16611int
16612main ()
16613{
16614if ((size_t *) 0)
16615 return 0;
16616if (sizeof (size_t))
16617 return 0;
16618 ;
16619 return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext
16623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16624 (eval $ac_compile) 2>conftest.er1
a848cd7e 16625 ac_status=$?
ac1cb8d3
VS
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
a848cd7e
SC
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
fc480dc1
DE
16631 { ac_try='test -z "$ac_c_werror_flag"
16632 || test ! -s conftest.err'
ac1cb8d3
VS
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_type_size_t=yes
16645else
16646 echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
16649ac_cv_type_size_t=no
16650fi
ac1cb8d3 16651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16652fi
16653echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16654echo "${ECHO_T}$ac_cv_type_size_t" >&6
16655
16656echo "$as_me:$LINENO: checking size of size_t" >&5
16657echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16658if test "${ac_cv_sizeof_size_t+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16660else
16661 if test "$ac_cv_type_size_t" = yes; then
16662 # The cast to unsigned long works around a bug in the HP C Compiler
16663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16665 # This bug is HP SR number 8606223364.
16666 if test "$cross_compiling" = yes; then
16667 # Depending upon the size, compute the lo and hi bounds.
16668cat >conftest.$ac_ext <<_ACEOF
16669/* confdefs.h. */
16670_ACEOF
16671cat confdefs.h >>conftest.$ac_ext
16672cat >>conftest.$ac_ext <<_ACEOF
16673/* end confdefs.h. */
16674$ac_includes_default
16675int
16676main ()
16677{
16678static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16679test_array [0] = 0
16680
16681 ;
16682 return 0;
16683}
16684_ACEOF
16685rm -f conftest.$ac_objext
16686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16687 (eval $ac_compile) 2>conftest.er1
a848cd7e 16688 ac_status=$?
ac1cb8d3
VS
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
a848cd7e
SC
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
fc480dc1
DE
16694 { ac_try='test -z "$ac_c_werror_flag"
16695 || test ! -s conftest.err'
ac1cb8d3
VS
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_lo=0 ac_mid=0
16708 while :; do
16709 cat >conftest.$ac_ext <<_ACEOF
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
16715$ac_includes_default
16716int
16717main ()
16718{
16719static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16720test_array [0] = 0
16721
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext
16727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16728 (eval $ac_compile) 2>conftest.er1
a848cd7e 16729 ac_status=$?
ac1cb8d3
VS
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
a848cd7e
SC
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
fc480dc1
DE
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
ac1cb8d3
VS
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_hi=$ac_mid; break
16749else
16750 echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
16753ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16754 if test $ac_lo -le $ac_mid; then
16755 ac_lo= ac_hi=
16756 break
16757 fi
16758 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16759fi
ac1cb8d3 16760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16761 done
16762else
16763 echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
16766cat >conftest.$ac_ext <<_ACEOF
16767/* confdefs.h. */
16768_ACEOF
16769cat confdefs.h >>conftest.$ac_ext
16770cat >>conftest.$ac_ext <<_ACEOF
16771/* end confdefs.h. */
16772$ac_includes_default
16773int
16774main ()
16775{
16776static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16777test_array [0] = 0
16778
16779 ;
16780 return 0;
16781}
16782_ACEOF
16783rm -f conftest.$ac_objext
16784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16785 (eval $ac_compile) 2>conftest.er1
a848cd7e 16786 ac_status=$?
ac1cb8d3
VS
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
a848cd7e
SC
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
fc480dc1
DE
16792 { ac_try='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
ac1cb8d3
VS
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_hi=-1 ac_mid=-1
16806 while :; do
16807 cat >conftest.$ac_ext <<_ACEOF
16808/* confdefs.h. */
16809_ACEOF
16810cat confdefs.h >>conftest.$ac_ext
16811cat >>conftest.$ac_ext <<_ACEOF
16812/* end confdefs.h. */
16813$ac_includes_default
16814int
16815main ()
16816{
16817static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16818test_array [0] = 0
16819
16820 ;
16821 return 0;
16822}
16823_ACEOF
16824rm -f conftest.$ac_objext
16825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16826 (eval $ac_compile) 2>conftest.er1
a848cd7e 16827 ac_status=$?
ac1cb8d3
VS
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
a848cd7e
SC
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
fc480dc1
DE
16833 { ac_try='test -z "$ac_c_werror_flag"
16834 || test ! -s conftest.err'
ac1cb8d3
VS
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 ac_lo=$ac_mid; break
16847else
16848 echo "$as_me: failed program was:" >&5
16849sed 's/^/| /' conftest.$ac_ext >&5
16850
16851ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16852 if test $ac_mid -le $ac_hi; then
16853 ac_lo= ac_hi=
16854 break
16855 fi
16856 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16857fi
ac1cb8d3 16858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16859 done
16860else
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864ac_lo= ac_hi=
16865fi
ac1cb8d3 16866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16867fi
ac1cb8d3 16868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16869# Binary search between lo and hi bounds.
16870while test "x$ac_lo" != "x$ac_hi"; do
16871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16872 cat >conftest.$ac_ext <<_ACEOF
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
16878$ac_includes_default
16879int
16880main ()
16881{
16882static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16883test_array [0] = 0
16884
16885 ;
16886 return 0;
16887}
16888_ACEOF
16889rm -f conftest.$ac_objext
16890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16891 (eval $ac_compile) 2>conftest.er1
a848cd7e 16892 ac_status=$?
ac1cb8d3
VS
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
a848cd7e
SC
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
fc480dc1
DE
16898 { ac_try='test -z "$ac_c_werror_flag"
16899 || test ! -s conftest.err'
ac1cb8d3
VS
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; } &&
16905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16911 ac_hi=$ac_mid
16912else
16913 echo "$as_me: failed program was:" >&5
16914sed 's/^/| /' conftest.$ac_ext >&5
16915
16916ac_lo=`expr '(' $ac_mid ')' + 1`
16917fi
ac1cb8d3 16918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16919done
16920case $ac_lo in
16921?*) ac_cv_sizeof_size_t=$ac_lo;;
16922'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16923See \`config.log' for more details." >&5
16924echo "$as_me: error: cannot compute sizeof (size_t), 77
16925See \`config.log' for more details." >&2;}
16926 { (exit 1); exit 1; }; } ;;
16927esac
16928else
16929 if test "$cross_compiling" = yes; then
fc480dc1
DE
16930 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16931See \`config.log' for more details." >&5
16932echo "$as_me: error: cannot run test program while cross compiling
16933See \`config.log' for more details." >&2;}
a848cd7e
SC
16934 { (exit 1); exit 1; }; }
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942$ac_includes_default
16943long longval () { return (long) (sizeof (size_t)); }
16944unsigned long ulongval () { return (long) (sizeof (size_t)); }
16945#include <stdio.h>
16946#include <stdlib.h>
16947int
16948main ()
16949{
16950
16951 FILE *f = fopen ("conftest.val", "w");
16952 if (! f)
16953 exit (1);
16954 if (((long) (sizeof (size_t))) < 0)
16955 {
16956 long i = longval ();
16957 if (i != ((long) (sizeof (size_t))))
16958 exit (1);
16959 fprintf (f, "%ld\n", i);
16960 }
16961 else
16962 {
16963 unsigned long i = ulongval ();
16964 if (i != ((long) (sizeof (size_t))))
16965 exit (1);
16966 fprintf (f, "%lu\n", i);
16967 }
16968 exit (ferror (f) || fclose (f) != 0);
16969
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest$ac_exeext
16975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976 (eval $ac_link) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_sizeof_size_t=`cat conftest.val`
16986else
16987 echo "$as_me: program exited with status $ac_status" >&5
16988echo "$as_me: failed program was:" >&5
16989sed 's/^/| /' conftest.$ac_ext >&5
16990
16991( exit $ac_status )
16992{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16993See \`config.log' for more details." >&5
16994echo "$as_me: error: cannot compute sizeof (size_t), 77
16995See \`config.log' for more details." >&2;}
16996 { (exit 1); exit 1; }; }
16997fi
ac1cb8d3 16998rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16999fi
17000fi
17001rm -f conftest.val
17002else
17003 ac_cv_sizeof_size_t=0
17004fi
17005fi
17006echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17007echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17008cat >>confdefs.h <<_ACEOF
17009#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17010_ACEOF
17011
17012
17013
17014case "${host}" in
17015 arm-*-linux* )
17016 echo "$as_me:$LINENO: checking for long long" >&5
17017echo $ECHO_N "checking for long long... $ECHO_C" >&6
17018if test "${ac_cv_type_long_long+set}" = set; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17020else
17021 cat >conftest.$ac_ext <<_ACEOF
17022/* confdefs.h. */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h. */
17027$ac_includes_default
17028int
17029main ()
17030{
17031if ((long long *) 0)
17032 return 0;
17033if (sizeof (long long))
17034 return 0;
17035 ;
17036 return 0;
17037}
17038_ACEOF
17039rm -f conftest.$ac_objext
17040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17041 (eval $ac_compile) 2>conftest.er1
a848cd7e 17042 ac_status=$?
ac1cb8d3
VS
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
a848cd7e
SC
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
fc480dc1
DE
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
ac1cb8d3
VS
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_type_long_long=yes
17062else
17063 echo "$as_me: failed program was:" >&5
17064sed 's/^/| /' conftest.$ac_ext >&5
17065
17066ac_cv_type_long_long=no
17067fi
ac1cb8d3 17068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17069fi
17070echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17071echo "${ECHO_T}$ac_cv_type_long_long" >&6
17072
17073echo "$as_me:$LINENO: checking size of long long" >&5
17074echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17075if test "${ac_cv_sizeof_long_long+set}" = set; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17077else
17078 if test "$ac_cv_type_long_long" = yes; then
17079 # The cast to unsigned long works around a bug in the HP C Compiler
17080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17082 # This bug is HP SR number 8606223364.
17083 if test "$cross_compiling" = yes; then
17084 # Depending upon the size, compute the lo and hi bounds.
17085cat >conftest.$ac_ext <<_ACEOF
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
17091$ac_includes_default
17092int
17093main ()
17094{
17095static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17096test_array [0] = 0
17097
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext
17103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17104 (eval $ac_compile) 2>conftest.er1
a848cd7e 17105 ac_status=$?
ac1cb8d3
VS
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
a848cd7e
SC
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
fc480dc1
DE
17111 { ac_try='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
ac1cb8d3
VS
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_lo=0 ac_mid=0
17125 while :; do
17126 cat >conftest.$ac_ext <<_ACEOF
17127/* confdefs.h. */
17128_ACEOF
17129cat confdefs.h >>conftest.$ac_ext
17130cat >>conftest.$ac_ext <<_ACEOF
17131/* end confdefs.h. */
17132$ac_includes_default
17133int
17134main ()
17135{
17136static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17137test_array [0] = 0
17138
17139 ;
17140 return 0;
17141}
17142_ACEOF
17143rm -f conftest.$ac_objext
17144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17145 (eval $ac_compile) 2>conftest.er1
a848cd7e 17146 ac_status=$?
ac1cb8d3
VS
17147 grep -v '^ *+' conftest.er1 >conftest.err
17148 rm -f conftest.er1
17149 cat conftest.err >&5
a848cd7e
SC
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } &&
fc480dc1
DE
17152 { ac_try='test -z "$ac_c_werror_flag"
17153 || test ! -s conftest.err'
ac1cb8d3
VS
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_hi=$ac_mid; break
17166else
17167 echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17171 if test $ac_lo -le $ac_mid; then
17172 ac_lo= ac_hi=
17173 break
17174 fi
17175 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17176fi
ac1cb8d3 17177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17178 done
17179else
17180 echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183cat >conftest.$ac_ext <<_ACEOF
17184/* confdefs.h. */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h. */
17189$ac_includes_default
17190int
17191main ()
17192{
17193static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17194test_array [0] = 0
17195
17196 ;
17197 return 0;
17198}
17199_ACEOF
17200rm -f conftest.$ac_objext
17201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17202 (eval $ac_compile) 2>conftest.er1
a848cd7e 17203 ac_status=$?
ac1cb8d3
VS
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
a848cd7e
SC
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
fc480dc1
DE
17209 { ac_try='test -z "$ac_c_werror_flag"
17210 || test ! -s conftest.err'
ac1cb8d3
VS
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 ac_hi=-1 ac_mid=-1
17223 while :; do
17224 cat >conftest.$ac_ext <<_ACEOF
17225/* confdefs.h. */
17226_ACEOF
17227cat confdefs.h >>conftest.$ac_ext
17228cat >>conftest.$ac_ext <<_ACEOF
17229/* end confdefs.h. */
17230$ac_includes_default
17231int
17232main ()
17233{
17234static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17235test_array [0] = 0
17236
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext
17242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17243 (eval $ac_compile) 2>conftest.er1
a848cd7e 17244 ac_status=$?
ac1cb8d3
VS
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
a848cd7e
SC
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
fc480dc1
DE
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
ac1cb8d3
VS
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_lo=$ac_mid; break
17264else
17265 echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17269 if test $ac_mid -le $ac_hi; then
17270 ac_lo= ac_hi=
17271 break
17272 fi
17273 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17274fi
ac1cb8d3 17275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17276 done
17277else
17278 echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281ac_lo= ac_hi=
17282fi
ac1cb8d3 17283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17284fi
ac1cb8d3 17285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17286# Binary search between lo and hi bounds.
17287while test "x$ac_lo" != "x$ac_hi"; do
17288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17289 cat >conftest.$ac_ext <<_ACEOF
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
17295$ac_includes_default
17296int
17297main ()
17298{
17299static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17300test_array [0] = 0
17301
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306rm -f conftest.$ac_objext
17307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17308 (eval $ac_compile) 2>conftest.er1
a848cd7e 17309 ac_status=$?
ac1cb8d3
VS
17310 grep -v '^ *+' conftest.er1 >conftest.err
17311 rm -f conftest.er1
17312 cat conftest.err >&5
a848cd7e
SC
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
fc480dc1
DE
17315 { ac_try='test -z "$ac_c_werror_flag"
17316 || test ! -s conftest.err'
ac1cb8d3
VS
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_hi=$ac_mid
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333ac_lo=`expr '(' $ac_mid ')' + 1`
17334fi
ac1cb8d3 17335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17336done
17337case $ac_lo in
17338?*) ac_cv_sizeof_long_long=$ac_lo;;
17339'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17340See \`config.log' for more details." >&5
17341echo "$as_me: error: cannot compute sizeof (long long), 77
17342See \`config.log' for more details." >&2;}
17343 { (exit 1); exit 1; }; } ;;
17344esac
17345else
17346 if test "$cross_compiling" = yes; then
fc480dc1
DE
17347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17348See \`config.log' for more details." >&5
17349echo "$as_me: error: cannot run test program while cross compiling
17350See \`config.log' for more details." >&2;}
a848cd7e
SC
17351 { (exit 1); exit 1; }; }
17352else
17353 cat >conftest.$ac_ext <<_ACEOF
17354/* confdefs.h. */
17355_ACEOF
17356cat confdefs.h >>conftest.$ac_ext
17357cat >>conftest.$ac_ext <<_ACEOF
17358/* end confdefs.h. */
17359$ac_includes_default
17360long longval () { return (long) (sizeof (long long)); }
17361unsigned long ulongval () { return (long) (sizeof (long long)); }
17362#include <stdio.h>
17363#include <stdlib.h>
17364int
17365main ()
17366{
17367
17368 FILE *f = fopen ("conftest.val", "w");
17369 if (! f)
17370 exit (1);
17371 if (((long) (sizeof (long long))) < 0)
17372 {
17373 long i = longval ();
17374 if (i != ((long) (sizeof (long long))))
17375 exit (1);
17376 fprintf (f, "%ld\n", i);
17377 }
17378 else
17379 {
17380 unsigned long i = ulongval ();
17381 if (i != ((long) (sizeof (long long))))
17382 exit (1);
17383 fprintf (f, "%lu\n", i);
17384 }
17385 exit (ferror (f) || fclose (f) != 0);
17386
17387 ;
17388 return 0;
17389}
17390_ACEOF
17391rm -f conftest$ac_exeext
17392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
17402 ac_cv_sizeof_long_long=`cat conftest.val`
17403else
17404 echo "$as_me: program exited with status $ac_status" >&5
17405echo "$as_me: failed program was:" >&5
17406sed 's/^/| /' conftest.$ac_ext >&5
17407
17408( exit $ac_status )
17409{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17410See \`config.log' for more details." >&5
17411echo "$as_me: error: cannot compute sizeof (long long), 77
17412See \`config.log' for more details." >&2;}
17413 { (exit 1); exit 1; }; }
17414fi
ac1cb8d3 17415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17416fi
17417fi
17418rm -f conftest.val
17419else
17420 ac_cv_sizeof_long_long=0
17421fi
17422fi
17423echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17424echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17425cat >>confdefs.h <<_ACEOF
17426#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17427_ACEOF
17428
17429
17430 ;;
17431 *-hp-hpux* )
17432 echo "$as_me:$LINENO: checking for long long" >&5
17433echo $ECHO_N "checking for long long... $ECHO_C" >&6
17434if test "${ac_cv_type_long_long+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17436else
17437 cat >conftest.$ac_ext <<_ACEOF
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
17443$ac_includes_default
17444int
17445main ()
17446{
17447if ((long long *) 0)
17448 return 0;
17449if (sizeof (long long))
17450 return 0;
17451 ;
17452 return 0;
17453}
17454_ACEOF
17455rm -f conftest.$ac_objext
17456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17457 (eval $ac_compile) 2>conftest.er1
a848cd7e 17458 ac_status=$?
ac1cb8d3
VS
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
a848cd7e
SC
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
fc480dc1
DE
17464 { ac_try='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
ac1cb8d3
VS
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 ac_cv_type_long_long=yes
17478else
17479 echo "$as_me: failed program was:" >&5
17480sed 's/^/| /' conftest.$ac_ext >&5
17481
17482ac_cv_type_long_long=no
17483fi
ac1cb8d3 17484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17485fi
17486echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17487echo "${ECHO_T}$ac_cv_type_long_long" >&6
17488
17489echo "$as_me:$LINENO: checking size of long long" >&5
17490echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17491if test "${ac_cv_sizeof_long_long+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493else
17494 if test "$ac_cv_type_long_long" = yes; then
17495 # The cast to unsigned long works around a bug in the HP C Compiler
17496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17498 # This bug is HP SR number 8606223364.
17499 if test "$cross_compiling" = yes; then
17500 # Depending upon the size, compute the lo and hi bounds.
17501cat >conftest.$ac_ext <<_ACEOF
17502/* confdefs.h. */
17503_ACEOF
17504cat confdefs.h >>conftest.$ac_ext
17505cat >>conftest.$ac_ext <<_ACEOF
17506/* end confdefs.h. */
17507$ac_includes_default
17508int
17509main ()
17510{
17511static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17512test_array [0] = 0
17513
17514 ;
17515 return 0;
17516}
17517_ACEOF
17518rm -f conftest.$ac_objext
17519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17520 (eval $ac_compile) 2>conftest.er1
a848cd7e 17521 ac_status=$?
ac1cb8d3
VS
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
a848cd7e
SC
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
fc480dc1
DE
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
ac1cb8d3
VS
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 ac_lo=0 ac_mid=0
17541 while :; do
17542 cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
17548$ac_includes_default
17549int
17550main ()
17551{
17552static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17553test_array [0] = 0
17554
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext
17560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17561 (eval $ac_compile) 2>conftest.er1
a848cd7e 17562 ac_status=$?
ac1cb8d3
VS
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
a848cd7e
SC
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
fc480dc1
DE
17568 { ac_try='test -z "$ac_c_werror_flag"
17569 || test ! -s conftest.err'
ac1cb8d3
VS
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_hi=$ac_mid; break
17582else
17583 echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
17586ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17587 if test $ac_lo -le $ac_mid; then
17588 ac_lo= ac_hi=
17589 break
17590 fi
17591 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17592fi
ac1cb8d3 17593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17594 done
17595else
17596 echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599cat >conftest.$ac_ext <<_ACEOF
17600/* confdefs.h. */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
17604/* end confdefs.h. */
17605$ac_includes_default
17606int
17607main ()
17608{
17609static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17610test_array [0] = 0
17611
17612 ;
17613 return 0;
17614}
17615_ACEOF
17616rm -f conftest.$ac_objext
17617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17618 (eval $ac_compile) 2>conftest.er1
a848cd7e 17619 ac_status=$?
ac1cb8d3
VS
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
a848cd7e
SC
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
fc480dc1
DE
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
ac1cb8d3
VS
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_hi=-1 ac_mid=-1
17639 while :; do
17640 cat >conftest.$ac_ext <<_ACEOF
17641/* confdefs.h. */
17642_ACEOF
17643cat confdefs.h >>conftest.$ac_ext
17644cat >>conftest.$ac_ext <<_ACEOF
17645/* end confdefs.h. */
17646$ac_includes_default
17647int
17648main ()
17649{
17650static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17651test_array [0] = 0
17652
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext
17658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17659 (eval $ac_compile) 2>conftest.er1
a848cd7e 17660 ac_status=$?
ac1cb8d3
VS
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
a848cd7e
SC
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
fc480dc1
DE
17666 { ac_try='test -z "$ac_c_werror_flag"
17667 || test ! -s conftest.err'
ac1cb8d3
VS
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_lo=$ac_mid; break
17680else
17681 echo "$as_me: failed program was:" >&5
17682sed 's/^/| /' conftest.$ac_ext >&5
17683
17684ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17685 if test $ac_mid -le $ac_hi; then
17686 ac_lo= ac_hi=
17687 break
17688 fi
17689 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17690fi
ac1cb8d3 17691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17692 done
17693else
17694 echo "$as_me: failed program was:" >&5
17695sed 's/^/| /' conftest.$ac_ext >&5
17696
17697ac_lo= ac_hi=
17698fi
ac1cb8d3 17699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17700fi
ac1cb8d3 17701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17702# Binary search between lo and hi bounds.
17703while test "x$ac_lo" != "x$ac_hi"; do
17704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17705 cat >conftest.$ac_ext <<_ACEOF
17706/* confdefs.h. */
17707_ACEOF
17708cat confdefs.h >>conftest.$ac_ext
17709cat >>conftest.$ac_ext <<_ACEOF
17710/* end confdefs.h. */
17711$ac_includes_default
17712int
17713main ()
17714{
17715static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17716test_array [0] = 0
17717
17718 ;
17719 return 0;
17720}
17721_ACEOF
17722rm -f conftest.$ac_objext
17723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17724 (eval $ac_compile) 2>conftest.er1
a848cd7e 17725 ac_status=$?
ac1cb8d3
VS
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
a848cd7e
SC
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
fc480dc1
DE
17731 { ac_try='test -z "$ac_c_werror_flag"
17732 || test ! -s conftest.err'
ac1cb8d3
VS
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_hi=$ac_mid
17745else
17746 echo "$as_me: failed program was:" >&5
17747sed 's/^/| /' conftest.$ac_ext >&5
17748
17749ac_lo=`expr '(' $ac_mid ')' + 1`
17750fi
ac1cb8d3 17751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17752done
17753case $ac_lo in
17754?*) ac_cv_sizeof_long_long=$ac_lo;;
17755'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17756See \`config.log' for more details." >&5
17757echo "$as_me: error: cannot compute sizeof (long long), 77
17758See \`config.log' for more details." >&2;}
17759 { (exit 1); exit 1; }; } ;;
17760esac
17761else
17762 if test "$cross_compiling" = yes; then
fc480dc1
DE
17763 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17764See \`config.log' for more details." >&5
17765echo "$as_me: error: cannot run test program while cross compiling
17766See \`config.log' for more details." >&2;}
a848cd7e
SC
17767 { (exit 1); exit 1; }; }
17768else
17769 cat >conftest.$ac_ext <<_ACEOF
17770/* confdefs.h. */
17771_ACEOF
17772cat confdefs.h >>conftest.$ac_ext
17773cat >>conftest.$ac_ext <<_ACEOF
17774/* end confdefs.h. */
17775$ac_includes_default
17776long longval () { return (long) (sizeof (long long)); }
17777unsigned long ulongval () { return (long) (sizeof (long long)); }
17778#include <stdio.h>
17779#include <stdlib.h>
17780int
17781main ()
17782{
17783
17784 FILE *f = fopen ("conftest.val", "w");
17785 if (! f)
17786 exit (1);
17787 if (((long) (sizeof (long long))) < 0)
17788 {
17789 long i = longval ();
17790 if (i != ((long) (sizeof (long long))))
17791 exit (1);
17792 fprintf (f, "%ld\n", i);
17793 }
17794 else
17795 {
17796 unsigned long i = ulongval ();
17797 if (i != ((long) (sizeof (long long))))
17798 exit (1);
17799 fprintf (f, "%lu\n", i);
17800 }
17801 exit (ferror (f) || fclose (f) != 0);
17802
17803 ;
17804 return 0;
17805}
17806_ACEOF
17807rm -f conftest$ac_exeext
17808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809 (eval $ac_link) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_cv_sizeof_long_long=`cat conftest.val`
17819else
17820 echo "$as_me: program exited with status $ac_status" >&5
17821echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824( exit $ac_status )
17825{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17826See \`config.log' for more details." >&5
17827echo "$as_me: error: cannot compute sizeof (long long), 77
17828See \`config.log' for more details." >&2;}
17829 { (exit 1); exit 1; }; }
17830fi
ac1cb8d3 17831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17832fi
17833fi
17834rm -f conftest.val
17835else
17836 ac_cv_sizeof_long_long=0
17837fi
17838fi
17839echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17840echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17841cat >>confdefs.h <<_ACEOF
17842#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17843_ACEOF
17844
17845
17846 if test "$ac_cv_sizeof_long_long" != "0"; then
17847 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17848 fi
17849 ;;
17850 * )
17851 echo "$as_me:$LINENO: checking for long long" >&5
17852echo $ECHO_N "checking for long long... $ECHO_C" >&6
17853if test "${ac_cv_type_long_long+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17855else
17856 cat >conftest.$ac_ext <<_ACEOF
17857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
17862$ac_includes_default
17863int
17864main ()
17865{
17866if ((long long *) 0)
17867 return 0;
17868if (sizeof (long long))
17869 return 0;
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874rm -f conftest.$ac_objext
17875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17876 (eval $ac_compile) 2>conftest.er1
a848cd7e 17877 ac_status=$?
ac1cb8d3
VS
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
a848cd7e
SC
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
fc480dc1
DE
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
ac1cb8d3
VS
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_type_long_long=yes
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_cv_type_long_long=no
17902fi
ac1cb8d3 17903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17904fi
17905echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17906echo "${ECHO_T}$ac_cv_type_long_long" >&6
17907
17908echo "$as_me:$LINENO: checking size of long long" >&5
17909echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17910if test "${ac_cv_sizeof_long_long+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912else
17913 if test "$ac_cv_type_long_long" = yes; then
17914 # The cast to unsigned long works around a bug in the HP C Compiler
17915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17917 # This bug is HP SR number 8606223364.
17918 if test "$cross_compiling" = yes; then
17919 # Depending upon the size, compute the lo and hi bounds.
17920cat >conftest.$ac_ext <<_ACEOF
17921/* confdefs.h. */
17922_ACEOF
17923cat confdefs.h >>conftest.$ac_ext
17924cat >>conftest.$ac_ext <<_ACEOF
17925/* end confdefs.h. */
17926$ac_includes_default
17927int
17928main ()
17929{
17930static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17931test_array [0] = 0
17932
17933 ;
17934 return 0;
17935}
17936_ACEOF
17937rm -f conftest.$ac_objext
17938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17939 (eval $ac_compile) 2>conftest.er1
a848cd7e 17940 ac_status=$?
ac1cb8d3
VS
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
a848cd7e
SC
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
fc480dc1
DE
17946 { ac_try='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
ac1cb8d3
VS
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_lo=0 ac_mid=0
17960 while :; do
17961 cat >conftest.$ac_ext <<_ACEOF
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967$ac_includes_default
17968int
17969main ()
17970{
17971static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17972test_array [0] = 0
17973
17974 ;
17975 return 0;
17976}
17977_ACEOF
17978rm -f conftest.$ac_objext
17979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17980 (eval $ac_compile) 2>conftest.er1
a848cd7e 17981 ac_status=$?
ac1cb8d3
VS
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
a848cd7e
SC
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
fc480dc1
DE
17987 { ac_try='test -z "$ac_c_werror_flag"
17988 || test ! -s conftest.err'
ac1cb8d3
VS
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_hi=$ac_mid; break
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18006 if test $ac_lo -le $ac_mid; then
18007 ac_lo= ac_hi=
18008 break
18009 fi
18010 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18011fi
ac1cb8d3 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18013 done
18014else
18015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018cat >conftest.$ac_ext <<_ACEOF
18019/* confdefs.h. */
18020_ACEOF
18021cat confdefs.h >>conftest.$ac_ext
18022cat >>conftest.$ac_ext <<_ACEOF
18023/* end confdefs.h. */
18024$ac_includes_default
18025int
18026main ()
18027{
18028static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18029test_array [0] = 0
18030
18031 ;
18032 return 0;
18033}
18034_ACEOF
18035rm -f conftest.$ac_objext
18036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18037 (eval $ac_compile) 2>conftest.er1
a848cd7e 18038 ac_status=$?
ac1cb8d3
VS
18039 grep -v '^ *+' conftest.er1 >conftest.err
18040 rm -f conftest.er1
18041 cat conftest.err >&5
a848cd7e
SC
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
fc480dc1
DE
18044 { ac_try='test -z "$ac_c_werror_flag"
18045 || test ! -s conftest.err'
ac1cb8d3
VS
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_hi=-1 ac_mid=-1
18058 while :; do
18059 cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h. */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h. */
18065$ac_includes_default
18066int
18067main ()
18068{
18069static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18070test_array [0] = 0
18071
18072 ;
18073 return 0;
18074}
18075_ACEOF
18076rm -f conftest.$ac_objext
18077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18078 (eval $ac_compile) 2>conftest.er1
a848cd7e 18079 ac_status=$?
ac1cb8d3
VS
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
a848cd7e
SC
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
fc480dc1
DE
18085 { ac_try='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
ac1cb8d3
VS
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 ac_lo=$ac_mid; break
18099else
18100 echo "$as_me: failed program was:" >&5
18101sed 's/^/| /' conftest.$ac_ext >&5
18102
18103ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18104 if test $ac_mid -le $ac_hi; then
18105 ac_lo= ac_hi=
18106 break
18107 fi
18108 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18109fi
ac1cb8d3 18110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18111 done
18112else
18113 echo "$as_me: failed program was:" >&5
18114sed 's/^/| /' conftest.$ac_ext >&5
18115
18116ac_lo= ac_hi=
18117fi
ac1cb8d3 18118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18119fi
ac1cb8d3 18120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18121# Binary search between lo and hi bounds.
18122while test "x$ac_lo" != "x$ac_hi"; do
18123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18124 cat >conftest.$ac_ext <<_ACEOF
18125/* confdefs.h. */
18126_ACEOF
18127cat confdefs.h >>conftest.$ac_ext
18128cat >>conftest.$ac_ext <<_ACEOF
18129/* end confdefs.h. */
18130$ac_includes_default
18131int
18132main ()
18133{
18134static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18135test_array [0] = 0
18136
18137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext
18142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18143 (eval $ac_compile) 2>conftest.er1
a848cd7e 18144 ac_status=$?
ac1cb8d3
VS
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
a848cd7e
SC
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
fc480dc1
DE
18150 { ac_try='test -z "$ac_c_werror_flag"
18151 || test ! -s conftest.err'
ac1cb8d3
VS
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_hi=$ac_mid
18164else
18165 echo "$as_me: failed program was:" >&5
18166sed 's/^/| /' conftest.$ac_ext >&5
18167
18168ac_lo=`expr '(' $ac_mid ')' + 1`
18169fi
ac1cb8d3 18170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18171done
18172case $ac_lo in
18173?*) ac_cv_sizeof_long_long=$ac_lo;;
18174'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18175See \`config.log' for more details." >&5
18176echo "$as_me: error: cannot compute sizeof (long long), 77
18177See \`config.log' for more details." >&2;}
18178 { (exit 1); exit 1; }; } ;;
18179esac
18180else
18181 if test "$cross_compiling" = yes; then
fc480dc1
DE
18182 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18183See \`config.log' for more details." >&5
18184echo "$as_me: error: cannot run test program while cross compiling
18185See \`config.log' for more details." >&2;}
a848cd7e
SC
18186 { (exit 1); exit 1; }; }
18187else
18188 cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194$ac_includes_default
18195long longval () { return (long) (sizeof (long long)); }
18196unsigned long ulongval () { return (long) (sizeof (long long)); }
18197#include <stdio.h>
18198#include <stdlib.h>
18199int
18200main ()
18201{
18202
18203 FILE *f = fopen ("conftest.val", "w");
18204 if (! f)
18205 exit (1);
18206 if (((long) (sizeof (long long))) < 0)
18207 {
18208 long i = longval ();
18209 if (i != ((long) (sizeof (long long))))
18210 exit (1);
18211 fprintf (f, "%ld\n", i);
18212 }
18213 else
18214 {
18215 unsigned long i = ulongval ();
18216 if (i != ((long) (sizeof (long long))))
18217 exit (1);
18218 fprintf (f, "%lu\n", i);
18219 }
18220 exit (ferror (f) || fclose (f) != 0);
18221
18222 ;
18223 return 0;
18224}
18225_ACEOF
18226rm -f conftest$ac_exeext
18227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18228 (eval $ac_link) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_cv_sizeof_long_long=`cat conftest.val`
18238else
18239 echo "$as_me: program exited with status $ac_status" >&5
18240echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243( exit $ac_status )
18244{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18245See \`config.log' for more details." >&5
18246echo "$as_me: error: cannot compute sizeof (long long), 77
18247See \`config.log' for more details." >&2;}
18248 { (exit 1); exit 1; }; }
18249fi
ac1cb8d3 18250rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18251fi
18252fi
18253rm -f conftest.val
18254else
18255 ac_cv_sizeof_long_long=0
18256fi
18257fi
18258echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18259echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18260cat >>confdefs.h <<_ACEOF
18261#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18262_ACEOF
18263
18264
18265esac
18266
18267echo "$as_me:$LINENO: checking size of wchar_t" >&5
18268echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18269if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18271else
18272
18273 if test "$cross_compiling" = yes; then
18274
18275 case "${host}" in
18276 *-pc-msdosdjgpp )
18277 wx_cv_sizeof_wchar_t=0
18278 ;;
18279 * )
18280 wx_cv_sizeof_wchar_t=4
18281 ;;
18282 esac
18283
18284
18285else
18286 cat >conftest.$ac_ext <<_ACEOF
18287/* confdefs.h. */
18288_ACEOF
18289cat confdefs.h >>conftest.$ac_ext
18290cat >>conftest.$ac_ext <<_ACEOF
18291/* end confdefs.h. */
18292
18293 /* DJGPP only has fake wchar_t: */
18294 #ifdef __DJGPP__
18295 # error "fake wchar_t"
18296 #endif
18297 #ifdef HAVE_WCHAR_H
18298 # ifdef __CYGWIN__
18299 # include <stddef.h>
18300 # endif
18301 # include <wchar.h>
18302 #endif
18303 #ifdef HAVE_STDLIB_H
18304 # include <stdlib.h>
18305 #endif
18306 #include <stdio.h>
18307 int main()
18308 {
18309 FILE *f=fopen("conftestval", "w");
18310 if (!f) exit(1);
18311 fprintf(f, "%i", sizeof(wchar_t));
18312 exit(0);
18313 }
18314
18315_ACEOF
18316rm -f conftest$ac_exeext
18317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318 (eval $ac_link) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 wx_cv_sizeof_wchar_t=`cat conftestval`
18328else
18329 echo "$as_me: program exited with status $ac_status" >&5
18330echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333( exit $ac_status )
18334wx_cv_sizeof_wchar_t=0
18335fi
ac1cb8d3 18336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18337fi
18338
18339fi
18340echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18341echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18342
18343cat >>confdefs.h <<_ACEOF
18344#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18345_ACEOF
18346
18347
ba3d13e1
VZ
18348echo "$as_me:$LINENO: checking for va_copy" >&5
18349echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18350if test "${wx_cv_func_va_copy+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18352else
18353
18354 cat >conftest.$ac_ext <<_ACEOF
18355
18356 #include <stdarg.h>
18357 void foo(char *f, ...)
18358 {
18359 va_list ap1, ap2;
18360 va_start(ap1, f);
18361 va_copy(ap2, ap1);
18362 va_end(ap2);
18363 va_end(ap1);
18364 }
18365_ACEOF
18366rm -f conftest.$ac_objext conftest$ac_exeext
18367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368 (eval $ac_link) 2>conftest.er1
18369 ac_status=$?
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } &&
fc480dc1
DE
18375 { ac_try='test -z "$ac_c_werror_flag"
18376 || test ! -s conftest.err'
ba3d13e1
VZ
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest$ac_exeext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 wx_cv_func_va_copy=yes
18389else
18390 echo "$as_me: failed program was:" >&5
18391sed 's/^/| /' conftest.$ac_ext >&5
18392
18393wx_cv_func_va_copy=no
18394
18395fi
18396rm -f conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398
18399
18400fi
18401echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18402echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18403
18404if test $wx_cv_func_va_copy = "yes"; then
18405 cat >>confdefs.h <<\_ACEOF
18406#define HAVE_VA_COPY 1
18407_ACEOF
18408
18409else
18410 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18411echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18412if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18414else
18415
18416 if test "$cross_compiling" = yes; then
18417 wx_cv_type_va_list_lvalue=yes
18418
18419else
18420 cat >conftest.$ac_ext <<_ACEOF
18421
18422 #include <stdarg.h>
18423 int foo(char *f, ...)
18424 {
18425 va_list ap1, ap2;
18426 va_start(ap1, f);
18427 ap2 = ap1;
18428 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18429 return 1;
18430 va_end(ap2);
18431 va_end(ap1);
18432 return 0;
18433 }
18434 int main()
18435 {
18436 return foo("hi", 17);
18437 }
18438_ACEOF
18439rm -f conftest$ac_exeext
18440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441 (eval $ac_link) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 wx_cv_type_va_list_lvalue=yes
18451else
18452 echo "$as_me: program exited with status $ac_status" >&5
18453echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456( exit $ac_status )
18457wx_cv_type_va_list_lvalue=no
18458fi
18459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18460fi
18461
18462
18463fi
18464echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18465echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18466
18467 if test $wx_cv_type_va_list_lvalue != "yes"; then
18468 cat >>confdefs.h <<\_ACEOF
18469#define VA_LIST_IS_ARRAY 1
18470_ACEOF
18471
18472 fi
18473fi
18474
a848cd7e
SC
18475# Check whether --enable-largefile or --disable-largefile was given.
18476if test "${enable_largefile+set}" = set; then
18477 enableval="$enable_largefile"
18478
18479fi;
18480if test "$enable_largefile" != no; then
18481 wx_largefile=no
18482
18483 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18484echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18485if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488
18489 cat >conftest.$ac_ext <<_ACEOF
18490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h. */
18495#define _FILE_OFFSET_BITS 64
18496 #include <sys/types.h>
18497int
18498main ()
18499{
18500typedef struct {
18501 unsigned int field: sizeof(off_t) == 8;
18502} wxlf;
18503
18504 ;
18505 return 0;
18506}
18507_ACEOF
18508rm -f conftest.$ac_objext
18509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18510 (eval $ac_compile) 2>conftest.er1
a848cd7e 18511 ac_status=$?
ac1cb8d3
VS
18512 grep -v '^ *+' conftest.er1 >conftest.err
18513 rm -f conftest.er1
18514 cat conftest.err >&5
a848cd7e
SC
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
fc480dc1
DE
18517 { ac_try='test -z "$ac_c_werror_flag"
18518 || test ! -s conftest.err'
ac1cb8d3
VS
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; } &&
18524 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 ac_cv_sys_file_offset_bits=64
18531else
18532 echo "$as_me: failed program was:" >&5
18533sed 's/^/| /' conftest.$ac_ext >&5
18534
18535ac_cv_sys_file_offset_bits=no
18536fi
ac1cb8d3 18537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18538
18539
18540fi
18541echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18542echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18543
18544 if test "$ac_cv_sys_file_offset_bits" != no; then
18545 wx_largefile=yes
18546 cat >>confdefs.h <<_ACEOF
18547#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18548_ACEOF
18549
18550 fi
18551
18552 if test "x$wx_largefile" != "xyes"; then
18553
18554 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18555echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18556if test "${ac_cv_sys_large_files+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18558else
18559
18560 cat >conftest.$ac_ext <<_ACEOF
18561/* confdefs.h. */
18562_ACEOF
18563cat confdefs.h >>conftest.$ac_ext
18564cat >>conftest.$ac_ext <<_ACEOF
18565/* end confdefs.h. */
18566#define _LARGE_FILES 1
18567 #include <sys/types.h>
18568int
18569main ()
18570{
18571typedef struct {
18572 unsigned int field: sizeof(off_t) == 8;
18573} wxlf;
18574
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext
18580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18581 (eval $ac_compile) 2>conftest.er1
a848cd7e 18582 ac_status=$?
ac1cb8d3
VS
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
a848cd7e
SC
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
fc480dc1
DE
18588 { ac_try='test -z "$ac_c_werror_flag"
18589 || test ! -s conftest.err'
ac1cb8d3
VS
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_sys_large_files=1
18602else
18603 echo "$as_me: failed program was:" >&5
18604sed 's/^/| /' conftest.$ac_ext >&5
18605
18606ac_cv_sys_large_files=no
18607fi
ac1cb8d3 18608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18609
18610
18611fi
18612echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18613echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18614
18615 if test "$ac_cv_sys_large_files" != no; then
18616 wx_largefile=yes
18617 cat >>confdefs.h <<_ACEOF
18618#define _LARGE_FILES $ac_cv_sys_large_files
18619_ACEOF
18620
18621 fi
18622
18623 fi
18624
18625 echo "$as_me:$LINENO: checking if large file support is available" >&5
18626echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18627 if test "x$wx_largefile" = "xyes"; then
18628 cat >>confdefs.h <<\_ACEOF
18629#define HAVE_LARGEFILE_SUPPORT 1
18630_ACEOF
18631
18632 fi
18633 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18634echo "${ECHO_T}$wx_largefile" >&6
18635fi
18636
18637
18638if test "x$wx_largefile" = "xyes"; then
18639 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18640 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18641 else
18642 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18643 fi
18644 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18645fi
18646
18647echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18648echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18649if test "${ac_cv_c_bigendian+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651else
18652 ac_cv_c_bigendian=unknown
18653# See if sys/param.h defines the BYTE_ORDER macro.
18654cat >conftest.$ac_ext <<_ACEOF
18655/* confdefs.h. */
18656_ACEOF
18657cat confdefs.h >>conftest.$ac_ext
18658cat >>conftest.$ac_ext <<_ACEOF
18659/* end confdefs.h. */
18660#include <sys/types.h>
18661#include <sys/param.h>
18662int
18663main ()
18664{
18665
18666#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18667 bogus endian macros
18668#endif
18669 ;
18670 return 0;
18671}
18672_ACEOF
18673rm -f conftest.$ac_objext
18674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18675 (eval $ac_compile) 2>conftest.er1
a848cd7e 18676 ac_status=$?
ac1cb8d3
VS
18677 grep -v '^ *+' conftest.er1 >conftest.err
18678 rm -f conftest.er1
18679 cat conftest.err >&5
a848cd7e
SC
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
fc480dc1
DE
18682 { ac_try='test -z "$ac_c_werror_flag"
18683 || test ! -s conftest.err'
ac1cb8d3
VS
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 # It does; now see whether it defined to BIG_ENDIAN or not.
18696cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702#include <sys/types.h>
18703#include <sys/param.h>
18704int
18705main ()
18706{
18707
18708#if BYTE_ORDER != BIG_ENDIAN
18709 not big endian
18710#endif
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18717 (eval $ac_compile) 2>conftest.er1
a848cd7e 18718 ac_status=$?
ac1cb8d3
VS
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
a848cd7e
SC
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
fc480dc1
DE
18724 { ac_try='test -z "$ac_c_werror_flag"
18725 || test ! -s conftest.err'
ac1cb8d3
VS
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; } &&
18731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_cv_c_bigendian=yes
18738else
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
18741
18742ac_cv_c_bigendian=no
18743fi
ac1cb8d3 18744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18745else
18746 echo "$as_me: failed program was:" >&5
18747sed 's/^/| /' conftest.$ac_ext >&5
18748
18749fi
ac1cb8d3 18750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18751if test $ac_cv_c_bigendian = unknown; then
18752if test "$cross_compiling" = yes; then
18753 ac_cv_c_bigendian=unknown
18754else
18755 cat >conftest.$ac_ext <<_ACEOF
18756/* confdefs.h. */
18757_ACEOF
18758cat confdefs.h >>conftest.$ac_ext
18759cat >>conftest.$ac_ext <<_ACEOF
18760/* end confdefs.h. */
18761main () {
18762 /* Are we little or big endian? From Harbison&Steele. */
18763 union
18764 {
18765 long l;
18766 char c[sizeof (long)];
18767 } u;
18768 u.l = 1;
18769 exit (u.c[sizeof (long) - 1] == 1);
18770}
18771_ACEOF
18772rm -f conftest$ac_exeext
18773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>&5
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_c_bigendian=no
18784else
18785 echo "$as_me: program exited with status $ac_status" >&5
18786echo "$as_me: failed program was:" >&5
18787sed 's/^/| /' conftest.$ac_ext >&5
18788
18789( exit $ac_status )
18790ac_cv_c_bigendian=yes
18791fi
ac1cb8d3 18792rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18793fi
18794fi
18795fi
18796echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18797echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18798if test $ac_cv_c_bigendian = unknown; then
18799 { 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
18800echo "$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;}
18801fi
18802if test $ac_cv_c_bigendian = yes; then
18803 cat >>confdefs.h <<\_ACEOF
18804#define WORDS_BIGENDIAN 1
18805_ACEOF
18806
18807fi
18808
18809
18810ac_ext=cc
18811ac_cpp='$CXXCPP $CPPFLAGS'
18812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18815echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18816echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18817if test -z "$CXXCPP"; then
18818 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820else
18821 # Double quotes because CXXCPP needs to be expanded
18822 for CXXCPP in "$CXX -E" "/lib/cpp"
18823 do
18824 ac_preproc_ok=false
18825for ac_cxx_preproc_warn_flag in '' yes
18826do
18827 # Use a header file that comes with gcc, so configuring glibc
18828 # with a fresh cross-compiler works.
18829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18830 # <limits.h> exists even on freestanding compilers.
18831 # On the NeXT, cc -E runs the code through the compiler's parser,
18832 # not just through cpp. "Syntax error" is here to catch this case.
18833 cat >conftest.$ac_ext <<_ACEOF
18834/* confdefs.h. */
18835_ACEOF
18836cat confdefs.h >>conftest.$ac_ext
18837cat >>conftest.$ac_ext <<_ACEOF
18838/* end confdefs.h. */
18839#ifdef __STDC__
18840# include <limits.h>
18841#else
18842# include <assert.h>
18843#endif
ac1cb8d3 18844 Syntax error
a848cd7e
SC
18845_ACEOF
18846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } >/dev/null; then
18854 if test -s conftest.err; then
18855 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18856 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18857 else
18858 ac_cpp_err=
18859 fi
18860else
18861 ac_cpp_err=yes
18862fi
18863if test -z "$ac_cpp_err"; then
18864 :
18865else
18866 echo "$as_me: failed program was:" >&5
18867sed 's/^/| /' conftest.$ac_ext >&5
18868
18869 # Broken: fails on valid input.
18870continue
18871fi
18872rm -f conftest.err conftest.$ac_ext
18873
18874 # OK, works on sane cases. Now check whether non-existent headers
18875 # can be detected and how.
18876 cat >conftest.$ac_ext <<_ACEOF
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
18882#include <ac_nonexistent.h>
18883_ACEOF
18884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18886 ac_status=$?
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } >/dev/null; then
18892 if test -s conftest.err; then
18893 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18894 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18895 else
18896 ac_cpp_err=
18897 fi
18898else
18899 ac_cpp_err=yes
18900fi
18901if test -z "$ac_cpp_err"; then
18902 # Broken: success on invalid input.
18903continue
18904else
18905 echo "$as_me: failed program was:" >&5
18906sed 's/^/| /' conftest.$ac_ext >&5
18907
18908 # Passes both tests.
18909ac_preproc_ok=:
18910break
18911fi
18912rm -f conftest.err conftest.$ac_ext
18913
18914done
18915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18916rm -f conftest.err conftest.$ac_ext
18917if $ac_preproc_ok; then
18918 break
18919fi
18920
18921 done
18922 ac_cv_prog_CXXCPP=$CXXCPP
18923
18924fi
18925 CXXCPP=$ac_cv_prog_CXXCPP
18926else
18927 ac_cv_prog_CXXCPP=$CXXCPP
18928fi
18929echo "$as_me:$LINENO: result: $CXXCPP" >&5
18930echo "${ECHO_T}$CXXCPP" >&6
18931ac_preproc_ok=false
18932for ac_cxx_preproc_warn_flag in '' yes
18933do
18934 # Use a header file that comes with gcc, so configuring glibc
18935 # with a fresh cross-compiler works.
18936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18937 # <limits.h> exists even on freestanding compilers.
18938 # On the NeXT, cc -E runs the code through the compiler's parser,
18939 # not just through cpp. "Syntax error" is here to catch this case.
18940 cat >conftest.$ac_ext <<_ACEOF
18941/* confdefs.h. */
18942_ACEOF
18943cat confdefs.h >>conftest.$ac_ext
18944cat >>conftest.$ac_ext <<_ACEOF
18945/* end confdefs.h. */
18946#ifdef __STDC__
18947# include <limits.h>
18948#else
18949# include <assert.h>
18950#endif
ac1cb8d3 18951 Syntax error
a848cd7e
SC
18952_ACEOF
18953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18955 ac_status=$?
18956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } >/dev/null; then
18961 if test -s conftest.err; then
18962 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18964 else
18965 ac_cpp_err=
18966 fi
18967else
18968 ac_cpp_err=yes
18969fi
18970if test -z "$ac_cpp_err"; then
18971 :
18972else
18973 echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976 # Broken: fails on valid input.
18977continue
18978fi
18979rm -f conftest.err conftest.$ac_ext
18980
18981 # OK, works on sane cases. Now check whether non-existent headers
18982 # can be detected and how.
18983 cat >conftest.$ac_ext <<_ACEOF
18984/* confdefs.h. */
18985_ACEOF
18986cat confdefs.h >>conftest.$ac_ext
18987cat >>conftest.$ac_ext <<_ACEOF
18988/* end confdefs.h. */
18989#include <ac_nonexistent.h>
18990_ACEOF
18991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } >/dev/null; then
18999 if test -s conftest.err; then
19000 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19001 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19002 else
19003 ac_cpp_err=
19004 fi
19005else
19006 ac_cpp_err=yes
19007fi
19008if test -z "$ac_cpp_err"; then
19009 # Broken: success on invalid input.
19010continue
19011else
19012 echo "$as_me: failed program was:" >&5
19013sed 's/^/| /' conftest.$ac_ext >&5
19014
19015 # Passes both tests.
19016ac_preproc_ok=:
19017break
19018fi
19019rm -f conftest.err conftest.$ac_ext
19020
19021done
19022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19023rm -f conftest.err conftest.$ac_ext
19024if $ac_preproc_ok; then
19025 :
19026else
19027 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19028See \`config.log' for more details." >&5
19029echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19030See \`config.log' for more details." >&2;}
19031 { (exit 1); exit 1; }; }
19032fi
19033
19034ac_ext=cc
19035ac_cpp='$CXXCPP $CPPFLAGS'
19036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19039
19040
19041
19042
19043
19044 ac_ext=cc
19045ac_cpp='$CXXCPP $CPPFLAGS'
19046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19049
19050
19051
19052for ac_header in iostream
19053do
19054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19055if eval "test \"\${$as_ac_Header+set}\" = set"; then
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060fi
19061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19063else
19064 # Is the header compilable?
19065echo "$as_me:$LINENO: checking $ac_header usability" >&5
19066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19067cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
19073$ac_includes_default
19074#include <$ac_header>
19075_ACEOF
19076rm -f conftest.$ac_objext
19077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19078 (eval $ac_compile) 2>conftest.er1
a848cd7e 19079 ac_status=$?
ac1cb8d3
VS
19080 grep -v '^ *+' conftest.er1 >conftest.err
19081 rm -f conftest.er1
19082 cat conftest.err >&5
a848cd7e
SC
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
fc480dc1
DE
19085 { ac_try='test -z "$ac_cxx_werror_flag"
19086 || test ! -s conftest.err'
ac1cb8d3
VS
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 ac_header_compiler=yes
19099else
19100 echo "$as_me: failed program was:" >&5
19101sed 's/^/| /' conftest.$ac_ext >&5
19102
19103ac_header_compiler=no
19104fi
ac1cb8d3 19105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19107echo "${ECHO_T}$ac_header_compiler" >&6
19108
19109# Is the header present?
19110echo "$as_me:$LINENO: checking $ac_header presence" >&5
19111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19112cat >conftest.$ac_ext <<_ACEOF
19113/* confdefs.h. */
19114_ACEOF
19115cat confdefs.h >>conftest.$ac_ext
19116cat >>conftest.$ac_ext <<_ACEOF
19117/* end confdefs.h. */
19118#include <$ac_header>
19119_ACEOF
19120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } >/dev/null; then
19128 if test -s conftest.err; then
19129 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19130 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19131 else
19132 ac_cpp_err=
19133 fi
19134else
19135 ac_cpp_err=yes
19136fi
19137if test -z "$ac_cpp_err"; then
19138 ac_header_preproc=yes
19139else
19140 echo "$as_me: failed program was:" >&5
19141sed 's/^/| /' conftest.$ac_ext >&5
19142
19143 ac_header_preproc=no
19144fi
19145rm -f conftest.err conftest.$ac_ext
19146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19147echo "${ECHO_T}$ac_header_preproc" >&6
19148
19149# So? What about this header?
ac1cb8d3
VS
19150case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19151 yes:no: )
a848cd7e
SC
19152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19156 ac_header_preproc=yes
a848cd7e 19157 ;;
ac1cb8d3 19158 no:yes:* )
a848cd7e
SC
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19171 (
19172 cat <<\_ASBOX
ac1cb8d3
VS
19173## ----------------------------------------- ##
19174## Report this to wx-dev@lists.wxwidgets.org ##
19175## ----------------------------------------- ##
a848cd7e
SC
19176_ASBOX
19177 ) |
19178 sed "s/^/$as_me: WARNING: /" >&2
19179 ;;
19180esac
19181echo "$as_me:$LINENO: checking for $ac_header" >&5
19182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19183if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19185else
ac1cb8d3 19186 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19187fi
19188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19190
19191fi
19192if test `eval echo '${'$as_ac_Header'}'` = yes; then
19193 cat >>confdefs.h <<_ACEOF
19194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19195_ACEOF
19196
19197fi
19198
19199done
19200
19201
19202 if test "$ac_cv_header_iostream" = "yes" ; then
19203 :
19204 else
19205 cat >>confdefs.h <<\_ACEOF
19206#define wxUSE_IOSTREAMH 1
19207_ACEOF
19208
19209 fi
19210
19211 ac_ext=c
19212ac_cpp='$CPP $CPPFLAGS'
19213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215ac_compiler_gnu=$ac_cv_c_compiler_gnu
19216
19217
19218
19219
19220 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19221echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19222if test "${wx_cv_cpp_bool+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19224else
19225
19226
19227
19228 ac_ext=cc
19229ac_cpp='$CXXCPP $CPPFLAGS'
19230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19233
19234
19235 cat >conftest.$ac_ext <<_ACEOF
19236/* confdefs.h. */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
19240/* end confdefs.h. */
19241
19242
19243int
19244main ()
19245{
19246
19247 bool b = true;
19248
19249 return 0;
19250
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext
19256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19257 (eval $ac_compile) 2>conftest.er1
a848cd7e 19258 ac_status=$?
ac1cb8d3
VS
19259 grep -v '^ *+' conftest.er1 >conftest.err
19260 rm -f conftest.er1
19261 cat conftest.err >&5
a848cd7e
SC
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
fc480dc1
DE
19264 { ac_try='test -z "$ac_cxx_werror_flag"
19265 || test ! -s conftest.err'
ac1cb8d3
VS
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277
19278 wx_cv_cpp_bool=yes
19279
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284
19285 wx_cv_cpp_bool=no
19286
19287
19288fi
ac1cb8d3 19289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19290
19291 ac_ext=c
19292ac_cpp='$CPP $CPPFLAGS'
19293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19295ac_compiler_gnu=$ac_cv_c_compiler_gnu
19296
19297
19298fi
19299echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19300echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19301
19302 if test "$wx_cv_cpp_bool" = "yes"; then
19303 cat >>confdefs.h <<\_ACEOF
19304#define HAVE_BOOL 1
19305_ACEOF
19306
19307 fi
19308
19309
19310
19311 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19312echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19313if test "${wx_cv_explicit+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19315else
19316
19317
19318
19319 ac_ext=cc
19320ac_cpp='$CXXCPP $CPPFLAGS'
19321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19324
19325
19326 cat >conftest.$ac_ext <<_ACEOF
19327/* confdefs.h. */
19328_ACEOF
19329cat confdefs.h >>conftest.$ac_ext
19330cat >>conftest.$ac_ext <<_ACEOF
19331/* end confdefs.h. */
19332
19333 class Foo { public: explicit Foo(int) {} };
19334
19335int
19336main ()
19337{
19338
19339 return 0;
19340
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); } &&
fc480dc1
DE
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
19368 cat >conftest.$ac_ext <<_ACEOF
19369/* confdefs.h. */
19370_ACEOF
19371cat confdefs.h >>conftest.$ac_ext
19372cat >>conftest.$ac_ext <<_ACEOF
19373/* end confdefs.h. */
19374
19375 class Foo { public: explicit Foo(int) {} };
19376 static void TakeFoo(const Foo& foo) { }
19377
19378int
19379main ()
19380{
19381
19382 TakeFoo(17);
19383 return 0;
19384
19385 ;
19386 return 0;
19387}
19388_ACEOF
19389rm -f conftest.$ac_objext
19390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19391 (eval $ac_compile) 2>conftest.er1
a848cd7e 19392 ac_status=$?
ac1cb8d3
VS
19393 grep -v '^ *+' conftest.er1 >conftest.err
19394 rm -f conftest.er1
19395 cat conftest.err >&5
a848cd7e
SC
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
fc480dc1
DE
19398 { ac_try='test -z "$ac_cxx_werror_flag"
19399 || test ! -s conftest.err'
ac1cb8d3
VS
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; } &&
19405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 wx_cv_explicit=no
19412else
19413 echo "$as_me: failed program was:" >&5
19414sed 's/^/| /' conftest.$ac_ext >&5
19415
19416wx_cv_explicit=yes
19417
19418fi
ac1cb8d3 19419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19420
19421else
19422 echo "$as_me: failed program was:" >&5
19423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425wx_cv_explicit=no
19426
19427fi
ac1cb8d3 19428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19429
19430 ac_ext=c
19431ac_cpp='$CPP $CPPFLAGS'
19432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435
19436
19437fi
19438echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19439echo "${ECHO_T}$wx_cv_explicit" >&6
19440
19441 if test "$wx_cv_explicit" = "yes"; then
19442 cat >>confdefs.h <<\_ACEOF
19443#define HAVE_EXPLICIT 1
19444_ACEOF
19445
19446 fi
19447
19448
19449echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19450echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19451if test "${ac_cv_cxx_const_cast+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19453else
19454
19455
19456 ac_ext=cc
19457ac_cpp='$CXXCPP $CPPFLAGS'
19458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19461
19462 cat >conftest.$ac_ext <<_ACEOF
19463/* confdefs.h. */
19464_ACEOF
19465cat confdefs.h >>conftest.$ac_ext
19466cat >>conftest.$ac_ext <<_ACEOF
19467/* end confdefs.h. */
19468
19469int
19470main ()
19471{
19472int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19473 ;
19474 return 0;
19475}
19476_ACEOF
19477rm -f conftest.$ac_objext
19478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19479 (eval $ac_compile) 2>conftest.er1
a848cd7e 19480 ac_status=$?
ac1cb8d3
VS
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
a848cd7e
SC
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
fc480dc1
DE
19486 { ac_try='test -z "$ac_cxx_werror_flag"
19487 || test ! -s conftest.err'
ac1cb8d3
VS
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_cv_cxx_const_cast=yes
19500else
19501 echo "$as_me: failed program was:" >&5
19502sed 's/^/| /' conftest.$ac_ext >&5
19503
19504ac_cv_cxx_const_cast=no
19505fi
ac1cb8d3 19506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19507 ac_ext=c
19508ac_cpp='$CPP $CPPFLAGS'
19509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511ac_compiler_gnu=$ac_cv_c_compiler_gnu
19512
19513
19514fi
19515echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19516echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19517if test "$ac_cv_cxx_const_cast" = yes; then
19518
19519cat >>confdefs.h <<\_ACEOF
19520#define HAVE_CONST_CAST
19521_ACEOF
19522
19523fi
19524
7714864e
RL
19525echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19526echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19527if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19529else
19530
19531
19532 ac_ext=cc
19533ac_cpp='$CXXCPP $CPPFLAGS'
19534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19537
19538 cat >conftest.$ac_ext <<_ACEOF
19539/* confdefs.h. */
19540_ACEOF
19541cat confdefs.h >>conftest.$ac_ext
19542cat >>conftest.$ac_ext <<_ACEOF
19543/* end confdefs.h. */
19544#include <typeinfo>
19545class Base { public : Base () {} virtual void f () = 0;};
19546class Derived : public Base { public : Derived () {} virtual void f () {} };
19547class Unrelated { public : Unrelated () {} };
19548int g (Unrelated&) { return 0; }
19549int
19550main ()
19551{
19552
19553Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19554 ;
19555 return 0;
19556}
19557_ACEOF
19558rm -f conftest.$ac_objext
19559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19560 (eval $ac_compile) 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
fc480dc1
DE
19567 { ac_try='test -z "$ac_cxx_werror_flag"
19568 || test ! -s conftest.err'
7714864e
RL
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_cv_cxx_reinterpret_cast=yes
19581else
19582 echo "$as_me: failed program was:" >&5
19583sed 's/^/| /' conftest.$ac_ext >&5
19584
19585ac_cv_cxx_reinterpret_cast=no
19586fi
19587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588 ac_ext=c
19589ac_cpp='$CPP $CPPFLAGS'
19590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592ac_compiler_gnu=$ac_cv_c_compiler_gnu
19593
19594
19595fi
19596echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19597echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19598if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19599
19600cat >>confdefs.h <<\_ACEOF
19601#define HAVE_REINTERPRET_CAST
19602_ACEOF
19603
19604fi
19605
a848cd7e
SC
19606echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19607echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19608if test "${ac_cv_cxx_static_cast+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610else
19611
19612
19613 ac_ext=cc
19614ac_cpp='$CXXCPP $CPPFLAGS'
19615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19618
19619 cat >conftest.$ac_ext <<_ACEOF
19620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
19625#include <typeinfo>
19626class Base { public : Base () {} virtual void f () = 0; };
19627class Derived : public Base { public : Derived () {} virtual void f () {} };
19628int g (Derived&) { return 0; }
19629int
19630main ()
19631{
19632
19633Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19634 ;
19635 return 0;
19636}
19637_ACEOF
19638rm -f conftest.$ac_objext
19639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19640 (eval $ac_compile) 2>conftest.er1
a848cd7e 19641 ac_status=$?
ac1cb8d3
VS
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
a848cd7e
SC
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
fc480dc1
DE
19647 { ac_try='test -z "$ac_cxx_werror_flag"
19648 || test ! -s conftest.err'
ac1cb8d3
VS
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_cv_cxx_static_cast=yes
19661else
19662 echo "$as_me: failed program was:" >&5
19663sed 's/^/| /' conftest.$ac_ext >&5
19664
19665ac_cv_cxx_static_cast=no
19666fi
ac1cb8d3 19667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19668 ac_ext=c
19669ac_cpp='$CPP $CPPFLAGS'
19670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672ac_compiler_gnu=$ac_cv_c_compiler_gnu
19673
19674
19675fi
19676echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19677echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19678if test "$ac_cv_cxx_static_cast" = yes; then
19679
19680cat >>confdefs.h <<\_ACEOF
19681#define HAVE_STATIC_CAST
19682_ACEOF
19683
19684fi
19685
19686
19687if test "$wxUSE_STL" = "yes"; then
19688 ac_ext=cc
19689ac_cpp='$CXXCPP $CPPFLAGS'
19690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19693
19694
19695 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19696echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19697 cat >conftest.$ac_ext <<_ACEOF
19698/* confdefs.h. */
19699_ACEOF
19700cat confdefs.h >>conftest.$ac_ext
19701cat >>conftest.$ac_ext <<_ACEOF
19702/* end confdefs.h. */
19703#include <string>
19704 #include <functional>
19705 #include <algorithm>
19706 #include <vector>
19707 #include <list>
19708int
19709main ()
19710{
19711std::vector<int> moo;
19712 std::list<int> foo;
19713 std::vector<int>::iterator it =
19714 std::find_if(moo.begin(), moo.end(),
19715 std::bind2nd(std::less<int>(), 3));
19716 ;
19717 return 0;
19718}
19719_ACEOF
19720rm -f conftest.$ac_objext
19721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19722 (eval $ac_compile) 2>conftest.er1
a848cd7e 19723 ac_status=$?
ac1cb8d3
VS
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
a848cd7e
SC
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
fc480dc1
DE
19729 { ac_try='test -z "$ac_cxx_werror_flag"
19730 || test ! -s conftest.err'
ac1cb8d3
VS
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 echo "$as_me:$LINENO: result: yes" >&5
19743echo "${ECHO_T}yes" >&6
19744else
19745 echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748echo "$as_me:$LINENO: result: no" >&5
19749echo "${ECHO_T}no" >&6
19750 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19751echo "$as_me: error: Basic STL functionality missing" >&2;}
19752 { (exit 1); exit 1; }; }
19753fi
ac1cb8d3 19754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19755
19756 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19757echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19758 cat >conftest.$ac_ext <<_ACEOF
19759/* confdefs.h. */
19760_ACEOF
19761cat confdefs.h >>conftest.$ac_ext
19762cat >>conftest.$ac_ext <<_ACEOF
19763/* end confdefs.h. */
19764#include <string>
19765int
19766main ()
19767{
19768std::wstring foo;
19769 ;
19770 return 0;
19771}
19772_ACEOF
19773rm -f conftest.$ac_objext
19774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19775 (eval $ac_compile) 2>conftest.er1
a848cd7e 19776 ac_status=$?
ac1cb8d3
VS
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
a848cd7e
SC
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } &&
fc480dc1
DE
19782 { ac_try='test -z "$ac_cxx_werror_flag"
19783 || test ! -s conftest.err'
ac1cb8d3
VS
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; } &&
19789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 echo "$as_me:$LINENO: result: yes" >&5
19796echo "${ECHO_T}yes" >&6
19797 cat >>confdefs.h <<\_ACEOF
19798#define HAVE_STD_WSTRING 1
19799_ACEOF
19800
19801else
19802 echo "$as_me: failed program was:" >&5
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
19805echo "$as_me:$LINENO: result: no" >&5
19806echo "${ECHO_T}no" >&6
19807fi
ac1cb8d3 19808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19809
19810 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19811echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19812 cat >conftest.$ac_ext <<_ACEOF
19813/* confdefs.h. */
19814_ACEOF
19815cat confdefs.h >>conftest.$ac_ext
19816cat >>conftest.$ac_ext <<_ACEOF
19817/* end confdefs.h. */
19818#include <string>
19819int
19820main ()
19821{
19822std::string foo, bar;
19823 foo.compare(bar);
19824 foo.compare(1, 1, bar);
19825 foo.compare(1, 1, bar, 1, 1);
19826 foo.compare("");
19827 foo.compare(1, 1, "");
19828 foo.compare(1, 1, "", 2);
19829 ;
19830 return 0;
19831}
19832_ACEOF
19833rm -f conftest.$ac_objext
19834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19835 (eval $ac_compile) 2>conftest.er1
a848cd7e 19836 ac_status=$?
ac1cb8d3
VS
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
a848cd7e
SC
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
fc480dc1
DE
19842 { ac_try='test -z "$ac_cxx_werror_flag"
19843 || test ! -s conftest.err'
ac1cb8d3
VS
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 echo "$as_me:$LINENO: result: yes" >&5
19856echo "${ECHO_T}yes" >&6
19857 cat >>confdefs.h <<\_ACEOF
19858#define HAVE_STD_STRING_COMPARE 1
19859_ACEOF
19860
19861else
19862 echo "$as_me: failed program was:" >&5
19863sed 's/^/| /' conftest.$ac_ext >&5
19864
19865echo "$as_me:$LINENO: result: no" >&5
19866echo "${ECHO_T}no" >&6
19867fi
ac1cb8d3 19868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19869
19870 if test "${ac_cv_header_hash_map+set}" = set; then
19871 echo "$as_me:$LINENO: checking for hash_map" >&5
19872echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19873if test "${ac_cv_header_hash_map+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875fi
19876echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19877echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19878else
19879 # Is the header compilable?
19880echo "$as_me:$LINENO: checking hash_map usability" >&5
19881echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19882cat >conftest.$ac_ext <<_ACEOF
19883/* confdefs.h. */
19884_ACEOF
19885cat confdefs.h >>conftest.$ac_ext
19886cat >>conftest.$ac_ext <<_ACEOF
19887/* end confdefs.h. */
19888$ac_includes_default
19889#include <hash_map>
19890_ACEOF
19891rm -f conftest.$ac_objext
19892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19893 (eval $ac_compile) 2>conftest.er1
bdcade0a 19894 ac_status=$?
ac1cb8d3
VS
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
bdcade0a
MB
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
fc480dc1
DE
19900 { ac_try='test -z "$ac_cxx_werror_flag"
19901 || test ! -s conftest.err'
ac1cb8d3
VS
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; } &&
19907 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913 ac_header_compiler=yes
19914else
19915 echo "$as_me: failed program was:" >&5
19916sed 's/^/| /' conftest.$ac_ext >&5
19917
19918ac_header_compiler=no
19919fi
ac1cb8d3 19920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19922echo "${ECHO_T}$ac_header_compiler" >&6
19923
19924# Is the header present?
19925echo "$as_me:$LINENO: checking hash_map presence" >&5
19926echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19927cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933#include <hash_map>
19934_ACEOF
19935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19937 ac_status=$?
19938 grep -v '^ *+' conftest.er1 >conftest.err
19939 rm -f conftest.er1
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } >/dev/null; then
19943 if test -s conftest.err; then
19944 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19945 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19946 else
19947 ac_cpp_err=
19948 fi
19949else
19950 ac_cpp_err=yes
19951fi
19952if test -z "$ac_cpp_err"; then
19953 ac_header_preproc=yes
19954else
19955 echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
19958 ac_header_preproc=no
19959fi
19960rm -f conftest.err conftest.$ac_ext
19961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19962echo "${ECHO_T}$ac_header_preproc" >&6
19963
19964# So? What about this header?
ac1cb8d3
VS
19965case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19966 yes:no: )
bdcade0a
MB
19967 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19968echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19969 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19970echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19971 ac_header_preproc=yes
bdcade0a 19972 ;;
ac1cb8d3 19973 no:yes:* )
bdcade0a
MB
19974 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19975echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19976 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19977echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19979echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19981echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19982 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19983echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19984 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19985echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19986 (
19987 cat <<\_ASBOX
ac1cb8d3
VS
19988## ----------------------------------------- ##
19989## Report this to wx-dev@lists.wxwidgets.org ##
19990## ----------------------------------------- ##
bdcade0a
MB
19991_ASBOX
19992 ) |
19993 sed "s/^/$as_me: WARNING: /" >&2
19994 ;;
19995esac
19996echo "$as_me:$LINENO: checking for hash_map" >&5
19997echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19998if test "${ac_cv_header_hash_map+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20000else
20001 ac_cv_header_hash_map=$ac_header_preproc
20002fi
20003echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20004echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20005
20006fi
20007if test $ac_cv_header_hash_map = yes; then
20008 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20009echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20010 cat >conftest.$ac_ext <<_ACEOF
20011/* confdefs.h. */
20012_ACEOF
20013cat confdefs.h >>conftest.$ac_ext
20014cat >>conftest.$ac_ext <<_ACEOF
20015/* end confdefs.h. */
20016#include <hash_map>
20017 #include <hash_set>
20018int
20019main ()
20020{
20021std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20022 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20023 ;
20024 return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20029 (eval $ac_compile) 2>conftest.er1
bdcade0a 20030 ac_status=$?
ac1cb8d3
VS
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
bdcade0a
MB
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
fc480dc1
DE
20036 { ac_try='test -z "$ac_cxx_werror_flag"
20037 || test ! -s conftest.err'
ac1cb8d3
VS
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 echo "$as_me:$LINENO: result: yes" >&5
20050echo "${ECHO_T}yes" >&6
20051 cat >>confdefs.h <<\_ACEOF
20052#define HAVE_HASH_MAP 1
20053_ACEOF
20054
20055 cat >>confdefs.h <<\_ACEOF
20056#define HAVE_STD_HASH_MAP 1
20057_ACEOF
20058
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
20063echo "$as_me:$LINENO: result: no" >&5
20064echo "${ECHO_T}no" >&6
20065fi
ac1cb8d3 20066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20067
20068fi
20069
20070
20071
20072 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20073 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20074echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20075if test "${ac_cv_header_ext_hash_map+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077fi
20078echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20079echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20080else
20081 # Is the header compilable?
20082echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20083echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20084cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h. */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h. */
20090$ac_includes_default
20091#include <ext/hash_map>
20092_ACEOF
20093rm -f conftest.$ac_objext
20094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20095 (eval $ac_compile) 2>conftest.er1
bdcade0a 20096 ac_status=$?
ac1cb8d3
VS
20097 grep -v '^ *+' conftest.er1 >conftest.err
20098 rm -f conftest.er1
20099 cat conftest.err >&5
bdcade0a
MB
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
fc480dc1
DE
20102 { ac_try='test -z "$ac_cxx_werror_flag"
20103 || test ! -s conftest.err'
ac1cb8d3
VS
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_header_compiler=yes
20116else
20117 echo "$as_me: failed program was:" >&5
20118sed 's/^/| /' conftest.$ac_ext >&5
20119
20120ac_header_compiler=no
20121fi
ac1cb8d3 20122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20124echo "${ECHO_T}$ac_header_compiler" >&6
20125
20126# Is the header present?
20127echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20128echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20129cat >conftest.$ac_ext <<_ACEOF
20130/* confdefs.h. */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h. */
20135#include <ext/hash_map>
20136_ACEOF
20137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } >/dev/null; then
20145 if test -s conftest.err; then
20146 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20148 else
20149 ac_cpp_err=
20150 fi
20151else
20152 ac_cpp_err=yes
20153fi
20154if test -z "$ac_cpp_err"; then
20155 ac_header_preproc=yes
20156else
20157 echo "$as_me: failed program was:" >&5
20158sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 ac_header_preproc=no
20161fi
20162rm -f conftest.err conftest.$ac_ext
20163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20164echo "${ECHO_T}$ac_header_preproc" >&6
20165
20166# So? What about this header?
ac1cb8d3
VS
20167case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20168 yes:no: )
bdcade0a
MB
20169 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20170echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20171 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20172echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20173 ac_header_preproc=yes
bdcade0a 20174 ;;
ac1cb8d3 20175 no:yes:* )
bdcade0a
MB
20176 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20177echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20178 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20179echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20181echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20183echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20184 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20185echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20186 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20187echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20188 (
20189 cat <<\_ASBOX
ac1cb8d3
VS
20190## ----------------------------------------- ##
20191## Report this to wx-dev@lists.wxwidgets.org ##
20192## ----------------------------------------- ##
bdcade0a
MB
20193_ASBOX
20194 ) |
20195 sed "s/^/$as_me: WARNING: /" >&2
20196 ;;
20197esac
20198echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20199echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20200if test "${ac_cv_header_ext_hash_map+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202else
20203 ac_cv_header_ext_hash_map=$ac_header_preproc
20204fi
20205echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20206echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20207
20208fi
20209if test $ac_cv_header_ext_hash_map = yes; then
20210 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20211echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20212 cat >conftest.$ac_ext <<_ACEOF
20213/* confdefs.h. */
20214_ACEOF
20215cat confdefs.h >>conftest.$ac_ext
20216cat >>conftest.$ac_ext <<_ACEOF
20217/* end confdefs.h. */
20218#include <ext/hash_map>
20219 #include <ext/hash_set>
20220int
20221main ()
20222{
20223__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20224 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20225 ;
20226 return 0;
20227}
20228_ACEOF
20229rm -f conftest.$ac_objext
20230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20231 (eval $ac_compile) 2>conftest.er1
bdcade0a 20232 ac_status=$?
ac1cb8d3
VS
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
bdcade0a
MB
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
fc480dc1
DE
20238 { ac_try='test -z "$ac_cxx_werror_flag"
20239 || test ! -s conftest.err'
ac1cb8d3
VS
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; } &&
20245 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 echo "$as_me:$LINENO: result: yes" >&5
20252echo "${ECHO_T}yes" >&6
20253 cat >>confdefs.h <<\_ACEOF
20254#define HAVE_EXT_HASH_MAP 1
20255_ACEOF
20256
20257 cat >>confdefs.h <<\_ACEOF
20258#define HAVE_GNU_CXX_HASH_MAP 1
20259_ACEOF
20260
20261else
20262 echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
20265echo "$as_me:$LINENO: result: no" >&5
20266echo "${ECHO_T}no" >&6
20267fi
ac1cb8d3 20268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20269
20270fi
20271
20272
a848cd7e
SC
20273
20274 ac_ext=c
20275ac_cpp='$CPP $CPPFLAGS'
20276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278ac_compiler_gnu=$ac_cv_c_compiler_gnu
20279
20280fi
20281
20282
20283SEARCH_INCLUDE="\
20284 /usr/local/include \
20285 \
20286 /usr/Motif-2.1/include \
20287 /usr/Motif-1.2/include \
20288 /usr/include/Motif1.2 \
20289 /opt/xpm/include/X11 \
20290 /opt/GBxpm/include/ \
20291 /opt/GBxpm/X11/include/ \
20292 \
20293 /usr/dt/include \
20294 /usr/openwin/include \
20295 \
20296 /usr/include/Xm \
20297 \
20298 /usr/X11R6/include \
20299 /usr/X11R6.4/include \
20300 /usr/X11R5/include \
20301 /usr/X11R4/include \
20302 \
20303 /usr/include/X11R6 \
20304 /usr/include/X11R5 \
20305 /usr/include/X11R4 \
20306 \
20307 /usr/local/X11R6/include \
20308 /usr/local/X11R5/include \
20309 /usr/local/X11R4/include \
20310 \
20311 /usr/local/include/X11R6 \
20312 /usr/local/include/X11R5 \
20313 /usr/local/include/X11R4 \
20314 \
20315 /usr/X11/include \
20316 /usr/include/X11 \
20317 /usr/local/X11/include \
20318 /usr/local/include/X11 \
20319 \
20320 /usr/X386/include \
20321 /usr/x386/include \
20322 /usr/XFree86/include/X11 \
20323 \
20324 X:/XFree86/include \
20325 X:/XFree86/include/X11 \
20326 \
20327 /usr/include/gtk \
20328 /usr/local/include/gtk \
20329 /usr/include/glib \
20330 /usr/local/include/glib \
20331 \
20332 /usr/include/qt \
20333 /usr/local/include/qt \
20334 \
20335 /usr/local/arm/3.3.2/include \
20336 \
20337 /usr/include/windows \
20338 /usr/include/wine \
20339 /usr/local/include/wine \
20340 \
20341 /usr/unsupported/include \
20342 /usr/athena/include \
20343 /usr/local/x11r5/include \
20344 /usr/lpp/Xamples/include \
20345 \
20346 /usr/openwin/share/include"
20347
20348SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20349
20350
20351cat >confcache <<\_ACEOF
20352# This file is a shell script that caches the results of configure
20353# tests run on this system so they can be shared between configure
20354# scripts and configure runs, see configure's option --config-cache.
20355# It is not useful on other systems. If it contains results you don't
20356# want to keep, you may remove or edit it.
20357#
20358# config.status only pays attention to the cache file if you give it
20359# the --recheck option to rerun configure.
20360#
20361# `ac_cv_env_foo' variables (set or unset) will be overridden when
20362# loading this file, other *unset* `ac_cv_foo' will be assigned the
20363# following values.
20364
20365_ACEOF
20366
20367# The following way of writing the cache mishandles newlines in values,
20368# but we know of no workaround that is simple, portable, and efficient.
20369# So, don't put newlines in cache variables' values.
20370# Ultrix sh set writes to stderr and can't be redirected directly,
20371# and sets the high bit in the cache file unless we assign to the vars.
20372{
20373 (set) 2>&1 |
20374 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20375 *ac_space=\ *)
20376 # `set' does not quote correctly, so add quotes (double-quote
20377 # substitution turns \\\\ into \\, and sed turns \\ into \).
20378 sed -n \
ac1cb8d3
VS
20379 "s/'/'\\\\''/g;
20380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20381 ;;
20382 *)
20383 # `set' quotes correctly as required by POSIX, so do not add quotes.
20384 sed -n \
ac1cb8d3 20385 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20386 ;;
20387 esac;
20388} |
20389 sed '
20390 t clear
20391 : clear
20392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20393 t end
20394 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20395 : end' >>confcache
20396if diff $cache_file confcache >/dev/null 2>&1; then :; else
20397 if test -w $cache_file; then
20398 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20399 cat confcache >$cache_file
20400 else
20401 echo "not updating unwritable cache $cache_file"
20402 fi
20403fi
20404rm -f confcache
20405
20406if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20407 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20408echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20409if test "${wx_cv_lib_glibc21+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20411else
20412
20413 cat >conftest.$ac_ext <<_ACEOF
20414/* confdefs.h. */
20415_ACEOF
20416cat confdefs.h >>conftest.$ac_ext
20417cat >>conftest.$ac_ext <<_ACEOF
20418/* end confdefs.h. */
20419#include <features.h>
20420int
20421main ()
20422{
20423
20424 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20425 #error not glibc2.1
20426 #endif
20427
20428 ;
20429 return 0;
20430}
20431_ACEOF
20432rm -f conftest.$ac_objext
20433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20434 (eval $ac_compile) 2>conftest.er1
a848cd7e 20435 ac_status=$?
ac1cb8d3
VS
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
a848cd7e
SC
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
fc480dc1
DE
20441 { ac_try='test -z "$ac_c_werror_flag"
20442 || test ! -s conftest.err'
ac1cb8d3
VS
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454
20455 wx_cv_lib_glibc21=yes
20456
20457else
20458 echo "$as_me: failed program was:" >&5
20459sed 's/^/| /' conftest.$ac_ext >&5
20460
20461
20462 wx_cv_lib_glibc21=no
20463
20464
20465fi
ac1cb8d3 20466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20467
20468fi
20469echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20470echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20471 if test "$wx_cv_lib_glibc21" = "yes"; then
20472 cat >>confdefs.h <<\_ACEOF
20473#define wxHAVE_GLIBC2 1
20474_ACEOF
20475
20476 fi
20477fi
20478
20479if test "x$wx_cv_lib_glibc21" = "xyes"; then
20480 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20481 cat >>confdefs.h <<\_ACEOF
20482#define _GNU_SOURCE 1
20483_ACEOF
20484
20485 fi
20486fi
20487
20488
20489
20490if test "$wxUSE_REGEX" != "no"; then
20491 cat >>confdefs.h <<\_ACEOF
20492#define wxUSE_REGEX 1
20493_ACEOF
20494
20495
20496 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20497 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20498echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20499 wxUSE_REGEX=builtin
20500 fi
20501
20502 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20503 if test "${ac_cv_header_regex_h+set}" = set; then
20504 echo "$as_me:$LINENO: checking for regex.h" >&5
20505echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20506if test "${ac_cv_header_regex_h+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508fi
20509echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20510echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20511else
20512 # Is the header compilable?
20513echo "$as_me:$LINENO: checking regex.h usability" >&5
20514echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20515cat >conftest.$ac_ext <<_ACEOF
20516/* confdefs.h. */
20517_ACEOF
20518cat confdefs.h >>conftest.$ac_ext
20519cat >>conftest.$ac_ext <<_ACEOF
20520/* end confdefs.h. */
20521$ac_includes_default
20522#include <regex.h>
20523_ACEOF
20524rm -f conftest.$ac_objext
20525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20526 (eval $ac_compile) 2>conftest.er1
a848cd7e 20527 ac_status=$?
ac1cb8d3
VS
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
a848cd7e
SC
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
fc480dc1
DE
20533 { ac_try='test -z "$ac_c_werror_flag"
20534 || test ! -s conftest.err'
ac1cb8d3
VS
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; } &&
20540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 ac_header_compiler=yes
20547else
20548 echo "$as_me: failed program was:" >&5
20549sed 's/^/| /' conftest.$ac_ext >&5
20550
20551ac_header_compiler=no
20552fi
ac1cb8d3 20553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20555echo "${ECHO_T}$ac_header_compiler" >&6
20556
20557# Is the header present?
20558echo "$as_me:$LINENO: checking regex.h presence" >&5
20559echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20560cat >conftest.$ac_ext <<_ACEOF
20561/* confdefs.h. */
20562_ACEOF
20563cat confdefs.h >>conftest.$ac_ext
20564cat >>conftest.$ac_ext <<_ACEOF
20565/* end confdefs.h. */
20566#include <regex.h>
20567_ACEOF
20568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20570 ac_status=$?
20571 grep -v '^ *+' conftest.er1 >conftest.err
20572 rm -f conftest.er1
20573 cat conftest.err >&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); } >/dev/null; then
20576 if test -s conftest.err; then
20577 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20579 else
20580 ac_cpp_err=
20581 fi
20582else
20583 ac_cpp_err=yes
20584fi
20585if test -z "$ac_cpp_err"; then
20586 ac_header_preproc=yes
20587else
20588 echo "$as_me: failed program was:" >&5
20589sed 's/^/| /' conftest.$ac_ext >&5
20590
20591 ac_header_preproc=no
20592fi
20593rm -f conftest.err conftest.$ac_ext
20594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20595echo "${ECHO_T}$ac_header_preproc" >&6
20596
20597# So? What about this header?
ac1cb8d3
VS
20598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20599 yes:no: )
a848cd7e
SC
20600 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20601echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20602 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20603echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20604 ac_header_preproc=yes
a848cd7e 20605 ;;
ac1cb8d3 20606 no:yes:* )
a848cd7e
SC
20607 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20608echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20609 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20610echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20612echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20614echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20615 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20616echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20617 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20618echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20619 (
20620 cat <<\_ASBOX
ac1cb8d3
VS
20621## ----------------------------------------- ##
20622## Report this to wx-dev@lists.wxwidgets.org ##
20623## ----------------------------------------- ##
a848cd7e
SC
20624_ASBOX
20625 ) |
20626 sed "s/^/$as_me: WARNING: /" >&2
20627 ;;
20628esac
20629echo "$as_me:$LINENO: checking for regex.h" >&5
20630echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20631if test "${ac_cv_header_regex_h+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633else
20634 ac_cv_header_regex_h=$ac_header_preproc
20635fi
20636echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20637echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20638
20639fi
20640if test $ac_cv_header_regex_h = yes; then
20641
20642for ac_func in regcomp
20643do
20644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20645echo "$as_me:$LINENO: checking for $ac_func" >&5
20646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20647if eval "test \"\${$as_ac_var+set}\" = set"; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20649else
20650 cat >conftest.$ac_ext <<_ACEOF
20651/* confdefs.h. */
20652_ACEOF
20653cat confdefs.h >>conftest.$ac_ext
20654cat >>conftest.$ac_ext <<_ACEOF
20655/* end confdefs.h. */
ac1cb8d3
VS
20656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20658#define $ac_func innocuous_$ac_func
20659
a848cd7e
SC
20660/* System header to define __stub macros and hopefully few prototypes,
20661 which can conflict with char $ac_func (); below.
20662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20664
a848cd7e
SC
20665#ifdef __STDC__
20666# include <limits.h>
20667#else
20668# include <assert.h>
20669#endif
ac1cb8d3
VS
20670
20671#undef $ac_func
20672
a848cd7e
SC
20673/* Override any gcc2 internal prototype to avoid an error. */
20674#ifdef __cplusplus
20675extern "C"
20676{
20677#endif
20678/* We use char because int might match the return type of a gcc2
20679 builtin and then its argument prototype would still apply. */
20680char $ac_func ();
20681/* The GNU C library defines this for functions which it implements
20682 to always fail with ENOSYS. Some functions are actually named
20683 something starting with __ and the normal name is an alias. */
20684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20685choke me
20686#else
20687char (*f) () = $ac_func;
20688#endif
20689#ifdef __cplusplus
20690}
20691#endif
20692
20693int
20694main ()
20695{
20696return f != $ac_func;
20697 ;
20698 return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext conftest$ac_exeext
20702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20703 (eval $ac_link) 2>conftest.er1
a848cd7e 20704 ac_status=$?
ac1cb8d3
VS
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
a848cd7e
SC
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } &&
fc480dc1
DE
20710 { ac_try='test -z "$ac_c_werror_flag"
20711 || test ! -s conftest.err'
ac1cb8d3
VS
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; } &&
20717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 eval "$as_ac_var=yes"
20724else
20725 echo "$as_me: failed program was:" >&5
20726sed 's/^/| /' conftest.$ac_ext >&5
20727
20728eval "$as_ac_var=no"
20729fi
ac1cb8d3
VS
20730rm -f conftest.err conftest.$ac_objext \
20731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20732fi
20733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20735if test `eval echo '${'$as_ac_var'}'` = yes; then
20736 cat >>confdefs.h <<_ACEOF
20737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20738_ACEOF
20739
20740fi
20741done
20742
20743fi
20744
20745
20746
20747 if test "x$ac_cv_func_regcomp" != "xyes"; then
20748 if test "$wxUSE_REGEX" = "sys" ; then
20749 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20750echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20751 { (exit 1); exit 1; }; }
20752 else
20753 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20754echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20755 wxUSE_REGEX=builtin
20756 fi
20757 else
20758 wxUSE_REGEX=sys
20759 cat >>confdefs.h <<\_ACEOF
20760#define WX_NO_REGEX_ADVANCED 1
20761_ACEOF
20762
20763 fi
20764 fi
20765fi
20766
20767
20768ZLIB_LINK=
20769if test "$wxUSE_ZLIB" != "no" ; then
20770 cat >>confdefs.h <<\_ACEOF
20771#define wxUSE_ZLIB 1
20772_ACEOF
20773
20774
20775 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20776 if test "$USE_DARWIN" = 1; then
20777 system_zlib_h_ok="yes"
20778 else
20779 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20780echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20781if test "${ac_cv_header_zlib_h+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20783else
20784 if test "$cross_compiling" = yes; then
20785 unset ac_cv_header_zlib_h
20786
20787else
20788 cat >conftest.$ac_ext <<_ACEOF
20789/* confdefs.h. */
20790_ACEOF
20791cat confdefs.h >>conftest.$ac_ext
20792cat >>conftest.$ac_ext <<_ACEOF
20793/* end confdefs.h. */
20794
20795 #include <zlib.h>
20796 #include <stdio.h>
20797
20798 int main()
20799 {
20800 FILE *f=fopen("conftestval", "w");
20801 if (!f) exit(1);
20802 fprintf(f, "%s",
20803 ZLIB_VERSION[0] == '1' &&
20804 (ZLIB_VERSION[2] > '1' ||
20805 (ZLIB_VERSION[2] == '1' &&
20806 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20807 exit(0);
20808 }
20809
20810_ACEOF
20811rm -f conftest$ac_exeext
20812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20813 (eval $ac_link) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_cv_header_zlib_h=`cat conftestval`
20823else
20824 echo "$as_me: program exited with status $ac_status" >&5
20825echo "$as_me: failed program was:" >&5
20826sed 's/^/| /' conftest.$ac_ext >&5
20827
20828( exit $ac_status )
20829ac_cv_header_zlib_h=no
20830fi
ac1cb8d3 20831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20832fi
20833
20834fi
20835echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20836echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20837 if test "${ac_cv_header_zlib_h+set}" = set; then
20838 echo "$as_me:$LINENO: checking for zlib.h" >&5
20839echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20840if test "${ac_cv_header_zlib_h+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20842fi
20843echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20844echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20845else
20846 # Is the header compilable?
20847echo "$as_me:$LINENO: checking zlib.h usability" >&5
20848echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20849cat >conftest.$ac_ext <<_ACEOF
20850/* confdefs.h. */
20851_ACEOF
20852cat confdefs.h >>conftest.$ac_ext
20853cat >>conftest.$ac_ext <<_ACEOF
20854/* end confdefs.h. */
20855$ac_includes_default
20856#include <zlib.h>
20857_ACEOF
20858rm -f conftest.$ac_objext
20859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20860 (eval $ac_compile) 2>conftest.er1
a848cd7e 20861 ac_status=$?
ac1cb8d3
VS
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
a848cd7e
SC
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
fc480dc1
DE
20867 { ac_try='test -z "$ac_c_werror_flag"
20868 || test ! -s conftest.err'
ac1cb8d3
VS
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; } &&
20874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 ac_header_compiler=yes
20881else
20882 echo "$as_me: failed program was:" >&5
20883sed 's/^/| /' conftest.$ac_ext >&5
20884
20885ac_header_compiler=no
20886fi
ac1cb8d3 20887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20888echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20889echo "${ECHO_T}$ac_header_compiler" >&6
20890
20891# Is the header present?
20892echo "$as_me:$LINENO: checking zlib.h presence" >&5
20893echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20894cat >conftest.$ac_ext <<_ACEOF
20895/* confdefs.h. */
20896_ACEOF
20897cat confdefs.h >>conftest.$ac_ext
20898cat >>conftest.$ac_ext <<_ACEOF
20899/* end confdefs.h. */
20900#include <zlib.h>
20901_ACEOF
20902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } >/dev/null; then
20910 if test -s conftest.err; then
20911 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20913 else
20914 ac_cpp_err=
20915 fi
20916else
20917 ac_cpp_err=yes
20918fi
20919if test -z "$ac_cpp_err"; then
20920 ac_header_preproc=yes
20921else
20922 echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925 ac_header_preproc=no
20926fi
20927rm -f conftest.err conftest.$ac_ext
20928echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20929echo "${ECHO_T}$ac_header_preproc" >&6
20930
20931# So? What about this header?
ac1cb8d3
VS
20932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20933 yes:no: )
a848cd7e
SC
20934 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20935echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20936 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20937echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20938 ac_header_preproc=yes
a848cd7e 20939 ;;
ac1cb8d3 20940 no:yes:* )
a848cd7e
SC
20941 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20942echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20943 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20944echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20946echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20948echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20949 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20950echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20951 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20952echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20953 (
20954 cat <<\_ASBOX
ac1cb8d3
VS
20955## ----------------------------------------- ##
20956## Report this to wx-dev@lists.wxwidgets.org ##
20957## ----------------------------------------- ##
a848cd7e
SC
20958_ASBOX
20959 ) |
20960 sed "s/^/$as_me: WARNING: /" >&2
20961 ;;
20962esac
20963echo "$as_me:$LINENO: checking for zlib.h" >&5
20964echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20965if test "${ac_cv_header_zlib_h+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20967else
20968 ac_cv_header_zlib_h=$ac_header_preproc
20969fi
20970echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20971echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20972
20973fi
20974
20975
20976
20977 system_zlib_h_ok=$ac_cv_header_zlib_h
20978 fi
20979
20980 if test "$system_zlib_h_ok" = "yes"; then
20981 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20982echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20983if test "${ac_cv_lib_z_deflate+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985else
20986 ac_check_lib_save_LIBS=$LIBS
20987LIBS="-lz $LIBS"
20988cat >conftest.$ac_ext <<_ACEOF
20989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
20994
20995/* Override any gcc2 internal prototype to avoid an error. */
20996#ifdef __cplusplus
20997extern "C"
20998#endif
20999/* We use char because int might match the return type of a gcc2
21000 builtin and then its argument prototype would still apply. */
21001char deflate ();
21002int
21003main ()
21004{
21005deflate ();
21006 ;
21007 return 0;
21008}
21009_ACEOF
21010rm -f conftest.$ac_objext conftest$ac_exeext
21011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21012 (eval $ac_link) 2>conftest.er1
a848cd7e 21013 ac_status=$?
ac1cb8d3
VS
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
a848cd7e
SC
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
fc480dc1
DE
21019 { ac_try='test -z "$ac_c_werror_flag"
21020 || test ! -s conftest.err'
ac1cb8d3
VS
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21023 ac_status=$?
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; } &&
21026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028 (eval $ac_try) 2>&5
21029 ac_status=$?
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; }; then
21032 ac_cv_lib_z_deflate=yes
21033else
21034 echo "$as_me: failed program was:" >&5
21035sed 's/^/| /' conftest.$ac_ext >&5
21036
21037ac_cv_lib_z_deflate=no
21038fi
ac1cb8d3
VS
21039rm -f conftest.err conftest.$ac_objext \
21040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21041LIBS=$ac_check_lib_save_LIBS
21042fi
21043echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21044echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21045if test $ac_cv_lib_z_deflate = yes; then
21046 ZLIB_LINK=" -lz"
21047fi
21048
21049 fi
21050
21051 if test "x$ZLIB_LINK" = "x" ; then
21052 if test "$wxUSE_ZLIB" = "sys" ; then
21053 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21054echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21055 { (exit 1); exit 1; }; }
21056 else
21057 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21058echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21059 wxUSE_ZLIB=builtin
21060 fi
21061 else
21062 wxUSE_ZLIB=sys
21063 fi
21064 fi
21065fi
21066
21067
21068PNG_LINK=
21069if test "$wxUSE_LIBPNG" != "no" ; then
21070 cat >>confdefs.h <<\_ACEOF
21071#define wxUSE_LIBPNG 1
21072_ACEOF
21073
21074
21075 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21076 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21077echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21078 wxUSE_LIBPNG=sys
21079 fi
21080
21081 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21082 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21083echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21084 wxUSE_LIBPNG=builtin
21085 fi
21086
21087 if test "$wxUSE_MGL" != 1 ; then
21088 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21089 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21090echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21091if test "${ac_cv_header_png_h+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093else
21094 if test "$cross_compiling" = yes; then
21095 unset ac_cv_header_png_h
21096
21097else
21098 cat >conftest.$ac_ext <<_ACEOF
21099/* confdefs.h. */
21100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
21103/* end confdefs.h. */
21104
21105 #include <png.h>
21106 #include <stdio.h>
21107
21108 int main()
21109 {
21110 FILE *f=fopen("conftestval", "w");
21111 if (!f) exit(1);
21112 fprintf(f, "%s",
21113 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21114 exit(0);
21115 }
21116
21117_ACEOF
21118rm -f conftest$ac_exeext
21119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21120 (eval $ac_link) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_cv_header_png_h=`cat conftestval`
21130else
21131 echo "$as_me: program exited with status $ac_status" >&5
21132echo "$as_me: failed program was:" >&5
21133sed 's/^/| /' conftest.$ac_ext >&5
21134
21135( exit $ac_status )
21136ac_cv_header_png_h=no
21137fi
ac1cb8d3 21138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21139fi
21140
21141fi
21142echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21143echo "${ECHO_T}$ac_cv_header_png_h" >&6
21144 if test "${ac_cv_header_png_h+set}" = set; then
21145 echo "$as_me:$LINENO: checking for png.h" >&5
21146echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21147if test "${ac_cv_header_png_h+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149fi
21150echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21151echo "${ECHO_T}$ac_cv_header_png_h" >&6
21152else
21153 # Is the header compilable?
21154echo "$as_me:$LINENO: checking png.h usability" >&5
21155echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21156cat >conftest.$ac_ext <<_ACEOF
21157/* confdefs.h. */
21158_ACEOF
21159cat confdefs.h >>conftest.$ac_ext
21160cat >>conftest.$ac_ext <<_ACEOF
21161/* end confdefs.h. */
21162$ac_includes_default
21163#include <png.h>
21164_ACEOF
21165rm -f conftest.$ac_objext
21166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21167 (eval $ac_compile) 2>conftest.er1
a848cd7e 21168 ac_status=$?
ac1cb8d3
VS
21169 grep -v '^ *+' conftest.er1 >conftest.err
21170 rm -f conftest.er1
21171 cat conftest.err >&5
a848cd7e
SC
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } &&
fc480dc1
DE
21174 { ac_try='test -z "$ac_c_werror_flag"
21175 || test ! -s conftest.err'
ac1cb8d3
VS
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; } &&
21181 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21184 ac_status=$?
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; }; then
21187 ac_header_compiler=yes
21188else
21189 echo "$as_me: failed program was:" >&5
21190sed 's/^/| /' conftest.$ac_ext >&5
21191
21192ac_header_compiler=no
21193fi
ac1cb8d3 21194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21196echo "${ECHO_T}$ac_header_compiler" >&6
21197
21198# Is the header present?
21199echo "$as_me:$LINENO: checking png.h presence" >&5
21200echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21201cat >conftest.$ac_ext <<_ACEOF
21202/* confdefs.h. */
21203_ACEOF
21204cat confdefs.h >>conftest.$ac_ext
21205cat >>conftest.$ac_ext <<_ACEOF
21206/* end confdefs.h. */
21207#include <png.h>
21208_ACEOF
21209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21211 ac_status=$?
21212 grep -v '^ *+' conftest.er1 >conftest.err
21213 rm -f conftest.er1
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } >/dev/null; then
21217 if test -s conftest.err; then
21218 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21220 else
21221 ac_cpp_err=
21222 fi
21223else
21224 ac_cpp_err=yes
21225fi
21226if test -z "$ac_cpp_err"; then
21227 ac_header_preproc=yes
21228else
21229 echo "$as_me: failed program was:" >&5
21230sed 's/^/| /' conftest.$ac_ext >&5
21231
21232 ac_header_preproc=no
21233fi
21234rm -f conftest.err conftest.$ac_ext
21235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21236echo "${ECHO_T}$ac_header_preproc" >&6
21237
21238# So? What about this header?
ac1cb8d3
VS
21239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21240 yes:no: )
a848cd7e
SC
21241 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21242echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21243 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21244echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21245 ac_header_preproc=yes
a848cd7e 21246 ;;
ac1cb8d3 21247 no:yes:* )
a848cd7e
SC
21248 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21249echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21250 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21251echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21252 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21253echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21254 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21255echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21256 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21257echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21258 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21259echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21260 (
21261 cat <<\_ASBOX
ac1cb8d3
VS
21262## ----------------------------------------- ##
21263## Report this to wx-dev@lists.wxwidgets.org ##
21264## ----------------------------------------- ##
a848cd7e
SC
21265_ASBOX
21266 ) |
21267 sed "s/^/$as_me: WARNING: /" >&2
21268 ;;
21269esac
21270echo "$as_me:$LINENO: checking for png.h" >&5
21271echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21272if test "${ac_cv_header_png_h+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274else
21275 ac_cv_header_png_h=$ac_header_preproc
21276fi
21277echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21278echo "${ECHO_T}$ac_cv_header_png_h" >&6
21279
21280fi
21281
21282
21283
21284 if test "$ac_cv_header_png_h" = "yes"; then
21285 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21286echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21287if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21289else
21290 ac_check_lib_save_LIBS=$LIBS
21291LIBS="-lpng -lz -lm $LIBS"
21292cat >conftest.$ac_ext <<_ACEOF
21293/* confdefs.h. */
21294_ACEOF
21295cat confdefs.h >>conftest.$ac_ext
21296cat >>conftest.$ac_ext <<_ACEOF
21297/* end confdefs.h. */
21298
21299/* Override any gcc2 internal prototype to avoid an error. */
21300#ifdef __cplusplus
21301extern "C"
21302#endif
21303/* We use char because int might match the return type of a gcc2
21304 builtin and then its argument prototype would still apply. */
21305char png_check_sig ();
21306int
21307main ()
21308{
21309png_check_sig ();
21310 ;
21311 return 0;
21312}
21313_ACEOF
21314rm -f conftest.$ac_objext conftest$ac_exeext
21315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21316 (eval $ac_link) 2>conftest.er1
a848cd7e 21317 ac_status=$?
ac1cb8d3
VS
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
a848cd7e
SC
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } &&
fc480dc1
DE
21323 { ac_try='test -z "$ac_c_werror_flag"
21324 || test ! -s conftest.err'
ac1cb8d3
VS
21325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326 (eval $ac_try) 2>&5
21327 ac_status=$?
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); }; } &&
21330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21333 ac_status=$?
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; }; then
21336 ac_cv_lib_png_png_check_sig=yes
21337else
21338 echo "$as_me: failed program was:" >&5
21339sed 's/^/| /' conftest.$ac_ext >&5
21340
21341ac_cv_lib_png_png_check_sig=no
21342fi
ac1cb8d3
VS
21343rm -f conftest.err conftest.$ac_objext \
21344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21345LIBS=$ac_check_lib_save_LIBS
21346fi
21347echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21348echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21349if test $ac_cv_lib_png_png_check_sig = yes; then
21350 PNG_LINK=" -lpng -lz"
21351fi
21352
21353 fi
21354
21355 if test "x$PNG_LINK" = "x" ; then
21356 if test "$wxUSE_LIBPNG" = "sys" ; then
21357 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21358echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21359 { (exit 1); exit 1; }; }
21360 else
21361 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21362echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21363 wxUSE_LIBPNG=builtin
21364 fi
21365 else
21366 wxUSE_LIBPNG=sys
21367 fi
21368 fi
21369 fi
21370
21371 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21372fi
21373
21374
21375JPEG_LINK=
21376if test "$wxUSE_LIBJPEG" != "no" ; then
21377 cat >>confdefs.h <<\_ACEOF
21378#define wxUSE_LIBJPEG 1
21379_ACEOF
21380
21381
21382 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21383 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21384echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21385 wxUSE_LIBJPEG=sys
21386 fi
21387
21388 if test "$wxUSE_MGL" != 1 ; then
21389 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21390 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21391echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21392 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21394else
21395 cat >conftest.$ac_ext <<_ACEOF
21396/* confdefs.h. */
21397_ACEOF
21398cat confdefs.h >>conftest.$ac_ext
21399cat >>conftest.$ac_ext <<_ACEOF
21400/* end confdefs.h. */
21401
21402 #undef HAVE_STDLIB_H
21403 #include <stdio.h>
21404 #include <jpeglib.h>
21405
21406int
21407main ()
21408{
21409
21410
21411 ;
21412 return 0;
21413}
21414_ACEOF
21415rm -f conftest.$ac_objext
21416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21417 (eval $ac_compile) 2>conftest.er1
a848cd7e 21418 ac_status=$?
ac1cb8d3
VS
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
a848cd7e
SC
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
fc480dc1
DE
21424 { ac_try='test -z "$ac_c_werror_flag"
21425 || test ! -s conftest.err'
ac1cb8d3
VS
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21428 ac_status=$?
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; } &&
21431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433 (eval $ac_try) 2>&5
21434 ac_status=$?
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; }; then
21437 ac_cv_header_jpeglib_h=yes
21438else
21439 echo "$as_me: failed program was:" >&5
21440sed 's/^/| /' conftest.$ac_ext >&5
21441
21442ac_cv_header_jpeglib_h=no
21443
21444fi
ac1cb8d3 21445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21446
21447fi
21448
21449 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21450echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21451
21452 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21453 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21454echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21455if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457else
21458 ac_check_lib_save_LIBS=$LIBS
21459LIBS="-ljpeg $LIBS"
21460cat >conftest.$ac_ext <<_ACEOF
21461/* confdefs.h. */
21462_ACEOF
21463cat confdefs.h >>conftest.$ac_ext
21464cat >>conftest.$ac_ext <<_ACEOF
21465/* end confdefs.h. */
21466
21467/* Override any gcc2 internal prototype to avoid an error. */
21468#ifdef __cplusplus
21469extern "C"
21470#endif
21471/* We use char because int might match the return type of a gcc2
21472 builtin and then its argument prototype would still apply. */
21473char jpeg_read_header ();
21474int
21475main ()
21476{
21477jpeg_read_header ();
21478 ;
21479 return 0;
21480}
21481_ACEOF
21482rm -f conftest.$ac_objext conftest$ac_exeext
21483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21484 (eval $ac_link) 2>conftest.er1
a848cd7e 21485 ac_status=$?
ac1cb8d3
VS
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
a848cd7e
SC
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
fc480dc1
DE
21491 { ac_try='test -z "$ac_c_werror_flag"
21492 || test ! -s conftest.err'
ac1cb8d3
VS
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 ac_cv_lib_jpeg_jpeg_read_header=yes
21505else
21506 echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509ac_cv_lib_jpeg_jpeg_read_header=no
21510fi
ac1cb8d3
VS
21511rm -f conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21513LIBS=$ac_check_lib_save_LIBS
21514fi
21515echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21516echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21517if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21518 JPEG_LINK=" -ljpeg"
21519fi
21520
21521 fi
21522
21523 if test "x$JPEG_LINK" = "x" ; then
21524 if test "$wxUSE_LIBJPEG" = "sys" ; then
21525 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21526echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21527 { (exit 1); exit 1; }; }
21528 else
21529 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21530echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21531 wxUSE_LIBJPEG=builtin
21532 fi
21533 else
21534 wxUSE_LIBJPEG=sys
21535 fi
21536 fi
21537 fi
21538fi
21539
21540
21541TIFF_LINK=
21542TIFF_PREREQ_LINKS=-lm
21543if test "$wxUSE_LIBTIFF" != "no" ; then
21544 cat >>confdefs.h <<\_ACEOF
21545#define wxUSE_LIBTIFF 1
21546_ACEOF
21547
21548
21549 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21550 if test "$wxUSE_LIBJPEG" = "sys"; then
21551 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21552 fi
21553 if test "$wxUSE_ZLIB" = "sys"; then
21554 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21555 fi
21556 if test "${ac_cv_header_tiffio_h+set}" = set; then
21557 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21558echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21559if test "${ac_cv_header_tiffio_h+set}" = set; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561fi
21562echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21563echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21564else
21565 # Is the header compilable?
21566echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21567echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21568cat >conftest.$ac_ext <<_ACEOF
21569/* confdefs.h. */
21570_ACEOF
21571cat confdefs.h >>conftest.$ac_ext
21572cat >>conftest.$ac_ext <<_ACEOF
21573/* end confdefs.h. */
21574$ac_includes_default
21575#include <tiffio.h>
21576_ACEOF
21577rm -f conftest.$ac_objext
21578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21579 (eval $ac_compile) 2>conftest.er1
a848cd7e 21580 ac_status=$?
ac1cb8d3
VS
21581 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1
21583 cat conftest.err >&5
a848cd7e
SC
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
fc480dc1
DE
21586 { ac_try='test -z "$ac_c_werror_flag"
21587 || test ! -s conftest.err'
ac1cb8d3
VS
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; } &&
21593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
21599 ac_header_compiler=yes
21600else
21601 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
21604ac_header_compiler=no
21605fi
ac1cb8d3 21606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21608echo "${ECHO_T}$ac_header_compiler" >&6
21609
21610# Is the header present?
21611echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21612echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21613cat >conftest.$ac_ext <<_ACEOF
21614/* confdefs.h. */
21615_ACEOF
21616cat confdefs.h >>conftest.$ac_ext
21617cat >>conftest.$ac_ext <<_ACEOF
21618/* end confdefs.h. */
21619#include <tiffio.h>
21620_ACEOF
21621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21623 ac_status=$?
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } >/dev/null; then
21629 if test -s conftest.err; then
21630 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21632 else
21633 ac_cpp_err=
21634 fi
21635else
21636 ac_cpp_err=yes
21637fi
21638if test -z "$ac_cpp_err"; then
21639 ac_header_preproc=yes
21640else
21641 echo "$as_me: failed program was:" >&5
21642sed 's/^/| /' conftest.$ac_ext >&5
21643
21644 ac_header_preproc=no
21645fi
21646rm -f conftest.err conftest.$ac_ext
21647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21648echo "${ECHO_T}$ac_header_preproc" >&6
21649
21650# So? What about this header?
ac1cb8d3
VS
21651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21652 yes:no: )
a848cd7e
SC
21653 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21654echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21655 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21656echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21657 ac_header_preproc=yes
a848cd7e 21658 ;;
ac1cb8d3 21659 no:yes:* )
a848cd7e
SC
21660 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21661echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21662 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21663echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21665echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21667echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21668 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21669echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21670 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21671echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21672 (
21673 cat <<\_ASBOX
ac1cb8d3
VS
21674## ----------------------------------------- ##
21675## Report this to wx-dev@lists.wxwidgets.org ##
21676## ----------------------------------------- ##
a848cd7e
SC
21677_ASBOX
21678 ) |
21679 sed "s/^/$as_me: WARNING: /" >&2
21680 ;;
21681esac
21682echo "$as_me:$LINENO: checking for tiffio.h" >&5
21683echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21684if test "${ac_cv_header_tiffio_h+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21686else
21687 ac_cv_header_tiffio_h=$ac_header_preproc
21688fi
21689echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21690echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21691
21692fi
21693if test $ac_cv_header_tiffio_h = yes; then
21694
21695 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21696echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21697if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21699else
21700 ac_check_lib_save_LIBS=$LIBS
21701LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21702cat >conftest.$ac_ext <<_ACEOF
21703/* confdefs.h. */
21704_ACEOF
21705cat confdefs.h >>conftest.$ac_ext
21706cat >>conftest.$ac_ext <<_ACEOF
21707/* end confdefs.h. */
21708
21709/* Override any gcc2 internal prototype to avoid an error. */
21710#ifdef __cplusplus
21711extern "C"
21712#endif
21713/* We use char because int might match the return type of a gcc2
21714 builtin and then its argument prototype would still apply. */
21715char TIFFError ();
21716int
21717main ()
21718{
21719TIFFError ();
21720 ;
21721 return 0;
21722}
21723_ACEOF
21724rm -f conftest.$ac_objext conftest$ac_exeext
21725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21726 (eval $ac_link) 2>conftest.er1
a848cd7e 21727 ac_status=$?
ac1cb8d3
VS
21728 grep -v '^ *+' conftest.er1 >conftest.err
21729 rm -f conftest.er1
21730 cat conftest.err >&5
a848cd7e
SC
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } &&
fc480dc1
DE
21733 { ac_try='test -z "$ac_c_werror_flag"
21734 || test ! -s conftest.err'
ac1cb8d3
VS
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; } &&
21740 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }; then
21746 ac_cv_lib_tiff_TIFFError=yes
21747else
21748 echo "$as_me: failed program was:" >&5
21749sed 's/^/| /' conftest.$ac_ext >&5
21750
21751ac_cv_lib_tiff_TIFFError=no
21752fi
ac1cb8d3
VS
21753rm -f conftest.err conftest.$ac_objext \
21754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21755LIBS=$ac_check_lib_save_LIBS
21756fi
21757echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21758echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21759if test $ac_cv_lib_tiff_TIFFError = yes; then
21760 TIFF_LINK=" -ltiff"
21761fi
21762
21763
21764
21765fi
21766
21767
21768
21769 if test "x$TIFF_LINK" = "x" ; then
21770 if test "$wxUSE_LIBTIFF" = "sys" ; then
21771 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21772echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21773 { (exit 1); exit 1; }; }
21774 else
21775 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21776echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21777 wxUSE_LIBTIFF=builtin
21778 fi
21779 else
21780 wxUSE_LIBTIFF=sys
21781 fi
21782 fi
21783fi
21784
21785
21786if test "$wxUSE_EXPAT" != "no"; then
21787 wxUSE_XML=yes
21788 cat >>confdefs.h <<\_ACEOF
21789#define wxUSE_EXPAT 1
21790_ACEOF
21791
21792 cat >>confdefs.h <<\_ACEOF
21793#define wxUSE_XML 1
21794_ACEOF
21795
21796
21797 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21798 if test "${ac_cv_header_expat_h+set}" = set; then
21799 echo "$as_me:$LINENO: checking for expat.h" >&5
21800echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21801if test "${ac_cv_header_expat_h+set}" = set; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21803fi
21804echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21805echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21806else
21807 # Is the header compilable?
21808echo "$as_me:$LINENO: checking expat.h usability" >&5
21809echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21810cat >conftest.$ac_ext <<_ACEOF
21811/* confdefs.h. */
21812_ACEOF
21813cat confdefs.h >>conftest.$ac_ext
21814cat >>conftest.$ac_ext <<_ACEOF
21815/* end confdefs.h. */
21816$ac_includes_default
21817#include <expat.h>
21818_ACEOF
21819rm -f conftest.$ac_objext
21820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21821 (eval $ac_compile) 2>conftest.er1
a848cd7e 21822 ac_status=$?
ac1cb8d3
VS
21823 grep -v '^ *+' conftest.er1 >conftest.err
21824 rm -f conftest.er1
21825 cat conftest.err >&5
a848cd7e
SC
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } &&
fc480dc1
DE
21828 { ac_try='test -z "$ac_c_werror_flag"
21829 || test ! -s conftest.err'
ac1cb8d3
VS
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; } &&
21835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21838 ac_status=$?
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; }; then
21841 ac_header_compiler=yes
21842else
21843 echo "$as_me: failed program was:" >&5
21844sed 's/^/| /' conftest.$ac_ext >&5
21845
21846ac_header_compiler=no
21847fi
ac1cb8d3 21848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21850echo "${ECHO_T}$ac_header_compiler" >&6
21851
21852# Is the header present?
21853echo "$as_me:$LINENO: checking expat.h presence" >&5
21854echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21855cat >conftest.$ac_ext <<_ACEOF
21856/* confdefs.h. */
21857_ACEOF
21858cat confdefs.h >>conftest.$ac_ext
21859cat >>conftest.$ac_ext <<_ACEOF
21860/* end confdefs.h. */
21861#include <expat.h>
21862_ACEOF
21863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } >/dev/null; then
21871 if test -s conftest.err; then
21872 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21874 else
21875 ac_cpp_err=
21876 fi
21877else
21878 ac_cpp_err=yes
21879fi
21880if test -z "$ac_cpp_err"; then
21881 ac_header_preproc=yes
21882else
21883 echo "$as_me: failed program was:" >&5
21884sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_header_preproc=no
21887fi
21888rm -f conftest.err conftest.$ac_ext
21889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21890echo "${ECHO_T}$ac_header_preproc" >&6
21891
21892# So? What about this header?
ac1cb8d3
VS
21893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21894 yes:no: )
a848cd7e
SC
21895 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21896echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21897 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21898echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21899 ac_header_preproc=yes
a848cd7e 21900 ;;
ac1cb8d3 21901 no:yes:* )
a848cd7e
SC
21902 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21903echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21904 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21905echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21907echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21909echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21910 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21911echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21912 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21913echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21914 (
21915 cat <<\_ASBOX
ac1cb8d3
VS
21916## ----------------------------------------- ##
21917## Report this to wx-dev@lists.wxwidgets.org ##
21918## ----------------------------------------- ##
a848cd7e
SC
21919_ASBOX
21920 ) |
21921 sed "s/^/$as_me: WARNING: /" >&2
21922 ;;
21923esac
21924echo "$as_me:$LINENO: checking for expat.h" >&5
21925echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21926if test "${ac_cv_header_expat_h+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928else
21929 ac_cv_header_expat_h=$ac_header_preproc
21930fi
21931echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21932echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21933
21934fi
21935if test $ac_cv_header_expat_h = yes; then
21936 found_expat_h=1
21937fi
21938
21939
21940 if test "x$found_expat_h" = "x1"; then
21941 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21942echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21943if test "${wx_cv_expat_is_not_broken+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21945else
21946
21947
21948
21949 ac_ext=cc
21950ac_cpp='$CXXCPP $CPPFLAGS'
21951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21954
21955 cat >conftest.$ac_ext <<_ACEOF
21956/* confdefs.h. */
21957_ACEOF
21958cat confdefs.h >>conftest.$ac_ext
21959cat >>conftest.$ac_ext <<_ACEOF
21960/* end confdefs.h. */
21961#include <expat.h>
21962int
21963main ()
21964{
21965
21966 ;
21967 return 0;
21968}
21969_ACEOF
21970rm -f conftest.$ac_objext
21971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21972 (eval $ac_compile) 2>conftest.er1
a848cd7e 21973 ac_status=$?
ac1cb8d3
VS
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
a848cd7e
SC
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } &&
fc480dc1
DE
21979 { ac_try='test -z "$ac_cxx_werror_flag"
21980 || test ! -s conftest.err'
ac1cb8d3
VS
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; } &&
21986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; }; then
21992 wx_cv_expat_is_not_broken=yes
21993else
21994 echo "$as_me: failed program was:" >&5
21995sed 's/^/| /' conftest.$ac_ext >&5
21996
21997wx_cv_expat_is_not_broken=no
21998
21999fi
ac1cb8d3 22000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22001 ac_ext=c
22002ac_cpp='$CPP $CPPFLAGS'
22003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22005ac_compiler_gnu=$ac_cv_c_compiler_gnu
22006
22007
22008
22009fi
22010echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22011echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22012 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22013 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22014echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22015if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22017else
22018 ac_check_lib_save_LIBS=$LIBS
22019LIBS="-lexpat $LIBS"
22020cat >conftest.$ac_ext <<_ACEOF
22021/* confdefs.h. */
22022_ACEOF
22023cat confdefs.h >>conftest.$ac_ext
22024cat >>conftest.$ac_ext <<_ACEOF
22025/* end confdefs.h. */
22026
22027/* Override any gcc2 internal prototype to avoid an error. */
22028#ifdef __cplusplus
22029extern "C"
22030#endif
22031/* We use char because int might match the return type of a gcc2
22032 builtin and then its argument prototype would still apply. */
22033char XML_ParserCreate ();
22034int
22035main ()
22036{
22037XML_ParserCreate ();
22038 ;
22039 return 0;
22040}
22041_ACEOF
22042rm -f conftest.$ac_objext conftest$ac_exeext
22043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22044 (eval $ac_link) 2>conftest.er1
a848cd7e 22045 ac_status=$?
ac1cb8d3
VS
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
a848cd7e
SC
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
fc480dc1
DE
22051 { ac_try='test -z "$ac_c_werror_flag"
22052 || test ! -s conftest.err'
ac1cb8d3
VS
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 ac_cv_lib_expat_XML_ParserCreate=yes
22065else
22066 echo "$as_me: failed program was:" >&5
22067sed 's/^/| /' conftest.$ac_ext >&5
22068
22069ac_cv_lib_expat_XML_ParserCreate=no
22070fi
ac1cb8d3
VS
22071rm -f conftest.err conftest.$ac_objext \
22072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22073LIBS=$ac_check_lib_save_LIBS
22074fi
22075echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22076echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22077if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22078 EXPAT_LINK=" -lexpat"
22079fi
22080
22081 fi
22082 fi
22083 if test "x$EXPAT_LINK" = "x" ; then
22084 if test "$wxUSE_EXPAT" = "sys" ; then
22085 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22086echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22087 { (exit 1); exit 1; }; }
22088 else
22089 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22090echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22091 wxUSE_EXPAT=builtin
22092 fi
22093 else
22094 wxUSE_EXPAT=sys
22095 fi
22096 fi
22097 if test "$wxUSE_EXPAT" = "builtin" ; then
22098
22099
22100subdirs="$subdirs src/expat"
22101
22102 fi
22103fi
22104
22105
22106
22107if test "$wxUSE_LIBMSPACK" != "no"; then
22108
22109 if test "${ac_cv_header_mspack_h+set}" = set; then
22110 echo "$as_me:$LINENO: checking for mspack.h" >&5
22111echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22112if test "${ac_cv_header_mspack_h+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22114fi
22115echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22116echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22117else
22118 # Is the header compilable?
22119echo "$as_me:$LINENO: checking mspack.h usability" >&5
22120echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22121cat >conftest.$ac_ext <<_ACEOF
22122/* confdefs.h. */
22123_ACEOF
22124cat confdefs.h >>conftest.$ac_ext
22125cat >>conftest.$ac_ext <<_ACEOF
22126/* end confdefs.h. */
22127$ac_includes_default
22128#include <mspack.h>
22129_ACEOF
22130rm -f conftest.$ac_objext
22131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22132 (eval $ac_compile) 2>conftest.er1
a848cd7e 22133 ac_status=$?
ac1cb8d3
VS
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
a848cd7e
SC
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
fc480dc1
DE
22139 { ac_try='test -z "$ac_c_werror_flag"
22140 || test ! -s conftest.err'
ac1cb8d3
VS
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22143 ac_status=$?
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 ac_header_compiler=yes
22153else
22154 echo "$as_me: failed program was:" >&5
22155sed 's/^/| /' conftest.$ac_ext >&5
22156
22157ac_header_compiler=no
22158fi
ac1cb8d3 22159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22161echo "${ECHO_T}$ac_header_compiler" >&6
22162
22163# Is the header present?
22164echo "$as_me:$LINENO: checking mspack.h presence" >&5
22165echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22166cat >conftest.$ac_ext <<_ACEOF
22167/* confdefs.h. */
22168_ACEOF
22169cat confdefs.h >>conftest.$ac_ext
22170cat >>conftest.$ac_ext <<_ACEOF
22171/* end confdefs.h. */
22172#include <mspack.h>
22173_ACEOF
22174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22176 ac_status=$?
22177 grep -v '^ *+' conftest.er1 >conftest.err
22178 rm -f conftest.er1
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } >/dev/null; then
22182 if test -s conftest.err; then
22183 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22185 else
22186 ac_cpp_err=
22187 fi
22188else
22189 ac_cpp_err=yes
22190fi
22191if test -z "$ac_cpp_err"; then
22192 ac_header_preproc=yes
22193else
22194 echo "$as_me: failed program was:" >&5
22195sed 's/^/| /' conftest.$ac_ext >&5
22196
22197 ac_header_preproc=no
22198fi
22199rm -f conftest.err conftest.$ac_ext
22200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22201echo "${ECHO_T}$ac_header_preproc" >&6
22202
22203# So? What about this header?
ac1cb8d3
VS
22204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22205 yes:no: )
a848cd7e
SC
22206 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22207echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22208 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22209echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22210 ac_header_preproc=yes
a848cd7e 22211 ;;
ac1cb8d3 22212 no:yes:* )
a848cd7e
SC
22213 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22214echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22215 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22216echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22218echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22220echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22221 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22222echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22223 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22224echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22225 (
22226 cat <<\_ASBOX
ac1cb8d3
VS
22227## ----------------------------------------- ##
22228## Report this to wx-dev@lists.wxwidgets.org ##
22229## ----------------------------------------- ##
a848cd7e
SC
22230_ASBOX
22231 ) |
22232 sed "s/^/$as_me: WARNING: /" >&2
22233 ;;
22234esac
22235echo "$as_me:$LINENO: checking for mspack.h" >&5
22236echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22237if test "${ac_cv_header_mspack_h+set}" = set; then
22238 echo $ECHO_N "(cached) $ECHO_C" >&6
22239else
22240 ac_cv_header_mspack_h=$ac_header_preproc
22241fi
22242echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22243echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22244
22245fi
22246if test $ac_cv_header_mspack_h = yes; then
22247 found_mspack_h=1
22248fi
22249
22250
22251 if test "x$found_mspack_h" = "x1"; then
22252 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22253echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22254if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22256else
22257 ac_check_lib_save_LIBS=$LIBS
22258LIBS="-lmspack $LIBS"
22259cat >conftest.$ac_ext <<_ACEOF
22260/* confdefs.h. */
22261_ACEOF
22262cat confdefs.h >>conftest.$ac_ext
22263cat >>conftest.$ac_ext <<_ACEOF
22264/* end confdefs.h. */
22265
22266/* Override any gcc2 internal prototype to avoid an error. */
22267#ifdef __cplusplus
22268extern "C"
22269#endif
22270/* We use char because int might match the return type of a gcc2
22271 builtin and then its argument prototype would still apply. */
22272char mspack_create_chm_decompressor ();
22273int
22274main ()
22275{
22276mspack_create_chm_decompressor ();
22277 ;
22278 return 0;
22279}
22280_ACEOF
22281rm -f conftest.$ac_objext conftest$ac_exeext
22282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22283 (eval $ac_link) 2>conftest.er1
a848cd7e 22284 ac_status=$?
ac1cb8d3
VS
22285 grep -v '^ *+' conftest.er1 >conftest.err
22286 rm -f conftest.er1
22287 cat conftest.err >&5
a848cd7e
SC
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } &&
fc480dc1
DE
22290 { ac_try='test -z "$ac_c_werror_flag"
22291 || test ! -s conftest.err'
ac1cb8d3
VS
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; } &&
22297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; }; then
22303 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22304else
22305 echo "$as_me: failed program was:" >&5
22306sed 's/^/| /' conftest.$ac_ext >&5
22307
22308ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22309fi
ac1cb8d3
VS
22310rm -f conftest.err conftest.$ac_objext \
22311 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22312LIBS=$ac_check_lib_save_LIBS
22313fi
22314echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22315echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22316if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22317 MSPACK_LINK=" -lmspack"
22318fi
22319
22320 fi
22321 if test "x$MSPACK_LINK" = "x" ; then
22322 wxUSE_LIBMSPACK=no
22323 else
22324 cat >>confdefs.h <<\_ACEOF
22325#define wxUSE_LIBMSPACK 1
22326_ACEOF
22327
22328 fi
22329fi
22330
22331
22332
22333AFMINSTALL=
22334WIN32INSTALL=
22335
22336TOOLKIT=
22337TOOLKIT_INCLUDE=
22338WIDGET_SET=
22339
22340if test "$USE_WIN32" = 1 ; then
22341
22342for ac_header in w32api.h
22343do
22344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22345if eval "test \"\${$as_ac_Header+set}\" = set"; then
22346 echo "$as_me:$LINENO: checking for $ac_header" >&5
22347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22348if eval "test \"\${$as_ac_Header+set}\" = set"; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350fi
22351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22353else
22354 # Is the header compilable?
22355echo "$as_me:$LINENO: checking $ac_header usability" >&5
22356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22357cat >conftest.$ac_ext <<_ACEOF
22358/* confdefs.h. */
22359_ACEOF
22360cat confdefs.h >>conftest.$ac_ext
22361cat >>conftest.$ac_ext <<_ACEOF
22362/* end confdefs.h. */
22363$ac_includes_default
22364#include <$ac_header>
22365_ACEOF
22366rm -f conftest.$ac_objext
22367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22368 (eval $ac_compile) 2>conftest.er1
a848cd7e 22369 ac_status=$?
ac1cb8d3
VS
22370 grep -v '^ *+' conftest.er1 >conftest.err
22371 rm -f conftest.er1
22372 cat conftest.err >&5
a848cd7e
SC
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } &&
fc480dc1
DE
22375 { ac_try='test -z "$ac_c_werror_flag"
22376 || test ! -s conftest.err'
ac1cb8d3
VS
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22379 ac_status=$?
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; } &&
22382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22388 ac_header_compiler=yes
22389else
22390 echo "$as_me: failed program was:" >&5
22391sed 's/^/| /' conftest.$ac_ext >&5
22392
22393ac_header_compiler=no
22394fi
ac1cb8d3 22395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22397echo "${ECHO_T}$ac_header_compiler" >&6
22398
22399# Is the header present?
22400echo "$as_me:$LINENO: checking $ac_header presence" >&5
22401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22402cat >conftest.$ac_ext <<_ACEOF
22403/* confdefs.h. */
22404_ACEOF
22405cat confdefs.h >>conftest.$ac_ext
22406cat >>conftest.$ac_ext <<_ACEOF
22407/* end confdefs.h. */
22408#include <$ac_header>
22409_ACEOF
22410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } >/dev/null; then
22418 if test -s conftest.err; then
22419 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22421 else
22422 ac_cpp_err=
22423 fi
22424else
22425 ac_cpp_err=yes
22426fi
22427if test -z "$ac_cpp_err"; then
22428 ac_header_preproc=yes
22429else
22430 echo "$as_me: failed program was:" >&5
22431sed 's/^/| /' conftest.$ac_ext >&5
22432
22433 ac_header_preproc=no
22434fi
22435rm -f conftest.err conftest.$ac_ext
22436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22437echo "${ECHO_T}$ac_header_preproc" >&6
22438
22439# So? What about this header?
ac1cb8d3
VS
22440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22441 yes:no: )
a848cd7e
SC
22442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22446 ac_header_preproc=yes
a848cd7e 22447 ;;
ac1cb8d3 22448 no:yes:* )
a848cd7e
SC
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22461 (
22462 cat <<\_ASBOX
ac1cb8d3
VS
22463## ----------------------------------------- ##
22464## Report this to wx-dev@lists.wxwidgets.org ##
22465## ----------------------------------------- ##
a848cd7e
SC
22466_ASBOX
22467 ) |
22468 sed "s/^/$as_me: WARNING: /" >&2
22469 ;;
22470esac
22471echo "$as_me:$LINENO: checking for $ac_header" >&5
22472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22473if eval "test \"\${$as_ac_Header+set}\" = set"; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22475else
ac1cb8d3 22476 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22477fi
22478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22480
22481fi
22482if test `eval echo '${'$as_ac_Header'}'` = yes; then
22483 cat >>confdefs.h <<_ACEOF
22484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22485_ACEOF
22486
22487fi
22488
22489done
22490
22491 if test "${ac_cv_header_windows_h+set}" = set; then
22492 echo "$as_me:$LINENO: checking for windows.h" >&5
22493echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22494if test "${ac_cv_header_windows_h+set}" = set; then
22495 echo $ECHO_N "(cached) $ECHO_C" >&6
22496fi
22497echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22498echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22499else
22500 # Is the header compilable?
22501echo "$as_me:$LINENO: checking windows.h usability" >&5
22502echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22503cat >conftest.$ac_ext <<_ACEOF
22504/* confdefs.h. */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
22508/* end confdefs.h. */
22509$ac_includes_default
22510#include <windows.h>
22511_ACEOF
22512rm -f conftest.$ac_objext
22513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22514 (eval $ac_compile) 2>conftest.er1
a848cd7e 22515 ac_status=$?
ac1cb8d3
VS
22516 grep -v '^ *+' conftest.er1 >conftest.err
22517 rm -f conftest.er1
22518 cat conftest.err >&5
a848cd7e
SC
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } &&
fc480dc1
DE
22521 { ac_try='test -z "$ac_c_werror_flag"
22522 || test ! -s conftest.err'
ac1cb8d3
VS
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; } &&
22528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 ac_header_compiler=yes
22535else
22536 echo "$as_me: failed program was:" >&5
22537sed 's/^/| /' conftest.$ac_ext >&5
22538
22539ac_header_compiler=no
22540fi
ac1cb8d3 22541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22543echo "${ECHO_T}$ac_header_compiler" >&6
22544
22545# Is the header present?
22546echo "$as_me:$LINENO: checking windows.h presence" >&5
22547echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22548cat >conftest.$ac_ext <<_ACEOF
22549/* confdefs.h. */
22550_ACEOF
22551cat confdefs.h >>conftest.$ac_ext
22552cat >>conftest.$ac_ext <<_ACEOF
22553/* end confdefs.h. */
22554#include <windows.h>
22555_ACEOF
22556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } >/dev/null; then
22564 if test -s conftest.err; then
22565 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22567 else
22568 ac_cpp_err=
22569 fi
22570else
22571 ac_cpp_err=yes
22572fi
22573if test -z "$ac_cpp_err"; then
22574 ac_header_preproc=yes
22575else
22576 echo "$as_me: failed program was:" >&5
22577sed 's/^/| /' conftest.$ac_ext >&5
22578
22579 ac_header_preproc=no
22580fi
22581rm -f conftest.err conftest.$ac_ext
22582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22583echo "${ECHO_T}$ac_header_preproc" >&6
22584
22585# So? What about this header?
ac1cb8d3
VS
22586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22587 yes:no: )
a848cd7e
SC
22588 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22589echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22590 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22591echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22592 ac_header_preproc=yes
a848cd7e 22593 ;;
ac1cb8d3 22594 no:yes:* )
a848cd7e
SC
22595 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22596echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22597 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22598echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22599 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22600echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22601 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22602echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22603 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22604echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22605 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22606echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22607 (
22608 cat <<\_ASBOX
ac1cb8d3
VS
22609## ----------------------------------------- ##
22610## Report this to wx-dev@lists.wxwidgets.org ##
22611## ----------------------------------------- ##
a848cd7e
SC
22612_ASBOX
22613 ) |
22614 sed "s/^/$as_me: WARNING: /" >&2
22615 ;;
22616esac
22617echo "$as_me:$LINENO: checking for windows.h" >&5
22618echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22619if test "${ac_cv_header_windows_h+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22621else
22622 ac_cv_header_windows_h=$ac_header_preproc
22623fi
22624echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22625echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22626
22627fi
22628if test $ac_cv_header_windows_h = yes; then
22629 :
22630else
22631
22632 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22633echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22634 { (exit 1); exit 1; }; }
22635
22636fi
22637
22638
22639
22640 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22641
22642 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22643 LIBS="$LIBS -loleacc"
22644 fi
22645
22646 case "${host}" in
22647 *-*-cygwin* )
22648 LIBS="$LIBS -lkernel32 -luser32"
22649 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22650 esac
22651
22652 if test "$wxUSE_ODBC" = "sys" ; then
22653 wxUSE_ODBC = "yes"
22654 fi
22655 if test "$wxUSE_ODBC" = "yes" ; then
22656 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22657 cat >>confdefs.h <<\_ACEOF
22658#define wxUSE_ODBC 1
22659_ACEOF
22660
22661 fi
22662
22663 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22664 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22665
22666 WIN32INSTALL=win32install
22667fi
22668
22669if test "$wxUSE_GUI" = "yes"; then
22670 USE_GUI=1
22671
22672 GUI_TK_LIBRARY=
22673
22674 WXGTK12=
22675 WXGTK127=
22676 WXGTK20=
22677 WXGPE=
22678
207bc66c
RN
22679 if test "$wxUSE_COCOA" = 1 ; then
22680 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22681 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22682echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22683 wxUSE_PRINTING_ARCHITECTURE=no
22684 fi
22685 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22686 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22687echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22688 wxUSE_DRAG_AND_DROP=no
22689 fi
22690 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22691 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22692echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22693 wxUSE_DRAGIMAGE=no
22694 fi
22695 fi
22696
a848cd7e
SC
22697 if test "$wxUSE_MSW" = 1 ; then
22698 TOOLKIT=MSW
22699 GUIDIST=MSW_DIST
22700
ceec2216 22701 case "${host}" in
a848cd7e
SC
22702 *-*-mingw32* )
22703 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22704 esac
22705 fi
22706
22707 if test "$wxUSE_GTK" = 1; then
22708 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22709echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22710
22711 gtk_version_cached=1
22712 if test "${wx_cv_lib_gtk+set}" = set; then
22713 echo $ECHO_N "(cached) $ECHO_C" >&6
22714else
22715
22716 gtk_version_cached=0
22717 echo "$as_me:$LINENO: result: " >&5
22718echo "${ECHO_T}" >&6
22719
22720 GTK_MODULES=
22721 if test "$wxUSE_THREADS" = "yes"; then
22722 GTK_MODULES=gthread
22723 fi
22724
22725 wx_cv_lib_gtk=
22726 if test "x$wxUSE_GTK2" = "xyes"; then
22727 # Check whether --enable-gtktest or --disable-gtktest was given.
22728if test "${enable_gtktest+set}" = set; then
22729 enableval="$enable_gtktest"
22730
22731else
22732 enable_gtktest=yes
22733fi;
22734
22735 pkg_config_args=gtk+-2.0
22736 for module in . $GTK_MODULES
22737 do
22738 case "$module" in
22739 gthread)
22740 pkg_config_args="$pkg_config_args gthread-2.0"
22741 ;;
22742 esac
22743 done
22744
22745 no_gtk=""
22746
22747 # Extract the first word of "pkg-config", so it can be a program name with args.
22748set dummy pkg-config; ac_word=$2
22749echo "$as_me:$LINENO: checking for $ac_word" >&5
22750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22751if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22752 echo $ECHO_N "(cached) $ECHO_C" >&6
22753else
22754 case $PKG_CONFIG in
22755 [\\/]* | ?:[\\/]*)
22756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22757 ;;
22758 *)
22759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22760for as_dir in $PATH
22761do
22762 IFS=$as_save_IFS
22763 test -z "$as_dir" && as_dir=.
22764 for ac_exec_ext in '' $ac_executable_extensions; do
22765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22768 break 2
22769 fi
22770done
22771done
22772
22773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22774 ;;
22775esac
22776fi
22777PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22778
22779if test -n "$PKG_CONFIG"; then
22780 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22781echo "${ECHO_T}$PKG_CONFIG" >&6
22782else
22783 echo "$as_me:$LINENO: result: no" >&5
22784echo "${ECHO_T}no" >&6
22785fi
22786
22787
22788 if test x$PKG_CONFIG != xno ; then
22789 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22790 :
22791 else
c2218763 22792 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22793 no_gtk=yes
22794 PKG_CONFIG=no
22795 fi
22796 else
22797 no_gtk=yes
22798 fi
22799
22800 min_gtk_version=2.0.0
22801 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22802echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22803
22804 if test x$PKG_CONFIG != xno ; then
22805 ## don't try to run the test against uninstalled libtool libs
22806 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22807 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22808 enable_gtktest=no
22809 fi
22810
22811 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22812 :
22813 else
22814 no_gtk=yes
22815 fi
22816 fi
22817
22818 if test x"$no_gtk" = x ; then
22819 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22820 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22821 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22822 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22823 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22824 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22825 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22826 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22827 if test "x$enable_gtktest" = "xyes" ; then
22828 ac_save_CFLAGS="$CFLAGS"
22829 ac_save_LIBS="$LIBS"
22830 CFLAGS="$CFLAGS $GTK_CFLAGS"
22831 LIBS="$GTK_LIBS $LIBS"
22832 rm -f conf.gtktest
22833 if test "$cross_compiling" = yes; then
22834 echo $ac_n "cross compiling; assumed OK... $ac_c"
22835else
22836 cat >conftest.$ac_ext <<_ACEOF
22837/* confdefs.h. */
22838_ACEOF
22839cat confdefs.h >>conftest.$ac_ext
22840cat >>conftest.$ac_ext <<_ACEOF
22841/* end confdefs.h. */
22842
22843#include <gtk/gtk.h>
22844#include <stdio.h>
22845#include <stdlib.h>
22846
22847int
22848main ()
22849{
22850 int major, minor, micro;
22851 char *tmp_version;
22852
22853 system ("touch conf.gtktest");
22854
22855 /* HP/UX 9 (%@#!) writes to sscanf strings */
22856 tmp_version = g_strdup("$min_gtk_version");
22857 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22858 printf("%s, bad version string\n", "$min_gtk_version");
22859 exit(1);
22860 }
22861
22862 if ((gtk_major_version != $gtk_config_major_version) ||
22863 (gtk_minor_version != $gtk_config_minor_version) ||
22864 (gtk_micro_version != $gtk_config_micro_version))
22865 {
22866 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22867 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22868 gtk_major_version, gtk_minor_version, gtk_micro_version);
22869 printf ("*** was found! If pkg-config was correct, then it is best\n");
22870 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22871 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22872 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22873 printf("*** required on your system.\n");
22874 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22875 printf("*** to point to the correct configuration files\n");
22876 }
22877 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22878 (gtk_minor_version != GTK_MINOR_VERSION) ||
22879 (gtk_micro_version != GTK_MICRO_VERSION))
22880 {
22881 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22882 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22883 printf("*** library (version %d.%d.%d)\n",
22884 gtk_major_version, gtk_minor_version, gtk_micro_version);
22885 }
22886 else
22887 {
22888 if ((gtk_major_version > major) ||
22889 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22890 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22891 {
22892 return 0;
22893 }
22894 else
22895 {
22896 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22897 gtk_major_version, gtk_minor_version, gtk_micro_version);
22898 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22899 major, minor, micro);
22900 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22901 printf("***\n");
22902 printf("*** If you have already installed a sufficiently new version, this error\n");
22903 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22904 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22905 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22906 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22907 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22908 printf("*** so that the correct libraries are found at run-time))\n");
22909 }
22910 }
22911 return 1;
22912}
22913
22914_ACEOF
22915rm -f conftest$ac_exeext
22916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917 (eval $ac_link) 2>&5
22918 ac_status=$?
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22923 ac_status=$?
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; }; then
22926 :
22927else
22928 echo "$as_me: program exited with status $ac_status" >&5
22929echo "$as_me: failed program was:" >&5
22930sed 's/^/| /' conftest.$ac_ext >&5
22931
22932( exit $ac_status )
22933no_gtk=yes
22934fi
ac1cb8d3 22935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22936fi
22937 CFLAGS="$ac_save_CFLAGS"
22938 LIBS="$ac_save_LIBS"
22939 fi
22940 fi
22941 if test "x$no_gtk" = x ; then
22942 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22943echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22944 wx_cv_lib_gtk=2.0
22945 else
22946 echo "$as_me:$LINENO: result: no" >&5
22947echo "${ECHO_T}no" >&6
22948 if test "$PKG_CONFIG" = "no" ; then
22949 echo "*** A new enough version of pkg-config was not found."
22950 echo "*** See http://pkgconfig.sourceforge.net"
22951 else
22952 if test -f conf.gtktest ; then
22953 :
22954 else
22955 echo "*** Could not run GTK+ test program, checking why..."
22956 ac_save_CFLAGS="$CFLAGS"
22957 ac_save_LIBS="$LIBS"
22958 CFLAGS="$CFLAGS $GTK_CFLAGS"
22959 LIBS="$LIBS $GTK_LIBS"
22960 cat >conftest.$ac_ext <<_ACEOF
22961/* confdefs.h. */
22962_ACEOF
22963cat confdefs.h >>conftest.$ac_ext
22964cat >>conftest.$ac_ext <<_ACEOF
22965/* end confdefs.h. */
22966
22967#include <gtk/gtk.h>
22968#include <stdio.h>
22969
22970int
22971main ()
22972{
22973 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22974 ;
22975 return 0;
22976}
22977_ACEOF
22978rm -f conftest.$ac_objext conftest$ac_exeext
22979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22980 (eval $ac_link) 2>conftest.er1
a848cd7e 22981 ac_status=$?
ac1cb8d3
VS
22982 grep -v '^ *+' conftest.er1 >conftest.err
22983 rm -f conftest.er1
22984 cat conftest.err >&5
a848cd7e
SC
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } &&
fc480dc1
DE
22987 { ac_try='test -z "$ac_c_werror_flag"
22988 || test ! -s conftest.err'
ac1cb8d3
VS
22989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22991 ac_status=$?
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; } &&
22994 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996 (eval $ac_try) 2>&5
22997 ac_status=$?
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); }; }; then
23000 echo "*** The test program compiled, but did not run. This usually means"
23001 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23002 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23003 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23004 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23005 echo "*** is required on your system"
23006 echo "***"
23007 echo "*** If you have an old version installed, it is best to remove it, although"
23008 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23009else
23010 echo "$as_me: failed program was:" >&5
23011sed 's/^/| /' conftest.$ac_ext >&5
23012
23013 echo "*** The test program failed to compile or link. See the file config.log for the"
23014 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23015fi
ac1cb8d3
VS
23016rm -f conftest.err conftest.$ac_objext \
23017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23018 CFLAGS="$ac_save_CFLAGS"
23019 LIBS="$ac_save_LIBS"
23020 fi
23021 fi
23022 GTK_CFLAGS=""
23023 GTK_LIBS=""
23024 :
23025 fi
23026
23027
23028 rm -f conf.gtktest
23029
23030 else
23031
23032# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23033if test "${with_gtk_prefix+set}" = set; then
23034 withval="$with_gtk_prefix"
23035 gtk_config_prefix="$withval"
23036else
23037 gtk_config_prefix=""
23038fi;
23039
23040# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23041if test "${with_gtk_exec_prefix+set}" = set; then
23042 withval="$with_gtk_exec_prefix"
23043 gtk_config_exec_prefix="$withval"
23044else
23045 gtk_config_exec_prefix=""
23046fi;
23047# Check whether --enable-gtktest or --disable-gtktest was given.
23048if test "${enable_gtktest+set}" = set; then
23049 enableval="$enable_gtktest"
23050
23051else
23052 enable_gtktest=yes
23053fi;
23054
23055 for module in . $GTK_MODULES
23056 do
23057 case "$module" in
23058 gthread)
23059 gtk_config_args="$gtk_config_args gthread"
23060 ;;
23061 esac
23062 done
23063
23064 if test x$gtk_config_exec_prefix != x ; then
23065 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23066 if test x${GTK_CONFIG+set} != xset ; then
23067 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23068 fi
23069 fi
23070 if test x$gtk_config_prefix != x ; then
23071 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23072 if test x${GTK_CONFIG+set} != xset ; then
23073 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23074 fi
23075 fi
23076
23077 # Extract the first word of "gtk-config", so it can be a program name with args.
23078set dummy gtk-config; ac_word=$2
23079echo "$as_me:$LINENO: checking for $ac_word" >&5
23080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23081if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083else
23084 case $GTK_CONFIG in
23085 [\\/]* | ?:[\\/]*)
23086 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23087 ;;
23088 *)
23089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23090for as_dir in $PATH
23091do
23092 IFS=$as_save_IFS
23093 test -z "$as_dir" && as_dir=.
23094 for ac_exec_ext in '' $ac_executable_extensions; do
23095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23096 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23098 break 2
23099 fi
23100done
23101done
23102
23103 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23104 ;;
23105esac
23106fi
23107GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23108
23109if test -n "$GTK_CONFIG"; then
23110 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23111echo "${ECHO_T}$GTK_CONFIG" >&6
23112else
23113 echo "$as_me:$LINENO: result: no" >&5
23114echo "${ECHO_T}no" >&6
23115fi
23116
23117 min_gtk_version=1.2.7
23118 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23119echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23120 no_gtk=""
23121 if test "$GTK_CONFIG" = "no" ; then
23122 no_gtk=yes
23123 else
23124 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23125 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23126 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23128 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23130 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23132 if test "x$enable_gtktest" = "xyes" ; then
23133 ac_save_CFLAGS="$CFLAGS"
23134 ac_save_LIBS="$LIBS"
23135 CFLAGS="$CFLAGS $GTK_CFLAGS"
23136 LIBS="$GTK_LIBS $LIBS"
23137 rm -f conf.gtktest
23138 if test "$cross_compiling" = yes; then
23139 echo $ac_n "cross compiling; assumed OK... $ac_c"
23140else
23141 cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h. */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h. */
23147
23148#include <gtk/gtk.h>
23149#include <stdio.h>
23150#include <stdlib.h>
23151
23152int
23153main ()
23154{
23155 int major, minor, micro;
23156 char *tmp_version;
23157
23158 system ("touch conf.gtktest");
23159
23160 /* HP/UX 9 (%@#!) writes to sscanf strings */
23161 tmp_version = g_strdup("$min_gtk_version");
23162 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23163 printf("%s, bad version string\n", "$min_gtk_version");
23164 exit(1);
23165 }
23166
23167 if ((gtk_major_version != $gtk_config_major_version) ||
23168 (gtk_minor_version != $gtk_config_minor_version) ||
23169 (gtk_micro_version != $gtk_config_micro_version))
23170 {
23171 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23172 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23173 gtk_major_version, gtk_minor_version, gtk_micro_version);
23174 printf ("*** was found! If gtk-config was correct, then it is best\n");
23175 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23176 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23177 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23178 printf("*** required on your system.\n");
23179 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23180 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23181 printf("*** before re-running configure\n");
23182 }
23183#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23184 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23185 (gtk_minor_version != GTK_MINOR_VERSION) ||
23186 (gtk_micro_version != GTK_MICRO_VERSION))
23187 {
23188 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23189 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23190 printf("*** library (version %d.%d.%d)\n",
23191 gtk_major_version, gtk_minor_version, gtk_micro_version);
23192 }
23193#endif /* defined (GTK_MAJOR_VERSION) ... */
23194 else
23195 {
23196 if ((gtk_major_version > major) ||
23197 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23198 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23199 {
23200 return 0;
23201 }
23202 else
23203 {
23204 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23205 gtk_major_version, gtk_minor_version, gtk_micro_version);
23206 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23207 major, minor, micro);
23208 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23209 printf("***\n");
23210 printf("*** If you have already installed a sufficiently new version, this error\n");
23211 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23212 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23213 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23214 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23215 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23216 printf("*** so that the correct libraries are found at run-time))\n");
23217 }
23218 }
23219 return 1;
23220}
23221
23222_ACEOF
23223rm -f conftest$ac_exeext
23224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23225 (eval $ac_link) 2>&5
23226 ac_status=$?
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 :
23235else
23236 echo "$as_me: program exited with status $ac_status" >&5
23237echo "$as_me: failed program was:" >&5
23238sed 's/^/| /' conftest.$ac_ext >&5
23239
23240( exit $ac_status )
23241no_gtk=yes
23242fi
ac1cb8d3 23243rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23244fi
23245 CFLAGS="$ac_save_CFLAGS"
23246 LIBS="$ac_save_LIBS"
23247 fi
23248 fi
23249 if test "x$no_gtk" = x ; then
23250 echo "$as_me:$LINENO: result: yes" >&5
23251echo "${ECHO_T}yes" >&6
23252 wx_cv_lib_gtk=1.2.7
23253 else
23254 echo "$as_me:$LINENO: result: no" >&5
23255echo "${ECHO_T}no" >&6
23256 if test "$GTK_CONFIG" = "no" ; then
23257 echo "*** The gtk-config script installed by GTK could not be found"
23258 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23259 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23260 echo "*** full path to gtk-config."
23261 else
23262 if test -f conf.gtktest ; then
23263 :
23264 else
23265 echo "*** Could not run GTK test program, checking why..."
23266 CFLAGS="$CFLAGS $GTK_CFLAGS"
23267 LIBS="$LIBS $GTK_LIBS"
23268 cat >conftest.$ac_ext <<_ACEOF
23269/* confdefs.h. */
23270_ACEOF
23271cat confdefs.h >>conftest.$ac_ext
23272cat >>conftest.$ac_ext <<_ACEOF
23273/* end confdefs.h. */
23274
23275#include <gtk/gtk.h>
23276#include <stdio.h>
23277
23278int
23279main ()
23280{
23281 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23282 ;
23283 return 0;
23284}
23285_ACEOF
23286rm -f conftest.$ac_objext conftest$ac_exeext
23287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23288 (eval $ac_link) 2>conftest.er1
a848cd7e 23289 ac_status=$?
ac1cb8d3
VS
23290 grep -v '^ *+' conftest.er1 >conftest.err
23291 rm -f conftest.er1
23292 cat conftest.err >&5
a848cd7e
SC
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } &&
fc480dc1
DE
23295 { ac_try='test -z "$ac_c_werror_flag"
23296 || test ! -s conftest.err'
ac1cb8d3
VS
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; } &&
23302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; }; then
23308 echo "*** The test program compiled, but did not run. This usually means"
23309 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23310 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23311 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23312 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23313 echo "*** is required on your system"
23314 echo "***"
23315 echo "*** If you have an old version installed, it is best to remove it, although"
23316 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23317 echo "***"
23318 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23319 echo "*** came with the system with the command"
23320 echo "***"
23321 echo "*** rpm --erase --nodeps gtk gtk-devel"
23322else
23323 echo "$as_me: failed program was:" >&5
23324sed 's/^/| /' conftest.$ac_ext >&5
23325
23326 echo "*** The test program failed to compile or link. See the file config.log for the"
23327 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23328 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23329 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23330fi
ac1cb8d3
VS
23331rm -f conftest.err conftest.$ac_objext \
23332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23333 CFLAGS="$ac_save_CFLAGS"
23334 LIBS="$ac_save_LIBS"
23335 fi
23336 fi
23337 GTK_CFLAGS=""
23338 GTK_LIBS=""
23339 :
23340 fi
23341
23342
23343 rm -f conf.gtktest
23344
23345
23346 if test -z "$wx_cv_lib_gtk"; then
23347
23348# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23349if test "${with_gtk_prefix+set}" = set; then
23350 withval="$with_gtk_prefix"
23351 gtk_config_prefix="$withval"
23352else
23353 gtk_config_prefix=""
23354fi;
23355
23356# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23357if test "${with_gtk_exec_prefix+set}" = set; then
23358 withval="$with_gtk_exec_prefix"
23359 gtk_config_exec_prefix="$withval"
23360else
23361 gtk_config_exec_prefix=""
23362fi;
23363# Check whether --enable-gtktest or --disable-gtktest was given.
23364if test "${enable_gtktest+set}" = set; then
23365 enableval="$enable_gtktest"
23366
23367else
23368 enable_gtktest=yes
23369fi;
23370
23371 for module in . $GTK_MODULES
23372 do
23373 case "$module" in
23374 gthread)
23375 gtk_config_args="$gtk_config_args gthread"
23376 ;;
23377 esac
23378 done
23379
23380 if test x$gtk_config_exec_prefix != x ; then
23381 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23382 if test x${GTK_CONFIG+set} != xset ; then
23383 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23384 fi
23385 fi
23386 if test x$gtk_config_prefix != x ; then
23387 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23388 if test x${GTK_CONFIG+set} != xset ; then
23389 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23390 fi
23391 fi
23392
23393 # Extract the first word of "gtk-config", so it can be a program name with args.
23394set dummy gtk-config; ac_word=$2
23395echo "$as_me:$LINENO: checking for $ac_word" >&5
23396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23397if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23398 echo $ECHO_N "(cached) $ECHO_C" >&6
23399else
23400 case $GTK_CONFIG in
23401 [\\/]* | ?:[\\/]*)
23402 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23403 ;;
23404 *)
23405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23406for as_dir in $PATH
23407do
23408 IFS=$as_save_IFS
23409 test -z "$as_dir" && as_dir=.
23410 for ac_exec_ext in '' $ac_executable_extensions; do
23411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23412 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23414 break 2
23415 fi
23416done
23417done
23418
23419 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23420 ;;
23421esac
23422fi
23423GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23424
23425if test -n "$GTK_CONFIG"; then
23426 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23427echo "${ECHO_T}$GTK_CONFIG" >&6
23428else
23429 echo "$as_me:$LINENO: result: no" >&5
23430echo "${ECHO_T}no" >&6
23431fi
23432
23433 min_gtk_version=1.2.3
23434 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23435echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23436 no_gtk=""
23437 if test "$GTK_CONFIG" = "no" ; then
23438 no_gtk=yes
23439 else
23440 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23441 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23442 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23444 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23446 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23448 if test "x$enable_gtktest" = "xyes" ; then
23449 ac_save_CFLAGS="$CFLAGS"
23450 ac_save_LIBS="$LIBS"
23451 CFLAGS="$CFLAGS $GTK_CFLAGS"
23452 LIBS="$GTK_LIBS $LIBS"
23453 rm -f conf.gtktest
23454 if test "$cross_compiling" = yes; then
23455 echo $ac_n "cross compiling; assumed OK... $ac_c"
23456else
23457 cat >conftest.$ac_ext <<_ACEOF
23458/* confdefs.h. */
23459_ACEOF
23460cat confdefs.h >>conftest.$ac_ext
23461cat >>conftest.$ac_ext <<_ACEOF
23462/* end confdefs.h. */
23463
23464#include <gtk/gtk.h>
23465#include <stdio.h>
23466#include <stdlib.h>
23467
23468int
23469main ()
23470{
23471 int major, minor, micro;
23472 char *tmp_version;
23473
23474 system ("touch conf.gtktest");
23475
23476 /* HP/UX 9 (%@#!) writes to sscanf strings */
23477 tmp_version = g_strdup("$min_gtk_version");
23478 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23479 printf("%s, bad version string\n", "$min_gtk_version");
23480 exit(1);
23481 }
23482
23483 if ((gtk_major_version != $gtk_config_major_version) ||
23484 (gtk_minor_version != $gtk_config_minor_version) ||
23485 (gtk_micro_version != $gtk_config_micro_version))
23486 {
23487 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23488 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23489 gtk_major_version, gtk_minor_version, gtk_micro_version);
23490 printf ("*** was found! If gtk-config was correct, then it is best\n");
23491 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23492 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23493 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23494 printf("*** required on your system.\n");
23495 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23496 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23497 printf("*** before re-running configure\n");
23498 }
23499#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23500 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23501 (gtk_minor_version != GTK_MINOR_VERSION) ||
23502 (gtk_micro_version != GTK_MICRO_VERSION))
23503 {
23504 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23505 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23506 printf("*** library (version %d.%d.%d)\n",
23507 gtk_major_version, gtk_minor_version, gtk_micro_version);
23508 }
23509#endif /* defined (GTK_MAJOR_VERSION) ... */
23510 else
23511 {
23512 if ((gtk_major_version > major) ||
23513 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23514 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23515 {
23516 return 0;
23517 }
23518 else
23519 {
23520 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23521 gtk_major_version, gtk_minor_version, gtk_micro_version);
23522 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23523 major, minor, micro);
23524 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23525 printf("***\n");
23526 printf("*** If you have already installed a sufficiently new version, this error\n");
23527 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23528 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23529 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23530 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23531 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23532 printf("*** so that the correct libraries are found at run-time))\n");
23533 }
23534 }
23535 return 1;
23536}
23537
23538_ACEOF
23539rm -f conftest$ac_exeext
23540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23541 (eval $ac_link) 2>&5
23542 ac_status=$?
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; }; then
23550 :
23551else
23552 echo "$as_me: program exited with status $ac_status" >&5
23553echo "$as_me: failed program was:" >&5
23554sed 's/^/| /' conftest.$ac_ext >&5
23555
23556( exit $ac_status )
23557no_gtk=yes
23558fi
ac1cb8d3 23559rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23560fi
23561 CFLAGS="$ac_save_CFLAGS"
23562 LIBS="$ac_save_LIBS"
23563 fi
23564 fi
23565 if test "x$no_gtk" = x ; then
23566 echo "$as_me:$LINENO: result: yes" >&5
23567echo "${ECHO_T}yes" >&6
23568 wx_cv_lib_gtk=1.2.3
23569 else
23570 echo "$as_me:$LINENO: result: no" >&5
23571echo "${ECHO_T}no" >&6
23572 if test "$GTK_CONFIG" = "no" ; then
23573 echo "*** The gtk-config script installed by GTK could not be found"
23574 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23575 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23576 echo "*** full path to gtk-config."
23577 else
23578 if test -f conf.gtktest ; then
23579 :
23580 else
23581 echo "*** Could not run GTK test program, checking why..."
23582 CFLAGS="$CFLAGS $GTK_CFLAGS"
23583 LIBS="$LIBS $GTK_LIBS"
23584 cat >conftest.$ac_ext <<_ACEOF
23585/* confdefs.h. */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h. */
23590
23591#include <gtk/gtk.h>
23592#include <stdio.h>
23593
23594int
23595main ()
23596{
23597 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23598 ;
23599 return 0;
23600}
23601_ACEOF
23602rm -f conftest.$ac_objext conftest$ac_exeext
23603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23604 (eval $ac_link) 2>conftest.er1
a848cd7e 23605 ac_status=$?
ac1cb8d3
VS
23606 grep -v '^ *+' conftest.er1 >conftest.err
23607 rm -f conftest.er1
23608 cat conftest.err >&5
a848cd7e
SC
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } &&
fc480dc1
DE
23611 { ac_try='test -z "$ac_c_werror_flag"
23612 || test ! -s conftest.err'
ac1cb8d3
VS
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; } &&
23618 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 echo "*** The test program compiled, but did not run. This usually means"
23625 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23626 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23627 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23628 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23629 echo "*** is required on your system"
23630 echo "***"
23631 echo "*** If you have an old version installed, it is best to remove it, although"
23632 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23633 echo "***"
23634 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23635 echo "*** came with the system with the command"
23636 echo "***"
23637 echo "*** rpm --erase --nodeps gtk gtk-devel"
23638else
23639 echo "$as_me: failed program was:" >&5
23640sed 's/^/| /' conftest.$ac_ext >&5
23641
23642 echo "*** The test program failed to compile or link. See the file config.log for the"
23643 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23644 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23645 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23646fi
ac1cb8d3
VS
23647rm -f conftest.err conftest.$ac_objext \
23648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23649 CFLAGS="$ac_save_CFLAGS"
23650 LIBS="$ac_save_LIBS"
23651 fi
23652 fi
23653 GTK_CFLAGS=""
23654 GTK_LIBS=""
23655 :
23656 fi
23657
23658
23659 rm -f conf.gtktest
23660
23661 fi
23662 fi
23663
23664 if test -z "$wx_cv_lib_gtk"; then
23665 wx_cv_lib_gtk=none
23666 else
23667 wx_cv_cflags_gtk=$GTK_CFLAGS
23668 wx_cv_libs_gtk=$GTK_LIBS
23669 fi
23670
23671
23672fi
23673
23674
23675 if test "$gtk_version_cached" = 1; then
23676 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23677echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23678 fi
23679
23680 case "$wx_cv_lib_gtk" in
23681 2.0) WXGTK20=1
23682 TOOLKIT_VERSION=2
23683 ;;
23684 1.2.7) WXGTK127=1
23685 WXGTK12=1
23686 ;;
23687 1.2.3) WXGTK12=1
23688 ;;
23689 *) { { echo "$as_me:$LINENO: error:
23690Please check that gtk-config is in path, the directory
23691where GTK+ libraries are installed (returned by
23692'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23693equivalent variable and GTK+ is version 1.2.3 or above.
23694 " >&5
23695echo "$as_me: error:
23696Please check that gtk-config is in path, the directory
23697where GTK+ libraries are installed (returned by
23698'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23699equivalent variable and GTK+ is version 1.2.3 or above.
23700 " >&2;}
23701 { (exit 1); exit 1; }; }
23702 ;;
23703 esac
23704
23705 if test "$WXGTK20" = 1; then
304205f1
VS
23706 save_CFLAGS="$CFLAGS"
23707 save_LIBS="$LIBS"
23708 CFLAGS="$CFLAGS $GTK_CFLAGS"
23709 LIBS="$LIBS $GTK_LIBS"
23710
23711for ac_func in pango_font_family_is_monospace
23712do
23713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23714echo "$as_me:$LINENO: checking for $ac_func" >&5
23715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23716if eval "test \"\${$as_ac_var+set}\" = set"; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
23718else
23719 cat >conftest.$ac_ext <<_ACEOF
23720/* confdefs.h. */
23721_ACEOF
23722cat confdefs.h >>conftest.$ac_ext
23723cat >>conftest.$ac_ext <<_ACEOF
23724/* end confdefs.h. */
23725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23727#define $ac_func innocuous_$ac_func
23728
23729/* System header to define __stub macros and hopefully few prototypes,
23730 which can conflict with char $ac_func (); below.
23731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23732 <limits.h> exists even on freestanding compilers. */
23733
23734#ifdef __STDC__
23735# include <limits.h>
23736#else
23737# include <assert.h>
23738#endif
23739
23740#undef $ac_func
23741
23742/* Override any gcc2 internal prototype to avoid an error. */
23743#ifdef __cplusplus
23744extern "C"
23745{
23746#endif
23747/* We use char because int might match the return type of a gcc2
23748 builtin and then its argument prototype would still apply. */
23749char $ac_func ();
23750/* The GNU C library defines this for functions which it implements
23751 to always fail with ENOSYS. Some functions are actually named
23752 something starting with __ and the normal name is an alias. */
23753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23754choke me
23755#else
23756char (*f) () = $ac_func;
23757#endif
23758#ifdef __cplusplus
23759}
23760#endif
23761
23762int
23763main ()
23764{
23765return f != $ac_func;
23766 ;
23767 return 0;
23768}
23769_ACEOF
23770rm -f conftest.$ac_objext conftest$ac_exeext
23771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23772 (eval $ac_link) 2>conftest.er1
23773 ac_status=$?
23774 grep -v '^ *+' conftest.er1 >conftest.err
23775 rm -f conftest.er1
23776 cat conftest.err >&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } &&
fc480dc1
DE
23779 { ac_try='test -z "$ac_c_werror_flag"
23780 || test ! -s conftest.err'
304205f1
VS
23781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782 (eval $ac_try) 2>&5
23783 ac_status=$?
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); }; } &&
23786 { ac_try='test -s conftest$ac_exeext'
23787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788 (eval $ac_try) 2>&5
23789 ac_status=$?
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); }; }; then
23792 eval "$as_ac_var=yes"
23793else
23794 echo "$as_me: failed program was:" >&5
23795sed 's/^/| /' conftest.$ac_ext >&5
23796
23797eval "$as_ac_var=no"
23798fi
23799rm -f conftest.err conftest.$ac_objext \
23800 conftest$ac_exeext conftest.$ac_ext
23801fi
23802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23803echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23804if test `eval echo '${'$as_ac_var'}'` = yes; then
23805 cat >>confdefs.h <<_ACEOF
23806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23807_ACEOF
23808
23809fi
23810done
23811
23812 CFLAGS="$save_CFLAGS"
23813 LIBS="$save_LIBS"
a848cd7e
SC
23814 else
23815 if test "$wxUSE_UNICODE" = "yes"; then
23816 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23817echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23818 wxUSE_UNICODE=no
23819 fi
23820 fi
23821
23822 if test "$USE_DARWIN" != 1; then
23823
23824for ac_func in poll
23825do
23826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23827echo "$as_me:$LINENO: checking for $ac_func" >&5
23828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23829if eval "test \"\${$as_ac_var+set}\" = set"; then
23830 echo $ECHO_N "(cached) $ECHO_C" >&6
23831else
23832 cat >conftest.$ac_ext <<_ACEOF
23833/* confdefs.h. */
23834_ACEOF
23835cat confdefs.h >>conftest.$ac_ext
23836cat >>conftest.$ac_ext <<_ACEOF
23837/* end confdefs.h. */
ac1cb8d3
VS
23838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23840#define $ac_func innocuous_$ac_func
23841
a848cd7e
SC
23842/* System header to define __stub macros and hopefully few prototypes,
23843 which can conflict with char $ac_func (); below.
23844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23845 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23846
a848cd7e
SC
23847#ifdef __STDC__
23848# include <limits.h>
23849#else
23850# include <assert.h>
23851#endif
ac1cb8d3
VS
23852
23853#undef $ac_func
23854
a848cd7e
SC
23855/* Override any gcc2 internal prototype to avoid an error. */
23856#ifdef __cplusplus
23857extern "C"
23858{
23859#endif
23860/* We use char because int might match the return type of a gcc2
23861 builtin and then its argument prototype would still apply. */
23862char $ac_func ();
23863/* The GNU C library defines this for functions which it implements
23864 to always fail with ENOSYS. Some functions are actually named
23865 something starting with __ and the normal name is an alias. */
23866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23867choke me
23868#else
23869char (*f) () = $ac_func;
23870#endif
23871#ifdef __cplusplus
23872}
23873#endif
23874
23875int
23876main ()
23877{
23878return f != $ac_func;
23879 ;
23880 return 0;
23881}
23882_ACEOF
23883rm -f conftest.$ac_objext conftest$ac_exeext
23884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23885 (eval $ac_link) 2>conftest.er1
a848cd7e 23886 ac_status=$?
ac1cb8d3
VS
23887 grep -v '^ *+' conftest.er1 >conftest.err
23888 rm -f conftest.er1
23889 cat conftest.err >&5
a848cd7e
SC
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } &&
fc480dc1
DE
23892 { ac_try='test -z "$ac_c_werror_flag"
23893 || test ! -s conftest.err'
ac1cb8d3
VS
23894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895 (eval $ac_try) 2>&5
23896 ac_status=$?
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; } &&
23899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901 (eval $ac_try) 2>&5
23902 ac_status=$?
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); }; }; then
23905 eval "$as_ac_var=yes"
23906else
23907 echo "$as_me: failed program was:" >&5
23908sed 's/^/| /' conftest.$ac_ext >&5
23909
23910eval "$as_ac_var=no"
23911fi
ac1cb8d3
VS
23912rm -f conftest.err conftest.$ac_objext \
23913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23914fi
23915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23917if test `eval echo '${'$as_ac_var'}'` = yes; then
23918 cat >>confdefs.h <<_ACEOF
23919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23920_ACEOF
23921
23922fi
23923done
23924
23925 fi
23926
23927 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23928 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23929
23930 AFMINSTALL=afminstall
23931 TOOLKIT=GTK
23932 GUIDIST=GTK_DIST
23933
23934 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23935echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23936if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23938else
23939 ac_check_lib_save_LIBS=$LIBS
23940LIBS="-lgdk $LIBS"
23941cat >conftest.$ac_ext <<_ACEOF
23942/* confdefs.h. */
23943_ACEOF
23944cat confdefs.h >>conftest.$ac_ext
23945cat >>conftest.$ac_ext <<_ACEOF
23946/* end confdefs.h. */
23947
23948/* Override any gcc2 internal prototype to avoid an error. */
23949#ifdef __cplusplus
23950extern "C"
23951#endif
23952/* We use char because int might match the return type of a gcc2
23953 builtin and then its argument prototype would still apply. */
23954char gdk_im_open ();
23955int
23956main ()
23957{
23958gdk_im_open ();
23959 ;
23960 return 0;
23961}
23962_ACEOF
23963rm -f conftest.$ac_objext conftest$ac_exeext
23964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23965 (eval $ac_link) 2>conftest.er1
a848cd7e 23966 ac_status=$?
ac1cb8d3
VS
23967 grep -v '^ *+' conftest.er1 >conftest.err
23968 rm -f conftest.er1
23969 cat conftest.err >&5
a848cd7e
SC
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } &&
fc480dc1
DE
23972 { ac_try='test -z "$ac_c_werror_flag"
23973 || test ! -s conftest.err'
ac1cb8d3
VS
23974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); }; } &&
23979 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; }; then
23985 ac_cv_lib_gdk_gdk_im_open=yes
23986else
23987 echo "$as_me: failed program was:" >&5
23988sed 's/^/| /' conftest.$ac_ext >&5
23989
23990ac_cv_lib_gdk_gdk_im_open=no
23991fi
ac1cb8d3
VS
23992rm -f conftest.err conftest.$ac_objext \
23993 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23994LIBS=$ac_check_lib_save_LIBS
23995fi
23996echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23997echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23998if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23999 cat >>confdefs.h <<\_ACEOF
24000#define HAVE_XIM 1
24001_ACEOF
24002
24003fi
24004
24005
24006
24007 if test "$wxUSE_GPE" = "yes"; then
24008 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24009echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24010
24011ac_find_libraries=
24012for ac_dir in $SEARCH_LIB /usr/lib;
24013 do
24014 for ac_extension in a so sl dylib; do
24015 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24016 ac_find_libraries=$ac_dir
24017 break 2
24018 fi
24019 done
24020 done
24021
24022 if test "$ac_find_libraries" != "" ; then
24023
24024 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24025 result=$?
24026 if test $result = 0; then
24027 ac_path_to_link=""
24028 else
24029 ac_path_to_link=" -L$ac_find_libraries"
24030 fi
24031
24032 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24033 WXGPE=1
24034 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24035echo "${ECHO_T}found at $ac_find_libraries" >&6
24036 else
24037 echo "$as_me:$LINENO: result: not found" >&5
24038echo "${ECHO_T}not found" >&6
24039 fi
24040
24041 fi
24042 fi
24043
24044 if test "$wxUSE_MGL" = 1; then
24045 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24046echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24047 if test "x$MGL_ROOT" = x ; then
24048 echo "$as_me:$LINENO: result: not found" >&5
24049echo "${ECHO_T}not found" >&6
24050 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24051echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24052 { (exit 1); exit 1; }; }
24053 else
24054 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24055echo "${ECHO_T}$MGL_ROOT" >&6
24056 fi
24057
24058 echo "$as_me:$LINENO: checking for libmgl location" >&5
24059echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24060 case "${host}" in
24061 *-*-linux* )
24062 if test "x$wxUSE_SHARED" = xyes ; then
24063 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24064 else
24065 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24066 fi
24067 ;;
24068 *-pc-msdosdjgpp )
24069 mgl_os_candidates="dos32/dj2"
24070 ;;
24071 *)
24072 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24073echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24074 { (exit 1); exit 1; }; }
24075 esac
24076
24077 mgl_lib_type=""
24078 mgl_os=""
24079
24080 for mgl_os_i in $mgl_os_candidates ; do
24081 if test "x$mgl_os" = x ; then
24082 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24083 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24084 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24085 mgl_lib_type=debug
24086 mgl_os=$mgl_os_i
24087 fi
24088 fi
24089 if test "x$mgl_lib_type" = x ; then
24090 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24091 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24092 mgl_lib_type=release
24093 mgl_os=$mgl_os_i
24094 fi
24095 fi
24096 fi
24097 done
24098
24099 if test "x$mgl_os" = x ; then
24100 echo "$as_me:$LINENO: result: not found" >&5
24101echo "${ECHO_T}not found" >&6
24102 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24103echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24104 { (exit 1); exit 1; }; }
24105 fi
24106 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24107echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24108
24109 wxUSE_UNIVERSAL="yes"
24110
24111 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24112 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24113
24114 AFMINSTALL=afminstall
24115 TOOLKIT=MGL
24116 GUIDIST=MGL_DIST
24117 fi
24118
24119 if test "$wxUSE_MICROWIN" = 1; then
24120 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24121echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24122 if test "x$MICROWINDOWS" = x ; then
24123 echo "$as_me:$LINENO: result: not found" >&5
24124echo "${ECHO_T}not found" >&6
24125 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24126echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24127 { (exit 1); exit 1; }; }
24128 else
24129 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24130echo "${ECHO_T}$MICROWINDOWS" >&6
24131 fi
24132
24133 if test -f $MICROWINDOWS/lib/libmwin.a; then
24134 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24135echo "${ECHO_T}MicroWindows' libraries found." >&6
24136 else
24137 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24138echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24139 { (exit 1); exit 1; }; }
24140 fi
24141
24142 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24143 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24144
24145 wxUSE_UNIVERSAL="yes"
24146
24147 AFMINSTALL=afminstall
24148 TOOLKIT=MICROWIN
24149 GUIDIST=MICROWIN_DIST
24150
24151 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24152 fi
24153
74b84332 24154 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
fc480dc1 24155 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24156echo $ECHO_N "checking for X... $ECHO_C" >&6
24157
24158
24159# Check whether --with-x or --without-x was given.
24160if test "${with_x+set}" = set; then
24161 withval="$with_x"
24162
24163fi;
24164# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24165if test "x$with_x" = xno; then
24166 # The user explicitly disabled X.
24167 have_x=disabled
24168else
24169 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24170 # Both variables are already set.
24171 have_x=yes
24172 else
24173 if test "${ac_cv_have_x+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24175else
24176 # One or both of the vars are not set, and there is no cached value.
24177ac_x_includes=no ac_x_libraries=no
24178rm -fr conftest.dir
24179if mkdir conftest.dir; then
24180 cd conftest.dir
24181 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24182 cat >Imakefile <<'_ACEOF'
24183acfindx:
24184 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24185_ACEOF
24186 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24188 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24189 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24190 for ac_extension in a so sl; do
24191 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24192 test -f $ac_im_libdir/libX11.$ac_extension; then
24193 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24194 fi
24195 done
24196 # Screen out bogus values from the imake configuration. They are
24197 # bogus both because they are the default anyway, and because
24198 # using them would break gcc on systems where it needs fixed includes.
24199 case $ac_im_incroot in
24200 /usr/include) ;;
24201 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24202 esac
24203 case $ac_im_usrlibdir in
24204 /usr/lib | /lib) ;;
24205 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24206 esac
24207 fi
24208 cd ..
24209 rm -fr conftest.dir
24210fi
24211
24212# Standard set of common directories for X headers.
24213# Check X11 before X11Rn because it is often a symlink to the current release.
24214ac_x_header_dirs='
24215/usr/X11/include
24216/usr/X11R6/include
24217/usr/X11R5/include
24218/usr/X11R4/include
24219
24220/usr/include/X11
24221/usr/include/X11R6
24222/usr/include/X11R5
24223/usr/include/X11R4
24224
24225/usr/local/X11/include
24226/usr/local/X11R6/include
24227/usr/local/X11R5/include
24228/usr/local/X11R4/include
24229
24230/usr/local/include/X11
24231/usr/local/include/X11R6
24232/usr/local/include/X11R5
24233/usr/local/include/X11R4
24234
24235/usr/X386/include
24236/usr/x386/include
24237/usr/XFree86/include/X11
24238
24239/usr/include
24240/usr/local/include
24241/usr/unsupported/include
24242/usr/athena/include
24243/usr/local/x11r5/include
24244/usr/lpp/Xamples/include
24245
24246/usr/openwin/include
24247/usr/openwin/share/include'
24248
24249if test "$ac_x_includes" = no; then
fc480dc1 24250 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24251 # First, try using that file with no special directory specified.
24252 cat >conftest.$ac_ext <<_ACEOF
24253/* confdefs.h. */
24254_ACEOF
24255cat confdefs.h >>conftest.$ac_ext
24256cat >>conftest.$ac_ext <<_ACEOF
24257/* end confdefs.h. */
24258#include <X11/Intrinsic.h>
24259_ACEOF
24260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24262 ac_status=$?
24263 grep -v '^ *+' conftest.er1 >conftest.err
24264 rm -f conftest.er1
24265 cat conftest.err >&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } >/dev/null; then
24268 if test -s conftest.err; then
24269 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24271 else
24272 ac_cpp_err=
24273 fi
24274else
24275 ac_cpp_err=yes
24276fi
24277if test -z "$ac_cpp_err"; then
24278 # We can compile using X headers with no special include directory.
24279ac_x_includes=
24280else
24281 echo "$as_me: failed program was:" >&5
24282sed 's/^/| /' conftest.$ac_ext >&5
24283
24284 for ac_dir in $ac_x_header_dirs; do
24285 if test -r "$ac_dir/X11/Intrinsic.h"; then
24286 ac_x_includes=$ac_dir
24287 break
24288 fi
24289done
24290fi
24291rm -f conftest.err conftest.$ac_ext
24292fi # $ac_x_includes = no
24293
24294if test "$ac_x_libraries" = no; then
24295 # Check for the libraries.
24296 # See if we find them without any special options.
24297 # Don't add to $LIBS permanently.
24298 ac_save_LIBS=$LIBS
24299 LIBS="-lXt $LIBS"
24300 cat >conftest.$ac_ext <<_ACEOF
24301/* confdefs.h. */
24302_ACEOF
24303cat confdefs.h >>conftest.$ac_ext
24304cat >>conftest.$ac_ext <<_ACEOF
24305/* end confdefs.h. */
24306#include <X11/Intrinsic.h>
24307int
24308main ()
24309{
24310XtMalloc (0)
24311 ;
24312 return 0;
24313}
24314_ACEOF
24315rm -f conftest.$ac_objext conftest$ac_exeext
24316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24317 (eval $ac_link) 2>conftest.er1
a848cd7e 24318 ac_status=$?
ac1cb8d3
VS
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
a848cd7e
SC
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } &&
fc480dc1
DE
24324 { ac_try='test -z "$ac_c_werror_flag"
24325 || test ! -s conftest.err'
ac1cb8d3
VS
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24334 ac_status=$?
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; }; then
24337 LIBS=$ac_save_LIBS
24338# We can link X programs with no special library path.
24339ac_x_libraries=
24340else
24341 echo "$as_me: failed program was:" >&5
24342sed 's/^/| /' conftest.$ac_ext >&5
24343
24344LIBS=$ac_save_LIBS
24345for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24346do
24347 # Don't even attempt the hair of trying to link an X program!
24348 for ac_extension in a so sl; do
24349 if test -r $ac_dir/libXt.$ac_extension; then
24350 ac_x_libraries=$ac_dir
24351 break 2
24352 fi
24353 done
24354done
24355fi
ac1cb8d3
VS
24356rm -f conftest.err conftest.$ac_objext \
24357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24358fi # $ac_x_libraries = no
24359
24360if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24361 # Didn't find X anywhere. Cache the known absence of X.
24362 ac_cv_have_x="have_x=no"
24363else
24364 # Record where we found X for the cache.
24365 ac_cv_have_x="have_x=yes \
ac1cb8d3 24366 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24367fi
24368fi
24369
24370 fi
24371 eval "$ac_cv_have_x"
24372fi # $with_x != no
24373
24374if test "$have_x" != yes; then
24375 echo "$as_me:$LINENO: result: $have_x" >&5
24376echo "${ECHO_T}$have_x" >&6
24377 no_x=yes
24378else
24379 # If each of the values was on the command line, it overrides each guess.
24380 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24381 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24382 # Update the cache value to reflect the command line values.
24383 ac_cv_have_x="have_x=yes \
24384 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
fc480dc1
DE
24385 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24386echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24387fi
24388
24389if test "$no_x" = yes; then
24390 # Not all programs may use this symbol, but it does not hurt to define it.
24391
24392cat >>confdefs.h <<\_ACEOF
24393#define X_DISPLAY_MISSING 1
24394_ACEOF
24395
24396 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24397else
24398 if test -n "$x_includes"; then
24399 X_CFLAGS="$X_CFLAGS -I$x_includes"
24400 fi
24401
24402 # It would also be nice to do this for all -L options, not just this one.
24403 if test -n "$x_libraries"; then
24404 X_LIBS="$X_LIBS -L$x_libraries"
24405 # For Solaris; some versions of Sun CC require a space after -R and
24406 # others require no space. Words are not sufficient . . . .
24407 case `(uname -sr) 2>/dev/null` in
24408 "SunOS 5"*)
24409 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24410echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24411 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24412 cat >conftest.$ac_ext <<_ACEOF
24413/* confdefs.h. */
24414_ACEOF
24415cat confdefs.h >>conftest.$ac_ext
24416cat >>conftest.$ac_ext <<_ACEOF
24417/* end confdefs.h. */
24418
24419int
24420main ()
24421{
24422
24423 ;
24424 return 0;
24425}
24426_ACEOF
24427rm -f conftest.$ac_objext conftest$ac_exeext
24428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24429 (eval $ac_link) 2>conftest.er1
a848cd7e 24430 ac_status=$?
ac1cb8d3
VS
24431 grep -v '^ *+' conftest.er1 >conftest.err
24432 rm -f conftest.er1
24433 cat conftest.err >&5
a848cd7e
SC
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } &&
fc480dc1
DE
24436 { ac_try='test -z "$ac_c_werror_flag"
24437 || test ! -s conftest.err'
ac1cb8d3
VS
24438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24439 (eval $ac_try) 2>&5
24440 ac_status=$?
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); }; } &&
24443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 ac_R_nospace=yes
24450else
24451 echo "$as_me: failed program was:" >&5
24452sed 's/^/| /' conftest.$ac_ext >&5
24453
24454ac_R_nospace=no
24455fi
ac1cb8d3
VS
24456rm -f conftest.err conftest.$ac_objext \
24457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24458 if test $ac_R_nospace = yes; then
24459 echo "$as_me:$LINENO: result: no" >&5
24460echo "${ECHO_T}no" >&6
24461 X_LIBS="$X_LIBS -R$x_libraries"
24462 else
24463 LIBS="$ac_xsave_LIBS -R $x_libraries"
24464 cat >conftest.$ac_ext <<_ACEOF
24465/* confdefs.h. */
24466_ACEOF
24467cat confdefs.h >>conftest.$ac_ext
24468cat >>conftest.$ac_ext <<_ACEOF
24469/* end confdefs.h. */
24470
24471int
24472main ()
24473{
24474
24475 ;
24476 return 0;
24477}
24478_ACEOF
24479rm -f conftest.$ac_objext conftest$ac_exeext
24480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24481 (eval $ac_link) 2>conftest.er1
a848cd7e 24482 ac_status=$?
ac1cb8d3
VS
24483 grep -v '^ *+' conftest.er1 >conftest.err
24484 rm -f conftest.er1
24485 cat conftest.err >&5
a848cd7e
SC
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } &&
fc480dc1
DE
24488 { ac_try='test -z "$ac_c_werror_flag"
24489 || test ! -s conftest.err'
ac1cb8d3
VS
24490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491 (eval $ac_try) 2>&5
24492 ac_status=$?
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); }; } &&
24495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; }; then
24501 ac_R_space=yes
24502else
24503 echo "$as_me: failed program was:" >&5
24504sed 's/^/| /' conftest.$ac_ext >&5
24505
24506ac_R_space=no
24507fi
ac1cb8d3
VS
24508rm -f conftest.err conftest.$ac_objext \
24509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24510 if test $ac_R_space = yes; then
24511 echo "$as_me:$LINENO: result: yes" >&5
24512echo "${ECHO_T}yes" >&6
24513 X_LIBS="$X_LIBS -R $x_libraries"
24514 else
24515 echo "$as_me:$LINENO: result: neither works" >&5
24516echo "${ECHO_T}neither works" >&6
24517 fi
24518 fi
24519 LIBS=$ac_xsave_LIBS
24520 esac
24521 fi
24522
24523 # Check for system-dependent libraries X programs must link with.
24524 # Do this before checking for the system-independent R6 libraries
24525 # (-lICE), since we may need -lsocket or whatever for X linking.
24526
24527 if test "$ISC" = yes; then
24528 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24529 else
24530 # Martyn Johnson says this is needed for Ultrix, if the X
24531 # libraries were built with DECnet support. And Karl Berry says
24532 # the Alpha needs dnet_stub (dnet does not exist).
24533 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24534 cat >conftest.$ac_ext <<_ACEOF
24535/* confdefs.h. */
24536_ACEOF
24537cat confdefs.h >>conftest.$ac_ext
24538cat >>conftest.$ac_ext <<_ACEOF
24539/* end confdefs.h. */
24540
24541/* Override any gcc2 internal prototype to avoid an error. */
24542#ifdef __cplusplus
24543extern "C"
24544#endif
24545/* We use char because int might match the return type of a gcc2
24546 builtin and then its argument prototype would still apply. */
24547char XOpenDisplay ();
24548int
24549main ()
24550{
24551XOpenDisplay ();
24552 ;
24553 return 0;
24554}
24555_ACEOF
24556rm -f conftest.$ac_objext conftest$ac_exeext
24557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24558 (eval $ac_link) 2>conftest.er1
a848cd7e 24559 ac_status=$?
ac1cb8d3
VS
24560 grep -v '^ *+' conftest.er1 >conftest.err
24561 rm -f conftest.er1
24562 cat conftest.err >&5
a848cd7e
SC
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } &&
fc480dc1
DE
24565 { ac_try='test -z "$ac_c_werror_flag"
24566 || test ! -s conftest.err'
ac1cb8d3
VS
24567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24568 (eval $ac_try) 2>&5
24569 ac_status=$?
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); }; } &&
24572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24575 ac_status=$?
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; }; then
24578 :
24579else
24580 echo "$as_me: failed program was:" >&5
24581sed 's/^/| /' conftest.$ac_ext >&5
24582
24583echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24584echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24585if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24587else
24588 ac_check_lib_save_LIBS=$LIBS
24589LIBS="-ldnet $LIBS"
24590cat >conftest.$ac_ext <<_ACEOF
24591/* confdefs.h. */
24592_ACEOF
24593cat confdefs.h >>conftest.$ac_ext
24594cat >>conftest.$ac_ext <<_ACEOF
24595/* end confdefs.h. */
24596
24597/* Override any gcc2 internal prototype to avoid an error. */
24598#ifdef __cplusplus
24599extern "C"
24600#endif
24601/* We use char because int might match the return type of a gcc2
24602 builtin and then its argument prototype would still apply. */
24603char dnet_ntoa ();
24604int
24605main ()
24606{
24607dnet_ntoa ();
24608 ;
24609 return 0;
24610}
24611_ACEOF
24612rm -f conftest.$ac_objext conftest$ac_exeext
24613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24614 (eval $ac_link) 2>conftest.er1
a848cd7e 24615 ac_status=$?
ac1cb8d3
VS
24616 grep -v '^ *+' conftest.er1 >conftest.err
24617 rm -f conftest.er1
24618 cat conftest.err >&5
a848cd7e
SC
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } &&
fc480dc1
DE
24621 { ac_try='test -z "$ac_c_werror_flag"
24622 || test ! -s conftest.err'
ac1cb8d3
VS
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24625 ac_status=$?
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; } &&
24628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; }; then
24634 ac_cv_lib_dnet_dnet_ntoa=yes
24635else
24636 echo "$as_me: failed program was:" >&5
24637sed 's/^/| /' conftest.$ac_ext >&5
24638
24639ac_cv_lib_dnet_dnet_ntoa=no
24640fi
ac1cb8d3
VS
24641rm -f conftest.err conftest.$ac_objext \
24642 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24643LIBS=$ac_check_lib_save_LIBS
24644fi
24645echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24646echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24647if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24648 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24649fi
24650
24651 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24652 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24653echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24654if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24656else
24657 ac_check_lib_save_LIBS=$LIBS
24658LIBS="-ldnet_stub $LIBS"
24659cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h. */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h. */
24665
24666/* Override any gcc2 internal prototype to avoid an error. */
24667#ifdef __cplusplus
24668extern "C"
24669#endif
24670/* We use char because int might match the return type of a gcc2
24671 builtin and then its argument prototype would still apply. */
24672char dnet_ntoa ();
24673int
24674main ()
24675{
24676dnet_ntoa ();
24677 ;
24678 return 0;
24679}
24680_ACEOF
24681rm -f conftest.$ac_objext conftest$ac_exeext
24682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24683 (eval $ac_link) 2>conftest.er1
a848cd7e 24684 ac_status=$?
ac1cb8d3
VS
24685 grep -v '^ *+' conftest.er1 >conftest.err
24686 rm -f conftest.er1
24687 cat conftest.err >&5
a848cd7e
SC
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } &&
fc480dc1
DE
24690 { ac_try='test -z "$ac_c_werror_flag"
24691 || test ! -s conftest.err'
ac1cb8d3
VS
24692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); }; } &&
24697 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); }; }; then
24703 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24704else
24705 echo "$as_me: failed program was:" >&5
24706sed 's/^/| /' conftest.$ac_ext >&5
24707
24708ac_cv_lib_dnet_stub_dnet_ntoa=no
24709fi
ac1cb8d3
VS
24710rm -f conftest.err conftest.$ac_objext \
24711 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24712LIBS=$ac_check_lib_save_LIBS
24713fi
24714echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24715echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24716if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24717 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24718fi
24719
24720 fi
24721fi
ac1cb8d3
VS
24722rm -f conftest.err conftest.$ac_objext \
24723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24724 LIBS="$ac_xsave_LIBS"
24725
24726 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24727 # to get the SysV transport functions.
24728 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24729 # needs -lnsl.
24730 # The nsl library prevents programs from opening the X display
24731 # on Irix 5.2, according to T.E. Dickey.
24732 # The functions gethostbyname, getservbyname, and inet_addr are
24733 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24734 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24735echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24736if test "${ac_cv_func_gethostbyname+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24738else
24739 cat >conftest.$ac_ext <<_ACEOF
24740/* confdefs.h. */
24741_ACEOF
24742cat confdefs.h >>conftest.$ac_ext
24743cat >>conftest.$ac_ext <<_ACEOF
24744/* end confdefs.h. */
ac1cb8d3
VS
24745/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24747#define gethostbyname innocuous_gethostbyname
24748
a848cd7e
SC
24749/* System header to define __stub macros and hopefully few prototypes,
24750 which can conflict with char gethostbyname (); below.
24751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24752 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24753
a848cd7e
SC
24754#ifdef __STDC__
24755# include <limits.h>
24756#else
24757# include <assert.h>
24758#endif
ac1cb8d3
VS
24759
24760#undef gethostbyname
24761
a848cd7e
SC
24762/* Override any gcc2 internal prototype to avoid an error. */
24763#ifdef __cplusplus
24764extern "C"
24765{
24766#endif
24767/* We use char because int might match the return type of a gcc2
24768 builtin and then its argument prototype would still apply. */
24769char gethostbyname ();
24770/* The GNU C library defines this for functions which it implements
24771 to always fail with ENOSYS. Some functions are actually named
24772 something starting with __ and the normal name is an alias. */
24773#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24774choke me
24775#else
24776char (*f) () = gethostbyname;
24777#endif
24778#ifdef __cplusplus
24779}
24780#endif
24781
24782int
24783main ()
24784{
24785return f != gethostbyname;
24786 ;
24787 return 0;
24788}
24789_ACEOF
24790rm -f conftest.$ac_objext conftest$ac_exeext
24791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24792 (eval $ac_link) 2>conftest.er1
a848cd7e 24793 ac_status=$?
ac1cb8d3
VS
24794 grep -v '^ *+' conftest.er1 >conftest.err
24795 rm -f conftest.er1
24796 cat conftest.err >&5
a848cd7e
SC
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); } &&
fc480dc1
DE
24799 { ac_try='test -z "$ac_c_werror_flag"
24800 || test ! -s conftest.err'
ac1cb8d3
VS
24801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802 (eval $ac_try) 2>&5
24803 ac_status=$?
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); }; } &&
24806 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808 (eval $ac_try) 2>&5
24809 ac_status=$?
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); }; }; then
24812 ac_cv_func_gethostbyname=yes
24813else
24814 echo "$as_me: failed program was:" >&5
24815sed 's/^/| /' conftest.$ac_ext >&5
24816
24817ac_cv_func_gethostbyname=no
24818fi
ac1cb8d3
VS
24819rm -f conftest.err conftest.$ac_objext \
24820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24821fi
24822echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24823echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24824
24825 if test $ac_cv_func_gethostbyname = no; then
24826 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24827echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24828if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24829 echo $ECHO_N "(cached) $ECHO_C" >&6
24830else
24831 ac_check_lib_save_LIBS=$LIBS
24832LIBS="-lnsl $LIBS"
24833cat >conftest.$ac_ext <<_ACEOF
24834/* confdefs.h. */
24835_ACEOF
24836cat confdefs.h >>conftest.$ac_ext
24837cat >>conftest.$ac_ext <<_ACEOF
24838/* end confdefs.h. */
24839
24840/* Override any gcc2 internal prototype to avoid an error. */
24841#ifdef __cplusplus
24842extern "C"
24843#endif
24844/* We use char because int might match the return type of a gcc2
24845 builtin and then its argument prototype would still apply. */
24846char gethostbyname ();
24847int
24848main ()
24849{
24850gethostbyname ();
24851 ;
24852 return 0;
24853}
24854_ACEOF
24855rm -f conftest.$ac_objext conftest$ac_exeext
24856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24857 (eval $ac_link) 2>conftest.er1
24858 ac_status=$?
24859 grep -v '^ *+' conftest.er1 >conftest.err
24860 rm -f conftest.er1
24861 cat conftest.err >&5
24862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863 (exit $ac_status); } &&
fc480dc1
DE
24864 { ac_try='test -z "$ac_c_werror_flag"
24865 || test ! -s conftest.err'
ac1cb8d3
VS
24866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24867 (eval $ac_try) 2>&5
24868 ac_status=$?
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); }; } &&
24871 { ac_try='test -s conftest$ac_exeext'
24872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873 (eval $ac_try) 2>&5
24874 ac_status=$?
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); }; }; then
24877 ac_cv_lib_nsl_gethostbyname=yes
24878else
24879 echo "$as_me: failed program was:" >&5
24880sed 's/^/| /' conftest.$ac_ext >&5
24881
24882ac_cv_lib_nsl_gethostbyname=no
24883fi
24884rm -f conftest.err conftest.$ac_objext \
24885 conftest$ac_exeext conftest.$ac_ext
24886LIBS=$ac_check_lib_save_LIBS
24887fi
24888echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24889echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24890if test $ac_cv_lib_nsl_gethostbyname = yes; then
24891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24892fi
24893
24894 if test $ac_cv_lib_nsl_gethostbyname = no; then
24895 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24896echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24897if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24898 echo $ECHO_N "(cached) $ECHO_C" >&6
24899else
24900 ac_check_lib_save_LIBS=$LIBS
24901LIBS="-lbsd $LIBS"
24902cat >conftest.$ac_ext <<_ACEOF
24903/* confdefs.h. */
24904_ACEOF
24905cat confdefs.h >>conftest.$ac_ext
24906cat >>conftest.$ac_ext <<_ACEOF
24907/* end confdefs.h. */
24908
24909/* Override any gcc2 internal prototype to avoid an error. */
24910#ifdef __cplusplus
24911extern "C"
24912#endif
24913/* We use char because int might match the return type of a gcc2
24914 builtin and then its argument prototype would still apply. */
24915char gethostbyname ();
24916int
24917main ()
24918{
24919gethostbyname ();
24920 ;
24921 return 0;
24922}
24923_ACEOF
24924rm -f conftest.$ac_objext conftest$ac_exeext
24925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24926 (eval $ac_link) 2>conftest.er1
a848cd7e 24927 ac_status=$?
ac1cb8d3
VS
24928 grep -v '^ *+' conftest.er1 >conftest.err
24929 rm -f conftest.er1
24930 cat conftest.err >&5
a848cd7e
SC
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } &&
fc480dc1
DE
24933 { ac_try='test -z "$ac_c_werror_flag"
24934 || test ! -s conftest.err'
a848cd7e
SC
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942 (eval $ac_try) 2>&5
24943 ac_status=$?
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; }; then
24946 ac_cv_lib_bsd_gethostbyname=yes
24947else
24948 echo "$as_me: failed program was:" >&5
24949sed 's/^/| /' conftest.$ac_ext >&5
24950
24951ac_cv_lib_bsd_gethostbyname=no
24952fi
ac1cb8d3
VS
24953rm -f conftest.err conftest.$ac_objext \
24954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24955LIBS=$ac_check_lib_save_LIBS
24956fi
24957echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24958echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24959if test $ac_cv_lib_bsd_gethostbyname = yes; then
24960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24961fi
24962
24963 fi
24964 fi
24965
24966 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24967 # socket/setsockopt and other routines are undefined under SCO ODT
24968 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24969 # on later versions), says Simon Leinen: it contains gethostby*
24970 # variants that don't use the name server (or something). -lsocket
24971 # must be given before -lnsl if both are needed. We assume that
24972 # if connect needs -lnsl, so does gethostbyname.
24973 echo "$as_me:$LINENO: checking for connect" >&5
24974echo $ECHO_N "checking for connect... $ECHO_C" >&6
24975if test "${ac_cv_func_connect+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24977else
24978 cat >conftest.$ac_ext <<_ACEOF
24979/* confdefs.h. */
24980_ACEOF
24981cat confdefs.h >>conftest.$ac_ext
24982cat >>conftest.$ac_ext <<_ACEOF
24983/* end confdefs.h. */
ac1cb8d3
VS
24984/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24986#define connect innocuous_connect
24987
a848cd7e
SC
24988/* System header to define __stub macros and hopefully few prototypes,
24989 which can conflict with char connect (); below.
24990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24991 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24992
a848cd7e
SC
24993#ifdef __STDC__
24994# include <limits.h>
24995#else
24996# include <assert.h>
24997#endif
ac1cb8d3
VS
24998
24999#undef connect
25000
a848cd7e
SC
25001/* Override any gcc2 internal prototype to avoid an error. */
25002#ifdef __cplusplus
25003extern "C"
25004{
25005#endif
25006/* We use char because int might match the return type of a gcc2
25007 builtin and then its argument prototype would still apply. */
25008char connect ();
25009/* The GNU C library defines this for functions which it implements
25010 to always fail with ENOSYS. Some functions are actually named
25011 something starting with __ and the normal name is an alias. */
25012#if defined (__stub_connect) || defined (__stub___connect)
25013choke me
25014#else
25015char (*f) () = connect;
25016#endif
25017#ifdef __cplusplus
25018}
25019#endif
25020
25021int
25022main ()
25023{
25024return f != connect;
25025 ;
25026 return 0;
25027}
25028_ACEOF
25029rm -f conftest.$ac_objext conftest$ac_exeext
25030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25031 (eval $ac_link) 2>conftest.er1
a848cd7e 25032 ac_status=$?
ac1cb8d3
VS
25033 grep -v '^ *+' conftest.er1 >conftest.err
25034 rm -f conftest.er1
25035 cat conftest.err >&5
a848cd7e
SC
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } &&
fc480dc1
DE
25038 { ac_try='test -z "$ac_c_werror_flag"
25039 || test ! -s conftest.err'
ac1cb8d3
VS
25040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25041 (eval $ac_try) 2>&5
25042 ac_status=$?
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); }; } &&
25045 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25047 (eval $ac_try) 2>&5
25048 ac_status=$?
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); }; }; then
25051 ac_cv_func_connect=yes
25052else
25053 echo "$as_me: failed program was:" >&5
25054sed 's/^/| /' conftest.$ac_ext >&5
25055
25056ac_cv_func_connect=no
25057fi
ac1cb8d3
VS
25058rm -f conftest.err conftest.$ac_objext \
25059 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25060fi
25061echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25062echo "${ECHO_T}$ac_cv_func_connect" >&6
25063
25064 if test $ac_cv_func_connect = no; then
25065 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25066echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25067if test "${ac_cv_lib_socket_connect+set}" = set; then
25068 echo $ECHO_N "(cached) $ECHO_C" >&6
25069else
25070 ac_check_lib_save_LIBS=$LIBS
25071LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25072cat >conftest.$ac_ext <<_ACEOF
25073/* confdefs.h. */
25074_ACEOF
25075cat confdefs.h >>conftest.$ac_ext
25076cat >>conftest.$ac_ext <<_ACEOF
25077/* end confdefs.h. */
25078
25079/* Override any gcc2 internal prototype to avoid an error. */
25080#ifdef __cplusplus
25081extern "C"
25082#endif
25083/* We use char because int might match the return type of a gcc2
25084 builtin and then its argument prototype would still apply. */
25085char connect ();
25086int
25087main ()
25088{
25089connect ();
25090 ;
25091 return 0;
25092}
25093_ACEOF
25094rm -f conftest.$ac_objext conftest$ac_exeext
25095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25096 (eval $ac_link) 2>conftest.er1
a848cd7e 25097 ac_status=$?
ac1cb8d3
VS
25098 grep -v '^ *+' conftest.er1 >conftest.err
25099 rm -f conftest.er1
25100 cat conftest.err >&5
a848cd7e
SC
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); } &&
fc480dc1
DE
25103 { ac_try='test -z "$ac_c_werror_flag"
25104 || test ! -s conftest.err'
ac1cb8d3
VS
25105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); }; } &&
25110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; }; then
25116 ac_cv_lib_socket_connect=yes
25117else
25118 echo "$as_me: failed program was:" >&5
25119sed 's/^/| /' conftest.$ac_ext >&5
25120
25121ac_cv_lib_socket_connect=no
25122fi
ac1cb8d3
VS
25123rm -f conftest.err conftest.$ac_objext \
25124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25125LIBS=$ac_check_lib_save_LIBS
25126fi
25127echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25128echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25129if test $ac_cv_lib_socket_connect = yes; then
25130 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25131fi
25132
25133 fi
25134
25135 # Guillermo Gomez says -lposix is necessary on A/UX.
25136 echo "$as_me:$LINENO: checking for remove" >&5
25137echo $ECHO_N "checking for remove... $ECHO_C" >&6
25138if test "${ac_cv_func_remove+set}" = set; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25140else
25141 cat >conftest.$ac_ext <<_ACEOF
25142/* confdefs.h. */
25143_ACEOF
25144cat confdefs.h >>conftest.$ac_ext
25145cat >>conftest.$ac_ext <<_ACEOF
25146/* end confdefs.h. */
ac1cb8d3
VS
25147/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25149#define remove innocuous_remove
25150
a848cd7e
SC
25151/* System header to define __stub macros and hopefully few prototypes,
25152 which can conflict with char remove (); below.
25153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25154 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25155
a848cd7e
SC
25156#ifdef __STDC__
25157# include <limits.h>
25158#else
25159# include <assert.h>
25160#endif
ac1cb8d3
VS
25161
25162#undef remove
25163
a848cd7e
SC
25164/* Override any gcc2 internal prototype to avoid an error. */
25165#ifdef __cplusplus
25166extern "C"
25167{
25168#endif
25169/* We use char because int might match the return type of a gcc2
25170 builtin and then its argument prototype would still apply. */
25171char remove ();
25172/* The GNU C library defines this for functions which it implements
25173 to always fail with ENOSYS. Some functions are actually named
25174 something starting with __ and the normal name is an alias. */
25175#if defined (__stub_remove) || defined (__stub___remove)
25176choke me
25177#else
25178char (*f) () = remove;
25179#endif
25180#ifdef __cplusplus
25181}
25182#endif
25183
25184int
25185main ()
25186{
25187return f != remove;
25188 ;
25189 return 0;
25190}
25191_ACEOF
25192rm -f conftest.$ac_objext conftest$ac_exeext
25193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25194 (eval $ac_link) 2>conftest.er1
a848cd7e 25195 ac_status=$?
ac1cb8d3
VS
25196 grep -v '^ *+' conftest.er1 >conftest.err
25197 rm -f conftest.er1
25198 cat conftest.err >&5
a848cd7e
SC
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); } &&
fc480dc1
DE
25201 { ac_try='test -z "$ac_c_werror_flag"
25202 || test ! -s conftest.err'
ac1cb8d3
VS
25203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204 (eval $ac_try) 2>&5
25205 ac_status=$?
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); }; } &&
25208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25210 (eval $ac_try) 2>&5
25211 ac_status=$?
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); }; }; then
25214 ac_cv_func_remove=yes
25215else
25216 echo "$as_me: failed program was:" >&5
25217sed 's/^/| /' conftest.$ac_ext >&5
25218
25219ac_cv_func_remove=no
25220fi
ac1cb8d3
VS
25221rm -f conftest.err conftest.$ac_objext \
25222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25223fi
25224echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25225echo "${ECHO_T}$ac_cv_func_remove" >&6
25226
25227 if test $ac_cv_func_remove = no; then
25228 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25229echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25230if test "${ac_cv_lib_posix_remove+set}" = set; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25232else
25233 ac_check_lib_save_LIBS=$LIBS
25234LIBS="-lposix $LIBS"
25235cat >conftest.$ac_ext <<_ACEOF
25236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
25241
25242/* Override any gcc2 internal prototype to avoid an error. */
25243#ifdef __cplusplus
25244extern "C"
25245#endif
25246/* We use char because int might match the return type of a gcc2
25247 builtin and then its argument prototype would still apply. */
25248char remove ();
25249int
25250main ()
25251{
25252remove ();
25253 ;
25254 return 0;
25255}
25256_ACEOF
25257rm -f conftest.$ac_objext conftest$ac_exeext
25258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25259 (eval $ac_link) 2>conftest.er1
a848cd7e 25260 ac_status=$?
ac1cb8d3
VS
25261 grep -v '^ *+' conftest.er1 >conftest.err
25262 rm -f conftest.er1
25263 cat conftest.err >&5
a848cd7e
SC
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } &&
fc480dc1
DE
25266 { ac_try='test -z "$ac_c_werror_flag"
25267 || test ! -s conftest.err'
ac1cb8d3
VS
25268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25270 ac_status=$?
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; } &&
25273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279 ac_cv_lib_posix_remove=yes
25280else
25281 echo "$as_me: failed program was:" >&5
25282sed 's/^/| /' conftest.$ac_ext >&5
25283
25284ac_cv_lib_posix_remove=no
25285fi
ac1cb8d3
VS
25286rm -f conftest.err conftest.$ac_objext \
25287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25288LIBS=$ac_check_lib_save_LIBS
25289fi
25290echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25291echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25292if test $ac_cv_lib_posix_remove = yes; then
25293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25294fi
25295
25296 fi
25297
25298 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25299 echo "$as_me:$LINENO: checking for shmat" >&5
25300echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25301if test "${ac_cv_func_shmat+set}" = set; then
25302 echo $ECHO_N "(cached) $ECHO_C" >&6
25303else
25304 cat >conftest.$ac_ext <<_ACEOF
25305/* confdefs.h. */
25306_ACEOF
25307cat confdefs.h >>conftest.$ac_ext
25308cat >>conftest.$ac_ext <<_ACEOF
25309/* end confdefs.h. */
ac1cb8d3
VS
25310/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25312#define shmat innocuous_shmat
25313
a848cd7e
SC
25314/* System header to define __stub macros and hopefully few prototypes,
25315 which can conflict with char shmat (); below.
25316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25317 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25318
a848cd7e
SC
25319#ifdef __STDC__
25320# include <limits.h>
25321#else
25322# include <assert.h>
25323#endif
ac1cb8d3
VS
25324
25325#undef shmat
25326
a848cd7e
SC
25327/* Override any gcc2 internal prototype to avoid an error. */
25328#ifdef __cplusplus
25329extern "C"
25330{
25331#endif
25332/* We use char because int might match the return type of a gcc2
25333 builtin and then its argument prototype would still apply. */
25334char shmat ();
25335/* The GNU C library defines this for functions which it implements
25336 to always fail with ENOSYS. Some functions are actually named
25337 something starting with __ and the normal name is an alias. */
25338#if defined (__stub_shmat) || defined (__stub___shmat)
25339choke me
25340#else
25341char (*f) () = shmat;
25342#endif
25343#ifdef __cplusplus
25344}
25345#endif
25346
25347int
25348main ()
25349{
25350return f != shmat;
25351 ;
25352 return 0;
25353}
25354_ACEOF
25355rm -f conftest.$ac_objext conftest$ac_exeext
25356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25357 (eval $ac_link) 2>conftest.er1
a848cd7e 25358 ac_status=$?
ac1cb8d3
VS
25359 grep -v '^ *+' conftest.er1 >conftest.err
25360 rm -f conftest.er1
25361 cat conftest.err >&5
a848cd7e
SC
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); } &&
fc480dc1
DE
25364 { ac_try='test -z "$ac_c_werror_flag"
25365 || test ! -s conftest.err'
ac1cb8d3
VS
25366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367 (eval $ac_try) 2>&5
25368 ac_status=$?
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); }; } &&
25371 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373 (eval $ac_try) 2>&5
25374 ac_status=$?
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }; }; then
25377 ac_cv_func_shmat=yes
25378else
25379 echo "$as_me: failed program was:" >&5
25380sed 's/^/| /' conftest.$ac_ext >&5
25381
25382ac_cv_func_shmat=no
25383fi
ac1cb8d3
VS
25384rm -f conftest.err conftest.$ac_objext \
25385 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25386fi
25387echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25388echo "${ECHO_T}$ac_cv_func_shmat" >&6
25389
25390 if test $ac_cv_func_shmat = no; then
25391 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25392echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25393if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25394 echo $ECHO_N "(cached) $ECHO_C" >&6
25395else
25396 ac_check_lib_save_LIBS=$LIBS
25397LIBS="-lipc $LIBS"
25398cat >conftest.$ac_ext <<_ACEOF
25399/* confdefs.h. */
25400_ACEOF
25401cat confdefs.h >>conftest.$ac_ext
25402cat >>conftest.$ac_ext <<_ACEOF
25403/* end confdefs.h. */
25404
25405/* Override any gcc2 internal prototype to avoid an error. */
25406#ifdef __cplusplus
25407extern "C"
25408#endif
25409/* We use char because int might match the return type of a gcc2
25410 builtin and then its argument prototype would still apply. */
25411char shmat ();
25412int
25413main ()
25414{
25415shmat ();
25416 ;
25417 return 0;
25418}
25419_ACEOF
25420rm -f conftest.$ac_objext conftest$ac_exeext
25421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25422 (eval $ac_link) 2>conftest.er1
a848cd7e 25423 ac_status=$?
ac1cb8d3
VS
25424 grep -v '^ *+' conftest.er1 >conftest.err
25425 rm -f conftest.er1
25426 cat conftest.err >&5
a848cd7e
SC
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } &&
fc480dc1
DE
25429 { ac_try='test -z "$ac_c_werror_flag"
25430 || test ! -s conftest.err'
ac1cb8d3
VS
25431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); }; } &&
25436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); }; }; then
25442 ac_cv_lib_ipc_shmat=yes
25443else
25444 echo "$as_me: failed program was:" >&5
25445sed 's/^/| /' conftest.$ac_ext >&5
25446
25447ac_cv_lib_ipc_shmat=no
25448fi
ac1cb8d3
VS
25449rm -f conftest.err conftest.$ac_objext \
25450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25451LIBS=$ac_check_lib_save_LIBS
25452fi
25453echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25454echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25455if test $ac_cv_lib_ipc_shmat = yes; then
25456 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25457fi
25458
25459 fi
25460 fi
25461
25462 # Check for libraries that X11R6 Xt/Xaw programs need.
25463 ac_save_LDFLAGS=$LDFLAGS
25464 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25465 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25466 # check for ICE first), but we must link in the order -lSM -lICE or
25467 # we get undefined symbols. So assume we have SM if we have ICE.
25468 # These have to be linked with before -lX11, unlike the other
25469 # libraries we check for below, so use a different variable.
25470 # John Interrante, Karl Berry
25471 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25472echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25473if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25475else
25476 ac_check_lib_save_LIBS=$LIBS
25477LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25478cat >conftest.$ac_ext <<_ACEOF
25479/* confdefs.h. */
25480_ACEOF
25481cat confdefs.h >>conftest.$ac_ext
25482cat >>conftest.$ac_ext <<_ACEOF
25483/* end confdefs.h. */
25484
25485/* Override any gcc2 internal prototype to avoid an error. */
25486#ifdef __cplusplus
25487extern "C"
25488#endif
25489/* We use char because int might match the return type of a gcc2
25490 builtin and then its argument prototype would still apply. */
25491char IceConnectionNumber ();
25492int
25493main ()
25494{
25495IceConnectionNumber ();
25496 ;
25497 return 0;
25498}
25499_ACEOF
25500rm -f conftest.$ac_objext conftest$ac_exeext
25501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25502 (eval $ac_link) 2>conftest.er1
a848cd7e 25503 ac_status=$?
ac1cb8d3
VS
25504 grep -v '^ *+' conftest.er1 >conftest.err
25505 rm -f conftest.er1
25506 cat conftest.err >&5
a848cd7e
SC
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
fc480dc1
DE
25509 { ac_try='test -z "$ac_c_werror_flag"
25510 || test ! -s conftest.err'
ac1cb8d3
VS
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25513 ac_status=$?
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; } &&
25516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_lib_ICE_IceConnectionNumber=yes
25523else
25524 echo "$as_me: failed program was:" >&5
25525sed 's/^/| /' conftest.$ac_ext >&5
25526
25527ac_cv_lib_ICE_IceConnectionNumber=no
25528fi
ac1cb8d3
VS
25529rm -f conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25531LIBS=$ac_check_lib_save_LIBS
25532fi
25533echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25534echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25535if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25536 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25537fi
25538
25539 LDFLAGS=$ac_save_LDFLAGS
25540
25541fi
25542
25543
25544 if test "$no_x" = "yes"; then
25545 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25546echo "$as_me: error: X11 not found" >&2;}
25547 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25548 fi
25549
74b84332
VS
25550 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25551 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25552 AFMINSTALL=afminstall
25553 COMPILED_X_PROGRAM=0
25554
74b84332
VS
25555 fi
25556
25557 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25558 if test "$wxUSE_NANOX" = "yes"; then
25559 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25560echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25561 if test "x$MICROWIN" = x ; then
25562 echo "$as_me:$LINENO: result: not found" >&5
25563echo "${ECHO_T}not found" >&6
25564 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25565echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25566 { (exit 1); exit 1; }; }
25567 else
25568 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25569echo "${ECHO_T}$MICROWIN" >&6
25570 cat >>confdefs.h <<\_ACEOF
25571#define wxUSE_NANOX 1
25572_ACEOF
25573
25574 fi
25575 fi
25576
25577 if test "$wxUSE_UNICODE" = "yes"; then
25578
25579 succeeded=no
25580
25581 if test -z "$PKG_CONFIG"; then
25582 # Extract the first word of "pkg-config", so it can be a program name with args.
25583set dummy pkg-config; ac_word=$2
25584echo "$as_me:$LINENO: checking for $ac_word" >&5
25585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25586if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25587 echo $ECHO_N "(cached) $ECHO_C" >&6
25588else
25589 case $PKG_CONFIG in
25590 [\\/]* | ?:[\\/]*)
25591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25592 ;;
25593 *)
25594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25595for as_dir in $PATH
25596do
25597 IFS=$as_save_IFS
25598 test -z "$as_dir" && as_dir=.
25599 for ac_exec_ext in '' $ac_executable_extensions; do
25600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25603 break 2
25604 fi
25605done
25606done
25607
25608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25609 ;;
25610esac
25611fi
25612PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25613
25614if test -n "$PKG_CONFIG"; then
25615 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25616echo "${ECHO_T}$PKG_CONFIG" >&6
25617else
25618 echo "$as_me:$LINENO: result: no" >&5
25619echo "${ECHO_T}no" >&6
25620fi
25621
25622 fi
25623
25624 if test "$PKG_CONFIG" = "no" ; then
25625 echo "*** The pkg-config script could not be found. Make sure it is"
25626 echo "*** in your path, or set the PKG_CONFIG environment variable"
25627 echo "*** to the full path to pkg-config."
25628 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25629 else
25630 PKG_CONFIG_MIN_VERSION=0.9.0
25631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25632 echo "$as_me:$LINENO: checking for pangox" >&5
25633echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25634
25635 if $PKG_CONFIG --exists "pangox" ; then
25636 echo "$as_me:$LINENO: result: yes" >&5
25637echo "${ECHO_T}yes" >&6
25638 succeeded=yes
25639
25640 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25641echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25642 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25643 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25644echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25645
25646 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25647echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25648 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25649 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25650echo "${ECHO_T}$PANGOX_LIBS" >&6
25651 else
25652 PANGOX_CFLAGS=""
25653 PANGOX_LIBS=""
25654 ## If we have a custom action on failure, don't print errors, but
25655 ## do set a variable so people can do so.
25656 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25657
25658 fi
25659
25660
25661
25662 else
25663 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25664 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25665 fi
25666 fi
25667
25668 if test $succeeded = yes; then
25669
25670 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25671 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25672
25673 else
25674
25675 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25676echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25677 { (exit 1); exit 1; }; }
25678
25679
25680 fi
25681
25682
25683 succeeded=no
25684
25685 if test -z "$PKG_CONFIG"; then
25686 # Extract the first word of "pkg-config", so it can be a program name with args.
25687set dummy pkg-config; ac_word=$2
25688echo "$as_me:$LINENO: checking for $ac_word" >&5
25689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25690if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25692else
25693 case $PKG_CONFIG in
25694 [\\/]* | ?:[\\/]*)
25695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25696 ;;
25697 *)
25698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25699for as_dir in $PATH
25700do
25701 IFS=$as_save_IFS
25702 test -z "$as_dir" && as_dir=.
25703 for ac_exec_ext in '' $ac_executable_extensions; do
25704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25707 break 2
25708 fi
25709done
25710done
25711
25712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25713 ;;
25714esac
25715fi
25716PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25717
25718if test -n "$PKG_CONFIG"; then
25719 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25720echo "${ECHO_T}$PKG_CONFIG" >&6
25721else
25722 echo "$as_me:$LINENO: result: no" >&5
25723echo "${ECHO_T}no" >&6
25724fi
25725
25726 fi
25727
25728 if test "$PKG_CONFIG" = "no" ; then
25729 echo "*** The pkg-config script could not be found. Make sure it is"
25730 echo "*** in your path, or set the PKG_CONFIG environment variable"
25731 echo "*** to the full path to pkg-config."
25732 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25733 else
25734 PKG_CONFIG_MIN_VERSION=0.9.0
25735 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25736 echo "$as_me:$LINENO: checking for pangoft2" >&5
25737echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25738
25739 if $PKG_CONFIG --exists "pangoft2" ; then
25740 echo "$as_me:$LINENO: result: yes" >&5
25741echo "${ECHO_T}yes" >&6
25742 succeeded=yes
25743
25744 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25745echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25746 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25747 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25748echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25749
25750 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25751echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25752 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25753 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25754echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25755 else
25756 PANGOFT2_CFLAGS=""
25757 PANGOFT2_LIBS=""
25758 ## If we have a custom action on failure, don't print errors, but
25759 ## do set a variable so people can do so.
25760 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25761
25762 fi
25763
25764
25765
25766 else
25767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25769 fi
25770 fi
25771
25772 if test $succeeded = yes; then
25773
25774 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25775 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25776
25777 else
25778
25779 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25780echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25781 wxUSE_PRINTING_ARCHITECTURE="no"
25782
25783
25784 fi
25785
25786
25787 succeeded=no
25788
25789 if test -z "$PKG_CONFIG"; then
25790 # Extract the first word of "pkg-config", so it can be a program name with args.
25791set dummy pkg-config; ac_word=$2
25792echo "$as_me:$LINENO: checking for $ac_word" >&5
25793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25794if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25795 echo $ECHO_N "(cached) $ECHO_C" >&6
25796else
25797 case $PKG_CONFIG in
25798 [\\/]* | ?:[\\/]*)
25799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25800 ;;
25801 *)
25802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25803for as_dir in $PATH
25804do
25805 IFS=$as_save_IFS
25806 test -z "$as_dir" && as_dir=.
25807 for ac_exec_ext in '' $ac_executable_extensions; do
25808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25811 break 2
25812 fi
25813done
25814done
25815
25816 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25817 ;;
25818esac
25819fi
25820PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25821
25822if test -n "$PKG_CONFIG"; then
25823 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25824echo "${ECHO_T}$PKG_CONFIG" >&6
25825else
25826 echo "$as_me:$LINENO: result: no" >&5
25827echo "${ECHO_T}no" >&6
25828fi
25829
25830 fi
25831
25832 if test "$PKG_CONFIG" = "no" ; then
25833 echo "*** The pkg-config script could not be found. Make sure it is"
25834 echo "*** in your path, or set the PKG_CONFIG environment variable"
25835 echo "*** to the full path to pkg-config."
25836 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25837 else
25838 PKG_CONFIG_MIN_VERSION=0.9.0
25839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25840 echo "$as_me:$LINENO: checking for pangoxft" >&5
25841echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25842
25843 if $PKG_CONFIG --exists "pangoxft" ; then
25844 echo "$as_me:$LINENO: result: yes" >&5
25845echo "${ECHO_T}yes" >&6
25846 succeeded=yes
25847
25848 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25849echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25850 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25851 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25852echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25853
25854 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25855echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25856 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25857 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25858echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25859 else
25860 PANGOXFT_CFLAGS=""
25861 PANGOXFT_LIBS=""
25862 ## If we have a custom action on failure, don't print errors, but
25863 ## do set a variable so people can do so.
25864 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25865
25866 fi
25867
25868
25869
25870 else
25871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25873 fi
25874 fi
25875
25876 if test $succeeded = yes; then
25877
25878 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25879 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25880
25881 else
25882
25883 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25884echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25885
25886
25887 fi
25888
304205f1
VS
25889 save_CFLAGS="$CFLAGS"
25890 save_LIBS="$LIBS"
25891 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25892 LIBS="$LIBS $PANGOX_LIBS"
25893
25894for ac_func in pango_font_family_is_monospace
25895do
25896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25897echo "$as_me:$LINENO: checking for $ac_func" >&5
25898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25899if eval "test \"\${$as_ac_var+set}\" = set"; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25901else
25902 cat >conftest.$ac_ext <<_ACEOF
25903/* confdefs.h. */
25904_ACEOF
25905cat confdefs.h >>conftest.$ac_ext
25906cat >>conftest.$ac_ext <<_ACEOF
25907/* end confdefs.h. */
25908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25910#define $ac_func innocuous_$ac_func
25911
25912/* System header to define __stub macros and hopefully few prototypes,
25913 which can conflict with char $ac_func (); below.
25914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25915 <limits.h> exists even on freestanding compilers. */
25916
25917#ifdef __STDC__
25918# include <limits.h>
25919#else
25920# include <assert.h>
25921#endif
25922
25923#undef $ac_func
25924
25925/* Override any gcc2 internal prototype to avoid an error. */
25926#ifdef __cplusplus
25927extern "C"
25928{
25929#endif
25930/* We use char because int might match the return type of a gcc2
25931 builtin and then its argument prototype would still apply. */
25932char $ac_func ();
25933/* The GNU C library defines this for functions which it implements
25934 to always fail with ENOSYS. Some functions are actually named
25935 something starting with __ and the normal name is an alias. */
25936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25937choke me
25938#else
25939char (*f) () = $ac_func;
25940#endif
25941#ifdef __cplusplus
25942}
25943#endif
25944
25945int
25946main ()
25947{
25948return f != $ac_func;
25949 ;
25950 return 0;
25951}
25952_ACEOF
25953rm -f conftest.$ac_objext conftest$ac_exeext
25954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25955 (eval $ac_link) 2>conftest.er1
25956 ac_status=$?
25957 grep -v '^ *+' conftest.er1 >conftest.err
25958 rm -f conftest.er1
25959 cat conftest.err >&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); } &&
fc480dc1
DE
25962 { ac_try='test -z "$ac_c_werror_flag"
25963 || test ! -s conftest.err'
304205f1
VS
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; } &&
25969 { ac_try='test -s conftest$ac_exeext'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 eval "$as_ac_var=yes"
25976else
25977 echo "$as_me: failed program was:" >&5
25978sed 's/^/| /' conftest.$ac_ext >&5
25979
25980eval "$as_ac_var=no"
25981fi
25982rm -f conftest.err conftest.$ac_objext \
25983 conftest$ac_exeext conftest.$ac_ext
25984fi
25985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25986echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25987if test `eval echo '${'$as_ac_var'}'` = yes; then
25988 cat >>confdefs.h <<_ACEOF
25989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25990_ACEOF
25991
25992fi
25993done
25994
25995 CFLAGS="$save_CFLAGS"
25996 LIBS="$save_LIBS"
a848cd7e
SC
25997 fi
25998
25999 wxUSE_UNIVERSAL="yes"
26000
26001 if test "$wxUSE_NANOX" = "yes"; then
26002 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26003 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"
26004 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26005 else
26006 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26007 fi
26008
a848cd7e
SC
26009 TOOLKIT=X11
26010 GUIDIST=X11_DIST
26011 fi
26012
26013 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26014 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26015echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26016
74b84332
VS
26017ac_find_includes=
26018for ac_dir in $SEARCH_INCLUDE /usr/include;
26019 do
26020 if test -f "$ac_dir/Xm/Xm.h"; then
26021 ac_find_includes=$ac_dir
26022 break
26023 fi
26024 done
a848cd7e 26025
74b84332
VS
26026 if test "$ac_find_includes" != "" ; then
26027 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26028echo "${ECHO_T}found in $ac_find_includes" >&6
26029
26030 if test "x$ac_find_includes" = "x/usr/include"; then
26031 ac_path_to_include=""
26032 else
26033 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26034 result=$?
26035 if test $result = 0; then
26036 ac_path_to_include=""
26037 else
26038 ac_path_to_include=" -I$ac_find_includes"
26039 fi
a848cd7e
SC
26040 fi
26041
74b84332
VS
26042 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26043 else
26044 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26045/* confdefs.h. */
26046_ACEOF
26047cat confdefs.h >>conftest.$ac_ext
26048cat >>conftest.$ac_ext <<_ACEOF
26049/* end confdefs.h. */
26050
74b84332
VS
26051 #include <Xm/Xm.h>
26052
a848cd7e
SC
26053int
26054main ()
26055{
26056
74b84332
VS
26057 int version;
26058 version = xmUseVersion;
26059
a848cd7e
SC
26060 ;
26061 return 0;
26062}
26063_ACEOF
74b84332
VS
26064rm -f conftest.$ac_objext
26065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26066 (eval $ac_compile) 2>conftest.er1
a848cd7e 26067 ac_status=$?
ac1cb8d3
VS
26068 grep -v '^ *+' conftest.er1 >conftest.err
26069 rm -f conftest.er1
26070 cat conftest.err >&5
a848cd7e
SC
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } &&
fc480dc1
DE
26073 { ac_try='test -z "$ac_c_werror_flag"
26074 || test ! -s conftest.err'
ac1cb8d3
VS
26075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26077 ac_status=$?
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; } &&
74b84332 26080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; }; then
74b84332
VS
26086
26087 echo "$as_me:$LINENO: result: found in default search path" >&5
26088echo "${ECHO_T}found in default search path" >&6
26089 COMPILED_X_PROGRAM=1
26090
a848cd7e
SC
26091else
26092 echo "$as_me: failed program was:" >&5
26093sed 's/^/| /' conftest.$ac_ext >&5
26094
a848cd7e 26095
74b84332
VS
26096 echo "$as_me:$LINENO: result: no" >&5
26097echo "${ECHO_T}no" >&6
26098 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26099echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26100 { (exit 1); exit 1; }; }
a848cd7e 26101
a848cd7e 26102
a848cd7e 26103fi
74b84332
VS
26104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26105 fi
26106
26107 if test "$COMPILED_X_PROGRAM" = 0; then
26108 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26109echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26110
26111ac_find_libraries=
26112for ac_dir in $SEARCH_LIB /usr/lib;
26113 do
26114 for ac_extension in a so sl dylib; do
26115 if test -f "$ac_dir/libXm.$ac_extension"; then
26116 ac_find_libraries=$ac_dir
26117 break 2
a848cd7e 26118 fi
74b84332
VS
26119 done
26120 done
a848cd7e 26121
74b84332
VS
26122 if test "$ac_find_libraries" != "" ; then
26123 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26124echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26125
74b84332
VS
26126
26127 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26128 result=$?
26129 if test $result = 0; then
26130 ac_path_to_link=""
a848cd7e 26131 else
74b84332
VS
26132 ac_path_to_link=" -L$ac_find_libraries"
26133 fi
26134
26135 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26136 else
26137 save_CFLAGS=$CFLAGS
26138 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26139
26140 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26141/* confdefs.h. */
26142_ACEOF
26143cat confdefs.h >>conftest.$ac_ext
26144cat >>conftest.$ac_ext <<_ACEOF
26145/* end confdefs.h. */
26146
74b84332
VS
26147 #include <Xm/Xm.h>
26148
a848cd7e
SC
26149int
26150main ()
26151{
74b84332
VS
26152
26153 int version;
26154 version = xmUseVersion;
26155
a848cd7e
SC
26156 ;
26157 return 0;
26158}
26159_ACEOF
74b84332
VS
26160rm -f conftest.$ac_objext
26161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26162 (eval $ac_compile) 2>conftest.er1
a848cd7e 26163 ac_status=$?
ac1cb8d3
VS
26164 grep -v '^ *+' conftest.er1 >conftest.err
26165 rm -f conftest.er1
26166 cat conftest.err >&5
a848cd7e
SC
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); } &&
fc480dc1
DE
26169 { ac_try='test -z "$ac_c_werror_flag"
26170 || test ! -s conftest.err'
ac1cb8d3
VS
26171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26173 ac_status=$?
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; } &&
74b84332 26176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; }; then
74b84332
VS
26182
26183 echo "$as_me:$LINENO: result: found in default search path" >&5
26184echo "${ECHO_T}found in default search path" >&6
26185 COMPILED_X_PROGRAM=1
26186
a848cd7e
SC
26187else
26188 echo "$as_me: failed program was:" >&5
26189sed 's/^/| /' conftest.$ac_ext >&5
26190
74b84332
VS
26191
26192 echo "$as_me:$LINENO: result: no" >&5
26193echo "${ECHO_T}no" >&6
26194 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26195echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26196 { (exit 1); exit 1; }; }
26197
26198
26199fi
26200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26201
26202 CFLAGS=$save_CFLAGS
26203 fi
26204 fi
26205
26206 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26207echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26208 libp_link=""
26209 libsm_ice_link=""
26210 libs_found=0
26211 for libp in "" " -lXp"; do
26212 if test "$libs_found" = "0"; then
26213 for libsm_ice in "" " -lSM -lICE"; do
26214 if test "$libs_found" = "0"; then
26215 save_LIBS="$LIBS"
26216 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26217 save_CFLAGS=$CFLAGS
26218 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26219
26220 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26221/* confdefs.h. */
26222_ACEOF
26223cat confdefs.h >>conftest.$ac_ext
26224cat >>conftest.$ac_ext <<_ACEOF
26225/* end confdefs.h. */
26226
74b84332
VS
26227 #include <Xm/Xm.h>
26228 #include <Xm/List.h>
26229
a848cd7e
SC
26230int
26231main ()
26232{
74b84332
VS
26233
26234 XmString string = NULL;
26235 Widget w = NULL;
26236 int position = 0;
26237 XmListAddItem(w, string, position);
26238
a848cd7e
SC
26239 ;
26240 return 0;
26241}
26242_ACEOF
26243rm -f conftest.$ac_objext conftest$ac_exeext
26244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26245 (eval $ac_link) 2>conftest.er1
a848cd7e 26246 ac_status=$?
ac1cb8d3
VS
26247 grep -v '^ *+' conftest.er1 >conftest.err
26248 rm -f conftest.er1
26249 cat conftest.err >&5
a848cd7e
SC
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
fc480dc1
DE
26252 { ac_try='test -z "$ac_c_werror_flag"
26253 || test ! -s conftest.err'
ac1cb8d3
VS
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26256 ac_status=$?
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; } &&
26259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26265
26266 libp_link="$libp"
26267 libsm_ice_link="$libsm_ice"
26268 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26269echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26270 libs_found=1
26271
26272else
26273 echo "$as_me: failed program was:" >&5
26274sed 's/^/| /' conftest.$ac_ext >&5
26275
26276
26277
26278fi
ac1cb8d3
VS
26279rm -f conftest.err conftest.$ac_objext \
26280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26281
26282 LIBS="$save_LIBS"
26283 CFLAGS=$save_CFLAGS
26284 fi
26285 done
26286 fi
26287 done
26288
26289 if test "$libs_found" = "0"; then
26290 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26291echo "${ECHO_T}can't find the right libraries" >&6
26292 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26293echo "$as_me: error: can't link a simple motif program" >&2;}
26294 { (exit 1); exit 1; }; }
26295 fi
26296
26297 save_CFLAGS=$CFLAGS
26298 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26299 echo "$as_me:$LINENO: checking for Motif 2" >&5
26300echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26301 cat >conftest.$ac_ext <<_ACEOF
26302/* confdefs.h. */
26303_ACEOF
26304cat confdefs.h >>conftest.$ac_ext
26305cat >>conftest.$ac_ext <<_ACEOF
26306/* end confdefs.h. */
26307
26308 #include <Xm/Xm.h>
26309
26310int
26311main ()
26312{
26313
26314 #if XmVersion < 2000
26315 #error "Not Motif 2"
26316 #endif
26317
26318 ;
26319 return 0;
26320}
26321_ACEOF
26322rm -f conftest.$ac_objext
26323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26324 (eval $ac_compile) 2>conftest.er1
a848cd7e 26325 ac_status=$?
ac1cb8d3
VS
26326 grep -v '^ *+' conftest.er1 >conftest.err
26327 rm -f conftest.er1
26328 cat conftest.err >&5
a848cd7e
SC
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } &&
fc480dc1
DE
26331 { ac_try='test -z "$ac_c_werror_flag"
26332 || test ! -s conftest.err'
ac1cb8d3
VS
26333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334 (eval $ac_try) 2>&5
26335 ac_status=$?
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); }; } &&
26338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340 (eval $ac_try) 2>&5
26341 ac_status=$?
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); }; }; then
26344
26345 cat >>confdefs.h <<\_ACEOF
26346#define __WXMOTIF20__ 1
26347_ACEOF
26348
26349 echo "$as_me:$LINENO: result: found" >&5
26350echo "${ECHO_T}found" >&6
26351
26352else
26353 echo "$as_me: failed program was:" >&5
26354sed 's/^/| /' conftest.$ac_ext >&5
26355
26356
26357 cat >>confdefs.h <<\_ACEOF
26358#define __WXMOTIF20__ 0
26359_ACEOF
26360
26361 echo "$as_me:$LINENO: result: not found" >&5
26362echo "${ECHO_T}not found" >&6
26363
26364fi
ac1cb8d3 26365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26366 CFLAGS=$save_CFLAGS
26367
26368 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26369 TOOLKIT=MOTIF
26370 GUIDIST=MOTIF_DIST
26371 fi
26372
74b84332 26373 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26374 if test "$wxUSE_LIBXPM" = "sys"; then
26375 echo "$as_me:$LINENO: checking for Xpm library" >&5
26376echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26377
26378ac_find_libraries=
26379for ac_dir in $SEARCH_LIB /usr/lib;
26380 do
26381 for ac_extension in a so sl dylib; do
26382 if test -f "$ac_dir/libXpm.$ac_extension"; then
26383 ac_find_libraries=$ac_dir
26384 break 2
26385 fi
26386 done
26387 done
26388
26389 if test "$ac_find_libraries" != "" ; then
26390
26391 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26392 result=$?
26393 if test $result = 0; then
26394 ac_path_to_link=""
26395 else
26396 ac_path_to_link=" -L$ac_find_libraries"
26397 fi
26398
26399 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26400 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26401echo "${ECHO_T}found at $ac_find_libraries" >&6
26402
26403 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26404echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26405if test "${wx_cv_x11_xpm_h+set}" = set; then
26406 echo $ECHO_N "(cached) $ECHO_C" >&6
26407else
26408
26409 save_CFLAGS=$CFLAGS
26410 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26411
26412 cat >conftest.$ac_ext <<_ACEOF
26413/* confdefs.h. */
26414_ACEOF
26415cat confdefs.h >>conftest.$ac_ext
26416cat >>conftest.$ac_ext <<_ACEOF
26417/* end confdefs.h. */
26418
26419 #include <X11/xpm.h>
26420
26421int
26422main ()
26423{
26424
26425 int version;
26426 version = XpmLibraryVersion();
26427
26428 ;
26429 return 0;
26430}
26431_ACEOF
26432rm -f conftest.$ac_objext
26433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26434 (eval $ac_compile) 2>conftest.er1
a848cd7e 26435 ac_status=$?
ac1cb8d3
VS
26436 grep -v '^ *+' conftest.er1 >conftest.err
26437 rm -f conftest.er1
26438 cat conftest.err >&5
a848cd7e
SC
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } &&
fc480dc1
DE
26441 { ac_try='test -z "$ac_c_werror_flag"
26442 || test ! -s conftest.err'
ac1cb8d3
VS
26443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444 (eval $ac_try) 2>&5
26445 ac_status=$?
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); }; } &&
26448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26451 ac_status=$?
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; }; then
26454 wx_cv_x11_xpm_h=yes
26455else
26456 echo "$as_me: failed program was:" >&5
26457sed 's/^/| /' conftest.$ac_ext >&5
26458
26459wx_cv_x11_xpm_h=no
26460
26461fi
ac1cb8d3 26462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26463
26464 CFLAGS=$save_CFLAGS
26465
26466
26467fi
26468echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26469echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26470
26471 if test $wx_cv_x11_xpm_h = "yes"; then
26472 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26473 cat >>confdefs.h <<\_ACEOF
26474#define wxHAVE_LIB_XPM 1
26475_ACEOF
26476
26477 else
26478 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26479echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26480 fi
26481 fi
26482
26483 fi
26484
26485 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26486echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26487if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26488 echo $ECHO_N "(cached) $ECHO_C" >&6
26489else
26490 ac_check_lib_save_LIBS=$LIBS
26491LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26492cat >conftest.$ac_ext <<_ACEOF
26493/* confdefs.h. */
26494_ACEOF
26495cat confdefs.h >>conftest.$ac_ext
26496cat >>conftest.$ac_ext <<_ACEOF
26497/* end confdefs.h. */
26498
26499/* Override any gcc2 internal prototype to avoid an error. */
26500#ifdef __cplusplus
26501extern "C"
26502#endif
26503/* We use char because int might match the return type of a gcc2
26504 builtin and then its argument prototype would still apply. */
26505char XShapeQueryExtension ();
26506int
26507main ()
26508{
26509XShapeQueryExtension ();
26510 ;
26511 return 0;
26512}
26513_ACEOF
26514rm -f conftest.$ac_objext conftest$ac_exeext
26515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26516 (eval $ac_link) 2>conftest.er1
a848cd7e 26517 ac_status=$?
ac1cb8d3
VS
26518 grep -v '^ *+' conftest.er1 >conftest.err
26519 rm -f conftest.er1
26520 cat conftest.err >&5
a848cd7e
SC
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } &&
fc480dc1
DE
26523 { ac_try='test -z "$ac_c_werror_flag"
26524 || test ! -s conftest.err'
ac1cb8d3
VS
26525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26526 (eval $ac_try) 2>&5
26527 ac_status=$?
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); }; } &&
26530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26532 (eval $ac_try) 2>&5
26533 ac_status=$?
26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); }; }; then
26536 ac_cv_lib_Xext_XShapeQueryExtension=yes
26537else
26538 echo "$as_me: failed program was:" >&5
26539sed 's/^/| /' conftest.$ac_ext >&5
26540
26541ac_cv_lib_Xext_XShapeQueryExtension=no
26542fi
ac1cb8d3
VS
26543rm -f conftest.err conftest.$ac_objext \
26544 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26545LIBS=$ac_check_lib_save_LIBS
26546fi
26547echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26548echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26549if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26550
26551 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26552 wxHAVE_XEXT_LIB=1
26553
26554fi
26555
26556
26557 if test "$wxHAVE_XEXT_LIB" = 1; then
26558 save_CFLAGS="$CFLAGS"
26559 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26560
26561 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26562echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26563 cat >conftest.$ac_ext <<_ACEOF
26564/* confdefs.h. */
26565_ACEOF
26566cat confdefs.h >>conftest.$ac_ext
26567cat >>conftest.$ac_ext <<_ACEOF
26568/* end confdefs.h. */
26569
26570 #include <X11/Xlib.h>
26571 #include <X11/extensions/shape.h>
26572
26573int
26574main ()
26575{
26576
26577 int dummy1, dummy2;
26578 XShapeQueryExtension((Display*)NULL,
26579 (int*)NULL, (int*)NULL);
26580
26581 ;
26582 return 0;
26583}
26584_ACEOF
26585rm -f conftest.$ac_objext
26586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26587 (eval $ac_compile) 2>conftest.er1
a848cd7e 26588 ac_status=$?
ac1cb8d3
VS
26589 grep -v '^ *+' conftest.er1 >conftest.err
26590 rm -f conftest.er1
26591 cat conftest.err >&5
a848cd7e
SC
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); } &&
fc480dc1
DE
26594 { ac_try='test -z "$ac_c_werror_flag"
26595 || test ! -s conftest.err'
ac1cb8d3
VS
26596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26597 (eval $ac_try) 2>&5
26598 ac_status=$?
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); }; } &&
26601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26604 ac_status=$?
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; }; then
26607
26608 cat >>confdefs.h <<\_ACEOF
26609#define HAVE_XSHAPE 1
26610_ACEOF
26611
26612 echo "$as_me:$LINENO: result: found" >&5
26613echo "${ECHO_T}found" >&6
26614
26615else
26616 echo "$as_me: failed program was:" >&5
26617sed 's/^/| /' conftest.$ac_ext >&5
26618
26619
26620 echo "$as_me:$LINENO: result: not found" >&5
26621echo "${ECHO_T}not found" >&6
26622
26623fi
ac1cb8d3 26624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26625 CFLAGS="$save_CFLAGS"
26626
26627 fi
26628 fi
26629
26630 if test "$wxUSE_MAC" = 1; then
26631 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26632echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26633 if test "$GCC" = yes; then
26634 echo "$as_me:$LINENO: result: gcc" >&5
26635echo "${ECHO_T}gcc" >&6
26636 CPPFLAGS_PASCAL="-fpascal-strings"
26637 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26638 echo "$as_me:$LINENO: result: xlc" >&5
26639echo "${ECHO_T}xlc" >&6
26640 CPPFLAGS_PASCAL="-qmacpstr"
26641 else
26642 echo "$as_me:$LINENO: result: none" >&5
26643echo "${ECHO_T}none" >&6
26644 fi
26645
1e9e8aba
DE
26646 if test "x$wxUSE_UNIX" = "xyes"; then
26647 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26648 else
26649 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26650 fi
a848cd7e 26651
a848cd7e
SC
26652 TOOLKIT=MAC
26653 GUIDIST=MACX_DIST
dd21ced8 26654 WXBASEPORT="_carbon"
a848cd7e
SC
26655 fi
26656
26657 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26658 TOOLKIT=COCOA
26659 GUIDIST=COCOA_DIST
26660 fi
26661
26662 if test "$wxUSE_PM" = 1; then
26663 TOOLKIT=PM
de59c161
RD
26664 GUIDIST=PM_DIST
26665 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26666echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26667if test "${wx_cv_spbcdata+set}" = set; then
26668 echo $ECHO_N "(cached) $ECHO_C" >&6
26669else
26670
26671 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26672/* confdefs.h. */
26673_ACEOF
26674cat confdefs.h >>conftest.$ac_ext
26675cat >>conftest.$ac_ext <<_ACEOF
26676/* end confdefs.h. */
26677
26678 #define INCL_PM
26679 #include <os2.h>
26680
26681int
26682main ()
26683{
26684
26685 SPBCDATA test;
26686
26687 ;
26688 return 0;
26689}
26690_ACEOF
26691rm -f conftest.$ac_objext
26692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26693 (eval $ac_compile) 2>conftest.er1
de59c161 26694 ac_status=$?
ac1cb8d3
VS
26695 grep -v '^ *+' conftest.er1 >conftest.err
26696 rm -f conftest.er1
26697 cat conftest.err >&5
de59c161
RD
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } &&
fc480dc1
DE
26700 { ac_try='test -z "$ac_c_werror_flag"
26701 || test ! -s conftest.err'
ac1cb8d3
VS
26702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; } &&
26707 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26710 ac_status=$?
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; }; then
26713 wx_cv_spbcdata=yes
26714else
26715 echo "$as_me: failed program was:" >&5
26716sed 's/^/| /' conftest.$ac_ext >&5
26717
26718wx_cv_spbcdata=no
26719
26720fi
ac1cb8d3 26721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26722
26723
26724fi
26725echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26726echo "${ECHO_T}$wx_cv_spbcdata" >&6
26727
26728 if test $wx_cv_spbcdata = "yes"; then
26729 cat >>confdefs.h <<\_ACEOF
26730#define HAVE_SPBCDATA 1
26731_ACEOF
26732
26733 fi
a848cd7e
SC
26734 fi
26735
26736 if test "$TOOLKIT" = "PM" ; then
26737 TOOLKIT_DIR="os2"
26738 else
26739 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26740 fi
26741
a848cd7e 26742 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26743 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26744 WIDGET_SET=univ
a848cd7e
SC
26745 fi
26746
26747 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26748 DISTDIR="wx\$(TOOLKIT)"
26749else
26750 USE_GUI=0
26751
26752 TOOLKIT_DIR="base"
26753
26754 if test "$USE_WIN32" = 1 ; then
a848cd7e 26755 TOOLKIT="MSW"
a848cd7e
SC
26756 fi
26757
a848cd7e
SC
26758 GUIDIST="BASE_DIST"
26759 DISTDIR="wxBase"
26760fi
26761
26762
26763
26764
26765IODBC_C_SRC=""
26766
26767
26768if test "$TOOLKIT" != "MSW" ; then
26769
26770 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26771
26772 if test "${ac_cv_header_sql_h+set}" = set; then
26773 echo "$as_me:$LINENO: checking for sql.h" >&5
26774echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26775if test "${ac_cv_header_sql_h+set}" = set; then
26776 echo $ECHO_N "(cached) $ECHO_C" >&6
26777fi
26778echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26779echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26780else
26781 # Is the header compilable?
26782echo "$as_me:$LINENO: checking sql.h usability" >&5
26783echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26784cat >conftest.$ac_ext <<_ACEOF
26785/* confdefs.h. */
26786_ACEOF
26787cat confdefs.h >>conftest.$ac_ext
26788cat >>conftest.$ac_ext <<_ACEOF
26789/* end confdefs.h. */
26790$ac_includes_default
26791#include <sql.h>
26792_ACEOF
26793rm -f conftest.$ac_objext
26794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26795 (eval $ac_compile) 2>conftest.er1
a848cd7e 26796 ac_status=$?
ac1cb8d3
VS
26797 grep -v '^ *+' conftest.er1 >conftest.err
26798 rm -f conftest.er1
26799 cat conftest.err >&5
a848cd7e
SC
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } &&
fc480dc1
DE
26802 { ac_try='test -z "$ac_c_werror_flag"
26803 || test ! -s conftest.err'
ac1cb8d3
VS
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
26806 ac_status=$?
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; } &&
26809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; }; then
26815 ac_header_compiler=yes
26816else
26817 echo "$as_me: failed program was:" >&5
26818sed 's/^/| /' conftest.$ac_ext >&5
26819
26820ac_header_compiler=no
26821fi
ac1cb8d3 26822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26823echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26824echo "${ECHO_T}$ac_header_compiler" >&6
26825
26826# Is the header present?
26827echo "$as_me:$LINENO: checking sql.h presence" >&5
26828echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26829cat >conftest.$ac_ext <<_ACEOF
26830/* confdefs.h. */
26831_ACEOF
26832cat confdefs.h >>conftest.$ac_ext
26833cat >>conftest.$ac_ext <<_ACEOF
26834/* end confdefs.h. */
26835#include <sql.h>
26836_ACEOF
26837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26839 ac_status=$?
26840 grep -v '^ *+' conftest.er1 >conftest.err
26841 rm -f conftest.er1
26842 cat conftest.err >&5
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); } >/dev/null; then
26845 if test -s conftest.err; then
26846 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26848 else
26849 ac_cpp_err=
26850 fi
26851else
26852 ac_cpp_err=yes
26853fi
26854if test -z "$ac_cpp_err"; then
26855 ac_header_preproc=yes
26856else
26857 echo "$as_me: failed program was:" >&5
26858sed 's/^/| /' conftest.$ac_ext >&5
26859
26860 ac_header_preproc=no
26861fi
26862rm -f conftest.err conftest.$ac_ext
26863echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26864echo "${ECHO_T}$ac_header_preproc" >&6
26865
26866# So? What about this header?
ac1cb8d3
VS
26867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26868 yes:no: )
a848cd7e
SC
26869 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26870echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26871 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26872echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26873 ac_header_preproc=yes
a848cd7e 26874 ;;
ac1cb8d3 26875 no:yes:* )
a848cd7e
SC
26876 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26877echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26878 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26879echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26880 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26881echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26882 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26883echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26884 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26885echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26886 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26887echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26888 (
26889 cat <<\_ASBOX
ac1cb8d3
VS
26890## ----------------------------------------- ##
26891## Report this to wx-dev@lists.wxwidgets.org ##
26892## ----------------------------------------- ##
a848cd7e
SC
26893_ASBOX
26894 ) |
26895 sed "s/^/$as_me: WARNING: /" >&2
26896 ;;
26897esac
26898echo "$as_me:$LINENO: checking for sql.h" >&5
26899echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26900if test "${ac_cv_header_sql_h+set}" = set; then
26901 echo $ECHO_N "(cached) $ECHO_C" >&6
26902else
26903 ac_cv_header_sql_h=$ac_header_preproc
26904fi
26905echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26906echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26907
26908fi
26909if test $ac_cv_header_sql_h = yes; then
26910 found_sql_h=1
26911fi
26912
26913
26914 if test "x$found_sql_h" = "x1" ; then
26915 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26916echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26917if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26918 echo $ECHO_N "(cached) $ECHO_C" >&6
26919else
26920 ac_check_lib_save_LIBS=$LIBS
26921LIBS="-liodbc $LIBS"
26922cat >conftest.$ac_ext <<_ACEOF
26923/* confdefs.h. */
26924_ACEOF
26925cat confdefs.h >>conftest.$ac_ext
26926cat >>conftest.$ac_ext <<_ACEOF
26927/* end confdefs.h. */
26928
26929/* Override any gcc2 internal prototype to avoid an error. */
26930#ifdef __cplusplus
26931extern "C"
26932#endif
26933/* We use char because int might match the return type of a gcc2
26934 builtin and then its argument prototype would still apply. */
26935char SQLAllocEnv ();
26936int
26937main ()
26938{
26939SQLAllocEnv ();
26940 ;
26941 return 0;
26942}
26943_ACEOF
26944rm -f conftest.$ac_objext conftest$ac_exeext
26945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26946 (eval $ac_link) 2>conftest.er1
a848cd7e 26947 ac_status=$?
ac1cb8d3
VS
26948 grep -v '^ *+' conftest.er1 >conftest.err
26949 rm -f conftest.er1
26950 cat conftest.err >&5
a848cd7e
SC
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } &&
fc480dc1
DE
26953 { ac_try='test -z "$ac_c_werror_flag"
26954 || test ! -s conftest.err'
ac1cb8d3
VS
26955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; } &&
26960 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26962 (eval $ac_try) 2>&5
26963 ac_status=$?
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; }; then
26966 ac_cv_lib_iodbc_SQLAllocEnv=yes
26967else
26968 echo "$as_me: failed program was:" >&5
26969sed 's/^/| /' conftest.$ac_ext >&5
26970
26971ac_cv_lib_iodbc_SQLAllocEnv=no
26972fi
ac1cb8d3
VS
26973rm -f conftest.err conftest.$ac_objext \
26974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26975LIBS=$ac_check_lib_save_LIBS
26976fi
26977echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26978echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26979if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26980 ODBC_LINK=" -liodbc"
26981else
26982
26983 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26984echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26985if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26987else
26988 ac_check_lib_save_LIBS=$LIBS
26989LIBS="-lunixodbc $LIBS"
26990cat >conftest.$ac_ext <<_ACEOF
26991/* confdefs.h. */
26992_ACEOF
26993cat confdefs.h >>conftest.$ac_ext
26994cat >>conftest.$ac_ext <<_ACEOF
26995/* end confdefs.h. */
26996
26997/* Override any gcc2 internal prototype to avoid an error. */
26998#ifdef __cplusplus
26999extern "C"
27000#endif
27001/* We use char because int might match the return type of a gcc2
27002 builtin and then its argument prototype would still apply. */
27003char SQLAllocEnv ();
27004int
27005main ()
27006{
27007SQLAllocEnv ();
27008 ;
27009 return 0;
27010}
27011_ACEOF
27012rm -f conftest.$ac_objext conftest$ac_exeext
27013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27014 (eval $ac_link) 2>conftest.er1
a848cd7e 27015 ac_status=$?
ac1cb8d3
VS
27016 grep -v '^ *+' conftest.er1 >conftest.err
27017 rm -f conftest.er1
27018 cat conftest.err >&5
a848cd7e
SC
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
fc480dc1
DE
27021 { ac_try='test -z "$ac_c_werror_flag"
27022 || test ! -s conftest.err'
ac1cb8d3
VS
27023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024 (eval $ac_try) 2>&5
27025 ac_status=$?
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); }; } &&
27028 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27031 ac_status=$?
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; }; then
27034 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27035else
27036 echo "$as_me: failed program was:" >&5
27037sed 's/^/| /' conftest.$ac_ext >&5
27038
27039ac_cv_lib_unixodbc_SQLAllocEnv=no
27040fi
ac1cb8d3
VS
27041rm -f conftest.err conftest.$ac_objext \
27042 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27043LIBS=$ac_check_lib_save_LIBS
27044fi
27045echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27046echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27047if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27048 ODBC_LINK=" -lunixodbc"
27049else
27050
27051 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27052echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27053if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27054 echo $ECHO_N "(cached) $ECHO_C" >&6
27055else
27056 ac_check_lib_save_LIBS=$LIBS
27057LIBS="-lodbc $LIBS"
27058cat >conftest.$ac_ext <<_ACEOF
27059/* confdefs.h. */
27060_ACEOF
27061cat confdefs.h >>conftest.$ac_ext
27062cat >>conftest.$ac_ext <<_ACEOF
27063/* end confdefs.h. */
27064
27065/* Override any gcc2 internal prototype to avoid an error. */
27066#ifdef __cplusplus
27067extern "C"
27068#endif
27069/* We use char because int might match the return type of a gcc2
27070 builtin and then its argument prototype would still apply. */
27071char SQLAllocEnv ();
27072int
27073main ()
27074{
27075SQLAllocEnv ();
27076 ;
27077 return 0;
27078}
27079_ACEOF
27080rm -f conftest.$ac_objext conftest$ac_exeext
27081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27082 (eval $ac_link) 2>conftest.er1
a848cd7e 27083 ac_status=$?
ac1cb8d3
VS
27084 grep -v '^ *+' conftest.er1 >conftest.err
27085 rm -f conftest.er1
27086 cat conftest.err >&5
a848cd7e
SC
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); } &&
fc480dc1
DE
27089 { ac_try='test -z "$ac_c_werror_flag"
27090 || test ! -s conftest.err'
ac1cb8d3
VS
27091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092 (eval $ac_try) 2>&5
27093 ac_status=$?
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; } &&
27096 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27098 (eval $ac_try) 2>&5
27099 ac_status=$?
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); }; }; then
27102 ac_cv_lib_odbc_SQLAllocEnv=yes
27103else
27104 echo "$as_me: failed program was:" >&5
27105sed 's/^/| /' conftest.$ac_ext >&5
27106
27107ac_cv_lib_odbc_SQLAllocEnv=no
27108fi
ac1cb8d3
VS
27109rm -f conftest.err conftest.$ac_objext \
27110 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27111LIBS=$ac_check_lib_save_LIBS
27112fi
27113echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27114echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27115if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27116 ODBC_LINK=" -lodbc"
27117fi
27118
27119
27120fi
27121
27122
27123fi
27124
27125 fi
27126 if test "x$ODBC_LINK" = "x" ; then
27127 if test "$wxUSE_ODBC" = "sys" ; then
27128 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27129echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27130 { (exit 1); exit 1; }; }
27131 else
27132 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27133echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27134 wxUSE_ODBC=builtin
27135 fi
27136 else
27137 wxUSE_ODBC=sys
27138 fi
27139 fi
27140 if test "$wxUSE_ODBC" != "no" ; then
27141 cat >>confdefs.h <<\_ACEOF
27142#define wxUSE_ODBC 1
27143_ACEOF
27144
27145 if test "$wxUSE_ODBC" = "builtin" ; then
27146 cat >>confdefs.h <<\_ACEOF
27147#define wxUSE_BUILTIN_IODBC 1
27148_ACEOF
27149
27150 fi
27151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27152
27153 WXODBCFLAG="-D_IODBC_"
27154 fi
27155fi
27156
a848cd7e 27157
01cb68df 27158
a848cd7e 27159if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27160 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27161 echo "$as_me:$LINENO: checking for Xinerama" >&5
27162echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27163
27164ac_find_libraries=
27165for ac_dir in $SEARCH_LIB /usr/lib;
27166 do
27167 for ac_extension in a so sl dylib; do
27168 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27169 ac_find_libraries=$ac_dir
27170 break 2
27171 fi
27172 done
27173 done
27174
27175 if test "$ac_find_libraries" != "" ; then
27176
27177 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27178 result=$?
27179 if test $result = 0; then
27180 ac_path_to_link=""
27181 else
27182 ac_path_to_link=" -L$ac_find_libraries"
27183 fi
27184
27185 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27186 LDFLAGS="$LDFLAGS $ac_path_to_link"
27187 fi
27188 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27189 echo "$as_me:$LINENO: result: yes" >&5
27190echo "${ECHO_T}yes" >&6
27191
27192 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27193echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27194
27195ac_find_libraries=
27196for ac_dir in $SEARCH_LIB /usr/lib;
27197 do
27198 for ac_extension in a so sl dylib; do
27199 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27200 ac_find_libraries=$ac_dir
27201 break 2
27202 fi
27203 done
27204 done
27205
27206 if test "$ac_find_libraries" != "" ; then
27207 echo "$as_me:$LINENO: result: yes" >&5
27208echo "${ECHO_T}yes" >&6
27209
27210for ac_header in X11/extensions/xf86vmode.h
27211do
27212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27213echo "$as_me:$LINENO: checking for $ac_header" >&5
27214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27215if eval "test \"\${$as_ac_Header+set}\" = set"; then
27216 echo $ECHO_N "(cached) $ECHO_C" >&6
27217else
27218 cat >conftest.$ac_ext <<_ACEOF
27219/* confdefs.h. */
27220_ACEOF
27221cat confdefs.h >>conftest.$ac_ext
27222cat >>conftest.$ac_ext <<_ACEOF
27223/* end confdefs.h. */
27224
27225 #if HAVE_X11_XLIB_H
27226 #include <X11/Xlib.h>
27227 #endif
27228
27229
27230#include <$ac_header>
27231_ACEOF
27232rm -f conftest.$ac_objext
27233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27234 (eval $ac_compile) 2>conftest.er1
a848cd7e 27235 ac_status=$?
ac1cb8d3
VS
27236 grep -v '^ *+' conftest.er1 >conftest.err
27237 rm -f conftest.er1
27238 cat conftest.err >&5
a848cd7e
SC
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } &&
fc480dc1
DE
27241 { ac_try='test -z "$ac_c_werror_flag"
27242 || test ! -s conftest.err'
ac1cb8d3
VS
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27250 (eval $ac_try) 2>&5
27251 ac_status=$?
27252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); }; }; then
27254 eval "$as_ac_Header=yes"
27255else
27256 echo "$as_me: failed program was:" >&5
27257sed 's/^/| /' conftest.$ac_ext >&5
27258
27259eval "$as_ac_Header=no"
27260fi
ac1cb8d3 27261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27262fi
27263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27265if test `eval echo '${'$as_ac_Header'}'` = yes; then
27266 cat >>confdefs.h <<_ACEOF
27267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27268_ACEOF
27269
27270 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27271
27272fi
27273
27274done
27275
27276 else
27277 echo "$as_me:$LINENO: result: no" >&5
27278echo "${ECHO_T}no" >&6
27279 fi
27280
27281 else
27282 echo "$as_me:$LINENO: result: no" >&5
27283echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27284 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27285echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27286 wxUSE_DISPLAY="no"
27287 fi
01cb68df
RG
27288 elif test "$wxUSE_MSW" = 1; then
27289
27290
27291for ac_header in multimon.h ddraw.h
27292do
27293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27294if eval "test \"\${$as_ac_Header+set}\" = set"; then
27295 echo "$as_me:$LINENO: checking for $ac_header" >&5
27296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27297if eval "test \"\${$as_ac_Header+set}\" = set"; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27299fi
27300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27302else
27303 # Is the header compilable?
27304echo "$as_me:$LINENO: checking $ac_header usability" >&5
27305echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27306cat >conftest.$ac_ext <<_ACEOF
27307/* confdefs.h. */
27308_ACEOF
27309cat confdefs.h >>conftest.$ac_ext
27310cat >>conftest.$ac_ext <<_ACEOF
27311/* end confdefs.h. */
27312$ac_includes_default
27313#include <$ac_header>
27314_ACEOF
27315rm -f conftest.$ac_objext
27316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27317 (eval $ac_compile) 2>conftest.er1
01cb68df 27318 ac_status=$?
ac1cb8d3
VS
27319 grep -v '^ *+' conftest.er1 >conftest.err
27320 rm -f conftest.er1
27321 cat conftest.err >&5
01cb68df
RG
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } &&
fc480dc1
DE
27324 { ac_try='test -z "$ac_c_werror_flag"
27325 || test ! -s conftest.err'
ac1cb8d3
VS
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27328 ac_status=$?
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; } &&
27331 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27334 ac_status=$?
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
27337 ac_header_compiler=yes
27338else
27339 echo "$as_me: failed program was:" >&5
27340sed 's/^/| /' conftest.$ac_ext >&5
27341
27342ac_header_compiler=no
27343fi
ac1cb8d3 27344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27346echo "${ECHO_T}$ac_header_compiler" >&6
27347
27348# Is the header present?
27349echo "$as_me:$LINENO: checking $ac_header presence" >&5
27350echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27351cat >conftest.$ac_ext <<_ACEOF
27352/* confdefs.h. */
27353_ACEOF
27354cat confdefs.h >>conftest.$ac_ext
27355cat >>conftest.$ac_ext <<_ACEOF
27356/* end confdefs.h. */
27357#include <$ac_header>
27358_ACEOF
27359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27361 ac_status=$?
27362 grep -v '^ *+' conftest.er1 >conftest.err
27363 rm -f conftest.er1
27364 cat conftest.err >&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); } >/dev/null; then
27367 if test -s conftest.err; then
27368 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27370 else
27371 ac_cpp_err=
27372 fi
27373else
27374 ac_cpp_err=yes
27375fi
27376if test -z "$ac_cpp_err"; then
27377 ac_header_preproc=yes
27378else
27379 echo "$as_me: failed program was:" >&5
27380sed 's/^/| /' conftest.$ac_ext >&5
27381
27382 ac_header_preproc=no
27383fi
27384rm -f conftest.err conftest.$ac_ext
27385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27386echo "${ECHO_T}$ac_header_preproc" >&6
27387
27388# So? What about this header?
ac1cb8d3
VS
27389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27390 yes:no: )
01cb68df
RG
27391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27392echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27394echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27395 ac_header_preproc=yes
01cb68df 27396 ;;
ac1cb8d3 27397 no:yes:* )
01cb68df
RG
27398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27403echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27405echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27409echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27410 (
27411 cat <<\_ASBOX
ac1cb8d3
VS
27412## ----------------------------------------- ##
27413## Report this to wx-dev@lists.wxwidgets.org ##
27414## ----------------------------------------- ##
01cb68df
RG
27415_ASBOX
27416 ) |
27417 sed "s/^/$as_me: WARNING: /" >&2
27418 ;;
27419esac
27420echo "$as_me:$LINENO: checking for $ac_header" >&5
27421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27422if eval "test \"\${$as_ac_Header+set}\" = set"; then
27423 echo $ECHO_N "(cached) $ECHO_C" >&6
27424else
ac1cb8d3 27425 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27426fi
27427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27429
27430fi
27431if test `eval echo '${'$as_ac_Header'}'` = yes; then
27432 cat >>confdefs.h <<_ACEOF
27433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27434_ACEOF
27435
27436else
27437
27438 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27439 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27440echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27441
27442fi
27443
27444done
27445
a848cd7e
SC
27446 fi
27447fi
27448
27449
3b57de8b
RL
27450if test "$wxUSE_MEDIACTRL" = "yes"; then
27451 if test "$wxUSE_MSW" = 1; then
27452 wxUSE_DIRECTSHOW="yes"
27453
27454for ac_header in dshow.h
27455do
27456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27457if eval "test \"\${$as_ac_Header+set}\" = set"; then
27458 echo "$as_me:$LINENO: checking for $ac_header" >&5
27459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27460if eval "test \"\${$as_ac_Header+set}\" = set"; then
27461 echo $ECHO_N "(cached) $ECHO_C" >&6
27462fi
27463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27465else
27466 # Is the header compilable?
27467echo "$as_me:$LINENO: checking $ac_header usability" >&5
27468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27469cat >conftest.$ac_ext <<_ACEOF
27470/* confdefs.h. */
27471_ACEOF
27472cat confdefs.h >>conftest.$ac_ext
27473cat >>conftest.$ac_ext <<_ACEOF
27474/* end confdefs.h. */
27475$ac_includes_default
27476#include <$ac_header>
27477_ACEOF
27478rm -f conftest.$ac_objext
27479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27480 (eval $ac_compile) 2>conftest.er1
27481 ac_status=$?
27482 grep -v '^ *+' conftest.er1 >conftest.err
27483 rm -f conftest.er1
27484 cat conftest.err >&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); } &&
fc480dc1
DE
27487 { ac_try='test -z "$ac_c_werror_flag"
27488 || test ! -s conftest.err'
3b57de8b
RL
27489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27490 (eval $ac_try) 2>&5
27491 ac_status=$?
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); }; } &&
27494 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27500 ac_header_compiler=yes
27501else
27502 echo "$as_me: failed program was:" >&5
27503sed 's/^/| /' conftest.$ac_ext >&5
27504
27505ac_header_compiler=no
27506fi
27507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27509echo "${ECHO_T}$ac_header_compiler" >&6
27510
27511# Is the header present?
27512echo "$as_me:$LINENO: checking $ac_header presence" >&5
27513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27514cat >conftest.$ac_ext <<_ACEOF
27515/* confdefs.h. */
27516_ACEOF
27517cat confdefs.h >>conftest.$ac_ext
27518cat >>conftest.$ac_ext <<_ACEOF
27519/* end confdefs.h. */
27520#include <$ac_header>
27521_ACEOF
27522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27524 ac_status=$?
27525 grep -v '^ *+' conftest.er1 >conftest.err
27526 rm -f conftest.er1
27527 cat conftest.err >&5
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); } >/dev/null; then
27530 if test -s conftest.err; then
27531 ac_cpp_err=$ac_c_preproc_warn_flag
27532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27533 else
27534 ac_cpp_err=
27535 fi
27536else
27537 ac_cpp_err=yes
27538fi
27539if test -z "$ac_cpp_err"; then
27540 ac_header_preproc=yes
27541else
27542 echo "$as_me: failed program was:" >&5
27543sed 's/^/| /' conftest.$ac_ext >&5
27544
27545 ac_header_preproc=no
27546fi
27547rm -f conftest.err conftest.$ac_ext
27548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27549echo "${ECHO_T}$ac_header_preproc" >&6
27550
27551# So? What about this header?
27552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27553 yes:no: )
27554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27558 ac_header_preproc=yes
27559 ;;
27560 no:yes:* )
27561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27573 (
27574 cat <<\_ASBOX
27575## ----------------------------------------- ##
27576## Report this to wx-dev@lists.wxwidgets.org ##
27577## ----------------------------------------- ##
27578_ASBOX
27579 ) |
27580 sed "s/^/$as_me: WARNING: /" >&2
27581 ;;
27582esac
27583echo "$as_me:$LINENO: checking for $ac_header" >&5
27584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27585if eval "test \"\${$as_ac_Header+set}\" = set"; then
27586 echo $ECHO_N "(cached) $ECHO_C" >&6
27587else
27588 eval "$as_ac_Header=\$ac_header_preproc"
27589fi
27590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27592
27593fi
27594if test `eval echo '${'$as_ac_Header'}'` = yes; then
27595 cat >>confdefs.h <<_ACEOF
27596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27597_ACEOF
27598
27599else
27600
27601 wxUSE_DIRECTSHOW="no"
27602 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
27603echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27604
27605fi
27606
27607done
27608
27609
27610 if test "$wxUSE_DIRECTSHOW" = "yes"; then
27611 cat >>confdefs.h <<\_ACEOF
27612#define wxUSE_DIRECTSHOW 1
27613_ACEOF
27614
27615 LIBS="$LIBS -lstrmiids"
a98bf0c0 27616 fi
3b57de8b 27617 fi
7e4a1c28
RN
27618
27619 cat >>confdefs.h <<\_ACEOF
27620#define wxUSE_MEDIACTRL 1
27621_ACEOF
27622
3b57de8b
RL
27623fi
27624
27625
a848cd7e
SC
27626USE_OPENGL=0
27627if test "$wxUSE_OPENGL" = "yes"; then
27628 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27629 OPENGL_LIBS="-framework OpenGL -framework AGL"
27630 elif test "$wxUSE_MSW" = 1; then
27631 OPENGL_LIBS="-lopengl32 -lglu32"
27632 else
27633
27634
27635ac_find_includes=
27636for ac_dir in $SEARCH_INCLUDE /usr/include;
27637 do
27638 if test -f "$ac_dir/GL/gl.h"; then
27639 ac_find_includes=$ac_dir
27640 break
27641 fi
27642 done
27643
27644 if test "$ac_find_includes" != "" ; then
27645 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27646echo "${ECHO_T}found in $ac_find_includes" >&6
27647
27648 if test "x$ac_find_includes" = "x/usr/include"; then
27649 ac_path_to_include=""
27650 else
27651 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27652 result=$?
27653 if test $result = 0; then
27654 ac_path_to_include=""
27655 else
27656 ac_path_to_include=" -I$ac_find_includes"
27657 fi
27658 fi
27659
27660 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27661 fi
27662
27663 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27664 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27665echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27666if test "${ac_cv_header_GL_gl_h+set}" = set; then
27667 echo $ECHO_N "(cached) $ECHO_C" >&6
27668fi
27669echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27670echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27671else
27672 # Is the header compilable?
27673echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27674echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27675cat >conftest.$ac_ext <<_ACEOF
27676/* confdefs.h. */
27677_ACEOF
27678cat confdefs.h >>conftest.$ac_ext
27679cat >>conftest.$ac_ext <<_ACEOF
27680/* end confdefs.h. */
27681$ac_includes_default
27682#include <GL/gl.h>
27683_ACEOF
27684rm -f conftest.$ac_objext
27685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27686 (eval $ac_compile) 2>conftest.er1
a848cd7e 27687 ac_status=$?
ac1cb8d3
VS
27688 grep -v '^ *+' conftest.er1 >conftest.err
27689 rm -f conftest.er1
27690 cat conftest.err >&5
a848cd7e
SC
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } &&
fc480dc1
DE
27693 { ac_try='test -z "$ac_c_werror_flag"
27694 || test ! -s conftest.err'
ac1cb8d3
VS
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27703 ac_status=$?
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; }; then
27706 ac_header_compiler=yes
27707else
27708 echo "$as_me: failed program was:" >&5
27709sed 's/^/| /' conftest.$ac_ext >&5
27710
27711ac_header_compiler=no
27712fi
ac1cb8d3 27713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27715echo "${ECHO_T}$ac_header_compiler" >&6
27716
27717# Is the header present?
27718echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27719echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27720cat >conftest.$ac_ext <<_ACEOF
27721/* confdefs.h. */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h. */
27726#include <GL/gl.h>
27727_ACEOF
27728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27730 ac_status=$?
27731 grep -v '^ *+' conftest.er1 >conftest.err
27732 rm -f conftest.er1
27733 cat conftest.err >&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } >/dev/null; then
27736 if test -s conftest.err; then
27737 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27739 else
27740 ac_cpp_err=
27741 fi
27742else
27743 ac_cpp_err=yes
27744fi
27745if test -z "$ac_cpp_err"; then
27746 ac_header_preproc=yes
27747else
27748 echo "$as_me: failed program was:" >&5
27749sed 's/^/| /' conftest.$ac_ext >&5
27750
27751 ac_header_preproc=no
27752fi
27753rm -f conftest.err conftest.$ac_ext
27754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27755echo "${ECHO_T}$ac_header_preproc" >&6
27756
27757# So? What about this header?
ac1cb8d3
VS
27758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27759 yes:no: )
a848cd7e
SC
27760 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27761echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27762 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27763echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27764 ac_header_preproc=yes
a848cd7e 27765 ;;
ac1cb8d3 27766 no:yes:* )
a848cd7e
SC
27767 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27768echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27769 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27770echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27771 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27772echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27773 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27774echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27775 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27776echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27777 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27778echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27779 (
27780 cat <<\_ASBOX
ac1cb8d3
VS
27781## ----------------------------------------- ##
27782## Report this to wx-dev@lists.wxwidgets.org ##
27783## ----------------------------------------- ##
a848cd7e
SC
27784_ASBOX
27785 ) |
27786 sed "s/^/$as_me: WARNING: /" >&2
27787 ;;
27788esac
27789echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27790echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27791if test "${ac_cv_header_GL_gl_h+set}" = set; then
27792 echo $ECHO_N "(cached) $ECHO_C" >&6
27793else
27794 ac_cv_header_GL_gl_h=$ac_header_preproc
27795fi
27796echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27797echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27798
27799fi
27800if test $ac_cv_header_GL_gl_h = yes; then
27801
27802 found_gl=0
27803
27804 echo "$as_me:$LINENO: checking for -lGL" >&5
27805echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27806
27807ac_find_libraries=
27808for ac_dir in $SEARCH_LIB /usr/lib;
27809 do
27810 for ac_extension in a so sl dylib; do
27811 if test -f "$ac_dir/libGL.$ac_extension"; then
27812 ac_find_libraries=$ac_dir
27813 break 2
27814 fi
27815 done
27816 done
27817
27818 if test "$ac_find_libraries" != "" ; then
27819
27820 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27821 result=$?
27822 if test $result = 0; then
27823 ac_path_to_link=""
27824 else
27825 ac_path_to_link=" -L$ac_find_libraries"
27826 fi
27827
27828 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27829 LDFLAGS_GL="$ac_path_to_link"
27830 fi
27831
27832
27833ac_find_libraries=
27834for ac_dir in $SEARCH_LIB /usr/lib;
27835 do
27836 for ac_extension in a so sl dylib; do
27837 if test -f "$ac_dir/libGLU.$ac_extension"; then
27838 ac_find_libraries=$ac_dir
27839 break 2
27840 fi
27841 done
27842 done
27843
27844 if test "$ac_find_libraries" != "" ; then
27845
27846 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27847 result=$?
27848 if test $result = 0; then
27849 ac_path_to_link=""
27850 else
27851 ac_path_to_link=" -L$ac_find_libraries"
27852 fi
27853
27854 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27855 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27856 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27857 fi
27858
27859 found_gl=1
27860 OPENGL_LIBS="-lGL -lGLU"
27861 echo "$as_me:$LINENO: result: yes" >&5
27862echo "${ECHO_T}yes" >&6
27863 fi
27864 fi
27865
27866 if test "$found_gl" != 1; then
27867 echo "$as_me:$LINENO: result: no" >&5
27868echo "${ECHO_T}no" >&6
27869 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27870echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27871
27872ac_find_libraries=
27873for ac_dir in $SEARCH_LIB /usr/lib;
27874 do
27875 for ac_extension in a so sl dylib; do
27876 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27877 ac_find_libraries=$ac_dir
27878 break 2
27879 fi
27880 done
27881 done
27882
27883 if test "$ac_find_libraries" != "" ; then
27884
27885 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27886 result=$?
27887 if test $result = 0; then
27888 ac_path_to_link=""
27889 else
27890 ac_path_to_link=" -L$ac_find_libraries"
27891 fi
27892
27893 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27894 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27895 echo "$as_me:$LINENO: result: yes" >&5
27896echo "${ECHO_T}yes" >&6
27897 else
27898 echo "$as_me:$LINENO: result: no" >&5
27899echo "${ECHO_T}no" >&6
27900 fi
27901 fi
27902
27903fi
27904
27905
27906
27907 if test "x$OPENGL_LIBS" = "x"; then
27908 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27909echo "$as_me: error: OpenGL libraries not available" >&2;}
27910 { (exit 1); exit 1; }; }
27911 fi
27912 fi
27913
27914 if test "$wxUSE_OPENGL" = "yes"; then
27915 USE_OPENGL=1
27916 cat >>confdefs.h <<\_ACEOF
27917#define wxUSE_OPENGL 1
27918_ACEOF
27919
27920 cat >>confdefs.h <<\_ACEOF
27921#define wxUSE_GLCANVAS 1
27922_ACEOF
27923
27924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27925 fi
27926fi
27927
a848cd7e
SC
27928
27929if test -n "$TOOLKIT" ; then
27930 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27931fi
27932
a848cd7e
SC
27933
27934
27935if test "$wxUSE_SHARED" = "yes"; then
27936 case "${host}" in
27937 *-pc-msdosdjgpp )
27938 wxUSE_SHARED=no
27939 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27940echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27941 ;;
27942 esac
27943fi
27944
a848cd7e 27945if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27946
27947
27948 found_versioning=no
27949
27950
27951 if test $found_versioning = no ; then
27952 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27953echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27954if test "${wx_cv_version_script+set}" = set; then
27955 echo $ECHO_N "(cached) $ECHO_C" >&6
27956else
27957
27958 echo "VER_1 { *; };" >conftest.sym
27959 echo "int main() { return 0; }" >conftest.cpp
27960
27961 if { ac_try='
27962 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27963 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965 (eval $ac_try) 2>&5
27966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; } ; then
27969 if test -s conftest.stderr ; then
27970 wx_cv_version_script=no
27971 else
27972 wx_cv_version_script=yes
27973 fi
27974 else
27975 wx_cv_version_script=no
27976 fi
27977 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27978
27979fi
27980echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27981echo "${ECHO_T}$wx_cv_version_script" >&6
27982 if test $wx_cv_version_script = yes ; then
27983 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27984 fi
27985 fi
27986
27987
27988 case "${host}" in
27989 *-*-linux* | *-*-gnu* )
27990 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 27991 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
27992 ;;
27993
27994 *-*-solaris2* )
27995 if test "$GCC" = yes ; then
27996 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27997
27998 saveLdflags="$LDFLAGS"
27999 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28000 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28001echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28002 cat >conftest.$ac_ext <<_ACEOF
28003/* confdefs.h. */
28004_ACEOF
28005cat confdefs.h >>conftest.$ac_ext
28006cat >>conftest.$ac_ext <<_ACEOF
28007/* end confdefs.h. */
28008
28009int
28010main ()
28011{
28012
28013 ;
28014 return 0;
28015}
28016_ACEOF
28017rm -f conftest.$ac_objext conftest$ac_exeext
28018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28019 (eval $ac_link) 2>conftest.er1
a848cd7e 28020 ac_status=$?
ac1cb8d3
VS
28021 grep -v '^ *+' conftest.er1 >conftest.err
28022 rm -f conftest.er1
28023 cat conftest.err >&5
a848cd7e
SC
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); } &&
fc480dc1
DE
28026 { ac_try='test -z "$ac_c_werror_flag"
28027 || test ! -s conftest.err'
ac1cb8d3
VS
28028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28029 (eval $ac_try) 2>&5
28030 ac_status=$?
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); }; } &&
28033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035 (eval $ac_try) 2>&5
28036 ac_status=$?
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; }; then
28039
28040 echo "$as_me:$LINENO: result: yes" >&5
28041echo "${ECHO_T}yes" >&6
28042 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28043 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28044
28045else
28046 echo "$as_me: failed program was:" >&5
28047sed 's/^/| /' conftest.$ac_ext >&5
28048
28049
28050 echo "$as_me:$LINENO: result: no" >&5
28051echo "${ECHO_T}no" >&6
28052 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28053echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28054 LDFLAGS="$saveLdflags -Wl,-R,/"
28055 cat >conftest.$ac_ext <<_ACEOF
28056/* confdefs.h. */
28057_ACEOF
28058cat confdefs.h >>conftest.$ac_ext
28059cat >>conftest.$ac_ext <<_ACEOF
28060/* end confdefs.h. */
28061
28062int
28063main ()
28064{
28065
28066 ;
28067 return 0;
28068}
28069_ACEOF
28070rm -f conftest.$ac_objext conftest$ac_exeext
28071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28072 (eval $ac_link) 2>conftest.er1
a848cd7e 28073 ac_status=$?
ac1cb8d3
VS
28074 grep -v '^ *+' conftest.er1 >conftest.err
28075 rm -f conftest.er1
28076 cat conftest.err >&5
a848cd7e
SC
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); } &&
fc480dc1
DE
28079 { ac_try='test -z "$ac_c_werror_flag"
28080 || test ! -s conftest.err'
ac1cb8d3
VS
28081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082 (eval $ac_try) 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; } &&
28086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088 (eval $ac_try) 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
28092
ffa0583f 28093 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28094echo "${ECHO_T}yes" >&6
ffa0583f
RL
28095 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28096 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28097
a848cd7e
SC
28098else
28099 echo "$as_me: failed program was:" >&5
28100sed 's/^/| /' conftest.$ac_ext >&5
28101
28102
28103 echo "$as_me:$LINENO: result: no" >&5
28104echo "${ECHO_T}no" >&6
28105
28106fi
ac1cb8d3
VS
28107rm -f conftest.err conftest.$ac_objext \
28108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28109
28110fi
ac1cb8d3
VS
28111rm -f conftest.err conftest.$ac_objext \
28112 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28113 LDFLAGS="$saveLdflags"
28114 else
a848cd7e 28115 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28116 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28117 fi
28118 ;;
28119
28120 powerpc-*-darwin* )
28121 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28122 cat <<EOF >change-install-names
28123#!/bin/sh
28124libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28125inst_cmd="install_name_tool "
28126for i in \${libnames} ; do
28127 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28128done
28129\${inst_cmd} \${3}
28130EOF
28131 chmod +x change-install-names
28132 ;;
28133
28134 *-*-cygwin* | *-*-mingw32* )
28135 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28136 ;;
28137
28138 esac
ceec2216 28139
ffa0583f
RL
28140 if test $wxUSE_RPATH = "no"; then
28141 SAMPLES_RPATH_FLAG=''
28142 SAMPLES_RPATH_POSTLINK=''
28143 WXCONFIG_RPATH=''
28144 fi
28145
28146 SHARED=1
28147
28148else
28149
ceec2216
RL
28150 config_linkage_component="-static"
28151 SHARED=0
ffa0583f 28152
ceec2216 28153fi
a848cd7e 28154
a848cd7e 28155
ceec2216
RL
28156UNICODE=0
28157lib_unicode_suffix=
28158WX_CHARTYPE="ansi"
28159if test "$wxUSE_UNICODE" = "yes"; then
28160 lib_unicode_suffix=u
28161 WX_CHARTYPE="unicode"
28162 UNICODE=1
a848cd7e
SC
28163fi
28164
ceec2216
RL
28165lib_debug_suffix=
28166WX_DEBUGTYPE="release"
28167DEBUG_FLAG=0
28168if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28169 lib_debug_suffix=d
28170 WX_DEBUGTYPE="debug"
28171 DEBUG_FLAG=1
28172fi
a848cd7e 28173
ceec2216
RL
28174WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28175WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28176
ceec2216
RL
28177DEBUG_INFO=0
28178if test "$wxUSE_DEBUG_INFO" = "yes"; then
28179 DEBUG_INFO=1
28180fi
a848cd7e 28181
ceec2216 28182WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28183
ceec2216 28184TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28185
ceec2216 28186TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28187
ceec2216
RL
28188if test "$cross_compiling" = "yes"; then
28189 HOST_SUFFIX="-$host_alias"
28190 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28191 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28192fi
28193
dd21ced8 28194WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28195WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28196
28197
28198
a848cd7e 28199if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28200 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28201 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28202
a848cd7e 28203 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28204
28205 # Extract the first word of "Rez", so it can be a program name with args.
28206set dummy Rez; ac_word=$2
28207echo "$as_me:$LINENO: checking for $ac_word" >&5
28208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28209if test "${ac_cv_prog_RESCOMP+set}" = set; then
28210 echo $ECHO_N "(cached) $ECHO_C" >&6
28211else
28212 if test -n "$RESCOMP"; then
28213 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28214else
28215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28216for as_dir in $PATH
28217do
28218 IFS=$as_save_IFS
28219 test -z "$as_dir" && as_dir=.
28220 for ac_exec_ext in '' $ac_executable_extensions; do
28221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28222 ac_cv_prog_RESCOMP="Rez"
28223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28224 break 2
28225 fi
28226done
28227done
28228
28229 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28230fi
28231fi
28232RESCOMP=$ac_cv_prog_RESCOMP
28233if test -n "$RESCOMP"; then
28234 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28235echo "${ECHO_T}$RESCOMP" >&6
28236else
28237 echo "$as_me:$LINENO: result: no" >&5
28238echo "${ECHO_T}no" >&6
28239fi
28240
28241 # Extract the first word of "DeRez", so it can be a program name with args.
28242set dummy DeRez; ac_word=$2
28243echo "$as_me:$LINENO: checking for $ac_word" >&5
28244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28245if test "${ac_cv_prog_DEREZ+set}" = set; then
28246 echo $ECHO_N "(cached) $ECHO_C" >&6
28247else
28248 if test -n "$DEREZ"; then
28249 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28250else
28251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28252for as_dir in $PATH
28253do
28254 IFS=$as_save_IFS
28255 test -z "$as_dir" && as_dir=.
28256 for ac_exec_ext in '' $ac_executable_extensions; do
28257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28258 ac_cv_prog_DEREZ="DeRez"
28259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28260 break 2
28261 fi
28262done
28263done
28264
28265 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28266fi
28267fi
28268DEREZ=$ac_cv_prog_DEREZ
28269if test -n "$DEREZ"; then
28270 echo "$as_me:$LINENO: result: $DEREZ" >&5
28271echo "${ECHO_T}$DEREZ" >&6
28272else
28273 echo "$as_me:$LINENO: result: no" >&5
28274echo "${ECHO_T}no" >&6
28275fi
28276
28277 # Extract the first word of "SetFile", so it can be a program name with args.
28278set dummy SetFile; ac_word=$2
28279echo "$as_me:$LINENO: checking for $ac_word" >&5
28280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28281if test "${ac_cv_prog_SETFILE+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28283else
28284 if test -n "$SETFILE"; then
28285 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28286else
28287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28288for as_dir in $PATH
28289do
28290 IFS=$as_save_IFS
28291 test -z "$as_dir" && as_dir=.
28292 for ac_exec_ext in '' $ac_executable_extensions; do
28293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28294 ac_cv_prog_SETFILE="SetFile"
28295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28296 break 2
28297 fi
28298done
28299done
28300
28301 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28302fi
28303fi
28304SETFILE=$ac_cv_prog_SETFILE
28305if test -n "$SETFILE"; then
28306 echo "$as_me:$LINENO: result: $SETFILE" >&5
28307echo "${ECHO_T}$SETFILE" >&6
28308else
28309 echo "$as_me:$LINENO: result: no" >&5
28310echo "${ECHO_T}no" >&6
28311fi
28312
28313
28314 MACSETFILE="\$(SETFILE)"
28315
28316 if test "$wxUSE_MAC" = 1; then
28317 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28318
28319 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28320 else
28321 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28322 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28323 fi
28324else
ffa0583f
RL
28325 MACSETFILE="@true"
28326 MACRESWXCONFIG="@true"
a848cd7e
SC
28327
28328 if test "$wxUSE_PM" = 1; then
28329 MACRESCOMP="emxbind -ep"
28330 else
ffa0583f 28331 MACRESCOMP="@true"
a848cd7e
SC
28332 fi
28333fi
28334
28335
28336
28337echo "$as_me:$LINENO: checking for mode_t" >&5
28338echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28339if test "${ac_cv_type_mode_t+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28341else
28342 cat >conftest.$ac_ext <<_ACEOF
28343/* confdefs.h. */
28344_ACEOF
28345cat confdefs.h >>conftest.$ac_ext
28346cat >>conftest.$ac_ext <<_ACEOF
28347/* end confdefs.h. */
28348$ac_includes_default
28349int
28350main ()
28351{
28352if ((mode_t *) 0)
28353 return 0;
28354if (sizeof (mode_t))
28355 return 0;
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext
28361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28362 (eval $ac_compile) 2>conftest.er1
a848cd7e 28363 ac_status=$?
ac1cb8d3
VS
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
a848cd7e
SC
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
fc480dc1
DE
28369 { ac_try='test -z "$ac_c_werror_flag"
28370 || test ! -s conftest.err'
ac1cb8d3
VS
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; } &&
28376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; }; then
28382 ac_cv_type_mode_t=yes
28383else
28384 echo "$as_me: failed program was:" >&5
28385sed 's/^/| /' conftest.$ac_ext >&5
28386
28387ac_cv_type_mode_t=no
28388fi
ac1cb8d3 28389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28390fi
28391echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28392echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28393if test $ac_cv_type_mode_t = yes; then
28394 :
28395else
28396
28397cat >>confdefs.h <<_ACEOF
28398#define mode_t int
28399_ACEOF
28400
28401fi
28402
28403echo "$as_me:$LINENO: checking for off_t" >&5
28404echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28405if test "${ac_cv_type_off_t+set}" = set; then
28406 echo $ECHO_N "(cached) $ECHO_C" >&6
28407else
28408 cat >conftest.$ac_ext <<_ACEOF
28409/* confdefs.h. */
28410_ACEOF
28411cat confdefs.h >>conftest.$ac_ext
28412cat >>conftest.$ac_ext <<_ACEOF
28413/* end confdefs.h. */
28414$ac_includes_default
28415int
28416main ()
28417{
28418if ((off_t *) 0)
28419 return 0;
28420if (sizeof (off_t))
28421 return 0;
28422 ;
28423 return 0;
28424}
28425_ACEOF
28426rm -f conftest.$ac_objext
28427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28428 (eval $ac_compile) 2>conftest.er1
a848cd7e 28429 ac_status=$?
ac1cb8d3
VS
28430 grep -v '^ *+' conftest.er1 >conftest.err
28431 rm -f conftest.er1
28432 cat conftest.err >&5
a848cd7e
SC
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); } &&
fc480dc1
DE
28435 { ac_try='test -z "$ac_c_werror_flag"
28436 || test ! -s conftest.err'
ac1cb8d3
VS
28437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438 (eval $ac_try) 2>&5
28439 ac_status=$?
28440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); }; } &&
28442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28444 (eval $ac_try) 2>&5
28445 ac_status=$?
28446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); }; }; then
28448 ac_cv_type_off_t=yes
28449else
28450 echo "$as_me: failed program was:" >&5
28451sed 's/^/| /' conftest.$ac_ext >&5
28452
28453ac_cv_type_off_t=no
28454fi
ac1cb8d3 28455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28456fi
28457echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28458echo "${ECHO_T}$ac_cv_type_off_t" >&6
28459if test $ac_cv_type_off_t = yes; then
28460 :
28461else
28462
28463cat >>confdefs.h <<_ACEOF
28464#define off_t long
28465_ACEOF
28466
28467fi
28468
28469echo "$as_me:$LINENO: checking for pid_t" >&5
28470echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28471if test "${ac_cv_type_pid_t+set}" = set; then
28472 echo $ECHO_N "(cached) $ECHO_C" >&6
28473else
28474 cat >conftest.$ac_ext <<_ACEOF
28475/* confdefs.h. */
28476_ACEOF
28477cat confdefs.h >>conftest.$ac_ext
28478cat >>conftest.$ac_ext <<_ACEOF
28479/* end confdefs.h. */
28480$ac_includes_default
28481int
28482main ()
28483{
28484if ((pid_t *) 0)
28485 return 0;
28486if (sizeof (pid_t))
28487 return 0;
28488 ;
28489 return 0;
28490}
28491_ACEOF
28492rm -f conftest.$ac_objext
28493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28494 (eval $ac_compile) 2>conftest.er1
a848cd7e 28495 ac_status=$?
ac1cb8d3
VS
28496 grep -v '^ *+' conftest.er1 >conftest.err
28497 rm -f conftest.er1
28498 cat conftest.err >&5
a848cd7e
SC
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); } &&
fc480dc1
DE
28501 { ac_try='test -z "$ac_c_werror_flag"
28502 || test ! -s conftest.err'
ac1cb8d3
VS
28503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504 (eval $ac_try) 2>&5
28505 ac_status=$?
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; } &&
28508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; }; then
28514 ac_cv_type_pid_t=yes
28515else
28516 echo "$as_me: failed program was:" >&5
28517sed 's/^/| /' conftest.$ac_ext >&5
28518
28519ac_cv_type_pid_t=no
28520fi
ac1cb8d3 28521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28522fi
28523echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28524echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28525if test $ac_cv_type_pid_t = yes; then
28526 :
28527else
28528
28529cat >>confdefs.h <<_ACEOF
28530#define pid_t int
28531_ACEOF
28532
28533fi
28534
28535echo "$as_me:$LINENO: checking for size_t" >&5
28536echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28537if test "${ac_cv_type_size_t+set}" = set; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28539else
28540 cat >conftest.$ac_ext <<_ACEOF
28541/* confdefs.h. */
28542_ACEOF
28543cat confdefs.h >>conftest.$ac_ext
28544cat >>conftest.$ac_ext <<_ACEOF
28545/* end confdefs.h. */
28546$ac_includes_default
28547int
28548main ()
28549{
28550if ((size_t *) 0)
28551 return 0;
28552if (sizeof (size_t))
28553 return 0;
28554 ;
28555 return 0;
28556}
28557_ACEOF
28558rm -f conftest.$ac_objext
28559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28560 (eval $ac_compile) 2>conftest.er1
a848cd7e 28561 ac_status=$?
ac1cb8d3
VS
28562 grep -v '^ *+' conftest.er1 >conftest.err
28563 rm -f conftest.er1
28564 cat conftest.err >&5
a848cd7e
SC
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); } &&
fc480dc1
DE
28567 { ac_try='test -z "$ac_c_werror_flag"
28568 || test ! -s conftest.err'
ac1cb8d3
VS
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; } &&
28574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28577 ac_status=$?
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; }; then
28580 ac_cv_type_size_t=yes
28581else
28582 echo "$as_me: failed program was:" >&5
28583sed 's/^/| /' conftest.$ac_ext >&5
28584
28585ac_cv_type_size_t=no
28586fi
ac1cb8d3 28587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28588fi
28589echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28590echo "${ECHO_T}$ac_cv_type_size_t" >&6
28591if test $ac_cv_type_size_t = yes; then
28592 :
28593else
28594
28595cat >>confdefs.h <<_ACEOF
28596#define size_t unsigned
28597_ACEOF
28598
28599fi
28600
28601echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28602echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28603if test "${ac_cv_type_uid_t+set}" = set; then
28604 echo $ECHO_N "(cached) $ECHO_C" >&6
28605else
28606 cat >conftest.$ac_ext <<_ACEOF
28607/* confdefs.h. */
28608_ACEOF
28609cat confdefs.h >>conftest.$ac_ext
28610cat >>conftest.$ac_ext <<_ACEOF
28611/* end confdefs.h. */
28612#include <sys/types.h>
28613
28614_ACEOF
28615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28616 $EGREP "uid_t" >/dev/null 2>&1; then
28617 ac_cv_type_uid_t=yes
28618else
28619 ac_cv_type_uid_t=no
28620fi
28621rm -f conftest*
28622
28623fi
28624echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28625echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28626if test $ac_cv_type_uid_t = no; then
28627
28628cat >>confdefs.h <<\_ACEOF
28629#define uid_t int
28630_ACEOF
28631
28632
28633cat >>confdefs.h <<\_ACEOF
28634#define gid_t int
28635_ACEOF
28636
28637fi
28638
28639
d51253e8
RL
28640echo "$as_me:$LINENO: checking for ssize_t" >&5
28641echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28642if test "${ac_cv_type_ssize_t+set}" = set; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28644else
28645 cat >conftest.$ac_ext <<_ACEOF
28646/* confdefs.h. */
28647_ACEOF
28648cat confdefs.h >>conftest.$ac_ext
28649cat >>conftest.$ac_ext <<_ACEOF
28650/* end confdefs.h. */
28651$ac_includes_default
28652int
28653main ()
28654{
28655if ((ssize_t *) 0)
28656 return 0;
28657if (sizeof (ssize_t))
28658 return 0;
28659 ;
28660 return 0;
28661}
28662_ACEOF
28663rm -f conftest.$ac_objext
28664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28665 (eval $ac_compile) 2>conftest.er1
28666 ac_status=$?
28667 grep -v '^ *+' conftest.er1 >conftest.err
28668 rm -f conftest.er1
28669 cat conftest.err >&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } &&
fc480dc1
DE
28672 { ac_try='test -z "$ac_c_werror_flag"
28673 || test ! -s conftest.err'
d51253e8
RL
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28676 ac_status=$?
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; } &&
28679 { ac_try='test -s conftest.$ac_objext'
28680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28681 (eval $ac_try) 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
28685 ac_cv_type_ssize_t=yes
28686else
28687 echo "$as_me: failed program was:" >&5
28688sed 's/^/| /' conftest.$ac_ext >&5
28689
28690ac_cv_type_ssize_t=no
28691fi
28692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28693fi
28694echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28695echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28696if test $ac_cv_type_ssize_t = yes; then
28697
28698cat >>confdefs.h <<_ACEOF
28699#define HAVE_SSIZE_T 1
28700_ACEOF
28701
28702
28703fi
28704
28705
a848cd7e
SC
28706
28707
28708ac_ext=cc
28709ac_cpp='$CXXCPP $CPPFLAGS'
28710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28713
28714echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28715echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28716if test "${wx_cv_size_t_is_uint+set}" = set; then
28717 echo $ECHO_N "(cached) $ECHO_C" >&6
28718else
28719
28720 cat >conftest.$ac_ext <<_ACEOF
28721/* confdefs.h. */
28722_ACEOF
28723cat confdefs.h >>conftest.$ac_ext
28724cat >>conftest.$ac_ext <<_ACEOF
28725/* end confdefs.h. */
28726#include <stddef.h>
28727int
28728main ()
28729{
28730
28731 return 0; }
28732
28733 struct Foo { void foo(size_t); void foo(unsigned int); };
28734
28735 int bar() {
28736
28737 ;
28738 return 0;
28739}
28740_ACEOF
28741rm -f conftest.$ac_objext
28742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28743 (eval $ac_compile) 2>conftest.er1
a848cd7e 28744 ac_status=$?
ac1cb8d3
VS
28745 grep -v '^ *+' conftest.er1 >conftest.err
28746 rm -f conftest.er1
28747 cat conftest.err >&5
a848cd7e
SC
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } &&
fc480dc1
DE
28750 { ac_try='test -z "$ac_cxx_werror_flag"
28751 || test ! -s conftest.err'
ac1cb8d3
VS
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; } &&
28757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759 (eval $ac_try) 2>&5
28760 ac_status=$?
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); }; }; then
28763 wx_cv_size_t_is_uint=no
28764else
28765 echo "$as_me: failed program was:" >&5
28766sed 's/^/| /' conftest.$ac_ext >&5
28767
28768wx_cv_size_t_is_uint=yes
28769
28770fi
ac1cb8d3 28771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28772
28773
28774fi
28775echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28776echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28777
28778if test "$wx_cv_size_t_is_uint" = "yes"; then
28779 cat >>confdefs.h <<\_ACEOF
28780#define wxSIZE_T_IS_UINT 1
28781_ACEOF
28782
28783else
28784 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28785echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28786if test "${wx_cv_size_t_is_ulong+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28788else
28789 cat >conftest.$ac_ext <<_ACEOF
28790/* confdefs.h. */
28791_ACEOF
28792cat confdefs.h >>conftest.$ac_ext
28793cat >>conftest.$ac_ext <<_ACEOF
28794/* end confdefs.h. */
28795#include <stddef.h>
28796int
28797main ()
28798{
28799
28800 return 0; }
28801
28802 struct Foo { void foo(size_t); void foo(unsigned long); };
28803
28804 int bar() {
28805
28806 ;
28807 return 0;
28808}
28809_ACEOF
28810rm -f conftest.$ac_objext
28811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28812 (eval $ac_compile) 2>conftest.er1
a848cd7e 28813 ac_status=$?
ac1cb8d3
VS
28814 grep -v '^ *+' conftest.er1 >conftest.err
28815 rm -f conftest.er1
28816 cat conftest.err >&5
a848cd7e
SC
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); } &&
fc480dc1
DE
28819 { ac_try='test -z "$ac_cxx_werror_flag"
28820 || test ! -s conftest.err'
ac1cb8d3
VS
28821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822 (eval $ac_try) 2>&5
28823 ac_status=$?
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; } &&
28826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28828 (eval $ac_try) 2>&5
28829 ac_status=$?
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); }; }; then
28832 wx_cv_size_t_is_ulong=no
28833else
28834 echo "$as_me: failed program was:" >&5
28835sed 's/^/| /' conftest.$ac_ext >&5
28836
28837wx_cv_size_t_is_ulong=yes
28838
28839fi
ac1cb8d3 28840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28841
28842fi
28843echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28844echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28845
28846 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28847 cat >>confdefs.h <<\_ACEOF
28848#define wxSIZE_T_IS_ULONG 1
28849_ACEOF
28850
28851 fi
28852fi
28853
28854ac_ext=c
28855ac_cpp='$CPP $CPPFLAGS'
28856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28858ac_compiler_gnu=$ac_cv_c_compiler_gnu
28859
28860
28861
28862echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28863echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28864if test "${wx_cv_struct_pw_gecos+set}" = set; then
28865 echo $ECHO_N "(cached) $ECHO_C" >&6
28866else
28867
28868 cat >conftest.$ac_ext <<_ACEOF
28869/* confdefs.h. */
28870_ACEOF
28871cat confdefs.h >>conftest.$ac_ext
28872cat >>conftest.$ac_ext <<_ACEOF
28873/* end confdefs.h. */
28874#include <pwd.h>
28875int
28876main ()
28877{
28878
28879 char *p;
28880 struct passwd *pw;
28881 p = pw->pw_gecos;
28882
28883 ;
28884 return 0;
28885}
28886_ACEOF
28887rm -f conftest.$ac_objext
28888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28889 (eval $ac_compile) 2>conftest.er1
a848cd7e 28890 ac_status=$?
ac1cb8d3
VS
28891 grep -v '^ *+' conftest.er1 >conftest.err
28892 rm -f conftest.er1
28893 cat conftest.err >&5
a848cd7e
SC
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } &&
fc480dc1
DE
28896 { ac_try='test -z "$ac_c_werror_flag"
28897 || test ! -s conftest.err'
ac1cb8d3
VS
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909
28910 wx_cv_struct_pw_gecos=yes
28911
28912else
28913 echo "$as_me: failed program was:" >&5
28914sed 's/^/| /' conftest.$ac_ext >&5
28915
28916
28917 wx_cv_struct_pw_gecos=no
28918
28919
28920fi
ac1cb8d3 28921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28922
28923
28924fi
28925echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28926echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28927
28928if test "$wx_cv_struct_pw_gecos" = "yes"; then
28929 cat >>confdefs.h <<\_ACEOF
28930#define HAVE_PW_GECOS 1
28931_ACEOF
28932
28933fi
28934
28935
28936if test "$wx_cv_sizeof_wchar_t" != "0"; then
28937 cat >>confdefs.h <<\_ACEOF
28938#define wxUSE_WCHAR_T 1
28939_ACEOF
28940
28941
28942 WCSLEN_FOUND=0
28943 WCHAR_LINK=
28944
28945for ac_func in wcslen
28946do
28947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28948echo "$as_me:$LINENO: checking for $ac_func" >&5
28949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28950if eval "test \"\${$as_ac_var+set}\" = set"; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28952else
28953 cat >conftest.$ac_ext <<_ACEOF
28954/* confdefs.h. */
28955_ACEOF
28956cat confdefs.h >>conftest.$ac_ext
28957cat >>conftest.$ac_ext <<_ACEOF
28958/* end confdefs.h. */
ac1cb8d3
VS
28959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28961#define $ac_func innocuous_$ac_func
28962
a848cd7e
SC
28963/* System header to define __stub macros and hopefully few prototypes,
28964 which can conflict with char $ac_func (); below.
28965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28966 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28967
a848cd7e
SC
28968#ifdef __STDC__
28969# include <limits.h>
28970#else
28971# include <assert.h>
28972#endif
ac1cb8d3
VS
28973
28974#undef $ac_func
28975
a848cd7e
SC
28976/* Override any gcc2 internal prototype to avoid an error. */
28977#ifdef __cplusplus
28978extern "C"
28979{
28980#endif
28981/* We use char because int might match the return type of a gcc2
28982 builtin and then its argument prototype would still apply. */
28983char $ac_func ();
28984/* The GNU C library defines this for functions which it implements
28985 to always fail with ENOSYS. Some functions are actually named
28986 something starting with __ and the normal name is an alias. */
28987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28988choke me
28989#else
28990char (*f) () = $ac_func;
28991#endif
28992#ifdef __cplusplus
28993}
28994#endif
28995
28996int
28997main ()
28998{
28999return f != $ac_func;
29000 ;
29001 return 0;
29002}
29003_ACEOF
29004rm -f conftest.$ac_objext conftest$ac_exeext
29005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29006 (eval $ac_link) 2>conftest.er1
a848cd7e 29007 ac_status=$?
ac1cb8d3
VS
29008 grep -v '^ *+' conftest.er1 >conftest.err
29009 rm -f conftest.er1
29010 cat conftest.err >&5
a848cd7e
SC
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
fc480dc1
DE
29013 { ac_try='test -z "$ac_c_werror_flag"
29014 || test ! -s conftest.err'
ac1cb8d3
VS
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; } &&
29020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 eval "$as_ac_var=yes"
29027else
29028 echo "$as_me: failed program was:" >&5
29029sed 's/^/| /' conftest.$ac_ext >&5
29030
29031eval "$as_ac_var=no"
29032fi
ac1cb8d3
VS
29033rm -f conftest.err conftest.$ac_objext \
29034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29035fi
29036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29038if test `eval echo '${'$as_ac_var'}'` = yes; then
29039 cat >>confdefs.h <<_ACEOF
29040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29041_ACEOF
29042 WCSLEN_FOUND=1
29043fi
29044done
29045
29046
29047 if test "$WCSLEN_FOUND" = 0; then
29048 if test "$TOOLKIT" = "MSW"; then
29049 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29050echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29051if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29052 echo $ECHO_N "(cached) $ECHO_C" >&6
29053else
29054 ac_check_lib_save_LIBS=$LIBS
29055LIBS="-lmsvcrt $LIBS"
29056cat >conftest.$ac_ext <<_ACEOF
29057/* confdefs.h. */
29058_ACEOF
29059cat confdefs.h >>conftest.$ac_ext
29060cat >>conftest.$ac_ext <<_ACEOF
29061/* end confdefs.h. */
29062
29063/* Override any gcc2 internal prototype to avoid an error. */
29064#ifdef __cplusplus
29065extern "C"
29066#endif
29067/* We use char because int might match the return type of a gcc2
29068 builtin and then its argument prototype would still apply. */
29069char wcslen ();
29070int
29071main ()
29072{
29073wcslen ();
29074 ;
29075 return 0;
29076}
29077_ACEOF
29078rm -f conftest.$ac_objext conftest$ac_exeext
29079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29080 (eval $ac_link) 2>conftest.er1
a848cd7e 29081 ac_status=$?
ac1cb8d3
VS
29082 grep -v '^ *+' conftest.er1 >conftest.err
29083 rm -f conftest.er1
29084 cat conftest.err >&5
a848cd7e
SC
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } &&
fc480dc1
DE
29087 { ac_try='test -z "$ac_c_werror_flag"
29088 || test ! -s conftest.err'
ac1cb8d3
VS
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29091 ac_status=$?
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; } &&
29094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29097 ac_status=$?
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; }; then
29100 ac_cv_lib_msvcrt_wcslen=yes
29101else
29102 echo "$as_me: failed program was:" >&5
29103sed 's/^/| /' conftest.$ac_ext >&5
29104
29105ac_cv_lib_msvcrt_wcslen=no
29106fi
ac1cb8d3
VS
29107rm -f conftest.err conftest.$ac_objext \
29108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29109LIBS=$ac_check_lib_save_LIBS
29110fi
29111echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29112echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29113if test $ac_cv_lib_msvcrt_wcslen = yes; then
29114 WCHAR_OK=1
29115fi
29116
29117 else
29118 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29119echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29120if test "${ac_cv_lib_w_wcslen+set}" = set; then
29121 echo $ECHO_N "(cached) $ECHO_C" >&6
29122else
29123 ac_check_lib_save_LIBS=$LIBS
29124LIBS="-lw $LIBS"
29125cat >conftest.$ac_ext <<_ACEOF
29126/* confdefs.h. */
29127_ACEOF
29128cat confdefs.h >>conftest.$ac_ext
29129cat >>conftest.$ac_ext <<_ACEOF
29130/* end confdefs.h. */
29131
29132/* Override any gcc2 internal prototype to avoid an error. */
29133#ifdef __cplusplus
29134extern "C"
29135#endif
29136/* We use char because int might match the return type of a gcc2
29137 builtin and then its argument prototype would still apply. */
29138char wcslen ();
29139int
29140main ()
29141{
29142wcslen ();
29143 ;
29144 return 0;
29145}
29146_ACEOF
29147rm -f conftest.$ac_objext conftest$ac_exeext
29148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29149 (eval $ac_link) 2>conftest.er1
a848cd7e 29150 ac_status=$?
ac1cb8d3
VS
29151 grep -v '^ *+' conftest.er1 >conftest.err
29152 rm -f conftest.er1
29153 cat conftest.err >&5
a848cd7e
SC
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } &&
fc480dc1
DE
29156 { ac_try='test -z "$ac_c_werror_flag"
29157 || test ! -s conftest.err'
ac1cb8d3
VS
29158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159 (eval $ac_try) 2>&5
29160 ac_status=$?
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); }; } &&
29163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165 (eval $ac_try) 2>&5
29166 ac_status=$?
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; }; then
29169 ac_cv_lib_w_wcslen=yes
29170else
29171 echo "$as_me: failed program was:" >&5
29172sed 's/^/| /' conftest.$ac_ext >&5
29173
29174ac_cv_lib_w_wcslen=no
29175fi
ac1cb8d3
VS
29176rm -f conftest.err conftest.$ac_objext \
29177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29178LIBS=$ac_check_lib_save_LIBS
29179fi
29180echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29181echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29182if test $ac_cv_lib_w_wcslen = yes; then
29183
29184 WCHAR_LINK=" -lw"
29185 WCSLEN_FOUND=1
29186
29187fi
29188
29189 fi
29190 fi
29191
29192 if test "$WCSLEN_FOUND" = 1; then
29193 cat >>confdefs.h <<\_ACEOF
29194#define HAVE_WCSLEN 1
29195_ACEOF
29196
29197 fi
29198
473276a9
VS
29199 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29200 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29201 fi
29202
a848cd7e
SC
29203
29204for ac_func in wcsrtombs
29205do
29206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29207echo "$as_me:$LINENO: checking for $ac_func" >&5
29208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29209if eval "test \"\${$as_ac_var+set}\" = set"; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29211else
29212 cat >conftest.$ac_ext <<_ACEOF
29213/* confdefs.h. */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h. */
ac1cb8d3
VS
29218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29220#define $ac_func innocuous_$ac_func
29221
a848cd7e
SC
29222/* System header to define __stub macros and hopefully few prototypes,
29223 which can conflict with char $ac_func (); below.
29224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29225 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29226
a848cd7e
SC
29227#ifdef __STDC__
29228# include <limits.h>
29229#else
29230# include <assert.h>
29231#endif
ac1cb8d3
VS
29232
29233#undef $ac_func
29234
a848cd7e
SC
29235/* Override any gcc2 internal prototype to avoid an error. */
29236#ifdef __cplusplus
29237extern "C"
29238{
29239#endif
29240/* We use char because int might match the return type of a gcc2
29241 builtin and then its argument prototype would still apply. */
29242char $ac_func ();
29243/* The GNU C library defines this for functions which it implements
29244 to always fail with ENOSYS. Some functions are actually named
29245 something starting with __ and the normal name is an alias. */
29246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29247choke me
29248#else
29249char (*f) () = $ac_func;
29250#endif
29251#ifdef __cplusplus
29252}
29253#endif
29254
29255int
29256main ()
29257{
29258return f != $ac_func;
29259 ;
29260 return 0;
29261}
29262_ACEOF
29263rm -f conftest.$ac_objext conftest$ac_exeext
29264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29265 (eval $ac_link) 2>conftest.er1
a848cd7e 29266 ac_status=$?
ac1cb8d3
VS
29267 grep -v '^ *+' conftest.er1 >conftest.err
29268 rm -f conftest.er1
29269 cat conftest.err >&5
a848cd7e
SC
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } &&
fc480dc1
DE
29272 { ac_try='test -z "$ac_c_werror_flag"
29273 || test ! -s conftest.err'
ac1cb8d3
VS
29274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275 (eval $ac_try) 2>&5
29276 ac_status=$?
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); }; } &&
29279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29281 (eval $ac_try) 2>&5
29282 ac_status=$?
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; }; then
29285 eval "$as_ac_var=yes"
29286else
29287 echo "$as_me: failed program was:" >&5
29288sed 's/^/| /' conftest.$ac_ext >&5
29289
29290eval "$as_ac_var=no"
29291fi
ac1cb8d3
VS
29292rm -f conftest.err conftest.$ac_objext \
29293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29294fi
29295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29297if test `eval echo '${'$as_ac_var'}'` = yes; then
29298 cat >>confdefs.h <<_ACEOF
29299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29300_ACEOF
29301
29302fi
29303done
29304
29305else
29306 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29307echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29308fi
29309
29310
29311
29312ac_ext=cc
29313ac_cpp='$CXXCPP $CPPFLAGS'
29314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29317
29318
29319
29320for ac_func in vsnprintf
29321do
29322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29323echo "$as_me:$LINENO: checking for $ac_func" >&5
29324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29325if eval "test \"\${$as_ac_var+set}\" = set"; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29327else
29328 cat >conftest.$ac_ext <<_ACEOF
29329/* confdefs.h. */
29330_ACEOF
29331cat confdefs.h >>conftest.$ac_ext
29332cat >>conftest.$ac_ext <<_ACEOF
29333/* end confdefs.h. */
ac1cb8d3
VS
29334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29336#define $ac_func innocuous_$ac_func
29337
a848cd7e
SC
29338/* System header to define __stub macros and hopefully few prototypes,
29339 which can conflict with char $ac_func (); below.
29340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29341 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29342
a848cd7e
SC
29343#ifdef __STDC__
29344# include <limits.h>
29345#else
29346# include <assert.h>
29347#endif
ac1cb8d3
VS
29348
29349#undef $ac_func
29350
a848cd7e
SC
29351/* Override any gcc2 internal prototype to avoid an error. */
29352#ifdef __cplusplus
29353extern "C"
29354{
29355#endif
29356/* We use char because int might match the return type of a gcc2
29357 builtin and then its argument prototype would still apply. */
29358char $ac_func ();
29359/* The GNU C library defines this for functions which it implements
29360 to always fail with ENOSYS. Some functions are actually named
29361 something starting with __ and the normal name is an alias. */
29362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29363choke me
29364#else
29365char (*f) () = $ac_func;
29366#endif
29367#ifdef __cplusplus
29368}
29369#endif
29370
29371int
29372main ()
29373{
29374return f != $ac_func;
29375 ;
29376 return 0;
29377}
29378_ACEOF
29379rm -f conftest.$ac_objext conftest$ac_exeext
29380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29381 (eval $ac_link) 2>conftest.er1
a848cd7e 29382 ac_status=$?
ac1cb8d3
VS
29383 grep -v '^ *+' conftest.er1 >conftest.err
29384 rm -f conftest.er1
29385 cat conftest.err >&5
a848cd7e
SC
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); } &&
fc480dc1
DE
29388 { ac_try='test -z "$ac_cxx_werror_flag"
29389 || test ! -s conftest.err'
ac1cb8d3
VS
29390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 (eval $ac_try) 2>&5
29392 ac_status=$?
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; } &&
29395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29398 ac_status=$?
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; }; then
29401 eval "$as_ac_var=yes"
29402else
29403 echo "$as_me: failed program was:" >&5
29404sed 's/^/| /' conftest.$ac_ext >&5
29405
29406eval "$as_ac_var=no"
29407fi
ac1cb8d3
VS
29408rm -f conftest.err conftest.$ac_objext \
29409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29410fi
29411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29413if test `eval echo '${'$as_ac_var'}'` = yes; then
29414 cat >>confdefs.h <<_ACEOF
29415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29416_ACEOF
29417
29418fi
29419done
29420
29421
29422if test "$ac_cv_func_vsnprintf" = "yes"; then
29423 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29424echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29425if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29426 echo $ECHO_N "(cached) $ECHO_C" >&6
29427else
29428
29429 cat >conftest.$ac_ext <<_ACEOF
29430/* confdefs.h. */
29431_ACEOF
29432cat confdefs.h >>conftest.$ac_ext
29433cat >>conftest.$ac_ext <<_ACEOF
29434/* end confdefs.h. */
29435
29436 #include <stdio.h>
29437 #include <stdarg.h>
29438
29439int
29440main ()
29441{
29442
29443 char *buf;
29444 va_list ap;
29445 vsnprintf(buf, 10u, "%s", ap);
29446
29447 ;
29448 return 0;
29449}
29450_ACEOF
29451rm -f conftest.$ac_objext
29452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29453 (eval $ac_compile) 2>conftest.er1
a848cd7e 29454 ac_status=$?
ac1cb8d3
VS
29455 grep -v '^ *+' conftest.er1 >conftest.err
29456 rm -f conftest.er1
29457 cat conftest.err >&5
a848cd7e
SC
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); } &&
fc480dc1
DE
29460 { ac_try='test -z "$ac_cxx_werror_flag"
29461 || test ! -s conftest.err'
ac1cb8d3
VS
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29464 ac_status=$?
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; } &&
29467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; }; then
29473 wx_cv_func_vsnprintf_decl=yes
29474else
29475 echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
29478wx_cv_func_vsnprintf_decl=no
29479
29480fi
ac1cb8d3 29481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29482
29483
29484fi
29485echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29486echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29487
29488 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29489 cat >>confdefs.h <<\_ACEOF
29490#define HAVE_VSNPRINTF_DECL 1
29491_ACEOF
29492
29493 fi
29494fi
29495
29496if test "$wxUSE_UNICODE" = yes; then
29497
29498
29499
fbe47c7b
VS
29500
29501
29502
29503for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29504do
29505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29506echo "$as_me:$LINENO: checking for $ac_func" >&5
29507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29508if eval "test \"\${$as_ac_var+set}\" = set"; then
29509 echo $ECHO_N "(cached) $ECHO_C" >&6
29510else
29511 cat >conftest.$ac_ext <<_ACEOF
29512/* confdefs.h. */
29513_ACEOF
29514cat confdefs.h >>conftest.$ac_ext
29515cat >>conftest.$ac_ext <<_ACEOF
29516/* end confdefs.h. */
ac1cb8d3
VS
29517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29519#define $ac_func innocuous_$ac_func
29520
a848cd7e
SC
29521/* System header to define __stub macros and hopefully few prototypes,
29522 which can conflict with char $ac_func (); below.
29523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29524 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29525
a848cd7e
SC
29526#ifdef __STDC__
29527# include <limits.h>
29528#else
29529# include <assert.h>
29530#endif
ac1cb8d3
VS
29531
29532#undef $ac_func
29533
a848cd7e
SC
29534/* Override any gcc2 internal prototype to avoid an error. */
29535#ifdef __cplusplus
29536extern "C"
29537{
29538#endif
29539/* We use char because int might match the return type of a gcc2
29540 builtin and then its argument prototype would still apply. */
29541char $ac_func ();
29542/* The GNU C library defines this for functions which it implements
29543 to always fail with ENOSYS. Some functions are actually named
29544 something starting with __ and the normal name is an alias. */
29545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29546choke me
29547#else
29548char (*f) () = $ac_func;
29549#endif
29550#ifdef __cplusplus
29551}
29552#endif
29553
29554int
29555main ()
29556{
29557return f != $ac_func;
29558 ;
29559 return 0;
29560}
29561_ACEOF
29562rm -f conftest.$ac_objext conftest$ac_exeext
29563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29564 (eval $ac_link) 2>conftest.er1
a848cd7e 29565 ac_status=$?
ac1cb8d3
VS
29566 grep -v '^ *+' conftest.er1 >conftest.err
29567 rm -f conftest.er1
29568 cat conftest.err >&5
a848cd7e
SC
29569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); } &&
fc480dc1
DE
29571 { ac_try='test -z "$ac_cxx_werror_flag"
29572 || test ! -s conftest.err'
ac1cb8d3
VS
29573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29574 (eval $ac_try) 2>&5
29575 ac_status=$?
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); }; } &&
29578 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
29584 eval "$as_ac_var=yes"
29585else
29586 echo "$as_me: failed program was:" >&5
29587sed 's/^/| /' conftest.$ac_ext >&5
29588
29589eval "$as_ac_var=no"
29590fi
ac1cb8d3
VS
29591rm -f conftest.err conftest.$ac_objext \
29592 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29593fi
29594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29596if test `eval echo '${'$as_ac_var'}'` = yes; then
29597 cat >>confdefs.h <<_ACEOF
29598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29599_ACEOF
29600
29601fi
29602done
29603
29604
29605 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29606echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29607 cat >conftest.$ac_ext <<_ACEOF
29608/* confdefs.h. */
29609_ACEOF
29610cat confdefs.h >>conftest.$ac_ext
29611cat >>conftest.$ac_ext <<_ACEOF
29612/* end confdefs.h. */
29613#include <wchar.h>
29614int
29615main ()
29616{
29617&_vsnwprintf;
29618 ;
29619 return 0;
29620}
29621_ACEOF
29622rm -f conftest.$ac_objext
29623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29624 (eval $ac_compile) 2>conftest.er1
a848cd7e 29625 ac_status=$?
ac1cb8d3
VS
29626 grep -v '^ *+' conftest.er1 >conftest.err
29627 rm -f conftest.er1
29628 cat conftest.err >&5
a848cd7e
SC
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); } &&
fc480dc1
DE
29631 { ac_try='test -z "$ac_cxx_werror_flag"
29632 || test ! -s conftest.err'
ac1cb8d3
VS
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; } &&
29638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640 (eval $ac_try) 2>&5
29641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; }; then
29644 echo "$as_me:$LINENO: result: yes" >&5
29645echo "${ECHO_T}yes" >&6
29646 cat >>confdefs.h <<\_ACEOF
29647#define HAVE__VSNWPRINTF 1
29648_ACEOF
29649
29650else
29651 echo "$as_me: failed program was:" >&5
29652sed 's/^/| /' conftest.$ac_ext >&5
29653
29654echo "$as_me:$LINENO: result: no" >&5
29655echo "${ECHO_T}no" >&6
29656fi
ac1cb8d3 29657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29658fi
29659
29660ac_ext=c
29661ac_cpp='$CPP $CPPFLAGS'
29662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29664ac_compiler_gnu=$ac_cv_c_compiler_gnu
29665
29666
29667
29668
29669if test "$TOOLKIT" != "MSW"; then
29670
29671
29672
29673
29674ac_ext=cc
29675ac_cpp='$CXXCPP $CPPFLAGS'
29676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29679
29680
29681
29682
29683# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29684if test "${with_libiconv_prefix+set}" = set; then
29685 withval="$with_libiconv_prefix"
29686
29687 for dir in `echo "$withval" | tr : ' '`; do
29688 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29689 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29690 done
29691
29692fi;
29693
29694 echo "$as_me:$LINENO: checking for iconv" >&5
29695echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29696if test "${am_cv_func_iconv+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29698else
29699
29700 am_cv_func_iconv="no, consider installing GNU libiconv"
29701 am_cv_lib_iconv=no
29702 cat >conftest.$ac_ext <<_ACEOF
29703/* confdefs.h. */
29704_ACEOF
29705cat confdefs.h >>conftest.$ac_ext
29706cat >>conftest.$ac_ext <<_ACEOF
29707/* end confdefs.h. */
29708#include <stdlib.h>
29709#include <iconv.h>
29710int
29711main ()
29712{
29713iconv_t cd = iconv_open("","");
29714 iconv(cd,NULL,NULL,NULL,NULL);
29715 iconv_close(cd);
29716 ;
29717 return 0;
29718}
29719_ACEOF
29720rm -f conftest.$ac_objext conftest$ac_exeext
29721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29722 (eval $ac_link) 2>conftest.er1
a848cd7e 29723 ac_status=$?
ac1cb8d3
VS
29724 grep -v '^ *+' conftest.er1 >conftest.err
29725 rm -f conftest.er1
29726 cat conftest.err >&5
a848cd7e
SC
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } &&
fc480dc1
DE
29729 { ac_try='test -z "$ac_cxx_werror_flag"
29730 || test ! -s conftest.err'
ac1cb8d3
VS
29731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732 (eval $ac_try) 2>&5
29733 ac_status=$?
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); }; } &&
29736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29739 ac_status=$?
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; }; then
29742 am_cv_func_iconv=yes
29743else
29744 echo "$as_me: failed program was:" >&5
29745sed 's/^/| /' conftest.$ac_ext >&5
29746
29747fi
ac1cb8d3
VS
29748rm -f conftest.err conftest.$ac_objext \
29749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29750 if test "$am_cv_func_iconv" != yes; then
29751 am_save_LIBS="$LIBS"
29752 LIBS="$LIBS -liconv"
29753 cat >conftest.$ac_ext <<_ACEOF
29754/* confdefs.h. */
29755_ACEOF
29756cat confdefs.h >>conftest.$ac_ext
29757cat >>conftest.$ac_ext <<_ACEOF
29758/* end confdefs.h. */
29759#include <stdlib.h>
29760#include <iconv.h>
29761int
29762main ()
29763{
29764iconv_t cd = iconv_open("","");
29765 iconv(cd,NULL,NULL,NULL,NULL);
29766 iconv_close(cd);
29767 ;
29768 return 0;
29769}
29770_ACEOF
29771rm -f conftest.$ac_objext conftest$ac_exeext
29772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29773 (eval $ac_link) 2>conftest.er1
a848cd7e 29774 ac_status=$?
ac1cb8d3
VS
29775 grep -v '^ *+' conftest.er1 >conftest.err
29776 rm -f conftest.er1
29777 cat conftest.err >&5
a848cd7e
SC
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); } &&
fc480dc1
DE
29780 { ac_try='test -z "$ac_cxx_werror_flag"
29781 || test ! -s conftest.err'
ac1cb8d3
VS
29782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783 (eval $ac_try) 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; } &&
29787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29789 (eval $ac_try) 2>&5
29790 ac_status=$?
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); }; }; then
29793 am_cv_lib_iconv=yes
29794 am_cv_func_iconv=yes
29795else
29796 echo "$as_me: failed program was:" >&5
29797sed 's/^/| /' conftest.$ac_ext >&5
29798
29799fi
ac1cb8d3
VS
29800rm -f conftest.err conftest.$ac_objext \
29801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29802 LIBS="$am_save_LIBS"
29803 fi
29804
29805fi
29806echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29807echo "${ECHO_T}$am_cv_func_iconv" >&6
29808 if test "$am_cv_func_iconv" = yes; then
29809
29810cat >>confdefs.h <<\_ACEOF
29811#define HAVE_ICONV 1
29812_ACEOF
29813
29814 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29815echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29816if test "${wx_cv_func_iconv_const+set}" = set; then
29817 echo $ECHO_N "(cached) $ECHO_C" >&6
29818else
29819 cat >conftest.$ac_ext <<_ACEOF
29820/* confdefs.h. */
29821_ACEOF
29822cat confdefs.h >>conftest.$ac_ext
29823cat >>conftest.$ac_ext <<_ACEOF
29824/* end confdefs.h. */
29825
29826#include <stdlib.h>
29827#include <iconv.h>
29828extern
29829#ifdef __cplusplus
29830"C"
29831#endif
29832#if defined(__STDC__) || defined(__cplusplus)
29833size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29834#else
29835size_t iconv();
29836#endif
29837
29838int
29839main ()
29840{
29841
29842 ;
29843 return 0;
29844}
29845_ACEOF
29846rm -f conftest.$ac_objext
29847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29848 (eval $ac_compile) 2>conftest.er1
a848cd7e 29849 ac_status=$?
ac1cb8d3
VS
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
a848cd7e
SC
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } &&
fc480dc1
DE
29855 { ac_try='test -z "$ac_cxx_werror_flag"
29856 || test ! -s conftest.err'
ac1cb8d3
VS
29857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858 (eval $ac_try) 2>&5
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; } &&
29862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864 (eval $ac_try) 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; }; then
29868 wx_cv_func_iconv_const="no"
29869else
29870 echo "$as_me: failed program was:" >&5
29871sed 's/^/| /' conftest.$ac_ext >&5
29872
29873wx_cv_func_iconv_const="yes"
29874
29875fi
ac1cb8d3 29876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29877
29878fi
29879echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29880echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29881
29882 iconv_const=
29883 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29884 iconv_const="const"
29885 fi
29886
29887
29888cat >>confdefs.h <<_ACEOF
29889#define ICONV_CONST $iconv_const
29890_ACEOF
29891
29892 fi
29893 LIBICONV=
29894 if test "$am_cv_lib_iconv" = yes; then
29895 LIBICONV="-liconv"
29896 fi
29897
29898
29899LIBS="$LIBICONV $LIBS"
29900ac_ext=c
29901ac_cpp='$CPP $CPPFLAGS'
29902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29904ac_compiler_gnu=$ac_cv_c_compiler_gnu
29905
29906
29907if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29908
29909for ac_func in sigaction
29910do
29911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29912echo "$as_me:$LINENO: checking for $ac_func" >&5
29913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29914if eval "test \"\${$as_ac_var+set}\" = set"; then
29915 echo $ECHO_N "(cached) $ECHO_C" >&6
29916else
29917 cat >conftest.$ac_ext <<_ACEOF
29918/* confdefs.h. */
29919_ACEOF
29920cat confdefs.h >>conftest.$ac_ext
29921cat >>conftest.$ac_ext <<_ACEOF
29922/* end confdefs.h. */
ac1cb8d3
VS
29923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29925#define $ac_func innocuous_$ac_func
29926
a848cd7e
SC
29927/* System header to define __stub macros and hopefully few prototypes,
29928 which can conflict with char $ac_func (); below.
29929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29930 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29931
a848cd7e
SC
29932#ifdef __STDC__
29933# include <limits.h>
29934#else
29935# include <assert.h>
29936#endif
ac1cb8d3
VS
29937
29938#undef $ac_func
29939
a848cd7e
SC
29940/* Override any gcc2 internal prototype to avoid an error. */
29941#ifdef __cplusplus
29942extern "C"
29943{
29944#endif
29945/* We use char because int might match the return type of a gcc2
29946 builtin and then its argument prototype would still apply. */
29947char $ac_func ();
29948/* The GNU C library defines this for functions which it implements
29949 to always fail with ENOSYS. Some functions are actually named
29950 something starting with __ and the normal name is an alias. */
29951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29952choke me
29953#else
29954char (*f) () = $ac_func;
29955#endif
29956#ifdef __cplusplus
29957}
29958#endif
29959
29960int
29961main ()
29962{
29963return f != $ac_func;
29964 ;
29965 return 0;
29966}
29967_ACEOF
29968rm -f conftest.$ac_objext conftest$ac_exeext
29969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29970 (eval $ac_link) 2>conftest.er1
a848cd7e 29971 ac_status=$?
ac1cb8d3
VS
29972 grep -v '^ *+' conftest.er1 >conftest.err
29973 rm -f conftest.er1
29974 cat conftest.err >&5
a848cd7e
SC
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); } &&
fc480dc1
DE
29977 { ac_try='test -z "$ac_c_werror_flag"
29978 || test ! -s conftest.err'
ac1cb8d3
VS
29979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29980 (eval $ac_try) 2>&5
29981 ac_status=$?
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; } &&
29984 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 (eval $ac_try) 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; }; then
29990 eval "$as_ac_var=yes"
29991else
29992 echo "$as_me: failed program was:" >&5
29993sed 's/^/| /' conftest.$ac_ext >&5
29994
29995eval "$as_ac_var=no"
29996fi
ac1cb8d3
VS
29997rm -f conftest.err conftest.$ac_objext \
29998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29999fi
30000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30002if test `eval echo '${'$as_ac_var'}'` = yes; then
30003 cat >>confdefs.h <<_ACEOF
30004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30005_ACEOF
30006
30007fi
30008done
30009
30010
30011 if test "$ac_cv_func_sigaction" = "no"; then
30012 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30013echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30014 wxUSE_ON_FATAL_EXCEPTION=no
30015 fi
30016
30017 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30018
30019
30020 ac_ext=cc
30021ac_cpp='$CXXCPP $CPPFLAGS'
30022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30025
30026
30027 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30028echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30029if test "${wx_cv_type_sa_handler+set}" = set; then
30030 echo $ECHO_N "(cached) $ECHO_C" >&6
30031else
30032
30033 cat >conftest.$ac_ext <<_ACEOF
30034/* confdefs.h. */
30035_ACEOF
30036cat confdefs.h >>conftest.$ac_ext
30037cat >>conftest.$ac_ext <<_ACEOF
30038/* end confdefs.h. */
30039#include <signal.h>
30040int
30041main ()
30042{
30043
30044 extern void testSigHandler(int);
30045
30046 struct sigaction sa;
30047 sa.sa_handler = testSigHandler;
30048
30049 ;
30050 return 0;
30051}
30052_ACEOF
30053rm -f conftest.$ac_objext
30054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30055 (eval $ac_compile) 2>conftest.er1
a848cd7e 30056 ac_status=$?
ac1cb8d3
VS
30057 grep -v '^ *+' conftest.er1 >conftest.err
30058 rm -f conftest.er1
30059 cat conftest.err >&5
a848cd7e
SC
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); } &&
fc480dc1
DE
30062 { ac_try='test -z "$ac_cxx_werror_flag"
30063 || test ! -s conftest.err'
ac1cb8d3
VS
30064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065 (eval $ac_try) 2>&5
30066 ac_status=$?
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30072 ac_status=$?
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075
30076 wx_cv_type_sa_handler=int
30077
30078else
30079 echo "$as_me: failed program was:" >&5
30080sed 's/^/| /' conftest.$ac_ext >&5
30081
30082
30083 wx_cv_type_sa_handler=void
30084
30085fi
ac1cb8d3 30086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30087
30088fi
30089echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30090echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30091
30092 ac_ext=c
30093ac_cpp='$CPP $CPPFLAGS'
30094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30096ac_compiler_gnu=$ac_cv_c_compiler_gnu
30097
30098
30099 cat >>confdefs.h <<_ACEOF
30100#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30101_ACEOF
30102
30103 fi
30104fi
30105
30106
30107
30108for ac_func in mkstemp mktemp
30109do
30110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30111echo "$as_me:$LINENO: checking for $ac_func" >&5
30112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30113if eval "test \"\${$as_ac_var+set}\" = set"; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30115else
30116 cat >conftest.$ac_ext <<_ACEOF
30117/* confdefs.h. */
30118_ACEOF
30119cat confdefs.h >>conftest.$ac_ext
30120cat >>conftest.$ac_ext <<_ACEOF
30121/* end confdefs.h. */
ac1cb8d3
VS
30122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30124#define $ac_func innocuous_$ac_func
30125
a848cd7e
SC
30126/* System header to define __stub macros and hopefully few prototypes,
30127 which can conflict with char $ac_func (); below.
30128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30129 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30130
a848cd7e
SC
30131#ifdef __STDC__
30132# include <limits.h>
30133#else
30134# include <assert.h>
30135#endif
ac1cb8d3
VS
30136
30137#undef $ac_func
30138
a848cd7e
SC
30139/* Override any gcc2 internal prototype to avoid an error. */
30140#ifdef __cplusplus
30141extern "C"
30142{
30143#endif
30144/* We use char because int might match the return type of a gcc2
30145 builtin and then its argument prototype would still apply. */
30146char $ac_func ();
30147/* The GNU C library defines this for functions which it implements
30148 to always fail with ENOSYS. Some functions are actually named
30149 something starting with __ and the normal name is an alias. */
30150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30151choke me
30152#else
30153char (*f) () = $ac_func;
30154#endif
30155#ifdef __cplusplus
30156}
30157#endif
30158
30159int
30160main ()
30161{
30162return f != $ac_func;
30163 ;
30164 return 0;
30165}
30166_ACEOF
30167rm -f conftest.$ac_objext conftest$ac_exeext
30168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30169 (eval $ac_link) 2>conftest.er1
a848cd7e 30170 ac_status=$?
ac1cb8d3
VS
30171 grep -v '^ *+' conftest.er1 >conftest.err
30172 rm -f conftest.er1
30173 cat conftest.err >&5
a848cd7e
SC
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); } &&
fc480dc1
DE
30176 { ac_try='test -z "$ac_c_werror_flag"
30177 || test ! -s conftest.err'
ac1cb8d3
VS
30178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30179 (eval $ac_try) 2>&5
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
30186 ac_status=$?
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; }; then
30189 eval "$as_ac_var=yes"
30190else
30191 echo "$as_me: failed program was:" >&5
30192sed 's/^/| /' conftest.$ac_ext >&5
30193
30194eval "$as_ac_var=no"
30195fi
ac1cb8d3
VS
30196rm -f conftest.err conftest.$ac_objext \
30197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30198fi
30199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30200echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30201if test `eval echo '${'$as_ac_var'}'` = yes; then
30202 cat >>confdefs.h <<_ACEOF
30203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30204_ACEOF
30205 break
30206fi
30207done
30208
30209
30210echo "$as_me:$LINENO: checking for statfs" >&5
30211echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30212if test "${wx_cv_func_statfs+set}" = set; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30214else
30215 cat >conftest.$ac_ext <<_ACEOF
30216/* confdefs.h. */
30217_ACEOF
30218cat confdefs.h >>conftest.$ac_ext
30219cat >>conftest.$ac_ext <<_ACEOF
30220/* end confdefs.h. */
30221
30222 #if defined(__BSD__)
30223 #include <sys/param.h>
30224 #include <sys/mount.h>
30225 #else
30226 #include <sys/vfs.h>
30227 #endif
30228
30229int
30230main ()
30231{
30232
30233 long l;
30234 struct statfs fs;
30235 statfs("/", &fs);
30236 l = fs.f_bsize;
30237 l += fs.f_blocks;
30238 l += fs.f_bavail;
30239
30240 ;
30241 return 0;
30242}
30243_ACEOF
30244rm -f conftest.$ac_objext
30245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30246 (eval $ac_compile) 2>conftest.er1
a848cd7e 30247 ac_status=$?
ac1cb8d3
VS
30248 grep -v '^ *+' conftest.er1 >conftest.err
30249 rm -f conftest.er1
30250 cat conftest.err >&5
a848cd7e
SC
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); } &&
fc480dc1
DE
30253 { ac_try='test -z "$ac_c_werror_flag"
30254 || test ! -s conftest.err'
ac1cb8d3
VS
30255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30256 (eval $ac_try) 2>&5
30257 ac_status=$?
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); }; } &&
30260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30262 (eval $ac_try) 2>&5
30263 ac_status=$?
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; }; then
30266
30267 wx_cv_func_statfs=yes
30268
30269else
30270 echo "$as_me: failed program was:" >&5
30271sed 's/^/| /' conftest.$ac_ext >&5
30272
30273
30274 wx_cv_func_statfs=no
30275
30276
30277fi
ac1cb8d3 30278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30279
30280fi
30281echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30282echo "${ECHO_T}$wx_cv_func_statfs" >&6
30283
30284if test "$wx_cv_func_statfs" = "yes"; then
30285 wx_cv_type_statvfs_t="struct statfs"
30286 cat >>confdefs.h <<\_ACEOF
30287#define HAVE_STATFS 1
30288_ACEOF
30289
30290else
30291 echo "$as_me:$LINENO: checking for statvfs" >&5
30292echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30293if test "${wx_cv_func_statvfs+set}" = set; then
30294 echo $ECHO_N "(cached) $ECHO_C" >&6
30295else
30296 cat >conftest.$ac_ext <<_ACEOF
30297/* confdefs.h. */
30298_ACEOF
30299cat confdefs.h >>conftest.$ac_ext
30300cat >>conftest.$ac_ext <<_ACEOF
30301/* end confdefs.h. */
30302
30303 #include <stddef.h>
30304 #include <sys/statvfs.h>
30305
30306int
30307main ()
30308{
30309
30310 statvfs("/", NULL);
30311
30312 ;
30313 return 0;
30314}
30315_ACEOF
30316rm -f conftest.$ac_objext
30317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30318 (eval $ac_compile) 2>conftest.er1
a848cd7e 30319 ac_status=$?
ac1cb8d3
VS
30320 grep -v '^ *+' conftest.er1 >conftest.err
30321 rm -f conftest.er1
30322 cat conftest.err >&5
a848cd7e
SC
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); } &&
fc480dc1
DE
30325 { ac_try='test -z "$ac_c_werror_flag"
30326 || test ! -s conftest.err'
ac1cb8d3
VS
30327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30328 (eval $ac_try) 2>&5
30329 ac_status=$?
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; } &&
30332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334 (eval $ac_try) 2>&5
30335 ac_status=$?
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; }; then
30338 wx_cv_func_statvfs=yes
30339else
30340 echo "$as_me: failed program was:" >&5
30341sed 's/^/| /' conftest.$ac_ext >&5
30342
30343wx_cv_func_statvfs=no
30344
30345fi
ac1cb8d3 30346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30347
30348fi
30349echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30350echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30351
30352 if test "$wx_cv_func_statvfs" = "yes"; then
30353
30354
30355 ac_ext=cc
30356ac_cpp='$CXXCPP $CPPFLAGS'
30357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30360
30361
30362 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30363echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30364if test "${wx_cv_type_statvfs_t+set}" = set; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30366else
30367 cat >conftest.$ac_ext <<_ACEOF
30368/* confdefs.h. */
30369_ACEOF
30370cat confdefs.h >>conftest.$ac_ext
30371cat >>conftest.$ac_ext <<_ACEOF
30372/* end confdefs.h. */
30373
30374 #include <sys/statvfs.h>
30375
30376int
30377main ()
30378{
30379
30380 long l;
30381 statvfs_t fs;
30382 statvfs("/", &fs);
30383 l = fs.f_bsize;
30384 l += fs.f_blocks;
30385 l += fs.f_bavail;
30386
30387 ;
30388 return 0;
30389}
30390_ACEOF
30391rm -f conftest.$ac_objext
30392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30393 (eval $ac_compile) 2>conftest.er1
a848cd7e 30394 ac_status=$?
ac1cb8d3
VS
30395 grep -v '^ *+' conftest.er1 >conftest.err
30396 rm -f conftest.er1
30397 cat conftest.err >&5
a848cd7e
SC
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); } &&
fc480dc1
DE
30400 { ac_try='test -z "$ac_cxx_werror_flag"
30401 || test ! -s conftest.err'
ac1cb8d3
VS
30402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30403 (eval $ac_try) 2>&5
30404 ac_status=$?
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); }; } &&
30407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30409 (eval $ac_try) 2>&5
30410 ac_status=$?
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); }; }; then
30413 wx_cv_type_statvfs_t=statvfs_t
30414else
30415 echo "$as_me: failed program was:" >&5
30416sed 's/^/| /' conftest.$ac_ext >&5
30417
30418
30419 cat >conftest.$ac_ext <<_ACEOF
30420/* confdefs.h. */
30421_ACEOF
30422cat confdefs.h >>conftest.$ac_ext
30423cat >>conftest.$ac_ext <<_ACEOF
30424/* end confdefs.h. */
30425
30426 #include <sys/statvfs.h>
30427
30428int
30429main ()
30430{
30431
30432 long l;
30433 struct statvfs fs;
30434 statvfs("/", &fs);
30435 l = fs.f_bsize;
30436 l += fs.f_blocks;
30437 l += fs.f_bavail;
30438
30439 ;
30440 return 0;
30441}
30442_ACEOF
30443rm -f conftest.$ac_objext
30444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30445 (eval $ac_compile) 2>conftest.er1
a848cd7e 30446 ac_status=$?
ac1cb8d3
VS
30447 grep -v '^ *+' conftest.er1 >conftest.err
30448 rm -f conftest.er1
30449 cat conftest.err >&5
a848cd7e
SC
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } &&
fc480dc1
DE
30452 { ac_try='test -z "$ac_cxx_werror_flag"
30453 || test ! -s conftest.err'
ac1cb8d3
VS
30454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455 (eval $ac_try) 2>&5
30456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; } &&
30459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30461 (eval $ac_try) 2>&5
30462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
30465 wx_cv_type_statvfs_t="struct statvfs"
30466else
30467 echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
30470wx_cv_type_statvfs_t="unknown"
30471
30472fi
ac1cb8d3 30473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30474
30475
30476fi
ac1cb8d3 30477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30478
30479fi
30480echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30481echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30482
30483 ac_ext=c
30484ac_cpp='$CPP $CPPFLAGS'
30485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30487ac_compiler_gnu=$ac_cv_c_compiler_gnu
30488
30489
30490 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30491 cat >>confdefs.h <<\_ACEOF
30492#define HAVE_STATVFS 1
30493_ACEOF
30494
30495 fi
30496 else
30497 wx_cv_type_statvfs_t="unknown"
30498 fi
30499fi
30500
30501if test "$wx_cv_type_statvfs_t" != "unknown"; then
30502 cat >>confdefs.h <<_ACEOF
30503#define WX_STATFS_T $wx_cv_type_statvfs_t
30504_ACEOF
30505
30506else
30507 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30508echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30509fi
30510
30511if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30512
30513
30514for ac_func in fcntl flock
30515do
30516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30517echo "$as_me:$LINENO: checking for $ac_func" >&5
30518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30519if eval "test \"\${$as_ac_var+set}\" = set"; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30521else
30522 cat >conftest.$ac_ext <<_ACEOF
30523/* confdefs.h. */
30524_ACEOF
30525cat confdefs.h >>conftest.$ac_ext
30526cat >>conftest.$ac_ext <<_ACEOF
30527/* end confdefs.h. */
ac1cb8d3
VS
30528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30530#define $ac_func innocuous_$ac_func
30531
a848cd7e
SC
30532/* System header to define __stub macros and hopefully few prototypes,
30533 which can conflict with char $ac_func (); below.
30534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30535 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30536
a848cd7e
SC
30537#ifdef __STDC__
30538# include <limits.h>
30539#else
30540# include <assert.h>
30541#endif
ac1cb8d3
VS
30542
30543#undef $ac_func
30544
a848cd7e
SC
30545/* Override any gcc2 internal prototype to avoid an error. */
30546#ifdef __cplusplus
30547extern "C"
30548{
30549#endif
30550/* We use char because int might match the return type of a gcc2
30551 builtin and then its argument prototype would still apply. */
30552char $ac_func ();
30553/* The GNU C library defines this for functions which it implements
30554 to always fail with ENOSYS. Some functions are actually named
30555 something starting with __ and the normal name is an alias. */
30556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30557choke me
30558#else
30559char (*f) () = $ac_func;
30560#endif
30561#ifdef __cplusplus
30562}
30563#endif
30564
30565int
30566main ()
30567{
30568return f != $ac_func;
30569 ;
30570 return 0;
30571}
30572_ACEOF
30573rm -f conftest.$ac_objext conftest$ac_exeext
30574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30575 (eval $ac_link) 2>conftest.er1
a848cd7e 30576 ac_status=$?
ac1cb8d3
VS
30577 grep -v '^ *+' conftest.er1 >conftest.err
30578 rm -f conftest.er1
30579 cat conftest.err >&5
a848cd7e
SC
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); } &&
fc480dc1
DE
30582 { ac_try='test -z "$ac_c_werror_flag"
30583 || test ! -s conftest.err'
ac1cb8d3
VS
30584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30585 (eval $ac_try) 2>&5
30586 ac_status=$?
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); }; } &&
30589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30591 (eval $ac_try) 2>&5
30592 ac_status=$?
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); }; }; then
30595 eval "$as_ac_var=yes"
30596else
30597 echo "$as_me: failed program was:" >&5
30598sed 's/^/| /' conftest.$ac_ext >&5
30599
30600eval "$as_ac_var=no"
30601fi
ac1cb8d3
VS
30602rm -f conftest.err conftest.$ac_objext \
30603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30604fi
30605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30607if test `eval echo '${'$as_ac_var'}'` = yes; then
30608 cat >>confdefs.h <<_ACEOF
30609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30610_ACEOF
30611 break
30612fi
30613done
30614
30615
30616 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30617 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30618echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30619 wxUSE_SNGLINST_CHECKER=no
30620 fi
30621fi
30622
30623
30624for ac_func in timegm
30625do
30626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30627echo "$as_me:$LINENO: checking for $ac_func" >&5
30628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30629if eval "test \"\${$as_ac_var+set}\" = set"; then
30630 echo $ECHO_N "(cached) $ECHO_C" >&6
30631else
30632 cat >conftest.$ac_ext <<_ACEOF
30633/* confdefs.h. */
30634_ACEOF
30635cat confdefs.h >>conftest.$ac_ext
30636cat >>conftest.$ac_ext <<_ACEOF
30637/* end confdefs.h. */
ac1cb8d3
VS
30638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30640#define $ac_func innocuous_$ac_func
30641
a848cd7e
SC
30642/* System header to define __stub macros and hopefully few prototypes,
30643 which can conflict with char $ac_func (); below.
30644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30646
a848cd7e
SC
30647#ifdef __STDC__
30648# include <limits.h>
30649#else
30650# include <assert.h>
30651#endif
ac1cb8d3
VS
30652
30653#undef $ac_func
30654
a848cd7e
SC
30655/* Override any gcc2 internal prototype to avoid an error. */
30656#ifdef __cplusplus
30657extern "C"
30658{
30659#endif
30660/* We use char because int might match the return type of a gcc2
30661 builtin and then its argument prototype would still apply. */
30662char $ac_func ();
30663/* The GNU C library defines this for functions which it implements
30664 to always fail with ENOSYS. Some functions are actually named
30665 something starting with __ and the normal name is an alias. */
30666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30667choke me
30668#else
30669char (*f) () = $ac_func;
30670#endif
30671#ifdef __cplusplus
30672}
30673#endif
30674
30675int
30676main ()
30677{
30678return f != $ac_func;
30679 ;
30680 return 0;
30681}
30682_ACEOF
30683rm -f conftest.$ac_objext conftest$ac_exeext
30684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30685 (eval $ac_link) 2>conftest.er1
a848cd7e 30686 ac_status=$?
ac1cb8d3
VS
30687 grep -v '^ *+' conftest.er1 >conftest.err
30688 rm -f conftest.er1
30689 cat conftest.err >&5
a848cd7e
SC
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); } &&
fc480dc1
DE
30692 { ac_try='test -z "$ac_c_werror_flag"
30693 || test ! -s conftest.err'
ac1cb8d3
VS
30694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30695 (eval $ac_try) 2>&5
30696 ac_status=$?
30697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698 (exit $ac_status); }; } &&
30699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30701 (eval $ac_try) 2>&5
30702 ac_status=$?
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); }; }; then
30705 eval "$as_ac_var=yes"
30706else
30707 echo "$as_me: failed program was:" >&5
30708sed 's/^/| /' conftest.$ac_ext >&5
30709
30710eval "$as_ac_var=no"
30711fi
ac1cb8d3
VS
30712rm -f conftest.err conftest.$ac_objext \
30713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30714fi
30715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30716echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30717if test `eval echo '${'$as_ac_var'}'` = yes; then
30718 cat >>confdefs.h <<_ACEOF
30719#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30720_ACEOF
30721
30722fi
30723done
30724
30725
30726
30727
30728for ac_func in putenv setenv
30729do
30730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30731echo "$as_me:$LINENO: checking for $ac_func" >&5
30732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30733if eval "test \"\${$as_ac_var+set}\" = set"; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30735else
30736 cat >conftest.$ac_ext <<_ACEOF
30737/* confdefs.h. */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h. */
ac1cb8d3
VS
30742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30744#define $ac_func innocuous_$ac_func
30745
a848cd7e
SC
30746/* System header to define __stub macros and hopefully few prototypes,
30747 which can conflict with char $ac_func (); below.
30748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30749 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30750
a848cd7e
SC
30751#ifdef __STDC__
30752# include <limits.h>
30753#else
30754# include <assert.h>
30755#endif
ac1cb8d3
VS
30756
30757#undef $ac_func
30758
a848cd7e
SC
30759/* Override any gcc2 internal prototype to avoid an error. */
30760#ifdef __cplusplus
30761extern "C"
30762{
30763#endif
30764/* We use char because int might match the return type of a gcc2
30765 builtin and then its argument prototype would still apply. */
30766char $ac_func ();
30767/* The GNU C library defines this for functions which it implements
30768 to always fail with ENOSYS. Some functions are actually named
30769 something starting with __ and the normal name is an alias. */
30770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30771choke me
30772#else
30773char (*f) () = $ac_func;
30774#endif
30775#ifdef __cplusplus
30776}
30777#endif
30778
30779int
30780main ()
30781{
30782return f != $ac_func;
30783 ;
30784 return 0;
30785}
30786_ACEOF
30787rm -f conftest.$ac_objext conftest$ac_exeext
30788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30789 (eval $ac_link) 2>conftest.er1
a848cd7e 30790 ac_status=$?
ac1cb8d3
VS
30791 grep -v '^ *+' conftest.er1 >conftest.err
30792 rm -f conftest.er1
30793 cat conftest.err >&5
a848cd7e
SC
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } &&
fc480dc1
DE
30796 { ac_try='test -z "$ac_c_werror_flag"
30797 || test ! -s conftest.err'
ac1cb8d3
VS
30798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30799 (eval $ac_try) 2>&5
30800 ac_status=$?
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; } &&
30803 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805 (eval $ac_try) 2>&5
30806 ac_status=$?
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); }; }; then
30809 eval "$as_ac_var=yes"
30810else
30811 echo "$as_me: failed program was:" >&5
30812sed 's/^/| /' conftest.$ac_ext >&5
30813
30814eval "$as_ac_var=no"
30815fi
ac1cb8d3
VS
30816rm -f conftest.err conftest.$ac_objext \
30817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30818fi
30819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30821if test `eval echo '${'$as_ac_var'}'` = yes; then
30822 cat >>confdefs.h <<_ACEOF
30823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30824_ACEOF
30825 break
30826fi
30827done
30828
30829
30830HAVE_SOME_SLEEP_FUNC=0
30831if test "$USE_BEOS" = 1; then
30832 cat >>confdefs.h <<\_ACEOF
30833#define HAVE_SLEEP 1
30834_ACEOF
30835
30836 HAVE_SOME_SLEEP_FUNC=1
30837fi
30838
30839if test "$USE_DARWIN" = 1; then
30840 cat >>confdefs.h <<\_ACEOF
30841#define HAVE_USLEEP 1
30842_ACEOF
30843
30844 HAVE_SOME_SLEEP_FUNC=1
30845fi
30846
30847if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30848 POSIX4_LINK=
30849
30850for ac_func in nanosleep
30851do
30852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30853echo "$as_me:$LINENO: checking for $ac_func" >&5
30854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30855if eval "test \"\${$as_ac_var+set}\" = set"; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30857else
30858 cat >conftest.$ac_ext <<_ACEOF
30859/* confdefs.h. */
30860_ACEOF
30861cat confdefs.h >>conftest.$ac_ext
30862cat >>conftest.$ac_ext <<_ACEOF
30863/* end confdefs.h. */
ac1cb8d3
VS
30864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30866#define $ac_func innocuous_$ac_func
30867
a848cd7e
SC
30868/* System header to define __stub macros and hopefully few prototypes,
30869 which can conflict with char $ac_func (); below.
30870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30871 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30872
a848cd7e
SC
30873#ifdef __STDC__
30874# include <limits.h>
30875#else
30876# include <assert.h>
30877#endif
ac1cb8d3
VS
30878
30879#undef $ac_func
30880
a848cd7e
SC
30881/* Override any gcc2 internal prototype to avoid an error. */
30882#ifdef __cplusplus
30883extern "C"
30884{
30885#endif
30886/* We use char because int might match the return type of a gcc2
30887 builtin and then its argument prototype would still apply. */
30888char $ac_func ();
30889/* The GNU C library defines this for functions which it implements
30890 to always fail with ENOSYS. Some functions are actually named
30891 something starting with __ and the normal name is an alias. */
30892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30893choke me
30894#else
30895char (*f) () = $ac_func;
30896#endif
30897#ifdef __cplusplus
30898}
30899#endif
30900
30901int
30902main ()
30903{
30904return f != $ac_func;
30905 ;
30906 return 0;
30907}
30908_ACEOF
30909rm -f conftest.$ac_objext conftest$ac_exeext
30910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30911 (eval $ac_link) 2>conftest.er1
a848cd7e 30912 ac_status=$?
ac1cb8d3
VS
30913 grep -v '^ *+' conftest.er1 >conftest.err
30914 rm -f conftest.er1
30915 cat conftest.err >&5
a848cd7e
SC
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); } &&
fc480dc1
DE
30918 { ac_try='test -z "$ac_c_werror_flag"
30919 || test ! -s conftest.err'
ac1cb8d3
VS
30920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30921 (eval $ac_try) 2>&5
30922 ac_status=$?
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); }; } &&
30925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30927 (eval $ac_try) 2>&5
30928 ac_status=$?
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); }; }; then
30931 eval "$as_ac_var=yes"
30932else
30933 echo "$as_me: failed program was:" >&5
30934sed 's/^/| /' conftest.$ac_ext >&5
30935
30936eval "$as_ac_var=no"
30937fi
ac1cb8d3
VS
30938rm -f conftest.err conftest.$ac_objext \
30939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30940fi
30941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30943if test `eval echo '${'$as_ac_var'}'` = yes; then
30944 cat >>confdefs.h <<_ACEOF
30945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30946_ACEOF
30947 cat >>confdefs.h <<\_ACEOF
30948#define HAVE_NANOSLEEP 1
30949_ACEOF
30950
30951else
30952
30953 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30954echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30955if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30956 echo $ECHO_N "(cached) $ECHO_C" >&6
30957else
30958 ac_check_lib_save_LIBS=$LIBS
30959LIBS="-lposix4 $LIBS"
30960cat >conftest.$ac_ext <<_ACEOF
30961/* confdefs.h. */
30962_ACEOF
30963cat confdefs.h >>conftest.$ac_ext
30964cat >>conftest.$ac_ext <<_ACEOF
30965/* end confdefs.h. */
30966
30967/* Override any gcc2 internal prototype to avoid an error. */
30968#ifdef __cplusplus
30969extern "C"
30970#endif
30971/* We use char because int might match the return type of a gcc2
30972 builtin and then its argument prototype would still apply. */
30973char nanosleep ();
30974int
30975main ()
30976{
30977nanosleep ();
30978 ;
30979 return 0;
30980}
30981_ACEOF
30982rm -f conftest.$ac_objext conftest$ac_exeext
30983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30984 (eval $ac_link) 2>conftest.er1
a848cd7e 30985 ac_status=$?
ac1cb8d3
VS
30986 grep -v '^ *+' conftest.er1 >conftest.err
30987 rm -f conftest.er1
30988 cat conftest.err >&5
a848cd7e
SC
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } &&
fc480dc1
DE
30991 { ac_try='test -z "$ac_c_werror_flag"
30992 || test ! -s conftest.err'
ac1cb8d3
VS
30993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30994 (eval $ac_try) 2>&5
30995 ac_status=$?
30996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997 (exit $ac_status); }; } &&
30998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000 (eval $ac_try) 2>&5
31001 ac_status=$?
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 (exit $ac_status); }; }; then
31004 ac_cv_lib_posix4_nanosleep=yes
31005else
31006 echo "$as_me: failed program was:" >&5
31007sed 's/^/| /' conftest.$ac_ext >&5
31008
31009ac_cv_lib_posix4_nanosleep=no
31010fi
ac1cb8d3
VS
31011rm -f conftest.err conftest.$ac_objext \
31012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31013LIBS=$ac_check_lib_save_LIBS
31014fi
31015echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31016echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31017if test $ac_cv_lib_posix4_nanosleep = yes; then
31018
31019 cat >>confdefs.h <<\_ACEOF
31020#define HAVE_NANOSLEEP 1
31021_ACEOF
31022
31023 POSIX4_LINK=" -lposix4"
31024
31025else
31026
31027
31028for ac_func in usleep
31029do
31030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31031echo "$as_me:$LINENO: checking for $ac_func" >&5
31032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31033if eval "test \"\${$as_ac_var+set}\" = set"; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31035else
31036 cat >conftest.$ac_ext <<_ACEOF
31037/* confdefs.h. */
31038_ACEOF
31039cat confdefs.h >>conftest.$ac_ext
31040cat >>conftest.$ac_ext <<_ACEOF
31041/* end confdefs.h. */
ac1cb8d3
VS
31042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31044#define $ac_func innocuous_$ac_func
31045
a848cd7e
SC
31046/* System header to define __stub macros and hopefully few prototypes,
31047 which can conflict with char $ac_func (); below.
31048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31049 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31050
a848cd7e
SC
31051#ifdef __STDC__
31052# include <limits.h>
31053#else
31054# include <assert.h>
31055#endif
ac1cb8d3
VS
31056
31057#undef $ac_func
31058
a848cd7e
SC
31059/* Override any gcc2 internal prototype to avoid an error. */
31060#ifdef __cplusplus
31061extern "C"
31062{
31063#endif
31064/* We use char because int might match the return type of a gcc2
31065 builtin and then its argument prototype would still apply. */
31066char $ac_func ();
31067/* The GNU C library defines this for functions which it implements
31068 to always fail with ENOSYS. Some functions are actually named
31069 something starting with __ and the normal name is an alias. */
31070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31071choke me
31072#else
31073char (*f) () = $ac_func;
31074#endif
31075#ifdef __cplusplus
31076}
31077#endif
31078
31079int
31080main ()
31081{
31082return f != $ac_func;
31083 ;
31084 return 0;
31085}
31086_ACEOF
31087rm -f conftest.$ac_objext conftest$ac_exeext
31088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31089 (eval $ac_link) 2>conftest.er1
a848cd7e 31090 ac_status=$?
ac1cb8d3
VS
31091 grep -v '^ *+' conftest.er1 >conftest.err
31092 rm -f conftest.er1
31093 cat conftest.err >&5
a848cd7e
SC
31094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095 (exit $ac_status); } &&
fc480dc1
DE
31096 { ac_try='test -z "$ac_c_werror_flag"
31097 || test ! -s conftest.err'
ac1cb8d3
VS
31098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31099 (eval $ac_try) 2>&5
31100 ac_status=$?
31101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); }; } &&
31103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31105 (eval $ac_try) 2>&5
31106 ac_status=$?
31107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31108 (exit $ac_status); }; }; then
31109 eval "$as_ac_var=yes"
31110else
31111 echo "$as_me: failed program was:" >&5
31112sed 's/^/| /' conftest.$ac_ext >&5
31113
31114eval "$as_ac_var=no"
31115fi
ac1cb8d3
VS
31116rm -f conftest.err conftest.$ac_objext \
31117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31118fi
31119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31121if test `eval echo '${'$as_ac_var'}'` = yes; then
31122 cat >>confdefs.h <<_ACEOF
31123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31124_ACEOF
31125 cat >>confdefs.h <<\_ACEOF
31126#define HAVE_USLEEP 1
31127_ACEOF
31128
31129else
31130 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31131echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31132
31133fi
31134done
31135
31136
31137
31138fi
31139
31140
31141
31142fi
31143done
31144
31145fi
31146
31147
31148
31149for ac_func in uname gethostname
31150do
31151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31152echo "$as_me:$LINENO: checking for $ac_func" >&5
31153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31154if eval "test \"\${$as_ac_var+set}\" = set"; then
31155 echo $ECHO_N "(cached) $ECHO_C" >&6
31156else
31157 cat >conftest.$ac_ext <<_ACEOF
31158/* confdefs.h. */
31159_ACEOF
31160cat confdefs.h >>conftest.$ac_ext
31161cat >>conftest.$ac_ext <<_ACEOF
31162/* end confdefs.h. */
ac1cb8d3
VS
31163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31165#define $ac_func innocuous_$ac_func
31166
a848cd7e
SC
31167/* System header to define __stub macros and hopefully few prototypes,
31168 which can conflict with char $ac_func (); below.
31169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31170 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31171
a848cd7e
SC
31172#ifdef __STDC__
31173# include <limits.h>
31174#else
31175# include <assert.h>
31176#endif
ac1cb8d3
VS
31177
31178#undef $ac_func
31179
a848cd7e
SC
31180/* Override any gcc2 internal prototype to avoid an error. */
31181#ifdef __cplusplus
31182extern "C"
31183{
31184#endif
31185/* We use char because int might match the return type of a gcc2
31186 builtin and then its argument prototype would still apply. */
31187char $ac_func ();
31188/* The GNU C library defines this for functions which it implements
31189 to always fail with ENOSYS. Some functions are actually named
31190 something starting with __ and the normal name is an alias. */
31191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31192choke me
31193#else
31194char (*f) () = $ac_func;
31195#endif
31196#ifdef __cplusplus
31197}
31198#endif
31199
31200int
31201main ()
31202{
31203return f != $ac_func;
31204 ;
31205 return 0;
31206}
31207_ACEOF
31208rm -f conftest.$ac_objext conftest$ac_exeext
31209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31210 (eval $ac_link) 2>conftest.er1
a848cd7e 31211 ac_status=$?
ac1cb8d3
VS
31212 grep -v '^ *+' conftest.er1 >conftest.err
31213 rm -f conftest.er1
31214 cat conftest.err >&5
a848cd7e
SC
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } &&
fc480dc1
DE
31217 { ac_try='test -z "$ac_c_werror_flag"
31218 || test ! -s conftest.err'
ac1cb8d3
VS
31219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31220 (eval $ac_try) 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; }; then
31230 eval "$as_ac_var=yes"
31231else
31232 echo "$as_me: failed program was:" >&5
31233sed 's/^/| /' conftest.$ac_ext >&5
31234
31235eval "$as_ac_var=no"
31236fi
ac1cb8d3
VS
31237rm -f conftest.err conftest.$ac_objext \
31238 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31239fi
31240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31242if test `eval echo '${'$as_ac_var'}'` = yes; then
31243 cat >>confdefs.h <<_ACEOF
31244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31245_ACEOF
31246 break
31247fi
31248done
31249
31250
31251
31252
31253ac_ext=cc
31254ac_cpp='$CXXCPP $CPPFLAGS'
31255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31258
31259
31260
31261for ac_func in strtok_r
31262do
31263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31264echo "$as_me:$LINENO: checking for $ac_func" >&5
31265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31266if eval "test \"\${$as_ac_var+set}\" = set"; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31268else
31269 cat >conftest.$ac_ext <<_ACEOF
31270/* confdefs.h. */
31271_ACEOF
31272cat confdefs.h >>conftest.$ac_ext
31273cat >>conftest.$ac_ext <<_ACEOF
31274/* end confdefs.h. */
ac1cb8d3
VS
31275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31277#define $ac_func innocuous_$ac_func
31278
a848cd7e
SC
31279/* System header to define __stub macros and hopefully few prototypes,
31280 which can conflict with char $ac_func (); below.
31281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31282 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31283
a848cd7e
SC
31284#ifdef __STDC__
31285# include <limits.h>
31286#else
31287# include <assert.h>
31288#endif
ac1cb8d3
VS
31289
31290#undef $ac_func
31291
a848cd7e
SC
31292/* Override any gcc2 internal prototype to avoid an error. */
31293#ifdef __cplusplus
31294extern "C"
31295{
31296#endif
31297/* We use char because int might match the return type of a gcc2
31298 builtin and then its argument prototype would still apply. */
31299char $ac_func ();
31300/* The GNU C library defines this for functions which it implements
31301 to always fail with ENOSYS. Some functions are actually named
31302 something starting with __ and the normal name is an alias. */
31303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31304choke me
31305#else
31306char (*f) () = $ac_func;
31307#endif
31308#ifdef __cplusplus
31309}
31310#endif
31311
31312int
31313main ()
31314{
31315return f != $ac_func;
31316 ;
31317 return 0;
31318}
31319_ACEOF
31320rm -f conftest.$ac_objext conftest$ac_exeext
31321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31322 (eval $ac_link) 2>conftest.er1
a848cd7e 31323 ac_status=$?
ac1cb8d3
VS
31324 grep -v '^ *+' conftest.er1 >conftest.err
31325 rm -f conftest.er1
31326 cat conftest.err >&5
a848cd7e
SC
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); } &&
fc480dc1
DE
31329 { ac_try='test -z "$ac_cxx_werror_flag"
31330 || test ! -s conftest.err'
ac1cb8d3
VS
31331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332 (eval $ac_try) 2>&5
31333 ac_status=$?
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; } &&
31336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31338 (eval $ac_try) 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; }; then
31342 eval "$as_ac_var=yes"
31343else
31344 echo "$as_me: failed program was:" >&5
31345sed 's/^/| /' conftest.$ac_ext >&5
31346
31347eval "$as_ac_var=no"
31348fi
ac1cb8d3
VS
31349rm -f conftest.err conftest.$ac_objext \
31350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31351fi
31352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31354if test `eval echo '${'$as_ac_var'}'` = yes; then
31355 cat >>confdefs.h <<_ACEOF
31356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31357_ACEOF
31358
31359fi
31360done
31361
31362
31363ac_ext=c
31364ac_cpp='$CPP $CPPFLAGS'
31365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31367ac_compiler_gnu=$ac_cv_c_compiler_gnu
31368
31369
31370INET_LINK=
31371
31372for ac_func in inet_addr
31373do
31374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31375echo "$as_me:$LINENO: checking for $ac_func" >&5
31376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31377if eval "test \"\${$as_ac_var+set}\" = set"; then
31378 echo $ECHO_N "(cached) $ECHO_C" >&6
31379else
31380 cat >conftest.$ac_ext <<_ACEOF
31381/* confdefs.h. */
31382_ACEOF
31383cat confdefs.h >>conftest.$ac_ext
31384cat >>conftest.$ac_ext <<_ACEOF
31385/* end confdefs.h. */
ac1cb8d3
VS
31386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31388#define $ac_func innocuous_$ac_func
31389
a848cd7e
SC
31390/* System header to define __stub macros and hopefully few prototypes,
31391 which can conflict with char $ac_func (); below.
31392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31393 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31394
a848cd7e
SC
31395#ifdef __STDC__
31396# include <limits.h>
31397#else
31398# include <assert.h>
31399#endif
ac1cb8d3
VS
31400
31401#undef $ac_func
31402
a848cd7e
SC
31403/* Override any gcc2 internal prototype to avoid an error. */
31404#ifdef __cplusplus
31405extern "C"
31406{
31407#endif
31408/* We use char because int might match the return type of a gcc2
31409 builtin and then its argument prototype would still apply. */
31410char $ac_func ();
31411/* The GNU C library defines this for functions which it implements
31412 to always fail with ENOSYS. Some functions are actually named
31413 something starting with __ and the normal name is an alias. */
31414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31415choke me
31416#else
31417char (*f) () = $ac_func;
31418#endif
31419#ifdef __cplusplus
31420}
31421#endif
31422
31423int
31424main ()
31425{
31426return f != $ac_func;
31427 ;
31428 return 0;
31429}
31430_ACEOF
31431rm -f conftest.$ac_objext conftest$ac_exeext
31432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31433 (eval $ac_link) 2>conftest.er1
a848cd7e 31434 ac_status=$?
ac1cb8d3
VS
31435 grep -v '^ *+' conftest.er1 >conftest.err
31436 rm -f conftest.er1
31437 cat conftest.err >&5
a848cd7e
SC
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); } &&
fc480dc1
DE
31440 { ac_try='test -z "$ac_c_werror_flag"
31441 || test ! -s conftest.err'
ac1cb8d3
VS
31442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31443 (eval $ac_try) 2>&5
31444 ac_status=$?
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; } &&
31447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31449 (eval $ac_try) 2>&5
31450 ac_status=$?
31451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); }; }; then
31453 eval "$as_ac_var=yes"
31454else
31455 echo "$as_me: failed program was:" >&5
31456sed 's/^/| /' conftest.$ac_ext >&5
31457
31458eval "$as_ac_var=no"
31459fi
ac1cb8d3
VS
31460rm -f conftest.err conftest.$ac_objext \
31461 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31462fi
31463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31464echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31465if test `eval echo '${'$as_ac_var'}'` = yes; then
31466 cat >>confdefs.h <<_ACEOF
31467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31468_ACEOF
31469 cat >>confdefs.h <<\_ACEOF
31470#define HAVE_INET_ADDR 1
31471_ACEOF
31472
31473else
31474
31475 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31476echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31477if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31478 echo $ECHO_N "(cached) $ECHO_C" >&6
31479else
31480 ac_check_lib_save_LIBS=$LIBS
31481LIBS="-lnsl $LIBS"
31482cat >conftest.$ac_ext <<_ACEOF
31483/* confdefs.h. */
31484_ACEOF
31485cat confdefs.h >>conftest.$ac_ext
31486cat >>conftest.$ac_ext <<_ACEOF
31487/* end confdefs.h. */
31488
31489/* Override any gcc2 internal prototype to avoid an error. */
31490#ifdef __cplusplus
31491extern "C"
31492#endif
31493/* We use char because int might match the return type of a gcc2
31494 builtin and then its argument prototype would still apply. */
31495char inet_addr ();
31496int
31497main ()
31498{
31499inet_addr ();
31500 ;
31501 return 0;
31502}
31503_ACEOF
31504rm -f conftest.$ac_objext conftest$ac_exeext
31505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31506 (eval $ac_link) 2>conftest.er1
a848cd7e 31507 ac_status=$?
ac1cb8d3
VS
31508 grep -v '^ *+' conftest.er1 >conftest.err
31509 rm -f conftest.er1
31510 cat conftest.err >&5
a848cd7e
SC
31511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); } &&
fc480dc1
DE
31513 { ac_try='test -z "$ac_c_werror_flag"
31514 || test ! -s conftest.err'
ac1cb8d3
VS
31515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31516 (eval $ac_try) 2>&5
31517 ac_status=$?
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; } &&
31520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31522 (eval $ac_try) 2>&5
31523 ac_status=$?
31524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525 (exit $ac_status); }; }; then
31526 ac_cv_lib_nsl_inet_addr=yes
31527else
31528 echo "$as_me: failed program was:" >&5
31529sed 's/^/| /' conftest.$ac_ext >&5
31530
31531ac_cv_lib_nsl_inet_addr=no
31532fi
ac1cb8d3
VS
31533rm -f conftest.err conftest.$ac_objext \
31534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31535LIBS=$ac_check_lib_save_LIBS
31536fi
31537echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31538echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31539if test $ac_cv_lib_nsl_inet_addr = yes; then
31540 INET_LINK="nsl"
31541else
31542
31543 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31544echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31545if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31546 echo $ECHO_N "(cached) $ECHO_C" >&6
31547else
31548 ac_check_lib_save_LIBS=$LIBS
31549LIBS="-lresolv $LIBS"
31550cat >conftest.$ac_ext <<_ACEOF
31551/* confdefs.h. */
31552_ACEOF
31553cat confdefs.h >>conftest.$ac_ext
31554cat >>conftest.$ac_ext <<_ACEOF
31555/* end confdefs.h. */
31556
31557/* Override any gcc2 internal prototype to avoid an error. */
31558#ifdef __cplusplus
31559extern "C"
31560#endif
31561/* We use char because int might match the return type of a gcc2
31562 builtin and then its argument prototype would still apply. */
31563char inet_addr ();
31564int
31565main ()
31566{
31567inet_addr ();
31568 ;
31569 return 0;
31570}
31571_ACEOF
31572rm -f conftest.$ac_objext conftest$ac_exeext
31573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31574 (eval $ac_link) 2>conftest.er1
a848cd7e 31575 ac_status=$?
ac1cb8d3
VS
31576 grep -v '^ *+' conftest.er1 >conftest.err
31577 rm -f conftest.er1
31578 cat conftest.err >&5
a848cd7e
SC
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); } &&
fc480dc1
DE
31581 { ac_try='test -z "$ac_c_werror_flag"
31582 || test ! -s conftest.err'
ac1cb8d3
VS
31583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31584 (eval $ac_try) 2>&5
31585 ac_status=$?
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); }; } &&
31588 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31590 (eval $ac_try) 2>&5
31591 ac_status=$?
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); }; }; then
31594 ac_cv_lib_resolv_inet_addr=yes
31595else
31596 echo "$as_me: failed program was:" >&5
31597sed 's/^/| /' conftest.$ac_ext >&5
31598
31599ac_cv_lib_resolv_inet_addr=no
31600fi
ac1cb8d3
VS
31601rm -f conftest.err conftest.$ac_objext \
31602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31603LIBS=$ac_check_lib_save_LIBS
31604fi
31605echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31606echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31607if test $ac_cv_lib_resolv_inet_addr = yes; then
31608 INET_LINK="resolv"
31609else
31610
31611 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31612echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31613if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31614 echo $ECHO_N "(cached) $ECHO_C" >&6
31615else
31616 ac_check_lib_save_LIBS=$LIBS
31617LIBS="-lsocket $LIBS"
31618cat >conftest.$ac_ext <<_ACEOF
31619/* confdefs.h. */
31620_ACEOF
31621cat confdefs.h >>conftest.$ac_ext
31622cat >>conftest.$ac_ext <<_ACEOF
31623/* end confdefs.h. */
31624
31625/* Override any gcc2 internal prototype to avoid an error. */
31626#ifdef __cplusplus
31627extern "C"
31628#endif
31629/* We use char because int might match the return type of a gcc2
31630 builtin and then its argument prototype would still apply. */
31631char inet_addr ();
31632int
31633main ()
31634{
31635inet_addr ();
31636 ;
31637 return 0;
31638}
31639_ACEOF
31640rm -f conftest.$ac_objext conftest$ac_exeext
31641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31642 (eval $ac_link) 2>conftest.er1
a848cd7e 31643 ac_status=$?
ac1cb8d3
VS
31644 grep -v '^ *+' conftest.er1 >conftest.err
31645 rm -f conftest.er1
31646 cat conftest.err >&5
a848cd7e
SC
31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); } &&
fc480dc1
DE
31649 { ac_try='test -z "$ac_c_werror_flag"
31650 || test ! -s conftest.err'
ac1cb8d3
VS
31651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31652 (eval $ac_try) 2>&5
31653 ac_status=$?
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); }; } &&
31656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31658 (eval $ac_try) 2>&5
31659 ac_status=$?
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); }; }; then
31662 ac_cv_lib_socket_inet_addr=yes
31663else
31664 echo "$as_me: failed program was:" >&5
31665sed 's/^/| /' conftest.$ac_ext >&5
31666
31667ac_cv_lib_socket_inet_addr=no
31668fi
ac1cb8d3
VS
31669rm -f conftest.err conftest.$ac_objext \
31670 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31671LIBS=$ac_check_lib_save_LIBS
31672fi
31673echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31674echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31675if test $ac_cv_lib_socket_inet_addr = yes; then
31676 INET_LINK="socket"
31677
31678fi
31679
31680
31681
31682fi
31683
31684
31685
31686fi
31687
31688
31689
31690fi
31691done
31692
31693
31694
31695for ac_func in inet_aton
31696do
31697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31698echo "$as_me:$LINENO: checking for $ac_func" >&5
31699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31700if eval "test \"\${$as_ac_var+set}\" = set"; then
31701 echo $ECHO_N "(cached) $ECHO_C" >&6
31702else
31703 cat >conftest.$ac_ext <<_ACEOF
31704/* confdefs.h. */
31705_ACEOF
31706cat confdefs.h >>conftest.$ac_ext
31707cat >>conftest.$ac_ext <<_ACEOF
31708/* end confdefs.h. */
ac1cb8d3
VS
31709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31711#define $ac_func innocuous_$ac_func
31712
a848cd7e
SC
31713/* System header to define __stub macros and hopefully few prototypes,
31714 which can conflict with char $ac_func (); below.
31715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31716 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31717
a848cd7e
SC
31718#ifdef __STDC__
31719# include <limits.h>
31720#else
31721# include <assert.h>
31722#endif
ac1cb8d3
VS
31723
31724#undef $ac_func
31725
a848cd7e
SC
31726/* Override any gcc2 internal prototype to avoid an error. */
31727#ifdef __cplusplus
31728extern "C"
31729{
31730#endif
31731/* We use char because int might match the return type of a gcc2
31732 builtin and then its argument prototype would still apply. */
31733char $ac_func ();
31734/* The GNU C library defines this for functions which it implements
31735 to always fail with ENOSYS. Some functions are actually named
31736 something starting with __ and the normal name is an alias. */
31737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31738choke me
31739#else
31740char (*f) () = $ac_func;
31741#endif
31742#ifdef __cplusplus
31743}
31744#endif
31745
31746int
31747main ()
31748{
31749return f != $ac_func;
31750 ;
31751 return 0;
31752}
31753_ACEOF
31754rm -f conftest.$ac_objext conftest$ac_exeext
31755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31756 (eval $ac_link) 2>conftest.er1
a848cd7e 31757 ac_status=$?
ac1cb8d3
VS
31758 grep -v '^ *+' conftest.er1 >conftest.err
31759 rm -f conftest.er1
31760 cat conftest.err >&5
a848cd7e
SC
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } &&
fc480dc1
DE
31763 { ac_try='test -z "$ac_c_werror_flag"
31764 || test ! -s conftest.err'
ac1cb8d3
VS
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; } &&
31770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772 (eval $ac_try) 2>&5
31773 ac_status=$?
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; }; then
31776 eval "$as_ac_var=yes"
31777else
31778 echo "$as_me: failed program was:" >&5
31779sed 's/^/| /' conftest.$ac_ext >&5
31780
31781eval "$as_ac_var=no"
31782fi
ac1cb8d3
VS
31783rm -f conftest.err conftest.$ac_objext \
31784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31785fi
31786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31788if test `eval echo '${'$as_ac_var'}'` = yes; then
31789 cat >>confdefs.h <<_ACEOF
31790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31791_ACEOF
31792 cat >>confdefs.h <<\_ACEOF
31793#define HAVE_INET_ATON 1
31794_ACEOF
31795
31796else
31797
31798 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31799echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31800echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31801if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31803else
31804 ac_check_lib_save_LIBS=$LIBS
31805LIBS="-l$INET_LINK $LIBS"
31806cat >conftest.$ac_ext <<_ACEOF
31807/* confdefs.h. */
31808_ACEOF
31809cat confdefs.h >>conftest.$ac_ext
31810cat >>conftest.$ac_ext <<_ACEOF
31811/* end confdefs.h. */
31812
31813/* Override any gcc2 internal prototype to avoid an error. */
31814#ifdef __cplusplus
31815extern "C"
31816#endif
31817/* We use char because int might match the return type of a gcc2
31818 builtin and then its argument prototype would still apply. */
31819char inet_aton ();
31820int
31821main ()
31822{
31823inet_aton ();
31824 ;
31825 return 0;
31826}
31827_ACEOF
31828rm -f conftest.$ac_objext conftest$ac_exeext
31829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31830 (eval $ac_link) 2>conftest.er1
a848cd7e 31831 ac_status=$?
ac1cb8d3
VS
31832 grep -v '^ *+' conftest.er1 >conftest.err
31833 rm -f conftest.er1
31834 cat conftest.err >&5
a848cd7e
SC
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); } &&
fc480dc1
DE
31837 { ac_try='test -z "$ac_c_werror_flag"
31838 || test ! -s conftest.err'
ac1cb8d3
VS
31839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31840 (eval $ac_try) 2>&5
31841 ac_status=$?
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; } &&
31844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
31850 eval "$as_ac_Lib=yes"
31851else
31852 echo "$as_me: failed program was:" >&5
31853sed 's/^/| /' conftest.$ac_ext >&5
31854
31855eval "$as_ac_Lib=no"
31856fi
ac1cb8d3
VS
31857rm -f conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31859LIBS=$ac_check_lib_save_LIBS
31860fi
31861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31862echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31863if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31864 cat >>confdefs.h <<\_ACEOF
31865#define HAVE_INET_ATON 1
31866_ACEOF
31867
31868fi
31869
31870
31871fi
31872done
31873
31874
31875if test "x$INET_LINK" != "x"; then
31876 cat >>confdefs.h <<\_ACEOF
31877#define HAVE_INET_ADDR 1
31878_ACEOF
31879
31880 INET_LINK=" -l$INET_LINK"
31881fi
31882
31883fi
31884
31885
31886
31887EXTRALIBS_ESD=
31888echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31889echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31890if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31891 echo $ECHO_N "(cached) $ECHO_C" >&6
31892else
31893 ac_check_lib_save_LIBS=$LIBS
31894LIBS="-lesd $LIBS"
31895cat >conftest.$ac_ext <<_ACEOF
31896/* confdefs.h. */
31897_ACEOF
31898cat confdefs.h >>conftest.$ac_ext
31899cat >>conftest.$ac_ext <<_ACEOF
31900/* end confdefs.h. */
31901
31902/* Override any gcc2 internal prototype to avoid an error. */
31903#ifdef __cplusplus
31904extern "C"
31905#endif
31906/* We use char because int might match the return type of a gcc2
31907 builtin and then its argument prototype would still apply. */
31908char esd_close ();
31909int
31910main ()
31911{
31912esd_close ();
31913 ;
31914 return 0;
31915}
31916_ACEOF
31917rm -f conftest.$ac_objext conftest$ac_exeext
31918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31919 (eval $ac_link) 2>conftest.er1
a848cd7e 31920 ac_status=$?
ac1cb8d3
VS
31921 grep -v '^ *+' conftest.er1 >conftest.err
31922 rm -f conftest.er1
31923 cat conftest.err >&5
a848cd7e
SC
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); } &&
fc480dc1
DE
31926 { ac_try='test -z "$ac_c_werror_flag"
31927 || test ! -s conftest.err'
ac1cb8d3
VS
31928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31929 (eval $ac_try) 2>&5
31930 ac_status=$?
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); }; } &&
31933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31935 (eval $ac_try) 2>&5
31936 ac_status=$?
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; }; then
31939 ac_cv_lib_esd_esd_close=yes
31940else
31941 echo "$as_me: failed program was:" >&5
31942sed 's/^/| /' conftest.$ac_ext >&5
31943
31944ac_cv_lib_esd_esd_close=no
31945fi
ac1cb8d3
VS
31946rm -f conftest.err conftest.$ac_objext \
31947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31948LIBS=$ac_check_lib_save_LIBS
31949fi
31950echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31951echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31952if test $ac_cv_lib_esd_esd_close = yes; then
31953
31954
31955for ac_header in esd.h
31956do
31957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31958if eval "test \"\${$as_ac_Header+set}\" = set"; then
31959 echo "$as_me:$LINENO: checking for $ac_header" >&5
31960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31961if eval "test \"\${$as_ac_Header+set}\" = set"; then
31962 echo $ECHO_N "(cached) $ECHO_C" >&6
31963fi
31964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31966else
31967 # Is the header compilable?
31968echo "$as_me:$LINENO: checking $ac_header usability" >&5
31969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31970cat >conftest.$ac_ext <<_ACEOF
31971/* confdefs.h. */
31972_ACEOF
31973cat confdefs.h >>conftest.$ac_ext
31974cat >>conftest.$ac_ext <<_ACEOF
31975/* end confdefs.h. */
31976$ac_includes_default
31977#include <$ac_header>
31978_ACEOF
31979rm -f conftest.$ac_objext
31980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31981 (eval $ac_compile) 2>conftest.er1
a848cd7e 31982 ac_status=$?
ac1cb8d3
VS
31983 grep -v '^ *+' conftest.er1 >conftest.err
31984 rm -f conftest.er1
31985 cat conftest.err >&5
a848cd7e
SC
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); } &&
fc480dc1
DE
31988 { ac_try='test -z "$ac_c_werror_flag"
31989 || test ! -s conftest.err'
ac1cb8d3
VS
31990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991 (eval $ac_try) 2>&5
31992 ac_status=$?
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); }; } &&
31995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997 (eval $ac_try) 2>&5
31998 ac_status=$?
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); }; }; then
32001 ac_header_compiler=yes
32002else
32003 echo "$as_me: failed program was:" >&5
32004sed 's/^/| /' conftest.$ac_ext >&5
32005
32006ac_header_compiler=no
32007fi
ac1cb8d3 32008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32010echo "${ECHO_T}$ac_header_compiler" >&6
32011
32012# Is the header present?
32013echo "$as_me:$LINENO: checking $ac_header presence" >&5
32014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32015cat >conftest.$ac_ext <<_ACEOF
32016/* confdefs.h. */
32017_ACEOF
32018cat confdefs.h >>conftest.$ac_ext
32019cat >>conftest.$ac_ext <<_ACEOF
32020/* end confdefs.h. */
32021#include <$ac_header>
32022_ACEOF
32023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32025 ac_status=$?
32026 grep -v '^ *+' conftest.er1 >conftest.err
32027 rm -f conftest.er1
32028 cat conftest.err >&5
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); } >/dev/null; then
32031 if test -s conftest.err; then
32032 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32034 else
32035 ac_cpp_err=
32036 fi
32037else
32038 ac_cpp_err=yes
32039fi
32040if test -z "$ac_cpp_err"; then
32041 ac_header_preproc=yes
32042else
32043 echo "$as_me: failed program was:" >&5
32044sed 's/^/| /' conftest.$ac_ext >&5
32045
32046 ac_header_preproc=no
32047fi
32048rm -f conftest.err conftest.$ac_ext
32049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32050echo "${ECHO_T}$ac_header_preproc" >&6
32051
32052# So? What about this header?
ac1cb8d3
VS
32053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32054 yes:no: )
a848cd7e
SC
32055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32059 ac_header_preproc=yes
a848cd7e 32060 ;;
ac1cb8d3 32061 no:yes:* )
a848cd7e
SC
32062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32074 (
32075 cat <<\_ASBOX
ac1cb8d3
VS
32076## ----------------------------------------- ##
32077## Report this to wx-dev@lists.wxwidgets.org ##
32078## ----------------------------------------- ##
a848cd7e
SC
32079_ASBOX
32080 ) |
32081 sed "s/^/$as_me: WARNING: /" >&2
32082 ;;
32083esac
32084echo "$as_me:$LINENO: checking for $ac_header" >&5
32085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32086if eval "test \"\${$as_ac_Header+set}\" = set"; then
32087 echo $ECHO_N "(cached) $ECHO_C" >&6
32088else
ac1cb8d3 32089 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32090fi
32091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32093
32094fi
32095if test `eval echo '${'$as_ac_Header'}'` = yes; then
32096 cat >>confdefs.h <<_ACEOF
32097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32098_ACEOF
32099
32100 EXTRALIBS_ESD="-lesd"
32101
32102fi
32103
32104done
32105
32106
32107fi
32108
32109
32110
32111echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32112echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32113cat >conftest.$ac_ext <<_ACEOF
32114/* confdefs.h. */
32115_ACEOF
32116cat confdefs.h >>conftest.$ac_ext
32117cat >>conftest.$ac_ext <<_ACEOF
32118/* end confdefs.h. */
32119#ifdef __linux__
32120 #include <linux/cdrom.h>
32121 #else
32122 /* For Solaris */
32123 #include <sys/cdio.h>
32124 #endif
32125
32126int
32127main ()
32128{
32129struct cdrom_tocentry entry, old_entry;
32130 ;
32131 return 0;
32132}
32133_ACEOF
32134rm -f conftest.$ac_objext
32135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32136 (eval $ac_compile) 2>conftest.er1
a848cd7e 32137 ac_status=$?
ac1cb8d3
VS
32138 grep -v '^ *+' conftest.er1 >conftest.err
32139 rm -f conftest.er1
32140 cat conftest.err >&5
a848cd7e
SC
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } &&
fc480dc1
DE
32143 { ac_try='test -z "$ac_c_werror_flag"
32144 || test ! -s conftest.err'
ac1cb8d3
VS
32145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32146 (eval $ac_try) 2>&5
32147 ac_status=$?
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; } &&
32150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32152 (eval $ac_try) 2>&5
32153 ac_status=$?
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); }; }; then
32156 echo "$as_me:$LINENO: result: yes" >&5
32157echo "${ECHO_T}yes" >&6
32158 cat >>confdefs.h <<\_ACEOF
32159#define HAVE_KNOWN_CDROM_INTERFACE 1
32160_ACEOF
32161
32162else
32163 echo "$as_me: failed program was:" >&5
32164sed 's/^/| /' conftest.$ac_ext >&5
32165
32166echo "$as_me:$LINENO: result: no" >&5
32167echo "${ECHO_T}no" >&6
32168fi
ac1cb8d3 32169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32170
32171
32172cat >confcache <<\_ACEOF
32173# This file is a shell script that caches the results of configure
32174# tests run on this system so they can be shared between configure
32175# scripts and configure runs, see configure's option --config-cache.
32176# It is not useful on other systems. If it contains results you don't
32177# want to keep, you may remove or edit it.
32178#
32179# config.status only pays attention to the cache file if you give it
32180# the --recheck option to rerun configure.
32181#
32182# `ac_cv_env_foo' variables (set or unset) will be overridden when
32183# loading this file, other *unset* `ac_cv_foo' will be assigned the
32184# following values.
32185
32186_ACEOF
32187
32188# The following way of writing the cache mishandles newlines in values,
32189# but we know of no workaround that is simple, portable, and efficient.
32190# So, don't put newlines in cache variables' values.
32191# Ultrix sh set writes to stderr and can't be redirected directly,
32192# and sets the high bit in the cache file unless we assign to the vars.
32193{
32194 (set) 2>&1 |
32195 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32196 *ac_space=\ *)
32197 # `set' does not quote correctly, so add quotes (double-quote
32198 # substitution turns \\\\ into \\, and sed turns \\ into \).
32199 sed -n \
ac1cb8d3
VS
32200 "s/'/'\\\\''/g;
32201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32202 ;;
32203 *)
32204 # `set' quotes correctly as required by POSIX, so do not add quotes.
32205 sed -n \
ac1cb8d3 32206 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32207 ;;
32208 esac;
32209} |
32210 sed '
32211 t clear
32212 : clear
32213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32214 t end
32215 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32216 : end' >>confcache
32217if diff $cache_file confcache >/dev/null 2>&1; then :; else
32218 if test -w $cache_file; then
32219 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32220 cat confcache >$cache_file
32221 else
32222 echo "not updating unwritable cache $cache_file"
32223 fi
32224fi
32225rm -f confcache
32226
32227
32228CPP_MT_FLAG=
32229if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32230
32231
32232 THREADS_LINK=
32233 THREADS_CFLAGS=
32234
32235 if test "$wxUSE_THREADS" = "yes" ; then
32236 if test "$USE_BEOS" = 1; then
32237 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32238echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32239 wxUSE_THREADS="no"
32240 fi
32241 fi
32242
32243 if test "$wxUSE_THREADS" = "yes" ; then
32244
32245
32246 THREAD_OPTS="-pthread"
32247 case "${host}" in
32248 *-*-solaris2* | *-*-sunos4* )
32249 if test "x$GCC" = "xyes"; then
32250 THREAD_OPTS="-pthreads $THREAD_OPTS"
32251 else
32252 THREAD_OPTS="-mt $THREAD_OPTS"
32253 fi
32254 ;;
32255 *-*-freebsd*)
32256 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32257 ;;
32258 *-*-darwin* | *-*-cygwin* )
32259 THREAD_OPTS=""
32260 ;;
32261 *-*-aix*)
32262 THREAD_OPTS="pthreads"
32263 ;;
32264 *-hp-hpux* )
32265 if test "x$GCC" != "xyes"; then
32266 THREAD_OPTS=""
32267 fi
32268 ;;
32269
32270 *-*-irix* )
32271 if test "x$GCC" = "xyes"; then
32272 THREAD_OPTS=""
32273 fi
32274 ;;
32275
32276 *-*-*UnixWare*)
32277 if test "x$GCC" != "xyes"; then
32278 THREAD_OPTS="-Ethread"
32279 fi
32280 ;;
32281 esac
32282
32283 THREAD_OPTS="$THREAD_OPTS pthread none"
32284
32285 THREADS_OK=no
32286 for flag in $THREAD_OPTS; do
32287 case $flag in
32288 none)
32289 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32290echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32291 ;;
32292
32293 -*)
32294 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32295echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32296 THREADS_CFLAGS="$flag"
32297 ;;
32298
32299 *)
32300 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32301echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32302 THREADS_LINK="-l$flag"
32303 ;;
32304 esac
32305
32306 save_LIBS="$LIBS"
32307 save_CFLAGS="$CFLAGS"
32308 LIBS="$THREADS_LINK $LIBS"
32309 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32310
32311 cat >conftest.$ac_ext <<_ACEOF
32312/* confdefs.h. */
32313_ACEOF
32314cat confdefs.h >>conftest.$ac_ext
32315cat >>conftest.$ac_ext <<_ACEOF
32316/* end confdefs.h. */
32317#include <pthread.h>
32318int
32319main ()
32320{
32321pthread_create(0,0,0,0);
32322 ;
32323 return 0;
32324}
32325_ACEOF
32326rm -f conftest.$ac_objext conftest$ac_exeext
32327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32328 (eval $ac_link) 2>conftest.er1
a848cd7e 32329 ac_status=$?
ac1cb8d3
VS
32330 grep -v '^ *+' conftest.er1 >conftest.err
32331 rm -f conftest.er1
32332 cat conftest.err >&5
a848cd7e
SC
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); } &&
fc480dc1
DE
32335 { ac_try='test -z "$ac_c_werror_flag"
32336 || test ! -s conftest.err'
ac1cb8d3
VS
32337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338 (eval $ac_try) 2>&5
32339 ac_status=$?
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; } &&
32342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32344 (eval $ac_try) 2>&5
32345 ac_status=$?
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347 (exit $ac_status); }; }; then
32348 THREADS_OK=yes
32349else
32350 echo "$as_me: failed program was:" >&5
32351sed 's/^/| /' conftest.$ac_ext >&5
32352
32353fi
ac1cb8d3
VS
32354rm -f conftest.err conftest.$ac_objext \
32355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32356
32357 LIBS="$save_LIBS"
32358 CFLAGS="$save_CFLAGS"
32359
32360 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32361echo "${ECHO_T}$THREADS_OK" >&6
32362 if test "x$THREADS_OK" = "xyes"; then
32363 break;
32364 fi
32365
32366 THREADS_LINK=""
32367 THREADS_CFLAGS=""
32368 done
32369
32370 if test "x$THREADS_OK" != "xyes"; then
32371 wxUSE_THREADS=no
32372 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32373echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32374 else
32375 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32376 LIBS="$THREADS_LINK $LIBS"
32377
32378 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32379echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32380 flag=no
32381 case "${host}" in
32382 *-aix*)
32383 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32384 flag="-D_THREAD_SAFE"
32385 ;;
32386 *-freebsd*)
32387 flag="-D_THREAD_SAFE"
32388 ;;
32389 *-hp-hpux* )
32390 flag="-D_REENTRANT"
32391 if test "x$GCC" != "xyes"; then
32392 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32393
32394 LIBS="$LIBS -lcma"
a848cd7e
SC
32395 fi
32396 ;;
32397 *solaris* | alpha*-osf*)
32398 flag="-D_REENTRANT"
32399 ;;
32400 esac
32401 echo "$as_me:$LINENO: result: ${flag}" >&5
32402echo "${ECHO_T}${flag}" >&6
32403 if test "x$flag" != xno; then
32404 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32405 fi
32406
32407 if test "x$THREADS_CFLAGS" != "x"; then
32408 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32409 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32410 fi
32411 fi
32412 fi
32413
32414 if test "$wxUSE_THREADS" = "yes" ; then
32415
32416for ac_func in thr_setconcurrency
32417do
32418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32419echo "$as_me:$LINENO: checking for $ac_func" >&5
32420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32421if eval "test \"\${$as_ac_var+set}\" = set"; then
32422 echo $ECHO_N "(cached) $ECHO_C" >&6
32423else
32424 cat >conftest.$ac_ext <<_ACEOF
32425/* confdefs.h. */
32426_ACEOF
32427cat confdefs.h >>conftest.$ac_ext
32428cat >>conftest.$ac_ext <<_ACEOF
32429/* end confdefs.h. */
ac1cb8d3
VS
32430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32432#define $ac_func innocuous_$ac_func
32433
a848cd7e
SC
32434/* System header to define __stub macros and hopefully few prototypes,
32435 which can conflict with char $ac_func (); below.
32436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32437 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32438
a848cd7e
SC
32439#ifdef __STDC__
32440# include <limits.h>
32441#else
32442# include <assert.h>
32443#endif
ac1cb8d3
VS
32444
32445#undef $ac_func
32446
a848cd7e
SC
32447/* Override any gcc2 internal prototype to avoid an error. */
32448#ifdef __cplusplus
32449extern "C"
32450{
32451#endif
32452/* We use char because int might match the return type of a gcc2
32453 builtin and then its argument prototype would still apply. */
32454char $ac_func ();
32455/* The GNU C library defines this for functions which it implements
32456 to always fail with ENOSYS. Some functions are actually named
32457 something starting with __ and the normal name is an alias. */
32458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32459choke me
32460#else
32461char (*f) () = $ac_func;
32462#endif
32463#ifdef __cplusplus
32464}
32465#endif
32466
32467int
32468main ()
32469{
32470return f != $ac_func;
32471 ;
32472 return 0;
32473}
32474_ACEOF
32475rm -f conftest.$ac_objext conftest$ac_exeext
32476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32477 (eval $ac_link) 2>conftest.er1
a848cd7e 32478 ac_status=$?
ac1cb8d3
VS
32479 grep -v '^ *+' conftest.er1 >conftest.err
32480 rm -f conftest.er1
32481 cat conftest.err >&5
a848cd7e
SC
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); } &&
fc480dc1
DE
32484 { ac_try='test -z "$ac_c_werror_flag"
32485 || test ! -s conftest.err'
ac1cb8d3
VS
32486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32487 (eval $ac_try) 2>&5
32488 ac_status=$?
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); }; } &&
32491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32493 (eval $ac_try) 2>&5
32494 ac_status=$?
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); }; }; then
32497 eval "$as_ac_var=yes"
32498else
32499 echo "$as_me: failed program was:" >&5
32500sed 's/^/| /' conftest.$ac_ext >&5
32501
32502eval "$as_ac_var=no"
32503fi
ac1cb8d3
VS
32504rm -f conftest.err conftest.$ac_objext \
32505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32506fi
32507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32509if test `eval echo '${'$as_ac_var'}'` = yes; then
32510 cat >>confdefs.h <<_ACEOF
32511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32512_ACEOF
32513
32514fi
32515done
32516
32517
32518
32519for ac_header in sched.h
32520do
32521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32522if eval "test \"\${$as_ac_Header+set}\" = set"; then
32523 echo "$as_me:$LINENO: checking for $ac_header" >&5
32524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32525if eval "test \"\${$as_ac_Header+set}\" = set"; then
32526 echo $ECHO_N "(cached) $ECHO_C" >&6
32527fi
32528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32530else
32531 # Is the header compilable?
32532echo "$as_me:$LINENO: checking $ac_header usability" >&5
32533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32534cat >conftest.$ac_ext <<_ACEOF
32535/* confdefs.h. */
32536_ACEOF
32537cat confdefs.h >>conftest.$ac_ext
32538cat >>conftest.$ac_ext <<_ACEOF
32539/* end confdefs.h. */
32540$ac_includes_default
32541#include <$ac_header>
32542_ACEOF
32543rm -f conftest.$ac_objext
32544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32545 (eval $ac_compile) 2>conftest.er1
a848cd7e 32546 ac_status=$?
ac1cb8d3
VS
32547 grep -v '^ *+' conftest.er1 >conftest.err
32548 rm -f conftest.er1
32549 cat conftest.err >&5
a848cd7e
SC
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); } &&
fc480dc1
DE
32552 { ac_try='test -z "$ac_c_werror_flag"
32553 || test ! -s conftest.err'
ac1cb8d3
VS
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; } &&
32559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32561 (eval $ac_try) 2>&5
32562 ac_status=$?
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; }; then
32565 ac_header_compiler=yes
32566else
32567 echo "$as_me: failed program was:" >&5
32568sed 's/^/| /' conftest.$ac_ext >&5
32569
32570ac_header_compiler=no
32571fi
ac1cb8d3 32572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32574echo "${ECHO_T}$ac_header_compiler" >&6
32575
32576# Is the header present?
32577echo "$as_me:$LINENO: checking $ac_header presence" >&5
32578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32579cat >conftest.$ac_ext <<_ACEOF
32580/* confdefs.h. */
32581_ACEOF
32582cat confdefs.h >>conftest.$ac_ext
32583cat >>conftest.$ac_ext <<_ACEOF
32584/* end confdefs.h. */
32585#include <$ac_header>
32586_ACEOF
32587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32589 ac_status=$?
32590 grep -v '^ *+' conftest.er1 >conftest.err
32591 rm -f conftest.er1
32592 cat conftest.err >&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } >/dev/null; then
32595 if test -s conftest.err; then
32596 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32598 else
32599 ac_cpp_err=
32600 fi
32601else
32602 ac_cpp_err=yes
32603fi
32604if test -z "$ac_cpp_err"; then
32605 ac_header_preproc=yes
32606else
32607 echo "$as_me: failed program was:" >&5
32608sed 's/^/| /' conftest.$ac_ext >&5
32609
32610 ac_header_preproc=no
32611fi
32612rm -f conftest.err conftest.$ac_ext
32613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32614echo "${ECHO_T}$ac_header_preproc" >&6
32615
32616# So? What about this header?
ac1cb8d3
VS
32617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32618 yes:no: )
a848cd7e
SC
32619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32623 ac_header_preproc=yes
a848cd7e 32624 ;;
ac1cb8d3 32625 no:yes:* )
a848cd7e
SC
32626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32638 (
32639 cat <<\_ASBOX
ac1cb8d3
VS
32640## ----------------------------------------- ##
32641## Report this to wx-dev@lists.wxwidgets.org ##
32642## ----------------------------------------- ##
a848cd7e
SC
32643_ASBOX
32644 ) |
32645 sed "s/^/$as_me: WARNING: /" >&2
32646 ;;
32647esac
32648echo "$as_me:$LINENO: checking for $ac_header" >&5
32649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32650if eval "test \"\${$as_ac_Header+set}\" = set"; then
32651 echo $ECHO_N "(cached) $ECHO_C" >&6
32652else
ac1cb8d3 32653 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32654fi
32655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32657
32658fi
32659if test `eval echo '${'$as_ac_Header'}'` = yes; then
32660 cat >>confdefs.h <<_ACEOF
32661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32662_ACEOF
32663
32664fi
32665
32666done
32667
32668 if test "$ac_cv_header_sched_h" = "yes"; then
32669 echo "$as_me:$LINENO: checking for sched_yield" >&5
32670echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32671if test "${ac_cv_func_sched_yield+set}" = set; then
32672 echo $ECHO_N "(cached) $ECHO_C" >&6
32673else
32674 cat >conftest.$ac_ext <<_ACEOF
32675/* confdefs.h. */
32676_ACEOF
32677cat confdefs.h >>conftest.$ac_ext
32678cat >>conftest.$ac_ext <<_ACEOF
32679/* end confdefs.h. */
ac1cb8d3
VS
32680/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32682#define sched_yield innocuous_sched_yield
32683
a848cd7e
SC
32684/* System header to define __stub macros and hopefully few prototypes,
32685 which can conflict with char sched_yield (); below.
32686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32687 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32688
a848cd7e
SC
32689#ifdef __STDC__
32690# include <limits.h>
32691#else
32692# include <assert.h>
32693#endif
ac1cb8d3
VS
32694
32695#undef sched_yield
32696
a848cd7e
SC
32697/* Override any gcc2 internal prototype to avoid an error. */
32698#ifdef __cplusplus
32699extern "C"
32700{
32701#endif
32702/* We use char because int might match the return type of a gcc2
32703 builtin and then its argument prototype would still apply. */
32704char sched_yield ();
32705/* The GNU C library defines this for functions which it implements
32706 to always fail with ENOSYS. Some functions are actually named
32707 something starting with __ and the normal name is an alias. */
32708#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32709choke me
32710#else
32711char (*f) () = sched_yield;
32712#endif
32713#ifdef __cplusplus
32714}
32715#endif
32716
32717int
32718main ()
32719{
32720return f != sched_yield;
32721 ;
32722 return 0;
32723}
32724_ACEOF
32725rm -f conftest.$ac_objext conftest$ac_exeext
32726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32727 (eval $ac_link) 2>conftest.er1
a848cd7e 32728 ac_status=$?
ac1cb8d3
VS
32729 grep -v '^ *+' conftest.er1 >conftest.err
32730 rm -f conftest.er1
32731 cat conftest.err >&5
a848cd7e
SC
32732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733 (exit $ac_status); } &&
fc480dc1
DE
32734 { ac_try='test -z "$ac_c_werror_flag"
32735 || test ! -s conftest.err'
ac1cb8d3
VS
32736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 (eval $ac_try) 2>&5
32738 ac_status=$?
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; } &&
32741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743 (eval $ac_try) 2>&5
32744 ac_status=$?
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; }; then
32747 ac_cv_func_sched_yield=yes
32748else
32749 echo "$as_me: failed program was:" >&5
32750sed 's/^/| /' conftest.$ac_ext >&5
32751
32752ac_cv_func_sched_yield=no
32753fi
ac1cb8d3
VS
32754rm -f conftest.err conftest.$ac_objext \
32755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32756fi
32757echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32758echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32759if test $ac_cv_func_sched_yield = yes; then
32760 cat >>confdefs.h <<\_ACEOF
32761#define HAVE_SCHED_YIELD 1
32762_ACEOF
32763
32764else
32765
32766 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32767echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32768if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32769 echo $ECHO_N "(cached) $ECHO_C" >&6
32770else
32771 ac_check_lib_save_LIBS=$LIBS
32772LIBS="-lposix4 $LIBS"
32773cat >conftest.$ac_ext <<_ACEOF
32774/* confdefs.h. */
32775_ACEOF
32776cat confdefs.h >>conftest.$ac_ext
32777cat >>conftest.$ac_ext <<_ACEOF
32778/* end confdefs.h. */
32779
32780/* Override any gcc2 internal prototype to avoid an error. */
32781#ifdef __cplusplus
32782extern "C"
32783#endif
32784/* We use char because int might match the return type of a gcc2
32785 builtin and then its argument prototype would still apply. */
32786char sched_yield ();
32787int
32788main ()
32789{
32790sched_yield ();
32791 ;
32792 return 0;
32793}
32794_ACEOF
32795rm -f conftest.$ac_objext conftest$ac_exeext
32796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32797 (eval $ac_link) 2>conftest.er1
a848cd7e 32798 ac_status=$?
ac1cb8d3
VS
32799 grep -v '^ *+' conftest.er1 >conftest.err
32800 rm -f conftest.er1
32801 cat conftest.err >&5
a848cd7e
SC
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); } &&
fc480dc1
DE
32804 { ac_try='test -z "$ac_c_werror_flag"
32805 || test ! -s conftest.err'
ac1cb8d3
VS
32806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32807 (eval $ac_try) 2>&5
32808 ac_status=$?
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); }; } &&
32811 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32813 (eval $ac_try) 2>&5
32814 ac_status=$?
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; }; then
32817 ac_cv_lib_posix4_sched_yield=yes
32818else
32819 echo "$as_me: failed program was:" >&5
32820sed 's/^/| /' conftest.$ac_ext >&5
32821
32822ac_cv_lib_posix4_sched_yield=no
32823fi
ac1cb8d3
VS
32824rm -f conftest.err conftest.$ac_objext \
32825 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32826LIBS=$ac_check_lib_save_LIBS
32827fi
32828echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32829echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32830if test $ac_cv_lib_posix4_sched_yield = yes; then
32831 cat >>confdefs.h <<\_ACEOF
32832#define HAVE_SCHED_YIELD 1
32833_ACEOF
32834 POSIX4_LINK=" -lposix4"
32835else
32836 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32837echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32838
32839fi
32840
32841
32842
32843fi
32844
32845 fi
32846
32847 HAVE_PRIOR_FUNCS=0
32848 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32849echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32850if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32851 echo $ECHO_N "(cached) $ECHO_C" >&6
32852else
32853 cat >conftest.$ac_ext <<_ACEOF
32854/* confdefs.h. */
32855_ACEOF
32856cat confdefs.h >>conftest.$ac_ext
32857cat >>conftest.$ac_ext <<_ACEOF
32858/* end confdefs.h. */
ac1cb8d3
VS
32859/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32861#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32862
a848cd7e
SC
32863/* System header to define __stub macros and hopefully few prototypes,
32864 which can conflict with char pthread_attr_getschedpolicy (); below.
32865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32866 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32867
a848cd7e
SC
32868#ifdef __STDC__
32869# include <limits.h>
32870#else
32871# include <assert.h>
32872#endif
ac1cb8d3
VS
32873
32874#undef pthread_attr_getschedpolicy
32875
a848cd7e
SC
32876/* Override any gcc2 internal prototype to avoid an error. */
32877#ifdef __cplusplus
32878extern "C"
32879{
32880#endif
32881/* We use char because int might match the return type of a gcc2
32882 builtin and then its argument prototype would still apply. */
32883char pthread_attr_getschedpolicy ();
32884/* The GNU C library defines this for functions which it implements
32885 to always fail with ENOSYS. Some functions are actually named
32886 something starting with __ and the normal name is an alias. */
32887#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32888choke me
32889#else
32890char (*f) () = pthread_attr_getschedpolicy;
32891#endif
32892#ifdef __cplusplus
32893}
32894#endif
32895
32896int
32897main ()
32898{
32899return f != pthread_attr_getschedpolicy;
32900 ;
32901 return 0;
32902}
32903_ACEOF
32904rm -f conftest.$ac_objext conftest$ac_exeext
32905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32906 (eval $ac_link) 2>conftest.er1
a848cd7e 32907 ac_status=$?
ac1cb8d3
VS
32908 grep -v '^ *+' conftest.er1 >conftest.err
32909 rm -f conftest.er1
32910 cat conftest.err >&5
a848cd7e
SC
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); } &&
fc480dc1
DE
32913 { ac_try='test -z "$ac_c_werror_flag"
32914 || test ! -s conftest.err'
ac1cb8d3
VS
32915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32916 (eval $ac_try) 2>&5
32917 ac_status=$?
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); }; } &&
32920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32922 (eval $ac_try) 2>&5
32923 ac_status=$?
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); }; }; then
32926 ac_cv_func_pthread_attr_getschedpolicy=yes
32927else
32928 echo "$as_me: failed program was:" >&5
32929sed 's/^/| /' conftest.$ac_ext >&5
32930
32931ac_cv_func_pthread_attr_getschedpolicy=no
32932fi
ac1cb8d3
VS
32933rm -f conftest.err conftest.$ac_objext \
32934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32935fi
32936echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32937echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32938if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32939 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32940echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32941if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32942 echo $ECHO_N "(cached) $ECHO_C" >&6
32943else
32944 cat >conftest.$ac_ext <<_ACEOF
32945/* confdefs.h. */
32946_ACEOF
32947cat confdefs.h >>conftest.$ac_ext
32948cat >>conftest.$ac_ext <<_ACEOF
32949/* end confdefs.h. */
ac1cb8d3
VS
32950/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32952#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32953
a848cd7e
SC
32954/* System header to define __stub macros and hopefully few prototypes,
32955 which can conflict with char pthread_attr_setschedparam (); below.
32956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32957 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32958
a848cd7e
SC
32959#ifdef __STDC__
32960# include <limits.h>
32961#else
32962# include <assert.h>
32963#endif
ac1cb8d3
VS
32964
32965#undef pthread_attr_setschedparam
32966
a848cd7e
SC
32967/* Override any gcc2 internal prototype to avoid an error. */
32968#ifdef __cplusplus
32969extern "C"
32970{
32971#endif
32972/* We use char because int might match the return type of a gcc2
32973 builtin and then its argument prototype would still apply. */
32974char pthread_attr_setschedparam ();
32975/* The GNU C library defines this for functions which it implements
32976 to always fail with ENOSYS. Some functions are actually named
32977 something starting with __ and the normal name is an alias. */
32978#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32979choke me
32980#else
32981char (*f) () = pthread_attr_setschedparam;
32982#endif
32983#ifdef __cplusplus
32984}
32985#endif
32986
32987int
32988main ()
32989{
32990return f != pthread_attr_setschedparam;
32991 ;
32992 return 0;
32993}
32994_ACEOF
32995rm -f conftest.$ac_objext conftest$ac_exeext
32996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32997 (eval $ac_link) 2>conftest.er1
a848cd7e 32998 ac_status=$?
ac1cb8d3
VS
32999 grep -v '^ *+' conftest.er1 >conftest.err
33000 rm -f conftest.er1
33001 cat conftest.err >&5
a848cd7e
SC
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); } &&
fc480dc1
DE
33004 { ac_try='test -z "$ac_c_werror_flag"
33005 || test ! -s conftest.err'
ac1cb8d3
VS
33006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007 (eval $ac_try) 2>&5
33008 ac_status=$?
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; } &&
33011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; }; then
33017 ac_cv_func_pthread_attr_setschedparam=yes
33018else
33019 echo "$as_me: failed program was:" >&5
33020sed 's/^/| /' conftest.$ac_ext >&5
33021
33022ac_cv_func_pthread_attr_setschedparam=no
33023fi
ac1cb8d3
VS
33024rm -f conftest.err conftest.$ac_objext \
33025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33026fi
33027echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33028echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33029if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33030 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33031echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33032if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33033 echo $ECHO_N "(cached) $ECHO_C" >&6
33034else
33035 cat >conftest.$ac_ext <<_ACEOF
33036/* confdefs.h. */
33037_ACEOF
33038cat confdefs.h >>conftest.$ac_ext
33039cat >>conftest.$ac_ext <<_ACEOF
33040/* end confdefs.h. */
ac1cb8d3
VS
33041/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33043#define sched_get_priority_max innocuous_sched_get_priority_max
33044
a848cd7e
SC
33045/* System header to define __stub macros and hopefully few prototypes,
33046 which can conflict with char sched_get_priority_max (); below.
33047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33048 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33049
a848cd7e
SC
33050#ifdef __STDC__
33051# include <limits.h>
33052#else
33053# include <assert.h>
33054#endif
ac1cb8d3
VS
33055
33056#undef sched_get_priority_max
33057
a848cd7e
SC
33058/* Override any gcc2 internal prototype to avoid an error. */
33059#ifdef __cplusplus
33060extern "C"
33061{
33062#endif
33063/* We use char because int might match the return type of a gcc2
33064 builtin and then its argument prototype would still apply. */
33065char sched_get_priority_max ();
33066/* The GNU C library defines this for functions which it implements
33067 to always fail with ENOSYS. Some functions are actually named
33068 something starting with __ and the normal name is an alias. */
33069#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33070choke me
33071#else
33072char (*f) () = sched_get_priority_max;
33073#endif
33074#ifdef __cplusplus
33075}
33076#endif
33077
33078int
33079main ()
33080{
33081return f != sched_get_priority_max;
33082 ;
33083 return 0;
33084}
33085_ACEOF
33086rm -f conftest.$ac_objext conftest$ac_exeext
33087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33088 (eval $ac_link) 2>conftest.er1
a848cd7e 33089 ac_status=$?
ac1cb8d3
VS
33090 grep -v '^ *+' conftest.er1 >conftest.err
33091 rm -f conftest.er1
33092 cat conftest.err >&5
a848cd7e
SC
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); } &&
fc480dc1
DE
33095 { ac_try='test -z "$ac_c_werror_flag"
33096 || test ! -s conftest.err'
ac1cb8d3
VS
33097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33098 (eval $ac_try) 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; } &&
33102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33104 (eval $ac_try) 2>&5
33105 ac_status=$?
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); }; }; then
33108 ac_cv_func_sched_get_priority_max=yes
33109else
33110 echo "$as_me: failed program was:" >&5
33111sed 's/^/| /' conftest.$ac_ext >&5
33112
33113ac_cv_func_sched_get_priority_max=no
33114fi
ac1cb8d3
VS
33115rm -f conftest.err conftest.$ac_objext \
33116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33117fi
33118echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33119echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33120if test $ac_cv_func_sched_get_priority_max = yes; then
33121 HAVE_PRIOR_FUNCS=1
33122else
33123 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33124echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33125if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33126 echo $ECHO_N "(cached) $ECHO_C" >&6
33127else
33128 ac_check_lib_save_LIBS=$LIBS
33129LIBS="-lposix4 $LIBS"
33130cat >conftest.$ac_ext <<_ACEOF
33131/* confdefs.h. */
33132_ACEOF
33133cat confdefs.h >>conftest.$ac_ext
33134cat >>conftest.$ac_ext <<_ACEOF
33135/* end confdefs.h. */
33136
33137/* Override any gcc2 internal prototype to avoid an error. */
33138#ifdef __cplusplus
33139extern "C"
33140#endif
33141/* We use char because int might match the return type of a gcc2
33142 builtin and then its argument prototype would still apply. */
33143char sched_get_priority_max ();
33144int
33145main ()
33146{
33147sched_get_priority_max ();
33148 ;
33149 return 0;
33150}
33151_ACEOF
33152rm -f conftest.$ac_objext conftest$ac_exeext
33153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33154 (eval $ac_link) 2>conftest.er1
a848cd7e 33155 ac_status=$?
ac1cb8d3
VS
33156 grep -v '^ *+' conftest.er1 >conftest.err
33157 rm -f conftest.er1
33158 cat conftest.err >&5
a848cd7e
SC
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); } &&
fc480dc1
DE
33161 { ac_try='test -z "$ac_c_werror_flag"
33162 || test ! -s conftest.err'
ac1cb8d3
VS
33163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33164 (eval $ac_try) 2>&5
33165 ac_status=$?
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); }; } &&
33168 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170 (eval $ac_try) 2>&5
33171 ac_status=$?
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; }; then
33174 ac_cv_lib_posix4_sched_get_priority_max=yes
33175else
33176 echo "$as_me: failed program was:" >&5
33177sed 's/^/| /' conftest.$ac_ext >&5
33178
33179ac_cv_lib_posix4_sched_get_priority_max=no
33180fi
ac1cb8d3
VS
33181rm -f conftest.err conftest.$ac_objext \
33182 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33183LIBS=$ac_check_lib_save_LIBS
33184fi
33185echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33186echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33187if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33188
33189 HAVE_PRIOR_FUNCS=1
33190 POSIX4_LINK=" -lposix4"
33191
33192fi
33193
33194
33195fi
33196
33197
33198fi
33199
33200
33201fi
33202
33203
33204 if test "$HAVE_PRIOR_FUNCS" = 1; then
33205 cat >>confdefs.h <<\_ACEOF
33206#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33207_ACEOF
33208
33209 else
33210 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33211echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33212 fi
33213
33214 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33215echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33216if test "${ac_cv_func_pthread_cancel+set}" = set; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33218else
33219 cat >conftest.$ac_ext <<_ACEOF
33220/* confdefs.h. */
33221_ACEOF
33222cat confdefs.h >>conftest.$ac_ext
33223cat >>conftest.$ac_ext <<_ACEOF
33224/* end confdefs.h. */
ac1cb8d3
VS
33225/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33227#define pthread_cancel innocuous_pthread_cancel
33228
a848cd7e
SC
33229/* System header to define __stub macros and hopefully few prototypes,
33230 which can conflict with char pthread_cancel (); below.
33231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33233
a848cd7e
SC
33234#ifdef __STDC__
33235# include <limits.h>
33236#else
33237# include <assert.h>
33238#endif
ac1cb8d3
VS
33239
33240#undef pthread_cancel
33241
a848cd7e
SC
33242/* Override any gcc2 internal prototype to avoid an error. */
33243#ifdef __cplusplus
33244extern "C"
33245{
33246#endif
33247/* We use char because int might match the return type of a gcc2
33248 builtin and then its argument prototype would still apply. */
33249char pthread_cancel ();
33250/* The GNU C library defines this for functions which it implements
33251 to always fail with ENOSYS. Some functions are actually named
33252 something starting with __ and the normal name is an alias. */
33253#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33254choke me
33255#else
33256char (*f) () = pthread_cancel;
33257#endif
33258#ifdef __cplusplus
33259}
33260#endif
33261
33262int
33263main ()
33264{
33265return f != pthread_cancel;
33266 ;
33267 return 0;
33268}
33269_ACEOF
33270rm -f conftest.$ac_objext conftest$ac_exeext
33271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33272 (eval $ac_link) 2>conftest.er1
a848cd7e 33273 ac_status=$?
ac1cb8d3
VS
33274 grep -v '^ *+' conftest.er1 >conftest.err
33275 rm -f conftest.er1
33276 cat conftest.err >&5
a848cd7e
SC
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); } &&
fc480dc1
DE
33279 { ac_try='test -z "$ac_c_werror_flag"
33280 || test ! -s conftest.err'
ac1cb8d3
VS
33281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33282 (eval $ac_try) 2>&5
33283 ac_status=$?
33284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285 (exit $ac_status); }; } &&
33286 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288 (eval $ac_try) 2>&5
33289 ac_status=$?
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; }; then
33292 ac_cv_func_pthread_cancel=yes
33293else
33294 echo "$as_me: failed program was:" >&5
33295sed 's/^/| /' conftest.$ac_ext >&5
33296
33297ac_cv_func_pthread_cancel=no
33298fi
ac1cb8d3
VS
33299rm -f conftest.err conftest.$ac_objext \
33300 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33301fi
33302echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33303echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33304if test $ac_cv_func_pthread_cancel = yes; then
33305 cat >>confdefs.h <<\_ACEOF
33306#define HAVE_PTHREAD_CANCEL 1
33307_ACEOF
33308
33309else
33310 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33311echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33312fi
33313
33314
33315
33316
33317 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33318echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33319if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33320 echo $ECHO_N "(cached) $ECHO_C" >&6
33321else
33322
33323 cat >conftest.$ac_ext <<_ACEOF
33324/* confdefs.h. */
33325_ACEOF
33326cat confdefs.h >>conftest.$ac_ext
33327cat >>conftest.$ac_ext <<_ACEOF
33328/* end confdefs.h. */
33329#include <pthread.h>
33330int
33331main ()
33332{
33333
33334 pthread_mutexattr_t attr;
33335 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33336
33337 ;
33338 return 0;
33339}
33340_ACEOF
33341rm -f conftest.$ac_objext
33342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33343 (eval $ac_compile) 2>conftest.er1
a848cd7e 33344 ac_status=$?
ac1cb8d3
VS
33345 grep -v '^ *+' conftest.er1 >conftest.err
33346 rm -f conftest.er1
33347 cat conftest.err >&5
a848cd7e
SC
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); } &&
fc480dc1
DE
33350 { ac_try='test -z "$ac_c_werror_flag"
33351 || test ! -s conftest.err'
ac1cb8d3
VS
33352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33353 (eval $ac_try) 2>&5
33354 ac_status=$?
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); }; } &&
33357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; }; then
33363
33364 wx_cv_type_pthread_mutexattr_t=yes
33365
33366else
33367 echo "$as_me: failed program was:" >&5
33368sed 's/^/| /' conftest.$ac_ext >&5
33369
33370
33371 wx_cv_type_pthread_mutexattr_t=no
33372
33373
33374fi
ac1cb8d3 33375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33376
33377fi
33378echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33379echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33380
33381 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33382 cat >>confdefs.h <<\_ACEOF
33383#define HAVE_PTHREAD_MUTEXATTR_T 1
33384_ACEOF
33385
33386 else
33387 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33388echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33389if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33390 echo $ECHO_N "(cached) $ECHO_C" >&6
33391else
33392
33393 cat >conftest.$ac_ext <<_ACEOF
33394/* confdefs.h. */
33395_ACEOF
33396cat confdefs.h >>conftest.$ac_ext
33397cat >>conftest.$ac_ext <<_ACEOF
33398/* end confdefs.h. */
33399#include <pthread.h>
33400int
33401main ()
33402{
33403
33404 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33405
33406 ;
33407 return 0;
33408}
33409_ACEOF
33410rm -f conftest.$ac_objext
33411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33412 (eval $ac_compile) 2>conftest.er1
a848cd7e 33413 ac_status=$?
ac1cb8d3
VS
33414 grep -v '^ *+' conftest.er1 >conftest.err
33415 rm -f conftest.er1
33416 cat conftest.err >&5
a848cd7e
SC
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); } &&
fc480dc1
DE
33419 { ac_try='test -z "$ac_c_werror_flag"
33420 || test ! -s conftest.err'
ac1cb8d3
VS
33421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33422 (eval $ac_try) 2>&5
33423 ac_status=$?
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; } &&
33426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33428 (eval $ac_try) 2>&5
33429 ac_status=$?
33430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 (exit $ac_status); }; }; then
33432
33433 wx_cv_type_pthread_rec_mutex_init=yes
33434
33435else
33436 echo "$as_me: failed program was:" >&5
33437sed 's/^/| /' conftest.$ac_ext >&5
33438
33439
33440 wx_cv_type_pthread_rec_mutex_init=no
33441
33442
33443fi
ac1cb8d3 33444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33445
33446fi
33447echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33448echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33449 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33450 cat >>confdefs.h <<\_ACEOF
33451#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33452_ACEOF
33453
33454 else
33455 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33456echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33457 fi
33458 fi
33459 fi
33460
33461else
33462 if test "$wxUSE_THREADS" = "yes" ; then
33463 case "${host}" in
33464 *-*-mingw32* )
33465 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33466echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33467if test "${wx_cv_cflags_mthread+set}" = set; then
33468 echo $ECHO_N "(cached) $ECHO_C" >&6
33469else
33470
33471 CFLAGS_OLD="$CFLAGS"
33472 CFLAGS="$CFLAGS -mthreads"
33473 cat >conftest.$ac_ext <<_ACEOF
33474/* confdefs.h. */
33475_ACEOF
33476cat confdefs.h >>conftest.$ac_ext
33477cat >>conftest.$ac_ext <<_ACEOF
33478/* end confdefs.h. */
33479
33480int
33481main ()
33482{
33483
33484 ;
33485 return 0;
33486}
33487_ACEOF
33488rm -f conftest.$ac_objext
33489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33490 (eval $ac_compile) 2>conftest.er1
a848cd7e 33491 ac_status=$?
ac1cb8d3
VS
33492 grep -v '^ *+' conftest.er1 >conftest.err
33493 rm -f conftest.er1
33494 cat conftest.err >&5
a848cd7e
SC
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); } &&
fc480dc1
DE
33497 { ac_try='test -z "$ac_c_werror_flag"
33498 || test ! -s conftest.err'
ac1cb8d3
VS
33499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33500 (eval $ac_try) 2>&5
33501 ac_status=$?
33502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503 (exit $ac_status); }; } &&
33504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33506 (eval $ac_try) 2>&5
33507 ac_status=$?
33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509 (exit $ac_status); }; }; then
33510 wx_cv_cflags_mthread=yes
33511else
33512 echo "$as_me: failed program was:" >&5
33513sed 's/^/| /' conftest.$ac_ext >&5
33514
33515wx_cv_cflags_mthread=no
33516
33517fi
ac1cb8d3 33518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33519
33520
33521fi
33522echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33523echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33524
33525 if test "$wx_cv_cflags_mthread" = "yes"; then
33526 CXXFLAGS="$CXXFLAGS -mthreads"
33527 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33528 LDFLAGS="$LDFLAGS -mthreads"
33529 else
33530 CFLAGS="$CFLAGS_OLD"
33531 fi
33532 ;;
33533 *-pc-os2*emx )
33534 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33535 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33536 LDFLAGS="$LDFLAGS -Zmt"
33537 ;;
33538 esac
33539 fi
33540fi
33541
33542if test "$wxUSE_THREADS" = "yes"; then
33543 cat >>confdefs.h <<\_ACEOF
33544#define wxUSE_THREADS 1
33545_ACEOF
33546
33547
33548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33549else
33550 if test "$ac_cv_func_strtok_r" = "yes"; then
33551 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33552echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33553 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33554 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33555 echo "$as_me:$LINENO: result: yes" >&5
33556echo "${ECHO_T}yes" >&6
33557 else
33558 echo "$as_me:$LINENO: result: no" >&5
33559echo "${ECHO_T}no" >&6
33560 fi
33561 fi
33562fi
33563
33564if test "$WXGTK20" = 1 ; then
33565 cat >>confdefs.h <<_ACEOF
33566#define __WXGTK20__ $WXGTK20
33567_ACEOF
33568
33569 WXGTK12=1
33570fi
33571
33572if test "$WXGTK12" = 1 ; then
33573 cat >>confdefs.h <<_ACEOF
33574#define __WXGTK12__ $WXGTK12
33575_ACEOF
33576
33577fi
33578
33579if test "$WXGTK127" = 1 ; then
33580 cat >>confdefs.h <<_ACEOF
33581#define __WXGTK127__ $WXGTK127
33582_ACEOF
33583
33584fi
33585
33586if test "$WXGPE" = 1 ; then
33587 cat >>confdefs.h <<_ACEOF
33588#define __WXGPE__ $WXGPE
33589_ACEOF
33590
33591fi
33592
33593WXDEBUG=
33594
33595if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33596 WXDEBUG="-g"
33597 wxUSE_OPTIMISE=no
33598fi
33599
33600if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33601 wxUSE_DEBUG_INFO=yes
33602 WXDEBUG="-ggdb"
33603fi
33604
33605if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33606 cat >>confdefs.h <<\_ACEOF
33607#define WXDEBUG 1
33608_ACEOF
33609
33610 WXDEBUG_DEFINE="-D__WXDEBUG__"
33611else
33612 if test "$wxUSE_GTK" = 1 ; then
33613 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33614 fi
33615fi
33616
33617if test "$wxUSE_MEM_TRACING" = "yes" ; then
33618 cat >>confdefs.h <<\_ACEOF
33619#define wxUSE_MEMORY_TRACING 1
33620_ACEOF
33621
33622 cat >>confdefs.h <<\_ACEOF
33623#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33624_ACEOF
33625
33626 cat >>confdefs.h <<\_ACEOF
33627#define wxUSE_DEBUG_NEW_ALWAYS 1
33628_ACEOF
33629
33630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33631fi
33632
33633if test "$wxUSE_DMALLOC" = "yes" ; then
33634 DMALLOC_LIBS="-ldmalloc"
33635fi
33636
33637PROFILE=
33638if test "$wxUSE_PROFILE" = "yes" ; then
33639 PROFILE=" -pg"
33640fi
33641
33642CODE_GEN_FLAGS=
33643CODE_GEN_FLAGS_CXX=
33644if test "$GCC" = "yes" ; then
33645 if test "$wxUSE_NO_RTTI" = "yes" ; then
33646 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33647 fi
33648 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33649 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33650 fi
33651 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33652 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33653 fi
33654
33655 case "${host}" in
33656 powerpc*-*-aix* )
33657 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33658 ;;
33659 *-hppa* )
33660 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33661 ;;
33662 esac
33663fi
33664
33665OPTIMISE=
33666if test "$wxUSE_OPTIMISE" = "no" ; then
33667 if test "$GCC" = yes ; then
33668 OPTIMISE="-O0"
33669 fi
33670else
33671 if test "$GCC" = yes ; then
33672 OPTIMISE="-O2"
33673
33674 case "${host}" in
33675 i586-*-*|i686-*-* )
33676 OPTIMISE="${OPTIMISE} "
33677 ;;
33678 esac
33679 else
33680 OPTIMISE="-O"
33681 fi
33682fi
33683
33684
33685if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33686 cat >>confdefs.h <<\_ACEOF
33687#define WXWIN_COMPATIBILITY_2_2 1
33688_ACEOF
33689
33690
33691 WXWIN_COMPATIBILITY_2_4="yes"
33692fi
33693
33694if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33695 cat >>confdefs.h <<\_ACEOF
33696#define WXWIN_COMPATIBILITY_2_4 1
33697_ACEOF
33698
33699fi
33700
33701
33702if test "$wxUSE_GUI" = "yes"; then
33703 cat >>confdefs.h <<\_ACEOF
33704#define wxUSE_GUI 1
33705_ACEOF
33706
33707
33708 else
33709 cat >>confdefs.h <<\_ACEOF
33710#define wxUSE_NOGUI 1
33711_ACEOF
33712
33713fi
33714
33715
33716if test "$wxUSE_UNIX" = "yes"; then
33717 cat >>confdefs.h <<\_ACEOF
33718#define wxUSE_UNIX 1
33719_ACEOF
33720
33721fi
33722
33723
33724if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33725
33726 HAVE_DL_FUNCS=0
33727 HAVE_SHL_FUNCS=0
33728 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33729 if test "$USE_DARWIN" = 1; then
33730 HAVE_DL_FUNCS=1
33731 else
33732
33733for ac_func in dlopen
33734do
33735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33736echo "$as_me:$LINENO: checking for $ac_func" >&5
33737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33738if eval "test \"\${$as_ac_var+set}\" = set"; then
33739 echo $ECHO_N "(cached) $ECHO_C" >&6
33740else
33741 cat >conftest.$ac_ext <<_ACEOF
33742/* confdefs.h. */
33743_ACEOF
33744cat confdefs.h >>conftest.$ac_ext
33745cat >>conftest.$ac_ext <<_ACEOF
33746/* end confdefs.h. */
ac1cb8d3
VS
33747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33749#define $ac_func innocuous_$ac_func
33750
a848cd7e
SC
33751/* System header to define __stub macros and hopefully few prototypes,
33752 which can conflict with char $ac_func (); below.
33753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33754 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33755
a848cd7e
SC
33756#ifdef __STDC__
33757# include <limits.h>
33758#else
33759# include <assert.h>
33760#endif
ac1cb8d3
VS
33761
33762#undef $ac_func
33763
a848cd7e
SC
33764/* Override any gcc2 internal prototype to avoid an error. */
33765#ifdef __cplusplus
33766extern "C"
33767{
33768#endif
33769/* We use char because int might match the return type of a gcc2
33770 builtin and then its argument prototype would still apply. */
33771char $ac_func ();
33772/* The GNU C library defines this for functions which it implements
33773 to always fail with ENOSYS. Some functions are actually named
33774 something starting with __ and the normal name is an alias. */
33775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33776choke me
33777#else
33778char (*f) () = $ac_func;
33779#endif
33780#ifdef __cplusplus
33781}
33782#endif
33783
33784int
33785main ()
33786{
33787return f != $ac_func;
33788 ;
33789 return 0;
33790}
33791_ACEOF
33792rm -f conftest.$ac_objext conftest$ac_exeext
33793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33794 (eval $ac_link) 2>conftest.er1
a848cd7e 33795 ac_status=$?
ac1cb8d3
VS
33796 grep -v '^ *+' conftest.er1 >conftest.err
33797 rm -f conftest.er1
33798 cat conftest.err >&5
a848cd7e
SC
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); } &&
fc480dc1
DE
33801 { ac_try='test -z "$ac_c_werror_flag"
33802 || test ! -s conftest.err'
ac1cb8d3
VS
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33805 ac_status=$?
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; } &&
33808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33810 (eval $ac_try) 2>&5
33811 ac_status=$?
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; }; then
33814 eval "$as_ac_var=yes"
33815else
33816 echo "$as_me: failed program was:" >&5
33817sed 's/^/| /' conftest.$ac_ext >&5
33818
33819eval "$as_ac_var=no"
33820fi
ac1cb8d3
VS
33821rm -f conftest.err conftest.$ac_objext \
33822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33823fi
33824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33826if test `eval echo '${'$as_ac_var'}'` = yes; then
33827 cat >>confdefs.h <<_ACEOF
33828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33829_ACEOF
33830
33831 cat >>confdefs.h <<\_ACEOF
33832#define HAVE_DLOPEN 1
33833_ACEOF
33834
33835 HAVE_DL_FUNCS=1
33836
33837else
33838
33839 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33840echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33841if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33842 echo $ECHO_N "(cached) $ECHO_C" >&6
33843else
33844 ac_check_lib_save_LIBS=$LIBS
33845LIBS="-ldl $LIBS"
33846cat >conftest.$ac_ext <<_ACEOF
33847/* confdefs.h. */
33848_ACEOF
33849cat confdefs.h >>conftest.$ac_ext
33850cat >>conftest.$ac_ext <<_ACEOF
33851/* end confdefs.h. */
33852
33853/* Override any gcc2 internal prototype to avoid an error. */
33854#ifdef __cplusplus
33855extern "C"
33856#endif
33857/* We use char because int might match the return type of a gcc2
33858 builtin and then its argument prototype would still apply. */
33859char dlopen ();
33860int
33861main ()
33862{
33863dlopen ();
33864 ;
33865 return 0;
33866}
33867_ACEOF
33868rm -f conftest.$ac_objext conftest$ac_exeext
33869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33870 (eval $ac_link) 2>conftest.er1
a848cd7e 33871 ac_status=$?
ac1cb8d3
VS
33872 grep -v '^ *+' conftest.er1 >conftest.err
33873 rm -f conftest.er1
33874 cat conftest.err >&5
a848cd7e
SC
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); } &&
fc480dc1
DE
33877 { ac_try='test -z "$ac_c_werror_flag"
33878 || test ! -s conftest.err'
ac1cb8d3
VS
33879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880 (eval $ac_try) 2>&5
33881 ac_status=$?
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); }; } &&
33884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33886 (eval $ac_try) 2>&5
33887 ac_status=$?
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
33890 ac_cv_lib_dl_dlopen=yes
33891else
33892 echo "$as_me: failed program was:" >&5
33893sed 's/^/| /' conftest.$ac_ext >&5
33894
33895ac_cv_lib_dl_dlopen=no
33896fi
ac1cb8d3
VS
33897rm -f conftest.err conftest.$ac_objext \
33898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33899LIBS=$ac_check_lib_save_LIBS
33900fi
33901echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33902echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33903if test $ac_cv_lib_dl_dlopen = yes; then
33904
33905 cat >>confdefs.h <<\_ACEOF
33906#define HAVE_DLOPEN 1
33907_ACEOF
33908
33909 HAVE_DL_FUNCS=1
33910 DL_LINK=" -ldl$DL_LINK"
33911
33912else
33913
33914
33915for ac_func in shl_load
33916do
33917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33918echo "$as_me:$LINENO: checking for $ac_func" >&5
33919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33920if eval "test \"\${$as_ac_var+set}\" = set"; then
33921 echo $ECHO_N "(cached) $ECHO_C" >&6
33922else
33923 cat >conftest.$ac_ext <<_ACEOF
33924/* confdefs.h. */
33925_ACEOF
33926cat confdefs.h >>conftest.$ac_ext
33927cat >>conftest.$ac_ext <<_ACEOF
33928/* end confdefs.h. */
ac1cb8d3
VS
33929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33931#define $ac_func innocuous_$ac_func
33932
a848cd7e
SC
33933/* System header to define __stub macros and hopefully few prototypes,
33934 which can conflict with char $ac_func (); below.
33935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33936 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33937
a848cd7e
SC
33938#ifdef __STDC__
33939# include <limits.h>
33940#else
33941# include <assert.h>
33942#endif
ac1cb8d3
VS
33943
33944#undef $ac_func
33945
a848cd7e
SC
33946/* Override any gcc2 internal prototype to avoid an error. */
33947#ifdef __cplusplus
33948extern "C"
33949{
33950#endif
33951/* We use char because int might match the return type of a gcc2
33952 builtin and then its argument prototype would still apply. */
33953char $ac_func ();
33954/* The GNU C library defines this for functions which it implements
33955 to always fail with ENOSYS. Some functions are actually named
33956 something starting with __ and the normal name is an alias. */
33957#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33958choke me
33959#else
33960char (*f) () = $ac_func;
33961#endif
33962#ifdef __cplusplus
33963}
33964#endif
33965
33966int
33967main ()
33968{
33969return f != $ac_func;
33970 ;
33971 return 0;
33972}
33973_ACEOF
33974rm -f conftest.$ac_objext conftest$ac_exeext
33975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33976 (eval $ac_link) 2>conftest.er1
a848cd7e 33977 ac_status=$?
ac1cb8d3
VS
33978 grep -v '^ *+' conftest.er1 >conftest.err
33979 rm -f conftest.er1
33980 cat conftest.err >&5
a848cd7e
SC
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); } &&
fc480dc1
DE
33983 { ac_try='test -z "$ac_c_werror_flag"
33984 || test ! -s conftest.err'
ac1cb8d3
VS
33985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33986 (eval $ac_try) 2>&5
33987 ac_status=$?
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; } &&
33990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33992 (eval $ac_try) 2>&5
33993 ac_status=$?
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); }; }; then
33996 eval "$as_ac_var=yes"
33997else
33998 echo "$as_me: failed program was:" >&5
33999sed 's/^/| /' conftest.$ac_ext >&5
34000
34001eval "$as_ac_var=no"
34002fi
ac1cb8d3
VS
34003rm -f conftest.err conftest.$ac_objext \
34004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34005fi
34006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34007echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34008if test `eval echo '${'$as_ac_var'}'` = yes; then
34009 cat >>confdefs.h <<_ACEOF
34010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34011_ACEOF
34012
34013 cat >>confdefs.h <<\_ACEOF
34014#define HAVE_SHL_LOAD 1
34015_ACEOF
34016
34017 HAVE_SHL_FUNCS=1
34018
34019else
34020
34021 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34022echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34023if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34024 echo $ECHO_N "(cached) $ECHO_C" >&6
34025else
34026 ac_check_lib_save_LIBS=$LIBS
34027LIBS="-lshl_load $LIBS"
34028cat >conftest.$ac_ext <<_ACEOF
34029/* confdefs.h. */
34030_ACEOF
34031cat confdefs.h >>conftest.$ac_ext
34032cat >>conftest.$ac_ext <<_ACEOF
34033/* end confdefs.h. */
34034
34035/* Override any gcc2 internal prototype to avoid an error. */
34036#ifdef __cplusplus
34037extern "C"
34038#endif
34039/* We use char because int might match the return type of a gcc2
34040 builtin and then its argument prototype would still apply. */
34041char dld ();
34042int
34043main ()
34044{
34045dld ();
34046 ;
34047 return 0;
34048}
34049_ACEOF
34050rm -f conftest.$ac_objext conftest$ac_exeext
34051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34052 (eval $ac_link) 2>conftest.er1
a848cd7e 34053 ac_status=$?
ac1cb8d3
VS
34054 grep -v '^ *+' conftest.er1 >conftest.err
34055 rm -f conftest.er1
34056 cat conftest.err >&5
a848cd7e
SC
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); } &&
fc480dc1
DE
34059 { ac_try='test -z "$ac_c_werror_flag"
34060 || test ! -s conftest.err'
ac1cb8d3
VS
34061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34062 (eval $ac_try) 2>&5
34063 ac_status=$?
34064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); }; } &&
34066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34068 (eval $ac_try) 2>&5
34069 ac_status=$?
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); }; }; then
34072 ac_cv_lib_shl_load_dld=yes
34073else
34074 echo "$as_me: failed program was:" >&5
34075sed 's/^/| /' conftest.$ac_ext >&5
34076
34077ac_cv_lib_shl_load_dld=no
34078fi
ac1cb8d3
VS
34079rm -f conftest.err conftest.$ac_objext \
34080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34081LIBS=$ac_check_lib_save_LIBS
34082fi
34083echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34084echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34085if test $ac_cv_lib_shl_load_dld = yes; then
34086
34087 HAVE_SHL_FUNCS=1
34088 DL_LINK=" -ldld$DL_LINK"
34089
34090fi
34091
34092
34093fi
34094done
34095
34096
34097fi
34098
34099
34100fi
34101done
34102
34103
34104 if test "$HAVE_DL_FUNCS" = 1; then
34105
34106for ac_func in dlerror
34107do
34108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34109echo "$as_me:$LINENO: checking for $ac_func" >&5
34110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34111if eval "test \"\${$as_ac_var+set}\" = set"; then
34112 echo $ECHO_N "(cached) $ECHO_C" >&6
34113else
34114 cat >conftest.$ac_ext <<_ACEOF
34115/* confdefs.h. */
34116_ACEOF
34117cat confdefs.h >>conftest.$ac_ext
34118cat >>conftest.$ac_ext <<_ACEOF
34119/* end confdefs.h. */
ac1cb8d3
VS
34120/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34122#define $ac_func innocuous_$ac_func
34123
a848cd7e
SC
34124/* System header to define __stub macros and hopefully few prototypes,
34125 which can conflict with char $ac_func (); below.
34126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34127 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34128
a848cd7e
SC
34129#ifdef __STDC__
34130# include <limits.h>
34131#else
34132# include <assert.h>
34133#endif
ac1cb8d3
VS
34134
34135#undef $ac_func
34136
a848cd7e
SC
34137/* Override any gcc2 internal prototype to avoid an error. */
34138#ifdef __cplusplus
34139extern "C"
34140{
34141#endif
34142/* We use char because int might match the return type of a gcc2
34143 builtin and then its argument prototype would still apply. */
34144char $ac_func ();
34145/* The GNU C library defines this for functions which it implements
34146 to always fail with ENOSYS. Some functions are actually named
34147 something starting with __ and the normal name is an alias. */
34148#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34149choke me
34150#else
34151char (*f) () = $ac_func;
34152#endif
34153#ifdef __cplusplus
34154}
34155#endif
34156
34157int
34158main ()
34159{
34160return f != $ac_func;
34161 ;
34162 return 0;
34163}
34164_ACEOF
34165rm -f conftest.$ac_objext conftest$ac_exeext
34166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34167 (eval $ac_link) 2>conftest.er1
a848cd7e 34168 ac_status=$?
ac1cb8d3
VS
34169 grep -v '^ *+' conftest.er1 >conftest.err
34170 rm -f conftest.er1
34171 cat conftest.err >&5
a848cd7e
SC
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); } &&
fc480dc1
DE
34174 { ac_try='test -z "$ac_c_werror_flag"
34175 || test ! -s conftest.err'
ac1cb8d3
VS
34176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34177 (eval $ac_try) 2>&5
34178 ac_status=$?
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); }; } &&
34181 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34183 (eval $ac_try) 2>&5
34184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; }; then
34187 eval "$as_ac_var=yes"
34188else
34189 echo "$as_me: failed program was:" >&5
34190sed 's/^/| /' conftest.$ac_ext >&5
34191
34192eval "$as_ac_var=no"
34193fi
ac1cb8d3
VS
34194rm -f conftest.err conftest.$ac_objext \
34195 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34196fi
34197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34198echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34199if test `eval echo '${'$as_ac_var'}'` = yes; then
34200 cat >>confdefs.h <<_ACEOF
34201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34202_ACEOF
34203 cat >>confdefs.h <<\_ACEOF
34204#define HAVE_DLERROR 1
34205_ACEOF
34206
34207else
34208
34209 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34210echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34211if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34213else
34214 ac_check_lib_save_LIBS=$LIBS
34215LIBS="-ldl $LIBS"
34216cat >conftest.$ac_ext <<_ACEOF
34217/* confdefs.h. */
34218_ACEOF
34219cat confdefs.h >>conftest.$ac_ext
34220cat >>conftest.$ac_ext <<_ACEOF
34221/* end confdefs.h. */
34222
34223/* Override any gcc2 internal prototype to avoid an error. */
34224#ifdef __cplusplus
34225extern "C"
34226#endif
34227/* We use char because int might match the return type of a gcc2
34228 builtin and then its argument prototype would still apply. */
34229char dlerror ();
34230int
34231main ()
34232{
34233dlerror ();
34234 ;
34235 return 0;
34236}
34237_ACEOF
34238rm -f conftest.$ac_objext conftest$ac_exeext
34239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34240 (eval $ac_link) 2>conftest.er1
a848cd7e 34241 ac_status=$?
ac1cb8d3
VS
34242 grep -v '^ *+' conftest.er1 >conftest.err
34243 rm -f conftest.er1
34244 cat conftest.err >&5
a848cd7e
SC
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); } &&
fc480dc1
DE
34247 { ac_try='test -z "$ac_c_werror_flag"
34248 || test ! -s conftest.err'
ac1cb8d3
VS
34249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34250 (eval $ac_try) 2>&5
34251 ac_status=$?
34252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); }; } &&
34254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34256 (eval $ac_try) 2>&5
34257 ac_status=$?
34258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259 (exit $ac_status); }; }; then
34260 ac_cv_lib_dl_dlerror=yes
34261else
34262 echo "$as_me: failed program was:" >&5
34263sed 's/^/| /' conftest.$ac_ext >&5
34264
34265ac_cv_lib_dl_dlerror=no
34266fi
ac1cb8d3
VS
34267rm -f conftest.err conftest.$ac_objext \
34268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34269LIBS=$ac_check_lib_save_LIBS
34270fi
34271echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34272echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34273if test $ac_cv_lib_dl_dlerror = yes; then
34274 cat >>confdefs.h <<\_ACEOF
34275#define HAVE_DLERROR 1
34276_ACEOF
34277
34278fi
34279
34280
34281
34282fi
34283done
34284
34285 fi
34286 fi
34287
34288 if test "$HAVE_DL_FUNCS" = 0; then
34289 if test "$HAVE_SHL_FUNCS" = 0; then
34290 if test "$USE_UNIX" = 1; then
34291 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34292echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34293 wxUSE_DYNAMIC_LOADER=no
34294 wxUSE_DYNLIB_CLASS=no
34295 else
34296 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34297echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34298 fi
34299 fi
34300 fi
34301 fi
34302fi
34303
34304if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34305 cat >>confdefs.h <<\_ACEOF
34306#define wxUSE_DYNAMIC_LOADER 1
34307_ACEOF
34308
34309fi
34310if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34311 cat >>confdefs.h <<\_ACEOF
34312#define wxUSE_DYNLIB_CLASS 1
34313_ACEOF
34314
34315fi
34316
34317
34318
34319if test "$wxUSE_PLUGINS" = "yes" ; then
34320 if test "$wxUSE_SHARED" = "no" ; then
34321 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34322echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34323 wxUSE_PLUGINS=no
34324 fi
34325 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34326 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34327echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34328 wxUSE_PLUGINS=no
34329 fi
34330 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34331 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34332echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34333 wxUSE_PLUGINS=no
34334 fi
34335 if test "$wxUSE_PLUGINS" = "yes" ; then
34336 cat >>confdefs.h <<\_ACEOF
34337#define wxUSE_PLUGINS 1
34338_ACEOF
34339
34340 fi
34341fi
34342
34343
34344if test "$wxUSE_STL" = "yes"; then
34345 cat >>confdefs.h <<\_ACEOF
34346#define wxUSE_STL 1
34347_ACEOF
34348
34349fi
34350
34351if test "$wxUSE_APPLE_IEEE" = "yes"; then
34352 cat >>confdefs.h <<\_ACEOF
34353#define wxUSE_APPLE_IEEE 1
34354_ACEOF
34355
34356fi
34357
34358if test "$wxUSE_TIMER" = "yes"; then
34359 cat >>confdefs.h <<\_ACEOF
34360#define wxUSE_TIMER 1
34361_ACEOF
34362
34363fi
34364
34365WITH_PLUGIN_SDL=0
34366if test "$wxUSE_SOUND" = "yes"; then
34367 if test "$USE_UNIX" = "1" ; then
34368
34369for ac_header in sys/soundcard.h
34370do
34371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34372if eval "test \"\${$as_ac_Header+set}\" = set"; then
34373 echo "$as_me:$LINENO: checking for $ac_header" >&5
34374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34375if eval "test \"\${$as_ac_Header+set}\" = set"; then
34376 echo $ECHO_N "(cached) $ECHO_C" >&6
34377fi
34378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34380else
34381 # Is the header compilable?
34382echo "$as_me:$LINENO: checking $ac_header usability" >&5
34383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34384cat >conftest.$ac_ext <<_ACEOF
34385/* confdefs.h. */
34386_ACEOF
34387cat confdefs.h >>conftest.$ac_ext
34388cat >>conftest.$ac_ext <<_ACEOF
34389/* end confdefs.h. */
34390$ac_includes_default
34391#include <$ac_header>
34392_ACEOF
34393rm -f conftest.$ac_objext
34394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34395 (eval $ac_compile) 2>conftest.er1
a848cd7e 34396 ac_status=$?
ac1cb8d3
VS
34397 grep -v '^ *+' conftest.er1 >conftest.err
34398 rm -f conftest.er1
34399 cat conftest.err >&5
a848cd7e
SC
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); } &&
fc480dc1
DE
34402 { ac_try='test -z "$ac_c_werror_flag"
34403 || test ! -s conftest.err'
ac1cb8d3
VS
34404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34405 (eval $ac_try) 2>&5
34406 ac_status=$?
34407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408 (exit $ac_status); }; } &&
34409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34411 (eval $ac_try) 2>&5
34412 ac_status=$?
34413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414 (exit $ac_status); }; }; then
34415 ac_header_compiler=yes
34416else
34417 echo "$as_me: failed program was:" >&5
34418sed 's/^/| /' conftest.$ac_ext >&5
34419
34420ac_header_compiler=no
34421fi
ac1cb8d3 34422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34424echo "${ECHO_T}$ac_header_compiler" >&6
34425
34426# Is the header present?
34427echo "$as_me:$LINENO: checking $ac_header presence" >&5
34428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34429cat >conftest.$ac_ext <<_ACEOF
34430/* confdefs.h. */
34431_ACEOF
34432cat confdefs.h >>conftest.$ac_ext
34433cat >>conftest.$ac_ext <<_ACEOF
34434/* end confdefs.h. */
34435#include <$ac_header>
34436_ACEOF
34437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34439 ac_status=$?
34440 grep -v '^ *+' conftest.er1 >conftest.err
34441 rm -f conftest.er1
34442 cat conftest.err >&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); } >/dev/null; then
34445 if test -s conftest.err; then
34446 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34448 else
34449 ac_cpp_err=
34450 fi
34451else
34452 ac_cpp_err=yes
34453fi
34454if test -z "$ac_cpp_err"; then
34455 ac_header_preproc=yes
34456else
34457 echo "$as_me: failed program was:" >&5
34458sed 's/^/| /' conftest.$ac_ext >&5
34459
34460 ac_header_preproc=no
34461fi
34462rm -f conftest.err conftest.$ac_ext
34463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34464echo "${ECHO_T}$ac_header_preproc" >&6
34465
34466# So? What about this header?
ac1cb8d3
VS
34467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34468 yes:no: )
a848cd7e
SC
34469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34473 ac_header_preproc=yes
a848cd7e 34474 ;;
ac1cb8d3 34475 no:yes:* )
a848cd7e
SC
34476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34488 (
34489 cat <<\_ASBOX
ac1cb8d3
VS
34490## ----------------------------------------- ##
34491## Report this to wx-dev@lists.wxwidgets.org ##
34492## ----------------------------------------- ##
a848cd7e
SC
34493_ASBOX
34494 ) |
34495 sed "s/^/$as_me: WARNING: /" >&2
34496 ;;
34497esac
34498echo "$as_me:$LINENO: checking for $ac_header" >&5
34499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34500if eval "test \"\${$as_ac_Header+set}\" = set"; then
34501 echo $ECHO_N "(cached) $ECHO_C" >&6
34502else
ac1cb8d3 34503 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34504fi
34505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34507
34508fi
34509if test `eval echo '${'$as_ac_Header'}'` = yes; then
34510 cat >>confdefs.h <<_ACEOF
34511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34512_ACEOF
34513
34514fi
34515
34516done
34517
34518
34519 if test "$wxUSE_LIBSDL" != "no"; then
34520
34521# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34522if test "${with_sdl_prefix+set}" = set; then
34523 withval="$with_sdl_prefix"
34524 sdl_prefix="$withval"
34525else
34526 sdl_prefix=""
34527fi;
34528
34529# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34530if test "${with_sdl_exec_prefix+set}" = set; then
34531 withval="$with_sdl_exec_prefix"
34532 sdl_exec_prefix="$withval"
34533else
34534 sdl_exec_prefix=""
34535fi;
34536# Check whether --enable-sdltest or --disable-sdltest was given.
34537if test "${enable_sdltest+set}" = set; then
34538 enableval="$enable_sdltest"
34539
34540else
34541 enable_sdltest=yes
34542fi;
34543
34544 if test x$sdl_exec_prefix != x ; then
34545 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34546 if test x${SDL_CONFIG+set} != xset ; then
34547 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34548 fi
34549 fi
34550 if test x$sdl_prefix != x ; then
34551 sdl_args="$sdl_args --prefix=$sdl_prefix"
34552 if test x${SDL_CONFIG+set} != xset ; then
34553 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34554 fi
34555 fi
34556
34557
34558 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34559 # Extract the first word of "sdl-config", so it can be a program name with args.
34560set dummy sdl-config; ac_word=$2
34561echo "$as_me:$LINENO: checking for $ac_word" >&5
34562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34563if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34564 echo $ECHO_N "(cached) $ECHO_C" >&6
34565else
34566 case $SDL_CONFIG in
34567 [\\/]* | ?:[\\/]*)
34568 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34569 ;;
34570 *)
34571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34572for as_dir in $PATH
34573do
34574 IFS=$as_save_IFS
34575 test -z "$as_dir" && as_dir=.
34576 for ac_exec_ext in '' $ac_executable_extensions; do
34577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34578 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34580 break 2
34581 fi
34582done
34583done
34584
34585 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34586 ;;
34587esac
34588fi
34589SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34590
34591if test -n "$SDL_CONFIG"; then
34592 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34593echo "${ECHO_T}$SDL_CONFIG" >&6
34594else
34595 echo "$as_me:$LINENO: result: no" >&5
34596echo "${ECHO_T}no" >&6
34597fi
34598
34599 min_sdl_version=1.2.0
34600 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34601echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34602 no_sdl=""
34603 if test "$SDL_CONFIG" = "no" ; then
34604 no_sdl=yes
34605 else
34606 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34607 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34608
34609 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34611 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34613 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34614 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34615 if test "x$enable_sdltest" = "xyes" ; then
34616 ac_save_CFLAGS="$CFLAGS"
1e9e8aba 34617 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
34618 ac_save_LIBS="$LIBS"
34619 CFLAGS="$CFLAGS $SDL_CFLAGS"
1e9e8aba 34620 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
34621 LIBS="$LIBS $SDL_LIBS"
34622 rm -f conf.sdltest
34623 if test "$cross_compiling" = yes; then
34624 echo $ac_n "cross compiling; assumed OK... $ac_c"
34625else
34626 cat >conftest.$ac_ext <<_ACEOF
34627/* confdefs.h. */
34628_ACEOF
34629cat confdefs.h >>conftest.$ac_ext
34630cat >>conftest.$ac_ext <<_ACEOF
34631/* end confdefs.h. */
34632
34633#include <stdio.h>
34634#include <stdlib.h>
34635#include <string.h>
34636#include "SDL.h"
34637
34638char*
34639my_strdup (char *str)
34640{
34641 char *new_str;
34642
34643 if (str)
34644 {
34645 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34646 strcpy (new_str, str);
34647 }
34648 else
34649 new_str = NULL;
34650
34651 return new_str;
34652}
34653
34654int main (int argc, char *argv[])
34655{
34656 int major, minor, micro;
34657 char *tmp_version;
34658
34659 /* This hangs on some systems (?)
34660 system ("touch conf.sdltest");
34661 */
34662 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34663
34664 /* HP/UX 9 (%@#!) writes to sscanf strings */
34665 tmp_version = my_strdup("$min_sdl_version");
34666 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34667 printf("%s, bad version string\n", "$min_sdl_version");
34668 exit(1);
34669 }
34670
34671 if (($sdl_major_version > major) ||
34672 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34673 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34674 {
34675 return 0;
34676 }
34677 else
34678 {
34679 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34680 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34681 printf("*** best to upgrade to the required version.\n");
34682 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34683 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34684 printf("*** config.cache before re-running configure\n");
34685 return 1;
34686 }
34687}
34688
34689
34690_ACEOF
34691rm -f conftest$ac_exeext
34692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34693 (eval $ac_link) 2>&5
34694 ac_status=$?
34695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34698 (eval $ac_try) 2>&5
34699 ac_status=$?
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); }; }; then
34702 :
34703else
34704 echo "$as_me: program exited with status $ac_status" >&5
34705echo "$as_me: failed program was:" >&5
34706sed 's/^/| /' conftest.$ac_ext >&5
34707
34708( exit $ac_status )
34709no_sdl=yes
34710fi
ac1cb8d3 34711rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34712fi
34713 CFLAGS="$ac_save_CFLAGS"
1e9e8aba 34714 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
34715 LIBS="$ac_save_LIBS"
34716 fi
34717 fi
34718 if test "x$no_sdl" = x ; then
34719 echo "$as_me:$LINENO: result: yes" >&5
34720echo "${ECHO_T}yes" >&6
34721
34722 EXTRALIBS_SDL="$SDL_LIBS"
34723 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34724 cat >>confdefs.h <<\_ACEOF
34725#define wxUSE_LIBSDL 1
34726_ACEOF
34727
34728
34729 else
34730 echo "$as_me:$LINENO: result: no" >&5
34731echo "${ECHO_T}no" >&6
34732 if test "$SDL_CONFIG" = "no" ; then
34733 echo "*** The sdl-config script installed by SDL could not be found"
34734 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34735 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34736 echo "*** full path to sdl-config."
34737 else
34738 if test -f conf.sdltest ; then
34739 :
34740 else
34741 echo "*** Could not run SDL test program, checking why..."
34742 CFLAGS="$CFLAGS $SDL_CFLAGS"
1e9e8aba 34743 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
34744 LIBS="$LIBS $SDL_LIBS"
34745 cat >conftest.$ac_ext <<_ACEOF
34746/* confdefs.h. */
34747_ACEOF
34748cat confdefs.h >>conftest.$ac_ext
34749cat >>conftest.$ac_ext <<_ACEOF
34750/* end confdefs.h. */
34751
34752#include <stdio.h>
34753#include "SDL.h"
34754
34755int main(int argc, char *argv[])
34756{ return 0; }
34757#undef main
34758#define main K_and_R_C_main
34759
34760int
34761main ()
34762{
34763 return 0;
34764 ;
34765 return 0;
34766}
34767_ACEOF
34768rm -f conftest.$ac_objext conftest$ac_exeext
34769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34770 (eval $ac_link) 2>conftest.er1
a848cd7e 34771 ac_status=$?
ac1cb8d3
VS
34772 grep -v '^ *+' conftest.er1 >conftest.err
34773 rm -f conftest.er1
34774 cat conftest.err >&5
a848cd7e
SC
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); } &&
fc480dc1
DE
34777 { ac_try='test -z "$ac_c_werror_flag"
34778 || test ! -s conftest.err'
ac1cb8d3
VS
34779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34780 (eval $ac_try) 2>&5
34781 ac_status=$?
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); }; } &&
34784 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34786 (eval $ac_try) 2>&5
34787 ac_status=$?
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); }; }; then
34790 echo "*** The test program compiled, but did not run. This usually means"
34791 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34792 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34793 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34794 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34795 echo "*** is required on your system"
34796 echo "***"
34797 echo "*** If you have an old version installed, it is best to remove it, although"
34798 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34799else
34800 echo "$as_me: failed program was:" >&5
34801sed 's/^/| /' conftest.$ac_ext >&5
34802
34803 echo "*** The test program failed to compile or link. See the file config.log for the"
34804 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34805 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34806 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34807fi
ac1cb8d3
VS
34808rm -f conftest.err conftest.$ac_objext \
34809 conftest$ac_exeext conftest.$ac_ext
a848cd7e 34810 CFLAGS="$ac_save_CFLAGS"
1e9e8aba 34811 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
34812 LIBS="$ac_save_LIBS"
34813 fi
34814 fi
34815 SDL_CFLAGS=""
34816 SDL_LIBS=""
34817 wxUSE_LIBSDL="no"
34818 fi
34819
34820
34821 rm -f conf.sdltest
34822
34823 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34824 WITH_PLUGIN_SDL=1
34825 fi
34826 fi
34827 fi
34828
34829 cat >>confdefs.h <<\_ACEOF
34830#define wxUSE_SOUND 1
34831_ACEOF
34832
34833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34834fi
34835
d1c38808
VZ
34836if test "$WXGTK20" = 1; then
34837 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34838 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
34839
34840
34841 succeeded=no
34842
34843 if test -z "$PKG_CONFIG"; then
34844 # Extract the first word of "pkg-config", so it can be a program name with args.
34845set dummy pkg-config; ac_word=$2
34846echo "$as_me:$LINENO: checking for $ac_word" >&5
34847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34848if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34849 echo $ECHO_N "(cached) $ECHO_C" >&6
34850else
34851 case $PKG_CONFIG in
34852 [\\/]* | ?:[\\/]*)
34853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34854 ;;
34855 *)
34856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34857for as_dir in $PATH
34858do
34859 IFS=$as_save_IFS
34860 test -z "$as_dir" && as_dir=.
34861 for ac_exec_ext in '' $ac_executable_extensions; do
34862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34865 break 2
34866 fi
34867done
34868done
34869
34870 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34871 ;;
34872esac
34873fi
34874PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34875
34876if test -n "$PKG_CONFIG"; then
34877 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34878echo "${ECHO_T}$PKG_CONFIG" >&6
34879else
34880 echo "$as_me:$LINENO: result: no" >&5
34881echo "${ECHO_T}no" >&6
34882fi
34883
34884 fi
34885
34886 if test "$PKG_CONFIG" = "no" ; then
34887 echo "*** The pkg-config script could not be found. Make sure it is"
34888 echo "*** in your path, or set the PKG_CONFIG environment variable"
34889 echo "*** to the full path to pkg-config."
34890 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
34891 else
34892 PKG_CONFIG_MIN_VERSION=0.9.0
34893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
34894 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2" >&5
34895echo $ECHO_N "checking for libgnomeprintui-2.2... $ECHO_C" >&6
34896
34897 if $PKG_CONFIG --exists "libgnomeprintui-2.2" ; then
34898 echo "$as_me:$LINENO: result: yes" >&5
34899echo "${ECHO_T}yes" >&6
34900 succeeded=yes
34901
34902 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
34903echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
34904 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2"`
34905 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
34906echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
34907
34908 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
34909echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
34910 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2"`
34911 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
34912echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
34913 else
34914 LIBGNOMEPRINTUI_CFLAGS=""
34915 LIBGNOMEPRINTUI_LIBS=""
34916 ## If we have a custom action on failure, don't print errors, but
34917 ## do set a variable so people can do so.
34918 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2"`
34919
34920 fi
34921
34922
34923
34924 else
34925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
34926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
34927 fi
34928 fi
34929
34930 if test $succeeded = yes; then
34931
34932 EXTRALIBS_GNOMEPRINT="$LIBGNOMEPRINTUI_LIBS"
34933 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
34934 cat >>confdefs.h <<\_ACEOF
34935#define wxUSE_LIBGNOMEPRINT 1
34936_ACEOF
34937
34938
34939 else
34940
34941 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
34942echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
34943 wxUSE_LIBGNOMEPRINT="no"
34944
34945
34946 fi
34947
34948 fi
34949 fi
34950fi
34951
34952
a848cd7e
SC
34953if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34954 cat >>confdefs.h <<\_ACEOF
34955#define wxUSE_CMDLINE_PARSER 1
34956_ACEOF
34957
34958fi
34959
34960if test "$wxUSE_STOPWATCH" = "yes"; then
34961 cat >>confdefs.h <<\_ACEOF
34962#define wxUSE_STOPWATCH 1
34963_ACEOF
34964
34965fi
34966
34967if test "$wxUSE_DATETIME" = "yes"; then
34968 cat >>confdefs.h <<\_ACEOF
34969#define wxUSE_DATETIME 1
34970_ACEOF
34971
34972fi
34973
34974if test "$wxUSE_FILE" = "yes"; then
34975 cat >>confdefs.h <<\_ACEOF
34976#define wxUSE_FILE 1
34977_ACEOF
34978
34979fi
34980
34981if test "$wxUSE_FFILE" = "yes"; then
34982 cat >>confdefs.h <<\_ACEOF
34983#define wxUSE_FFILE 1
34984_ACEOF
34985
34986fi
34987
34988if test "$wxUSE_FILESYSTEM" = "yes"; then
34989 cat >>confdefs.h <<\_ACEOF
34990#define wxUSE_FILESYSTEM 1
34991_ACEOF
34992
34993fi
34994
34995if test "$wxUSE_FS_ZIP" = "yes"; then
34996 cat >>confdefs.h <<\_ACEOF
34997#define wxUSE_FS_ZIP 1
34998_ACEOF
34999
35000fi
35001
35002if test "$wxUSE_ZIPSTREAM" = "yes"; then
35003 cat >>confdefs.h <<\_ACEOF
35004#define wxUSE_ZIPSTREAM 1
35005_ACEOF
35006
35007fi
35008
a848cd7e
SC
35009if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35010 cat >>confdefs.h <<\_ACEOF
35011#define wxUSE_ON_FATAL_EXCEPTION 1
35012_ACEOF
35013
35014fi
35015
35016if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35017 cat >>confdefs.h <<\_ACEOF
35018#define wxUSE_SNGLINST_CHECKER 1
35019_ACEOF
35020
35021fi
35022
35023if test "$wxUSE_BUSYINFO" = "yes"; then
35024 cat >>confdefs.h <<\_ACEOF
35025#define wxUSE_BUSYINFO 1
35026_ACEOF
35027
35028fi
35029
35030if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35031 cat >>confdefs.h <<\_ACEOF
35032#define wxUSE_STD_IOSTREAM 1
35033_ACEOF
35034
35035fi
35036
35037if test "$wxUSE_TEXTBUFFER" = "yes"; then
35038 cat >>confdefs.h <<\_ACEOF
35039#define wxUSE_TEXTBUFFER 1
35040_ACEOF
35041
35042fi
35043
35044if test "$wxUSE_TEXTFILE" = "yes"; then
35045 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35046 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35047echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35048 else
35049 cat >>confdefs.h <<\_ACEOF
35050#define wxUSE_TEXTFILE 1
35051_ACEOF
35052
35053 fi
35054fi
35055
35056if test "$wxUSE_CONFIG" = "yes" ; then
35057 if test "$wxUSE_TEXTFILE" != "yes"; then
35058 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35059echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35060 else
35061 cat >>confdefs.h <<\_ACEOF
35062#define wxUSE_CONFIG 1
35063_ACEOF
35064
35065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35066 fi
35067fi
35068
35069if test "$wxUSE_INTL" = "yes" ; then
35070 if test "$wxUSE_FILE" != "yes"; then
35071 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35072echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35073 else
35074 cat >>confdefs.h <<\_ACEOF
35075#define wxUSE_INTL 1
35076_ACEOF
35077
35078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35079 GUIDIST="$GUIDIST INTL_DIST"
35080 fi
35081fi
35082
35083if test "$wxUSE_LOG" = "yes"; then
35084 cat >>confdefs.h <<\_ACEOF
35085#define wxUSE_LOG 1
35086_ACEOF
35087
35088
35089 if test "$wxUSE_LOGGUI" = "yes"; then
35090 cat >>confdefs.h <<\_ACEOF
35091#define wxUSE_LOGGUI 1
35092_ACEOF
35093
35094 fi
35095
35096 if test "$wxUSE_LOGWINDOW" = "yes"; then
35097 cat >>confdefs.h <<\_ACEOF
35098#define wxUSE_LOGWINDOW 1
35099_ACEOF
35100
35101 fi
35102
35103 if test "$wxUSE_LOGDIALOG" = "yes"; then
35104 cat >>confdefs.h <<\_ACEOF
35105#define wxUSE_LOG_DIALOG 1
35106_ACEOF
35107
35108 fi
35109fi
35110
35111if test "$wxUSE_LONGLONG" = "yes"; then
35112 cat >>confdefs.h <<\_ACEOF
35113#define wxUSE_LONGLONG 1
35114_ACEOF
35115
35116fi
35117
35118if test "$wxUSE_GEOMETRY" = "yes"; then
35119 cat >>confdefs.h <<\_ACEOF
35120#define wxUSE_GEOMETRY 1
35121_ACEOF
35122
35123fi
35124
35125if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35126 cat >>confdefs.h <<\_ACEOF
35127#define wxUSE_DIALUP_MANAGER 1
35128_ACEOF
35129
35130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35131fi
35132
35133if test "$wxUSE_STREAMS" = "yes" ; then
35134 cat >>confdefs.h <<\_ACEOF
35135#define wxUSE_STREAMS 1
35136_ACEOF
35137
35138fi
35139
35140
35141if test "$wxUSE_DATETIME" = "yes"; then
35142
35143for ac_func in strptime
35144do
35145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35146echo "$as_me:$LINENO: checking for $ac_func" >&5
35147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35148if eval "test \"\${$as_ac_var+set}\" = set"; then
35149 echo $ECHO_N "(cached) $ECHO_C" >&6
35150else
35151 cat >conftest.$ac_ext <<_ACEOF
35152/* confdefs.h. */
35153_ACEOF
35154cat confdefs.h >>conftest.$ac_ext
35155cat >>conftest.$ac_ext <<_ACEOF
35156/* end confdefs.h. */
ac1cb8d3
VS
35157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35159#define $ac_func innocuous_$ac_func
35160
a848cd7e
SC
35161/* System header to define __stub macros and hopefully few prototypes,
35162 which can conflict with char $ac_func (); below.
35163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35164 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35165
a848cd7e
SC
35166#ifdef __STDC__
35167# include <limits.h>
35168#else
35169# include <assert.h>
35170#endif
ac1cb8d3
VS
35171
35172#undef $ac_func
35173
a848cd7e
SC
35174/* Override any gcc2 internal prototype to avoid an error. */
35175#ifdef __cplusplus
35176extern "C"
35177{
35178#endif
35179/* We use char because int might match the return type of a gcc2
35180 builtin and then its argument prototype would still apply. */
35181char $ac_func ();
35182/* The GNU C library defines this for functions which it implements
35183 to always fail with ENOSYS. Some functions are actually named
35184 something starting with __ and the normal name is an alias. */
35185#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35186choke me
35187#else
35188char (*f) () = $ac_func;
35189#endif
35190#ifdef __cplusplus
35191}
35192#endif
35193
35194int
35195main ()
35196{
35197return f != $ac_func;
35198 ;
35199 return 0;
35200}
35201_ACEOF
35202rm -f conftest.$ac_objext conftest$ac_exeext
35203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35204 (eval $ac_link) 2>conftest.er1
a848cd7e 35205 ac_status=$?
ac1cb8d3
VS
35206 grep -v '^ *+' conftest.er1 >conftest.err
35207 rm -f conftest.er1
35208 cat conftest.err >&5
a848cd7e
SC
35209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210 (exit $ac_status); } &&
fc480dc1
DE
35211 { ac_try='test -z "$ac_c_werror_flag"
35212 || test ! -s conftest.err'
ac1cb8d3
VS
35213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35214 (eval $ac_try) 2>&5
35215 ac_status=$?
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); }; } &&
35218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35220 (eval $ac_try) 2>&5
35221 ac_status=$?
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); }; }; then
35224 eval "$as_ac_var=yes"
35225else
35226 echo "$as_me: failed program was:" >&5
35227sed 's/^/| /' conftest.$ac_ext >&5
35228
35229eval "$as_ac_var=no"
35230fi
ac1cb8d3
VS
35231rm -f conftest.err conftest.$ac_objext \
35232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35233fi
35234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35236if test `eval echo '${'$as_ac_var'}'` = yes; then
35237 cat >>confdefs.h <<_ACEOF
35238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35239_ACEOF
35240
35241fi
35242done
35243
35244
35245 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35246echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35247if test "${wx_cv_var_timezone+set}" = set; then
35248 echo $ECHO_N "(cached) $ECHO_C" >&6
35249else
35250
35251 cat >conftest.$ac_ext <<_ACEOF
35252/* confdefs.h. */
35253_ACEOF
35254cat confdefs.h >>conftest.$ac_ext
35255cat >>conftest.$ac_ext <<_ACEOF
35256/* end confdefs.h. */
35257
35258 #include <time.h>
35259
35260int
35261main ()
35262{
35263
35264 int tz;
35265 tz = timezone;
35266
35267 ;
35268 return 0;
35269}
35270_ACEOF
35271rm -f conftest.$ac_objext
35272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35273 (eval $ac_compile) 2>conftest.er1
a848cd7e 35274 ac_status=$?
ac1cb8d3
VS
35275 grep -v '^ *+' conftest.er1 >conftest.err
35276 rm -f conftest.er1
35277 cat conftest.err >&5
a848cd7e
SC
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); } &&
fc480dc1
DE
35280 { ac_try='test -z "$ac_c_werror_flag"
35281 || test ! -s conftest.err'
ac1cb8d3
VS
35282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283 (eval $ac_try) 2>&5
35284 ac_status=$?
35285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 (exit $ac_status); }; } &&
35287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289 (eval $ac_try) 2>&5
35290 ac_status=$?
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); }; }; then
35293
35294 wx_cv_var_timezone=timezone
35295
35296else
35297 echo "$as_me: failed program was:" >&5
35298sed 's/^/| /' conftest.$ac_ext >&5
35299
35300
35301 cat >conftest.$ac_ext <<_ACEOF
35302/* confdefs.h. */
35303_ACEOF
35304cat confdefs.h >>conftest.$ac_ext
35305cat >>conftest.$ac_ext <<_ACEOF
35306/* end confdefs.h. */
35307
35308 #include <time.h>
35309
35310int
35311main ()
35312{
35313
35314 int tz;
35315 tz = _timezone;
35316
35317 ;
35318 return 0;
35319}
35320_ACEOF
35321rm -f conftest.$ac_objext
35322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35323 (eval $ac_compile) 2>conftest.er1
a848cd7e 35324 ac_status=$?
ac1cb8d3
VS
35325 grep -v '^ *+' conftest.er1 >conftest.err
35326 rm -f conftest.er1
35327 cat conftest.err >&5
a848cd7e
SC
35328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); } &&
fc480dc1
DE
35330 { ac_try='test -z "$ac_c_werror_flag"
35331 || test ! -s conftest.err'
ac1cb8d3
VS
35332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35333 (eval $ac_try) 2>&5
35334 ac_status=$?
35335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336 (exit $ac_status); }; } &&
35337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35339 (eval $ac_try) 2>&5
35340 ac_status=$?
35341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); }; }; then
35343
35344 wx_cv_var_timezone=_timezone
35345
35346else
35347 echo "$as_me: failed program was:" >&5
35348sed 's/^/| /' conftest.$ac_ext >&5
35349
35350
35351 cat >conftest.$ac_ext <<_ACEOF
35352/* confdefs.h. */
35353_ACEOF
35354cat confdefs.h >>conftest.$ac_ext
35355cat >>conftest.$ac_ext <<_ACEOF
35356/* end confdefs.h. */
35357
35358 #include <time.h>
35359
35360int
35361main ()
35362{
35363
35364 int tz;
35365 tz = __timezone;
35366
35367 ;
35368 return 0;
35369}
35370_ACEOF
35371rm -f conftest.$ac_objext
35372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35373 (eval $ac_compile) 2>conftest.er1
a848cd7e 35374 ac_status=$?
ac1cb8d3
VS
35375 grep -v '^ *+' conftest.er1 >conftest.err
35376 rm -f conftest.er1
35377 cat conftest.err >&5
a848cd7e
SC
35378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379 (exit $ac_status); } &&
fc480dc1
DE
35380 { ac_try='test -z "$ac_c_werror_flag"
35381 || test ! -s conftest.err'
ac1cb8d3
VS
35382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35383 (eval $ac_try) 2>&5
35384 ac_status=$?
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 (exit $ac_status); }; } &&
35387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35389 (eval $ac_try) 2>&5
35390 ac_status=$?
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); }; }; then
35393
35394 wx_cv_var_timezone=__timezone
35395
35396else
35397 echo "$as_me: failed program was:" >&5
35398sed 's/^/| /' conftest.$ac_ext >&5
35399
35400
35401 if test "$USE_DOS" = 0 ; then
35402 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35403echo "$as_me: WARNING: no timezone variable" >&2;}
35404 fi
35405
35406
35407fi
ac1cb8d3 35408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35409
35410
35411fi
ac1cb8d3 35412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35413
35414
35415fi
ac1cb8d3 35416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35417
35418
35419fi
35420echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35421echo "${ECHO_T}$wx_cv_var_timezone" >&6
35422
35423 if test "x$wx_cv_var_timezone" != x ; then
35424 cat >>confdefs.h <<_ACEOF
35425#define WX_TIMEZONE $wx_cv_var_timezone
35426_ACEOF
35427
35428 fi
35429
35430
35431for ac_func in localtime
35432do
35433as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35434echo "$as_me:$LINENO: checking for $ac_func" >&5
35435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35436if eval "test \"\${$as_ac_var+set}\" = set"; then
35437 echo $ECHO_N "(cached) $ECHO_C" >&6
35438else
35439 cat >conftest.$ac_ext <<_ACEOF
35440/* confdefs.h. */
35441_ACEOF
35442cat confdefs.h >>conftest.$ac_ext
35443cat >>conftest.$ac_ext <<_ACEOF
35444/* end confdefs.h. */
ac1cb8d3
VS
35445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35447#define $ac_func innocuous_$ac_func
35448
a848cd7e
SC
35449/* System header to define __stub macros and hopefully few prototypes,
35450 which can conflict with char $ac_func (); below.
35451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35452 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35453
a848cd7e
SC
35454#ifdef __STDC__
35455# include <limits.h>
35456#else
35457# include <assert.h>
35458#endif
ac1cb8d3
VS
35459
35460#undef $ac_func
35461
a848cd7e
SC
35462/* Override any gcc2 internal prototype to avoid an error. */
35463#ifdef __cplusplus
35464extern "C"
35465{
35466#endif
35467/* We use char because int might match the return type of a gcc2
35468 builtin and then its argument prototype would still apply. */
35469char $ac_func ();
35470/* The GNU C library defines this for functions which it implements
35471 to always fail with ENOSYS. Some functions are actually named
35472 something starting with __ and the normal name is an alias. */
35473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35474choke me
35475#else
35476char (*f) () = $ac_func;
35477#endif
35478#ifdef __cplusplus
35479}
35480#endif
35481
35482int
35483main ()
35484{
35485return f != $ac_func;
35486 ;
35487 return 0;
35488}
35489_ACEOF
35490rm -f conftest.$ac_objext conftest$ac_exeext
35491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35492 (eval $ac_link) 2>conftest.er1
a848cd7e 35493 ac_status=$?
ac1cb8d3
VS
35494 grep -v '^ *+' conftest.er1 >conftest.err
35495 rm -f conftest.er1
35496 cat conftest.err >&5
a848cd7e
SC
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); } &&
fc480dc1
DE
35499 { ac_try='test -z "$ac_c_werror_flag"
35500 || test ! -s conftest.err'
ac1cb8d3
VS
35501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35502 (eval $ac_try) 2>&5
35503 ac_status=$?
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); }; } &&
35506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35508 (eval $ac_try) 2>&5
35509 ac_status=$?
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); }; }; then
35512 eval "$as_ac_var=yes"
35513else
35514 echo "$as_me: failed program was:" >&5
35515sed 's/^/| /' conftest.$ac_ext >&5
35516
35517eval "$as_ac_var=no"
35518fi
ac1cb8d3
VS
35519rm -f conftest.err conftest.$ac_objext \
35520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35521fi
35522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35524if test `eval echo '${'$as_ac_var'}'` = yes; then
35525 cat >>confdefs.h <<_ACEOF
35526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35527_ACEOF
35528
35529fi
35530done
35531
35532
35533 if test "$ac_cv_func_localtime" = "yes"; then
35534 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35535echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35536if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35537 echo $ECHO_N "(cached) $ECHO_C" >&6
35538else
35539
35540 cat >conftest.$ac_ext <<_ACEOF
35541/* confdefs.h. */
35542_ACEOF
35543cat confdefs.h >>conftest.$ac_ext
35544cat >>conftest.$ac_ext <<_ACEOF
35545/* end confdefs.h. */
35546
35547 #include <time.h>
35548
35549int
35550main ()
35551{
35552
35553 struct tm tm;
35554 tm.tm_gmtoff++;
35555
35556 ;
35557 return 0;
35558}
35559_ACEOF
35560rm -f conftest.$ac_objext
35561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35562 (eval $ac_compile) 2>conftest.er1
a848cd7e 35563 ac_status=$?
ac1cb8d3
VS
35564 grep -v '^ *+' conftest.er1 >conftest.err
35565 rm -f conftest.er1
35566 cat conftest.err >&5
a848cd7e
SC
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); } &&
fc480dc1
DE
35569 { ac_try='test -z "$ac_c_werror_flag"
35570 || test ! -s conftest.err'
ac1cb8d3
VS
35571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35572 (eval $ac_try) 2>&5
35573 ac_status=$?
35574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575 (exit $ac_status); }; } &&
35576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35578 (eval $ac_try) 2>&5
35579 ac_status=$?
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); }; }; then
35582
35583 wx_cv_struct_tm_has_gmtoff=yes
35584
35585else
35586 echo "$as_me: failed program was:" >&5
35587sed 's/^/| /' conftest.$ac_ext >&5
35588
35589wx_cv_struct_tm_has_gmtoff=no
35590
35591fi
ac1cb8d3 35592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35593
35594fi
35595echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35596echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35597 fi
35598
35599 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35600 cat >>confdefs.h <<\_ACEOF
35601#define WX_GMTOFF_IN_TM 1
35602_ACEOF
35603
35604 fi
35605
35606
35607
35608for ac_func in gettimeofday ftime
35609do
35610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35611echo "$as_me:$LINENO: checking for $ac_func" >&5
35612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35613if eval "test \"\${$as_ac_var+set}\" = set"; then
35614 echo $ECHO_N "(cached) $ECHO_C" >&6
35615else
35616 cat >conftest.$ac_ext <<_ACEOF
35617/* confdefs.h. */
35618_ACEOF
35619cat confdefs.h >>conftest.$ac_ext
35620cat >>conftest.$ac_ext <<_ACEOF
35621/* end confdefs.h. */
ac1cb8d3
VS
35622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35624#define $ac_func innocuous_$ac_func
35625
a848cd7e
SC
35626/* System header to define __stub macros and hopefully few prototypes,
35627 which can conflict with char $ac_func (); below.
35628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35629 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35630
a848cd7e
SC
35631#ifdef __STDC__
35632# include <limits.h>
35633#else
35634# include <assert.h>
35635#endif
ac1cb8d3
VS
35636
35637#undef $ac_func
35638
a848cd7e
SC
35639/* Override any gcc2 internal prototype to avoid an error. */
35640#ifdef __cplusplus
35641extern "C"
35642{
35643#endif
35644/* We use char because int might match the return type of a gcc2
35645 builtin and then its argument prototype would still apply. */
35646char $ac_func ();
35647/* The GNU C library defines this for functions which it implements
35648 to always fail with ENOSYS. Some functions are actually named
35649 something starting with __ and the normal name is an alias. */
35650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35651choke me
35652#else
35653char (*f) () = $ac_func;
35654#endif
35655#ifdef __cplusplus
35656}
35657#endif
35658
35659int
35660main ()
35661{
35662return f != $ac_func;
35663 ;
35664 return 0;
35665}
35666_ACEOF
35667rm -f conftest.$ac_objext conftest$ac_exeext
35668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35669 (eval $ac_link) 2>conftest.er1
a848cd7e 35670 ac_status=$?
ac1cb8d3
VS
35671 grep -v '^ *+' conftest.er1 >conftest.err
35672 rm -f conftest.er1
35673 cat conftest.err >&5
a848cd7e
SC
35674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 (exit $ac_status); } &&
fc480dc1
DE
35676 { ac_try='test -z "$ac_c_werror_flag"
35677 || test ! -s conftest.err'
ac1cb8d3
VS
35678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35679 (eval $ac_try) 2>&5
35680 ac_status=$?
35681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682 (exit $ac_status); }; } &&
35683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35685 (eval $ac_try) 2>&5
35686 ac_status=$?
35687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688 (exit $ac_status); }; }; then
35689 eval "$as_ac_var=yes"
35690else
35691 echo "$as_me: failed program was:" >&5
35692sed 's/^/| /' conftest.$ac_ext >&5
35693
35694eval "$as_ac_var=no"
35695fi
ac1cb8d3
VS
35696rm -f conftest.err conftest.$ac_objext \
35697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35698fi
35699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35700echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35701if test `eval echo '${'$as_ac_var'}'` = yes; then
35702 cat >>confdefs.h <<_ACEOF
35703#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35704_ACEOF
35705 break
35706fi
35707done
35708
35709
35710 if test "$ac_cv_func_gettimeofday" = "yes"; then
35711 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35712echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35713if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35714 echo $ECHO_N "(cached) $ECHO_C" >&6
35715else
35716
35717
35718
35719 ac_ext=cc
35720ac_cpp='$CXXCPP $CPPFLAGS'
35721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35724
35725
35726 cat >conftest.$ac_ext <<_ACEOF
35727/* confdefs.h. */
35728_ACEOF
35729cat confdefs.h >>conftest.$ac_ext
35730cat >>conftest.$ac_ext <<_ACEOF
35731/* end confdefs.h. */
35732
35733 #include <sys/time.h>
35734 #include <unistd.h>
35735
35736int
35737main ()
35738{
35739
35740 struct timeval tv;
35741 gettimeofday(&tv, NULL);
35742
35743 ;
35744 return 0;
35745}
35746_ACEOF
35747rm -f conftest.$ac_objext
35748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35749 (eval $ac_compile) 2>conftest.er1
a848cd7e 35750 ac_status=$?
ac1cb8d3
VS
35751 grep -v '^ *+' conftest.er1 >conftest.err
35752 rm -f conftest.er1
35753 cat conftest.err >&5
a848cd7e
SC
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); } &&
fc480dc1
DE
35756 { ac_try='test -z "$ac_cxx_werror_flag"
35757 || test ! -s conftest.err'
ac1cb8d3
VS
35758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35759 (eval $ac_try) 2>&5
35760 ac_status=$?
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); }; } &&
35763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765 (eval $ac_try) 2>&5
35766 ac_status=$?
35767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768 (exit $ac_status); }; }; then
35769 wx_cv_func_gettimeofday_has_2_args=yes
35770else
35771 echo "$as_me: failed program was:" >&5
35772sed 's/^/| /' conftest.$ac_ext >&5
35773
35774cat >conftest.$ac_ext <<_ACEOF
35775/* confdefs.h. */
35776_ACEOF
35777cat confdefs.h >>conftest.$ac_ext
35778cat >>conftest.$ac_ext <<_ACEOF
35779/* end confdefs.h. */
35780
35781 #include <sys/time.h>
35782 #include <unistd.h>
35783
35784int
35785main ()
35786{
35787
35788 struct timeval tv;
35789 gettimeofday(&tv);
35790
35791 ;
35792 return 0;
35793}
35794_ACEOF
35795rm -f conftest.$ac_objext
35796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35797 (eval $ac_compile) 2>conftest.er1
a848cd7e 35798 ac_status=$?
ac1cb8d3
VS
35799 grep -v '^ *+' conftest.er1 >conftest.err
35800 rm -f conftest.er1
35801 cat conftest.err >&5
a848cd7e
SC
35802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803 (exit $ac_status); } &&
fc480dc1
DE
35804 { ac_try='test -z "$ac_cxx_werror_flag"
35805 || test ! -s conftest.err'
ac1cb8d3
VS
35806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35807 (eval $ac_try) 2>&5
35808 ac_status=$?
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); }; } &&
35811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35813 (eval $ac_try) 2>&5
35814 ac_status=$?
35815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); }; }; then
35817 wx_cv_func_gettimeofday_has_2_args=no
35818else
35819 echo "$as_me: failed program was:" >&5
35820sed 's/^/| /' conftest.$ac_ext >&5
35821
35822
35823 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35824echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35825 wx_cv_func_gettimeofday_has_2_args=unknown
35826
35827
35828fi
ac1cb8d3 35829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35830
35831fi
ac1cb8d3 35832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35833 ac_ext=c
35834ac_cpp='$CPP $CPPFLAGS'
35835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35837ac_compiler_gnu=$ac_cv_c_compiler_gnu
35838
35839
35840fi
35841echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35842echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35843
35844 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35845 cat >>confdefs.h <<\_ACEOF
35846#define WX_GETTIMEOFDAY_NO_TZ 1
35847_ACEOF
35848
35849 fi
35850 fi
35851
35852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35853fi
35854
35855
35856if test "$wxUSE_SOCKETS" = "yes"; then
35857 if test "$wxUSE_MGL" = "1"; then
35858 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35859echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35860 wxUSE_SOCKETS="no"
35861 fi
35862fi
35863
35864if test "$wxUSE_SOCKETS" = "yes"; then
35865 if test "$TOOLKIT" != "MSW"; then
35866 echo "$as_me:$LINENO: checking for socket" >&5
35867echo $ECHO_N "checking for socket... $ECHO_C" >&6
35868if test "${ac_cv_func_socket+set}" = set; then
35869 echo $ECHO_N "(cached) $ECHO_C" >&6
35870else
35871 cat >conftest.$ac_ext <<_ACEOF
35872/* confdefs.h. */
35873_ACEOF
35874cat confdefs.h >>conftest.$ac_ext
35875cat >>conftest.$ac_ext <<_ACEOF
35876/* end confdefs.h. */
ac1cb8d3
VS
35877/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35879#define socket innocuous_socket
35880
a848cd7e
SC
35881/* System header to define __stub macros and hopefully few prototypes,
35882 which can conflict with char socket (); below.
35883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35884 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35885
a848cd7e
SC
35886#ifdef __STDC__
35887# include <limits.h>
35888#else
35889# include <assert.h>
35890#endif
ac1cb8d3
VS
35891
35892#undef socket
35893
a848cd7e
SC
35894/* Override any gcc2 internal prototype to avoid an error. */
35895#ifdef __cplusplus
35896extern "C"
35897{
35898#endif
35899/* We use char because int might match the return type of a gcc2
35900 builtin and then its argument prototype would still apply. */
35901char socket ();
35902/* The GNU C library defines this for functions which it implements
35903 to always fail with ENOSYS. Some functions are actually named
35904 something starting with __ and the normal name is an alias. */
35905#if defined (__stub_socket) || defined (__stub___socket)
35906choke me
35907#else
35908char (*f) () = socket;
35909#endif
35910#ifdef __cplusplus
35911}
35912#endif
35913
35914int
35915main ()
35916{
35917return f != socket;
35918 ;
35919 return 0;
35920}
35921_ACEOF
35922rm -f conftest.$ac_objext conftest$ac_exeext
35923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35924 (eval $ac_link) 2>conftest.er1
a848cd7e 35925 ac_status=$?
ac1cb8d3
VS
35926 grep -v '^ *+' conftest.er1 >conftest.err
35927 rm -f conftest.er1
35928 cat conftest.err >&5
a848cd7e
SC
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); } &&
fc480dc1
DE
35931 { ac_try='test -z "$ac_c_werror_flag"
35932 || test ! -s conftest.err'
ac1cb8d3
VS
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35935 ac_status=$?
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; } &&
35938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35940 (eval $ac_try) 2>&5
35941 ac_status=$?
35942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943 (exit $ac_status); }; }; then
35944 ac_cv_func_socket=yes
35945else
35946 echo "$as_me: failed program was:" >&5
35947sed 's/^/| /' conftest.$ac_ext >&5
35948
35949ac_cv_func_socket=no
35950fi
ac1cb8d3
VS
35951rm -f conftest.err conftest.$ac_objext \
35952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35953fi
35954echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35955echo "${ECHO_T}$ac_cv_func_socket" >&6
35956if test $ac_cv_func_socket = yes; then
35957 :
35958else
35959
35960 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35961echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35962if test "${ac_cv_lib_socket_socket+set}" = set; then
35963 echo $ECHO_N "(cached) $ECHO_C" >&6
35964else
35965 ac_check_lib_save_LIBS=$LIBS
35966LIBS="-lsocket $LIBS"
35967cat >conftest.$ac_ext <<_ACEOF
35968/* confdefs.h. */
35969_ACEOF
35970cat confdefs.h >>conftest.$ac_ext
35971cat >>conftest.$ac_ext <<_ACEOF
35972/* end confdefs.h. */
35973
35974/* Override any gcc2 internal prototype to avoid an error. */
35975#ifdef __cplusplus
35976extern "C"
35977#endif
35978/* We use char because int might match the return type of a gcc2
35979 builtin and then its argument prototype would still apply. */
35980char socket ();
35981int
35982main ()
35983{
35984socket ();
35985 ;
35986 return 0;
35987}
35988_ACEOF
35989rm -f conftest.$ac_objext conftest$ac_exeext
35990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35991 (eval $ac_link) 2>conftest.er1
a848cd7e 35992 ac_status=$?
ac1cb8d3
VS
35993 grep -v '^ *+' conftest.er1 >conftest.err
35994 rm -f conftest.er1
35995 cat conftest.err >&5
a848cd7e
SC
35996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997 (exit $ac_status); } &&
fc480dc1
DE
35998 { ac_try='test -z "$ac_c_werror_flag"
35999 || test ! -s conftest.err'
ac1cb8d3
VS
36000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36001 (eval $ac_try) 2>&5
36002 ac_status=$?
36003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004 (exit $ac_status); }; } &&
36005 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36007 (eval $ac_try) 2>&5
36008 ac_status=$?
36009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010 (exit $ac_status); }; }; then
36011 ac_cv_lib_socket_socket=yes
36012else
36013 echo "$as_me: failed program was:" >&5
36014sed 's/^/| /' conftest.$ac_ext >&5
36015
36016ac_cv_lib_socket_socket=no
36017fi
ac1cb8d3
VS
36018rm -f conftest.err conftest.$ac_objext \
36019 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36020LIBS=$ac_check_lib_save_LIBS
36021fi
36022echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36023echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36024if test $ac_cv_lib_socket_socket = yes; then
36025 if test "$INET_LINK" != " -lsocket"; then
36026 INET_LINK="$INET_LINK -lsocket"
36027 fi
36028else
36029
36030 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36031echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36032 wxUSE_SOCKETS=no
36033
36034
36035fi
36036
36037
36038
36039fi
36040
36041 fi
36042fi
36043
36044if test "$wxUSE_SOCKETS" = "yes" ; then
36045 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36046 ac_ext=cc
36047ac_cpp='$CXXCPP $CPPFLAGS'
36048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36051
36052 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36053echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36054if test "${wx_cv_type_getsockname3+set}" = set; then
36055 echo $ECHO_N "(cached) $ECHO_C" >&6
36056else
36057
36058 cat >conftest.$ac_ext <<_ACEOF
36059/* confdefs.h. */
36060_ACEOF
36061cat confdefs.h >>conftest.$ac_ext
36062cat >>conftest.$ac_ext <<_ACEOF
36063/* end confdefs.h. */
36064
36065 #include <sys/types.h>
36066 #include <sys/socket.h>
36067
36068int
36069main ()
36070{
36071
36072 socklen_t len;
36073 getsockname(0, 0, &len);
36074
36075 ;
36076 return 0;
36077}
36078_ACEOF
36079rm -f conftest.$ac_objext
36080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36081 (eval $ac_compile) 2>conftest.er1
a848cd7e 36082 ac_status=$?
ac1cb8d3
VS
36083 grep -v '^ *+' conftest.er1 >conftest.err
36084 rm -f conftest.er1
36085 cat conftest.err >&5
a848cd7e
SC
36086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087 (exit $ac_status); } &&
fc480dc1
DE
36088 { ac_try='test -z "$ac_cxx_werror_flag"
36089 || test ! -s conftest.err'
ac1cb8d3
VS
36090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36091 (eval $ac_try) 2>&5
36092 ac_status=$?
36093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36094 (exit $ac_status); }; } &&
36095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36097 (eval $ac_try) 2>&5
36098 ac_status=$?
36099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36100 (exit $ac_status); }; }; then
36101 wx_cv_type_getsockname3=socklen_t
36102else
36103 echo "$as_me: failed program was:" >&5
36104sed 's/^/| /' conftest.$ac_ext >&5
36105
36106
36107 CFLAGS_OLD="$CFLAGS"
36108 if test "$GCC" = yes ; then
36109 CFLAGS="$CFLAGS -Werror"
36110 fi
36111
36112 cat >conftest.$ac_ext <<_ACEOF
36113/* confdefs.h. */
36114_ACEOF
36115cat confdefs.h >>conftest.$ac_ext
36116cat >>conftest.$ac_ext <<_ACEOF
36117/* end confdefs.h. */
36118
36119 #include <sys/types.h>
36120 #include <sys/socket.h>
36121
36122int
36123main ()
36124{
36125
36126 size_t len;
36127 getsockname(0, 0, &len);
36128
36129 ;
36130 return 0;
36131}
36132_ACEOF
36133rm -f conftest.$ac_objext
36134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36135 (eval $ac_compile) 2>conftest.er1
a848cd7e 36136 ac_status=$?
ac1cb8d3
VS
36137 grep -v '^ *+' conftest.er1 >conftest.err
36138 rm -f conftest.er1
36139 cat conftest.err >&5
a848cd7e
SC
36140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36141 (exit $ac_status); } &&
fc480dc1
DE
36142 { ac_try='test -z "$ac_cxx_werror_flag"
36143 || test ! -s conftest.err'
ac1cb8d3
VS
36144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36145 (eval $ac_try) 2>&5
36146 ac_status=$?
36147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); }; } &&
36149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36151 (eval $ac_try) 2>&5
36152 ac_status=$?
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); }; }; then
36155 wx_cv_type_getsockname3=size_t
36156else
36157 echo "$as_me: failed program was:" >&5
36158sed 's/^/| /' conftest.$ac_ext >&5
36159
36160cat >conftest.$ac_ext <<_ACEOF
36161/* confdefs.h. */
36162_ACEOF
36163cat confdefs.h >>conftest.$ac_ext
36164cat >>conftest.$ac_ext <<_ACEOF
36165/* end confdefs.h. */
36166
36167 #include <sys/types.h>
36168 #include <sys/socket.h>
36169
36170int
36171main ()
36172{
36173
36174 int len;
36175 getsockname(0, 0, &len);
36176
36177 ;
36178 return 0;
36179}
36180_ACEOF
36181rm -f conftest.$ac_objext
36182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36183 (eval $ac_compile) 2>conftest.er1
a848cd7e 36184 ac_status=$?
ac1cb8d3
VS
36185 grep -v '^ *+' conftest.er1 >conftest.err
36186 rm -f conftest.er1
36187 cat conftest.err >&5
a848cd7e
SC
36188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189 (exit $ac_status); } &&
fc480dc1
DE
36190 { ac_try='test -z "$ac_cxx_werror_flag"
36191 || test ! -s conftest.err'
ac1cb8d3
VS
36192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36193 (eval $ac_try) 2>&5
36194 ac_status=$?
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); }; } &&
36197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199 (eval $ac_try) 2>&5
36200 ac_status=$?
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); }; }; then
36203 wx_cv_type_getsockname3=int
36204else
36205 echo "$as_me: failed program was:" >&5
36206sed 's/^/| /' conftest.$ac_ext >&5
36207
36208wx_cv_type_getsockname3=unknown
36209
36210fi
ac1cb8d3 36211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36212
36213fi
ac1cb8d3 36214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36215
36216 CFLAGS="$CFLAGS_OLD"
36217
36218
36219fi
ac1cb8d3 36220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36221
36222fi
36223echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36224echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36225
36226 if test "$wx_cv_type_getsockname3" = "unknown"; then
36227 wxUSE_SOCKETS=no
36228 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36229echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36230 else
36231 cat >>confdefs.h <<_ACEOF
36232#define SOCKLEN_T $wx_cv_type_getsockname3
36233_ACEOF
36234
36235 fi
4d4ff94c
VZ
36236 ac_ext=c
36237ac_cpp='$CPP $CPPFLAGS'
36238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36240ac_compiler_gnu=$ac_cv_c_compiler_gnu
36241
a848cd7e
SC
36242 fi
36243fi
36244
36245if test "$wxUSE_SOCKETS" = "yes" ; then
36246 cat >>confdefs.h <<\_ACEOF
36247#define wxUSE_SOCKETS 1
36248_ACEOF
36249
36250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36251fi
36252
36253if test "$wxUSE_PROTOCOL" = "yes"; then
36254 if test "$wxUSE_SOCKETS" != "yes"; then
36255 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36256echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36257 wxUSE_PROTOCOL=no
36258 fi
36259fi
36260
36261if test "$wxUSE_PROTOCOL" = "yes"; then
36262 cat >>confdefs.h <<\_ACEOF
36263#define wxUSE_PROTOCOL 1
36264_ACEOF
36265
36266
36267 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36268 cat >>confdefs.h <<\_ACEOF
36269#define wxUSE_PROTOCOL_HTTP 1
36270_ACEOF
36271
36272 fi
36273 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36274 cat >>confdefs.h <<\_ACEOF
36275#define wxUSE_PROTOCOL_FTP 1
36276_ACEOF
36277
36278 fi
36279 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36280 cat >>confdefs.h <<\_ACEOF
36281#define wxUSE_PROTOCOL_FILE 1
36282_ACEOF
36283
36284 fi
36285else
36286 if test "$wxUSE_FS_INET" = "yes"; then
36287 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36288echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36289 wxUSE_FS_INET="no"
36290 fi
36291fi
36292
36293if test "$wxUSE_URL" = "yes"; then
36294 if test "$wxUSE_PROTOCOL" != "yes"; then
36295 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36296echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36297 wxUSE_URL=no
36298 fi
36299 if test "$wxUSE_URL" = "yes"; then
36300 cat >>confdefs.h <<\_ACEOF
36301#define wxUSE_URL 1
36302_ACEOF
36303
36304 fi
36305fi
36306
36307if test "$wxUSE_FS_INET" = "yes"; then
36308 cat >>confdefs.h <<\_ACEOF
36309#define wxUSE_FS_INET 1
36310_ACEOF
36311
36312fi
36313
36314
36315if test "$wxUSE_GUI" = "yes"; then
36316
36317 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36318 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36319echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36320 wxUSE_JOYSTICK=no
36321 fi
36322
36323 if test "$TOOLKIT" != "MSW"; then
36324 if test "$wxUSE_JOYSTICK" = "yes"; then
36325
36326for ac_header in linux/joystick.h
36327do
36328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36329if eval "test \"\${$as_ac_Header+set}\" = set"; then
36330 echo "$as_me:$LINENO: checking for $ac_header" >&5
36331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36332if eval "test \"\${$as_ac_Header+set}\" = set"; then
36333 echo $ECHO_N "(cached) $ECHO_C" >&6
36334fi
36335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36337else
36338 # Is the header compilable?
36339echo "$as_me:$LINENO: checking $ac_header usability" >&5
36340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36341cat >conftest.$ac_ext <<_ACEOF
36342/* confdefs.h. */
36343_ACEOF
36344cat confdefs.h >>conftest.$ac_ext
36345cat >>conftest.$ac_ext <<_ACEOF
36346/* end confdefs.h. */
36347$ac_includes_default
36348#include <$ac_header>
36349_ACEOF
36350rm -f conftest.$ac_objext
36351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36352 (eval $ac_compile) 2>conftest.er1
a848cd7e 36353 ac_status=$?
ac1cb8d3
VS
36354 grep -v '^ *+' conftest.er1 >conftest.err
36355 rm -f conftest.er1
36356 cat conftest.err >&5
a848cd7e
SC
36357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36358 (exit $ac_status); } &&
fc480dc1
DE
36359 { ac_try='test -z "$ac_c_werror_flag"
36360 || test ! -s conftest.err'
ac1cb8d3
VS
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36363 ac_status=$?
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; } &&
36366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36368 (eval $ac_try) 2>&5
36369 ac_status=$?
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); }; }; then
36372 ac_header_compiler=yes
36373else
36374 echo "$as_me: failed program was:" >&5
36375sed 's/^/| /' conftest.$ac_ext >&5
36376
36377ac_header_compiler=no
36378fi
ac1cb8d3 36379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36380echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36381echo "${ECHO_T}$ac_header_compiler" >&6
36382
36383# Is the header present?
36384echo "$as_me:$LINENO: checking $ac_header presence" >&5
36385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36386cat >conftest.$ac_ext <<_ACEOF
36387/* confdefs.h. */
36388_ACEOF
36389cat confdefs.h >>conftest.$ac_ext
36390cat >>conftest.$ac_ext <<_ACEOF
36391/* end confdefs.h. */
36392#include <$ac_header>
36393_ACEOF
36394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36396 ac_status=$?
36397 grep -v '^ *+' conftest.er1 >conftest.err
36398 rm -f conftest.er1
36399 cat conftest.err >&5
36400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401 (exit $ac_status); } >/dev/null; then
36402 if test -s conftest.err; then
36403 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36405 else
36406 ac_cpp_err=
36407 fi
36408else
36409 ac_cpp_err=yes
36410fi
36411if test -z "$ac_cpp_err"; then
36412 ac_header_preproc=yes
36413else
36414 echo "$as_me: failed program was:" >&5
36415sed 's/^/| /' conftest.$ac_ext >&5
36416
36417 ac_header_preproc=no
36418fi
36419rm -f conftest.err conftest.$ac_ext
36420echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36421echo "${ECHO_T}$ac_header_preproc" >&6
36422
36423# So? What about this header?
ac1cb8d3
VS
36424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36425 yes:no: )
a848cd7e
SC
36426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36430 ac_header_preproc=yes
a848cd7e 36431 ;;
ac1cb8d3 36432 no:yes:* )
a848cd7e
SC
36433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36436echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36440echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36445 (
36446 cat <<\_ASBOX
ac1cb8d3
VS
36447## ----------------------------------------- ##
36448## Report this to wx-dev@lists.wxwidgets.org ##
36449## ----------------------------------------- ##
a848cd7e
SC
36450_ASBOX
36451 ) |
36452 sed "s/^/$as_me: WARNING: /" >&2
36453 ;;
36454esac
36455echo "$as_me:$LINENO: checking for $ac_header" >&5
36456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36457if eval "test \"\${$as_ac_Header+set}\" = set"; then
36458 echo $ECHO_N "(cached) $ECHO_C" >&6
36459else
ac1cb8d3 36460 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36461fi
36462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36464
36465fi
36466if test `eval echo '${'$as_ac_Header'}'` = yes; then
36467 cat >>confdefs.h <<_ACEOF
36468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36469_ACEOF
36470
36471fi
36472
36473done
36474
36475 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36476 wxUSE_JOYSTICK=no
36477 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36478echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36479 fi
36480 fi
36481 fi
36482
36483 if test "$wxUSE_JOYSTICK" = "yes"; then
36484 cat >>confdefs.h <<\_ACEOF
36485#define wxUSE_JOYSTICK 1
36486_ACEOF
36487
36488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36489 fi
36490fi
36491
36492
36493
36494if test "$wxUSE_FONTMAP" = "yes" ; then
36495 cat >>confdefs.h <<\_ACEOF
36496#define wxUSE_FONTMAP 1
36497_ACEOF
36498
36499fi
36500
36501if test "$wxUSE_UNICODE" = "yes" ; then
36502 cat >>confdefs.h <<\_ACEOF
36503#define wxUSE_UNICODE 1
36504_ACEOF
36505
36506
36507 if test "$USE_WIN32" != 1; then
36508 wxUSE_UNICODE_MSLU=no
36509 fi
36510
36511 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36512 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36513echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36514if test "${ac_cv_lib_unicows_main+set}" = set; then
36515 echo $ECHO_N "(cached) $ECHO_C" >&6
36516else
36517 ac_check_lib_save_LIBS=$LIBS
36518LIBS="-lunicows $LIBS"
36519cat >conftest.$ac_ext <<_ACEOF
36520/* confdefs.h. */
36521_ACEOF
36522cat confdefs.h >>conftest.$ac_ext
36523cat >>conftest.$ac_ext <<_ACEOF
36524/* end confdefs.h. */
36525
36526
36527int
36528main ()
36529{
36530main ();
36531 ;
36532 return 0;
36533}
36534_ACEOF
36535rm -f conftest.$ac_objext conftest$ac_exeext
36536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36537 (eval $ac_link) 2>conftest.er1
a848cd7e 36538 ac_status=$?
ac1cb8d3
VS
36539 grep -v '^ *+' conftest.er1 >conftest.err
36540 rm -f conftest.er1
36541 cat conftest.err >&5
a848cd7e
SC
36542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36543 (exit $ac_status); } &&
fc480dc1
DE
36544 { ac_try='test -z "$ac_c_werror_flag"
36545 || test ! -s conftest.err'
ac1cb8d3
VS
36546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36547 (eval $ac_try) 2>&5
36548 ac_status=$?
36549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); }; } &&
36551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36553 (eval $ac_try) 2>&5
36554 ac_status=$?
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); }; }; then
36557 ac_cv_lib_unicows_main=yes
36558else
36559 echo "$as_me: failed program was:" >&5
36560sed 's/^/| /' conftest.$ac_ext >&5
36561
36562ac_cv_lib_unicows_main=no
36563fi
ac1cb8d3
VS
36564rm -f conftest.err conftest.$ac_objext \
36565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36566LIBS=$ac_check_lib_save_LIBS
36567fi
36568echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36569echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36570if test $ac_cv_lib_unicows_main = yes; then
36571
36572 cat >>confdefs.h <<\_ACEOF
36573#define wxUSE_UNICODE_MSLU 1
36574_ACEOF
36575
36576
36577else
36578
36579 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36580 Applications will only run on Windows NT/2000/XP!" >&5
36581echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36582 Applications will only run on Windows NT/2000/XP!" >&2;}
36583 wxUSE_UNICODE_MSLU=no
36584
36585fi
36586
36587 fi
36588fi
36589
36590if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36591 cat >>confdefs.h <<\_ACEOF
36592#define wxUSE_EXPERIMENTAL_PRINTF 1
36593_ACEOF
36594
36595fi
36596
36597
36598if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36599 cat >>confdefs.h <<\_ACEOF
36600#define wxUSE_POSTSCRIPT 1
36601_ACEOF
36602
36603fi
36604
36605cat >>confdefs.h <<\_ACEOF
36606#define wxUSE_AFM_FOR_POSTSCRIPT 1
36607_ACEOF
36608
36609
36610cat >>confdefs.h <<\_ACEOF
36611#define wxUSE_NORMALIZED_PS_FONTS 1
36612_ACEOF
36613
36614
36615
36616if test "$wxUSE_CONSTRAINTS" = "yes"; then
36617 cat >>confdefs.h <<\_ACEOF
36618#define wxUSE_CONSTRAINTS 1
36619_ACEOF
36620
36621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36622fi
36623
8a7b1113
VZ
36624if test "$wxUSE_MDI" = "yes"; then
36625 cat >>confdefs.h <<\_ACEOF
36626#define wxUSE_MDI 1
36627_ACEOF
36628
36629
36630 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36631 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36632#define wxUSE_MDI_ARCHITECTURE 1
36633_ACEOF
36634
8a7b1113
VZ
36635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36636 fi
a848cd7e
SC
36637fi
36638
36639if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36640 cat >>confdefs.h <<\_ACEOF
36641#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36642_ACEOF
36643
36644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36645 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36647 fi
36648fi
36649
36650if test "$wxUSE_HELP" = "yes"; then
36651 cat >>confdefs.h <<\_ACEOF
36652#define wxUSE_HELP 1
36653_ACEOF
36654
36655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36656
36657 if test "$wxUSE_MSW" = 1; then
36658 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36659 cat >>confdefs.h <<\_ACEOF
36660#define wxUSE_MS_HTML_HELP 1
36661_ACEOF
36662
36663 fi
36664 fi
36665
36666 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36667 if test "$wxUSE_HTML" = "yes"; then
36668 cat >>confdefs.h <<\_ACEOF
36669#define wxUSE_WXHTML_HELP 1
36670_ACEOF
36671
36672 else
36673 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36674echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36675 wxUSE_WXHTML_HELP=no
36676 fi
36677 fi
36678fi
36679
36680if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36681 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36682 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36683echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36684 else
36685 cat >>confdefs.h <<\_ACEOF
36686#define wxUSE_PRINTING_ARCHITECTURE 1
36687_ACEOF
36688
36689 fi
36690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36691fi
36692
36693if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36694 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36695echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36696 { (exit 1); exit 1; }; }
36697fi
36698
36699
36700if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36701 -o "$wxUSE_CLIPBOARD" = "yes" \
36702 -o "$wxUSE_OLE" = "yes" \
36703 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36704
36705for ac_header in ole2.h
36706do
36707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36708if eval "test \"\${$as_ac_Header+set}\" = set"; then
36709 echo "$as_me:$LINENO: checking for $ac_header" >&5
36710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36711if eval "test \"\${$as_ac_Header+set}\" = set"; then
36712 echo $ECHO_N "(cached) $ECHO_C" >&6
36713fi
36714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36716else
36717 # Is the header compilable?
36718echo "$as_me:$LINENO: checking $ac_header usability" >&5
36719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36720cat >conftest.$ac_ext <<_ACEOF
36721/* confdefs.h. */
36722_ACEOF
36723cat confdefs.h >>conftest.$ac_ext
36724cat >>conftest.$ac_ext <<_ACEOF
36725/* end confdefs.h. */
36726$ac_includes_default
36727#include <$ac_header>
36728_ACEOF
36729rm -f conftest.$ac_objext
36730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36731 (eval $ac_compile) 2>conftest.er1
a848cd7e 36732 ac_status=$?
ac1cb8d3
VS
36733 grep -v '^ *+' conftest.er1 >conftest.err
36734 rm -f conftest.er1
36735 cat conftest.err >&5
a848cd7e
SC
36736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737 (exit $ac_status); } &&
fc480dc1
DE
36738 { ac_try='test -z "$ac_c_werror_flag"
36739 || test ! -s conftest.err'
ac1cb8d3
VS
36740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36741 (eval $ac_try) 2>&5
36742 ac_status=$?
36743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36744 (exit $ac_status); }; } &&
36745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36747 (eval $ac_try) 2>&5
36748 ac_status=$?
36749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); }; }; then
36751 ac_header_compiler=yes
36752else
36753 echo "$as_me: failed program was:" >&5
36754sed 's/^/| /' conftest.$ac_ext >&5
36755
36756ac_header_compiler=no
36757fi
ac1cb8d3 36758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36760echo "${ECHO_T}$ac_header_compiler" >&6
36761
36762# Is the header present?
36763echo "$as_me:$LINENO: checking $ac_header presence" >&5
36764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36765cat >conftest.$ac_ext <<_ACEOF
36766/* confdefs.h. */
36767_ACEOF
36768cat confdefs.h >>conftest.$ac_ext
36769cat >>conftest.$ac_ext <<_ACEOF
36770/* end confdefs.h. */
36771#include <$ac_header>
36772_ACEOF
36773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36775 ac_status=$?
36776 grep -v '^ *+' conftest.er1 >conftest.err
36777 rm -f conftest.er1
36778 cat conftest.err >&5
36779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780 (exit $ac_status); } >/dev/null; then
36781 if test -s conftest.err; then
36782 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36784 else
36785 ac_cpp_err=
36786 fi
36787else
36788 ac_cpp_err=yes
36789fi
36790if test -z "$ac_cpp_err"; then
36791 ac_header_preproc=yes
36792else
36793 echo "$as_me: failed program was:" >&5
36794sed 's/^/| /' conftest.$ac_ext >&5
36795
36796 ac_header_preproc=no
36797fi
36798rm -f conftest.err conftest.$ac_ext
36799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36800echo "${ECHO_T}$ac_header_preproc" >&6
36801
36802# So? What about this header?
ac1cb8d3
VS
36803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36804 yes:no: )
a848cd7e
SC
36805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36809 ac_header_preproc=yes
a848cd7e 36810 ;;
ac1cb8d3 36811 no:yes:* )
a848cd7e
SC
36812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36824 (
36825 cat <<\_ASBOX
ac1cb8d3
VS
36826## ----------------------------------------- ##
36827## Report this to wx-dev@lists.wxwidgets.org ##
36828## ----------------------------------------- ##
a848cd7e
SC
36829_ASBOX
36830 ) |
36831 sed "s/^/$as_me: WARNING: /" >&2
36832 ;;
36833esac
36834echo "$as_me:$LINENO: checking for $ac_header" >&5
36835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36836if eval "test \"\${$as_ac_Header+set}\" = set"; then
36837 echo $ECHO_N "(cached) $ECHO_C" >&6
36838else
ac1cb8d3 36839 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36840fi
36841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36843
36844fi
36845if test `eval echo '${'$as_ac_Header'}'` = yes; then
36846 cat >>confdefs.h <<_ACEOF
36847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36848_ACEOF
36849
36850fi
36851
36852done
36853
36854
36855 if test "$ac_cv_header_ole2_h" = "yes" ; then
36856 if test "$GCC" = yes ; then
36857
36858
36859 ac_ext=cc
36860ac_cpp='$CXXCPP $CPPFLAGS'
36861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36864
36865
36866 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36867echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36868 cat >conftest.$ac_ext <<_ACEOF
36869/* confdefs.h. */
36870_ACEOF
36871cat confdefs.h >>conftest.$ac_ext
36872cat >>conftest.$ac_ext <<_ACEOF
36873/* end confdefs.h. */
36874#include <windows.h>
36875 #include <ole2.h>
36876int
36877main ()
36878{
36879
36880 ;
36881 return 0;
36882}
36883_ACEOF
36884rm -f conftest.$ac_objext
36885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36886 (eval $ac_compile) 2>conftest.er1
a848cd7e 36887 ac_status=$?
ac1cb8d3
VS
36888 grep -v '^ *+' conftest.er1 >conftest.err
36889 rm -f conftest.er1
36890 cat conftest.err >&5
a848cd7e
SC
36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892 (exit $ac_status); } &&
fc480dc1
DE
36893 { ac_try='test -z "$ac_cxx_werror_flag"
36894 || test ! -s conftest.err'
ac1cb8d3
VS
36895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36896 (eval $ac_try) 2>&5
36897 ac_status=$?
36898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899 (exit $ac_status); }; } &&
36900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36902 (eval $ac_try) 2>&5
36903 ac_status=$?
36904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905 (exit $ac_status); }; }; then
36906 echo "$as_me:$LINENO: result: no" >&5
36907echo "${ECHO_T}no" >&6
36908else
36909 echo "$as_me: failed program was:" >&5
36910sed 's/^/| /' conftest.$ac_ext >&5
36911
36912echo "$as_me:$LINENO: result: yes" >&5
36913echo "${ECHO_T}yes" >&6
36914 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36915fi
ac1cb8d3 36916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36917 ac_ext=c
36918ac_cpp='$CPP $CPPFLAGS'
36919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36921ac_compiler_gnu=$ac_cv_c_compiler_gnu
36922
a848cd7e
SC
36923 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36924 if test "$wxUSE_OLE" = "yes" ; then
36925 cat >>confdefs.h <<\_ACEOF
36926#define wxUSE_OLE 1
36927_ACEOF
36928
36929 fi
36930 fi
36931
36932 if test "$wxUSE_DATAOBJ" = "yes" ; then
36933 cat >>confdefs.h <<\_ACEOF
36934#define wxUSE_DATAOBJ 1
36935_ACEOF
36936
36937 fi
36938 else
36939 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36940echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36941
36942 wxUSE_CLIPBOARD=no
36943 wxUSE_DRAG_AND_DROP=no
36944 wxUSE_DATAOBJ=no
36945 wxUSE_OLE=no
36946 fi
36947
36948 if test "$wxUSE_METAFILE" = "yes"; then
36949 cat >>confdefs.h <<\_ACEOF
36950#define wxUSE_METAFILE 1
36951_ACEOF
36952
36953
36954 cat >>confdefs.h <<\_ACEOF
36955#define wxUSE_ENH_METAFILE 1
36956_ACEOF
36957
36958 fi
36959fi
36960
36961if test "$wxUSE_IPC" = "yes"; then
36962 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36963 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36964echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36965 fi
36966
36967 cat >>confdefs.h <<\_ACEOF
36968#define wxUSE_IPC 1
36969_ACEOF
36970
36971fi
36972
36973if test "$wxUSE_CLIPBOARD" = "yes"; then
36974 if test "$wxUSE_MGL" = 1; then
36975 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36976echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36977 wxUSE_CLIPBOARD=no
36978 fi
36979
36980 if test "$wxUSE_CLIPBOARD" = "yes"; then
36981 cat >>confdefs.h <<\_ACEOF
36982#define wxUSE_CLIPBOARD 1
36983_ACEOF
36984
36985
36986 cat >>confdefs.h <<\_ACEOF
36987#define wxUSE_DATAOBJ 1
36988_ACEOF
36989
36990 fi
36991fi
36992
36993if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36994 if test "$wxUSE_GTK" = 1; then
36995 if test "$WXGTK12" != 1; then
36996 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36997echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36998 wxUSE_DRAG_AND_DROP=no
36999 fi
37000 fi
37001
37002 if test "$wxUSE_MOTIF" = 1; then
37003 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37004echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37005 wxUSE_DRAG_AND_DROP=no
37006 fi
37007
37008 if test "$wxUSE_X11" = 1; then
37009 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37010echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37011 wxUSE_DRAG_AND_DROP=no
37012 fi
37013
37014 if test "$wxUSE_MGL" = 1; then
37015 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37016echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37017 wxUSE_DRAG_AND_DROP=no
37018 fi
37019
37020 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37021 cat >>confdefs.h <<\_ACEOF
37022#define wxUSE_DRAG_AND_DROP 1
37023_ACEOF
37024
37025 fi
37026
37027fi
37028
37029if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37031fi
37032
37033if test "$wxUSE_SPLINES" = "yes" ; then
37034 cat >>confdefs.h <<\_ACEOF
37035#define wxUSE_SPLINES 1
37036_ACEOF
37037
37038fi
37039
37040
37041USES_CONTROLS=0
37042if test "$wxUSE_CONTROLS" = "yes"; then
37043 USES_CONTROLS=1
37044fi
37045
37046if test "$wxUSE_ACCEL" = "yes"; then
37047 cat >>confdefs.h <<\_ACEOF
37048#define wxUSE_ACCEL 1
37049_ACEOF
37050
37051 USES_CONTROLS=1
37052fi
37053
37054if test "$wxUSE_BUTTON" = "yes"; then
37055 cat >>confdefs.h <<\_ACEOF
37056#define wxUSE_BUTTON 1
37057_ACEOF
37058
37059 USES_CONTROLS=1
37060fi
37061
37062if test "$wxUSE_BMPBUTTON" = "yes"; then
37063 cat >>confdefs.h <<\_ACEOF
37064#define wxUSE_BMPBUTTON 1
37065_ACEOF
37066
37067 USES_CONTROLS=1
37068fi
37069
37070if test "$wxUSE_CALCTRL" = "yes"; then
37071 cat >>confdefs.h <<\_ACEOF
37072#define wxUSE_CALENDARCTRL 1
37073_ACEOF
37074
37075 USES_CONTROLS=1
37076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37077fi
37078
37079if test "$wxUSE_CARET" = "yes"; then
37080 cat >>confdefs.h <<\_ACEOF
37081#define wxUSE_CARET 1
37082_ACEOF
37083
37084 USES_CONTROLS=1
37085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37086fi
37087
37088if test "$wxUSE_COMBOBOX" = "yes"; then
37089 cat >>confdefs.h <<\_ACEOF
37090#define wxUSE_COMBOBOX 1
37091_ACEOF
37092
37093 USES_CONTROLS=1
37094fi
37095
37096if test "$wxUSE_CHOICE" = "yes"; then
37097 cat >>confdefs.h <<\_ACEOF
37098#define wxUSE_CHOICE 1
37099_ACEOF
37100
37101 USES_CONTROLS=1
37102fi
37103
92bbdbcd
WS
37104if test "$wxUSE_CHOICEBOOK" = "yes"; then
37105 cat >>confdefs.h <<\_ACEOF
37106#define wxUSE_CHOICEBOOK 1
37107_ACEOF
37108
37109 USES_CONTROLS=1
37110fi
37111
a848cd7e
SC
37112if test "$wxUSE_CHECKBOX" = "yes"; then
37113 cat >>confdefs.h <<\_ACEOF
37114#define wxUSE_CHECKBOX 1
37115_ACEOF
37116
37117 USES_CONTROLS=1
37118fi
37119
37120if test "$wxUSE_CHECKLST" = "yes"; then
37121 cat >>confdefs.h <<\_ACEOF
37122#define wxUSE_CHECKLISTBOX 1
37123_ACEOF
37124
37125 USES_CONTROLS=1
37126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37127fi
37128
37129if test "$wxUSE_DISPLAY" = "yes"; then
37130 cat >>confdefs.h <<\_ACEOF
37131#define wxUSE_DISPLAY 1
37132_ACEOF
37133
37134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37135fi
37136
37137if test "$wxUSE_GAUGE" = "yes"; then
37138 cat >>confdefs.h <<\_ACEOF
37139#define wxUSE_GAUGE 1
37140_ACEOF
37141
37142 USES_CONTROLS=1
37143fi
37144
37145if test "$wxUSE_GRID" = "yes"; then
37146 cat >>confdefs.h <<\_ACEOF
37147#define wxUSE_GRID 1
37148_ACEOF
37149
37150 USES_CONTROLS=1
37151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37152fi
37153
37154if test "$wxUSE_IMAGLIST" = "yes"; then
37155 cat >>confdefs.h <<\_ACEOF
37156#define wxUSE_IMAGLIST 1
37157_ACEOF
37158
37159fi
37160
37161if test "$wxUSE_LISTBOOK" = "yes"; then
37162 cat >>confdefs.h <<\_ACEOF
37163#define wxUSE_LISTBOOK 1
37164_ACEOF
37165
37166 USES_CONTROLS=1
37167fi
37168
37169if test "$wxUSE_LISTBOX" = "yes"; then
37170 cat >>confdefs.h <<\_ACEOF
37171#define wxUSE_LISTBOX 1
37172_ACEOF
37173
37174 USES_CONTROLS=1
37175fi
37176
37177if test "$wxUSE_LISTCTRL" = "yes"; then
37178 if test "$wxUSE_IMAGLIST" = "yes"; then
37179 cat >>confdefs.h <<\_ACEOF
37180#define wxUSE_LISTCTRL 1
37181_ACEOF
37182
37183 USES_CONTROLS=1
37184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37185 else
37186 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37187echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37188 fi
37189fi
37190
37191if test "$wxUSE_NOTEBOOK" = "yes"; then
37192 cat >>confdefs.h <<\_ACEOF
37193#define wxUSE_NOTEBOOK 1
37194_ACEOF
37195
37196 USES_CONTROLS=1
37197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37198fi
37199
37200
37201if test "$wxUSE_RADIOBOX" = "yes"; then
37202 cat >>confdefs.h <<\_ACEOF
37203#define wxUSE_RADIOBOX 1
37204_ACEOF
37205
37206 USES_CONTROLS=1
37207fi
37208
37209if test "$wxUSE_RADIOBTN" = "yes"; then
37210 cat >>confdefs.h <<\_ACEOF
37211#define wxUSE_RADIOBTN 1
37212_ACEOF
37213
37214 USES_CONTROLS=1
37215fi
37216
37217if test "$wxUSE_SASH" = "yes"; then
37218 cat >>confdefs.h <<\_ACEOF
37219#define wxUSE_SASH 1
37220_ACEOF
37221
37222 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37223fi
37224
37225if test "$wxUSE_SCROLLBAR" = "yes"; then
37226 cat >>confdefs.h <<\_ACEOF
37227#define wxUSE_SCROLLBAR 1
37228_ACEOF
37229
37230 USES_CONTROLS=1
37231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37232fi
37233
37234if test "$wxUSE_SLIDER" = "yes"; then
37235 cat >>confdefs.h <<\_ACEOF
37236#define wxUSE_SLIDER 1
37237_ACEOF
37238
37239 USES_CONTROLS=1
37240fi
37241
37242if test "$wxUSE_SPINBTN" = "yes"; then
37243 cat >>confdefs.h <<\_ACEOF
37244#define wxUSE_SPINBTN 1
37245_ACEOF
37246
37247 USES_CONTROLS=1
37248fi
37249
37250if test "$wxUSE_SPINCTRL" = "yes"; then
37251 cat >>confdefs.h <<\_ACEOF
37252#define wxUSE_SPINCTRL 1
37253_ACEOF
37254
37255 USES_CONTROLS=1
37256fi
37257
37258if test "$wxUSE_SPLITTER" = "yes"; then
37259 cat >>confdefs.h <<\_ACEOF
37260#define wxUSE_SPLITTER 1
37261_ACEOF
37262
37263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37264fi
37265
37266if test "$wxUSE_STATBMP" = "yes"; then
37267 cat >>confdefs.h <<\_ACEOF
37268#define wxUSE_STATBMP 1
37269_ACEOF
37270
37271 USES_CONTROLS=1
37272fi
37273
37274if test "$wxUSE_STATBOX" = "yes"; then
37275 cat >>confdefs.h <<\_ACEOF
37276#define wxUSE_STATBOX 1
37277_ACEOF
37278
37279 USES_CONTROLS=1
37280fi
37281
37282if test "$wxUSE_STATTEXT" = "yes"; then
37283 cat >>confdefs.h <<\_ACEOF
37284#define wxUSE_STATTEXT 1
37285_ACEOF
37286
37287 USES_CONTROLS=1
37288fi
37289
37290if test "$wxUSE_STATLINE" = "yes"; then
37291 cat >>confdefs.h <<\_ACEOF
37292#define wxUSE_STATLINE 1
37293_ACEOF
37294
37295 USES_CONTROLS=1
37296fi
37297
37298if test "$wxUSE_STATUSBAR" = "yes"; then
37299 cat >>confdefs.h <<\_ACEOF
37300#define wxUSE_STATUSBAR 1
37301_ACEOF
37302
37303 USES_CONTROLS=1
37304
37305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37306fi
37307
37308if test "$wxUSE_TABDIALOG" = "yes"; then
37309 cat >>confdefs.h <<\_ACEOF
37310#define wxUSE_TAB_DIALOG 1
37311_ACEOF
37312
37313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37314fi
37315
37316if test "$wxUSE_TEXTCTRL" = "yes"; then
37317 cat >>confdefs.h <<\_ACEOF
37318#define wxUSE_TEXTCTRL 1
37319_ACEOF
37320
37321 USES_CONTROLS=1
37322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37323fi
37324
37325if test "$wxUSE_TOGGLEBTN" = "yes"; then
37326 if test "$wxUSE_COCOA" = 1 ; then
37327 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37328echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37329 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37330 else
37331 if test "$wxUSE_PM" = 1; then
37332 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37333echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37334 wxUSE_TOGGLEBTN=no
37335 fi
a848cd7e
SC
37336 fi
37337 if test "$wxUSE_UNIVERSAL" = "yes"; then
37338 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37339echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37340 wxUSE_TOGGLEBTN=no
37341 fi
37342
37343 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37344 cat >>confdefs.h <<\_ACEOF
37345#define wxUSE_TOGGLEBTN 1
37346_ACEOF
37347
37348 USES_CONTROLS=1
37349 fi
37350fi
37351
37352if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37353 cat >>confdefs.h <<\_ACEOF
37354#define wxUSE_TOOLBAR_SIMPLE 1
37355_ACEOF
37356
37357 wxUSE_TOOLBAR="yes"
37358 USES_CONTROLS=1
37359fi
37360
37361if test "$wxUSE_TOOLBAR" = "yes"; then
37362 cat >>confdefs.h <<\_ACEOF
37363#define wxUSE_TOOLBAR 1
37364_ACEOF
37365
37366 USES_CONTROLS=1
37367
37368 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37369 wxUSE_TOOLBAR_NATIVE="yes"
37370 fi
37371
37372 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37373 cat >>confdefs.h <<\_ACEOF
37374#define wxUSE_TOOLBAR_NATIVE 1
37375_ACEOF
37376
37377 USES_CONTROLS=1
37378 fi
37379
37380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37381fi
37382
37383if test "$wxUSE_TOOLTIPS" = "yes"; then
37384 if test "$wxUSE_MOTIF" = 1; then
37385 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37386echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37387 else
37388 if test "$wxUSE_UNIVERSAL" = "yes"; then
37389 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37390echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37391 else
37392 cat >>confdefs.h <<\_ACEOF
37393#define wxUSE_TOOLTIPS 1
37394_ACEOF
37395
37396 fi
37397 fi
37398fi
37399
37400if test "$wxUSE_TREECTRL" = "yes"; then
37401 if test "$wxUSE_IMAGLIST" = "yes"; then
37402 cat >>confdefs.h <<\_ACEOF
37403#define wxUSE_TREECTRL 1
37404_ACEOF
37405
37406 USES_CONTROLS=1
37407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37408 else
37409 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37410echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37411 fi
37412fi
37413
37414if test "$wxUSE_POPUPWIN" = "yes"; then
37415 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37416 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37417echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37418 else
37419 if test "$wxUSE_PM" = 1; then
37420 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37421echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37422 else
37423 cat >>confdefs.h <<\_ACEOF
37424#define wxUSE_POPUPWIN 1
37425_ACEOF
37426
37427
37428 USES_CONTROLS=1
37429 fi
37430 fi
37431fi
37432
37433if test "$wxUSE_TIPWINDOW" = "yes"; then
37434 if test "$wxUSE_PM" = 1; then
37435 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37436echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37437 else
37438 cat >>confdefs.h <<\_ACEOF
37439#define wxUSE_TIPWINDOW 1
37440_ACEOF
37441
37442 fi
37443fi
37444
37445if test "$USES_CONTROLS" = 1; then
37446 cat >>confdefs.h <<\_ACEOF
37447#define wxUSE_CONTROLS 1
37448_ACEOF
37449
37450fi
37451
37452
37453if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37454 cat >>confdefs.h <<\_ACEOF
37455#define wxUSE_ACCESSIBILITY 1
37456_ACEOF
37457
37458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37459fi
37460
37461if test "$wxUSE_DRAGIMAGE" = "yes"; then
37462 cat >>confdefs.h <<\_ACEOF
37463#define wxUSE_DRAGIMAGE 1
37464_ACEOF
37465
37466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37467fi
37468
37469if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37470 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37471 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37472echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37473 else
37474 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37475#define wxUSE_EXCEPTIONS 1
37476_ACEOF
37477
07bea8f0
VS
37478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37479 fi
a848cd7e
SC
37480fi
37481
37482USE_HTML=0
37483if test "$wxUSE_HTML" = "yes"; then
37484 cat >>confdefs.h <<\_ACEOF
37485#define wxUSE_HTML 1
37486_ACEOF
37487
37488 USE_HTML=1
37489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37490 if test "$wxUSE_MAC" = 1; then
37491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37492 fi
a848cd7e 37493fi
646b6ec1 37494if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 37495 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
37496 old_CPPFLAGS="$CPPFLAGS"
37497 CPPFLAGS="$CPPFLAGS -x objective-c++"
37498 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37499echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37500if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37501 echo $ECHO_N "(cached) $ECHO_C" >&6
37502else
37503 cat >conftest.$ac_ext <<_ACEOF
37504/* confdefs.h. */
37505_ACEOF
37506cat confdefs.h >>conftest.$ac_ext
37507cat >>conftest.$ac_ext <<_ACEOF
37508/* end confdefs.h. */
37509#include <Carbon/Carbon.h>
37510
37511#include <WebKit/HIWebView.h>
37512_ACEOF
37513rm -f conftest.$ac_objext
37514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37515 (eval $ac_compile) 2>conftest.er1
37516 ac_status=$?
37517 grep -v '^ *+' conftest.er1 >conftest.err
37518 rm -f conftest.er1
37519 cat conftest.err >&5
37520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521 (exit $ac_status); } &&
fc480dc1
DE
37522 { ac_try='test -z "$ac_c_werror_flag"
37523 || test ! -s conftest.err'
07bea8f0
VS
37524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37525 (eval $ac_try) 2>&5
37526 ac_status=$?
37527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528 (exit $ac_status); }; } &&
37529 { ac_try='test -s conftest.$ac_objext'
37530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37531 (eval $ac_try) 2>&5
37532 ac_status=$?
37533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37534 (exit $ac_status); }; }; then
37535 ac_cv_header_WebKit_HIWebView_h=yes
37536else
37537 echo "$as_me: failed program was:" >&5
37538sed 's/^/| /' conftest.$ac_ext >&5
37539
37540ac_cv_header_WebKit_HIWebView_h=no
37541fi
37542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37543fi
37544echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37545echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37546if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37547
37548 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37549#define wxUSE_WEBKIT 1
37550_ACEOF
37551
07bea8f0
VS
37552 WEBKIT_LINK="-framework WebKit"
37553
37554else
37555
37556 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37557echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37558 wxUSE_WEBKIT=no
37559
646b6ec1
VS
37560fi
37561
07bea8f0
VS
37562
37563 CPPFLAGS="$old_CPPFLAGS"
37564 elif test "$wxUSE_COCOA" = 1; then
37565 cat >>confdefs.h <<\_ACEOF
37566#define wxUSE_WEBKIT 1
37567_ACEOF
37568
37569 else
37570 wxUSE_WEBKIT=no
37571 fi
37572fi
37573
9a8f0513
VS
37574USE_XRC=0
37575if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37576 if test "$wxUSE_XML" != "yes"; then
37577 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37578echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37579 wxUSE_XRC=no
37580 else
37581 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37582#define wxUSE_XRC 1
37583_ACEOF
37584
d2ebf0b7
VS
37585 USE_XRC=1
37586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37587 fi
9a8f0513 37588fi
07bea8f0 37589
a848cd7e
SC
37590if test "$wxUSE_MENUS" = "yes"; then
37591 cat >>confdefs.h <<\_ACEOF
37592#define wxUSE_MENUS 1
37593_ACEOF
37594
37595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37596fi
37597
37598if test "$wxUSE_METAFILE" = "yes"; then
37599 cat >>confdefs.h <<\_ACEOF
37600#define wxUSE_METAFILE 1
37601_ACEOF
37602
37603fi
37604
37605if test "$wxUSE_MIMETYPE" = "yes"; then
37606 cat >>confdefs.h <<\_ACEOF
37607#define wxUSE_MIMETYPE 1
37608_ACEOF
37609
37610fi
37611
37612if test "$wxUSE_MINIFRAME" = "yes"; then
37613 cat >>confdefs.h <<\_ACEOF
37614#define wxUSE_MINIFRAME 1
37615_ACEOF
37616
37617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37618fi
37619
37620if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37621 cat >>confdefs.h <<\_ACEOF
37622#define wxUSE_SYSTEM_OPTIONS 1
37623_ACEOF
37624
37625 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37626 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37627 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37628 fi
37629fi
37630
37631
37632if test "$wxUSE_VALIDATORS" = "yes"; then
37633 cat >>confdefs.h <<\_ACEOF
37634#define wxUSE_VALIDATORS 1
37635_ACEOF
37636
37637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37638fi
37639
37640if test "$wxUSE_PALETTE" = "yes" ; then
37641 cat >>confdefs.h <<\_ACEOF
37642#define wxUSE_PALETTE 1
37643_ACEOF
37644
37645fi
37646
37647if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37648 LIBS=" -lunicows $LIBS"
37649fi
37650
37651
37652if test "$wxUSE_IMAGE" = "yes" ; then
37653 cat >>confdefs.h <<\_ACEOF
37654#define wxUSE_IMAGE 1
37655_ACEOF
37656
37657
37658 if test "$wxUSE_GIF" = "yes" ; then
37659 cat >>confdefs.h <<\_ACEOF
37660#define wxUSE_GIF 1
37661_ACEOF
37662
37663 fi
37664
37665 if test "$wxUSE_PCX" = "yes" ; then
37666 cat >>confdefs.h <<\_ACEOF
37667#define wxUSE_PCX 1
37668_ACEOF
37669
37670 fi
37671
37672 if test "$wxUSE_IFF" = "yes" ; then
37673 cat >>confdefs.h <<\_ACEOF
37674#define wxUSE_IFF 1
37675_ACEOF
37676
37677 fi
37678
37679 if test "$wxUSE_PNM" = "yes" ; then
37680 cat >>confdefs.h <<\_ACEOF
37681#define wxUSE_PNM 1
37682_ACEOF
37683
37684 fi
37685
37686 if test "$wxUSE_XPM" = "yes" ; then
37687 cat >>confdefs.h <<\_ACEOF
37688#define wxUSE_XPM 1
37689_ACEOF
37690
37691 fi
37692
37693 if test "$wxUSE_ICO_CUR" = "yes" ; then
37694 cat >>confdefs.h <<\_ACEOF
37695#define wxUSE_ICO_CUR 1
37696_ACEOF
37697
37698 fi
37699fi
37700
37701
37702if test "$wxUSE_CHOICEDLG" = "yes"; then
37703 cat >>confdefs.h <<\_ACEOF
37704#define wxUSE_CHOICEDLG 1
37705_ACEOF
37706
37707fi
37708
37709if test "$wxUSE_COLOURDLG" = "yes"; then
37710 cat >>confdefs.h <<\_ACEOF
37711#define wxUSE_COLOURDLG 1
37712_ACEOF
37713
37714fi
37715
37716if test "$wxUSE_FILEDLG" = "yes"; then
37717 cat >>confdefs.h <<\_ACEOF
37718#define wxUSE_FILEDLG 1
37719_ACEOF
37720
37721fi
37722
37723if test "$wxUSE_FINDREPLDLG" = "yes"; then
37724 cat >>confdefs.h <<\_ACEOF
37725#define wxUSE_FINDREPLDLG 1
37726_ACEOF
37727
37728fi
37729
37730if test "$wxUSE_FONTDLG" = "yes"; then
37731 cat >>confdefs.h <<\_ACEOF
37732#define wxUSE_FONTDLG 1
37733_ACEOF
37734
37735fi
37736
37737if test "$wxUSE_DIRDLG" = "yes"; then
37738 if test "$wxUSE_TREECTRL" != "yes"; then
37739 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37740echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37741 else
37742 cat >>confdefs.h <<\_ACEOF
37743#define wxUSE_DIRDLG 1
37744_ACEOF
37745
37746 fi
37747fi
37748
37749if test "$wxUSE_MSGDLG" = "yes"; then
37750 cat >>confdefs.h <<\_ACEOF
37751#define wxUSE_MSGDLG 1
37752_ACEOF
37753
37754fi
37755
37756if test "$wxUSE_NUMBERDLG" = "yes"; then
37757 cat >>confdefs.h <<\_ACEOF
37758#define wxUSE_NUMBERDLG 1
37759_ACEOF
37760
37761fi
37762
37763if test "$wxUSE_PROGRESSDLG" = "yes"; then
37764 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37765 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37766echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37767 else
37768 cat >>confdefs.h <<\_ACEOF
37769#define wxUSE_PROGRESSDLG 1
37770_ACEOF
37771
37772 fi
37773fi
37774
37775if test "$wxUSE_SPLASH" = "yes"; then
37776 cat >>confdefs.h <<\_ACEOF
37777#define wxUSE_SPLASH 1
37778_ACEOF
37779
2057db16 37780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37781fi
37782
37783if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37784 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37785 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37786echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37787 else
37788 cat >>confdefs.h <<\_ACEOF
37789#define wxUSE_STARTUP_TIPS 1
37790_ACEOF
37791
37792 fi
37793fi
37794
37795if test "$wxUSE_TEXTDLG" = "yes"; then
37796 cat >>confdefs.h <<\_ACEOF
37797#define wxUSE_TEXTDLG 1
37798_ACEOF
37799
37800fi
37801
37802if test "$wxUSE_WIZARDDLG" = "yes"; then
37803 cat >>confdefs.h <<\_ACEOF
37804#define wxUSE_WIZARDDLG 1
37805_ACEOF
37806
37807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37808fi
37809
37810
37811if test "$cross_compiling" = "yes"; then
37812 OSINFO="\"$host\""
37813else
37814 OSINFO=`uname -s -r -m`
37815 OSINFO="\"$OSINFO\""
37816fi
37817
37818cat >>confdefs.h <<_ACEOF
37819#define WXWIN_OS_DESCRIPTION $OSINFO
37820_ACEOF
37821
37822
37823
37824if test "x$prefix" != "xNONE"; then
37825 wxPREFIX=$prefix
37826else
37827 wxPREFIX=$ac_default_prefix
37828fi
37829
37830cat >>confdefs.h <<_ACEOF
37831#define wxINSTALL_PREFIX "$wxPREFIX"
37832_ACEOF
37833
37834
a848cd7e
SC
37835
37836
37837CORE_BASE_LIBS="net base"
37838CORE_GUI_LIBS="adv core"
37839
37840if test "$wxUSE_XML" = "yes" ; then
37841 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37842fi
37843if test "$wxUSE_ODBC" != "no" ; then
37844 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37845 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37846fi
37847if test "$wxUSE_HTML" = "yes" ; then
37848 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37849fi
9a8f0513
VS
37850if test "$wxUSE_XRC" = "yes" ; then
37851 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37852fi
a848cd7e
SC
37853
37854if test "$wxUSE_GUI" != "yes"; then
37855 CORE_GUI_LIBS=""
37856fi
37857
37858
37859
37860
37861
37862
37863
37864
37865if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 37866 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
37867 if test "$USE_DARWIN" = 1; then
37868 LDFLAGS="$LDFLAGS -framework QuickTime"
37869 else
37870 LDFLAGS="$LDFLAGS -lQuickTimeLib"
37871 fi
07bea8f0 37872 fi
5dcf30a0 37873 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
37874 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
37875 else
37876 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 37877 fi
a848cd7e
SC
37878fi
37879if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37880 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37881fi
37882
37883
37884LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37885
37886have_cos=0
37887have_floor=0
37888
37889for ac_func in cos
37890do
37891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37892echo "$as_me:$LINENO: checking for $ac_func" >&5
37893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37894if eval "test \"\${$as_ac_var+set}\" = set"; then
37895 echo $ECHO_N "(cached) $ECHO_C" >&6
37896else
37897 cat >conftest.$ac_ext <<_ACEOF
37898/* confdefs.h. */
37899_ACEOF
37900cat confdefs.h >>conftest.$ac_ext
37901cat >>conftest.$ac_ext <<_ACEOF
37902/* end confdefs.h. */
ac1cb8d3
VS
37903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37905#define $ac_func innocuous_$ac_func
37906
a848cd7e
SC
37907/* System header to define __stub macros and hopefully few prototypes,
37908 which can conflict with char $ac_func (); below.
37909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37910 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37911
a848cd7e
SC
37912#ifdef __STDC__
37913# include <limits.h>
37914#else
37915# include <assert.h>
37916#endif
ac1cb8d3
VS
37917
37918#undef $ac_func
37919
a848cd7e
SC
37920/* Override any gcc2 internal prototype to avoid an error. */
37921#ifdef __cplusplus
37922extern "C"
37923{
37924#endif
37925/* We use char because int might match the return type of a gcc2
37926 builtin and then its argument prototype would still apply. */
37927char $ac_func ();
37928/* The GNU C library defines this for functions which it implements
37929 to always fail with ENOSYS. Some functions are actually named
37930 something starting with __ and the normal name is an alias. */
37931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37932choke me
37933#else
37934char (*f) () = $ac_func;
37935#endif
37936#ifdef __cplusplus
37937}
37938#endif
37939
37940int
37941main ()
37942{
37943return f != $ac_func;
37944 ;
37945 return 0;
37946}
37947_ACEOF
37948rm -f conftest.$ac_objext conftest$ac_exeext
37949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37950 (eval $ac_link) 2>conftest.er1
a848cd7e 37951 ac_status=$?
ac1cb8d3
VS
37952 grep -v '^ *+' conftest.er1 >conftest.err
37953 rm -f conftest.er1
37954 cat conftest.err >&5
a848cd7e
SC
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); } &&
fc480dc1
DE
37957 { ac_try='test -z "$ac_c_werror_flag"
37958 || test ! -s conftest.err'
ac1cb8d3
VS
37959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37960 (eval $ac_try) 2>&5
37961 ac_status=$?
37962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37963 (exit $ac_status); }; } &&
37964 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37966 (eval $ac_try) 2>&5
37967 ac_status=$?
37968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969 (exit $ac_status); }; }; then
37970 eval "$as_ac_var=yes"
37971else
37972 echo "$as_me: failed program was:" >&5
37973sed 's/^/| /' conftest.$ac_ext >&5
37974
37975eval "$as_ac_var=no"
37976fi
ac1cb8d3
VS
37977rm -f conftest.err conftest.$ac_objext \
37978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37979fi
37980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37981echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37982if test `eval echo '${'$as_ac_var'}'` = yes; then
37983 cat >>confdefs.h <<_ACEOF
37984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37985_ACEOF
37986 have_cos=1
37987fi
37988done
37989
37990
37991for ac_func in floor
37992do
37993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37994echo "$as_me:$LINENO: checking for $ac_func" >&5
37995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37996if eval "test \"\${$as_ac_var+set}\" = set"; then
37997 echo $ECHO_N "(cached) $ECHO_C" >&6
37998else
37999 cat >conftest.$ac_ext <<_ACEOF
38000/* confdefs.h. */
38001_ACEOF
38002cat confdefs.h >>conftest.$ac_ext
38003cat >>conftest.$ac_ext <<_ACEOF
38004/* end confdefs.h. */
ac1cb8d3
VS
38005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38007#define $ac_func innocuous_$ac_func
38008
a848cd7e
SC
38009/* System header to define __stub macros and hopefully few prototypes,
38010 which can conflict with char $ac_func (); below.
38011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38012 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38013
a848cd7e
SC
38014#ifdef __STDC__
38015# include <limits.h>
38016#else
38017# include <assert.h>
38018#endif
ac1cb8d3
VS
38019
38020#undef $ac_func
38021
a848cd7e
SC
38022/* Override any gcc2 internal prototype to avoid an error. */
38023#ifdef __cplusplus
38024extern "C"
38025{
38026#endif
38027/* We use char because int might match the return type of a gcc2
38028 builtin and then its argument prototype would still apply. */
38029char $ac_func ();
38030/* The GNU C library defines this for functions which it implements
38031 to always fail with ENOSYS. Some functions are actually named
38032 something starting with __ and the normal name is an alias. */
38033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38034choke me
38035#else
38036char (*f) () = $ac_func;
38037#endif
38038#ifdef __cplusplus
38039}
38040#endif
38041
38042int
38043main ()
38044{
38045return f != $ac_func;
38046 ;
38047 return 0;
38048}
38049_ACEOF
38050rm -f conftest.$ac_objext conftest$ac_exeext
38051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38052 (eval $ac_link) 2>conftest.er1
a848cd7e 38053 ac_status=$?
ac1cb8d3
VS
38054 grep -v '^ *+' conftest.er1 >conftest.err
38055 rm -f conftest.er1
38056 cat conftest.err >&5
a848cd7e
SC
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); } &&
fc480dc1
DE
38059 { ac_try='test -z "$ac_c_werror_flag"
38060 || test ! -s conftest.err'
ac1cb8d3
VS
38061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38062 (eval $ac_try) 2>&5
38063 ac_status=$?
38064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065 (exit $ac_status); }; } &&
38066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38068 (eval $ac_try) 2>&5
38069 ac_status=$?
38070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071 (exit $ac_status); }; }; then
38072 eval "$as_ac_var=yes"
38073else
38074 echo "$as_me: failed program was:" >&5
38075sed 's/^/| /' conftest.$ac_ext >&5
38076
38077eval "$as_ac_var=no"
38078fi
ac1cb8d3
VS
38079rm -f conftest.err conftest.$ac_objext \
38080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38081fi
38082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38083echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38084if test `eval echo '${'$as_ac_var'}'` = yes; then
38085 cat >>confdefs.h <<_ACEOF
38086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38087_ACEOF
38088 have_floor=1
38089fi
38090done
38091
38092echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38093echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38094if test "$have_cos" = 1 -a "$have_floor" = 1; then
38095 echo "$as_me:$LINENO: result: yes" >&5
38096echo "${ECHO_T}yes" >&6
38097else
38098 echo "$as_me:$LINENO: result: no" >&5
38099echo "${ECHO_T}no" >&6
38100 LIBS="$LIBS -lm"
38101 # use different functions to avoid configure caching
38102 have_sin=0
38103 have_ceil=0
38104
38105for ac_func in sin
38106do
38107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38108echo "$as_me:$LINENO: checking for $ac_func" >&5
38109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38110if eval "test \"\${$as_ac_var+set}\" = set"; then
38111 echo $ECHO_N "(cached) $ECHO_C" >&6
38112else
38113 cat >conftest.$ac_ext <<_ACEOF
38114/* confdefs.h. */
38115_ACEOF
38116cat confdefs.h >>conftest.$ac_ext
38117cat >>conftest.$ac_ext <<_ACEOF
38118/* end confdefs.h. */
ac1cb8d3
VS
38119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38121#define $ac_func innocuous_$ac_func
38122
a848cd7e
SC
38123/* System header to define __stub macros and hopefully few prototypes,
38124 which can conflict with char $ac_func (); below.
38125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38127
a848cd7e
SC
38128#ifdef __STDC__
38129# include <limits.h>
38130#else
38131# include <assert.h>
38132#endif
ac1cb8d3
VS
38133
38134#undef $ac_func
38135
a848cd7e
SC
38136/* Override any gcc2 internal prototype to avoid an error. */
38137#ifdef __cplusplus
38138extern "C"
38139{
38140#endif
38141/* We use char because int might match the return type of a gcc2
38142 builtin and then its argument prototype would still apply. */
38143char $ac_func ();
38144/* The GNU C library defines this for functions which it implements
38145 to always fail with ENOSYS. Some functions are actually named
38146 something starting with __ and the normal name is an alias. */
38147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38148choke me
38149#else
38150char (*f) () = $ac_func;
38151#endif
38152#ifdef __cplusplus
38153}
38154#endif
38155
38156int
38157main ()
38158{
38159return f != $ac_func;
38160 ;
38161 return 0;
38162}
38163_ACEOF
38164rm -f conftest.$ac_objext conftest$ac_exeext
38165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38166 (eval $ac_link) 2>conftest.er1
a848cd7e 38167 ac_status=$?
ac1cb8d3
VS
38168 grep -v '^ *+' conftest.er1 >conftest.err
38169 rm -f conftest.er1
38170 cat conftest.err >&5
a848cd7e
SC
38171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172 (exit $ac_status); } &&
fc480dc1
DE
38173 { ac_try='test -z "$ac_c_werror_flag"
38174 || test ! -s conftest.err'
ac1cb8d3
VS
38175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38176 (eval $ac_try) 2>&5
38177 ac_status=$?
38178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179 (exit $ac_status); }; } &&
38180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38182 (eval $ac_try) 2>&5
38183 ac_status=$?
38184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185 (exit $ac_status); }; }; then
38186 eval "$as_ac_var=yes"
38187else
38188 echo "$as_me: failed program was:" >&5
38189sed 's/^/| /' conftest.$ac_ext >&5
38190
38191eval "$as_ac_var=no"
38192fi
ac1cb8d3
VS
38193rm -f conftest.err conftest.$ac_objext \
38194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38195fi
38196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38198if test `eval echo '${'$as_ac_var'}'` = yes; then
38199 cat >>confdefs.h <<_ACEOF
38200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38201_ACEOF
38202 have_sin=1
38203fi
38204done
38205
38206
38207for ac_func in ceil
38208do
38209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38210echo "$as_me:$LINENO: checking for $ac_func" >&5
38211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38212if eval "test \"\${$as_ac_var+set}\" = set"; then
38213 echo $ECHO_N "(cached) $ECHO_C" >&6
38214else
38215 cat >conftest.$ac_ext <<_ACEOF
38216/* confdefs.h. */
38217_ACEOF
38218cat confdefs.h >>conftest.$ac_ext
38219cat >>conftest.$ac_ext <<_ACEOF
38220/* end confdefs.h. */
ac1cb8d3
VS
38221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38223#define $ac_func innocuous_$ac_func
38224
a848cd7e
SC
38225/* System header to define __stub macros and hopefully few prototypes,
38226 which can conflict with char $ac_func (); below.
38227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38228 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38229
a848cd7e
SC
38230#ifdef __STDC__
38231# include <limits.h>
38232#else
38233# include <assert.h>
38234#endif
ac1cb8d3
VS
38235
38236#undef $ac_func
38237
a848cd7e
SC
38238/* Override any gcc2 internal prototype to avoid an error. */
38239#ifdef __cplusplus
38240extern "C"
38241{
38242#endif
38243/* We use char because int might match the return type of a gcc2
38244 builtin and then its argument prototype would still apply. */
38245char $ac_func ();
38246/* The GNU C library defines this for functions which it implements
38247 to always fail with ENOSYS. Some functions are actually named
38248 something starting with __ and the normal name is an alias. */
38249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38250choke me
38251#else
38252char (*f) () = $ac_func;
38253#endif
38254#ifdef __cplusplus
38255}
38256#endif
38257
38258int
38259main ()
38260{
38261return f != $ac_func;
38262 ;
38263 return 0;
38264}
38265_ACEOF
38266rm -f conftest.$ac_objext conftest$ac_exeext
38267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38268 (eval $ac_link) 2>conftest.er1
a848cd7e 38269 ac_status=$?
ac1cb8d3
VS
38270 grep -v '^ *+' conftest.er1 >conftest.err
38271 rm -f conftest.er1
38272 cat conftest.err >&5
a848cd7e
SC
38273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274 (exit $ac_status); } &&
fc480dc1
DE
38275 { ac_try='test -z "$ac_c_werror_flag"
38276 || test ! -s conftest.err'
ac1cb8d3
VS
38277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38278 (eval $ac_try) 2>&5
38279 ac_status=$?
38280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38281 (exit $ac_status); }; } &&
38282 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38284 (eval $ac_try) 2>&5
38285 ac_status=$?
38286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38287 (exit $ac_status); }; }; then
38288 eval "$as_ac_var=yes"
38289else
38290 echo "$as_me: failed program was:" >&5
38291sed 's/^/| /' conftest.$ac_ext >&5
38292
38293eval "$as_ac_var=no"
38294fi
ac1cb8d3
VS
38295rm -f conftest.err conftest.$ac_objext \
38296 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38297fi
38298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38299echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38300if test `eval echo '${'$as_ac_var'}'` = yes; then
38301 cat >>confdefs.h <<_ACEOF
38302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38303_ACEOF
38304 have_ceil=1
38305fi
38306done
38307
38308 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38309echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38310 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38311 echo "$as_me:$LINENO: result: yes" >&5
38312echo "${ECHO_T}yes" >&6
38313 else
38314 echo "$as_me:$LINENO: result: no" >&5
38315echo "${ECHO_T}no" >&6
38316 # not sure we should warn the user, crash, etc.
38317 fi
38318fi
38319
38320if test "$wxUSE_GUI" = "yes"; then
38321
38322
38323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38324 drawing dynamic erase event exec font image \
38325 minimal propsize rotate shaped widgets render"
38326
38327 if test "$wxUSE_MONOLITHIC" != "yes"; then
38328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38329 fi
38330else
38331 SAMPLES_SUBDIRS="console"
38332fi
38333
38334
ceec2216 38335INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38336-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38337
38338if test "$GXX" = yes ; then
38339 CXXWARNINGS="-Wall"
38340 fi
38341
38342EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38343
0c3c69fc
VS
38344CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
38345CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
38346CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
38347
38348
0c3c69fc 38349LIBS=`echo $LIBS`
a848cd7e
SC
38350EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38351EXTRALIBS_XML="$EXPAT_LINK"
38352EXTRALIBS_HTML="$MSPACK_LINK"
38353EXTRALIBS_ODBC="$ODBC_LINK"
38354if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38355 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38356fi
38357if test "$wxUSE_OPENGL" = "yes"; then
38358 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38359fi
38360
38361LDFLAGS="$LDFLAGS $PROFILE"
38362
38363if test "$wxUSE_GTK" = 1; then
38364 WXCONFIG_INCLUDE=
38365else
38366 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38367fi
38368
38369WXCONFIG_EXTRALIBS="$LIBS"
38370
38371if test "$wxUSE_REGEX" = "builtin" ; then
38372 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38373fi
38374if test "$wxUSE_EXPAT" = "builtin" ; then
38375 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38376fi
38377if test "$wxUSE_ODBC" = "builtin" ; then
38378 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38379fi
38380if test "$wxUSE_LIBTIFF" = "builtin" ; then
38381 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38382fi
38383if test "$wxUSE_LIBJPEG" = "builtin" ; then
38384 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38385fi
38386if test "$wxUSE_LIBPNG" = "builtin" ; then
38387 wxconfig_3rdparty="$wxconfig_3rdparty png"
38388fi
38389if test "$wxUSE_ZLIB" = "builtin" ; then
38390 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38391fi
38392if test "$wxUSE_ODBC" = "builtin" ; then
38393 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38394fi
38395
38396for i in $wxconfig_3rdparty ; do
ceec2216 38397 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38398done
38399
38400
38401if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38402 WXUNIV=1
38403else
38404 WXUNIV=0
38405fi
38406
38407
38408
38409
38410
38411
38412
38413
38414
38415if test $wxUSE_MONOLITHIC = "yes" ; then
38416 MONOLITHIC=1
38417else
38418 MONOLITHIC=0
38419fi
38420
38421if test $wxUSE_PLUGINS = "yes" ; then
38422 USE_PLUGINS=1
38423else
38424 USE_PLUGINS=0
38425fi
38426
38427if test $wxUSE_ODBC != "no" ; then
38428 USE_ODBC=1
38429else
38430 USE_ODBC=0
38431fi
38432
38433if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38434 OFFICIAL_BUILD=1
38435else
38436 OFFICIAL_BUILD=0
38437fi
38438
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
ceec2216 38457
d1c38808 38458
a848cd7e
SC
38459
38460
38461TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38462
38463
38464
38465
38466
38467
38468
38469
4d4ff94c
VZ
38470case "$TOOLKIT" in
38471 GTK)
38472 TOOLKIT_USER="GTK+"
38473 if test "$WXGTK20" = 1; then
38474 TOOLKIT_USER="$TOOLKIT_USER 2"
38475 fi
9a8f0513 38476 ;;
4d4ff94c
VZ
38477
38478 *)
38479 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38480 ;;
4d4ff94c 38481esac
a848cd7e 38482
9a8f0513 38483
1e9e8aba
DE
38484
38485
a848cd7e
SC
38486 if test "x$BAKEFILE_HOST" = "x"; then
38487 BAKEFILE_HOST="${host}"
38488 fi
38489
38490 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38491
38492 if test -n "$ac_tool_prefix"; then
38493 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38494set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38495echo "$as_me:$LINENO: checking for $ac_word" >&5
38496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38497if test "${ac_cv_prog_RANLIB+set}" = set; then
38498 echo $ECHO_N "(cached) $ECHO_C" >&6
38499else
38500 if test -n "$RANLIB"; then
38501 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38502else
38503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38504for as_dir in $PATH
38505do
38506 IFS=$as_save_IFS
38507 test -z "$as_dir" && as_dir=.
38508 for ac_exec_ext in '' $ac_executable_extensions; do
38509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38510 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38512 break 2
38513 fi
38514done
38515done
38516
38517fi
38518fi
38519RANLIB=$ac_cv_prog_RANLIB
38520if test -n "$RANLIB"; then
38521 echo "$as_me:$LINENO: result: $RANLIB" >&5
38522echo "${ECHO_T}$RANLIB" >&6
38523else
38524 echo "$as_me:$LINENO: result: no" >&5
38525echo "${ECHO_T}no" >&6
38526fi
38527
38528fi
38529if test -z "$ac_cv_prog_RANLIB"; then
38530 ac_ct_RANLIB=$RANLIB
38531 # Extract the first word of "ranlib", so it can be a program name with args.
38532set dummy ranlib; ac_word=$2
38533echo "$as_me:$LINENO: checking for $ac_word" >&5
38534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38535if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38536 echo $ECHO_N "(cached) $ECHO_C" >&6
38537else
38538 if test -n "$ac_ct_RANLIB"; then
38539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38540else
38541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38542for as_dir in $PATH
38543do
38544 IFS=$as_save_IFS
38545 test -z "$as_dir" && as_dir=.
38546 for ac_exec_ext in '' $ac_executable_extensions; do
38547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38548 ac_cv_prog_ac_ct_RANLIB="ranlib"
38549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38550 break 2
38551 fi
38552done
38553done
38554
38555 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38556fi
38557fi
38558ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38559if test -n "$ac_ct_RANLIB"; then
38560 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38561echo "${ECHO_T}$ac_ct_RANLIB" >&6
38562else
38563 echo "$as_me:$LINENO: result: no" >&5
38564echo "${ECHO_T}no" >&6
38565fi
38566
38567 RANLIB=$ac_ct_RANLIB
38568else
38569 RANLIB="$ac_cv_prog_RANLIB"
38570fi
38571
38572 # Find a good install program. We prefer a C program (faster),
38573# so one script is as good as another. But avoid the broken or
38574# incompatible versions:
38575# SysV /etc/install, /usr/sbin/install
38576# SunOS /usr/etc/install
38577# IRIX /sbin/install
38578# AIX /bin/install
38579# AmigaOS /C/install, which installs bootblocks on floppy discs
38580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38583# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38584# ./install, which can be erroneously created by make from ./install.sh.
38585echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38586echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38587if test -z "$INSTALL"; then
38588if test "${ac_cv_path_install+set}" = set; then
38589 echo $ECHO_N "(cached) $ECHO_C" >&6
38590else
38591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38592for as_dir in $PATH
38593do
38594 IFS=$as_save_IFS
38595 test -z "$as_dir" && as_dir=.
38596 # Account for people who put trailing slashes in PATH elements.
38597case $as_dir/ in
38598 ./ | .// | /cC/* | \
38599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38600 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38601 /usr/ucb/* ) ;;
38602 *)
38603 # OSF1 and SCO ODT 3.0 have their own names for install.
38604 # Don't use installbsd from OSF since it installs stuff as root
38605 # by default.
38606 for ac_prog in ginstall scoinst install; do
38607 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38608 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38609 if test $ac_prog = install &&
38610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38611 # AIX install. It has an incompatible calling convention.
38612 :
38613 elif test $ac_prog = install &&
38614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38615 # program-specific install script used by HP pwplus--don't use.
38616 :
38617 else
38618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38619 break 3
38620 fi
38621 fi
a848cd7e
SC
38622 done
38623 done
38624 ;;
38625esac
38626done
38627
38628
38629fi
38630 if test "${ac_cv_path_install+set}" = set; then
38631 INSTALL=$ac_cv_path_install
38632 else
38633 # As a last resort, use the slow shell script. We don't cache a
38634 # path for INSTALL within a source directory, because that will
38635 # break other packages using the cache if that directory is
38636 # removed, or if the path is relative.
38637 INSTALL=$ac_install_sh
38638 fi
38639fi
38640echo "$as_me:$LINENO: result: $INSTALL" >&5
38641echo "${ECHO_T}$INSTALL" >&6
38642
38643# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38644# It thinks the first close brace ends the variable substitution.
38645test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38646
38647test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38648
38649test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38650
38651 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38652echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38653LN_S=$as_ln_s
38654if test "$LN_S" = "ln -s"; then
38655 echo "$as_me:$LINENO: result: yes" >&5
38656echo "${ECHO_T}yes" >&6
38657else
38658 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38659echo "${ECHO_T}no, using $LN_S" >&6
38660fi
38661
38662
38663 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38664echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38665set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38666if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38667 echo $ECHO_N "(cached) $ECHO_C" >&6
38668else
38669 cat >conftest.make <<\_ACEOF
38670all:
38671 @echo 'ac_maketemp="$(MAKE)"'
38672_ACEOF
38673# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38674eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38675if test -n "$ac_maketemp"; then
38676 eval ac_cv_prog_make_${ac_make}_set=yes
38677else
38678 eval ac_cv_prog_make_${ac_make}_set=no
38679fi
38680rm -f conftest.make
38681fi
38682if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38683 echo "$as_me:$LINENO: result: yes" >&5
38684echo "${ECHO_T}yes" >&6
38685 SET_MAKE=
38686else
38687 echo "$as_me:$LINENO: result: no" >&5
38688echo "${ECHO_T}no" >&6
38689 SET_MAKE="MAKE=${MAKE-make}"
38690fi
38691
38692
38693
38694 if test -n "$ac_tool_prefix"; then
38695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38696set dummy ${ac_tool_prefix}ar; ac_word=$2
38697echo "$as_me:$LINENO: checking for $ac_word" >&5
38698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38699if test "${ac_cv_prog_AR+set}" = set; then
38700 echo $ECHO_N "(cached) $ECHO_C" >&6
38701else
38702 if test -n "$AR"; then
38703 ac_cv_prog_AR="$AR" # Let the user override the test.
38704else
38705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38706for as_dir in $PATH
38707do
38708 IFS=$as_save_IFS
38709 test -z "$as_dir" && as_dir=.
38710 for ac_exec_ext in '' $ac_executable_extensions; do
38711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38712 ac_cv_prog_AR="${ac_tool_prefix}ar"
38713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38714 break 2
38715 fi
38716done
38717done
38718
38719fi
38720fi
38721AR=$ac_cv_prog_AR
38722if test -n "$AR"; then
38723 echo "$as_me:$LINENO: result: $AR" >&5
38724echo "${ECHO_T}$AR" >&6
38725else
38726 echo "$as_me:$LINENO: result: no" >&5
38727echo "${ECHO_T}no" >&6
38728fi
38729
38730fi
38731if test -z "$ac_cv_prog_AR"; then
38732 ac_ct_AR=$AR
38733 # Extract the first word of "ar", so it can be a program name with args.
38734set dummy ar; ac_word=$2
38735echo "$as_me:$LINENO: checking for $ac_word" >&5
38736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38737if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38738 echo $ECHO_N "(cached) $ECHO_C" >&6
38739else
38740 if test -n "$ac_ct_AR"; then
38741 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38742else
38743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38744for as_dir in $PATH
38745do
38746 IFS=$as_save_IFS
38747 test -z "$as_dir" && as_dir=.
38748 for ac_exec_ext in '' $ac_executable_extensions; do
38749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38750 ac_cv_prog_ac_ct_AR="ar"
38751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38752 break 2
38753 fi
38754done
38755done
38756
38757 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38758fi
38759fi
38760ac_ct_AR=$ac_cv_prog_ac_ct_AR
38761if test -n "$ac_ct_AR"; then
38762 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38763echo "${ECHO_T}$ac_ct_AR" >&6
38764else
38765 echo "$as_me:$LINENO: result: no" >&5
38766echo "${ECHO_T}no" >&6
38767fi
38768
38769 AR=$ac_ct_AR
38770else
38771 AR="$ac_cv_prog_AR"
38772fi
38773
38774 if test -n "$ac_tool_prefix"; then
38775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38776set dummy ${ac_tool_prefix}strip; ac_word=$2
38777echo "$as_me:$LINENO: checking for $ac_word" >&5
38778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38779if test "${ac_cv_prog_STRIP+set}" = set; then
38780 echo $ECHO_N "(cached) $ECHO_C" >&6
38781else
38782 if test -n "$STRIP"; then
38783 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38784else
38785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38786for as_dir in $PATH
38787do
38788 IFS=$as_save_IFS
38789 test -z "$as_dir" && as_dir=.
38790 for ac_exec_ext in '' $ac_executable_extensions; do
38791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38792 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38794 break 2
38795 fi
38796done
38797done
38798
38799fi
38800fi
38801STRIP=$ac_cv_prog_STRIP
38802if test -n "$STRIP"; then
38803 echo "$as_me:$LINENO: result: $STRIP" >&5
38804echo "${ECHO_T}$STRIP" >&6
38805else
38806 echo "$as_me:$LINENO: result: no" >&5
38807echo "${ECHO_T}no" >&6
38808fi
38809
38810fi
38811if test -z "$ac_cv_prog_STRIP"; then
38812 ac_ct_STRIP=$STRIP
38813 # Extract the first word of "strip", so it can be a program name with args.
38814set dummy strip; ac_word=$2
38815echo "$as_me:$LINENO: checking for $ac_word" >&5
38816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38817if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38818 echo $ECHO_N "(cached) $ECHO_C" >&6
38819else
38820 if test -n "$ac_ct_STRIP"; then
38821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38822else
38823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38824for as_dir in $PATH
38825do
38826 IFS=$as_save_IFS
38827 test -z "$as_dir" && as_dir=.
38828 for ac_exec_ext in '' $ac_executable_extensions; do
38829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38830 ac_cv_prog_ac_ct_STRIP="strip"
38831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38832 break 2
38833 fi
38834done
38835done
38836
38837 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38838fi
38839fi
38840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38841if test -n "$ac_ct_STRIP"; then
38842 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38843echo "${ECHO_T}$ac_ct_STRIP" >&6
38844else
38845 echo "$as_me:$LINENO: result: no" >&5
38846echo "${ECHO_T}no" >&6
38847fi
38848
38849 STRIP=$ac_ct_STRIP
38850else
38851 STRIP="$ac_cv_prog_STRIP"
38852fi
38853
38854 if test -n "$ac_tool_prefix"; then
38855 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38856set dummy ${ac_tool_prefix}nm; ac_word=$2
38857echo "$as_me:$LINENO: checking for $ac_word" >&5
38858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38859if test "${ac_cv_prog_NM+set}" = set; then
38860 echo $ECHO_N "(cached) $ECHO_C" >&6
38861else
38862 if test -n "$NM"; then
38863 ac_cv_prog_NM="$NM" # Let the user override the test.
38864else
38865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38866for as_dir in $PATH
38867do
38868 IFS=$as_save_IFS
38869 test -z "$as_dir" && as_dir=.
38870 for ac_exec_ext in '' $ac_executable_extensions; do
38871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38872 ac_cv_prog_NM="${ac_tool_prefix}nm"
38873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38874 break 2
38875 fi
38876done
38877done
38878
38879fi
38880fi
38881NM=$ac_cv_prog_NM
38882if test -n "$NM"; then
38883 echo "$as_me:$LINENO: result: $NM" >&5
38884echo "${ECHO_T}$NM" >&6
38885else
38886 echo "$as_me:$LINENO: result: no" >&5
38887echo "${ECHO_T}no" >&6
38888fi
38889
38890fi
38891if test -z "$ac_cv_prog_NM"; then
38892 ac_ct_NM=$NM
38893 # Extract the first word of "nm", so it can be a program name with args.
38894set dummy nm; ac_word=$2
38895echo "$as_me:$LINENO: checking for $ac_word" >&5
38896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38897if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38898 echo $ECHO_N "(cached) $ECHO_C" >&6
38899else
38900 if test -n "$ac_ct_NM"; then
38901 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38902else
38903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38904for as_dir in $PATH
38905do
38906 IFS=$as_save_IFS
38907 test -z "$as_dir" && as_dir=.
38908 for ac_exec_ext in '' $ac_executable_extensions; do
38909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38910 ac_cv_prog_ac_ct_NM="nm"
38911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38912 break 2
38913 fi
38914done
38915done
38916
38917 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38918fi
38919fi
38920ac_ct_NM=$ac_cv_prog_ac_ct_NM
38921if test -n "$ac_ct_NM"; then
38922 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38923echo "${ECHO_T}$ac_ct_NM" >&6
38924else
38925 echo "$as_me:$LINENO: result: no" >&5
38926echo "${ECHO_T}no" >&6
38927fi
38928
38929 NM=$ac_ct_NM
38930else
38931 NM="$ac_cv_prog_NM"
38932fi
38933
38934
38935 case ${BAKEFILE_HOST} in
38936 *-hp-hpux* )
1e9e8aba 38937 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38938 ;;
38939 *) INSTALL_DIR="$INSTALL -d"
38940 ;;
38941 esac
38942
38943
38944 LDFLAGS_GUI=
38945 case ${BAKEFILE_HOST} in
38946 *-*-cygwin* | *-*-mingw32* )
38947 LDFLAGS_GUI="-mwindows"
38948 esac
38949
38950
38951 fi
38952
38953 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38954echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38955if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38956 echo $ECHO_N "(cached) $ECHO_C" >&6
38957else
38958
38959 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38960 egrep -s GNU > /dev/null); then
38961 bakefile_cv_prog_makeisgnu="yes"
38962 else
38963 bakefile_cv_prog_makeisgnu="no"
38964 fi
38965
38966fi
38967echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38968echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38969
38970 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38971 IF_GNU_MAKE=""
38972 else
38973 IF_GNU_MAKE="#"
38974 fi
38975
38976
38977
38978 PLATFORM_UNIX=0
38979 PLATFORM_WIN32=0
38980 PLATFORM_MSDOS=0
38981 PLATFORM_MAC=0
1e9e8aba 38982 PLATFORM_MACOS=0
a848cd7e
SC
38983 PLATFORM_MACOSX=0
38984 PLATFORM_OS2=0
1e9e8aba 38985 PLATFORM_BEOS=0
a848cd7e
SC
38986
38987 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38988 case "${BAKEFILE_HOST}" in
38989 *-*-cygwin* | *-*-mingw32* )
38990 PLATFORM_WIN32=1
38991 ;;
38992 *-pc-msdosdjgpp )
38993 PLATFORM_MSDOS=1
38994 ;;
38995 *-pc-os2_emx | *-pc-os2-emx )
38996 PLATFORM_OS2=1
38997 ;;
38998 powerpc-*-darwin* )
38999 PLATFORM_MAC=1
39000 PLATFORM_MACOSX=1
39001 ;;
1e9e8aba
DE
39002 *-*-beos* )
39003 PLATFORM_BEOS=1
39004 ;;
39005 powerpc-apple-macos* )
39006 PLATFORM_MAC=1
39007 PLATFORM_MACOS=1
39008 ;;
a848cd7e
SC
39009 * )
39010 PLATFORM_UNIX=1
39011 ;;
39012 esac
39013 else
39014 case "$BAKEFILE_FORCE_PLATFORM" in
39015 win32 )
39016 PLATFORM_WIN32=1
39017 ;;
39018 msdos )
39019 PLATFORM_MSDOS=1
39020 ;;
39021 os2 )
39022 PLATFORM_OS2=1
39023 ;;
39024 darwin )
39025 PLATFORM_MAC=1
39026 PLATFORM_MACOSX=1
39027 ;;
39028 unix )
39029 PLATFORM_UNIX=1
39030 ;;
1e9e8aba
DE
39031 beos )
39032 PLATFORM_BEOS=1
39033 ;;
a848cd7e
SC
39034 * )
39035 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39036echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39037 { (exit 1); exit 1; }; }
39038 ;;
39039 esac
39040 fi
39041
39042
39043
39044
39045
39046
39047
39048
39049
1e9e8aba
DE
39050
39051
a848cd7e
SC
39052 # Check whether --enable-omf or --disable-omf was given.
39053if test "${enable_omf+set}" = set; then
39054 enableval="$enable_omf"
39055 bk_os2_use_omf="$enableval"
39056fi;
39057
39058 case "${BAKEFILE_HOST}" in
39059 *-*-darwin* )
39060 CFLAGS="$CFLAGS -fno-common"
39061 CXXFLAGS="$CXXFLAGS -fno-common"
39062 ;;
39063
39064 *-pc-os2_emx | *-pc-os2-emx )
39065 if test "x$bk_os2_use_omf" = "xyes" ; then
39066 AR=emxomfar
39067 RANLIB=:
39068 LDFLAGS="-Zomf $LDFLAGS"
39069 CFLAGS="-Zomf $CFLAGS"
39070 CXXFLAGS="-Zomf $CXXFLAGS"
39071 OS2_LIBEXT="lib"
39072 else
39073 OS2_LIBEXT="a"
39074 fi
39075 ;;
1e9e8aba
DE
39076
39077 i*86-*-beos* )
39078 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39079 ;;
a848cd7e
SC
39080 esac
39081
39082
39083 SO_SUFFIX="so"
39084 SO_SUFFIX_MODULE="so"
39085 EXEEXT=""
39086 LIBPREFIX="lib"
39087 LIBEXT=".a"
39088 DLLPREFIX="lib"
39089 DLLPREFIX_MODULE=""
39090 DLLIMP_SUFFIX=""
39091
39092 case "${BAKEFILE_HOST}" in
39093 *-hp-hpux* )
39094 SO_SUFFIX="sl"
39095 SO_SUFFIX_MODULE="sl"
39096 ;;
39097 *-*-aix* )
39098 SO_SUFFIX="a"
39099 SO_SUFFIX_MODULE="a"
39100 ;;
39101 *-*-cygwin* | *-*-mingw32* )
39102 SO_SUFFIX="dll"
39103 SO_SUFFIX_MODULE="dll"
39104 DLLIMP_SUFFIX="dll.a"
39105 EXEEXT=".exe"
39106 DLLPREFIX=""
39107 ;;
39108 *-pc-msdosdjgpp )
39109 EXEEXT=".exe"
39110 DLLPREFIX=""
39111 ;;
39112 *-pc-os2_emx | *-pc-os2-emx )
39113 SO_SUFFIX="dll"
39114 SO_SUFFIX_MODULE="dll"
39115 DLLIMP_SUFFIX=$OS2_LIBEXT
39116 EXEEXT=".exe"
39117 DLLPREFIX=""
39118 LIBPREFIX=""
39119 LIBEXT=".$OS2_LIBEXT"
39120 ;;
39121 powerpc-*-darwin* )
39122 SO_SUFFIX="dylib"
39123 SO_SUFFIX_MODULE="bundle"
39124 ;;
39125 esac
39126
39127 if test "x$DLLIMP_SUFFIX" = "x" ; then
39128 DLLIMP_SUFFIX="$SO_SUFFIX"
39129 fi
39130
39131
39132
39133
39134
39135
39136
39137
39138
39139
39140
1e9e8aba
DE
39141 PIC_FLAG=""
39142 if test "x$GCC" = "xyes"; then
a848cd7e
SC
39143 PIC_FLAG="-fPIC"
39144 fi
39145
1e9e8aba
DE
39146 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39147 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39148
a848cd7e
SC
39149 case "${BAKEFILE_HOST}" in
39150 *-hp-hpux* )
1e9e8aba 39151 if test "x$GCC" != "xyes"; then
a848cd7e
SC
39152 LDFLAGS="$LDFLAGS -L/usr/lib"
39153
39154 SHARED_LD_CC="${CC} -b -o"
39155 SHARED_LD_CXX="${CXX} -b -o"
39156 PIC_FLAG="+Z"
39157 fi
39158 ;;
39159
39160 *-*-linux* )
39161 if test "x$GCC" != "xyes"; then
39162 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39163echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39164if test "${bakefile_cv_prog_icc+set}" = set; then
39165 echo $ECHO_N "(cached) $ECHO_C" >&6
39166else
39167
39168 cat >conftest.$ac_ext <<_ACEOF
39169/* confdefs.h. */
39170_ACEOF
39171cat confdefs.h >>conftest.$ac_ext
39172cat >>conftest.$ac_ext <<_ACEOF
39173/* end confdefs.h. */
39174
39175int
39176main ()
39177{
39178
39179 #ifndef __INTEL_COMPILER
39180 #error Not icc
39181 #endif
39182
39183 ;
39184 return 0;
39185}
39186_ACEOF
39187rm -f conftest.$ac_objext
39188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39189 (eval $ac_compile) 2>conftest.er1
a848cd7e 39190 ac_status=$?
ac1cb8d3
VS
39191 grep -v '^ *+' conftest.er1 >conftest.err
39192 rm -f conftest.er1
39193 cat conftest.err >&5
a848cd7e
SC
39194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39195 (exit $ac_status); } &&
fc480dc1
DE
39196 { ac_try='test -z "$ac_c_werror_flag"
39197 || test ! -s conftest.err'
ac1cb8d3
VS
39198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39199 (eval $ac_try) 2>&5
39200 ac_status=$?
39201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39202 (exit $ac_status); }; } &&
39203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39205 (eval $ac_try) 2>&5
39206 ac_status=$?
39207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39208 (exit $ac_status); }; }; then
39209 bakefile_cv_prog_icc=yes
39210else
39211 echo "$as_me: failed program was:" >&5
39212sed 's/^/| /' conftest.$ac_ext >&5
39213
39214bakefile_cv_prog_icc=no
39215
39216fi
ac1cb8d3 39217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39218
39219fi
39220echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39221echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39222 if test "$bakefile_cv_prog_icc" = "yes"; then
39223 PIC_FLAG="-KPIC"
39224 fi
39225 fi
39226 ;;
39227
39228 *-*-solaris2* )
39229 if test "x$GCC" != xyes ; then
39230 SHARED_LD_CC="${CC} -G -o"
39231 SHARED_LD_CXX="${CXX} -G -o"
39232 PIC_FLAG="-KPIC"
39233 fi
39234 ;;
39235
39236 *-*-darwin* )
39237
39238 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39239echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39240if test "${wx_cv_gcc31+set}" = set; then
39241 echo $ECHO_N "(cached) $ECHO_C" >&6
39242else
39243
39244 cat >conftest.$ac_ext <<_ACEOF
39245/* confdefs.h. */
39246_ACEOF
39247cat confdefs.h >>conftest.$ac_ext
39248cat >>conftest.$ac_ext <<_ACEOF
39249/* end confdefs.h. */
39250
39251int
39252main ()
39253{
39254
39255 #if (__GNUC__ < 3) || \
39256 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39257 #error old gcc
39258 #endif
39259
39260 ;
39261 return 0;
39262}
39263_ACEOF
39264rm -f conftest.$ac_objext
39265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39266 (eval $ac_compile) 2>conftest.er1
a848cd7e 39267 ac_status=$?
ac1cb8d3
VS
39268 grep -v '^ *+' conftest.er1 >conftest.err
39269 rm -f conftest.er1
39270 cat conftest.err >&5
a848cd7e
SC
39271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272 (exit $ac_status); } &&
fc480dc1
DE
39273 { ac_try='test -z "$ac_c_werror_flag"
39274 || test ! -s conftest.err'
ac1cb8d3
VS
39275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39276 (eval $ac_try) 2>&5
39277 ac_status=$?
39278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279 (exit $ac_status); }; } &&
39280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39282 (eval $ac_try) 2>&5
39283 ac_status=$?
39284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 (exit $ac_status); }; }; then
39286
39287 wx_cv_gcc31=yes
39288
39289else
39290 echo "$as_me: failed program was:" >&5
39291sed 's/^/| /' conftest.$ac_ext >&5
39292
39293
39294 wx_cv_gcc31=no
39295
39296
39297fi
ac1cb8d3 39298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39299
39300fi
39301echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39302echo "${ECHO_T}$wx_cv_gcc31" >&6
39303 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39304
39305D='$'
39306cat <<EOF >shared-ld-sh
a848cd7e
SC
39307#!/bin/sh
39308#-----------------------------------------------------------------------------
39309#-- Name: distrib/mac/shared-ld-sh
39310#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39311#-- Author: Gilles Depeyrot
39312#-- Copyright: (c) 2002 Gilles Depeyrot
39313#-- Licence: any use permitted
39314#-----------------------------------------------------------------------------
39315
39316verbose=0
39317args=""
39318objects=""
39319linking_flag="-dynamiclib"
39320
473276a9
VS
39321while test ${D}# -gt 0; do
39322 case ${D}1 in
a848cd7e
SC
39323
39324 -v)
39325 verbose=1
39326 ;;
39327
39328 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39329 # collect these options and values
473276a9 39330 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39331 shift
39332 ;;
39333
39334 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39335 # collect these options
473276a9 39336 args="${D}{args} ${D}1"
a848cd7e
SC
39337 ;;
39338
39339 -dynamiclib|-bundle)
473276a9 39340 linking_flag="${D}1"
a848cd7e
SC
39341 ;;
39342
39343 -*)
473276a9 39344 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39345 exit 1
39346 ;;
39347
39348 *.o | *.a | *.dylib)
39349 # collect object files
473276a9 39350 objects="${D}{objects} ${D}1"
a848cd7e
SC
39351 ;;
39352
39353 *)
473276a9 39354 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39355 exit 1
39356 ;;
39357
39358 esac
39359 shift
39360done
39361
39362#
39363# Link one module containing all the others
39364#
473276a9
VS
39365if test ${D}{verbose} = 1; then
39366 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39367fi
473276a9
VS
39368c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39369status=${D}?
39370if test ${D}{status} != 0; then
39371 exit ${D}{status}
a848cd7e
SC
39372fi
39373
39374#
39375# Link the shared library from the single module created
39376#
473276a9
VS
39377if test ${D}{verbose} = 1; then
39378 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39379fi
473276a9
VS
39380c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39381status=${D}?
39382if test ${D}{status} != 0; then
39383 exit ${D}{status}
a848cd7e
SC
39384fi
39385
39386#
39387# Remove intermediate module
39388#
473276a9 39389rm -f master.${D}${D}.o
a848cd7e
SC
39390
39391exit 0
39392EOF
473276a9 39393
a848cd7e
SC
39394 chmod +x shared-ld-sh
39395
39396 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39397 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39398 SHARED_LD_CXX="$SHARED_LD_CC"
39399 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39400 else
39401 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39402 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39403 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39404 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39405 fi
39406
39407 PIC_FLAG="-dynamic -fPIC"
39408 ;;
39409
39410 *-*-aix* )
39411 if test "x$GCC" != "xyes"; then
39412 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39413set dummy makeC++SharedLib; ac_word=$2
39414echo "$as_me:$LINENO: checking for $ac_word" >&5
39415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39416if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39417 echo $ECHO_N "(cached) $ECHO_C" >&6
39418else
39419 if test -n "$AIX_CXX_LD"; then
39420 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39421else
39422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39423for as_dir in $PATH
39424do
39425 IFS=$as_save_IFS
39426 test -z "$as_dir" && as_dir=.
39427 for ac_exec_ext in '' $ac_executable_extensions; do
39428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39429 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39431 break 2
39432 fi
39433done
39434done
39435
39436 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39437fi
39438fi
39439AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39440if test -n "$AIX_CXX_LD"; then
39441 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39442echo "${ECHO_T}$AIX_CXX_LD" >&6
39443else
39444 echo "$as_me:$LINENO: result: no" >&5
39445echo "${ECHO_T}no" >&6
39446fi
39447
39448 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39449 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39450 fi
39451 ;;
39452
39453 *-*-beos* )
1e9e8aba
DE
39454 SHARED_LD_CC="${LD} -nostart -o"
39455 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
39456 ;;
39457
39458 *-*-irix* )
39459 if test "x$GCC" != "xyes"; then
39460 PIC_FLAG="-KPIC"
39461 fi
39462 ;;
39463
39464 *-*-cygwin* | *-*-mingw32* )
39465 PIC_FLAG=""
1e9e8aba
DE
39466 SHARED_LD_CC="\$(CC) -shared -o"
39467 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
39468 ;;
39469
39470 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39471 SHARED_LD_CC="`pwd`/dllar.sh -o"
39472 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39473 PIC_FLAG=""
473276a9
VS
39474
39475D='$'
39476cat <<EOF >dllar.sh
39477#!/bin/sh
39478#
39479# dllar - a tool to build both a .dll and an .a file
39480# from a set of object (.o) files for EMX/OS2.
39481#
39482# Written by Andrew Zabolotny, bit@freya.etu.ru
39483# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39484#
39485# This script will accept a set of files on the command line.
39486# All the public symbols from the .o files will be exported into
39487# a .DEF file, then linker will be run (through gcc) against them to
39488# build a shared library consisting of all given .o files. All libraries
39489# (.a) will be first decompressed into component .o files then act as
39490# described above. You can optionally give a description (-d "description")
39491# which will be put into .DLL. To see the list of accepted options (as well
39492# as command-line format) simply run this program without options. The .DLL
39493# is built to be imported by name (there is no guarantee that new versions
39494# of the library you build will have same ordinals for same symbols).
39495#
39496# dllar is free software; you can redistribute it and/or modify
39497# it under the terms of the GNU General Public License as published by
39498# the Free Software Foundation; either version 2, or (at your option)
39499# any later version.
39500#
39501# dllar is distributed in the hope that it will be useful,
39502# but WITHOUT ANY WARRANTY; without even the implied warranty of
39503# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39504# GNU General Public License for more details.
39505#
39506# You should have received a copy of the GNU General Public License
39507# along with dllar; see the file COPYING. If not, write to the Free
39508# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39509# 02111-1307, USA.
39510
39511# To successfuly run this program you will need:
39512# - Current drive should have LFN support (HPFS, ext2, network, etc)
39513# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39514# - gcc
39515# (used to build the .dll)
39516# - emxexp
39517# (used to create .def file from .o files)
39518# - emximp
39519# (used to create .a file from .def file)
39520# - GNU text utilites (cat, sort, uniq)
39521# used to process emxexp output
39522# - GNU file utilities (mv, rm)
39523# - GNU sed
39524# - lxlite (optional, see flag below)
39525# (used for general .dll cleanup)
39526#
39527
39528flag_USE_LXLITE=1;
39529
39530#
39531# helper functions
39532# basnam, variant of basename, which does _not_ remove the path, _iff_
39533# second argument (suffix to remove) is given
39534basnam(){
39535 case ${D}# in
39536 1)
1e9e8aba 39537 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
39538 ;;
39539 2)
39540 echo ${D}1 | sed 's/'${D}2'${D}//'
39541 ;;
39542 *)
39543 echo "error in basnam ${D}*"
39544 exit 8
39545 ;;
39546 esac
39547}
39548
39549# Cleanup temporary files and output
39550CleanUp() {
39551 cd ${D}curDir
39552 for i in ${D}inputFiles ; do
39553 case ${D}i in
39554 *!)
39555 rm -rf \`basnam ${D}i !\`
39556 ;;
39557 *)
39558 ;;
39559 esac
39560 done
39561
39562 # Kill result in case of failure as there is just to many stupid make/nmake
39563 # things out there which doesn't do this.
1e9e8aba 39564 if [ ${D}# -eq 0 ]; then
473276a9
VS
39565 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39566 fi
39567}
39568
39569# Print usage and exit script with rc=1.
39570PrintHelp() {
1e9e8aba
DE
39571 echo 'Usage: dllar [-o@<:${utput}:>@ output_file] [-i@<:${mport}:>@ importlib_name]'
39572 echo ' [-d@<:${escription}:>@ "dll descrption"] [-cc "CC"] [-f@<:${lags}:>@ "CFLAGS"]'
39573 echo ' [-ord@<:${inals}:>@] -ex@<:${clude}:>@ "symbol(s)"'
39574 echo ' [-libf@<:${lags}:>@ "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt@<:${dll}:>@] [-nolxl@<:${ite}:>@]'
39575 echo ' [*.o] [*.a]'
473276a9
VS
39576 echo '*> "output_file" should have no extension.'
39577 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39578 echo ' The import library name is derived from this and is set to "name".a,'
39579 echo ' unless overridden by -import'
39580 echo '*> "importlib_name" should have no extension.'
39581 echo ' If it has the .o, or .a extension, it is automatically removed.'
39582 echo ' This name is used as the import library name and may be longer and'
39583 echo ' more descriptive than the DLL name which has to follow the old '
39584 echo ' 8.3 convention of FAT.'
39585 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39586 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39587 echo ' These flags will be put at the start of GCC command line.'
1e9e8aba
DE
39588 echo '*> -ord@<:${inals}:>@ tells dllar to export entries by ordinals. Be careful.'
39589 echo '*> -ex@<:${clude}:>@ defines symbols which will not be exported. You can define'
473276a9
VS
39590 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39591 echo ' If the last character of a symbol is "*", all symbols beginning'
39592 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
1e9e8aba 39593 echo '*> -libf@<:${lags}:>@ can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39594 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
1e9e8aba 39595 echo '*> -nocrt@<:${dll}:>@ switch will disable linking the library against emx''s'
473276a9 39596 echo ' C runtime DLLs.'
1e9e8aba 39597 echo '*> -nolxl@<:${ite}:>@ switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39598 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39599 echo ' unchanged to GCC at the end of command line.'
39600 echo '*> If you create a DLL from a library and you do not specify -o,'
39601 echo ' the basename for DLL and import library will be set to library name,'
39602 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39603 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39604 echo ' library will be renamed into gcc_s.a.'
39605 echo '--------'
39606 echo 'Example:'
39607 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39608 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39609 CleanUp
39610 exit 1
39611}
39612
39613# Execute a command.
39614# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39615# @Uses Whatever CleanUp() uses.
39616doCommand() {
39617 echo "${D}*"
39618 eval ${D}*
39619 rcCmd=${D}?
39620
1e9e8aba 39621 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
39622 echo "command failed, exit code="${D}rcCmd
39623 CleanUp
39624 exit ${D}rcCmd
39625 fi
39626}
39627
39628# main routine
39629# setup globals
39630cmdLine=${D}*
39631outFile=""
39632outimpFile=""
39633inputFiles=""
39634description=""
39635CC=gcc.exe
39636CFLAGS="-s -Zcrtdll"
39637EXTRA_CFLAGS=""
39638EXPORT_BY_ORDINALS=0
39639exclude_symbols=""
39640library_flags=""
39641curDir=\`pwd\`
39642curDirS=curDir
39643case ${D}curDirS in
39644*/)
39645 ;;
39646*)
39647 curDirS=${D}{curDirS}"/"
39648 ;;
39649esac
39650# Parse commandline
39651libsToLink=0
1e9e8aba 39652while [ ${D}1 ]; do
473276a9
VS
39653 case ${D}1 in
39654 -ord*)
39655 EXPORT_BY_ORDINALS=1;
39656 ;;
39657 -o*)
39658 shift
39659 outFile=${D}1
39660 ;;
39661 -i*)
39662 shift
39663 outimpFile=${D}1
39664 ;;
39665 -d*)
39666 shift
39667 description=${D}1
39668 ;;
39669 -f*)
39670 shift
39671 CFLAGS=${D}1
39672 ;;
39673 -c*)
39674 shift
39675 CC=${D}1
39676 ;;
39677 -h*)
39678 PrintHelp
39679 ;;
39680 -ex*)
39681 shift
39682 exclude_symbols=${D}{exclude_symbols}${D}1" "
39683 ;;
39684 -libf*)
39685 shift
39686 library_flags=${D}{library_flags}${D}1" "
39687 ;;
39688 -nocrt*)
39689 CFLAGS="-s"
39690 ;;
39691 -nolxl*)
39692 flag_USE_LXLITE=0
39693 ;;
39694 -* | /*)
39695 case ${D}1 in
39696 -L* | -l*)
39697 libsToLink=1
39698 ;;
39699 *)
39700 ;;
39701 esac
39702 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39703 ;;
39704 *)
39705 found=0;
1e9e8aba 39706 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
39707 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39708 else
39709 for file in ${D}1 ; do
1e9e8aba 39710 if [ -f ${D}file ]; then
473276a9
VS
39711 inputFiles="${D}{inputFiles} ${D}file"
39712 found=1
39713 fi
39714 done
1e9e8aba 39715 if [ ${D}found -eq 0 ]; then
473276a9
VS
39716 echo "ERROR: No file(s) found: "${D}1
39717 exit 8
39718 fi
39719 fi
39720 ;;
39721 esac
39722 shift
39723done # iterate cmdline words
39724
39725#
1e9e8aba 39726if [ -z "${D}inputFiles" ]; then
473276a9
VS
39727 echo "dllar: no input files"
39728 PrintHelp
39729fi
39730
39731# Now extract all .o files from .a files
39732newInputFiles=""
39733for file in ${D}inputFiles ; do
39734 case ${D}file in
39735 *.a | *.lib)
39736 case ${D}file in
39737 *.a)
39738 suffix=".a"
39739 AR="ar"
39740 ;;
39741 *.lib)
39742 suffix=".lib"
39743 AR="emxomfar"
39744 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39745 ;;
39746 *)
39747 ;;
39748 esac
39749 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39750 mkdir ${D}dirname
1e9e8aba 39751 if [ ${D}? -ne 0 ]; then
473276a9
VS
39752 echo "Failed to create subdirectory ./${D}dirname"
39753 CleanUp
39754 exit 8;
39755 fi
39756 # Append '!' to indicate archive
39757 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39758 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39759 cd ${D}curDir
39760 found=0;
39761 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 39762 if [ -f ${D}subfile ]; then
473276a9 39763 found=1
1e9e8aba 39764 if [ -s ${D}subfile ]; then
473276a9
VS
39765 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39766 newInputFiles="${D}newInputFiles ${D}subfile"
39767 fi
39768 fi
39769 done
1e9e8aba
DE
39770 if [ ${D}found -eq 0 ]; then
39771 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
39772 fi
39773 ;;
39774 *)
39775 newInputFiles="${D}{newInputFiles} ${D}file"
39776 ;;
39777 esac
39778done
39779inputFiles="${D}newInputFiles"
39780
39781# Output filename(s).
39782do_backup=0;
1e9e8aba 39783if [ -z ${D}outFile ]; then
473276a9
VS
39784 do_backup=1;
39785 set outFile ${D}inputFiles; outFile=${D}2
39786fi
39787
39788# If it is an archive, remove the '!' and the '_%' suffixes
39789case ${D}outFile in
39790*_%!)
39791 outFile=\`basnam ${D}outFile _%!\`
39792 ;;
39793*)
39794 ;;
39795esac
39796case ${D}outFile in
39797*.dll)
39798 outFile=\`basnam ${D}outFile .dll\`
39799 ;;
39800*.DLL)
39801 outFile=\`basnam ${D}outFile .DLL\`
39802 ;;
39803*.o)
39804 outFile=\`basnam ${D}outFile .o\`
39805 ;;
39806*.obj)
39807 outFile=\`basnam ${D}outFile .obj\`
39808 ;;
39809*.a)
39810 outFile=\`basnam ${D}outFile .a\`
39811 ;;
39812*.lib)
39813 outFile=\`basnam ${D}outFile .lib\`
39814 ;;
39815*)
39816 ;;
39817esac
39818case ${D}outimpFile in
39819*.a)
39820 outimpFile=\`basnam ${D}outimpFile .a\`
39821 ;;
39822*.lib)
39823 outimpFile=\`basnam ${D}outimpFile .lib\`
39824 ;;
39825*)
39826 ;;
39827esac
1e9e8aba 39828if [ -z ${D}outimpFile ]; then
473276a9
VS
39829 outimpFile=${D}outFile
39830fi
39831defFile="${D}{outFile}.def"
39832arcFile="${D}{outimpFile}.a"
39833arcFile2="${D}{outimpFile}.lib"
39834dllFile="${D}outFile"
39835# Add suffix to dllFile later, first we need a version to use as
39836# name in .def file.
39837
1e9e8aba
DE
39838if [ ${D}do_backup -ne 0 ] ; then
39839 if [ -f ${D}arcFile ] ; then
473276a9
VS
39840 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39841 fi
1e9e8aba 39842 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
39843 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39844 fi
39845fi
39846
39847# Extract public symbols from all the object files.
39848tmpdefFile=${D}{defFile}_%
39849rm -f ${D}tmpdefFile
39850for file in ${D}inputFiles ; do
39851 case ${D}file in
39852 *!)
39853 ;;
39854 *)
39855 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39856 ;;
39857 esac
39858done
39859
39860# Create the def file.
39861rm -f ${D}defFile
39862echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39863dllFile="${D}dllFile.dll"
1e9e8aba
DE
39864if [ -n ${D}description ]; then
39865 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
39866fi
39867echo "EXPORTS" >> ${D}defFile
39868
39869doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39870grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39871
39872# Checks if the export is ok or not.
39873for word in ${D}exclude_symbols; do
39874 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39875 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39876done
39877
39878
1e9e8aba
DE
39879if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
39880 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
39881 sed '
39882 N
39883 : loop
1e9e8aba 39884 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
39885 t loop
39886 ' > ${D}{tmpdefFile}%
39887 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39888else
39889 rm -f ${D}{tmpdefFile}%
39890fi
39891cat ${D}tmpdefFile >> ${D}defFile
39892rm -f ${D}tmpdefFile
39893
39894# Do linking, create implib, and apply lxlite.
39895gccCmdl="";
39896for file in ${D}inputFiles ; do
39897 case ${D}file in
39898 *!)
39899 ;;
39900 *)
39901 gccCmdl="${D}gccCmdl ${D}file"
39902 ;;
39903 esac
39904done
39905doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39906touch "${D}{outFile}.dll"
39907
39908doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 39909if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 39910 add_flags="";
1e9e8aba 39911 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
39912 add_flags="-ynd"
39913 fi
39914 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39915fi
39916doCommand "emxomf -s -l ${D}arcFile"
39917
39918# Successful exit.
39919CleanUp 1
39920exit 0
39921EOF
39922
39923 chmod +x dllar.sh
a848cd7e
SC
39924 ;;
39925
1e9e8aba 39926 powerpc-apple-macos* | \
a848cd7e
SC
39927 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39928 *-*-sunos4* | \
39929 *-*-osf* | \
39930 *-*-dgux5* | \
39931 *-*-sysv5* )
39932 ;;
39933
39934 *)
39935 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39936echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39937 { (exit 1); exit 1; }; }
39938 esac
39939
2057db16
VS
39940 if test "x$PIC_FLAG" != "x" ; then
39941 PIC_FLAG="$PIC_FLAG -DPIC"
39942 fi
39943
a848cd7e
SC
39944 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39945 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39946 fi
39947 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39948 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39949 fi
39950
39951
39952
39953
39954
39955
39956
39957
39958 USE_SOVERSION=0
39959 USE_SOVERLINUX=0
39960 USE_SOVERSOLARIS=0
39961 USE_SOSYMLINKS=0
39962 USE_MACVERSION=0
39963 SONAME_FLAG=
39964
39965 case "${BAKEFILE_HOST}" in
39966 *-*-linux* )
39967 SONAME_FLAG="-Wl,-soname,"
39968 USE_SOVERSION=1
39969 USE_SOVERLINUX=1
39970 USE_SOSYMLINKS=1
39971 ;;
39972
39973 *-*-solaris2* )
39974 SONAME_FLAG="-h "
39975 USE_SOVERSION=1
39976 USE_SOVERSOLARIS=1
39977 USE_SOSYMLINKS=1
39978 ;;
39979
39980 *-*-darwin* )
39981 USE_MACVERSION=1
39982 USE_SOVERSION=1
39983 USE_SOSYMLINKS=1
39984 ;;
39985 esac
39986
39987
39988
39989
39990
39991
39992
39993
39994
39995 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39996echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39997 DEPS_TRACKING=0
39998
39999 if test "x$GCC" = "xyes"; then
40000 DEPSMODE=gcc
40001 DEPS_TRACKING=1
40002 case "${BAKEFILE_HOST}" in
40003 powerpc-*-darwin* )
40004 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40005 ;;
40006 * )
40007 DEPSFLAG_GCC="-MMD"
40008 ;;
40009 esac
40010 echo "$as_me:$LINENO: result: gcc" >&5
40011echo "${ECHO_T}gcc" >&6
40012 else
40013 echo "$as_me:$LINENO: result: none" >&5
40014echo "${ECHO_T}none" >&6
40015 fi
40016
40017 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40018
40019D='$'
40020cat <<EOF >bk-deps
a848cd7e
SC
40021#!/bin/sh
40022
40023# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40024# script. It is used to track C/C++ files dependencies in portable way.
40025#
40026# Permission is given to use this file in any way.
40027
473276a9 40028DEPSMODE=${DEPSMODE}
a848cd7e 40029DEPSDIR=.deps
473276a9 40030DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40031
473276a9 40032mkdir -p ${D}DEPSDIR
a848cd7e 40033
473276a9
VS
40034if test ${D}DEPSMODE = gcc ; then
40035 ${D}* ${D}{DEPSFLAG_GCC}
40036 status=${D}?
40037 if test ${D}{status} != 0 ; then
40038 exit ${D}{status}
a848cd7e
SC
40039 fi
40040 # move created file to the location we want it in:
473276a9
VS
40041 while test ${D}# -gt 0; do
40042 case "${D}1" in
a848cd7e
SC
40043 -o )
40044 shift
473276a9 40045 objfile=${D}1
a848cd7e
SC
40046 ;;
40047 -* )
40048 ;;
40049 * )
473276a9 40050 srcfile=${D}1
a848cd7e
SC
40051 ;;
40052 esac
40053 shift
40054 done
1e9e8aba
DE
40055 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40056 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
40057 if test -f ${D}depfile ; then
40058 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40059 rm -f ${D}depfile
a848cd7e 40060 else
1e9e8aba 40061 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
40062 if test -f ${D}depfile ; then
40063 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40064 rm -f ${D}depfile
a848cd7e
SC
40065 fi
40066 fi
40067 exit 0
40068else
473276a9
VS
40069 ${D}*
40070 exit ${D}?
a848cd7e
SC
40071fi
40072EOF
473276a9 40073
a848cd7e
SC
40074 chmod +x bk-deps
40075 fi
40076
40077
40078
40079
40080 RESCOMP=
40081 SETFILE=
40082
40083 case ${BAKEFILE_HOST} in
40084 *-*-cygwin* | *-*-mingw32* )
40085 if test "$build" != "$host" ; then
40086 RESCOMP=$host_alias-windres
40087 else
40088 # Extract the first word of "windres", so it can be a program name with args.
40089set dummy windres; ac_word=$2
40090echo "$as_me:$LINENO: checking for $ac_word" >&5
40091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40092if test "${ac_cv_prog_RESCOMP+set}" = set; then
40093 echo $ECHO_N "(cached) $ECHO_C" >&6
40094else
40095 if test -n "$RESCOMP"; then
40096 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40097else
40098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40099for as_dir in $PATH
40100do
40101 IFS=$as_save_IFS
40102 test -z "$as_dir" && as_dir=.
40103 for ac_exec_ext in '' $ac_executable_extensions; do
40104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40105 ac_cv_prog_RESCOMP="windres"
40106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40107 break 2
40108 fi
40109done
40110done
40111
40112 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40113fi
40114fi
40115RESCOMP=$ac_cv_prog_RESCOMP
40116if test -n "$RESCOMP"; then
40117 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40118echo "${ECHO_T}$RESCOMP" >&6
40119else
40120 echo "$as_me:$LINENO: result: no" >&5
40121echo "${ECHO_T}no" >&6
40122fi
40123
40124 fi
40125 ;;
40126
1e9e8aba 40127 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
40128 # Extract the first word of "Rez", so it can be a program name with args.
40129set dummy Rez; ac_word=$2
40130echo "$as_me:$LINENO: checking for $ac_word" >&5
40131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40132if test "${ac_cv_prog_RESCOMP+set}" = set; then
40133 echo $ECHO_N "(cached) $ECHO_C" >&6
40134else
40135 if test -n "$RESCOMP"; then
40136 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40137else
40138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40139for as_dir in $PATH
40140do
40141 IFS=$as_save_IFS
40142 test -z "$as_dir" && as_dir=.
40143 for ac_exec_ext in '' $ac_executable_extensions; do
40144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40145 ac_cv_prog_RESCOMP="Rez"
40146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40147 break 2
40148 fi
40149done
40150done
40151
40152 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40153fi
40154fi
40155RESCOMP=$ac_cv_prog_RESCOMP
40156if test -n "$RESCOMP"; then
40157 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40158echo "${ECHO_T}$RESCOMP" >&6
40159else
40160 echo "$as_me:$LINENO: result: no" >&5
40161echo "${ECHO_T}no" >&6
40162fi
40163
40164 # Extract the first word of "SetFile", so it can be a program name with args.
40165set dummy SetFile; ac_word=$2
40166echo "$as_me:$LINENO: checking for $ac_word" >&5
40167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40168if test "${ac_cv_prog_SETFILE+set}" = set; then
40169 echo $ECHO_N "(cached) $ECHO_C" >&6
40170else
40171 if test -n "$SETFILE"; then
40172 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40173else
40174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40175for as_dir in $PATH
40176do
40177 IFS=$as_save_IFS
40178 test -z "$as_dir" && as_dir=.
40179 for ac_exec_ext in '' $ac_executable_extensions; do
40180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40181 ac_cv_prog_SETFILE="SetFile"
40182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40183 break 2
40184 fi
40185done
40186done
40187
40188 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40189fi
40190fi
40191SETFILE=$ac_cv_prog_SETFILE
40192if test -n "$SETFILE"; then
40193 echo "$as_me:$LINENO: result: $SETFILE" >&5
40194echo "${ECHO_T}$SETFILE" >&6
40195else
40196 echo "$as_me:$LINENO: result: no" >&5
40197echo "${ECHO_T}no" >&6
40198fi
40199
40200 ;;
40201 esac
40202
40203
40204
40205
40206
2057db16 40207 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 40208
dcc1b6ad 40209
a49baeab 40210
9f45f08e 40211BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 40212
646b6ec1 40213
74b84332 40214
a848cd7e
SC
40215 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40216if test "${enable_precomp_headers+set}" = set; then
40217 enableval="$enable_precomp_headers"
40218 bk_use_pch="$enableval"
40219fi;
40220
40221 GCC_PCH=0
40222
40223 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40224 if test "x$GCC" = "xyes"; then
40225 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40226echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40227 cat >conftest.$ac_ext <<_ACEOF
40228/* confdefs.h. */
40229_ACEOF
40230cat confdefs.h >>conftest.$ac_ext
40231cat >>conftest.$ac_ext <<_ACEOF
40232/* end confdefs.h. */
40233
40234int
40235main ()
40236{
40237
40238 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40239 #error "no pch support"
40240 #endif
40241 #if (__GNUC__ < 3)
40242 #error "no pch support"
40243 #endif
40244 #if (__GNUC__ == 3) && \
40245 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40246 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40247 #error "no pch support"
40248 #endif
40249
40250 ;
40251 return 0;
40252}
40253_ACEOF
40254rm -f conftest.$ac_objext
40255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40256 (eval $ac_compile) 2>conftest.er1
a848cd7e 40257 ac_status=$?
ac1cb8d3
VS
40258 grep -v '^ *+' conftest.er1 >conftest.err
40259 rm -f conftest.er1
40260 cat conftest.err >&5
a848cd7e
SC
40261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262 (exit $ac_status); } &&
fc480dc1
DE
40263 { ac_try='test -z "$ac_c_werror_flag"
40264 || test ! -s conftest.err'
ac1cb8d3
VS
40265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40266 (eval $ac_try) 2>&5
40267 ac_status=$?
40268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269 (exit $ac_status); }; } &&
40270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40272 (eval $ac_try) 2>&5
40273 ac_status=$?
40274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275 (exit $ac_status); }; }; then
40276
40277 echo "$as_me:$LINENO: result: yes" >&5
40278echo "${ECHO_T}yes" >&6
a848cd7e
SC
40279 GCC_PCH=1
40280
40281else
40282 echo "$as_me: failed program was:" >&5
40283sed 's/^/| /' conftest.$ac_ext >&5
40284
40285
40286 echo "$as_me:$LINENO: result: no" >&5
40287echo "${ECHO_T}no" >&6
40288
40289fi
ac1cb8d3 40290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40291 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40292
40293D='$'
40294cat <<EOF >bk-make-pch
a848cd7e
SC
40295#!/bin/sh
40296
40297# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40298# script. It is used to generated precompiled headers.
40299#
40300# Permission is given to use this file in any way.
40301
1e9e8aba
DE
40302outfile="${D}{1}"
40303header="${D}{2}"
a848cd7e
SC
40304shift
40305shift
40306
40307compiler=
40308headerfile=
1e9e8aba
DE
40309while test ${D}{#} -gt 0; do
40310 case "${D}{1}" in
a848cd7e 40311 -I* )
1e9e8aba
DE
40312 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40313 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40314 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
40315 fi
40316 ;;
40317 esac
1e9e8aba 40318 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
40319 shift
40320done
40321
1e9e8aba
DE
40322if test "x${D}{headerfile}" = "x" ; then
40323 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 40324else
1e9e8aba
DE
40325 if test -f ${D}{outfile} ; then
40326 rm -f ${D}{outfile}
a848cd7e 40327 else
1e9e8aba 40328 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 40329 fi
1e9e8aba 40330 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
40331 mkdir -p .deps
40332 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40333 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40334 exit ${D}{?}
a848cd7e
SC
40335fi
40336EOF
1e9e8aba 40337
a848cd7e
SC
40338 chmod +x bk-make-pch
40339 fi
40340 fi
40341 fi
40342
40343
40344
40345
40346
dcc1b6ad
VS
40347
40348
40349 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40350if test "${enable_precomp_headers+set}" = set; then
40351 enableval="$enable_precomp_headers"
40352 bk_use_pch="$enableval"
40353fi;
40354
40355 GCC_PCH=0
40356
40357 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40358 if test "x$GCC" = "xyes"; then
40359 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40360echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40361 cat >conftest.$ac_ext <<_ACEOF
40362/* confdefs.h. */
40363_ACEOF
40364cat confdefs.h >>conftest.$ac_ext
40365cat >>conftest.$ac_ext <<_ACEOF
40366/* end confdefs.h. */
40367
40368int
40369main ()
40370{
40371
40372 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40373 #error "no pch support"
40374 #endif
40375 #if (__GNUC__ < 3)
40376 #error "no pch support"
40377 #endif
40378 #if (__GNUC__ == 3) && \
40379 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40380 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40381 #error "no pch support"
40382 #endif
40383
40384 ;
40385 return 0;
40386}
40387_ACEOF
40388rm -f conftest.$ac_objext
40389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40390 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40391 ac_status=$?
ac1cb8d3
VS
40392 grep -v '^ *+' conftest.er1 >conftest.err
40393 rm -f conftest.er1
40394 cat conftest.err >&5
dcc1b6ad
VS
40395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40396 (exit $ac_status); } &&
fc480dc1
DE
40397 { ac_try='test -z "$ac_c_werror_flag"
40398 || test ! -s conftest.err'
ac1cb8d3
VS
40399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40400 (eval $ac_try) 2>&5
40401 ac_status=$?
40402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40403 (exit $ac_status); }; } &&
40404 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40406 (eval $ac_try) 2>&5
40407 ac_status=$?
40408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409 (exit $ac_status); }; }; then
40410
40411 echo "$as_me:$LINENO: result: yes" >&5
40412echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
40413 GCC_PCH=1
40414
40415else
40416 echo "$as_me: failed program was:" >&5
40417sed 's/^/| /' conftest.$ac_ext >&5
40418
40419
40420 echo "$as_me:$LINENO: result: no" >&5
40421echo "${ECHO_T}no" >&6
40422
40423fi
ac1cb8d3 40424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad 40425 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40426
40427D='$'
40428cat <<EOF >bk-make-pch
dcc1b6ad
VS
40429#!/bin/sh
40430
40431# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40432# script. It is used to generated precompiled headers.
40433#
40434# Permission is given to use this file in any way.
40435
1e9e8aba
DE
40436outfile="${D}{1}"
40437header="${D}{2}"
dcc1b6ad
VS
40438shift
40439shift
40440
40441compiler=
40442headerfile=
1e9e8aba
DE
40443while test ${D}{#} -gt 0; do
40444 case "${D}{1}" in
dcc1b6ad 40445 -I* )
1e9e8aba
DE
40446 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40447 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40448 headerfile="${D}{incdir}/${D}{header}"
dcc1b6ad
VS
40449 fi
40450 ;;
40451 esac
1e9e8aba 40452 compiler="${D}{compiler} ${D}{1}"
dcc1b6ad
VS
40453 shift
40454done
40455
1e9e8aba
DE
40456if test "x${D}{headerfile}" = "x" ; then
40457 echo "error: can't find header ${D}{header} in include paths" >2
dcc1b6ad 40458else
1e9e8aba
DE
40459 if test -f ${D}{outfile} ; then
40460 rm -f ${D}{outfile}
dcc1b6ad 40461 else
1e9e8aba 40462 mkdir -p \`dirname ${D}{outfile}\`
dcc1b6ad 40463 fi
1e9e8aba 40464 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
dcc1b6ad
VS
40465 mkdir -p .deps
40466 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40467 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40468 exit ${D}{?}
dcc1b6ad
VS
40469fi
40470EOF
1e9e8aba 40471
dcc1b6ad
VS
40472 chmod +x bk-make-pch
40473 fi
40474 fi
40475 fi
40476
40477
40478
a848cd7e
SC
40479 COND_BUILD_DEBUG="#"
40480 if test "x$BUILD" = "xdebug" ; then
40481 COND_BUILD_DEBUG=""
40482 fi
40483
40484 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40485 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40486 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40487 fi
40488
40489 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40490 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40491 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40492 fi
40493
40494 COND_BUILD_DEBUG_UNICODE_0="#"
40495 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40496 COND_BUILD_DEBUG_UNICODE_0=""
40497 fi
40498
40499 COND_BUILD_DEBUG_UNICODE_1="#"
40500 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40501 COND_BUILD_DEBUG_UNICODE_1=""
40502 fi
40503
40504 COND_BUILD_RELEASE="#"
40505 if test "x$BUILD" = "xrelease" ; then
40506 COND_BUILD_RELEASE=""
40507 fi
40508
40509 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40510 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40511 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40512 fi
40513
40514 COND_BUILD_RELEASE_UNICODE_0="#"
40515 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40516 COND_BUILD_RELEASE_UNICODE_0=""
40517 fi
40518
40519 COND_BUILD_RELEASE_UNICODE_1="#"
40520 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40521 COND_BUILD_RELEASE_UNICODE_1=""
40522 fi
40523
40524 COND_DEBUG_FLAG_1="#"
40525 if test "x$DEBUG_FLAG" = "x1" ; then
40526 COND_DEBUG_FLAG_1=""
40527 fi
40528
40529 COND_DEBUG_INFO_0="#"
40530 if test "x$DEBUG_INFO" = "x0" ; then
40531 COND_DEBUG_INFO_0=""
40532 fi
40533
40534 COND_DEBUG_INFO_1="#"
40535 if test "x$DEBUG_INFO" = "x1" ; then
40536 COND_DEBUG_INFO_1=""
40537 fi
40538
40539 COND_DEPS_TRACKING_0="#"
40540 if test "x$DEPS_TRACKING" = "x0" ; then
40541 COND_DEPS_TRACKING_0=""
40542 fi
40543
40544 COND_DEPS_TRACKING_1="#"
40545 if test "x$DEPS_TRACKING" = "x1" ; then
40546 COND_DEPS_TRACKING_1=""
40547 fi
40548
40549 COND_GCC_PCH_1="#"
40550 if test "x$GCC_PCH" = "x1" ; then
40551 COND_GCC_PCH_1=""
40552 fi
40553
40554 COND_MONOLITHIC_0="#"
40555 if test "x$MONOLITHIC" = "x0" ; then
40556 COND_MONOLITHIC_0=""
40557 fi
40558
40559 COND_MONOLITHIC_0_SHARED_0="#"
40560 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40561 COND_MONOLITHIC_0_SHARED_0=""
40562 fi
40563
40564 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40565 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40566 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40567 fi
40568
40569 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40570 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40571 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40572 fi
40573
40574 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40575 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40576 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40577 fi
40578
40579 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40580 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40581 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40582 fi
40583
ceec2216
RL
40584 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40585 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40586 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40587 fi
40588
a848cd7e
SC
40589 COND_MONOLITHIC_0_SHARED_1="#"
40590 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40591 COND_MONOLITHIC_0_SHARED_1=""
40592 fi
40593
40594 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40595 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40596 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40597 fi
40598
40599 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40600 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40601 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40602 fi
40603
40604 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40605 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40606 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40607 fi
40608
40609 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40610 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40611 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40612 fi
40613
ceec2216
RL
40614 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40615 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40616 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40617 fi
40618
a848cd7e
SC
40619 COND_MONOLITHIC_0_USE_ODBC_1="#"
40620 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40621 COND_MONOLITHIC_0_USE_ODBC_1=""
40622 fi
40623
40624 COND_MONOLITHIC_1="#"
40625 if test "x$MONOLITHIC" = "x1" ; then
40626 COND_MONOLITHIC_1=""
40627 fi
40628
40629 COND_MONOLITHIC_1_SHARED_0="#"
40630 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40631 COND_MONOLITHIC_1_SHARED_0=""
40632 fi
40633
40634 COND_MONOLITHIC_1_SHARED_1="#"
40635 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40636 COND_MONOLITHIC_1_SHARED_1=""
40637 fi
40638
40639 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40640 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40641 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40642 fi
40643
40644 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40645 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40646 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40647 fi
40648
40649 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40650 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40651 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40652 fi
40653
40654 COND_PLATFORM_MACOSX_1="#"
40655 if test "x$PLATFORM_MACOSX" = "x1" ; then
40656 COND_PLATFORM_MACOSX_1=""
40657 fi
40658
a30f955f
VS
40659 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40660 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40661 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40662 fi
40663
a848cd7e
SC
40664 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40665 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40666 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40667 fi
40668
40669 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40670 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40671 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40672 fi
40673
40674 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40675 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40676 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40677 fi
40678
fc480dc1
DE
40679 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
40680 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40681 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
40682 fi
40683
1e9e8aba
DE
40684 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40685 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40686 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40687 fi
40688
ebee3cd0
VS
40689 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40690 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40691 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40692 fi
40693
40694 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40695 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40696 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40697 fi
40698
a848cd7e
SC
40699 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40700 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40701 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40702 fi
40703
40704 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40705 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40706 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40707 fi
40708
b48a2016
DE
40709 COND_PLATFORM_MACOS_1="#"
40710 if test "x$PLATFORM_MACOS" = "x1" ; then
40711 COND_PLATFORM_MACOS_1=""
40712 fi
40713
a848cd7e
SC
40714 COND_PLATFORM_MAC_1="#"
40715 if test "x$PLATFORM_MAC" = "x1" ; then
40716 COND_PLATFORM_MAC_1=""
40717 fi
40718
40719 COND_PLATFORM_OS2_1="#"
40720 if test "x$PLATFORM_OS2" = "x1" ; then
40721 COND_PLATFORM_OS2_1=""
40722 fi
40723
40724 COND_PLATFORM_UNIX_0="#"
40725 if test "x$PLATFORM_UNIX" = "x0" ; then
40726 COND_PLATFORM_UNIX_0=""
40727 fi
40728
40729 COND_PLATFORM_UNIX_1="#"
40730 if test "x$PLATFORM_UNIX" = "x1" ; then
40731 COND_PLATFORM_UNIX_1=""
40732 fi
40733
40734 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40735 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40736 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40737 fi
40738
40739 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40740 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40741 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40742 fi
40743
40744 COND_PLATFORM_WIN32_0="#"
40745 if test "x$PLATFORM_WIN32" = "x0" ; then
40746 COND_PLATFORM_WIN32_0=""
40747 fi
40748
40749 COND_PLATFORM_WIN32_1="#"
40750 if test "x$PLATFORM_WIN32" = "x1" ; then
40751 COND_PLATFORM_WIN32_1=""
40752 fi
40753
40754 COND_SHARED_0="#"
40755 if test "x$SHARED" = "x0" ; then
40756 COND_SHARED_0=""
40757 fi
40758
ceec2216
RL
40759 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40760 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40761 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40762 fi
40763
40764 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40765 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40766 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40767 fi
40768
40769 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40770 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40771 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40772 fi
40773
a848cd7e
SC
40774 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40775 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40776 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40777 fi
40778
40779 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40780 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40781 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40782 fi
40783
40784 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40785 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40786 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40787 fi
40788
40789 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40790 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40791 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40792 fi
40793
40794 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40795 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40796 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40797 fi
40798
40799 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40800 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40801 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40802 fi
40803
40804 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40805 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40806 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40807 fi
40808
40809 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40810 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40811 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40812 fi
40813
40814 COND_SHARED_1="#"
40815 if test "x$SHARED" = "x1" ; then
40816 COND_SHARED_1=""
40817 fi
40818
40819 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40820 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40821 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40822 fi
40823
a30f955f
VS
40824 COND_TOOLKIT_="#"
40825 if test "x$TOOLKIT" = "x" ; then
40826 COND_TOOLKIT_=""
40827 fi
40828
a848cd7e
SC
40829 COND_TOOLKIT_COCOA="#"
40830 if test "x$TOOLKIT" = "xCOCOA" ; then
40831 COND_TOOLKIT_COCOA=""
40832 fi
40833
a49baeab
DE
40834 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40835 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40836 COND_TOOLKIT_COCOA_USE_GUI_1=""
40837 fi
40838
a848cd7e
SC
40839 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40840 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40841 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40842 fi
40843
40844 COND_TOOLKIT_GTK="#"
40845 if test "x$TOOLKIT" = "xGTK" ; then
40846 COND_TOOLKIT_GTK=""
40847 fi
40848
40849 COND_TOOLKIT_GTK_USE_GUI_1="#"
40850 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40851 COND_TOOLKIT_GTK_USE_GUI_1=""
40852 fi
40853
40854 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40855 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40856 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40857 fi
40858
40859 COND_TOOLKIT_MAC="#"
40860 if test "x$TOOLKIT" = "xMAC" ; then
40861 COND_TOOLKIT_MAC=""
40862 fi
40863
40864 COND_TOOLKIT_MAC_USE_GUI_1="#"
40865 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40866 COND_TOOLKIT_MAC_USE_GUI_1=""
40867 fi
40868
40869 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40870 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40871 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40872 fi
40873
40874 COND_TOOLKIT_MGL="#"
40875 if test "x$TOOLKIT" = "xMGL" ; then
40876 COND_TOOLKIT_MGL=""
40877 fi
40878
40879 COND_TOOLKIT_MGL_USE_GUI_1="#"
40880 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40881 COND_TOOLKIT_MGL_USE_GUI_1=""
40882 fi
40883
40884 COND_TOOLKIT_MOTIF="#"
40885 if test "x$TOOLKIT" = "xMOTIF" ; then
40886 COND_TOOLKIT_MOTIF=""
40887 fi
40888
40889 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40890 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40891 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40892 fi
40893
40894 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40895 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40896 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40897 fi
40898
40899 COND_TOOLKIT_MSW="#"
40900 if test "x$TOOLKIT" = "xMSW" ; then
40901 COND_TOOLKIT_MSW=""
40902 fi
40903
40904 COND_TOOLKIT_MSW_USE_GUI_1="#"
40905 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40906 COND_TOOLKIT_MSW_USE_GUI_1=""
40907 fi
40908
40909 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40910 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40911 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40912 fi
40913
40914 COND_TOOLKIT_PM="#"
40915 if test "x$TOOLKIT" = "xPM" ; then
40916 COND_TOOLKIT_PM=""
40917 fi
40918
40919 COND_TOOLKIT_PM_USE_GUI_1="#"
40920 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40921 COND_TOOLKIT_PM_USE_GUI_1=""
40922 fi
40923
40924 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40925 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40926 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40927 fi
40928
3fd9c298
DE
40929 COND_TOOLKIT_WINCE="#"
40930 if test "x$TOOLKIT" = "xWINCE" ; then
40931 COND_TOOLKIT_WINCE=""
40932 fi
40933
40934 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40935 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40936 COND_TOOLKIT_WINCE_USE_GUI_1=""
40937 fi
40938
40939 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40940 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40941 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40942 fi
40943
a848cd7e
SC
40944 COND_TOOLKIT_X11="#"
40945 if test "x$TOOLKIT" = "xX11" ; then
40946 COND_TOOLKIT_X11=""
40947 fi
40948
40949 COND_TOOLKIT_X11_USE_GUI_1="#"
40950 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40951 COND_TOOLKIT_X11_USE_GUI_1=""
40952 fi
40953
40954 COND_UNICODE_1="#"
40955 if test "x$UNICODE" = "x1" ; then
40956 COND_UNICODE_1=""
40957 fi
40958
40959 COND_USE_EXCEPTIONS_0="#"
40960 if test "x$USE_EXCEPTIONS" = "x0" ; then
40961 COND_USE_EXCEPTIONS_0=""
40962 fi
40963
40964 COND_USE_EXCEPTIONS_1="#"
40965 if test "x$USE_EXCEPTIONS" = "x1" ; then
40966 COND_USE_EXCEPTIONS_1=""
40967 fi
40968
40969 COND_USE_GUI_0="#"
40970 if test "x$USE_GUI" = "x0" ; then
40971 COND_USE_GUI_0=""
40972 fi
40973
40974 COND_USE_GUI_1="#"
40975 if test "x$USE_GUI" = "x1" ; then
40976 COND_USE_GUI_1=""
40977 fi
40978
40979 COND_USE_GUI_1_WXUNIV_0="#"
40980 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40981 COND_USE_GUI_1_WXUNIV_0=""
40982 fi
40983
40984 COND_USE_GUI_1_WXUNIV_1="#"
40985 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40986 COND_USE_GUI_1_WXUNIV_1=""
40987 fi
40988
40989 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40990 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40991 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40992 fi
40993
40994 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40995 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40996 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40997 fi
40998
40999 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41000 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41001 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41002 fi
41003
ceec2216
RL
41004 COND_USE_ODBC_1="#"
41005 if test "x$USE_ODBC" = "x1" ; then
41006 COND_USE_ODBC_1=""
41007 fi
41008
ffa0583f
RL
41009 COND_USE_OPENGL_1="#"
41010 if test "x$USE_OPENGL" = "x1" ; then
41011 COND_USE_OPENGL_1=""
41012 fi
41013
a848cd7e
SC
41014 COND_USE_PLUGINS_0="#"
41015 if test "x$USE_PLUGINS" = "x0" ; then
41016 COND_USE_PLUGINS_0=""
41017 fi
41018
41019 COND_USE_SOSYMLINKS_1="#"
41020 if test "x$USE_SOSYMLINKS" = "x1" ; then
41021 COND_USE_SOSYMLINKS_1=""
41022 fi
41023
41024 COND_USE_SOVERLINUX_1="#"
41025 if test "x$USE_SOVERLINUX" = "x1" ; then
41026 COND_USE_SOVERLINUX_1=""
41027 fi
41028
41029 COND_USE_SOVERSION_0="#"
41030 if test "x$USE_SOVERSION" = "x0" ; then
41031 COND_USE_SOVERSION_0=""
41032 fi
41033
41034 COND_USE_SOVERSOLARIS_1="#"
41035 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41036 COND_USE_SOVERSOLARIS_1=""
41037 fi
41038
a13a7f89
RL
41039 COND_USE_XRC_1="#"
41040 if test "x$USE_XRC" = "x1" ; then
41041 COND_USE_XRC_1=""
41042 fi
41043
a848cd7e
SC
41044 COND_WITH_PLUGIN_SDL_1="#"
41045 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41046 COND_WITH_PLUGIN_SDL_1=""
41047 fi
41048
a848cd7e
SC
41049 COND_WXUNIV_1="#"
41050 if test "x$WXUNIV" = "x1" ; then
41051 COND_WXUNIV_1=""
41052 fi
41053
41054 COND_WXUSE_EXPAT_BUILTIN="#"
41055 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41056 COND_WXUSE_EXPAT_BUILTIN=""
41057 fi
41058
41059 COND_WXUSE_LIBJPEG_BUILTIN="#"
41060 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41061 COND_WXUSE_LIBJPEG_BUILTIN=""
41062 fi
41063
41064 COND_WXUSE_LIBPNG_BUILTIN="#"
41065 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41066 COND_WXUSE_LIBPNG_BUILTIN=""
41067 fi
41068
41069 COND_WXUSE_LIBTIFF_BUILTIN="#"
41070 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41071 COND_WXUSE_LIBTIFF_BUILTIN=""
41072 fi
41073
41074 COND_WXUSE_ODBC_BUILTIN="#"
41075 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41076 COND_WXUSE_ODBC_BUILTIN=""
41077 fi
41078
41079 COND_WXUSE_REGEX_BUILTIN="#"
41080 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41081 COND_WXUSE_REGEX_BUILTIN=""
41082 fi
41083
41084 COND_WXUSE_ZLIB_BUILTIN="#"
41085 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41086 COND_WXUSE_ZLIB_BUILTIN=""
41087 fi
41088
dcc1b6ad
VS
41089 COND_BUILD_DEBUG="#"
41090 if test "x$BUILD" = "xdebug" ; then
41091 COND_BUILD_DEBUG=""
41092 fi
41093
41094 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41095 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41096 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41097 fi
41098
41099 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41100 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41101 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41102 fi
41103
41104 COND_BUILD_DEBUG_UNICODE_0="#"
41105 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41106 COND_BUILD_DEBUG_UNICODE_0=""
41107 fi
41108
41109 COND_BUILD_DEBUG_UNICODE_1="#"
41110 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41111 COND_BUILD_DEBUG_UNICODE_1=""
41112 fi
41113
41114 COND_BUILD_RELEASE="#"
41115 if test "x$BUILD" = "xrelease" ; then
41116 COND_BUILD_RELEASE=""
41117 fi
41118
41119 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41120 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41121 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41122 fi
41123
41124 COND_BUILD_RELEASE_UNICODE_0="#"
41125 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41126 COND_BUILD_RELEASE_UNICODE_0=""
41127 fi
41128
41129 COND_BUILD_RELEASE_UNICODE_1="#"
41130 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41131 COND_BUILD_RELEASE_UNICODE_1=""
41132 fi
41133
41134 COND_DEBUG_FLAG_1="#"
41135 if test "x$DEBUG_FLAG" = "x1" ; then
41136 COND_DEBUG_FLAG_1=""
41137 fi
41138
41139 COND_DEBUG_INFO_0="#"
41140 if test "x$DEBUG_INFO" = "x0" ; then
41141 COND_DEBUG_INFO_0=""
41142 fi
41143
41144 COND_DEBUG_INFO_1="#"
41145 if test "x$DEBUG_INFO" = "x1" ; then
41146 COND_DEBUG_INFO_1=""
41147 fi
41148
41149 COND_DEPS_TRACKING_0="#"
41150 if test "x$DEPS_TRACKING" = "x0" ; then
41151 COND_DEPS_TRACKING_0=""
41152 fi
41153
41154 COND_DEPS_TRACKING_1="#"
41155 if test "x$DEPS_TRACKING" = "x1" ; then
41156 COND_DEPS_TRACKING_1=""
41157 fi
41158
41159 COND_GCC_PCH_1="#"
41160 if test "x$GCC_PCH" = "x1" ; then
41161 COND_GCC_PCH_1=""
41162 fi
41163
41164 COND_MONOLITHIC_0="#"
41165 if test "x$MONOLITHIC" = "x0" ; then
41166 COND_MONOLITHIC_0=""
41167 fi
41168
41169 COND_MONOLITHIC_0_SHARED_0="#"
41170 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41171 COND_MONOLITHIC_0_SHARED_0=""
41172 fi
41173
41174 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41175 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41176 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41177 fi
41178
41179 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41180 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41181 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41182 fi
41183
41184 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
41185 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
41186 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
41187 fi
41188
41189 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41190 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41191 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41192 fi
41193
9a8f0513
VS
41194 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41195 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41196 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41197 fi
41198
dcc1b6ad
VS
41199 COND_MONOLITHIC_0_SHARED_1="#"
41200 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41201 COND_MONOLITHIC_0_SHARED_1=""
41202 fi
41203
41204 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41205 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41206 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41207 fi
41208
41209 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41210 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41211 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41212 fi
41213
41214 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
41215 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
41216 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
41217 fi
41218
41219 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41220 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41221 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41222 fi
41223
9a8f0513
VS
41224 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41225 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41226 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41227 fi
41228
dcc1b6ad
VS
41229 COND_MONOLITHIC_0_USE_ODBC_1="#"
41230 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41231 COND_MONOLITHIC_0_USE_ODBC_1=""
41232 fi
41233
41234 COND_MONOLITHIC_1="#"
41235 if test "x$MONOLITHIC" = "x1" ; then
41236 COND_MONOLITHIC_1=""
41237 fi
41238
41239 COND_MONOLITHIC_1_SHARED_0="#"
41240 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41241 COND_MONOLITHIC_1_SHARED_0=""
41242 fi
41243
41244 COND_MONOLITHIC_1_SHARED_1="#"
41245 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41246 COND_MONOLITHIC_1_SHARED_1=""
41247 fi
41248
41249 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41250 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41251 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41252 fi
41253
41254 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41255 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41256 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41257 fi
41258
41259 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41260 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41261 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41262 fi
41263
41264 COND_PLATFORM_MACOSX_1="#"
41265 if test "x$PLATFORM_MACOSX" = "x1" ; then
41266 COND_PLATFORM_MACOSX_1=""
41267 fi
41268
41269 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41270 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41271 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41272 fi
41273
41274 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41275 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41276 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41277 fi
41278
41279 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41280 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41281 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41282 fi
41283
9a8f0513
VS
41284 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41285 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41286 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41287 fi
41288
41289 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41290 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41291 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41292 fi
41293
dcc1b6ad
VS
41294 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41295 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41296 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41297 fi
41298
41299 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41300 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41301 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41302 fi
41303
41304 COND_PLATFORM_MAC_1="#"
41305 if test "x$PLATFORM_MAC" = "x1" ; then
41306 COND_PLATFORM_MAC_1=""
41307 fi
41308
41309 COND_PLATFORM_OS2_1="#"
41310 if test "x$PLATFORM_OS2" = "x1" ; then
41311 COND_PLATFORM_OS2_1=""
41312 fi
41313
41314 COND_PLATFORM_UNIX_0="#"
41315 if test "x$PLATFORM_UNIX" = "x0" ; then
41316 COND_PLATFORM_UNIX_0=""
41317 fi
41318
41319 COND_PLATFORM_UNIX_1="#"
41320 if test "x$PLATFORM_UNIX" = "x1" ; then
41321 COND_PLATFORM_UNIX_1=""
41322 fi
41323
41324 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41325 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41326 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41327 fi
41328
41329 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41330 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41331 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41332 fi
41333
41334 COND_PLATFORM_WIN32_0="#"
41335 if test "x$PLATFORM_WIN32" = "x0" ; then
41336 COND_PLATFORM_WIN32_0=""
41337 fi
41338
41339 COND_PLATFORM_WIN32_1="#"
41340 if test "x$PLATFORM_WIN32" = "x1" ; then
41341 COND_PLATFORM_WIN32_1=""
41342 fi
41343
41344 COND_SHARED_0="#"
41345 if test "x$SHARED" = "x0" ; then
41346 COND_SHARED_0=""
41347 fi
41348
41349 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41350 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41351 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41352 fi
41353
41354 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41355 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41356 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41357 fi
41358
41359 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41360 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41361 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41362 fi
41363
41364 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41365 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41366 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41367 fi
41368
41369 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41370 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41371 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41372 fi
41373
41374 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41375 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41376 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41377 fi
41378
41379 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41380 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41381 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41382 fi
41383
41384 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41385 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41386 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41387 fi
41388
41389 COND_SHARED_1="#"
41390 if test "x$SHARED" = "x1" ; then
41391 COND_SHARED_1=""
41392 fi
41393
41394 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41395 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41396 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41397 fi
41398
41399 COND_TOOLKIT_COCOA="#"
41400 if test "x$TOOLKIT" = "xCOCOA" ; then
41401 COND_TOOLKIT_COCOA=""
41402 fi
41403
41404 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41405 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41406 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41407 fi
41408
41409 COND_TOOLKIT_GTK="#"
41410 if test "x$TOOLKIT" = "xGTK" ; then
41411 COND_TOOLKIT_GTK=""
41412 fi
41413
41414 COND_TOOLKIT_GTK_USE_GUI_1="#"
41415 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41416 COND_TOOLKIT_GTK_USE_GUI_1=""
41417 fi
41418
41419 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41420 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41421 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41422 fi
41423
41424 COND_TOOLKIT_MAC="#"
41425 if test "x$TOOLKIT" = "xMAC" ; then
41426 COND_TOOLKIT_MAC=""
41427 fi
41428
41429 COND_TOOLKIT_MAC_USE_GUI_1="#"
41430 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41431 COND_TOOLKIT_MAC_USE_GUI_1=""
41432 fi
41433
41434 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41435 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41436 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41437 fi
41438
9a8f0513
VS
41439 COND_TOOLKIT_MAC_WXUNIV_0="#"
41440 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41441 COND_TOOLKIT_MAC_WXUNIV_0=""
41442 fi
41443
dcc1b6ad
VS
41444 COND_TOOLKIT_MGL="#"
41445 if test "x$TOOLKIT" = "xMGL" ; then
41446 COND_TOOLKIT_MGL=""
41447 fi
41448
41449 COND_TOOLKIT_MGL_USE_GUI_1="#"
41450 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41451 COND_TOOLKIT_MGL_USE_GUI_1=""
41452 fi
41453
41454 COND_TOOLKIT_MOTIF="#"
41455 if test "x$TOOLKIT" = "xMOTIF" ; then
41456 COND_TOOLKIT_MOTIF=""
41457 fi
41458
41459 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41460 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41461 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41462 fi
41463
41464 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41465 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41466 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41467 fi
41468
41469 COND_TOOLKIT_MSW="#"
41470 if test "x$TOOLKIT" = "xMSW" ; then
41471 COND_TOOLKIT_MSW=""
41472 fi
41473
41474 COND_TOOLKIT_MSW_USE_GUI_1="#"
41475 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41476 COND_TOOLKIT_MSW_USE_GUI_1=""
41477 fi
41478
41479 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41480 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41481 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41482 fi
41483
9a8f0513
VS
41484 COND_TOOLKIT_MSW_WXUNIV_0="#"
41485 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41486 COND_TOOLKIT_MSW_WXUNIV_0=""
41487 fi
41488
dcc1b6ad
VS
41489 COND_TOOLKIT_PM="#"
41490 if test "x$TOOLKIT" = "xPM" ; then
41491 COND_TOOLKIT_PM=""
41492 fi
41493
41494 COND_TOOLKIT_PM_USE_GUI_1="#"
41495 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41496 COND_TOOLKIT_PM_USE_GUI_1=""
41497 fi
41498
41499 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41500 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41501 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41502 fi
41503
9a8f0513
VS
41504 COND_TOOLKIT_PM_WXUNIV_0="#"
41505 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41506 COND_TOOLKIT_PM_WXUNIV_0=""
41507 fi
41508
dcc1b6ad
VS
41509 COND_TOOLKIT_WINCE="#"
41510 if test "x$TOOLKIT" = "xWINCE" ; then
41511 COND_TOOLKIT_WINCE=""
41512 fi
41513
41514 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41515 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41516 COND_TOOLKIT_WINCE_USE_GUI_1=""
41517 fi
41518
41519 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41520 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41521 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41522 fi
41523
41524 COND_TOOLKIT_X11="#"
41525 if test "x$TOOLKIT" = "xX11" ; then
41526 COND_TOOLKIT_X11=""
41527 fi
41528
41529 COND_TOOLKIT_X11_USE_GUI_1="#"
41530 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41531 COND_TOOLKIT_X11_USE_GUI_1=""
41532 fi
41533
41534 COND_UNICODE_1="#"
41535 if test "x$UNICODE" = "x1" ; then
41536 COND_UNICODE_1=""
41537 fi
41538
41539 COND_USE_EXCEPTIONS_0="#"
41540 if test "x$USE_EXCEPTIONS" = "x0" ; then
41541 COND_USE_EXCEPTIONS_0=""
41542 fi
41543
41544 COND_USE_EXCEPTIONS_1="#"
41545 if test "x$USE_EXCEPTIONS" = "x1" ; then
41546 COND_USE_EXCEPTIONS_1=""
41547 fi
41548
41549 COND_USE_GUI_0="#"
41550 if test "x$USE_GUI" = "x0" ; then
41551 COND_USE_GUI_0=""
41552 fi
41553
41554 COND_USE_GUI_1="#"
41555 if test "x$USE_GUI" = "x1" ; then
41556 COND_USE_GUI_1=""
41557 fi
41558
41559 COND_USE_GUI_1_WXUNIV_0="#"
41560 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41561 COND_USE_GUI_1_WXUNIV_0=""
41562 fi
41563
41564 COND_USE_GUI_1_WXUNIV_1="#"
41565 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41566 COND_USE_GUI_1_WXUNIV_1=""
41567 fi
41568
41569 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41570 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41571 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41572 fi
41573
41574 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41575 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41576 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41577 fi
41578
41579 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41580 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41581 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41582 fi
41583
41584 COND_USE_ODBC_1="#"
41585 if test "x$USE_ODBC" = "x1" ; then
41586 COND_USE_ODBC_1=""
41587 fi
41588
41589 COND_USE_PLUGINS_0="#"
41590 if test "x$USE_PLUGINS" = "x0" ; then
41591 COND_USE_PLUGINS_0=""
41592 fi
41593
41594 COND_USE_SOSYMLINKS_1="#"
41595 if test "x$USE_SOSYMLINKS" = "x1" ; then
41596 COND_USE_SOSYMLINKS_1=""
41597 fi
41598
41599 COND_USE_SOVERLINUX_1="#"
41600 if test "x$USE_SOVERLINUX" = "x1" ; then
41601 COND_USE_SOVERLINUX_1=""
41602 fi
41603
41604 COND_USE_SOVERSION_0="#"
41605 if test "x$USE_SOVERSION" = "x0" ; then
41606 COND_USE_SOVERSION_0=""
41607 fi
41608
41609 COND_USE_SOVERSOLARIS_1="#"
41610 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41611 COND_USE_SOVERSOLARIS_1=""
41612 fi
41613
41614 COND_WITH_PLUGIN_SDL_1="#"
41615 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41616 COND_WITH_PLUGIN_SDL_1=""
41617 fi
41618
41619 COND_WXUNIV_1="#"
41620 if test "x$WXUNIV" = "x1" ; then
41621 COND_WXUNIV_1=""
41622 fi
41623
41624 COND_WXUSE_EXPAT_BUILTIN="#"
41625 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41626 COND_WXUSE_EXPAT_BUILTIN=""
41627 fi
41628
41629 COND_WXUSE_LIBJPEG_BUILTIN="#"
41630 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41631 COND_WXUSE_LIBJPEG_BUILTIN=""
41632 fi
41633
41634 COND_WXUSE_LIBPNG_BUILTIN="#"
41635 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41636 COND_WXUSE_LIBPNG_BUILTIN=""
41637 fi
41638
41639 COND_WXUSE_LIBTIFF_BUILTIN="#"
41640 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41641 COND_WXUSE_LIBTIFF_BUILTIN=""
41642 fi
41643
41644 COND_WXUSE_ODBC_BUILTIN="#"
41645 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41646 COND_WXUSE_ODBC_BUILTIN=""
41647 fi
41648
41649 COND_WXUSE_REGEX_BUILTIN="#"
41650 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41651 COND_WXUSE_REGEX_BUILTIN=""
41652 fi
41653
41654 COND_WXUSE_ZLIB_BUILTIN="#"
41655 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41656 COND_WXUSE_ZLIB_BUILTIN=""
41657 fi
41658
a848cd7e
SC
41659
41660
2057db16
VS
41661 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41662 { { 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
41663echo "$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;}
41664 { (exit 1); exit 1; }; }
41665 fi
41666
a848cd7e 41667
ceec2216
RL
41668if test "$wxUSE_SHARED" = "yes"; then
41669
41670 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41671 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41672
41673else
41674
41675 EXE_LINKER="$CXX -o"
41676
41677fi
a848cd7e 41678
74b84332 41679GCC_PRAGMA_FLAGS=""
a848cd7e 41680if test $GCC_PCH = 1 ; then
74b84332 41681 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41682else
41683 case "${host}" in
41684 powerpc-*-darwin* )
74b84332 41685 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41686 ;;
bea8e651 41687 *-*-mingw32* )
1f344abf
VS
41688 if test "$wxUSE_STL" = "yes" -o \
41689 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41690 "$wxUSE_NO_RTTI" != "yes"; then
41691 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41692echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41693 cat >conftest.$ac_ext <<_ACEOF
41694/* confdefs.h. */
41695_ACEOF
41696cat confdefs.h >>conftest.$ac_ext
41697cat >>conftest.$ac_ext <<_ACEOF
41698/* end confdefs.h. */
41699
41700int
41701main ()
41702{
1f344abf 41703#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41704 #error "Not GCC 3.2 or greater"
41705 #endif
41706
41707 ;
41708 return 0;
41709}
41710_ACEOF
41711rm -f conftest.$ac_objext
41712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41713 (eval $ac_compile) 2>conftest.er1
bea8e651 41714 ac_status=$?
ac1cb8d3
VS
41715 grep -v '^ *+' conftest.er1 >conftest.err
41716 rm -f conftest.er1
41717 cat conftest.err >&5
bea8e651
MB
41718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41719 (exit $ac_status); } &&
fc480dc1
DE
41720 { ac_try='test -z "$ac_c_werror_flag"
41721 || test ! -s conftest.err'
ac1cb8d3
VS
41722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41723 (eval $ac_try) 2>&5
41724 ac_status=$?
41725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41726 (exit $ac_status); }; } &&
41727 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41729 (eval $ac_try) 2>&5
41730 ac_status=$?
41731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732 (exit $ac_status); }; }; then
74b84332 41733 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41734 echo "$as_me:$LINENO: result: yes" >&5
41735echo "${ECHO_T}yes" >&6
41736else
41737 echo "$as_me: failed program was:" >&5
41738sed 's/^/| /' conftest.$ac_ext >&5
41739
41740echo "$as_me:$LINENO: result: no" >&5
41741echo "${ECHO_T}no" >&6
41742fi
ac1cb8d3 41743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41744 fi
41745 ;;
a848cd7e
SC
41746 esac
41747fi
74b84332 41748CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41749
41750
41751SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41752
41753
41754
41755
41756
41757
41758
41759
41760
41761
41762
41763
41764
41765
41766
41767
41768
41769
41770
41771
41772
41773
41774
41775
41776
41777
41778
41779
41780
41781
41782
41783
41784
41785
41786
41787
41788
41789
41790
41791
41792
41793
a848cd7e
SC
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805
41806
41807
41808
41809
41810
41811
74b84332 41812
a848cd7e
SC
41813
41814
41815echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41816echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41817set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41818if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41819 echo $ECHO_N "(cached) $ECHO_C" >&6
41820else
41821 cat >conftest.make <<\_ACEOF
41822all:
41823 @echo 'ac_maketemp="$(MAKE)"'
41824_ACEOF
41825# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41826eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41827if test -n "$ac_maketemp"; then
41828 eval ac_cv_prog_make_${ac_make}_set=yes
41829else
41830 eval ac_cv_prog_make_${ac_make}_set=no
41831fi
41832rm -f conftest.make
41833fi
41834if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41835 echo "$as_me:$LINENO: result: yes" >&5
41836echo "${ECHO_T}yes" >&6
41837 SET_MAKE=
41838else
41839 echo "$as_me:$LINENO: result: no" >&5
41840echo "${ECHO_T}no" >&6
41841 SET_MAKE="MAKE=${MAKE-make}"
41842fi
41843
41844
a848cd7e 41845
ceec2216
RL
41846 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41847
a848cd7e 41848
ceec2216 41849 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41850
a848cd7e 41851
ceec2216 41852 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41853
ceec2216
RL
41854
41855 ac_config_files="$ac_config_files version-script Makefile"
41856
41857
41858 ac_config_commands="$ac_config_commands wx-config
41859 "
a848cd7e
SC
41860
41861
9103d280
RL
41862
41863
a848cd7e
SC
41864if test "$wxUSE_GUI" = "yes"; then
41865 SUBDIRS="samples demos utils contrib"
41866else SUBDIRS="samples utils"
41867fi
41868
41869
41870
41871# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41872if test "${with_cppunit_prefix+set}" = set; then
41873 withval="$with_cppunit_prefix"
41874 cppunit_config_prefix="$withval"
41875else
41876 cppunit_config_prefix=""
41877fi;
41878
41879# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41880if test "${with_cppunit_exec_prefix+set}" = set; then
41881 withval="$with_cppunit_exec_prefix"
41882 cppunit_config_exec_prefix="$withval"
41883else
41884 cppunit_config_exec_prefix=""
41885fi;
41886
41887 if test x$cppunit_config_exec_prefix != x ; then
41888 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41889 if test x${CPPUNIT_CONFIG+set} != xset ; then
41890 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41891 fi
41892 fi
41893 if test x$cppunit_config_prefix != x ; then
41894 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41895 if test x${CPPUNIT_CONFIG+set} != xset ; then
41896 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41897 fi
41898 fi
41899
41900 # Extract the first word of "cppunit-config", so it can be a program name with args.
41901set dummy cppunit-config; ac_word=$2
41902echo "$as_me:$LINENO: checking for $ac_word" >&5
41903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41904if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41905 echo $ECHO_N "(cached) $ECHO_C" >&6
41906else
41907 case $CPPUNIT_CONFIG in
41908 [\\/]* | ?:[\\/]*)
41909 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41910 ;;
41911 *)
41912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41913for as_dir in $PATH
41914do
41915 IFS=$as_save_IFS
41916 test -z "$as_dir" && as_dir=.
41917 for ac_exec_ext in '' $ac_executable_extensions; do
41918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41919 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41921 break 2
41922 fi
41923done
41924done
41925
41926 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41927 ;;
41928esac
41929fi
41930CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41931
41932if test -n "$CPPUNIT_CONFIG"; then
41933 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41934echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41935else
41936 echo "$as_me:$LINENO: result: no" >&5
41937echo "${ECHO_T}no" >&6
41938fi
41939
41940 cppunit_version_min=1.8.0
41941
41942 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41943echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41944 no_cppunit=""
41945 if test "$CPPUNIT_CONFIG" = "no" ; then
41946 no_cppunit=yes
41947 else
41948 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41949 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41950 cppunit_version=`$CPPUNIT_CONFIG --version`
41951
41952 cppunit_major_version=`echo $cppunit_version | \
41953 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41954 cppunit_minor_version=`echo $cppunit_version | \
41955 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41956 cppunit_micro_version=`echo $cppunit_version | \
41957 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41958
41959 cppunit_major_min=`echo $cppunit_version_min | \
41960 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41961 cppunit_minor_min=`echo $cppunit_version_min | \
41962 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41963 cppunit_micro_min=`echo $cppunit_version_min | \
41964 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41965
41966 cppunit_version_proper=`expr \
41967 $cppunit_major_version \> $cppunit_major_min \| \
41968 $cppunit_major_version \= $cppunit_major_min \& \
41969 $cppunit_minor_version \> $cppunit_minor_min \| \
41970 $cppunit_major_version \= $cppunit_major_min \& \
41971 $cppunit_minor_version \= $cppunit_minor_min \& \
41972 $cppunit_micro_version \>= $cppunit_micro_min `
41973
41974 if test "$cppunit_version_proper" = "1" ; then
41975 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41976echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41977 else
41978 echo "$as_me:$LINENO: result: no" >&5
41979echo "${ECHO_T}no" >&6
41980 no_cppunit=yes
41981 fi
41982 fi
41983
41984 if test "x$no_cppunit" = x ; then
c2218763 41985 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41986 else
41987 CPPUNIT_CFLAGS=""
41988 CPPUNIT_LIBS=""
c2218763 41989 :
a848cd7e
SC
41990 fi
41991
41992
41993
41994
41995
41996for subdir in `echo $SUBDIRS`; do
41997 if test -d ${srcdir}/${subdir} ; then
41998 if test "$wxUSE_GUI" = "yes"; then
41999 if test ${subdir} = "samples"; then
42000 makefiles="samples/Makefile.in $makefiles"
42001 for sample in `echo $SAMPLES_SUBDIRS`; do
42002 if test -d $srcdir/samples/$sample; then
42003 makefiles="samples/$sample/Makefile.in $makefiles"
42004 fi
42005 done
42006 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42007 fi
42008 else if test ${subdir} = "samples"; then
42009 makefiles="samples/Makefile.in samples/console/Makefile.in"
42010 elif test ${subdir} = "utils"; then
6537ccf8
VS
42011 makefiles=""
42012 for util in HelpGen tex2rtf ; do
42013 if test -d $srcdir/utils/$util ; then
42014 makefiles="utils/$util/Makefile.in \
42015 utils/$util/src/Makefile.in \
42016 $makefiles"
42017 fi
42018 done
a848cd7e
SC
42019 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42020 fi
42021 fi
42022
42023 for mkin in $makefiles ; do
42024 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42025 ac_config_files="$ac_config_files $mk"
42026
42027 done
42028 fi
42029done
42030
42031
42032cat >confcache <<\_ACEOF
42033# This file is a shell script that caches the results of configure
42034# tests run on this system so they can be shared between configure
42035# scripts and configure runs, see configure's option --config-cache.
42036# It is not useful on other systems. If it contains results you don't
42037# want to keep, you may remove or edit it.
42038#
42039# config.status only pays attention to the cache file if you give it
42040# the --recheck option to rerun configure.
42041#
42042# `ac_cv_env_foo' variables (set or unset) will be overridden when
42043# loading this file, other *unset* `ac_cv_foo' will be assigned the
42044# following values.
42045
42046_ACEOF
42047
42048# The following way of writing the cache mishandles newlines in values,
42049# but we know of no workaround that is simple, portable, and efficient.
42050# So, don't put newlines in cache variables' values.
42051# Ultrix sh set writes to stderr and can't be redirected directly,
42052# and sets the high bit in the cache file unless we assign to the vars.
42053{
42054 (set) 2>&1 |
42055 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42056 *ac_space=\ *)
42057 # `set' does not quote correctly, so add quotes (double-quote
42058 # substitution turns \\\\ into \\, and sed turns \\ into \).
42059 sed -n \
ac1cb8d3
VS
42060 "s/'/'\\\\''/g;
42061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42062 ;;
42063 *)
42064 # `set' quotes correctly as required by POSIX, so do not add quotes.
42065 sed -n \
ac1cb8d3 42066 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42067 ;;
42068 esac;
42069} |
42070 sed '
42071 t clear
42072 : clear
42073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42074 t end
42075 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42076 : end' >>confcache
42077if diff $cache_file confcache >/dev/null 2>&1; then :; else
42078 if test -w $cache_file; then
42079 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42080 cat confcache >$cache_file
42081 else
42082 echo "not updating unwritable cache $cache_file"
42083 fi
42084fi
42085rm -f confcache
42086
42087test "x$prefix" = xNONE && prefix=$ac_default_prefix
42088# Let make expand exec_prefix.
42089test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42090
42091# VPATH may cause trouble with some makes, so we remove $(srcdir),
42092# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42093# trailing colons and then remove the whole line if VPATH becomes empty
42094# (actually we leave an empty line to preserve line numbers).
42095if test "x$srcdir" = x.; then
ac1cb8d3 42096 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42097s/:*\$(srcdir):*/:/;
42098s/:*\${srcdir}:*/:/;
42099s/:*@srcdir@:*/:/;
ac1cb8d3 42100s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42101s/:*$//;
ac1cb8d3 42102s/^[^=]*=[ ]*$//;
a848cd7e
SC
42103}'
42104fi
42105
42106DEFS=-DHAVE_CONFIG_H
42107
42108ac_libobjs=
42109ac_ltlibobjs=
42110for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42111 # 1. Remove the extension, and $U if already installed.
42112 ac_i=`echo "$ac_i" |
ac1cb8d3 42113 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42114 # 2. Add them.
42115 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42116 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42117done
42118LIBOBJS=$ac_libobjs
42119
42120LTLIBOBJS=$ac_ltlibobjs
42121
42122
42123
42124: ${CONFIG_STATUS=./config.status}
42125ac_clean_files_save=$ac_clean_files
42126ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42127{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42128echo "$as_me: creating $CONFIG_STATUS" >&6;}
42129cat >$CONFIG_STATUS <<_ACEOF
42130#! $SHELL
42131# Generated by $as_me.
42132# Run this file to recreate the current configuration.
42133# Compiler output produced by configure, useful for debugging
42134# configure, is in config.log if it exists.
42135
42136debug=false
42137ac_cs_recheck=false
42138ac_cs_silent=false
42139SHELL=\${CONFIG_SHELL-$SHELL}
42140_ACEOF
42141
42142cat >>$CONFIG_STATUS <<\_ACEOF
42143## --------------------- ##
42144## M4sh Initialization. ##
42145## --------------------- ##
42146
42147# Be Bourne compatible
42148if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42149 emulate sh
42150 NULLCMD=:
42151 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42152 # is contrary to our usage. Disable this feature.
42153 alias -g '${1+"$@"}'='"$@"'
42154elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42155 set -o posix
42156fi
ac1cb8d3 42157DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42158
42159# Support unset when possible.
ac1cb8d3 42160if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42161 as_unset=unset
42162else
42163 as_unset=false
42164fi
42165
42166
42167# Work around bugs in pre-3.0 UWIN ksh.
42168$as_unset ENV MAIL MAILPATH
42169PS1='$ '
42170PS2='> '
42171PS4='+ '
42172
42173# NLS nuisances.
42174for as_var in \
42175 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42176 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42177 LC_TELEPHONE LC_TIME
42178do
ac1cb8d3 42179 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42180 eval $as_var=C; export $as_var
42181 else
42182 $as_unset $as_var
42183 fi
42184done
42185
42186# Required to use basename.
42187if expr a : '\(a\)' >/dev/null 2>&1; then
42188 as_expr=expr
42189else
42190 as_expr=false
42191fi
42192
42193if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42194 as_basename=basename
42195else
42196 as_basename=false
42197fi
42198
42199
42200# Name of the executable.
42201as_me=`$as_basename "$0" ||
42202$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42203 X"$0" : 'X\(//\)$' \| \
42204 X"$0" : 'X\(/\)$' \| \
42205 . : '\(.\)' 2>/dev/null ||
42206echo X/"$0" |
42207 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42208 /^X\/\(\/\/\)$/{ s//\1/; q; }
42209 /^X\/\(\/\).*/{ s//\1/; q; }
42210 s/.*/./; q'`
42211
42212
42213# PATH needs CR, and LINENO needs CR and PATH.
42214# Avoid depending upon Character Ranges.
42215as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42216as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42217as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42218as_cr_digits='0123456789'
42219as_cr_alnum=$as_cr_Letters$as_cr_digits
42220
42221# The user is always right.
42222if test "${PATH_SEPARATOR+set}" != set; then
42223 echo "#! /bin/sh" >conf$$.sh
42224 echo "exit 0" >>conf$$.sh
42225 chmod +x conf$$.sh
42226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42227 PATH_SEPARATOR=';'
42228 else
42229 PATH_SEPARATOR=:
42230 fi
42231 rm -f conf$$.sh
42232fi
42233
42234
42235 as_lineno_1=$LINENO
42236 as_lineno_2=$LINENO
42237 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42238 test "x$as_lineno_1" != "x$as_lineno_2" &&
42239 test "x$as_lineno_3" = "x$as_lineno_2" || {
42240 # Find who we are. Look in the path if we contain no path at all
42241 # relative or not.
42242 case $0 in
42243 *[\\/]* ) as_myself=$0 ;;
42244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42245for as_dir in $PATH
42246do
42247 IFS=$as_save_IFS
42248 test -z "$as_dir" && as_dir=.
42249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42250done
42251
42252 ;;
42253 esac
42254 # We did not find ourselves, most probably we were run as `sh COMMAND'
42255 # in which case we are not to be found in the path.
42256 if test "x$as_myself" = x; then
42257 as_myself=$0
42258 fi
42259 if test ! -f "$as_myself"; then
42260 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42261echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42262 { (exit 1); exit 1; }; }
42263 fi
42264 case $CONFIG_SHELL in
42265 '')
42266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42267for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42268do
42269 IFS=$as_save_IFS
42270 test -z "$as_dir" && as_dir=.
42271 for as_base in sh bash ksh sh5; do
42272 case $as_dir in
42273 /*)
42274 if ("$as_dir/$as_base" -c '
42275 as_lineno_1=$LINENO
42276 as_lineno_2=$LINENO
42277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42278 test "x$as_lineno_1" != "x$as_lineno_2" &&
42279 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42280 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42281 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42282 CONFIG_SHELL=$as_dir/$as_base
42283 export CONFIG_SHELL
42284 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42285 fi;;
42286 esac
42287 done
42288done
42289;;
42290 esac
42291
42292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42293 # uniformly replaced by the line number. The first 'sed' inserts a
42294 # line-number line before each line; the second 'sed' does the real
42295 # work. The second script uses 'N' to pair each line-number line
42296 # with the numbered line, and appends trailing '-' during
42297 # substitution so that $LINENO is not a special case at line end.
42298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42299 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42300 sed '=' <$as_myself |
42301 sed '
42302 N
42303 s,$,-,
42304 : loop
42305 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42306 t loop
42307 s,-$,,
42308 s,^['$as_cr_digits']*\n,,
42309 ' >$as_me.lineno &&
42310 chmod +x $as_me.lineno ||
42311 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42312echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42313 { (exit 1); exit 1; }; }
42314
42315 # Don't try to exec as it changes $[0], causing all sort of problems
42316 # (the dirname of $[0] is not the place where we might find the
42317 # original and so on. Autoconf is especially sensible to this).
42318 . ./$as_me.lineno
42319 # Exit status is that of the last command.
42320 exit
42321}
42322
42323
42324case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42325 *c*,-n*) ECHO_N= ECHO_C='
42326' ECHO_T=' ' ;;
42327 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42328 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42329esac
42330
42331if expr a : '\(a\)' >/dev/null 2>&1; then
42332 as_expr=expr
42333else
42334 as_expr=false
42335fi
42336
42337rm -f conf$$ conf$$.exe conf$$.file
42338echo >conf$$.file
42339if ln -s conf$$.file conf$$ 2>/dev/null; then
42340 # We could just check for DJGPP; but this test a) works b) is more generic
42341 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42342 if test -f conf$$.exe; then
42343 # Don't use ln at all; we don't have any links
42344 as_ln_s='cp -p'
42345 else
42346 as_ln_s='ln -s'
42347 fi
42348elif ln conf$$.file conf$$ 2>/dev/null; then
42349 as_ln_s=ln
42350else
42351 as_ln_s='cp -p'
42352fi
42353rm -f conf$$ conf$$.exe conf$$.file
42354
42355if mkdir -p . 2>/dev/null; then
42356 as_mkdir_p=:
42357else
ac1cb8d3 42358 test -d ./-p && rmdir ./-p
a848cd7e
SC
42359 as_mkdir_p=false
42360fi
42361
42362as_executable_p="test -f"
42363
42364# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42365as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42366
42367# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42368as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42369
42370
42371# IFS
42372# We need space, tab and new line, in precisely that order.
42373as_nl='
42374'
42375IFS=" $as_nl"
42376
42377# CDPATH.
42378$as_unset CDPATH
42379
42380exec 6>&1
42381
42382# Open the log real soon, to keep \$[0] and so on meaningful, and to
42383# report actual input values of CONFIG_FILES etc. instead of their
42384# values after options handling. Logging --version etc. is OK.
42385exec 5>>config.log
42386{
42387 echo
42388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42389## Running $as_me. ##
42390_ASBOX
42391} >&5
42392cat >&5 <<_CSEOF
42393
7714864e 42394This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42395generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42396
42397 CONFIG_FILES = $CONFIG_FILES
42398 CONFIG_HEADERS = $CONFIG_HEADERS
42399 CONFIG_LINKS = $CONFIG_LINKS
42400 CONFIG_COMMANDS = $CONFIG_COMMANDS
42401 $ $0 $@
42402
42403_CSEOF
42404echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42405echo >&5
42406_ACEOF
42407
42408# Files that config.status was made for.
42409if test -n "$ac_config_files"; then
42410 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42411fi
42412
42413if test -n "$ac_config_headers"; then
42414 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42415fi
42416
42417if test -n "$ac_config_links"; then
42418 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42419fi
42420
42421if test -n "$ac_config_commands"; then
42422 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42423fi
42424
42425cat >>$CONFIG_STATUS <<\_ACEOF
42426
42427ac_cs_usage="\
42428\`$as_me' instantiates files from templates according to the
42429current configuration.
42430
42431Usage: $0 [OPTIONS] [FILE]...
42432
42433 -h, --help print this help, then exit
42434 -V, --version print version number, then exit
42435 -q, --quiet do not print progress messages
42436 -d, --debug don't remove temporary files
42437 --recheck update $as_me by reconfiguring in the same conditions
42438 --file=FILE[:TEMPLATE]
ac1cb8d3 42439 instantiate the configuration file FILE
a848cd7e 42440 --header=FILE[:TEMPLATE]
ac1cb8d3 42441 instantiate the configuration header FILE
a848cd7e
SC
42442
42443Configuration files:
42444$config_files
42445
42446Configuration headers:
42447$config_headers
42448
42449Configuration commands:
42450$config_commands
42451
42452Report bugs to <bug-autoconf@gnu.org>."
42453_ACEOF
42454
42455cat >>$CONFIG_STATUS <<_ACEOF
42456ac_cs_version="\\
7714864e 42457wxWidgets config.status 2.5.3
ac1cb8d3 42458configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42459 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42460
ac1cb8d3 42461Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42462This config.status script is free software; the Free Software Foundation
42463gives unlimited permission to copy, distribute and modify it."
42464srcdir=$srcdir
42465INSTALL="$INSTALL"
42466_ACEOF
42467
42468cat >>$CONFIG_STATUS <<\_ACEOF
42469# If no file are specified by the user, then we need to provide default
42470# value. By we need to know if files were specified by the user.
42471ac_need_defaults=:
42472while test $# != 0
42473do
42474 case $1 in
42475 --*=*)
42476 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42477 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42478 ac_shift=:
42479 ;;
42480 -*)
42481 ac_option=$1
42482 ac_optarg=$2
42483 ac_shift=shift
42484 ;;
42485 *) # This is not an option, so the user has probably given explicit
42486 # arguments.
42487 ac_option=$1
42488 ac_need_defaults=false;;
42489 esac
42490
42491 case $ac_option in
42492 # Handling of the options.
42493_ACEOF
42494cat >>$CONFIG_STATUS <<\_ACEOF
42495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42496 ac_cs_recheck=: ;;
42497 --version | --vers* | -V )
42498 echo "$ac_cs_version"; exit 0 ;;
42499 --he | --h)
42500 # Conflict between --help and --header
42501 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42502Try \`$0 --help' for more information." >&5
42503echo "$as_me: error: ambiguous option: $1
42504Try \`$0 --help' for more information." >&2;}
42505 { (exit 1); exit 1; }; };;
42506 --help | --hel | -h )
42507 echo "$ac_cs_usage"; exit 0 ;;
42508 --debug | --d* | -d )
42509 debug=: ;;
42510 --file | --fil | --fi | --f )
42511 $ac_shift
42512 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42513 ac_need_defaults=false;;
42514 --header | --heade | --head | --hea )
42515 $ac_shift
42516 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42517 ac_need_defaults=false;;
42518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42520 ac_cs_silent=: ;;
42521
42522 # This is an error.
42523 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42524Try \`$0 --help' for more information." >&5
42525echo "$as_me: error: unrecognized option: $1
42526Try \`$0 --help' for more information." >&2;}
42527 { (exit 1); exit 1; }; } ;;
42528
42529 *) ac_config_targets="$ac_config_targets $1" ;;
42530
42531 esac
42532 shift
42533done
42534
42535ac_configure_extra_args=
42536
42537if $ac_cs_silent; then
42538 exec 6>/dev/null
42539 ac_configure_extra_args="$ac_configure_extra_args --silent"
42540fi
42541
42542_ACEOF
42543cat >>$CONFIG_STATUS <<_ACEOF
42544if \$ac_cs_recheck; then
42545 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42546 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42547fi
42548
42549_ACEOF
42550
42551cat >>$CONFIG_STATUS <<_ACEOF
42552#
42553# INIT-COMMANDS section.
42554#
42555
ceec2216
RL
42556 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42557 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42558 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42559 LN_S="${LN_S}"
a848cd7e
SC
42560
42561
42562_ACEOF
42563
42564
42565
42566cat >>$CONFIG_STATUS <<\_ACEOF
42567for ac_config_target in $ac_config_targets
42568do
42569 case "$ac_config_target" in
42570 # Handling of arguments.
ceec2216
RL
42571 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42572 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42573 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42574 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42575 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42576 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42577 "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
42578 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42579echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42580 { (exit 1); exit 1; }; };;
42581 esac
42582done
42583
42584# If the user did not use the arguments to specify the items to instantiate,
42585# then the envvar interface is used. Set only those that are not.
42586# We use the long form for the default assignment because of an extremely
42587# bizarre bug on SunOS 4.1.3.
42588if $ac_need_defaults; then
42589 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42590 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42591 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42592fi
42593
42594# Have a temporary directory for convenience. Make it in the build tree
42595# simply because there is no reason to put it here, and in addition,
42596# creating and moving files from /tmp can sometimes cause problems.
42597# Create a temporary directory, and hook for its removal unless debugging.
42598$debug ||
42599{
42600 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42601 trap '{ (exit 1); exit 1; }' 1 2 13 15
42602}
42603
42604# Create a (secure) tmp directory for tmp files.
42605
42606{
42607 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42608 test -n "$tmp" && test -d "$tmp"
42609} ||
42610{
42611 tmp=./confstat$$-$RANDOM
42612 (umask 077 && mkdir $tmp)
42613} ||
42614{
42615 echo "$me: cannot create a temporary directory in ." >&2
42616 { (exit 1); exit 1; }
42617}
42618
42619_ACEOF
42620
42621cat >>$CONFIG_STATUS <<_ACEOF
42622
42623#
42624# CONFIG_FILES section.
42625#
42626
42627# No need to generate the scripts if there are no CONFIG_FILES.
42628# This happens for instance when ./config.status config.h
42629if test -n "\$CONFIG_FILES"; then
42630 # Protect against being on the right side of a sed subst in config.status.
42631 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42632 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42633s,@SHELL@,$SHELL,;t t
42634s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42635s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42636s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42637s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42638s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42639s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42640s,@exec_prefix@,$exec_prefix,;t t
42641s,@prefix@,$prefix,;t t
42642s,@program_transform_name@,$program_transform_name,;t t
42643s,@bindir@,$bindir,;t t
42644s,@sbindir@,$sbindir,;t t
42645s,@libexecdir@,$libexecdir,;t t
42646s,@datadir@,$datadir,;t t
42647s,@sysconfdir@,$sysconfdir,;t t
42648s,@sharedstatedir@,$sharedstatedir,;t t
42649s,@localstatedir@,$localstatedir,;t t
42650s,@libdir@,$libdir,;t t
42651s,@includedir@,$includedir,;t t
42652s,@oldincludedir@,$oldincludedir,;t t
42653s,@infodir@,$infodir,;t t
42654s,@mandir@,$mandir,;t t
42655s,@build_alias@,$build_alias,;t t
42656s,@host_alias@,$host_alias,;t t
42657s,@target_alias@,$target_alias,;t t
42658s,@DEFS@,$DEFS,;t t
42659s,@ECHO_C@,$ECHO_C,;t t
42660s,@ECHO_N@,$ECHO_N,;t t
42661s,@ECHO_T@,$ECHO_T,;t t
42662s,@LIBS@,$LIBS,;t t
42663s,@build@,$build,;t t
42664s,@build_cpu@,$build_cpu,;t t
42665s,@build_vendor@,$build_vendor,;t t
42666s,@build_os@,$build_os,;t t
42667s,@host@,$host,;t t
42668s,@host_cpu@,$host_cpu,;t t
42669s,@host_vendor@,$host_vendor,;t t
42670s,@host_os@,$host_os,;t t
42671s,@target@,$target,;t t
42672s,@target_cpu@,$target_cpu,;t t
42673s,@target_vendor@,$target_vendor,;t t
42674s,@target_os@,$target_os,;t t
42675s,@CC@,$CC,;t t
42676s,@CFLAGS@,$CFLAGS,;t t
42677s,@LDFLAGS@,$LDFLAGS,;t t
42678s,@CPPFLAGS@,$CPPFLAGS,;t t
42679s,@ac_ct_CC@,$ac_ct_CC,;t t
42680s,@EXEEXT@,$EXEEXT,;t t
42681s,@OBJEXT@,$OBJEXT,;t t
42682s,@CPP@,$CPP,;t t
42683s,@EGREP@,$EGREP,;t t
42684s,@CXX@,$CXX,;t t
42685s,@CXXFLAGS@,$CXXFLAGS,;t t
42686s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42687s,@RANLIB@,$RANLIB,;t t
42688s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42689s,@AR@,$AR,;t t
42690s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42691s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42692s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42693s,@STRIP@,$STRIP,;t t
42694s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42695s,@LN_S@,$LN_S,;t t
42696s,@CXXCPP@,$CXXCPP,;t t
42697s,@subdirs@,$subdirs,;t t
42698s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42699s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42700s,@GTK_LIBS@,$GTK_LIBS,;t t
42701s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42702s,@X_CFLAGS@,$X_CFLAGS,;t t
42703s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42704s,@X_LIBS@,$X_LIBS,;t t
42705s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42706s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42707s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42708s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42709s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42710s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42711s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42712s,@RESCOMP@,$RESCOMP,;t t
42713s,@DEREZ@,$DEREZ,;t t
42714s,@SETFILE@,$SETFILE,;t t
42715s,@LIBICONV@,$LIBICONV,;t t
42716s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42717s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42718s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42719s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42720s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42721s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42722s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42723s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42724s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42725s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42726s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42727s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42728s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42729s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42730s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42731s,@VENDOR@,$VENDOR,;t t
42732s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42733s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42734s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42735s,@WXUNIV@,$WXUNIV,;t t
42736s,@MONOLITHIC@,$MONOLITHIC,;t t
42737s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42738s,@EXTRALIBS@,$EXTRALIBS,;t t
42739s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42740s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42741s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42742s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42743s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42744s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42745s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42746s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42747s,@UNICODE@,$UNICODE,;t t
42748s,@BUILD@,$BUILD,;t t
42749s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42750s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42751s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42752s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42753s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42754s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42755s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42756s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42757s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42758s,@SET_MAKE@,$SET_MAKE,;t t
42759s,@MAKE_SET@,$MAKE_SET,;t t
42760s,@ac_ct_AR@,$ac_ct_AR,;t t
42761s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42762s,@NM@,$NM,;t t
42763s,@ac_ct_NM@,$ac_ct_NM,;t t
42764s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42765s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42766s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42767s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42768s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42769s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42770s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42771s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42772s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42773s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42774s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42775s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42776s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42777s,@LIBPREFIX@,$LIBPREFIX,;t t
42778s,@LIBEXT@,$LIBEXT,;t t
42779s,@DLLPREFIX@,$DLLPREFIX,;t t
42780s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42781s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42782s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42783s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42784s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42785s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42786s,@PIC_FLAG@,$PIC_FLAG,;t t
42787s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42788s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42789s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42790s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42791s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42792s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42793s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42794s,@GCC_PCH@,$GCC_PCH,;t t
42795s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42796s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42797s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42798s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42799s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42800s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42801s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42802s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42803s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42804s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42805s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42806s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42807s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42808s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42809s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42810s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42811s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42812s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42813s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42814s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42815s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42816s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42817s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42818s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42819s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42820s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42821s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42822s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42823s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42824s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42825s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42826s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42827s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42828s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42829s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42830s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42831s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42832s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42833s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42834s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 42835s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 42836s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
42837s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42838s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42839s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42840s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42841s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42842s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42843s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42844s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42845s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42846s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42847s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42848s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42849s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42850s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42851s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42852s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42853s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42854s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42855s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42856s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42857s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42858s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42859s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42860s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42861s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42862s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42863s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42864s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42865s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42866s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42867s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42868s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42869s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42870s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42871s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42872s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42873s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42874s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42875s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42876s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42877s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42878s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42879s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42880s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42881s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42882s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42883s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42884s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42885s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42886s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42887s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42888s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42889s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42890s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42891s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42892s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42893s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42894s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42895s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42896s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42897s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42898s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42899s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42900s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42901s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42902s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42903s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42904s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42905s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42906s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42907s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42908s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42909s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42910s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42911s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42912s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42913s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42914s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42915s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42916s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42917s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42918s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42919s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42920s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42921s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42922s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42923s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42924s,@USE_GUI@,$USE_GUI,;t t
42925s,@AFMINSTALL@,$AFMINSTALL,;t t
42926s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42927s,@TOOLKIT@,$TOOLKIT,;t t
42928s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42929s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42930s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42931s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42932s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42933s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42934s,@WIDGET_SET@,$WIDGET_SET,;t t
42935s,@WX_RELEASE@,$WX_RELEASE,;t t
42936s,@WX_VERSION@,$WX_VERSION,;t t
42937s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42938s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42939s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42940s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42941s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42942s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42943s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42944s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42945s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42946s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42947s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42948s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42949s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42950s,@DISTDIR@,$DISTDIR,;t t
42951s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42952s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42953s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42954s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42955s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42956s,@RESFLAGS@,$RESFLAGS,;t t
42957s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42958s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42959s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42960s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42961s,@MACRESCOMP@,$MACRESCOMP,;t t
42962s,@MACSETFILE@,$MACSETFILE,;t t
42963s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42964s,@GCC@,$GCC,;t t
a848cd7e 42965s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42966s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42967s,@LIBOBJS@,$LIBOBJS,;t t
42968s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42969CEOF
42970
42971_ACEOF
42972
42973 cat >>$CONFIG_STATUS <<\_ACEOF
42974 # Split the substitutions into bite-sized pieces for seds with
42975 # small command number limits, like on Digital OSF/1 and HP-UX.
42976 ac_max_sed_lines=48
42977 ac_sed_frag=1 # Number of current file.
42978 ac_beg=1 # First line for current file.
42979 ac_end=$ac_max_sed_lines # Line after last line for current file.
42980 ac_more_lines=:
42981 ac_sed_cmds=
42982 while $ac_more_lines; do
42983 if test $ac_beg -gt 1; then
42984 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42985 else
42986 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42987 fi
42988 if test ! -s $tmp/subs.frag; then
42989 ac_more_lines=false
42990 else
42991 # The purpose of the label and of the branching condition is to
42992 # speed up the sed processing (if there are no `@' at all, there
42993 # is no need to browse any of the substitutions).
42994 # These are the two extra sed commands mentioned above.
42995 (echo ':t
42996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42997 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42998 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42999 else
ac1cb8d3 43000 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43001 fi
43002 ac_sed_frag=`expr $ac_sed_frag + 1`
43003 ac_beg=$ac_end
43004 ac_end=`expr $ac_end + $ac_max_sed_lines`
43005 fi
43006 done
43007 if test -z "$ac_sed_cmds"; then
43008 ac_sed_cmds=cat
43009 fi
43010fi # test -n "$CONFIG_FILES"
43011
43012_ACEOF
43013cat >>$CONFIG_STATUS <<\_ACEOF
43014for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43015 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43016 case $ac_file in
43017 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43018 cat >$tmp/stdin
43019 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43021 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43022 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43023 * ) ac_file_in=$ac_file.in ;;
43024 esac
43025
43026 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43027 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43028$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43029 X"$ac_file" : 'X\(//\)[^/]' \| \
43030 X"$ac_file" : 'X\(//\)$' \| \
43031 X"$ac_file" : 'X\(/\)' \| \
43032 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43033echo X"$ac_file" |
43034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43036 /^X\(\/\/\)$/{ s//\1/; q; }
43037 /^X\(\/\).*/{ s//\1/; q; }
43038 s/.*/./; q'`
43039 { if $as_mkdir_p; then
43040 mkdir -p "$ac_dir"
43041 else
43042 as_dir="$ac_dir"
43043 as_dirs=
43044 while test ! -d "$as_dir"; do
43045 as_dirs="$as_dir $as_dirs"
43046 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43047$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43048 X"$as_dir" : 'X\(//\)[^/]' \| \
43049 X"$as_dir" : 'X\(//\)$' \| \
43050 X"$as_dir" : 'X\(/\)' \| \
43051 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43052echo X"$as_dir" |
43053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43055 /^X\(\/\/\)$/{ s//\1/; q; }
43056 /^X\(\/\).*/{ s//\1/; q; }
43057 s/.*/./; q'`
43058 done
43059 test ! -n "$as_dirs" || mkdir $as_dirs
43060 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43061echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43062 { (exit 1); exit 1; }; }; }
43063
43064 ac_builddir=.
43065
43066if test "$ac_dir" != .; then
43067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43068 # A "../" for each directory in $ac_dir_suffix.
43069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43070else
43071 ac_dir_suffix= ac_top_builddir=
43072fi
43073
43074case $srcdir in
43075 .) # No --srcdir option. We are building in place.
43076 ac_srcdir=.
43077 if test -z "$ac_top_builddir"; then
43078 ac_top_srcdir=.
43079 else
43080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43081 fi ;;
43082 [\\/]* | ?:[\\/]* ) # Absolute path.
43083 ac_srcdir=$srcdir$ac_dir_suffix;
43084 ac_top_srcdir=$srcdir ;;
43085 *) # Relative path.
43086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43088esac
ac1cb8d3
VS
43089
43090# Do not use `cd foo && pwd` to compute absolute paths, because
43091# the directories may not exist.
43092case `pwd` in
43093.) ac_abs_builddir="$ac_dir";;
43094*)
43095 case "$ac_dir" in
43096 .) ac_abs_builddir=`pwd`;;
43097 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43098 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43099 esac;;
43100esac
43101case $ac_abs_builddir in
43102.) ac_abs_top_builddir=${ac_top_builddir}.;;
43103*)
43104 case ${ac_top_builddir}. in
43105 .) ac_abs_top_builddir=$ac_abs_builddir;;
43106 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43107 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43108 esac;;
43109esac
43110case $ac_abs_builddir in
43111.) ac_abs_srcdir=$ac_srcdir;;
43112*)
43113 case $ac_srcdir in
43114 .) ac_abs_srcdir=$ac_abs_builddir;;
43115 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43116 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43117 esac;;
43118esac
43119case $ac_abs_builddir in
43120.) ac_abs_top_srcdir=$ac_top_srcdir;;
43121*)
43122 case $ac_top_srcdir in
43123 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43124 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43125 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43126 esac;;
43127esac
a848cd7e
SC
43128
43129
43130 case $INSTALL in
43131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43132 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43133 esac
43134
fc480dc1
DE
43135 if test x"$ac_file" != x-; then
43136 { echo "$as_me:$LINENO: creating $ac_file" >&5
43137echo "$as_me: creating $ac_file" >&6;}
43138 rm -f "$ac_file"
43139 fi
a848cd7e
SC
43140 # Let's still pretend it is `configure' which instantiates (i.e., don't
43141 # use $as_me), people would be surprised to read:
43142 # /* config.h. Generated by config.status. */
43143 if test x"$ac_file" = x-; then
43144 configure_input=
43145 else
43146 configure_input="$ac_file. "
43147 fi
43148 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43149 sed 's,.*/,,'` by configure."
a848cd7e
SC
43150
43151 # First look for the input files in the build tree, otherwise in the
43152 # src tree.
43153 ac_file_inputs=`IFS=:
43154 for f in $ac_file_in; do
43155 case $f in
43156 -) echo $tmp/stdin ;;
43157 [\\/$]*)
ac1cb8d3
VS
43158 # Absolute (can't be DOS-style, as IFS=:)
43159 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43160echo "$as_me: error: cannot find input file: $f" >&2;}
43161 { (exit 1); exit 1; }; }
ac1cb8d3 43162 echo "$f";;
a848cd7e 43163 *) # Relative
ac1cb8d3
VS
43164 if test -f "$f"; then
43165 # Build tree
43166 echo "$f"
43167 elif test -f "$srcdir/$f"; then
43168 # Source tree
43169 echo "$srcdir/$f"
43170 else
43171 # /dev/null tree
43172 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43173echo "$as_me: error: cannot find input file: $f" >&2;}
43174 { (exit 1); exit 1; }; }
ac1cb8d3 43175 fi;;
a848cd7e
SC
43176 esac
43177 done` || { (exit 1); exit 1; }
43178_ACEOF
43179cat >>$CONFIG_STATUS <<_ACEOF
43180 sed "$ac_vpsub
43181$extrasub
43182_ACEOF
43183cat >>$CONFIG_STATUS <<\_ACEOF
43184:t
43185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43186s,@configure_input@,$configure_input,;t t
43187s,@srcdir@,$ac_srcdir,;t t
43188s,@abs_srcdir@,$ac_abs_srcdir,;t t
43189s,@top_srcdir@,$ac_top_srcdir,;t t
43190s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43191s,@builddir@,$ac_builddir,;t t
43192s,@abs_builddir@,$ac_abs_builddir,;t t
43193s,@top_builddir@,$ac_top_builddir,;t t
43194s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43195s,@INSTALL@,$ac_INSTALL,;t t
43196" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43197 rm -f $tmp/stdin
43198 if test x"$ac_file" != x-; then
43199 mv $tmp/out $ac_file
43200 else
43201 cat $tmp/out
43202 rm -f $tmp/out
43203 fi
43204
ceec2216
RL
43205 # Run the commands associated with the file.
43206 case $ac_file in
43207 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43208 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43209 esac
a848cd7e
SC
43210done
43211_ACEOF
43212cat >>$CONFIG_STATUS <<\_ACEOF
43213
43214#
43215# CONFIG_HEADER section.
43216#
43217
43218# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43219# NAME is the cpp macro being defined and VALUE is the value it is being given.
43220#
43221# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43222ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43223ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43224ac_dC=' '
43225ac_dD=',;t'
43226# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43227ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43228ac_uB='$,\1#\2define\3'
43229ac_uC=' '
43230ac_uD=',;t'
43231
43232for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43234 case $ac_file in
43235 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43236 cat >$tmp/stdin
43237 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43239 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43241 * ) ac_file_in=$ac_file.in ;;
43242 esac
43243
43244 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43245echo "$as_me: creating $ac_file" >&6;}
43246
43247 # First look for the input files in the build tree, otherwise in the
43248 # src tree.
43249 ac_file_inputs=`IFS=:
43250 for f in $ac_file_in; do
43251 case $f in
43252 -) echo $tmp/stdin ;;
43253 [\\/$]*)
ac1cb8d3
VS
43254 # Absolute (can't be DOS-style, as IFS=:)
43255 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43256echo "$as_me: error: cannot find input file: $f" >&2;}
43257 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43258 # Do quote $f, to prevent DOS paths from being IFS'd.
43259 echo "$f";;
a848cd7e 43260 *) # Relative
ac1cb8d3
VS
43261 if test -f "$f"; then
43262 # Build tree
43263 echo "$f"
43264 elif test -f "$srcdir/$f"; then
43265 # Source tree
43266 echo "$srcdir/$f"
43267 else
43268 # /dev/null tree
43269 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43270echo "$as_me: error: cannot find input file: $f" >&2;}
43271 { (exit 1); exit 1; }; }
ac1cb8d3 43272 fi;;
a848cd7e
SC
43273 esac
43274 done` || { (exit 1); exit 1; }
43275 # Remove the trailing spaces.
ac1cb8d3 43276 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43277
43278_ACEOF
43279
43280# Transform confdefs.h into two sed scripts, `conftest.defines' and
43281# `conftest.undefs', that substitutes the proper values into
43282# config.h.in to produce config.h. The first handles `#define'
43283# templates, and the second `#undef' templates.
43284# And first: Protect against being on the right side of a sed subst in
43285# config.status. Protect against being in an unquoted here document
43286# in config.status.
43287rm -f conftest.defines conftest.undefs
43288# Using a here document instead of a string reduces the quoting nightmare.
43289# Putting comments in sed scripts is not portable.
43290#
43291# `end' is used to avoid that the second main sed command (meant for
43292# 0-ary CPP macros) applies to n-ary macro definitions.
43293# See the Autoconf documentation for `clear'.
43294cat >confdef2sed.sed <<\_ACEOF
43295s/[\\&,]/\\&/g
43296s,[\\$`],\\&,g
43297t clear
43298: clear
ac1cb8d3 43299s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43300t end
ac1cb8d3 43301s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43302: end
43303_ACEOF
43304# If some macros were called several times there might be several times
43305# the same #defines, which is useless. Nevertheless, we may not want to
43306# sort them, since we want the *last* AC-DEFINE to be honored.
43307uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43308sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43309rm -f confdef2sed.sed
43310
43311# This sed command replaces #undef with comments. This is necessary, for
43312# example, in the case of _POSIX_SOURCE, which is predefined and required
43313# on some systems where configure will not decide to define it.
43314cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43315s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43316_ACEOF
43317
43318# Break up conftest.defines because some shells have a limit on the size
43319# of here documents, and old seds have small limits too (100 cmds).
43320echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43321echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43322echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43323echo ' :' >>$CONFIG_STATUS
43324rm -f conftest.tail
43325while grep . conftest.defines >/dev/null
43326do
43327 # Write a limited-size here document to $tmp/defines.sed.
43328 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43329 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43330 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43331 # Work around the forget-to-reset-the-flag bug.
43332 echo 't clr' >>$CONFIG_STATUS
43333 echo ': clr' >>$CONFIG_STATUS
43334 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43335 echo 'CEOF
43336 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43337 rm -f $tmp/in
43338 mv $tmp/out $tmp/in
43339' >>$CONFIG_STATUS
43340 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43341 rm -f conftest.defines
43342 mv conftest.tail conftest.defines
43343done
43344rm -f conftest.defines
43345echo ' fi # grep' >>$CONFIG_STATUS
43346echo >>$CONFIG_STATUS
43347
43348# Break up conftest.undefs because some shells have a limit on the size
43349# of here documents, and old seds have small limits too (100 cmds).
43350echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43351rm -f conftest.tail
43352while grep . conftest.undefs >/dev/null
43353do
43354 # Write a limited-size here document to $tmp/undefs.sed.
43355 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43356 # Speed up: don't consider the non `#undef'
ac1cb8d3 43357 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43358 # Work around the forget-to-reset-the-flag bug.
43359 echo 't clr' >>$CONFIG_STATUS
43360 echo ': clr' >>$CONFIG_STATUS
43361 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43362 echo 'CEOF
43363 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43364 rm -f $tmp/in
43365 mv $tmp/out $tmp/in
43366' >>$CONFIG_STATUS
43367 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43368 rm -f conftest.undefs
43369 mv conftest.tail conftest.undefs
43370done
43371rm -f conftest.undefs
43372
43373cat >>$CONFIG_STATUS <<\_ACEOF
43374 # Let's still pretend it is `configure' which instantiates (i.e., don't
43375 # use $as_me), people would be surprised to read:
43376 # /* config.h. Generated by config.status. */
43377 if test x"$ac_file" = x-; then
43378 echo "/* Generated by configure. */" >$tmp/config.h
43379 else
43380 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43381 fi
43382 cat $tmp/in >>$tmp/config.h
43383 rm -f $tmp/in
43384 if test x"$ac_file" != x-; then
43385 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43386 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43387echo "$as_me: $ac_file is unchanged" >&6;}
43388 else
43389 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43390$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43391 X"$ac_file" : 'X\(//\)[^/]' \| \
43392 X"$ac_file" : 'X\(//\)$' \| \
43393 X"$ac_file" : 'X\(/\)' \| \
43394 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43395echo X"$ac_file" |
43396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43398 /^X\(\/\/\)$/{ s//\1/; q; }
43399 /^X\(\/\).*/{ s//\1/; q; }
43400 s/.*/./; q'`
43401 { if $as_mkdir_p; then
43402 mkdir -p "$ac_dir"
43403 else
43404 as_dir="$ac_dir"
43405 as_dirs=
43406 while test ! -d "$as_dir"; do
43407 as_dirs="$as_dir $as_dirs"
43408 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43409$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43410 X"$as_dir" : 'X\(//\)[^/]' \| \
43411 X"$as_dir" : 'X\(//\)$' \| \
43412 X"$as_dir" : 'X\(/\)' \| \
43413 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43414echo X"$as_dir" |
43415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43417 /^X\(\/\/\)$/{ s//\1/; q; }
43418 /^X\(\/\).*/{ s//\1/; q; }
43419 s/.*/./; q'`
43420 done
43421 test ! -n "$as_dirs" || mkdir $as_dirs
43422 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43423echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43424 { (exit 1); exit 1; }; }; }
43425
43426 rm -f $ac_file
43427 mv $tmp/config.h $ac_file
43428 fi
43429 else
43430 cat $tmp/config.h
43431 rm -f $tmp/config.h
43432 fi
43433done
43434_ACEOF
43435cat >>$CONFIG_STATUS <<\_ACEOF
43436
43437#
43438# CONFIG_COMMANDS section.
43439#
43440for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43441 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43442 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43443 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43444$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43445 X"$ac_dest" : 'X\(//\)[^/]' \| \
43446 X"$ac_dest" : 'X\(//\)$' \| \
43447 X"$ac_dest" : 'X\(/\)' \| \
43448 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43449echo X"$ac_dest" |
43450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43452 /^X\(\/\/\)$/{ s//\1/; q; }
43453 /^X\(\/\).*/{ s//\1/; q; }
43454 s/.*/./; q'`
ac1cb8d3
VS
43455 { if $as_mkdir_p; then
43456 mkdir -p "$ac_dir"
43457 else
43458 as_dir="$ac_dir"
43459 as_dirs=
43460 while test ! -d "$as_dir"; do
43461 as_dirs="$as_dir $as_dirs"
43462 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43464 X"$as_dir" : 'X\(//\)[^/]' \| \
43465 X"$as_dir" : 'X\(//\)$' \| \
43466 X"$as_dir" : 'X\(/\)' \| \
43467 . : '\(.\)' 2>/dev/null ||
43468echo X"$as_dir" |
43469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43471 /^X\(\/\/\)$/{ s//\1/; q; }
43472 /^X\(\/\).*/{ s//\1/; q; }
43473 s/.*/./; q'`
43474 done
43475 test ! -n "$as_dirs" || mkdir $as_dirs
43476 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43477echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43478 { (exit 1); exit 1; }; }; }
43479
a848cd7e
SC
43480 ac_builddir=.
43481
43482if test "$ac_dir" != .; then
43483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43484 # A "../" for each directory in $ac_dir_suffix.
43485 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43486else
43487 ac_dir_suffix= ac_top_builddir=
43488fi
43489
43490case $srcdir in
43491 .) # No --srcdir option. We are building in place.
43492 ac_srcdir=.
43493 if test -z "$ac_top_builddir"; then
43494 ac_top_srcdir=.
43495 else
43496 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43497 fi ;;
43498 [\\/]* | ?:[\\/]* ) # Absolute path.
43499 ac_srcdir=$srcdir$ac_dir_suffix;
43500 ac_top_srcdir=$srcdir ;;
43501 *) # Relative path.
43502 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43503 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43504esac
ac1cb8d3
VS
43505
43506# Do not use `cd foo && pwd` to compute absolute paths, because
43507# the directories may not exist.
43508case `pwd` in
43509.) ac_abs_builddir="$ac_dir";;
43510*)
43511 case "$ac_dir" in
43512 .) ac_abs_builddir=`pwd`;;
43513 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43514 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43515 esac;;
43516esac
43517case $ac_abs_builddir in
43518.) ac_abs_top_builddir=${ac_top_builddir}.;;
43519*)
43520 case ${ac_top_builddir}. in
43521 .) ac_abs_top_builddir=$ac_abs_builddir;;
43522 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43523 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43524 esac;;
43525esac
43526case $ac_abs_builddir in
43527.) ac_abs_srcdir=$ac_srcdir;;
43528*)
43529 case $ac_srcdir in
43530 .) ac_abs_srcdir=$ac_abs_builddir;;
43531 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43532 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43533 esac;;
43534esac
43535case $ac_abs_builddir in
43536.) ac_abs_top_srcdir=$ac_top_srcdir;;
43537*)
43538 case $ac_top_srcdir in
43539 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43540 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43541 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43542 esac;;
43543esac
a848cd7e
SC
43544
43545
43546 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43547echo "$as_me: executing $ac_dest commands" >&6;}
43548 case $ac_dest in
ceec2216
RL
43549 wx-config ) rm -f wx-config
43550 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43551 ;;
a848cd7e
SC
43552 esac
43553done
43554_ACEOF
43555
43556cat >>$CONFIG_STATUS <<\_ACEOF
43557
43558{ (exit 0); exit 0; }
43559_ACEOF
43560chmod +x $CONFIG_STATUS
43561ac_clean_files=$ac_clean_files_save
43562
43563
43564# configure is writing to config.log, and then calls config.status.
43565# config.status does its own redirection, appending to config.log.
43566# Unfortunately, on DOS this fails, as config.log is still kept open
43567# by configure, so config.status won't be able to write to it; its
43568# output is simply discarded. So we exec the FD to /dev/null,
43569# effectively closing config.log, so it can be properly (re)opened and
43570# appended to by config.status. When coming back to configure, we
43571# need to make the FD available again.
43572if test "$no_create" != yes; then
43573 ac_cs_success=:
43574 ac_config_status_args=
43575 test "$silent" = yes &&
43576 ac_config_status_args="$ac_config_status_args --quiet"
43577 exec 5>/dev/null
43578 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43579 exec 5>>config.log
43580 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43581 # would make configure fail if this is the last instruction.
43582 $ac_cs_success || { (exit 1); exit 1; }
43583fi
43584
43585#
43586# CONFIG_SUBDIRS section.
43587#
43588if test "$no_recursion" != yes; then
43589
43590 # Remove --cache-file and --srcdir arguments so they do not pile up.
43591 ac_sub_configure_args=
43592 ac_prev=
43593 for ac_arg in $ac_configure_args; do
43594 if test -n "$ac_prev"; then
43595 ac_prev=
43596 continue
43597 fi
43598 case $ac_arg in
43599 -cache-file | --cache-file | --cache-fil | --cache-fi \
43600 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43601 ac_prev=cache_file ;;
43602 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43603 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43604 | --c=*)
43605 ;;
43606 --config-cache | -C)
43607 ;;
43608 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43609 ac_prev=srcdir ;;
43610 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43611 ;;
43612 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43613 ac_prev=prefix ;;
43614 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43615 ;;
43616 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43617 esac
43618 done
43619
43620 # Always prepend --prefix to ensure using the same prefix
43621 # in subdir configurations.
43622 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43623
43624 ac_popdir=`pwd`
43625 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43626
43627 # Do not complain, so a configure script can configure whichever
43628 # parts of a large source tree are present.
43629 test -d $srcdir/$ac_dir || continue
43630
43631 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43632echo "$as_me: configuring in $ac_dir" >&6;}
43633 { if $as_mkdir_p; then
43634 mkdir -p "$ac_dir"
43635 else
43636 as_dir="$ac_dir"
43637 as_dirs=
43638 while test ! -d "$as_dir"; do
43639 as_dirs="$as_dir $as_dirs"
43640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43642 X"$as_dir" : 'X\(//\)[^/]' \| \
43643 X"$as_dir" : 'X\(//\)$' \| \
43644 X"$as_dir" : 'X\(/\)' \| \
43645 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43646echo X"$as_dir" |
43647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43649 /^X\(\/\/\)$/{ s//\1/; q; }
43650 /^X\(\/\).*/{ s//\1/; q; }
43651 s/.*/./; q'`
43652 done
43653 test ! -n "$as_dirs" || mkdir $as_dirs
43654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43655echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43656 { (exit 1); exit 1; }; }; }
43657
43658 ac_builddir=.
43659
43660if test "$ac_dir" != .; then
43661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43662 # A "../" for each directory in $ac_dir_suffix.
43663 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43664else
43665 ac_dir_suffix= ac_top_builddir=
43666fi
43667
43668case $srcdir in
43669 .) # No --srcdir option. We are building in place.
43670 ac_srcdir=.
43671 if test -z "$ac_top_builddir"; then
43672 ac_top_srcdir=.
43673 else
43674 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43675 fi ;;
43676 [\\/]* | ?:[\\/]* ) # Absolute path.
43677 ac_srcdir=$srcdir$ac_dir_suffix;
43678 ac_top_srcdir=$srcdir ;;
43679 *) # Relative path.
43680 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43681 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43682esac
ac1cb8d3
VS
43683
43684# Do not use `cd foo && pwd` to compute absolute paths, because
43685# the directories may not exist.
43686case `pwd` in
43687.) ac_abs_builddir="$ac_dir";;
43688*)
43689 case "$ac_dir" in
43690 .) ac_abs_builddir=`pwd`;;
43691 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43692 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43693 esac;;
43694esac
43695case $ac_abs_builddir in
43696.) ac_abs_top_builddir=${ac_top_builddir}.;;
43697*)
43698 case ${ac_top_builddir}. in
43699 .) ac_abs_top_builddir=$ac_abs_builddir;;
43700 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43701 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43702 esac;;
43703esac
43704case $ac_abs_builddir in
43705.) ac_abs_srcdir=$ac_srcdir;;
43706*)
43707 case $ac_srcdir in
43708 .) ac_abs_srcdir=$ac_abs_builddir;;
43709 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43710 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43711 esac;;
43712esac
43713case $ac_abs_builddir in
43714.) ac_abs_top_srcdir=$ac_top_srcdir;;
43715*)
43716 case $ac_top_srcdir in
43717 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43718 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43719 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43720 esac;;
43721esac
a848cd7e
SC
43722
43723
43724 cd $ac_dir
43725
43726 # Check for guested configure; otherwise get Cygnus style configure.
43727 if test -f $ac_srcdir/configure.gnu; then
43728 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43729 elif test -f $ac_srcdir/configure; then
43730 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43731 elif test -f $ac_srcdir/configure.in; then
43732 ac_sub_configure=$ac_configure
43733 else
43734 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43735echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43736 ac_sub_configure=
43737 fi
43738
43739 # The recursion is here.
43740 if test -n "$ac_sub_configure"; then
43741 # Make the cache file name correct relative to the subdirectory.
43742 case $cache_file in
43743 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43744 *) # Relative path.
ac1cb8d3 43745 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43746 esac
43747
43748 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43749echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43750 # The eval makes quoting arguments work.
43751 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43752 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43753 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43754echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43755 { (exit 1); exit 1; }; }
43756 fi
43757
fc480dc1 43758 cd $ac_popdir
a848cd7e
SC
43759 done
43760fi
43761
43762
43763echo
77ffb593 43764echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43765echo ""
4d4ff94c 43766echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43767echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43768
77ffb593
JS
43769echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43770echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43771echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43772
77ffb593
JS
43773echo " What level of wxWidgets compatibility should be enabled?"
43774echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43775echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43776
77ffb593 43777echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43778echo " jpeg ${wxUSE_LIBJPEG-none}"
43779echo " png ${wxUSE_LIBPNG-none}"
43780echo " regex ${wxUSE_REGEX}"
43781echo " tiff ${wxUSE_LIBTIFF-none}"
43782if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43783echo " xpm ${wxUSE_LIBXPM-none}"
43784fi
43785echo " zlib ${wxUSE_ZLIB}"
43786echo " odbc ${wxUSE_ODBC}"
43787echo " expat ${wxUSE_EXPAT}"
43788echo " libmspack ${wxUSE_LIBMSPACK}"
43789echo " sdl ${wxUSE_LIBSDL}"
d1c38808 43790echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}"
a848cd7e
SC
43791
43792echo ""
43793